@drayman/elements 1.64.0 → 1.66.0
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.
- package/dist/button/main.js +1 -1
- package/dist/table/main.js +1 -1
- package/dist/text-field/main.js +1 -1
- package/dist/types/grid/src/app/models/grid-options.d.ts +0 -4
- package/dist/types/nebula/src/app/models/nebula-options.d.ts +3 -0
- package/dist/types/table/src/app/models/table-options.d.ts +38 -0
- package/dist/types/text-field/src/app/models/text-field-options.d.ts +4 -0
- package/package.json +1 -1
package/dist/text-field/main.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(()=>{var PE={959:(Q,xe,B)=>{"use strict";Q.exports=B(606)},550:(Q,xe,B)=>{"use strict";var se,Ke,st,re=B(539),_e="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ_-";function Ye(){st=!1}function W(Ve){if(Ve){if(Ve!==se){if(Ve.length!==_e.length)throw new Error("Custom alphabet for shortid must be "+_e.length+" unique characters. You submitted "+Ve.length+" characters: "+Ve);var Nt=Ve.split("").filter(function(Ai,us,xo){return us!==xo.lastIndexOf(Ai)});if(Nt.length)throw new Error("Custom alphabet for shortid must be "+_e.length+" unique characters. These characters were not unique: "+Nt.join(", "));se=Ve,Ye()}}else se!==_e&&(se=_e,Ye())}function ye(){return st||(st=function cr(){se||W(_e);for(var us,Ve=se.split(""),Nt=[],Ai=re.nextValue();Ve.length>0;)Ai=re.nextValue(),us=Math.floor(Ai*Ve.length),Nt.push(Ve.splice(us,1)[0]);return Nt.join("")}())}Q.exports={get:function Zl(){return se||_e},characters:function Rt(Ve){return W(Ve),se},seed:function ke(Ve){re.seed(Ve),Ke!==Ve&&(Ye(),Ke=Ve)},lookup:function Io(Ve){return ye()[Ve]},shuffled:ye}},119:(Q,xe,B)=>{"use strict";var st,Ye,re=B(535);B(550),Q.exports=function W(Rt){var ke="",cr=Math.floor(.001*(Date.now()-1567752802062));return cr===Ye?st++:(st=0,Ye=cr),ke+=re(7),ke+=re(Rt),st>0&&(ke+=re(st)),ke+re(cr)}},535:(Q,xe,B)=>{"use strict";var re=B(550),_e=B(68),se=B(152);Q.exports=function Ke(st){for(var W,Ye=0,Rt="";!W;)Rt+=se(_e,re.get(),1),W=st<Math.pow(16,Ye+1),Ye++;return Rt}},606:(Q,xe,B)=>{"use strict";var re=B(550),_e=B(119),se=B(777),Ke=B(1)||0;function Rt(){return _e(Ke)}Q.exports=Rt,Q.exports.generate=Rt,Q.exports.seed=function st(ke){return re.seed(ke),Q.exports},Q.exports.worker=function Ye(ke){return Ke=ke,Q.exports},Q.exports.characters=function W(ke){return void 0!==ke&&re.characters(ke),re.shuffled()},Q.exports.isValid=se},777:(Q,xe,B)=>{"use strict";var re=B(550);Q.exports=function _e(se){return!(!se||"string"!=typeof se||se.length<6||new RegExp("[^"+re.get().replace(/[|\\{}()[\]^$+*?.-]/g,"\\$&")+"]").test(se))}},68:Q=>{"use strict";var xe="object"==typeof window&&(window.crypto||window.msCrypto);Q.exports=xe&&xe.getRandomValues?function(re){return xe.getRandomValues(new Uint8Array(re))}:function(re){for(var _e=[],se=0;se<re;se++)_e.push(Math.floor(256*Math.random()));return _e}},539:Q=>{"use strict";var xe=1;Q.exports={nextValue:function B(){return(xe=(9301*xe+49297)%233280)/233280},seed:function re(_e){xe=_e}}},1:Q=>{"use strict";Q.exports=0},152:Q=>{Q.exports=function(xe,B,re){for(var _e=(2<<Math.log(B.length-1)/Math.LN2)-1,se=-~(1.6*_e*re/B.length),Ke="";;)for(var st=xe(se),Ye=se;Ye--;)if((Ke+=B[st[Ye]&_e]||"").length===+re)return Ke}}},xf={};function kf(Q){var xe=xf[Q];if(void 0!==xe)return xe.exports;var B=xf[Q]={exports:{}};return PE[Q](B,B.exports,kf),B.exports}(()=>{"use strict";function Q(n){return"function"==typeof n}let xe=!1;const B={Promise:void 0,set useDeprecatedSynchronousErrorHandling(n){if(n){const t=new Error;console.warn("DEPRECATED! RxJS was set to use deprecated synchronous error handling behavior by code at: \n"+t.stack)}else xe&&console.log("RxJS: Back to a better error behavior. Thank you. <3");xe=n},get useDeprecatedSynchronousErrorHandling(){return xe}};function re(n){setTimeout(()=>{throw n},0)}const _e={closed:!0,next(n){},error(n){if(B.useDeprecatedSynchronousErrorHandling)throw n;re(n)},complete(){}},se=Array.isArray||(n=>n&&"number"==typeof n.length);function Ke(n){return null!==n&&"object"==typeof n}const Ye=(()=>{function n(t){return Error.call(this),this.message=t?`${t.length} errors occurred during unsubscription:\n${t.map((e,i)=>`${i+1}) ${e.toString()}`).join("\n ")}`:"",this.name="UnsubscriptionError",this.errors=t,this}return n.prototype=Object.create(Error.prototype),n})();class W{constructor(t){this.closed=!1,this._parentOrParents=null,this._subscriptions=null,t&&(this._ctorUnsubscribe=!0,this._unsubscribe=t)}unsubscribe(){let t;if(this.closed)return;let{_parentOrParents:e,_ctorUnsubscribe:i,_unsubscribe:r,_subscriptions:s}=this;if(this.closed=!0,this._parentOrParents=null,this._subscriptions=null,e instanceof W)e.remove(this);else if(null!==e)for(let o=0;o<e.length;++o)e[o].remove(this);if(Q(r)){i&&(this._unsubscribe=void 0);try{r.call(this)}catch(o){t=o instanceof Ye?Rt(o.errors):[o]}}if(se(s)){let o=-1,a=s.length;for(;++o<a;){const l=s[o];if(Ke(l))try{l.unsubscribe()}catch(c){t=t||[],c instanceof Ye?t=t.concat(Rt(c.errors)):t.push(c)}}}if(t)throw new Ye(t)}add(t){let e=t;if(!t)return W.EMPTY;switch(typeof t){case"function":e=new W(t);case"object":if(e===this||e.closed||"function"!=typeof e.unsubscribe)return e;if(this.closed)return e.unsubscribe(),e;if(!(e instanceof W)){const s=e;e=new W,e._subscriptions=[s]}break;default:throw new Error("unrecognized teardown "+t+" added to Subscription.")}let{_parentOrParents:i}=e;if(null===i)e._parentOrParents=this;else if(i instanceof W){if(i===this)return e;e._parentOrParents=[i,this]}else{if(-1!==i.indexOf(this))return e;i.push(this)}const r=this._subscriptions;return null===r?this._subscriptions=[e]:r.push(e),e}remove(t){const e=this._subscriptions;if(e){const i=e.indexOf(t);-1!==i&&e.splice(i,1)}}}var n;function Rt(n){return n.reduce((t,e)=>t.concat(e instanceof Ye?e.errors:e),[])}W.EMPTY=((n=new W).closed=!0,n);const ke="function"==typeof Symbol?Symbol("rxSubscriber"):"@@rxSubscriber_"+Math.random();class ye extends W{constructor(t,e,i){switch(super(),this.syncErrorValue=null,this.syncErrorThrown=!1,this.syncErrorThrowable=!1,this.isStopped=!1,arguments.length){case 0:this.destination=_e;break;case 1:if(!t){this.destination=_e;break}if("object"==typeof t){t instanceof ye?(this.syncErrorThrowable=t.syncErrorThrowable,this.destination=t,t.add(this)):(this.syncErrorThrowable=!0,this.destination=new Io(this,t));break}default:this.syncErrorThrowable=!0,this.destination=new Io(this,t,e,i)}}[ke](){return this}static create(t,e,i){const r=new ye(t,e,i);return r.syncErrorThrowable=!1,r}next(t){this.isStopped||this._next(t)}error(t){this.isStopped||(this.isStopped=!0,this._error(t))}complete(){this.isStopped||(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe())}_next(t){this.destination.next(t)}_error(t){this.destination.error(t),this.unsubscribe()}_complete(){this.destination.complete(),this.unsubscribe()}_unsubscribeAndRecycle(){const{_parentOrParents:t}=this;return this._parentOrParents=null,this.unsubscribe(),this.closed=!1,this.isStopped=!1,this._parentOrParents=t,this}}class Io extends ye{constructor(t,e,i,r){super(),this._parentSubscriber=t;let s,o=this;Q(e)?s=e:e&&(s=e.next,i=e.error,r=e.complete,e!==_e&&(o=Object.create(e),Q(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(t){if(!this.isStopped&&this._next){const{_parentSubscriber:e}=this;B.useDeprecatedSynchronousErrorHandling&&e.syncErrorThrowable?this.__tryOrSetError(e,this._next,t)&&this.unsubscribe():this.__tryOrUnsub(this._next,t)}}error(t){if(!this.isStopped){const{_parentSubscriber:e}=this,{useDeprecatedSynchronousErrorHandling:i}=B;if(this._error)i&&e.syncErrorThrowable?(this.__tryOrSetError(e,this._error,t),this.unsubscribe()):(this.__tryOrUnsub(this._error,t),this.unsubscribe());else if(e.syncErrorThrowable)i?(e.syncErrorValue=t,e.syncErrorThrown=!0):re(t),this.unsubscribe();else{if(this.unsubscribe(),i)throw t;re(t)}}}complete(){if(!this.isStopped){const{_parentSubscriber:t}=this;if(this._complete){const e=()=>this._complete.call(this._context);B.useDeprecatedSynchronousErrorHandling&&t.syncErrorThrowable?(this.__tryOrSetError(t,e),this.unsubscribe()):(this.__tryOrUnsub(e),this.unsubscribe())}else this.unsubscribe()}}__tryOrUnsub(t,e){try{t.call(this._context,e)}catch(i){if(this.unsubscribe(),B.useDeprecatedSynchronousErrorHandling)throw i;re(i)}}__tryOrSetError(t,e,i){if(!B.useDeprecatedSynchronousErrorHandling)throw new Error("bad call");try{e.call(this._context,i)}catch(r){return B.useDeprecatedSynchronousErrorHandling?(t.syncErrorValue=r,t.syncErrorThrown=!0,!0):(re(r),!0)}return!1}_unsubscribe(){const{_parentSubscriber:t}=this;this._context=null,this._parentSubscriber=null,t.unsubscribe()}}const Nt="function"==typeof Symbol&&Symbol.observable||"@@observable";function Ai(n){return n}let Ce=(()=>{class n{constructor(e){this._isScalar=!1,e&&(this._subscribe=e)}lift(e){const i=new n;return i.source=this,i.operator=e,i}subscribe(e,i,r){const{operator:s}=this,o=function Ve(n,t,e){if(n){if(n instanceof ye)return n;if(n[ke])return n[ke]()}return n||t||e?new ye(n,t,e):new ye(_e)}(e,i,r);if(o.add(s?s.call(o,this.source):this.source||B.useDeprecatedSynchronousErrorHandling&&!o.syncErrorThrowable?this._subscribe(o):this._trySubscribe(o)),B.useDeprecatedSynchronousErrorHandling&&o.syncErrorThrowable&&(o.syncErrorThrowable=!1,o.syncErrorThrown))throw o.syncErrorValue;return o}_trySubscribe(e){try{return this._subscribe(e)}catch(i){B.useDeprecatedSynchronousErrorHandling&&(e.syncErrorThrown=!0,e.syncErrorValue=i),function Zl(n){for(;n;){const{closed:t,destination:e,isStopped:i}=n;if(t||i)return!1;n=e&&e instanceof ye?e:null}return!0}(e)?e.error(i):console.warn(i)}}forEach(e,i){return new(i=Of(i))((r,s)=>{let o;o=this.subscribe(a=>{try{e(a)}catch(l){s(l),o&&o.unsubscribe()}},s,r)})}_subscribe(e){const{source:i}=this;return i&&i.subscribe(e)}[Nt](){return this}pipe(...e){return 0===e.length?this:function xo(n){return 0===n.length?Ai:1===n.length?n[0]:function(e){return n.reduce((i,r)=>r(i),e)}}(e)(this)}toPromise(e){return new(e=Of(e))((i,r)=>{let s;this.subscribe(o=>s=o,o=>r(o),()=>i(s))})}}return n.create=t=>new n(t),n})();function Of(n){if(n||(n=B.Promise||Promise),!n)throw new Error("no Promise impl found");return n}const Ii=(()=>{function n(){return Error.call(this),this.message="object unsubscribed",this.name="ObjectUnsubscribedError",this}return n.prototype=Object.create(Error.prototype),n})();class Ff extends W{constructor(t,e){super(),this.subject=t,this.subscriber=e,this.closed=!1}unsubscribe(){if(this.closed)return;this.closed=!0;const t=this.subject,e=t.observers;if(this.subject=null,!e||0===e.length||t.isStopped||t.closed)return;const i=e.indexOf(this.subscriber);-1!==i&&e.splice(i,1)}}class Rf extends ye{constructor(t){super(t),this.destination=t}}let de=(()=>{class n extends Ce{constructor(){super(),this.observers=[],this.closed=!1,this.isStopped=!1,this.hasError=!1,this.thrownError=null}[ke](){return new Rf(this)}lift(e){const i=new Nf(this,this);return i.operator=e,i}next(e){if(this.closed)throw new Ii;if(!this.isStopped){const{observers:i}=this,r=i.length,s=i.slice();for(let o=0;o<r;o++)s[o].next(e)}}error(e){if(this.closed)throw new Ii;this.hasError=!0,this.thrownError=e,this.isStopped=!0;const{observers:i}=this,r=i.length,s=i.slice();for(let o=0;o<r;o++)s[o].error(e);this.observers.length=0}complete(){if(this.closed)throw new Ii;this.isStopped=!0;const{observers:e}=this,i=e.length,r=e.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(e){if(this.closed)throw new Ii;return super._trySubscribe(e)}_subscribe(e){if(this.closed)throw new Ii;return this.hasError?(e.error(this.thrownError),W.EMPTY):this.isStopped?(e.complete(),W.EMPTY):(this.observers.push(e),new Ff(this,e))}asObservable(){const e=new Ce;return e.source=this,e}}return n.create=(t,e)=>new Nf(t,e),n})();class Nf extends de{constructor(t,e){super(),this.destination=t,this.source=e}next(t){const{destination:e}=this;e&&e.next&&e.next(t)}error(t){const{destination:e}=this;e&&e.error&&this.destination.error(t)}complete(){const{destination:t}=this;t&&t.complete&&this.destination.complete()}_subscribe(t){const{source:e}=this;return e?this.source.subscribe(t):W.EMPTY}}function ur(n){return n&&"function"==typeof n.schedule}function Ze(n,t){return function(i){if("function"!=typeof n)throw new TypeError("argument is not a function. Are you looking for `mapTo()`?");return i.lift(new LE(n,t))}}class LE{constructor(t,e){this.project=t,this.thisArg=e}call(t,e){return e.subscribe(new VE(t,this.project,this.thisArg))}}class VE extends ye{constructor(t,e,i){super(t),this.project=e,this.count=0,this.thisArg=i||this}_next(t){let e;try{e=this.project.call(this.thisArg,t,this.count++)}catch(i){return void this.destination.error(i)}this.destination.next(e)}}const Pf=n=>t=>{for(let e=0,i=n.length;e<i&&!t.closed;e++)t.next(n[e]);t.complete()},ko=function HE(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}(),Lf=n=>n&&"number"==typeof n.length&&"function"!=typeof n;function Vf(n){return!!n&&"function"!=typeof n.subscribe&&"function"==typeof n.then}const Xl=n=>{if(n&&"function"==typeof n[Nt])return(n=>t=>{const e=n[Nt]();if("function"!=typeof e.subscribe)throw new TypeError("Provided object does not correctly implement Symbol.observable");return e.subscribe(t)})(n);if(Lf(n))return Pf(n);if(Vf(n))return(n=>t=>(n.then(e=>{t.closed||(t.next(e),t.complete())},e=>t.error(e)).then(null,re),t))(n);if(n&&"function"==typeof n[ko])return(n=>t=>{const e=n[ko]();for(;;){let i;try{i=e.next()}catch(r){return t.error(r),t}if(i.done){t.complete();break}if(t.next(i.value),t.closed)break}return"function"==typeof e.return&&t.add(()=>{e.return&&e.return()}),t})(n);{const e=`You provided ${Ke(n)?"an invalid object":`'${n}'`} where a stream was expected. You can provide an Observable, Promise, Array, or Iterable.`;throw new TypeError(e)}};function Ql(n,t){return new Ce(e=>{const i=new W;let r=0;return i.add(t.schedule(function(){r!==n.length?(e.next(n[r++]),e.closed||i.add(this.schedule())):e.complete()})),i})}function ds(n,t){return t?function KE(n,t){if(null!=n){if(function WE(n){return n&&"function"==typeof n[Nt]}(n))return function UE(n,t){return new Ce(e=>{const i=new W;return i.add(t.schedule(()=>{const r=n[Nt]();i.add(r.subscribe({next(s){i.add(t.schedule(()=>e.next(s)))},error(s){i.add(t.schedule(()=>e.error(s)))},complete(){i.add(t.schedule(()=>e.complete()))}}))})),i})}(n,t);if(Vf(n))return function zE(n,t){return new Ce(e=>{const i=new W;return i.add(t.schedule(()=>n.then(r=>{i.add(t.schedule(()=>{e.next(r),i.add(t.schedule(()=>e.complete()))}))},r=>{i.add(t.schedule(()=>e.error(r)))}))),i})}(n,t);if(Lf(n))return Ql(n,t);if(function qE(n){return n&&"function"==typeof n[ko]}(n)||"string"==typeof n)return function GE(n,t){if(!n)throw new Error("Iterable cannot be null");return new Ce(e=>{const i=new W;let r;return i.add(()=>{r&&"function"==typeof r.return&&r.return()}),i.add(t.schedule(()=>{r=n[ko](),i.add(t.schedule(function(){if(e.closed)return;let s,o;try{const a=r.next();s=a.value,o=a.done}catch(a){return void e.error(a)}o?e.complete():(e.next(s),this.schedule())}))})),i})}(n,t)}throw new TypeError((null!==n&&typeof n||n)+" is not observable")}(n,t):n instanceof Ce?n:new Ce(Xl(n))}class hs extends ye{constructor(t){super(),this.parent=t}_next(t){this.parent.notifyNext(t)}_error(t){this.parent.notifyError(t),this.unsubscribe()}_complete(){this.parent.notifyComplete(),this.unsubscribe()}}class fs extends ye{notifyNext(t){this.destination.next(t)}notifyError(t){this.destination.error(t)}notifyComplete(){this.destination.complete()}}function ps(n,t){if(!t.closed)return n instanceof Ce?n.subscribe(t):Xl(n)(t)}function Jl(n,t,e=Number.POSITIVE_INFINITY){return"function"==typeof t?i=>i.pipe(Jl((r,s)=>ds(n(r,s)).pipe(Ze((o,a)=>t(r,o,s,a))),e)):("number"==typeof t&&(e=t),i=>i.lift(new YE(n,e)))}class YE{constructor(t,e=Number.POSITIVE_INFINITY){this.project=t,this.concurrent=e}call(t,e){return e.subscribe(new ZE(t,this.project,this.concurrent))}}class ZE extends fs{constructor(t,e,i=Number.POSITIVE_INFINITY){super(t),this.project=e,this.concurrent=i,this.hasCompleted=!1,this.buffer=[],this.active=0,this.index=0}_next(t){this.active<this.concurrent?this._tryNext(t):this.buffer.push(t)}_tryNext(t){let e;const i=this.index++;try{e=this.project(t,i)}catch(r){return void this.destination.error(r)}this.active++,this._innerSub(e)}_innerSub(t){const e=new hs(this),i=this.destination;i.add(e);const r=ps(t,e);r!==e&&i.add(r)}_complete(){this.hasCompleted=!0,0===this.active&&0===this.buffer.length&&this.destination.complete(),this.unsubscribe()}notifyNext(t){this.destination.next(t)}notifyComplete(){const t=this.buffer;this.active--,t.length>0?this._next(t.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()}}function Bf(n=Number.POSITIVE_INFINITY){return Jl(Ai,n)}function ec(n,t){return t?Ql(n,t):new Ce(Pf(n))}function si(...n){let t=Number.POSITIVE_INFINITY,e=null,i=n[n.length-1];return ur(i)?(e=n.pop(),n.length>1&&"number"==typeof n[n.length-1]&&(t=n.pop())):"number"==typeof i&&(t=n.pop()),null===e&&1===n.length&&n[0]instanceof Ce?n[0]:Bf(t)(ec(n,e))}function Hf(){return function(t){return t.lift(new XE(t))}}class XE{constructor(t){this.connectable=t}call(t,e){const{connectable:i}=this;i._refCount++;const r=new QE(t,i),s=e.subscribe(r);return r.closed||(r.connection=i.connect()),s}}class QE extends ye{constructor(t,e){super(t),this.connectable=e}_unsubscribe(){const{connectable:t}=this;if(!t)return void(this.connection=null);this.connectable=null;const e=t._refCount;if(e<=0)return void(this.connection=null);if(t._refCount=e-1,e>1)return void(this.connection=null);const{connection:i}=this,r=t._connection;this.connection=null,r&&(!i||r===i)&&r.unsubscribe()}}class JE extends Ce{constructor(t,e){super(),this.source=t,this.subjectFactory=e,this._refCount=0,this._isComplete=!1}_subscribe(t){return this.getSubject().subscribe(t)}getSubject(){const t=this._subject;return(!t||t.isStopped)&&(this._subject=this.subjectFactory()),this._subject}connect(){let t=this._connection;return t||(this._isComplete=!1,t=this._connection=new W,t.add(this.source.subscribe(new tD(this.getSubject(),this))),t.closed&&(this._connection=null,t=W.EMPTY)),t}refCount(){return Hf()(this)}}const eD=(()=>{const n=JE.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 tD extends Rf{constructor(t,e){super(t),this.connectable=e}_error(t){this._unsubscribe(),super._error(t)}_complete(){this.connectable._isComplete=!0,this._unsubscribe(),super._complete()}_unsubscribe(){const t=this.connectable;if(t){this.connectable=null;const e=t._connection;t._refCount=0,t._subject=null,t._connection=null,e&&e.unsubscribe()}}}class rD{constructor(t,e){this.subjectFactory=t,this.selector=e}call(t,e){const{selector:i}=this,r=this.subjectFactory(),s=i(r).subscribe(t);return s.add(e.subscribe(r)),s}}function sD(){return new de}function jf(){return n=>Hf()(function iD(n,t){return function(i){let r;if(r="function"==typeof n?n:function(){return n},"function"==typeof t)return i.lift(new rD(r,t));const s=Object.create(i,eD);return s.source=i,s.subjectFactory=r,s}}(sD)(n))}function ve(n){for(let t in n)if(n[t]===ve)return t;throw Error("Could not find renamed property on target object.")}function tc(n,t){for(const e in t)t.hasOwnProperty(e)&&!n.hasOwnProperty(e)&&(n[e]=t[e])}function he(n){if("string"==typeof n)return n;if(Array.isArray(n))return"["+n.map(he).join(", ")+"]";if(null==n)return""+n;if(n.overriddenName)return`${n.overriddenName}`;if(n.name)return`${n.name}`;const t=n.toString();if(null==t)return""+t;const e=t.indexOf("\n");return-1===e?t:t.substring(0,e)}function nc(n,t){return null==n||""===n?null===t?"":t:null==t||""===t?n:n+" "+t}const oD=ve({__forward_ref__:ve});function fe(n){return n.__forward_ref__=fe,n.toString=function(){return he(this())},n}function z(n){return $f(n)?n():n}function $f(n){return"function"==typeof n&&n.hasOwnProperty(oD)&&n.__forward_ref__===fe}class A extends Error{constructor(t,e){super(function ic(n,t){return`NG0${Math.abs(n)}${t?": "+t:""}`}(t,e)),this.code=t}}function P(n){return"string"==typeof n?n:null==n?"":String(n)}function ot(n){return"function"==typeof n?n.name||n.toString():"object"==typeof n&&null!=n&&"function"==typeof n.type?n.type.name||n.type.toString():P(n)}function Oo(n,t){const e=t?` in ${t}`:"";throw new A(-201,`No provider for ${ot(n)} found${e}`)}function Lt(n,t){null==n&&function pe(n,t,e,i){throw new Error(`ASSERTION ERROR: ${n}`+(null==i?"":` [Expected=> ${e} ${i} ${t} <=Actual]`))}(t,n,null,"!=")}function x(n){return{token:n.token,providedIn:n.providedIn||null,factory:n.factory,value:void 0}}function ce(n){return{providers:n.providers||[],imports:n.imports||[]}}function rc(n){return Uf(n,Fo)||Uf(n,Gf)}function Uf(n,t){return n.hasOwnProperty(t)?n[t]:null}function zf(n){return n&&(n.hasOwnProperty(sc)||n.hasOwnProperty(fD))?n[sc]:null}const Fo=ve({\u0275prov:ve}),sc=ve({\u0275inj:ve}),Gf=ve({ngInjectableDef:ve}),fD=ve({ngInjectorDef:ve});var H=(()=>((H=H||{})[H.Default=0]="Default",H[H.Host=1]="Host",H[H.Self=2]="Self",H[H.SkipSelf=4]="SkipSelf",H[H.Optional=8]="Optional",H))();let oc;function oi(n){const t=oc;return oc=n,t}function Wf(n,t,e){const i=rc(n);return i&&"root"==i.providedIn?void 0===i.value?i.value=i.factory():i.value:e&H.Optional?null:void 0!==t?t:void Oo(he(n),"Injector")}function ai(n){return{toString:n}.toString()}var dn=(()=>((dn=dn||{})[dn.OnPush=0]="OnPush",dn[dn.Default=1]="Default",dn))(),hn=(()=>(function(n){n[n.Emulated=0]="Emulated",n[n.None=2]="None",n[n.ShadowDom=3]="ShadowDom"}(hn||(hn={})),hn))();const mD="undefined"!=typeof globalThis&&globalThis,gD="undefined"!=typeof window&&window,_D="undefined"!=typeof self&&"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&self,ge=mD||"undefined"!=typeof global&&global||gD||_D,dr={},be=[],Ro=ve({\u0275cmp:ve}),ac=ve({\u0275dir:ve}),lc=ve({\u0275pipe:ve}),qf=ve({\u0275mod:ve}),Wn=ve({\u0275fac:ve}),ms=ve({__NG_ELEMENT_ID__:ve});let yD=0;function An(n){return ai(()=>{const e={},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:e,inputs:null,outputs:null,exportAs:n.exportAs||null,onPush:n.changeDetection===dn.OnPush,directiveDefs:null,pipeDefs:null,selectors:n.selectors||be,viewQuery:n.viewQuery||null,features:n.features||null,data:n.data||{},encapsulation:n.encapsulation||hn.Emulated,id:"c",styles:n.styles||be,_:null,setInput:null,schemas:n.schemas||null,tView:null},r=n.directives,s=n.features,o=n.pipes;return i.id+=yD++,i.inputs=Xf(n.inputs,e),i.outputs=Xf(n.outputs),s&&s.forEach(a=>a(i)),i.directiveDefs=r?()=>("function"==typeof r?r():r).map(Kf):null,i.pipeDefs=o?()=>("function"==typeof o?o():o).map(Yf):null,i})}function Kf(n){return at(n)||function li(n){return n[ac]||null}(n)}function Yf(n){return function xi(n){return n[lc]||null}(n)}const Zf={};function me(n){return ai(()=>{const t={type:n.type,bootstrap:n.bootstrap||be,declarations:n.declarations||be,imports:n.imports||be,exports:n.exports||be,transitiveCompileScopes:null,schemas:n.schemas||null,id:n.id||null};return null!=n.id&&(Zf[n.id]=n.type),t})}function Xf(n,t){if(null==n)return dr;const e={};for(const i in n)if(n.hasOwnProperty(i)){let r=n[i],s=r;Array.isArray(r)&&(s=r[1],r=r[0]),e[r]=i,t&&(t[r]=s)}return e}const k=An;function gt(n){return{type:n.type,name:n.name,factory:null,pure:!1!==n.pure,onDestroy:n.type.prototype.ngOnDestroy||null}}function at(n){return n[Ro]||null}function Zt(n,t){const e=n[qf]||null;if(!e&&!0===t)throw new Error(`Type ${he(n)} does not have '\u0275mod' property.`);return e}const U=11;function In(n){return Array.isArray(n)&&"object"==typeof n[1]}function pn(n){return Array.isArray(n)&&!0===n[1]}function dc(n){return 0!=(8&n.flags)}function Vo(n){return 2==(2&n.flags)}function Bo(n){return 1==(1&n.flags)}function mn(n){return null!==n.template}function DD(n){return 0!=(512&n[2])}function Ri(n,t){return n.hasOwnProperty(Wn)?n[Wn]:null}class Jf{constructor(t,e,i){this.previousValue=t,this.currentValue=e,this.firstChange=i}isFirstChange(){return this.firstChange}}function Qt(){return ep}function ep(n){return n.type.prototype.ngOnChanges&&(n.setInput=AD),TD}function TD(){const n=np(this),t=null==n?void 0:n.current;if(t){const e=n.previous;if(e===dr)n.previous=t;else for(let i in t)e[i]=t[i];n.current=null,this.ngOnChanges(t)}}function AD(n,t,e,i){const r=np(n)||function ID(n,t){return n[tp]=t}(n,{previous:dr,current:null}),s=r.current||(r.current={}),o=r.previous,a=this.declaredInputs[e],l=o[a];s[a]=new Jf(l&&l.currentValue,t,o===dr),n[i]=t}Qt.ngInherit=!0;const tp="__ngSimpleChanges__";function np(n){return n[tp]||null}let gc;function Pe(n){return!!n.listen}const ip={createRenderer:(n,t)=>function _c(){return void 0!==gc?gc:"undefined"!=typeof document?document:void 0}()};function je(n){for(;Array.isArray(n);)n=n[0];return n}function Ho(n,t){return je(t[n])}function Bt(n,t){return je(t[n.index])}function yc(n,t){return n.data[t]}function gr(n,t){return n[t]}function Ht(n,t){const e=t[n];return In(e)?e:e[0]}function rp(n){return 4==(4&n[2])}function vc(n){return 128==(128&n[2])}function ci(n,t){return null==t?null:n[t]}function sp(n){n[18]=0}function bc(n,t){n[5]+=t;let e=n,i=n[3];for(;null!==i&&(1===t&&1===e[5]||-1===t&&0===e[5]);)i[5]+=t,e=i,i=i[3]}const L={lFrame:pp(null),bindingsEnabled:!0};function ap(){return L.bindingsEnabled}function C(){return L.lFrame.lView}function te(){return L.lFrame.tView}function gn(n){return L.lFrame.contextLView=n,n[8]}function Xe(){let n=lp();for(;null!==n&&64===n.type;)n=n.parent;return n}function lp(){return L.lFrame.currentTNode}function xn(n,t){const e=L.lFrame;e.currentTNode=n,e.isParent=t}function Cc(){return L.lFrame.isParent}function wc(){L.lFrame.isParent=!1}function _r(){return L.lFrame.bindingIndex++}function WD(n,t){const e=L.lFrame;e.bindingIndex=e.bindingRootIndex=n,Ec(t)}function Ec(n){L.lFrame.currentDirectiveIndex=n}function dp(){return L.lFrame.currentQueryIndex}function Sc(n){L.lFrame.currentQueryIndex=n}function KD(n){const t=n[1];return 2===t.type?t.declTNode:1===t.type?n[6]:null}function hp(n,t,e){if(e&H.SkipSelf){let r=t,s=n;for(;!(r=r.parent,null!==r||e&H.Host||(r=KD(s),null===r||(s=s[15],10&r.type))););if(null===r)return!1;t=r,n=s}const i=L.lFrame=fp();return i.currentTNode=t,i.lView=n,!0}function $o(n){const t=fp(),e=n[1];L.lFrame=t,t.currentTNode=e.firstChild,t.lView=n,t.tView=e,t.contextLView=n,t.bindingIndex=e.bindingStartIndex,t.inI18n=!1}function fp(){const n=L.lFrame,t=null===n?null:n.child;return null===t?pp(n):t}function pp(n){const t={currentTNode:null,isParent:!0,lView:null,tView:null,selectedIndex:-1,contextLView:null,elementDepthCount:0,currentNamespace:null,currentDirectiveIndex:-1,bindingRootIndex:-1,bindingIndex:-1,currentQueryIndex:0,parent:n,child:null,inI18n:!1};return null!==n&&(n.child=t),t}function mp(){const n=L.lFrame;return L.lFrame=n.parent,n.currentTNode=null,n.lView=null,n}const gp=mp;function Uo(){const n=mp();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 vt(){return L.lFrame.selectedIndex}function ui(n){L.lFrame.selectedIndex=n}function Oe(){const n=L.lFrame;return yc(n.tView,n.selectedIndex)}function zo(n,t){for(let e=t.directiveStart,i=t.directiveEnd;e<i;e++){const s=n.data[e].type.prototype,{ngAfterContentInit:o,ngAfterContentChecked:a,ngAfterViewInit:l,ngAfterViewChecked:c,ngOnDestroy:u}=s;o&&(n.contentHooks||(n.contentHooks=[])).push(-e,o),a&&((n.contentHooks||(n.contentHooks=[])).push(e,a),(n.contentCheckHooks||(n.contentCheckHooks=[])).push(e,a)),l&&(n.viewHooks||(n.viewHooks=[])).push(-e,l),c&&((n.viewHooks||(n.viewHooks=[])).push(e,c),(n.viewCheckHooks||(n.viewCheckHooks=[])).push(e,c)),null!=u&&(n.destroyHooks||(n.destroyHooks=[])).push(e,u)}}function Go(n,t,e){_p(n,t,3,e)}function Wo(n,t,e,i){(3&n[2])===e&&_p(n,t,e,i)}function Mc(n,t){let e=n[2];(3&e)===t&&(e&=2047,e+=1,n[2]=e)}function _p(n,t,e,i){const s=null!=i?i:-1,o=t.length-1;let a=0;for(let l=void 0!==i?65535&n[18]:0;l<o;l++)if("number"==typeof t[l+1]){if(a=t[l],null!=i&&a>=i)break}else t[l]<0&&(n[18]+=65536),(a<s||-1==s)&&(r0(n,e,t,l),n[18]=(4294901760&n[18])+l+2),l++}function r0(n,t,e,i){const r=e[i]<0,s=e[i+1],a=n[r?-e[i]:e[i]];if(r){if(n[2]>>11<n[18]>>16&&(3&n[2])===t){n[2]+=2048;try{s.call(a)}finally{}}}else try{s.call(a)}finally{}}class bs{constructor(t,e,i){this.factory=t,this.resolving=!1,this.canSeeViewProviders=e,this.injectImpl=i}}function qo(n,t,e){const i=Pe(n);let r=0;for(;r<e.length;){const s=e[r];if("number"==typeof s){if(0!==s)break;r++;const o=e[r++],a=e[r++],l=e[r++];i?n.setAttribute(t,a,l,o):t.setAttributeNS(o,a,l)}else{const o=s,a=e[++r];Ac(o)?i&&n.setProperty(t,o,a):i?n.setAttribute(t,o,a):t.setAttribute(o,a),r++}}return r}function yp(n){return 3===n||4===n||6===n}function Ac(n){return 64===n.charCodeAt(0)}function Ko(n,t){if(null!==t&&0!==t.length)if(null===n||0===n.length)n=t.slice();else{let e=-1;for(let i=0;i<t.length;i++){const r=t[i];"number"==typeof r?e=r:0===e||vp(n,e,r,null,-1===e||2===e?t[++i]:null)}}return n}function vp(n,t,e,i,r){let s=0,o=n.length;if(-1===t)o=-1;else for(;s<n.length;){const a=n[s++];if("number"==typeof a){if(a===t){o=-1;break}if(a>t){o=s-1;break}}}for(;s<n.length;){const a=n[s];if("number"==typeof a)break;if(a===e){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,t),s=o+1),n.splice(s++,0,e),null!==i&&n.splice(s++,0,i),null!==r&&n.splice(s++,0,r)}function bp(n){return-1!==n}function yr(n){return 32767&n}function vr(n,t){let e=function c0(n){return n>>16}(n),i=t;for(;e>0;)i=i[15],e--;return i}let Ic=!0;function Yo(n){const t=Ic;return Ic=n,t}let u0=0;function ws(n,t){const e=kc(n,t);if(-1!==e)return e;const i=t[1];i.firstCreatePass&&(n.injectorIndex=t.length,xc(i.data,n),xc(t,null),xc(i.blueprint,null));const r=Zo(n,t),s=n.injectorIndex;if(bp(r)){const o=yr(r),a=vr(r,t),l=a[1].data;for(let c=0;c<8;c++)t[s+c]=a[o+c]|l[o+c]}return t[s+8]=r,s}function xc(n,t){n.push(0,0,0,0,0,0,0,0,t)}function kc(n,t){return-1===n.injectorIndex||n.parent&&n.parent.injectorIndex===n.injectorIndex||null===t[n.injectorIndex+8]?-1:n.injectorIndex}function Zo(n,t){if(n.parent&&-1!==n.parent.injectorIndex)return n.parent.injectorIndex;let e=0,i=null,r=t;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(e++,r=r[15],-1!==i.injectorIndex)return i.injectorIndex|e<<16}return-1}function Xo(n,t,e){!function d0(n,t,e){let i;"string"==typeof e?i=e.charCodeAt(0)||0:e.hasOwnProperty(ms)&&(i=e[ms]),null==i&&(i=e[ms]=u0++);const r=255&i;t.data[n+(r>>5)]|=1<<r}(n,t,e)}function Ep(n,t,e){if(e&H.Optional)return n;Oo(t,"NodeInjector")}function Dp(n,t,e,i){if(e&H.Optional&&void 0===i&&(i=null),0==(e&(H.Self|H.Host))){const r=n[9],s=oi(void 0);try{return r?r.get(t,i,e&H.Optional):Wf(t,i,e&H.Optional)}finally{oi(s)}}return Ep(i,t,e)}function Sp(n,t,e,i=H.Default,r){if(null!==n){const s=function m0(n){if("string"==typeof n)return n.charCodeAt(0)||0;const t=n.hasOwnProperty(ms)?n[ms]:void 0;return"number"==typeof t?t>=0?255&t:f0:t}(e);if("function"==typeof s){if(!hp(t,n,i))return i&H.Host?Ep(r,e,i):Dp(t,e,i,r);try{const o=s(i);if(null!=o||i&H.Optional)return o;Oo(e)}finally{gp()}}else if("number"==typeof s){let o=null,a=kc(n,t),l=-1,c=i&H.Host?t[16][6]:null;for((-1===a||i&H.SkipSelf)&&(l=-1===a?Zo(n,t):t[a+8],-1!==l&&Ap(i,!1)?(o=t[1],a=yr(l),t=vr(l,t)):a=-1);-1!==a;){const u=t[1];if(Tp(s,a,u.data)){const d=p0(a,t,e,o,i,c);if(d!==Mp)return d}l=t[a+8],-1!==l&&Ap(i,t[1].data[a+8]===c)&&Tp(s,a,t)?(o=u,a=yr(l),t=vr(l,t)):a=-1}}}return Dp(t,e,i,r)}const Mp={};function f0(){return new br(Xe(),C())}function p0(n,t,e,i,r,s){const o=t[1],a=o.data[n+8],u=Qo(a,o,e,null==i?Vo(a)&&Ic:i!=o&&0!=(3&a.type),r&H.Host&&s===a);return null!==u?Es(t,o,u,a):Mp}function Qo(n,t,e,i,r){const s=n.providerIndexes,o=t.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&&e===p||f>=l&&p.type===e)return f}if(r){const f=o[l];if(f&&mn(f)&&f.type===e)return l}return null}function Es(n,t,e,i){let r=n[e];const s=t.data;if(function s0(n){return n instanceof bs}(r)){const o=r;o.resolving&&function aD(n,t){const e=t?`. Dependency path: ${t.join(" > ")} > ${n}`:"";throw new A(-200,`Circular dependency in DI detected for ${n}${e}`)}(ot(s[e]));const a=Yo(o.canSeeViewProviders);o.resolving=!0;const l=o.injectImpl?oi(o.injectImpl):null;hp(n,i,H.Default);try{r=n[e]=o.factory(void 0,s,n,i),t.firstCreatePass&&e>=i.directiveStart&&function n0(n,t,e){const{ngOnChanges:i,ngOnInit:r,ngDoCheck:s}=t.type.prototype;if(i){const o=ep(t);(e.preOrderHooks||(e.preOrderHooks=[])).push(n,o),(e.preOrderCheckHooks||(e.preOrderCheckHooks=[])).push(n,o)}r&&(e.preOrderHooks||(e.preOrderHooks=[])).push(0-n,r),s&&((e.preOrderHooks||(e.preOrderHooks=[])).push(n,s),(e.preOrderCheckHooks||(e.preOrderCheckHooks=[])).push(n,s))}(e,s[e],t)}finally{null!==l&&oi(l),Yo(a),o.resolving=!1,gp()}}return r}function Tp(n,t,e){return!!(e[t+(n>>5)]&1<<n)}function Ap(n,t){return!(n&H.Self||n&H.Host&&t)}class br{constructor(t,e){this._tNode=t,this._lView=e}get(t,e,i){return Sp(this._tNode,this._lView,t,i,e)}}function $e(n){return ai(()=>{const t=n.prototype.constructor,e=t[Wn]||Oc(t),i=Object.prototype;let r=Object.getPrototypeOf(n.prototype).constructor;for(;r&&r!==i;){const s=r[Wn]||Oc(r);if(s&&s!==e)return s;r=Object.getPrototypeOf(r)}return s=>new s})}function Oc(n){return $f(n)?()=>{const t=Oc(z(n));return t&&t()}:Ri(n)}function Ds(n){return function h0(n,t){if("class"===t)return n.classes;if("style"===t)return n.styles;const e=n.attrs;if(e){const i=e.length;let r=0;for(;r<i;){const s=e[r];if(yp(s))break;if(0===s)r+=2;else if("number"==typeof s)for(r++;r<i&&"string"==typeof e[r];)r++;else{if(s===t)return e[r+1];r+=2}}}return null}(Xe(),n)}const wr="__parameters__";function Dr(n,t,e){return ai(()=>{const i=function Fc(n){return function(...e){if(n){const i=n(...e);for(const r in i)this[r]=i[r]}}}(t);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(wr)?l[wr]:Object.defineProperty(l,wr,{value:[]})[wr];for(;d.length<=u;)d.push(null);return(d[u]=d[u]||[]).push(o),l}}return e&&(r.prototype=Object.create(e.prototype)),r.prototype.ngMetadataName=n,r.annotationCls=r,r})}class T{constructor(t,e){this._desc=t,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,"number"==typeof e?this.__NG_ELEMENT_ID__=e:void 0!==e&&(this.\u0275prov=x({token:this,providedIn:e.providedIn||"root",factory:e.factory}))}toString(){return`InjectionToken ${this._desc}`}}function en(n,t){void 0===t&&(t=n);for(let e=0;e<n.length;e++){let i=n[e];Array.isArray(i)?(t===n&&(t=n.slice(0,e)),en(i,t)):t!==n&&t.push(i)}return t}function kn(n,t){n.forEach(e=>Array.isArray(e)?kn(e,t):t(e))}function xp(n,t,e){t>=n.length?n.push(e):n.splice(t,0,e)}function Jo(n,t){return t>=n.length-1?n.pop():n.splice(t,1)[0]}function Ts(n,t){const e=[];for(let i=0;i<n;i++)e.push(t);return e}function jt(n,t,e){let i=Sr(n,t);return i>=0?n[1|i]=e:(i=~i,function v0(n,t,e,i){let r=n.length;if(r==t)n.push(e,i);else if(1===r)n.push(i,n[0]),n[0]=e;else{for(r--,n.push(n[r-1],n[r]);r>t;)n[r]=n[r-2],r--;n[t]=e,n[t+1]=i}}(n,i,t,e)),i}function Nc(n,t){const e=Sr(n,t);if(e>=0)return n[1|e]}function Sr(n,t){return function Fp(n,t,e){let i=0,r=n.length>>e;for(;r!==i;){const s=i+(r-i>>1),o=n[s<<e];if(t===o)return s<<e;o>t?r=s:i=s+1}return~(r<<e)}(n,t,1)}const As={},Lc="__NG_DI_FLAG__",ta="ngTempTokenPath",M0=/\n/gm,Np="__source",A0=ve({provide:String,useValue:ve});let Is;function Pp(n){const t=Is;return Is=n,t}function I0(n,t=H.Default){if(void 0===Is)throw new A(203,"");return null===Is?Wf(n,void 0,t):Is.get(n,t&H.Optional?null:void 0,t)}function v(n,t=H.Default){return(function pD(){return oc}()||I0)(z(n),t)}const na=v;function Vc(n){const t=[];for(let e=0;e<n.length;e++){const i=z(n[e]);if(Array.isArray(i)){if(0===i.length)throw new A(900,"");let r,s=H.Default;for(let o=0;o<i.length;o++){const a=i[o],l=x0(a);"number"==typeof l?-1===l?r=a.token:s|=l:r=a}t.push(v(r,s))}else t.push(v(i))}return t}function xs(n,t){return n[Lc]=t,n.prototype[Lc]=t,n}function x0(n){return n[Lc]}const Ni=xs(Dr("Optional"),8),ks=xs(Dr("SkipSelf"),4);var $t=(()=>(($t=$t||{})[$t.Important=1]="Important",$t[$t.DashCase=2]="DashCase",$t))();const zp="__ngContext__";function ft(n,t){n[zp]=t}function $c(n){const t=function Fs(n){return n[zp]||null}(n);return t?Array.isArray(t)?t:t.lView:null}function zc(n,t){return undefined(n,t)}function Rs(n){const t=n[3];return pn(t)?t[3]:t}function Gc(n){return Xp(n[13])}function Wc(n){return Xp(n[4])}function Xp(n){for(;null!==n&&!pn(n);)n=n[4];return n}function Tr(n,t,e,i,r){if(null!=i){let s,o=!1;pn(i)?s=i:In(i)&&(o=!0,i=i[0]);const a=je(i);0===n&&null!==e?null==r?im(t,e,a):Pi(t,e,a,r||null,!0):1===n&&null!==e?Pi(t,e,a,r||null,!0):2===n?function Jc(n,t,e){const i=ra(n,t);i&&function aS(n,t,e,i){Pe(n)?n.removeChild(t,e,i):t.removeChild(e)}(n,i,t,e)}(t,a,o):3===n&&t.destroyNode(a),null!=s&&function uS(n,t,e,i,r){const s=e[7];s!==je(e)&&Tr(t,n,i,s,r);for(let a=10;a<e.length;a++){const l=e[a];Ns(l[1],l,n,t,i,s)}}(t,n,s,e,r)}}function Kc(n,t,e){if(Pe(n))return n.createElement(t,e);{const i=null!==e?function FD(n){const t=n.toLowerCase();return"svg"===t?"http://www.w3.org/2000/svg":"math"===t?"http://www.w3.org/1998/MathML/":null}(e):null;return null===i?n.createElement(t):n.createElementNS(i,t)}}function Jp(n,t){const e=n[9],i=e.indexOf(t),r=t[3];1024&t[2]&&(t[2]&=-1025,bc(r,-1)),e.splice(i,1)}function Yc(n,t){if(n.length<=10)return;const e=10+t,i=n[e];if(i){const r=i[17];null!==r&&r!==n&&Jp(r,i),t>0&&(n[e-1][4]=i[4]);const s=Jo(n,10+t);!function J0(n,t){Ns(n,t,t[U],2,null,null),t[0]=null,t[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 em(n,t){if(!(256&t[2])){const e=t[U];Pe(e)&&e.destroyNode&&Ns(n,t,e,3,null,null),function nS(n){let t=n[13];if(!t)return Zc(n[1],n);for(;t;){let e=null;if(In(t))e=t[13];else{const i=t[10];i&&(e=i)}if(!e){for(;t&&!t[4]&&t!==n;)In(t)&&Zc(t[1],t),t=t[3];null===t&&(t=n),In(t)&&Zc(t[1],t),e=t&&t[4]}t=e}}(t)}}function Zc(n,t){if(!(256&t[2])){t[2]&=-129,t[2]|=256,function oS(n,t){let e;if(null!=n&&null!=(e=n.destroyHooks))for(let i=0;i<e.length;i+=2){const r=t[e[i]];if(!(r instanceof bs)){const s=e[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,t),function sS(n,t){const e=n.cleanup,i=t[7];let r=-1;if(null!==e)for(let s=0;s<e.length-1;s+=2)if("string"==typeof e[s]){const o=e[s+1],a="function"==typeof o?o(t):je(t[o]),l=i[r=e[s+2]],c=e[s+3];"boolean"==typeof c?a.removeEventListener(e[s],l,c):c>=0?i[r=c]():i[r=-c].unsubscribe(),s+=2}else{const o=i[r=e[s+1]];e[s].call(o)}if(null!==i){for(let s=r+1;s<i.length;s++)i[s]();t[7]=null}}(n,t),1===t[1].type&&Pe(t[U])&&t[U].destroy();const e=t[17];if(null!==e&&pn(t[3])){e!==t[3]&&Jp(e,t);const i=t[19];null!==i&&i.detachView(n)}}}function tm(n,t,e){return function nm(n,t,e){let i=t;for(;null!==i&&40&i.type;)i=(t=i).parent;if(null===i)return e[0];if(2&i.flags){const r=n.data[i.directiveStart].encapsulation;if(r===hn.None||r===hn.Emulated)return null}return Bt(i,e)}(n,t.parent,e)}function Pi(n,t,e,i,r){Pe(n)?n.insertBefore(t,e,i,r):t.insertBefore(e,i,r)}function im(n,t,e){Pe(n)?n.appendChild(t,e):t.appendChild(e)}function rm(n,t,e,i,r){null!==i?Pi(n,t,e,i,r):im(n,t,e)}function ra(n,t){return Pe(n)?n.parentNode(t):t.parentNode}function sm(n,t,e){return am(n,t,e)}let aa,am=function om(n,t,e){return 40&n.type?Bt(n,e):null};function sa(n,t,e,i){const r=tm(n,i,t),s=t[U],a=sm(i.parent||t[6],i,t);if(null!=r)if(Array.isArray(e))for(let l=0;l<e.length;l++)rm(s,r,e[l],a,!1);else rm(s,r,e,a,!1)}function oa(n,t){if(null!==t){const e=t.type;if(3&e)return Bt(t,n);if(4&e)return Qc(-1,n[t.index]);if(8&e){const i=t.child;if(null!==i)return oa(n,i);{const r=n[t.index];return pn(r)?Qc(-1,r):je(r)}}if(32&e)return zc(t,n)()||je(n[t.index]);{const i=cm(n,t);return null!==i?Array.isArray(i)?i[0]:oa(Rs(n[16]),i):oa(n,t.next)}}return null}function cm(n,t){return null!==t?n[16][6].projection[t.projection]:null}function Qc(n,t){const e=10+n+1;if(e<t.length){const i=t[e],r=i[1].firstChild;if(null!==r)return oa(i,r)}return t[7]}function eu(n,t,e,i,r,s,o){for(;null!=e;){const a=i[e.index],l=e.type;if(o&&0===t&&(a&&ft(je(a),i),e.flags|=4),64!=(64&e.flags))if(8&l)eu(n,t,e.child,i,r,s,!1),Tr(t,n,r,a,s);else if(32&l){const c=zc(e,i);let u;for(;u=c();)Tr(t,n,r,u,s);Tr(t,n,r,a,s)}else 16&l?um(n,t,i,e,r,s):Tr(t,n,r,a,s);e=o?e.projectionNext:e.next}}function Ns(n,t,e,i,r,s){eu(e,i,n.firstChild,t,r,s,!1)}function um(n,t,e,i,r,s){const o=e[16],l=o[6].projection[i.projection];if(Array.isArray(l))for(let c=0;c<l.length;c++)Tr(t,n,r,l[c],s);else eu(n,t,l,o[3],r,s,!0)}function dm(n,t,e){Pe(n)?n.setAttribute(t,"style",e):t.style.cssText=e}function tu(n,t,e){Pe(n)?""===e?n.removeAttribute(t,"class"):n.setAttribute(t,"class",e):t.className=e}function Li(n){var t;return(null===(t=function nu(){if(void 0===aa&&(aa=null,ge.trustedTypes))try{aa=ge.trustedTypes.createPolicy("angular",{createHTML:n=>n,createScript:n=>n,createScriptURL:n=>n})}catch(n){}return aa}())||void 0===t?void 0:t.createHTML(n))||n}class Vi{constructor(t){this.changingThisBreaksApplicationSecurity=t}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see https://g.co/ng/security#xss)`}}class mS extends Vi{getTypeName(){return"HTML"}}class gS extends Vi{getTypeName(){return"Style"}}class _S extends Vi{getTypeName(){return"Script"}}class yS extends Vi{getTypeName(){return"URL"}}class vS extends Vi{getTypeName(){return"ResourceURL"}}function Ut(n){return n instanceof Vi?n.changingThisBreaksApplicationSecurity:n}function On(n,t){const e=mm(n);if(null!=e&&e!==t){if("ResourceURL"===e&&"URL"===t)return!0;throw new Error(`Required a safe ${t}, got a ${e} (see https://g.co/ng/security#xss)`)}return e===t}function mm(n){return n instanceof Vi&&n.getTypeName()||null}class SS{constructor(t){this.inertDocumentHelper=t}getInertBodyElement(t){t="<body><remove></remove>"+t;try{const e=(new window.DOMParser).parseFromString(Li(t),"text/html").body;return null===e?this.inertDocumentHelper.getInertBodyElement(t):(e.removeChild(e.firstChild),e)}catch(e){return null}}}class MS{constructor(t){if(this.defaultDoc=t,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert"),null==this.inertDocument.body){const e=this.inertDocument.createElement("html");this.inertDocument.appendChild(e);const i=this.inertDocument.createElement("body");e.appendChild(i)}}getInertBodyElement(t){const e=this.inertDocument.createElement("template");if("content"in e)return e.innerHTML=Li(t),e;const i=this.inertDocument.createElement("body");return i.innerHTML=Li(t),this.defaultDoc.documentMode&&this.stripCustomNsAttrs(i),i}stripCustomNsAttrs(t){const e=t.attributes;for(let r=e.length-1;0<r;r--){const o=e.item(r).name;("xmlns:ns1"===o||0===o.indexOf("ns1:"))&&t.removeAttribute(o)}let i=t.firstChild;for(;i;)i.nodeType===Node.ELEMENT_NODE&&this.stripCustomNsAttrs(i),i=i.nextSibling}}const AS=/^(?:(?:https?|mailto|ftp|tel|file|sms):|[^&:/?#]*(?:[/?#]|$))/gi,IS=/^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 Ps(n){return(n=String(n)).match(AS)||n.match(IS)?n:"unsafe:"+n}function _m(n){return(n=String(n)).split(",").map(t=>Ps(t.trim())).join(", ")}function Fn(n){const t={};for(const e of n.split(","))t[e]=!0;return t}function Ls(...n){const t={};for(const e of n)for(const i in e)e.hasOwnProperty(i)&&(t[i]=!0);return t}const ym=Fn("area,br,col,hr,img,wbr"),vm=Fn("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),bm=Fn("rp,rt"),ru=Ls(ym,Ls(vm,Fn("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")),Ls(bm,Fn("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")),Ls(bm,vm)),su=Fn("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),ou=Fn("srcset"),Cm=Ls(su,ou,Fn("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"),Fn("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")),xS=Fn("script,style,template");class kS{constructor(){this.sanitizedSomething=!1,this.buf=[]}sanitizeChildren(t){let e=t.firstChild,i=!0;for(;e;)if(e.nodeType===Node.ELEMENT_NODE?i=this.startElement(e):e.nodeType===Node.TEXT_NODE?this.chars(e.nodeValue):this.sanitizedSomething=!0,i&&e.firstChild)e=e.firstChild;else for(;e;){e.nodeType===Node.ELEMENT_NODE&&this.endElement(e);let r=this.checkClobberedElement(e,e.nextSibling);if(r){e=r;break}e=this.checkClobberedElement(e,e.parentNode)}return this.buf.join("")}startElement(t){const e=t.nodeName.toLowerCase();if(!ru.hasOwnProperty(e))return this.sanitizedSomething=!0,!xS.hasOwnProperty(e);this.buf.push("<"),this.buf.push(e);const i=t.attributes;for(let r=0;r<i.length;r++){const s=i.item(r),o=s.name,a=o.toLowerCase();if(!Cm.hasOwnProperty(a)){this.sanitizedSomething=!0;continue}let l=s.value;su[a]&&(l=Ps(l)),ou[a]&&(l=_m(l)),this.buf.push(" ",o,'="',wm(l),'"')}return this.buf.push(">"),!0}endElement(t){const e=t.nodeName.toLowerCase();ru.hasOwnProperty(e)&&!ym.hasOwnProperty(e)&&(this.buf.push("</"),this.buf.push(e),this.buf.push(">"))}chars(t){this.buf.push(wm(t))}checkClobberedElement(t,e){if(e&&(t.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_CONTAINED_BY)===Node.DOCUMENT_POSITION_CONTAINED_BY)throw new Error(`Failed to sanitize html because the element is clobbered: ${t.outerHTML}`);return e}}const OS=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,FS=/([^\#-~ |!])/g;function wm(n){return n.replace(/&/g,"&").replace(OS,function(t){return"&#"+(1024*(t.charCodeAt(0)-55296)+(t.charCodeAt(1)-56320)+65536)+";"}).replace(FS,function(t){return"&#"+t.charCodeAt(0)+";"}).replace(/</g,"<").replace(/>/g,">")}let ca;function Em(n,t){let e=null;try{ca=ca||function gm(n){const t=new MS(n);return function TS(){try{return!!(new window.DOMParser).parseFromString(Li(""),"text/html")}catch(n){return!1}}()?new SS(t):t}(n);let i=t?String(t):"";e=ca.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=e.innerHTML,e=ca.getInertBodyElement(i)}while(i!==s);return Li((new kS).sanitizeChildren(au(e)||e))}finally{if(e){const i=au(e)||e;for(;i.firstChild;)i.removeChild(i.firstChild)}}}function au(n){return"content"in n&&function RS(n){return n.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===n.nodeName}(n)?n.content:null}var ae=(()=>((ae=ae||{})[ae.NONE=0]="NONE",ae[ae.HTML=1]="HTML",ae[ae.STYLE=2]="STYLE",ae[ae.SCRIPT=3]="SCRIPT",ae[ae.URL=4]="URL",ae[ae.RESOURCE_URL=5]="RESOURCE_URL",ae))();function cu(n){return n.ngOriginalError}function GS(n,...t){n.error(...t)}class hi{constructor(){this._console=console}handleError(t){const e=this._findOriginalError(t),i=function zS(n){return n&&n.ngErrorLogger||GS}(t);i(this._console,"ERROR",t),e&&i(this._console,"ORIGINAL ERROR",e)}_findOriginalError(t){let e=t&&cu(t);for(;e&&cu(e);)e=cu(e);return e||null}}const QS=(()=>("undefined"!=typeof requestAnimationFrame&&requestAnimationFrame||setTimeout).bind(ge))();function Rn(n){return n instanceof Function?n():n}function Tm(n,t,e){let i=n.length;for(;;){const r=n.indexOf(t,e);if(-1===r)return r;if(0===r||n.charCodeAt(r-1)<=32){const s=t.length;if(r+s===i||n.charCodeAt(r+s)<=32)return r}e=r+1}}const Am="ng-template";function nM(n,t,e){let i=0;for(;i<n.length;){let r=n[i++];if(e&&"class"===r){if(r=n[i],-1!==Tm(r.toLowerCase(),t,0))return!0}else if(1===r){for(;i<n.length&&"string"==typeof(r=n[i++]);)if(r.toLowerCase()===t)return!0;return!1}}return!1}function Im(n){return 4===n.type&&n.value!==Am}function iM(n,t,e){return t===(4!==n.type||e?n.value:Am)}function rM(n,t,e){let i=4;const r=n.attrs||[],s=function aM(n){for(let t=0;t<n.length;t++)if(yp(n[t]))return t;return n.length}(r);let o=!1;for(let a=0;a<t.length;a++){const l=t[a];if("number"!=typeof l){if(!o)if(4&i){if(i=2|1&i,""!==l&&!iM(n,l,e)||""===l&&1===t.length){if(_n(i))return!1;o=!0}}else{const c=8&i?l:t[++a];if(8&i&&null!==n.attrs){if(!nM(n.attrs,c,e)){if(_n(i))return!1;o=!0}continue}const d=sM(8&i?"class":l,r,Im(n),e);if(-1===d){if(_n(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!==Tm(f,c,0)||2&i&&c!==h){if(_n(i))return!1;o=!0}}}}else{if(!o&&!_n(i)&&!_n(l))return!1;if(o&&_n(l))continue;o=!1,i=l|1&i}}return _n(i)||o}function _n(n){return 0==(1&n)}function sM(n,t,e,i){if(null===t)return-1;let r=0;if(i||!e){let s=!1;for(;r<t.length;){const o=t[r];if(o===n)return r;if(3===o||6===o)s=!0;else{if(1===o||2===o){let a=t[++r];for(;"string"==typeof a;)a=t[++r];continue}if(4===o)break;if(0===o){r+=4;continue}}r+=s?1:2}return-1}return function lM(n,t){let e=n.indexOf(4);if(e>-1)for(e++;e<n.length;){const i=n[e];if("number"==typeof i)return-1;if(i===t)return e;e++}return-1}(t,n)}function xm(n,t,e=!1){for(let i=0;i<t.length;i++)if(rM(n,t[i],e))return!0;return!1}function cM(n,t){e:for(let e=0;e<t.length;e++){const i=t[e];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 km(n,t){return n?":not("+t.trim()+")":t}function uM(n){let t=n[0],e=1,i=2,r="",s=!1;for(;e<n.length;){let o=n[e];if("string"==typeof o)if(2&i){const a=n[++e];r+="["+o+(a.length>0?'="'+a+'"':"")+"]"}else 8&i?r+="."+o:4&i&&(r+=" "+o);else""!==r&&!_n(o)&&(t+=km(s,r),r=""),i=o,s=s||!_n(i);e++}return""!==r&&(t+=km(s,r)),t}const V={};function j(n){Om(te(),C(),vt()+n,!1)}function Om(n,t,e,i){if(!i)if(3==(3&t[2])){const s=n.preOrderCheckHooks;null!==s&&Go(t,s,e)}else{const s=n.preOrderHooks;null!==s&&Wo(t,s,0,e)}ui(e)}function ua(n,t){return n<<17|t<<2}function yn(n){return n>>17&32767}function uu(n){return 2|n}function Yn(n){return(131068&n)>>2}function du(n,t){return-131069&n|t<<2}function hu(n){return 1|n}function Um(n,t){const e=n.contentQueries;if(null!==e)for(let i=0;i<e.length;i+=2){const r=e[i],s=e[i+1];if(-1!==s){const o=n.data[s];Sc(r),o.contentQueries(2,t[s],s)}}}function Bs(n,t,e,i,r,s,o,a,l,c){const u=t.blueprint.slice();return u[0]=r,u[2]=140|i,sp(u),u[3]=u[15]=n,u[8]=e,u[10]=o||n&&n[10],u[U]=a||n&&n[U],u[12]=l||n&&n[12]||null,u[9]=c||n&&n[9]||null,u[6]=s,u[16]=2==t.type?n[16]:u,u}function Ir(n,t,e,i,r){let s=n.data[t];if(null===s)s=function Cu(n,t,e,i,r){const s=lp(),o=Cc(),l=n.data[t]=function AM(n,t,e,i,r,s){return{type:e,index:i,insertBeforeIndex:null,injectorIndex:t?t.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:t,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,e,t,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,t,e,i,r),function GD(){return L.lFrame.inI18n}()&&(s.flags|=64);else if(64&s.type){s.type=e,s.value=i,s.attrs=r;const o=function vs(){const n=L.lFrame,t=n.currentTNode;return n.isParent?t:t.parent}();s.injectorIndex=null===o?-1:o.injectorIndex}return xn(s,!0),s}function xr(n,t,e,i){if(0===e)return-1;const r=t.length;for(let s=0;s<e;s++)t.push(i),n.blueprint.push(i),n.data.push(null);return r}function Hs(n,t,e){$o(t);try{const i=n.viewQuery;null!==i&&xu(1,i,e);const r=n.template;null!==r&&zm(n,t,r,1,e),n.firstCreatePass&&(n.firstCreatePass=!1),n.staticContentQueries&&Um(n,t),n.staticViewQueries&&xu(2,n.viewQuery,e);const s=n.components;null!==s&&function SM(n,t){for(let e=0;e<t.length;e++)WM(n,t[e])}(t,s)}catch(i){throw n.firstCreatePass&&(n.incompleteFirstPass=!0,n.firstCreatePass=!1),i}finally{t[2]&=-5,Uo()}}function kr(n,t,e,i){const r=t[2];if(256!=(256&r)){$o(t);try{sp(t),function cp(n){return L.lFrame.bindingIndex=n}(n.bindingStartIndex),null!==e&&zm(n,t,e,2,i);const o=3==(3&r);if(o){const c=n.preOrderCheckHooks;null!==c&&Go(t,c,null)}else{const c=n.preOrderHooks;null!==c&&Wo(t,c,0,null),Mc(t,0)}if(function zM(n){for(let t=Gc(n);null!==t;t=Wc(t)){if(!t[2])continue;const e=t[9];for(let i=0;i<e.length;i++){const r=e[i],s=r[3];0==(1024&r[2])&&bc(s,1),r[2]|=1024}}}(t),function UM(n){for(let t=Gc(n);null!==t;t=Wc(t))for(let e=10;e<t.length;e++){const i=t[e],r=i[1];vc(i)&&kr(r,i,r.template,i[8])}}(t),null!==n.contentQueries&&Um(n,t),o){const c=n.contentCheckHooks;null!==c&&Go(t,c)}else{const c=n.contentHooks;null!==c&&Wo(t,c,1),Mc(t,1)}!function EM(n,t){const e=n.hostBindingOpCodes;if(null!==e)try{for(let i=0;i<e.length;i++){const r=e[i];if(r<0)ui(~r);else{const s=r,o=e[++i],a=e[++i];WD(o,s),a(2,t[s])}}}finally{ui(-1)}}(n,t);const a=n.components;null!==a&&function DM(n,t){for(let e=0;e<t.length;e++)GM(n,t[e])}(t,a);const l=n.viewQuery;if(null!==l&&xu(2,l,i),o){const c=n.viewCheckHooks;null!==c&&Go(t,c)}else{const c=n.viewHooks;null!==c&&Wo(t,c,2),Mc(t,2)}!0===n.firstUpdatePass&&(n.firstUpdatePass=!1),t[2]&=-73,1024&t[2]&&(t[2]&=-1025,bc(t[3],-1))}finally{Uo()}}}function MM(n,t,e,i){const r=t[10],o=rp(t);try{!o&&r.begin&&r.begin(),o&&Hs(n,t,i),kr(n,t,e,i)}finally{!o&&r.end&&r.end()}}function zm(n,t,e,i,r){const s=vt(),o=2&i;try{ui(-1),o&&t.length>20&&Om(n,t,20,!1),e(i,r)}finally{ui(s)}}function Gm(n,t,e){if(dc(t)){const r=t.directiveEnd;for(let s=t.directiveStart;s<r;s++){const o=n.data[s];o.contentQueries&&o.contentQueries(1,e[s],s)}}}function wu(n,t,e){!ap()||(function NM(n,t,e,i){const r=e.directiveStart,s=e.directiveEnd;n.firstCreatePass||ws(e,t),ft(i,t);const o=e.initialInputs;for(let a=r;a<s;a++){const l=n.data[a],c=mn(l);c&&HM(t,e,l);const u=Es(t,n,a,e);ft(u,t),null!==o&&jM(0,a-r,u,l,0,o),c&&(Ht(e.index,t)[8]=u)}}(n,t,e,Bt(e,t)),128==(128&e.flags)&&function PM(n,t,e){const i=e.directiveStart,r=e.directiveEnd,o=e.index,a=function qD(){return L.lFrame.currentDirectiveIndex}();try{ui(o);for(let l=i;l<r;l++){const c=n.data[l],u=t[l];Ec(l),(null!==c.hostBindings||0!==c.hostVars||null!==c.hostAttrs)&&Jm(c,u)}}finally{ui(-1),Ec(a)}}(n,t,e))}function Eu(n,t,e=Bt){const i=t.localNames;if(null!==i){let r=t.index+1;for(let s=0;s<i.length;s+=2){const o=i[s+1],a=-1===o?e(t,n):n[o];n[r++]=a}}}function Wm(n){const t=n.tView;return null===t||t.incompleteFirstPass?n.tView=fa(1,null,n.template,n.decls,n.vars,n.directiveDefs,n.pipeDefs,n.viewQuery,n.schemas,n.consts):t}function fa(n,t,e,i,r,s,o,a,l,c){const u=20+i,d=u+r,h=function TM(n,t){const e=[];for(let i=0;i<t;i++)e.push(i<n?null:V);return e}(u,d),f="function"==typeof c?c():c;return h[1]={type:n,blueprint:h,template:e,queries:null,viewQuery:a,declTNode:t,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 Ym(n,t,e,i){const r=sg(t);null===e?r.push(i):(r.push(e),n.firstCreatePass&&og(n).push(i,r.length-1))}function Zm(n,t,e){for(let i in n)if(n.hasOwnProperty(i)){const r=n[i];(e=null===e?{}:e).hasOwnProperty(i)?e[i].push(t,r):e[i]=[t,r]}return e}function zt(n,t,e,i,r,s,o,a){const l=Bt(t,e);let u,c=t.inputs;!a&&null!=c&&(u=c[i])?(cg(n,e,u,i,r),Vo(t)&&function kM(n,t){const e=Ht(t,n);16&e[2]||(e[2]|=64)}(e,t.index)):3&t.type&&(i=function xM(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,t.value||"",i):r,Pe(s)?s.setProperty(l,i,r):Ac(i)||(l.setProperty?l.setProperty(i,r):l[i]=r))}function Du(n,t,e,i){let r=!1;if(ap()){const s=function LM(n,t,e){const i=n.directiveRegistry;let r=null;if(i)for(let s=0;s<i.length;s++){const o=i[s];xm(e,o.selectors,!1)&&(r||(r=[]),Xo(ws(e,t),n,o.type),mn(o)?(eg(n,e),r.unshift(o)):r.push(o))}return r}(n,t,e),o=null===i?null:{"":-1};if(null!==s){r=!0,tg(e,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=xr(n,t,s.length,null);for(let u=0;u<s.length;u++){const d=s[u];e.mergedAttrs=Ko(e.mergedAttrs,d.hostAttrs),ng(n,e,t,c,d),BM(c,d,o),null!==d.contentQueries&&(e.flags|=8),(null!==d.hostBindings||null!==d.hostAttrs||0!==d.hostVars)&&(e.flags|=128);const h=d.type.prototype;!a&&(h.ngOnChanges||h.ngOnInit||h.ngDoCheck)&&((n.preOrderHooks||(n.preOrderHooks=[])).push(e.index),a=!0),!l&&(h.ngOnChanges||h.ngDoCheck)&&((n.preOrderCheckHooks||(n.preOrderCheckHooks=[])).push(e.index),l=!0),c++}!function IM(n,t){const i=t.directiveEnd,r=n.data,s=t.attrs,o=[];let a=null,l=null;for(let c=t.directiveStart;c<i;c++){const u=r[c],d=u.inputs,h=null===s||Im(t)?null:$M(d,s);o.push(h),a=Zm(d,c,a),l=Zm(u.outputs,c,l)}null!==a&&(a.hasOwnProperty("class")&&(t.flags|=16),a.hasOwnProperty("style")&&(t.flags|=32)),t.initialInputs=o,t.inputs=a,t.outputs=l}(n,e)}o&&function VM(n,t,e){if(t){const i=n.localNames=[];for(let r=0;r<t.length;r+=2){const s=e[t[r+1]];if(null==s)throw new A(-301,!1);i.push(t[r],s)}}}(e,i,o)}return e.mergedAttrs=Ko(e.mergedAttrs,e.attrs),r}function Qm(n,t,e,i,r,s){const o=s.hostBindings;if(o){let a=n.hostBindingOpCodes;null===a&&(a=n.hostBindingOpCodes=[]);const l=~t.index;(function RM(n){let t=n.length;for(;t>0;){const e=n[--t];if("number"==typeof e&&e<0)return e}return 0})(a)!=l&&a.push(l),a.push(i,r,o)}}function Jm(n,t){null!==n.hostBindings&&n.hostBindings(1,t)}function eg(n,t){t.flags|=2,(n.components||(n.components=[])).push(t.index)}function BM(n,t,e){if(e){if(t.exportAs)for(let i=0;i<t.exportAs.length;i++)e[t.exportAs[i]]=n;mn(t)&&(e[""]=n)}}function tg(n,t,e){n.flags|=1,n.directiveStart=t,n.directiveEnd=t+e,n.providerIndexes=t}function ng(n,t,e,i,r){n.data[i]=r;const s=r.factory||(r.factory=Ri(r.type)),o=new bs(s,mn(r),null);n.blueprint[i]=o,e[i]=o,Qm(n,t,0,i,xr(n,e,r.hostVars,V),r)}function HM(n,t,e){const i=Bt(t,n),r=Wm(e),s=n[10],o=pa(n,Bs(n,r,null,e.onPush?64:16,i,t,s,s.createRenderer(i,e),null,null));n[t.index]=o}function Nn(n,t,e,i,r,s){const o=Bt(n,t);!function Su(n,t,e,i,r,s,o){if(null==s)Pe(n)?n.removeAttribute(t,r,e):t.removeAttribute(r);else{const a=null==o?P(s):o(s,i||"",r);Pe(n)?n.setAttribute(t,r,a,e):e?t.setAttributeNS(e,r,a):t.setAttribute(r,a)}}(t[U],o,s,n.value,e,i,r)}function jM(n,t,e,i,r,s){const o=s[t];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(e,d,c,u):e[u]=d}}}function $M(n,t){let e=null,i=0;for(;i<t.length;){const r=t[i];if(0!==r)if(5!==r){if("number"==typeof r)break;n.hasOwnProperty(r)&&(null===e&&(e=[]),e.push(r,n[r],t[i+1])),i+=2}else i+=2;else i+=4}return e}function ig(n,t,e,i){return new Array(n,!0,!1,t,null,0,i,e,null,null)}function GM(n,t){const e=Ht(t,n);if(vc(e)){const i=e[1];80&e[2]?kr(i,e,i.template,e[8]):e[5]>0&&Mu(e)}}function Mu(n){for(let i=Gc(n);null!==i;i=Wc(i))for(let r=10;r<i.length;r++){const s=i[r];if(1024&s[2]){const o=s[1];kr(o,s,o.template,s[8])}else s[5]>0&&Mu(s)}const e=n[1].components;if(null!==e)for(let i=0;i<e.length;i++){const r=Ht(e[i],n);vc(r)&&r[5]>0&&Mu(r)}}function WM(n,t){const e=Ht(t,n),i=e[1];(function qM(n,t){for(let e=t.length;e<n.blueprint.length;e++)t.push(n.blueprint[e])})(i,e),Hs(i,e,e[8])}function pa(n,t){return n[13]?n[14][4]=t:n[13]=t,n[14]=t,t}function Tu(n){for(;n;){n[2]|=64;const t=Rs(n);if(DD(n)&&!t)return n;n=t}return null}function rg(n){!function Au(n){for(let t=0;t<n.components.length;t++){const e=n.components[t],i=$c(e),r=i[1];MM(r,i,r.template,e)}}(n[8])}function xu(n,t,e){Sc(0),t(n,e)}const YM=(()=>Promise.resolve(null))();function sg(n){return n[7]||(n[7]=[])}function og(n){return n.cleanup||(n.cleanup=[])}function lg(n,t){const e=n[9],i=e?e.get(hi,null):null;i&&i.handleError(t)}function cg(n,t,e,i,r){for(let s=0;s<e.length;){const o=e[s++],a=e[s++],l=t[o],c=n.data[o];null!==c.setInput?c.setInput(l,r,i,a):l[a]=r}}function Zn(n,t,e){const i=Ho(t,n);!function Qp(n,t,e){Pe(n)?n.setValue(t,e):t.textContent=e}(n[U],i,e)}function ma(n,t,e){let i=e?n.styles:null,r=e?n.classes:null,s=0;if(null!==t)for(let o=0;o<t.length;o++){const a=t[o];"number"==typeof a?s=a:1==s?r=nc(r,a):2==s&&(i=nc(i,a+": "+t[++o]+";"))}e?n.styles=i:n.stylesWithoutHost=i,e?n.classes=r:n.classesWithoutHost=r}const ku=new T("INJECTOR",-1);class ug{get(t,e=As){if(e===As){const i=new Error(`NullInjectorError: No provider for ${he(t)}!`);throw i.name="NullInjectorError",i}return e}}const Ou=new T("Set Injector scope."),js={},QM={};let Fu;function dg(){return void 0===Fu&&(Fu=new ug),Fu}function hg(n,t=null,e=null,i){const r=fg(n,t,e,i);return r._resolveInjectorDefTypes(),r}function fg(n,t=null,e=null,i){return new JM(n,e,t||dg(),i)}class JM{constructor(t,e,i,r=null){this.parent=i,this.records=new Map,this.injectorDefTypes=new Set,this.onDestroy=new Set,this._destroyed=!1;const s=[];e&&kn(e,a=>this.processProvider(a,t,e)),kn([t],a=>this.processInjectorType(a,[],s)),this.records.set(ku,Or(void 0,this));const o=this.records.get(Ou);this.scope=null!=o?o.value:null,this.source=r||("object"==typeof t?null:he(t))}get destroyed(){return this._destroyed}destroy(){this.assertNotDestroyed(),this._destroyed=!0;try{this.onDestroy.forEach(t=>t.ngOnDestroy())}finally{this.records.clear(),this.onDestroy.clear(),this.injectorDefTypes.clear()}}get(t,e=As,i=H.Default){this.assertNotDestroyed();const r=Pp(this),s=oi(void 0);try{if(!(i&H.SkipSelf)){let a=this.records.get(t);if(void 0===a){const l=function aT(n){return"function"==typeof n||"object"==typeof n&&n instanceof T}(t)&&rc(t);a=l&&this.injectableDefInScope(l)?Or(Ru(t),js):null,this.records.set(t,a)}if(null!=a)return this.hydrate(t,a)}return(i&H.Self?dg():this.parent).get(t,e=i&H.Optional&&e===As?null:e)}catch(o){if("NullInjectorError"===o.name){if((o[ta]=o[ta]||[]).unshift(he(t)),r)throw o;return function k0(n,t,e,i){const r=n[ta];throw t[Np]&&r.unshift(t[Np]),n.message=function O0(n,t,e,i=null){n=n&&"\n"===n.charAt(0)&&"\u0275"==n.charAt(1)?n.substr(2):n;let r=he(t);if(Array.isArray(t))r=t.map(he).join(" -> ");else if("object"==typeof t){let s=[];for(let o in t)if(t.hasOwnProperty(o)){let a=t[o];s.push(o+":"+("string"==typeof a?JSON.stringify(a):he(a)))}r=`{${s.join(", ")}}`}return`${e}${i?"("+i+")":""}[${r}]: ${n.replace(M0,"\n ")}`}("\n"+n.message,r,e,i),n.ngTokenPath=r,n[ta]=null,n}(o,t,"R3InjectorError",this.source)}throw o}finally{oi(s),Pp(r)}}_resolveInjectorDefTypes(){this.injectorDefTypes.forEach(t=>this.get(t))}toString(){const t=[];return this.records.forEach((i,r)=>t.push(he(r))),`R3Injector[${t.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new A(205,!1)}processInjectorType(t,e,i){if(!(t=z(t)))return!1;let r=zf(t);const s=null==r&&t.ngModule||void 0,o=void 0===s?t:s,a=-1!==i.indexOf(o);if(void 0!==s&&(r=zf(s)),null==r)return!1;if(null!=r.imports&&!a){let u;i.push(o);try{kn(r.imports,d=>{this.processInjectorType(d,e,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];kn(f,p=>this.processProvider(p,h,f||be))}}this.injectorDefTypes.add(o);const l=Ri(o)||(()=>new o);this.records.set(o,Or(l,js));const c=r.providers;if(null!=c&&!a){const u=t;kn(c,d=>this.processProvider(d,u,c))}return void 0!==s&&void 0!==t.providers}processProvider(t,e,i){let r=Fr(t=z(t))?t:z(t&&t.provide);const s=function tT(n,t,e){return mg(n)?Or(void 0,n.useValue):Or(pg(n),js)}(t);if(Fr(t)||!0!==t.multi)this.records.get(r);else{let o=this.records.get(r);o||(o=Or(void 0,js,!0),o.factory=()=>Vc(o.multi),this.records.set(r,o)),r=t,o.multi.push(t)}this.records.set(r,s)}hydrate(t,e){return e.value===js&&(e.value=QM,e.value=e.factory()),"object"==typeof e.value&&e.value&&function oT(n){return null!==n&&"object"==typeof n&&"function"==typeof n.ngOnDestroy}(e.value)&&this.onDestroy.add(e.value),e.value}injectableDefInScope(t){if(!t.providedIn)return!1;const e=z(t.providedIn);return"string"==typeof e?"any"===e||e===this.scope:this.injectorDefTypes.has(e)}}function Ru(n){const t=rc(n),e=null!==t?t.factory:Ri(n);if(null!==e)return e;if(n instanceof T)throw new A(204,!1);if(n instanceof Function)return function eT(n){const t=n.length;if(t>0)throw Ts(t,"?"),new A(204,!1);const e=function dD(n){const t=n&&(n[Fo]||n[Gf]);if(t){const e=function hD(n){if(n.hasOwnProperty("name"))return n.name;const t=(""+n).match(/^function\s*([^\s(]+)/);return null===t?"":t[1]}(n);return console.warn(`DEPRECATED: DI is instantiating a token "${e}" 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 "${e}" class.`),t}return null}(n);return null!==e?()=>e.factory(n):()=>new n}(n);throw new A(204,!1)}function pg(n,t,e){let i;if(Fr(n)){const r=z(n);return Ri(r)||Ru(r)}if(mg(n))i=()=>z(n.useValue);else if(function iT(n){return!(!n||!n.useFactory)}(n))i=()=>n.useFactory(...Vc(n.deps||[]));else if(function nT(n){return!(!n||!n.useExisting)}(n))i=()=>v(z(n.useExisting));else{const r=z(n&&(n.useClass||n.provide));if(!function sT(n){return!!n.deps}(n))return Ri(r)||Ru(r);i=()=>new r(...Vc(n.deps))}return i}function Or(n,t,e=!1){return{factory:n,value:t,multi:e?[]:void 0}}function mg(n){return null!==n&&"object"==typeof n&&A0 in n}function Fr(n){return"function"==typeof n}let Ct=(()=>{class n{static create(e,i){var r;if(Array.isArray(e))return hg({name:""},i,e,"");{const s=null!==(r=e.name)&&void 0!==r?r:"";return hg({name:s},e.parent,e.providers,s)}}}return n.THROW_IF_NOT_FOUND=As,n.NULL=new ug,n.\u0275prov=x({token:n,providedIn:"any",factory:()=>v(ku)}),n.__NG_ELEMENT_ID__=-1,n})();function mT(n,t){zo($c(n)[1],Xe())}function q(n){let t=function Tg(n){return Object.getPrototypeOf(n.prototype).constructor}(n.type),e=!0;const i=[n];for(;t;){let r;if(mn(n))r=t.\u0275cmp||t.\u0275dir;else{if(t.\u0275cmp)throw new A(903,"");r=t.\u0275dir}if(r){if(e){i.push(r);const o=n;o.inputs=Lu(n.inputs),o.declaredInputs=Lu(n.declaredInputs),o.outputs=Lu(n.outputs);const a=r.hostBindings;a&&vT(n,a);const l=r.viewQuery,c=r.contentQueries;if(l&&_T(n,l),c&&yT(n,c),tc(n.inputs,r.inputs),tc(n.declaredInputs,r.declaredInputs),tc(n.outputs,r.outputs),mn(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===q&&(e=!1)}}t=Object.getPrototypeOf(t)}!function gT(n){let t=0,e=null;for(let i=n.length-1;i>=0;i--){const r=n[i];r.hostVars=t+=r.hostVars,r.hostAttrs=Ko(r.hostAttrs,e=Ko(e,r.hostAttrs))}}(i)}function Lu(n){return n===dr?{}:n===be?[]:n}function _T(n,t){const e=n.viewQuery;n.viewQuery=e?(i,r)=>{t(i,r),e(i,r)}:t}function yT(n,t){const e=n.contentQueries;n.contentQueries=e?(i,r,s)=>{t(i,r,s),e(i,r,s)}:t}function vT(n,t){const e=n.hostBindings;n.hostBindings=e?(i,r)=>{t(i,r),e(i,r)}:t}let ga=null;function Rr(){if(!ga){const n=ge.Symbol;if(n&&n.iterator)ga=n.iterator;else{const t=Object.getOwnPropertyNames(Map.prototype);for(let e=0;e<t.length;++e){const i=t[e];"entries"!==i&&"size"!==i&&Map.prototype[i]===Map.prototype.entries&&(ga=i)}}}return ga}function $s(n){return!!Vu(n)&&(Array.isArray(n)||!(n instanceof Map)&&Rr()in n)}function Vu(n){return null!==n&&("function"==typeof n||"object"==typeof n)}function pt(n,t,e){return!Object.is(n[t],e)&&(n[t]=e,!0)}function nt(n,t,e,i){const r=C();return pt(r,_r(),t)&&(te(),Nn(Oe(),r,n,t,e,i)),nt}function Te(n,t,e,i,r,s,o,a){const l=C(),c=te(),u=n+20,d=c.firstCreatePass?function MT(n,t,e,i,r,s,o,a,l){const c=t.consts,u=Ir(t,n,4,o||null,ci(c,a));Du(t,e,u,ci(c,l)),zo(t,u);const d=u.tViews=fa(2,u,i,r,s,t.directiveRegistry,t.pipeRegistry,null,t.schemas,c);return null!==t.queries&&(t.queries.template(t,u),d.queries=t.queries.embeddedTView(u)),u}(u,c,l,t,e,i,r,s,o):c.data[u];xn(d,!1);const h=l[U].createComment("");sa(c,l,h,d),ft(h,l),pa(l,l[u]=ig(h,l,h,d)),Bo(d)&&wu(c,l,d),null!=o&&Eu(l,d,a)}function g(n,t=H.Default){const e=C();return null===e?v(n,t):Sp(Xe(),e,z(n),t)}function Uu(){throw new Error("invalid")}function $(n,t,e){const i=C();return pt(i,_r(),t)&&zt(te(),Oe(),i,n,t,i[U],e,!1),$}function zu(n,t,e,i,r){const o=r?"class":"style";cg(n,e,t.inputs[o],o,i)}function K(n,t,e,i){const r=C(),s=te(),o=20+n,a=r[U],l=r[o]=Kc(a,t,function t0(){return L.lFrame.currentNamespace}()),c=s.firstCreatePass?function qT(n,t,e,i,r,s,o){const a=t.consts,c=Ir(t,n,2,r,ci(a,s));return Du(t,e,c,ci(a,o)),null!==c.attrs&&ma(c,c.attrs,!1),null!==c.mergedAttrs&&ma(c,c.mergedAttrs,!0),null!==t.queries&&t.queries.elementStart(t,c),c}(o,s,r,0,t,e,i):s.data[o];xn(c,!0);const u=c.mergedAttrs;null!==u&&qo(a,l,u);const d=c.classes;null!==d&&tu(a,l,d);const h=c.styles;return null!==h&&dm(a,l,h),64!=(64&c.flags)&&sa(s,r,l,c),0===function BD(){return L.lFrame.elementDepthCount}()&&ft(l,r),function HD(){L.lFrame.elementDepthCount++}(),Bo(c)&&(wu(s,r,c),Gm(s,c,r)),null!==i&&Eu(r,c),K}function J(){let n=Xe();Cc()?wc():(n=n.parent,xn(n,!1));const t=n;!function jD(){L.lFrame.elementDepthCount--}();const e=te();return e.firstCreatePass&&(zo(e,n),dc(n)&&e.queries.elementEnd(n)),null!=t.classesWithoutHost&&function a0(n){return 0!=(16&n.flags)}(t)&&zu(e,t,C(),t.classesWithoutHost,!0),null!=t.stylesWithoutHost&&function l0(n){return 0!=(32&n.flags)}(t)&&zu(e,t,C(),t.stylesWithoutHost,!1),J}function Xn(n,t,e,i){return K(n,t,e,i),J(),Xn}function Hi(n,t,e){const i=C(),r=te(),s=n+20,o=r.firstCreatePass?function KT(n,t,e,i,r){const s=t.consts,o=ci(s,i),a=Ir(t,n,8,"ng-container",o);return null!==o&&ma(a,o,!0),Du(t,e,a,ci(s,r)),null!==t.queries&&t.queries.elementStart(t,a),a}(s,r,i,t,e):r.data[s];xn(o,!0);const a=i[s]=i[U].createComment("");return sa(r,i,a,o),ft(a,i),Bo(o)&&(wu(r,i,o),Gm(r,o,i)),null!=e&&Eu(i,o),Hi}function ji(){let n=Xe();const t=te();return Cc()?wc():(n=n.parent,xn(n,!1)),t.firstCreatePass&&(zo(t,n),dc(n)&&t.queries.elementEnd(n)),ji}function $i(){return C()}function va(n){return!!n&&"function"==typeof n.then}function Yg(n){return!!n&&"function"==typeof n.subscribe}const Zg=Yg;function Ae(n,t,e,i){const r=C(),s=te(),o=Xe();return function Qg(n,t,e,i,r,s,o,a){const l=Bo(i),u=n.firstCreatePass&&og(n),d=t[8],h=sg(t);let f=!0;if(3&i.type||a){const y=Bt(i,t),b=a?a(y):y,_=h.length,E=a?w=>a(je(w[i.index])):i.index;if(Pe(e)){let w=null;if(!a&&l&&(w=function YT(n,t,e,i){const r=n.cleanup;if(null!=r)for(let s=0;s<r.length-1;s+=2){const o=r[s];if(o===e&&r[s+1]===i){const a=t[7],l=r[s+2];return a.length>l?a[l]:null}"string"==typeof o&&(s+=2)}return null}(n,t,r,i.index)),null!==w)(w.__ngLastListenerFn__||w).__ngNextListenerFn__=s,w.__ngLastListenerFn__=s,f=!1;else{s=Gu(i,t,d,s,!1);const M=e.listen(b,r,s);h.push(s,M),u&&u.push(r,E,_,_+1)}}else s=Gu(i,t,d,s,!0),b.addEventListener(r,s,o),h.push(s),u&&u.push(r,E,_,o)}else s=Gu(i,t,d,s,!1);const p=i.outputs;let m;if(f&&null!==p&&(m=p[r])){const y=m.length;if(y)for(let b=0;b<y;b+=2){const ne=t[m[b]][m[b+1]].subscribe(s),Se=h.length;h.push(s,ne),u&&u.push(r,i.index,Se,-(Se+1))}}}(s,r,r[U],o,n,t,!!e,i),Ae}function Jg(n,t,e,i){try{return!1!==e(i)}catch(r){return lg(n,r),!1}}function Gu(n,t,e,i,r){return function s(o){if(o===Function)return i;const a=2&n.flags?Ht(n.index,t):t;0==(32&t[2])&&Tu(a);let l=Jg(t,0,i,o),c=s.__ngNextListenerFn__;for(;c;)l=Jg(t,0,c,o)&&l,c=c.__ngNextListenerFn__;return r&&!1===l&&(o.preventDefault(),o.returnValue=!1),l}}function ue(n=1){return function YD(n){return(L.lFrame.contextLView=function ZD(n,t){for(;n>0;)t=t[15],n--;return t}(n,L.lFrame.contextLView))[8]}(n)}function ZT(n,t){let e=null;const i=function oM(n){const t=n.attrs;if(null!=t){const e=t.indexOf(5);if(0==(1&e))return t[e+1]}return null}(n);for(let r=0;r<t.length;r++){const s=t[r];if("*"!==s){if(null===i?xm(n,s,!0):cM(i,s))return r}else e=r}return e}function Gr(n){const t=C()[16][6];if(!t.projection){const i=t.projection=Ts(n?n.length:1,null),r=i.slice();let s=t.child;for(;null!==s;){const o=n?ZT(s,n):0;null!==o&&(r[o]?r[o].projectionNext=s:i[o]=s,r[o]=s),s=s.next}}}function Gt(n,t=0,e){const i=C(),r=te(),s=Ir(r,20+n,16,null,e||null);null===s.projection&&(s.projection=t),wc(),64!=(64&s.flags)&&function cS(n,t,e){um(t[U],0,t,e,tm(n,e,t),sm(e.parent||t[6],e,t))}(r,i,s)}function c_(n,t,e,i,r){const s=n[e+1],o=null===t;let a=i?yn(s):Yn(s),l=!1;for(;0!==a&&(!1===l||o);){const u=n[a+1];JT(n[a],t)&&(l=!0,n[a+1]=i?hu(u):uu(u)),a=i?yn(u):Yn(u)}l&&(n[e+1]=i?uu(s):hu(s))}function JT(n,t){return null===n||null==t||(Array.isArray(n)?n[1]:n)===t||!(!Array.isArray(n)||"string"!=typeof t)&&Sr(n,t)>=0}function qu(n,t,e){return bn(n,t,e,!1),qu}function mt(n,t){return bn(n,t,null,!0),mt}function bn(n,t,e,i){const r=C(),s=te(),o=function Kn(n){const t=L.lFrame,e=t.bindingIndex;return t.bindingIndex=t.bindingIndex+n,e}(2);s.firstUpdatePass&&function __(n,t,e,i){const r=n.data;if(null===r[e+1]){const s=r[vt()],o=function g_(n,t){return t>=n.expandoStartIndex}(n,e);(function C_(n,t){return 0!=(n.flags&(t?16:32))})(s,i)&&null===t&&!o&&(t=!1),t=function lA(n,t,e,i){const r=function Dc(n){const t=L.lFrame.currentDirectiveIndex;return-1===t?null:n[t]}(n);let s=i?t.residualClasses:t.residualStyles;if(null===r)0===(i?t.classBindings:t.styleBindings)&&(e=zs(e=Ku(null,n,t,e,i),t.attrs,i),s=null);else{const o=t.directiveStylingLast;if(-1===o||n[o]!==r)if(e=Ku(r,n,t,e,i),null===s){let l=function cA(n,t,e){const i=e?t.classBindings:t.styleBindings;if(0!==Yn(i))return n[yn(i)]}(n,t,i);void 0!==l&&Array.isArray(l)&&(l=Ku(null,n,t,l[1],i),l=zs(l,t.attrs,i),function uA(n,t,e,i){n[yn(e?t.classBindings:t.styleBindings)]=i}(n,t,i,l))}else s=function dA(n,t,e){let i;const r=t.directiveEnd;for(let s=1+t.directiveStylingLast;s<r;s++)i=zs(i,n[s].hostAttrs,e);return zs(i,t.attrs,e)}(n,t,i)}return void 0!==s&&(i?t.residualClasses=s:t.residualStyles=s),e}(r,s,t,i),function XT(n,t,e,i,r,s){let o=s?t.classBindings:t.styleBindings,a=yn(o),l=Yn(o);n[i]=e;let u,c=!1;if(Array.isArray(e)){const d=e;u=d[1],(null===u||Sr(d,u)>0)&&(c=!0)}else u=e;if(r)if(0!==l){const h=yn(n[a+1]);n[i+1]=ua(h,a),0!==h&&(n[h+1]=du(n[h+1],i)),n[a+1]=function fM(n,t){return 131071&n|t<<17}(n[a+1],i)}else n[i+1]=ua(a,0),0!==a&&(n[a+1]=du(n[a+1],i)),a=i;else n[i+1]=ua(l,0),0===a?a=i:n[l+1]=du(n[l+1],i),l=i;c&&(n[i+1]=uu(n[i+1])),c_(n,u,i,!0),c_(n,u,i,!1),function QT(n,t,e,i,r){const s=r?n.residualClasses:n.residualStyles;null!=s&&"string"==typeof t&&Sr(s,t)>=0&&(e[i+1]=hu(e[i+1]))}(t,u,n,i,s),o=ua(a,l),s?t.classBindings=o:t.styleBindings=o}(r,s,t,e,o,i)}}(s,n,o,i),t!==V&&pt(r,o,t)&&function v_(n,t,e,i,r,s,o,a){if(!(3&t.type))return;const l=n.data,c=l[a+1];ba(function Nm(n){return 1==(1&n)}(c)?b_(l,t,e,r,Yn(c),o):void 0)||(ba(s)||function Rm(n){return 2==(2&n)}(c)&&(s=b_(l,null,e,r,a,o)),function dS(n,t,e,i,r){const s=Pe(n);if(t)r?s?n.addClass(e,i):e.classList.add(i):s?n.removeClass(e,i):e.classList.remove(i);else{let o=-1===i.indexOf("-")?void 0:$t.DashCase;if(null==r)s?n.removeStyle(e,i,o):e.style.removeProperty(i);else{const a="string"==typeof r&&r.endsWith("!important");a&&(r=r.slice(0,-10),o|=$t.Important),s?n.setStyle(e,i,r,o):e.style.setProperty(i,r,a?"important":"")}}}(i,o,Ho(vt(),e),r,s))}(s,s.data[vt()],r,r[U],n,r[o+1]=function pA(n,t){return null==n||("string"==typeof t?n+=t:"object"==typeof n&&(n=he(Ut(n)))),n}(t,e),i,o)}function Ku(n,t,e,i,r){let s=null;const o=e.directiveEnd;let a=e.directiveStylingLast;for(-1===a?a=e.directiveStart:a++;a<o&&(s=t[a],i=zs(i,s.hostAttrs,r),s!==n);)a++;return null!==n&&(e.directiveStylingLast=a),i}function zs(n,t,e){const i=e?1:2;let r=-1;if(null!==t)for(let s=0;s<t.length;s++){const o=t[s];"number"==typeof o?r=o:r===i&&(Array.isArray(n)||(n=void 0===n?[]:["",n]),jt(n,o,!!e||t[++s]))}return void 0===n?null:n}function b_(n,t,e,i,r,s){const o=null===t;let a;for(;r>0;){const l=n[r],c=Array.isArray(l),u=c?l[1]:l,d=null===u;let h=e[r+1];h===V&&(h=d?be:void 0);let f=d?Nc(h,i):u===i?h:void 0;if(c&&!ba(f)&&(f=Nc(l,i)),ba(f)&&(a=f,o))return a;const p=n[r+1];r=o?yn(p):Yn(p)}if(null!==t){let l=s?t.residualClasses:t.residualStyles;null!=l&&(a=Nc(l,i))}return a}function ba(n){return void 0!==n}function wt(n,t=""){const e=C(),i=te(),r=n+20,s=i.firstCreatePass?Ir(i,r,1,t,null):i.data[r],o=e[r]=function qc(n,t){return Pe(n)?n.createText(t):n.createTextNode(t)}(e[U],t);sa(i,e,o,s),xn(s,!1)}function wn(n){return Ui("",n,""),wn}function Ui(n,t,e){const i=C(),r=function Pr(n,t,e,i){return pt(n,_r(),e)?t+P(e)+i:V}(i,n,t,e);return r!==V&&Zn(i,vt(),r),Ui}function Ca(n,t,e){const i=C();return pt(i,_r(),t)&&zt(te(),Oe(),i,n,t,i[U],e,!0),Ca}const wa="en-US";let $_=wa;function Xu(n,t,e,i,r){if(n=z(n),Array.isArray(n))for(let s=0;s<n.length;s++)Xu(n[s],t,e,i,r);else{const s=te(),o=C();let a=Fr(n)?n:z(n.provide),l=pg(n);const c=Xe(),u=1048575&c.providerIndexes,d=c.directiveStart,h=c.providerIndexes>>20;if(Fr(n)||!n.multi){const f=new bs(l,r,g),p=Ju(a,t,r?u:u+h,d);-1===p?(Xo(ws(c,o),s,a),Qu(s,n,t.length),t.push(a),c.directiveStart++,c.directiveEnd++,r&&(c.providerIndexes+=1048576),e.push(f),o.push(f)):(e[p]=f,o[p]=f)}else{const f=Ju(a,t,u+h,d),p=Ju(a,t,u,u+h),m=f>=0&&e[f],y=p>=0&&e[p];if(r&&!y||!r&&!m){Xo(ws(c,o),s,a);const b=function FI(n,t,e,i,r){const s=new bs(n,e,g);return s.multi=[],s.index=t,s.componentProviders=0,hy(s,r,i&&!e),s}(r?OI:kI,e.length,r,i,l);!r&&y&&(e[p].providerFactory=b),Qu(s,n,t.length,0),t.push(a),c.directiveStart++,c.directiveEnd++,r&&(c.providerIndexes+=1048576),e.push(b),o.push(b)}else Qu(s,n,f>-1?f:p,hy(e[r?p:f],l,!r&&i));!r&&i&&y&&e[p].componentProviders++}}}function Qu(n,t,e,i){const r=Fr(t),s=function rT(n){return!!n.useClass}(t);if(r||s){const l=(s?z(t.useClass):t).prototype.ngOnDestroy;if(l){const c=n.destroyHooks||(n.destroyHooks=[]);if(!r&&t.multi){const u=c.indexOf(e);-1===u?c.push(e,[i,l]):c[u+1].push(i,l)}else c.push(e,l)}}}function hy(n,t,e){return e&&n.componentProviders++,n.multi.push(t)-1}function Ju(n,t,e,i){for(let r=e;r<i;r++)if(t[r]===n)return r;return-1}function kI(n,t,e,i){return ed(this.multi,[])}function OI(n,t,e,i){const r=this.multi;let s;if(this.providerFactory){const o=this.providerFactory.componentProviders,a=Es(e,e[1],this.providerFactory.index,i);s=a.slice(0,o),ed(r,s);for(let l=o;l<a.length;l++)s.push(a[l])}else s=[],ed(r,s);return s}function ed(n,t){for(let e=0;e<n.length;e++)t.push((0,n[e])());return t}function oe(n,t=[]){return e=>{e.providersResolver=(i,r)=>function xI(n,t,e){const i=te();if(i.firstCreatePass){const r=mn(n);Xu(e,i.data,i.blueprint,r,!0),Xu(t,i.data,i.blueprint,r,!1)}}(i,r?r(n):n,t)}}class fy{}class PI{resolveComponentFactory(t){throw function NI(n){const t=Error(`No component factory found for ${he(n)}. Did you add it to @NgModule.entryComponents?`);return t.ngComponent=n,t}(t)}}let Gi=(()=>{class n{}return n.NULL=new PI,n})();function LI(){return Yr(Xe(),C())}function Yr(n,t){return new Ee(Bt(n,t))}let Ee=(()=>{class n{constructor(e){this.nativeElement=e}}return n.__NG_ELEMENT_ID__=LI,n})();function VI(n){return n instanceof Ee?n.nativeElement:n}class Ys{}let mi=(()=>{class n{}return n.__NG_ELEMENT_ID__=()=>function HI(){const n=C(),e=Ht(Xe().index,n);return function BI(n){return n[U]}(In(e)?e:n)}(),n})(),jI=(()=>{class n{}return n.\u0275prov=x({token:n,providedIn:"root",factory:()=>null}),n})();class Wi{constructor(t){this.full=t,this.major=t.split(".")[0],this.minor=t.split(".")[1],this.patch=t.split(".").slice(2).join(".")}}const $I=new Wi("13.4.0"),td={};function Ta(n,t,e,i,r=!1){for(;null!==e;){const s=t[e.index];if(null!==s&&i.push(je(s)),pn(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=e.type;if(8&o)Ta(n,t,e.child,i);else if(32&o){const a=zc(e,t);let l;for(;l=a();)i.push(l)}else if(16&o){const a=cm(t,e);if(Array.isArray(a))i.push(...a);else{const l=Rs(t[16]);Ta(l[1],l,a,i,!0)}}e=r?e.projectionNext:e.next}return i}class Zs{constructor(t,e){this._lView=t,this._cdRefInjectingView=e,this._appRef=null,this._attachedToViewContainer=!1}get rootNodes(){const t=this._lView,e=t[1];return Ta(e,t,e.firstChild,[])}get context(){return this._lView[8]}set context(t){this._lView[8]=t}get destroyed(){return 256==(256&this._lView[2])}destroy(){if(this._appRef)this._appRef.detachView(this);else if(this._attachedToViewContainer){const t=this._lView[3];if(pn(t)){const e=t[8],i=e?e.indexOf(this):-1;i>-1&&(Yc(t,i),Jo(e,i))}this._attachedToViewContainer=!1}em(this._lView[1],this._lView)}onDestroy(t){Ym(this._lView[1],this._lView,null,t)}markForCheck(){Tu(this._cdRefInjectingView||this._lView)}detach(){this._lView[2]&=-129}reattach(){this._lView[2]|=128}detectChanges(){!function Iu(n,t,e){const i=t[10];i.begin&&i.begin();try{kr(n,t,n.template,e)}catch(r){throw lg(t,r),r}finally{i.end&&i.end()}}(this._lView[1],this._lView,this.context)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new A(902,"");this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null,function tS(n,t){Ns(n,t,t[U],2,null,null)}(this._lView[1],this._lView)}attachToAppRef(t){if(this._attachedToViewContainer)throw new A(902,"");this._appRef=t}}class UI extends Zs{constructor(t){super(t),this._view=t}detectChanges(){rg(this._view)}checkNoChanges(){}get context(){return null}}class my extends Gi{constructor(t){super(),this.ngModule=t}resolveComponentFactory(t){const e=at(t);return new nd(e,this.ngModule)}}function gy(n){const t=[];for(let e in n)n.hasOwnProperty(e)&&t.push({propName:n[e],templateName:e});return t}class nd extends fy{constructor(t,e){super(),this.componentDef=t,this.ngModule=e,this.componentType=t.type,this.selector=function dM(n){return n.map(uM).join(",")}(t.selectors),this.ngContentSelectors=t.ngContentSelectors?t.ngContentSelectors:[],this.isBoundToModule=!!e}get inputs(){return gy(this.componentDef.inputs)}get outputs(){return gy(this.componentDef.outputs)}create(t,e,i,r){const s=(r=r||this.ngModule)?function GI(n,t){return{get:(e,i,r)=>{const s=n.get(e,td,r);return s!==td||i===td?s:t.get(e,i,r)}}}(t,r.injector):t,o=s.get(Ys,ip),a=s.get(jI,null),l=o.createRenderer(null,this.componentDef),c=this.componentDef.selectors[0][0]||"div",u=i?function Km(n,t,e){if(Pe(n))return n.selectRootElement(t,e===hn.ShadowDom);let i="string"==typeof t?n.querySelector(t):t;return i.textContent="",i}(l,i,this.componentDef.encapsulation):Kc(o.createRenderer(null,this.componentDef),c,function zI(n){const t=n.toLowerCase();return"svg"===t?"svg":"math"===t?"math":null}(c)),d=this.componentDef.onPush?576:528,h=function Mg(n,t){return{components:[],scheduler:n||QS,clean:YM,playerHandler:t||null,flags:0}}(),f=fa(0,null,null,1,0,null,null,null,null,null),p=Bs(null,f,h,d,null,null,o,l,a,s);let m,y;$o(p);try{const b=function Dg(n,t,e,i,r,s){const o=e[1];e[20]=n;const l=Ir(o,20,2,"#host",null),c=l.mergedAttrs=t.hostAttrs;null!==c&&(ma(l,c,!0),null!==n&&(qo(r,n,c),null!==l.classes&&tu(r,n,l.classes),null!==l.styles&&dm(r,n,l.styles)));const u=i.createRenderer(n,t),d=Bs(e,Wm(t),null,t.onPush?64:16,e[20],l,i,u,s||null,null);return o.firstCreatePass&&(Xo(ws(l,e),o,t.type),eg(o,l),tg(l,e.length,1)),pa(e,d),e[20]=d}(u,this.componentDef,p,o,l);if(u)if(i)qo(l,u,["ng-version",$I.full]);else{const{attrs:_,classes:E}=function hM(n){const t=[],e=[];let i=1,r=2;for(;i<n.length;){let s=n[i];if("string"==typeof s)2===r?""!==s&&t.push(s,n[++i]):8===r&&e.push(s);else{if(!_n(r))break;r=s}i++}return{attrs:t,classes:e}}(this.componentDef.selectors[0]);_&&qo(l,u,_),E&&E.length>0&&tu(l,u,E.join(" "))}if(y=yc(f,20),void 0!==e){const _=y.projection=[];for(let E=0;E<this.ngContentSelectors.length;E++){const w=e[E];_.push(null!=w?Array.from(w):null)}}m=function Sg(n,t,e,i,r){const s=e[1],o=function FM(n,t,e){const i=Xe();n.firstCreatePass&&(e.providersResolver&&e.providersResolver(e),ng(n,i,t,xr(n,t,1,null),e));const r=Es(t,n,i.directiveStart,i);ft(r,t);const s=Bt(i,t);return s&&ft(s,t),r}(s,e,t);if(i.components.push(o),n[8]=o,r&&r.forEach(l=>l(o,t)),t.contentQueries){const l=Xe();t.contentQueries(1,o,l.directiveStart)}const a=Xe();return!s.firstCreatePass||null===t.hostBindings&&null===t.hostAttrs||(ui(a.index),Qm(e[1],a,0,a.directiveStart,a.directiveEnd,t),Jm(t,o)),o}(b,this.componentDef,p,h,[mT]),Hs(f,p,null)}finally{Uo()}return new qI(this.componentType,m,Yr(y,p),p,y)}}class qI extends class RI{}{constructor(t,e,i,r,s){super(),this.location=i,this._rootLView=r,this._tNode=s,this.instance=e,this.hostView=this.changeDetectorRef=new UI(r),this.componentType=t}get injector(){return new br(this._tNode,this._rootLView)}destroy(){this.hostView.destroy()}onDestroy(t){this.hostView.onDestroy(t)}}class Zr{}const Xr=new Map;class vy extends Zr{constructor(t,e){super(),this._parent=e,this._bootstrapComponents=[],this.injector=this,this.destroyCbs=[],this.componentFactoryResolver=new my(this);const i=Zt(t);this._bootstrapComponents=Rn(i.bootstrap),this._r3Injector=fg(t,e,[{provide:Zr,useValue:this},{provide:Gi,useValue:this.componentFactoryResolver}],he(t)),this._r3Injector._resolveInjectorDefTypes(),this.instance=this.get(t)}get(t,e=Ct.THROW_IF_NOT_FOUND,i=H.Default){return t===Ct||t===Zr||t===ku?this:this._r3Injector.get(t,e,i)}destroy(){const t=this._r3Injector;!t.destroyed&&t.destroy(),this.destroyCbs.forEach(e=>e()),this.destroyCbs=null}onDestroy(t){this.destroyCbs.push(t)}}class id extends class YI{}{constructor(t){super(),this.moduleType=t,null!==Zt(t)&&function ZI(n){const t=new Set;!function e(i){const r=Zt(i,!0),s=r.id;null!==s&&(function _y(n,t,e){if(t&&t!==e)throw new Error(`Duplicate module registered for ${n} - ${he(t)} vs ${he(t.name)}`)}(s,Xr.get(s),i),Xr.set(s,i));const o=Rn(r.imports);for(const a of o)t.has(a)||(t.add(a),e(a))}(n)}(t)}create(t){return new vy(this.moduleType,t)}}function by(n,t,e,i,r,s){const o=t+e;return pt(n,o,r)?function Pn(n,t,e){return n[t]=e}(n,o+1,s?i.call(s,r):i(r)):function Xs(n,t){const e=n[t];return e===V?void 0:e}(n,o+1)}function My(n,t,e){const i=n+20,r=C(),s=gr(r,i);return function Qs(n,t){return n[1].data[t].pure}(r,i)?by(r,function yt(){const n=L.lFrame;let t=n.bindingRootIndex;return-1===t&&(t=n.bindingRootIndex=n.tView.bindingStartIndex),t}(),t,s.transform,e,s):s.transform(e)}function rd(n){return t=>{setTimeout(n,void 0,t)}}const Ie=class hx extends de{constructor(t=!1){super(),this.__isAsync=t}emit(t){super.next(t)}subscribe(t,e,i){var r,s,o;let a=t,l=e||(()=>null),c=i;if(t&&"object"==typeof t){const d=t;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=rd(l),a&&(a=rd(a)),c&&(c=rd(c)));const u=super.subscribe({next:a,error:l,complete:c});return t instanceof W&&t.add(u),u}};function fx(){return this._results[Rr()]()}class Js{constructor(t=!1){this._emitDistinctChangesOnly=t,this.dirty=!0,this._results=[],this._changesDetected=!1,this._changes=null,this.length=0,this.first=void 0,this.last=void 0;const e=Rr(),i=Js.prototype;i[e]||(i[e]=fx)}get changes(){return this._changes||(this._changes=new Ie)}get(t){return this._results[t]}map(t){return this._results.map(t)}filter(t){return this._results.filter(t)}find(t){return this._results.find(t)}reduce(t,e){return this._results.reduce(t,e)}forEach(t){this._results.forEach(t)}some(t){return this._results.some(t)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(t,e){const i=this;i.dirty=!1;const r=en(t);(this._changesDetected=!function _0(n,t,e){if(n.length!==t.length)return!1;for(let i=0;i<n.length;i++){let r=n[i],s=t[i];if(e&&(r=e(r),s=e(s)),s!==r)return!1}return!0}(i._results,r,e))&&(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 Bn=(()=>{class n{}return n.__NG_ELEMENT_ID__=gx,n})();const px=Bn,mx=class extends px{constructor(t,e,i){super(),this._declarationLView=t,this._declarationTContainer=e,this.elementRef=i}createEmbeddedView(t){const e=this._declarationTContainer.tViews,i=Bs(this._declarationLView,e,t,16,null,e.declTNode,null,null,null,null);i[17]=this._declarationLView[this._declarationTContainer.index];const s=this._declarationLView[19];return null!==s&&(i[19]=s.createEmbeddedView(e)),Hs(e,i,t),new Zs(i)}};function gx(){return Aa(Xe(),C())}function Aa(n,t){return 4&n.type?new mx(t,n,Yr(n,t)):null}let nn=(()=>{class n{}return n.__NG_ELEMENT_ID__=_x,n})();function _x(){return Iy(Xe(),C())}const yx=nn,Ty=class extends yx{constructor(t,e,i){super(),this._lContainer=t,this._hostTNode=e,this._hostLView=i}get element(){return Yr(this._hostTNode,this._hostLView)}get injector(){return new br(this._hostTNode,this._hostLView)}get parentInjector(){const t=Zo(this._hostTNode,this._hostLView);if(bp(t)){const e=vr(t,this._hostLView),i=yr(t);return new br(e[1].data[i+8],e)}return new br(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(t){const e=Ay(this._lContainer);return null!==e&&e[t]||null}get length(){return this._lContainer.length-10}createEmbeddedView(t,e,i){const r=t.createEmbeddedView(e||{});return this.insert(r,i),r}createComponent(t,e,i,r,s){const o=t&&!function Ms(n){return"function"==typeof n}(t);let a;if(o)a=e;else{const d=e||{};a=d.index,i=d.injector,r=d.projectableNodes,s=d.ngModuleRef}const l=o?t:new nd(at(t)),c=i||this.parentInjector;if(!s&&null==l.ngModule){const h=(o?c:this.parentInjector).get(Zr,null);h&&(s=h)}const u=l.create(c,r,void 0,s);return this.insert(u.hostView,a),u}insert(t,e){const i=t._lView,r=i[1];if(function VD(n){return pn(n[3])}(i)){const u=this.indexOf(t);if(-1!==u)this.detach(u);else{const d=i[3],h=new Ty(d,d[6],d[3]);h.detach(h.indexOf(t))}}const s=this._adjustIndex(e),o=this._lContainer;!function iS(n,t,e,i){const r=10+i,s=e.length;i>0&&(e[r-1][4]=t),i<s-10?(t[4]=e[r],xp(e,10+i,t)):(e.push(t),t[4]=null),t[3]=e;const o=t[17];null!==o&&e!==o&&function rS(n,t){const e=n[9];t[16]!==t[3][3][16]&&(n[2]=!0),null===e?n[9]=[t]:e.push(t)}(o,t);const a=t[19];null!==a&&a.insertView(n),t[2]|=128}(r,i,o,s);const a=Qc(s,o),l=i[U],c=ra(l,o[7]);return null!==c&&function eS(n,t,e,i,r,s){i[0]=r,i[6]=t,Ns(n,i,e,1,r,s)}(r,o[6],l,i,c,a),t.attachToViewContainerRef(),xp(sd(o),s,t),t}move(t,e){return this.insert(t,e)}indexOf(t){const e=Ay(this._lContainer);return null!==e?e.indexOf(t):-1}remove(t){const e=this._adjustIndex(t,-1),i=Yc(this._lContainer,e);i&&(Jo(sd(this._lContainer),e),em(i[1],i))}detach(t){const e=this._adjustIndex(t,-1),i=Yc(this._lContainer,e);return i&&null!=Jo(sd(this._lContainer),e)?new Zs(i):null}_adjustIndex(t,e=0){return null==t?this.length+e:t}};function Ay(n){return n[8]}function sd(n){return n[8]||(n[8]=[])}function Iy(n,t){let e;const i=t[n.index];if(pn(i))e=i;else{let r;if(8&n.type)r=je(i);else{const s=t[U];r=s.createComment("");const o=Bt(n,t);Pi(s,ra(s,o),r,function lS(n,t){return Pe(n)?n.nextSibling(t):t.nextSibling}(s,o),!1)}t[n.index]=e=ig(i,t,r,n),pa(t,e)}return new Ty(e,n,t)}class od{constructor(t){this.queryList=t,this.matches=null}clone(){return new od(this.queryList)}setDirty(){this.queryList.setDirty()}}class ad{constructor(t=[]){this.queries=t}createEmbeddedView(t){const e=t.queries;if(null!==e){const i=null!==t.contentQueries?t.contentQueries[0]:e.length,r=[];for(let s=0;s<i;s++){const o=e.getByIndex(s);r.push(this.queries[o.indexInDeclarationView].clone())}return new ad(r)}return null}insertView(t){this.dirtyQueriesWithMatches(t)}detachView(t){this.dirtyQueriesWithMatches(t)}dirtyQueriesWithMatches(t){for(let e=0;e<this.queries.length;e++)null!==Ry(t,e).matches&&this.queries[e].setDirty()}}class xy{constructor(t,e,i=null){this.predicate=t,this.flags=e,this.read=i}}class ld{constructor(t=[]){this.queries=t}elementStart(t,e){for(let i=0;i<this.queries.length;i++)this.queries[i].elementStart(t,e)}elementEnd(t){for(let e=0;e<this.queries.length;e++)this.queries[e].elementEnd(t)}embeddedTView(t){let e=null;for(let i=0;i<this.length;i++){const r=null!==e?e.length:0,s=this.getByIndex(i).embeddedTView(t,r);s&&(s.indexInDeclarationView=i,null!==e?e.push(s):e=[s])}return null!==e?new ld(e):null}template(t,e){for(let i=0;i<this.queries.length;i++)this.queries[i].template(t,e)}getByIndex(t){return this.queries[t]}get length(){return this.queries.length}track(t){this.queries.push(t)}}class cd{constructor(t,e=-1){this.metadata=t,this.matches=null,this.indexInDeclarationView=-1,this.crossesNgTemplate=!1,this._appliesToNextNode=!0,this._declarationNodeIndex=e}elementStart(t,e){this.isApplyingToNode(e)&&this.matchTNode(t,e)}elementEnd(t){this._declarationNodeIndex===t.index&&(this._appliesToNextNode=!1)}template(t,e){this.elementStart(t,e)}embeddedTView(t,e){return this.isApplyingToNode(t)?(this.crossesNgTemplate=!0,this.addMatch(-t.index,e),new cd(this.metadata)):null}isApplyingToNode(t){if(this._appliesToNextNode&&1!=(1&this.metadata.flags)){const e=this._declarationNodeIndex;let i=t.parent;for(;null!==i&&8&i.type&&i.index!==e;)i=i.parent;return e===(null!==i?i.index:-1)}return this._appliesToNextNode}matchTNode(t,e){const i=this.metadata.predicate;if(Array.isArray(i))for(let r=0;r<i.length;r++){const s=i[r];this.matchTNodeWithReadOption(t,e,Cx(e,s)),this.matchTNodeWithReadOption(t,e,Qo(e,t,s,!1,!1))}else i===Bn?4&e.type&&this.matchTNodeWithReadOption(t,e,-1):this.matchTNodeWithReadOption(t,e,Qo(e,t,i,!1,!1))}matchTNodeWithReadOption(t,e,i){if(null!==i){const r=this.metadata.read;if(null!==r)if(r===Ee||r===nn||r===Bn&&4&e.type)this.addMatch(e.index,-2);else{const s=Qo(e,t,r,!1,!1);null!==s&&this.addMatch(e.index,s)}else this.addMatch(e.index,i)}}addMatch(t,e){null===this.matches?this.matches=[t,e]:this.matches.push(t,e)}}function Cx(n,t){const e=n.localNames;if(null!==e)for(let i=0;i<e.length;i+=2)if(e[i]===t)return e[i+1];return null}function Ex(n,t,e,i){return-1===e?function wx(n,t){return 11&n.type?Yr(n,t):4&n.type?Aa(n,t):null}(t,n):-2===e?function Dx(n,t,e){return e===Ee?Yr(t,n):e===Bn?Aa(t,n):e===nn?Iy(t,n):void 0}(n,t,i):Es(n,n[1],e,t)}function ky(n,t,e,i){const r=t[19].queries[i];if(null===r.matches){const s=n.data,o=e.matches,a=[];for(let l=0;l<o.length;l+=2){const c=o[l];a.push(c<0?null:Ex(t,s[c],o[l+1],e.metadata.read))}r.matches=a}return r.matches}function ud(n,t,e,i){const r=n.queries.getByIndex(e),s=r.matches;if(null!==s){const o=ky(n,t,r,e);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=t[-l];for(let d=10;d<u.length;d++){const h=u[d];h[17]===h[3]&&ud(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];ud(f[1],f,c,i)}}}}}return i}function Ue(n){const t=C(),e=te(),i=dp();Sc(i+1);const r=Ry(e,i);if(n.dirty&&rp(t)===(2==(2&r.metadata.flags))){if(null===r.matches)n.reset([]);else{const s=r.crossesNgTemplate?ud(e,t,i,[]):ky(e,t,r,i);n.reset(s,VI),n.notifyOnChanges()}return!0}return!1}function Qn(n,t,e){const i=te();i.firstCreatePass&&(Fy(i,new xy(n,t,e),-1),2==(2&t)&&(i.staticViewQueries=!0)),Oy(i,C(),t)}function rn(n,t,e,i){const r=te();if(r.firstCreatePass){const s=Xe();Fy(r,new xy(t,e,i),s.index),function Mx(n,t){const e=n.contentQueries||(n.contentQueries=[]);t!==(e.length?e[e.length-1]:-1)&&e.push(n.queries.length-1,t)}(r,n),2==(2&e)&&(r.staticContentQueries=!0)}Oy(r,C(),e)}function ze(){return function Sx(n,t){return n[19].queries[t].queryList}(C(),dp())}function Oy(n,t,e){const i=new Js(4==(4&e));Ym(n,t,i,i.destroy),null===t[19]&&(t[19]=new ad),t[19].queries.push(new od(i))}function Fy(n,t,e){null===n.queries&&(n.queries=new ld),n.queries.track(new cd(t,e))}function Ry(n,t){return n.queries.getByIndex(t)}function ka(...n){}const gd=new T("Application Initializer");let _d=(()=>{class n{constructor(e){this.appInits=e,this.resolve=ka,this.reject=ka,this.initialized=!1,this.done=!1,this.donePromise=new Promise((i,r)=>{this.resolve=i,this.reject=r})}runInitializers(){if(this.initialized)return;const e=[],i=()=>{this.done=!0,this.resolve()};if(this.appInits)for(let r=0;r<this.appInits.length;r++){const s=this.appInits[r]();if(va(s))e.push(s);else if(Zg(s)){const o=new Promise((a,l)=>{s.subscribe({complete:a,error:l})});e.push(o)}}Promise.all(e).then(()=>{i()}).catch(r=>{this.reject(r)}),0===e.length&&i(),this.initialized=!0}}return n.\u0275fac=function(e){return new(e||n)(v(gd,8))},n.\u0275prov=x({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const to=new T("AppId",{providedIn:"root",factory:function Xy(){return`${yd()}${yd()}${yd()}`}});function yd(){return String.fromCharCode(97+Math.floor(25*Math.random()))}const Qy=new T("Platform Initializer"),vd=new T("Platform ID",{providedIn:"platform",factory:()=>"unknown"}),zx=new T("appBootstrapListener"),Jn=new T("LocaleId",{providedIn:"root",factory:()=>na(Jn,H.Optional|H.SkipSelf)||function Gx(){return"undefined"!=typeof $localize&&$localize.locale||wa}()}),Yx=(()=>Promise.resolve(0))();function bd(n){"undefined"==typeof Zone?Yx.then(()=>{n&&n.apply(null,null)}):Zone.current.scheduleMicroTask("scheduleMicrotask",n)}class le{constructor({enableLongStackTrace:t=!1,shouldCoalesceEventChangeDetection:e=!1,shouldCoalesceRunChangeDetection:i=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new Ie(!1),this.onMicrotaskEmpty=new Ie(!1),this.onStable=new Ie(!1),this.onError=new Ie(!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)),t&&Zone.longStackTraceZoneSpec&&(r._inner=r._inner.fork(Zone.longStackTraceZoneSpec)),r.shouldCoalesceEventChangeDetection=!i&&e,r.shouldCoalesceRunChangeDetection=i,r.lastRequestAnimationFrameId=-1,r.nativeRequestAnimationFrame=function Zx(){let n=ge.requestAnimationFrame,t=ge.cancelAnimationFrame;if("undefined"!=typeof Zone&&n&&t){const e=n[Zone.__symbol__("OriginalDelegate")];e&&(n=e);const i=t[Zone.__symbol__("OriginalDelegate")];i&&(t=i)}return{nativeRequestAnimationFrame:n,nativeCancelAnimationFrame:t}}().nativeRequestAnimationFrame,function Jx(n){const t=()=>{!function Qx(n){n.isCheckStableRunning||-1!==n.lastRequestAnimationFrameId||(n.lastRequestAnimationFrameId=n.nativeRequestAnimationFrame.call(ge,()=>{n.fakeTopEventTask||(n.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{n.lastRequestAnimationFrameId=-1,wd(n),n.isCheckStableRunning=!0,Cd(n),n.isCheckStableRunning=!1},void 0,()=>{},()=>{})),n.fakeTopEventTask.invoke()}),wd(n))}(n)};n._inner=n._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(e,i,r,s,o,a)=>{try{return Jy(n),e.invokeTask(r,s,o,a)}finally{(n.shouldCoalesceEventChangeDetection&&"eventTask"===s.type||n.shouldCoalesceRunChangeDetection)&&t(),ev(n)}},onInvoke:(e,i,r,s,o,a,l)=>{try{return Jy(n),e.invoke(r,s,o,a,l)}finally{n.shouldCoalesceRunChangeDetection&&t(),ev(n)}},onHasTask:(e,i,r,s)=>{e.hasTask(r,s),i===r&&("microTask"==s.change?(n._hasPendingMicrotasks=s.microTask,wd(n),Cd(n)):"macroTask"==s.change&&(n.hasPendingMacrotasks=s.macroTask))},onHandleError:(e,i,r,s)=>(e.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(!le.isInAngularZone())throw new Error("Expected to be in Angular Zone, but it is not!")}static assertNotInAngularZone(){if(le.isInAngularZone())throw new Error("Expected to not be in Angular Zone, but it is!")}run(t,e,i){return this._inner.run(t,e,i)}runTask(t,e,i,r){const s=this._inner,o=s.scheduleEventTask("NgZoneEvent: "+r,t,Xx,ka,ka);try{return s.runTask(o,e,i)}finally{s.cancelTask(o)}}runGuarded(t,e,i){return this._inner.runGuarded(t,e,i)}runOutsideAngular(t){return this._outer.run(t)}}const Xx={};function Cd(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 wd(n){n.hasPendingMicrotasks=!!(n._hasPendingMicrotasks||(n.shouldCoalesceEventChangeDetection||n.shouldCoalesceRunChangeDetection)&&-1!==n.lastRequestAnimationFrameId)}function Jy(n){n._nesting++,n.isStable&&(n.isStable=!1,n.onUnstable.emit(null))}function ev(n){n._nesting--,Cd(n)}class ek{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new Ie,this.onMicrotaskEmpty=new Ie,this.onStable=new Ie,this.onError=new Ie}run(t,e,i){return t.apply(e,i)}runGuarded(t,e,i){return t.apply(e,i)}runOutsideAngular(t){return t()}runTask(t,e,i,r){return t.apply(e,i)}}let Ed=(()=>{class n{constructor(e){this._ngZone=e,this._pendingCount=0,this._isZoneStable=!0,this._didWork=!1,this._callbacks=[],this.taskTrackingZone=null,this._watchAngularEvents(),e.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:()=>{le.assertNotInAngularZone(),bd(()=>{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())bd(()=>{for(;0!==this._callbacks.length;){let e=this._callbacks.pop();clearTimeout(e.timeoutId),e.doneCb(this._didWork)}this._didWork=!1});else{let e=this.getPendingTasks();this._callbacks=this._callbacks.filter(i=>!i.updateCb||!i.updateCb(e)||(clearTimeout(i.timeoutId),!1)),this._didWork=!0}}getPendingTasks(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(e=>({source:e.source,creationLocation:e.creationLocation,data:e.data})):[]}addCallback(e,i,r){let s=-1;i&&i>0&&(s=setTimeout(()=>{this._callbacks=this._callbacks.filter(o=>o.timeoutId!==s),e(this._didWork,this.getPendingTasks())},i)),this._callbacks.push({doneCb:e,timeoutId:s,updateCb:r})}whenStable(e,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(e,i,r),this._runCallbacksIfReady()}getPendingRequestCount(){return this._pendingCount}findProviders(e,i,r){return[]}}return n.\u0275fac=function(e){return new(e||n)(v(le))},n.\u0275prov=x({token:n,factory:n.\u0275fac}),n})(),tk=(()=>{class n{constructor(){this._applications=new Map,Dd.addToWindow(this)}registerApplication(e,i){this._applications.set(e,i)}unregisterApplication(e){this._applications.delete(e)}unregisterAllApplications(){this._applications.clear()}getTestability(e){return this._applications.get(e)||null}getAllTestabilities(){return Array.from(this._applications.values())}getAllRootElements(){return Array.from(this._applications.keys())}findTestabilityInTree(e,i=!0){return Dd.findTestabilityInTree(this,e,i)}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=x({token:n,factory:n.\u0275fac,providedIn:"platform"}),n})();class nk{addToWindow(t){}findTestabilityInTree(t,e,i){return null}}let Dd=new nk,qi=null;const tv=new T("AllowMultipleToken"),nv=new T("PlatformOnDestroy");function iv(n,t,e=[]){const i=`Platform: ${t}`,r=new T(i);return(s=[])=>{let o=Sd();if(!o||o.injector.get(tv,!1)){const a=[...e,...s,{provide:r,useValue:!0}];n?n(a):function ok(n){if(qi&&!qi.get(tv,!1))throw new A(400,"");qi=n;const t=n.get(rv),e=n.get(Qy,null);e&&e.forEach(i=>i())}(function lk(n=[],t){return Ct.create({name:t,providers:[{provide:Ou,useValue:"platform"},{provide:nv,useValue:()=>qi=null},...n]})}(a,i))}return function ak(n){const t=Sd();if(!t)throw new A(401,"");return t}()}}function Sd(){var n;return null!==(n=null==qi?void 0:qi.get(rv))&&void 0!==n?n:null}let rv=(()=>{class n{constructor(e){this._injector=e,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(e,i){const a=function ck(n,t){let e;return e="noop"===n?new ek:("zone.js"===n?void 0:n)||new le({enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:!!(null==t?void 0:t.ngZoneEventCoalescing),shouldCoalesceRunChangeDetection:!!(null==t?void 0:t.ngZoneRunCoalescing)}),e}(i?i.ngZone:void 0,{ngZoneEventCoalescing:i&&i.ngZoneEventCoalescing||!1,ngZoneRunCoalescing:i&&i.ngZoneRunCoalescing||!1}),l=[{provide:le,useValue:a}];return a.run(()=>{const c=Ct.create({providers:l,parent:this.injector,name:e.moduleType.name}),u=e.create(c),d=u.injector.get(hi,null);if(!d)throw new A(402,"");return a.runOutsideAngular(()=>{const h=a.onError.subscribe({next:f=>{d.handleError(f)}});u.onDestroy(()=>{Md(this._modules,u),h.unsubscribe()})}),function uk(n,t,e){try{const i=e();return va(i)?i.catch(r=>{throw t.runOutsideAngular(()=>n.handleError(r)),r}):i}catch(i){throw t.runOutsideAngular(()=>n.handleError(i)),i}}(d,a,()=>{const h=u.injector.get(_d);return h.runInitializers(),h.donePromise.then(()=>(function BA(n){Lt(n,"Expected localeId to be defined"),"string"==typeof n&&($_=n.toLowerCase().replace(/_/g,"-"))}(u.injector.get(Jn,wa)||wa),this._moduleDoBootstrap(u),u))})})}bootstrapModule(e,i=[]){const r=sv({},i);return function rk(n,t,e){const i=new id(e);return Promise.resolve(i)}(0,0,e).then(s=>this.bootstrapModuleFactory(s,r))}_moduleDoBootstrap(e){const i=e.injector.get(Oa);if(e._bootstrapComponents.length>0)e._bootstrapComponents.forEach(r=>i.bootstrap(r));else{if(!e.instance.ngDoBootstrap)throw new A(403,"");e.instance.ngDoBootstrap(i)}this._modules.push(e)}onDestroy(e){this._destroyListeners.push(e)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new A(404,"");this._modules.slice().forEach(i=>i.destroy()),this._destroyListeners.forEach(i=>i());const e=this._injector.get(nv,null);null==e||e(),this._destroyed=!0}get destroyed(){return this._destroyed}}return n.\u0275fac=function(e){return new(e||n)(v(Ct))},n.\u0275prov=x({token:n,factory:n.\u0275fac,providedIn:"platform"}),n})();function sv(n,t){return Array.isArray(t)?t.reduce(sv,n):Object.assign(Object.assign({},n),t)}let Oa=(()=>{class n{constructor(e,i,r,s){this._zone=e,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 Ce(l=>{this._stable=this._zone.isStable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks,this._zone.runOutsideAngular(()=>{l.next(this._stable),l.complete()})}),a=new Ce(l=>{let c;this._zone.runOutsideAngular(()=>{c=this._zone.onStable.subscribe(()=>{le.assertNotInAngularZone(),bd(()=>{!this._stable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks&&(this._stable=!0,l.next(!0))})})});const u=this._zone.onUnstable.subscribe(()=>{le.assertInAngularZone(),this._stable&&(this._stable=!1,this._zone.runOutsideAngular(()=>{l.next(!1)}))});return()=>{c.unsubscribe(),u.unsubscribe()}});this.isStable=si(o,a.pipe(jf()))}bootstrap(e,i){if(!this._initStatus.done)throw new A(405,"");let r;r=e instanceof fy?e:this._injector.get(Gi).resolveComponentFactory(e),this.componentTypes.push(r.componentType);const s=function sk(n){return n.isBoundToModule}(r)?void 0:this._injector.get(Zr),a=r.create(Ct.NULL,[],i||r.selector,s),l=a.location.nativeElement,c=a.injector.get(Ed,null),u=c&&a.injector.get(tk);return c&&u&&u.registerApplication(l,c),a.onDestroy(()=>{this.detachView(a.hostView),Md(this.components,a),u&&u.unregisterApplication(l)}),this._loadComponent(a),a}tick(){if(this._runningTick)throw new A(101,"");try{this._runningTick=!0;for(let e of this._views)e.detectChanges()}catch(e){this._zone.runOutsideAngular(()=>this._exceptionHandler.handleError(e))}finally{this._runningTick=!1}}attachView(e){const i=e;this._views.push(i),i.attachToAppRef(this)}detachView(e){const i=e;Md(this._views,i),i.detachFromAppRef()}_loadComponent(e){this.attachView(e.hostView),this.tick(),this.components.push(e),this._injector.get(zx,[]).concat(this._bootstrapListeners).forEach(r=>r(e))}ngOnDestroy(){this._views.slice().forEach(e=>e.destroy()),this._onMicrotaskEmptySubscription.unsubscribe()}get viewCount(){return this._views.length}}return n.\u0275fac=function(e){return new(e||n)(v(le),v(Ct),v(hi),v(_d))},n.\u0275prov=x({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();function Md(n,t){const e=n.indexOf(t);e>-1&&n.splice(e,1)}let av=!0,ei=(()=>{class n{}return n.__NG_ELEMENT_ID__=fk,n})();function fk(n){return function pk(n,t,e){if(Vo(n)&&!e){const i=Ht(n.index,t);return new Zs(i,i)}return 47&n.type?new Zs(t[16],t):null}(Xe(),C(),16==(16&n))}class hv{constructor(){}supports(t){return $s(t)}create(t){return new bk(t)}}const vk=(n,t)=>t;class bk{constructor(t){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=t||vk}forEachItem(t){let e;for(e=this._itHead;null!==e;e=e._next)t(e)}forEachOperation(t){let e=this._itHead,i=this._removalsHead,r=0,s=null;for(;e||i;){const o=!i||e&&e.currentIndex<pv(i,r,s)?e:i,a=pv(o,r,s),l=o.currentIndex;if(o===i)r--,i=i._nextRemoved;else if(e=e._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&&t(o,a,l)}}forEachPreviousItem(t){let e;for(e=this._previousItHead;null!==e;e=e._nextPrevious)t(e)}forEachAddedItem(t){let e;for(e=this._additionsHead;null!==e;e=e._nextAdded)t(e)}forEachMovedItem(t){let e;for(e=this._movesHead;null!==e;e=e._nextMoved)t(e)}forEachRemovedItem(t){let e;for(e=this._removalsHead;null!==e;e=e._nextRemoved)t(e)}forEachIdentityChange(t){let e;for(e=this._identityChangesHead;null!==e;e=e._nextIdentityChange)t(e)}diff(t){if(null==t&&(t=[]),!$s(t))throw new A(900,"");return this.check(t)?this:null}onDestroy(){}check(t){this._reset();let r,s,o,e=this._itHead,i=!1;if(Array.isArray(t)){this.length=t.length;for(let a=0;a<this.length;a++)s=t[a],o=this._trackByFn(a,s),null!==e&&Object.is(e.trackById,o)?(i&&(e=this._verifyReinsertion(e,s,o,a)),Object.is(e.item,s)||this._addIdentityChange(e,s)):(e=this._mismatch(e,s,o,a),i=!0),e=e._next}else r=0,function ST(n,t){if(Array.isArray(n))for(let e=0;e<n.length;e++)t(n[e]);else{const e=n[Rr()]();let i;for(;!(i=e.next()).done;)t(i.value)}}(t,a=>{o=this._trackByFn(r,a),null!==e&&Object.is(e.trackById,o)?(i&&(e=this._verifyReinsertion(e,a,o,r)),Object.is(e.item,a)||this._addIdentityChange(e,a)):(e=this._mismatch(e,a,o,r),i=!0),e=e._next,r++}),this.length=r;return this._truncate(e),this.collection=t,this.isDirty}get isDirty(){return null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead}_reset(){if(this.isDirty){let t;for(t=this._previousItHead=this._itHead;null!==t;t=t._next)t._nextPrevious=t._next;for(t=this._additionsHead;null!==t;t=t._nextAdded)t.previousIndex=t.currentIndex;for(this._additionsHead=this._additionsTail=null,t=this._movesHead;null!==t;t=t._nextMoved)t.previousIndex=t.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(t,e,i,r){let s;return null===t?s=this._itTail:(s=t._prev,this._remove(t)),null!==(t=null===this._unlinkedRecords?null:this._unlinkedRecords.get(i,null))?(Object.is(t.item,e)||this._addIdentityChange(t,e),this._reinsertAfter(t,s,r)):null!==(t=null===this._linkedRecords?null:this._linkedRecords.get(i,r))?(Object.is(t.item,e)||this._addIdentityChange(t,e),this._moveAfter(t,s,r)):t=this._addAfter(new Ck(e,i),s,r),t}_verifyReinsertion(t,e,i,r){let s=null===this._unlinkedRecords?null:this._unlinkedRecords.get(i,null);return null!==s?t=this._reinsertAfter(s,t._prev,r):t.currentIndex!=r&&(t.currentIndex=r,this._addToMoves(t,r)),t}_truncate(t){for(;null!==t;){const e=t._next;this._addToRemovals(this._unlink(t)),t=e}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(t,e,i){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(t);const r=t._prevRemoved,s=t._nextRemoved;return null===r?this._removalsHead=s:r._nextRemoved=s,null===s?this._removalsTail=r:s._prevRemoved=r,this._insertAfter(t,e,i),this._addToMoves(t,i),t}_moveAfter(t,e,i){return this._unlink(t),this._insertAfter(t,e,i),this._addToMoves(t,i),t}_addAfter(t,e,i){return this._insertAfter(t,e,i),this._additionsTail=null===this._additionsTail?this._additionsHead=t:this._additionsTail._nextAdded=t,t}_insertAfter(t,e,i){const r=null===e?this._itHead:e._next;return t._next=r,t._prev=e,null===r?this._itTail=t:r._prev=t,null===e?this._itHead=t:e._next=t,null===this._linkedRecords&&(this._linkedRecords=new fv),this._linkedRecords.put(t),t.currentIndex=i,t}_remove(t){return this._addToRemovals(this._unlink(t))}_unlink(t){null!==this._linkedRecords&&this._linkedRecords.remove(t);const e=t._prev,i=t._next;return null===e?this._itHead=i:e._next=i,null===i?this._itTail=e:i._prev=e,t}_addToMoves(t,e){return t.previousIndex===e||(this._movesTail=null===this._movesTail?this._movesHead=t:this._movesTail._nextMoved=t),t}_addToRemovals(t){return null===this._unlinkedRecords&&(this._unlinkedRecords=new fv),this._unlinkedRecords.put(t),t.currentIndex=null,t._nextRemoved=null,null===this._removalsTail?(this._removalsTail=this._removalsHead=t,t._prevRemoved=null):(t._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=t),t}_addIdentityChange(t,e){return t.item=e,this._identityChangesTail=null===this._identityChangesTail?this._identityChangesHead=t:this._identityChangesTail._nextIdentityChange=t,t}}class Ck{constructor(t,e){this.item=t,this.trackById=e,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 wk{constructor(){this._head=null,this._tail=null}add(t){null===this._head?(this._head=this._tail=t,t._nextDup=null,t._prevDup=null):(this._tail._nextDup=t,t._prevDup=this._tail,t._nextDup=null,this._tail=t)}get(t,e){let i;for(i=this._head;null!==i;i=i._nextDup)if((null===e||e<=i.currentIndex)&&Object.is(i.trackById,t))return i;return null}remove(t){const e=t._prevDup,i=t._nextDup;return null===e?this._head=i:e._nextDup=i,null===i?this._tail=e:i._prevDup=e,null===this._head}}class fv{constructor(){this.map=new Map}put(t){const e=t.trackById;let i=this.map.get(e);i||(i=new wk,this.map.set(e,i)),i.add(t)}get(t,e){const r=this.map.get(t);return r?r.get(t,e):null}remove(t){const e=t.trackById;return this.map.get(e).remove(t)&&this.map.delete(e),t}get isEmpty(){return 0===this.map.size}clear(){this.map.clear()}}function pv(n,t,e){const i=n.previousIndex;if(null===i)return i;let r=0;return e&&i<e.length&&(r=e[i]),i+t+r}class mv{constructor(){}supports(t){return t instanceof Map||Vu(t)}create(){return new Ek}}class Ek{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(t){let e;for(e=this._mapHead;null!==e;e=e._next)t(e)}forEachPreviousItem(t){let e;for(e=this._previousMapHead;null!==e;e=e._nextPrevious)t(e)}forEachChangedItem(t){let e;for(e=this._changesHead;null!==e;e=e._nextChanged)t(e)}forEachAddedItem(t){let e;for(e=this._additionsHead;null!==e;e=e._nextAdded)t(e)}forEachRemovedItem(t){let e;for(e=this._removalsHead;null!==e;e=e._nextRemoved)t(e)}diff(t){if(t){if(!(t instanceof Map||Vu(t)))throw new A(900,"")}else t=new Map;return this.check(t)?this:null}onDestroy(){}check(t){this._reset();let e=this._mapHead;if(this._appendAfter=null,this._forEach(t,(i,r)=>{if(e&&e.key===r)this._maybeAddToChanges(e,i),this._appendAfter=e,e=e._next;else{const s=this._getOrCreateRecordForKey(r,i);e=this._insertBeforeOrAppend(e,s)}}),e){e._prev&&(e._prev._next=null),this._removalsHead=e;for(let i=e;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(t,e){if(t){const i=t._prev;return e._next=t,e._prev=i,t._prev=e,i&&(i._next=e),t===this._mapHead&&(this._mapHead=e),this._appendAfter=t,t}return this._appendAfter?(this._appendAfter._next=e,e._prev=this._appendAfter):this._mapHead=e,this._appendAfter=e,null}_getOrCreateRecordForKey(t,e){if(this._records.has(t)){const r=this._records.get(t);this._maybeAddToChanges(r,e);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 Dk(t);return this._records.set(t,i),i.currentValue=e,this._addToAdditions(i),i}_reset(){if(this.isDirty){let t;for(this._previousMapHead=this._mapHead,t=this._previousMapHead;null!==t;t=t._next)t._nextPrevious=t._next;for(t=this._changesHead;null!==t;t=t._nextChanged)t.previousValue=t.currentValue;for(t=this._additionsHead;null!=t;t=t._nextAdded)t.previousValue=t.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}}_maybeAddToChanges(t,e){Object.is(e,t.currentValue)||(t.previousValue=t.currentValue,t.currentValue=e,this._addToChanges(t))}_addToAdditions(t){null===this._additionsHead?this._additionsHead=this._additionsTail=t:(this._additionsTail._nextAdded=t,this._additionsTail=t)}_addToChanges(t){null===this._changesHead?this._changesHead=this._changesTail=t:(this._changesTail._nextChanged=t,this._changesTail=t)}_forEach(t,e){t instanceof Map?t.forEach(e):Object.keys(t).forEach(i=>e(t[i],i))}}class Dk{constructor(t){this.key=t,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 gv(){return new Na([new hv])}let Na=(()=>{class n{constructor(e){this.factories=e}static create(e,i){if(null!=i){const r=i.factories.slice();e=e.concat(r)}return new n(e)}static extend(e){return{provide:n,useFactory:i=>n.create(e,i||gv()),deps:[[n,new ks,new Ni]]}}find(e){const i=this.factories.find(r=>r.supports(e));if(null!=i)return i;throw new A(901,"")}}return n.\u0275prov=x({token:n,providedIn:"root",factory:gv}),n})();function _v(){return new no([new mv])}let no=(()=>{class n{constructor(e){this.factories=e}static create(e,i){if(i){const r=i.factories.slice();e=e.concat(r)}return new n(e)}static extend(e){return{provide:n,useFactory:i=>n.create(e,i||_v()),deps:[[n,new ks,new Ni]]}}find(e){const i=this.factories.find(s=>s.supports(e));if(i)return i;throw new A(901,"")}}return n.\u0275prov=x({token:n,providedIn:"root",factory:_v}),n})();const Tk=iv(null,"core",[]);let Ak=(()=>{class n{constructor(e){}}return n.\u0275fac=function(e){return new(e||n)(v(Oa))},n.\u0275mod=me({type:n}),n.\u0275inj=ce({}),n})(),Pa=null;function Hn(){return Pa}const Z=new T("DocumentToken");let io=(()=>{class n{historyGo(e){throw new Error("Not implemented")}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=x({token:n,factory:function(){return function Ok(){return v(yv)}()},providedIn:"platform"}),n})(),yv=(()=>{class n extends io{constructor(e){super(),this._doc=e,this._init()}_init(){this.location=window.location,this._history=window.history}getBaseHrefFromDOM(){return Hn().getBaseHref(this._doc)}onPopState(e){const i=Hn().getGlobalEventTarget(this._doc,"window");return i.addEventListener("popstate",e,!1),()=>i.removeEventListener("popstate",e)}onHashChange(e){const i=Hn().getGlobalEventTarget(this._doc,"window");return i.addEventListener("hashchange",e,!1),()=>i.removeEventListener("hashchange",e)}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(e){this.location.pathname=e}pushState(e,i,r){vv()?this._history.pushState(e,i,r):this.location.hash=r}replaceState(e,i,r){vv()?this._history.replaceState(e,i,r):this.location.hash=r}forward(){this._history.forward()}back(){this._history.back()}historyGo(e=0){this._history.go(e)}getState(){return this._history.state}}return n.\u0275fac=function(e){return new(e||n)(v(Z))},n.\u0275prov=x({token:n,factory:function(){return function Fk(){return new yv(v(Z))}()},providedIn:"platform"}),n})();function vv(){return!!window.history.pushState}function bv(n,t){if(0==n.length)return t;if(0==t.length)return n;let e=0;return n.endsWith("/")&&e++,t.startsWith("/")&&e++,2==e?n+t.substring(1):1==e?n+t:n+"/"+t}function Cv(n){const t=n.match(/#|\?|$/),e=t&&t.index||n.length;return n.slice(0,e-("/"===n[e-1]?1:0))+n.slice(e)}function Yi(n){return n&&"?"!==n[0]?"?"+n:n}let kd=(()=>{class n{historyGo(e){throw new Error("Not implemented")}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=x({token:n,factory:function(){return function Rk(n){const t=v(Z).location;return new Pk(v(io),t&&t.origin||"")}()},providedIn:"root"}),n})();const Nk=new T("appBaseHref");let Pk=(()=>{class n extends kd{constructor(e,i){if(super(),this._platformLocation=e,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(e){this._removeListenerFns.push(this._platformLocation.onPopState(e),this._platformLocation.onHashChange(e))}getBaseHref(){return this._baseHref}prepareExternalUrl(e){return bv(this._baseHref,e)}path(e=!1){const i=this._platformLocation.pathname+Yi(this._platformLocation.search),r=this._platformLocation.hash;return r&&e?`${i}${r}`:i}pushState(e,i,r,s){const o=this.prepareExternalUrl(r+Yi(s));this._platformLocation.pushState(e,i,o)}replaceState(e,i,r,s){const o=this.prepareExternalUrl(r+Yi(s));this._platformLocation.replaceState(e,i,o)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}historyGo(e=0){var i,r;null===(r=(i=this._platformLocation).historyGo)||void 0===r||r.call(i,e)}}return n.\u0275fac=function(e){return new(e||n)(v(io),v(Nk,8))},n.\u0275prov=x({token:n,factory:n.\u0275fac}),n})(),wv=(()=>{class n{constructor(e,i){this._subject=new Ie,this._urlChangeListeners=[],this._platformStrategy=e;const r=this._platformStrategy.getBaseHref();this._platformLocation=i,this._baseHref=Cv(Ev(r)),this._platformStrategy.onPopState(s=>{this._subject.emit({url:this.path(!0),pop:!0,state:s.state,type:s.type})})}path(e=!1){return this.normalize(this._platformStrategy.path(e))}getState(){return this._platformLocation.getState()}isCurrentPathEqualTo(e,i=""){return this.path()==this.normalize(e+Yi(i))}normalize(e){return n.stripTrailingSlash(function Vk(n,t){return n&&t.startsWith(n)?t.substring(n.length):t}(this._baseHref,Ev(e)))}prepareExternalUrl(e){return e&&"/"!==e[0]&&(e="/"+e),this._platformStrategy.prepareExternalUrl(e)}go(e,i="",r=null){this._platformStrategy.pushState(r,"",e,i),this._notifyUrlChangeListeners(this.prepareExternalUrl(e+Yi(i)),r)}replaceState(e,i="",r=null){this._platformStrategy.replaceState(r,"",e,i),this._notifyUrlChangeListeners(this.prepareExternalUrl(e+Yi(i)),r)}forward(){this._platformStrategy.forward()}back(){this._platformStrategy.back()}historyGo(e=0){var i,r;null===(r=(i=this._platformStrategy).historyGo)||void 0===r||r.call(i,e)}onUrlChange(e){this._urlChangeListeners.push(e),this._urlChangeSubscription||(this._urlChangeSubscription=this.subscribe(i=>{this._notifyUrlChangeListeners(i.url,i.state)}))}_notifyUrlChangeListeners(e="",i){this._urlChangeListeners.forEach(r=>r(e,i))}subscribe(e,i,r){return this._subject.subscribe({next:e,error:i,complete:r})}}return n.normalizeQueryParams=Yi,n.joinWithSlash=bv,n.stripTrailingSlash=Cv,n.\u0275fac=function(e){return new(e||n)(v(kd),v(io))},n.\u0275prov=x({token:n,factory:function(){return function Lk(){return new wv(v(kd),v(io))}()},providedIn:"root"}),n})();function Ev(n){return n.replace(/\/index.html$/,"")}let jd=(()=>{class n{constructor(e,i,r,s){this._iterableDiffers=e,this._keyValueDiffers=i,this._ngEl=r,this._renderer=s,this._iterableDiffer=null,this._keyValueDiffer=null,this._initialClasses=[],this._rawClass=null}set klass(e){this._removeClasses(this._initialClasses),this._initialClasses="string"==typeof e?e.split(/\s+/):[],this._applyClasses(this._initialClasses),this._applyClasses(this._rawClass)}set ngClass(e){this._removeClasses(this._rawClass),this._applyClasses(this._initialClasses),this._iterableDiffer=null,this._keyValueDiffer=null,this._rawClass="string"==typeof e?e.split(/\s+/):e,this._rawClass&&($s(this._rawClass)?this._iterableDiffer=this._iterableDiffers.find(this._rawClass).create():this._keyValueDiffer=this._keyValueDiffers.find(this._rawClass).create())}ngDoCheck(){if(this._iterableDiffer){const e=this._iterableDiffer.diff(this._rawClass);e&&this._applyIterableChanges(e)}else if(this._keyValueDiffer){const e=this._keyValueDiffer.diff(this._rawClass);e&&this._applyKeyValueChanges(e)}}_applyKeyValueChanges(e){e.forEachAddedItem(i=>this._toggleClass(i.key,i.currentValue)),e.forEachChangedItem(i=>this._toggleClass(i.key,i.currentValue)),e.forEachRemovedItem(i=>{i.previousValue&&this._toggleClass(i.key,!1)})}_applyIterableChanges(e){e.forEachAddedItem(i=>{if("string"!=typeof i.item)throw new Error(`NgClass can only toggle CSS classes expressed as strings, got ${he(i.item)}`);this._toggleClass(i.item,!0)}),e.forEachRemovedItem(i=>this._toggleClass(i.item,!1))}_applyClasses(e){e&&(Array.isArray(e)||e instanceof Set?e.forEach(i=>this._toggleClass(i,!0)):Object.keys(e).forEach(i=>this._toggleClass(i,!!e[i])))}_removeClasses(e){e&&(Array.isArray(e)||e instanceof Set?e.forEach(i=>this._toggleClass(i,!1)):Object.keys(e).forEach(i=>this._toggleClass(i,!1)))}_toggleClass(e,i){(e=e.trim())&&e.split(/\s+/g).forEach(r=>{i?this._renderer.addClass(this._ngEl.nativeElement,r):this._renderer.removeClass(this._ngEl.nativeElement,r)})}}return n.\u0275fac=function(e){return new(e||n)(g(Na),g(no),g(Ee),g(mi))},n.\u0275dir=k({type:n,selectors:[["","ngClass",""]],inputs:{klass:["class","klass"],ngClass:"ngClass"}}),n})();class EO{constructor(t,e,i,r){this.$implicit=t,this.ngForOf=e,this.index=i,this.count=r}get first(){return 0===this.index}get last(){return this.index===this.count-1}get even(){return this.index%2==0}get odd(){return!this.even}}let Ov=(()=>{class n{constructor(e,i,r){this._viewContainer=e,this._template=i,this._differs=r,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}set ngForOf(e){this._ngForOf=e,this._ngForOfDirty=!0}set ngForTrackBy(e){this._trackByFn=e}get ngForTrackBy(){return this._trackByFn}set ngForTemplate(e){e&&(this._template=e)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;const e=this._ngForOf;!this._differ&&e&&(this._differ=this._differs.find(e).create(this.ngForTrackBy))}if(this._differ){const e=this._differ.diff(this._ngForOf);e&&this._applyChanges(e)}}_applyChanges(e){const i=this._viewContainer;e.forEachOperation((r,s,o)=>{if(null==r.previousIndex)i.createEmbeddedView(this._template,new EO(r.item,this._ngForOf,-1,-1),null===o?void 0:o);else if(null==o)i.remove(null===s?void 0:s);else if(null!==s){const a=i.get(s);i.move(a,o),Fv(a,r)}});for(let r=0,s=i.length;r<s;r++){const a=i.get(r).context;a.index=r,a.count=s,a.ngForOf=this._ngForOf}e.forEachIdentityChange(r=>{Fv(i.get(r.currentIndex),r)})}static ngTemplateContextGuard(e,i){return!0}}return n.\u0275fac=function(e){return new(e||n)(g(nn),g(Bn),g(Na))},n.\u0275dir=k({type:n,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"}}),n})();function Fv(n,t){n.context.$implicit=t.item}let Wa=(()=>{class n{constructor(e,i){this._viewContainer=e,this._context=new DO,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=i}set ngIf(e){this._context.$implicit=this._context.ngIf=e,this._updateView()}set ngIfThen(e){Rv("ngIfThen",e),this._thenTemplateRef=e,this._thenViewRef=null,this._updateView()}set ngIfElse(e){Rv("ngIfElse",e),this._elseTemplateRef=e,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(e,i){return!0}}return n.\u0275fac=function(e){return new(e||n)(g(nn),g(Bn))},n.\u0275dir=k({type:n,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"}}),n})();class DO{constructor(){this.$implicit=null,this.ngIf=null}}function Rv(n,t){if(t&&!t.createEmbeddedView)throw new Error(`${n} must be a TemplateRef, but received '${he(t)}'.`)}const Nv="browser";class zd{constructor(t,e){this._viewContainerRef=t,this._templateRef=e,this._created=!1}create(){this._created=!0,this._viewContainerRef.createEmbeddedView(this._templateRef)}destroy(){this._created=!1,this._viewContainerRef.clear()}enforceState(t){t&&!this._created?this.create():!t&&this._created&&this.destroy()}}let Ya=(()=>{class n{constructor(){this._defaultUsed=!1,this._caseCount=0,this._lastCaseCheckIndex=0,this._lastCasesMatched=!1}set ngSwitch(e){this._ngSwitch=e,0===this._caseCount&&this._updateDefaultCases(!0)}_addCase(){return this._caseCount++}_addDefault(e){this._defaultViews||(this._defaultViews=[]),this._defaultViews.push(e)}_matchCase(e){const i=e==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(e){if(this._defaultViews&&e!==this._defaultUsed){this._defaultUsed=e;for(let i=0;i<this._defaultViews.length;i++)this._defaultViews[i].enforceState(e)}}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=k({type:n,selectors:[["","ngSwitch",""]],inputs:{ngSwitch:"ngSwitch"}}),n})(),Hv=(()=>{class n{constructor(e,i,r){this.ngSwitch=r,r._addCase(),this._view=new zd(e,i)}ngDoCheck(){this._view.enforceState(this.ngSwitch._matchCase(this.ngSwitchCase))}}return n.\u0275fac=function(e){return new(e||n)(g(nn),g(Bn),g(Ya,9))},n.\u0275dir=k({type:n,selectors:[["","ngSwitchCase",""]],inputs:{ngSwitchCase:"ngSwitchCase"}}),n})(),$v=(()=>{class n{constructor(e,i,r){this._ngEl=e,this._differs=i,this._renderer=r,this._ngStyle=null,this._differ=null}set ngStyle(e){this._ngStyle=e,!this._differ&&e&&(this._differ=this._differs.find(e).create())}ngDoCheck(){if(this._differ){const e=this._differ.diff(this._ngStyle);e&&this._applyChanges(e)}}_setStyle(e,i){const[r,s]=e.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(e){e.forEachRemovedItem(i=>this._setStyle(i.key,null)),e.forEachAddedItem(i=>this._setStyle(i.key,i.currentValue)),e.forEachChangedItem(i=>this._setStyle(i.key,i.currentValue))}}return n.\u0275fac=function(e){return new(e||n)(g(Ee),g(no),g(mi))},n.\u0275dir=k({type:n,selectors:[["","ngStyle",""]],inputs:{ngStyle:"ngStyle"}}),n})();class iF{createSubscription(t,e){return t.subscribe({next:e,error:i=>{throw i}})}dispose(t){t.unsubscribe()}onDestroy(t){t.unsubscribe()}}class rF{createSubscription(t,e){return t.then(e,i=>{throw i})}dispose(t){}onDestroy(t){}}const sF=new rF,oF=new iF;let Uv=(()=>{class n{constructor(e){this._ref=e,this._latestValue=null,this._subscription=null,this._obj=null,this._strategy=null}ngOnDestroy(){this._subscription&&this._dispose()}transform(e){return this._obj?e!==this._obj?(this._dispose(),this.transform(e)):this._latestValue:(e&&this._subscribe(e),this._latestValue)}_subscribe(e){this._obj=e,this._strategy=this._selectStrategy(e),this._subscription=this._strategy.createSubscription(e,i=>this._updateLatestValue(e,i))}_selectStrategy(e){if(va(e))return sF;if(Yg(e))return oF;throw function Dn(n,t){return new A(2100,"")}()}_dispose(){this._strategy.dispose(this._subscription),this._latestValue=null,this._subscription=null,this._obj=null}_updateLatestValue(e,i){e===this._obj&&(this._latestValue=i,this._ref.markForCheck())}}return n.\u0275fac=function(e){return new(e||n)(g(ei,16))},n.\u0275pipe=gt({name:"async",type:n,pure:!1}),n})(),ao=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=me({type:n}),n.\u0275inj=ce({}),n})();class qd extends class MF extends class kk{}{constructor(){super(...arguments),this.supportsDOMEvents=!0}}{static makeCurrent(){!function xk(n){Pa||(Pa=n)}(new qd)}onAndCancel(t,e,i){return t.addEventListener(e,i,!1),()=>{t.removeEventListener(e,i,!1)}}dispatchEvent(t,e){t.dispatchEvent(e)}remove(t){t.parentNode&&t.parentNode.removeChild(t)}createElement(t,e){return(e=e||this.getDefaultDocument()).createElement(t)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(t){return t.nodeType===Node.ELEMENT_NODE}isShadowRoot(t){return t instanceof DocumentFragment}getGlobalEventTarget(t,e){return"window"===e?window:"document"===e?t:"body"===e?t.body:null}getBaseHref(t){const e=function TF(){return lo=lo||document.querySelector("base"),lo?lo.getAttribute("href"):null}();return null==e?null:function AF(n){Za=Za||document.createElement("a"),Za.setAttribute("href",n);const t=Za.pathname;return"/"===t.charAt(0)?t:`/${t}`}(e)}resetBaseElement(){lo=null}getUserAgent(){return window.navigator.userAgent}getCookie(t){return function CO(n,t){t=encodeURIComponent(t);for(const e of n.split(";")){const i=e.indexOf("="),[r,s]=-1==i?[e,""]:[e.slice(0,i),e.slice(i+1)];if(r.trim()===t)return decodeURIComponent(s)}return null}(document.cookie,t)}}let Za,lo=null;const Wv=new T("TRANSITION_ID"),xF=[{provide:gd,useFactory:function IF(n,t,e){return()=>{e.get(_d).donePromise.then(()=>{const i=Hn(),r=t.querySelectorAll(`style[ng-transition="${n}"]`);for(let s=0;s<r.length;s++)i.remove(r[s])})}},deps:[Wv,Z,Ct],multi:!0}];class Kd{static init(){!function ik(n){Dd=n}(new Kd)}addToWindow(t){ge.getAngularTestability=(i,r=!0)=>{const s=t.findTestabilityInTree(i,r);if(null==s)throw new Error("Could not find testability for element.");return s},ge.getAllAngularTestabilities=()=>t.getAllTestabilities(),ge.getAllAngularRootElements=()=>t.getAllRootElements(),ge.frameworkStabilizers||(ge.frameworkStabilizers=[]),ge.frameworkStabilizers.push(i=>{const r=ge.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(t,e,i){if(null==e)return null;const r=t.getTestability(e);return null!=r?r:i?Hn().isShadowRoot(e)?this.findTestabilityInTree(t,e.host,!0):this.findTestabilityInTree(t,e.parentElement,!0):null}}let kF=(()=>{class n{build(){return new XMLHttpRequest}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=x({token:n,factory:n.\u0275fac}),n})();const Xa=new T("EventManagerPlugins");let Qa=(()=>{class n{constructor(e,i){this._zone=i,this._eventNameToPlugin=new Map,e.forEach(r=>r.manager=this),this._plugins=e.slice().reverse()}addEventListener(e,i,r){return this._findPluginFor(i).addEventListener(e,i,r)}addGlobalEventListener(e,i,r){return this._findPluginFor(i).addGlobalEventListener(e,i,r)}getZone(){return this._zone}_findPluginFor(e){const i=this._eventNameToPlugin.get(e);if(i)return i;const r=this._plugins;for(let s=0;s<r.length;s++){const o=r[s];if(o.supports(e))return this._eventNameToPlugin.set(e,o),o}throw new Error(`No event manager plugin found for event ${e}`)}}return n.\u0275fac=function(e){return new(e||n)(v(Xa),v(le))},n.\u0275prov=x({token:n,factory:n.\u0275fac}),n})();class qv{constructor(t){this._doc=t}addGlobalEventListener(t,e,i){const r=Hn().getGlobalEventTarget(this._doc,t);if(!r)throw new Error(`Unsupported event target ${r} for event ${e}`);return this.addEventListener(r,e,i)}}let Kv=(()=>{class n{constructor(){this._stylesSet=new Set}addStyles(e){const i=new Set;e.forEach(r=>{this._stylesSet.has(r)||(this._stylesSet.add(r),i.add(r))}),this.onStylesAdded(i)}onStylesAdded(e){}getAllStyles(){return Array.from(this._stylesSet)}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=x({token:n,factory:n.\u0275fac}),n})(),co=(()=>{class n extends Kv{constructor(e){super(),this._doc=e,this._hostNodes=new Map,this._hostNodes.set(e.head,[])}_addStylesToHost(e,i,r){e.forEach(s=>{const o=this._doc.createElement("style");o.textContent=s,r.push(i.appendChild(o))})}addHost(e){const i=[];this._addStylesToHost(this._stylesSet,e,i),this._hostNodes.set(e,i)}removeHost(e){const i=this._hostNodes.get(e);i&&i.forEach(Yv),this._hostNodes.delete(e)}onStylesAdded(e){this._hostNodes.forEach((i,r)=>{this._addStylesToHost(e,r,i)})}ngOnDestroy(){this._hostNodes.forEach(e=>e.forEach(Yv))}}return n.\u0275fac=function(e){return new(e||n)(v(Z))},n.\u0275prov=x({token:n,factory:n.\u0275fac}),n})();function Yv(n){Hn().remove(n)}const Yd={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/"},Zd=/%COMP%/g;function Ja(n,t,e){for(let i=0;i<t.length;i++){let r=t[i];Array.isArray(r)?Ja(n,r,e):(r=r.replace(Zd,n),e.push(r))}return e}function Qv(n){return t=>{if("__ngUnwrap__"===t)return n;!1===n(t)&&(t.preventDefault(),t.returnValue=!1)}}let el=(()=>{class n{constructor(e,i,r){this.eventManager=e,this.sharedStylesHost=i,this.appId=r,this.rendererByCompId=new Map,this.defaultRenderer=new Xd(e)}createRenderer(e,i){if(!e||!i)return this.defaultRenderer;switch(i.encapsulation){case hn.Emulated:{let r=this.rendererByCompId.get(i.id);return r||(r=new LF(this.eventManager,this.sharedStylesHost,i,this.appId),this.rendererByCompId.set(i.id,r)),r.applyToHost(e),r}case 1:case hn.ShadowDom:return new VF(this.eventManager,this.sharedStylesHost,e,i);default:if(!this.rendererByCompId.has(i.id)){const r=Ja(i.id,i.styles,[]);this.sharedStylesHost.addStyles(r),this.rendererByCompId.set(i.id,this.defaultRenderer)}return this.defaultRenderer}}begin(){}end(){}}return n.\u0275fac=function(e){return new(e||n)(v(Qa),v(co),v(to))},n.\u0275prov=x({token:n,factory:n.\u0275fac}),n})();class Xd{constructor(t){this.eventManager=t,this.data=Object.create(null),this.destroyNode=null}destroy(){}createElement(t,e){return e?document.createElementNS(Yd[e]||e,t):document.createElement(t)}createComment(t){return document.createComment(t)}createText(t){return document.createTextNode(t)}appendChild(t,e){t.appendChild(e)}insertBefore(t,e,i){t&&t.insertBefore(e,i)}removeChild(t,e){t&&t.removeChild(e)}selectRootElement(t,e){let i="string"==typeof t?document.querySelector(t):t;if(!i)throw new Error(`The selector "${t}" did not match any elements`);return e||(i.textContent=""),i}parentNode(t){return t.parentNode}nextSibling(t){return t.nextSibling}setAttribute(t,e,i,r){if(r){e=r+":"+e;const s=Yd[r];s?t.setAttributeNS(s,e,i):t.setAttribute(e,i)}else t.setAttribute(e,i)}removeAttribute(t,e,i){if(i){const r=Yd[i];r?t.removeAttributeNS(r,e):t.removeAttribute(`${i}:${e}`)}else t.removeAttribute(e)}addClass(t,e){t.classList.add(e)}removeClass(t,e){t.classList.remove(e)}setStyle(t,e,i,r){r&($t.DashCase|$t.Important)?t.style.setProperty(e,i,r&$t.Important?"important":""):t.style[e]=i}removeStyle(t,e,i){i&$t.DashCase?t.style.removeProperty(e):t.style[e]=""}setProperty(t,e,i){t[e]=i}setValue(t,e){t.nodeValue=e}listen(t,e,i){return"string"==typeof t?this.eventManager.addGlobalEventListener(t,e,Qv(i)):this.eventManager.addEventListener(t,e,Qv(i))}}class LF extends Xd{constructor(t,e,i,r){super(t),this.component=i;const s=Ja(r+"-"+i.id,i.styles,[]);e.addStyles(s),this.contentAttr=function RF(n){return"_ngcontent-%COMP%".replace(Zd,n)}(r+"-"+i.id),this.hostAttr=function NF(n){return"_nghost-%COMP%".replace(Zd,n)}(r+"-"+i.id)}applyToHost(t){super.setAttribute(t,this.hostAttr,"")}createElement(t,e){const i=super.createElement(t,e);return super.setAttribute(i,this.contentAttr,""),i}}class VF extends Xd{constructor(t,e,i,r){super(t),this.sharedStylesHost=e,this.hostEl=i,this.shadowRoot=i.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);const s=Ja(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(t){return t===this.hostEl?this.shadowRoot:t}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}appendChild(t,e){return super.appendChild(this.nodeOrShadowRoot(t),e)}insertBefore(t,e,i){return super.insertBefore(this.nodeOrShadowRoot(t),e,i)}removeChild(t,e){return super.removeChild(this.nodeOrShadowRoot(t),e)}parentNode(t){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(t)))}}let BF=(()=>{class n extends qv{constructor(e){super(e)}supports(e){return!0}addEventListener(e,i,r){return e.addEventListener(i,r,!1),()=>this.removeEventListener(e,i,r)}removeEventListener(e,i,r){return e.removeEventListener(i,r)}}return n.\u0275fac=function(e){return new(e||n)(v(Z))},n.\u0275prov=x({token:n,factory:n.\u0275fac}),n})();const eb=["alt","control","meta","shift"],jF={"\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"},tb={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"},$F={alt:n=>n.altKey,control:n=>n.ctrlKey,meta:n=>n.metaKey,shift:n=>n.shiftKey};let UF=(()=>{class n extends qv{constructor(e){super(e)}supports(e){return null!=n.parseEventName(e)}addEventListener(e,i,r){const s=n.parseEventName(i),o=n.eventCallback(s.fullKey,r,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>Hn().onAndCancel(e,s.domEventName,o))}static parseEventName(e){const i=e.toLowerCase().split("."),r=i.shift();if(0===i.length||"keydown"!==r&&"keyup"!==r)return null;const s=n._normalizeKey(i.pop());let o="";if(eb.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(e){let i="",r=function zF(n){let t=n.key;if(null==t){if(t=n.keyIdentifier,null==t)return"Unidentified";t.startsWith("U+")&&(t=String.fromCharCode(parseInt(t.substring(2),16)),3===n.location&&tb.hasOwnProperty(t)&&(t=tb[t]))}return jF[t]||t}(e);return r=r.toLowerCase()," "===r?r="space":"."===r&&(r="dot"),eb.forEach(s=>{s!=r&&$F[s](e)&&(i+=s+".")}),i+=r,i}static eventCallback(e,i,r){return s=>{n.getEventFullKey(s)===e&&r.runGuarded(()=>i(s))}}static _normalizeKey(e){return"esc"===e?"escape":e}}return n.\u0275fac=function(e){return new(e||n)(v(Z))},n.\u0275prov=x({token:n,factory:n.\u0275fac}),n})();const KF=iv(Tk,"browser",[{provide:vd,useValue:Nv},{provide:Qy,useValue:function GF(){qd.makeCurrent(),Kd.init()},multi:!0},{provide:Z,useFactory:function qF(){return function RD(n){gc=n}(document),document},deps:[]}]),YF=[{provide:Ou,useValue:"root"},{provide:hi,useFactory:function WF(){return new hi},deps:[]},{provide:Xa,useClass:BF,multi:!0,deps:[Z,le,vd]},{provide:Xa,useClass:UF,multi:!0,deps:[Z]},{provide:el,useClass:el,deps:[Qa,co,to]},{provide:Ys,useExisting:el},{provide:Kv,useExisting:co},{provide:co,useClass:co,deps:[Z]},{provide:Ed,useClass:Ed,deps:[le]},{provide:Qa,useClass:Qa,deps:[Xa,le]},{provide:class DF{},useClass:kF,deps:[]}];let nb=(()=>{class n{constructor(e){if(e)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(e){return{ngModule:n,providers:[{provide:to,useValue:e.appId},{provide:Wv,useExisting:to},xF]}}}return n.\u0275fac=function(e){return new(e||n)(v(n,12))},n.\u0275mod=me({type:n}),n.\u0275inj=ce({providers:YF,imports:[ao,Ak]}),n})();"undefined"!=typeof window&&window;let Jd=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=x({token:n,factory:function(e){let i=null;return i=e?new(e||n):v(sb),i},providedIn:"root"}),n})(),sb=(()=>{class n extends Jd{constructor(e){super(),this._doc=e}sanitize(e,i){if(null==i)return null;switch(e){case ae.NONE:return i;case ae.HTML:return On(i,"HTML")?Ut(i):Em(this._doc,String(i)).toString();case ae.STYLE:return On(i,"Style")?Ut(i):i;case ae.SCRIPT:if(On(i,"Script"))return Ut(i);throw new Error("unsafe value used in a script context");case ae.URL:return mm(i),On(i,"URL")?Ut(i):Ps(String(i));case ae.RESOURCE_URL:if(On(i,"ResourceURL"))return Ut(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 ${e} (see https://g.co/ng/security#xss)`)}}bypassSecurityTrustHtml(e){return function bS(n){return new mS(n)}(e)}bypassSecurityTrustStyle(e){return function CS(n){return new gS(n)}(e)}bypassSecurityTrustScript(e){return function wS(n){return new _S(n)}(e)}bypassSecurityTrustUrl(e){return function ES(n){return new yS(n)}(e)}bypassSecurityTrustResourceUrl(e){return function DS(n){return new vS(n)}(e)}}return n.\u0275fac=function(e){return new(e||n)(v(Z))},n.\u0275prov=x({token:n,factory:function(e){let i=null;return i=e?new e:function sR(n){return new sb(n.get(Z))}(v(Ct)),i},providedIn:"root"}),n})();class oR extends W{constructor(t,e){super()}schedule(t,e=0){return this}}class tl extends oR{constructor(t,e){super(t,e),this.scheduler=t,this.work=e,this.pending=!1}schedule(t,e=0){if(this.closed)return this;this.state=t;const i=this.id,r=this.scheduler;return null!=i&&(this.id=this.recycleAsyncId(r,i,e)),this.pending=!0,this.delay=e,this.id=this.id||this.requestAsyncId(r,this.id,e),this}requestAsyncId(t,e,i=0){return setInterval(t.flush.bind(t,this),i)}recycleAsyncId(t,e,i=0){if(null!==i&&this.delay===i&&!1===this.pending)return e;clearInterval(e)}execute(t,e){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;const i=this._execute(t,e);if(i)return i;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(t,e){let r,i=!1;try{this.work(t)}catch(s){i=!0,r=!!s&&s||new Error(s)}if(i)return this.unsubscribe(),r}_unsubscribe(){const t=this.id,e=this.scheduler,i=e.actions,r=i.indexOf(this);this.work=null,this.state=null,this.pending=!1,this.scheduler=null,-1!==r&&i.splice(r,1),null!=t&&(this.id=this.recycleAsyncId(e,t,null)),this.delay=null}}let ob=(()=>{class n{constructor(e,i=n.now){this.SchedulerAction=e,this.now=i}schedule(e,i=0,r){return new this.SchedulerAction(this,e).schedule(r,i)}}return n.now=()=>Date.now(),n})();class Sn extends ob{constructor(t,e=ob.now){super(t,()=>Sn.delegate&&Sn.delegate!==this?Sn.delegate.now():e()),this.actions=[],this.active=!1,this.scheduled=void 0}schedule(t,e=0,i){return Sn.delegate&&Sn.delegate!==this?Sn.delegate.schedule(t,e,i):super.schedule(t,e,i)}flush(t){const{actions:e}=this;if(this.active)return void e.push(t);let i;this.active=!0;do{if(i=t.execute(t.state,t.delay))break}while(t=e.shift());if(this.active=!1,i){for(;t=e.shift();)t.unsubscribe();throw i}}}const cR=new class lR extends Sn{}(class aR extends tl{constructor(t,e){super(t,e),this.scheduler=t,this.work=e}schedule(t,e=0){return e>0?super.schedule(t,e):(this.delay=e,this.state=t,this.scheduler.flush(this),this)}execute(t,e){return e>0||this.closed?super.execute(t,e):this._execute(t,e)}requestAsyncId(t,e,i=0){return null!==i&&i>0||null===i&&this.delay>0?super.requestAsyncId(t,e,i):t.flush(this)}}),ab=new Ce(n=>n.complete());function eh(n){return n?function uR(n){return new Ce(t=>n.schedule(()=>t.complete()))}(n):ab}function Mn(...n){let t=n[n.length-1];return ur(t)?(n.pop(),Ql(n,t)):ec(n)}function lb(n,t){return new Ce(t?e=>t.schedule(dR,0,{error:n,subscriber:e}):e=>e.error(n))}function dR({error:n,subscriber:t}){t.error(n)}class kt{constructor(t,e,i){this.kind=t,this.value=e,this.error=i,this.hasValue="N"===t}observe(t){switch(this.kind){case"N":return t.next&&t.next(this.value);case"E":return t.error&&t.error(this.error);case"C":return t.complete&&t.complete()}}do(t,e,i){switch(this.kind){case"N":return t&&t(this.value);case"E":return e&&e(this.error);case"C":return i&&i()}}accept(t,e,i){return t&&"function"==typeof t.next?this.observe(t):this.do(t,e,i)}toObservable(){switch(this.kind){case"N":return Mn(this.value);case"E":return lb(this.error);case"C":return eh()}throw new Error("unexpected notification kind value")}static createNext(t){return void 0!==t?new kt("N",t):kt.undefinedValueNotification}static createError(t){return new kt("E",void 0,t)}static createComplete(){return kt.completeNotification}}kt.completeNotification=new kt("C"),kt.undefinedValueNotification=new kt("N",void 0);class nl extends ye{constructor(t,e,i=0){super(t),this.scheduler=e,this.delay=i}static dispatch(t){const{notification:e,destination:i}=t;e.observe(i),this.unsubscribe()}scheduleMessage(t){this.destination.add(this.scheduler.schedule(nl.dispatch,this.delay,new fR(t,this.destination)))}_next(t){this.scheduleMessage(kt.createNext(t))}_error(t){this.scheduleMessage(kt.createError(t)),this.unsubscribe()}_complete(){this.scheduleMessage(kt.createComplete()),this.unsubscribe()}}class fR{constructor(t,e){this.notification=t,this.destination=e}}class pR extends de{constructor(t=Number.POSITIVE_INFINITY,e=Number.POSITIVE_INFINITY,i){super(),this.scheduler=i,this._events=[],this._infiniteTimeWindow=!1,this._bufferSize=t<1?1:t,this._windowTime=e<1?1:e,e===Number.POSITIVE_INFINITY?(this._infiniteTimeWindow=!0,this.next=this.nextInfiniteTimeWindow):this.next=this.nextTimeWindow}nextInfiniteTimeWindow(t){const e=this._events;e.push(t),e.length>this._bufferSize&&e.shift(),super.next(t)}nextTimeWindow(t){this._events.push(new mR(this._getNow(),t)),this._trimBufferThenGetEvents(),super.next(t)}_subscribe(t){const e=this._infiniteTimeWindow,i=e?this._events:this._trimBufferThenGetEvents(),r=this.scheduler,s=i.length;let o;if(this.closed)throw new Ii;if(this.isStopped||this.hasError?o=W.EMPTY:(this.observers.push(t),o=new Ff(this,t)),r&&t.add(t=new nl(t,r)),e)for(let a=0;a<s&&!t.closed;a++)t.next(i[a]);else for(let a=0;a<s&&!t.closed;a++)t.next(i[a].value);return this.hasError?t.error(this.thrownError):this.isStopped&&t.complete(),o}_getNow(){return(this.scheduler||cR).now()}_trimBufferThenGetEvents(){const t=this._getNow(),e=this._bufferSize,i=this._windowTime,r=this._events,s=r.length;let o=0;for(;o<s&&!(t-r[o].time<i);)o++;return s>e&&(o=Math.max(o,s-e)),o>0&&r.splice(0,o),r}}class mR{constructor(t,e){this.time=t,this.value=e}}function uo(n,t){return"function"==typeof t?e=>e.pipe(uo((i,r)=>ds(n(i,r)).pipe(Ze((s,o)=>t(i,s,r,o))))):e=>e.lift(new gR(n))}class gR{constructor(t){this.project=t}call(t,e){return e.subscribe(new _R(t,this.project))}}class _R extends fs{constructor(t,e){super(t),this.project=e,this.index=0}_next(t){let e;const i=this.index++;try{e=this.project(t,i)}catch(r){return void this.destination.error(r)}this._innerSub(e)}_innerSub(t){const e=this.innerSubscription;e&&e.unsubscribe();const i=new hs(this),r=this.destination;r.add(i),this.innerSubscription=ps(t,i),this.innerSubscription!==i&&r.add(this.innerSubscription)}_complete(){const{innerSubscription:t}=this;(!t||t.closed)&&super._complete(),this.unsubscribe()}_unsubscribe(){this.innerSubscription=void 0}notifyComplete(){this.innerSubscription=void 0,this.isStopped&&super._complete()}notifyNext(t){this.destination.next(t)}}const il={schedule(n,t){const e=setTimeout(n,t);return()=>clearTimeout(e)},scheduleBeforeRender(n){if("undefined"==typeof window)return il.schedule(n,0);if(void 0===window.requestAnimationFrame)return il.schedule(n,16);const t=window.requestAnimationFrame(n);return()=>window.cancelAnimationFrame(t)}};let th;function MR(n,t,e){let i=e;return function vR(n){return!!n&&n.nodeType===Node.ELEMENT_NODE}(n)&&t.some((r,s)=>!("*"===r||!function CR(n,t){if(!th){const e=Element.prototype;th=e.matches||e.matchesSelector||e.mozMatchesSelector||e.msMatchesSelector||e.oMatchesSelector||e.webkitMatchesSelector}return n.nodeType===Node.ELEMENT_NODE&&th.call(n,t)}(n,r)||(i=s,0))),i}class AR{constructor(t,e){this.componentFactory=e.get(Gi).resolveComponentFactory(t)}create(t){return new IR(this.componentFactory,t)}}class IR{constructor(t,e){this.componentFactory=t,this.injector=e,this.eventEmitters=new pR(1),this.events=this.eventEmitters.pipe(uo(i=>si(...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(le),this.elementZone="undefined"==typeof Zone?null:this.ngZone.run(()=>Zone.current)}connect(t){this.runInZone(()=>{if(null!==this.scheduledDestroyFn)return this.scheduledDestroyFn(),void(this.scheduledDestroyFn=null);null===this.componentRef&&this.initializeComponent(t)})}disconnect(){this.runInZone(()=>{null===this.componentRef||null!==this.scheduledDestroyFn||(this.scheduledDestroyFn=il.schedule(()=>{null!==this.componentRef&&(this.componentRef.destroy(),this.componentRef=null,this.viewChangeDetectorRef=null)},10))})}getInputValue(t){return this.runInZone(()=>null===this.componentRef?this.initialInputValues.get(t):this.componentRef.instance[t])}setInputValue(t,e){this.runInZone(()=>{null!==this.componentRef?function wR(n,t){return n===t||n!=n&&t!=t}(e,this.getInputValue(t))&&(void 0!==e||!this.unchangedInputs.has(t))||(this.recordInputChange(t,e),this.unchangedInputs.delete(t),this.hasInputChanges=!0,this.componentRef.instance[t]=e,this.scheduleDetectChanges()):this.initialInputValues.set(t,e)})}initializeComponent(t){const e=Ct.create({providers:[],parent:this.injector}),i=function SR(n,t){const e=n.childNodes,i=t.map(()=>[]);let r=-1;t.some((s,o)=>"*"===s&&(r=o,!0));for(let s=0,o=e.length;s<o;++s){const a=e[s],l=MR(a,t,r);-1!==l&&i[l].push(a)}return i}(t,this.componentFactory.ngContentSelectors);this.componentRef=this.componentFactory.create(e,i,t),this.viewChangeDetectorRef=this.componentRef.injector.get(ei),this.implementsOnChanges=function bR(n){return"function"==typeof n}(this.componentRef.instance.ngOnChanges),this.initializeInputs(),this.initializeOutputs(this.componentRef),this.detectChanges(),this.injector.get(Oa).attachView(this.componentRef.hostView)}initializeInputs(){this.componentFactory.inputs.forEach(({propName:t})=>{this.initialInputValues.has(t)&&this.setInputValue(t,this.initialInputValues.get(t))}),this.initialInputValues.clear()}initializeOutputs(t){const e=this.componentFactory.outputs.map(({propName:i,templateName:r})=>t.instance[i].pipe(Ze(o=>({name:r,value:o}))));this.eventEmitters.next(e)}callNgOnChanges(t){if(!this.implementsOnChanges||null===this.inputChanges)return;const e=this.inputChanges;this.inputChanges=null,t.instance.ngOnChanges(e)}markViewForCheck(t){this.hasInputChanges&&(this.hasInputChanges=!1,t.markForCheck())}scheduleDetectChanges(){this.scheduledChangeDetectionFn||(this.scheduledChangeDetectionFn=il.scheduleBeforeRender(()=>{this.scheduledChangeDetectionFn=null,this.detectChanges()}))}recordInputChange(t,e){if(!this.implementsOnChanges)return;null===this.inputChanges&&(this.inputChanges={});const i=this.inputChanges[t];if(i)return void(i.currentValue=e);const r=this.unchangedInputs.has(t),s=r?void 0:this.getInputValue(t);this.inputChanges[t]=new Jf(s,e,r)}detectChanges(){null!==this.componentRef&&(this.callNgOnChanges(this.componentRef),this.markViewForCheck(this.viewChangeDetectorRef),this.componentRef.changeDetectorRef.detectChanges())}runInZone(t){return this.elementZone&&Zone.current!==this.elementZone?this.ngZone.run(t):t()}}class xR extends HTMLElement{constructor(){super(...arguments),this.ngElementEventsSubscription=null}}class cb{}const ni="*";function ub(n,t){return{type:7,name:n,definitions:t,options:{}}}function nh(n,t=null){return{type:4,styles:t,timings:n}}function db(n,t=null){return{type:2,steps:n,options:t}}function jn(n){return{type:6,styles:n,offset:null}}function ih(n,t,e){return{type:0,name:n,styles:t,options:e}}function FR(n){return{type:5,steps:n}}function rh(n,t,e=null){return{type:1,expr:n,animation:t,options:e}}function hb(n){Promise.resolve(null).then(n)}class ho{constructor(t=0,e=0){this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._started=!1,this._destroyed=!1,this._finished=!1,this._position=0,this.parentPlayer=null,this.totalTime=t+e}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(t=>t()),this._onDoneFns=[])}onStart(t){this._onStartFns.push(t)}onDone(t){this._onDoneFns.push(t)}onDestroy(t){this._onDestroyFns.push(t)}hasStarted(){return this._started}init(){}play(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}triggerMicrotask(){hb(()=>this._onFinish())}_onStart(){this._onStartFns.forEach(t=>t()),this._onStartFns=[]}pause(){}restart(){}finish(){this._onFinish()}destroy(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(t=>t()),this._onDestroyFns=[])}reset(){this._started=!1}setPosition(t){this._position=this.totalTime?t*this.totalTime:1}getPosition(){return this.totalTime?this._position/this.totalTime:1}triggerCallback(t){const e="start"==t?this._onStartFns:this._onDoneFns;e.forEach(i=>i()),e.length=0}}class fb{constructor(t){this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=t;let e=0,i=0,r=0;const s=this.players.length;0==s?hb(()=>this._onFinish()):this.players.forEach(o=>{o.onDone(()=>{++e==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(t=>t()),this._onDoneFns=[])}init(){this.players.forEach(t=>t.init())}onStart(t){this._onStartFns.push(t)}_onStart(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(t=>t()),this._onStartFns=[])}onDone(t){this._onDoneFns.push(t)}onDestroy(t){this._onDestroyFns.push(t)}hasStarted(){return this._started}play(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(t=>t.play())}pause(){this.players.forEach(t=>t.pause())}restart(){this.players.forEach(t=>t.restart())}finish(){this._onFinish(),this.players.forEach(t=>t.finish())}destroy(){this._onDestroy()}_onDestroy(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(t=>t.destroy()),this._onDestroyFns.forEach(t=>t()),this._onDestroyFns=[])}reset(){this.players.forEach(t=>t.reset()),this._destroyed=!1,this._finished=!1,this._started=!1}setPosition(t){const e=t*this.totalTime;this.players.forEach(i=>{const r=i.totalTime?Math.min(1,e/i.totalTime):1;i.setPosition(r)})}getPosition(){const t=this.players.reduce((e,i)=>null===e||i.totalTime>e.totalTime?i:e,null);return null!=t?t.getPosition():0}beforeDestroy(){this.players.forEach(t=>{t.beforeDestroy&&t.beforeDestroy()})}triggerCallback(t){const e="start"==t?this._onStartFns:this._onDoneFns;e.forEach(i=>i()),e.length=0}}const ee=!1;function pb(n){return new A(3e3,ee)}function fN(){return"undefined"!=typeof window&&void 0!==window.document}function oh(){return"undefined"!=typeof process&&"[object process]"==={}.toString.call(process)}function _i(n){switch(n.length){case 0:return new ho;case 1:return n[0];default:return new fb(n)}}function mb(n,t,e,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 m=p,y=u[p];if("offset"!==p)switch(m=t.normalizePropertyName(m,o),y){case"!":y=r[p];break;case ni:y=s[p];break;default:y=t.normalizeStyleValue(p,m,y,o)}f[m]=y}),h||a.push(f),c=f,l=d}),o.length)throw function nN(n){return new A(3502,ee)}();return a}function ah(n,t,e,i){switch(t){case"start":n.onStart(()=>i(e&&lh(e,"start",n)));break;case"done":n.onDone(()=>i(e&&lh(e,"done",n)));break;case"destroy":n.onDestroy(()=>i(e&&lh(e,"destroy",n)))}}function lh(n,t,e){const i=e.totalTime,s=ch(n.element,n.triggerName,n.fromState,n.toState,t||n.phaseName,null==i?n.totalTime:i,!!e.disabled),o=n._data;return null!=o&&(s._data=o),s}function ch(n,t,e,i,r="",s=0,o){return{element:n,triggerName:t,fromState:e,toState:i,phaseName:r,totalTime:s,disabled:!!o}}function Wt(n,t,e){let i;return n instanceof Map?(i=n.get(t),i||n.set(t,i=e)):(i=n[t],i||(i=n[t]=e)),i}function gb(n){const t=n.indexOf(":");return[n.substring(1,t),n.substr(t+1)]}let uh=(n,t)=>!1,_b=(n,t,e)=>[],yb=null;function dh(n){const t=n.parentNode||n.host;return t===yb?null:t}(oh()||"undefined"!=typeof Element)&&(fN()?(yb=(()=>document.documentElement)(),uh=(n,t)=>{for(;t;){if(t===n)return!0;t=dh(t)}return!1}):uh=(n,t)=>n.contains(t),_b=(n,t,e)=>{if(e)return Array.from(n.querySelectorAll(t));const i=n.querySelector(t);return i?[i]:[]});let Zi=null,vb=!1;function bb(n){Zi||(Zi=function mN(){return"undefined"!=typeof document?document.body:null}()||{},vb=!!Zi.style&&"WebkitAppearance"in Zi.style);let t=!0;return Zi.style&&!function pN(n){return"ebkit"==n.substring(1,6)}(n)&&(t=n in Zi.style,!t&&vb&&(t="Webkit"+n.charAt(0).toUpperCase()+n.substr(1)in Zi.style)),t}const Cb=uh,wb=_b;let Eb=(()=>{class n{validateStyleProperty(e){return bb(e)}matchesElement(e,i){return!1}containsElement(e,i){return Cb(e,i)}getParentElement(e){return dh(e)}query(e,i,r){return wb(e,i,r)}computeStyle(e,i,r){return r||""}animate(e,i,r,s,o,a=[],l){return new ho(r,s)}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=x({token:n,factory:n.\u0275fac}),n})(),hh=(()=>{class n{}return n.NOOP=new Eb,n})();const fh="ng-enter",sl="ng-leave",ol="ng-trigger",al=".ng-trigger",Sb="ng-animating",ph=".ng-animating";function Xi(n){if("number"==typeof n)return n;const t=n.match(/^(-?[\.\d]+)(m?s)/);return!t||t.length<2?0:mh(parseFloat(t[1]),t[2])}function mh(n,t){return"s"===t?1e3*n:n}function ll(n,t,e){return n.hasOwnProperty("duration")?n:function yN(n,t,e){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 t.push(pb()),{duration:0,delay:0,easing:""};r=mh(parseFloat(a[1]),a[2]);const l=a[3];null!=l&&(s=mh(parseFloat(l),a[4]));const c=a[5];c&&(o=c)}else r=n;if(!e){let a=!1,l=t.length;r<0&&(t.push(function RR(){return new A(3100,ee)}()),a=!0),s<0&&(t.push(function NR(){return new A(3101,ee)}()),a=!0),a&&t.splice(l,0,pb())}return{duration:r,delay:s,easing:o}}(n,t,e)}function Jr(n,t={}){return Object.keys(n).forEach(e=>{t[e]=n[e]}),t}function yi(n,t,e={}){if(t)for(let i in n)e[i]=n[i];else Jr(n,e);return e}function Tb(n,t,e){return e?t+":"+e+";":""}function Ab(n){let t="";for(let e=0;e<n.style.length;e++){const i=n.style.item(e);t+=Tb(0,i,n.style.getPropertyValue(i))}for(const e in n.style)n.style.hasOwnProperty(e)&&!e.startsWith("_")&&(t+=Tb(0,CN(e),n.style[e]));n.setAttribute("style",t)}function $n(n,t,e){n.style&&(Object.keys(t).forEach(i=>{const r=_h(i);e&&!e.hasOwnProperty(i)&&(e[i]=n.style[r]),n.style[r]=t[i]}),oh()&&Ab(n))}function Qi(n,t){n.style&&(Object.keys(t).forEach(e=>{const i=_h(e);n.style[i]=""}),oh()&&Ab(n))}function fo(n){return Array.isArray(n)?1==n.length?n[0]:db(n):n}const gh=new RegExp("{{\\s*(.+?)\\s*}}","g");function Ib(n){let t=[];if("string"==typeof n){let e;for(;e=gh.exec(n);)t.push(e[1]);gh.lastIndex=0}return t}function cl(n,t,e){const i=n.toString(),r=i.replace(gh,(s,o)=>{let a=t[o];return t.hasOwnProperty(o)||(e.push(function LR(n){return new A(3003,ee)}()),a=""),a.toString()});return r==i?n:r}function ul(n){const t=[];let e=n.next();for(;!e.done;)t.push(e.value),e=n.next();return t}const bN=/-+([a-z0-9])/g;function _h(n){return n.replace(bN,(...t)=>t[1].toUpperCase())}function CN(n){return n.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}function qt(n,t,e){switch(t.type){case 7:return n.visitTrigger(t,e);case 0:return n.visitState(t,e);case 1:return n.visitTransition(t,e);case 2:return n.visitSequence(t,e);case 3:return n.visitGroup(t,e);case 4:return n.visitAnimate(t,e);case 5:return n.visitKeyframes(t,e);case 6:return n.visitStyle(t,e);case 8:return n.visitReference(t,e);case 9:return n.visitAnimateChild(t,e);case 10:return n.visitAnimateRef(t,e);case 11:return n.visitQuery(t,e);case 12:return n.visitStagger(t,e);default:throw function VR(n){return new A(3004,ee)}()}}function xb(n,t){return window.getComputedStyle(n)[t]}function TN(n,t){const e=[];return"string"==typeof n?n.split(/\s*,\s*/).forEach(i=>function AN(n,t,e){if(":"==n[0]){const l=function IN(n,t){switch(n){case":enter":return"void => *";case":leave":return"* => void";case":increment":return(e,i)=>parseFloat(i)>parseFloat(e);case":decrement":return(e,i)=>parseFloat(i)<parseFloat(e);default:return t.push(function QR(n){return new A(3016,ee)}()),"* => *"}}(n,e);if("function"==typeof l)return void t.push(l);n=l}const i=n.match(/^(\*|[-\w]+)\s*(<?[=-]>)\s*(\*|[-\w]+)$/);if(null==i||i.length<4)return e.push(function XR(n){return new A(3015,ee)}()),t;const r=i[1],s=i[2],o=i[3];t.push(kb(r,o));"<"==s[0]&&!("*"==r&&"*"==o)&&t.push(kb(o,r))}(i,e,t)):e.push(n),e}const pl=new Set(["true","1"]),ml=new Set(["false","0"]);function kb(n,t){const e=pl.has(n)||ml.has(n),i=pl.has(t)||ml.has(t);return(r,s)=>{let o="*"==n||n==r,a="*"==t||t==s;return!o&&e&&"boolean"==typeof r&&(o=r?pl.has(n):ml.has(n)),!a&&i&&"boolean"==typeof s&&(a=s?pl.has(t):ml.has(t)),o&&a}}const xN=new RegExp("s*:selfs*,?","g");function yh(n,t,e,i){return new kN(n).build(t,e,i)}class kN{constructor(t){this._driver=t}build(t,e,i){const r=new RN(e);this._resetContextStyleTimingState(r);const s=qt(this,fo(t),r);return r.unsupportedCSSPropertiesFound.size&&r.unsupportedCSSPropertiesFound.keys(),s}_resetContextStyleTimingState(t){t.currentQuerySelector="",t.collectedStyles={},t.collectedStyles[""]={},t.currentTime=0}visitTrigger(t,e){let i=e.queryCount=0,r=e.depCount=0;const s=[],o=[];return"@"==t.name.charAt(0)&&e.errors.push(function HR(){return new A(3006,ee)}()),t.definitions.forEach(a=>{if(this._resetContextStyleTimingState(e),0==a.type){const l=a,c=l.name;c.toString().split(/\s*,\s*/).forEach(u=>{l.name=u,s.push(this.visitState(l,e))}),l.name=c}else if(1==a.type){const l=this.visitTransition(a,e);i+=l.queryCount,r+=l.depCount,o.push(l)}else e.errors.push(function jR(){return new A(3007,ee)}())}),{type:7,name:t.name,states:s,transitions:o,queryCount:i,depCount:r,options:null}}visitState(t,e){const i=this.visitStyle(t.styles,e),r=t.options&&t.options.params||null;if(i.containsDynamicStyles){const s=new Set,o=r||{};i.styles.forEach(a=>{if(gl(a)){const l=a;Object.keys(l).forEach(c=>{Ib(l[c]).forEach(u=>{o.hasOwnProperty(u)||s.add(u)})})}}),s.size&&(ul(s.values()),e.errors.push(function $R(n,t){return new A(3008,ee)}()))}return{type:0,name:t.name,style:i,options:r?{params:r}:null}}visitTransition(t,e){e.queryCount=0,e.depCount=0;const i=qt(this,fo(t.animation),e);return{type:1,matchers:TN(t.expr,e.errors),animation:i,queryCount:e.queryCount,depCount:e.depCount,options:Ji(t.options)}}visitSequence(t,e){return{type:2,steps:t.steps.map(i=>qt(this,i,e)),options:Ji(t.options)}}visitGroup(t,e){const i=e.currentTime;let r=0;const s=t.steps.map(o=>{e.currentTime=i;const a=qt(this,o,e);return r=Math.max(r,e.currentTime),a});return e.currentTime=r,{type:3,steps:s,options:Ji(t.options)}}visitAnimate(t,e){const i=function PN(n,t){if(n.hasOwnProperty("duration"))return n;if("number"==typeof n)return vh(ll(n,t).duration,0,"");const e=n;if(e.split(/\s+/).some(s=>"{"==s.charAt(0)&&"{"==s.charAt(1))){const s=vh(0,0,"");return s.dynamic=!0,s.strValue=e,s}const r=ll(e,t);return vh(r.duration,r.delay,r.easing)}(t.timings,e.errors);e.currentAnimateTimings=i;let r,s=t.styles?t.styles:jn({});if(5==s.type)r=this.visitKeyframes(s,e);else{let o=t.styles,a=!1;if(!o){a=!0;const c={};i.easing&&(c.easing=i.easing),o=jn(c)}e.currentTime+=i.duration+i.delay;const l=this.visitStyle(o,e);l.isEmptyStep=a,r=l}return e.currentAnimateTimings=null,{type:4,timings:i,style:r,options:null}}visitStyle(t,e){const i=this._makeStyleAst(t,e);return this._validateStyleAst(i,e),i}_makeStyleAst(t,e){const i=[];Array.isArray(t.styles)?t.styles.forEach(o=>{"string"==typeof o?o==ni?i.push(o):e.errors.push(function UR(n){return new A(3002,ee)}()):i.push(o)}):i.push(t.styles);let r=!1,s=null;return i.forEach(o=>{if(gl(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:t.offset,containsDynamicStyles:r,options:null}}_validateStyleAst(t,e){const i=e.currentAnimateTimings;let r=e.currentTime,s=e.currentTime;i&&s>0&&(s-=i.duration+i.delay),t.styles.forEach(o=>{"string"!=typeof o&&Object.keys(o).forEach(a=>{if(!this._driver.validateStyleProperty(a))return delete o[a],void e.unsupportedCSSPropertiesFound.add(a);const l=e.collectedStyles[e.currentQuerySelector],c=l[a];let u=!0;c&&(s!=r&&s>=c.startTime&&r<=c.endTime&&(e.errors.push(function zR(n,t,e,i,r){return new A(3010,ee)}()),u=!1),s=c.startTime),u&&(l[a]={startTime:s,endTime:r}),e.options&&function vN(n,t,e){const i=t.params||{},r=Ib(n);r.length&&r.forEach(s=>{i.hasOwnProperty(s)||e.push(function PR(n){return new A(3001,ee)}())})}(o[a],e.options,e.errors)})})}visitKeyframes(t,e){const i={type:5,styles:[],options:null};if(!e.currentAnimateTimings)return e.errors.push(function GR(){return new A(3011,ee)}()),i;let s=0;const o=[];let a=!1,l=!1,c=0;const u=t.steps.map(b=>{const _=this._makeStyleAst(b,e);let E=null!=_.offset?_.offset:function NN(n){if("string"==typeof n)return null;let t=null;if(Array.isArray(n))n.forEach(e=>{if(gl(e)&&e.hasOwnProperty("offset")){const i=e;t=parseFloat(i.offset),delete i.offset}});else if(gl(n)&&n.hasOwnProperty("offset")){const e=n;t=parseFloat(e.offset),delete e.offset}return t}(_.styles),w=0;return null!=E&&(s++,w=_.offset=E),l=l||w<0||w>1,a=a||w<c,c=w,o.push(w),_});l&&e.errors.push(function WR(){return new A(3012,ee)}()),a&&e.errors.push(function qR(){return new A(3200,ee)}());const d=t.steps.length;let h=0;s>0&&s<d?e.errors.push(function KR(){return new A(3202,ee)}()):0==s&&(h=1/(d-1));const f=d-1,p=e.currentTime,m=e.currentAnimateTimings,y=m.duration;return u.forEach((b,_)=>{const E=h>0?_==f?1:h*_:o[_],w=E*y;e.currentTime=p+m.delay+w,m.duration=w,this._validateStyleAst(b,e),b.offset=E,i.styles.push(b)}),i}visitReference(t,e){return{type:8,animation:qt(this,fo(t.animation),e),options:Ji(t.options)}}visitAnimateChild(t,e){return e.depCount++,{type:9,options:Ji(t.options)}}visitAnimateRef(t,e){return{type:10,animation:this.visitReference(t.animation,e),options:Ji(t.options)}}visitQuery(t,e){const i=e.currentQuerySelector,r=t.options||{};e.queryCount++,e.currentQuery=t;const[s,o]=function ON(n){const t=!!n.split(/\s*,\s*/).find(e=>":self"==e);return t&&(n=n.replace(xN,"")),n=n.replace(/@\*/g,al).replace(/@\w+/g,e=>al+"-"+e.substr(1)).replace(/:animating/g,ph),[n,t]}(t.selector);e.currentQuerySelector=i.length?i+" "+s:s,Wt(e.collectedStyles,e.currentQuerySelector,{});const a=qt(this,fo(t.animation),e);return e.currentQuery=null,e.currentQuerySelector=i,{type:11,selector:s,limit:r.limit||0,optional:!!r.optional,includeSelf:o,animation:a,originalSelector:t.selector,options:Ji(t.options)}}visitStagger(t,e){e.currentQuery||e.errors.push(function YR(){return new A(3013,ee)}());const i="full"===t.timings?{duration:0,delay:0,easing:"full"}:ll(t.timings,e.errors,!0);return{type:12,animation:qt(this,fo(t.animation),e),timings:i,options:null}}}class RN{constructor(t){this.errors=t,this.queryCount=0,this.depCount=0,this.currentTransition=null,this.currentQuery=null,this.currentQuerySelector=null,this.currentAnimateTimings=null,this.currentTime=0,this.collectedStyles={},this.options=null,this.unsupportedCSSPropertiesFound=new Set}}function gl(n){return!Array.isArray(n)&&"object"==typeof n}function Ji(n){return n?(n=Jr(n)).params&&(n.params=function FN(n){return n?Jr(n):null}(n.params)):n={},n}function vh(n,t,e){return{duration:n,delay:t,easing:e}}function bh(n,t,e,i,r,s,o=null,a=!1){return{type:1,element:n,keyframes:t,preStyleProps:e,postStyleProps:i,duration:r,delay:s,totalTime:r+s,easing:o,subTimeline:a}}class _l{constructor(){this._map=new Map}get(t){return this._map.get(t)||[]}append(t,e){let i=this._map.get(t);i||this._map.set(t,i=[]),i.push(...e)}has(t){return this._map.has(t)}clear(){this._map.clear()}}const BN=new RegExp(":enter","g"),jN=new RegExp(":leave","g");function Ch(n,t,e,i,r,s={},o={},a,l,c=[]){return(new $N).buildKeyframes(n,t,e,i,r,s,o,a,l,c)}class $N{buildKeyframes(t,e,i,r,s,o,a,l,c,u=[]){c=c||new _l;const d=new wh(t,e,c,r,s,u,[]);d.options=l,d.currentTimeline.setStyles([o],null,d.errors,l),qt(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 m=h[p];if(m.element===e){f=m;break}}f&&!f.allowOnlyTimelineStyles()&&f.setStyles([a],null,d.errors,l)}return h.length?h.map(f=>f.buildKeyframes()):[bh(e,[],[],[],0,0,"",!1)]}visitTrigger(t,e){}visitState(t,e){}visitTransition(t,e){}visitAnimateChild(t,e){const i=e.subInstructions.get(e.element);if(i){const r=e.createSubContext(t.options),s=e.currentTimeline.currentTime,o=this._visitSubInstructions(i,r,r.options);s!=o&&e.transformIntoNewTimeline(o)}e.previousNode=t}visitAnimateRef(t,e){const i=e.createSubContext(t.options);i.transformIntoNewTimeline(),this.visitReference(t.animation,i),e.transformIntoNewTimeline(i.currentTimeline.currentTime),e.previousNode=t}_visitSubInstructions(t,e,i){let s=e.currentTimeline.currentTime;const o=null!=i.duration?Xi(i.duration):null,a=null!=i.delay?Xi(i.delay):null;return 0!==o&&t.forEach(l=>{const c=e.appendInstructionToTimeline(l,o,a);s=Math.max(s,c.duration+c.delay)}),s}visitReference(t,e){e.updateOptions(t.options,!0),qt(this,t.animation,e),e.previousNode=t}visitSequence(t,e){const i=e.subContextCount;let r=e;const s=t.options;if(s&&(s.params||s.delay)&&(r=e.createSubContext(s),r.transformIntoNewTimeline(),null!=s.delay)){6==r.previousNode.type&&(r.currentTimeline.snapshotCurrentStyles(),r.previousNode=yl);const o=Xi(s.delay);r.delayNextStep(o)}t.steps.length&&(t.steps.forEach(o=>qt(this,o,r)),r.currentTimeline.applyStylesToKeyframe(),r.subContextCount>i&&r.transformIntoNewTimeline()),e.previousNode=t}visitGroup(t,e){const i=[];let r=e.currentTimeline.currentTime;const s=t.options&&t.options.delay?Xi(t.options.delay):0;t.steps.forEach(o=>{const a=e.createSubContext(t.options);s&&a.delayNextStep(s),qt(this,o,a),r=Math.max(r,a.currentTimeline.currentTime),i.push(a.currentTimeline)}),i.forEach(o=>e.currentTimeline.mergeTimelineCollectedStyles(o)),e.transformIntoNewTimeline(r),e.previousNode=t}_visitTiming(t,e){if(t.dynamic){const i=t.strValue;return ll(e.params?cl(i,e.params,e.errors):i,e.errors)}return{duration:t.duration,delay:t.delay,easing:t.easing}}visitAnimate(t,e){const i=e.currentAnimateTimings=this._visitTiming(t.timings,e),r=e.currentTimeline;i.delay&&(e.incrementTime(i.delay),r.snapshotCurrentStyles());const s=t.style;5==s.type?this.visitKeyframes(s,e):(e.incrementTime(i.duration),this.visitStyle(s,e),r.applyStylesToKeyframe()),e.currentAnimateTimings=null,e.previousNode=t}visitStyle(t,e){const i=e.currentTimeline,r=e.currentAnimateTimings;!r&&i.getCurrentStyleProperties().length&&i.forwardFrame();const s=r&&r.easing||t.easing;t.isEmptyStep?i.applyEmptyStep(s):i.setStyles(t.styles,s,e.errors,e.options),e.previousNode=t}visitKeyframes(t,e){const i=e.currentAnimateTimings,r=e.currentTimeline.duration,s=i.duration,a=e.createSubContext().currentTimeline;a.easing=i.easing,t.styles.forEach(l=>{a.forwardTime((l.offset||0)*s),a.setStyles(l.styles,l.easing,e.errors,e.options),a.applyStylesToKeyframe()}),e.currentTimeline.mergeTimelineCollectedStyles(a),e.transformIntoNewTimeline(r+s),e.previousNode=t}visitQuery(t,e){const i=e.currentTimeline.currentTime,r=t.options||{},s=r.delay?Xi(r.delay):0;s&&(6===e.previousNode.type||0==i&&e.currentTimeline.getCurrentStyleProperties().length)&&(e.currentTimeline.snapshotCurrentStyles(),e.previousNode=yl);let o=i;const a=e.invokeQuery(t.selector,t.originalSelector,t.limit,t.includeSelf,!!r.optional,e.errors);e.currentQueryTotal=a.length;let l=null;a.forEach((c,u)=>{e.currentQueryIndex=u;const d=e.createSubContext(t.options,c);s&&d.delayNextStep(s),c===e.element&&(l=d.currentTimeline),qt(this,t.animation,d),d.currentTimeline.applyStylesToKeyframe(),o=Math.max(o,d.currentTimeline.currentTime)}),e.currentQueryIndex=0,e.currentQueryTotal=0,e.transformIntoNewTimeline(o),l&&(e.currentTimeline.mergeTimelineCollectedStyles(l),e.currentTimeline.snapshotCurrentStyles()),e.previousNode=t}visitStagger(t,e){const i=e.parentContext,r=e.currentTimeline,s=t.timings,o=Math.abs(s.duration),a=o*(e.currentQueryTotal-1);let l=o*e.currentQueryIndex;switch(s.duration<0?"reverse":s.easing){case"reverse":l=a-l;break;case"full":l=i.currentStaggerTime}const u=e.currentTimeline;l&&u.delayNextStep(l);const d=u.currentTime;qt(this,t.animation,e),e.previousNode=t,i.currentStaggerTime=r.currentTime-d+(r.startTime-i.currentTimeline.startTime)}}const yl={};class wh{constructor(t,e,i,r,s,o,a,l){this._driver=t,this.element=e,this.subInstructions=i,this._enterClassName=r,this._leaveClassName=s,this.errors=o,this.timelines=a,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=yl,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=l||new vl(this._driver,e,0),a.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(t,e){if(!t)return;const i=t;let r=this.options;null!=i.duration&&(r.duration=Xi(i.duration)),null!=i.delay&&(r.delay=Xi(i.delay));const s=i.params;if(s){let o=r.params;o||(o=this.options.params={}),Object.keys(s).forEach(a=>{(!e||!o.hasOwnProperty(a))&&(o[a]=cl(s[a],o,this.errors))})}}_copyOptions(){const t={};if(this.options){const e=this.options.params;if(e){const i=t.params={};Object.keys(e).forEach(r=>{i[r]=e[r]})}}return t}createSubContext(t=null,e,i){const r=e||this.element,s=new wh(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(t),s.currentQueryIndex=this.currentQueryIndex,s.currentQueryTotal=this.currentQueryTotal,s.parentContext=this,this.subContextCount++,s}transformIntoNewTimeline(t){return this.previousNode=yl,this.currentTimeline=this.currentTimeline.fork(this.element,t),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(t,e,i){const r={duration:null!=e?e:t.duration,delay:this.currentTimeline.currentTime+(null!=i?i:0)+t.delay,easing:""},s=new UN(this._driver,t.element,t.keyframes,t.preStyleProps,t.postStyleProps,r,t.stretchStartingKeyframe);return this.timelines.push(s),r}incrementTime(t){this.currentTimeline.forwardTime(this.currentTimeline.duration+t)}delayNextStep(t){t>0&&this.currentTimeline.delayNextStep(t)}invokeQuery(t,e,i,r,s,o){let a=[];if(r&&a.push(this.element),t.length>0){t=(t=t.replace(BN,"."+this._enterClassName)).replace(jN,"."+this._leaveClassName);let c=this._driver.query(this.element,t,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 ZR(n){return new A(3014,ee)}()),a}}class vl{constructor(t,e,i,r){this._driver=t,this.element=e,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(e),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(e,this._localTimelineStyles)),this._loadKeyframe()}containsAnimation(){switch(this._keyframes.size){case 0:return!1;case 1:return this.getCurrentStyleProperties().length>0;default:return!0}}getCurrentStyleProperties(){return Object.keys(this._currentKeyframe)}get currentTime(){return this.startTime+this.duration}delayNextStep(t){const e=1==this._keyframes.size&&Object.keys(this._pendingStyles).length;this.duration||e?(this.forwardTime(this.currentTime+t),e&&this.snapshotCurrentStyles()):this.startTime+=t}fork(t,e){return this.applyStylesToKeyframe(),new vl(this._driver,t,e||this.currentTime,this._elementTimelineStylesLookup)}_loadKeyframe(){this._currentKeyframe&&(this._previousKeyframe=this._currentKeyframe),this._currentKeyframe=this._keyframes.get(this.duration),this._currentKeyframe||(this._currentKeyframe=Object.create(this._backFill,{}),this._keyframes.set(this.duration,this._currentKeyframe))}forwardFrame(){this.duration+=1,this._loadKeyframe()}forwardTime(t){this.applyStylesToKeyframe(),this.duration=t,this._loadKeyframe()}_updateStyle(t,e){this._localTimelineStyles[t]=e,this._globalTimelineStyles[t]=e,this._styleSummary[t]={time:this.currentTime,value:e}}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}applyEmptyStep(t){t&&(this._previousKeyframe.easing=t),Object.keys(this._globalTimelineStyles).forEach(e=>{this._backFill[e]=this._globalTimelineStyles[e]||ni,this._currentKeyframe[e]=ni}),this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(t,e,i,r){e&&(this._previousKeyframe.easing=e);const s=r&&r.params||{},o=function zN(n,t){const e={};let i;return n.forEach(r=>{"*"===r?(i=i||Object.keys(t),i.forEach(s=>{e[s]=ni})):yi(r,!1,e)}),e}(t,this._globalTimelineStyles);Object.keys(o).forEach(a=>{const l=cl(o[a],s,i);this._pendingStyles[a]=l,this._localTimelineStyles.hasOwnProperty(a)||(this._backFill[a]=this._globalTimelineStyles.hasOwnProperty(a)?this._globalTimelineStyles[a]:ni),this._updateStyle(a,l)})}applyStylesToKeyframe(){const t=this._pendingStyles,e=Object.keys(t);0!=e.length&&(this._pendingStyles={},e.forEach(i=>{this._currentKeyframe[i]=t[i]}),Object.keys(this._localTimelineStyles).forEach(i=>{this._currentKeyframe.hasOwnProperty(i)||(this._currentKeyframe[i]=this._localTimelineStyles[i])}))}snapshotCurrentStyles(){Object.keys(this._localTimelineStyles).forEach(t=>{const e=this._localTimelineStyles[t];this._pendingStyles[t]=e,this._updateStyle(t,e)})}getFinalKeyframe(){return this._keyframes.get(this.duration)}get properties(){const t=[];for(let e in this._currentKeyframe)t.push(e);return t}mergeTimelineCollectedStyles(t){Object.keys(t._styleSummary).forEach(e=>{const i=this._styleSummary[e],r=t._styleSummary[e];(!i||r.time>i.time)&&this._updateStyle(e,r.value)})}buildKeyframes(){this.applyStylesToKeyframe();const t=new Set,e=new Set,i=1===this._keyframes.size&&0===this.duration;let r=[];this._keyframes.forEach((a,l)=>{const c=yi(a,!0);Object.keys(c).forEach(u=>{const d=c[u];"!"==d?t.add(u):d==ni&&e.add(u)}),i||(c.offset=l/this.duration),r.push(c)});const s=t.size?ul(t.values()):[],o=e.size?ul(e.values()):[];if(i){const a=r[0],l=Jr(a);a.offset=0,l.offset=1,r=[a,l]}return bh(this.element,r,s,o,this.duration,this.startTime,this.easing,!1)}}class UN extends vl{constructor(t,e,i,r,s,o,a=!1){super(t,e,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 t=this.keyframes,{delay:e,duration:i,easing:r}=this.timings;if(this._stretchStartingKeyframe&&e){const s=[],o=i+e,a=e/o,l=yi(t[0],!1);l.offset=0,s.push(l);const c=yi(t[0],!1);c.offset=Rb(a),s.push(c);const u=t.length-1;for(let d=1;d<=u;d++){let h=yi(t[d],!1);h.offset=Rb((e+h.offset*i)/o),s.push(h)}i=o,e=0,r="",t=s}return bh(this.element,t,this.preStyleProps,this.postStyleProps,i,e,r,!0)}}function Rb(n,t=3){const e=Math.pow(10,t-1);return Math.round(n*e)/e}class Eh{}class GN extends Eh{normalizePropertyName(t,e){return _h(t)}normalizeStyleValue(t,e,i,r){let s="";const o=i.toString().trim();if(WN[e]&&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 BR(n,t){return new A(3005,ee)}())}return o+s}}const WN=(()=>function qN(n){const t={};return n.forEach(e=>t[e]=!0),t}("width,height,minWidth,minHeight,maxWidth,maxHeight,left,top,bottom,right,fontSize,outlineWidth,outlineOffset,paddingTop,paddingLeft,paddingBottom,paddingRight,marginTop,marginLeft,marginBottom,marginRight,borderRadius,borderWidth,borderTopWidth,borderLeftWidth,borderRightWidth,borderBottomWidth,textIndent,perspective".split(",")))();function Nb(n,t,e,i,r,s,o,a,l,c,u,d,h){return{type:0,element:n,triggerName:t,isRemovalTransition:r,fromState:e,fromStyles:s,toState:i,toStyles:o,timelines:a,queriedElements:l,preStyleProps:c,postStyleProps:u,totalTime:d,errors:h}}const Dh={};class Pb{constructor(t,e,i){this._triggerName=t,this.ast=e,this._stateStyles=i}match(t,e,i,r){return function KN(n,t,e,i,r){return n.some(s=>s(t,e,i,r))}(this.ast.matchers,t,e,i,r)}buildStyles(t,e,i){const r=this._stateStyles["*"],s=this._stateStyles[t],o=r?r.buildStyles(e,i):{};return s?s.buildStyles(e,i):o}build(t,e,i,r,s,o,a,l,c,u){const d=[],h=this.ast.options&&this.ast.options.params||Dh,p=this.buildStyles(i,a&&a.params||Dh,d),m=l&&l.params||Dh,y=this.buildStyles(r,m,d),b=new Set,_=new Map,E=new Map,w="void"===r,M={params:Object.assign(Object.assign({},h),m)},ne=u?[]:Ch(t,e,this.ast.animation,s,o,p,y,M,c,d);let Se=0;if(ne.forEach(ut=>{Se=Math.max(ut.duration+ut.delay,Se)}),d.length)return Nb(e,this._triggerName,i,r,w,p,y,[],[],_,E,Se,d);ne.forEach(ut=>{const dt=ut.element,Ft=Wt(_,dt,{});ut.preStyleProps.forEach(Tn=>Ft[Tn]=!0);const At=Wt(E,dt,{});ut.postStyleProps.forEach(Tn=>At[Tn]=!0),dt!==e&&b.add(dt)});const it=ul(b.values());return Nb(e,this._triggerName,i,r,w,p,y,ne,it,_,E,Se)}}class YN{constructor(t,e,i){this.styles=t,this.defaultParams=e,this.normalizer=i}buildStyles(t,e){const i={},r=Jr(this.defaultParams);return Object.keys(t).forEach(s=>{const o=t[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=cl(l,r,e));const c=this.normalizer.normalizePropertyName(a,e);l=this.normalizer.normalizeStyleValue(a,c,l,e),i[c]=l})}}),i}}class XN{constructor(t,e,i){this.name=t,this.ast=e,this._normalizer=i,this.transitionFactories=[],this.states={},e.states.forEach(r=>{this.states[r.name]=new YN(r.style,r.options&&r.options.params||{},i)}),Lb(this.states,"true","1"),Lb(this.states,"false","0"),e.transitions.forEach(r=>{this.transitionFactories.push(new Pb(t,r,this.states))}),this.fallbackTransition=function QN(n,t,e){return new Pb(n,{type:1,animation:{type:2,steps:[],options:null},matchers:[(o,a)=>!0],options:null,queryCount:0,depCount:0},t)}(t,this.states)}get containsQueries(){return this.ast.queryCount>0}matchTransition(t,e,i,r){return this.transitionFactories.find(o=>o.match(t,e,i,r))||null}matchStyles(t,e,i){return this.fallbackTransition.buildStyles(t,e,i)}}function Lb(n,t,e){n.hasOwnProperty(t)?n.hasOwnProperty(e)||(n[e]=n[t]):n.hasOwnProperty(e)&&(n[t]=n[e])}const JN=new _l;class eP{constructor(t,e,i){this.bodyNode=t,this._driver=e,this._normalizer=i,this._animations={},this._playersById={},this.players=[]}register(t,e){const i=[],s=yh(this._driver,e,i,[]);if(i.length)throw function iN(n){return new A(3503,ee)}();this._animations[t]=s}_buildPlayer(t,e,i){const r=t.element,s=mb(0,this._normalizer,0,t.keyframes,e,i);return this._driver.animate(r,s,t.duration,t.delay,t.easing,[],!0)}create(t,e,i={}){const r=[],s=this._animations[t];let o;const a=new Map;if(s?(o=Ch(this._driver,e,s,fh,sl,{},{},i,JN,r),o.forEach(u=>{const d=Wt(a,u.element,{});u.postStyleProps.forEach(h=>d[h]=null)})):(r.push(function rN(){return new A(3300,ee)}()),o=[]),r.length)throw function sN(n){return new A(3504,ee)}();a.forEach((u,d)=>{Object.keys(u).forEach(h=>{u[h]=this._driver.computeStyle(d,h,ni)})});const c=_i(o.map(u=>{const d=a.get(u.element);return this._buildPlayer(u,{},d)}));return this._playersById[t]=c,c.onDestroy(()=>this.destroy(t)),this.players.push(c),c}destroy(t){const e=this._getPlayer(t);e.destroy(),delete this._playersById[t];const i=this.players.indexOf(e);i>=0&&this.players.splice(i,1)}_getPlayer(t){const e=this._playersById[t];if(!e)throw function oN(n){return new A(3301,ee)}();return e}listen(t,e,i,r){const s=ch(e,"","","");return ah(this._getPlayer(t),i,s,r),()=>{}}command(t,e,i,r){if("register"==i)return void this.register(t,r[0]);if("create"==i)return void this.create(t,e,r[0]||{});const s=this._getPlayer(t);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(t)}}}const Vb="ng-animate-queued",Sh="ng-animate-disabled",sP=[],Bb={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},oP={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},an="__ng_removed";class Mh{constructor(t,e=""){this.namespaceId=e;const i=t&&t.hasOwnProperty("value");if(this.value=function uP(n){return null!=n?n:null}(i?t.value:t),i){const s=Jr(t);delete s.value,this.options=s}else this.options={};this.options.params||(this.options.params={})}get params(){return this.options.params}absorbOptions(t){const e=t.params;if(e){const i=this.options.params;Object.keys(e).forEach(r=>{null==i[r]&&(i[r]=e[r])})}}}const po="void",Th=new Mh(po);class aP{constructor(t,e,i){this.id=t,this.hostElement=e,this._engine=i,this.players=[],this._triggers={},this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+t,ln(e,this._hostClassName)}listen(t,e,i,r){if(!this._triggers.hasOwnProperty(e))throw function aN(n,t){return new A(3302,ee)}();if(null==i||0==i.length)throw function lN(n){return new A(3303,ee)}();if(!function dP(n){return"start"==n||"done"==n}(i))throw function cN(n,t){return new A(3400,ee)}();const s=Wt(this._elementListeners,t,[]),o={name:e,phase:i,callback:r};s.push(o);const a=Wt(this._engine.statesByElement,t,{});return a.hasOwnProperty(e)||(ln(t,ol),ln(t,ol+"-"+e),a[e]=Th),()=>{this._engine.afterFlush(()=>{const l=s.indexOf(o);l>=0&&s.splice(l,1),this._triggers[e]||delete a[e]})}}register(t,e){return!this._triggers[t]&&(this._triggers[t]=e,!0)}_getTrigger(t){const e=this._triggers[t];if(!e)throw function uN(n){return new A(3401,ee)}();return e}trigger(t,e,i,r=!0){const s=this._getTrigger(e),o=new Ah(this.id,e,t);let a=this._engine.statesByElement.get(t);a||(ln(t,ol),ln(t,ol+"-"+e),this._engine.statesByElement.set(t,a={}));let l=a[e];const c=new Mh(i,this.id);if(!(i&&i.hasOwnProperty("value"))&&l&&c.absorbOptions(l.options),a[e]=c,l||(l=Th),c.value!==po&&l.value===c.value){if(!function pP(n,t){const e=Object.keys(n),i=Object.keys(t);if(e.length!=i.length)return!1;for(let r=0;r<e.length;r++){const s=e[r];if(!t.hasOwnProperty(s)||n[s]!==t[s])return!1}return!0}(l.params,c.params)){const m=[],y=s.matchStyles(l.value,l.params,m),b=s.matchStyles(c.value,c.params,m);m.length?this._engine.reportError(m):this._engine.afterFlush(()=>{Qi(t,y),$n(t,b)})}return}const h=Wt(this._engine.playersByElement,t,[]);h.forEach(m=>{m.namespaceId==this.id&&m.triggerName==e&&m.queued&&m.destroy()});let f=s.matchTransition(l.value,c.value,t,c.params),p=!1;if(!f){if(!r)return;f=s.fallbackTransition,p=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:t,triggerName:e,transition:f,fromState:l,toState:c,player:o,isFallbackTransition:p}),p||(ln(t,Vb),o.onStart(()=>{es(t,Vb)})),o.onDone(()=>{let m=this.players.indexOf(o);m>=0&&this.players.splice(m,1);const y=this._engine.playersByElement.get(t);if(y){let b=y.indexOf(o);b>=0&&y.splice(b,1)}}),this.players.push(o),h.push(o),o}deregister(t){delete this._triggers[t],this._engine.statesByElement.forEach((e,i)=>{delete e[t]}),this._elementListeners.forEach((e,i)=>{this._elementListeners.set(i,e.filter(r=>r.name!=t))})}clearElementCache(t){this._engine.statesByElement.delete(t),this._elementListeners.delete(t);const e=this._engine.playersByElement.get(t);e&&(e.forEach(i=>i.destroy()),this._engine.playersByElement.delete(t))}_signalRemovalForInnerTriggers(t,e){const i=this._engine.driver.query(t,al,!0);i.forEach(r=>{if(r[an])return;const s=this._engine.fetchNamespacesByElement(r);s.size?s.forEach(o=>o.triggerLeaveAnimation(r,e,!1,!0)):this.clearElementCache(r)}),this._engine.afterFlushAnimationsDone(()=>i.forEach(r=>this.clearElementCache(r)))}triggerLeaveAnimation(t,e,i,r){const s=this._engine.statesByElement.get(t),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(t,l,po,r);c&&a.push(c)}}),a.length)return this._engine.markElementAsRemoved(this.id,t,!0,e,o),i&&_i(a).onDone(()=>this._engine.processLeaveNode(t)),!0}return!1}prepareLeaveAnimationListeners(t){const e=this._elementListeners.get(t),i=this._engine.statesByElement.get(t);if(e&&i){const r=new Set;e.forEach(s=>{const o=s.name;if(r.has(o))return;r.add(o);const l=this._triggers[o].fallbackTransition,c=i[o]||Th,u=new Mh(po),d=new Ah(this.id,o,t);this._engine.totalQueuedPlayers++,this._queue.push({element:t,triggerName:o,transition:l,fromState:c,toState:u,player:d,isFallbackTransition:!0})})}}removeNode(t,e){const i=this._engine;if(t.childElementCount&&this._signalRemovalForInnerTriggers(t,e),this.triggerLeaveAnimation(t,e,!0))return;let r=!1;if(i.totalAnimations){const s=i.players.length?i.playersByQueriedElement.get(t):[];if(s&&s.length)r=!0;else{let o=t;for(;o=o.parentNode;)if(i.statesByElement.get(o)){r=!0;break}}}if(this.prepareLeaveAnimationListeners(t),r)i.markElementAsRemoved(this.id,t,!1,e);else{const s=t[an];(!s||s===Bb)&&(i.afterFlush(()=>this.clearElementCache(t)),i.destroyInnerAnimations(t),i._onRemovalComplete(t,e))}}insertNode(t,e){ln(t,this._hostClassName)}drainQueuedTransitions(t){const e=[];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=ch(s,i.triggerName,i.fromState.value,i.toState.value);l._data=t,ah(i.player,a.phase,l,a.callback)}}),r.markedForDestroy?this._engine.afterFlush(()=>{r.destroy()}):e.push(i)}),this._queue=[],e.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(t){this.players.forEach(e=>e.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,t)}elementContainsData(t){let e=!1;return this._elementListeners.has(t)&&(e=!0),e=!!this._queue.find(i=>i.element===t)||e,e}}class lP{constructor(t,e,i){this.bodyNode=t,this.driver=e,this._normalizer=i,this.players=[],this.newHostElements=new Map,this.playersByElement=new Map,this.playersByQueriedElement=new Map,this.statesByElement=new Map,this.disabledNodes=new Set,this.totalAnimations=0,this.totalQueuedPlayers=0,this._namespaceLookup={},this._namespaceList=[],this._flushFns=[],this._whenQuietFns=[],this.namespacesByHostElement=new Map,this.collectedEnterElements=[],this.collectedLeaveElements=[],this.onRemovalComplete=(r,s)=>{}}_onRemovalComplete(t,e){this.onRemovalComplete(t,e)}get queuedPlayers(){const t=[];return this._namespaceList.forEach(e=>{e.players.forEach(i=>{i.queued&&t.push(i)})}),t}createNamespace(t,e){const i=new aP(t,e,this);return this.bodyNode&&this.driver.containsElement(this.bodyNode,e)?this._balanceNamespaceList(i,e):(this.newHostElements.set(e,i),this.collectEnterElement(e)),this._namespaceLookup[t]=i}_balanceNamespaceList(t,e){const i=this._namespaceList,r=this.namespacesByHostElement,s=i.length-1;if(s>=0){let o=!1;if(void 0!==this.driver.getParentElement){let a=this.driver.getParentElement(e);for(;a;){const l=r.get(a);if(l){const c=i.indexOf(l);i.splice(c+1,0,t),o=!0;break}a=this.driver.getParentElement(a)}}else for(let a=s;a>=0;a--)if(this.driver.containsElement(i[a].hostElement,e)){i.splice(a+1,0,t),o=!0;break}o||i.unshift(t)}else i.push(t);return r.set(e,t),t}register(t,e){let i=this._namespaceLookup[t];return i||(i=this.createNamespace(t,e)),i}registerTrigger(t,e,i){let r=this._namespaceLookup[t];r&&r.register(e,i)&&this.totalAnimations++}destroy(t,e){if(!t)return;const i=this._fetchNamespace(t);this.afterFlush(()=>{this.namespacesByHostElement.delete(i.hostElement),delete this._namespaceLookup[t];const r=this._namespaceList.indexOf(i);r>=0&&this._namespaceList.splice(r,1)}),this.afterFlushAnimationsDone(()=>i.destroy(e))}_fetchNamespace(t){return this._namespaceLookup[t]}fetchNamespacesByElement(t){const e=new Set,i=this.statesByElement.get(t);if(i){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&&e.add(a)}}}return e}trigger(t,e,i,r){if(bl(e)){const s=this._fetchNamespace(t);if(s)return s.trigger(e,i,r),!0}return!1}insertNode(t,e,i,r){if(!bl(e))return;const s=e[an];if(s&&s.setForRemoval){s.setForRemoval=!1,s.setForMove=!0;const o=this.collectedLeaveElements.indexOf(e);o>=0&&this.collectedLeaveElements.splice(o,1)}if(t){const o=this._fetchNamespace(t);o&&o.insertNode(e,i)}r&&this.collectEnterElement(e)}collectEnterElement(t){this.collectedEnterElements.push(t)}markElementAsDisabled(t,e){e?this.disabledNodes.has(t)||(this.disabledNodes.add(t),ln(t,Sh)):this.disabledNodes.has(t)&&(this.disabledNodes.delete(t),es(t,Sh))}removeNode(t,e,i,r){if(bl(e)){const s=t?this._fetchNamespace(t):null;if(s?s.removeNode(e,r):this.markElementAsRemoved(t,e,!1,r),i){const o=this.namespacesByHostElement.get(e);o&&o.id!==t&&o.removeNode(e,r)}}else this._onRemovalComplete(e,r)}markElementAsRemoved(t,e,i,r,s){this.collectedLeaveElements.push(e),e[an]={namespaceId:t,setForRemoval:r,hasAnimation:i,removedBeforeQueried:!1,previousTriggersValues:s}}listen(t,e,i,r,s){return bl(e)?this._fetchNamespace(t).listen(e,i,r,s):()=>{}}_buildInstruction(t,e,i,r,s){return t.transition.build(this.driver,t.element,t.fromState.value,t.toState.value,i,r,t.fromState.options,t.toState.options,e,s)}destroyInnerAnimations(t){let e=this.driver.query(t,al,!0);e.forEach(i=>this.destroyActiveAnimationsForElement(i)),0!=this.playersByQueriedElement.size&&(e=this.driver.query(t,ph,!0),e.forEach(i=>this.finishActiveQueriedAnimationOnElement(i)))}destroyActiveAnimationsForElement(t){const e=this.playersByElement.get(t);e&&e.forEach(i=>{i.queued?i.markedForDestroy=!0:i.destroy()})}finishActiveQueriedAnimationOnElement(t){const e=this.playersByQueriedElement.get(t);e&&e.forEach(i=>i.finish())}whenRenderingDone(){return new Promise(t=>{if(this.players.length)return _i(this.players).onDone(()=>t());t()})}processLeaveNode(t){var e;const i=t[an];if(i&&i.setForRemoval){if(t[an]=Bb,i.namespaceId){this.destroyInnerAnimations(t);const r=this._fetchNamespace(i.namespaceId);r&&r.clearElementCache(t)}this._onRemovalComplete(t,i.setForRemoval)}(null===(e=t.classList)||void 0===e?void 0:e.contains(Sh))&&this.markElementAsDisabled(t,!1),this.driver.query(t,".ng-animate-disabled",!0).forEach(r=>{this.markElementAsDisabled(r,!1)})}flush(t=-1){let e=[];if(this.newHostElements.size&&(this.newHostElements.forEach((i,r)=>this._balanceNamespaceList(i,r)),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let i=0;i<this.collectedEnterElements.length;i++)ln(this.collectedEnterElements[i],"ng-star-inserted");if(this._namespaceList.length&&(this.totalQueuedPlayers||this.collectedLeaveElements.length)){const i=[];try{e=this._flushAnimations(i,t)}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=[],e.length?_i(e).onDone(()=>{i.forEach(r=>r())}):i.forEach(r=>r())}}reportError(t){throw function dN(n){return new A(3402,ee)}()}_flushAnimations(t,e){const i=new _l,r=[],s=new Map,o=[],a=new Map,l=new Map,c=new Map,u=new Set;this.disabledNodes.forEach(I=>{u.add(I);const O=this.driver.query(I,".ng-animate-queued",!0);for(let N=0;N<O.length;N++)u.add(O[N])});const d=this.bodyNode,h=Array.from(this.statesByElement.keys()),f=$b(h,this.collectedEnterElements),p=new Map;let m=0;f.forEach((I,O)=>{const N=fh+m++;p.set(O,N),I.forEach(ie=>ln(ie,N))});const y=[],b=new Set,_=new Set;for(let I=0;I<this.collectedLeaveElements.length;I++){const O=this.collectedLeaveElements[I],N=O[an];N&&N.setForRemoval&&(y.push(O),b.add(O),N.hasAnimation?this.driver.query(O,".ng-star-inserted",!0).forEach(ie=>b.add(ie)):_.add(O))}const E=new Map,w=$b(h,Array.from(b));w.forEach((I,O)=>{const N=sl+m++;E.set(O,N),I.forEach(ie=>ln(ie,N))}),t.push(()=>{f.forEach((I,O)=>{const N=p.get(O);I.forEach(ie=>es(ie,N))}),w.forEach((I,O)=>{const N=E.get(O);I.forEach(ie=>es(ie,N))}),y.forEach(I=>{this.processLeaveNode(I)})});const M=[],ne=[];for(let I=this._namespaceList.length-1;I>=0;I--)this._namespaceList[I].drainQueuedTransitions(e).forEach(N=>{const ie=N.player,rt=N.element;if(M.push(ie),this.collectedEnterElements.length){const It=rt[an];if(It&&It.setForMove){if(It.previousTriggersValues&&It.previousTriggersValues.has(N.triggerName)){const ar=It.previousTriggersValues.get(N.triggerName),Ti=this.statesByElement.get(N.element);Ti&&Ti[N.triggerName]&&(Ti[N.triggerName].value=ar)}return void ie.destroy()}}const zn=!d||!this.driver.containsElement(d,rt),Yt=E.get(rt),Mi=p.get(rt),Re=this._buildInstruction(N,i,Mi,Yt,zn);if(Re.errors&&Re.errors.length)return void ne.push(Re);if(zn)return ie.onStart(()=>Qi(rt,Re.fromStyles)),ie.onDestroy(()=>$n(rt,Re.toStyles)),void r.push(ie);if(N.isFallbackTransition)return ie.onStart(()=>Qi(rt,Re.fromStyles)),ie.onDestroy(()=>$n(rt,Re.toStyles)),void r.push(ie);const NE=[];Re.timelines.forEach(It=>{It.stretchStartingKeyframe=!0,this.disabledNodes.has(It.element)||NE.push(It)}),Re.timelines=NE,i.append(rt,Re.timelines),o.push({instruction:Re,player:ie,element:rt}),Re.queriedElements.forEach(It=>Wt(a,It,[]).push(ie)),Re.preStyleProps.forEach((It,ar)=>{const Ti=Object.keys(It);if(Ti.length){let lr=l.get(ar);lr||l.set(ar,lr=new Set),Ti.forEach(If=>lr.add(If))}}),Re.postStyleProps.forEach((It,ar)=>{const Ti=Object.keys(It);let lr=c.get(ar);lr||c.set(ar,lr=new Set),Ti.forEach(If=>lr.add(If))})});if(ne.length){const I=[];ne.forEach(O=>{I.push(function hN(n,t){return new A(3505,ee)}())}),M.forEach(O=>O.destroy()),this.reportError(I)}const Se=new Map,it=new Map;o.forEach(I=>{const O=I.element;i.has(O)&&(it.set(O,O),this._beforeAnimationBuild(I.player.namespaceId,I.instruction,Se))}),r.forEach(I=>{const O=I.element;this._getPreviousPlayers(O,!1,I.namespaceId,I.triggerName,null).forEach(ie=>{Wt(Se,O,[]).push(ie),ie.destroy()})});const ut=y.filter(I=>zb(I,l,c)),dt=new Map;jb(dt,this.driver,_,c,ni).forEach(I=>{zb(I,l,c)&&ut.push(I)});const At=new Map;f.forEach((I,O)=>{jb(At,this.driver,new Set(I),l,"!")}),ut.forEach(I=>{const O=dt.get(I),N=At.get(I);dt.set(I,Object.assign(Object.assign({},O),N))});const Tn=[],ls=[],cs={};o.forEach(I=>{const{element:O,player:N,instruction:ie}=I;if(i.has(O)){if(u.has(O))return N.onDestroy(()=>$n(O,ie.toStyles)),N.disabled=!0,N.overrideTotalTime(ie.totalTime),void r.push(N);let rt=cs;if(it.size>1){let Yt=O;const Mi=[];for(;Yt=Yt.parentNode;){const Re=it.get(Yt);if(Re){rt=Re;break}Mi.push(Yt)}Mi.forEach(Re=>it.set(Re,rt))}const zn=this._buildAnimation(N.namespaceId,ie,Se,s,At,dt);if(N.setRealPlayer(zn),rt===cs)Tn.push(N);else{const Yt=this.playersByElement.get(rt);Yt&&Yt.length&&(N.parentPlayer=_i(Yt)),r.push(N)}}else Qi(O,ie.fromStyles),N.onDestroy(()=>$n(O,ie.toStyles)),ls.push(N),u.has(O)&&r.push(N)}),ls.forEach(I=>{const O=s.get(I.element);if(O&&O.length){const N=_i(O);I.setRealPlayer(N)}}),r.forEach(I=>{I.parentPlayer?I.syncPlayerEvents(I.parentPlayer):I.destroy()});for(let I=0;I<y.length;I++){const O=y[I],N=O[an];if(es(O,sl),N&&N.hasAnimation)continue;let ie=[];if(a.size){let zn=a.get(O);zn&&zn.length&&ie.push(...zn);let Yt=this.driver.query(O,ph,!0);for(let Mi=0;Mi<Yt.length;Mi++){let Re=a.get(Yt[Mi]);Re&&Re.length&&ie.push(...Re)}}const rt=ie.filter(zn=>!zn.destroyed);rt.length?hP(this,O,rt):this.processLeaveNode(O)}return y.length=0,Tn.forEach(I=>{this.players.push(I),I.onDone(()=>{I.destroy();const O=this.players.indexOf(I);this.players.splice(O,1)}),I.play()}),Tn}elementContainsData(t,e){let i=!1;const r=e[an];return r&&r.setForRemoval&&(i=!0),this.playersByElement.has(e)&&(i=!0),this.playersByQueriedElement.has(e)&&(i=!0),this.statesByElement.has(e)&&(i=!0),this._fetchNamespace(t).elementContainsData(e)||i}afterFlush(t){this._flushFns.push(t)}afterFlushAnimationsDone(t){this._whenQuietFns.push(t)}_getPreviousPlayers(t,e,i,r,s){let o=[];if(e){const a=this.playersByQueriedElement.get(t);a&&(o=a)}else{const a=this.playersByElement.get(t);if(a){const l=!s||s==po;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(t,e,i){const s=e.element,o=e.isRemovalTransition?void 0:t,a=e.isRemovalTransition?void 0:e.triggerName;for(const l of e.timelines){const c=l.element,u=c!==s,d=Wt(i,c,[]);this._getPreviousPlayers(c,u,o,a,e.toState).forEach(f=>{const p=f.getRealPlayer();p.beforeDestroy&&p.beforeDestroy(),f.destroy(),d.push(f)})}Qi(s,e.fromStyles)}_buildAnimation(t,e,i,r,s,o){const a=e.triggerName,l=e.element,c=[],u=new Set,d=new Set,h=e.timelines.map(p=>{const m=p.element;u.add(m);const y=m[an];if(y&&y.removedBeforeQueried)return new ho(p.duration,p.delay);const b=m!==l,_=function fP(n){const t=[];return Ub(n,t),t}((i.get(m)||sP).map(Se=>Se.getRealPlayer())).filter(Se=>!!Se.element&&Se.element===m),E=s.get(m),w=o.get(m),M=mb(0,this._normalizer,0,p.keyframes,E,w),ne=this._buildPlayer(p,M,_);if(p.subTimeline&&r&&d.add(m),b){const Se=new Ah(t,a,m);Se.setRealPlayer(ne),c.push(Se)}return ne});c.forEach(p=>{Wt(this.playersByQueriedElement,p.element,[]).push(p),p.onDone(()=>function cP(n,t,e){let i;if(n instanceof Map){if(i=n.get(t),i){if(i.length){const r=i.indexOf(e);i.splice(r,1)}0==i.length&&n.delete(t)}}else if(i=n[t],i){if(i.length){const r=i.indexOf(e);i.splice(r,1)}0==i.length&&delete n[t]}return i}(this.playersByQueriedElement,p.element,p))}),u.forEach(p=>ln(p,Sb));const f=_i(h);return f.onDestroy(()=>{u.forEach(p=>es(p,Sb)),$n(l,e.toStyles)}),d.forEach(p=>{Wt(r,p,[]).push(f)}),f}_buildPlayer(t,e,i){return e.length>0?this.driver.animate(t.element,e,t.duration,t.delay,t.easing,i):new ho(t.duration,t.delay)}}class Ah{constructor(t,e,i){this.namespaceId=t,this.triggerName=e,this.element=i,this._player=new ho,this._containsRealPlayer=!1,this._queuedCallbacks={},this.destroyed=!1,this.markedForDestroy=!1,this.disabled=!1,this.queued=!0,this.totalTime=0}setRealPlayer(t){this._containsRealPlayer||(this._player=t,Object.keys(this._queuedCallbacks).forEach(e=>{this._queuedCallbacks[e].forEach(i=>ah(t,e,void 0,i))}),this._queuedCallbacks={},this._containsRealPlayer=!0,this.overrideTotalTime(t.totalTime),this.queued=!1)}getRealPlayer(){return this._player}overrideTotalTime(t){this.totalTime=t}syncPlayerEvents(t){const e=this._player;e.triggerCallback&&t.onStart(()=>e.triggerCallback("start")),t.onDone(()=>this.finish()),t.onDestroy(()=>this.destroy())}_queueEvent(t,e){Wt(this._queuedCallbacks,t,[]).push(e)}onDone(t){this.queued&&this._queueEvent("done",t),this._player.onDone(t)}onStart(t){this.queued&&this._queueEvent("start",t),this._player.onStart(t)}onDestroy(t){this.queued&&this._queueEvent("destroy",t),this._player.onDestroy(t)}init(){this._player.init()}hasStarted(){return!this.queued&&this._player.hasStarted()}play(){!this.queued&&this._player.play()}pause(){!this.queued&&this._player.pause()}restart(){!this.queued&&this._player.restart()}finish(){this._player.finish()}destroy(){this.destroyed=!0,this._player.destroy()}reset(){!this.queued&&this._player.reset()}setPosition(t){this.queued||this._player.setPosition(t)}getPosition(){return this.queued?0:this._player.getPosition()}triggerCallback(t){const e=this._player;e.triggerCallback&&e.triggerCallback(t)}}function bl(n){return n&&1===n.nodeType}function Hb(n,t){const e=n.style.display;return n.style.display=null!=t?t:"none",e}function jb(n,t,e,i,r){const s=[];e.forEach(l=>s.push(Hb(l)));const o=[];i.forEach((l,c)=>{const u={};l.forEach(d=>{const h=u[d]=t.computeStyle(c,d,r);(!h||0==h.length)&&(c[an]=oP,o.push(c))}),n.set(c,u)});let a=0;return e.forEach(l=>Hb(l,s[a++])),o}function $b(n,t){const e=new Map;if(n.forEach(a=>e.set(a,[])),0==t.length)return e;const r=new Set(t),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=e.has(c)?c:r.has(c)?1:o(c),s.set(a,l),l}return t.forEach(a=>{const l=o(a);1!==l&&e.get(l).push(a)}),e}function ln(n,t){var e;null===(e=n.classList)||void 0===e||e.add(t)}function es(n,t){var e;null===(e=n.classList)||void 0===e||e.remove(t)}function hP(n,t,e){_i(e).onDone(()=>n.processLeaveNode(t))}function Ub(n,t){for(let e=0;e<n.length;e++){const i=n[e];i instanceof fb?Ub(i.players,t):t.push(i)}}function zb(n,t,e){const i=e.get(n);if(!i)return!1;let r=t.get(n);return r?i.forEach(s=>r.add(s)):t.set(n,i),e.delete(n),!0}class Cl{constructor(t,e,i){this.bodyNode=t,this._driver=e,this._normalizer=i,this._triggerCache={},this.onRemovalComplete=(r,s)=>{},this._transitionEngine=new lP(t,e,i),this._timelineEngine=new eP(t,e,i),this._transitionEngine.onRemovalComplete=(r,s)=>this.onRemovalComplete(r,s)}registerTrigger(t,e,i,r,s){const o=t+"-"+r;let a=this._triggerCache[o];if(!a){const l=[],u=yh(this._driver,s,l,[]);if(l.length)throw function tN(n,t){return new A(3404,ee)}();a=function ZN(n,t,e){return new XN(n,t,e)}(r,u,this._normalizer),this._triggerCache[o]=a}this._transitionEngine.registerTrigger(e,r,a)}register(t,e){this._transitionEngine.register(t,e)}destroy(t,e){this._transitionEngine.destroy(t,e)}onInsert(t,e,i,r){this._transitionEngine.insertNode(t,e,i,r)}onRemove(t,e,i,r){this._transitionEngine.removeNode(t,e,r||!1,i)}disableAnimations(t,e){this._transitionEngine.markElementAsDisabled(t,e)}process(t,e,i,r){if("@"==i.charAt(0)){const[s,o]=gb(i);this._timelineEngine.command(s,e,o,r)}else this._transitionEngine.trigger(t,e,i,r)}listen(t,e,i,r,s){if("@"==i.charAt(0)){const[o,a]=gb(i);return this._timelineEngine.listen(o,e,a,s)}return this._transitionEngine.listen(t,e,i,r,s)}flush(t=-1){this._transitionEngine.flush(t)}get players(){return this._transitionEngine.players.concat(this._timelineEngine.players)}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}}let gP=(()=>{class n{constructor(e,i,r){this._element=e,this._startStyles=i,this._endStyles=r,this._state=0;let s=n.initialStylesByElement.get(e);s||n.initialStylesByElement.set(e,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&&(Qi(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(Qi(this._element,this._endStyles),this._endStyles=null),$n(this._element,this._initialStyles),this._state=3)}}return n.initialStylesByElement=new WeakMap,n})();function Ih(n){let t=null;const e=Object.keys(n);for(let i=0;i<e.length;i++){const r=e[i];_P(r)&&(t=t||{},t[r]=n[r])}return t}function _P(n){return"display"===n||"position"===n}class Gb{constructor(t,e,i,r){this.element=t,this.keyframes=e,this.options=i,this._specialStyles=r,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._initialized=!1,this._finished=!1,this._started=!1,this._destroyed=!1,this.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(t=>t()),this._onDoneFns=[])}init(){this._buildPlayer(),this._preparePlayerBeforeStart()}_buildPlayer(){if(this._initialized)return;this._initialized=!0;const t=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,t,this.options),this._finalKeyframe=t.length?t[t.length-1]:{},this.domPlayer.addEventListener("finish",()=>this._onFinish())}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}_triggerWebAnimation(t,e,i){return t.animate(e,i)}onStart(t){this._onStartFns.push(t)}onDone(t){this._onDoneFns.push(t)}onDestroy(t){this._onDestroyFns.push(t)}play(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(t=>t()),this._onStartFns=[],this._started=!0,this._specialStyles&&this._specialStyles.start()),this.domPlayer.play()}pause(){this.init(),this.domPlayer.pause()}finish(){this.init(),this._specialStyles&&this._specialStyles.finish(),this._onFinish(),this.domPlayer.finish()}reset(){this._resetDomPlayerState(),this._destroyed=!1,this._finished=!1,this._started=!1}_resetDomPlayerState(){this.domPlayer&&this.domPlayer.cancel()}restart(){this.reset(),this.play()}hasStarted(){return this._started}destroy(){this._destroyed||(this._destroyed=!0,this._resetDomPlayerState(),this._onFinish(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(t=>t()),this._onDestroyFns=[])}setPosition(t){void 0===this.domPlayer&&this.init(),this.domPlayer.currentTime=t*this.time}getPosition(){return this.domPlayer.currentTime/this.time}get totalTime(){return this._delay+this._duration}beforeDestroy(){const t={};if(this.hasStarted()){const e=this._finalKeyframe;Object.keys(e).forEach(i=>{"offset"!=i&&(t[i]=this._finished?e[i]:xb(this.element,i))})}this.currentSnapshot=t}triggerCallback(t){const e="start"==t?this._onStartFns:this._onDoneFns;e.forEach(i=>i()),e.length=0}}class yP{validateStyleProperty(t){return bb(t)}matchesElement(t,e){return!1}containsElement(t,e){return Cb(t,e)}getParentElement(t){return dh(t)}query(t,e,i){return wb(t,e,i)}computeStyle(t,e,i){return window.getComputedStyle(t)[e]}animate(t,e,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 Gb);(function wN(n,t){return 0===n||0===t})(i,r)&&u.forEach(h=>{let f=h.currentSnapshot;Object.keys(f).forEach(p=>c[p]=f[p])}),e=function EN(n,t,e){const i=Object.keys(e);if(i.length&&t.length){let s=t[0],o=[];if(i.forEach(a=>{s.hasOwnProperty(a)||o.push(a),s[a]=e[a]}),o.length)for(var r=1;r<t.length;r++){let a=t[r];o.forEach(function(l){a[l]=xb(n,l)})}}return t}(t,e=e.map(h=>yi(h,!1)),c);const d=function mP(n,t){let e=null,i=null;return Array.isArray(t)&&t.length?(e=Ih(t[0]),t.length>1&&(i=Ih(t[t.length-1]))):t&&(e=Ih(t)),e||i?new gP(n,e,i):null}(t,e);return new Gb(t,e,l,d)}}let vP=(()=>{class n extends cb{constructor(e,i){super(),this._nextAnimationId=0,this._renderer=e.createRenderer(i.body,{id:"0",encapsulation:hn.None,styles:[],data:{animation:[]}})}build(e){const i=this._nextAnimationId.toString();this._nextAnimationId++;const r=Array.isArray(e)?db(e):e;return Wb(this._renderer,null,i,"register",[r]),new bP(i,this._renderer)}}return n.\u0275fac=function(e){return new(e||n)(v(Ys),v(Z))},n.\u0275prov=x({token:n,factory:n.\u0275fac}),n})();class bP extends class OR{}{constructor(t,e){super(),this._id=t,this._renderer=e}create(t,e){return new CP(this._id,t,e||{},this._renderer)}}class CP{constructor(t,e,i,r){this.id=t,this.element=e,this._renderer=r,this.parentPlayer=null,this._started=!1,this.totalTime=0,this._command("create",i)}_listen(t,e){return this._renderer.listen(this.element,`@@${this.id}:${t}`,e)}_command(t,...e){return Wb(this._renderer,this.element,this.id,t,e)}onDone(t){this._listen("done",t)}onStart(t){this._listen("start",t)}onDestroy(t){this._listen("destroy",t)}init(){this._command("init")}hasStarted(){return this._started}play(){this._command("play"),this._started=!0}pause(){this._command("pause")}restart(){this._command("restart")}finish(){this._command("finish")}destroy(){this._command("destroy")}reset(){this._command("reset"),this._started=!1}setPosition(t){this._command("setPosition",t)}getPosition(){var t,e;return null!==(e=null===(t=this._renderer.engine.players[+this.id])||void 0===t?void 0:t.getPosition())&&void 0!==e?e:0}}function Wb(n,t,e,i,r){return n.setProperty(t,`@@${e}:${i}`,r)}const qb="@.disabled";let wP=(()=>{class n{constructor(e,i,r){this.delegate=e,this.engine=i,this._zone=r,this._currentId=0,this._microtaskId=1,this._animationCallbacksBuffer=[],this._rendererCache=new Map,this._cdRecurDepth=0,this.promise=Promise.resolve(0),i.onRemovalComplete=(s,o)=>{const a=null==o?void 0:o.parentNode(s);a&&o.removeChild(a,s)}}createRenderer(e,i){const s=this.delegate.createRenderer(e,i);if(!(e&&i&&i.data&&i.data.animation)){let u=this._rendererCache.get(s);return u||(u=new Kb("",s,this.engine),this._rendererCache.set(s,u)),u}const o=i.id,a=i.id+"-"+this._currentId;this._currentId++,this.engine.register(a,e);const l=u=>{Array.isArray(u)?u.forEach(l):this.engine.registerTrigger(o,a,e,u.name,u)};return i.data.animation.forEach(l),new EP(this,a,s,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}_scheduleCountTask(){this.promise.then(()=>{this._microtaskId++})}scheduleListenerCallback(e,i,r){e>=0&&e<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(e){return new(e||n)(v(Ys),v(Cl),v(le))},n.\u0275prov=x({token:n,factory:n.\u0275fac}),n})();class Kb{constructor(t,e,i){this.namespaceId=t,this.delegate=e,this.engine=i,this.destroyNode=this.delegate.destroyNode?r=>e.destroyNode(r):null}get data(){return this.delegate.data}destroy(){this.engine.destroy(this.namespaceId,this.delegate),this.delegate.destroy()}createElement(t,e){return this.delegate.createElement(t,e)}createComment(t){return this.delegate.createComment(t)}createText(t){return this.delegate.createText(t)}appendChild(t,e){this.delegate.appendChild(t,e),this.engine.onInsert(this.namespaceId,e,t,!1)}insertBefore(t,e,i,r=!0){this.delegate.insertBefore(t,e,i),this.engine.onInsert(this.namespaceId,e,t,r)}removeChild(t,e,i){this.engine.onRemove(this.namespaceId,e,this.delegate,i)}selectRootElement(t,e){return this.delegate.selectRootElement(t,e)}parentNode(t){return this.delegate.parentNode(t)}nextSibling(t){return this.delegate.nextSibling(t)}setAttribute(t,e,i,r){this.delegate.setAttribute(t,e,i,r)}removeAttribute(t,e,i){this.delegate.removeAttribute(t,e,i)}addClass(t,e){this.delegate.addClass(t,e)}removeClass(t,e){this.delegate.removeClass(t,e)}setStyle(t,e,i,r){this.delegate.setStyle(t,e,i,r)}removeStyle(t,e,i){this.delegate.removeStyle(t,e,i)}setProperty(t,e,i){"@"==e.charAt(0)&&e==qb?this.disableAnimations(t,!!i):this.delegate.setProperty(t,e,i)}setValue(t,e){this.delegate.setValue(t,e)}listen(t,e,i){return this.delegate.listen(t,e,i)}disableAnimations(t,e){this.engine.disableAnimations(t,e)}}class EP extends Kb{constructor(t,e,i,r){super(e,i,r),this.factory=t,this.namespaceId=e}setProperty(t,e,i){"@"==e.charAt(0)?"."==e.charAt(1)&&e==qb?this.disableAnimations(t,i=void 0===i||!!i):this.engine.process(this.namespaceId,t,e.substr(1),i):this.delegate.setProperty(t,e,i)}listen(t,e,i){if("@"==e.charAt(0)){const r=function DP(n){switch(n){case"body":return document.body;case"document":return document;case"window":return window;default:return n}}(t);let s=e.substr(1),o="";return"@"!=s.charAt(0)&&([s,o]=function SP(n){const t=n.indexOf(".");return[n.substring(0,t),n.substr(t+1)]}(s)),this.engine.listen(this.namespaceId,r,s,o,a=>{this.factory.scheduleListenerCallback(a._data||-1,i,a)})}return this.delegate.listen(t,e,i)}}let MP=(()=>{class n extends Cl{constructor(e,i,r){super(e.body,i,r)}ngOnDestroy(){this.flush()}}return n.\u0275fac=function(e){return new(e||n)(v(Z),v(hh),v(Eh))},n.\u0275prov=x({token:n,factory:n.\u0275fac}),n})();const ts=new T("AnimationModuleType"),Yb=[{provide:cb,useClass:vP},{provide:Eh,useFactory:function TP(){return new GN}},{provide:Cl,useClass:MP},{provide:Ys,useFactory:function AP(n,t,e){return new wP(n,t,e)},deps:[el,Cl,le]}],Zb=[{provide:hh,useFactory:()=>new yP},{provide:ts,useValue:"BrowserAnimations"},...Yb],IP=[{provide:hh,useClass:Eb},{provide:ts,useValue:"NoopAnimations"},...Yb];let kh,xP=(()=>{class n{static withConfig(e){return{ngModule:n,providers:e.disableAnimations?IP:Zb}}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=me({type:n}),n.\u0275inj=ce({providers:Zb,imports:[nb]}),n})();function cn(n){return null!=n&&"false"!=`${n}`}function xh(n,t=0){return function kP(n){return!isNaN(parseFloat(n))&&!isNaN(Number(n))}(n)?Number(n):t}function El(n){return Array.isArray(n)?n:[n]}function qe(n){return null==n?"":"string"==typeof n?n:`${n}px`}function ii(n){return n instanceof Ee?n.nativeElement:n}try{kh="undefined"!=typeof Intl&&Intl.v8BreakIterator}catch(n){kh=!1}let ns,St=(()=>{class n{constructor(e){this._platformId=e,this.isBrowser=this._platformId?function AO(n){return n===Nv}(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&&!kh)&&"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(e){return new(e||n)(v(vd))},n.\u0275prov=x({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),Dl=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=me({type:n}),n.\u0275inj=ce({}),n})();const Xb=["color","button","checkbox","date","datetime-local","email","file","hidden","image","month","number","password","radio","range","reset","search","submit","tel","text","time","url","week"];function Qb(){if(ns)return ns;if("object"!=typeof document||!document)return ns=new Set(Xb),ns;let n=document.createElement("input");return ns=new Set(Xb.filter(t=>(n.setAttribute("type",t),n.type===t))),ns}let mo,er,Oh;function go(n){return function FP(){if(null==mo&&"undefined"!=typeof window)try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:()=>mo=!0}))}finally{mo=mo||!1}return mo}()?n:!!n.capture}function RP(){if(null==er){if("object"!=typeof document||!document||"function"!=typeof Element||!Element)return er=!1,er;if("scrollBehavior"in document.documentElement.style)er=!0;else{const n=Element.prototype.scrollTo;er=!!n&&!/\{\s*\[native code\]\s*\}/.test(n.toString())}}return er}function vi(n){return n.composedPath?n.composedPath()[0]:n.target}function Fh(){return"undefined"!=typeof __karma__&&!!__karma__||"undefined"!=typeof jasmine&&!!jasmine||"undefined"!=typeof jest&&!!jest||"undefined"!=typeof Mocha&&!!Mocha}function Jb(...n){if(1===n.length){const t=n[0];if(se(t))return Ml(t,null);if(Ke(t)&&Object.getPrototypeOf(t)===Object.prototype){const e=Object.keys(t);return Ml(e.map(i=>t[i]),e)}}if("function"==typeof n[n.length-1]){const t=n.pop();return Ml(n=1===n.length&&se(n[0])?n[0]:n,null).pipe(Ze(e=>t(...e)))}return Ml(n,null)}function Ml(n,t){return new Ce(e=>{const i=n.length;if(0===i)return void e.complete();const r=new Array(i);let s=0,o=0;for(let a=0;a<i;a++){const l=ds(n[a]);let c=!1;e.add(l.subscribe({next:u=>{c||(c=!0,o++),r[a]=u},error:u=>e.error(u),complete:()=>{s++,(s===i||!c)&&(o===i&&e.next(t?t.reduce((u,d,h)=>(u[d]=r[h],u),{}):r),e.complete())}}))}})}let eC=(()=>{class n{constructor(e,i){this._renderer=e,this._elementRef=i,this.onChange=r=>{},this.onTouched=()=>{}}setProperty(e,i){this._renderer.setProperty(this._elementRef.nativeElement,e,i)}registerOnTouched(e){this.onTouched=e}registerOnChange(e){this.onChange=e}setDisabledState(e){this.setProperty("disabled",e)}}return n.\u0275fac=function(e){return new(e||n)(g(mi),g(Ee))},n.\u0275dir=k({type:n}),n})(),tr=(()=>{class n extends eC{}return n.\u0275fac=function(){let t;return function(i){return(t||(t=$e(n)))(i||n)}}(),n.\u0275dir=k({type:n,features:[q]}),n})();const un=new T("NgValueAccessor"),VP={provide:un,useExisting:fe(()=>Tl),multi:!0},HP=new T("CompositionEventMode");let Tl=(()=>{class n extends eC{constructor(e,i,r){super(e,i),this._compositionMode=r,this._composing=!1,null==this._compositionMode&&(this._compositionMode=!function BP(){const n=Hn()?Hn().getUserAgent():"";return/android (\d+)/.test(n.toLowerCase())}())}writeValue(e){this.setProperty("value",null==e?"":e)}_handleInput(e){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(e)}_compositionStart(){this._composing=!0}_compositionEnd(e){this._composing=!1,this._compositionMode&&this.onChange(e)}}return n.\u0275fac=function(e){return new(e||n)(g(mi),g(Ee),g(HP,8))},n.\u0275dir=k({type:n,selectors:[["input","formControlName","",3,"type","checkbox"],["textarea","formControlName",""],["input","formControl","",3,"type","checkbox"],["textarea","formControl",""],["input","ngModel","",3,"type","checkbox"],["textarea","ngModel",""],["","ngDefaultControl",""]],hostBindings:function(e,i){1&e&&Ae("input",function(s){return i._handleInput(s.target.value)})("blur",function(){return i.onTouched()})("compositionstart",function(){return i._compositionStart()})("compositionend",function(s){return i._compositionEnd(s.target.value)})},features:[oe([VP]),q]}),n})();function bi(n){return null==n||0===n.length}function nC(n){return null!=n&&"number"==typeof n.length}const lt=new T("NgValidators"),Ci=new T("NgAsyncValidators"),jP=/^(?=.{1,254}$)(?=.{1,64}@)[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+)*@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/;class $P{static min(t){return function iC(n){return t=>{if(bi(t.value)||bi(n))return null;const e=parseFloat(t.value);return!isNaN(e)&&e<n?{min:{min:n,actual:t.value}}:null}}(t)}static max(t){return function rC(n){return t=>{if(bi(t.value)||bi(n))return null;const e=parseFloat(t.value);return!isNaN(e)&&e>n?{max:{max:n,actual:t.value}}:null}}(t)}static required(t){return function sC(n){return bi(n.value)?{required:!0}:null}(t)}static requiredTrue(t){return function oC(n){return!0===n.value?null:{required:!0}}(t)}static email(t){return function aC(n){return bi(n.value)||jP.test(n.value)?null:{email:!0}}(t)}static minLength(t){return function lC(n){return t=>bi(t.value)||!nC(t.value)?null:t.value.length<n?{minlength:{requiredLength:n,actualLength:t.value.length}}:null}(t)}static maxLength(t){return function cC(n){return t=>nC(t.value)&&t.value.length>n?{maxlength:{requiredLength:n,actualLength:t.value.length}}:null}(t)}static pattern(t){return function uC(n){if(!n)return Al;let t,e;return"string"==typeof n?(e="","^"!==n.charAt(0)&&(e+="^"),e+=n,"$"!==n.charAt(n.length-1)&&(e+="$"),t=new RegExp(e)):(e=n.toString(),t=n),i=>{if(bi(i.value))return null;const r=i.value;return t.test(r)?null:{pattern:{requiredPattern:e,actualValue:r}}}}(t)}static nullValidator(t){return null}static compose(t){return gC(t)}static composeAsync(t){return _C(t)}}function Al(n){return null}function dC(n){return null!=n}function hC(n){const t=va(n)?ds(n):n;return Zg(t),t}function fC(n){let t={};return n.forEach(e=>{t=null!=e?Object.assign(Object.assign({},t),e):t}),0===Object.keys(t).length?null:t}function pC(n,t){return t.map(e=>e(n))}function mC(n){return n.map(t=>function UP(n){return!n.validate}(t)?t:e=>t.validate(e))}function gC(n){if(!n)return null;const t=n.filter(dC);return 0==t.length?null:function(e){return fC(pC(e,t))}}function Rh(n){return null!=n?gC(mC(n)):null}function _C(n){if(!n)return null;const t=n.filter(dC);return 0==t.length?null:function(e){return Jb(pC(e,t).map(hC)).pipe(Ze(fC))}}function Nh(n){return null!=n?_C(mC(n)):null}function yC(n,t){return null===n?[t]:Array.isArray(n)?[...n,t]:[n,t]}function vC(n){return n._rawValidators}function bC(n){return n._rawAsyncValidators}function Ph(n){return n?Array.isArray(n)?n:[n]:[]}function Il(n,t){return Array.isArray(n)?n.includes(t):n===t}function CC(n,t){const e=Ph(t);return Ph(n).forEach(r=>{Il(e,r)||e.push(r)}),e}function wC(n,t){return Ph(t).filter(e=>!Il(n,e))}class EC{constructor(){this._rawValidators=[],this._rawAsyncValidators=[],this._onDestroyCallbacks=[]}get value(){return this.control?this.control.value:null}get valid(){return this.control?this.control.valid:null}get invalid(){return this.control?this.control.invalid:null}get pending(){return this.control?this.control.pending:null}get disabled(){return this.control?this.control.disabled:null}get enabled(){return this.control?this.control.enabled:null}get errors(){return this.control?this.control.errors:null}get pristine(){return this.control?this.control.pristine:null}get dirty(){return this.control?this.control.dirty:null}get touched(){return this.control?this.control.touched:null}get status(){return this.control?this.control.status:null}get untouched(){return this.control?this.control.untouched:null}get statusChanges(){return this.control?this.control.statusChanges:null}get valueChanges(){return this.control?this.control.valueChanges:null}get path(){return null}_setValidators(t){this._rawValidators=t||[],this._composedValidatorFn=Rh(this._rawValidators)}_setAsyncValidators(t){this._rawAsyncValidators=t||[],this._composedAsyncValidatorFn=Nh(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_registerOnDestroy(t){this._onDestroyCallbacks.push(t)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(t=>t()),this._onDestroyCallbacks=[]}reset(t){this.control&&this.control.reset(t)}hasError(t,e){return!!this.control&&this.control.hasError(t,e)}getError(t,e){return this.control?this.control.getError(t,e):null}}class ri extends EC{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}}class Mt extends EC{get formDirective(){return null}get path(){return null}}let SC=(()=>{class n extends class DC{constructor(t){this._cd=t}is(t){var e,i,r;return"submitted"===t?!!(null===(e=this._cd)||void 0===e?void 0:e.submitted):!!(null===(r=null===(i=this._cd)||void 0===i?void 0:i.control)||void 0===r?void 0:r[t])}}{constructor(e){super(e)}}return n.\u0275fac=function(e){return new(e||n)(g(ri,2))},n.\u0275dir=k({type:n,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(e,i){2&e&&mt("ng-untouched",i.is("untouched"))("ng-touched",i.is("touched"))("ng-pristine",i.is("pristine"))("ng-dirty",i.is("dirty"))("ng-valid",i.is("valid"))("ng-invalid",i.is("invalid"))("ng-pending",i.is("pending"))},features:[q]}),n})();function _o(n,t){Bh(n,t),t.valueAccessor.writeValue(n.value),function QP(n,t){t.valueAccessor.registerOnChange(e=>{n._pendingValue=e,n._pendingChange=!0,n._pendingDirty=!0,"change"===n.updateOn&&TC(n,t)})}(n,t),function e1(n,t){const e=(i,r)=>{t.valueAccessor.writeValue(i),r&&t.viewToModelUpdate(i)};n.registerOnChange(e),t._registerOnDestroy(()=>{n._unregisterOnChange(e)})}(n,t),function JP(n,t){t.valueAccessor.registerOnTouched(()=>{n._pendingTouched=!0,"blur"===n.updateOn&&n._pendingChange&&TC(n,t),"submit"!==n.updateOn&&n.markAsTouched()})}(n,t),function XP(n,t){if(t.valueAccessor.setDisabledState){const e=i=>{t.valueAccessor.setDisabledState(i)};n.registerOnDisabledChange(e),t._registerOnDestroy(()=>{n._unregisterOnDisabledChange(e)})}}(n,t)}function Ol(n,t,e=!0){const i=()=>{};t.valueAccessor&&(t.valueAccessor.registerOnChange(i),t.valueAccessor.registerOnTouched(i)),Rl(n,t),n&&(t._invokeOnDestroyCallbacks(),n._registerOnCollectionChange(()=>{}))}function Fl(n,t){n.forEach(e=>{e.registerOnValidatorChange&&e.registerOnValidatorChange(t)})}function Bh(n,t){const e=vC(n);null!==t.validator?n.setValidators(yC(e,t.validator)):"function"==typeof e&&n.setValidators([e]);const i=bC(n);null!==t.asyncValidator?n.setAsyncValidators(yC(i,t.asyncValidator)):"function"==typeof i&&n.setAsyncValidators([i]);const r=()=>n.updateValueAndValidity();Fl(t._rawValidators,r),Fl(t._rawAsyncValidators,r)}function Rl(n,t){let e=!1;if(null!==n){if(null!==t.validator){const r=vC(n);if(Array.isArray(r)&&r.length>0){const s=r.filter(o=>o!==t.validator);s.length!==r.length&&(e=!0,n.setValidators(s))}}if(null!==t.asyncValidator){const r=bC(n);if(Array.isArray(r)&&r.length>0){const s=r.filter(o=>o!==t.asyncValidator);s.length!==r.length&&(e=!0,n.setAsyncValidators(s))}}}const i=()=>{};return Fl(t._rawValidators,i),Fl(t._rawAsyncValidators,i),e}function TC(n,t){n._pendingDirty&&n.markAsDirty(),n.setValue(n._pendingValue,{emitModelToViewChange:!1}),t.viewToModelUpdate(n._pendingValue),n._pendingChange=!1}function AC(n,t){Bh(n,t)}function xC(n,t){n._syncPendingControls(),t.forEach(e=>{const i=e.control;"submit"===i.updateOn&&i._pendingChange&&(e.viewToModelUpdate(i._pendingValue),i._pendingChange=!1)})}function $h(n,t){const e=n.indexOf(t);e>-1&&n.splice(e,1)}const yo="VALID",Nl="INVALID",is="PENDING",vo="DISABLED";function zh(n){return(Pl(n)?n.validators:n)||null}function kC(n){return Array.isArray(n)?Rh(n):n||null}function Gh(n,t){return(Pl(t)?t.asyncValidators:n)||null}function OC(n){return Array.isArray(n)?Nh(n):n||null}function Pl(n){return null!=n&&!Array.isArray(n)&&"object"==typeof n}const FC=n=>n instanceof Kh,Wh=n=>n instanceof Yh;function RC(n){return FC(n)?n.value:n.getRawValue()}function NC(n,t){const e=Wh(n),i=n.controls;if(!(e?Object.keys(i):i).length)throw new A(1e3,"");if(!i[t])throw new A(1001,"")}function PC(n,t){Wh(n),n._forEachChild((i,r)=>{if(void 0===t[r])throw new A(1002,"")})}class qh{constructor(t,e){this._pendingDirty=!1,this._hasOwnPendingAsyncValidator=!1,this._pendingTouched=!1,this._onCollectionChange=()=>{},this._parent=null,this.pristine=!0,this.touched=!1,this._onDisabledChange=[],this._rawValidators=t,this._rawAsyncValidators=e,this._composedValidatorFn=kC(this._rawValidators),this._composedAsyncValidatorFn=OC(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn}set validator(t){this._rawValidators=this._composedValidatorFn=t}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(t){this._rawAsyncValidators=this._composedAsyncValidatorFn=t}get parent(){return this._parent}get valid(){return this.status===yo}get invalid(){return this.status===Nl}get pending(){return this.status==is}get disabled(){return this.status===vo}get enabled(){return this.status!==vo}get dirty(){return!this.pristine}get untouched(){return!this.touched}get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(t){this._rawValidators=t,this._composedValidatorFn=kC(t)}setAsyncValidators(t){this._rawAsyncValidators=t,this._composedAsyncValidatorFn=OC(t)}addValidators(t){this.setValidators(CC(t,this._rawValidators))}addAsyncValidators(t){this.setAsyncValidators(CC(t,this._rawAsyncValidators))}removeValidators(t){this.setValidators(wC(t,this._rawValidators))}removeAsyncValidators(t){this.setAsyncValidators(wC(t,this._rawAsyncValidators))}hasValidator(t){return Il(this._rawValidators,t)}hasAsyncValidator(t){return Il(this._rawAsyncValidators,t)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(t={}){this.touched=!0,this._parent&&!t.onlySelf&&this._parent.markAsTouched(t)}markAllAsTouched(){this.markAsTouched({onlySelf:!0}),this._forEachChild(t=>t.markAllAsTouched())}markAsUntouched(t={}){this.touched=!1,this._pendingTouched=!1,this._forEachChild(e=>{e.markAsUntouched({onlySelf:!0})}),this._parent&&!t.onlySelf&&this._parent._updateTouched(t)}markAsDirty(t={}){this.pristine=!1,this._parent&&!t.onlySelf&&this._parent.markAsDirty(t)}markAsPristine(t={}){this.pristine=!0,this._pendingDirty=!1,this._forEachChild(e=>{e.markAsPristine({onlySelf:!0})}),this._parent&&!t.onlySelf&&this._parent._updatePristine(t)}markAsPending(t={}){this.status=is,!1!==t.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!t.onlySelf&&this._parent.markAsPending(t)}disable(t={}){const e=this._parentMarkedDirty(t.onlySelf);this.status=vo,this.errors=null,this._forEachChild(i=>{i.disable(Object.assign(Object.assign({},t),{onlySelf:!0}))}),this._updateValue(),!1!==t.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(Object.assign(Object.assign({},t),{skipPristineCheck:e})),this._onDisabledChange.forEach(i=>i(!0))}enable(t={}){const e=this._parentMarkedDirty(t.onlySelf);this.status=yo,this._forEachChild(i=>{i.enable(Object.assign(Object.assign({},t),{onlySelf:!0}))}),this.updateValueAndValidity({onlySelf:!0,emitEvent:t.emitEvent}),this._updateAncestors(Object.assign(Object.assign({},t),{skipPristineCheck:e})),this._onDisabledChange.forEach(i=>i(!1))}_updateAncestors(t){this._parent&&!t.onlySelf&&(this._parent.updateValueAndValidity(t),t.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}setParent(t){this._parent=t}updateValueAndValidity(t={}){this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===yo||this.status===is)&&this._runAsyncValidator(t.emitEvent)),!1!==t.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!t.onlySelf&&this._parent.updateValueAndValidity(t)}_updateTreeValidity(t={emitEvent:!0}){this._forEachChild(e=>e._updateTreeValidity(t)),this.updateValueAndValidity({onlySelf:!0,emitEvent:t.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?vo:yo}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(t){if(this.asyncValidator){this.status=is,this._hasOwnPendingAsyncValidator=!0;const e=hC(this.asyncValidator(this));this._asyncValidationSubscription=e.subscribe(i=>{this._hasOwnPendingAsyncValidator=!1,this.setErrors(i,{emitEvent:t})})}}_cancelExistingSubscription(){this._asyncValidationSubscription&&(this._asyncValidationSubscription.unsubscribe(),this._hasOwnPendingAsyncValidator=!1)}setErrors(t,e={}){this.errors=t,this._updateControlsErrors(!1!==e.emitEvent)}get(t){return function s1(n,t,e){if(null==t||(Array.isArray(t)||(t=t.split(e)),Array.isArray(t)&&0===t.length))return null;let i=n;return t.forEach(r=>{i=Wh(i)?i.controls.hasOwnProperty(r)?i.controls[r]:null:(n=>n instanceof a1)(i)&&i.at(r)||null}),i}(this,t,".")}getError(t,e){const i=e?this.get(e):this;return i&&i.errors?i.errors[t]:null}hasError(t,e){return!!this.getError(t,e)}get root(){let t=this;for(;t._parent;)t=t._parent;return t}_updateControlsErrors(t){this.status=this._calculateStatus(),t&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(t)}_initObservables(){this.valueChanges=new Ie,this.statusChanges=new Ie}_calculateStatus(){return this._allControlsDisabled()?vo:this.errors?Nl:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(is)?is:this._anyControlsHaveStatus(Nl)?Nl:yo}_anyControlsHaveStatus(t){return this._anyControls(e=>e.status===t)}_anyControlsDirty(){return this._anyControls(t=>t.dirty)}_anyControlsTouched(){return this._anyControls(t=>t.touched)}_updatePristine(t={}){this.pristine=!this._anyControlsDirty(),this._parent&&!t.onlySelf&&this._parent._updatePristine(t)}_updateTouched(t={}){this.touched=this._anyControlsTouched(),this._parent&&!t.onlySelf&&this._parent._updateTouched(t)}_isBoxedValue(t){return"object"==typeof t&&null!==t&&2===Object.keys(t).length&&"value"in t&&"disabled"in t}_registerOnCollectionChange(t){this._onCollectionChange=t}_setUpdateStrategy(t){Pl(t)&&null!=t.updateOn&&(this._updateOn=t.updateOn)}_parentMarkedDirty(t){return!t&&!(!this._parent||!this._parent.dirty)&&!this._parent._anyControlsDirty()}}class Kh extends qh{constructor(t=null,e,i){super(zh(e),Gh(i,e)),this.defaultValue=null,this._onChange=[],this._pendingChange=!1,this._applyFormState(t),this._setUpdateStrategy(e),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),Pl(e)&&e.initialValueIsDefault&&(this.defaultValue=this._isBoxedValue(t)?t.value:t)}setValue(t,e={}){this.value=this._pendingValue=t,this._onChange.length&&!1!==e.emitModelToViewChange&&this._onChange.forEach(i=>i(this.value,!1!==e.emitViewToModelChange)),this.updateValueAndValidity(e)}patchValue(t,e={}){this.setValue(t,e)}reset(t=this.defaultValue,e={}){this._applyFormState(t),this.markAsPristine(e),this.markAsUntouched(e),this.setValue(this.value,e),this._pendingChange=!1}_updateValue(){}_anyControls(t){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(t){this._onChange.push(t)}_unregisterOnChange(t){$h(this._onChange,t)}registerOnDisabledChange(t){this._onDisabledChange.push(t)}_unregisterOnDisabledChange(t){$h(this._onDisabledChange,t)}_forEachChild(t){}_syncPendingControls(){return!("submit"!==this.updateOn||(this._pendingDirty&&this.markAsDirty(),this._pendingTouched&&this.markAsTouched(),!this._pendingChange)||(this.setValue(this._pendingValue,{onlySelf:!0,emitModelToViewChange:!1}),0))}_applyFormState(t){this._isBoxedValue(t)?(this.value=this._pendingValue=t.value,t.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=t}}class Yh extends qh{constructor(t,e,i){super(zh(e),Gh(i,e)),this.controls=t,this._initObservables(),this._setUpdateStrategy(e),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}registerControl(t,e){return this.controls[t]?this.controls[t]:(this.controls[t]=e,e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange),e)}addControl(t,e,i={}){this.registerControl(t,e),this.updateValueAndValidity({emitEvent:i.emitEvent}),this._onCollectionChange()}removeControl(t,e={}){this.controls[t]&&this.controls[t]._registerOnCollectionChange(()=>{}),delete this.controls[t],this.updateValueAndValidity({emitEvent:e.emitEvent}),this._onCollectionChange()}setControl(t,e,i={}){this.controls[t]&&this.controls[t]._registerOnCollectionChange(()=>{}),delete this.controls[t],e&&this.registerControl(t,e),this.updateValueAndValidity({emitEvent:i.emitEvent}),this._onCollectionChange()}contains(t){return this.controls.hasOwnProperty(t)&&this.controls[t].enabled}setValue(t,e={}){PC(this,t),Object.keys(t).forEach(i=>{NC(this,i),this.controls[i].setValue(t[i],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}patchValue(t,e={}){null!=t&&(Object.keys(t).forEach(i=>{this.controls[i]&&this.controls[i].patchValue(t[i],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e))}reset(t={},e={}){this._forEachChild((i,r)=>{i.reset(t[r],{onlySelf:!0,emitEvent:e.emitEvent})}),this._updatePristine(e),this._updateTouched(e),this.updateValueAndValidity(e)}getRawValue(){return this._reduceChildren({},(t,e,i)=>(t[i]=RC(e),t))}_syncPendingControls(){let t=this._reduceChildren(!1,(e,i)=>!!i._syncPendingControls()||e);return t&&this.updateValueAndValidity({onlySelf:!0}),t}_forEachChild(t){Object.keys(this.controls).forEach(e=>{const i=this.controls[e];i&&t(i,e)})}_setUpControls(){this._forEachChild(t=>{t.setParent(this),t._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(t){for(const e of Object.keys(this.controls)){const i=this.controls[e];if(this.contains(e)&&t(i))return!0}return!1}_reduceValue(){return this._reduceChildren({},(t,e,i)=>((e.enabled||this.disabled)&&(t[i]=e.value),t))}_reduceChildren(t,e){let i=t;return this._forEachChild((r,s)=>{i=e(i,r,s)}),i}_allControlsDisabled(){for(const t of Object.keys(this.controls))if(this.controls[t].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}}class a1 extends qh{constructor(t,e,i){super(zh(e),Gh(i,e)),this.controls=t,this._initObservables(),this._setUpdateStrategy(e),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}at(t){return this.controls[t]}push(t,e={}){this.controls.push(t),this._registerControl(t),this.updateValueAndValidity({emitEvent:e.emitEvent}),this._onCollectionChange()}insert(t,e,i={}){this.controls.splice(t,0,e),this._registerControl(e),this.updateValueAndValidity({emitEvent:i.emitEvent})}removeAt(t,e={}){this.controls[t]&&this.controls[t]._registerOnCollectionChange(()=>{}),this.controls.splice(t,1),this.updateValueAndValidity({emitEvent:e.emitEvent})}setControl(t,e,i={}){this.controls[t]&&this.controls[t]._registerOnCollectionChange(()=>{}),this.controls.splice(t,1),e&&(this.controls.splice(t,0,e),this._registerControl(e)),this.updateValueAndValidity({emitEvent:i.emitEvent}),this._onCollectionChange()}get length(){return this.controls.length}setValue(t,e={}){PC(this,t),t.forEach((i,r)=>{NC(this,r),this.at(r).setValue(i,{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}patchValue(t,e={}){null!=t&&(t.forEach((i,r)=>{this.at(r)&&this.at(r).patchValue(i,{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e))}reset(t=[],e={}){this._forEachChild((i,r)=>{i.reset(t[r],{onlySelf:!0,emitEvent:e.emitEvent})}),this._updatePristine(e),this._updateTouched(e),this.updateValueAndValidity(e)}getRawValue(){return this.controls.map(t=>RC(t))}clear(t={}){this.controls.length<1||(this._forEachChild(e=>e._registerOnCollectionChange(()=>{})),this.controls.splice(0),this.updateValueAndValidity({emitEvent:t.emitEvent}))}_syncPendingControls(){let t=this.controls.reduce((e,i)=>!!i._syncPendingControls()||e,!1);return t&&this.updateValueAndValidity({onlySelf:!0}),t}_forEachChild(t){this.controls.forEach((e,i)=>{t(e,i)})}_updateValue(){this.value=this.controls.filter(t=>t.enabled||this.disabled).map(t=>t.value)}_anyControls(t){return this.controls.some(e=>e.enabled&&t(e))}_setUpControls(){this._forEachChild(t=>this._registerControl(t))}_allControlsDisabled(){for(const t of this.controls)if(t.enabled)return!1;return this.controls.length>0||this.disabled}_registerControl(t){t.setParent(this),t._registerOnCollectionChange(this._onCollectionChange)}}const l1={provide:Mt,useExisting:fe(()=>Ll)},bo=(()=>Promise.resolve(null))();let Ll=(()=>{class n extends Mt{constructor(e,i){super(),this.submitted=!1,this._directives=new Set,this.ngSubmit=new Ie,this.form=new Yh({},Rh(e),Nh(i))}ngAfterViewInit(){this._setUpdateStrategy()}get formDirective(){return this}get control(){return this.form}get path(){return[]}get controls(){return this.form.controls}addControl(e){bo.then(()=>{const i=this._findContainer(e.path);e.control=i.registerControl(e.name,e.control),_o(e.control,e),e.control.updateValueAndValidity({emitEvent:!1}),this._directives.add(e)})}getControl(e){return this.form.get(e.path)}removeControl(e){bo.then(()=>{const i=this._findContainer(e.path);i&&i.removeControl(e.name),this._directives.delete(e)})}addFormGroup(e){bo.then(()=>{const i=this._findContainer(e.path),r=new Yh({});AC(r,e),i.registerControl(e.name,r),r.updateValueAndValidity({emitEvent:!1})})}removeFormGroup(e){bo.then(()=>{const i=this._findContainer(e.path);i&&i.removeControl(e.name)})}getFormGroup(e){return this.form.get(e.path)}updateModel(e,i){bo.then(()=>{this.form.get(e.path).setValue(i)})}setValue(e){this.control.setValue(e)}onSubmit(e){return this.submitted=!0,xC(this.form,this._directives),this.ngSubmit.emit(e),!1}onReset(){this.resetForm()}resetForm(e){this.form.reset(e),this.submitted=!1}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.form._updateOn=this.options.updateOn)}_findContainer(e){return e.pop(),e.length?this.form.get(e):this.form}}return n.\u0275fac=function(e){return new(e||n)(g(lt,10),g(Ci,10))},n.\u0275dir=k({type:n,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(e,i){1&e&&Ae("submit",function(s){return i.onSubmit(s)})("reset",function(){return i.onReset()})},inputs:{options:["ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[oe([l1]),q]}),n})(),$C=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=me({type:n}),n.\u0275inj=ce({}),n})();const Zh=new T("NgModelWithFormControlWarning"),g1={provide:ri,useExisting:fe(()=>Xh)};let Xh=(()=>{class n extends ri{constructor(e,i,r,s){super(),this._ngModelWarningConfig=s,this.update=new Ie,this._ngModelWarningSent=!1,this._setValidators(e),this._setAsyncValidators(i),this.valueAccessor=function jh(n,t){if(!t)return null;let e,i,r;return Array.isArray(t),t.forEach(s=>{s.constructor===Tl?e=s:function r1(n){return Object.getPrototypeOf(n.constructor)===tr}(s)?i=s:r=s}),r||i||e||null}(0,r)}set isDisabled(e){}ngOnChanges(e){if(this._isControlChanged(e)){const i=e.form.previousValue;i&&Ol(i,this,!1),_o(this.form,this),this.control.disabled&&this.valueAccessor.setDisabledState&&this.valueAccessor.setDisabledState(!0),this.form.updateValueAndValidity({emitEvent:!1})}(function Hh(n,t){if(!n.hasOwnProperty("model"))return!1;const e=n.model;return!!e.isFirstChange()||!Object.is(t,e.currentValue)})(e,this.viewModel)&&(this.form.setValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.form&&Ol(this.form,this,!1)}get path(){return[]}get control(){return this.form}viewToModelUpdate(e){this.viewModel=e,this.update.emit(e)}_isControlChanged(e){return e.hasOwnProperty("form")}}return n._ngModelWarningSentOnce=!1,n.\u0275fac=function(e){return new(e||n)(g(lt,10),g(Ci,10),g(un,10),g(Zh,8))},n.\u0275dir=k({type:n,selectors:[["","formControl",""]],inputs:{form:["formControl","form"],isDisabled:["disabled","isDisabled"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},exportAs:["ngForm"],features:[oe([g1]),q,Qt]}),n})();const _1={provide:Mt,useExisting:fe(()=>Vl)};let Vl=(()=>{class n extends Mt{constructor(e,i){super(),this.validators=e,this.asyncValidators=i,this.submitted=!1,this._onCollectionChange=()=>this._updateDomValue(),this.directives=[],this.form=null,this.ngSubmit=new Ie,this._setValidators(e),this._setAsyncValidators(i)}ngOnChanges(e){this._checkFormPresent(),e.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations(),this._oldForm=this.form)}ngOnDestroy(){this.form&&(Rl(this.form,this),this.form._onCollectionChange===this._onCollectionChange&&this.form._registerOnCollectionChange(()=>{}))}get formDirective(){return this}get control(){return this.form}get path(){return[]}addControl(e){const i=this.form.get(e.path);return _o(i,e),i.updateValueAndValidity({emitEvent:!1}),this.directives.push(e),i}getControl(e){return this.form.get(e.path)}removeControl(e){Ol(e.control||null,e,!1),$h(this.directives,e)}addFormGroup(e){this._setUpFormContainer(e)}removeFormGroup(e){this._cleanUpFormContainer(e)}getFormGroup(e){return this.form.get(e.path)}addFormArray(e){this._setUpFormContainer(e)}removeFormArray(e){this._cleanUpFormContainer(e)}getFormArray(e){return this.form.get(e.path)}updateModel(e,i){this.form.get(e.path).setValue(i)}onSubmit(e){return this.submitted=!0,xC(this.form,this.directives),this.ngSubmit.emit(e),!1}onReset(){this.resetForm()}resetForm(e){this.form.reset(e),this.submitted=!1}_updateDomValue(){this.directives.forEach(e=>{const i=e.control,r=this.form.get(e.path);i!==r&&(Ol(i||null,e),FC(r)&&(_o(r,e),e.control=r))}),this.form._updateTreeValidity({emitEvent:!1})}_setUpFormContainer(e){const i=this.form.get(e.path);AC(i,e),i.updateValueAndValidity({emitEvent:!1})}_cleanUpFormContainer(e){if(this.form){const i=this.form.get(e.path);i&&function t1(n,t){return Rl(n,t)}(i,e)&&i.updateValueAndValidity({emitEvent:!1})}}_updateRegistrations(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm&&this._oldForm._registerOnCollectionChange(()=>{})}_updateValidators(){Bh(this.form,this),this._oldForm&&Rl(this._oldForm,this)}_checkFormPresent(){}}return n.\u0275fac=function(e){return new(e||n)(g(lt,10),g(Ci,10))},n.\u0275dir=k({type:n,selectors:[["","formGroup",""]],hostBindings:function(e,i){1&e&&Ae("submit",function(s){return i.onSubmit(s)})("reset",function(){return i.onReset()})},inputs:{form:["formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[oe([_1]),q,Qt]}),n})(),P1=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=me({type:n}),n.\u0275inj=ce({imports:[[$C]]}),n})(),L1=(()=>{class n{static withConfig(e){return{ngModule:n,providers:[{provide:Zh,useValue:e.warnOnNgModelWithFormControl}]}}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=me({type:n}),n.\u0275inj=ce({imports:[P1]}),n})();const V1=new T("cdk-dir-doc",{providedIn:"root",factory:function B1(){return na(Z)}}),H1=/^(ar|ckb|dv|he|iw|fa|nqo|ps|sd|ug|ur|yi|.*[-_](Adlm|Arab|Hebr|Nkoo|Rohg|Thaa))(?!.*[-_](Latn|Cyrl)($|-|_))($|-|_)/i;let Bl=(()=>{class n{constructor(e){if(this.value="ltr",this.change=new Ie,e){const r=e.documentElement?e.documentElement.dir:null;this.value=function j1(n){const t=(null==n?void 0:n.toLowerCase())||"";return"auto"===t&&"undefined"!=typeof navigator&&(null==navigator?void 0:navigator.language)?H1.test(navigator.language)?"rtl":"ltr":"rtl"===t?"rtl":"ltr"}((e.body?e.body.dir:null)||r||"ltr")}}ngOnDestroy(){this.change.complete()}}return n.\u0275fac=function(e){return new(e||n)(v(V1,8))},n.\u0275prov=x({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),Co=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=me({type:n}),n.\u0275inj=ce({}),n})();class $1 extends de{constructor(t){super(),this._value=t}get value(){return this.getValue()}_subscribe(t){const e=super._subscribe(t);return e&&!e.closed&&t.next(this._value),e}getValue(){if(this.hasError)throw this.thrownError;if(this.closed)throw new Ii;return this._value}next(t){super.next(this._value=t)}}function ir(n,...t){return t.length?t.some(e=>n[e]):n.altKey||n.shiftKey||n.ctrlKey||n.metaKey}function wi(){}function wo(n,t,e){return function(r){return r.lift(new iL(n,t,e))}}class iL{constructor(t,e,i){this.nextOrObserver=t,this.error=e,this.complete=i}call(t,e){return e.subscribe(new rL(t,this.nextOrObserver,this.error,this.complete))}}class rL extends ye{constructor(t,e,i,r){super(t),this._tapNext=wi,this._tapError=wi,this._tapComplete=wi,this._tapError=i||wi,this._tapComplete=r||wi,Q(e)?(this._context=this,this._tapNext=e):e&&(this._context=e,this._tapNext=e.next||wi,this._tapError=e.error||wi,this._tapComplete=e.complete||wi)}_next(t){try{this._tapNext.call(this._context,t)}catch(e){return void this.destination.error(e)}this.destination.next(t)}_error(t){try{this._tapError.call(this._context,t)}catch(e){return void this.destination.error(e)}this.destination.error(t)}_complete(){try{this._tapComplete.call(this._context)}catch(t){return void this.destination.error(t)}return this.destination.complete()}}const Hl=new Sn(tl);function jl(n,t=Hl){return e=>e.lift(new sL(n,t))}class sL{constructor(t,e){this.dueTime=t,this.scheduler=e}call(t,e){return e.subscribe(new oL(t,this.dueTime,this.scheduler))}}class oL extends ye{constructor(t,e,i){super(t),this.dueTime=e,this.scheduler=i,this.debouncedSubscription=null,this.lastValue=null,this.hasValue=!1}_next(t){this.clearDebounce(),this.lastValue=t,this.hasValue=!0,this.add(this.debouncedSubscription=this.scheduler.schedule(aL,this.dueTime,this))}_complete(){this.debouncedNext(),this.destination.complete()}debouncedNext(){if(this.clearDebounce(),this.hasValue){const{lastValue:t}=this;this.lastValue=null,this.hasValue=!1,this.destination.next(t)}}clearDebounce(){const t=this.debouncedSubscription;null!==t&&(this.remove(t),t.unsubscribe(),this.debouncedSubscription=null)}}function aL(n){n.debouncedNext()}function rr(n,t){return function(i){return i.lift(new lL(n,t))}}class lL{constructor(t,e){this.predicate=t,this.thisArg=e}call(t,e){return e.subscribe(new cL(t,this.predicate,this.thisArg))}}class cL extends ye{constructor(t,e,i){super(t),this.predicate=e,this.thisArg=i,this.count=0}_next(t){let e;try{e=this.predicate.call(this.thisArg,t,this.count++)}catch(i){return void this.destination.error(i)}e&&this.destination.next(t)}}function lw(n){return t=>t.lift(new uL(n))}class uL{constructor(t){this.total=t}call(t,e){return e.subscribe(new dL(t,this.total))}}class dL extends ye{constructor(t,e){super(t),this.total=e,this.count=0}_next(t){++this.count>this.total&&this.destination.next(t)}}class fL{constructor(t,e){this.compare=t,this.keySelector=e}call(t,e){return e.subscribe(new pL(t,this.compare,this.keySelector))}}class pL extends ye{constructor(t,e,i){super(t),this.keySelector=i,this.hasKey=!1,"function"==typeof e&&(this.compare=e)}compare(t,e){return t===e}_next(t){let e;try{const{keySelector:r}=this;e=r?r(t):t}catch(r){return this.destination.error(r)}let i=!1;if(this.hasKey)try{const{compare:r}=this;i=r(this.key,e)}catch(r){return this.destination.error(r)}else this.hasKey=!0;i||(this.key=e,this.destination.next(t))}}function Ot(n){return t=>t.lift(new mL(n))}class mL{constructor(t){this.notifier=t}call(t,e){const i=new gL(t),r=ps(this.notifier,new hs(i));return r&&!i.seenValue?(i.add(r),e.subscribe(i)):i}}class gL extends fs{constructor(t){super(t),this.seenValue=!1}notifyNext(){this.seenValue=!0,this.complete()}notifyComplete(){}}let cw=(()=>{class n{create(e){return"undefined"==typeof MutationObserver?null:new MutationObserver(e)}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=x({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),_L=(()=>{class n{constructor(e){this._mutationObserverFactory=e,this._observedElements=new Map}ngOnDestroy(){this._observedElements.forEach((e,i)=>this._cleanupObserver(i))}observe(e){const i=ii(e);return new Ce(r=>{const o=this._observeElement(i).subscribe(r);return()=>{o.unsubscribe(),this._unobserveElement(i)}})}_observeElement(e){if(this._observedElements.has(e))this._observedElements.get(e).count++;else{const i=new de,r=this._mutationObserverFactory.create(s=>i.next(s));r&&r.observe(e,{characterData:!0,childList:!0,subtree:!0}),this._observedElements.set(e,{observer:r,stream:i,count:1})}return this._observedElements.get(e).stream}_unobserveElement(e){this._observedElements.has(e)&&(this._observedElements.get(e).count--,this._observedElements.get(e).count||this._cleanupObserver(e))}_cleanupObserver(e){if(this._observedElements.has(e)){const{observer:i,stream:r}=this._observedElements.get(e);i&&i.disconnect(),r.complete(),this._observedElements.delete(e)}}}return n.\u0275fac=function(e){return new(e||n)(v(cw))},n.\u0275prov=x({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),yL=(()=>{class n{constructor(e,i,r){this._contentObserver=e,this._elementRef=i,this._ngZone=r,this.event=new Ie,this._disabled=!1,this._currentSubscription=null}get disabled(){return this._disabled}set disabled(e){this._disabled=cn(e),this._disabled?this._unsubscribe():this._subscribe()}get debounce(){return this._debounce}set debounce(e){this._debounce=xh(e),this._subscribe()}ngAfterContentInit(){!this._currentSubscription&&!this.disabled&&this._subscribe()}ngOnDestroy(){this._unsubscribe()}_subscribe(){this._unsubscribe();const e=this._contentObserver.observe(this._elementRef);this._ngZone.runOutsideAngular(()=>{this._currentSubscription=(this.debounce?e.pipe(jl(this.debounce)):e).subscribe(this.event)})}_unsubscribe(){var e;null===(e=this._currentSubscription)||void 0===e||e.unsubscribe()}}return n.\u0275fac=function(e){return new(e||n)(g(_L),g(Ee),g(le))},n.\u0275dir=k({type:n,selectors:[["","cdkObserveContent",""]],inputs:{disabled:["cdkObserveContentDisabled","disabled"],debounce:"debounce"},outputs:{event:"cdkObserveContent"},exportAs:["cdkObserveContent"]}),n})(),uw=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=me({type:n}),n.\u0275inj=ce({providers:[cw]}),n})();function $l(n,t){return(n.getAttribute(t)||"").match(/\S+/g)||[]}const hw="cdk-describedby-message-container",fw="cdk-describedby-message",Ul="cdk-describedby-host";let CL=0;const Un=new Map;let Kt=null,wL=(()=>{class n{constructor(e){this._document=e}describe(e,i,r){if(!this._canBeDescribed(e,i))return;const s=af(i,r);"string"!=typeof i?(pw(i),Un.set(s,{messageElement:i,referenceCount:0})):Un.has(s)||this._createMessageElement(i,r),this._isElementDescribedByMessage(e,s)||this._addMessageReference(e,s)}removeDescription(e,i,r){if(!i||!this._isElementNode(e))return;const s=af(i,r);if(this._isElementDescribedByMessage(e,s)&&this._removeMessageReference(e,s),"string"==typeof i){const o=Un.get(s);o&&0===o.referenceCount&&this._deleteMessageElement(s)}Kt&&0===Kt.childNodes.length&&this._deleteMessagesContainer()}ngOnDestroy(){const e=this._document.querySelectorAll(`[${Ul}]`);for(let i=0;i<e.length;i++)this._removeCdkDescribedByReferenceIds(e[i]),e[i].removeAttribute(Ul);Kt&&this._deleteMessagesContainer(),Un.clear()}_createMessageElement(e,i){const r=this._document.createElement("div");pw(r),r.textContent=e,i&&r.setAttribute("role",i),this._createMessagesContainer(),Kt.appendChild(r),Un.set(af(e,i),{messageElement:r,referenceCount:0})}_deleteMessageElement(e){var i;const r=Un.get(e);null===(i=null==r?void 0:r.messageElement)||void 0===i||i.remove(),Un.delete(e)}_createMessagesContainer(){if(!Kt){const e=this._document.getElementById(hw);null==e||e.remove(),Kt=this._document.createElement("div"),Kt.id=hw,Kt.style.visibility="hidden",Kt.classList.add("cdk-visually-hidden"),this._document.body.appendChild(Kt)}}_deleteMessagesContainer(){Kt&&(Kt.remove(),Kt=null)}_removeCdkDescribedByReferenceIds(e){const i=$l(e,"aria-describedby").filter(r=>0!=r.indexOf(fw));e.setAttribute("aria-describedby",i.join(" "))}_addMessageReference(e,i){const r=Un.get(i);(function vL(n,t,e){const i=$l(n,t);i.some(r=>r.trim()==e.trim())||(i.push(e.trim()),n.setAttribute(t,i.join(" ")))})(e,"aria-describedby",r.messageElement.id),e.setAttribute(Ul,""),r.referenceCount++}_removeMessageReference(e,i){const r=Un.get(i);r.referenceCount--,function bL(n,t,e){const r=$l(n,t).filter(s=>s!=e.trim());r.length?n.setAttribute(t,r.join(" ")):n.removeAttribute(t)}(e,"aria-describedby",r.messageElement.id),e.removeAttribute(Ul)}_isElementDescribedByMessage(e,i){const r=$l(e,"aria-describedby"),s=Un.get(i),o=s&&s.messageElement.id;return!!o&&-1!=r.indexOf(o)}_canBeDescribed(e,i){if(!this._isElementNode(e))return!1;if(i&&"object"==typeof i)return!0;const r=null==i?"":`${i}`.trim(),s=e.getAttribute("aria-label");return!(!r||s&&s.trim()===r)}_isElementNode(e){return e.nodeType===this._document.ELEMENT_NODE}}return n.\u0275fac=function(e){return new(e||n)(v(Z))},n.\u0275prov=x({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();function af(n,t){return"string"==typeof n?`${t||""}/${n}`:n}function pw(n){n.id||(n.id=`${fw}-${CL++}`)}class DL extends class EL{constructor(t){this._items=t,this._activeItemIndex=-1,this._activeItem=null,this._wrap=!1,this._letterKeyStream=new de,this._typeaheadSubscription=W.EMPTY,this._vertical=!0,this._allowedModifierKeys=[],this._homeAndEnd=!1,this._skipPredicateFn=e=>e.disabled,this._pressedLetters=[],this.tabOut=new de,this.change=new de,t instanceof Js&&t.changes.subscribe(e=>{if(this._activeItem){const r=e.toArray().indexOf(this._activeItem);r>-1&&r!==this._activeItemIndex&&(this._activeItemIndex=r)}})}skipPredicate(t){return this._skipPredicateFn=t,this}withWrap(t=!0){return this._wrap=t,this}withVerticalOrientation(t=!0){return this._vertical=t,this}withHorizontalOrientation(t){return this._horizontal=t,this}withAllowedModifierKeys(t){return this._allowedModifierKeys=t,this}withTypeAhead(t=200){return this._typeaheadSubscription.unsubscribe(),this._typeaheadSubscription=this._letterKeyStream.pipe(wo(e=>this._pressedLetters.push(e)),jl(t),rr(()=>this._pressedLetters.length>0),Ze(()=>this._pressedLetters.join(""))).subscribe(e=>{const i=this._getItemsArray();for(let r=1;r<i.length+1;r++){const s=(this._activeItemIndex+r)%i.length,o=i[s];if(!this._skipPredicateFn(o)&&0===o.getLabel().toUpperCase().trim().indexOf(e)){this.setActiveItem(s);break}}this._pressedLetters=[]}),this}withHomeAndEnd(t=!0){return this._homeAndEnd=t,this}setActiveItem(t){const e=this._activeItem;this.updateActiveItem(t),this._activeItem!==e&&this.change.next(this._activeItemIndex)}onKeydown(t){const e=t.keyCode,r=["altKey","ctrlKey","metaKey","shiftKey"].every(s=>!t[s]||this._allowedModifierKeys.indexOf(s)>-1);switch(e){case 9:return void this.tabOut.next();case 40:if(this._vertical&&r){this.setNextItemActive();break}return;case 38:if(this._vertical&&r){this.setPreviousItemActive();break}return;case 39:if(this._horizontal&&r){"rtl"===this._horizontal?this.setPreviousItemActive():this.setNextItemActive();break}return;case 37:if(this._horizontal&&r){"rtl"===this._horizontal?this.setNextItemActive():this.setPreviousItemActive();break}return;case 36:if(this._homeAndEnd&&r){this.setFirstItemActive();break}return;case 35:if(this._homeAndEnd&&r){this.setLastItemActive();break}return;default:return void((r||ir(t,"shiftKey"))&&(t.key&&1===t.key.length?this._letterKeyStream.next(t.key.toLocaleUpperCase()):(e>=65&&e<=90||e>=48&&e<=57)&&this._letterKeyStream.next(String.fromCharCode(e))))}this._pressedLetters=[],t.preventDefault()}get activeItemIndex(){return this._activeItemIndex}get activeItem(){return this._activeItem}isTyping(){return this._pressedLetters.length>0}setFirstItemActive(){this._setActiveItemByIndex(0,1)}setLastItemActive(){this._setActiveItemByIndex(this._items.length-1,-1)}setNextItemActive(){this._activeItemIndex<0?this.setFirstItemActive():this._setActiveItemByDelta(1)}setPreviousItemActive(){this._activeItemIndex<0&&this._wrap?this.setLastItemActive():this._setActiveItemByDelta(-1)}updateActiveItem(t){const e=this._getItemsArray(),i="number"==typeof t?t:e.indexOf(t),r=e[i];this._activeItem=null==r?null:r,this._activeItemIndex=i}_setActiveItemByDelta(t){this._wrap?this._setActiveInWrapMode(t):this._setActiveInDefaultMode(t)}_setActiveInWrapMode(t){const e=this._getItemsArray();for(let i=1;i<=e.length;i++){const r=(this._activeItemIndex+t*i+e.length)%e.length;if(!this._skipPredicateFn(e[r]))return void this.setActiveItem(r)}}_setActiveInDefaultMode(t){this._setActiveItemByIndex(this._activeItemIndex+t,t)}_setActiveItemByIndex(t,e){const i=this._getItemsArray();if(i[t]){for(;this._skipPredicateFn(i[t]);)if(!i[t+=e])return;this.setActiveItem(t)}}_getItemsArray(){return this._items instanceof Js?this._items.toArray():this._items}}{setActiveItem(t){this.activeItem&&this.activeItem.setInactiveStyles(),super.setActiveItem(t),this.activeItem&&this.activeItem.setActiveStyles()}}function gw(n){return 0===n.buttons||0===n.offsetX&&0===n.offsetY}function _w(n){const t=n.touches&&n.touches[0]||n.changedTouches&&n.changedTouches[0];return!(!t||-1!==t.identifier||null!=t.radiusX&&1!==t.radiusX||null!=t.radiusY&&1!==t.radiusY)}const xL=new T("cdk-input-modality-detector-options"),kL={ignoreKeys:[18,17,224,91,16]},rs=go({passive:!0,capture:!0});let OL=(()=>{class n{constructor(e,i,r,s){this._platform=e,this._mostRecentTarget=null,this._modality=new $1(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=vi(o))},this._onMousedown=o=>{Date.now()-this._lastTouchMs<650||(this._modality.next(gw(o)?"keyboard":"mouse"),this._mostRecentTarget=vi(o))},this._onTouchstart=o=>{_w(o)?this._modality.next("keyboard"):(this._lastTouchMs=Date.now(),this._modality.next("touch"),this._mostRecentTarget=vi(o))},this._options=Object.assign(Object.assign({},kL),s),this.modalityDetected=this._modality.pipe(lw(1)),this.modalityChanged=this.modalityDetected.pipe(function hL(n,t){return e=>e.lift(new fL(n,t))}()),e.isBrowser&&i.runOutsideAngular(()=>{r.addEventListener("keydown",this._onKeydown,rs),r.addEventListener("mousedown",this._onMousedown,rs),r.addEventListener("touchstart",this._onTouchstart,rs)})}get mostRecentModality(){return this._modality.value}ngOnDestroy(){this._modality.complete(),this._platform.isBrowser&&(document.removeEventListener("keydown",this._onKeydown,rs),document.removeEventListener("mousedown",this._onMousedown,rs),document.removeEventListener("touchstart",this._onTouchstart,rs))}}return n.\u0275fac=function(e){return new(e||n)(v(St),v(le),v(Z),v(xL,8))},n.\u0275prov=x({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const RL=new T("cdk-focus-monitor-default-options"),zl=go({passive:!0,capture:!0});let vw=(()=>{class n{constructor(e,i,r,s,o){this._ngZone=e,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 de,this._rootNodeFocusAndBlurListener=a=>{const l=vi(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(e,i=!1){const r=ii(e);if(!this._platform.isBrowser||1!==r.nodeType)return Mn(null);const s=function PP(n){if(function NP(){if(null==Oh){const n="undefined"!=typeof document?document.head:null;Oh=!(!n||!n.createShadowRoot&&!n.attachShadow)}return Oh}()){const t=n.getRootNode?n.getRootNode():null;if("undefined"!=typeof ShadowRoot&&ShadowRoot&&t instanceof ShadowRoot)return t}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 de,rootNode:s};return this._elementInfo.set(r,a),this._registerGlobalListeners(a),a.subject}stopMonitoring(e){const i=ii(e),r=this._elementInfo.get(i);r&&(r.subject.complete(),this._setClasses(i),this._elementInfo.delete(i),this._removeGlobalListeners(r))}focusVia(e,i,r){const s=ii(e);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((e,i)=>this.stopMonitoring(i))}_getDocument(){return this._document||document}_getWindow(){return this._getDocument().defaultView||window}_getFocusOrigin(e){return this._origin?this._originFromTouchInteraction?this._shouldBeAttributedToTouch(e)?"touch":"program":this._origin:this._windowFocused&&this._lastFocusOrigin?this._lastFocusOrigin:"program"}_shouldBeAttributedToTouch(e){return 1===this._detectionMode||!!(null==e?void 0:e.contains(this._inputModalityDetector._mostRecentTarget))}_setClasses(e,i){e.classList.toggle("cdk-focused",!!i),e.classList.toggle("cdk-touch-focused","touch"===i),e.classList.toggle("cdk-keyboard-focused","keyboard"===i),e.classList.toggle("cdk-mouse-focused","mouse"===i),e.classList.toggle("cdk-program-focused","program"===i)}_setOrigin(e,i=!1){this._ngZone.runOutsideAngular(()=>{this._origin=e,this._originFromTouchInteraction="touch"===e&&i,0===this._detectionMode&&(clearTimeout(this._originTimeoutId),this._originTimeoutId=setTimeout(()=>this._origin=null,this._originFromTouchInteraction?650:1))})}_onFocus(e,i){const r=this._elementInfo.get(i),s=vi(e);!r||!r.checkChildren&&i!==s||this._originChanged(i,this._getFocusOrigin(s),r)}_onBlur(e,i){const r=this._elementInfo.get(i);!r||r.checkChildren&&e.relatedTarget instanceof Node&&i.contains(e.relatedTarget)||(this._setClasses(i),this._emitOrigin(r.subject,null))}_emitOrigin(e,i){this._ngZone.run(()=>e.next(i))}_registerGlobalListeners(e){if(!this._platform.isBrowser)return;const i=e.rootNode,r=this._rootNodeFocusListenerCount.get(i)||0;r||this._ngZone.runOutsideAngular(()=>{i.addEventListener("focus",this._rootNodeFocusAndBlurListener,zl),i.addEventListener("blur",this._rootNodeFocusAndBlurListener,zl)}),this._rootNodeFocusListenerCount.set(i,r+1),1==++this._monitoredElementCount&&(this._ngZone.runOutsideAngular(()=>{this._getWindow().addEventListener("focus",this._windowFocusListener)}),this._inputModalityDetector.modalityDetected.pipe(Ot(this._stopInputModalityDetector)).subscribe(s=>{this._setOrigin(s,!0)}))}_removeGlobalListeners(e){const i=e.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,zl),i.removeEventListener("blur",this._rootNodeFocusAndBlurListener,zl),this._rootNodeFocusListenerCount.delete(i))}--this._monitoredElementCount||(this._getWindow().removeEventListener("focus",this._windowFocusListener),this._stopInputModalityDetector.next(),clearTimeout(this._windowFocusTimeoutId),clearTimeout(this._originTimeoutId))}_originChanged(e,i,r){this._setClasses(e,i),this._emitOrigin(r.subject,i),this._lastFocusOrigin=i}_getClosestElementsInfo(e){const i=[];return this._elementInfo.forEach((r,s)=>{(s===e||r.checkChildren&&s.contains(e))&&i.push([s,r])}),i}}return n.\u0275fac=function(e){return new(e||n)(v(le),v(St),v(OL),v(Z,8),v(RL,8))},n.\u0275prov=x({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const bw="cdk-high-contrast-black-on-white",Cw="cdk-high-contrast-white-on-black",lf="cdk-high-contrast-active";let ww=(()=>{class n{constructor(e,i){this._platform=e,this._document=i}getHighContrastMode(){if(!this._platform.isBrowser)return 0;const e=this._document.createElement("div");e.style.backgroundColor="rgb(1,2,3)",e.style.position="absolute",this._document.body.appendChild(e);const i=this._document.defaultView||window,r=i&&i.getComputedStyle?i.getComputedStyle(e):null,s=(r&&r.backgroundColor||"").replace(/ /g,"");switch(e.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 e=this._document.body.classList;e.remove(lf),e.remove(bw),e.remove(Cw),this._hasCheckedHighContrastMode=!0;const i=this.getHighContrastMode();1===i?(e.add(lf),e.add(bw)):2===i&&(e.add(lf),e.add(Cw))}}}return n.\u0275fac=function(e){return new(e||n)(v(St),v(Z))},n.\u0275prov=x({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),NL=(()=>{class n{constructor(e){e._applyBodyHighContrastModeCssClasses()}}return n.\u0275fac=function(e){return new(e||n)(v(ww))},n.\u0275mod=me({type:n}),n.\u0275inj=ce({imports:[[Dl,uw]]}),n})();function PL(n,t){if(1&n&&Xn(0,"mat-pseudo-checkbox",4),2&n){const e=ue();$("state",e.selected?"checked":"unchecked")("disabled",e.disabled)}}function LL(n,t){if(1&n&&(K(0,"span",5),wt(1),J()),2&n){const e=ue();j(1),Ui("(",e.group.label,")")}}const VL=["*"],HL=new T("mat-sanity-checks",{providedIn:"root",factory:function BL(){return!0}});let Tt=(()=>{class n{constructor(e,i,r){this._sanityChecks=i,this._document=r,this._hasDoneGlobalChecks=!1,e._applyBodyHighContrastModeCssClasses(),this._hasDoneGlobalChecks||(this._hasDoneGlobalChecks=!0)}_checkIsEnabled(e){return!Fh()&&("boolean"==typeof this._sanityChecks?this._sanityChecks:!!this._sanityChecks[e])}}return n.\u0275fac=function(e){return new(e||n)(v(ww),v(HL,8),v(Z))},n.\u0275mod=me({type:n}),n.\u0275inj=ce({imports:[[Co],Co]}),n})();function jL(n){return class extends n{constructor(...t){super(...t),this._disabled=!1}get disabled(){return this._disabled}set disabled(t){this._disabled=cn(t)}}}function cf(n,t){return class extends n{constructor(...e){super(...e),this.defaultColor=t,this.color=t}get color(){return this._color}set color(e){const i=e||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 Dw(n){return class extends n{constructor(...t){super(...t),this._disableRipple=!1}get disableRipple(){return this._disableRipple}set disableRipple(t){this._disableRipple=cn(t)}}}function $L(n){return class extends n{constructor(...t){super(...t),this.stateChanges=new de,this.errorState=!1}updateErrorState(){const t=this.errorState,s=(this.errorStateMatcher||this._defaultErrorStateMatcher).isErrorState(this.ngControl?this.ngControl.control:null,this._parentFormGroup||this._parentForm);s!==t&&(this.errorState=s,this.stateChanges.next())}}}let Sw=(()=>{class n{isErrorState(e,i){return!!(e&&e.invalid&&(e.touched||i&&i.submitted))}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=x({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();class zL{constructor(t,e,i){this._renderer=t,this.element=e,this.config=i,this.state=3}fadeOut(){this._renderer.fadeOutRipple(this)}}const Mw={enterDuration:225,exitDuration:150},uf=go({passive:!0}),Tw=["mousedown","touchstart"],Aw=["mouseup","mouseleave","touchend","touchcancel"];class WL{constructor(t,e,i,r){this._target=t,this._ngZone=e,this._isPointerDown=!1,this._activeRipples=new Set,this._pointerUpEventsRegistered=!1,r.isBrowser&&(this._containerElement=ii(i))}fadeInRipple(t,e,i={}){const r=this._containerRect=this._containerRect||this._containerElement.getBoundingClientRect(),s=Object.assign(Object.assign({},Mw),i.animation);i.centered&&(t=r.left+r.width/2,e=r.top+r.height/2);const o=i.radius||function KL(n,t,e){const i=Math.max(Math.abs(n-e.left),Math.abs(n-e.right)),r=Math.max(Math.abs(t-e.top),Math.abs(t-e.bottom));return Math.sqrt(i*i+r*r)}(t,e,r),a=t-r.left,l=e-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 qL(n){window.getComputedStyle(n).getPropertyValue("opacity")}(u),u.style.transform="scale(1)";const d=new zL(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(t){const e=this._activeRipples.delete(t);if(t===this._mostRecentTransientRipple&&(this._mostRecentTransientRipple=null),this._activeRipples.size||(this._containerRect=null),!e)return;const i=t.element,r=Object.assign(Object.assign({},Mw),t.config.animation);i.style.transitionDuration=`${r.exitDuration}ms`,i.style.opacity="0",t.state=2,this._runTimeoutOutsideZone(()=>{t.state=3,i.remove()},r.exitDuration)}fadeOutAll(){this._activeRipples.forEach(t=>t.fadeOut())}fadeOutAllNonPersistent(){this._activeRipples.forEach(t=>{t.config.persistent||t.fadeOut()})}setupTriggerEvents(t){const e=ii(t);!e||e===this._triggerElement||(this._removeTriggerEvents(),this._triggerElement=e,this._registerEvents(Tw))}handleEvent(t){"mousedown"===t.type?this._onMousedown(t):"touchstart"===t.type?this._onTouchStart(t):this._onPointerUp(),this._pointerUpEventsRegistered||(this._registerEvents(Aw),this._pointerUpEventsRegistered=!0)}_onMousedown(t){const e=gw(t),i=this._lastTouchStartEvent&&Date.now()<this._lastTouchStartEvent+800;!this._target.rippleDisabled&&!e&&!i&&(this._isPointerDown=!0,this.fadeInRipple(t.clientX,t.clientY,this._target.rippleConfig))}_onTouchStart(t){if(!this._target.rippleDisabled&&!_w(t)){this._lastTouchStartEvent=Date.now(),this._isPointerDown=!0;const e=t.changedTouches;for(let i=0;i<e.length;i++)this.fadeInRipple(e[i].clientX,e[i].clientY,this._target.rippleConfig)}}_onPointerUp(){!this._isPointerDown||(this._isPointerDown=!1,this._activeRipples.forEach(t=>{!t.config.persistent&&(1===t.state||t.config.terminateOnPointerUp&&0===t.state)&&t.fadeOut()}))}_runTimeoutOutsideZone(t,e=0){this._ngZone.runOutsideAngular(()=>setTimeout(t,e))}_registerEvents(t){this._ngZone.runOutsideAngular(()=>{t.forEach(e=>{this._triggerElement.addEventListener(e,this,uf)})})}_removeTriggerEvents(){this._triggerElement&&(Tw.forEach(t=>{this._triggerElement.removeEventListener(t,this,uf)}),this._pointerUpEventsRegistered&&Aw.forEach(t=>{this._triggerElement.removeEventListener(t,this,uf)}))}}const YL=new T("mat-ripple-global-options");let df=(()=>{class n{constructor(e,i,r,s,o){this._elementRef=e,this._animationMode=o,this.radius=0,this._disabled=!1,this._isInitialized=!1,this._globalOptions=s||{},this._rippleRenderer=new WL(this,i,e,r)}get disabled(){return this._disabled}set disabled(e){e&&this.fadeOutAllNonPersistent(),this._disabled=e,this._setupTriggerEventsIfEnabled()}get trigger(){return this._trigger||this._elementRef.nativeElement}set trigger(e){this._trigger=e,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(e,i=0,r){return"number"==typeof e?this._rippleRenderer.fadeInRipple(e,i,Object.assign(Object.assign({},this.rippleConfig),r)):this._rippleRenderer.fadeInRipple(0,0,Object.assign(Object.assign({},this.rippleConfig),e))}}return n.\u0275fac=function(e){return new(e||n)(g(Ee),g(le),g(St),g(YL,8),g(ts,8))},n.\u0275dir=k({type:n,selectors:[["","mat-ripple",""],["","matRipple",""]],hostAttrs:[1,"mat-ripple"],hostVars:2,hostBindings:function(e,i){2&e&&mt("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})(),Iw=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=me({type:n}),n.\u0275inj=ce({imports:[[Tt,Dl],Tt]}),n})(),ZL=(()=>{class n{constructor(e){this._animationMode=e,this.state="unchecked",this.disabled=!1}}return n.\u0275fac=function(e){return new(e||n)(g(ts,8))},n.\u0275cmp=An({type:n,selectors:[["mat-pseudo-checkbox"]],hostAttrs:[1,"mat-pseudo-checkbox"],hostVars:8,hostBindings:function(e,i){2&e&&mt("mat-pseudo-checkbox-indeterminate","indeterminate"===i.state)("mat-pseudo-checkbox-checked","checked"===i.state)("mat-pseudo-checkbox-disabled",i.disabled)("_mat-animation-noopable","NoopAnimations"===i._animationMode)},inputs:{state:"state",disabled:"disabled"},decls:0,vars:0,template:function(e,i){},styles:['.mat-pseudo-checkbox{width:16px;height:16px;border:2px solid;border-radius:2px;cursor:pointer;display:inline-block;vertical-align:middle;box-sizing:border-box;position:relative;flex-shrink:0;transition:border-color 90ms cubic-bezier(0, 0, 0.2, 0.1),background-color 90ms cubic-bezier(0, 0, 0.2, 0.1)}.mat-pseudo-checkbox::after{position:absolute;opacity:0;content:"";border-bottom:2px solid currentColor;transition:opacity 90ms cubic-bezier(0, 0, 0.2, 0.1)}.mat-pseudo-checkbox.mat-pseudo-checkbox-checked,.mat-pseudo-checkbox.mat-pseudo-checkbox-indeterminate{border-color:transparent}._mat-animation-noopable.mat-pseudo-checkbox{transition:none;animation:none}._mat-animation-noopable.mat-pseudo-checkbox::after{transition:none}.mat-pseudo-checkbox-disabled{cursor:default}.mat-pseudo-checkbox-indeterminate::after{top:5px;left:1px;width:10px;opacity:1;border-radius:2px}.mat-pseudo-checkbox-checked::after{top:2.4px;left:1px;width:8px;height:3px;border-left:2px solid currentColor;transform:rotate(-45deg);opacity:1;box-sizing:content-box}\n'],encapsulation:2,changeDetection:0}),n})(),XL=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=me({type:n}),n.\u0275inj=ce({imports:[[Tt]]}),n})();const xw=new T("MAT_OPTION_PARENT_COMPONENT"),kw=new T("MatOptgroup");let QL=0;class Ow{constructor(t,e=!1){this.source=t,this.isUserInput=e}}let JL=(()=>{class n{constructor(e,i,r,s){this._element=e,this._changeDetectorRef=i,this._parent=r,this.group=s,this._selected=!1,this._active=!1,this._disabled=!1,this._mostRecentViewValue="",this.id="mat-option-"+QL++,this.onSelectionChange=new Ie,this._stateChanges=new de}get multiple(){return this._parent&&this._parent.multiple}get selected(){return this._selected}get disabled(){return this.group&&this.group.disabled||this._disabled}set disabled(e){this._disabled=cn(e)}get disableRipple(){return!(!this._parent||!this._parent.disableRipple)}get active(){return this._active}get viewValue(){return(this._getHostElement().textContent||"").trim()}select(){this._selected||(this._selected=!0,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent())}deselect(){this._selected&&(this._selected=!1,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent())}focus(e,i){const r=this._getHostElement();"function"==typeof r.focus&&r.focus(i)}setActiveStyles(){this._active||(this._active=!0,this._changeDetectorRef.markForCheck())}setInactiveStyles(){this._active&&(this._active=!1,this._changeDetectorRef.markForCheck())}getLabel(){return this.viewValue}_handleKeydown(e){(13===e.keyCode||32===e.keyCode)&&!ir(e)&&(this._selectViaInteraction(),e.preventDefault())}_selectViaInteraction(){this.disabled||(this._selected=!this.multiple||!this._selected,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent(!0))}_getAriaSelected(){return this.selected||!this.multiple&&null}_getTabIndex(){return this.disabled?"-1":"0"}_getHostElement(){return this._element.nativeElement}ngAfterViewChecked(){if(this._selected){const e=this.viewValue;e!==this._mostRecentViewValue&&(this._mostRecentViewValue=e,this._stateChanges.next())}}ngOnDestroy(){this._stateChanges.complete()}_emitSelectionChangeEvent(e=!1){this.onSelectionChange.emit(new Ow(this,e))}}return n.\u0275fac=function(e){Uu()},n.\u0275dir=k({type:n,inputs:{value:"value",id:"id",disabled:"disabled"},outputs:{onSelectionChange:"onSelectionChange"}}),n})(),Fw=(()=>{class n extends JL{constructor(e,i,r,s){super(e,i,r,s)}}return n.\u0275fac=function(e){return new(e||n)(g(Ee),g(ei),g(xw,8),g(kw,8))},n.\u0275cmp=An({type:n,selectors:[["mat-option"]],hostAttrs:["role","option",1,"mat-option","mat-focus-indicator"],hostVars:12,hostBindings:function(e,i){1&e&&Ae("click",function(){return i._selectViaInteraction()})("keydown",function(s){return i._handleKeydown(s)}),2&e&&(Ca("id",i.id),nt("tabindex",i._getTabIndex())("aria-selected",i._getAriaSelected())("aria-disabled",i.disabled.toString()),mt("mat-selected",i.selected)("mat-option-multiple",i.multiple)("mat-active",i.active)("mat-option-disabled",i.disabled))},exportAs:["matOption"],features:[q],ngContentSelectors:VL,decls:5,vars:4,consts:[["class","mat-option-pseudo-checkbox",3,"state","disabled",4,"ngIf"],[1,"mat-option-text"],["class","cdk-visually-hidden",4,"ngIf"],["mat-ripple","",1,"mat-option-ripple",3,"matRippleTrigger","matRippleDisabled"],[1,"mat-option-pseudo-checkbox",3,"state","disabled"],[1,"cdk-visually-hidden"]],template:function(e,i){1&e&&(Gr(),Te(0,PL,1,2,"mat-pseudo-checkbox",0),K(1,"span",1),Gt(2),J(),Te(3,LL,2,1,"span",2),Xn(4,"div",3)),2&e&&($("ngIf",i.multiple),j(3),$("ngIf",i.group&&i.group._inert),j(1),$("matRippleTrigger",i._getHostElement())("matRippleDisabled",i.disabled||i.disableRipple))},directives:[ZL,Wa,df],styles:[".mat-option{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;line-height:48px;height:48px;padding:0 16px;text-align:left;text-decoration:none;max-width:100%;position:relative;cursor:pointer;outline:none;display:flex;flex-direction:row;max-width:100%;box-sizing:border-box;align-items:center;-webkit-tap-highlight-color:transparent}.mat-option[disabled]{cursor:default}[dir=rtl] .mat-option{text-align:right}.mat-option .mat-icon{margin-right:16px;vertical-align:middle}.mat-option .mat-icon svg{vertical-align:top}[dir=rtl] .mat-option .mat-icon{margin-left:16px;margin-right:0}.mat-option[aria-disabled=true]{-webkit-user-select:none;-moz-user-select:none;user-select:none;cursor:default}.mat-optgroup .mat-option:not(.mat-option-multiple){padding-left:32px}[dir=rtl] .mat-optgroup .mat-option:not(.mat-option-multiple){padding-left:16px;padding-right:32px}.cdk-high-contrast-active .mat-option{margin:0 1px}.cdk-high-contrast-active .mat-option.mat-active{border:solid 1px currentColor;margin:0}.cdk-high-contrast-active .mat-option[aria-disabled=true]{opacity:.5}.mat-option-text{display:inline-block;flex-grow:1;overflow:hidden;text-overflow:ellipsis}.mat-option .mat-option-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-option-pseudo-checkbox{margin-right:8px}[dir=rtl] .mat-option-pseudo-checkbox{margin-left:8px;margin-right:0}\n"],encapsulation:2,changeDetection:0}),n})(),Rw=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=me({type:n}),n.\u0275inj=ce({imports:[[Iw,ao,Tt,XL]]}),n})();function ss(n,t,e,i){return Q(e)&&(i=e,e=void 0),i?ss(n,t,e).pipe(Ze(r=>se(r)?i(...r):i(r))):new Ce(r=>{Nw(n,t,function s(o){r.next(arguments.length>1?Array.prototype.slice.call(arguments):o)},r,e)})}function Nw(n,t,e,i,r){let s;if(function rV(n){return n&&"function"==typeof n.addEventListener&&"function"==typeof n.removeEventListener}(n)){const o=n;n.addEventListener(t,e,r),s=()=>o.removeEventListener(t,e,r)}else if(function iV(n){return n&&"function"==typeof n.on&&"function"==typeof n.off}(n)){const o=n;n.on(t,e),s=()=>o.off(t,e)}else if(function nV(n){return n&&"function"==typeof n.addListener&&"function"==typeof n.removeListener}(n)){const o=n;n.addListener(t,e),s=()=>o.removeListener(t,e)}else{if(!n||!n.length)throw new TypeError("Invalid event target");for(let o=0,a=n.length;o<a;o++)Nw(n[o],t,e,i,r)}i.add(s)}function hf(...n){return function sV(){return Bf(1)}()(Mn(...n))}function Do(...n){const t=n[n.length-1];return ur(t)?(n.pop(),e=>hf(n,e,t)):e=>hf(n,e)}const oV=(()=>{function n(){return Error.call(this),this.message="argument out of range",this.name="ArgumentOutOfRangeError",this}return n.prototype=Object.create(Error.prototype),n})();function Ei(n){return t=>0===n?eh():t.lift(new aV(n))}class aV{constructor(t){if(this.total=t,this.total<0)throw new oV}call(t,e){return e.subscribe(new lV(t,this.total))}}class lV extends ye{constructor(t,e){super(t),this.total=e,this.count=0}_next(t){const e=this.total,i=++this.count;i<=e&&(this.destination.next(t),i===e&&(this.destination.complete(),this.unsubscribe()))}}const cV=["connectionContainer"],uV=["inputContainer"],dV=["label"];function hV(n,t){1&n&&(Hi(0),K(1,"div",14),Xn(2,"div",15)(3,"div",16)(4,"div",17),J(),K(5,"div",18),Xn(6,"div",15)(7,"div",16)(8,"div",17),J(),ji())}function fV(n,t){if(1&n){const e=$i();K(0,"div",19),Ae("cdkObserveContent",function(){return gn(e),ue().updateOutlineGap()}),Gt(1,1),J()}2&n&&$("cdkObserveContentDisabled","outline"!=ue().appearance)}function pV(n,t){if(1&n&&(Hi(0),Gt(1,2),K(2,"span"),wt(3),J(),ji()),2&n){const e=ue(2);j(3),wn(e._control.placeholder)}}function mV(n,t){1&n&&Gt(0,3,["*ngSwitchCase","true"])}function gV(n,t){1&n&&(K(0,"span",23),wt(1," *"),J())}function _V(n,t){if(1&n){const e=$i();K(0,"label",20,21),Ae("cdkObserveContent",function(){return gn(e),ue().updateOutlineGap()}),Te(2,pV,4,1,"ng-container",12),Te(3,mV,1,0,"ng-content",12),Te(4,gV,2,0,"span",22),J()}if(2&n){const e=ue();mt("mat-empty",e._control.empty&&!e._shouldAlwaysFloat())("mat-form-field-empty",e._control.empty&&!e._shouldAlwaysFloat())("mat-accent","accent"==e.color)("mat-warn","warn"==e.color),$("cdkObserveContentDisabled","outline"!=e.appearance)("id",e._labelId)("ngSwitch",e._hasLabel()),nt("for",e._control.id)("aria-owns",e._control.id),j(2),$("ngSwitchCase",!1),j(1),$("ngSwitchCase",!0),j(1),$("ngIf",!e.hideRequiredMarker&&e._control.required&&!e._control.disabled)}}function yV(n,t){1&n&&(K(0,"div",24),Gt(1,4),J())}function vV(n,t){if(1&n&&(K(0,"div",25),Xn(1,"span",26),J()),2&n){const e=ue();j(1),mt("mat-accent","accent"==e.color)("mat-warn","warn"==e.color)}}function bV(n,t){1&n&&(K(0,"div"),Gt(1,5),J()),2&n&&$("@transitionMessages",ue()._subscriptAnimationState)}function CV(n,t){if(1&n&&(K(0,"div",30),wt(1),J()),2&n){const e=ue(2);$("id",e._hintLabelId),j(1),wn(e.hintLabel)}}function wV(n,t){if(1&n&&(K(0,"div",27),Te(1,CV,2,2,"div",28),Gt(2,6),Xn(3,"div",29),Gt(4,7),J()),2&n){const e=ue();$("@transitionMessages",e._subscriptAnimationState),j(1),$("ngIf",e.hintLabel)}}const EV=["*",[["","matPrefix",""]],[["mat-placeholder"]],[["mat-label"]],[["","matSuffix",""]],[["mat-error"]],[["mat-hint",3,"align","end"]],[["mat-hint","align","end"]]],DV=["*","[matPrefix]","mat-placeholder","mat-label","[matSuffix]","mat-error","mat-hint:not([align='end'])","mat-hint[align='end']"];let SV=0;const Pw=new T("MatError");let MV=(()=>{class n{constructor(e,i){this.id="mat-error-"+SV++,e||i.nativeElement.setAttribute("aria-live","polite")}}return n.\u0275fac=function(e){return new(e||n)(Ds("aria-live"),g(Ee))},n.\u0275dir=k({type:n,selectors:[["mat-error"]],hostAttrs:["aria-atomic","true",1,"mat-error"],hostVars:1,hostBindings:function(e,i){2&e&&nt("id",i.id)},inputs:{id:"id"},features:[oe([{provide:Pw,useExisting:n}])]}),n})();const TV={transitionMessages:ub("transitionMessages",[ih("enter",jn({opacity:1,transform:"translateY(0%)"})),rh("void => enter",[jn({opacity:0,transform:"translateY(-5px)"}),nh("300ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])};let ff=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=k({type:n}),n})(),AV=0;const Lw=new T("MatHint");let IV=(()=>{class n{constructor(){this.align="start",this.id="mat-hint-"+AV++}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=k({type:n,selectors:[["mat-hint"]],hostAttrs:[1,"mat-hint"],hostVars:4,hostBindings:function(e,i){2&e&&(nt("id",i.id)("align",null),mt("mat-form-field-hint-end","end"===i.align))},inputs:{align:"align",id:"id"},features:[oe([{provide:Lw,useExisting:n}])]}),n})(),pf=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=k({type:n,selectors:[["mat-label"]]}),n})(),xV=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=k({type:n,selectors:[["mat-placeholder"]]}),n})();const kV=new T("MatPrefix"),Vw=new T("MatSuffix");let OV=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=k({type:n,selectors:[["","matSuffix",""]],features:[oe([{provide:Vw,useExisting:n}])]}),n})(),Bw=0;const RV=cf(class{constructor(n){this._elementRef=n}},"primary"),NV=new T("MAT_FORM_FIELD_DEFAULT_OPTIONS"),mf=new T("MatFormField");let PV=(()=>{class n extends RV{constructor(e,i,r,s,o,a,l){super(e),this._changeDetectorRef=i,this._dir=r,this._defaults=s,this._platform=o,this._ngZone=a,this._outlineGapCalculationNeededImmediately=!1,this._outlineGapCalculationNeededOnStable=!1,this._destroyed=new de,this._showAlwaysAnimate=!1,this._subscriptAnimationState="",this._hintLabel="",this._hintLabelId="mat-hint-"+Bw++,this._labelId="mat-form-field-label-"+Bw++,this.floatLabel=this._getDefaultFloatLabelState(),this._animationsEnabled="NoopAnimations"!==l,this.appearance=s&&s.appearance?s.appearance:"legacy",this._hideRequiredMarker=!(!s||null==s.hideRequiredMarker)&&s.hideRequiredMarker}get appearance(){return this._appearance}set appearance(e){const i=this._appearance;this._appearance=e||this._defaults&&this._defaults.appearance||"legacy","outline"===this._appearance&&i!==e&&(this._outlineGapCalculationNeededOnStable=!0)}get hideRequiredMarker(){return this._hideRequiredMarker}set hideRequiredMarker(e){this._hideRequiredMarker=cn(e)}_shouldAlwaysFloat(){return"always"===this.floatLabel&&!this._showAlwaysAnimate}_canLabelFloat(){return"never"!==this.floatLabel}get hintLabel(){return this._hintLabel}set hintLabel(e){this._hintLabel=e,this._processHints()}get floatLabel(){return"legacy"!==this.appearance&&"never"===this._floatLabel?"auto":this._floatLabel}set floatLabel(e){e!==this._floatLabel&&(this._floatLabel=e||this._getDefaultFloatLabelState(),this._changeDetectorRef.markForCheck())}get _control(){return this._explicitFormFieldControl||this._controlNonStatic||this._controlStatic}set _control(e){this._explicitFormFieldControl=e}getLabelId(){return this._hasFloatingLabel()?this._labelId:null}getConnectedOverlayOrigin(){return this._connectionContainerRef||this._elementRef}ngAfterContentInit(){this._validateControlChild();const e=this._control;e.controlType&&this._elementRef.nativeElement.classList.add(`mat-form-field-type-${e.controlType}`),e.stateChanges.pipe(Do(null)).subscribe(()=>{this._validatePlaceholders(),this._syncDescribedByIds(),this._changeDetectorRef.markForCheck()}),e.ngControl&&e.ngControl.valueChanges&&e.ngControl.valueChanges.pipe(Ot(this._destroyed)).subscribe(()=>this._changeDetectorRef.markForCheck()),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.pipe(Ot(this._destroyed)).subscribe(()=>{this._outlineGapCalculationNeededOnStable&&this.updateOutlineGap()})}),si(this._prefixChildren.changes,this._suffixChildren.changes).subscribe(()=>{this._outlineGapCalculationNeededOnStable=!0,this._changeDetectorRef.markForCheck()}),this._hintChildren.changes.pipe(Do(null)).subscribe(()=>{this._processHints(),this._changeDetectorRef.markForCheck()}),this._errorChildren.changes.pipe(Do(null)).subscribe(()=>{this._syncDescribedByIds(),this._changeDetectorRef.markForCheck()}),this._dir&&this._dir.change.pipe(Ot(this._destroyed)).subscribe(()=>{"function"==typeof requestAnimationFrame?this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>this.updateOutlineGap())}):this.updateOutlineGap()})}ngAfterContentChecked(){this._validateControlChild(),this._outlineGapCalculationNeededImmediately&&this.updateOutlineGap()}ngAfterViewInit(){this._subscriptAnimationState="enter",this._changeDetectorRef.detectChanges()}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete()}_shouldForward(e){const i=this._control?this._control.ngControl:null;return i&&i[e]}_hasPlaceholder(){return!!(this._control&&this._control.placeholder||this._placeholderChild)}_hasLabel(){return!(!this._labelChildNonStatic&&!this._labelChildStatic)}_shouldLabelFloat(){return this._canLabelFloat()&&(this._control&&this._control.shouldLabelFloat||this._shouldAlwaysFloat())}_hideControlPlaceholder(){return"legacy"===this.appearance&&!this._hasLabel()||this._hasLabel()&&!this._shouldLabelFloat()}_hasFloatingLabel(){return this._hasLabel()||"legacy"===this.appearance&&this._hasPlaceholder()}_getDisplayedMessages(){return this._errorChildren&&this._errorChildren.length>0&&this._control.errorState?"error":"hint"}_animateAndLockLabel(){this._hasFloatingLabel()&&this._canLabelFloat()&&(this._animationsEnabled&&this._label&&(this._showAlwaysAnimate=!0,ss(this._label.nativeElement,"transitionend").pipe(Ei(1)).subscribe(()=>{this._showAlwaysAnimate=!1})),this.floatLabel="always",this._changeDetectorRef.markForCheck())}_validatePlaceholders(){}_processHints(){this._validateHints(),this._syncDescribedByIds()}_validateHints(){}_getDefaultFloatLabelState(){return this._defaults&&this._defaults.floatLabel||"auto"}_syncDescribedByIds(){if(this._control){let e=[];if(this._control.userAriaDescribedBy&&"string"==typeof this._control.userAriaDescribedBy&&e.push(...this._control.userAriaDescribedBy.split(" ")),"hint"===this._getDisplayedMessages()){const i=this._hintChildren?this._hintChildren.find(s=>"start"===s.align):null,r=this._hintChildren?this._hintChildren.find(s=>"end"===s.align):null;i?e.push(i.id):this._hintLabel&&e.push(this._hintLabelId),r&&e.push(r.id)}else this._errorChildren&&e.push(...this._errorChildren.map(i=>i.id));this._control.setDescribedByIds(e)}}_validateControlChild(){}updateOutlineGap(){const e=this._label?this._label.nativeElement:null,i=this._connectionContainerRef.nativeElement,r=".mat-form-field-outline-start",s=".mat-form-field-outline-gap";if("outline"!==this.appearance||!this._platform.isBrowser)return;if(!e||!e.children.length||!e.textContent.trim()){const u=i.querySelectorAll(`${r}, ${s}`);for(let d=0;d<u.length;d++)u[d].style.width="0";return}if(!this._isAttachedToDOM())return void(this._outlineGapCalculationNeededImmediately=!0);let o=0,a=0;const l=i.querySelectorAll(r),c=i.querySelectorAll(s);if(this._label&&this._label.nativeElement.children.length){const u=i.getBoundingClientRect();if(0===u.width&&0===u.height)return this._outlineGapCalculationNeededOnStable=!0,void(this._outlineGapCalculationNeededImmediately=!1);const d=this._getStartEnd(u),h=e.children,f=this._getStartEnd(h[0].getBoundingClientRect());let p=0;for(let m=0;m<h.length;m++)p+=h[m].offsetWidth;o=Math.abs(f-d)-5,a=p>0?.75*p+10:0}for(let u=0;u<l.length;u++)l[u].style.width=`${o}px`;for(let u=0;u<c.length;u++)c[u].style.width=`${a}px`;this._outlineGapCalculationNeededOnStable=this._outlineGapCalculationNeededImmediately=!1}_getStartEnd(e){return this._dir&&"rtl"===this._dir.value?e.right:e.left}_isAttachedToDOM(){const e=this._elementRef.nativeElement;if(e.getRootNode){const i=e.getRootNode();return i&&i!==e}return document.documentElement.contains(e)}}return n.\u0275fac=function(e){return new(e||n)(g(Ee),g(ei),g(Bl,8),g(NV,8),g(St),g(le),g(ts,8))},n.\u0275cmp=An({type:n,selectors:[["mat-form-field"]],contentQueries:function(e,i,r){if(1&e&&(rn(r,ff,5),rn(r,ff,7),rn(r,pf,5),rn(r,pf,7),rn(r,xV,5),rn(r,Pw,5),rn(r,Lw,5),rn(r,kV,5),rn(r,Vw,5)),2&e){let s;Ue(s=ze())&&(i._controlNonStatic=s.first),Ue(s=ze())&&(i._controlStatic=s.first),Ue(s=ze())&&(i._labelChildNonStatic=s.first),Ue(s=ze())&&(i._labelChildStatic=s.first),Ue(s=ze())&&(i._placeholderChild=s.first),Ue(s=ze())&&(i._errorChildren=s),Ue(s=ze())&&(i._hintChildren=s),Ue(s=ze())&&(i._prefixChildren=s),Ue(s=ze())&&(i._suffixChildren=s)}},viewQuery:function(e,i){if(1&e&&(Qn(cV,7),Qn(uV,5),Qn(dV,5)),2&e){let r;Ue(r=ze())&&(i._connectionContainerRef=r.first),Ue(r=ze())&&(i._inputContainerRef=r.first),Ue(r=ze())&&(i._label=r.first)}},hostAttrs:[1,"mat-form-field"],hostVars:40,hostBindings:function(e,i){2&e&&mt("mat-form-field-appearance-standard","standard"==i.appearance)("mat-form-field-appearance-fill","fill"==i.appearance)("mat-form-field-appearance-outline","outline"==i.appearance)("mat-form-field-appearance-legacy","legacy"==i.appearance)("mat-form-field-invalid",i._control.errorState)("mat-form-field-can-float",i._canLabelFloat())("mat-form-field-should-float",i._shouldLabelFloat())("mat-form-field-has-label",i._hasFloatingLabel())("mat-form-field-hide-placeholder",i._hideControlPlaceholder())("mat-form-field-disabled",i._control.disabled)("mat-form-field-autofilled",i._control.autofilled)("mat-focused",i._control.focused)("ng-untouched",i._shouldForward("untouched"))("ng-touched",i._shouldForward("touched"))("ng-pristine",i._shouldForward("pristine"))("ng-dirty",i._shouldForward("dirty"))("ng-valid",i._shouldForward("valid"))("ng-invalid",i._shouldForward("invalid"))("ng-pending",i._shouldForward("pending"))("_mat-animation-noopable",!i._animationsEnabled)},inputs:{color:"color",appearance:"appearance",hideRequiredMarker:"hideRequiredMarker",hintLabel:"hintLabel",floatLabel:"floatLabel"},exportAs:["matFormField"],features:[oe([{provide:mf,useExisting:n}]),q],ngContentSelectors:DV,decls:15,vars:8,consts:[[1,"mat-form-field-wrapper"],[1,"mat-form-field-flex",3,"click"],["connectionContainer",""],[4,"ngIf"],["class","mat-form-field-prefix",3,"cdkObserveContentDisabled","cdkObserveContent",4,"ngIf"],[1,"mat-form-field-infix"],["inputContainer",""],[1,"mat-form-field-label-wrapper"],["class","mat-form-field-label",3,"cdkObserveContentDisabled","id","mat-empty","mat-form-field-empty","mat-accent","mat-warn","ngSwitch","cdkObserveContent",4,"ngIf"],["class","mat-form-field-suffix",4,"ngIf"],["class","mat-form-field-underline",4,"ngIf"],[1,"mat-form-field-subscript-wrapper",3,"ngSwitch"],[4,"ngSwitchCase"],["class","mat-form-field-hint-wrapper",4,"ngSwitchCase"],[1,"mat-form-field-outline"],[1,"mat-form-field-outline-start"],[1,"mat-form-field-outline-gap"],[1,"mat-form-field-outline-end"],[1,"mat-form-field-outline","mat-form-field-outline-thick"],[1,"mat-form-field-prefix",3,"cdkObserveContentDisabled","cdkObserveContent"],[1,"mat-form-field-label",3,"cdkObserveContentDisabled","id","ngSwitch","cdkObserveContent"],["label",""],["class","mat-placeholder-required mat-form-field-required-marker","aria-hidden","true",4,"ngIf"],["aria-hidden","true",1,"mat-placeholder-required","mat-form-field-required-marker"],[1,"mat-form-field-suffix"],[1,"mat-form-field-underline"],[1,"mat-form-field-ripple"],[1,"mat-form-field-hint-wrapper"],["class","mat-hint",3,"id",4,"ngIf"],[1,"mat-form-field-hint-spacer"],[1,"mat-hint",3,"id"]],template:function(e,i){1&e&&(Gr(EV),K(0,"div",0)(1,"div",1,2),Ae("click",function(s){return i._control.onContainerClick&&i._control.onContainerClick(s)}),Te(3,hV,9,0,"ng-container",3),Te(4,fV,2,1,"div",4),K(5,"div",5,6),Gt(7),K(8,"span",7),Te(9,_V,5,16,"label",8),J()(),Te(10,yV,2,0,"div",9),J(),Te(11,vV,2,4,"div",10),K(12,"div",11),Te(13,bV,2,1,"div",12),Te(14,wV,5,2,"div",13),J()()),2&e&&(j(3),$("ngIf","outline"==i.appearance),j(1),$("ngIf",i._prefixChildren.length),j(5),$("ngIf",i._hasFloatingLabel()),j(1),$("ngIf",i._suffixChildren.length),j(1),$("ngIf","outline"!=i.appearance),j(1),$("ngSwitch",i._getDisplayedMessages()),j(1),$("ngSwitchCase","error"),j(1),$("ngSwitchCase","hint"))},directives:[Wa,yL,Ya,Hv],styles:[".mat-form-field{display:inline-block;position:relative;text-align:left}[dir=rtl] .mat-form-field{text-align:right}.mat-form-field-wrapper{position:relative}.mat-form-field-flex{display:inline-flex;align-items:baseline;box-sizing:border-box;width:100%}.mat-form-field-prefix,.mat-form-field-suffix{white-space:nowrap;flex:none;position:relative}.mat-form-field-infix{display:block;position:relative;flex:auto;min-width:0;width:180px}.cdk-high-contrast-active .mat-form-field-infix{border-image:linear-gradient(transparent, transparent)}.mat-form-field-label-wrapper{position:absolute;left:0;box-sizing:content-box;width:100%;height:100%;overflow:hidden;pointer-events:none}[dir=rtl] .mat-form-field-label-wrapper{left:auto;right:0}.mat-form-field-label{position:absolute;left:0;font:inherit;pointer-events:none;width:100%;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;transform-origin:0 0;transition:transform 400ms cubic-bezier(0.25, 0.8, 0.25, 1),color 400ms cubic-bezier(0.25, 0.8, 0.25, 1),width 400ms cubic-bezier(0.25, 0.8, 0.25, 1);display:none}[dir=rtl] .mat-form-field-label{transform-origin:100% 0;left:auto;right:0}.mat-form-field-empty.mat-form-field-label,.mat-form-field-can-float.mat-form-field-should-float .mat-form-field-label{display:block}.mat-form-field-autofill-control:-webkit-autofill+.mat-form-field-label-wrapper .mat-form-field-label{display:none}.mat-form-field-can-float .mat-form-field-autofill-control:-webkit-autofill+.mat-form-field-label-wrapper .mat-form-field-label{display:block;transition:none}.mat-input-server:focus+.mat-form-field-label-wrapper .mat-form-field-label,.mat-input-server[placeholder]:not(:placeholder-shown)+.mat-form-field-label-wrapper .mat-form-field-label{display:none}.mat-form-field-can-float .mat-input-server:focus+.mat-form-field-label-wrapper .mat-form-field-label,.mat-form-field-can-float .mat-input-server[placeholder]:not(:placeholder-shown)+.mat-form-field-label-wrapper .mat-form-field-label{display:block}.mat-form-field-label:not(.mat-form-field-empty){transition:none}.mat-form-field-underline{position:absolute;width:100%;pointer-events:none;transform:scale3d(1, 1.0001, 1)}.mat-form-field-ripple{position:absolute;left:0;width:100%;transform-origin:50%;transform:scaleX(0.5);opacity:0;transition:background-color 300ms cubic-bezier(0.55, 0, 0.55, 0.2)}.mat-form-field.mat-focused .mat-form-field-ripple,.mat-form-field.mat-form-field-invalid .mat-form-field-ripple{opacity:1;transform:none;transition:transform 300ms cubic-bezier(0.25, 0.8, 0.25, 1),opacity 100ms cubic-bezier(0.25, 0.8, 0.25, 1),background-color 300ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-form-field-subscript-wrapper{position:absolute;box-sizing:border-box;width:100%;overflow:hidden}.mat-form-field-subscript-wrapper .mat-icon,.mat-form-field-label-wrapper .mat-icon{width:1em;height:1em;font-size:inherit;vertical-align:baseline}.mat-form-field-hint-wrapper{display:flex}.mat-form-field-hint-spacer{flex:1 0 1em}.mat-error{display:block}.mat-form-field-control-wrapper{position:relative}.mat-form-field-hint-end{order:1}.mat-form-field._mat-animation-noopable .mat-form-field-label,.mat-form-field._mat-animation-noopable .mat-form-field-ripple{transition:none}\n",'.mat-form-field-appearance-fill .mat-form-field-flex{border-radius:4px 4px 0 0;padding:.75em .75em 0 .75em}.cdk-high-contrast-active .mat-form-field-appearance-fill .mat-form-field-flex{outline:solid 1px}.cdk-high-contrast-active .mat-form-field-appearance-fill.mat-focused .mat-form-field-flex{outline:dashed 3px}.mat-form-field-appearance-fill .mat-form-field-underline::before{content:"";display:block;position:absolute;bottom:0;height:1px;width:100%}.mat-form-field-appearance-fill .mat-form-field-ripple{bottom:0;height:2px}.cdk-high-contrast-active .mat-form-field-appearance-fill .mat-form-field-ripple{height:0}.mat-form-field-appearance-fill:not(.mat-form-field-disabled) .mat-form-field-flex:hover~.mat-form-field-underline .mat-form-field-ripple{opacity:1;transform:none;transition:opacity 600ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-form-field-appearance-fill._mat-animation-noopable:not(.mat-form-field-disabled) .mat-form-field-flex:hover~.mat-form-field-underline .mat-form-field-ripple{transition:none}.mat-form-field-appearance-fill .mat-form-field-subscript-wrapper{padding:0 1em}\n','.mat-input-element{font:inherit;background:transparent;color:currentColor;border:none;outline:none;padding:0;margin:0;width:100%;max-width:100%;vertical-align:bottom;text-align:inherit;box-sizing:content-box}.mat-input-element:-moz-ui-invalid{box-shadow:none}.mat-input-element,.mat-input-element::-webkit-search-cancel-button,.mat-input-element::-webkit-search-decoration,.mat-input-element::-webkit-search-results-button,.mat-input-element::-webkit-search-results-decoration{-webkit-appearance:none}.mat-input-element::-webkit-contacts-auto-fill-button,.mat-input-element::-webkit-caps-lock-indicator,.mat-input-element:not([type=password])::-webkit-credentials-auto-fill-button{visibility:hidden}.mat-input-element[type=date],.mat-input-element[type=datetime],.mat-input-element[type=datetime-local],.mat-input-element[type=month],.mat-input-element[type=week],.mat-input-element[type=time]{line-height:1}.mat-input-element[type=date]::after,.mat-input-element[type=datetime]::after,.mat-input-element[type=datetime-local]::after,.mat-input-element[type=month]::after,.mat-input-element[type=week]::after,.mat-input-element[type=time]::after{content:" ";white-space:pre;width:1px}.mat-input-element::-webkit-inner-spin-button,.mat-input-element::-webkit-calendar-picker-indicator,.mat-input-element::-webkit-clear-button{font-size:.75em}.mat-input-element::placeholder{-webkit-user-select:none;-moz-user-select:none;user-select:none;transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-input-element::-moz-placeholder{-webkit-user-select:none;-moz-user-select:none;user-select:none;transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-input-element::-webkit-input-placeholder{-webkit-user-select:none;-moz-user-select:none;user-select:none;transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-input-element:-ms-input-placeholder{-webkit-user-select:none;-moz-user-select:none;user-select:none;transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-form-field-hide-placeholder .mat-input-element::placeholder{color:transparent !important;-webkit-text-fill-color:transparent;transition:none}.cdk-high-contrast-active .mat-form-field-hide-placeholder .mat-input-element::placeholder{opacity:0}.mat-form-field-hide-placeholder .mat-input-element::-moz-placeholder{color:transparent !important;-webkit-text-fill-color:transparent;transition:none}.cdk-high-contrast-active .mat-form-field-hide-placeholder .mat-input-element::-moz-placeholder{opacity:0}.mat-form-field-hide-placeholder .mat-input-element::-webkit-input-placeholder{color:transparent !important;-webkit-text-fill-color:transparent;transition:none}.cdk-high-contrast-active .mat-form-field-hide-placeholder .mat-input-element::-webkit-input-placeholder{opacity:0}.mat-form-field-hide-placeholder .mat-input-element:-ms-input-placeholder{color:transparent !important;-webkit-text-fill-color:transparent;transition:none}.cdk-high-contrast-active .mat-form-field-hide-placeholder .mat-input-element:-ms-input-placeholder{opacity:0}textarea.mat-input-element{resize:vertical;overflow:auto}textarea.mat-input-element.cdk-textarea-autosize{resize:none}textarea.mat-input-element{padding:2px 0;margin:-2px 0}select.mat-input-element{-moz-appearance:none;-webkit-appearance:none;position:relative;background-color:transparent;display:inline-flex;box-sizing:border-box;padding-top:1em;top:-1em;margin-bottom:-1em}select.mat-input-element::-moz-focus-inner{border:0}select.mat-input-element:not(:disabled){cursor:pointer}.mat-form-field-type-mat-native-select .mat-form-field-infix::after{content:"";width:0;height:0;border-left:5px solid transparent;border-right:5px solid transparent;border-top:5px solid;position:absolute;top:50%;right:0;margin-top:-2.5px;pointer-events:none}[dir=rtl] .mat-form-field-type-mat-native-select .mat-form-field-infix::after{right:auto;left:0}.mat-form-field-type-mat-native-select .mat-input-element{padding-right:15px}[dir=rtl] .mat-form-field-type-mat-native-select .mat-input-element{padding-right:0;padding-left:15px}.mat-form-field-type-mat-native-select .mat-form-field-label-wrapper{max-width:calc(100% - 10px)}.mat-form-field-type-mat-native-select.mat-form-field-appearance-outline .mat-form-field-infix::after{margin-top:-5px}.mat-form-field-type-mat-native-select.mat-form-field-appearance-fill .mat-form-field-infix::after{margin-top:-10px}\n',".mat-form-field-appearance-legacy .mat-form-field-label{transform:perspective(100px)}.mat-form-field-appearance-legacy .mat-form-field-prefix .mat-icon,.mat-form-field-appearance-legacy .mat-form-field-suffix .mat-icon{width:1em}.mat-form-field-appearance-legacy .mat-form-field-prefix .mat-icon-button,.mat-form-field-appearance-legacy .mat-form-field-suffix .mat-icon-button{font:inherit;vertical-align:baseline}.mat-form-field-appearance-legacy .mat-form-field-prefix .mat-icon-button .mat-icon,.mat-form-field-appearance-legacy .mat-form-field-suffix .mat-icon-button .mat-icon{font-size:inherit}.mat-form-field-appearance-legacy .mat-form-field-underline{height:1px}.cdk-high-contrast-active .mat-form-field-appearance-legacy .mat-form-field-underline{height:0;border-top:solid 1px}.mat-form-field-appearance-legacy .mat-form-field-ripple{top:0;height:2px;overflow:hidden}.cdk-high-contrast-active .mat-form-field-appearance-legacy .mat-form-field-ripple{height:0;border-top:solid 2px}.mat-form-field-appearance-legacy.mat-form-field-disabled .mat-form-field-underline{background-position:0;background-color:transparent}.cdk-high-contrast-active .mat-form-field-appearance-legacy.mat-form-field-disabled .mat-form-field-underline{border-top-style:dotted;border-top-width:2px}.mat-form-field-appearance-legacy.mat-form-field-invalid:not(.mat-focused) .mat-form-field-ripple{height:1px}\n",".mat-form-field-appearance-outline .mat-form-field-wrapper{margin:.25em 0}.mat-form-field-appearance-outline .mat-form-field-flex{padding:0 .75em 0 .75em;margin-top:-0.25em;position:relative}.mat-form-field-appearance-outline .mat-form-field-prefix,.mat-form-field-appearance-outline .mat-form-field-suffix{top:.25em}.mat-form-field-appearance-outline .mat-form-field-outline{display:flex;position:absolute;top:.25em;left:0;right:0;bottom:0;pointer-events:none}.mat-form-field-appearance-outline .mat-form-field-outline-start,.mat-form-field-appearance-outline .mat-form-field-outline-end{border:1px solid currentColor;min-width:5px}.mat-form-field-appearance-outline .mat-form-field-outline-start{border-radius:5px 0 0 5px;border-right-style:none}[dir=rtl] .mat-form-field-appearance-outline .mat-form-field-outline-start{border-right-style:solid;border-left-style:none;border-radius:0 5px 5px 0}.mat-form-field-appearance-outline .mat-form-field-outline-end{border-radius:0 5px 5px 0;border-left-style:none;flex-grow:1}[dir=rtl] .mat-form-field-appearance-outline .mat-form-field-outline-end{border-left-style:solid;border-right-style:none;border-radius:5px 0 0 5px}.mat-form-field-appearance-outline .mat-form-field-outline-gap{border-radius:.000001px;border:1px solid currentColor;border-left-style:none;border-right-style:none}.mat-form-field-appearance-outline.mat-form-field-can-float.mat-form-field-should-float .mat-form-field-outline-gap{border-top-color:transparent}.mat-form-field-appearance-outline .mat-form-field-outline-thick{opacity:0}.mat-form-field-appearance-outline .mat-form-field-outline-thick .mat-form-field-outline-start,.mat-form-field-appearance-outline .mat-form-field-outline-thick .mat-form-field-outline-end,.mat-form-field-appearance-outline .mat-form-field-outline-thick .mat-form-field-outline-gap{border-width:2px}.mat-form-field-appearance-outline.mat-focused .mat-form-field-outline,.mat-form-field-appearance-outline.mat-form-field-invalid .mat-form-field-outline{opacity:0;transition:opacity 100ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-form-field-appearance-outline.mat-focused .mat-form-field-outline-thick,.mat-form-field-appearance-outline.mat-form-field-invalid .mat-form-field-outline-thick{opacity:1}.cdk-high-contrast-active .mat-form-field-appearance-outline.mat-focused .mat-form-field-outline-thick{border:3px dashed}.mat-form-field-appearance-outline:not(.mat-form-field-disabled) .mat-form-field-flex:hover .mat-form-field-outline{opacity:0;transition:opacity 600ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-form-field-appearance-outline:not(.mat-form-field-disabled) .mat-form-field-flex:hover .mat-form-field-outline-thick{opacity:1}.mat-form-field-appearance-outline .mat-form-field-subscript-wrapper{padding:0 1em}.mat-form-field-appearance-outline._mat-animation-noopable:not(.mat-form-field-disabled) .mat-form-field-flex:hover~.mat-form-field-outline,.mat-form-field-appearance-outline._mat-animation-noopable .mat-form-field-outline,.mat-form-field-appearance-outline._mat-animation-noopable .mat-form-field-outline-start,.mat-form-field-appearance-outline._mat-animation-noopable .mat-form-field-outline-end,.mat-form-field-appearance-outline._mat-animation-noopable .mat-form-field-outline-gap{transition:none}\n",".mat-form-field-appearance-standard .mat-form-field-flex{padding-top:.75em}.mat-form-field-appearance-standard .mat-form-field-underline{height:1px}.cdk-high-contrast-active .mat-form-field-appearance-standard .mat-form-field-underline{height:0;border-top:solid 1px}.mat-form-field-appearance-standard .mat-form-field-ripple{bottom:0;height:2px}.cdk-high-contrast-active .mat-form-field-appearance-standard .mat-form-field-ripple{height:0;border-top:solid 2px}.mat-form-field-appearance-standard.mat-form-field-disabled .mat-form-field-underline{background-position:0;background-color:transparent}.cdk-high-contrast-active .mat-form-field-appearance-standard.mat-form-field-disabled .mat-form-field-underline{border-top-style:dotted;border-top-width:2px}.mat-form-field-appearance-standard:not(.mat-form-field-disabled) .mat-form-field-flex:hover~.mat-form-field-underline .mat-form-field-ripple{opacity:1;transform:none;transition:opacity 600ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-form-field-appearance-standard._mat-animation-noopable:not(.mat-form-field-disabled) .mat-form-field-flex:hover~.mat-form-field-underline .mat-form-field-ripple{transition:none}\n"],encapsulation:2,data:{animation:[TV.transitionMessages]},changeDetection:0}),n})(),gf=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=me({type:n}),n.\u0275inj=ce({imports:[[ao,Tt,uw],Tt]}),n})();const jw=go({passive:!0});let LV=(()=>{class n{constructor(e,i){this._platform=e,this._ngZone=i,this._monitoredElements=new Map}monitor(e){if(!this._platform.isBrowser)return ab;const i=ii(e),r=this._monitoredElements.get(i);if(r)return r.subject;const s=new de,o="cdk-text-field-autofilled",a=l=>{"cdk-text-field-autofill-start"!==l.animationName||i.classList.contains(o)?"cdk-text-field-autofill-end"===l.animationName&&i.classList.contains(o)&&(i.classList.remove(o),this._ngZone.run(()=>s.next({target:l.target,isAutofilled:!1}))):(i.classList.add(o),this._ngZone.run(()=>s.next({target:l.target,isAutofilled:!0})))};return this._ngZone.runOutsideAngular(()=>{i.addEventListener("animationstart",a,jw),i.classList.add("cdk-text-field-autofill-monitored")}),this._monitoredElements.set(i,{subject:s,unlisten:()=>{i.removeEventListener("animationstart",a,jw)}}),s}stopMonitoring(e){const i=ii(e),r=this._monitoredElements.get(i);r&&(r.unlisten(),r.subject.complete(),i.classList.remove("cdk-text-field-autofill-monitored"),i.classList.remove("cdk-text-field-autofilled"),this._monitoredElements.delete(i))}ngOnDestroy(){this._monitoredElements.forEach((e,i)=>this.stopMonitoring(i))}}return n.\u0275fac=function(e){return new(e||n)(v(St),v(le))},n.\u0275prov=x({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),$w=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=me({type:n}),n.\u0275inj=ce({imports:[[Dl]]}),n})();const VV=new T("MAT_INPUT_VALUE_ACCESSOR"),BV=["button","checkbox","file","hidden","image","radio","range","reset","submit"];let HV=0;const jV=$L(class{constructor(n,t,e,i){this._defaultErrorStateMatcher=n,this._parentForm=t,this._parentFormGroup=e,this.ngControl=i}});let Uw=(()=>{class n extends jV{constructor(e,i,r,s,o,a,l,c,u,d){super(a,s,o,r),this._elementRef=e,this._platform=i,this._autofillMonitor=c,this._formField=d,this._uid="mat-input-"+HV++,this.focused=!1,this.stateChanges=new de,this.controlType="mat-input",this.autofilled=!1,this._disabled=!1,this._type="text",this._readonly=!1,this._neverEmptyInputTypes=["date","datetime","datetime-local","month","time","week"].filter(p=>Qb().has(p));const h=this._elementRef.nativeElement,f=h.nodeName.toLowerCase();this._inputValueAccessor=l||h,this._previousNativeValue=this.value,this.id=this.id,i.IOS&&u.runOutsideAngular(()=>{e.nativeElement.addEventListener("keyup",p=>{const m=p.target;!m.value&&0===m.selectionStart&&0===m.selectionEnd&&(m.setSelectionRange(1,1),m.setSelectionRange(0,0))})}),this._isServer=!this._platform.isBrowser,this._isNativeSelect="select"===f,this._isTextarea="textarea"===f,this._isInFormField=!!d,this._isNativeSelect&&(this.controlType=h.multiple?"mat-native-select-multiple":"mat-native-select")}get disabled(){return this.ngControl&&null!==this.ngControl.disabled?this.ngControl.disabled:this._disabled}set disabled(e){this._disabled=cn(e),this.focused&&(this.focused=!1,this.stateChanges.next())}get id(){return this._id}set id(e){this._id=e||this._uid}get required(){var e,i,r,s;return null!==(s=null!==(e=this._required)&&void 0!==e?e:null===(r=null===(i=this.ngControl)||void 0===i?void 0:i.control)||void 0===r?void 0:r.hasValidator($P.required))&&void 0!==s&&s}set required(e){this._required=cn(e)}get type(){return this._type}set type(e){this._type=e||"text",this._validateType(),!this._isTextarea&&Qb().has(this._type)&&(this._elementRef.nativeElement.type=this._type)}get value(){return this._inputValueAccessor.value}set value(e){e!==this.value&&(this._inputValueAccessor.value=e,this.stateChanges.next())}get readonly(){return this._readonly}set readonly(e){this._readonly=cn(e)}ngAfterViewInit(){this._platform.isBrowser&&this._autofillMonitor.monitor(this._elementRef.nativeElement).subscribe(e=>{this.autofilled=e.isAutofilled,this.stateChanges.next()})}ngOnChanges(){this.stateChanges.next()}ngOnDestroy(){this.stateChanges.complete(),this._platform.isBrowser&&this._autofillMonitor.stopMonitoring(this._elementRef.nativeElement)}ngDoCheck(){this.ngControl&&this.updateErrorState(),this._dirtyCheckNativeValue(),this._dirtyCheckPlaceholder()}focus(e){this._elementRef.nativeElement.focus(e)}_focusChanged(e){e!==this.focused&&(this.focused=e,this.stateChanges.next())}_onInput(){}_dirtyCheckPlaceholder(){var e,i;const r=(null===(i=null===(e=this._formField)||void 0===e?void 0:e._hideControlPlaceholder)||void 0===i?void 0:i.call(e))?null:this.placeholder;if(r!==this._previousPlaceholder){const s=this._elementRef.nativeElement;this._previousPlaceholder=r,r?s.setAttribute("placeholder",r):s.removeAttribute("placeholder")}}_dirtyCheckNativeValue(){const e=this._elementRef.nativeElement.value;this._previousNativeValue!==e&&(this._previousNativeValue=e,this.stateChanges.next())}_validateType(){BV.indexOf(this._type)}_isNeverEmpty(){return this._neverEmptyInputTypes.indexOf(this._type)>-1}_isBadInput(){let e=this._elementRef.nativeElement.validity;return e&&e.badInput}get empty(){return!(this._isNeverEmpty()||this._elementRef.nativeElement.value||this._isBadInput()||this.autofilled)}get shouldLabelFloat(){if(this._isNativeSelect){const e=this._elementRef.nativeElement,i=e.options[0];return this.focused||e.multiple||!this.empty||!!(e.selectedIndex>-1&&i&&i.label)}return this.focused||!this.empty}setDescribedByIds(e){e.length?this._elementRef.nativeElement.setAttribute("aria-describedby",e.join(" ")):this._elementRef.nativeElement.removeAttribute("aria-describedby")}onContainerClick(){this.focused||this.focus()}_isInlineSelect(){const e=this._elementRef.nativeElement;return this._isNativeSelect&&(e.multiple||e.size>1)}}return n.\u0275fac=function(e){return new(e||n)(g(Ee),g(St),g(ri,10),g(Ll,8),g(Vl,8),g(Sw),g(VV,10),g(LV),g(le),g(mf,8))},n.\u0275dir=k({type:n,selectors:[["input","matInput",""],["textarea","matInput",""],["select","matNativeControl",""],["input","matNativeControl",""],["textarea","matNativeControl",""]],hostAttrs:[1,"mat-input-element","mat-form-field-autofill-control"],hostVars:12,hostBindings:function(e,i){1&e&&Ae("focus",function(){return i._focusChanged(!0)})("blur",function(){return i._focusChanged(!1)})("input",function(){return i._onInput()}),2&e&&(Ca("disabled",i.disabled)("required",i.required),nt("id",i.id)("data-placeholder",i.placeholder)("name",i.name||null)("readonly",i.readonly&&!i._isNativeSelect||null)("aria-invalid",i.empty&&i.required?null:i.errorState)("aria-required",i.required),mt("mat-input-server",i._isServer)("mat-native-select-inline",i._isInlineSelect()))},inputs:{disabled:"disabled",id:"id",placeholder:"placeholder",name:"name",required:"required",type:"type",errorStateMatcher:"errorStateMatcher",userAriaDescribedBy:["aria-describedby","userAriaDescribedBy"],value:"value",readonly:"readonly"},exportAs:["matInput"],features:[oe([{provide:ff,useExisting:n}]),q,Qt]}),n})(),$V=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=me({type:n}),n.\u0275inj=ce({providers:[Sw],imports:[[$w,gf,Tt],$w,gf]}),n})(),UV=(()=>{class n{constructor(){this.errorStateMatcher={isErrorState:()=>!!this.error||!this.valueCanBeChanged&&this.formControl.dirty},this.formControl=new Kh(""),this.onEnter$=new de,this.valueCanBeChanged=!1}ngOnInit(){this.onEnter$.pipe(jl(100)).subscribe(()=>{var e;this.shouldValueChange(this.formControl.value)&&(null===(e=this.onEnter)||void 0===e||e.call(this,{value:this.modifyValueBeforeChange(this.formControl.value)}))}),this.valueChanges$=this.formControl.valueChanges.pipe(rr(e=>(this.valueCanBeChanged=this.shouldValueChange(e),this.valueCanBeChanged))).subscribe(e=>{this.updateOnBlur||this.triggerValueChange(e)})}triggerValueChange(e){this.onValueChange&&this.onValueChange({value:this.modifyValueBeforeChange(e),metaData:this.metaData})}onEnterKeydown(e){this.onEnter$.next()}onBlur(){this.updateOnBlur&&this.shouldValueChange(this.formControl.value)&&this.triggerValueChange(this.formControl.value)}ngOnChanges(e){var i;this.disabled?this.formControl.disable({emitEvent:!1}):this.formControl.enable({emitEvent:!1}),e.value&&!(null===(i=this.input)||void 0===i?void 0:i.focused)&&this.formControl.setValue(this.value,{emitEvent:!1})}modifyValueBeforeChange(e){return e}shouldValueChange(e){return!0}ngOnDestroy(){this.valueChanges$&&this.valueChanges$.unsubscribe(),this.onEnter$&&this.onEnter$.unsubscribe()}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=x({token:n,factory:n.\u0275fac}),n})(),zV=(()=>{class n extends UV{constructor(){super(...arguments),this.filteredSuggestions=[]}ngOnChanges(e){super.ngOnChanges(e),this.filter()}ngOnInit(){super.ngOnInit(),this.autocompleteChanges$=this.formControl.valueChanges.subscribe(()=>this.filter())}ngOnDestroy(){super.ngOnDestroy(),this.autocompleteChanges$&&this.autocompleteChanges$.unsubscribe()}get suggestionStyle(){return 1!==this.filteredSuggestions.length||this.filteredSuggestions[0]?null:{display:"none"}}filter(){var e;const i=`${this.formControl.value||""}`.toLowerCase();this.filteredSuggestions=(null===(e=this.suggestions)||void 0===e?void 0:e.filter(r=>{var s,o;return(null===(o=null===(s=r.label)||void 0===s?void 0:s.toLowerCase())||void 0===o?void 0:o.includes(i))||""}))||[],this.filteredSuggestions=this.filteredSuggestions.length?this.filteredSuggestions:[null]}triggerFocus(){var e;null===(e=this.onFocus)||void 0===e||e.call(this)}optionSelected(e){this.onEnter$.next()}}return n.\u0275fac=function(){let t;return function(i){return(t||(t=$e(n)))(i||n)}}(),n.\u0275prov=x({token:n,factory:n.\u0275fac}),n})();var GV=kf(959);new class KV extends Sn{flush(t){this.active=!0,this.scheduled=void 0;const{actions:e}=this;let i,r=-1,s=e.length;t=t||e.shift();do{if(i=t.execute(t.state,t.delay))break}while(++r<s&&(t=e.shift()));if(this.active=!1,i){for(;++r<s&&(t=e.shift());)t.unsubscribe();throw i}}}(class qV extends tl{constructor(t,e){super(t,e),this.scheduler=t,this.work=e}requestAsyncId(t,e,i=0){return null!==i&&i>0?super.requestAsyncId(t,e,i):(t.actions.push(this),t.scheduled||(t.scheduled=requestAnimationFrame(()=>t.flush(null))))}recycleAsyncId(t,e,i=0){if(null!==i&&i>0||null===i&&this.delay>0)return super.recycleAsyncId(t,e,i);0===t.actions.length&&(cancelAnimationFrame(e),t.scheduled=void 0)}});let ZV=1;const XV=Promise.resolve(),Gl={};function zw(n){return n in Gl&&(delete Gl[n],!0)}const Gw={setImmediate(n){const t=ZV++;return Gl[t]=!0,XV.then(()=>zw(t)&&n()),t},clearImmediate(n){zw(n)}};new class JV extends Sn{flush(t){this.active=!0,this.scheduled=void 0;const{actions:e}=this;let i,r=-1,s=e.length;t=t||e.shift();do{if(i=t.execute(t.state,t.delay))break}while(++r<s&&(t=e.shift()));if(this.active=!1,i){for(;++r<s&&(t=e.shift());)t.unsubscribe();throw i}}}(class QV extends tl{constructor(t,e){super(t,e),this.scheduler=t,this.work=e}requestAsyncId(t,e,i=0){return null!==i&&i>0?super.requestAsyncId(t,e,i):(t.actions.push(this),t.scheduled||(t.scheduled=Gw.setImmediate(t.flush.bind(t,null))))}recycleAsyncId(t,e,i=0){if(null!==i&&i>0||null===i&&this.delay>0)return super.recycleAsyncId(t,e,i);0===t.actions.length&&(Gw.clearImmediate(e),t.scheduled=void 0)}});class nB{constructor(t){this.durationSelector=t}call(t,e){return e.subscribe(new iB(t,this.durationSelector))}}class iB extends fs{constructor(t,e){super(t),this.durationSelector=e,this.hasValue=!1}_next(t){if(this.value=t,this.hasValue=!0,!this.throttled){let e;try{const{durationSelector:r}=this;e=r(t)}catch(r){return this.destination.error(r)}const i=ps(e,new hs(this));!i||i.closed?this.clearThrottle():this.add(this.throttled=i)}}clearThrottle(){const{value:t,hasValue:e,throttled:i}=this;i&&(this.remove(i),this.throttled=void 0,i.unsubscribe()),e&&(this.value=void 0,this.hasValue=!1,this.destination.next(t))}notifyNext(){this.clearThrottle()}notifyComplete(){this.clearThrottle()}}function Ww(n){return!se(n)&&n-parseFloat(n)+1>=0}function sB(n){const{index:t,period:e,subscriber:i}=n;if(i.next(t),!i.closed){if(-1===e)return i.complete();n.index=t+1,this.schedule(n,e)}}function qw(n,t=Hl){return function tB(n){return function(e){return e.lift(new nB(n))}}(()=>function rB(n=0,t,e){let i=-1;return Ww(t)?i=Number(t)<1?1:Number(t):ur(t)&&(e=t),ur(e)||(e=Hl),new Ce(r=>{const s=Ww(n)?n:+n-e.now();return e.schedule(sB,s,{index:0,period:i,subscriber:r})})}(n,t))}let Kw=(()=>{class n{constructor(e,i,r){this._ngZone=e,this._platform=i,this._scrolled=new de,this._globalSubscription=null,this._scrolledCount=0,this.scrollContainers=new Map,this._document=r}register(e){this.scrollContainers.has(e)||this.scrollContainers.set(e,e.elementScrolled().subscribe(()=>this._scrolled.next(e)))}deregister(e){const i=this.scrollContainers.get(e);i&&(i.unsubscribe(),this.scrollContainers.delete(e))}scrolled(e=20){return this._platform.isBrowser?new Ce(i=>{this._globalSubscription||this._addGlobalListener();const r=e>0?this._scrolled.pipe(qw(e)).subscribe(i):this._scrolled.subscribe(i);return this._scrolledCount++,()=>{r.unsubscribe(),this._scrolledCount--,this._scrolledCount||this._removeGlobalListener()}}):Mn()}ngOnDestroy(){this._removeGlobalListener(),this.scrollContainers.forEach((e,i)=>this.deregister(i)),this._scrolled.complete()}ancestorScrolled(e,i){const r=this.getAncestorScrollContainers(e);return this.scrolled(i).pipe(rr(s=>!s||r.indexOf(s)>-1))}getAncestorScrollContainers(e){const i=[];return this.scrollContainers.forEach((r,s)=>{this._scrollableContainsElement(s,e)&&i.push(s)}),i}_getWindow(){return this._document.defaultView||window}_scrollableContainsElement(e,i){let r=ii(i),s=e.getElementRef().nativeElement;do{if(r==s)return!0}while(r=r.parentElement);return!1}_addGlobalListener(){this._globalSubscription=this._ngZone.runOutsideAngular(()=>ss(this._getWindow().document,"scroll").subscribe(()=>this._scrolled.next()))}_removeGlobalListener(){this._globalSubscription&&(this._globalSubscription.unsubscribe(),this._globalSubscription=null)}}return n.\u0275fac=function(e){return new(e||n)(v(le),v(St),v(Z,8))},n.\u0275prov=x({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),_f=(()=>{class n{constructor(e,i,r){this._platform=e,this._change=new de,this._changeListener=s=>{this._change.next(s)},this._document=r,i.runOutsideAngular(()=>{if(e.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 e=this._getWindow();e.removeEventListener("resize",this._changeListener),e.removeEventListener("orientationchange",this._changeListener)}this._change.complete()}getViewportSize(){this._viewportSize||this._updateViewportSize();const e={width:this._viewportSize.width,height:this._viewportSize.height};return this._platform.isBrowser||(this._viewportSize=null),e}getViewportRect(){const e=this.getViewportScrollPosition(),{width:i,height:r}=this.getViewportSize();return{top:e.top,left:e.left,bottom:e.top+r,right:e.left+i,height:r,width:i}}getViewportScrollPosition(){if(!this._platform.isBrowser)return{top:0,left:0};const e=this._document,i=this._getWindow(),r=e.documentElement,s=r.getBoundingClientRect();return{top:-s.top||e.body.scrollTop||i.scrollY||r.scrollTop||0,left:-s.left||e.body.scrollLeft||i.scrollX||r.scrollLeft||0}}change(e=20){return e>0?this._change.pipe(qw(e)):this._change}_getWindow(){return this._document.defaultView||window}_updateViewportSize(){const e=this._getWindow();this._viewportSize=this._platform.isBrowser?{width:e.innerWidth,height:e.innerHeight}:{width:0,height:0}}}return n.\u0275fac=function(e){return new(e||n)(v(St),v(le),v(Z,8))},n.\u0275prov=x({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),Wl=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=me({type:n}),n.\u0275inj=ce({}),n})(),Yw=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=me({type:n}),n.\u0275inj=ce({imports:[[Co,Dl,Wl],Co,Wl]}),n})();class yf{attach(t){return this._attachedHost=t,t.attach(this)}detach(){let t=this._attachedHost;null!=t&&(this._attachedHost=null,t.detach())}get isAttached(){return null!=this._attachedHost}setAttachedHost(t){this._attachedHost=t}}class Zw extends yf{constructor(t,e,i,r){super(),this.component=t,this.viewContainerRef=e,this.injector=i,this.componentFactoryResolver=r}}class Xw extends yf{constructor(t,e,i){super(),this.templateRef=t,this.viewContainerRef=e,this.context=i}get origin(){return this.templateRef.elementRef}attach(t,e=this.context){return this.context=e,super.attach(t)}detach(){return this.context=void 0,super.detach()}}class lB extends yf{constructor(t){super(),this.element=t instanceof Ee?t.nativeElement:t}}class uB extends class cB{constructor(){this._isDisposed=!1,this.attachDomPortal=null}hasAttached(){return!!this._attachedPortal}attach(t){return t instanceof Zw?(this._attachedPortal=t,this.attachComponentPortal(t)):t instanceof Xw?(this._attachedPortal=t,this.attachTemplatePortal(t)):this.attachDomPortal&&t instanceof lB?(this._attachedPortal=t,this.attachDomPortal(t)):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(t){this._disposeFn=t}_invokeDisposeFn(){this._disposeFn&&(this._disposeFn(),this._disposeFn=null)}}{constructor(t,e,i,r,s){super(),this.outletElement=t,this._componentFactoryResolver=e,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(t){const i=(t.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(t.component);let r;return t.viewContainerRef?(r=t.viewContainerRef.createComponent(i,t.viewContainerRef.length,t.injector||t.viewContainerRef.injector),this.setDisposeFn(()=>r.destroy())):(r=i.create(t.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=t,r}attachTemplatePortal(t){let e=t.viewContainerRef,i=e.createEmbeddedView(t.templateRef,t.context);return i.rootNodes.forEach(r=>this.outletElement.appendChild(r)),i.detectChanges(),this.setDisposeFn(()=>{let r=e.indexOf(i);-1!==r&&e.remove(r)}),this._attachedPortal=t,i}dispose(){super.dispose(),this.outletElement.remove()}_getComponentRootNode(t){return t.hostView.rootNodes[0]}}let dB=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=me({type:n}),n.\u0275inj=ce({}),n})();const Qw=RP();class hB{constructor(t,e){this._viewportRuler=t,this._previousHTMLStyles={top:"",left:""},this._isEnabled=!1,this._document=e}attach(){}enable(){if(this._canBeEnabled()){const t=this._document.documentElement;this._previousScrollPosition=this._viewportRuler.getViewportScrollPosition(),this._previousHTMLStyles.left=t.style.left||"",this._previousHTMLStyles.top=t.style.top||"",t.style.left=qe(-this._previousScrollPosition.left),t.style.top=qe(-this._previousScrollPosition.top),t.classList.add("cdk-global-scrollblock"),this._isEnabled=!0}}disable(){if(this._isEnabled){const t=this._document.documentElement,i=t.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,t.classList.remove("cdk-global-scrollblock"),Qw&&(i.scrollBehavior=r.scrollBehavior="auto"),window.scroll(this._previousScrollPosition.left,this._previousScrollPosition.top),Qw&&(i.scrollBehavior=s,r.scrollBehavior=o)}}_canBeEnabled(){if(this._document.documentElement.classList.contains("cdk-global-scrollblock")||this._isEnabled)return!1;const e=this._document.body,i=this._viewportRuler.getViewportSize();return e.scrollHeight>i.height||e.scrollWidth>i.width}}class fB{constructor(t,e,i,r){this._scrollDispatcher=t,this._ngZone=e,this._viewportRuler=i,this._config=r,this._scrollSubscription=null,this._detach=()=>{this.disable(),this._overlayRef.hasAttached()&&this._ngZone.run(()=>this._overlayRef.detach())}}attach(t){this._overlayRef=t}enable(){if(this._scrollSubscription)return;const t=this._scrollDispatcher.scrolled(0);this._config&&this._config.threshold&&this._config.threshold>1?(this._initialScrollPosition=this._viewportRuler.getViewportScrollPosition().top,this._scrollSubscription=t.subscribe(()=>{const e=this._viewportRuler.getViewportScrollPosition().top;Math.abs(e-this._initialScrollPosition)>this._config.threshold?this._detach():this._overlayRef.updatePosition()})):this._scrollSubscription=t.subscribe(this._detach)}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}}class Jw{enable(){}disable(){}attach(){}}function vf(n,t){return t.some(e=>n.bottom<e.top||n.top>e.bottom||n.right<e.left||n.left>e.right)}function eE(n,t){return t.some(e=>n.top<e.top||n.bottom>e.bottom||n.left<e.left||n.right>e.right)}class pB{constructor(t,e,i,r){this._scrollDispatcher=t,this._viewportRuler=e,this._ngZone=i,this._config=r,this._scrollSubscription=null}attach(t){this._overlayRef=t}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 e=this._overlayRef.overlayElement.getBoundingClientRect(),{width:i,height:r}=this._viewportRuler.getViewportSize();vf(e,[{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 mB=(()=>{class n{constructor(e,i,r,s){this._scrollDispatcher=e,this._viewportRuler=i,this._ngZone=r,this.noop=()=>new Jw,this.close=o=>new fB(this._scrollDispatcher,this._ngZone,this._viewportRuler,o),this.block=()=>new hB(this._viewportRuler,this._document),this.reposition=o=>new pB(this._scrollDispatcher,this._viewportRuler,this._ngZone,o),this._document=s}}return n.\u0275fac=function(e){return new(e||n)(v(Kw),v(_f),v(le),v(Z))},n.\u0275prov=x({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();class tE{constructor(t){if(this.scrollStrategy=new Jw,this.panelClass="",this.hasBackdrop=!1,this.backdropClass="cdk-overlay-dark-backdrop",this.disposeOnNavigation=!1,t){const e=Object.keys(t);for(const i of e)void 0!==t[i]&&(this[i]=t[i])}}}class gB{constructor(t,e){this.connectionPair=t,this.scrollableViewProperties=e}}class _B{constructor(t,e,i,r,s,o,a,l,c){this._portalOutlet=t,this._host=e,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 de,this._attachments=new de,this._detachments=new de,this._locationChanges=W.EMPTY,this._backdropClickHandler=u=>this._backdropClick.next(u),this._keydownEvents=new de,this._outsidePointerEvents=new de,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(t){let e=this._portalOutlet.attach(t);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(Ei(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),e}detach(){if(!this.hasAttached())return;this.detachBackdrop(),this._togglePointerEvents(!1),this._positionStrategy&&this._positionStrategy.detach&&this._positionStrategy.detach(),this._scrollStrategy&&this._scrollStrategy.disable();const t=this._portalOutlet.detach();return this._detachments.next(),this._keyboardDispatcher.remove(this),this._detachContentWhenStable(),this._locationChanges.unsubscribe(),this._outsideClickDispatcher.remove(this),t}dispose(){var t;const e=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===(t=this._host)||void 0===t||t.remove(),this._previousHostParent=this._pane=this._host=null,e&&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(t){t!==this._positionStrategy&&(this._positionStrategy&&this._positionStrategy.dispose(),this._positionStrategy=t,this.hasAttached()&&(t.attach(this),this.updatePosition()))}updateSize(t){this._config=Object.assign(Object.assign({},this._config),t),this._updateElementSize()}setDirection(t){this._config=Object.assign(Object.assign({},this._config),{direction:t}),this._updateElementDirection()}addPanelClass(t){this._pane&&this._toggleClasses(this._pane,t,!0)}removePanelClass(t){this._pane&&this._toggleClasses(this._pane,t,!1)}getDirection(){const t=this._config.direction;return t?"string"==typeof t?t:t.value:"ltr"}updateScrollStrategy(t){t!==this._scrollStrategy&&(this._disposeScrollStrategy(),this._scrollStrategy=t,this.hasAttached()&&(t.attach(this),t.enable()))}_updateElementDirection(){this._host.setAttribute("dir",this.getDirection())}_updateElementSize(){if(!this._pane)return;const t=this._pane.style;t.width=qe(this._config.width),t.height=qe(this._config.height),t.minWidth=qe(this._config.minWidth),t.minHeight=qe(this._config.minHeight),t.maxWidth=qe(this._config.maxWidth),t.maxHeight=qe(this._config.maxHeight)}_togglePointerEvents(t){this._pane.style.pointerEvents=t?"":"none"}_attachBackdrop(){const t="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(t)})}):this._backdropElement.classList.add(t)}_updateStackingOrder(){this._host.nextSibling&&this._host.parentNode.appendChild(this._host)}detachBackdrop(){const t=this._backdropElement;if(!t)return;let e;const i=()=>{t&&(t.removeEventListener("click",this._backdropClickHandler),t.removeEventListener("transitionend",i),this._disposeBackdrop(t)),this._config.backdropClass&&this._toggleClasses(t,this._config.backdropClass,!1),clearTimeout(e)};t.classList.remove("cdk-overlay-backdrop-showing"),this._ngZone.runOutsideAngular(()=>{t.addEventListener("transitionend",i)}),t.style.pointerEvents="none",e=this._ngZone.runOutsideAngular(()=>setTimeout(i,500))}_toggleClasses(t,e,i){const r=El(e||[]).filter(s=>!!s);r.length&&(i?t.classList.add(...r):t.classList.remove(...r))}_detachContentWhenStable(){this._ngZone.runOutsideAngular(()=>{const t=this._ngZone.onStable.pipe(Ot(si(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()),t.unsubscribe())})})}_disposeScrollStrategy(){const t=this._scrollStrategy;t&&(t.disable(),t.detach&&t.detach())}_disposeBackdrop(t){t&&(t.remove(),this._backdropElement===t&&(this._backdropElement=null))}}let bf=(()=>{class n{constructor(e,i){this._platform=i,this._document=e}ngOnDestroy(){var e;null===(e=this._containerElement)||void 0===e||e.remove()}getContainerElement(){return this._containerElement||this._createContainer(),this._containerElement}_createContainer(){const e="cdk-overlay-container";if(this._platform.isBrowser||Fh()){const r=this._document.querySelectorAll(`.${e}[platform="server"], .${e}[platform="test"]`);for(let s=0;s<r.length;s++)r[s].remove()}const i=this._document.createElement("div");i.classList.add(e),Fh()?i.setAttribute("platform","test"):this._platform.isBrowser||i.setAttribute("platform","server"),this._document.body.appendChild(i),this._containerElement=i}}return n.\u0275fac=function(e){return new(e||n)(v(Z),v(St))},n.\u0275prov=x({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const nE="cdk-overlay-connected-position-bounding-box",yB=/([A-Za-z%]+)$/;class vB{constructor(t,e,i,r,s){this._viewportRuler=e,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 de,this._resizeSubscription=W.EMPTY,this._offsetX=0,this._offsetY=0,this._appliedPanelClasses=[],this.positionChanges=this._positionChanges,this.setOrigin(t)}get positions(){return this._preferredPositions}attach(t){this._validatePositions(),t.hostElement.classList.add(nE),this._overlayRef=t,this._boundingBox=t.hostElement,this._pane=t.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 t=this._originRect,e=this._overlayRect,i=this._viewportRect,r=this._containerRect,s=[];let o;for(let a of this._preferredPositions){let l=this._getOriginPoint(t,r,a),c=this._getOverlayPoint(l,e,a),u=this._getOverlayFit(c,e,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:e,boundingBoxRect:this._calculateBoundingBoxRect(l,a)}):(!o||o.overlayFit.visibleArea<u.visibleArea)&&(o={overlayFit:u,overlayPoint:c,originPoint:l,position:a,overlayRect:e})}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&&sr(this._boundingBox.style,{top:"",left:"",right:"",bottom:"",height:"",width:"",alignItems:"",justifyContent:""}),this._pane&&this._resetOverlayElementStyles(),this._overlayRef&&this._overlayRef.hostElement.classList.remove(nE),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 t=this._lastPosition||this._preferredPositions[0],e=this._getOriginPoint(this._originRect,this._containerRect,t);this._applyPosition(t,e)}}withScrollableContainers(t){return this._scrollables=t,this}withPositions(t){return this._preferredPositions=t,-1===t.indexOf(this._lastPosition)&&(this._lastPosition=null),this._validatePositions(),this}withViewportMargin(t){return this._viewportMargin=t,this}withFlexibleDimensions(t=!0){return this._hasFlexibleDimensions=t,this}withGrowAfterOpen(t=!0){return this._growAfterOpen=t,this}withPush(t=!0){return this._canPush=t,this}withLockedPosition(t=!0){return this._positionLocked=t,this}setOrigin(t){return this._origin=t,this}withDefaultOffsetX(t){return this._offsetX=t,this}withDefaultOffsetY(t){return this._offsetY=t,this}withTransformOriginOn(t){return this._transformOriginSelector=t,this}_getOriginPoint(t,e,i){let r,s;if("center"==i.originX)r=t.left+t.width/2;else{const o=this._isRtl()?t.right:t.left,a=this._isRtl()?t.left:t.right;r="start"==i.originX?o:a}return e.left<0&&(r-=e.left),s="center"==i.originY?t.top+t.height/2:"top"==i.originY?t.top:t.bottom,e.top<0&&(s-=e.top),{x:r,y:s}}_getOverlayPoint(t,e,i){let r,s;return r="center"==i.overlayX?-e.width/2:"start"===i.overlayX?this._isRtl()?-e.width:0:this._isRtl()?0:-e.width,s="center"==i.overlayY?-e.height/2:"top"==i.overlayY?0:-e.height,{x:t.x+r,y:t.y+s}}_getOverlayFit(t,e,i,r){const s=rE(e);let{x:o,y:a}=t,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),m=this._subtractOverflows(s.height,h,f),y=p*m;return{visibleArea:y,isCompletelyWithinViewport:s.width*s.height===y,fitsInViewportVertically:m===s.height,fitsInViewportHorizontally:p==s.width}}_canFitWithFlexibleDimensions(t,e,i){if(this._hasFlexibleDimensions){const r=i.bottom-e.y,s=i.right-e.x,o=iE(this._overlayRef.getConfig().minHeight),a=iE(this._overlayRef.getConfig().minWidth),c=t.fitsInViewportHorizontally||null!=a&&a<=s;return(t.fitsInViewportVertically||null!=o&&o<=r)&&c}return!1}_pushOverlayOnScreen(t,e,i){if(this._previousPushAmount&&this._positionLocked)return{x:t.x+this._previousPushAmount.x,y:t.y+this._previousPushAmount.y};const r=rE(e),s=this._viewportRect,o=Math.max(t.x+r.width-s.width,0),a=Math.max(t.y+r.height-s.height,0),l=Math.max(s.top-i.top-t.y,0),c=Math.max(s.left-i.left-t.x,0);let u=0,d=0;return u=r.width<=s.width?c||-o:t.x<this._viewportMargin?s.left-i.left-t.x:0,d=r.height<=s.height?l||-a:t.y<this._viewportMargin?s.top-i.top-t.y:0,this._previousPushAmount={x:u,y:d},{x:t.x+u,y:t.y+d}}_applyPosition(t,e){if(this._setTransformOrigin(t),this._setOverlayElementStyles(e,t),this._setBoundingBoxStyles(e,t),t.panelClass&&this._addPanelClasses(t.panelClass),this._lastPosition=t,this._positionChanges.observers.length){const i=this._getScrollVisibility(),r=new gB(t,i);this._positionChanges.next(r)}this._isInitialRender=!1}_setTransformOrigin(t){if(!this._transformOriginSelector)return;const e=this._boundingBox.querySelectorAll(this._transformOriginSelector);let i,r=t.overlayY;i="center"===t.overlayX?"center":this._isRtl()?"start"===t.overlayX?"right":"left":"start"===t.overlayX?"left":"right";for(let s=0;s<e.length;s++)e[s].style.transformOrigin=`${i} ${r}`}_calculateBoundingBoxRect(t,e){const i=this._viewportRect,r=this._isRtl();let s,o,a,u,d,h;if("top"===e.overlayY)o=t.y,s=i.height-o+this._viewportMargin;else if("bottom"===e.overlayY)a=i.height-t.y+2*this._viewportMargin,s=i.height-a+this._viewportMargin;else{const f=Math.min(i.bottom-t.y+i.top,t.y),p=this._lastBoundingBoxSize.height;s=2*f,o=t.y-f,s>p&&!this._isInitialRender&&!this._growAfterOpen&&(o=t.y-p/2)}if("end"===e.overlayX&&!r||"start"===e.overlayX&&r)h=i.width-t.x+this._viewportMargin,u=t.x-this._viewportMargin;else if("start"===e.overlayX&&!r||"end"===e.overlayX&&r)d=t.x,u=i.right-t.x;else{const f=Math.min(i.right-t.x+i.left,t.x),p=this._lastBoundingBoxSize.width;u=2*f,d=t.x-f,u>p&&!this._isInitialRender&&!this._growAfterOpen&&(d=t.x-p/2)}return{top:o,left:d,bottom:a,right:h,width:u,height:s}}_setBoundingBoxStyles(t,e){const i=this._calculateBoundingBoxRect(t,e);!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=qe(i.height),r.top=qe(i.top),r.bottom=qe(i.bottom),r.width=qe(i.width),r.left=qe(i.left),r.right=qe(i.right),r.alignItems="center"===e.overlayX?"center":"end"===e.overlayX?"flex-end":"flex-start",r.justifyContent="center"===e.overlayY?"center":"bottom"===e.overlayY?"flex-end":"flex-start",s&&(r.maxHeight=qe(s)),o&&(r.maxWidth=qe(o))}this._lastBoundingBoxSize=i,sr(this._boundingBox.style,r)}_resetBoundingBoxStyles(){sr(this._boundingBox.style,{top:"0",left:"0",right:"0",bottom:"0",height:"",width:"",alignItems:"",justifyContent:""})}_resetOverlayElementStyles(){sr(this._pane.style,{top:"",left:"",bottom:"",right:"",position:"",transform:""})}_setOverlayElementStyles(t,e){const i={},r=this._hasExactPosition(),s=this._hasFlexibleDimensions,o=this._overlayRef.getConfig();if(r){const u=this._viewportRuler.getViewportScrollPosition();sr(i,this._getExactOverlayY(e,t,u)),sr(i,this._getExactOverlayX(e,t,u))}else i.position="static";let a="",l=this._getOffset(e,"x"),c=this._getOffset(e,"y");l&&(a+=`translateX(${l}px) `),c&&(a+=`translateY(${c}px)`),i.transform=a.trim(),o.maxHeight&&(r?i.maxHeight=qe(o.maxHeight):s&&(i.maxHeight="")),o.maxWidth&&(r?i.maxWidth=qe(o.maxWidth):s&&(i.maxWidth="")),sr(this._pane.style,i)}_getExactOverlayY(t,e,i){let r={top:"",bottom:""},s=this._getOverlayPoint(e,this._overlayRect,t);return this._isPushed&&(s=this._pushOverlayOnScreen(s,this._overlayRect,i)),"bottom"===t.overlayY?r.bottom=this._document.documentElement.clientHeight-(s.y+this._overlayRect.height)+"px":r.top=qe(s.y),r}_getExactOverlayX(t,e,i){let o,r={left:"",right:""},s=this._getOverlayPoint(e,this._overlayRect,t);return this._isPushed&&(s=this._pushOverlayOnScreen(s,this._overlayRect,i)),o=this._isRtl()?"end"===t.overlayX?"left":"right":"end"===t.overlayX?"right":"left","right"===o?r.right=this._document.documentElement.clientWidth-(s.x+this._overlayRect.width)+"px":r.left=qe(s.x),r}_getScrollVisibility(){const t=this._getOriginRect(),e=this._pane.getBoundingClientRect(),i=this._scrollables.map(r=>r.getElementRef().nativeElement.getBoundingClientRect());return{isOriginClipped:eE(t,i),isOriginOutsideView:vf(t,i),isOverlayClipped:eE(e,i),isOverlayOutsideView:vf(e,i)}}_subtractOverflows(t,...e){return e.reduce((i,r)=>i-Math.max(r,0),t)}_getNarrowedViewportRect(){const t=this._document.documentElement.clientWidth,e=this._document.documentElement.clientHeight,i=this._viewportRuler.getViewportScrollPosition();return{top:i.top+this._viewportMargin,left:i.left+this._viewportMargin,right:i.left+t-this._viewportMargin,bottom:i.top+e-this._viewportMargin,width:t-2*this._viewportMargin,height:e-2*this._viewportMargin}}_isRtl(){return"rtl"===this._overlayRef.getDirection()}_hasExactPosition(){return!this._hasFlexibleDimensions||this._isPushed}_getOffset(t,e){return"x"===e?null==t.offsetX?this._offsetX:t.offsetX:null==t.offsetY?this._offsetY:t.offsetY}_validatePositions(){}_addPanelClasses(t){this._pane&&El(t).forEach(e=>{""!==e&&-1===this._appliedPanelClasses.indexOf(e)&&(this._appliedPanelClasses.push(e),this._pane.classList.add(e))})}_clearPanelClasses(){this._pane&&(this._appliedPanelClasses.forEach(t=>{this._pane.classList.remove(t)}),this._appliedPanelClasses=[])}_getOriginRect(){const t=this._origin;if(t instanceof Ee)return t.nativeElement.getBoundingClientRect();if(t instanceof Element)return t.getBoundingClientRect();const e=t.width||0,i=t.height||0;return{top:t.y,bottom:t.y+i,left:t.x,right:t.x+e,height:i,width:e}}}function sr(n,t){for(let e in t)t.hasOwnProperty(e)&&(n[e]=t[e]);return n}function iE(n){if("number"!=typeof n&&null!=n){const[t,e]=n.split(yB);return e&&"px"!==e?null:parseFloat(t)}return n||null}function rE(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 sE="cdk-global-overlay-wrapper";class bB{constructor(){this._cssPosition="static",this._topOffset="",this._bottomOffset="",this._leftOffset="",this._rightOffset="",this._alignItems="",this._justifyContent="",this._width="",this._height=""}attach(t){const e=t.getConfig();this._overlayRef=t,this._width&&!e.width&&t.updateSize({width:this._width}),this._height&&!e.height&&t.updateSize({height:this._height}),t.hostElement.classList.add(sE),this._isDisposed=!1}top(t=""){return this._bottomOffset="",this._topOffset=t,this._alignItems="flex-start",this}left(t=""){return this._rightOffset="",this._leftOffset=t,this._justifyContent="flex-start",this}bottom(t=""){return this._topOffset="",this._bottomOffset=t,this._alignItems="flex-end",this}right(t=""){return this._leftOffset="",this._rightOffset=t,this._justifyContent="flex-end",this}width(t=""){return this._overlayRef?this._overlayRef.updateSize({width:t}):this._width=t,this}height(t=""){return this._overlayRef?this._overlayRef.updateSize({height:t}):this._height=t,this}centerHorizontally(t=""){return this.left(t),this._justifyContent="center",this}centerVertically(t=""){return this.top(t),this._alignItems="center",this}apply(){if(!this._overlayRef||!this._overlayRef.hasAttached())return;const t=this._overlayRef.overlayElement.style,e=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);t.position=this._cssPosition,t.marginLeft=l?"0":this._leftOffset,t.marginTop=c?"0":this._topOffset,t.marginBottom=this._bottomOffset,t.marginRight=this._rightOffset,l?e.justifyContent="flex-start":"center"===this._justifyContent?e.justifyContent="center":"rtl"===this._overlayRef.getConfig().direction?"flex-start"===this._justifyContent?e.justifyContent="flex-end":"flex-end"===this._justifyContent&&(e.justifyContent="flex-start"):e.justifyContent=this._justifyContent,e.alignItems=c?"flex-start":this._alignItems}dispose(){if(this._isDisposed||!this._overlayRef)return;const t=this._overlayRef.overlayElement.style,e=this._overlayRef.hostElement,i=e.style;e.classList.remove(sE),i.justifyContent=i.alignItems=t.marginTop=t.marginBottom=t.marginLeft=t.marginRight=t.position="",this._overlayRef=null,this._isDisposed=!0}}let CB=(()=>{class n{constructor(e,i,r,s){this._viewportRuler=e,this._document=i,this._platform=r,this._overlayContainer=s}global(){return new bB}flexibleConnectedTo(e){return new vB(e,this._viewportRuler,this._document,this._platform,this._overlayContainer)}}return n.\u0275fac=function(e){return new(e||n)(v(_f),v(Z),v(St),v(bf))},n.\u0275prov=x({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),oE=(()=>{class n{constructor(e){this._attachedOverlays=[],this._document=e}ngOnDestroy(){this.detach()}add(e){this.remove(e),this._attachedOverlays.push(e)}remove(e){const i=this._attachedOverlays.indexOf(e);i>-1&&this._attachedOverlays.splice(i,1),0===this._attachedOverlays.length&&this.detach()}}return n.\u0275fac=function(e){return new(e||n)(v(Z))},n.\u0275prov=x({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),wB=(()=>{class n extends oE{constructor(e){super(e),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(e){super.add(e),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(e){return new(e||n)(v(Z))},n.\u0275prov=x({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),EB=(()=>{class n extends oE{constructor(e,i){super(e),this._platform=i,this._cursorStyleIsSet=!1,this._pointerDownListener=r=>{this._pointerDownEventTarget=vi(r)},this._clickListener=r=>{const s=vi(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(e){if(super.add(e),!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 e=this._document.body;e.removeEventListener("pointerdown",this._pointerDownListener,!0),e.removeEventListener("click",this._clickListener,!0),e.removeEventListener("auxclick",this._clickListener,!0),e.removeEventListener("contextmenu",this._clickListener,!0),this._platform.IOS&&this._cursorStyleIsSet&&(e.style.cursor=this._cursorOriginalValue,this._cursorStyleIsSet=!1),this._isAttached=!1}}}return n.\u0275fac=function(e){return new(e||n)(v(Z),v(St))},n.\u0275prov=x({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),DB=0,os=(()=>{class n{constructor(e,i,r,s,o,a,l,c,u,d,h){this.scrollStrategies=e,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(e){const i=this._createHostElement(),r=this._createPaneElement(i),s=this._createPortalOutlet(r),o=new tE(e);return o.direction=o.direction||this._directionality.value,new _B(s,i,r,o,this._ngZone,this._keyboardDispatcher,this._document,this._location,this._outsideClickDispatcher)}position(){return this._positionBuilder}_createPaneElement(e){const i=this._document.createElement("div");return i.id="cdk-overlay-"+DB++,i.classList.add("cdk-overlay-pane"),e.appendChild(i),i}_createHostElement(){const e=this._document.createElement("div");return this._overlayContainer.getContainerElement().appendChild(e),e}_createPortalOutlet(e){return this._appRef||(this._appRef=this._injector.get(Oa)),new uB(e,this._componentFactoryResolver,this._appRef,this._injector,this._document)}}return n.\u0275fac=function(e){return new(e||n)(v(mB),v(bf),v(Gi),v(CB),v(wB),v(Ct),v(le),v(Z),v(Bl),v(wv),v(EB))},n.\u0275prov=x({token:n,factory:n.\u0275fac}),n})();const TB={provide:new T("cdk-connected-overlay-scroll-strategy"),deps:[os],useFactory:function MB(n){return()=>n.scrollStrategies.reposition()}};let aE=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=me({type:n}),n.\u0275inj=ce({providers:[os,TB],imports:[[Co,dB,Yw],Yw]}),n})();class xB{constructor(t,e){this.delay=t,this.scheduler=e}call(t,e){return e.subscribe(new Cf(t,this.delay,this.scheduler))}}class Cf extends ye{constructor(t,e,i){super(t),this.delay=e,this.scheduler=i,this.queue=[],this.active=!1,this.errored=!1}static dispatch(t){const e=t.source,i=e.queue,r=t.scheduler,s=t.destination;for(;i.length>0&&i[0].time-r.now()<=0;)i.shift().notification.observe(s);if(i.length>0){const o=Math.max(0,i[0].time-r.now());this.schedule(t,o)}else this.unsubscribe(),e.active=!1}_schedule(t){this.active=!0,this.destination.add(t.schedule(Cf.dispatch,this.delay,{source:this,destination:this.destination,scheduler:t}))}scheduleNotification(t){if(!0===this.errored)return;const e=this.scheduler,i=new kB(e.now()+this.delay,t);this.queue.push(i),!1===this.active&&this._schedule(e)}_next(t){this.scheduleNotification(kt.createNext(t))}_error(t){this.errored=!0,this.queue=[],this.destination.error(t),this.unsubscribe()}_complete(){this.scheduleNotification(kt.createComplete()),this.unsubscribe()}}class kB{constructor(t,e){this.time=t,this.notification=e}}const OB=["panel"];function FB(n,t){if(1&n&&(K(0,"div",0,1),Gt(2),J()),2&n){const e=t.id,i=ue();$("id",i.id)("ngClass",i._classList),nt("aria-label",i.ariaLabel||null)("aria-labelledby",i._getPanelAriaLabelledby(e))}}const RB=["*"];let NB=0;class PB{constructor(t,e){this.source=t,this.option=e}}const LB=Dw(class{}),lE=new T("mat-autocomplete-default-options",{providedIn:"root",factory:function VB(){return{autoActiveFirstOption:!1}}});let BB=(()=>{class n extends LB{constructor(e,i,r,s){super(),this._changeDetectorRef=e,this._elementRef=i,this._activeOptionChanges=W.EMPTY,this.showPanel=!1,this._isOpen=!1,this.displayWith=null,this.optionSelected=new Ie,this.opened=new Ie,this.closed=new Ie,this.optionActivated=new Ie,this._classList={},this.id="mat-autocomplete-"+NB++,this.inertGroups=(null==s?void 0:s.SAFARI)||!1,this._autoActiveFirstOption=!!r.autoActiveFirstOption}get isOpen(){return this._isOpen&&this.showPanel}get autoActiveFirstOption(){return this._autoActiveFirstOption}set autoActiveFirstOption(e){this._autoActiveFirstOption=cn(e)}set classList(e){this._classList=e&&e.length?function OP(n,t=/\s+/){const e=[];if(null!=n){const i=Array.isArray(n)?n:`${n}`.split(t);for(const r of i){const s=`${r}`.trim();s&&e.push(s)}}return e}(e).reduce((i,r)=>(i[r]=!0,i),{}):{},this._setVisibilityClasses(this._classList),this._elementRef.nativeElement.className=""}ngAfterContentInit(){this._keyManager=new DL(this.options).withWrap(),this._activeOptionChanges=this._keyManager.change.subscribe(e=>{this.isOpen&&this.optionActivated.emit({source:this,option:this.options.toArray()[e]||null})}),this._setVisibility()}ngOnDestroy(){this._activeOptionChanges.unsubscribe()}_setScrollTop(e){this.panel&&(this.panel.nativeElement.scrollTop=e)}_getScrollTop(){return this.panel?this.panel.nativeElement.scrollTop:0}_setVisibility(){this.showPanel=!!this.options.length,this._setVisibilityClasses(this._classList),this._changeDetectorRef.markForCheck()}_emitSelectEvent(e){const i=new PB(this,e);this.optionSelected.emit(i)}_getPanelAriaLabelledby(e){return this.ariaLabel?null:this.ariaLabelledby?(e?e+" ":"")+this.ariaLabelledby:e}_setVisibilityClasses(e){e[this._visibleClass]=this.showPanel,e[this._hiddenClass]=!this.showPanel}}return n.\u0275fac=function(e){return new(e||n)(g(ei),g(Ee),g(lE),g(St))},n.\u0275dir=k({type:n,viewQuery:function(e,i){if(1&e&&(Qn(Bn,7),Qn(OB,5)),2&e){let r;Ue(r=ze())&&(i.template=r.first),Ue(r=ze())&&(i.panel=r.first)}},inputs:{ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],displayWith:"displayWith",autoActiveFirstOption:"autoActiveFirstOption",panelWidth:"panelWidth",classList:["class","classList"]},outputs:{optionSelected:"optionSelected",opened:"opened",closed:"closed",optionActivated:"optionActivated"},features:[q]}),n})(),HB=(()=>{class n extends BB{constructor(){super(...arguments),this._visibleClass="mat-autocomplete-visible",this._hiddenClass="mat-autocomplete-hidden"}}return n.\u0275fac=function(){let t;return function(i){return(t||(t=$e(n)))(i||n)}}(),n.\u0275cmp=An({type:n,selectors:[["mat-autocomplete"]],contentQueries:function(e,i,r){if(1&e&&(rn(r,kw,5),rn(r,Fw,5)),2&e){let s;Ue(s=ze())&&(i.optionGroups=s),Ue(s=ze())&&(i.options=s)}},hostAttrs:[1,"mat-autocomplete"],inputs:{disableRipple:"disableRipple"},exportAs:["matAutocomplete"],features:[oe([{provide:xw,useExisting:n}]),q],ngContentSelectors:RB,decls:1,vars:0,consts:[["role","listbox",1,"mat-autocomplete-panel",3,"id","ngClass"],["panel",""]],template:function(e,i){1&e&&(Gr(),Te(0,FB,3,4,"ng-template"))},directives:[jd],styles:[".mat-autocomplete-panel{min-width:112px;max-width:280px;overflow:auto;-webkit-overflow-scrolling:touch;visibility:hidden;max-width:none;max-height:256px;position:relative;width:100%;border-bottom-left-radius:4px;border-bottom-right-radius:4px}.mat-autocomplete-panel.mat-autocomplete-visible{visibility:visible}.mat-autocomplete-panel.mat-autocomplete-hidden{visibility:hidden}.mat-autocomplete-panel-above .mat-autocomplete-panel{border-radius:0;border-top-left-radius:4px;border-top-right-radius:4px}.mat-autocomplete-panel .mat-divider-horizontal{margin-top:-1px}.cdk-high-contrast-active .mat-autocomplete-panel{outline:solid 1px}mat-autocomplete{display:none}\n"],encapsulation:2,changeDetection:0}),n})();const cE=new T("mat-autocomplete-scroll-strategy"),$B={provide:cE,deps:[os],useFactory:function jB(n){return()=>n.scrollStrategies.reposition()}},UB={provide:un,useExisting:fe(()=>uE),multi:!0};let zB=(()=>{class n{constructor(e,i,r,s,o,a,l,c,u,d,h){this._element=e,this._overlay=i,this._viewContainerRef=r,this._zone=s,this._changeDetectorRef=o,this._dir=l,this._formField=c,this._document=u,this._viewportRuler=d,this._defaults=h,this._componentDestroyed=!1,this._autocompleteDisabled=!1,this._manuallyFloatingLabel=!1,this._viewportSubscription=W.EMPTY,this._canOpenOnNextFocus=!0,this._closeKeyEventStream=new de,this._windowBlurHandler=()=>{this._canOpenOnNextFocus=this._document.activeElement!==this._element.nativeElement||this.panelOpen},this._onChange=()=>{},this._onTouched=()=>{},this.position="auto",this.autocompleteAttribute="off",this._overlayAttached=!1,this.optionSelections=function WV(n){return new Ce(t=>{let e;try{e=n()}catch(r){return void t.error(r)}return(e?ds(e):eh()).subscribe(t)})}(()=>{const f=this.autocomplete?this.autocomplete.options:null;return f?f.changes.pipe(Do(f),uo(()=>si(...f.map(p=>p.onSelectionChange)))):this._zone.onStable.pipe(Ei(1),uo(()=>this.optionSelections))}),this._scrollStrategy=a}get autocompleteDisabled(){return this._autocompleteDisabled}set autocompleteDisabled(e){this._autocompleteDisabled=cn(e)}ngAfterViewInit(){const e=this._getWindow();void 0!==e&&this._zone.runOutsideAngular(()=>e.addEventListener("blur",this._windowBlurHandler))}ngOnChanges(e){e.position&&this._positionStrategy&&(this._setStrategyPositions(this._positionStrategy),this.panelOpen&&this._overlayRef.updatePosition())}ngOnDestroy(){const e=this._getWindow();void 0!==e&&e.removeEventListener("blur",this._windowBlurHandler),this._viewportSubscription.unsubscribe(),this._componentDestroyed=!0,this._destroyPanel(),this._closeKeyEventStream.complete()}get panelOpen(){return this._overlayAttached&&this.autocomplete.showPanel}openPanel(){this._attachOverlay(),this._floatLabel()}closePanel(){this._resetLabel(),this._overlayAttached&&(this.panelOpen&&this.autocomplete.closed.emit(),this.autocomplete._isOpen=this._overlayAttached=!1,this._overlayRef&&this._overlayRef.hasAttached()&&(this._overlayRef.detach(),this._closingActionsSubscription.unsubscribe()),this._componentDestroyed||this._changeDetectorRef.detectChanges())}updatePosition(){this._overlayAttached&&this._overlayRef.updatePosition()}get panelClosingActions(){return si(this.optionSelections,this.autocomplete._keyManager.tabOut.pipe(rr(()=>this._overlayAttached)),this._closeKeyEventStream,this._getOutsideClickStream(),this._overlayRef?this._overlayRef.detachments().pipe(rr(()=>this._overlayAttached)):Mn()).pipe(Ze(e=>e instanceof Ow?e:null))}get activeOption(){return this.autocomplete&&this.autocomplete._keyManager?this.autocomplete._keyManager.activeItem:null}_getOutsideClickStream(){return si(ss(this._document,"click"),ss(this._document,"auxclick"),ss(this._document,"touchend")).pipe(rr(e=>{const i=vi(e),r=this._formField?this._formField._elementRef.nativeElement:null,s=this.connectedTo?this.connectedTo.elementRef.nativeElement:null;return this._overlayAttached&&i!==this._element.nativeElement&&(!r||!r.contains(i))&&(!s||!s.contains(i))&&!!this._overlayRef&&!this._overlayRef.overlayElement.contains(i)}))}writeValue(e){Promise.resolve().then(()=>this._setTriggerValue(e))}registerOnChange(e){this._onChange=e}registerOnTouched(e){this._onTouched=e}setDisabledState(e){this._element.nativeElement.disabled=e}_handleKeydown(e){const i=e.keyCode;if(27===i&&!ir(e)&&e.preventDefault(),this.activeOption&&13===i&&this.panelOpen&&!ir(e))this.activeOption._selectViaInteraction(),this._resetActiveItem(),e.preventDefault();else if(this.autocomplete){const r=this.autocomplete._keyManager.activeItem,s=38===i||40===i;this.panelOpen||9===i?this.autocomplete._keyManager.onKeydown(e):s&&this._canOpen()&&this.openPanel(),(s||this.autocomplete._keyManager.activeItem!==r)&&this._scrollToOption(this.autocomplete._keyManager.activeItemIndex||0)}}_handleInput(e){let i=e.target,r=i.value;"number"===i.type&&(r=""==r?null:parseFloat(r)),this._previousValue!==r&&(this._previousValue=r,this._onChange(r),this._canOpen()&&this._document.activeElement===e.target&&this.openPanel())}_handleFocus(){this._canOpenOnNextFocus?this._canOpen()&&(this._previousValue=this._element.nativeElement.value,this._attachOverlay(),this._floatLabel(!0)):this._canOpenOnNextFocus=!0}_floatLabel(e=!1){this._formField&&"auto"===this._formField.floatLabel&&(e?this._formField._animateAndLockLabel():this._formField.floatLabel="always",this._manuallyFloatingLabel=!0)}_resetLabel(){this._manuallyFloatingLabel&&(this._formField.floatLabel="auto",this._manuallyFloatingLabel=!1)}_subscribeToClosingActions(){return si(this._zone.onStable.pipe(Ei(1)),this.autocomplete.options.changes.pipe(wo(()=>this._positionStrategy.reapplyLastPosition()),function IB(n,t=Hl){const i=function AB(n){return n instanceof Date&&!isNaN(+n)}(n)?+n-t.now():Math.abs(n);return r=>r.lift(new xB(i,t))}(0))).pipe(uo(()=>{const r=this.panelOpen;return this._resetActiveItem(),this.autocomplete._setVisibility(),this.panelOpen&&(this._overlayRef.updatePosition(),r!==this.panelOpen&&this.autocomplete.opened.emit()),this.panelClosingActions}),Ei(1)).subscribe(r=>this._setValueAndClose(r))}_destroyPanel(){this._overlayRef&&(this.closePanel(),this._overlayRef.dispose(),this._overlayRef=null)}_setTriggerValue(e){const i=this.autocomplete&&this.autocomplete.displayWith?this.autocomplete.displayWith(e):e,r=null!=i?i:"";this._formField?this._formField._control.value=r:this._element.nativeElement.value=r,this._previousValue=r}_setValueAndClose(e){const i=e&&e.source;i&&(this._clearPreviousSelectedOption(i),this._setTriggerValue(i.value),this._onChange(i.value),this.autocomplete._emitSelectEvent(i),this._element.nativeElement.focus()),this.closePanel()}_clearPreviousSelectedOption(e){this.autocomplete.options.forEach(i=>{i!==e&&i.selected&&i.deselect()})}_attachOverlay(){var e;let i=this._overlayRef;i?(this._positionStrategy.setOrigin(this._getConnectedElement()),i.updateSize({width:this._getPanelWidth()})):(this._portal=new Xw(this.autocomplete.template,this._viewContainerRef,{id:null===(e=this._formField)||void 0===e?void 0:e.getLabelId()}),i=this._overlay.create(this._getOverlayConfig()),this._overlayRef=i,i.keydownEvents().subscribe(s=>{(27===s.keyCode&&!ir(s)||38===s.keyCode&&ir(s,"altKey"))&&(this._closeKeyEventStream.next(),this._resetActiveItem(),s.stopPropagation(),s.preventDefault())}),this._viewportSubscription=this._viewportRuler.change().subscribe(()=>{this.panelOpen&&i&&i.updateSize({width:this._getPanelWidth()})})),i&&!i.hasAttached()&&(i.attach(this._portal),this._closingActionsSubscription=this._subscribeToClosingActions());const r=this.panelOpen;this.autocomplete._setVisibility(),this.autocomplete._isOpen=this._overlayAttached=!0,this.panelOpen&&r!==this.panelOpen&&this.autocomplete.opened.emit()}_getOverlayConfig(){var e;return new tE({positionStrategy:this._getOverlayPosition(),scrollStrategy:this._scrollStrategy(),width:this._getPanelWidth(),direction:this._dir,panelClass:null===(e=this._defaults)||void 0===e?void 0:e.overlayPanelClass})}_getOverlayPosition(){const e=this._overlay.position().flexibleConnectedTo(this._getConnectedElement()).withFlexibleDimensions(!1).withPush(!1);return this._setStrategyPositions(e),this._positionStrategy=e,e}_setStrategyPositions(e){const i=[{originX:"start",originY:"bottom",overlayX:"start",overlayY:"top"},{originX:"end",originY:"bottom",overlayX:"end",overlayY:"top"}],r=this._aboveClass,s=[{originX:"start",originY:"top",overlayX:"start",overlayY:"bottom",panelClass:r},{originX:"end",originY:"top",overlayX:"end",overlayY:"bottom",panelClass:r}];let o;o="above"===this.position?s:"below"===this.position?i:[...i,...s],e.withPositions(o)}_getConnectedElement(){return this.connectedTo?this.connectedTo.elementRef:this._formField?this._formField.getConnectedOverlayOrigin():this._element}_getPanelWidth(){return this.autocomplete.panelWidth||this._getHostWidth()}_getHostWidth(){return this._getConnectedElement().nativeElement.getBoundingClientRect().width}_resetActiveItem(){const e=this.autocomplete;e.autoActiveFirstOption?e._keyManager.setFirstItemActive():e._keyManager.setActiveItem(-1)}_canOpen(){const e=this._element.nativeElement;return!e.readOnly&&!e.disabled&&!this._autocompleteDisabled}_getWindow(){var e;return(null===(e=this._document)||void 0===e?void 0:e.defaultView)||window}_scrollToOption(e){const i=this.autocomplete,r=function eV(n,t,e){if(e.length){let i=t.toArray(),r=e.toArray(),s=0;for(let o=0;o<n+1;o++)i[o].group&&i[o].group===r[s]&&s++;return s}return 0}(e,i.options,i.optionGroups);if(0===e&&1===r)i._setScrollTop(0);else if(i.panel){const s=i.options.toArray()[e];if(s){const o=s._getHostElement(),a=function tV(n,t,e,i){return n<e?n:n+t>e+i?Math.max(0,n-i+t):e}(o.offsetTop,o.offsetHeight,i._getScrollTop(),i.panel.nativeElement.offsetHeight);i._setScrollTop(a)}}}}return n.\u0275fac=function(e){return new(e||n)(g(Ee),g(os),g(nn),g(le),g(ei),g(cE),g(Bl,8),g(mf,9),g(Z,8),g(_f),g(lE,8))},n.\u0275dir=k({type:n,inputs:{autocomplete:["matAutocomplete","autocomplete"],position:["matAutocompletePosition","position"],connectedTo:["matAutocompleteConnectedTo","connectedTo"],autocompleteAttribute:["autocomplete","autocompleteAttribute"],autocompleteDisabled:["matAutocompleteDisabled","autocompleteDisabled"]},features:[Qt]}),n})(),uE=(()=>{class n extends zB{constructor(){super(...arguments),this._aboveClass="mat-autocomplete-panel-above"}}return n.\u0275fac=function(){let t;return function(i){return(t||(t=$e(n)))(i||n)}}(),n.\u0275dir=k({type:n,selectors:[["input","matAutocomplete",""],["textarea","matAutocomplete",""]],hostAttrs:[1,"mat-autocomplete-trigger"],hostVars:7,hostBindings:function(e,i){1&e&&Ae("focusin",function(){return i._handleFocus()})("blur",function(){return i._onTouched()})("input",function(s){return i._handleInput(s)})("keydown",function(s){return i._handleKeydown(s)}),2&e&&nt("autocomplete",i.autocompleteAttribute)("role",i.autocompleteDisabled?null:"combobox")("aria-autocomplete",i.autocompleteDisabled?null:"list")("aria-activedescendant",i.panelOpen&&i.activeOption?i.activeOption.id:null)("aria-expanded",i.autocompleteDisabled?null:i.panelOpen.toString())("aria-owns",i.autocompleteDisabled||!i.panelOpen||null==i.autocomplete?null:i.autocomplete.id)("aria-haspopup",!i.autocompleteDisabled)},exportAs:["matAutocompleteTrigger"],features:[oe([UB]),q]}),n})(),GB=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=me({type:n}),n.\u0275inj=ce({providers:[$B],imports:[[aE,Rw,Tt,ao],Wl,Rw,Tt]}),n})();const WB=["mat-button",""],qB=["*"],YB=["mat-button","mat-flat-button","mat-icon-button","mat-raised-button","mat-stroked-button","mat-mini-fab","mat-fab"],ZB=cf(jL(Dw(class{constructor(n){this._elementRef=n}})));let XB=(()=>{class n extends ZB{constructor(e,i,r){super(e),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 YB)this._hasHostAttributes(s)&&this._getHostElement().classList.add(s);e.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(e,i){e?this._focusMonitor.focusVia(this._getHostElement(),e,i):this._getHostElement().focus(i)}_getHostElement(){return this._elementRef.nativeElement}_isRippleDisabled(){return this.disableRipple||this.disabled}_hasHostAttributes(...e){return e.some(i=>this._getHostElement().hasAttribute(i))}}return n.\u0275fac=function(e){return new(e||n)(g(Ee),g(vw),g(ts,8))},n.\u0275cmp=An({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(e,i){if(1&e&&Qn(df,5),2&e){let r;Ue(r=ze())&&(i.ripple=r.first)}},hostAttrs:[1,"mat-focus-indicator"],hostVars:5,hostBindings:function(e,i){2&e&&(nt("disabled",i.disabled||null),mt("_mat-animation-noopable","NoopAnimations"===i._animationMode)("mat-button-disabled",i.disabled))},inputs:{disabled:"disabled",disableRipple:"disableRipple",color:"color"},exportAs:["matButton"],features:[q],attrs:WB,ngContentSelectors:qB,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(e,i){1&e&&(Gr(),K(0,"span",0),Gt(1),J(),Xn(2,"span",1)(3,"span",2)),2&e&&(j(2),mt("mat-button-ripple-round",i.isRoundButton||i.isIconButton),$("matRippleDisabled",i._isRippleDisabled())("matRippleCentered",i.isIconButton)("matRippleTrigger",i._getHostElement()))},directives:[df],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})(),QB=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=me({type:n}),n.\u0275inj=ce({imports:[[Iw,Tt],Tt]}),n})();class JB extends ye{notifyNext(t,e,i,r,s){this.destination.next(e)}notifyError(t,e){this.destination.error(t)}notifyComplete(t){this.destination.complete()}}class eH extends ye{constructor(t,e,i){super(),this.parent=t,this.outerValue=e,this.outerIndex=i,this.index=0}_next(t){this.parent.notifyNext(this.outerValue,t,this.outerIndex,this.index++,this)}_error(t){this.parent.notifyError(t,this),this.unsubscribe()}_complete(){this.parent.notifyComplete(this),this.unsubscribe()}}function tH(n,t,e,i,r=new eH(n,e,i)){if(!r.closed)return t instanceof Ce?t.subscribe(r):Xl(t)(r)}const dE={};class iH{constructor(t){this.resultSelector=t}call(t,e){return e.subscribe(new rH(t,this.resultSelector))}}class rH extends JB{constructor(t,e){super(t),this.resultSelector=e,this.active=0,this.values=[],this.observables=[]}_next(t){this.values.push(dE),this.observables.push(t)}_complete(){const t=this.observables,e=t.length;if(0===e)this.destination.complete();else{this.active=e,this.toRespond=e;for(let i=0;i<e;i++)this.add(tH(this,t[i],void 0,i))}}notifyComplete(t){0==(this.active-=1)&&this.destination.complete()}notifyNext(t,e,i){const r=this.values,o=this.toRespond?r[i]===dE?--this.toRespond:this.toRespond:0;r[i]=e,0===o&&(this.resultSelector?this._tryResultSelector(r):this.destination.next(r.slice()))}_tryResultSelector(t){let e;try{e=this.resultSelector.apply(this,t)}catch(i){return void this.destination.error(i)}this.destination.next(e)}}const hE=new Set;let as,sH=(()=>{class n{constructor(e){this._platform=e,this._matchMedia=this._platform.isBrowser&&window.matchMedia?window.matchMedia.bind(window):aH}matchMedia(e){return(this._platform.WEBKIT||this._platform.BLINK)&&function oH(n){if(!hE.has(n))try{as||(as=document.createElement("style"),as.setAttribute("type","text/css"),document.head.appendChild(as)),as.sheet&&(as.sheet.insertRule(`@media ${n} {body{ }}`,0),hE.add(n))}catch(t){console.error(t)}}(e),this._matchMedia(e)}}return n.\u0275fac=function(e){return new(e||n)(v(St))},n.\u0275prov=x({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();function aH(n){return{matches:"all"===n||""===n,media:n,addListener:()=>{},removeListener:()=>{}}}let lH=(()=>{class n{constructor(e,i){this._mediaMatcher=e,this._zone=i,this._queries=new Map,this._destroySubject=new de}ngOnDestroy(){this._destroySubject.next(),this._destroySubject.complete()}isMatched(e){return fE(El(e)).some(r=>this._registerQuery(r).mql.matches)}observe(e){let s=function nH(...n){let t,e;return ur(n[n.length-1])&&(e=n.pop()),"function"==typeof n[n.length-1]&&(t=n.pop()),1===n.length&&se(n[0])&&(n=n[0]),ec(n,e).lift(new iH(t))}(fE(El(e)).map(o=>this._registerQuery(o).observable));return s=hf(s.pipe(Ei(1)),s.pipe(lw(1),jl(0))),s.pipe(Ze(o=>{const a={matches:!1,breakpoints:{}};return o.forEach(({matches:l,query:c})=>{a.matches=a.matches||l,a.breakpoints[c]=l}),a}))}_registerQuery(e){if(this._queries.has(e))return this._queries.get(e);const i=this._mediaMatcher.matchMedia(e),s={observable:new Ce(o=>{const a=l=>this._zone.run(()=>o.next(l));return i.addListener(a),()=>{i.removeListener(a)}}).pipe(Do(i),Ze(({matches:o})=>({query:e,matches:o})),Ot(this._destroySubject)),mql:i};return this._queries.set(e,s),s}}return n.\u0275fac=function(e){return new(e||n)(v(sH),v(le))},n.\u0275prov=x({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();function fE(n){return n.map(t=>t.split(",")).reduce((t,e)=>t.concat(e)).map(t=>t.trim())}const uH={tooltipState:ub("state",[ih("initial, void, hidden",jn({opacity:0,transform:"scale(0)"})),ih("visible",jn({transform:"scale(1)"})),rh("* => visible",nh("200ms cubic-bezier(0, 0, 0.2, 1)",FR([jn({opacity:0,transform:"scale(0)",offset:0}),jn({opacity:.5,transform:"scale(0.99)",offset:.5}),jn({opacity:1,transform:"scale(1)",offset:1})]))),rh("* => hidden",nh("100ms cubic-bezier(0, 0, 0.2, 1)",jn({opacity:0})))])},pE="tooltip-panel",mE=go({passive:!0}),gE=new T("mat-tooltip-scroll-strategy"),pH={provide:gE,deps:[os],useFactory:function fH(n){return()=>n.scrollStrategies.reposition({scrollThrottle:20})}},mH=new T("mat-tooltip-default-options",{providedIn:"root",factory:function gH(){return{showDelay:0,hideDelay:0,touchendHideDelay:1500}}});let _H=(()=>{class n{constructor(e,i,r,s,o,a,l,c,u,d,h,f){this._overlay=e,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 de,this._scrollStrategy=u,this._document=f,h&&(h.position&&(this.position=h.position),h.touchGestures&&(this.touchGestures=h.touchGestures)),d.change.pipe(Ot(this._destroyed)).subscribe(()=>{this._overlayRef&&this._updatePosition(this._overlayRef)})}get position(){return this._position}set position(e){var i;e!==this._position&&(this._position=e,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(e){this._disabled=cn(e),this._disabled?this.hide(0):this._setupPointerEnterEventsIfNeeded()}get showDelay(){return this._showDelay}set showDelay(e){this._showDelay=xh(e)}get hideDelay(){return this._hideDelay}set hideDelay(e){this._hideDelay=xh(e)}get message(){return this._message}set message(e){this._ariaDescriber.removeDescription(this._elementRef.nativeElement,this._message,"tooltip"),this._message=null!=e?String(e).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(e){this._tooltipClass=e,this._tooltipInstance&&this._setTooltipClass(this._tooltipClass)}ngAfterViewInit(){this._viewInitialized=!0,this._setupPointerEnterEventsIfNeeded(),this._focusMonitor.monitor(this._elementRef).pipe(Ot(this._destroyed)).subscribe(e=>{e?"keyboard"===e&&this._ngZone.run(()=>this.show()):this._ngZone.run(()=>this.hide(0))})}ngOnDestroy(){const e=this._elementRef.nativeElement;clearTimeout(this._touchstartTimeout),this._overlayRef&&(this._overlayRef.dispose(),this._tooltipInstance=null),this._passiveListeners.forEach(([i,r])=>{e.removeEventListener(i,r,mE)}),this._passiveListeners.length=0,this._destroyed.next(),this._destroyed.complete(),this._ariaDescriber.removeDescription(e,this.message,"tooltip"),this._focusMonitor.stopMonitoring(e)}show(e=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 Zw(this._tooltipComponent,this._viewContainerRef),this._tooltipInstance=i.attach(this._portal).instance,this._tooltipInstance.afterHidden().pipe(Ot(this._destroyed)).subscribe(()=>this._detach()),this._setTooltipClass(this._tooltipClass),this._updateTooltipMessage(),this._tooltipInstance.show(e)}hide(e=this.hideDelay){this._tooltipInstance&&this._tooltipInstance.hide(e)}toggle(){this._isTooltipVisible()?this.hide():this.show()}_isTooltipVisible(){return!!this._tooltipInstance&&this._tooltipInstance.isVisible()}_createOverlay(){if(this._overlayRef)return this._overlayRef;const e=this._scrollDispatcher.getAncestorScrollContainers(this._elementRef),i=this._overlay.position().flexibleConnectedTo(this._elementRef).withTransformOriginOn(`.${this._cssClassPrefix}-tooltip`).withFlexibleDimensions(!1).withViewportMargin(this._viewportMargin).withScrollableContainers(e);return i.positionChanges.pipe(Ot(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}-${pE}`,scrollStrategy:this._scrollStrategy()}),this._updatePosition(this._overlayRef),this._overlayRef.detachments().pipe(Ot(this._destroyed)).subscribe(()=>this._detach()),this._overlayRef.outsidePointerEvents().pipe(Ot(this._destroyed)).subscribe(()=>{var r;return null===(r=this._tooltipInstance)||void 0===r?void 0:r._handleBodyInteraction()}),this._overlayRef.keydownEvents().pipe(Ot(this._destroyed)).subscribe(r=>{this._isTooltipVisible()&&27===r.keyCode&&!ir(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(e){const i=e.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(e){return e}_getOrigin(){const e=!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&&e||"right"==i&&!e?r={originX:"start",originY:"center"}:("after"==i||"right"==i&&e||"left"==i&&!e)&&(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 e=!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&&e||"right"==i&&!e?r={overlayX:"end",overlayY:"center"}:("after"==i||"right"==i&&e||"left"==i&&!e)&&(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(Ei(1),Ot(this._destroyed)).subscribe(()=>{this._tooltipInstance&&this._overlayRef.updatePosition()}))}_setTooltipClass(e){this._tooltipInstance&&(this._tooltipInstance.tooltipClass=e,this._tooltipInstance._markForCheck())}_invertPosition(e,i){return"above"===this.position||"below"===this.position?"top"===i?i="bottom":"bottom"===i&&(i="top"):"end"===e?e="start":"start"===e&&(e="end"),{x:e,y:i}}_updateCurrentPositionClass(e){const{overlayY:i,originX:r,originY:s}=e;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}-${pE}-`;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 e=[];if(this._platformSupportsMouseEvents())e.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)};e.push(["touchend",i],["touchcancel",i])}this._addListeners(e),this._passiveListeners.push(...e)}_addListeners(e){e.forEach(([i,r])=>{this._elementRef.nativeElement.addEventListener(i,r,mE)})}_platformSupportsMouseEvents(){return!this._platform.IOS&&!this._platform.ANDROID}_wheelListener(e){if(this._isTooltipVisible()){const i=this._document.elementFromPoint(e.clientX,e.clientY),r=this._elementRef.nativeElement;i!==r&&!r.contains(i)&&this.hide()}}_disableNativeGesturesIfNecessary(){const e=this.touchGestures;if("off"!==e){const i=this._elementRef.nativeElement,r=i.style;("on"===e||"INPUT"!==i.nodeName&&"TEXTAREA"!==i.nodeName)&&(r.userSelect=r.msUserSelect=r.webkitUserSelect=r.MozUserSelect="none"),("on"===e||!i.draggable)&&(r.webkitUserDrag="none"),r.touchAction="none",r.webkitTapHighlightColor="transparent"}}}return n.\u0275fac=function(e){Uu()},n.\u0275dir=k({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})(),yH=(()=>{class n extends _H{constructor(e,i,r,s,o,a,l,c,u,d,h,f){super(e,i,r,s,o,a,l,c,u,d,h,f),this._tooltipComponent=bH}}return n.\u0275fac=function(e){return new(e||n)(g(os),g(Ee),g(Kw),g(nn),g(le),g(St),g(wL),g(vw),g(gE),g(Bl,8),g(mH,8),g(Z))},n.\u0275dir=k({type:n,selectors:[["","matTooltip",""]],hostAttrs:[1,"mat-tooltip-trigger"],exportAs:["matTooltip"],features:[q]}),n})(),vH=(()=>{class n{constructor(e){this._changeDetectorRef=e,this._visibility="initial",this._closeOnInteraction=!1,this._onHide=new de}show(e){clearTimeout(this._hideTimeoutId),this._closeOnInteraction=!0,this._showTimeoutId=setTimeout(()=>{this._visibility="visible",this._showTimeoutId=void 0,this._onShow(),this._markForCheck()},e)}hide(e){clearTimeout(this._showTimeoutId),this._hideTimeoutId=setTimeout(()=>{this._visibility="hidden",this._hideTimeoutId=void 0,this._markForCheck()},e)}afterHidden(){return this._onHide}isVisible(){return"visible"===this._visibility}ngOnDestroy(){clearTimeout(this._showTimeoutId),clearTimeout(this._hideTimeoutId),this._onHide.complete()}_animationStart(){this._closeOnInteraction=!1}_animationDone(e){const i=e.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(e){return new(e||n)(g(ei))},n.\u0275dir=k({type:n}),n})(),bH=(()=>{class n extends vH{constructor(e,i){super(e),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(e){return new(e||n)(g(ei),g(lH))},n.\u0275cmp=An({type:n,selectors:[["mat-tooltip-component"]],hostAttrs:["aria-hidden","true"],hostVars:2,hostBindings:function(e,i){2&e&&qu("zoom","visible"===i._visibility?1:null)},features:[q],decls:3,vars:7,consts:[[1,"mat-tooltip",3,"ngClass"]],template:function(e,i){if(1&e&&(K(0,"div",0),Ae("@state.start",function(){return i._animationStart()})("@state.done",function(s){return i._animationDone(s)}),function Sy(n,t){const e=te();let i;const r=n+20;e.firstCreatePass?(i=function ax(n,t){if(t)for(let e=t.length-1;e>=0;e--){const i=t[e];if(n===i.name)return i}}(t,e.pipeRegistry),e.data[r]=i,i.onDestroy&&(e.destroyHooks||(e.destroyHooks=[])).push(r,i.onDestroy)):i=e.data[r];const s=i.factory||(i.factory=Ri(i.type)),o=oi(g);try{const a=Yo(!1),l=s();return Yo(a),function TT(n,t,e,i){e>=n.data.length&&(n.data[e]=null,n.blueprint[e]=null),t[e]=i}(e,C(),r,l),l}finally{oi(o)}}(1,"async"),wt(2),J()),2&e){let r;mt("mat-tooltip-handset",null==(r=My(1,5,i._isHandset))?null:r.matches),$("ngClass",i.tooltipClass)("@state",i._visibility),j(2),wn(i.message)}},directives:[jd],pipes:[Uv],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:[uH.tooltipState]},changeDetection:0}),n})(),CH=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=me({type:n}),n.\u0275inj=ce({providers:[pH],imports:[[NL,ao,aE,Tt],Tt,Wl]}),n})();class EH{constructor(t){this.selector=t}call(t,e){return e.subscribe(new DH(t,this.selector,this.caught))}}class DH extends fs{constructor(t,e,i){super(t),this.selector=e,this.caught=i}error(t){if(!this.isStopped){let e;try{e=this.selector(t,this.caught)}catch(s){return void super.error(s)}this._unsubscribeAndRecycle();const i=new hs(this);this.add(i);const r=ps(e,i);r!==i&&this.add(r)}}}class MH{constructor(t){this.callback=t}call(t,e){return e.subscribe(new TH(t,this.callback))}}class TH extends ye{constructor(t,e){super(t),this.add(new W(e))}}class IH{}class Di{constructor(t){this.normalizedNames=new Map,this.lazyUpdate=null,t?this.lazyInit="string"==typeof t?()=>{this.headers=new Map,t.split("\n").forEach(e=>{const i=e.indexOf(":");if(i>0){const r=e.slice(0,i),s=r.toLowerCase(),o=e.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(t).forEach(e=>{let i=t[e];const r=e.toLowerCase();"string"==typeof i&&(i=[i]),i.length>0&&(this.headers.set(r,i),this.maybeSetNormalizedName(e,r))})}:this.headers=new Map}has(t){return this.init(),this.headers.has(t.toLowerCase())}get(t){this.init();const e=this.headers.get(t.toLowerCase());return e&&e.length>0?e[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(t){return this.init(),this.headers.get(t.toLowerCase())||null}append(t,e){return this.clone({name:t,value:e,op:"a"})}set(t,e){return this.clone({name:t,value:e,op:"s"})}delete(t,e){return this.clone({name:t,value:e,op:"d"})}maybeSetNormalizedName(t,e){this.normalizedNames.has(e)||this.normalizedNames.set(e,t)}init(){this.lazyInit&&(this.lazyInit instanceof Di?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(t=>this.applyUpdate(t)),this.lazyUpdate=null))}copyFrom(t){t.init(),Array.from(t.headers.keys()).forEach(e=>{this.headers.set(e,t.headers.get(e)),this.normalizedNames.set(e,t.normalizedNames.get(e))})}clone(t){const e=new Di;return e.lazyInit=this.lazyInit&&this.lazyInit instanceof Di?this.lazyInit:this,e.lazyUpdate=(this.lazyUpdate||[]).concat([t]),e}applyUpdate(t){const e=t.name.toLowerCase();switch(t.op){case"a":case"s":let i=t.value;if("string"==typeof i&&(i=[i]),0===i.length)return;this.maybeSetNormalizedName(t.name,e);const r=("a"===t.op?this.headers.get(e):void 0)||[];r.push(...i),this.headers.set(e,r);break;case"d":const s=t.value;if(s){let o=this.headers.get(e);if(!o)return;o=o.filter(a=>-1===s.indexOf(a)),0===o.length?(this.headers.delete(e),this.normalizedNames.delete(e)):this.headers.set(e,o)}else this.headers.delete(e),this.normalizedNames.delete(e)}}forEach(t){this.init(),Array.from(this.normalizedNames.keys()).forEach(e=>t(this.normalizedNames.get(e),this.headers.get(e)))}}class xH{encodeKey(t){return _E(t)}encodeValue(t){return _E(t)}decodeKey(t){return decodeURIComponent(t)}decodeValue(t){return decodeURIComponent(t)}}const OH=/%(\d[a-f0-9])/gi,FH={40:"@","3A":":",24:"$","2C":",","3B":";","2B":"+","3D":"=","3F":"?","2F":"/"};function _E(n){return encodeURIComponent(n).replace(OH,(t,e)=>{var i;return null!==(i=FH[e])&&void 0!==i?i:t})}function yE(n){return`${n}`}class Si{constructor(t={}){if(this.updates=null,this.cloneFrom=null,this.encoder=t.encoder||new xH,t.fromString){if(t.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=function kH(n,t){const e=new Map;return n.length>0&&n.replace(/^\?/,"").split("&").forEach(r=>{const s=r.indexOf("="),[o,a]=-1==s?[t.decodeKey(r),""]:[t.decodeKey(r.slice(0,s)),t.decodeValue(r.slice(s+1))],l=e.get(o)||[];l.push(a),e.set(o,l)}),e}(t.fromString,this.encoder)}else t.fromObject?(this.map=new Map,Object.keys(t.fromObject).forEach(e=>{const i=t.fromObject[e];this.map.set(e,Array.isArray(i)?i:[i])})):this.map=null}has(t){return this.init(),this.map.has(t)}get(t){this.init();const e=this.map.get(t);return e?e[0]:null}getAll(t){return this.init(),this.map.get(t)||null}keys(){return this.init(),Array.from(this.map.keys())}append(t,e){return this.clone({param:t,value:e,op:"a"})}appendAll(t){const e=[];return Object.keys(t).forEach(i=>{const r=t[i];Array.isArray(r)?r.forEach(s=>{e.push({param:i,value:s,op:"a"})}):e.push({param:i,value:r,op:"a"})}),this.clone(e)}set(t,e){return this.clone({param:t,value:e,op:"s"})}delete(t,e){return this.clone({param:t,value:e,op:"d"})}toString(){return this.init(),this.keys().map(t=>{const e=this.encoder.encodeKey(t);return this.map.get(t).map(i=>e+"="+this.encoder.encodeValue(i)).join("&")}).filter(t=>""!==t).join("&")}clone(t){const e=new Si({encoder:this.encoder});return e.cloneFrom=this.cloneFrom||this,e.updates=(this.updates||[]).concat(t),e}init(){null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(t=>this.map.set(t,this.cloneFrom.map.get(t))),this.updates.forEach(t=>{switch(t.op){case"a":case"s":const e=("a"===t.op?this.map.get(t.param):void 0)||[];e.push(yE(t.value)),this.map.set(t.param,e);break;case"d":if(void 0===t.value){this.map.delete(t.param);break}{let i=this.map.get(t.param)||[];const r=i.indexOf(yE(t.value));-1!==r&&i.splice(r,1),i.length>0?this.map.set(t.param,i):this.map.delete(t.param)}}}),this.cloneFrom=this.updates=null)}}class RH{constructor(){this.map=new Map}set(t,e){return this.map.set(t,e),this}get(t){return this.map.has(t)||this.map.set(t,t.defaultValue()),this.map.get(t)}delete(t){return this.map.delete(t),this}has(t){return this.map.has(t)}keys(){return this.map.keys()}}function vE(n){return"undefined"!=typeof ArrayBuffer&&n instanceof ArrayBuffer}function bE(n){return"undefined"!=typeof Blob&&n instanceof Blob}function CE(n){return"undefined"!=typeof FormData&&n instanceof FormData}class So{constructor(t,e,i,r){let s;if(this.url=e,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=t.toUpperCase(),function NH(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 Di),this.context||(this.context=new RH),this.params){const o=this.params.toString();if(0===o.length)this.urlWithParams=e;else{const a=e.indexOf("?");this.urlWithParams=e+(-1===a?"?":a<e.length-1?"&":"")+o}}else this.params=new Si,this.urlWithParams=e}serializeBody(){return null===this.body?null:vE(this.body)||bE(this.body)||CE(this.body)||function PH(n){return"undefined"!=typeof URLSearchParams&&n instanceof URLSearchParams}(this.body)||"string"==typeof this.body?this.body:this.body instanceof Si?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||CE(this.body)?null:bE(this.body)?this.body.type||null:vE(this.body)?null:"string"==typeof this.body?"text/plain":this.body instanceof Si?"application/x-www-form-urlencoded;charset=UTF-8":"object"==typeof this.body||"number"==typeof this.body||"boolean"==typeof this.body?"application/json":null}clone(t={}){var e;const i=t.method||this.method,r=t.url||this.url,s=t.responseType||this.responseType,o=void 0!==t.body?t.body:this.body,a=void 0!==t.withCredentials?t.withCredentials:this.withCredentials,l=void 0!==t.reportProgress?t.reportProgress:this.reportProgress;let c=t.headers||this.headers,u=t.params||this.params;const d=null!==(e=t.context)&&void 0!==e?e:this.context;return void 0!==t.setHeaders&&(c=Object.keys(t.setHeaders).reduce((h,f)=>h.set(f,t.setHeaders[f]),c)),t.setParams&&(u=Object.keys(t.setParams).reduce((h,f)=>h.set(f,t.setParams[f]),u)),new So(i,r,o,{params:u,headers:c,context:d,reportProgress:l,responseType:s,withCredentials:a})}}var ct=(()=>((ct=ct||{})[ct.Sent=0]="Sent",ct[ct.UploadProgress=1]="UploadProgress",ct[ct.ResponseHeader=2]="ResponseHeader",ct[ct.DownloadProgress=3]="DownloadProgress",ct[ct.Response=4]="Response",ct[ct.User=5]="User",ct))();class wf extends class LH{constructor(t,e=200,i="OK"){this.headers=t.headers||new Di,this.status=void 0!==t.status?t.status:e,this.statusText=t.statusText||i,this.url=t.url||null,this.ok=this.status>=200&&this.status<300}}{constructor(t={}){super(t),this.type=ct.Response,this.body=void 0!==t.body?t.body:null}clone(t={}){return new wf({body:void 0!==t.body?t.body:this.body,headers:t.headers||this.headers,status:void 0!==t.status?t.status:this.status,statusText:t.statusText||this.statusText,url:t.url||this.url||void 0})}}function Ef(n,t){return{body:t,headers:n.headers,context:n.context,observe:n.observe,params:n.params,reportProgress:n.reportProgress,responseType:n.responseType,withCredentials:n.withCredentials}}let EE=(()=>{class n{constructor(e){this.handler=e}request(e,i,r={}){let s;if(e instanceof So)s=e;else{let l,c;l=r.headers instanceof Di?r.headers:new Di(r.headers),r.params&&(c=r.params instanceof Si?r.params:new Si({fromObject:r.params})),s=new So(e,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=Mn(s).pipe(function AH(n,t){return Jl(n,t,1)}(l=>this.handler.handle(l)));if(e instanceof So||"events"===r.observe)return o;const a=o.pipe(rr(l=>l instanceof wf));switch(r.observe||"body"){case"body":switch(s.responseType){case"arraybuffer":return a.pipe(Ze(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(Ze(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(Ze(l=>{if(null!==l.body&&"string"!=typeof l.body)throw new Error("Response is not a string.");return l.body}));default:return a.pipe(Ze(l=>l.body))}case"response":return a;default:throw new Error(`Unreachable: unhandled observe type ${r.observe}}`)}}delete(e,i={}){return this.request("DELETE",e,i)}get(e,i={}){return this.request("GET",e,i)}head(e,i={}){return this.request("HEAD",e,i)}jsonp(e,i){return this.request("JSONP",e,{params:(new Si).append(i,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(e,i={}){return this.request("OPTIONS",e,i)}patch(e,i,r={}){return this.request("PATCH",e,Ef(r,i))}post(e,i,r={}){return this.request("POST",e,Ef(r,i))}put(e,i,r={}){return this.request("PUT",e,Ef(r,i))}}return n.\u0275fac=function(e){return new(e||n)(v(IH))},n.\u0275prov=x({token:n,factory:n.\u0275fac}),n})();const BH=["*"];let ql;function Mo(n){var t;return(null===(t=function HH(){if(void 0===ql&&(ql=null,"undefined"!=typeof window)){const n=window;void 0!==n.trustedTypes&&(ql=n.trustedTypes.createPolicy("angular#components",{createHTML:t=>t}))}return ql}())||void 0===t?void 0:t.createHTML(n))||n}function DE(n){return Error(`Unable to find icon with the name "${n}"`)}function SE(n){return Error(`The URL provided to MatIconRegistry was not trusted as a resource URL via Angular's DomSanitizer. Attempted URL was "${n}".`)}function ME(n){return Error(`The literal provided to MatIconRegistry was not trusted as safe HTML by Angular's DomSanitizer. Attempted literal was "${n}".`)}class or{constructor(t,e,i){this.url=t,this.svgText=e,this.options=i}}let To=(()=>{class n{constructor(e,i,r,s){this._httpClient=e,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(e,i,r){return this.addSvgIconInNamespace("",e,i,r)}addSvgIconLiteral(e,i,r){return this.addSvgIconLiteralInNamespace("",e,i,r)}addSvgIconInNamespace(e,i,r,s){return this._addSvgIconConfig(e,i,new or(r,null,s))}addSvgIconResolver(e){return this._resolvers.push(e),this}addSvgIconLiteralInNamespace(e,i,r,s){const o=this._sanitizer.sanitize(ae.HTML,r);if(!o)throw ME(r);const a=Mo(o);return this._addSvgIconConfig(e,i,new or("",a,s))}addSvgIconSet(e,i){return this.addSvgIconSetInNamespace("",e,i)}addSvgIconSetLiteral(e,i){return this.addSvgIconSetLiteralInNamespace("",e,i)}addSvgIconSetInNamespace(e,i,r){return this._addSvgIconSetConfig(e,new or(i,null,r))}addSvgIconSetLiteralInNamespace(e,i,r){const s=this._sanitizer.sanitize(ae.HTML,i);if(!s)throw ME(i);const o=Mo(s);return this._addSvgIconSetConfig(e,new or("",o,r))}registerFontClassAlias(e,i=e){return this._fontCssClassesByAlias.set(e,i),this}classNameForFontAlias(e){return this._fontCssClassesByAlias.get(e)||e}setDefaultFontSetClass(e){return this._defaultFontSetClass=e,this}getDefaultFontSetClass(){return this._defaultFontSetClass}getSvgIconFromUrl(e){const i=this._sanitizer.sanitize(ae.RESOURCE_URL,e);if(!i)throw SE(e);const r=this._cachedIconsByUrl.get(i);return r?Mn(Kl(r)):this._loadSvgIconFromConfig(new or(e,null)).pipe(wo(s=>this._cachedIconsByUrl.set(i,s)),Ze(s=>Kl(s)))}getNamedSvgIcon(e,i=""){const r=TE(i,e);let s=this._svgIconConfigs.get(r);if(s)return this._getSvgFromConfig(s);if(s=this._getIconConfigFromResolvers(i,e),s)return this._svgIconConfigs.set(r,s),this._getSvgFromConfig(s);const o=this._iconSetConfigs.get(i);return o?this._getSvgFromIconSetConfigs(e,o):lb(DE(r))}ngOnDestroy(){this._resolvers=[],this._svgIconConfigs.clear(),this._iconSetConfigs.clear(),this._cachedIconsByUrl.clear()}_getSvgFromConfig(e){return e.svgText?Mn(Kl(this._svgElementFromConfig(e))):this._loadSvgIconFromConfig(e).pipe(Ze(i=>Kl(i)))}_getSvgFromIconSetConfigs(e,i){const r=this._extractIconWithNameFromAnySet(e,i);if(r)return Mn(r);const s=i.filter(o=>!o.svgText).map(o=>this._loadSvgIconSetFromConfig(o).pipe(function wH(n){return function(e){const i=new EH(n),r=e.lift(i);return i.caught=r}}(a=>{const c=`Loading icon set URL: ${this._sanitizer.sanitize(ae.RESOURCE_URL,o.url)} failed: ${a.message}`;return this._errorHandler.handleError(new Error(c)),Mn(null)})));return Jb(s).pipe(Ze(()=>{const o=this._extractIconWithNameFromAnySet(e,i);if(!o)throw DE(e);return o}))}_extractIconWithNameFromAnySet(e,i){for(let r=i.length-1;r>=0;r--){const s=i[r];if(s.svgText&&s.svgText.toString().indexOf(e)>-1){const o=this._svgElementFromConfig(s),a=this._extractSvgIconFromSet(o,e,s.options);if(a)return a}}return null}_loadSvgIconFromConfig(e){return this._fetchIcon(e).pipe(wo(i=>e.svgText=i),Ze(()=>this._svgElementFromConfig(e)))}_loadSvgIconSetFromConfig(e){return e.svgText?Mn(null):this._fetchIcon(e).pipe(wo(i=>e.svgText=i))}_extractSvgIconFromSet(e,i,r){const s=e.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(Mo("<svg></svg>"));return a.appendChild(o),this._setSvgAttributes(a,r)}_svgElementFromString(e){const i=this._document.createElement("DIV");i.innerHTML=e;const r=i.querySelector("svg");if(!r)throw Error("<svg> tag not found");return r}_toSvgElement(e){const i=this._svgElementFromString(Mo("<svg></svg>")),r=e.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<e.childNodes.length;s++)e.childNodes[s].nodeType===this._document.ELEMENT_NODE&&i.appendChild(e.childNodes[s].cloneNode(!0));return i}_setSvgAttributes(e,i){return e.setAttribute("fit",""),e.setAttribute("height","100%"),e.setAttribute("width","100%"),e.setAttribute("preserveAspectRatio","xMidYMid meet"),e.setAttribute("focusable","false"),i&&i.viewBox&&e.setAttribute("viewBox",i.viewBox),e}_fetchIcon(e){var i;const{url:r,options:s}=e,o=null!==(i=null==s?void 0:s.withCredentials)&&void 0!==i&&i;if(!this._httpClient)throw function jH(){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(ae.RESOURCE_URL,r);if(!a)throw SE(r);const l=this._inProgressUrlFetches.get(a);if(l)return l;const c=this._httpClient.get(a,{responseType:"text",withCredentials:o}).pipe(Ze(u=>Mo(u)),function SH(n){return t=>t.lift(new MH(n))}(()=>this._inProgressUrlFetches.delete(a)),jf());return this._inProgressUrlFetches.set(a,c),c}_addSvgIconConfig(e,i,r){return this._svgIconConfigs.set(TE(e,i),r),this}_addSvgIconSetConfig(e,i){const r=this._iconSetConfigs.get(e);return r?r.push(i):this._iconSetConfigs.set(e,[i]),this}_svgElementFromConfig(e){if(!e.svgElement){const i=this._svgElementFromString(e.svgText);this._setSvgAttributes(i,e.options),e.svgElement=i}return e.svgElement}_getIconConfigFromResolvers(e,i){for(let r=0;r<this._resolvers.length;r++){const s=this._resolvers[r](i,e);if(s)return UH(s)?new or(s.url,null,s.options):new or(s,null)}}}return n.\u0275fac=function(e){return new(e||n)(v(EE,8),v(Jd),v(Z,8),v(hi))},n.\u0275prov=x({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();function Kl(n){return n.cloneNode(!0)}function TE(n,t){return n+":"+t}function UH(n){return!(!n.url||!n.options)}const zH=cf(class{constructor(n){this._elementRef=n}}),GH=new T("mat-icon-location",{providedIn:"root",factory:function WH(){const n=na(Z),t=n?n.location:null;return{getPathname:()=>t?t.pathname+t.search:""}}}),AE=["clip-path","color-profile","src","cursor","fill","filter","marker","marker-start","marker-mid","marker-end","mask","stroke"],qH=AE.map(n=>`[${n}]`).join(", "),KH=/^url\(['"]?#(.*?)['"]?\)$/;let YH=(()=>{class n extends zH{constructor(e,i,r,s,o){super(e),this._iconRegistry=i,this._location=s,this._errorHandler=o,this._inline=!1,this._currentIconFetch=W.EMPTY,r||e.nativeElement.setAttribute("aria-hidden","true")}get inline(){return this._inline}set inline(e){this._inline=cn(e)}get svgIcon(){return this._svgIcon}set svgIcon(e){e!==this._svgIcon&&(e?this._updateSvgIcon(e):this._svgIcon&&this._clearSvgElement(),this._svgIcon=e)}get fontSet(){return this._fontSet}set fontSet(e){const i=this._cleanupFontValue(e);i!==this._fontSet&&(this._fontSet=i,this._updateFontIconClasses())}get fontIcon(){return this._fontIcon}set fontIcon(e){const i=this._cleanupFontValue(e);i!==this._fontIcon&&(this._fontIcon=i,this._updateFontIconClasses())}_splitIconName(e){if(!e)return["",""];const i=e.split(":");switch(i.length){case 1:return["",i[0]];case 2:return i;default:throw Error(`Invalid icon name: "${e}"`)}}ngOnInit(){this._updateFontIconClasses()}ngAfterViewChecked(){const e=this._elementsWithExternalReferences;if(e&&e.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(e){this._clearSvgElement();const i=e.querySelectorAll("style");for(let s=0;s<i.length;s++)i[s].textContent+=" ";const r=this._location.getPathname();this._previousPath=r,this._cacheChildrenWithExternalReferences(e),this._prependPathToReferences(r),this._elementRef.nativeElement.appendChild(e)}_clearSvgElement(){const e=this._elementRef.nativeElement;let i=e.childNodes.length;for(this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear();i--;){const r=e.childNodes[i];(1!==r.nodeType||"svg"===r.nodeName.toLowerCase())&&r.remove()}}_updateFontIconClasses(){if(!this._usingFontIcon())return;const e=this._elementRef.nativeElement,i=this.fontSet?this._iconRegistry.classNameForFontAlias(this.fontSet):this._iconRegistry.getDefaultFontSetClass();i!=this._previousFontSetClass&&(this._previousFontSetClass&&e.classList.remove(this._previousFontSetClass),i&&e.classList.add(i),this._previousFontSetClass=i),this.fontIcon!=this._previousFontIconClass&&(this._previousFontIconClass&&e.classList.remove(this._previousFontIconClass),this.fontIcon&&e.classList.add(this.fontIcon),this._previousFontIconClass=this.fontIcon)}_cleanupFontValue(e){return"string"==typeof e?e.trim().split(" ")[0]:e}_prependPathToReferences(e){const i=this._elementsWithExternalReferences;i&&i.forEach((r,s)=>{r.forEach(o=>{s.setAttribute(o.name,`url('${e}#${o.value}')`)})})}_cacheChildrenWithExternalReferences(e){const i=e.querySelectorAll(qH),r=this._elementsWithExternalReferences=this._elementsWithExternalReferences||new Map;for(let s=0;s<i.length;s++)AE.forEach(o=>{const a=i[s],l=a.getAttribute(o),c=l?l.match(KH):null;if(c){let u=r.get(a);u||(u=[],r.set(a,u)),u.push({name:o,value:c[1]})}})}_updateSvgIcon(e){if(this._svgNamespace=null,this._svgName=null,this._currentIconFetch.unsubscribe(),e){const[i,r]=this._splitIconName(e);i&&(this._svgNamespace=i),r&&(this._svgName=r),this._currentIconFetch=this._iconRegistry.getNamedSvgIcon(r,i).pipe(Ei(1)).subscribe(s=>this._setSvgElement(s),s=>{this._errorHandler.handleError(new Error(`Error retrieving icon ${i}:${r}! ${s.message}`))})}}}return n.\u0275fac=function(e){return new(e||n)(g(Ee),g(To),Ds("aria-hidden"),g(GH),g(hi))},n.\u0275cmp=An({type:n,selectors:[["mat-icon"]],hostAttrs:["role","img",1,"mat-icon","notranslate"],hostVars:7,hostBindings:function(e,i){2&e&&(nt("data-mat-icon-type",i._usingFontIcon()?"font":"svg")("data-mat-icon-name",i._svgName||i.fontIcon)("data-mat-icon-namespace",i._svgNamespace||i.fontSet),mt("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:[q],ngContentSelectors:BH,decls:1,vars:0,template:function(e,i){1&e&&(Gr(),Gt(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})(),ZH=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=me({type:n}),n.\u0275inj=ce({imports:[[Tt],Tt]}),n})();"function"==typeof SuppressedError&&SuppressedError;const Yl=new T("config"),kE=new T("NEW_CONFIG"),OE=new T("INITIAL_CONFIG"),C2={suffix:"",prefix:"",thousandSeparator:" ",decimalMarker:".",clearIfNotMatch:!1,showTemplate:!1,showMaskTyped:!1,placeHolderCharacter:"_",dropSpecialCharacters:!0,hiddenInput:void 0,shownMaskExpression:"",separatorLimit:"",allowNegativeNumbers:!1,validation:!0,specialCharacters:["-","/","(",")",".",":"," ","+",",","@","[","]",'"',"'"],leadZeroDateTime:!1,patterns:{0:{pattern:new RegExp("\\d")},9:{pattern:new RegExp("\\d"),optional:!0},X:{pattern:new RegExp("\\d"),symbol:"*"},A:{pattern:new RegExp("[a-zA-Z0-9]")},S:{pattern:new RegExp("[a-zA-Z]")},d:{pattern:new RegExp("\\d")},m:{pattern:new RegExp("\\d")},M:{pattern:new RegExp("\\d")},H:{pattern:new RegExp("\\d")},h:{pattern:new RegExp("\\d")},s:{pattern:new RegExp("\\d")}}},w2=["Hh:m0:s0","Hh:m0","m0:s0"],E2=["percent","Hh","s0","m0","separator","d0/M0/0000","d0/M0","d0","M0"];let Af=(()=>{class n{constructor(e){this._config=e,this.maskExpression="",this.actualValue="",this.shownMaskExpression="",this._formatWithSeparators=(i,r,s,o)=>{const a=i.split(s),l=a.length>1?`${s}${a[1]}`:"";let c=a[0];const u=this.separatorLimit.replace(/\s/g,"");u&&+u&&(c="-"===c[0]?`-${c.slice(1,c.length).slice(0,u.length)}`:c.slice(0,u.length));const d=/(\d+)(\d{3})/;for(;r&&d.test(c);)c=c.replace(d,"$1"+r+"$2");return void 0===o?c+l:0===o?c:c+l.substr(0,o+1)},this.percentage=i=>Number(i)>=0&&Number(i)<=100,this.getPrecision=i=>{const r=i.split(".");return r.length>1?Number(r[r.length-1]):1/0},this.checkAndRemoveSuffix=i=>{var r,s,o;for(let a=(null===(r=this.suffix)||void 0===r?void 0:r.length)-1;a>=0;a--){const l=this.suffix.substr(a,null===(s=this.suffix)||void 0===s?void 0:s.length);if(i.includes(l)&&(a-1<0||!i.includes(this.suffix.substr(a-1,null===(o=this.suffix)||void 0===o?void 0:o.length))))return i.replace(l,"")}return i},this.checkInputPrecision=(i,r,s)=>{if(r<1/0){const o=new RegExp(this._charToRegExpExpression(s)+`\\d{${r}}.*$`),a=i.match(o);a&&a[0].length-1>r&&(i=i.substring(0,i.length-(a[0].length-1-r))),0===r&&i.endsWith(s)&&(i=i.substring(0,i.length-1))}return i},this._shift=new Set,this.clearIfNotMatch=this._config.clearIfNotMatch,this.dropSpecialCharacters=this._config.dropSpecialCharacters,this.maskSpecialCharacters=this._config.specialCharacters,this.maskAvailablePatterns=this._config.patterns,this.prefix=this._config.prefix,this.suffix=this._config.suffix,this.thousandSeparator=this._config.thousandSeparator,this.decimalMarker=this._config.decimalMarker,this.hiddenInput=this._config.hiddenInput,this.showMaskTyped=this._config.showMaskTyped,this.placeHolderCharacter=this._config.placeHolderCharacter,this.validation=this._config.validation,this.separatorLimit=this._config.separatorLimit,this.allowNegativeNumbers=this._config.allowNegativeNumbers,this.leadZeroDateTime=this._config.leadZeroDateTime}applyMaskWithPattern(e,i){const[r,s]=i;return this.customPattern=s,this.applyMask(e,r)}applyMask(e,i,r=0,s=!1,o=!1,a=(()=>{})){if(null==e||void 0===i)return"";let l=0,c="",u=!1,d=!1,h=1,f=!1;e.slice(0,this.prefix.length)===this.prefix&&(e=e.slice(this.prefix.length,e.length)),this.suffix&&(null==e?void 0:e.length)>0&&(e=this.checkAndRemoveSuffix(e));const p=e.toString().split("");"IP"===i&&(this.ipError=p.filter(w=>"."===w).length<3&&p.length<7,i="099.099.099.099");const m=[];for(let w=0;w<e.length;w++)e[w].match("\\d")&&m.push(e[w]);if("CPF_CNPJ"===i&&(this.cpfCnpjError=11!==m.length&&14!==m.length,i=m.length>11?"00.000.000/0000-00":"000.000.000-00"),i.startsWith("percent")){if(e.match("[a-z]|[A-Z]")||e.match(/[-!$%^&*()_+|~=`{}\[\]:";'<>?,\/.]/)){e=this._stripToDecimal(e);const w=this.getPrecision(i);e=this.checkInputPrecision(e,w,this.decimalMarker)}e.indexOf(".")>0&&!this.percentage(e.substring(0,e.indexOf(".")))&&(e=`${e.substring(0,e.indexOf(".")-1)}${e.substring(e.indexOf("."),e.length)}`),c=this.percentage(e)?e:e.substring(0,e.length-1)}else if(i.startsWith("separator")){(e.match("[w\u0430-\u044f\u0410-\u042f]")||e.match("[\u0401\u0451\u0410-\u044f]")||e.match("[a-z]|[A-Z]")||e.match(/[-@#!$%\\^&*()_\xa3\xac'+|~=`{}\[\]:";<>.?\/]/)||e.match("[^A-Za-z0-9,]"))&&(e=this._stripToDecimal(e)),e=e.length>1&&"0"===e[0]&&e[1]!==this.decimalMarker?e.slice(1,e.length):e;const w=this._charToRegExpExpression(this.thousandSeparator),M=this._charToRegExpExpression(this.decimalMarker),ne='@#!$%^&*()_+|~=`{}\\[\\]:\\s,\\.";<>?\\/'.replace(w,"").replace(M,""),Se=new RegExp("["+ne+"]");e.match(Se)&&(e=e.substring(0,e.length-1));const it=this.getPrecision(i),ut=(e=this.checkInputPrecision(e,it,this.decimalMarker)).replace(new RegExp(w,"g"),"");c=this._formatWithSeparators(ut,this.thousandSeparator,this.decimalMarker,it);const dt=c.indexOf(",")-e.indexOf(","),Ft=c.length-e.length;if(Ft>0&&","!==c[r]){d=!0;let At=0;do{this._shift.add(r+At),At++}while(At<Ft)}else 0!==dt&&r>0&&!(c.indexOf(",")>=r&&r>3)||!(c.indexOf(".")>=r&&r>3)&&Ft<=0?(this._shift.clear(),d=!0,h=Ft,this._shift.add(r+=Ft)):this._shift.clear()}else for(let w=0,M=p[0];w<p.length&&l!==i.length;w++,M=p[w])if(this._checkSymbolMask(M,i[l])&&"?"===i[l+1])c+=M,l+=2;else if("*"===i[l+1]&&u&&this._checkSymbolMask(M,i[l+2]))c+=M,l+=3,u=!1;else if(this._checkSymbolMask(M,i[l])&&"*"===i[l+1])c+=M,u=!0;else if("?"===i[l+1]&&this._checkSymbolMask(M,i[l+2]))c+=M,l+=3;else if(this._checkSymbolMask(M,i[l])){if("H"===i[l]&&Number(M)>2){l+=1,this._shiftStep(i,l,p.length),w--,this.leadZeroDateTime&&(c+="0");continue}if("h"===i[l]&&"2"===c&&Number(M)>3){l+=1,w--;continue}if("m"===i[l]&&Number(M)>5){l+=1,this._shiftStep(i,l,p.length),w--,this.leadZeroDateTime&&(c+="0");continue}if("s"===i[l]&&Number(M)>5){l+=1,this._shiftStep(i,l,p.length),w--,this.leadZeroDateTime&&(c+="0");continue}const ne=31;if("d"===i[l]&&(Number(M)>3&&this.leadZeroDateTime||Number(e.slice(l,l+2))>ne||"/"===e[l+1])){l+=1,this._shiftStep(i,l,p.length),w--,this.leadZeroDateTime&&(c+="0");continue}if("M"===i[l]){const it=0===l&&(Number(M)>2||Number(e.slice(l,l+2))>12||"/"===e[l+1]),ut=e.slice(l-3,l-1).includes("/")&&("/"===e[l-2]&&Number(e.slice(l-1,l+1))>12&&"/"!==e[l]||"/"===e[l]||"/"===e[l-3]&&Number(e.slice(l-2,l))>12&&"/"!==e[l-1]||"/"===e[l-1]),dt=Number(e.slice(l-3,l-1))<=ne&&!e.slice(l-3,l-1).includes("/")&&"/"===e[l-1]&&(Number(e.slice(l,l+2))>12||"/"===e[l+1]),Ft=Number(e.slice(l-3,l-1))>ne&&!e.slice(l-3,l-1).includes("/")&&!e.slice(l-2,l).includes("/")&&Number(e.slice(l-2,l))>12,At=Number(e.slice(l-3,l-1))<=ne&&!e.slice(l-3,l-1).includes("/")&&"/"!==e[l-1]&&Number(e.slice(l-1,l+1))>12;if(Number(M)>1&&this.leadZeroDateTime||it||ut||dt||Ft||At){l+=1,this._shiftStep(i,l,p.length),w--,this.leadZeroDateTime&&(c+="0");continue}}c+=M,l++}else-1!==this.maskSpecialCharacters.indexOf(i[l])?(c+=i[l],l++,this._shiftStep(i,l,p.length),w--):this.maskSpecialCharacters.indexOf(M)>-1&&this.maskAvailablePatterns[i[l]]&&this.maskAvailablePatterns[i[l]].optional?(!!p[l]&&"099.099.099.099"!==i&&"000.000.000-00"!==i&&"00.000.000/0000-00"!==i&&(c+=p[l]),l++,w--):"*"===this.maskExpression[l+1]&&this._findSpecialChar(this.maskExpression[l+2])&&this._findSpecialChar(M)===this.maskExpression[l+2]&&u||"?"===this.maskExpression[l+1]&&this._findSpecialChar(this.maskExpression[l+2])&&this._findSpecialChar(M)===this.maskExpression[l+2]&&u?(l+=3,c+=M):this.showMaskTyped&&this.maskSpecialCharacters.indexOf(M)<0&&M!==this.placeHolderCharacter&&(f=!0);c.length+1===i.length&&-1!==this.maskSpecialCharacters.indexOf(i[i.length-1])&&(c+=i[i.length-1]);let y=r+1;for(;this._shift.has(y);)h++,y++;let b=s?l:this._shift.has(r)?h:0;f&&b--,a(b,d),h<0&&this._shift.clear();let _=!1;o&&(_=p.every(w=>this.maskSpecialCharacters.includes(w)));let E=`${this.prefix}${_?"":c}${this.suffix}`;return 0===c.length&&(E=`${this.prefix}${c}`),E}_findSpecialChar(e){return this.maskSpecialCharacters.find(i=>i===e)}_checkSymbolMask(e,i){return this.maskAvailablePatterns=this.customPattern?this.customPattern:this.maskAvailablePatterns,this.maskAvailablePatterns[i]&&this.maskAvailablePatterns[i].pattern&&this.maskAvailablePatterns[i].pattern.test(e)}_stripToDecimal(e){return e.split("").filter((i,r)=>i.match("^-?\\d")||i.match("\\s")||"."===i||","===i||"-"===i&&0===r&&this.allowNegativeNumbers).join("")}_charToRegExpExpression(e){return e&&(" "===e?"\\s":"[\\^$.|?*+()".indexOf(e)>=0?"\\"+e:e)}_shiftStep(e,i,r){const s=/[*?]/g.test(e.slice(0,i))?r:i;this._shift.add(s+this.prefix.length||0)}}return n.\u0275fac=function(e){return new(e||n)(v(Yl))},n.\u0275prov=x({token:n,factory:n.\u0275fac}),n})(),FE=(()=>{class n extends Af{constructor(e,i,r,s){super(i),this.document=e,this._config=i,this._elementRef=r,this._renderer=s,this.maskExpression="",this.isNumberValue=!1,this.placeHolderCharacter="_",this.maskIsShown="",this.selStart=null,this.selEnd=null,this.writingValue=!1,this.onChange=o=>{}}applyMask(e,i,r=0,s=!1,o=!1,a=(()=>{})){if(!i)return e;if(this.maskIsShown=this.showMaskTyped?this.showMaskInInput():"","IP"===this.maskExpression&&this.showMaskTyped&&(this.maskIsShown=this.showMaskInInput(e||"#")),"CPF_CNPJ"===this.maskExpression&&this.showMaskTyped&&(this.maskIsShown=this.showMaskInInput(e||"#")),!e&&this.showMaskTyped)return this.formControlResult(this.prefix),this.prefix+this.maskIsShown;const l=e&&"number"==typeof this.selStart?e[this.selStart]:"";let c="";if(void 0!==this.hiddenInput){let f=this.actualValue.split("");""!==e&&f.length?"number"==typeof this.selStart&&"number"==typeof this.selEnd&&(e.length>f.length?f.splice(this.selStart,0,l):e.length<f.length&&(f.length-e.length==1?f.splice(this.selStart-1,1):f.splice(this.selStart,this.selEnd-this.selStart))):f=[],c=this.actualValue.length?this.shiftTypedSymbols(f.join("")):e}c=Boolean(c)&&c.length?c:e;const u=super.applyMask(c,i,r,s,o,a);if(this.actualValue=this.getActualValue(u),"."===this.thousandSeparator&&"."===this.decimalMarker&&(this.decimalMarker=","),this.maskExpression.startsWith("separator")&&!0===this.dropSpecialCharacters&&(this.maskSpecialCharacters=this.maskSpecialCharacters.filter(f=>f!==this.decimalMarker)),this.formControlResult(u),!this.showMaskTyped)return this.hiddenInput&&u&&u.length?this.hideInput(u,this.maskExpression):u;const d=u.length,h=this.prefix+this.maskIsShown;if(this.maskExpression.includes("H")){const f=this._numberSkipedSymbols(u);return u+h.slice(d+f)}return"IP"===this.maskExpression||"CPF_CNPJ"===this.maskExpression?u+h:u+h.slice(d)}_numberSkipedSymbols(e){const i=/(^|\D)(\d\D)/g;let r=i.exec(e),s=0;for(;null!=r;)s+=1,r=i.exec(e);return s}applyValueChanges(e=0,i,r,s=(()=>{})){const o=this._elementRef.nativeElement;o.value=this.applyMask(o.value,this.maskExpression,e,i,r,s),o!==this.document.activeElement&&this.clearIfNotMatchFn()}hideInput(e,i){return e.split("").map((r,s)=>this.maskAvailablePatterns&&this.maskAvailablePatterns[i[s]]&&this.maskAvailablePatterns[i[s]].symbol?this.maskAvailablePatterns[i[s]].symbol:r).join("")}getActualValue(e){const i=e.split("").filter((r,s)=>this._checkSymbolMask(r,this.maskExpression[s])||this.maskSpecialCharacters.includes(this.maskExpression[s])&&r===this.maskExpression[s]);return i.join("")===e?i.join(""):e}shiftTypedSymbols(e){let i="";return(e&&e.split("").map((s,o)=>{if(this.maskSpecialCharacters.includes(e[o+1])&&e[o+1]!==this.maskExpression[o+1])return i=s,e[o+1];if(i.length){const a=i;return i="",a}return s})||[]).join("")}showMaskInInput(e){if(this.showMaskTyped&&this.shownMaskExpression){if(this.maskExpression.length!==this.shownMaskExpression.length)throw new Error("Mask expression must match mask placeholder length");return this.shownMaskExpression}if(this.showMaskTyped){if(e){if("IP"===this.maskExpression)return this._checkForIp(e);if("CPF_CNPJ"===this.maskExpression)return this._checkForCpfCnpj(e)}return this.maskExpression.replace(/\w/g,this.placeHolderCharacter)}return""}clearIfNotMatchFn(){const e=this._elementRef.nativeElement;this.clearIfNotMatch&&this.prefix.length+this.maskExpression.length+this.suffix.length!==e.value.replace(/_/g,"").length&&(this.formElementProperty=["value",""],this.applyMask(e.value,this.maskExpression))}set formElementProperty([e,i]){Promise.resolve().then(()=>this._renderer.setProperty(this._elementRef.nativeElement,e,i))}checkSpecialCharAmount(e){return e.split("").filter(r=>this._findSpecialChar(r)).length}removeMask(e){return this._removeMask(this._removeSuffix(this._removePrefix(e)),this.maskSpecialCharacters.concat("_").concat(this.placeHolderCharacter))}_checkForIp(e){if("#"===e)return`${this.placeHolderCharacter}.${this.placeHolderCharacter}.${this.placeHolderCharacter}.${this.placeHolderCharacter}`;const i=[];for(let r=0;r<e.length;r++)e[r].match("\\d")&&i.push(e[r]);return i.length<=3?`${this.placeHolderCharacter}.${this.placeHolderCharacter}.${this.placeHolderCharacter}`:i.length>3&&i.length<=6?`${this.placeHolderCharacter}.${this.placeHolderCharacter}`:i.length>6&&i.length<=9?this.placeHolderCharacter:""}_checkForCpfCnpj(e){const i=`${this.placeHolderCharacter}${this.placeHolderCharacter}${this.placeHolderCharacter}.${this.placeHolderCharacter}${this.placeHolderCharacter}${this.placeHolderCharacter}.${this.placeHolderCharacter}${this.placeHolderCharacter}${this.placeHolderCharacter}-${this.placeHolderCharacter}${this.placeHolderCharacter}`,r=`${this.placeHolderCharacter}${this.placeHolderCharacter}.${this.placeHolderCharacter}${this.placeHolderCharacter}${this.placeHolderCharacter}.${this.placeHolderCharacter}${this.placeHolderCharacter}${this.placeHolderCharacter}/${this.placeHolderCharacter}${this.placeHolderCharacter}${this.placeHolderCharacter}${this.placeHolderCharacter}-${this.placeHolderCharacter}${this.placeHolderCharacter}`;if("#"===e)return i;const s=[];for(let o=0;o<e.length;o++)e[o].match("\\d")&&s.push(e[o]);return s.length<=3?i.slice(s.length,i.length):s.length>3&&s.length<=6?i.slice(s.length+1,i.length):s.length>6&&s.length<=9?i.slice(s.length+2,i.length):s.length>9&&s.length<11?i.slice(s.length+3,i.length):11===s.length?"":12===s.length?r.slice(17===e.length?16:15,r.length):s.length>12&&s.length<=14?r.slice(s.length+4,r.length):""}formControlResult(e){this.writingValue||(Array.isArray(this.dropSpecialCharacters)?this.onChange(this._toNumber(this._removeMask(this._removeSuffix(this._removePrefix(e)),this.dropSpecialCharacters))):this.onChange(this.dropSpecialCharacters?this._toNumber(this._checkSymbols(e)):this._removeSuffix(e)))}_toNumber(e){if(!this.isNumberValue)return e;const i=Number(e);return Number.isNaN(i)?e:i}_removeMask(e,i){return e&&e.replace(this._regExpForRemove(i),"")}_removePrefix(e){return this.prefix?e&&e.replace(this.prefix,""):e}_removeSuffix(e){return this.suffix?e&&e.replace(this.suffix,""):e}_retrieveSeparatorValue(e){return this._removeMask(this._removeSuffix(this._removePrefix(e)),this.maskSpecialCharacters)}_regExpForRemove(e){return new RegExp(e.map(i=>`\\${i}`).join("|"),"gi")}_checkSymbols(e){if(""===e)return e;const i=this._retrieveSeparatorPrecision(this.maskExpression);let r=this._retrieveSeparatorValue(e);return"."!==this.decimalMarker&&(r=r.replace(this.decimalMarker,".")),this.isNumberValue?i?e===this.decimalMarker?null:this._checkPrecision(this.maskExpression,r):Number(r):r}_retrieveSeparatorPrecision(e){const i=e.match(new RegExp("^separator\\.([^d]*)"));return i?Number(i[1]):null}_checkPrecision(e,i){return e.indexOf("2")>0?Number(i).toFixed(2):Number(i)}}return n.\u0275fac=function(e){return new(e||n)(v(Z),v(Yl),v(Ee),v(mi))},n.\u0275prov=x({token:n,factory:n.\u0275fac}),n})(),D2=(()=>{class n{constructor(e,i,r){this.document=e,this._maskService=i,this._config=r,this.maskExpression="",this.specialCharacters=[],this.patterns={},this.prefix="",this.suffix="",this.thousandSeparator=" ",this.decimalMarker=".",this.dropSpecialCharacters=null,this.hiddenInput=null,this.showMaskTyped=null,this.placeHolderCharacter=null,this.shownMaskExpression=null,this.showTemplate=null,this.clearIfNotMatch=null,this.validation=null,this.separatorLimit=null,this.allowNegativeNumbers=null,this.leadZeroDateTime=null,this._maskValue="",this._position=null,this._maskExpressionArray=[],this._justPasted=!1,this.onChange=s=>{},this.onTouch=()=>{}}ngOnChanges(e){const{maskExpression:i,specialCharacters:r,patterns:s,prefix:o,suffix:a,thousandSeparator:l,decimalMarker:c,dropSpecialCharacters:u,hiddenInput:d,showMaskTyped:h,placeHolderCharacter:f,shownMaskExpression:p,showTemplate:m,clearIfNotMatch:y,validation:b,separatorLimit:_,allowNegativeNumbers:E,leadZeroDateTime:w}=e;if(i&&(this._maskValue=i.currentValue||"",i.currentValue&&i.currentValue.split("||").length>1&&(this._maskExpressionArray=i.currentValue.split("||").sort((M,ne)=>M.length-ne.length),this._maskValue=this._maskExpressionArray[0],this.maskExpression=this._maskExpressionArray[0],this._maskService.maskExpression=this._maskExpressionArray[0])),r){if(!r.currentValue||!Array.isArray(r.currentValue))return;this._maskService.maskSpecialCharacters=r.currentValue||[]}s&&s.currentValue&&(this._maskService.maskAvailablePatterns=s.currentValue),o&&(this._maskService.prefix=o.currentValue),a&&(this._maskService.suffix=a.currentValue),l&&(this._maskService.thousandSeparator=l.currentValue),c&&(this._maskService.decimalMarker=c.currentValue),u&&(this._maskService.dropSpecialCharacters=u.currentValue),d&&(this._maskService.hiddenInput=d.currentValue),h&&(this._maskService.showMaskTyped=h.currentValue),f&&(this._maskService.placeHolderCharacter=f.currentValue),p&&(this._maskService.shownMaskExpression=p.currentValue),m&&(this._maskService.showTemplate=m.currentValue),y&&(this._maskService.clearIfNotMatch=y.currentValue),b&&(this._maskService.validation=b.currentValue),_&&(this._maskService.separatorLimit=_.currentValue),E&&(this._maskService.allowNegativeNumbers=E.currentValue,this._maskService.allowNegativeNumbers&&(this._maskService.maskSpecialCharacters=this._maskService.maskSpecialCharacters.filter(M=>"-"!==M))),w&&(this._maskService.leadZeroDateTime=w.currentValue),this._applyMask()}validate({value:e}){if(!this._maskService.validation||!this._maskValue)return null;if(this._maskService.ipError)return this._createValidationError(e);if(this._maskService.cpfCnpjError)return this._createValidationError(e);if(this._maskValue.startsWith("separator")||E2.includes(this._maskValue)||this._maskService.clearIfNotMatch)return null;if(w2.includes(this._maskValue))return this._validateTime(e);if(e&&e.toString().length>=1){let i=0;for(const r in this._maskService.maskAvailablePatterns)if(this._maskService.maskAvailablePatterns[r].optional&&!0===this._maskService.maskAvailablePatterns[r].optional&&(this._maskValue.indexOf(r)!==this._maskValue.lastIndexOf(r)?i+=this._maskValue.split("").filter(o=>o===r).join("").length:-1!==this._maskValue.indexOf(r)&&i++,-1!==this._maskValue.indexOf(r)&&e.toString().length>=this._maskValue.indexOf(r)||i===this._maskValue.length))return null;if(1===this._maskValue.indexOf("{")&&e.toString().length===this._maskValue.length+Number(this._maskValue.split("{")[1].split("}")[0])-4||1===this._maskValue.indexOf("*")||1===this._maskValue.indexOf("?"))return null;if(this._maskValue.indexOf("*")>1&&e.toString().length<this._maskValue.indexOf("*")||this._maskValue.indexOf("?")>1&&e.toString().length<this._maskValue.indexOf("?")||1===this._maskValue.indexOf("{"))return this._createValidationError(e);if(-1===this._maskValue.indexOf("*")||-1===this._maskValue.indexOf("?")){const r=this._maskService.dropSpecialCharacters?this._maskValue.length-this._maskService.checkSpecialCharAmount(this._maskValue)-i:this._maskValue.length-i;if(e.toString().length<r)return this._createValidationError(e)}}return null}onPaste(){this._justPasted=!0}onInput(e){const i=e.target;if(this._inputValue=i.value,this._setMask(),!this._maskValue)return void this.onChange(i.value);const r=1===i.selectionStart?i.selectionStart+this._maskService.prefix.length:i.selectionStart;let s=0,o=!1;if(this._maskService.applyValueChanges(r,this._justPasted,"Backspace"===this._code,(l,c)=>{this._justPasted=!1,s=l,o=c}),this.document.activeElement!==i)return;this._position=1===this._position&&1===this._inputValue.length?null:this._position;let a=this._position?this._inputValue.length+r+s:r+("Backspace"!==this._code||o?s:0);a>this._getActualInputLength()&&(a=this._getActualInputLength()),i.setSelectionRange(a,a),this._position=null}onBlur(){this._maskValue&&this._maskService.clearIfNotMatchFn(),this.onTouch()}onFocus(e){if(!this._maskValue)return;const i=e.target;null!==i&&null!==i.selectionStart&&i.selectionStart===i.selectionEnd&&i.selectionStart>this._maskService.prefix.length&&38!==e.keyCode&&this._maskService.showMaskTyped&&(this._maskService.maskIsShown=this._maskService.showMaskInInput(),i.setSelectionRange&&this._maskService.prefix+this._maskService.maskIsShown===i.value?(i.focus(),i.setSelectionRange(0,0)):i.selectionStart>this._maskService.actualValue.length&&i.setSelectionRange(this._maskService.actualValue.length,this._maskService.actualValue.length));const o=i.value&&i.value!==this._maskService.prefix?i.value:this._maskService.prefix+this._maskService.maskIsShown;i.value!==o&&(i.value=o),(i.selectionStart||i.selectionEnd)<=this._maskService.prefix.length?i.selectionStart=this._maskService.prefix.length:i.selectionEnd>this._getActualInputLength()&&(i.selectionEnd=this._getActualInputLength())}onKeyDown(e){var i;if(!this._maskValue)return;this._code=e.code?e.code:e.key;const r=e.target;if(this._inputValue=r.value,this._setMask(),38===e.keyCode&&e.preventDefault(),37===e.keyCode||8===e.keyCode||46===e.keyCode){if(8===e.keyCode&&0===r.value.length&&(r.selectionStart=r.selectionEnd),8===e.keyCode&&0!==r.selectionStart)if(this.specialCharacters=(null===(i=this.specialCharacters)||void 0===i?void 0:i.length)?this.specialCharacters:this._config.specialCharacters,this.prefix.length>1&&r.selectionStart<=this.prefix.length)r.setSelectionRange(this.prefix.length,this.prefix.length);else{if(this._inputValue.length!==r.selectionStart&&1!==r.selectionStart)for(;this.specialCharacters.includes(this._inputValue[r.selectionStart-1].toString())&&(this.prefix.length>=1&&r.selectionStart>this.prefix.length||0===this.prefix.length);)r.setSelectionRange(r.selectionStart-1,r.selectionStart-1);this.suffixCheckOnPressDelete(e.keyCode,r)}this.suffixCheckOnPressDelete(e.keyCode,r),this._maskService.prefix.length&&r.selectionStart<=this._maskService.prefix.length&&r.selectionEnd<=this._maskService.prefix.length&&e.preventDefault();const s=r.selectionStart;8===e.keyCode&&!r.readOnly&&0===s&&r.selectionEnd===r.value.length&&0!==r.value.length&&(this._position=this._maskService.prefix?this._maskService.prefix.length:0,this._maskService.applyMask(this._maskService.prefix,this._maskService.maskExpression,this._position))}this.suffix&&this.suffix.length>1&&this._inputValue.length-this.suffix.length<r.selectionStart?r.setSelectionRange(this._inputValue.length-this.suffix.length,this._inputValue.length):(65===e.keyCode&&!0===e.ctrlKey||65===e.keyCode&&!0===e.metaKey)&&(r.setSelectionRange(0,this._getActualInputLength()),e.preventDefault()),this._maskService.selStart=r.selectionStart,this._maskService.selEnd=r.selectionEnd}writeValue(e){return function IE(n,t,e,i){return new(e||(e=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 e?s:new e(function(o){o(s)})}(u.value).then(a,l)}c((i=i.apply(n,t||[])).next())})}(this,void 0,void 0,function*(){"object"==typeof e&&null!==e&&"value"in e&&("disable"in e&&this.setDisabledState(Boolean(e.disable)),e=e.value),void 0===e&&(e=""),"number"==typeof e&&(e=String(e),e="."!==this.decimalMarker?e.replace(".",this.decimalMarker):e,this._maskService.isNumberValue=!0),e&&this._maskService.maskExpression||this._maskService.maskExpression&&(this._maskService.prefix||this._maskService.showMaskTyped)?(this._maskService.writingValue=!0,this._maskService.formElementProperty=["value",this._maskService.applyMask(e,this._maskService.maskExpression)],this._maskService.writingValue=!1):this._maskService.formElementProperty=["value",e],this._inputValue=e})}registerOnChange(e){this.onChange=e,this._maskService.onChange=this.onChange}registerOnTouched(e){this.onTouch=e}suffixCheckOnPressDelete(e,i){46===e&&this.suffix.length>0&&this._inputValue.length-this.suffix.length<=i.selectionStart&&i.setSelectionRange(this._inputValue.length-this.suffix.length,this._inputValue.length),8===e&&(this.suffix.length>1&&this._inputValue.length-this.suffix.length<i.selectionStart&&i.setSelectionRange(this._inputValue.length-this.suffix.length,this._inputValue.length),1===this.suffix.length&&this._inputValue.length===i.selectionStart&&i.setSelectionRange(i.selectionStart-1,i.selectionStart-1))}setDisabledState(e){this._maskService.formElementProperty=["disabled",e]}_repeatPatternSymbols(e){return e.match(/{[0-9]+}/)&&e.split("").reduce((i,r,s)=>{if(this._start="{"===r?s:this._start,"}"!==r)return this._maskService._findSpecialChar(r)?i+r:i;this._end=s;const o=Number(e.slice(this._start+1,this._end));return i+new Array(o+1).join(e[this._start-1])},"")||e}_applyMask(){this._maskService.maskExpression=this._repeatPatternSymbols(this._maskValue||""),this._maskService.formElementProperty=["value",this._maskService.applyMask(this._inputValue,this._maskService.maskExpression)]}_validateTime(e){const i=this._maskValue.split("").filter(r=>":"!==r).length;return null===e||0===e.length?null:0==+e[e.length-1]&&e.length<i||e.length<=i-2?this._createValidationError(e):null}_getActualInputLength(){return this._maskService.actualValue.length||this._maskService.actualValue.length+this._maskService.prefix.length}_createValidationError(e){return{mask:{requiredMask:this._maskValue,actualValue:e}}}_setMask(){this._maskExpressionArray.length>0&&this._maskExpressionArray.some(e=>{const i=this._maskService.removeMask(this._inputValue).length<=this._maskService.removeMask(e).length;if(this._inputValue&&i)return this._maskValue=e,this.maskExpression=e,this._maskService.maskExpression=e,i;this._maskValue=this._maskExpressionArray[this._maskExpressionArray.length-1],this.maskExpression=this._maskExpressionArray[this._maskExpressionArray.length-1],this._maskService.maskExpression=this._maskExpressionArray[this._maskExpressionArray.length-1]})}}return n.\u0275fac=function(e){return new(e||n)(g(Z),g(FE),g(Yl))},n.\u0275dir=k({type:n,selectors:[["input","mask",""],["textarea","mask",""]],hostBindings:function(e,i){1&e&&Ae("paste",function(){return i.onPaste()})("input",function(s){return i.onInput(s)})("blur",function(){return i.onBlur()})("click",function(s){return i.onFocus(s)})("keydown",function(s){return i.onKeyDown(s)})},inputs:{maskExpression:["mask","maskExpression"],specialCharacters:"specialCharacters",patterns:"patterns",prefix:"prefix",suffix:"suffix",thousandSeparator:"thousandSeparator",decimalMarker:"decimalMarker",dropSpecialCharacters:"dropSpecialCharacters",hiddenInput:"hiddenInput",showMaskTyped:"showMaskTyped",placeHolderCharacter:"placeHolderCharacter",shownMaskExpression:"shownMaskExpression",showTemplate:"showTemplate",clearIfNotMatch:"clearIfNotMatch",validation:"validation",separatorLimit:"separatorLimit",allowNegativeNumbers:"allowNegativeNumbers",leadZeroDateTime:"leadZeroDateTime"},features:[oe([{provide:un,useExisting:fe(()=>n),multi:!0},{provide:lt,useExisting:fe(()=>n),multi:!0},FE]),Qt]}),n})(),S2=(()=>{class n{static forRoot(e){return{ngModule:n,providers:[{provide:kE,useValue:e},{provide:OE,useValue:C2},{provide:Yl,useFactory:M2,deps:[OE,kE]},Af]}}static forChild(){return{ngModule:n}}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=me({type:n}),n.\u0275inj=ce({}),n})();function M2(n,t){return Object.assign(Object.assign({},n),t instanceof Function?t():t)}const RE="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};RE.KeyboardEvent||(RE.KeyboardEvent=function(n,t){});const T2=["inputEl"];function A2(n,t){if(1&n&&(K(0,"mat-label"),wt(1),J()),2&n){const e=ue(2);j(1),wn(e.label)}}function I2(n,t){if(1&n){const e=$i();K(0,"button",8),Ae("click",function(r){return gn(e),ue(2).emitSuffixClick(r)}),K(1,"mat-icon"),wt(2),J()()}if(2&n){const e=ue(2);$("matTooltip",null==e.suffix?null:e.suffix.tooltip),j(2),wn(e.suffix.icon)}}function x2(n,t){if(1&n&&(K(0,"mat-option",9),wt(1),J()),2&n){const e=t.$implicit,i=ue(2);$("value",null==e?null:e.value)("ngStyle",i.suggestionStyle)("disabled",!!i.suggestionStyle),j(1),Ui(" ",null==e?null:e.label," ")}}function k2(n,t){if(1&n&&(K(0,"mat-error"),wt(1),J()),2&n){const e=ue(2);j(1),Ui(" ",e.error," ")}}function O2(n,t){if(1&n){const e=$i();Hi(0),K(1,"mat-form-field",1),Te(2,A2,2,1,"mat-label",0),K(3,"input",2,3),Ae("blur",function(){return gn(e),ue().onBlur()})("keydown.enter",function(r){return gn(e),ue().onEnterKeydown(r)}),J(),Te(5,I2,3,2,"button",4),K(6,"mat-autocomplete",5,6),Ae("opened",function(){return gn(e),ue().triggerFocus()})("optionSelected",function(r){return gn(e),ue().optionSelected(r)}),Te(8,x2,2,4,"mat-option",7),J(),K(9,"mat-hint"),wt(10),J(),Te(11,k2,2,1,"mat-error",0),J(),ji()}if(2&n){const e=function Lg(n){return gr(function zD(){return L.lFrame.contextLView}(),20+n)}(7),i=ue();j(1),$("appearance",i.appearance||"outline")("floatLabel","auto"),j(1),$("ngIf",i.label),j(1),$("id",i.id)("type",i.type)("placeholder",i.placeholder||i.label)("formControl",i.formControl)("errorStateMatcher",i.errorStateMatcher)("matAutocomplete",e),j(2),$("ngIf",i.suffix&&(i.isFocused||!i.suffix.showOnBlur)),j(1),$("panelWidth",i.suggestionsPanelWidth),j(2),$("ngForOf",i.filteredSuggestions),j(2),wn(i.helpText),j(1),$("ngIf",i.error)}}function F2(n,t){if(1&n&&(K(0,"mat-label"),wt(1),J()),2&n){const e=ue(2);j(1),wn(e.label)}}function R2(n,t){if(1&n){const e=$i();K(0,"button",8),Ae("click",function(r){return gn(e),ue(2).emitSuffixClick(r)}),K(1,"mat-icon"),wt(2),J()()}if(2&n){const e=ue(2);$("matTooltip",null==e.suffix?null:e.suffix.tooltip),j(2),wn(e.suffix.icon)}}function N2(n,t){if(1&n&&(K(0,"mat-error"),wt(1),J()),2&n){const e=ue(2);j(1),Ui(" ",e.error," ")}}function P2(n,t){if(1&n){const e=$i();Hi(0),K(1,"mat-form-field",1),Te(2,F2,2,1,"mat-label",0),K(3,"input",10,3),Ae("blur",function(){return gn(e),ue().onBlur()})("keydown.enter",function(r){return gn(e),ue().onEnterKeydown(r)}),J(),Te(5,R2,3,2,"button",4),K(6,"mat-hint"),wt(7),J(),Te(8,N2,2,1,"mat-error",0),J(),ji()}if(2&n){const e=ue();j(1),$("appearance",e.appearance||"outline")("floatLabel","auto"),j(1),$("ngIf",e.label),j(1),$("id",e.id)("type",e.type)("placeholder",e.placeholder||e.label)("formControl",e.formControl)("errorStateMatcher",e.errorStateMatcher)("mask",null==e.mask?null:e.mask.expression)("suffix",(null==e.mask?null:e.mask.suffix)||"")("prefix",(null==e.mask?null:e.mask.prefix)||"")("dropSpecialCharacters",!(null!=e.mask&&e.mask.emitSpecialCharacters))("showMaskTyped",null==e.mask?null:e.mask.showMaskTyped)("thousandSeparator",null==e.mask?null:e.mask.thousandSeparator)("leadZeroDateTime",null==e.mask?null:e.mask.leadZeroDateTime)("allowNegativeNumbers",null==e.mask?null:e.mask.allowNegativeNumbers),j(2),$("ngIf",e.suffix&&(e.isFocused||!e.suffix.showOnBlur)),j(2),wn(e.helpText),j(1),$("ngIf",e.error)}}let L2=(()=>{class n extends zV{constructor(){super(...arguments),this.setValue=({value:e})=>{this.formControl.setValue(e)},this.focused=!1,this.type="text",this.id=(0,GV.generate)()}ngAfterViewInit(){this.focused&&this.inputEl.nativeElement.focus()}get isFocused(){var e;return null===(e=this.input)||void 0===e?void 0:e.focused}emitSuffixClick(e){this.onSuffixClick&&(e.stopPropagation(),this.onSuffixClick())}}return n.\u0275fac=function(){let t;return function(i){return(t||(t=$e(n)))(i||n)}}(),n.\u0275cmp=An({type:n,selectors:[["drayman-text-field-internal"]],viewQuery:function(e,i){if(1&e&&(Qn(Uw,5),Qn(T2,5)),2&e){let r;Ue(r=ze())&&(i.input=r.first),Ue(r=ze())&&(i.inputEl=r.first)}},inputs:{metaData:"metaData",appearance:"appearance",onValueChange:"onValueChange",onEnter:"onEnter",setValue:"setValue",focused:"focused",onFocus:"onFocus",value:"value",label:"label",disabled:"disabled",placeholder:"placeholder",helpText:"helpText",error:"error",updateOnBlur:"updateOnBlur",suggestions:"suggestions",suggestionsPanelWidth:"suggestionsPanelWidth",mask:"mask",type:"type",onSuffixClick:"onSuffixClick",suffix:"suffix"},features:[q],decls:2,vars:2,consts:[[4,"ngIf"],[3,"appearance","floatLabel"],["matInput","","autocomplete","off",3,"id","type","placeholder","formControl","errorStateMatcher","matAutocomplete","blur","keydown.enter"],["inputEl",""],["mat-icon-button","","matSuffix","",3,"matTooltip","click",4,"ngIf"],[3,"panelWidth","opened","optionSelected"],["auto","matAutocomplete"],[3,"value","ngStyle","disabled",4,"ngFor","ngForOf"],["mat-icon-button","","matSuffix","",3,"matTooltip","click"],[3,"value","ngStyle","disabled"],["matInput","","autocomplete","off",3,"id","type","placeholder","formControl","errorStateMatcher","mask","suffix","prefix","dropSpecialCharacters","showMaskTyped","thousandSeparator","leadZeroDateTime","allowNegativeNumbers","blur","keydown.enter"]],template:function(e,i){1&e&&(Te(0,O2,12,14,"ng-container",0),Te(1,P2,9,19,"ng-container",0)),2&e&&($("ngIf",!i.mask),j(1),$("ngIf",i.mask))},directives:[Wa,PV,pf,Uw,Tl,uE,SC,Xh,XB,OV,yH,YH,HB,Ov,Fw,$v,IV,MV,D2],styles:["mat-form-field[_ngcontent-%COMP%]{width:100%} .mat-form-field-infix{width:auto!important}"]}),n})(),V2=(()=>{class n{constructor(e){this._document=e}ngOnDestroy(){const e=this._containerElement;e&&e.parentNode&&e.parentNode.removeChild(e)}getContainerElement(){return this._containerElement||this._createContainer(),this._containerElement}_createContainer(){const e="cdk-overlay-container",i=this._document.querySelectorAll(`.${e}`);if(null==i?void 0:i.length)this._containerElement=i[0];else{const r=this._document.createElement("div");r.classList.add(e),this._document.body.appendChild(r),this._containerElement=r}}}return n.\u0275fac=function(e){return new(e||n)(v(Z))},n.\u0275prov=x({token:n,factory:n.\u0275fac}),n})(),B2=(()=>{class n{constructor(e){this.injector=e}ngDoBootstrap(){const e=function kR(n,t){const e=function DR(n,t){return t.get(Gi).resolveComponentFactory(n).inputs}(n,t.injector),i=t.strategyFactory||new AR(n,t.injector),r=function ER(n){const t={};return n.forEach(({propName:e,templateName:i})=>{t[function yR(n){return n.replace(/[A-Z]/g,t=>`-${t.toLowerCase()}`)}(i)]=e}),t}(e);class s extends xR{constructor(a){super(),this.injector=a}get ngElementStrategy(){if(!this._ngElementStrategy){const a=this._ngElementStrategy=i.create(this.injector||t.injector);e.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),e.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}(L2,{injector:this.injector});customElements.define("drayman-text-field",e)}}return n.\u0275fac=function(e){return new(e||n)(v(Ct))},n.\u0275mod=me({type:n}),n.\u0275inj=ce({providers:[{provide:bf,useClass:V2},{provide:gd,multi:!0,useFactory:t=>()=>{t.setDefaultFontSetClass("material-symbols-rounded")},deps:[To]}],imports:[[nb,xP,L1,gf,$V,GB,S2.forRoot(),QB,ZH,CH]]}),n})();(function hk(){av=!1})(),KF().bootstrapModule(B2).catch(n=>console.error(n))})()})();
|
|
1
|
+
(()=>{var PE={959:(Q,xe,B)=>{"use strict";Q.exports=B(606)},550:(Q,xe,B)=>{"use strict";var se,Ke,st,re=B(539),_e="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ_-";function Ye(){st=!1}function W(Ve){if(Ve){if(Ve!==se){if(Ve.length!==_e.length)throw new Error("Custom alphabet for shortid must be "+_e.length+" unique characters. You submitted "+Ve.length+" characters: "+Ve);var Nt=Ve.split("").filter(function(Ai,us,xo){return us!==xo.lastIndexOf(Ai)});if(Nt.length)throw new Error("Custom alphabet for shortid must be "+_e.length+" unique characters. These characters were not unique: "+Nt.join(", "));se=Ve,Ye()}}else se!==_e&&(se=_e,Ye())}function ye(){return st||(st=function cr(){se||W(_e);for(var us,Ve=se.split(""),Nt=[],Ai=re.nextValue();Ve.length>0;)Ai=re.nextValue(),us=Math.floor(Ai*Ve.length),Nt.push(Ve.splice(us,1)[0]);return Nt.join("")}())}Q.exports={get:function Zl(){return se||_e},characters:function Rt(Ve){return W(Ve),se},seed:function ke(Ve){re.seed(Ve),Ke!==Ve&&(Ye(),Ke=Ve)},lookup:function Io(Ve){return ye()[Ve]},shuffled:ye}},119:(Q,xe,B)=>{"use strict";var st,Ye,re=B(535);B(550),Q.exports=function W(Rt){var ke="",cr=Math.floor(.001*(Date.now()-1567752802062));return cr===Ye?st++:(st=0,Ye=cr),ke+=re(7),ke+=re(Rt),st>0&&(ke+=re(st)),ke+re(cr)}},535:(Q,xe,B)=>{"use strict";var re=B(550),_e=B(68),se=B(152);Q.exports=function Ke(st){for(var W,Ye=0,Rt="";!W;)Rt+=se(_e,re.get(),1),W=st<Math.pow(16,Ye+1),Ye++;return Rt}},606:(Q,xe,B)=>{"use strict";var re=B(550),_e=B(119),se=B(777),Ke=B(1)||0;function Rt(){return _e(Ke)}Q.exports=Rt,Q.exports.generate=Rt,Q.exports.seed=function st(ke){return re.seed(ke),Q.exports},Q.exports.worker=function Ye(ke){return Ke=ke,Q.exports},Q.exports.characters=function W(ke){return void 0!==ke&&re.characters(ke),re.shuffled()},Q.exports.isValid=se},777:(Q,xe,B)=>{"use strict";var re=B(550);Q.exports=function _e(se){return!(!se||"string"!=typeof se||se.length<6||new RegExp("[^"+re.get().replace(/[|\\{}()[\]^$+*?.-]/g,"\\$&")+"]").test(se))}},68:Q=>{"use strict";var xe="object"==typeof window&&(window.crypto||window.msCrypto);Q.exports=xe&&xe.getRandomValues?function(re){return xe.getRandomValues(new Uint8Array(re))}:function(re){for(var _e=[],se=0;se<re;se++)_e.push(Math.floor(256*Math.random()));return _e}},539:Q=>{"use strict";var xe=1;Q.exports={nextValue:function B(){return(xe=(9301*xe+49297)%233280)/233280},seed:function re(_e){xe=_e}}},1:Q=>{"use strict";Q.exports=0},152:Q=>{Q.exports=function(xe,B,re){for(var _e=(2<<Math.log(B.length-1)/Math.LN2)-1,se=-~(1.6*_e*re/B.length),Ke="";;)for(var st=xe(se),Ye=se;Ye--;)if((Ke+=B[st[Ye]&_e]||"").length===+re)return Ke}}},xf={};function kf(Q){var xe=xf[Q];if(void 0!==xe)return xe.exports;var B=xf[Q]={exports:{}};return PE[Q](B,B.exports,kf),B.exports}(()=>{"use strict";function Q(n){return"function"==typeof n}let xe=!1;const B={Promise:void 0,set useDeprecatedSynchronousErrorHandling(n){if(n){const t=new Error;console.warn("DEPRECATED! RxJS was set to use deprecated synchronous error handling behavior by code at: \n"+t.stack)}else xe&&console.log("RxJS: Back to a better error behavior. Thank you. <3");xe=n},get useDeprecatedSynchronousErrorHandling(){return xe}};function re(n){setTimeout(()=>{throw n},0)}const _e={closed:!0,next(n){},error(n){if(B.useDeprecatedSynchronousErrorHandling)throw n;re(n)},complete(){}},se=Array.isArray||(n=>n&&"number"==typeof n.length);function Ke(n){return null!==n&&"object"==typeof n}const Ye=(()=>{function n(t){return Error.call(this),this.message=t?`${t.length} errors occurred during unsubscription:\n${t.map((e,i)=>`${i+1}) ${e.toString()}`).join("\n ")}`:"",this.name="UnsubscriptionError",this.errors=t,this}return n.prototype=Object.create(Error.prototype),n})();class W{constructor(t){this.closed=!1,this._parentOrParents=null,this._subscriptions=null,t&&(this._ctorUnsubscribe=!0,this._unsubscribe=t)}unsubscribe(){let t;if(this.closed)return;let{_parentOrParents:e,_ctorUnsubscribe:i,_unsubscribe:r,_subscriptions:s}=this;if(this.closed=!0,this._parentOrParents=null,this._subscriptions=null,e instanceof W)e.remove(this);else if(null!==e)for(let o=0;o<e.length;++o)e[o].remove(this);if(Q(r)){i&&(this._unsubscribe=void 0);try{r.call(this)}catch(o){t=o instanceof Ye?Rt(o.errors):[o]}}if(se(s)){let o=-1,a=s.length;for(;++o<a;){const l=s[o];if(Ke(l))try{l.unsubscribe()}catch(c){t=t||[],c instanceof Ye?t=t.concat(Rt(c.errors)):t.push(c)}}}if(t)throw new Ye(t)}add(t){let e=t;if(!t)return W.EMPTY;switch(typeof t){case"function":e=new W(t);case"object":if(e===this||e.closed||"function"!=typeof e.unsubscribe)return e;if(this.closed)return e.unsubscribe(),e;if(!(e instanceof W)){const s=e;e=new W,e._subscriptions=[s]}break;default:throw new Error("unrecognized teardown "+t+" added to Subscription.")}let{_parentOrParents:i}=e;if(null===i)e._parentOrParents=this;else if(i instanceof W){if(i===this)return e;e._parentOrParents=[i,this]}else{if(-1!==i.indexOf(this))return e;i.push(this)}const r=this._subscriptions;return null===r?this._subscriptions=[e]:r.push(e),e}remove(t){const e=this._subscriptions;if(e){const i=e.indexOf(t);-1!==i&&e.splice(i,1)}}}var n;function Rt(n){return n.reduce((t,e)=>t.concat(e instanceof Ye?e.errors:e),[])}W.EMPTY=((n=new W).closed=!0,n);const ke="function"==typeof Symbol?Symbol("rxSubscriber"):"@@rxSubscriber_"+Math.random();class ye extends W{constructor(t,e,i){switch(super(),this.syncErrorValue=null,this.syncErrorThrown=!1,this.syncErrorThrowable=!1,this.isStopped=!1,arguments.length){case 0:this.destination=_e;break;case 1:if(!t){this.destination=_e;break}if("object"==typeof t){t instanceof ye?(this.syncErrorThrowable=t.syncErrorThrowable,this.destination=t,t.add(this)):(this.syncErrorThrowable=!0,this.destination=new Io(this,t));break}default:this.syncErrorThrowable=!0,this.destination=new Io(this,t,e,i)}}[ke](){return this}static create(t,e,i){const r=new ye(t,e,i);return r.syncErrorThrowable=!1,r}next(t){this.isStopped||this._next(t)}error(t){this.isStopped||(this.isStopped=!0,this._error(t))}complete(){this.isStopped||(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe())}_next(t){this.destination.next(t)}_error(t){this.destination.error(t),this.unsubscribe()}_complete(){this.destination.complete(),this.unsubscribe()}_unsubscribeAndRecycle(){const{_parentOrParents:t}=this;return this._parentOrParents=null,this.unsubscribe(),this.closed=!1,this.isStopped=!1,this._parentOrParents=t,this}}class Io extends ye{constructor(t,e,i,r){super(),this._parentSubscriber=t;let s,o=this;Q(e)?s=e:e&&(s=e.next,i=e.error,r=e.complete,e!==_e&&(o=Object.create(e),Q(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(t){if(!this.isStopped&&this._next){const{_parentSubscriber:e}=this;B.useDeprecatedSynchronousErrorHandling&&e.syncErrorThrowable?this.__tryOrSetError(e,this._next,t)&&this.unsubscribe():this.__tryOrUnsub(this._next,t)}}error(t){if(!this.isStopped){const{_parentSubscriber:e}=this,{useDeprecatedSynchronousErrorHandling:i}=B;if(this._error)i&&e.syncErrorThrowable?(this.__tryOrSetError(e,this._error,t),this.unsubscribe()):(this.__tryOrUnsub(this._error,t),this.unsubscribe());else if(e.syncErrorThrowable)i?(e.syncErrorValue=t,e.syncErrorThrown=!0):re(t),this.unsubscribe();else{if(this.unsubscribe(),i)throw t;re(t)}}}complete(){if(!this.isStopped){const{_parentSubscriber:t}=this;if(this._complete){const e=()=>this._complete.call(this._context);B.useDeprecatedSynchronousErrorHandling&&t.syncErrorThrowable?(this.__tryOrSetError(t,e),this.unsubscribe()):(this.__tryOrUnsub(e),this.unsubscribe())}else this.unsubscribe()}}__tryOrUnsub(t,e){try{t.call(this._context,e)}catch(i){if(this.unsubscribe(),B.useDeprecatedSynchronousErrorHandling)throw i;re(i)}}__tryOrSetError(t,e,i){if(!B.useDeprecatedSynchronousErrorHandling)throw new Error("bad call");try{e.call(this._context,i)}catch(r){return B.useDeprecatedSynchronousErrorHandling?(t.syncErrorValue=r,t.syncErrorThrown=!0,!0):(re(r),!0)}return!1}_unsubscribe(){const{_parentSubscriber:t}=this;this._context=null,this._parentSubscriber=null,t.unsubscribe()}}const Nt="function"==typeof Symbol&&Symbol.observable||"@@observable";function Ai(n){return n}let Ce=(()=>{class n{constructor(e){this._isScalar=!1,e&&(this._subscribe=e)}lift(e){const i=new n;return i.source=this,i.operator=e,i}subscribe(e,i,r){const{operator:s}=this,o=function Ve(n,t,e){if(n){if(n instanceof ye)return n;if(n[ke])return n[ke]()}return n||t||e?new ye(n,t,e):new ye(_e)}(e,i,r);if(o.add(s?s.call(o,this.source):this.source||B.useDeprecatedSynchronousErrorHandling&&!o.syncErrorThrowable?this._subscribe(o):this._trySubscribe(o)),B.useDeprecatedSynchronousErrorHandling&&o.syncErrorThrowable&&(o.syncErrorThrowable=!1,o.syncErrorThrown))throw o.syncErrorValue;return o}_trySubscribe(e){try{return this._subscribe(e)}catch(i){B.useDeprecatedSynchronousErrorHandling&&(e.syncErrorThrown=!0,e.syncErrorValue=i),function Zl(n){for(;n;){const{closed:t,destination:e,isStopped:i}=n;if(t||i)return!1;n=e&&e instanceof ye?e:null}return!0}(e)?e.error(i):console.warn(i)}}forEach(e,i){return new(i=Of(i))((r,s)=>{let o;o=this.subscribe(a=>{try{e(a)}catch(l){s(l),o&&o.unsubscribe()}},s,r)})}_subscribe(e){const{source:i}=this;return i&&i.subscribe(e)}[Nt](){return this}pipe(...e){return 0===e.length?this:function xo(n){return 0===n.length?Ai:1===n.length?n[0]:function(e){return n.reduce((i,r)=>r(i),e)}}(e)(this)}toPromise(e){return new(e=Of(e))((i,r)=>{let s;this.subscribe(o=>s=o,o=>r(o),()=>i(s))})}}return n.create=t=>new n(t),n})();function Of(n){if(n||(n=B.Promise||Promise),!n)throw new Error("no Promise impl found");return n}const Ii=(()=>{function n(){return Error.call(this),this.message="object unsubscribed",this.name="ObjectUnsubscribedError",this}return n.prototype=Object.create(Error.prototype),n})();class Ff extends W{constructor(t,e){super(),this.subject=t,this.subscriber=e,this.closed=!1}unsubscribe(){if(this.closed)return;this.closed=!0;const t=this.subject,e=t.observers;if(this.subject=null,!e||0===e.length||t.isStopped||t.closed)return;const i=e.indexOf(this.subscriber);-1!==i&&e.splice(i,1)}}class Rf extends ye{constructor(t){super(t),this.destination=t}}let de=(()=>{class n extends Ce{constructor(){super(),this.observers=[],this.closed=!1,this.isStopped=!1,this.hasError=!1,this.thrownError=null}[ke](){return new Rf(this)}lift(e){const i=new Nf(this,this);return i.operator=e,i}next(e){if(this.closed)throw new Ii;if(!this.isStopped){const{observers:i}=this,r=i.length,s=i.slice();for(let o=0;o<r;o++)s[o].next(e)}}error(e){if(this.closed)throw new Ii;this.hasError=!0,this.thrownError=e,this.isStopped=!0;const{observers:i}=this,r=i.length,s=i.slice();for(let o=0;o<r;o++)s[o].error(e);this.observers.length=0}complete(){if(this.closed)throw new Ii;this.isStopped=!0;const{observers:e}=this,i=e.length,r=e.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(e){if(this.closed)throw new Ii;return super._trySubscribe(e)}_subscribe(e){if(this.closed)throw new Ii;return this.hasError?(e.error(this.thrownError),W.EMPTY):this.isStopped?(e.complete(),W.EMPTY):(this.observers.push(e),new Ff(this,e))}asObservable(){const e=new Ce;return e.source=this,e}}return n.create=(t,e)=>new Nf(t,e),n})();class Nf extends de{constructor(t,e){super(),this.destination=t,this.source=e}next(t){const{destination:e}=this;e&&e.next&&e.next(t)}error(t){const{destination:e}=this;e&&e.error&&this.destination.error(t)}complete(){const{destination:t}=this;t&&t.complete&&this.destination.complete()}_subscribe(t){const{source:e}=this;return e?this.source.subscribe(t):W.EMPTY}}function ur(n){return n&&"function"==typeof n.schedule}function Ze(n,t){return function(i){if("function"!=typeof n)throw new TypeError("argument is not a function. Are you looking for `mapTo()`?");return i.lift(new LE(n,t))}}class LE{constructor(t,e){this.project=t,this.thisArg=e}call(t,e){return e.subscribe(new VE(t,this.project,this.thisArg))}}class VE extends ye{constructor(t,e,i){super(t),this.project=e,this.count=0,this.thisArg=i||this}_next(t){let e;try{e=this.project.call(this.thisArg,t,this.count++)}catch(i){return void this.destination.error(i)}this.destination.next(e)}}const Pf=n=>t=>{for(let e=0,i=n.length;e<i&&!t.closed;e++)t.next(n[e]);t.complete()},ko=function HE(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}(),Lf=n=>n&&"number"==typeof n.length&&"function"!=typeof n;function Vf(n){return!!n&&"function"!=typeof n.subscribe&&"function"==typeof n.then}const Xl=n=>{if(n&&"function"==typeof n[Nt])return(n=>t=>{const e=n[Nt]();if("function"!=typeof e.subscribe)throw new TypeError("Provided object does not correctly implement Symbol.observable");return e.subscribe(t)})(n);if(Lf(n))return Pf(n);if(Vf(n))return(n=>t=>(n.then(e=>{t.closed||(t.next(e),t.complete())},e=>t.error(e)).then(null,re),t))(n);if(n&&"function"==typeof n[ko])return(n=>t=>{const e=n[ko]();for(;;){let i;try{i=e.next()}catch(r){return t.error(r),t}if(i.done){t.complete();break}if(t.next(i.value),t.closed)break}return"function"==typeof e.return&&t.add(()=>{e.return&&e.return()}),t})(n);{const e=`You provided ${Ke(n)?"an invalid object":`'${n}'`} where a stream was expected. You can provide an Observable, Promise, Array, or Iterable.`;throw new TypeError(e)}};function Ql(n,t){return new Ce(e=>{const i=new W;let r=0;return i.add(t.schedule(function(){r!==n.length?(e.next(n[r++]),e.closed||i.add(this.schedule())):e.complete()})),i})}function ds(n,t){return t?function KE(n,t){if(null!=n){if(function WE(n){return n&&"function"==typeof n[Nt]}(n))return function UE(n,t){return new Ce(e=>{const i=new W;return i.add(t.schedule(()=>{const r=n[Nt]();i.add(r.subscribe({next(s){i.add(t.schedule(()=>e.next(s)))},error(s){i.add(t.schedule(()=>e.error(s)))},complete(){i.add(t.schedule(()=>e.complete()))}}))})),i})}(n,t);if(Vf(n))return function zE(n,t){return new Ce(e=>{const i=new W;return i.add(t.schedule(()=>n.then(r=>{i.add(t.schedule(()=>{e.next(r),i.add(t.schedule(()=>e.complete()))}))},r=>{i.add(t.schedule(()=>e.error(r)))}))),i})}(n,t);if(Lf(n))return Ql(n,t);if(function qE(n){return n&&"function"==typeof n[ko]}(n)||"string"==typeof n)return function GE(n,t){if(!n)throw new Error("Iterable cannot be null");return new Ce(e=>{const i=new W;let r;return i.add(()=>{r&&"function"==typeof r.return&&r.return()}),i.add(t.schedule(()=>{r=n[ko](),i.add(t.schedule(function(){if(e.closed)return;let s,o;try{const a=r.next();s=a.value,o=a.done}catch(a){return void e.error(a)}o?e.complete():(e.next(s),this.schedule())}))})),i})}(n,t)}throw new TypeError((null!==n&&typeof n||n)+" is not observable")}(n,t):n instanceof Ce?n:new Ce(Xl(n))}class hs extends ye{constructor(t){super(),this.parent=t}_next(t){this.parent.notifyNext(t)}_error(t){this.parent.notifyError(t),this.unsubscribe()}_complete(){this.parent.notifyComplete(),this.unsubscribe()}}class fs extends ye{notifyNext(t){this.destination.next(t)}notifyError(t){this.destination.error(t)}notifyComplete(){this.destination.complete()}}function ps(n,t){if(!t.closed)return n instanceof Ce?n.subscribe(t):Xl(n)(t)}function Jl(n,t,e=Number.POSITIVE_INFINITY){return"function"==typeof t?i=>i.pipe(Jl((r,s)=>ds(n(r,s)).pipe(Ze((o,a)=>t(r,o,s,a))),e)):("number"==typeof t&&(e=t),i=>i.lift(new YE(n,e)))}class YE{constructor(t,e=Number.POSITIVE_INFINITY){this.project=t,this.concurrent=e}call(t,e){return e.subscribe(new ZE(t,this.project,this.concurrent))}}class ZE extends fs{constructor(t,e,i=Number.POSITIVE_INFINITY){super(t),this.project=e,this.concurrent=i,this.hasCompleted=!1,this.buffer=[],this.active=0,this.index=0}_next(t){this.active<this.concurrent?this._tryNext(t):this.buffer.push(t)}_tryNext(t){let e;const i=this.index++;try{e=this.project(t,i)}catch(r){return void this.destination.error(r)}this.active++,this._innerSub(e)}_innerSub(t){const e=new hs(this),i=this.destination;i.add(e);const r=ps(t,e);r!==e&&i.add(r)}_complete(){this.hasCompleted=!0,0===this.active&&0===this.buffer.length&&this.destination.complete(),this.unsubscribe()}notifyNext(t){this.destination.next(t)}notifyComplete(){const t=this.buffer;this.active--,t.length>0?this._next(t.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()}}function Bf(n=Number.POSITIVE_INFINITY){return Jl(Ai,n)}function ec(n,t){return t?Ql(n,t):new Ce(Pf(n))}function si(...n){let t=Number.POSITIVE_INFINITY,e=null,i=n[n.length-1];return ur(i)?(e=n.pop(),n.length>1&&"number"==typeof n[n.length-1]&&(t=n.pop())):"number"==typeof i&&(t=n.pop()),null===e&&1===n.length&&n[0]instanceof Ce?n[0]:Bf(t)(ec(n,e))}function Hf(){return function(t){return t.lift(new XE(t))}}class XE{constructor(t){this.connectable=t}call(t,e){const{connectable:i}=this;i._refCount++;const r=new QE(t,i),s=e.subscribe(r);return r.closed||(r.connection=i.connect()),s}}class QE extends ye{constructor(t,e){super(t),this.connectable=e}_unsubscribe(){const{connectable:t}=this;if(!t)return void(this.connection=null);this.connectable=null;const e=t._refCount;if(e<=0)return void(this.connection=null);if(t._refCount=e-1,e>1)return void(this.connection=null);const{connection:i}=this,r=t._connection;this.connection=null,r&&(!i||r===i)&&r.unsubscribe()}}class JE extends Ce{constructor(t,e){super(),this.source=t,this.subjectFactory=e,this._refCount=0,this._isComplete=!1}_subscribe(t){return this.getSubject().subscribe(t)}getSubject(){const t=this._subject;return(!t||t.isStopped)&&(this._subject=this.subjectFactory()),this._subject}connect(){let t=this._connection;return t||(this._isComplete=!1,t=this._connection=new W,t.add(this.source.subscribe(new tD(this.getSubject(),this))),t.closed&&(this._connection=null,t=W.EMPTY)),t}refCount(){return Hf()(this)}}const eD=(()=>{const n=JE.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 tD extends Rf{constructor(t,e){super(t),this.connectable=e}_error(t){this._unsubscribe(),super._error(t)}_complete(){this.connectable._isComplete=!0,this._unsubscribe(),super._complete()}_unsubscribe(){const t=this.connectable;if(t){this.connectable=null;const e=t._connection;t._refCount=0,t._subject=null,t._connection=null,e&&e.unsubscribe()}}}class rD{constructor(t,e){this.subjectFactory=t,this.selector=e}call(t,e){const{selector:i}=this,r=this.subjectFactory(),s=i(r).subscribe(t);return s.add(e.subscribe(r)),s}}function sD(){return new de}function jf(){return n=>Hf()(function iD(n,t){return function(i){let r;if(r="function"==typeof n?n:function(){return n},"function"==typeof t)return i.lift(new rD(r,t));const s=Object.create(i,eD);return s.source=i,s.subjectFactory=r,s}}(sD)(n))}function ve(n){for(let t in n)if(n[t]===ve)return t;throw Error("Could not find renamed property on target object.")}function tc(n,t){for(const e in t)t.hasOwnProperty(e)&&!n.hasOwnProperty(e)&&(n[e]=t[e])}function he(n){if("string"==typeof n)return n;if(Array.isArray(n))return"["+n.map(he).join(", ")+"]";if(null==n)return""+n;if(n.overriddenName)return`${n.overriddenName}`;if(n.name)return`${n.name}`;const t=n.toString();if(null==t)return""+t;const e=t.indexOf("\n");return-1===e?t:t.substring(0,e)}function nc(n,t){return null==n||""===n?null===t?"":t:null==t||""===t?n:n+" "+t}const oD=ve({__forward_ref__:ve});function fe(n){return n.__forward_ref__=fe,n.toString=function(){return he(this())},n}function z(n){return $f(n)?n():n}function $f(n){return"function"==typeof n&&n.hasOwnProperty(oD)&&n.__forward_ref__===fe}class A extends Error{constructor(t,e){super(function ic(n,t){return`NG0${Math.abs(n)}${t?": "+t:""}`}(t,e)),this.code=t}}function P(n){return"string"==typeof n?n:null==n?"":String(n)}function ot(n){return"function"==typeof n?n.name||n.toString():"object"==typeof n&&null!=n&&"function"==typeof n.type?n.type.name||n.type.toString():P(n)}function Oo(n,t){const e=t?` in ${t}`:"";throw new A(-201,`No provider for ${ot(n)} found${e}`)}function Lt(n,t){null==n&&function pe(n,t,e,i){throw new Error(`ASSERTION ERROR: ${n}`+(null==i?"":` [Expected=> ${e} ${i} ${t} <=Actual]`))}(t,n,null,"!=")}function x(n){return{token:n.token,providedIn:n.providedIn||null,factory:n.factory,value:void 0}}function ce(n){return{providers:n.providers||[],imports:n.imports||[]}}function rc(n){return Uf(n,Fo)||Uf(n,Gf)}function Uf(n,t){return n.hasOwnProperty(t)?n[t]:null}function zf(n){return n&&(n.hasOwnProperty(sc)||n.hasOwnProperty(fD))?n[sc]:null}const Fo=ve({\u0275prov:ve}),sc=ve({\u0275inj:ve}),Gf=ve({ngInjectableDef:ve}),fD=ve({ngInjectorDef:ve});var H=(()=>((H=H||{})[H.Default=0]="Default",H[H.Host=1]="Host",H[H.Self=2]="Self",H[H.SkipSelf=4]="SkipSelf",H[H.Optional=8]="Optional",H))();let oc;function oi(n){const t=oc;return oc=n,t}function Wf(n,t,e){const i=rc(n);return i&&"root"==i.providedIn?void 0===i.value?i.value=i.factory():i.value:e&H.Optional?null:void 0!==t?t:void Oo(he(n),"Injector")}function ai(n){return{toString:n}.toString()}var dn=(()=>((dn=dn||{})[dn.OnPush=0]="OnPush",dn[dn.Default=1]="Default",dn))(),hn=(()=>(function(n){n[n.Emulated=0]="Emulated",n[n.None=2]="None",n[n.ShadowDom=3]="ShadowDom"}(hn||(hn={})),hn))();const mD="undefined"!=typeof globalThis&&globalThis,gD="undefined"!=typeof window&&window,_D="undefined"!=typeof self&&"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&self,ge=mD||"undefined"!=typeof global&&global||gD||_D,dr={},be=[],Ro=ve({\u0275cmp:ve}),ac=ve({\u0275dir:ve}),lc=ve({\u0275pipe:ve}),qf=ve({\u0275mod:ve}),Wn=ve({\u0275fac:ve}),ms=ve({__NG_ELEMENT_ID__:ve});let yD=0;function An(n){return ai(()=>{const e={},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:e,inputs:null,outputs:null,exportAs:n.exportAs||null,onPush:n.changeDetection===dn.OnPush,directiveDefs:null,pipeDefs:null,selectors:n.selectors||be,viewQuery:n.viewQuery||null,features:n.features||null,data:n.data||{},encapsulation:n.encapsulation||hn.Emulated,id:"c",styles:n.styles||be,_:null,setInput:null,schemas:n.schemas||null,tView:null},r=n.directives,s=n.features,o=n.pipes;return i.id+=yD++,i.inputs=Xf(n.inputs,e),i.outputs=Xf(n.outputs),s&&s.forEach(a=>a(i)),i.directiveDefs=r?()=>("function"==typeof r?r():r).map(Kf):null,i.pipeDefs=o?()=>("function"==typeof o?o():o).map(Yf):null,i})}function Kf(n){return at(n)||function li(n){return n[ac]||null}(n)}function Yf(n){return function xi(n){return n[lc]||null}(n)}const Zf={};function me(n){return ai(()=>{const t={type:n.type,bootstrap:n.bootstrap||be,declarations:n.declarations||be,imports:n.imports||be,exports:n.exports||be,transitiveCompileScopes:null,schemas:n.schemas||null,id:n.id||null};return null!=n.id&&(Zf[n.id]=n.type),t})}function Xf(n,t){if(null==n)return dr;const e={};for(const i in n)if(n.hasOwnProperty(i)){let r=n[i],s=r;Array.isArray(r)&&(s=r[1],r=r[0]),e[r]=i,t&&(t[r]=s)}return e}const k=An;function gt(n){return{type:n.type,name:n.name,factory:null,pure:!1!==n.pure,onDestroy:n.type.prototype.ngOnDestroy||null}}function at(n){return n[Ro]||null}function Zt(n,t){const e=n[qf]||null;if(!e&&!0===t)throw new Error(`Type ${he(n)} does not have '\u0275mod' property.`);return e}const U=11;function In(n){return Array.isArray(n)&&"object"==typeof n[1]}function pn(n){return Array.isArray(n)&&!0===n[1]}function dc(n){return 0!=(8&n.flags)}function Vo(n){return 2==(2&n.flags)}function Bo(n){return 1==(1&n.flags)}function mn(n){return null!==n.template}function DD(n){return 0!=(512&n[2])}function Ri(n,t){return n.hasOwnProperty(Wn)?n[Wn]:null}class Jf{constructor(t,e,i){this.previousValue=t,this.currentValue=e,this.firstChange=i}isFirstChange(){return this.firstChange}}function Qt(){return ep}function ep(n){return n.type.prototype.ngOnChanges&&(n.setInput=AD),TD}function TD(){const n=np(this),t=null==n?void 0:n.current;if(t){const e=n.previous;if(e===dr)n.previous=t;else for(let i in t)e[i]=t[i];n.current=null,this.ngOnChanges(t)}}function AD(n,t,e,i){const r=np(n)||function ID(n,t){return n[tp]=t}(n,{previous:dr,current:null}),s=r.current||(r.current={}),o=r.previous,a=this.declaredInputs[e],l=o[a];s[a]=new Jf(l&&l.currentValue,t,o===dr),n[i]=t}Qt.ngInherit=!0;const tp="__ngSimpleChanges__";function np(n){return n[tp]||null}let gc;function Pe(n){return!!n.listen}const ip={createRenderer:(n,t)=>function _c(){return void 0!==gc?gc:"undefined"!=typeof document?document:void 0}()};function je(n){for(;Array.isArray(n);)n=n[0];return n}function Ho(n,t){return je(t[n])}function Bt(n,t){return je(t[n.index])}function yc(n,t){return n.data[t]}function gr(n,t){return n[t]}function Ht(n,t){const e=t[n];return In(e)?e:e[0]}function rp(n){return 4==(4&n[2])}function vc(n){return 128==(128&n[2])}function ci(n,t){return null==t?null:n[t]}function sp(n){n[18]=0}function bc(n,t){n[5]+=t;let e=n,i=n[3];for(;null!==i&&(1===t&&1===e[5]||-1===t&&0===e[5]);)i[5]+=t,e=i,i=i[3]}const L={lFrame:pp(null),bindingsEnabled:!0};function ap(){return L.bindingsEnabled}function C(){return L.lFrame.lView}function te(){return L.lFrame.tView}function gn(n){return L.lFrame.contextLView=n,n[8]}function Xe(){let n=lp();for(;null!==n&&64===n.type;)n=n.parent;return n}function lp(){return L.lFrame.currentTNode}function xn(n,t){const e=L.lFrame;e.currentTNode=n,e.isParent=t}function Cc(){return L.lFrame.isParent}function wc(){L.lFrame.isParent=!1}function _r(){return L.lFrame.bindingIndex++}function WD(n,t){const e=L.lFrame;e.bindingIndex=e.bindingRootIndex=n,Ec(t)}function Ec(n){L.lFrame.currentDirectiveIndex=n}function dp(){return L.lFrame.currentQueryIndex}function Sc(n){L.lFrame.currentQueryIndex=n}function KD(n){const t=n[1];return 2===t.type?t.declTNode:1===t.type?n[6]:null}function hp(n,t,e){if(e&H.SkipSelf){let r=t,s=n;for(;!(r=r.parent,null!==r||e&H.Host||(r=KD(s),null===r||(s=s[15],10&r.type))););if(null===r)return!1;t=r,n=s}const i=L.lFrame=fp();return i.currentTNode=t,i.lView=n,!0}function $o(n){const t=fp(),e=n[1];L.lFrame=t,t.currentTNode=e.firstChild,t.lView=n,t.tView=e,t.contextLView=n,t.bindingIndex=e.bindingStartIndex,t.inI18n=!1}function fp(){const n=L.lFrame,t=null===n?null:n.child;return null===t?pp(n):t}function pp(n){const t={currentTNode:null,isParent:!0,lView:null,tView:null,selectedIndex:-1,contextLView:null,elementDepthCount:0,currentNamespace:null,currentDirectiveIndex:-1,bindingRootIndex:-1,bindingIndex:-1,currentQueryIndex:0,parent:n,child:null,inI18n:!1};return null!==n&&(n.child=t),t}function mp(){const n=L.lFrame;return L.lFrame=n.parent,n.currentTNode=null,n.lView=null,n}const gp=mp;function Uo(){const n=mp();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 vt(){return L.lFrame.selectedIndex}function ui(n){L.lFrame.selectedIndex=n}function Oe(){const n=L.lFrame;return yc(n.tView,n.selectedIndex)}function zo(n,t){for(let e=t.directiveStart,i=t.directiveEnd;e<i;e++){const s=n.data[e].type.prototype,{ngAfterContentInit:o,ngAfterContentChecked:a,ngAfterViewInit:l,ngAfterViewChecked:c,ngOnDestroy:u}=s;o&&(n.contentHooks||(n.contentHooks=[])).push(-e,o),a&&((n.contentHooks||(n.contentHooks=[])).push(e,a),(n.contentCheckHooks||(n.contentCheckHooks=[])).push(e,a)),l&&(n.viewHooks||(n.viewHooks=[])).push(-e,l),c&&((n.viewHooks||(n.viewHooks=[])).push(e,c),(n.viewCheckHooks||(n.viewCheckHooks=[])).push(e,c)),null!=u&&(n.destroyHooks||(n.destroyHooks=[])).push(e,u)}}function Go(n,t,e){_p(n,t,3,e)}function Wo(n,t,e,i){(3&n[2])===e&&_p(n,t,e,i)}function Mc(n,t){let e=n[2];(3&e)===t&&(e&=2047,e+=1,n[2]=e)}function _p(n,t,e,i){const s=null!=i?i:-1,o=t.length-1;let a=0;for(let l=void 0!==i?65535&n[18]:0;l<o;l++)if("number"==typeof t[l+1]){if(a=t[l],null!=i&&a>=i)break}else t[l]<0&&(n[18]+=65536),(a<s||-1==s)&&(r0(n,e,t,l),n[18]=(4294901760&n[18])+l+2),l++}function r0(n,t,e,i){const r=e[i]<0,s=e[i+1],a=n[r?-e[i]:e[i]];if(r){if(n[2]>>11<n[18]>>16&&(3&n[2])===t){n[2]+=2048;try{s.call(a)}finally{}}}else try{s.call(a)}finally{}}class bs{constructor(t,e,i){this.factory=t,this.resolving=!1,this.canSeeViewProviders=e,this.injectImpl=i}}function qo(n,t,e){const i=Pe(n);let r=0;for(;r<e.length;){const s=e[r];if("number"==typeof s){if(0!==s)break;r++;const o=e[r++],a=e[r++],l=e[r++];i?n.setAttribute(t,a,l,o):t.setAttributeNS(o,a,l)}else{const o=s,a=e[++r];Ac(o)?i&&n.setProperty(t,o,a):i?n.setAttribute(t,o,a):t.setAttribute(o,a),r++}}return r}function yp(n){return 3===n||4===n||6===n}function Ac(n){return 64===n.charCodeAt(0)}function Ko(n,t){if(null!==t&&0!==t.length)if(null===n||0===n.length)n=t.slice();else{let e=-1;for(let i=0;i<t.length;i++){const r=t[i];"number"==typeof r?e=r:0===e||vp(n,e,r,null,-1===e||2===e?t[++i]:null)}}return n}function vp(n,t,e,i,r){let s=0,o=n.length;if(-1===t)o=-1;else for(;s<n.length;){const a=n[s++];if("number"==typeof a){if(a===t){o=-1;break}if(a>t){o=s-1;break}}}for(;s<n.length;){const a=n[s];if("number"==typeof a)break;if(a===e){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,t),s=o+1),n.splice(s++,0,e),null!==i&&n.splice(s++,0,i),null!==r&&n.splice(s++,0,r)}function bp(n){return-1!==n}function yr(n){return 32767&n}function vr(n,t){let e=function c0(n){return n>>16}(n),i=t;for(;e>0;)i=i[15],e--;return i}let Ic=!0;function Yo(n){const t=Ic;return Ic=n,t}let u0=0;function ws(n,t){const e=kc(n,t);if(-1!==e)return e;const i=t[1];i.firstCreatePass&&(n.injectorIndex=t.length,xc(i.data,n),xc(t,null),xc(i.blueprint,null));const r=Zo(n,t),s=n.injectorIndex;if(bp(r)){const o=yr(r),a=vr(r,t),l=a[1].data;for(let c=0;c<8;c++)t[s+c]=a[o+c]|l[o+c]}return t[s+8]=r,s}function xc(n,t){n.push(0,0,0,0,0,0,0,0,t)}function kc(n,t){return-1===n.injectorIndex||n.parent&&n.parent.injectorIndex===n.injectorIndex||null===t[n.injectorIndex+8]?-1:n.injectorIndex}function Zo(n,t){if(n.parent&&-1!==n.parent.injectorIndex)return n.parent.injectorIndex;let e=0,i=null,r=t;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(e++,r=r[15],-1!==i.injectorIndex)return i.injectorIndex|e<<16}return-1}function Xo(n,t,e){!function d0(n,t,e){let i;"string"==typeof e?i=e.charCodeAt(0)||0:e.hasOwnProperty(ms)&&(i=e[ms]),null==i&&(i=e[ms]=u0++);const r=255&i;t.data[n+(r>>5)]|=1<<r}(n,t,e)}function Ep(n,t,e){if(e&H.Optional)return n;Oo(t,"NodeInjector")}function Dp(n,t,e,i){if(e&H.Optional&&void 0===i&&(i=null),0==(e&(H.Self|H.Host))){const r=n[9],s=oi(void 0);try{return r?r.get(t,i,e&H.Optional):Wf(t,i,e&H.Optional)}finally{oi(s)}}return Ep(i,t,e)}function Sp(n,t,e,i=H.Default,r){if(null!==n){const s=function m0(n){if("string"==typeof n)return n.charCodeAt(0)||0;const t=n.hasOwnProperty(ms)?n[ms]:void 0;return"number"==typeof t?t>=0?255&t:f0:t}(e);if("function"==typeof s){if(!hp(t,n,i))return i&H.Host?Ep(r,e,i):Dp(t,e,i,r);try{const o=s(i);if(null!=o||i&H.Optional)return o;Oo(e)}finally{gp()}}else if("number"==typeof s){let o=null,a=kc(n,t),l=-1,c=i&H.Host?t[16][6]:null;for((-1===a||i&H.SkipSelf)&&(l=-1===a?Zo(n,t):t[a+8],-1!==l&&Ap(i,!1)?(o=t[1],a=yr(l),t=vr(l,t)):a=-1);-1!==a;){const u=t[1];if(Tp(s,a,u.data)){const d=p0(a,t,e,o,i,c);if(d!==Mp)return d}l=t[a+8],-1!==l&&Ap(i,t[1].data[a+8]===c)&&Tp(s,a,t)?(o=u,a=yr(l),t=vr(l,t)):a=-1}}}return Dp(t,e,i,r)}const Mp={};function f0(){return new br(Xe(),C())}function p0(n,t,e,i,r,s){const o=t[1],a=o.data[n+8],u=Qo(a,o,e,null==i?Vo(a)&&Ic:i!=o&&0!=(3&a.type),r&H.Host&&s===a);return null!==u?Es(t,o,u,a):Mp}function Qo(n,t,e,i,r){const s=n.providerIndexes,o=t.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&&e===p||f>=l&&p.type===e)return f}if(r){const f=o[l];if(f&&mn(f)&&f.type===e)return l}return null}function Es(n,t,e,i){let r=n[e];const s=t.data;if(function s0(n){return n instanceof bs}(r)){const o=r;o.resolving&&function aD(n,t){const e=t?`. Dependency path: ${t.join(" > ")} > ${n}`:"";throw new A(-200,`Circular dependency in DI detected for ${n}${e}`)}(ot(s[e]));const a=Yo(o.canSeeViewProviders);o.resolving=!0;const l=o.injectImpl?oi(o.injectImpl):null;hp(n,i,H.Default);try{r=n[e]=o.factory(void 0,s,n,i),t.firstCreatePass&&e>=i.directiveStart&&function n0(n,t,e){const{ngOnChanges:i,ngOnInit:r,ngDoCheck:s}=t.type.prototype;if(i){const o=ep(t);(e.preOrderHooks||(e.preOrderHooks=[])).push(n,o),(e.preOrderCheckHooks||(e.preOrderCheckHooks=[])).push(n,o)}r&&(e.preOrderHooks||(e.preOrderHooks=[])).push(0-n,r),s&&((e.preOrderHooks||(e.preOrderHooks=[])).push(n,s),(e.preOrderCheckHooks||(e.preOrderCheckHooks=[])).push(n,s))}(e,s[e],t)}finally{null!==l&&oi(l),Yo(a),o.resolving=!1,gp()}}return r}function Tp(n,t,e){return!!(e[t+(n>>5)]&1<<n)}function Ap(n,t){return!(n&H.Self||n&H.Host&&t)}class br{constructor(t,e){this._tNode=t,this._lView=e}get(t,e,i){return Sp(this._tNode,this._lView,t,i,e)}}function $e(n){return ai(()=>{const t=n.prototype.constructor,e=t[Wn]||Oc(t),i=Object.prototype;let r=Object.getPrototypeOf(n.prototype).constructor;for(;r&&r!==i;){const s=r[Wn]||Oc(r);if(s&&s!==e)return s;r=Object.getPrototypeOf(r)}return s=>new s})}function Oc(n){return $f(n)?()=>{const t=Oc(z(n));return t&&t()}:Ri(n)}function Ds(n){return function h0(n,t){if("class"===t)return n.classes;if("style"===t)return n.styles;const e=n.attrs;if(e){const i=e.length;let r=0;for(;r<i;){const s=e[r];if(yp(s))break;if(0===s)r+=2;else if("number"==typeof s)for(r++;r<i&&"string"==typeof e[r];)r++;else{if(s===t)return e[r+1];r+=2}}}return null}(Xe(),n)}const wr="__parameters__";function Dr(n,t,e){return ai(()=>{const i=function Fc(n){return function(...e){if(n){const i=n(...e);for(const r in i)this[r]=i[r]}}}(t);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(wr)?l[wr]:Object.defineProperty(l,wr,{value:[]})[wr];for(;d.length<=u;)d.push(null);return(d[u]=d[u]||[]).push(o),l}}return e&&(r.prototype=Object.create(e.prototype)),r.prototype.ngMetadataName=n,r.annotationCls=r,r})}class T{constructor(t,e){this._desc=t,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,"number"==typeof e?this.__NG_ELEMENT_ID__=e:void 0!==e&&(this.\u0275prov=x({token:this,providedIn:e.providedIn||"root",factory:e.factory}))}toString(){return`InjectionToken ${this._desc}`}}function en(n,t){void 0===t&&(t=n);for(let e=0;e<n.length;e++){let i=n[e];Array.isArray(i)?(t===n&&(t=n.slice(0,e)),en(i,t)):t!==n&&t.push(i)}return t}function kn(n,t){n.forEach(e=>Array.isArray(e)?kn(e,t):t(e))}function xp(n,t,e){t>=n.length?n.push(e):n.splice(t,0,e)}function Jo(n,t){return t>=n.length-1?n.pop():n.splice(t,1)[0]}function Ts(n,t){const e=[];for(let i=0;i<n;i++)e.push(t);return e}function jt(n,t,e){let i=Sr(n,t);return i>=0?n[1|i]=e:(i=~i,function v0(n,t,e,i){let r=n.length;if(r==t)n.push(e,i);else if(1===r)n.push(i,n[0]),n[0]=e;else{for(r--,n.push(n[r-1],n[r]);r>t;)n[r]=n[r-2],r--;n[t]=e,n[t+1]=i}}(n,i,t,e)),i}function Nc(n,t){const e=Sr(n,t);if(e>=0)return n[1|e]}function Sr(n,t){return function Fp(n,t,e){let i=0,r=n.length>>e;for(;r!==i;){const s=i+(r-i>>1),o=n[s<<e];if(t===o)return s<<e;o>t?r=s:i=s+1}return~(r<<e)}(n,t,1)}const As={},Lc="__NG_DI_FLAG__",ta="ngTempTokenPath",M0=/\n/gm,Np="__source",A0=ve({provide:String,useValue:ve});let Is;function Pp(n){const t=Is;return Is=n,t}function I0(n,t=H.Default){if(void 0===Is)throw new A(203,"");return null===Is?Wf(n,void 0,t):Is.get(n,t&H.Optional?null:void 0,t)}function v(n,t=H.Default){return(function pD(){return oc}()||I0)(z(n),t)}const na=v;function Vc(n){const t=[];for(let e=0;e<n.length;e++){const i=z(n[e]);if(Array.isArray(i)){if(0===i.length)throw new A(900,"");let r,s=H.Default;for(let o=0;o<i.length;o++){const a=i[o],l=x0(a);"number"==typeof l?-1===l?r=a.token:s|=l:r=a}t.push(v(r,s))}else t.push(v(i))}return t}function xs(n,t){return n[Lc]=t,n.prototype[Lc]=t,n}function x0(n){return n[Lc]}const Ni=xs(Dr("Optional"),8),ks=xs(Dr("SkipSelf"),4);var $t=(()=>(($t=$t||{})[$t.Important=1]="Important",$t[$t.DashCase=2]="DashCase",$t))();const zp="__ngContext__";function ft(n,t){n[zp]=t}function $c(n){const t=function Fs(n){return n[zp]||null}(n);return t?Array.isArray(t)?t:t.lView:null}function zc(n,t){return undefined(n,t)}function Rs(n){const t=n[3];return pn(t)?t[3]:t}function Gc(n){return Xp(n[13])}function Wc(n){return Xp(n[4])}function Xp(n){for(;null!==n&&!pn(n);)n=n[4];return n}function Tr(n,t,e,i,r){if(null!=i){let s,o=!1;pn(i)?s=i:In(i)&&(o=!0,i=i[0]);const a=je(i);0===n&&null!==e?null==r?im(t,e,a):Pi(t,e,a,r||null,!0):1===n&&null!==e?Pi(t,e,a,r||null,!0):2===n?function Jc(n,t,e){const i=ra(n,t);i&&function aS(n,t,e,i){Pe(n)?n.removeChild(t,e,i):t.removeChild(e)}(n,i,t,e)}(t,a,o):3===n&&t.destroyNode(a),null!=s&&function uS(n,t,e,i,r){const s=e[7];s!==je(e)&&Tr(t,n,i,s,r);for(let a=10;a<e.length;a++){const l=e[a];Ns(l[1],l,n,t,i,s)}}(t,n,s,e,r)}}function Kc(n,t,e){if(Pe(n))return n.createElement(t,e);{const i=null!==e?function FD(n){const t=n.toLowerCase();return"svg"===t?"http://www.w3.org/2000/svg":"math"===t?"http://www.w3.org/1998/MathML/":null}(e):null;return null===i?n.createElement(t):n.createElementNS(i,t)}}function Jp(n,t){const e=n[9],i=e.indexOf(t),r=t[3];1024&t[2]&&(t[2]&=-1025,bc(r,-1)),e.splice(i,1)}function Yc(n,t){if(n.length<=10)return;const e=10+t,i=n[e];if(i){const r=i[17];null!==r&&r!==n&&Jp(r,i),t>0&&(n[e-1][4]=i[4]);const s=Jo(n,10+t);!function J0(n,t){Ns(n,t,t[U],2,null,null),t[0]=null,t[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 em(n,t){if(!(256&t[2])){const e=t[U];Pe(e)&&e.destroyNode&&Ns(n,t,e,3,null,null),function nS(n){let t=n[13];if(!t)return Zc(n[1],n);for(;t;){let e=null;if(In(t))e=t[13];else{const i=t[10];i&&(e=i)}if(!e){for(;t&&!t[4]&&t!==n;)In(t)&&Zc(t[1],t),t=t[3];null===t&&(t=n),In(t)&&Zc(t[1],t),e=t&&t[4]}t=e}}(t)}}function Zc(n,t){if(!(256&t[2])){t[2]&=-129,t[2]|=256,function oS(n,t){let e;if(null!=n&&null!=(e=n.destroyHooks))for(let i=0;i<e.length;i+=2){const r=t[e[i]];if(!(r instanceof bs)){const s=e[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,t),function sS(n,t){const e=n.cleanup,i=t[7];let r=-1;if(null!==e)for(let s=0;s<e.length-1;s+=2)if("string"==typeof e[s]){const o=e[s+1],a="function"==typeof o?o(t):je(t[o]),l=i[r=e[s+2]],c=e[s+3];"boolean"==typeof c?a.removeEventListener(e[s],l,c):c>=0?i[r=c]():i[r=-c].unsubscribe(),s+=2}else{const o=i[r=e[s+1]];e[s].call(o)}if(null!==i){for(let s=r+1;s<i.length;s++)i[s]();t[7]=null}}(n,t),1===t[1].type&&Pe(t[U])&&t[U].destroy();const e=t[17];if(null!==e&&pn(t[3])){e!==t[3]&&Jp(e,t);const i=t[19];null!==i&&i.detachView(n)}}}function tm(n,t,e){return function nm(n,t,e){let i=t;for(;null!==i&&40&i.type;)i=(t=i).parent;if(null===i)return e[0];if(2&i.flags){const r=n.data[i.directiveStart].encapsulation;if(r===hn.None||r===hn.Emulated)return null}return Bt(i,e)}(n,t.parent,e)}function Pi(n,t,e,i,r){Pe(n)?n.insertBefore(t,e,i,r):t.insertBefore(e,i,r)}function im(n,t,e){Pe(n)?n.appendChild(t,e):t.appendChild(e)}function rm(n,t,e,i,r){null!==i?Pi(n,t,e,i,r):im(n,t,e)}function ra(n,t){return Pe(n)?n.parentNode(t):t.parentNode}function sm(n,t,e){return am(n,t,e)}let aa,am=function om(n,t,e){return 40&n.type?Bt(n,e):null};function sa(n,t,e,i){const r=tm(n,i,t),s=t[U],a=sm(i.parent||t[6],i,t);if(null!=r)if(Array.isArray(e))for(let l=0;l<e.length;l++)rm(s,r,e[l],a,!1);else rm(s,r,e,a,!1)}function oa(n,t){if(null!==t){const e=t.type;if(3&e)return Bt(t,n);if(4&e)return Qc(-1,n[t.index]);if(8&e){const i=t.child;if(null!==i)return oa(n,i);{const r=n[t.index];return pn(r)?Qc(-1,r):je(r)}}if(32&e)return zc(t,n)()||je(n[t.index]);{const i=cm(n,t);return null!==i?Array.isArray(i)?i[0]:oa(Rs(n[16]),i):oa(n,t.next)}}return null}function cm(n,t){return null!==t?n[16][6].projection[t.projection]:null}function Qc(n,t){const e=10+n+1;if(e<t.length){const i=t[e],r=i[1].firstChild;if(null!==r)return oa(i,r)}return t[7]}function eu(n,t,e,i,r,s,o){for(;null!=e;){const a=i[e.index],l=e.type;if(o&&0===t&&(a&&ft(je(a),i),e.flags|=4),64!=(64&e.flags))if(8&l)eu(n,t,e.child,i,r,s,!1),Tr(t,n,r,a,s);else if(32&l){const c=zc(e,i);let u;for(;u=c();)Tr(t,n,r,u,s);Tr(t,n,r,a,s)}else 16&l?um(n,t,i,e,r,s):Tr(t,n,r,a,s);e=o?e.projectionNext:e.next}}function Ns(n,t,e,i,r,s){eu(e,i,n.firstChild,t,r,s,!1)}function um(n,t,e,i,r,s){const o=e[16],l=o[6].projection[i.projection];if(Array.isArray(l))for(let c=0;c<l.length;c++)Tr(t,n,r,l[c],s);else eu(n,t,l,o[3],r,s,!0)}function dm(n,t,e){Pe(n)?n.setAttribute(t,"style",e):t.style.cssText=e}function tu(n,t,e){Pe(n)?""===e?n.removeAttribute(t,"class"):n.setAttribute(t,"class",e):t.className=e}function Li(n){var t;return(null===(t=function nu(){if(void 0===aa&&(aa=null,ge.trustedTypes))try{aa=ge.trustedTypes.createPolicy("angular",{createHTML:n=>n,createScript:n=>n,createScriptURL:n=>n})}catch(n){}return aa}())||void 0===t?void 0:t.createHTML(n))||n}class Vi{constructor(t){this.changingThisBreaksApplicationSecurity=t}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see https://g.co/ng/security#xss)`}}class mS extends Vi{getTypeName(){return"HTML"}}class gS extends Vi{getTypeName(){return"Style"}}class _S extends Vi{getTypeName(){return"Script"}}class yS extends Vi{getTypeName(){return"URL"}}class vS extends Vi{getTypeName(){return"ResourceURL"}}function Ut(n){return n instanceof Vi?n.changingThisBreaksApplicationSecurity:n}function On(n,t){const e=mm(n);if(null!=e&&e!==t){if("ResourceURL"===e&&"URL"===t)return!0;throw new Error(`Required a safe ${t}, got a ${e} (see https://g.co/ng/security#xss)`)}return e===t}function mm(n){return n instanceof Vi&&n.getTypeName()||null}class SS{constructor(t){this.inertDocumentHelper=t}getInertBodyElement(t){t="<body><remove></remove>"+t;try{const e=(new window.DOMParser).parseFromString(Li(t),"text/html").body;return null===e?this.inertDocumentHelper.getInertBodyElement(t):(e.removeChild(e.firstChild),e)}catch(e){return null}}}class MS{constructor(t){if(this.defaultDoc=t,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert"),null==this.inertDocument.body){const e=this.inertDocument.createElement("html");this.inertDocument.appendChild(e);const i=this.inertDocument.createElement("body");e.appendChild(i)}}getInertBodyElement(t){const e=this.inertDocument.createElement("template");if("content"in e)return e.innerHTML=Li(t),e;const i=this.inertDocument.createElement("body");return i.innerHTML=Li(t),this.defaultDoc.documentMode&&this.stripCustomNsAttrs(i),i}stripCustomNsAttrs(t){const e=t.attributes;for(let r=e.length-1;0<r;r--){const o=e.item(r).name;("xmlns:ns1"===o||0===o.indexOf("ns1:"))&&t.removeAttribute(o)}let i=t.firstChild;for(;i;)i.nodeType===Node.ELEMENT_NODE&&this.stripCustomNsAttrs(i),i=i.nextSibling}}const AS=/^(?:(?:https?|mailto|ftp|tel|file|sms):|[^&:/?#]*(?:[/?#]|$))/gi,IS=/^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 Ps(n){return(n=String(n)).match(AS)||n.match(IS)?n:"unsafe:"+n}function _m(n){return(n=String(n)).split(",").map(t=>Ps(t.trim())).join(", ")}function Fn(n){const t={};for(const e of n.split(","))t[e]=!0;return t}function Ls(...n){const t={};for(const e of n)for(const i in e)e.hasOwnProperty(i)&&(t[i]=!0);return t}const ym=Fn("area,br,col,hr,img,wbr"),vm=Fn("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),bm=Fn("rp,rt"),ru=Ls(ym,Ls(vm,Fn("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")),Ls(bm,Fn("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")),Ls(bm,vm)),su=Fn("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),ou=Fn("srcset"),Cm=Ls(su,ou,Fn("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"),Fn("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")),xS=Fn("script,style,template");class kS{constructor(){this.sanitizedSomething=!1,this.buf=[]}sanitizeChildren(t){let e=t.firstChild,i=!0;for(;e;)if(e.nodeType===Node.ELEMENT_NODE?i=this.startElement(e):e.nodeType===Node.TEXT_NODE?this.chars(e.nodeValue):this.sanitizedSomething=!0,i&&e.firstChild)e=e.firstChild;else for(;e;){e.nodeType===Node.ELEMENT_NODE&&this.endElement(e);let r=this.checkClobberedElement(e,e.nextSibling);if(r){e=r;break}e=this.checkClobberedElement(e,e.parentNode)}return this.buf.join("")}startElement(t){const e=t.nodeName.toLowerCase();if(!ru.hasOwnProperty(e))return this.sanitizedSomething=!0,!xS.hasOwnProperty(e);this.buf.push("<"),this.buf.push(e);const i=t.attributes;for(let r=0;r<i.length;r++){const s=i.item(r),o=s.name,a=o.toLowerCase();if(!Cm.hasOwnProperty(a)){this.sanitizedSomething=!0;continue}let l=s.value;su[a]&&(l=Ps(l)),ou[a]&&(l=_m(l)),this.buf.push(" ",o,'="',wm(l),'"')}return this.buf.push(">"),!0}endElement(t){const e=t.nodeName.toLowerCase();ru.hasOwnProperty(e)&&!ym.hasOwnProperty(e)&&(this.buf.push("</"),this.buf.push(e),this.buf.push(">"))}chars(t){this.buf.push(wm(t))}checkClobberedElement(t,e){if(e&&(t.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_CONTAINED_BY)===Node.DOCUMENT_POSITION_CONTAINED_BY)throw new Error(`Failed to sanitize html because the element is clobbered: ${t.outerHTML}`);return e}}const OS=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,FS=/([^\#-~ |!])/g;function wm(n){return n.replace(/&/g,"&").replace(OS,function(t){return"&#"+(1024*(t.charCodeAt(0)-55296)+(t.charCodeAt(1)-56320)+65536)+";"}).replace(FS,function(t){return"&#"+t.charCodeAt(0)+";"}).replace(/</g,"<").replace(/>/g,">")}let ca;function Em(n,t){let e=null;try{ca=ca||function gm(n){const t=new MS(n);return function TS(){try{return!!(new window.DOMParser).parseFromString(Li(""),"text/html")}catch(n){return!1}}()?new SS(t):t}(n);let i=t?String(t):"";e=ca.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=e.innerHTML,e=ca.getInertBodyElement(i)}while(i!==s);return Li((new kS).sanitizeChildren(au(e)||e))}finally{if(e){const i=au(e)||e;for(;i.firstChild;)i.removeChild(i.firstChild)}}}function au(n){return"content"in n&&function RS(n){return n.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===n.nodeName}(n)?n.content:null}var ae=(()=>((ae=ae||{})[ae.NONE=0]="NONE",ae[ae.HTML=1]="HTML",ae[ae.STYLE=2]="STYLE",ae[ae.SCRIPT=3]="SCRIPT",ae[ae.URL=4]="URL",ae[ae.RESOURCE_URL=5]="RESOURCE_URL",ae))();function cu(n){return n.ngOriginalError}function GS(n,...t){n.error(...t)}class hi{constructor(){this._console=console}handleError(t){const e=this._findOriginalError(t),i=function zS(n){return n&&n.ngErrorLogger||GS}(t);i(this._console,"ERROR",t),e&&i(this._console,"ORIGINAL ERROR",e)}_findOriginalError(t){let e=t&&cu(t);for(;e&&cu(e);)e=cu(e);return e||null}}const QS=(()=>("undefined"!=typeof requestAnimationFrame&&requestAnimationFrame||setTimeout).bind(ge))();function Rn(n){return n instanceof Function?n():n}function Tm(n,t,e){let i=n.length;for(;;){const r=n.indexOf(t,e);if(-1===r)return r;if(0===r||n.charCodeAt(r-1)<=32){const s=t.length;if(r+s===i||n.charCodeAt(r+s)<=32)return r}e=r+1}}const Am="ng-template";function nM(n,t,e){let i=0;for(;i<n.length;){let r=n[i++];if(e&&"class"===r){if(r=n[i],-1!==Tm(r.toLowerCase(),t,0))return!0}else if(1===r){for(;i<n.length&&"string"==typeof(r=n[i++]);)if(r.toLowerCase()===t)return!0;return!1}}return!1}function Im(n){return 4===n.type&&n.value!==Am}function iM(n,t,e){return t===(4!==n.type||e?n.value:Am)}function rM(n,t,e){let i=4;const r=n.attrs||[],s=function aM(n){for(let t=0;t<n.length;t++)if(yp(n[t]))return t;return n.length}(r);let o=!1;for(let a=0;a<t.length;a++){const l=t[a];if("number"!=typeof l){if(!o)if(4&i){if(i=2|1&i,""!==l&&!iM(n,l,e)||""===l&&1===t.length){if(_n(i))return!1;o=!0}}else{const c=8&i?l:t[++a];if(8&i&&null!==n.attrs){if(!nM(n.attrs,c,e)){if(_n(i))return!1;o=!0}continue}const d=sM(8&i?"class":l,r,Im(n),e);if(-1===d){if(_n(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!==Tm(f,c,0)||2&i&&c!==h){if(_n(i))return!1;o=!0}}}}else{if(!o&&!_n(i)&&!_n(l))return!1;if(o&&_n(l))continue;o=!1,i=l|1&i}}return _n(i)||o}function _n(n){return 0==(1&n)}function sM(n,t,e,i){if(null===t)return-1;let r=0;if(i||!e){let s=!1;for(;r<t.length;){const o=t[r];if(o===n)return r;if(3===o||6===o)s=!0;else{if(1===o||2===o){let a=t[++r];for(;"string"==typeof a;)a=t[++r];continue}if(4===o)break;if(0===o){r+=4;continue}}r+=s?1:2}return-1}return function lM(n,t){let e=n.indexOf(4);if(e>-1)for(e++;e<n.length;){const i=n[e];if("number"==typeof i)return-1;if(i===t)return e;e++}return-1}(t,n)}function xm(n,t,e=!1){for(let i=0;i<t.length;i++)if(rM(n,t[i],e))return!0;return!1}function cM(n,t){e:for(let e=0;e<t.length;e++){const i=t[e];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 km(n,t){return n?":not("+t.trim()+")":t}function uM(n){let t=n[0],e=1,i=2,r="",s=!1;for(;e<n.length;){let o=n[e];if("string"==typeof o)if(2&i){const a=n[++e];r+="["+o+(a.length>0?'="'+a+'"':"")+"]"}else 8&i?r+="."+o:4&i&&(r+=" "+o);else""!==r&&!_n(o)&&(t+=km(s,r),r=""),i=o,s=s||!_n(i);e++}return""!==r&&(t+=km(s,r)),t}const V={};function j(n){Om(te(),C(),vt()+n,!1)}function Om(n,t,e,i){if(!i)if(3==(3&t[2])){const s=n.preOrderCheckHooks;null!==s&&Go(t,s,e)}else{const s=n.preOrderHooks;null!==s&&Wo(t,s,0,e)}ui(e)}function ua(n,t){return n<<17|t<<2}function yn(n){return n>>17&32767}function uu(n){return 2|n}function Yn(n){return(131068&n)>>2}function du(n,t){return-131069&n|t<<2}function hu(n){return 1|n}function Um(n,t){const e=n.contentQueries;if(null!==e)for(let i=0;i<e.length;i+=2){const r=e[i],s=e[i+1];if(-1!==s){const o=n.data[s];Sc(r),o.contentQueries(2,t[s],s)}}}function Bs(n,t,e,i,r,s,o,a,l,c){const u=t.blueprint.slice();return u[0]=r,u[2]=140|i,sp(u),u[3]=u[15]=n,u[8]=e,u[10]=o||n&&n[10],u[U]=a||n&&n[U],u[12]=l||n&&n[12]||null,u[9]=c||n&&n[9]||null,u[6]=s,u[16]=2==t.type?n[16]:u,u}function Ir(n,t,e,i,r){let s=n.data[t];if(null===s)s=function Cu(n,t,e,i,r){const s=lp(),o=Cc(),l=n.data[t]=function AM(n,t,e,i,r,s){return{type:e,index:i,insertBeforeIndex:null,injectorIndex:t?t.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:t,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,e,t,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,t,e,i,r),function GD(){return L.lFrame.inI18n}()&&(s.flags|=64);else if(64&s.type){s.type=e,s.value=i,s.attrs=r;const o=function vs(){const n=L.lFrame,t=n.currentTNode;return n.isParent?t:t.parent}();s.injectorIndex=null===o?-1:o.injectorIndex}return xn(s,!0),s}function xr(n,t,e,i){if(0===e)return-1;const r=t.length;for(let s=0;s<e;s++)t.push(i),n.blueprint.push(i),n.data.push(null);return r}function Hs(n,t,e){$o(t);try{const i=n.viewQuery;null!==i&&xu(1,i,e);const r=n.template;null!==r&&zm(n,t,r,1,e),n.firstCreatePass&&(n.firstCreatePass=!1),n.staticContentQueries&&Um(n,t),n.staticViewQueries&&xu(2,n.viewQuery,e);const s=n.components;null!==s&&function SM(n,t){for(let e=0;e<t.length;e++)WM(n,t[e])}(t,s)}catch(i){throw n.firstCreatePass&&(n.incompleteFirstPass=!0,n.firstCreatePass=!1),i}finally{t[2]&=-5,Uo()}}function kr(n,t,e,i){const r=t[2];if(256!=(256&r)){$o(t);try{sp(t),function cp(n){return L.lFrame.bindingIndex=n}(n.bindingStartIndex),null!==e&&zm(n,t,e,2,i);const o=3==(3&r);if(o){const c=n.preOrderCheckHooks;null!==c&&Go(t,c,null)}else{const c=n.preOrderHooks;null!==c&&Wo(t,c,0,null),Mc(t,0)}if(function zM(n){for(let t=Gc(n);null!==t;t=Wc(t)){if(!t[2])continue;const e=t[9];for(let i=0;i<e.length;i++){const r=e[i],s=r[3];0==(1024&r[2])&&bc(s,1),r[2]|=1024}}}(t),function UM(n){for(let t=Gc(n);null!==t;t=Wc(t))for(let e=10;e<t.length;e++){const i=t[e],r=i[1];vc(i)&&kr(r,i,r.template,i[8])}}(t),null!==n.contentQueries&&Um(n,t),o){const c=n.contentCheckHooks;null!==c&&Go(t,c)}else{const c=n.contentHooks;null!==c&&Wo(t,c,1),Mc(t,1)}!function EM(n,t){const e=n.hostBindingOpCodes;if(null!==e)try{for(let i=0;i<e.length;i++){const r=e[i];if(r<0)ui(~r);else{const s=r,o=e[++i],a=e[++i];WD(o,s),a(2,t[s])}}}finally{ui(-1)}}(n,t);const a=n.components;null!==a&&function DM(n,t){for(let e=0;e<t.length;e++)GM(n,t[e])}(t,a);const l=n.viewQuery;if(null!==l&&xu(2,l,i),o){const c=n.viewCheckHooks;null!==c&&Go(t,c)}else{const c=n.viewHooks;null!==c&&Wo(t,c,2),Mc(t,2)}!0===n.firstUpdatePass&&(n.firstUpdatePass=!1),t[2]&=-73,1024&t[2]&&(t[2]&=-1025,bc(t[3],-1))}finally{Uo()}}}function MM(n,t,e,i){const r=t[10],o=rp(t);try{!o&&r.begin&&r.begin(),o&&Hs(n,t,i),kr(n,t,e,i)}finally{!o&&r.end&&r.end()}}function zm(n,t,e,i,r){const s=vt(),o=2&i;try{ui(-1),o&&t.length>20&&Om(n,t,20,!1),e(i,r)}finally{ui(s)}}function Gm(n,t,e){if(dc(t)){const r=t.directiveEnd;for(let s=t.directiveStart;s<r;s++){const o=n.data[s];o.contentQueries&&o.contentQueries(1,e[s],s)}}}function wu(n,t,e){!ap()||(function NM(n,t,e,i){const r=e.directiveStart,s=e.directiveEnd;n.firstCreatePass||ws(e,t),ft(i,t);const o=e.initialInputs;for(let a=r;a<s;a++){const l=n.data[a],c=mn(l);c&&HM(t,e,l);const u=Es(t,n,a,e);ft(u,t),null!==o&&jM(0,a-r,u,l,0,o),c&&(Ht(e.index,t)[8]=u)}}(n,t,e,Bt(e,t)),128==(128&e.flags)&&function PM(n,t,e){const i=e.directiveStart,r=e.directiveEnd,o=e.index,a=function qD(){return L.lFrame.currentDirectiveIndex}();try{ui(o);for(let l=i;l<r;l++){const c=n.data[l],u=t[l];Ec(l),(null!==c.hostBindings||0!==c.hostVars||null!==c.hostAttrs)&&Jm(c,u)}}finally{ui(-1),Ec(a)}}(n,t,e))}function Eu(n,t,e=Bt){const i=t.localNames;if(null!==i){let r=t.index+1;for(let s=0;s<i.length;s+=2){const o=i[s+1],a=-1===o?e(t,n):n[o];n[r++]=a}}}function Wm(n){const t=n.tView;return null===t||t.incompleteFirstPass?n.tView=fa(1,null,n.template,n.decls,n.vars,n.directiveDefs,n.pipeDefs,n.viewQuery,n.schemas,n.consts):t}function fa(n,t,e,i,r,s,o,a,l,c){const u=20+i,d=u+r,h=function TM(n,t){const e=[];for(let i=0;i<t;i++)e.push(i<n?null:V);return e}(u,d),f="function"==typeof c?c():c;return h[1]={type:n,blueprint:h,template:e,queries:null,viewQuery:a,declTNode:t,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 Ym(n,t,e,i){const r=sg(t);null===e?r.push(i):(r.push(e),n.firstCreatePass&&og(n).push(i,r.length-1))}function Zm(n,t,e){for(let i in n)if(n.hasOwnProperty(i)){const r=n[i];(e=null===e?{}:e).hasOwnProperty(i)?e[i].push(t,r):e[i]=[t,r]}return e}function zt(n,t,e,i,r,s,o,a){const l=Bt(t,e);let u,c=t.inputs;!a&&null!=c&&(u=c[i])?(cg(n,e,u,i,r),Vo(t)&&function kM(n,t){const e=Ht(t,n);16&e[2]||(e[2]|=64)}(e,t.index)):3&t.type&&(i=function xM(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,t.value||"",i):r,Pe(s)?s.setProperty(l,i,r):Ac(i)||(l.setProperty?l.setProperty(i,r):l[i]=r))}function Du(n,t,e,i){let r=!1;if(ap()){const s=function LM(n,t,e){const i=n.directiveRegistry;let r=null;if(i)for(let s=0;s<i.length;s++){const o=i[s];xm(e,o.selectors,!1)&&(r||(r=[]),Xo(ws(e,t),n,o.type),mn(o)?(eg(n,e),r.unshift(o)):r.push(o))}return r}(n,t,e),o=null===i?null:{"":-1};if(null!==s){r=!0,tg(e,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=xr(n,t,s.length,null);for(let u=0;u<s.length;u++){const d=s[u];e.mergedAttrs=Ko(e.mergedAttrs,d.hostAttrs),ng(n,e,t,c,d),BM(c,d,o),null!==d.contentQueries&&(e.flags|=8),(null!==d.hostBindings||null!==d.hostAttrs||0!==d.hostVars)&&(e.flags|=128);const h=d.type.prototype;!a&&(h.ngOnChanges||h.ngOnInit||h.ngDoCheck)&&((n.preOrderHooks||(n.preOrderHooks=[])).push(e.index),a=!0),!l&&(h.ngOnChanges||h.ngDoCheck)&&((n.preOrderCheckHooks||(n.preOrderCheckHooks=[])).push(e.index),l=!0),c++}!function IM(n,t){const i=t.directiveEnd,r=n.data,s=t.attrs,o=[];let a=null,l=null;for(let c=t.directiveStart;c<i;c++){const u=r[c],d=u.inputs,h=null===s||Im(t)?null:$M(d,s);o.push(h),a=Zm(d,c,a),l=Zm(u.outputs,c,l)}null!==a&&(a.hasOwnProperty("class")&&(t.flags|=16),a.hasOwnProperty("style")&&(t.flags|=32)),t.initialInputs=o,t.inputs=a,t.outputs=l}(n,e)}o&&function VM(n,t,e){if(t){const i=n.localNames=[];for(let r=0;r<t.length;r+=2){const s=e[t[r+1]];if(null==s)throw new A(-301,!1);i.push(t[r],s)}}}(e,i,o)}return e.mergedAttrs=Ko(e.mergedAttrs,e.attrs),r}function Qm(n,t,e,i,r,s){const o=s.hostBindings;if(o){let a=n.hostBindingOpCodes;null===a&&(a=n.hostBindingOpCodes=[]);const l=~t.index;(function RM(n){let t=n.length;for(;t>0;){const e=n[--t];if("number"==typeof e&&e<0)return e}return 0})(a)!=l&&a.push(l),a.push(i,r,o)}}function Jm(n,t){null!==n.hostBindings&&n.hostBindings(1,t)}function eg(n,t){t.flags|=2,(n.components||(n.components=[])).push(t.index)}function BM(n,t,e){if(e){if(t.exportAs)for(let i=0;i<t.exportAs.length;i++)e[t.exportAs[i]]=n;mn(t)&&(e[""]=n)}}function tg(n,t,e){n.flags|=1,n.directiveStart=t,n.directiveEnd=t+e,n.providerIndexes=t}function ng(n,t,e,i,r){n.data[i]=r;const s=r.factory||(r.factory=Ri(r.type)),o=new bs(s,mn(r),null);n.blueprint[i]=o,e[i]=o,Qm(n,t,0,i,xr(n,e,r.hostVars,V),r)}function HM(n,t,e){const i=Bt(t,n),r=Wm(e),s=n[10],o=pa(n,Bs(n,r,null,e.onPush?64:16,i,t,s,s.createRenderer(i,e),null,null));n[t.index]=o}function Nn(n,t,e,i,r,s){const o=Bt(n,t);!function Su(n,t,e,i,r,s,o){if(null==s)Pe(n)?n.removeAttribute(t,r,e):t.removeAttribute(r);else{const a=null==o?P(s):o(s,i||"",r);Pe(n)?n.setAttribute(t,r,a,e):e?t.setAttributeNS(e,r,a):t.setAttribute(r,a)}}(t[U],o,s,n.value,e,i,r)}function jM(n,t,e,i,r,s){const o=s[t];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(e,d,c,u):e[u]=d}}}function $M(n,t){let e=null,i=0;for(;i<t.length;){const r=t[i];if(0!==r)if(5!==r){if("number"==typeof r)break;n.hasOwnProperty(r)&&(null===e&&(e=[]),e.push(r,n[r],t[i+1])),i+=2}else i+=2;else i+=4}return e}function ig(n,t,e,i){return new Array(n,!0,!1,t,null,0,i,e,null,null)}function GM(n,t){const e=Ht(t,n);if(vc(e)){const i=e[1];80&e[2]?kr(i,e,i.template,e[8]):e[5]>0&&Mu(e)}}function Mu(n){for(let i=Gc(n);null!==i;i=Wc(i))for(let r=10;r<i.length;r++){const s=i[r];if(1024&s[2]){const o=s[1];kr(o,s,o.template,s[8])}else s[5]>0&&Mu(s)}const e=n[1].components;if(null!==e)for(let i=0;i<e.length;i++){const r=Ht(e[i],n);vc(r)&&r[5]>0&&Mu(r)}}function WM(n,t){const e=Ht(t,n),i=e[1];(function qM(n,t){for(let e=t.length;e<n.blueprint.length;e++)t.push(n.blueprint[e])})(i,e),Hs(i,e,e[8])}function pa(n,t){return n[13]?n[14][4]=t:n[13]=t,n[14]=t,t}function Tu(n){for(;n;){n[2]|=64;const t=Rs(n);if(DD(n)&&!t)return n;n=t}return null}function rg(n){!function Au(n){for(let t=0;t<n.components.length;t++){const e=n.components[t],i=$c(e),r=i[1];MM(r,i,r.template,e)}}(n[8])}function xu(n,t,e){Sc(0),t(n,e)}const YM=(()=>Promise.resolve(null))();function sg(n){return n[7]||(n[7]=[])}function og(n){return n.cleanup||(n.cleanup=[])}function lg(n,t){const e=n[9],i=e?e.get(hi,null):null;i&&i.handleError(t)}function cg(n,t,e,i,r){for(let s=0;s<e.length;){const o=e[s++],a=e[s++],l=t[o],c=n.data[o];null!==c.setInput?c.setInput(l,r,i,a):l[a]=r}}function Zn(n,t,e){const i=Ho(t,n);!function Qp(n,t,e){Pe(n)?n.setValue(t,e):t.textContent=e}(n[U],i,e)}function ma(n,t,e){let i=e?n.styles:null,r=e?n.classes:null,s=0;if(null!==t)for(let o=0;o<t.length;o++){const a=t[o];"number"==typeof a?s=a:1==s?r=nc(r,a):2==s&&(i=nc(i,a+": "+t[++o]+";"))}e?n.styles=i:n.stylesWithoutHost=i,e?n.classes=r:n.classesWithoutHost=r}const ku=new T("INJECTOR",-1);class ug{get(t,e=As){if(e===As){const i=new Error(`NullInjectorError: No provider for ${he(t)}!`);throw i.name="NullInjectorError",i}return e}}const Ou=new T("Set Injector scope."),js={},QM={};let Fu;function dg(){return void 0===Fu&&(Fu=new ug),Fu}function hg(n,t=null,e=null,i){const r=fg(n,t,e,i);return r._resolveInjectorDefTypes(),r}function fg(n,t=null,e=null,i){return new JM(n,e,t||dg(),i)}class JM{constructor(t,e,i,r=null){this.parent=i,this.records=new Map,this.injectorDefTypes=new Set,this.onDestroy=new Set,this._destroyed=!1;const s=[];e&&kn(e,a=>this.processProvider(a,t,e)),kn([t],a=>this.processInjectorType(a,[],s)),this.records.set(ku,Or(void 0,this));const o=this.records.get(Ou);this.scope=null!=o?o.value:null,this.source=r||("object"==typeof t?null:he(t))}get destroyed(){return this._destroyed}destroy(){this.assertNotDestroyed(),this._destroyed=!0;try{this.onDestroy.forEach(t=>t.ngOnDestroy())}finally{this.records.clear(),this.onDestroy.clear(),this.injectorDefTypes.clear()}}get(t,e=As,i=H.Default){this.assertNotDestroyed();const r=Pp(this),s=oi(void 0);try{if(!(i&H.SkipSelf)){let a=this.records.get(t);if(void 0===a){const l=function aT(n){return"function"==typeof n||"object"==typeof n&&n instanceof T}(t)&&rc(t);a=l&&this.injectableDefInScope(l)?Or(Ru(t),js):null,this.records.set(t,a)}if(null!=a)return this.hydrate(t,a)}return(i&H.Self?dg():this.parent).get(t,e=i&H.Optional&&e===As?null:e)}catch(o){if("NullInjectorError"===o.name){if((o[ta]=o[ta]||[]).unshift(he(t)),r)throw o;return function k0(n,t,e,i){const r=n[ta];throw t[Np]&&r.unshift(t[Np]),n.message=function O0(n,t,e,i=null){n=n&&"\n"===n.charAt(0)&&"\u0275"==n.charAt(1)?n.substr(2):n;let r=he(t);if(Array.isArray(t))r=t.map(he).join(" -> ");else if("object"==typeof t){let s=[];for(let o in t)if(t.hasOwnProperty(o)){let a=t[o];s.push(o+":"+("string"==typeof a?JSON.stringify(a):he(a)))}r=`{${s.join(", ")}}`}return`${e}${i?"("+i+")":""}[${r}]: ${n.replace(M0,"\n ")}`}("\n"+n.message,r,e,i),n.ngTokenPath=r,n[ta]=null,n}(o,t,"R3InjectorError",this.source)}throw o}finally{oi(s),Pp(r)}}_resolveInjectorDefTypes(){this.injectorDefTypes.forEach(t=>this.get(t))}toString(){const t=[];return this.records.forEach((i,r)=>t.push(he(r))),`R3Injector[${t.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new A(205,!1)}processInjectorType(t,e,i){if(!(t=z(t)))return!1;let r=zf(t);const s=null==r&&t.ngModule||void 0,o=void 0===s?t:s,a=-1!==i.indexOf(o);if(void 0!==s&&(r=zf(s)),null==r)return!1;if(null!=r.imports&&!a){let u;i.push(o);try{kn(r.imports,d=>{this.processInjectorType(d,e,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];kn(f,p=>this.processProvider(p,h,f||be))}}this.injectorDefTypes.add(o);const l=Ri(o)||(()=>new o);this.records.set(o,Or(l,js));const c=r.providers;if(null!=c&&!a){const u=t;kn(c,d=>this.processProvider(d,u,c))}return void 0!==s&&void 0!==t.providers}processProvider(t,e,i){let r=Fr(t=z(t))?t:z(t&&t.provide);const s=function tT(n,t,e){return mg(n)?Or(void 0,n.useValue):Or(pg(n),js)}(t);if(Fr(t)||!0!==t.multi)this.records.get(r);else{let o=this.records.get(r);o||(o=Or(void 0,js,!0),o.factory=()=>Vc(o.multi),this.records.set(r,o)),r=t,o.multi.push(t)}this.records.set(r,s)}hydrate(t,e){return e.value===js&&(e.value=QM,e.value=e.factory()),"object"==typeof e.value&&e.value&&function oT(n){return null!==n&&"object"==typeof n&&"function"==typeof n.ngOnDestroy}(e.value)&&this.onDestroy.add(e.value),e.value}injectableDefInScope(t){if(!t.providedIn)return!1;const e=z(t.providedIn);return"string"==typeof e?"any"===e||e===this.scope:this.injectorDefTypes.has(e)}}function Ru(n){const t=rc(n),e=null!==t?t.factory:Ri(n);if(null!==e)return e;if(n instanceof T)throw new A(204,!1);if(n instanceof Function)return function eT(n){const t=n.length;if(t>0)throw Ts(t,"?"),new A(204,!1);const e=function dD(n){const t=n&&(n[Fo]||n[Gf]);if(t){const e=function hD(n){if(n.hasOwnProperty("name"))return n.name;const t=(""+n).match(/^function\s*([^\s(]+)/);return null===t?"":t[1]}(n);return console.warn(`DEPRECATED: DI is instantiating a token "${e}" 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 "${e}" class.`),t}return null}(n);return null!==e?()=>e.factory(n):()=>new n}(n);throw new A(204,!1)}function pg(n,t,e){let i;if(Fr(n)){const r=z(n);return Ri(r)||Ru(r)}if(mg(n))i=()=>z(n.useValue);else if(function iT(n){return!(!n||!n.useFactory)}(n))i=()=>n.useFactory(...Vc(n.deps||[]));else if(function nT(n){return!(!n||!n.useExisting)}(n))i=()=>v(z(n.useExisting));else{const r=z(n&&(n.useClass||n.provide));if(!function sT(n){return!!n.deps}(n))return Ri(r)||Ru(r);i=()=>new r(...Vc(n.deps))}return i}function Or(n,t,e=!1){return{factory:n,value:t,multi:e?[]:void 0}}function mg(n){return null!==n&&"object"==typeof n&&A0 in n}function Fr(n){return"function"==typeof n}let Ct=(()=>{class n{static create(e,i){var r;if(Array.isArray(e))return hg({name:""},i,e,"");{const s=null!==(r=e.name)&&void 0!==r?r:"";return hg({name:s},e.parent,e.providers,s)}}}return n.THROW_IF_NOT_FOUND=As,n.NULL=new ug,n.\u0275prov=x({token:n,providedIn:"any",factory:()=>v(ku)}),n.__NG_ELEMENT_ID__=-1,n})();function mT(n,t){zo($c(n)[1],Xe())}function q(n){let t=function Tg(n){return Object.getPrototypeOf(n.prototype).constructor}(n.type),e=!0;const i=[n];for(;t;){let r;if(mn(n))r=t.\u0275cmp||t.\u0275dir;else{if(t.\u0275cmp)throw new A(903,"");r=t.\u0275dir}if(r){if(e){i.push(r);const o=n;o.inputs=Lu(n.inputs),o.declaredInputs=Lu(n.declaredInputs),o.outputs=Lu(n.outputs);const a=r.hostBindings;a&&vT(n,a);const l=r.viewQuery,c=r.contentQueries;if(l&&_T(n,l),c&&yT(n,c),tc(n.inputs,r.inputs),tc(n.declaredInputs,r.declaredInputs),tc(n.outputs,r.outputs),mn(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===q&&(e=!1)}}t=Object.getPrototypeOf(t)}!function gT(n){let t=0,e=null;for(let i=n.length-1;i>=0;i--){const r=n[i];r.hostVars=t+=r.hostVars,r.hostAttrs=Ko(r.hostAttrs,e=Ko(e,r.hostAttrs))}}(i)}function Lu(n){return n===dr?{}:n===be?[]:n}function _T(n,t){const e=n.viewQuery;n.viewQuery=e?(i,r)=>{t(i,r),e(i,r)}:t}function yT(n,t){const e=n.contentQueries;n.contentQueries=e?(i,r,s)=>{t(i,r,s),e(i,r,s)}:t}function vT(n,t){const e=n.hostBindings;n.hostBindings=e?(i,r)=>{t(i,r),e(i,r)}:t}let ga=null;function Rr(){if(!ga){const n=ge.Symbol;if(n&&n.iterator)ga=n.iterator;else{const t=Object.getOwnPropertyNames(Map.prototype);for(let e=0;e<t.length;++e){const i=t[e];"entries"!==i&&"size"!==i&&Map.prototype[i]===Map.prototype.entries&&(ga=i)}}}return ga}function $s(n){return!!Vu(n)&&(Array.isArray(n)||!(n instanceof Map)&&Rr()in n)}function Vu(n){return null!==n&&("function"==typeof n||"object"==typeof n)}function pt(n,t,e){return!Object.is(n[t],e)&&(n[t]=e,!0)}function nt(n,t,e,i){const r=C();return pt(r,_r(),t)&&(te(),Nn(Oe(),r,n,t,e,i)),nt}function Te(n,t,e,i,r,s,o,a){const l=C(),c=te(),u=n+20,d=c.firstCreatePass?function MT(n,t,e,i,r,s,o,a,l){const c=t.consts,u=Ir(t,n,4,o||null,ci(c,a));Du(t,e,u,ci(c,l)),zo(t,u);const d=u.tViews=fa(2,u,i,r,s,t.directiveRegistry,t.pipeRegistry,null,t.schemas,c);return null!==t.queries&&(t.queries.template(t,u),d.queries=t.queries.embeddedTView(u)),u}(u,c,l,t,e,i,r,s,o):c.data[u];xn(d,!1);const h=l[U].createComment("");sa(c,l,h,d),ft(h,l),pa(l,l[u]=ig(h,l,h,d)),Bo(d)&&wu(c,l,d),null!=o&&Eu(l,d,a)}function g(n,t=H.Default){const e=C();return null===e?v(n,t):Sp(Xe(),e,z(n),t)}function Uu(){throw new Error("invalid")}function $(n,t,e){const i=C();return pt(i,_r(),t)&&zt(te(),Oe(),i,n,t,i[U],e,!1),$}function zu(n,t,e,i,r){const o=r?"class":"style";cg(n,e,t.inputs[o],o,i)}function K(n,t,e,i){const r=C(),s=te(),o=20+n,a=r[U],l=r[o]=Kc(a,t,function t0(){return L.lFrame.currentNamespace}()),c=s.firstCreatePass?function qT(n,t,e,i,r,s,o){const a=t.consts,c=Ir(t,n,2,r,ci(a,s));return Du(t,e,c,ci(a,o)),null!==c.attrs&&ma(c,c.attrs,!1),null!==c.mergedAttrs&&ma(c,c.mergedAttrs,!0),null!==t.queries&&t.queries.elementStart(t,c),c}(o,s,r,0,t,e,i):s.data[o];xn(c,!0);const u=c.mergedAttrs;null!==u&&qo(a,l,u);const d=c.classes;null!==d&&tu(a,l,d);const h=c.styles;return null!==h&&dm(a,l,h),64!=(64&c.flags)&&sa(s,r,l,c),0===function BD(){return L.lFrame.elementDepthCount}()&&ft(l,r),function HD(){L.lFrame.elementDepthCount++}(),Bo(c)&&(wu(s,r,c),Gm(s,c,r)),null!==i&&Eu(r,c),K}function J(){let n=Xe();Cc()?wc():(n=n.parent,xn(n,!1));const t=n;!function jD(){L.lFrame.elementDepthCount--}();const e=te();return e.firstCreatePass&&(zo(e,n),dc(n)&&e.queries.elementEnd(n)),null!=t.classesWithoutHost&&function a0(n){return 0!=(16&n.flags)}(t)&&zu(e,t,C(),t.classesWithoutHost,!0),null!=t.stylesWithoutHost&&function l0(n){return 0!=(32&n.flags)}(t)&&zu(e,t,C(),t.stylesWithoutHost,!1),J}function Xn(n,t,e,i){return K(n,t,e,i),J(),Xn}function Hi(n,t,e){const i=C(),r=te(),s=n+20,o=r.firstCreatePass?function KT(n,t,e,i,r){const s=t.consts,o=ci(s,i),a=Ir(t,n,8,"ng-container",o);return null!==o&&ma(a,o,!0),Du(t,e,a,ci(s,r)),null!==t.queries&&t.queries.elementStart(t,a),a}(s,r,i,t,e):r.data[s];xn(o,!0);const a=i[s]=i[U].createComment("");return sa(r,i,a,o),ft(a,i),Bo(o)&&(wu(r,i,o),Gm(r,o,i)),null!=e&&Eu(i,o),Hi}function ji(){let n=Xe();const t=te();return Cc()?wc():(n=n.parent,xn(n,!1)),t.firstCreatePass&&(zo(t,n),dc(n)&&t.queries.elementEnd(n)),ji}function $i(){return C()}function va(n){return!!n&&"function"==typeof n.then}function Yg(n){return!!n&&"function"==typeof n.subscribe}const Zg=Yg;function Ae(n,t,e,i){const r=C(),s=te(),o=Xe();return function Qg(n,t,e,i,r,s,o,a){const l=Bo(i),u=n.firstCreatePass&&og(n),d=t[8],h=sg(t);let f=!0;if(3&i.type||a){const y=Bt(i,t),b=a?a(y):y,_=h.length,E=a?w=>a(je(w[i.index])):i.index;if(Pe(e)){let w=null;if(!a&&l&&(w=function YT(n,t,e,i){const r=n.cleanup;if(null!=r)for(let s=0;s<r.length-1;s+=2){const o=r[s];if(o===e&&r[s+1]===i){const a=t[7],l=r[s+2];return a.length>l?a[l]:null}"string"==typeof o&&(s+=2)}return null}(n,t,r,i.index)),null!==w)(w.__ngLastListenerFn__||w).__ngNextListenerFn__=s,w.__ngLastListenerFn__=s,f=!1;else{s=Gu(i,t,d,s,!1);const M=e.listen(b,r,s);h.push(s,M),u&&u.push(r,E,_,_+1)}}else s=Gu(i,t,d,s,!0),b.addEventListener(r,s,o),h.push(s),u&&u.push(r,E,_,o)}else s=Gu(i,t,d,s,!1);const p=i.outputs;let m;if(f&&null!==p&&(m=p[r])){const y=m.length;if(y)for(let b=0;b<y;b+=2){const ne=t[m[b]][m[b+1]].subscribe(s),Se=h.length;h.push(s,ne),u&&u.push(r,i.index,Se,-(Se+1))}}}(s,r,r[U],o,n,t,!!e,i),Ae}function Jg(n,t,e,i){try{return!1!==e(i)}catch(r){return lg(n,r),!1}}function Gu(n,t,e,i,r){return function s(o){if(o===Function)return i;const a=2&n.flags?Ht(n.index,t):t;0==(32&t[2])&&Tu(a);let l=Jg(t,0,i,o),c=s.__ngNextListenerFn__;for(;c;)l=Jg(t,0,c,o)&&l,c=c.__ngNextListenerFn__;return r&&!1===l&&(o.preventDefault(),o.returnValue=!1),l}}function ue(n=1){return function YD(n){return(L.lFrame.contextLView=function ZD(n,t){for(;n>0;)t=t[15],n--;return t}(n,L.lFrame.contextLView))[8]}(n)}function ZT(n,t){let e=null;const i=function oM(n){const t=n.attrs;if(null!=t){const e=t.indexOf(5);if(0==(1&e))return t[e+1]}return null}(n);for(let r=0;r<t.length;r++){const s=t[r];if("*"!==s){if(null===i?xm(n,s,!0):cM(i,s))return r}else e=r}return e}function Gr(n){const t=C()[16][6];if(!t.projection){const i=t.projection=Ts(n?n.length:1,null),r=i.slice();let s=t.child;for(;null!==s;){const o=n?ZT(s,n):0;null!==o&&(r[o]?r[o].projectionNext=s:i[o]=s,r[o]=s),s=s.next}}}function Gt(n,t=0,e){const i=C(),r=te(),s=Ir(r,20+n,16,null,e||null);null===s.projection&&(s.projection=t),wc(),64!=(64&s.flags)&&function cS(n,t,e){um(t[U],0,t,e,tm(n,e,t),sm(e.parent||t[6],e,t))}(r,i,s)}function c_(n,t,e,i,r){const s=n[e+1],o=null===t;let a=i?yn(s):Yn(s),l=!1;for(;0!==a&&(!1===l||o);){const u=n[a+1];JT(n[a],t)&&(l=!0,n[a+1]=i?hu(u):uu(u)),a=i?yn(u):Yn(u)}l&&(n[e+1]=i?uu(s):hu(s))}function JT(n,t){return null===n||null==t||(Array.isArray(n)?n[1]:n)===t||!(!Array.isArray(n)||"string"!=typeof t)&&Sr(n,t)>=0}function qu(n,t,e){return bn(n,t,e,!1),qu}function mt(n,t){return bn(n,t,null,!0),mt}function bn(n,t,e,i){const r=C(),s=te(),o=function Kn(n){const t=L.lFrame,e=t.bindingIndex;return t.bindingIndex=t.bindingIndex+n,e}(2);s.firstUpdatePass&&function __(n,t,e,i){const r=n.data;if(null===r[e+1]){const s=r[vt()],o=function g_(n,t){return t>=n.expandoStartIndex}(n,e);(function C_(n,t){return 0!=(n.flags&(t?16:32))})(s,i)&&null===t&&!o&&(t=!1),t=function lA(n,t,e,i){const r=function Dc(n){const t=L.lFrame.currentDirectiveIndex;return-1===t?null:n[t]}(n);let s=i?t.residualClasses:t.residualStyles;if(null===r)0===(i?t.classBindings:t.styleBindings)&&(e=zs(e=Ku(null,n,t,e,i),t.attrs,i),s=null);else{const o=t.directiveStylingLast;if(-1===o||n[o]!==r)if(e=Ku(r,n,t,e,i),null===s){let l=function cA(n,t,e){const i=e?t.classBindings:t.styleBindings;if(0!==Yn(i))return n[yn(i)]}(n,t,i);void 0!==l&&Array.isArray(l)&&(l=Ku(null,n,t,l[1],i),l=zs(l,t.attrs,i),function uA(n,t,e,i){n[yn(e?t.classBindings:t.styleBindings)]=i}(n,t,i,l))}else s=function dA(n,t,e){let i;const r=t.directiveEnd;for(let s=1+t.directiveStylingLast;s<r;s++)i=zs(i,n[s].hostAttrs,e);return zs(i,t.attrs,e)}(n,t,i)}return void 0!==s&&(i?t.residualClasses=s:t.residualStyles=s),e}(r,s,t,i),function XT(n,t,e,i,r,s){let o=s?t.classBindings:t.styleBindings,a=yn(o),l=Yn(o);n[i]=e;let u,c=!1;if(Array.isArray(e)){const d=e;u=d[1],(null===u||Sr(d,u)>0)&&(c=!0)}else u=e;if(r)if(0!==l){const h=yn(n[a+1]);n[i+1]=ua(h,a),0!==h&&(n[h+1]=du(n[h+1],i)),n[a+1]=function fM(n,t){return 131071&n|t<<17}(n[a+1],i)}else n[i+1]=ua(a,0),0!==a&&(n[a+1]=du(n[a+1],i)),a=i;else n[i+1]=ua(l,0),0===a?a=i:n[l+1]=du(n[l+1],i),l=i;c&&(n[i+1]=uu(n[i+1])),c_(n,u,i,!0),c_(n,u,i,!1),function QT(n,t,e,i,r){const s=r?n.residualClasses:n.residualStyles;null!=s&&"string"==typeof t&&Sr(s,t)>=0&&(e[i+1]=hu(e[i+1]))}(t,u,n,i,s),o=ua(a,l),s?t.classBindings=o:t.styleBindings=o}(r,s,t,e,o,i)}}(s,n,o,i),t!==V&&pt(r,o,t)&&function v_(n,t,e,i,r,s,o,a){if(!(3&t.type))return;const l=n.data,c=l[a+1];ba(function Nm(n){return 1==(1&n)}(c)?b_(l,t,e,r,Yn(c),o):void 0)||(ba(s)||function Rm(n){return 2==(2&n)}(c)&&(s=b_(l,null,e,r,a,o)),function dS(n,t,e,i,r){const s=Pe(n);if(t)r?s?n.addClass(e,i):e.classList.add(i):s?n.removeClass(e,i):e.classList.remove(i);else{let o=-1===i.indexOf("-")?void 0:$t.DashCase;if(null==r)s?n.removeStyle(e,i,o):e.style.removeProperty(i);else{const a="string"==typeof r&&r.endsWith("!important");a&&(r=r.slice(0,-10),o|=$t.Important),s?n.setStyle(e,i,r,o):e.style.setProperty(i,r,a?"important":"")}}}(i,o,Ho(vt(),e),r,s))}(s,s.data[vt()],r,r[U],n,r[o+1]=function pA(n,t){return null==n||("string"==typeof t?n+=t:"object"==typeof n&&(n=he(Ut(n)))),n}(t,e),i,o)}function Ku(n,t,e,i,r){let s=null;const o=e.directiveEnd;let a=e.directiveStylingLast;for(-1===a?a=e.directiveStart:a++;a<o&&(s=t[a],i=zs(i,s.hostAttrs,r),s!==n);)a++;return null!==n&&(e.directiveStylingLast=a),i}function zs(n,t,e){const i=e?1:2;let r=-1;if(null!==t)for(let s=0;s<t.length;s++){const o=t[s];"number"==typeof o?r=o:r===i&&(Array.isArray(n)||(n=void 0===n?[]:["",n]),jt(n,o,!!e||t[++s]))}return void 0===n?null:n}function b_(n,t,e,i,r,s){const o=null===t;let a;for(;r>0;){const l=n[r],c=Array.isArray(l),u=c?l[1]:l,d=null===u;let h=e[r+1];h===V&&(h=d?be:void 0);let f=d?Nc(h,i):u===i?h:void 0;if(c&&!ba(f)&&(f=Nc(l,i)),ba(f)&&(a=f,o))return a;const p=n[r+1];r=o?yn(p):Yn(p)}if(null!==t){let l=s?t.residualClasses:t.residualStyles;null!=l&&(a=Nc(l,i))}return a}function ba(n){return void 0!==n}function wt(n,t=""){const e=C(),i=te(),r=n+20,s=i.firstCreatePass?Ir(i,r,1,t,null):i.data[r],o=e[r]=function qc(n,t){return Pe(n)?n.createText(t):n.createTextNode(t)}(e[U],t);sa(i,e,o,s),xn(s,!1)}function wn(n){return Ui("",n,""),wn}function Ui(n,t,e){const i=C(),r=function Pr(n,t,e,i){return pt(n,_r(),e)?t+P(e)+i:V}(i,n,t,e);return r!==V&&Zn(i,vt(),r),Ui}function Ca(n,t,e){const i=C();return pt(i,_r(),t)&&zt(te(),Oe(),i,n,t,i[U],e,!0),Ca}const wa="en-US";let $_=wa;function Xu(n,t,e,i,r){if(n=z(n),Array.isArray(n))for(let s=0;s<n.length;s++)Xu(n[s],t,e,i,r);else{const s=te(),o=C();let a=Fr(n)?n:z(n.provide),l=pg(n);const c=Xe(),u=1048575&c.providerIndexes,d=c.directiveStart,h=c.providerIndexes>>20;if(Fr(n)||!n.multi){const f=new bs(l,r,g),p=Ju(a,t,r?u:u+h,d);-1===p?(Xo(ws(c,o),s,a),Qu(s,n,t.length),t.push(a),c.directiveStart++,c.directiveEnd++,r&&(c.providerIndexes+=1048576),e.push(f),o.push(f)):(e[p]=f,o[p]=f)}else{const f=Ju(a,t,u+h,d),p=Ju(a,t,u,u+h),m=f>=0&&e[f],y=p>=0&&e[p];if(r&&!y||!r&&!m){Xo(ws(c,o),s,a);const b=function FI(n,t,e,i,r){const s=new bs(n,e,g);return s.multi=[],s.index=t,s.componentProviders=0,hy(s,r,i&&!e),s}(r?OI:kI,e.length,r,i,l);!r&&y&&(e[p].providerFactory=b),Qu(s,n,t.length,0),t.push(a),c.directiveStart++,c.directiveEnd++,r&&(c.providerIndexes+=1048576),e.push(b),o.push(b)}else Qu(s,n,f>-1?f:p,hy(e[r?p:f],l,!r&&i));!r&&i&&y&&e[p].componentProviders++}}}function Qu(n,t,e,i){const r=Fr(t),s=function rT(n){return!!n.useClass}(t);if(r||s){const l=(s?z(t.useClass):t).prototype.ngOnDestroy;if(l){const c=n.destroyHooks||(n.destroyHooks=[]);if(!r&&t.multi){const u=c.indexOf(e);-1===u?c.push(e,[i,l]):c[u+1].push(i,l)}else c.push(e,l)}}}function hy(n,t,e){return e&&n.componentProviders++,n.multi.push(t)-1}function Ju(n,t,e,i){for(let r=e;r<i;r++)if(t[r]===n)return r;return-1}function kI(n,t,e,i){return ed(this.multi,[])}function OI(n,t,e,i){const r=this.multi;let s;if(this.providerFactory){const o=this.providerFactory.componentProviders,a=Es(e,e[1],this.providerFactory.index,i);s=a.slice(0,o),ed(r,s);for(let l=o;l<a.length;l++)s.push(a[l])}else s=[],ed(r,s);return s}function ed(n,t){for(let e=0;e<n.length;e++)t.push((0,n[e])());return t}function oe(n,t=[]){return e=>{e.providersResolver=(i,r)=>function xI(n,t,e){const i=te();if(i.firstCreatePass){const r=mn(n);Xu(e,i.data,i.blueprint,r,!0),Xu(t,i.data,i.blueprint,r,!1)}}(i,r?r(n):n,t)}}class fy{}class PI{resolveComponentFactory(t){throw function NI(n){const t=Error(`No component factory found for ${he(n)}. Did you add it to @NgModule.entryComponents?`);return t.ngComponent=n,t}(t)}}let Gi=(()=>{class n{}return n.NULL=new PI,n})();function LI(){return Yr(Xe(),C())}function Yr(n,t){return new Ee(Bt(n,t))}let Ee=(()=>{class n{constructor(e){this.nativeElement=e}}return n.__NG_ELEMENT_ID__=LI,n})();function VI(n){return n instanceof Ee?n.nativeElement:n}class Ys{}let mi=(()=>{class n{}return n.__NG_ELEMENT_ID__=()=>function HI(){const n=C(),e=Ht(Xe().index,n);return function BI(n){return n[U]}(In(e)?e:n)}(),n})(),jI=(()=>{class n{}return n.\u0275prov=x({token:n,providedIn:"root",factory:()=>null}),n})();class Wi{constructor(t){this.full=t,this.major=t.split(".")[0],this.minor=t.split(".")[1],this.patch=t.split(".").slice(2).join(".")}}const $I=new Wi("13.4.0"),td={};function Ta(n,t,e,i,r=!1){for(;null!==e;){const s=t[e.index];if(null!==s&&i.push(je(s)),pn(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=e.type;if(8&o)Ta(n,t,e.child,i);else if(32&o){const a=zc(e,t);let l;for(;l=a();)i.push(l)}else if(16&o){const a=cm(t,e);if(Array.isArray(a))i.push(...a);else{const l=Rs(t[16]);Ta(l[1],l,a,i,!0)}}e=r?e.projectionNext:e.next}return i}class Zs{constructor(t,e){this._lView=t,this._cdRefInjectingView=e,this._appRef=null,this._attachedToViewContainer=!1}get rootNodes(){const t=this._lView,e=t[1];return Ta(e,t,e.firstChild,[])}get context(){return this._lView[8]}set context(t){this._lView[8]=t}get destroyed(){return 256==(256&this._lView[2])}destroy(){if(this._appRef)this._appRef.detachView(this);else if(this._attachedToViewContainer){const t=this._lView[3];if(pn(t)){const e=t[8],i=e?e.indexOf(this):-1;i>-1&&(Yc(t,i),Jo(e,i))}this._attachedToViewContainer=!1}em(this._lView[1],this._lView)}onDestroy(t){Ym(this._lView[1],this._lView,null,t)}markForCheck(){Tu(this._cdRefInjectingView||this._lView)}detach(){this._lView[2]&=-129}reattach(){this._lView[2]|=128}detectChanges(){!function Iu(n,t,e){const i=t[10];i.begin&&i.begin();try{kr(n,t,n.template,e)}catch(r){throw lg(t,r),r}finally{i.end&&i.end()}}(this._lView[1],this._lView,this.context)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new A(902,"");this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null,function tS(n,t){Ns(n,t,t[U],2,null,null)}(this._lView[1],this._lView)}attachToAppRef(t){if(this._attachedToViewContainer)throw new A(902,"");this._appRef=t}}class UI extends Zs{constructor(t){super(t),this._view=t}detectChanges(){rg(this._view)}checkNoChanges(){}get context(){return null}}class my extends Gi{constructor(t){super(),this.ngModule=t}resolveComponentFactory(t){const e=at(t);return new nd(e,this.ngModule)}}function gy(n){const t=[];for(let e in n)n.hasOwnProperty(e)&&t.push({propName:n[e],templateName:e});return t}class nd extends fy{constructor(t,e){super(),this.componentDef=t,this.ngModule=e,this.componentType=t.type,this.selector=function dM(n){return n.map(uM).join(",")}(t.selectors),this.ngContentSelectors=t.ngContentSelectors?t.ngContentSelectors:[],this.isBoundToModule=!!e}get inputs(){return gy(this.componentDef.inputs)}get outputs(){return gy(this.componentDef.outputs)}create(t,e,i,r){const s=(r=r||this.ngModule)?function GI(n,t){return{get:(e,i,r)=>{const s=n.get(e,td,r);return s!==td||i===td?s:t.get(e,i,r)}}}(t,r.injector):t,o=s.get(Ys,ip),a=s.get(jI,null),l=o.createRenderer(null,this.componentDef),c=this.componentDef.selectors[0][0]||"div",u=i?function Km(n,t,e){if(Pe(n))return n.selectRootElement(t,e===hn.ShadowDom);let i="string"==typeof t?n.querySelector(t):t;return i.textContent="",i}(l,i,this.componentDef.encapsulation):Kc(o.createRenderer(null,this.componentDef),c,function zI(n){const t=n.toLowerCase();return"svg"===t?"svg":"math"===t?"math":null}(c)),d=this.componentDef.onPush?576:528,h=function Mg(n,t){return{components:[],scheduler:n||QS,clean:YM,playerHandler:t||null,flags:0}}(),f=fa(0,null,null,1,0,null,null,null,null,null),p=Bs(null,f,h,d,null,null,o,l,a,s);let m,y;$o(p);try{const b=function Dg(n,t,e,i,r,s){const o=e[1];e[20]=n;const l=Ir(o,20,2,"#host",null),c=l.mergedAttrs=t.hostAttrs;null!==c&&(ma(l,c,!0),null!==n&&(qo(r,n,c),null!==l.classes&&tu(r,n,l.classes),null!==l.styles&&dm(r,n,l.styles)));const u=i.createRenderer(n,t),d=Bs(e,Wm(t),null,t.onPush?64:16,e[20],l,i,u,s||null,null);return o.firstCreatePass&&(Xo(ws(l,e),o,t.type),eg(o,l),tg(l,e.length,1)),pa(e,d),e[20]=d}(u,this.componentDef,p,o,l);if(u)if(i)qo(l,u,["ng-version",$I.full]);else{const{attrs:_,classes:E}=function hM(n){const t=[],e=[];let i=1,r=2;for(;i<n.length;){let s=n[i];if("string"==typeof s)2===r?""!==s&&t.push(s,n[++i]):8===r&&e.push(s);else{if(!_n(r))break;r=s}i++}return{attrs:t,classes:e}}(this.componentDef.selectors[0]);_&&qo(l,u,_),E&&E.length>0&&tu(l,u,E.join(" "))}if(y=yc(f,20),void 0!==e){const _=y.projection=[];for(let E=0;E<this.ngContentSelectors.length;E++){const w=e[E];_.push(null!=w?Array.from(w):null)}}m=function Sg(n,t,e,i,r){const s=e[1],o=function FM(n,t,e){const i=Xe();n.firstCreatePass&&(e.providersResolver&&e.providersResolver(e),ng(n,i,t,xr(n,t,1,null),e));const r=Es(t,n,i.directiveStart,i);ft(r,t);const s=Bt(i,t);return s&&ft(s,t),r}(s,e,t);if(i.components.push(o),n[8]=o,r&&r.forEach(l=>l(o,t)),t.contentQueries){const l=Xe();t.contentQueries(1,o,l.directiveStart)}const a=Xe();return!s.firstCreatePass||null===t.hostBindings&&null===t.hostAttrs||(ui(a.index),Qm(e[1],a,0,a.directiveStart,a.directiveEnd,t),Jm(t,o)),o}(b,this.componentDef,p,h,[mT]),Hs(f,p,null)}finally{Uo()}return new qI(this.componentType,m,Yr(y,p),p,y)}}class qI extends class RI{}{constructor(t,e,i,r,s){super(),this.location=i,this._rootLView=r,this._tNode=s,this.instance=e,this.hostView=this.changeDetectorRef=new UI(r),this.componentType=t}get injector(){return new br(this._tNode,this._rootLView)}destroy(){this.hostView.destroy()}onDestroy(t){this.hostView.onDestroy(t)}}class Zr{}const Xr=new Map;class vy extends Zr{constructor(t,e){super(),this._parent=e,this._bootstrapComponents=[],this.injector=this,this.destroyCbs=[],this.componentFactoryResolver=new my(this);const i=Zt(t);this._bootstrapComponents=Rn(i.bootstrap),this._r3Injector=fg(t,e,[{provide:Zr,useValue:this},{provide:Gi,useValue:this.componentFactoryResolver}],he(t)),this._r3Injector._resolveInjectorDefTypes(),this.instance=this.get(t)}get(t,e=Ct.THROW_IF_NOT_FOUND,i=H.Default){return t===Ct||t===Zr||t===ku?this:this._r3Injector.get(t,e,i)}destroy(){const t=this._r3Injector;!t.destroyed&&t.destroy(),this.destroyCbs.forEach(e=>e()),this.destroyCbs=null}onDestroy(t){this.destroyCbs.push(t)}}class id extends class YI{}{constructor(t){super(),this.moduleType=t,null!==Zt(t)&&function ZI(n){const t=new Set;!function e(i){const r=Zt(i,!0),s=r.id;null!==s&&(function _y(n,t,e){if(t&&t!==e)throw new Error(`Duplicate module registered for ${n} - ${he(t)} vs ${he(t.name)}`)}(s,Xr.get(s),i),Xr.set(s,i));const o=Rn(r.imports);for(const a of o)t.has(a)||(t.add(a),e(a))}(n)}(t)}create(t){return new vy(this.moduleType,t)}}function by(n,t,e,i,r,s){const o=t+e;return pt(n,o,r)?function Pn(n,t,e){return n[t]=e}(n,o+1,s?i.call(s,r):i(r)):function Xs(n,t){const e=n[t];return e===V?void 0:e}(n,o+1)}function My(n,t,e){const i=n+20,r=C(),s=gr(r,i);return function Qs(n,t){return n[1].data[t].pure}(r,i)?by(r,function yt(){const n=L.lFrame;let t=n.bindingRootIndex;return-1===t&&(t=n.bindingRootIndex=n.tView.bindingStartIndex),t}(),t,s.transform,e,s):s.transform(e)}function rd(n){return t=>{setTimeout(n,void 0,t)}}const Ie=class hx extends de{constructor(t=!1){super(),this.__isAsync=t}emit(t){super.next(t)}subscribe(t,e,i){var r,s,o;let a=t,l=e||(()=>null),c=i;if(t&&"object"==typeof t){const d=t;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=rd(l),a&&(a=rd(a)),c&&(c=rd(c)));const u=super.subscribe({next:a,error:l,complete:c});return t instanceof W&&t.add(u),u}};function fx(){return this._results[Rr()]()}class Js{constructor(t=!1){this._emitDistinctChangesOnly=t,this.dirty=!0,this._results=[],this._changesDetected=!1,this._changes=null,this.length=0,this.first=void 0,this.last=void 0;const e=Rr(),i=Js.prototype;i[e]||(i[e]=fx)}get changes(){return this._changes||(this._changes=new Ie)}get(t){return this._results[t]}map(t){return this._results.map(t)}filter(t){return this._results.filter(t)}find(t){return this._results.find(t)}reduce(t,e){return this._results.reduce(t,e)}forEach(t){this._results.forEach(t)}some(t){return this._results.some(t)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(t,e){const i=this;i.dirty=!1;const r=en(t);(this._changesDetected=!function _0(n,t,e){if(n.length!==t.length)return!1;for(let i=0;i<n.length;i++){let r=n[i],s=t[i];if(e&&(r=e(r),s=e(s)),s!==r)return!1}return!0}(i._results,r,e))&&(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 Bn=(()=>{class n{}return n.__NG_ELEMENT_ID__=gx,n})();const px=Bn,mx=class extends px{constructor(t,e,i){super(),this._declarationLView=t,this._declarationTContainer=e,this.elementRef=i}createEmbeddedView(t){const e=this._declarationTContainer.tViews,i=Bs(this._declarationLView,e,t,16,null,e.declTNode,null,null,null,null);i[17]=this._declarationLView[this._declarationTContainer.index];const s=this._declarationLView[19];return null!==s&&(i[19]=s.createEmbeddedView(e)),Hs(e,i,t),new Zs(i)}};function gx(){return Aa(Xe(),C())}function Aa(n,t){return 4&n.type?new mx(t,n,Yr(n,t)):null}let nn=(()=>{class n{}return n.__NG_ELEMENT_ID__=_x,n})();function _x(){return Iy(Xe(),C())}const yx=nn,Ty=class extends yx{constructor(t,e,i){super(),this._lContainer=t,this._hostTNode=e,this._hostLView=i}get element(){return Yr(this._hostTNode,this._hostLView)}get injector(){return new br(this._hostTNode,this._hostLView)}get parentInjector(){const t=Zo(this._hostTNode,this._hostLView);if(bp(t)){const e=vr(t,this._hostLView),i=yr(t);return new br(e[1].data[i+8],e)}return new br(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(t){const e=Ay(this._lContainer);return null!==e&&e[t]||null}get length(){return this._lContainer.length-10}createEmbeddedView(t,e,i){const r=t.createEmbeddedView(e||{});return this.insert(r,i),r}createComponent(t,e,i,r,s){const o=t&&!function Ms(n){return"function"==typeof n}(t);let a;if(o)a=e;else{const d=e||{};a=d.index,i=d.injector,r=d.projectableNodes,s=d.ngModuleRef}const l=o?t:new nd(at(t)),c=i||this.parentInjector;if(!s&&null==l.ngModule){const h=(o?c:this.parentInjector).get(Zr,null);h&&(s=h)}const u=l.create(c,r,void 0,s);return this.insert(u.hostView,a),u}insert(t,e){const i=t._lView,r=i[1];if(function VD(n){return pn(n[3])}(i)){const u=this.indexOf(t);if(-1!==u)this.detach(u);else{const d=i[3],h=new Ty(d,d[6],d[3]);h.detach(h.indexOf(t))}}const s=this._adjustIndex(e),o=this._lContainer;!function iS(n,t,e,i){const r=10+i,s=e.length;i>0&&(e[r-1][4]=t),i<s-10?(t[4]=e[r],xp(e,10+i,t)):(e.push(t),t[4]=null),t[3]=e;const o=t[17];null!==o&&e!==o&&function rS(n,t){const e=n[9];t[16]!==t[3][3][16]&&(n[2]=!0),null===e?n[9]=[t]:e.push(t)}(o,t);const a=t[19];null!==a&&a.insertView(n),t[2]|=128}(r,i,o,s);const a=Qc(s,o),l=i[U],c=ra(l,o[7]);return null!==c&&function eS(n,t,e,i,r,s){i[0]=r,i[6]=t,Ns(n,i,e,1,r,s)}(r,o[6],l,i,c,a),t.attachToViewContainerRef(),xp(sd(o),s,t),t}move(t,e){return this.insert(t,e)}indexOf(t){const e=Ay(this._lContainer);return null!==e?e.indexOf(t):-1}remove(t){const e=this._adjustIndex(t,-1),i=Yc(this._lContainer,e);i&&(Jo(sd(this._lContainer),e),em(i[1],i))}detach(t){const e=this._adjustIndex(t,-1),i=Yc(this._lContainer,e);return i&&null!=Jo(sd(this._lContainer),e)?new Zs(i):null}_adjustIndex(t,e=0){return null==t?this.length+e:t}};function Ay(n){return n[8]}function sd(n){return n[8]||(n[8]=[])}function Iy(n,t){let e;const i=t[n.index];if(pn(i))e=i;else{let r;if(8&n.type)r=je(i);else{const s=t[U];r=s.createComment("");const o=Bt(n,t);Pi(s,ra(s,o),r,function lS(n,t){return Pe(n)?n.nextSibling(t):t.nextSibling}(s,o),!1)}t[n.index]=e=ig(i,t,r,n),pa(t,e)}return new Ty(e,n,t)}class od{constructor(t){this.queryList=t,this.matches=null}clone(){return new od(this.queryList)}setDirty(){this.queryList.setDirty()}}class ad{constructor(t=[]){this.queries=t}createEmbeddedView(t){const e=t.queries;if(null!==e){const i=null!==t.contentQueries?t.contentQueries[0]:e.length,r=[];for(let s=0;s<i;s++){const o=e.getByIndex(s);r.push(this.queries[o.indexInDeclarationView].clone())}return new ad(r)}return null}insertView(t){this.dirtyQueriesWithMatches(t)}detachView(t){this.dirtyQueriesWithMatches(t)}dirtyQueriesWithMatches(t){for(let e=0;e<this.queries.length;e++)null!==Ry(t,e).matches&&this.queries[e].setDirty()}}class xy{constructor(t,e,i=null){this.predicate=t,this.flags=e,this.read=i}}class ld{constructor(t=[]){this.queries=t}elementStart(t,e){for(let i=0;i<this.queries.length;i++)this.queries[i].elementStart(t,e)}elementEnd(t){for(let e=0;e<this.queries.length;e++)this.queries[e].elementEnd(t)}embeddedTView(t){let e=null;for(let i=0;i<this.length;i++){const r=null!==e?e.length:0,s=this.getByIndex(i).embeddedTView(t,r);s&&(s.indexInDeclarationView=i,null!==e?e.push(s):e=[s])}return null!==e?new ld(e):null}template(t,e){for(let i=0;i<this.queries.length;i++)this.queries[i].template(t,e)}getByIndex(t){return this.queries[t]}get length(){return this.queries.length}track(t){this.queries.push(t)}}class cd{constructor(t,e=-1){this.metadata=t,this.matches=null,this.indexInDeclarationView=-1,this.crossesNgTemplate=!1,this._appliesToNextNode=!0,this._declarationNodeIndex=e}elementStart(t,e){this.isApplyingToNode(e)&&this.matchTNode(t,e)}elementEnd(t){this._declarationNodeIndex===t.index&&(this._appliesToNextNode=!1)}template(t,e){this.elementStart(t,e)}embeddedTView(t,e){return this.isApplyingToNode(t)?(this.crossesNgTemplate=!0,this.addMatch(-t.index,e),new cd(this.metadata)):null}isApplyingToNode(t){if(this._appliesToNextNode&&1!=(1&this.metadata.flags)){const e=this._declarationNodeIndex;let i=t.parent;for(;null!==i&&8&i.type&&i.index!==e;)i=i.parent;return e===(null!==i?i.index:-1)}return this._appliesToNextNode}matchTNode(t,e){const i=this.metadata.predicate;if(Array.isArray(i))for(let r=0;r<i.length;r++){const s=i[r];this.matchTNodeWithReadOption(t,e,Cx(e,s)),this.matchTNodeWithReadOption(t,e,Qo(e,t,s,!1,!1))}else i===Bn?4&e.type&&this.matchTNodeWithReadOption(t,e,-1):this.matchTNodeWithReadOption(t,e,Qo(e,t,i,!1,!1))}matchTNodeWithReadOption(t,e,i){if(null!==i){const r=this.metadata.read;if(null!==r)if(r===Ee||r===nn||r===Bn&&4&e.type)this.addMatch(e.index,-2);else{const s=Qo(e,t,r,!1,!1);null!==s&&this.addMatch(e.index,s)}else this.addMatch(e.index,i)}}addMatch(t,e){null===this.matches?this.matches=[t,e]:this.matches.push(t,e)}}function Cx(n,t){const e=n.localNames;if(null!==e)for(let i=0;i<e.length;i+=2)if(e[i]===t)return e[i+1];return null}function Ex(n,t,e,i){return-1===e?function wx(n,t){return 11&n.type?Yr(n,t):4&n.type?Aa(n,t):null}(t,n):-2===e?function Dx(n,t,e){return e===Ee?Yr(t,n):e===Bn?Aa(t,n):e===nn?Iy(t,n):void 0}(n,t,i):Es(n,n[1],e,t)}function ky(n,t,e,i){const r=t[19].queries[i];if(null===r.matches){const s=n.data,o=e.matches,a=[];for(let l=0;l<o.length;l+=2){const c=o[l];a.push(c<0?null:Ex(t,s[c],o[l+1],e.metadata.read))}r.matches=a}return r.matches}function ud(n,t,e,i){const r=n.queries.getByIndex(e),s=r.matches;if(null!==s){const o=ky(n,t,r,e);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=t[-l];for(let d=10;d<u.length;d++){const h=u[d];h[17]===h[3]&&ud(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];ud(f[1],f,c,i)}}}}}return i}function Ue(n){const t=C(),e=te(),i=dp();Sc(i+1);const r=Ry(e,i);if(n.dirty&&rp(t)===(2==(2&r.metadata.flags))){if(null===r.matches)n.reset([]);else{const s=r.crossesNgTemplate?ud(e,t,i,[]):ky(e,t,r,i);n.reset(s,VI),n.notifyOnChanges()}return!0}return!1}function Qn(n,t,e){const i=te();i.firstCreatePass&&(Fy(i,new xy(n,t,e),-1),2==(2&t)&&(i.staticViewQueries=!0)),Oy(i,C(),t)}function rn(n,t,e,i){const r=te();if(r.firstCreatePass){const s=Xe();Fy(r,new xy(t,e,i),s.index),function Mx(n,t){const e=n.contentQueries||(n.contentQueries=[]);t!==(e.length?e[e.length-1]:-1)&&e.push(n.queries.length-1,t)}(r,n),2==(2&e)&&(r.staticContentQueries=!0)}Oy(r,C(),e)}function ze(){return function Sx(n,t){return n[19].queries[t].queryList}(C(),dp())}function Oy(n,t,e){const i=new Js(4==(4&e));Ym(n,t,i,i.destroy),null===t[19]&&(t[19]=new ad),t[19].queries.push(new od(i))}function Fy(n,t,e){null===n.queries&&(n.queries=new ld),n.queries.track(new cd(t,e))}function Ry(n,t){return n.queries.getByIndex(t)}function ka(...n){}const gd=new T("Application Initializer");let _d=(()=>{class n{constructor(e){this.appInits=e,this.resolve=ka,this.reject=ka,this.initialized=!1,this.done=!1,this.donePromise=new Promise((i,r)=>{this.resolve=i,this.reject=r})}runInitializers(){if(this.initialized)return;const e=[],i=()=>{this.done=!0,this.resolve()};if(this.appInits)for(let r=0;r<this.appInits.length;r++){const s=this.appInits[r]();if(va(s))e.push(s);else if(Zg(s)){const o=new Promise((a,l)=>{s.subscribe({complete:a,error:l})});e.push(o)}}Promise.all(e).then(()=>{i()}).catch(r=>{this.reject(r)}),0===e.length&&i(),this.initialized=!0}}return n.\u0275fac=function(e){return new(e||n)(v(gd,8))},n.\u0275prov=x({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const to=new T("AppId",{providedIn:"root",factory:function Xy(){return`${yd()}${yd()}${yd()}`}});function yd(){return String.fromCharCode(97+Math.floor(25*Math.random()))}const Qy=new T("Platform Initializer"),vd=new T("Platform ID",{providedIn:"platform",factory:()=>"unknown"}),zx=new T("appBootstrapListener"),Jn=new T("LocaleId",{providedIn:"root",factory:()=>na(Jn,H.Optional|H.SkipSelf)||function Gx(){return"undefined"!=typeof $localize&&$localize.locale||wa}()}),Yx=(()=>Promise.resolve(0))();function bd(n){"undefined"==typeof Zone?Yx.then(()=>{n&&n.apply(null,null)}):Zone.current.scheduleMicroTask("scheduleMicrotask",n)}class le{constructor({enableLongStackTrace:t=!1,shouldCoalesceEventChangeDetection:e=!1,shouldCoalesceRunChangeDetection:i=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new Ie(!1),this.onMicrotaskEmpty=new Ie(!1),this.onStable=new Ie(!1),this.onError=new Ie(!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)),t&&Zone.longStackTraceZoneSpec&&(r._inner=r._inner.fork(Zone.longStackTraceZoneSpec)),r.shouldCoalesceEventChangeDetection=!i&&e,r.shouldCoalesceRunChangeDetection=i,r.lastRequestAnimationFrameId=-1,r.nativeRequestAnimationFrame=function Zx(){let n=ge.requestAnimationFrame,t=ge.cancelAnimationFrame;if("undefined"!=typeof Zone&&n&&t){const e=n[Zone.__symbol__("OriginalDelegate")];e&&(n=e);const i=t[Zone.__symbol__("OriginalDelegate")];i&&(t=i)}return{nativeRequestAnimationFrame:n,nativeCancelAnimationFrame:t}}().nativeRequestAnimationFrame,function Jx(n){const t=()=>{!function Qx(n){n.isCheckStableRunning||-1!==n.lastRequestAnimationFrameId||(n.lastRequestAnimationFrameId=n.nativeRequestAnimationFrame.call(ge,()=>{n.fakeTopEventTask||(n.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{n.lastRequestAnimationFrameId=-1,wd(n),n.isCheckStableRunning=!0,Cd(n),n.isCheckStableRunning=!1},void 0,()=>{},()=>{})),n.fakeTopEventTask.invoke()}),wd(n))}(n)};n._inner=n._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(e,i,r,s,o,a)=>{try{return Jy(n),e.invokeTask(r,s,o,a)}finally{(n.shouldCoalesceEventChangeDetection&&"eventTask"===s.type||n.shouldCoalesceRunChangeDetection)&&t(),ev(n)}},onInvoke:(e,i,r,s,o,a,l)=>{try{return Jy(n),e.invoke(r,s,o,a,l)}finally{n.shouldCoalesceRunChangeDetection&&t(),ev(n)}},onHasTask:(e,i,r,s)=>{e.hasTask(r,s),i===r&&("microTask"==s.change?(n._hasPendingMicrotasks=s.microTask,wd(n),Cd(n)):"macroTask"==s.change&&(n.hasPendingMacrotasks=s.macroTask))},onHandleError:(e,i,r,s)=>(e.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(!le.isInAngularZone())throw new Error("Expected to be in Angular Zone, but it is not!")}static assertNotInAngularZone(){if(le.isInAngularZone())throw new Error("Expected to not be in Angular Zone, but it is!")}run(t,e,i){return this._inner.run(t,e,i)}runTask(t,e,i,r){const s=this._inner,o=s.scheduleEventTask("NgZoneEvent: "+r,t,Xx,ka,ka);try{return s.runTask(o,e,i)}finally{s.cancelTask(o)}}runGuarded(t,e,i){return this._inner.runGuarded(t,e,i)}runOutsideAngular(t){return this._outer.run(t)}}const Xx={};function Cd(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 wd(n){n.hasPendingMicrotasks=!!(n._hasPendingMicrotasks||(n.shouldCoalesceEventChangeDetection||n.shouldCoalesceRunChangeDetection)&&-1!==n.lastRequestAnimationFrameId)}function Jy(n){n._nesting++,n.isStable&&(n.isStable=!1,n.onUnstable.emit(null))}function ev(n){n._nesting--,Cd(n)}class ek{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new Ie,this.onMicrotaskEmpty=new Ie,this.onStable=new Ie,this.onError=new Ie}run(t,e,i){return t.apply(e,i)}runGuarded(t,e,i){return t.apply(e,i)}runOutsideAngular(t){return t()}runTask(t,e,i,r){return t.apply(e,i)}}let Ed=(()=>{class n{constructor(e){this._ngZone=e,this._pendingCount=0,this._isZoneStable=!0,this._didWork=!1,this._callbacks=[],this.taskTrackingZone=null,this._watchAngularEvents(),e.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:()=>{le.assertNotInAngularZone(),bd(()=>{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())bd(()=>{for(;0!==this._callbacks.length;){let e=this._callbacks.pop();clearTimeout(e.timeoutId),e.doneCb(this._didWork)}this._didWork=!1});else{let e=this.getPendingTasks();this._callbacks=this._callbacks.filter(i=>!i.updateCb||!i.updateCb(e)||(clearTimeout(i.timeoutId),!1)),this._didWork=!0}}getPendingTasks(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(e=>({source:e.source,creationLocation:e.creationLocation,data:e.data})):[]}addCallback(e,i,r){let s=-1;i&&i>0&&(s=setTimeout(()=>{this._callbacks=this._callbacks.filter(o=>o.timeoutId!==s),e(this._didWork,this.getPendingTasks())},i)),this._callbacks.push({doneCb:e,timeoutId:s,updateCb:r})}whenStable(e,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(e,i,r),this._runCallbacksIfReady()}getPendingRequestCount(){return this._pendingCount}findProviders(e,i,r){return[]}}return n.\u0275fac=function(e){return new(e||n)(v(le))},n.\u0275prov=x({token:n,factory:n.\u0275fac}),n})(),tk=(()=>{class n{constructor(){this._applications=new Map,Dd.addToWindow(this)}registerApplication(e,i){this._applications.set(e,i)}unregisterApplication(e){this._applications.delete(e)}unregisterAllApplications(){this._applications.clear()}getTestability(e){return this._applications.get(e)||null}getAllTestabilities(){return Array.from(this._applications.values())}getAllRootElements(){return Array.from(this._applications.keys())}findTestabilityInTree(e,i=!0){return Dd.findTestabilityInTree(this,e,i)}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=x({token:n,factory:n.\u0275fac,providedIn:"platform"}),n})();class nk{addToWindow(t){}findTestabilityInTree(t,e,i){return null}}let Dd=new nk,qi=null;const tv=new T("AllowMultipleToken"),nv=new T("PlatformOnDestroy");function iv(n,t,e=[]){const i=`Platform: ${t}`,r=new T(i);return(s=[])=>{let o=Sd();if(!o||o.injector.get(tv,!1)){const a=[...e,...s,{provide:r,useValue:!0}];n?n(a):function ok(n){if(qi&&!qi.get(tv,!1))throw new A(400,"");qi=n;const t=n.get(rv),e=n.get(Qy,null);e&&e.forEach(i=>i())}(function lk(n=[],t){return Ct.create({name:t,providers:[{provide:Ou,useValue:"platform"},{provide:nv,useValue:()=>qi=null},...n]})}(a,i))}return function ak(n){const t=Sd();if(!t)throw new A(401,"");return t}()}}function Sd(){var n;return null!==(n=null==qi?void 0:qi.get(rv))&&void 0!==n?n:null}let rv=(()=>{class n{constructor(e){this._injector=e,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(e,i){const a=function ck(n,t){let e;return e="noop"===n?new ek:("zone.js"===n?void 0:n)||new le({enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:!!(null==t?void 0:t.ngZoneEventCoalescing),shouldCoalesceRunChangeDetection:!!(null==t?void 0:t.ngZoneRunCoalescing)}),e}(i?i.ngZone:void 0,{ngZoneEventCoalescing:i&&i.ngZoneEventCoalescing||!1,ngZoneRunCoalescing:i&&i.ngZoneRunCoalescing||!1}),l=[{provide:le,useValue:a}];return a.run(()=>{const c=Ct.create({providers:l,parent:this.injector,name:e.moduleType.name}),u=e.create(c),d=u.injector.get(hi,null);if(!d)throw new A(402,"");return a.runOutsideAngular(()=>{const h=a.onError.subscribe({next:f=>{d.handleError(f)}});u.onDestroy(()=>{Md(this._modules,u),h.unsubscribe()})}),function uk(n,t,e){try{const i=e();return va(i)?i.catch(r=>{throw t.runOutsideAngular(()=>n.handleError(r)),r}):i}catch(i){throw t.runOutsideAngular(()=>n.handleError(i)),i}}(d,a,()=>{const h=u.injector.get(_d);return h.runInitializers(),h.donePromise.then(()=>(function BA(n){Lt(n,"Expected localeId to be defined"),"string"==typeof n&&($_=n.toLowerCase().replace(/_/g,"-"))}(u.injector.get(Jn,wa)||wa),this._moduleDoBootstrap(u),u))})})}bootstrapModule(e,i=[]){const r=sv({},i);return function rk(n,t,e){const i=new id(e);return Promise.resolve(i)}(0,0,e).then(s=>this.bootstrapModuleFactory(s,r))}_moduleDoBootstrap(e){const i=e.injector.get(Oa);if(e._bootstrapComponents.length>0)e._bootstrapComponents.forEach(r=>i.bootstrap(r));else{if(!e.instance.ngDoBootstrap)throw new A(403,"");e.instance.ngDoBootstrap(i)}this._modules.push(e)}onDestroy(e){this._destroyListeners.push(e)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new A(404,"");this._modules.slice().forEach(i=>i.destroy()),this._destroyListeners.forEach(i=>i());const e=this._injector.get(nv,null);null==e||e(),this._destroyed=!0}get destroyed(){return this._destroyed}}return n.\u0275fac=function(e){return new(e||n)(v(Ct))},n.\u0275prov=x({token:n,factory:n.\u0275fac,providedIn:"platform"}),n})();function sv(n,t){return Array.isArray(t)?t.reduce(sv,n):Object.assign(Object.assign({},n),t)}let Oa=(()=>{class n{constructor(e,i,r,s){this._zone=e,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 Ce(l=>{this._stable=this._zone.isStable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks,this._zone.runOutsideAngular(()=>{l.next(this._stable),l.complete()})}),a=new Ce(l=>{let c;this._zone.runOutsideAngular(()=>{c=this._zone.onStable.subscribe(()=>{le.assertNotInAngularZone(),bd(()=>{!this._stable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks&&(this._stable=!0,l.next(!0))})})});const u=this._zone.onUnstable.subscribe(()=>{le.assertInAngularZone(),this._stable&&(this._stable=!1,this._zone.runOutsideAngular(()=>{l.next(!1)}))});return()=>{c.unsubscribe(),u.unsubscribe()}});this.isStable=si(o,a.pipe(jf()))}bootstrap(e,i){if(!this._initStatus.done)throw new A(405,"");let r;r=e instanceof fy?e:this._injector.get(Gi).resolveComponentFactory(e),this.componentTypes.push(r.componentType);const s=function sk(n){return n.isBoundToModule}(r)?void 0:this._injector.get(Zr),a=r.create(Ct.NULL,[],i||r.selector,s),l=a.location.nativeElement,c=a.injector.get(Ed,null),u=c&&a.injector.get(tk);return c&&u&&u.registerApplication(l,c),a.onDestroy(()=>{this.detachView(a.hostView),Md(this.components,a),u&&u.unregisterApplication(l)}),this._loadComponent(a),a}tick(){if(this._runningTick)throw new A(101,"");try{this._runningTick=!0;for(let e of this._views)e.detectChanges()}catch(e){this._zone.runOutsideAngular(()=>this._exceptionHandler.handleError(e))}finally{this._runningTick=!1}}attachView(e){const i=e;this._views.push(i),i.attachToAppRef(this)}detachView(e){const i=e;Md(this._views,i),i.detachFromAppRef()}_loadComponent(e){this.attachView(e.hostView),this.tick(),this.components.push(e),this._injector.get(zx,[]).concat(this._bootstrapListeners).forEach(r=>r(e))}ngOnDestroy(){this._views.slice().forEach(e=>e.destroy()),this._onMicrotaskEmptySubscription.unsubscribe()}get viewCount(){return this._views.length}}return n.\u0275fac=function(e){return new(e||n)(v(le),v(Ct),v(hi),v(_d))},n.\u0275prov=x({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();function Md(n,t){const e=n.indexOf(t);e>-1&&n.splice(e,1)}let av=!0,ei=(()=>{class n{}return n.__NG_ELEMENT_ID__=fk,n})();function fk(n){return function pk(n,t,e){if(Vo(n)&&!e){const i=Ht(n.index,t);return new Zs(i,i)}return 47&n.type?new Zs(t[16],t):null}(Xe(),C(),16==(16&n))}class hv{constructor(){}supports(t){return $s(t)}create(t){return new bk(t)}}const vk=(n,t)=>t;class bk{constructor(t){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=t||vk}forEachItem(t){let e;for(e=this._itHead;null!==e;e=e._next)t(e)}forEachOperation(t){let e=this._itHead,i=this._removalsHead,r=0,s=null;for(;e||i;){const o=!i||e&&e.currentIndex<pv(i,r,s)?e:i,a=pv(o,r,s),l=o.currentIndex;if(o===i)r--,i=i._nextRemoved;else if(e=e._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&&t(o,a,l)}}forEachPreviousItem(t){let e;for(e=this._previousItHead;null!==e;e=e._nextPrevious)t(e)}forEachAddedItem(t){let e;for(e=this._additionsHead;null!==e;e=e._nextAdded)t(e)}forEachMovedItem(t){let e;for(e=this._movesHead;null!==e;e=e._nextMoved)t(e)}forEachRemovedItem(t){let e;for(e=this._removalsHead;null!==e;e=e._nextRemoved)t(e)}forEachIdentityChange(t){let e;for(e=this._identityChangesHead;null!==e;e=e._nextIdentityChange)t(e)}diff(t){if(null==t&&(t=[]),!$s(t))throw new A(900,"");return this.check(t)?this:null}onDestroy(){}check(t){this._reset();let r,s,o,e=this._itHead,i=!1;if(Array.isArray(t)){this.length=t.length;for(let a=0;a<this.length;a++)s=t[a],o=this._trackByFn(a,s),null!==e&&Object.is(e.trackById,o)?(i&&(e=this._verifyReinsertion(e,s,o,a)),Object.is(e.item,s)||this._addIdentityChange(e,s)):(e=this._mismatch(e,s,o,a),i=!0),e=e._next}else r=0,function ST(n,t){if(Array.isArray(n))for(let e=0;e<n.length;e++)t(n[e]);else{const e=n[Rr()]();let i;for(;!(i=e.next()).done;)t(i.value)}}(t,a=>{o=this._trackByFn(r,a),null!==e&&Object.is(e.trackById,o)?(i&&(e=this._verifyReinsertion(e,a,o,r)),Object.is(e.item,a)||this._addIdentityChange(e,a)):(e=this._mismatch(e,a,o,r),i=!0),e=e._next,r++}),this.length=r;return this._truncate(e),this.collection=t,this.isDirty}get isDirty(){return null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead}_reset(){if(this.isDirty){let t;for(t=this._previousItHead=this._itHead;null!==t;t=t._next)t._nextPrevious=t._next;for(t=this._additionsHead;null!==t;t=t._nextAdded)t.previousIndex=t.currentIndex;for(this._additionsHead=this._additionsTail=null,t=this._movesHead;null!==t;t=t._nextMoved)t.previousIndex=t.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(t,e,i,r){let s;return null===t?s=this._itTail:(s=t._prev,this._remove(t)),null!==(t=null===this._unlinkedRecords?null:this._unlinkedRecords.get(i,null))?(Object.is(t.item,e)||this._addIdentityChange(t,e),this._reinsertAfter(t,s,r)):null!==(t=null===this._linkedRecords?null:this._linkedRecords.get(i,r))?(Object.is(t.item,e)||this._addIdentityChange(t,e),this._moveAfter(t,s,r)):t=this._addAfter(new Ck(e,i),s,r),t}_verifyReinsertion(t,e,i,r){let s=null===this._unlinkedRecords?null:this._unlinkedRecords.get(i,null);return null!==s?t=this._reinsertAfter(s,t._prev,r):t.currentIndex!=r&&(t.currentIndex=r,this._addToMoves(t,r)),t}_truncate(t){for(;null!==t;){const e=t._next;this._addToRemovals(this._unlink(t)),t=e}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(t,e,i){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(t);const r=t._prevRemoved,s=t._nextRemoved;return null===r?this._removalsHead=s:r._nextRemoved=s,null===s?this._removalsTail=r:s._prevRemoved=r,this._insertAfter(t,e,i),this._addToMoves(t,i),t}_moveAfter(t,e,i){return this._unlink(t),this._insertAfter(t,e,i),this._addToMoves(t,i),t}_addAfter(t,e,i){return this._insertAfter(t,e,i),this._additionsTail=null===this._additionsTail?this._additionsHead=t:this._additionsTail._nextAdded=t,t}_insertAfter(t,e,i){const r=null===e?this._itHead:e._next;return t._next=r,t._prev=e,null===r?this._itTail=t:r._prev=t,null===e?this._itHead=t:e._next=t,null===this._linkedRecords&&(this._linkedRecords=new fv),this._linkedRecords.put(t),t.currentIndex=i,t}_remove(t){return this._addToRemovals(this._unlink(t))}_unlink(t){null!==this._linkedRecords&&this._linkedRecords.remove(t);const e=t._prev,i=t._next;return null===e?this._itHead=i:e._next=i,null===i?this._itTail=e:i._prev=e,t}_addToMoves(t,e){return t.previousIndex===e||(this._movesTail=null===this._movesTail?this._movesHead=t:this._movesTail._nextMoved=t),t}_addToRemovals(t){return null===this._unlinkedRecords&&(this._unlinkedRecords=new fv),this._unlinkedRecords.put(t),t.currentIndex=null,t._nextRemoved=null,null===this._removalsTail?(this._removalsTail=this._removalsHead=t,t._prevRemoved=null):(t._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=t),t}_addIdentityChange(t,e){return t.item=e,this._identityChangesTail=null===this._identityChangesTail?this._identityChangesHead=t:this._identityChangesTail._nextIdentityChange=t,t}}class Ck{constructor(t,e){this.item=t,this.trackById=e,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 wk{constructor(){this._head=null,this._tail=null}add(t){null===this._head?(this._head=this._tail=t,t._nextDup=null,t._prevDup=null):(this._tail._nextDup=t,t._prevDup=this._tail,t._nextDup=null,this._tail=t)}get(t,e){let i;for(i=this._head;null!==i;i=i._nextDup)if((null===e||e<=i.currentIndex)&&Object.is(i.trackById,t))return i;return null}remove(t){const e=t._prevDup,i=t._nextDup;return null===e?this._head=i:e._nextDup=i,null===i?this._tail=e:i._prevDup=e,null===this._head}}class fv{constructor(){this.map=new Map}put(t){const e=t.trackById;let i=this.map.get(e);i||(i=new wk,this.map.set(e,i)),i.add(t)}get(t,e){const r=this.map.get(t);return r?r.get(t,e):null}remove(t){const e=t.trackById;return this.map.get(e).remove(t)&&this.map.delete(e),t}get isEmpty(){return 0===this.map.size}clear(){this.map.clear()}}function pv(n,t,e){const i=n.previousIndex;if(null===i)return i;let r=0;return e&&i<e.length&&(r=e[i]),i+t+r}class mv{constructor(){}supports(t){return t instanceof Map||Vu(t)}create(){return new Ek}}class Ek{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(t){let e;for(e=this._mapHead;null!==e;e=e._next)t(e)}forEachPreviousItem(t){let e;for(e=this._previousMapHead;null!==e;e=e._nextPrevious)t(e)}forEachChangedItem(t){let e;for(e=this._changesHead;null!==e;e=e._nextChanged)t(e)}forEachAddedItem(t){let e;for(e=this._additionsHead;null!==e;e=e._nextAdded)t(e)}forEachRemovedItem(t){let e;for(e=this._removalsHead;null!==e;e=e._nextRemoved)t(e)}diff(t){if(t){if(!(t instanceof Map||Vu(t)))throw new A(900,"")}else t=new Map;return this.check(t)?this:null}onDestroy(){}check(t){this._reset();let e=this._mapHead;if(this._appendAfter=null,this._forEach(t,(i,r)=>{if(e&&e.key===r)this._maybeAddToChanges(e,i),this._appendAfter=e,e=e._next;else{const s=this._getOrCreateRecordForKey(r,i);e=this._insertBeforeOrAppend(e,s)}}),e){e._prev&&(e._prev._next=null),this._removalsHead=e;for(let i=e;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(t,e){if(t){const i=t._prev;return e._next=t,e._prev=i,t._prev=e,i&&(i._next=e),t===this._mapHead&&(this._mapHead=e),this._appendAfter=t,t}return this._appendAfter?(this._appendAfter._next=e,e._prev=this._appendAfter):this._mapHead=e,this._appendAfter=e,null}_getOrCreateRecordForKey(t,e){if(this._records.has(t)){const r=this._records.get(t);this._maybeAddToChanges(r,e);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 Dk(t);return this._records.set(t,i),i.currentValue=e,this._addToAdditions(i),i}_reset(){if(this.isDirty){let t;for(this._previousMapHead=this._mapHead,t=this._previousMapHead;null!==t;t=t._next)t._nextPrevious=t._next;for(t=this._changesHead;null!==t;t=t._nextChanged)t.previousValue=t.currentValue;for(t=this._additionsHead;null!=t;t=t._nextAdded)t.previousValue=t.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}}_maybeAddToChanges(t,e){Object.is(e,t.currentValue)||(t.previousValue=t.currentValue,t.currentValue=e,this._addToChanges(t))}_addToAdditions(t){null===this._additionsHead?this._additionsHead=this._additionsTail=t:(this._additionsTail._nextAdded=t,this._additionsTail=t)}_addToChanges(t){null===this._changesHead?this._changesHead=this._changesTail=t:(this._changesTail._nextChanged=t,this._changesTail=t)}_forEach(t,e){t instanceof Map?t.forEach(e):Object.keys(t).forEach(i=>e(t[i],i))}}class Dk{constructor(t){this.key=t,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 gv(){return new Na([new hv])}let Na=(()=>{class n{constructor(e){this.factories=e}static create(e,i){if(null!=i){const r=i.factories.slice();e=e.concat(r)}return new n(e)}static extend(e){return{provide:n,useFactory:i=>n.create(e,i||gv()),deps:[[n,new ks,new Ni]]}}find(e){const i=this.factories.find(r=>r.supports(e));if(null!=i)return i;throw new A(901,"")}}return n.\u0275prov=x({token:n,providedIn:"root",factory:gv}),n})();function _v(){return new no([new mv])}let no=(()=>{class n{constructor(e){this.factories=e}static create(e,i){if(i){const r=i.factories.slice();e=e.concat(r)}return new n(e)}static extend(e){return{provide:n,useFactory:i=>n.create(e,i||_v()),deps:[[n,new ks,new Ni]]}}find(e){const i=this.factories.find(s=>s.supports(e));if(i)return i;throw new A(901,"")}}return n.\u0275prov=x({token:n,providedIn:"root",factory:_v}),n})();const Tk=iv(null,"core",[]);let Ak=(()=>{class n{constructor(e){}}return n.\u0275fac=function(e){return new(e||n)(v(Oa))},n.\u0275mod=me({type:n}),n.\u0275inj=ce({}),n})(),Pa=null;function Hn(){return Pa}const Z=new T("DocumentToken");let io=(()=>{class n{historyGo(e){throw new Error("Not implemented")}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=x({token:n,factory:function(){return function Ok(){return v(yv)}()},providedIn:"platform"}),n})(),yv=(()=>{class n extends io{constructor(e){super(),this._doc=e,this._init()}_init(){this.location=window.location,this._history=window.history}getBaseHrefFromDOM(){return Hn().getBaseHref(this._doc)}onPopState(e){const i=Hn().getGlobalEventTarget(this._doc,"window");return i.addEventListener("popstate",e,!1),()=>i.removeEventListener("popstate",e)}onHashChange(e){const i=Hn().getGlobalEventTarget(this._doc,"window");return i.addEventListener("hashchange",e,!1),()=>i.removeEventListener("hashchange",e)}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(e){this.location.pathname=e}pushState(e,i,r){vv()?this._history.pushState(e,i,r):this.location.hash=r}replaceState(e,i,r){vv()?this._history.replaceState(e,i,r):this.location.hash=r}forward(){this._history.forward()}back(){this._history.back()}historyGo(e=0){this._history.go(e)}getState(){return this._history.state}}return n.\u0275fac=function(e){return new(e||n)(v(Z))},n.\u0275prov=x({token:n,factory:function(){return function Fk(){return new yv(v(Z))}()},providedIn:"platform"}),n})();function vv(){return!!window.history.pushState}function bv(n,t){if(0==n.length)return t;if(0==t.length)return n;let e=0;return n.endsWith("/")&&e++,t.startsWith("/")&&e++,2==e?n+t.substring(1):1==e?n+t:n+"/"+t}function Cv(n){const t=n.match(/#|\?|$/),e=t&&t.index||n.length;return n.slice(0,e-("/"===n[e-1]?1:0))+n.slice(e)}function Yi(n){return n&&"?"!==n[0]?"?"+n:n}let kd=(()=>{class n{historyGo(e){throw new Error("Not implemented")}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=x({token:n,factory:function(){return function Rk(n){const t=v(Z).location;return new Pk(v(io),t&&t.origin||"")}()},providedIn:"root"}),n})();const Nk=new T("appBaseHref");let Pk=(()=>{class n extends kd{constructor(e,i){if(super(),this._platformLocation=e,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(e){this._removeListenerFns.push(this._platformLocation.onPopState(e),this._platformLocation.onHashChange(e))}getBaseHref(){return this._baseHref}prepareExternalUrl(e){return bv(this._baseHref,e)}path(e=!1){const i=this._platformLocation.pathname+Yi(this._platformLocation.search),r=this._platformLocation.hash;return r&&e?`${i}${r}`:i}pushState(e,i,r,s){const o=this.prepareExternalUrl(r+Yi(s));this._platformLocation.pushState(e,i,o)}replaceState(e,i,r,s){const o=this.prepareExternalUrl(r+Yi(s));this._platformLocation.replaceState(e,i,o)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}historyGo(e=0){var i,r;null===(r=(i=this._platformLocation).historyGo)||void 0===r||r.call(i,e)}}return n.\u0275fac=function(e){return new(e||n)(v(io),v(Nk,8))},n.\u0275prov=x({token:n,factory:n.\u0275fac}),n})(),wv=(()=>{class n{constructor(e,i){this._subject=new Ie,this._urlChangeListeners=[],this._platformStrategy=e;const r=this._platformStrategy.getBaseHref();this._platformLocation=i,this._baseHref=Cv(Ev(r)),this._platformStrategy.onPopState(s=>{this._subject.emit({url:this.path(!0),pop:!0,state:s.state,type:s.type})})}path(e=!1){return this.normalize(this._platformStrategy.path(e))}getState(){return this._platformLocation.getState()}isCurrentPathEqualTo(e,i=""){return this.path()==this.normalize(e+Yi(i))}normalize(e){return n.stripTrailingSlash(function Vk(n,t){return n&&t.startsWith(n)?t.substring(n.length):t}(this._baseHref,Ev(e)))}prepareExternalUrl(e){return e&&"/"!==e[0]&&(e="/"+e),this._platformStrategy.prepareExternalUrl(e)}go(e,i="",r=null){this._platformStrategy.pushState(r,"",e,i),this._notifyUrlChangeListeners(this.prepareExternalUrl(e+Yi(i)),r)}replaceState(e,i="",r=null){this._platformStrategy.replaceState(r,"",e,i),this._notifyUrlChangeListeners(this.prepareExternalUrl(e+Yi(i)),r)}forward(){this._platformStrategy.forward()}back(){this._platformStrategy.back()}historyGo(e=0){var i,r;null===(r=(i=this._platformStrategy).historyGo)||void 0===r||r.call(i,e)}onUrlChange(e){this._urlChangeListeners.push(e),this._urlChangeSubscription||(this._urlChangeSubscription=this.subscribe(i=>{this._notifyUrlChangeListeners(i.url,i.state)}))}_notifyUrlChangeListeners(e="",i){this._urlChangeListeners.forEach(r=>r(e,i))}subscribe(e,i,r){return this._subject.subscribe({next:e,error:i,complete:r})}}return n.normalizeQueryParams=Yi,n.joinWithSlash=bv,n.stripTrailingSlash=Cv,n.\u0275fac=function(e){return new(e||n)(v(kd),v(io))},n.\u0275prov=x({token:n,factory:function(){return function Lk(){return new wv(v(kd),v(io))}()},providedIn:"root"}),n})();function Ev(n){return n.replace(/\/index.html$/,"")}let jd=(()=>{class n{constructor(e,i,r,s){this._iterableDiffers=e,this._keyValueDiffers=i,this._ngEl=r,this._renderer=s,this._iterableDiffer=null,this._keyValueDiffer=null,this._initialClasses=[],this._rawClass=null}set klass(e){this._removeClasses(this._initialClasses),this._initialClasses="string"==typeof e?e.split(/\s+/):[],this._applyClasses(this._initialClasses),this._applyClasses(this._rawClass)}set ngClass(e){this._removeClasses(this._rawClass),this._applyClasses(this._initialClasses),this._iterableDiffer=null,this._keyValueDiffer=null,this._rawClass="string"==typeof e?e.split(/\s+/):e,this._rawClass&&($s(this._rawClass)?this._iterableDiffer=this._iterableDiffers.find(this._rawClass).create():this._keyValueDiffer=this._keyValueDiffers.find(this._rawClass).create())}ngDoCheck(){if(this._iterableDiffer){const e=this._iterableDiffer.diff(this._rawClass);e&&this._applyIterableChanges(e)}else if(this._keyValueDiffer){const e=this._keyValueDiffer.diff(this._rawClass);e&&this._applyKeyValueChanges(e)}}_applyKeyValueChanges(e){e.forEachAddedItem(i=>this._toggleClass(i.key,i.currentValue)),e.forEachChangedItem(i=>this._toggleClass(i.key,i.currentValue)),e.forEachRemovedItem(i=>{i.previousValue&&this._toggleClass(i.key,!1)})}_applyIterableChanges(e){e.forEachAddedItem(i=>{if("string"!=typeof i.item)throw new Error(`NgClass can only toggle CSS classes expressed as strings, got ${he(i.item)}`);this._toggleClass(i.item,!0)}),e.forEachRemovedItem(i=>this._toggleClass(i.item,!1))}_applyClasses(e){e&&(Array.isArray(e)||e instanceof Set?e.forEach(i=>this._toggleClass(i,!0)):Object.keys(e).forEach(i=>this._toggleClass(i,!!e[i])))}_removeClasses(e){e&&(Array.isArray(e)||e instanceof Set?e.forEach(i=>this._toggleClass(i,!1)):Object.keys(e).forEach(i=>this._toggleClass(i,!1)))}_toggleClass(e,i){(e=e.trim())&&e.split(/\s+/g).forEach(r=>{i?this._renderer.addClass(this._ngEl.nativeElement,r):this._renderer.removeClass(this._ngEl.nativeElement,r)})}}return n.\u0275fac=function(e){return new(e||n)(g(Na),g(no),g(Ee),g(mi))},n.\u0275dir=k({type:n,selectors:[["","ngClass",""]],inputs:{klass:["class","klass"],ngClass:"ngClass"}}),n})();class EO{constructor(t,e,i,r){this.$implicit=t,this.ngForOf=e,this.index=i,this.count=r}get first(){return 0===this.index}get last(){return this.index===this.count-1}get even(){return this.index%2==0}get odd(){return!this.even}}let Ov=(()=>{class n{constructor(e,i,r){this._viewContainer=e,this._template=i,this._differs=r,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}set ngForOf(e){this._ngForOf=e,this._ngForOfDirty=!0}set ngForTrackBy(e){this._trackByFn=e}get ngForTrackBy(){return this._trackByFn}set ngForTemplate(e){e&&(this._template=e)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;const e=this._ngForOf;!this._differ&&e&&(this._differ=this._differs.find(e).create(this.ngForTrackBy))}if(this._differ){const e=this._differ.diff(this._ngForOf);e&&this._applyChanges(e)}}_applyChanges(e){const i=this._viewContainer;e.forEachOperation((r,s,o)=>{if(null==r.previousIndex)i.createEmbeddedView(this._template,new EO(r.item,this._ngForOf,-1,-1),null===o?void 0:o);else if(null==o)i.remove(null===s?void 0:s);else if(null!==s){const a=i.get(s);i.move(a,o),Fv(a,r)}});for(let r=0,s=i.length;r<s;r++){const a=i.get(r).context;a.index=r,a.count=s,a.ngForOf=this._ngForOf}e.forEachIdentityChange(r=>{Fv(i.get(r.currentIndex),r)})}static ngTemplateContextGuard(e,i){return!0}}return n.\u0275fac=function(e){return new(e||n)(g(nn),g(Bn),g(Na))},n.\u0275dir=k({type:n,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"}}),n})();function Fv(n,t){n.context.$implicit=t.item}let Wa=(()=>{class n{constructor(e,i){this._viewContainer=e,this._context=new DO,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=i}set ngIf(e){this._context.$implicit=this._context.ngIf=e,this._updateView()}set ngIfThen(e){Rv("ngIfThen",e),this._thenTemplateRef=e,this._thenViewRef=null,this._updateView()}set ngIfElse(e){Rv("ngIfElse",e),this._elseTemplateRef=e,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(e,i){return!0}}return n.\u0275fac=function(e){return new(e||n)(g(nn),g(Bn))},n.\u0275dir=k({type:n,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"}}),n})();class DO{constructor(){this.$implicit=null,this.ngIf=null}}function Rv(n,t){if(t&&!t.createEmbeddedView)throw new Error(`${n} must be a TemplateRef, but received '${he(t)}'.`)}const Nv="browser";class zd{constructor(t,e){this._viewContainerRef=t,this._templateRef=e,this._created=!1}create(){this._created=!0,this._viewContainerRef.createEmbeddedView(this._templateRef)}destroy(){this._created=!1,this._viewContainerRef.clear()}enforceState(t){t&&!this._created?this.create():!t&&this._created&&this.destroy()}}let Ya=(()=>{class n{constructor(){this._defaultUsed=!1,this._caseCount=0,this._lastCaseCheckIndex=0,this._lastCasesMatched=!1}set ngSwitch(e){this._ngSwitch=e,0===this._caseCount&&this._updateDefaultCases(!0)}_addCase(){return this._caseCount++}_addDefault(e){this._defaultViews||(this._defaultViews=[]),this._defaultViews.push(e)}_matchCase(e){const i=e==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(e){if(this._defaultViews&&e!==this._defaultUsed){this._defaultUsed=e;for(let i=0;i<this._defaultViews.length;i++)this._defaultViews[i].enforceState(e)}}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=k({type:n,selectors:[["","ngSwitch",""]],inputs:{ngSwitch:"ngSwitch"}}),n})(),Hv=(()=>{class n{constructor(e,i,r){this.ngSwitch=r,r._addCase(),this._view=new zd(e,i)}ngDoCheck(){this._view.enforceState(this.ngSwitch._matchCase(this.ngSwitchCase))}}return n.\u0275fac=function(e){return new(e||n)(g(nn),g(Bn),g(Ya,9))},n.\u0275dir=k({type:n,selectors:[["","ngSwitchCase",""]],inputs:{ngSwitchCase:"ngSwitchCase"}}),n})(),$v=(()=>{class n{constructor(e,i,r){this._ngEl=e,this._differs=i,this._renderer=r,this._ngStyle=null,this._differ=null}set ngStyle(e){this._ngStyle=e,!this._differ&&e&&(this._differ=this._differs.find(e).create())}ngDoCheck(){if(this._differ){const e=this._differ.diff(this._ngStyle);e&&this._applyChanges(e)}}_setStyle(e,i){const[r,s]=e.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(e){e.forEachRemovedItem(i=>this._setStyle(i.key,null)),e.forEachAddedItem(i=>this._setStyle(i.key,i.currentValue)),e.forEachChangedItem(i=>this._setStyle(i.key,i.currentValue))}}return n.\u0275fac=function(e){return new(e||n)(g(Ee),g(no),g(mi))},n.\u0275dir=k({type:n,selectors:[["","ngStyle",""]],inputs:{ngStyle:"ngStyle"}}),n})();class iF{createSubscription(t,e){return t.subscribe({next:e,error:i=>{throw i}})}dispose(t){t.unsubscribe()}onDestroy(t){t.unsubscribe()}}class rF{createSubscription(t,e){return t.then(e,i=>{throw i})}dispose(t){}onDestroy(t){}}const sF=new rF,oF=new iF;let Uv=(()=>{class n{constructor(e){this._ref=e,this._latestValue=null,this._subscription=null,this._obj=null,this._strategy=null}ngOnDestroy(){this._subscription&&this._dispose()}transform(e){return this._obj?e!==this._obj?(this._dispose(),this.transform(e)):this._latestValue:(e&&this._subscribe(e),this._latestValue)}_subscribe(e){this._obj=e,this._strategy=this._selectStrategy(e),this._subscription=this._strategy.createSubscription(e,i=>this._updateLatestValue(e,i))}_selectStrategy(e){if(va(e))return sF;if(Yg(e))return oF;throw function Dn(n,t){return new A(2100,"")}()}_dispose(){this._strategy.dispose(this._subscription),this._latestValue=null,this._subscription=null,this._obj=null}_updateLatestValue(e,i){e===this._obj&&(this._latestValue=i,this._ref.markForCheck())}}return n.\u0275fac=function(e){return new(e||n)(g(ei,16))},n.\u0275pipe=gt({name:"async",type:n,pure:!1}),n})(),ao=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=me({type:n}),n.\u0275inj=ce({}),n})();class qd extends class MF extends class kk{}{constructor(){super(...arguments),this.supportsDOMEvents=!0}}{static makeCurrent(){!function xk(n){Pa||(Pa=n)}(new qd)}onAndCancel(t,e,i){return t.addEventListener(e,i,!1),()=>{t.removeEventListener(e,i,!1)}}dispatchEvent(t,e){t.dispatchEvent(e)}remove(t){t.parentNode&&t.parentNode.removeChild(t)}createElement(t,e){return(e=e||this.getDefaultDocument()).createElement(t)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(t){return t.nodeType===Node.ELEMENT_NODE}isShadowRoot(t){return t instanceof DocumentFragment}getGlobalEventTarget(t,e){return"window"===e?window:"document"===e?t:"body"===e?t.body:null}getBaseHref(t){const e=function TF(){return lo=lo||document.querySelector("base"),lo?lo.getAttribute("href"):null}();return null==e?null:function AF(n){Za=Za||document.createElement("a"),Za.setAttribute("href",n);const t=Za.pathname;return"/"===t.charAt(0)?t:`/${t}`}(e)}resetBaseElement(){lo=null}getUserAgent(){return window.navigator.userAgent}getCookie(t){return function CO(n,t){t=encodeURIComponent(t);for(const e of n.split(";")){const i=e.indexOf("="),[r,s]=-1==i?[e,""]:[e.slice(0,i),e.slice(i+1)];if(r.trim()===t)return decodeURIComponent(s)}return null}(document.cookie,t)}}let Za,lo=null;const Wv=new T("TRANSITION_ID"),xF=[{provide:gd,useFactory:function IF(n,t,e){return()=>{e.get(_d).donePromise.then(()=>{const i=Hn(),r=t.querySelectorAll(`style[ng-transition="${n}"]`);for(let s=0;s<r.length;s++)i.remove(r[s])})}},deps:[Wv,Z,Ct],multi:!0}];class Kd{static init(){!function ik(n){Dd=n}(new Kd)}addToWindow(t){ge.getAngularTestability=(i,r=!0)=>{const s=t.findTestabilityInTree(i,r);if(null==s)throw new Error("Could not find testability for element.");return s},ge.getAllAngularTestabilities=()=>t.getAllTestabilities(),ge.getAllAngularRootElements=()=>t.getAllRootElements(),ge.frameworkStabilizers||(ge.frameworkStabilizers=[]),ge.frameworkStabilizers.push(i=>{const r=ge.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(t,e,i){if(null==e)return null;const r=t.getTestability(e);return null!=r?r:i?Hn().isShadowRoot(e)?this.findTestabilityInTree(t,e.host,!0):this.findTestabilityInTree(t,e.parentElement,!0):null}}let kF=(()=>{class n{build(){return new XMLHttpRequest}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=x({token:n,factory:n.\u0275fac}),n})();const Xa=new T("EventManagerPlugins");let Qa=(()=>{class n{constructor(e,i){this._zone=i,this._eventNameToPlugin=new Map,e.forEach(r=>r.manager=this),this._plugins=e.slice().reverse()}addEventListener(e,i,r){return this._findPluginFor(i).addEventListener(e,i,r)}addGlobalEventListener(e,i,r){return this._findPluginFor(i).addGlobalEventListener(e,i,r)}getZone(){return this._zone}_findPluginFor(e){const i=this._eventNameToPlugin.get(e);if(i)return i;const r=this._plugins;for(let s=0;s<r.length;s++){const o=r[s];if(o.supports(e))return this._eventNameToPlugin.set(e,o),o}throw new Error(`No event manager plugin found for event ${e}`)}}return n.\u0275fac=function(e){return new(e||n)(v(Xa),v(le))},n.\u0275prov=x({token:n,factory:n.\u0275fac}),n})();class qv{constructor(t){this._doc=t}addGlobalEventListener(t,e,i){const r=Hn().getGlobalEventTarget(this._doc,t);if(!r)throw new Error(`Unsupported event target ${r} for event ${e}`);return this.addEventListener(r,e,i)}}let Kv=(()=>{class n{constructor(){this._stylesSet=new Set}addStyles(e){const i=new Set;e.forEach(r=>{this._stylesSet.has(r)||(this._stylesSet.add(r),i.add(r))}),this.onStylesAdded(i)}onStylesAdded(e){}getAllStyles(){return Array.from(this._stylesSet)}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=x({token:n,factory:n.\u0275fac}),n})(),co=(()=>{class n extends Kv{constructor(e){super(),this._doc=e,this._hostNodes=new Map,this._hostNodes.set(e.head,[])}_addStylesToHost(e,i,r){e.forEach(s=>{const o=this._doc.createElement("style");o.textContent=s,r.push(i.appendChild(o))})}addHost(e){const i=[];this._addStylesToHost(this._stylesSet,e,i),this._hostNodes.set(e,i)}removeHost(e){const i=this._hostNodes.get(e);i&&i.forEach(Yv),this._hostNodes.delete(e)}onStylesAdded(e){this._hostNodes.forEach((i,r)=>{this._addStylesToHost(e,r,i)})}ngOnDestroy(){this._hostNodes.forEach(e=>e.forEach(Yv))}}return n.\u0275fac=function(e){return new(e||n)(v(Z))},n.\u0275prov=x({token:n,factory:n.\u0275fac}),n})();function Yv(n){Hn().remove(n)}const Yd={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/"},Zd=/%COMP%/g;function Ja(n,t,e){for(let i=0;i<t.length;i++){let r=t[i];Array.isArray(r)?Ja(n,r,e):(r=r.replace(Zd,n),e.push(r))}return e}function Qv(n){return t=>{if("__ngUnwrap__"===t)return n;!1===n(t)&&(t.preventDefault(),t.returnValue=!1)}}let el=(()=>{class n{constructor(e,i,r){this.eventManager=e,this.sharedStylesHost=i,this.appId=r,this.rendererByCompId=new Map,this.defaultRenderer=new Xd(e)}createRenderer(e,i){if(!e||!i)return this.defaultRenderer;switch(i.encapsulation){case hn.Emulated:{let r=this.rendererByCompId.get(i.id);return r||(r=new LF(this.eventManager,this.sharedStylesHost,i,this.appId),this.rendererByCompId.set(i.id,r)),r.applyToHost(e),r}case 1:case hn.ShadowDom:return new VF(this.eventManager,this.sharedStylesHost,e,i);default:if(!this.rendererByCompId.has(i.id)){const r=Ja(i.id,i.styles,[]);this.sharedStylesHost.addStyles(r),this.rendererByCompId.set(i.id,this.defaultRenderer)}return this.defaultRenderer}}begin(){}end(){}}return n.\u0275fac=function(e){return new(e||n)(v(Qa),v(co),v(to))},n.\u0275prov=x({token:n,factory:n.\u0275fac}),n})();class Xd{constructor(t){this.eventManager=t,this.data=Object.create(null),this.destroyNode=null}destroy(){}createElement(t,e){return e?document.createElementNS(Yd[e]||e,t):document.createElement(t)}createComment(t){return document.createComment(t)}createText(t){return document.createTextNode(t)}appendChild(t,e){t.appendChild(e)}insertBefore(t,e,i){t&&t.insertBefore(e,i)}removeChild(t,e){t&&t.removeChild(e)}selectRootElement(t,e){let i="string"==typeof t?document.querySelector(t):t;if(!i)throw new Error(`The selector "${t}" did not match any elements`);return e||(i.textContent=""),i}parentNode(t){return t.parentNode}nextSibling(t){return t.nextSibling}setAttribute(t,e,i,r){if(r){e=r+":"+e;const s=Yd[r];s?t.setAttributeNS(s,e,i):t.setAttribute(e,i)}else t.setAttribute(e,i)}removeAttribute(t,e,i){if(i){const r=Yd[i];r?t.removeAttributeNS(r,e):t.removeAttribute(`${i}:${e}`)}else t.removeAttribute(e)}addClass(t,e){t.classList.add(e)}removeClass(t,e){t.classList.remove(e)}setStyle(t,e,i,r){r&($t.DashCase|$t.Important)?t.style.setProperty(e,i,r&$t.Important?"important":""):t.style[e]=i}removeStyle(t,e,i){i&$t.DashCase?t.style.removeProperty(e):t.style[e]=""}setProperty(t,e,i){t[e]=i}setValue(t,e){t.nodeValue=e}listen(t,e,i){return"string"==typeof t?this.eventManager.addGlobalEventListener(t,e,Qv(i)):this.eventManager.addEventListener(t,e,Qv(i))}}class LF extends Xd{constructor(t,e,i,r){super(t),this.component=i;const s=Ja(r+"-"+i.id,i.styles,[]);e.addStyles(s),this.contentAttr=function RF(n){return"_ngcontent-%COMP%".replace(Zd,n)}(r+"-"+i.id),this.hostAttr=function NF(n){return"_nghost-%COMP%".replace(Zd,n)}(r+"-"+i.id)}applyToHost(t){super.setAttribute(t,this.hostAttr,"")}createElement(t,e){const i=super.createElement(t,e);return super.setAttribute(i,this.contentAttr,""),i}}class VF extends Xd{constructor(t,e,i,r){super(t),this.sharedStylesHost=e,this.hostEl=i,this.shadowRoot=i.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);const s=Ja(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(t){return t===this.hostEl?this.shadowRoot:t}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}appendChild(t,e){return super.appendChild(this.nodeOrShadowRoot(t),e)}insertBefore(t,e,i){return super.insertBefore(this.nodeOrShadowRoot(t),e,i)}removeChild(t,e){return super.removeChild(this.nodeOrShadowRoot(t),e)}parentNode(t){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(t)))}}let BF=(()=>{class n extends qv{constructor(e){super(e)}supports(e){return!0}addEventListener(e,i,r){return e.addEventListener(i,r,!1),()=>this.removeEventListener(e,i,r)}removeEventListener(e,i,r){return e.removeEventListener(i,r)}}return n.\u0275fac=function(e){return new(e||n)(v(Z))},n.\u0275prov=x({token:n,factory:n.\u0275fac}),n})();const eb=["alt","control","meta","shift"],jF={"\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"},tb={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"},$F={alt:n=>n.altKey,control:n=>n.ctrlKey,meta:n=>n.metaKey,shift:n=>n.shiftKey};let UF=(()=>{class n extends qv{constructor(e){super(e)}supports(e){return null!=n.parseEventName(e)}addEventListener(e,i,r){const s=n.parseEventName(i),o=n.eventCallback(s.fullKey,r,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>Hn().onAndCancel(e,s.domEventName,o))}static parseEventName(e){const i=e.toLowerCase().split("."),r=i.shift();if(0===i.length||"keydown"!==r&&"keyup"!==r)return null;const s=n._normalizeKey(i.pop());let o="";if(eb.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(e){let i="",r=function zF(n){let t=n.key;if(null==t){if(t=n.keyIdentifier,null==t)return"Unidentified";t.startsWith("U+")&&(t=String.fromCharCode(parseInt(t.substring(2),16)),3===n.location&&tb.hasOwnProperty(t)&&(t=tb[t]))}return jF[t]||t}(e);return r=r.toLowerCase()," "===r?r="space":"."===r&&(r="dot"),eb.forEach(s=>{s!=r&&$F[s](e)&&(i+=s+".")}),i+=r,i}static eventCallback(e,i,r){return s=>{n.getEventFullKey(s)===e&&r.runGuarded(()=>i(s))}}static _normalizeKey(e){return"esc"===e?"escape":e}}return n.\u0275fac=function(e){return new(e||n)(v(Z))},n.\u0275prov=x({token:n,factory:n.\u0275fac}),n})();const KF=iv(Tk,"browser",[{provide:vd,useValue:Nv},{provide:Qy,useValue:function GF(){qd.makeCurrent(),Kd.init()},multi:!0},{provide:Z,useFactory:function qF(){return function RD(n){gc=n}(document),document},deps:[]}]),YF=[{provide:Ou,useValue:"root"},{provide:hi,useFactory:function WF(){return new hi},deps:[]},{provide:Xa,useClass:BF,multi:!0,deps:[Z,le,vd]},{provide:Xa,useClass:UF,multi:!0,deps:[Z]},{provide:el,useClass:el,deps:[Qa,co,to]},{provide:Ys,useExisting:el},{provide:Kv,useExisting:co},{provide:co,useClass:co,deps:[Z]},{provide:Ed,useClass:Ed,deps:[le]},{provide:Qa,useClass:Qa,deps:[Xa,le]},{provide:class DF{},useClass:kF,deps:[]}];let nb=(()=>{class n{constructor(e){if(e)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(e){return{ngModule:n,providers:[{provide:to,useValue:e.appId},{provide:Wv,useExisting:to},xF]}}}return n.\u0275fac=function(e){return new(e||n)(v(n,12))},n.\u0275mod=me({type:n}),n.\u0275inj=ce({providers:YF,imports:[ao,Ak]}),n})();"undefined"!=typeof window&&window;let Jd=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=x({token:n,factory:function(e){let i=null;return i=e?new(e||n):v(sb),i},providedIn:"root"}),n})(),sb=(()=>{class n extends Jd{constructor(e){super(),this._doc=e}sanitize(e,i){if(null==i)return null;switch(e){case ae.NONE:return i;case ae.HTML:return On(i,"HTML")?Ut(i):Em(this._doc,String(i)).toString();case ae.STYLE:return On(i,"Style")?Ut(i):i;case ae.SCRIPT:if(On(i,"Script"))return Ut(i);throw new Error("unsafe value used in a script context");case ae.URL:return mm(i),On(i,"URL")?Ut(i):Ps(String(i));case ae.RESOURCE_URL:if(On(i,"ResourceURL"))return Ut(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 ${e} (see https://g.co/ng/security#xss)`)}}bypassSecurityTrustHtml(e){return function bS(n){return new mS(n)}(e)}bypassSecurityTrustStyle(e){return function CS(n){return new gS(n)}(e)}bypassSecurityTrustScript(e){return function wS(n){return new _S(n)}(e)}bypassSecurityTrustUrl(e){return function ES(n){return new yS(n)}(e)}bypassSecurityTrustResourceUrl(e){return function DS(n){return new vS(n)}(e)}}return n.\u0275fac=function(e){return new(e||n)(v(Z))},n.\u0275prov=x({token:n,factory:function(e){let i=null;return i=e?new e:function sR(n){return new sb(n.get(Z))}(v(Ct)),i},providedIn:"root"}),n})();class oR extends W{constructor(t,e){super()}schedule(t,e=0){return this}}class tl extends oR{constructor(t,e){super(t,e),this.scheduler=t,this.work=e,this.pending=!1}schedule(t,e=0){if(this.closed)return this;this.state=t;const i=this.id,r=this.scheduler;return null!=i&&(this.id=this.recycleAsyncId(r,i,e)),this.pending=!0,this.delay=e,this.id=this.id||this.requestAsyncId(r,this.id,e),this}requestAsyncId(t,e,i=0){return setInterval(t.flush.bind(t,this),i)}recycleAsyncId(t,e,i=0){if(null!==i&&this.delay===i&&!1===this.pending)return e;clearInterval(e)}execute(t,e){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;const i=this._execute(t,e);if(i)return i;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(t,e){let r,i=!1;try{this.work(t)}catch(s){i=!0,r=!!s&&s||new Error(s)}if(i)return this.unsubscribe(),r}_unsubscribe(){const t=this.id,e=this.scheduler,i=e.actions,r=i.indexOf(this);this.work=null,this.state=null,this.pending=!1,this.scheduler=null,-1!==r&&i.splice(r,1),null!=t&&(this.id=this.recycleAsyncId(e,t,null)),this.delay=null}}let ob=(()=>{class n{constructor(e,i=n.now){this.SchedulerAction=e,this.now=i}schedule(e,i=0,r){return new this.SchedulerAction(this,e).schedule(r,i)}}return n.now=()=>Date.now(),n})();class Sn extends ob{constructor(t,e=ob.now){super(t,()=>Sn.delegate&&Sn.delegate!==this?Sn.delegate.now():e()),this.actions=[],this.active=!1,this.scheduled=void 0}schedule(t,e=0,i){return Sn.delegate&&Sn.delegate!==this?Sn.delegate.schedule(t,e,i):super.schedule(t,e,i)}flush(t){const{actions:e}=this;if(this.active)return void e.push(t);let i;this.active=!0;do{if(i=t.execute(t.state,t.delay))break}while(t=e.shift());if(this.active=!1,i){for(;t=e.shift();)t.unsubscribe();throw i}}}const cR=new class lR extends Sn{}(class aR extends tl{constructor(t,e){super(t,e),this.scheduler=t,this.work=e}schedule(t,e=0){return e>0?super.schedule(t,e):(this.delay=e,this.state=t,this.scheduler.flush(this),this)}execute(t,e){return e>0||this.closed?super.execute(t,e):this._execute(t,e)}requestAsyncId(t,e,i=0){return null!==i&&i>0||null===i&&this.delay>0?super.requestAsyncId(t,e,i):t.flush(this)}}),ab=new Ce(n=>n.complete());function eh(n){return n?function uR(n){return new Ce(t=>n.schedule(()=>t.complete()))}(n):ab}function Mn(...n){let t=n[n.length-1];return ur(t)?(n.pop(),Ql(n,t)):ec(n)}function lb(n,t){return new Ce(t?e=>t.schedule(dR,0,{error:n,subscriber:e}):e=>e.error(n))}function dR({error:n,subscriber:t}){t.error(n)}class kt{constructor(t,e,i){this.kind=t,this.value=e,this.error=i,this.hasValue="N"===t}observe(t){switch(this.kind){case"N":return t.next&&t.next(this.value);case"E":return t.error&&t.error(this.error);case"C":return t.complete&&t.complete()}}do(t,e,i){switch(this.kind){case"N":return t&&t(this.value);case"E":return e&&e(this.error);case"C":return i&&i()}}accept(t,e,i){return t&&"function"==typeof t.next?this.observe(t):this.do(t,e,i)}toObservable(){switch(this.kind){case"N":return Mn(this.value);case"E":return lb(this.error);case"C":return eh()}throw new Error("unexpected notification kind value")}static createNext(t){return void 0!==t?new kt("N",t):kt.undefinedValueNotification}static createError(t){return new kt("E",void 0,t)}static createComplete(){return kt.completeNotification}}kt.completeNotification=new kt("C"),kt.undefinedValueNotification=new kt("N",void 0);class nl extends ye{constructor(t,e,i=0){super(t),this.scheduler=e,this.delay=i}static dispatch(t){const{notification:e,destination:i}=t;e.observe(i),this.unsubscribe()}scheduleMessage(t){this.destination.add(this.scheduler.schedule(nl.dispatch,this.delay,new fR(t,this.destination)))}_next(t){this.scheduleMessage(kt.createNext(t))}_error(t){this.scheduleMessage(kt.createError(t)),this.unsubscribe()}_complete(){this.scheduleMessage(kt.createComplete()),this.unsubscribe()}}class fR{constructor(t,e){this.notification=t,this.destination=e}}class pR extends de{constructor(t=Number.POSITIVE_INFINITY,e=Number.POSITIVE_INFINITY,i){super(),this.scheduler=i,this._events=[],this._infiniteTimeWindow=!1,this._bufferSize=t<1?1:t,this._windowTime=e<1?1:e,e===Number.POSITIVE_INFINITY?(this._infiniteTimeWindow=!0,this.next=this.nextInfiniteTimeWindow):this.next=this.nextTimeWindow}nextInfiniteTimeWindow(t){const e=this._events;e.push(t),e.length>this._bufferSize&&e.shift(),super.next(t)}nextTimeWindow(t){this._events.push(new mR(this._getNow(),t)),this._trimBufferThenGetEvents(),super.next(t)}_subscribe(t){const e=this._infiniteTimeWindow,i=e?this._events:this._trimBufferThenGetEvents(),r=this.scheduler,s=i.length;let o;if(this.closed)throw new Ii;if(this.isStopped||this.hasError?o=W.EMPTY:(this.observers.push(t),o=new Ff(this,t)),r&&t.add(t=new nl(t,r)),e)for(let a=0;a<s&&!t.closed;a++)t.next(i[a]);else for(let a=0;a<s&&!t.closed;a++)t.next(i[a].value);return this.hasError?t.error(this.thrownError):this.isStopped&&t.complete(),o}_getNow(){return(this.scheduler||cR).now()}_trimBufferThenGetEvents(){const t=this._getNow(),e=this._bufferSize,i=this._windowTime,r=this._events,s=r.length;let o=0;for(;o<s&&!(t-r[o].time<i);)o++;return s>e&&(o=Math.max(o,s-e)),o>0&&r.splice(0,o),r}}class mR{constructor(t,e){this.time=t,this.value=e}}function uo(n,t){return"function"==typeof t?e=>e.pipe(uo((i,r)=>ds(n(i,r)).pipe(Ze((s,o)=>t(i,s,r,o))))):e=>e.lift(new gR(n))}class gR{constructor(t){this.project=t}call(t,e){return e.subscribe(new _R(t,this.project))}}class _R extends fs{constructor(t,e){super(t),this.project=e,this.index=0}_next(t){let e;const i=this.index++;try{e=this.project(t,i)}catch(r){return void this.destination.error(r)}this._innerSub(e)}_innerSub(t){const e=this.innerSubscription;e&&e.unsubscribe();const i=new hs(this),r=this.destination;r.add(i),this.innerSubscription=ps(t,i),this.innerSubscription!==i&&r.add(this.innerSubscription)}_complete(){const{innerSubscription:t}=this;(!t||t.closed)&&super._complete(),this.unsubscribe()}_unsubscribe(){this.innerSubscription=void 0}notifyComplete(){this.innerSubscription=void 0,this.isStopped&&super._complete()}notifyNext(t){this.destination.next(t)}}const il={schedule(n,t){const e=setTimeout(n,t);return()=>clearTimeout(e)},scheduleBeforeRender(n){if("undefined"==typeof window)return il.schedule(n,0);if(void 0===window.requestAnimationFrame)return il.schedule(n,16);const t=window.requestAnimationFrame(n);return()=>window.cancelAnimationFrame(t)}};let th;function MR(n,t,e){let i=e;return function vR(n){return!!n&&n.nodeType===Node.ELEMENT_NODE}(n)&&t.some((r,s)=>!("*"===r||!function CR(n,t){if(!th){const e=Element.prototype;th=e.matches||e.matchesSelector||e.mozMatchesSelector||e.msMatchesSelector||e.oMatchesSelector||e.webkitMatchesSelector}return n.nodeType===Node.ELEMENT_NODE&&th.call(n,t)}(n,r)||(i=s,0))),i}class AR{constructor(t,e){this.componentFactory=e.get(Gi).resolveComponentFactory(t)}create(t){return new IR(this.componentFactory,t)}}class IR{constructor(t,e){this.componentFactory=t,this.injector=e,this.eventEmitters=new pR(1),this.events=this.eventEmitters.pipe(uo(i=>si(...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(le),this.elementZone="undefined"==typeof Zone?null:this.ngZone.run(()=>Zone.current)}connect(t){this.runInZone(()=>{if(null!==this.scheduledDestroyFn)return this.scheduledDestroyFn(),void(this.scheduledDestroyFn=null);null===this.componentRef&&this.initializeComponent(t)})}disconnect(){this.runInZone(()=>{null===this.componentRef||null!==this.scheduledDestroyFn||(this.scheduledDestroyFn=il.schedule(()=>{null!==this.componentRef&&(this.componentRef.destroy(),this.componentRef=null,this.viewChangeDetectorRef=null)},10))})}getInputValue(t){return this.runInZone(()=>null===this.componentRef?this.initialInputValues.get(t):this.componentRef.instance[t])}setInputValue(t,e){this.runInZone(()=>{null!==this.componentRef?function wR(n,t){return n===t||n!=n&&t!=t}(e,this.getInputValue(t))&&(void 0!==e||!this.unchangedInputs.has(t))||(this.recordInputChange(t,e),this.unchangedInputs.delete(t),this.hasInputChanges=!0,this.componentRef.instance[t]=e,this.scheduleDetectChanges()):this.initialInputValues.set(t,e)})}initializeComponent(t){const e=Ct.create({providers:[],parent:this.injector}),i=function SR(n,t){const e=n.childNodes,i=t.map(()=>[]);let r=-1;t.some((s,o)=>"*"===s&&(r=o,!0));for(let s=0,o=e.length;s<o;++s){const a=e[s],l=MR(a,t,r);-1!==l&&i[l].push(a)}return i}(t,this.componentFactory.ngContentSelectors);this.componentRef=this.componentFactory.create(e,i,t),this.viewChangeDetectorRef=this.componentRef.injector.get(ei),this.implementsOnChanges=function bR(n){return"function"==typeof n}(this.componentRef.instance.ngOnChanges),this.initializeInputs(),this.initializeOutputs(this.componentRef),this.detectChanges(),this.injector.get(Oa).attachView(this.componentRef.hostView)}initializeInputs(){this.componentFactory.inputs.forEach(({propName:t})=>{this.initialInputValues.has(t)&&this.setInputValue(t,this.initialInputValues.get(t))}),this.initialInputValues.clear()}initializeOutputs(t){const e=this.componentFactory.outputs.map(({propName:i,templateName:r})=>t.instance[i].pipe(Ze(o=>({name:r,value:o}))));this.eventEmitters.next(e)}callNgOnChanges(t){if(!this.implementsOnChanges||null===this.inputChanges)return;const e=this.inputChanges;this.inputChanges=null,t.instance.ngOnChanges(e)}markViewForCheck(t){this.hasInputChanges&&(this.hasInputChanges=!1,t.markForCheck())}scheduleDetectChanges(){this.scheduledChangeDetectionFn||(this.scheduledChangeDetectionFn=il.scheduleBeforeRender(()=>{this.scheduledChangeDetectionFn=null,this.detectChanges()}))}recordInputChange(t,e){if(!this.implementsOnChanges)return;null===this.inputChanges&&(this.inputChanges={});const i=this.inputChanges[t];if(i)return void(i.currentValue=e);const r=this.unchangedInputs.has(t),s=r?void 0:this.getInputValue(t);this.inputChanges[t]=new Jf(s,e,r)}detectChanges(){null!==this.componentRef&&(this.callNgOnChanges(this.componentRef),this.markViewForCheck(this.viewChangeDetectorRef),this.componentRef.changeDetectorRef.detectChanges())}runInZone(t){return this.elementZone&&Zone.current!==this.elementZone?this.ngZone.run(t):t()}}class xR extends HTMLElement{constructor(){super(...arguments),this.ngElementEventsSubscription=null}}class cb{}const ni="*";function ub(n,t){return{type:7,name:n,definitions:t,options:{}}}function nh(n,t=null){return{type:4,styles:t,timings:n}}function db(n,t=null){return{type:2,steps:n,options:t}}function jn(n){return{type:6,styles:n,offset:null}}function ih(n,t,e){return{type:0,name:n,styles:t,options:e}}function FR(n){return{type:5,steps:n}}function rh(n,t,e=null){return{type:1,expr:n,animation:t,options:e}}function hb(n){Promise.resolve(null).then(n)}class ho{constructor(t=0,e=0){this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._started=!1,this._destroyed=!1,this._finished=!1,this._position=0,this.parentPlayer=null,this.totalTime=t+e}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(t=>t()),this._onDoneFns=[])}onStart(t){this._onStartFns.push(t)}onDone(t){this._onDoneFns.push(t)}onDestroy(t){this._onDestroyFns.push(t)}hasStarted(){return this._started}init(){}play(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}triggerMicrotask(){hb(()=>this._onFinish())}_onStart(){this._onStartFns.forEach(t=>t()),this._onStartFns=[]}pause(){}restart(){}finish(){this._onFinish()}destroy(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(t=>t()),this._onDestroyFns=[])}reset(){this._started=!1}setPosition(t){this._position=this.totalTime?t*this.totalTime:1}getPosition(){return this.totalTime?this._position/this.totalTime:1}triggerCallback(t){const e="start"==t?this._onStartFns:this._onDoneFns;e.forEach(i=>i()),e.length=0}}class fb{constructor(t){this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=t;let e=0,i=0,r=0;const s=this.players.length;0==s?hb(()=>this._onFinish()):this.players.forEach(o=>{o.onDone(()=>{++e==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(t=>t()),this._onDoneFns=[])}init(){this.players.forEach(t=>t.init())}onStart(t){this._onStartFns.push(t)}_onStart(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(t=>t()),this._onStartFns=[])}onDone(t){this._onDoneFns.push(t)}onDestroy(t){this._onDestroyFns.push(t)}hasStarted(){return this._started}play(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(t=>t.play())}pause(){this.players.forEach(t=>t.pause())}restart(){this.players.forEach(t=>t.restart())}finish(){this._onFinish(),this.players.forEach(t=>t.finish())}destroy(){this._onDestroy()}_onDestroy(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(t=>t.destroy()),this._onDestroyFns.forEach(t=>t()),this._onDestroyFns=[])}reset(){this.players.forEach(t=>t.reset()),this._destroyed=!1,this._finished=!1,this._started=!1}setPosition(t){const e=t*this.totalTime;this.players.forEach(i=>{const r=i.totalTime?Math.min(1,e/i.totalTime):1;i.setPosition(r)})}getPosition(){const t=this.players.reduce((e,i)=>null===e||i.totalTime>e.totalTime?i:e,null);return null!=t?t.getPosition():0}beforeDestroy(){this.players.forEach(t=>{t.beforeDestroy&&t.beforeDestroy()})}triggerCallback(t){const e="start"==t?this._onStartFns:this._onDoneFns;e.forEach(i=>i()),e.length=0}}const ee=!1;function pb(n){return new A(3e3,ee)}function fN(){return"undefined"!=typeof window&&void 0!==window.document}function oh(){return"undefined"!=typeof process&&"[object process]"==={}.toString.call(process)}function _i(n){switch(n.length){case 0:return new ho;case 1:return n[0];default:return new fb(n)}}function mb(n,t,e,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 m=p,y=u[p];if("offset"!==p)switch(m=t.normalizePropertyName(m,o),y){case"!":y=r[p];break;case ni:y=s[p];break;default:y=t.normalizeStyleValue(p,m,y,o)}f[m]=y}),h||a.push(f),c=f,l=d}),o.length)throw function nN(n){return new A(3502,ee)}();return a}function ah(n,t,e,i){switch(t){case"start":n.onStart(()=>i(e&&lh(e,"start",n)));break;case"done":n.onDone(()=>i(e&&lh(e,"done",n)));break;case"destroy":n.onDestroy(()=>i(e&&lh(e,"destroy",n)))}}function lh(n,t,e){const i=e.totalTime,s=ch(n.element,n.triggerName,n.fromState,n.toState,t||n.phaseName,null==i?n.totalTime:i,!!e.disabled),o=n._data;return null!=o&&(s._data=o),s}function ch(n,t,e,i,r="",s=0,o){return{element:n,triggerName:t,fromState:e,toState:i,phaseName:r,totalTime:s,disabled:!!o}}function Wt(n,t,e){let i;return n instanceof Map?(i=n.get(t),i||n.set(t,i=e)):(i=n[t],i||(i=n[t]=e)),i}function gb(n){const t=n.indexOf(":");return[n.substring(1,t),n.substr(t+1)]}let uh=(n,t)=>!1,_b=(n,t,e)=>[],yb=null;function dh(n){const t=n.parentNode||n.host;return t===yb?null:t}(oh()||"undefined"!=typeof Element)&&(fN()?(yb=(()=>document.documentElement)(),uh=(n,t)=>{for(;t;){if(t===n)return!0;t=dh(t)}return!1}):uh=(n,t)=>n.contains(t),_b=(n,t,e)=>{if(e)return Array.from(n.querySelectorAll(t));const i=n.querySelector(t);return i?[i]:[]});let Zi=null,vb=!1;function bb(n){Zi||(Zi=function mN(){return"undefined"!=typeof document?document.body:null}()||{},vb=!!Zi.style&&"WebkitAppearance"in Zi.style);let t=!0;return Zi.style&&!function pN(n){return"ebkit"==n.substring(1,6)}(n)&&(t=n in Zi.style,!t&&vb&&(t="Webkit"+n.charAt(0).toUpperCase()+n.substr(1)in Zi.style)),t}const Cb=uh,wb=_b;let Eb=(()=>{class n{validateStyleProperty(e){return bb(e)}matchesElement(e,i){return!1}containsElement(e,i){return Cb(e,i)}getParentElement(e){return dh(e)}query(e,i,r){return wb(e,i,r)}computeStyle(e,i,r){return r||""}animate(e,i,r,s,o,a=[],l){return new ho(r,s)}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=x({token:n,factory:n.\u0275fac}),n})(),hh=(()=>{class n{}return n.NOOP=new Eb,n})();const fh="ng-enter",sl="ng-leave",ol="ng-trigger",al=".ng-trigger",Sb="ng-animating",ph=".ng-animating";function Xi(n){if("number"==typeof n)return n;const t=n.match(/^(-?[\.\d]+)(m?s)/);return!t||t.length<2?0:mh(parseFloat(t[1]),t[2])}function mh(n,t){return"s"===t?1e3*n:n}function ll(n,t,e){return n.hasOwnProperty("duration")?n:function yN(n,t,e){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 t.push(pb()),{duration:0,delay:0,easing:""};r=mh(parseFloat(a[1]),a[2]);const l=a[3];null!=l&&(s=mh(parseFloat(l),a[4]));const c=a[5];c&&(o=c)}else r=n;if(!e){let a=!1,l=t.length;r<0&&(t.push(function RR(){return new A(3100,ee)}()),a=!0),s<0&&(t.push(function NR(){return new A(3101,ee)}()),a=!0),a&&t.splice(l,0,pb())}return{duration:r,delay:s,easing:o}}(n,t,e)}function Jr(n,t={}){return Object.keys(n).forEach(e=>{t[e]=n[e]}),t}function yi(n,t,e={}){if(t)for(let i in n)e[i]=n[i];else Jr(n,e);return e}function Tb(n,t,e){return e?t+":"+e+";":""}function Ab(n){let t="";for(let e=0;e<n.style.length;e++){const i=n.style.item(e);t+=Tb(0,i,n.style.getPropertyValue(i))}for(const e in n.style)n.style.hasOwnProperty(e)&&!e.startsWith("_")&&(t+=Tb(0,CN(e),n.style[e]));n.setAttribute("style",t)}function $n(n,t,e){n.style&&(Object.keys(t).forEach(i=>{const r=_h(i);e&&!e.hasOwnProperty(i)&&(e[i]=n.style[r]),n.style[r]=t[i]}),oh()&&Ab(n))}function Qi(n,t){n.style&&(Object.keys(t).forEach(e=>{const i=_h(e);n.style[i]=""}),oh()&&Ab(n))}function fo(n){return Array.isArray(n)?1==n.length?n[0]:db(n):n}const gh=new RegExp("{{\\s*(.+?)\\s*}}","g");function Ib(n){let t=[];if("string"==typeof n){let e;for(;e=gh.exec(n);)t.push(e[1]);gh.lastIndex=0}return t}function cl(n,t,e){const i=n.toString(),r=i.replace(gh,(s,o)=>{let a=t[o];return t.hasOwnProperty(o)||(e.push(function LR(n){return new A(3003,ee)}()),a=""),a.toString()});return r==i?n:r}function ul(n){const t=[];let e=n.next();for(;!e.done;)t.push(e.value),e=n.next();return t}const bN=/-+([a-z0-9])/g;function _h(n){return n.replace(bN,(...t)=>t[1].toUpperCase())}function CN(n){return n.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}function qt(n,t,e){switch(t.type){case 7:return n.visitTrigger(t,e);case 0:return n.visitState(t,e);case 1:return n.visitTransition(t,e);case 2:return n.visitSequence(t,e);case 3:return n.visitGroup(t,e);case 4:return n.visitAnimate(t,e);case 5:return n.visitKeyframes(t,e);case 6:return n.visitStyle(t,e);case 8:return n.visitReference(t,e);case 9:return n.visitAnimateChild(t,e);case 10:return n.visitAnimateRef(t,e);case 11:return n.visitQuery(t,e);case 12:return n.visitStagger(t,e);default:throw function VR(n){return new A(3004,ee)}()}}function xb(n,t){return window.getComputedStyle(n)[t]}function TN(n,t){const e=[];return"string"==typeof n?n.split(/\s*,\s*/).forEach(i=>function AN(n,t,e){if(":"==n[0]){const l=function IN(n,t){switch(n){case":enter":return"void => *";case":leave":return"* => void";case":increment":return(e,i)=>parseFloat(i)>parseFloat(e);case":decrement":return(e,i)=>parseFloat(i)<parseFloat(e);default:return t.push(function QR(n){return new A(3016,ee)}()),"* => *"}}(n,e);if("function"==typeof l)return void t.push(l);n=l}const i=n.match(/^(\*|[-\w]+)\s*(<?[=-]>)\s*(\*|[-\w]+)$/);if(null==i||i.length<4)return e.push(function XR(n){return new A(3015,ee)}()),t;const r=i[1],s=i[2],o=i[3];t.push(kb(r,o));"<"==s[0]&&!("*"==r&&"*"==o)&&t.push(kb(o,r))}(i,e,t)):e.push(n),e}const pl=new Set(["true","1"]),ml=new Set(["false","0"]);function kb(n,t){const e=pl.has(n)||ml.has(n),i=pl.has(t)||ml.has(t);return(r,s)=>{let o="*"==n||n==r,a="*"==t||t==s;return!o&&e&&"boolean"==typeof r&&(o=r?pl.has(n):ml.has(n)),!a&&i&&"boolean"==typeof s&&(a=s?pl.has(t):ml.has(t)),o&&a}}const xN=new RegExp("s*:selfs*,?","g");function yh(n,t,e,i){return new kN(n).build(t,e,i)}class kN{constructor(t){this._driver=t}build(t,e,i){const r=new RN(e);this._resetContextStyleTimingState(r);const s=qt(this,fo(t),r);return r.unsupportedCSSPropertiesFound.size&&r.unsupportedCSSPropertiesFound.keys(),s}_resetContextStyleTimingState(t){t.currentQuerySelector="",t.collectedStyles={},t.collectedStyles[""]={},t.currentTime=0}visitTrigger(t,e){let i=e.queryCount=0,r=e.depCount=0;const s=[],o=[];return"@"==t.name.charAt(0)&&e.errors.push(function HR(){return new A(3006,ee)}()),t.definitions.forEach(a=>{if(this._resetContextStyleTimingState(e),0==a.type){const l=a,c=l.name;c.toString().split(/\s*,\s*/).forEach(u=>{l.name=u,s.push(this.visitState(l,e))}),l.name=c}else if(1==a.type){const l=this.visitTransition(a,e);i+=l.queryCount,r+=l.depCount,o.push(l)}else e.errors.push(function jR(){return new A(3007,ee)}())}),{type:7,name:t.name,states:s,transitions:o,queryCount:i,depCount:r,options:null}}visitState(t,e){const i=this.visitStyle(t.styles,e),r=t.options&&t.options.params||null;if(i.containsDynamicStyles){const s=new Set,o=r||{};i.styles.forEach(a=>{if(gl(a)){const l=a;Object.keys(l).forEach(c=>{Ib(l[c]).forEach(u=>{o.hasOwnProperty(u)||s.add(u)})})}}),s.size&&(ul(s.values()),e.errors.push(function $R(n,t){return new A(3008,ee)}()))}return{type:0,name:t.name,style:i,options:r?{params:r}:null}}visitTransition(t,e){e.queryCount=0,e.depCount=0;const i=qt(this,fo(t.animation),e);return{type:1,matchers:TN(t.expr,e.errors),animation:i,queryCount:e.queryCount,depCount:e.depCount,options:Ji(t.options)}}visitSequence(t,e){return{type:2,steps:t.steps.map(i=>qt(this,i,e)),options:Ji(t.options)}}visitGroup(t,e){const i=e.currentTime;let r=0;const s=t.steps.map(o=>{e.currentTime=i;const a=qt(this,o,e);return r=Math.max(r,e.currentTime),a});return e.currentTime=r,{type:3,steps:s,options:Ji(t.options)}}visitAnimate(t,e){const i=function PN(n,t){if(n.hasOwnProperty("duration"))return n;if("number"==typeof n)return vh(ll(n,t).duration,0,"");const e=n;if(e.split(/\s+/).some(s=>"{"==s.charAt(0)&&"{"==s.charAt(1))){const s=vh(0,0,"");return s.dynamic=!0,s.strValue=e,s}const r=ll(e,t);return vh(r.duration,r.delay,r.easing)}(t.timings,e.errors);e.currentAnimateTimings=i;let r,s=t.styles?t.styles:jn({});if(5==s.type)r=this.visitKeyframes(s,e);else{let o=t.styles,a=!1;if(!o){a=!0;const c={};i.easing&&(c.easing=i.easing),o=jn(c)}e.currentTime+=i.duration+i.delay;const l=this.visitStyle(o,e);l.isEmptyStep=a,r=l}return e.currentAnimateTimings=null,{type:4,timings:i,style:r,options:null}}visitStyle(t,e){const i=this._makeStyleAst(t,e);return this._validateStyleAst(i,e),i}_makeStyleAst(t,e){const i=[];Array.isArray(t.styles)?t.styles.forEach(o=>{"string"==typeof o?o==ni?i.push(o):e.errors.push(function UR(n){return new A(3002,ee)}()):i.push(o)}):i.push(t.styles);let r=!1,s=null;return i.forEach(o=>{if(gl(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:t.offset,containsDynamicStyles:r,options:null}}_validateStyleAst(t,e){const i=e.currentAnimateTimings;let r=e.currentTime,s=e.currentTime;i&&s>0&&(s-=i.duration+i.delay),t.styles.forEach(o=>{"string"!=typeof o&&Object.keys(o).forEach(a=>{if(!this._driver.validateStyleProperty(a))return delete o[a],void e.unsupportedCSSPropertiesFound.add(a);const l=e.collectedStyles[e.currentQuerySelector],c=l[a];let u=!0;c&&(s!=r&&s>=c.startTime&&r<=c.endTime&&(e.errors.push(function zR(n,t,e,i,r){return new A(3010,ee)}()),u=!1),s=c.startTime),u&&(l[a]={startTime:s,endTime:r}),e.options&&function vN(n,t,e){const i=t.params||{},r=Ib(n);r.length&&r.forEach(s=>{i.hasOwnProperty(s)||e.push(function PR(n){return new A(3001,ee)}())})}(o[a],e.options,e.errors)})})}visitKeyframes(t,e){const i={type:5,styles:[],options:null};if(!e.currentAnimateTimings)return e.errors.push(function GR(){return new A(3011,ee)}()),i;let s=0;const o=[];let a=!1,l=!1,c=0;const u=t.steps.map(b=>{const _=this._makeStyleAst(b,e);let E=null!=_.offset?_.offset:function NN(n){if("string"==typeof n)return null;let t=null;if(Array.isArray(n))n.forEach(e=>{if(gl(e)&&e.hasOwnProperty("offset")){const i=e;t=parseFloat(i.offset),delete i.offset}});else if(gl(n)&&n.hasOwnProperty("offset")){const e=n;t=parseFloat(e.offset),delete e.offset}return t}(_.styles),w=0;return null!=E&&(s++,w=_.offset=E),l=l||w<0||w>1,a=a||w<c,c=w,o.push(w),_});l&&e.errors.push(function WR(){return new A(3012,ee)}()),a&&e.errors.push(function qR(){return new A(3200,ee)}());const d=t.steps.length;let h=0;s>0&&s<d?e.errors.push(function KR(){return new A(3202,ee)}()):0==s&&(h=1/(d-1));const f=d-1,p=e.currentTime,m=e.currentAnimateTimings,y=m.duration;return u.forEach((b,_)=>{const E=h>0?_==f?1:h*_:o[_],w=E*y;e.currentTime=p+m.delay+w,m.duration=w,this._validateStyleAst(b,e),b.offset=E,i.styles.push(b)}),i}visitReference(t,e){return{type:8,animation:qt(this,fo(t.animation),e),options:Ji(t.options)}}visitAnimateChild(t,e){return e.depCount++,{type:9,options:Ji(t.options)}}visitAnimateRef(t,e){return{type:10,animation:this.visitReference(t.animation,e),options:Ji(t.options)}}visitQuery(t,e){const i=e.currentQuerySelector,r=t.options||{};e.queryCount++,e.currentQuery=t;const[s,o]=function ON(n){const t=!!n.split(/\s*,\s*/).find(e=>":self"==e);return t&&(n=n.replace(xN,"")),n=n.replace(/@\*/g,al).replace(/@\w+/g,e=>al+"-"+e.substr(1)).replace(/:animating/g,ph),[n,t]}(t.selector);e.currentQuerySelector=i.length?i+" "+s:s,Wt(e.collectedStyles,e.currentQuerySelector,{});const a=qt(this,fo(t.animation),e);return e.currentQuery=null,e.currentQuerySelector=i,{type:11,selector:s,limit:r.limit||0,optional:!!r.optional,includeSelf:o,animation:a,originalSelector:t.selector,options:Ji(t.options)}}visitStagger(t,e){e.currentQuery||e.errors.push(function YR(){return new A(3013,ee)}());const i="full"===t.timings?{duration:0,delay:0,easing:"full"}:ll(t.timings,e.errors,!0);return{type:12,animation:qt(this,fo(t.animation),e),timings:i,options:null}}}class RN{constructor(t){this.errors=t,this.queryCount=0,this.depCount=0,this.currentTransition=null,this.currentQuery=null,this.currentQuerySelector=null,this.currentAnimateTimings=null,this.currentTime=0,this.collectedStyles={},this.options=null,this.unsupportedCSSPropertiesFound=new Set}}function gl(n){return!Array.isArray(n)&&"object"==typeof n}function Ji(n){return n?(n=Jr(n)).params&&(n.params=function FN(n){return n?Jr(n):null}(n.params)):n={},n}function vh(n,t,e){return{duration:n,delay:t,easing:e}}function bh(n,t,e,i,r,s,o=null,a=!1){return{type:1,element:n,keyframes:t,preStyleProps:e,postStyleProps:i,duration:r,delay:s,totalTime:r+s,easing:o,subTimeline:a}}class _l{constructor(){this._map=new Map}get(t){return this._map.get(t)||[]}append(t,e){let i=this._map.get(t);i||this._map.set(t,i=[]),i.push(...e)}has(t){return this._map.has(t)}clear(){this._map.clear()}}const BN=new RegExp(":enter","g"),jN=new RegExp(":leave","g");function Ch(n,t,e,i,r,s={},o={},a,l,c=[]){return(new $N).buildKeyframes(n,t,e,i,r,s,o,a,l,c)}class $N{buildKeyframes(t,e,i,r,s,o,a,l,c,u=[]){c=c||new _l;const d=new wh(t,e,c,r,s,u,[]);d.options=l,d.currentTimeline.setStyles([o],null,d.errors,l),qt(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 m=h[p];if(m.element===e){f=m;break}}f&&!f.allowOnlyTimelineStyles()&&f.setStyles([a],null,d.errors,l)}return h.length?h.map(f=>f.buildKeyframes()):[bh(e,[],[],[],0,0,"",!1)]}visitTrigger(t,e){}visitState(t,e){}visitTransition(t,e){}visitAnimateChild(t,e){const i=e.subInstructions.get(e.element);if(i){const r=e.createSubContext(t.options),s=e.currentTimeline.currentTime,o=this._visitSubInstructions(i,r,r.options);s!=o&&e.transformIntoNewTimeline(o)}e.previousNode=t}visitAnimateRef(t,e){const i=e.createSubContext(t.options);i.transformIntoNewTimeline(),this.visitReference(t.animation,i),e.transformIntoNewTimeline(i.currentTimeline.currentTime),e.previousNode=t}_visitSubInstructions(t,e,i){let s=e.currentTimeline.currentTime;const o=null!=i.duration?Xi(i.duration):null,a=null!=i.delay?Xi(i.delay):null;return 0!==o&&t.forEach(l=>{const c=e.appendInstructionToTimeline(l,o,a);s=Math.max(s,c.duration+c.delay)}),s}visitReference(t,e){e.updateOptions(t.options,!0),qt(this,t.animation,e),e.previousNode=t}visitSequence(t,e){const i=e.subContextCount;let r=e;const s=t.options;if(s&&(s.params||s.delay)&&(r=e.createSubContext(s),r.transformIntoNewTimeline(),null!=s.delay)){6==r.previousNode.type&&(r.currentTimeline.snapshotCurrentStyles(),r.previousNode=yl);const o=Xi(s.delay);r.delayNextStep(o)}t.steps.length&&(t.steps.forEach(o=>qt(this,o,r)),r.currentTimeline.applyStylesToKeyframe(),r.subContextCount>i&&r.transformIntoNewTimeline()),e.previousNode=t}visitGroup(t,e){const i=[];let r=e.currentTimeline.currentTime;const s=t.options&&t.options.delay?Xi(t.options.delay):0;t.steps.forEach(o=>{const a=e.createSubContext(t.options);s&&a.delayNextStep(s),qt(this,o,a),r=Math.max(r,a.currentTimeline.currentTime),i.push(a.currentTimeline)}),i.forEach(o=>e.currentTimeline.mergeTimelineCollectedStyles(o)),e.transformIntoNewTimeline(r),e.previousNode=t}_visitTiming(t,e){if(t.dynamic){const i=t.strValue;return ll(e.params?cl(i,e.params,e.errors):i,e.errors)}return{duration:t.duration,delay:t.delay,easing:t.easing}}visitAnimate(t,e){const i=e.currentAnimateTimings=this._visitTiming(t.timings,e),r=e.currentTimeline;i.delay&&(e.incrementTime(i.delay),r.snapshotCurrentStyles());const s=t.style;5==s.type?this.visitKeyframes(s,e):(e.incrementTime(i.duration),this.visitStyle(s,e),r.applyStylesToKeyframe()),e.currentAnimateTimings=null,e.previousNode=t}visitStyle(t,e){const i=e.currentTimeline,r=e.currentAnimateTimings;!r&&i.getCurrentStyleProperties().length&&i.forwardFrame();const s=r&&r.easing||t.easing;t.isEmptyStep?i.applyEmptyStep(s):i.setStyles(t.styles,s,e.errors,e.options),e.previousNode=t}visitKeyframes(t,e){const i=e.currentAnimateTimings,r=e.currentTimeline.duration,s=i.duration,a=e.createSubContext().currentTimeline;a.easing=i.easing,t.styles.forEach(l=>{a.forwardTime((l.offset||0)*s),a.setStyles(l.styles,l.easing,e.errors,e.options),a.applyStylesToKeyframe()}),e.currentTimeline.mergeTimelineCollectedStyles(a),e.transformIntoNewTimeline(r+s),e.previousNode=t}visitQuery(t,e){const i=e.currentTimeline.currentTime,r=t.options||{},s=r.delay?Xi(r.delay):0;s&&(6===e.previousNode.type||0==i&&e.currentTimeline.getCurrentStyleProperties().length)&&(e.currentTimeline.snapshotCurrentStyles(),e.previousNode=yl);let o=i;const a=e.invokeQuery(t.selector,t.originalSelector,t.limit,t.includeSelf,!!r.optional,e.errors);e.currentQueryTotal=a.length;let l=null;a.forEach((c,u)=>{e.currentQueryIndex=u;const d=e.createSubContext(t.options,c);s&&d.delayNextStep(s),c===e.element&&(l=d.currentTimeline),qt(this,t.animation,d),d.currentTimeline.applyStylesToKeyframe(),o=Math.max(o,d.currentTimeline.currentTime)}),e.currentQueryIndex=0,e.currentQueryTotal=0,e.transformIntoNewTimeline(o),l&&(e.currentTimeline.mergeTimelineCollectedStyles(l),e.currentTimeline.snapshotCurrentStyles()),e.previousNode=t}visitStagger(t,e){const i=e.parentContext,r=e.currentTimeline,s=t.timings,o=Math.abs(s.duration),a=o*(e.currentQueryTotal-1);let l=o*e.currentQueryIndex;switch(s.duration<0?"reverse":s.easing){case"reverse":l=a-l;break;case"full":l=i.currentStaggerTime}const u=e.currentTimeline;l&&u.delayNextStep(l);const d=u.currentTime;qt(this,t.animation,e),e.previousNode=t,i.currentStaggerTime=r.currentTime-d+(r.startTime-i.currentTimeline.startTime)}}const yl={};class wh{constructor(t,e,i,r,s,o,a,l){this._driver=t,this.element=e,this.subInstructions=i,this._enterClassName=r,this._leaveClassName=s,this.errors=o,this.timelines=a,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=yl,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=l||new vl(this._driver,e,0),a.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(t,e){if(!t)return;const i=t;let r=this.options;null!=i.duration&&(r.duration=Xi(i.duration)),null!=i.delay&&(r.delay=Xi(i.delay));const s=i.params;if(s){let o=r.params;o||(o=this.options.params={}),Object.keys(s).forEach(a=>{(!e||!o.hasOwnProperty(a))&&(o[a]=cl(s[a],o,this.errors))})}}_copyOptions(){const t={};if(this.options){const e=this.options.params;if(e){const i=t.params={};Object.keys(e).forEach(r=>{i[r]=e[r]})}}return t}createSubContext(t=null,e,i){const r=e||this.element,s=new wh(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(t),s.currentQueryIndex=this.currentQueryIndex,s.currentQueryTotal=this.currentQueryTotal,s.parentContext=this,this.subContextCount++,s}transformIntoNewTimeline(t){return this.previousNode=yl,this.currentTimeline=this.currentTimeline.fork(this.element,t),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(t,e,i){const r={duration:null!=e?e:t.duration,delay:this.currentTimeline.currentTime+(null!=i?i:0)+t.delay,easing:""},s=new UN(this._driver,t.element,t.keyframes,t.preStyleProps,t.postStyleProps,r,t.stretchStartingKeyframe);return this.timelines.push(s),r}incrementTime(t){this.currentTimeline.forwardTime(this.currentTimeline.duration+t)}delayNextStep(t){t>0&&this.currentTimeline.delayNextStep(t)}invokeQuery(t,e,i,r,s,o){let a=[];if(r&&a.push(this.element),t.length>0){t=(t=t.replace(BN,"."+this._enterClassName)).replace(jN,"."+this._leaveClassName);let c=this._driver.query(this.element,t,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 ZR(n){return new A(3014,ee)}()),a}}class vl{constructor(t,e,i,r){this._driver=t,this.element=e,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(e),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(e,this._localTimelineStyles)),this._loadKeyframe()}containsAnimation(){switch(this._keyframes.size){case 0:return!1;case 1:return this.getCurrentStyleProperties().length>0;default:return!0}}getCurrentStyleProperties(){return Object.keys(this._currentKeyframe)}get currentTime(){return this.startTime+this.duration}delayNextStep(t){const e=1==this._keyframes.size&&Object.keys(this._pendingStyles).length;this.duration||e?(this.forwardTime(this.currentTime+t),e&&this.snapshotCurrentStyles()):this.startTime+=t}fork(t,e){return this.applyStylesToKeyframe(),new vl(this._driver,t,e||this.currentTime,this._elementTimelineStylesLookup)}_loadKeyframe(){this._currentKeyframe&&(this._previousKeyframe=this._currentKeyframe),this._currentKeyframe=this._keyframes.get(this.duration),this._currentKeyframe||(this._currentKeyframe=Object.create(this._backFill,{}),this._keyframes.set(this.duration,this._currentKeyframe))}forwardFrame(){this.duration+=1,this._loadKeyframe()}forwardTime(t){this.applyStylesToKeyframe(),this.duration=t,this._loadKeyframe()}_updateStyle(t,e){this._localTimelineStyles[t]=e,this._globalTimelineStyles[t]=e,this._styleSummary[t]={time:this.currentTime,value:e}}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}applyEmptyStep(t){t&&(this._previousKeyframe.easing=t),Object.keys(this._globalTimelineStyles).forEach(e=>{this._backFill[e]=this._globalTimelineStyles[e]||ni,this._currentKeyframe[e]=ni}),this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(t,e,i,r){e&&(this._previousKeyframe.easing=e);const s=r&&r.params||{},o=function zN(n,t){const e={};let i;return n.forEach(r=>{"*"===r?(i=i||Object.keys(t),i.forEach(s=>{e[s]=ni})):yi(r,!1,e)}),e}(t,this._globalTimelineStyles);Object.keys(o).forEach(a=>{const l=cl(o[a],s,i);this._pendingStyles[a]=l,this._localTimelineStyles.hasOwnProperty(a)||(this._backFill[a]=this._globalTimelineStyles.hasOwnProperty(a)?this._globalTimelineStyles[a]:ni),this._updateStyle(a,l)})}applyStylesToKeyframe(){const t=this._pendingStyles,e=Object.keys(t);0!=e.length&&(this._pendingStyles={},e.forEach(i=>{this._currentKeyframe[i]=t[i]}),Object.keys(this._localTimelineStyles).forEach(i=>{this._currentKeyframe.hasOwnProperty(i)||(this._currentKeyframe[i]=this._localTimelineStyles[i])}))}snapshotCurrentStyles(){Object.keys(this._localTimelineStyles).forEach(t=>{const e=this._localTimelineStyles[t];this._pendingStyles[t]=e,this._updateStyle(t,e)})}getFinalKeyframe(){return this._keyframes.get(this.duration)}get properties(){const t=[];for(let e in this._currentKeyframe)t.push(e);return t}mergeTimelineCollectedStyles(t){Object.keys(t._styleSummary).forEach(e=>{const i=this._styleSummary[e],r=t._styleSummary[e];(!i||r.time>i.time)&&this._updateStyle(e,r.value)})}buildKeyframes(){this.applyStylesToKeyframe();const t=new Set,e=new Set,i=1===this._keyframes.size&&0===this.duration;let r=[];this._keyframes.forEach((a,l)=>{const c=yi(a,!0);Object.keys(c).forEach(u=>{const d=c[u];"!"==d?t.add(u):d==ni&&e.add(u)}),i||(c.offset=l/this.duration),r.push(c)});const s=t.size?ul(t.values()):[],o=e.size?ul(e.values()):[];if(i){const a=r[0],l=Jr(a);a.offset=0,l.offset=1,r=[a,l]}return bh(this.element,r,s,o,this.duration,this.startTime,this.easing,!1)}}class UN extends vl{constructor(t,e,i,r,s,o,a=!1){super(t,e,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 t=this.keyframes,{delay:e,duration:i,easing:r}=this.timings;if(this._stretchStartingKeyframe&&e){const s=[],o=i+e,a=e/o,l=yi(t[0],!1);l.offset=0,s.push(l);const c=yi(t[0],!1);c.offset=Rb(a),s.push(c);const u=t.length-1;for(let d=1;d<=u;d++){let h=yi(t[d],!1);h.offset=Rb((e+h.offset*i)/o),s.push(h)}i=o,e=0,r="",t=s}return bh(this.element,t,this.preStyleProps,this.postStyleProps,i,e,r,!0)}}function Rb(n,t=3){const e=Math.pow(10,t-1);return Math.round(n*e)/e}class Eh{}class GN extends Eh{normalizePropertyName(t,e){return _h(t)}normalizeStyleValue(t,e,i,r){let s="";const o=i.toString().trim();if(WN[e]&&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 BR(n,t){return new A(3005,ee)}())}return o+s}}const WN=(()=>function qN(n){const t={};return n.forEach(e=>t[e]=!0),t}("width,height,minWidth,minHeight,maxWidth,maxHeight,left,top,bottom,right,fontSize,outlineWidth,outlineOffset,paddingTop,paddingLeft,paddingBottom,paddingRight,marginTop,marginLeft,marginBottom,marginRight,borderRadius,borderWidth,borderTopWidth,borderLeftWidth,borderRightWidth,borderBottomWidth,textIndent,perspective".split(",")))();function Nb(n,t,e,i,r,s,o,a,l,c,u,d,h){return{type:0,element:n,triggerName:t,isRemovalTransition:r,fromState:e,fromStyles:s,toState:i,toStyles:o,timelines:a,queriedElements:l,preStyleProps:c,postStyleProps:u,totalTime:d,errors:h}}const Dh={};class Pb{constructor(t,e,i){this._triggerName=t,this.ast=e,this._stateStyles=i}match(t,e,i,r){return function KN(n,t,e,i,r){return n.some(s=>s(t,e,i,r))}(this.ast.matchers,t,e,i,r)}buildStyles(t,e,i){const r=this._stateStyles["*"],s=this._stateStyles[t],o=r?r.buildStyles(e,i):{};return s?s.buildStyles(e,i):o}build(t,e,i,r,s,o,a,l,c,u){const d=[],h=this.ast.options&&this.ast.options.params||Dh,p=this.buildStyles(i,a&&a.params||Dh,d),m=l&&l.params||Dh,y=this.buildStyles(r,m,d),b=new Set,_=new Map,E=new Map,w="void"===r,M={params:Object.assign(Object.assign({},h),m)},ne=u?[]:Ch(t,e,this.ast.animation,s,o,p,y,M,c,d);let Se=0;if(ne.forEach(ut=>{Se=Math.max(ut.duration+ut.delay,Se)}),d.length)return Nb(e,this._triggerName,i,r,w,p,y,[],[],_,E,Se,d);ne.forEach(ut=>{const dt=ut.element,Ft=Wt(_,dt,{});ut.preStyleProps.forEach(Tn=>Ft[Tn]=!0);const At=Wt(E,dt,{});ut.postStyleProps.forEach(Tn=>At[Tn]=!0),dt!==e&&b.add(dt)});const it=ul(b.values());return Nb(e,this._triggerName,i,r,w,p,y,ne,it,_,E,Se)}}class YN{constructor(t,e,i){this.styles=t,this.defaultParams=e,this.normalizer=i}buildStyles(t,e){const i={},r=Jr(this.defaultParams);return Object.keys(t).forEach(s=>{const o=t[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=cl(l,r,e));const c=this.normalizer.normalizePropertyName(a,e);l=this.normalizer.normalizeStyleValue(a,c,l,e),i[c]=l})}}),i}}class XN{constructor(t,e,i){this.name=t,this.ast=e,this._normalizer=i,this.transitionFactories=[],this.states={},e.states.forEach(r=>{this.states[r.name]=new YN(r.style,r.options&&r.options.params||{},i)}),Lb(this.states,"true","1"),Lb(this.states,"false","0"),e.transitions.forEach(r=>{this.transitionFactories.push(new Pb(t,r,this.states))}),this.fallbackTransition=function QN(n,t,e){return new Pb(n,{type:1,animation:{type:2,steps:[],options:null},matchers:[(o,a)=>!0],options:null,queryCount:0,depCount:0},t)}(t,this.states)}get containsQueries(){return this.ast.queryCount>0}matchTransition(t,e,i,r){return this.transitionFactories.find(o=>o.match(t,e,i,r))||null}matchStyles(t,e,i){return this.fallbackTransition.buildStyles(t,e,i)}}function Lb(n,t,e){n.hasOwnProperty(t)?n.hasOwnProperty(e)||(n[e]=n[t]):n.hasOwnProperty(e)&&(n[t]=n[e])}const JN=new _l;class eP{constructor(t,e,i){this.bodyNode=t,this._driver=e,this._normalizer=i,this._animations={},this._playersById={},this.players=[]}register(t,e){const i=[],s=yh(this._driver,e,i,[]);if(i.length)throw function iN(n){return new A(3503,ee)}();this._animations[t]=s}_buildPlayer(t,e,i){const r=t.element,s=mb(0,this._normalizer,0,t.keyframes,e,i);return this._driver.animate(r,s,t.duration,t.delay,t.easing,[],!0)}create(t,e,i={}){const r=[],s=this._animations[t];let o;const a=new Map;if(s?(o=Ch(this._driver,e,s,fh,sl,{},{},i,JN,r),o.forEach(u=>{const d=Wt(a,u.element,{});u.postStyleProps.forEach(h=>d[h]=null)})):(r.push(function rN(){return new A(3300,ee)}()),o=[]),r.length)throw function sN(n){return new A(3504,ee)}();a.forEach((u,d)=>{Object.keys(u).forEach(h=>{u[h]=this._driver.computeStyle(d,h,ni)})});const c=_i(o.map(u=>{const d=a.get(u.element);return this._buildPlayer(u,{},d)}));return this._playersById[t]=c,c.onDestroy(()=>this.destroy(t)),this.players.push(c),c}destroy(t){const e=this._getPlayer(t);e.destroy(),delete this._playersById[t];const i=this.players.indexOf(e);i>=0&&this.players.splice(i,1)}_getPlayer(t){const e=this._playersById[t];if(!e)throw function oN(n){return new A(3301,ee)}();return e}listen(t,e,i,r){const s=ch(e,"","","");return ah(this._getPlayer(t),i,s,r),()=>{}}command(t,e,i,r){if("register"==i)return void this.register(t,r[0]);if("create"==i)return void this.create(t,e,r[0]||{});const s=this._getPlayer(t);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(t)}}}const Vb="ng-animate-queued",Sh="ng-animate-disabled",sP=[],Bb={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},oP={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},an="__ng_removed";class Mh{constructor(t,e=""){this.namespaceId=e;const i=t&&t.hasOwnProperty("value");if(this.value=function uP(n){return null!=n?n:null}(i?t.value:t),i){const s=Jr(t);delete s.value,this.options=s}else this.options={};this.options.params||(this.options.params={})}get params(){return this.options.params}absorbOptions(t){const e=t.params;if(e){const i=this.options.params;Object.keys(e).forEach(r=>{null==i[r]&&(i[r]=e[r])})}}}const po="void",Th=new Mh(po);class aP{constructor(t,e,i){this.id=t,this.hostElement=e,this._engine=i,this.players=[],this._triggers={},this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+t,ln(e,this._hostClassName)}listen(t,e,i,r){if(!this._triggers.hasOwnProperty(e))throw function aN(n,t){return new A(3302,ee)}();if(null==i||0==i.length)throw function lN(n){return new A(3303,ee)}();if(!function dP(n){return"start"==n||"done"==n}(i))throw function cN(n,t){return new A(3400,ee)}();const s=Wt(this._elementListeners,t,[]),o={name:e,phase:i,callback:r};s.push(o);const a=Wt(this._engine.statesByElement,t,{});return a.hasOwnProperty(e)||(ln(t,ol),ln(t,ol+"-"+e),a[e]=Th),()=>{this._engine.afterFlush(()=>{const l=s.indexOf(o);l>=0&&s.splice(l,1),this._triggers[e]||delete a[e]})}}register(t,e){return!this._triggers[t]&&(this._triggers[t]=e,!0)}_getTrigger(t){const e=this._triggers[t];if(!e)throw function uN(n){return new A(3401,ee)}();return e}trigger(t,e,i,r=!0){const s=this._getTrigger(e),o=new Ah(this.id,e,t);let a=this._engine.statesByElement.get(t);a||(ln(t,ol),ln(t,ol+"-"+e),this._engine.statesByElement.set(t,a={}));let l=a[e];const c=new Mh(i,this.id);if(!(i&&i.hasOwnProperty("value"))&&l&&c.absorbOptions(l.options),a[e]=c,l||(l=Th),c.value!==po&&l.value===c.value){if(!function pP(n,t){const e=Object.keys(n),i=Object.keys(t);if(e.length!=i.length)return!1;for(let r=0;r<e.length;r++){const s=e[r];if(!t.hasOwnProperty(s)||n[s]!==t[s])return!1}return!0}(l.params,c.params)){const m=[],y=s.matchStyles(l.value,l.params,m),b=s.matchStyles(c.value,c.params,m);m.length?this._engine.reportError(m):this._engine.afterFlush(()=>{Qi(t,y),$n(t,b)})}return}const h=Wt(this._engine.playersByElement,t,[]);h.forEach(m=>{m.namespaceId==this.id&&m.triggerName==e&&m.queued&&m.destroy()});let f=s.matchTransition(l.value,c.value,t,c.params),p=!1;if(!f){if(!r)return;f=s.fallbackTransition,p=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:t,triggerName:e,transition:f,fromState:l,toState:c,player:o,isFallbackTransition:p}),p||(ln(t,Vb),o.onStart(()=>{es(t,Vb)})),o.onDone(()=>{let m=this.players.indexOf(o);m>=0&&this.players.splice(m,1);const y=this._engine.playersByElement.get(t);if(y){let b=y.indexOf(o);b>=0&&y.splice(b,1)}}),this.players.push(o),h.push(o),o}deregister(t){delete this._triggers[t],this._engine.statesByElement.forEach((e,i)=>{delete e[t]}),this._elementListeners.forEach((e,i)=>{this._elementListeners.set(i,e.filter(r=>r.name!=t))})}clearElementCache(t){this._engine.statesByElement.delete(t),this._elementListeners.delete(t);const e=this._engine.playersByElement.get(t);e&&(e.forEach(i=>i.destroy()),this._engine.playersByElement.delete(t))}_signalRemovalForInnerTriggers(t,e){const i=this._engine.driver.query(t,al,!0);i.forEach(r=>{if(r[an])return;const s=this._engine.fetchNamespacesByElement(r);s.size?s.forEach(o=>o.triggerLeaveAnimation(r,e,!1,!0)):this.clearElementCache(r)}),this._engine.afterFlushAnimationsDone(()=>i.forEach(r=>this.clearElementCache(r)))}triggerLeaveAnimation(t,e,i,r){const s=this._engine.statesByElement.get(t),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(t,l,po,r);c&&a.push(c)}}),a.length)return this._engine.markElementAsRemoved(this.id,t,!0,e,o),i&&_i(a).onDone(()=>this._engine.processLeaveNode(t)),!0}return!1}prepareLeaveAnimationListeners(t){const e=this._elementListeners.get(t),i=this._engine.statesByElement.get(t);if(e&&i){const r=new Set;e.forEach(s=>{const o=s.name;if(r.has(o))return;r.add(o);const l=this._triggers[o].fallbackTransition,c=i[o]||Th,u=new Mh(po),d=new Ah(this.id,o,t);this._engine.totalQueuedPlayers++,this._queue.push({element:t,triggerName:o,transition:l,fromState:c,toState:u,player:d,isFallbackTransition:!0})})}}removeNode(t,e){const i=this._engine;if(t.childElementCount&&this._signalRemovalForInnerTriggers(t,e),this.triggerLeaveAnimation(t,e,!0))return;let r=!1;if(i.totalAnimations){const s=i.players.length?i.playersByQueriedElement.get(t):[];if(s&&s.length)r=!0;else{let o=t;for(;o=o.parentNode;)if(i.statesByElement.get(o)){r=!0;break}}}if(this.prepareLeaveAnimationListeners(t),r)i.markElementAsRemoved(this.id,t,!1,e);else{const s=t[an];(!s||s===Bb)&&(i.afterFlush(()=>this.clearElementCache(t)),i.destroyInnerAnimations(t),i._onRemovalComplete(t,e))}}insertNode(t,e){ln(t,this._hostClassName)}drainQueuedTransitions(t){const e=[];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=ch(s,i.triggerName,i.fromState.value,i.toState.value);l._data=t,ah(i.player,a.phase,l,a.callback)}}),r.markedForDestroy?this._engine.afterFlush(()=>{r.destroy()}):e.push(i)}),this._queue=[],e.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(t){this.players.forEach(e=>e.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,t)}elementContainsData(t){let e=!1;return this._elementListeners.has(t)&&(e=!0),e=!!this._queue.find(i=>i.element===t)||e,e}}class lP{constructor(t,e,i){this.bodyNode=t,this.driver=e,this._normalizer=i,this.players=[],this.newHostElements=new Map,this.playersByElement=new Map,this.playersByQueriedElement=new Map,this.statesByElement=new Map,this.disabledNodes=new Set,this.totalAnimations=0,this.totalQueuedPlayers=0,this._namespaceLookup={},this._namespaceList=[],this._flushFns=[],this._whenQuietFns=[],this.namespacesByHostElement=new Map,this.collectedEnterElements=[],this.collectedLeaveElements=[],this.onRemovalComplete=(r,s)=>{}}_onRemovalComplete(t,e){this.onRemovalComplete(t,e)}get queuedPlayers(){const t=[];return this._namespaceList.forEach(e=>{e.players.forEach(i=>{i.queued&&t.push(i)})}),t}createNamespace(t,e){const i=new aP(t,e,this);return this.bodyNode&&this.driver.containsElement(this.bodyNode,e)?this._balanceNamespaceList(i,e):(this.newHostElements.set(e,i),this.collectEnterElement(e)),this._namespaceLookup[t]=i}_balanceNamespaceList(t,e){const i=this._namespaceList,r=this.namespacesByHostElement,s=i.length-1;if(s>=0){let o=!1;if(void 0!==this.driver.getParentElement){let a=this.driver.getParentElement(e);for(;a;){const l=r.get(a);if(l){const c=i.indexOf(l);i.splice(c+1,0,t),o=!0;break}a=this.driver.getParentElement(a)}}else for(let a=s;a>=0;a--)if(this.driver.containsElement(i[a].hostElement,e)){i.splice(a+1,0,t),o=!0;break}o||i.unshift(t)}else i.push(t);return r.set(e,t),t}register(t,e){let i=this._namespaceLookup[t];return i||(i=this.createNamespace(t,e)),i}registerTrigger(t,e,i){let r=this._namespaceLookup[t];r&&r.register(e,i)&&this.totalAnimations++}destroy(t,e){if(!t)return;const i=this._fetchNamespace(t);this.afterFlush(()=>{this.namespacesByHostElement.delete(i.hostElement),delete this._namespaceLookup[t];const r=this._namespaceList.indexOf(i);r>=0&&this._namespaceList.splice(r,1)}),this.afterFlushAnimationsDone(()=>i.destroy(e))}_fetchNamespace(t){return this._namespaceLookup[t]}fetchNamespacesByElement(t){const e=new Set,i=this.statesByElement.get(t);if(i){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&&e.add(a)}}}return e}trigger(t,e,i,r){if(bl(e)){const s=this._fetchNamespace(t);if(s)return s.trigger(e,i,r),!0}return!1}insertNode(t,e,i,r){if(!bl(e))return;const s=e[an];if(s&&s.setForRemoval){s.setForRemoval=!1,s.setForMove=!0;const o=this.collectedLeaveElements.indexOf(e);o>=0&&this.collectedLeaveElements.splice(o,1)}if(t){const o=this._fetchNamespace(t);o&&o.insertNode(e,i)}r&&this.collectEnterElement(e)}collectEnterElement(t){this.collectedEnterElements.push(t)}markElementAsDisabled(t,e){e?this.disabledNodes.has(t)||(this.disabledNodes.add(t),ln(t,Sh)):this.disabledNodes.has(t)&&(this.disabledNodes.delete(t),es(t,Sh))}removeNode(t,e,i,r){if(bl(e)){const s=t?this._fetchNamespace(t):null;if(s?s.removeNode(e,r):this.markElementAsRemoved(t,e,!1,r),i){const o=this.namespacesByHostElement.get(e);o&&o.id!==t&&o.removeNode(e,r)}}else this._onRemovalComplete(e,r)}markElementAsRemoved(t,e,i,r,s){this.collectedLeaveElements.push(e),e[an]={namespaceId:t,setForRemoval:r,hasAnimation:i,removedBeforeQueried:!1,previousTriggersValues:s}}listen(t,e,i,r,s){return bl(e)?this._fetchNamespace(t).listen(e,i,r,s):()=>{}}_buildInstruction(t,e,i,r,s){return t.transition.build(this.driver,t.element,t.fromState.value,t.toState.value,i,r,t.fromState.options,t.toState.options,e,s)}destroyInnerAnimations(t){let e=this.driver.query(t,al,!0);e.forEach(i=>this.destroyActiveAnimationsForElement(i)),0!=this.playersByQueriedElement.size&&(e=this.driver.query(t,ph,!0),e.forEach(i=>this.finishActiveQueriedAnimationOnElement(i)))}destroyActiveAnimationsForElement(t){const e=this.playersByElement.get(t);e&&e.forEach(i=>{i.queued?i.markedForDestroy=!0:i.destroy()})}finishActiveQueriedAnimationOnElement(t){const e=this.playersByQueriedElement.get(t);e&&e.forEach(i=>i.finish())}whenRenderingDone(){return new Promise(t=>{if(this.players.length)return _i(this.players).onDone(()=>t());t()})}processLeaveNode(t){var e;const i=t[an];if(i&&i.setForRemoval){if(t[an]=Bb,i.namespaceId){this.destroyInnerAnimations(t);const r=this._fetchNamespace(i.namespaceId);r&&r.clearElementCache(t)}this._onRemovalComplete(t,i.setForRemoval)}(null===(e=t.classList)||void 0===e?void 0:e.contains(Sh))&&this.markElementAsDisabled(t,!1),this.driver.query(t,".ng-animate-disabled",!0).forEach(r=>{this.markElementAsDisabled(r,!1)})}flush(t=-1){let e=[];if(this.newHostElements.size&&(this.newHostElements.forEach((i,r)=>this._balanceNamespaceList(i,r)),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let i=0;i<this.collectedEnterElements.length;i++)ln(this.collectedEnterElements[i],"ng-star-inserted");if(this._namespaceList.length&&(this.totalQueuedPlayers||this.collectedLeaveElements.length)){const i=[];try{e=this._flushAnimations(i,t)}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=[],e.length?_i(e).onDone(()=>{i.forEach(r=>r())}):i.forEach(r=>r())}}reportError(t){throw function dN(n){return new A(3402,ee)}()}_flushAnimations(t,e){const i=new _l,r=[],s=new Map,o=[],a=new Map,l=new Map,c=new Map,u=new Set;this.disabledNodes.forEach(I=>{u.add(I);const O=this.driver.query(I,".ng-animate-queued",!0);for(let N=0;N<O.length;N++)u.add(O[N])});const d=this.bodyNode,h=Array.from(this.statesByElement.keys()),f=$b(h,this.collectedEnterElements),p=new Map;let m=0;f.forEach((I,O)=>{const N=fh+m++;p.set(O,N),I.forEach(ie=>ln(ie,N))});const y=[],b=new Set,_=new Set;for(let I=0;I<this.collectedLeaveElements.length;I++){const O=this.collectedLeaveElements[I],N=O[an];N&&N.setForRemoval&&(y.push(O),b.add(O),N.hasAnimation?this.driver.query(O,".ng-star-inserted",!0).forEach(ie=>b.add(ie)):_.add(O))}const E=new Map,w=$b(h,Array.from(b));w.forEach((I,O)=>{const N=sl+m++;E.set(O,N),I.forEach(ie=>ln(ie,N))}),t.push(()=>{f.forEach((I,O)=>{const N=p.get(O);I.forEach(ie=>es(ie,N))}),w.forEach((I,O)=>{const N=E.get(O);I.forEach(ie=>es(ie,N))}),y.forEach(I=>{this.processLeaveNode(I)})});const M=[],ne=[];for(let I=this._namespaceList.length-1;I>=0;I--)this._namespaceList[I].drainQueuedTransitions(e).forEach(N=>{const ie=N.player,rt=N.element;if(M.push(ie),this.collectedEnterElements.length){const It=rt[an];if(It&&It.setForMove){if(It.previousTriggersValues&&It.previousTriggersValues.has(N.triggerName)){const ar=It.previousTriggersValues.get(N.triggerName),Ti=this.statesByElement.get(N.element);Ti&&Ti[N.triggerName]&&(Ti[N.triggerName].value=ar)}return void ie.destroy()}}const zn=!d||!this.driver.containsElement(d,rt),Yt=E.get(rt),Mi=p.get(rt),Re=this._buildInstruction(N,i,Mi,Yt,zn);if(Re.errors&&Re.errors.length)return void ne.push(Re);if(zn)return ie.onStart(()=>Qi(rt,Re.fromStyles)),ie.onDestroy(()=>$n(rt,Re.toStyles)),void r.push(ie);if(N.isFallbackTransition)return ie.onStart(()=>Qi(rt,Re.fromStyles)),ie.onDestroy(()=>$n(rt,Re.toStyles)),void r.push(ie);const NE=[];Re.timelines.forEach(It=>{It.stretchStartingKeyframe=!0,this.disabledNodes.has(It.element)||NE.push(It)}),Re.timelines=NE,i.append(rt,Re.timelines),o.push({instruction:Re,player:ie,element:rt}),Re.queriedElements.forEach(It=>Wt(a,It,[]).push(ie)),Re.preStyleProps.forEach((It,ar)=>{const Ti=Object.keys(It);if(Ti.length){let lr=l.get(ar);lr||l.set(ar,lr=new Set),Ti.forEach(If=>lr.add(If))}}),Re.postStyleProps.forEach((It,ar)=>{const Ti=Object.keys(It);let lr=c.get(ar);lr||c.set(ar,lr=new Set),Ti.forEach(If=>lr.add(If))})});if(ne.length){const I=[];ne.forEach(O=>{I.push(function hN(n,t){return new A(3505,ee)}())}),M.forEach(O=>O.destroy()),this.reportError(I)}const Se=new Map,it=new Map;o.forEach(I=>{const O=I.element;i.has(O)&&(it.set(O,O),this._beforeAnimationBuild(I.player.namespaceId,I.instruction,Se))}),r.forEach(I=>{const O=I.element;this._getPreviousPlayers(O,!1,I.namespaceId,I.triggerName,null).forEach(ie=>{Wt(Se,O,[]).push(ie),ie.destroy()})});const ut=y.filter(I=>zb(I,l,c)),dt=new Map;jb(dt,this.driver,_,c,ni).forEach(I=>{zb(I,l,c)&&ut.push(I)});const At=new Map;f.forEach((I,O)=>{jb(At,this.driver,new Set(I),l,"!")}),ut.forEach(I=>{const O=dt.get(I),N=At.get(I);dt.set(I,Object.assign(Object.assign({},O),N))});const Tn=[],ls=[],cs={};o.forEach(I=>{const{element:O,player:N,instruction:ie}=I;if(i.has(O)){if(u.has(O))return N.onDestroy(()=>$n(O,ie.toStyles)),N.disabled=!0,N.overrideTotalTime(ie.totalTime),void r.push(N);let rt=cs;if(it.size>1){let Yt=O;const Mi=[];for(;Yt=Yt.parentNode;){const Re=it.get(Yt);if(Re){rt=Re;break}Mi.push(Yt)}Mi.forEach(Re=>it.set(Re,rt))}const zn=this._buildAnimation(N.namespaceId,ie,Se,s,At,dt);if(N.setRealPlayer(zn),rt===cs)Tn.push(N);else{const Yt=this.playersByElement.get(rt);Yt&&Yt.length&&(N.parentPlayer=_i(Yt)),r.push(N)}}else Qi(O,ie.fromStyles),N.onDestroy(()=>$n(O,ie.toStyles)),ls.push(N),u.has(O)&&r.push(N)}),ls.forEach(I=>{const O=s.get(I.element);if(O&&O.length){const N=_i(O);I.setRealPlayer(N)}}),r.forEach(I=>{I.parentPlayer?I.syncPlayerEvents(I.parentPlayer):I.destroy()});for(let I=0;I<y.length;I++){const O=y[I],N=O[an];if(es(O,sl),N&&N.hasAnimation)continue;let ie=[];if(a.size){let zn=a.get(O);zn&&zn.length&&ie.push(...zn);let Yt=this.driver.query(O,ph,!0);for(let Mi=0;Mi<Yt.length;Mi++){let Re=a.get(Yt[Mi]);Re&&Re.length&&ie.push(...Re)}}const rt=ie.filter(zn=>!zn.destroyed);rt.length?hP(this,O,rt):this.processLeaveNode(O)}return y.length=0,Tn.forEach(I=>{this.players.push(I),I.onDone(()=>{I.destroy();const O=this.players.indexOf(I);this.players.splice(O,1)}),I.play()}),Tn}elementContainsData(t,e){let i=!1;const r=e[an];return r&&r.setForRemoval&&(i=!0),this.playersByElement.has(e)&&(i=!0),this.playersByQueriedElement.has(e)&&(i=!0),this.statesByElement.has(e)&&(i=!0),this._fetchNamespace(t).elementContainsData(e)||i}afterFlush(t){this._flushFns.push(t)}afterFlushAnimationsDone(t){this._whenQuietFns.push(t)}_getPreviousPlayers(t,e,i,r,s){let o=[];if(e){const a=this.playersByQueriedElement.get(t);a&&(o=a)}else{const a=this.playersByElement.get(t);if(a){const l=!s||s==po;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(t,e,i){const s=e.element,o=e.isRemovalTransition?void 0:t,a=e.isRemovalTransition?void 0:e.triggerName;for(const l of e.timelines){const c=l.element,u=c!==s,d=Wt(i,c,[]);this._getPreviousPlayers(c,u,o,a,e.toState).forEach(f=>{const p=f.getRealPlayer();p.beforeDestroy&&p.beforeDestroy(),f.destroy(),d.push(f)})}Qi(s,e.fromStyles)}_buildAnimation(t,e,i,r,s,o){const a=e.triggerName,l=e.element,c=[],u=new Set,d=new Set,h=e.timelines.map(p=>{const m=p.element;u.add(m);const y=m[an];if(y&&y.removedBeforeQueried)return new ho(p.duration,p.delay);const b=m!==l,_=function fP(n){const t=[];return Ub(n,t),t}((i.get(m)||sP).map(Se=>Se.getRealPlayer())).filter(Se=>!!Se.element&&Se.element===m),E=s.get(m),w=o.get(m),M=mb(0,this._normalizer,0,p.keyframes,E,w),ne=this._buildPlayer(p,M,_);if(p.subTimeline&&r&&d.add(m),b){const Se=new Ah(t,a,m);Se.setRealPlayer(ne),c.push(Se)}return ne});c.forEach(p=>{Wt(this.playersByQueriedElement,p.element,[]).push(p),p.onDone(()=>function cP(n,t,e){let i;if(n instanceof Map){if(i=n.get(t),i){if(i.length){const r=i.indexOf(e);i.splice(r,1)}0==i.length&&n.delete(t)}}else if(i=n[t],i){if(i.length){const r=i.indexOf(e);i.splice(r,1)}0==i.length&&delete n[t]}return i}(this.playersByQueriedElement,p.element,p))}),u.forEach(p=>ln(p,Sb));const f=_i(h);return f.onDestroy(()=>{u.forEach(p=>es(p,Sb)),$n(l,e.toStyles)}),d.forEach(p=>{Wt(r,p,[]).push(f)}),f}_buildPlayer(t,e,i){return e.length>0?this.driver.animate(t.element,e,t.duration,t.delay,t.easing,i):new ho(t.duration,t.delay)}}class Ah{constructor(t,e,i){this.namespaceId=t,this.triggerName=e,this.element=i,this._player=new ho,this._containsRealPlayer=!1,this._queuedCallbacks={},this.destroyed=!1,this.markedForDestroy=!1,this.disabled=!1,this.queued=!0,this.totalTime=0}setRealPlayer(t){this._containsRealPlayer||(this._player=t,Object.keys(this._queuedCallbacks).forEach(e=>{this._queuedCallbacks[e].forEach(i=>ah(t,e,void 0,i))}),this._queuedCallbacks={},this._containsRealPlayer=!0,this.overrideTotalTime(t.totalTime),this.queued=!1)}getRealPlayer(){return this._player}overrideTotalTime(t){this.totalTime=t}syncPlayerEvents(t){const e=this._player;e.triggerCallback&&t.onStart(()=>e.triggerCallback("start")),t.onDone(()=>this.finish()),t.onDestroy(()=>this.destroy())}_queueEvent(t,e){Wt(this._queuedCallbacks,t,[]).push(e)}onDone(t){this.queued&&this._queueEvent("done",t),this._player.onDone(t)}onStart(t){this.queued&&this._queueEvent("start",t),this._player.onStart(t)}onDestroy(t){this.queued&&this._queueEvent("destroy",t),this._player.onDestroy(t)}init(){this._player.init()}hasStarted(){return!this.queued&&this._player.hasStarted()}play(){!this.queued&&this._player.play()}pause(){!this.queued&&this._player.pause()}restart(){!this.queued&&this._player.restart()}finish(){this._player.finish()}destroy(){this.destroyed=!0,this._player.destroy()}reset(){!this.queued&&this._player.reset()}setPosition(t){this.queued||this._player.setPosition(t)}getPosition(){return this.queued?0:this._player.getPosition()}triggerCallback(t){const e=this._player;e.triggerCallback&&e.triggerCallback(t)}}function bl(n){return n&&1===n.nodeType}function Hb(n,t){const e=n.style.display;return n.style.display=null!=t?t:"none",e}function jb(n,t,e,i,r){const s=[];e.forEach(l=>s.push(Hb(l)));const o=[];i.forEach((l,c)=>{const u={};l.forEach(d=>{const h=u[d]=t.computeStyle(c,d,r);(!h||0==h.length)&&(c[an]=oP,o.push(c))}),n.set(c,u)});let a=0;return e.forEach(l=>Hb(l,s[a++])),o}function $b(n,t){const e=new Map;if(n.forEach(a=>e.set(a,[])),0==t.length)return e;const r=new Set(t),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=e.has(c)?c:r.has(c)?1:o(c),s.set(a,l),l}return t.forEach(a=>{const l=o(a);1!==l&&e.get(l).push(a)}),e}function ln(n,t){var e;null===(e=n.classList)||void 0===e||e.add(t)}function es(n,t){var e;null===(e=n.classList)||void 0===e||e.remove(t)}function hP(n,t,e){_i(e).onDone(()=>n.processLeaveNode(t))}function Ub(n,t){for(let e=0;e<n.length;e++){const i=n[e];i instanceof fb?Ub(i.players,t):t.push(i)}}function zb(n,t,e){const i=e.get(n);if(!i)return!1;let r=t.get(n);return r?i.forEach(s=>r.add(s)):t.set(n,i),e.delete(n),!0}class Cl{constructor(t,e,i){this.bodyNode=t,this._driver=e,this._normalizer=i,this._triggerCache={},this.onRemovalComplete=(r,s)=>{},this._transitionEngine=new lP(t,e,i),this._timelineEngine=new eP(t,e,i),this._transitionEngine.onRemovalComplete=(r,s)=>this.onRemovalComplete(r,s)}registerTrigger(t,e,i,r,s){const o=t+"-"+r;let a=this._triggerCache[o];if(!a){const l=[],u=yh(this._driver,s,l,[]);if(l.length)throw function tN(n,t){return new A(3404,ee)}();a=function ZN(n,t,e){return new XN(n,t,e)}(r,u,this._normalizer),this._triggerCache[o]=a}this._transitionEngine.registerTrigger(e,r,a)}register(t,e){this._transitionEngine.register(t,e)}destroy(t,e){this._transitionEngine.destroy(t,e)}onInsert(t,e,i,r){this._transitionEngine.insertNode(t,e,i,r)}onRemove(t,e,i,r){this._transitionEngine.removeNode(t,e,r||!1,i)}disableAnimations(t,e){this._transitionEngine.markElementAsDisabled(t,e)}process(t,e,i,r){if("@"==i.charAt(0)){const[s,o]=gb(i);this._timelineEngine.command(s,e,o,r)}else this._transitionEngine.trigger(t,e,i,r)}listen(t,e,i,r,s){if("@"==i.charAt(0)){const[o,a]=gb(i);return this._timelineEngine.listen(o,e,a,s)}return this._transitionEngine.listen(t,e,i,r,s)}flush(t=-1){this._transitionEngine.flush(t)}get players(){return this._transitionEngine.players.concat(this._timelineEngine.players)}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}}let gP=(()=>{class n{constructor(e,i,r){this._element=e,this._startStyles=i,this._endStyles=r,this._state=0;let s=n.initialStylesByElement.get(e);s||n.initialStylesByElement.set(e,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&&(Qi(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(Qi(this._element,this._endStyles),this._endStyles=null),$n(this._element,this._initialStyles),this._state=3)}}return n.initialStylesByElement=new WeakMap,n})();function Ih(n){let t=null;const e=Object.keys(n);for(let i=0;i<e.length;i++){const r=e[i];_P(r)&&(t=t||{},t[r]=n[r])}return t}function _P(n){return"display"===n||"position"===n}class Gb{constructor(t,e,i,r){this.element=t,this.keyframes=e,this.options=i,this._specialStyles=r,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._initialized=!1,this._finished=!1,this._started=!1,this._destroyed=!1,this.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(t=>t()),this._onDoneFns=[])}init(){this._buildPlayer(),this._preparePlayerBeforeStart()}_buildPlayer(){if(this._initialized)return;this._initialized=!0;const t=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,t,this.options),this._finalKeyframe=t.length?t[t.length-1]:{},this.domPlayer.addEventListener("finish",()=>this._onFinish())}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}_triggerWebAnimation(t,e,i){return t.animate(e,i)}onStart(t){this._onStartFns.push(t)}onDone(t){this._onDoneFns.push(t)}onDestroy(t){this._onDestroyFns.push(t)}play(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(t=>t()),this._onStartFns=[],this._started=!0,this._specialStyles&&this._specialStyles.start()),this.domPlayer.play()}pause(){this.init(),this.domPlayer.pause()}finish(){this.init(),this._specialStyles&&this._specialStyles.finish(),this._onFinish(),this.domPlayer.finish()}reset(){this._resetDomPlayerState(),this._destroyed=!1,this._finished=!1,this._started=!1}_resetDomPlayerState(){this.domPlayer&&this.domPlayer.cancel()}restart(){this.reset(),this.play()}hasStarted(){return this._started}destroy(){this._destroyed||(this._destroyed=!0,this._resetDomPlayerState(),this._onFinish(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(t=>t()),this._onDestroyFns=[])}setPosition(t){void 0===this.domPlayer&&this.init(),this.domPlayer.currentTime=t*this.time}getPosition(){return this.domPlayer.currentTime/this.time}get totalTime(){return this._delay+this._duration}beforeDestroy(){const t={};if(this.hasStarted()){const e=this._finalKeyframe;Object.keys(e).forEach(i=>{"offset"!=i&&(t[i]=this._finished?e[i]:xb(this.element,i))})}this.currentSnapshot=t}triggerCallback(t){const e="start"==t?this._onStartFns:this._onDoneFns;e.forEach(i=>i()),e.length=0}}class yP{validateStyleProperty(t){return bb(t)}matchesElement(t,e){return!1}containsElement(t,e){return Cb(t,e)}getParentElement(t){return dh(t)}query(t,e,i){return wb(t,e,i)}computeStyle(t,e,i){return window.getComputedStyle(t)[e]}animate(t,e,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 Gb);(function wN(n,t){return 0===n||0===t})(i,r)&&u.forEach(h=>{let f=h.currentSnapshot;Object.keys(f).forEach(p=>c[p]=f[p])}),e=function EN(n,t,e){const i=Object.keys(e);if(i.length&&t.length){let s=t[0],o=[];if(i.forEach(a=>{s.hasOwnProperty(a)||o.push(a),s[a]=e[a]}),o.length)for(var r=1;r<t.length;r++){let a=t[r];o.forEach(function(l){a[l]=xb(n,l)})}}return t}(t,e=e.map(h=>yi(h,!1)),c);const d=function mP(n,t){let e=null,i=null;return Array.isArray(t)&&t.length?(e=Ih(t[0]),t.length>1&&(i=Ih(t[t.length-1]))):t&&(e=Ih(t)),e||i?new gP(n,e,i):null}(t,e);return new Gb(t,e,l,d)}}let vP=(()=>{class n extends cb{constructor(e,i){super(),this._nextAnimationId=0,this._renderer=e.createRenderer(i.body,{id:"0",encapsulation:hn.None,styles:[],data:{animation:[]}})}build(e){const i=this._nextAnimationId.toString();this._nextAnimationId++;const r=Array.isArray(e)?db(e):e;return Wb(this._renderer,null,i,"register",[r]),new bP(i,this._renderer)}}return n.\u0275fac=function(e){return new(e||n)(v(Ys),v(Z))},n.\u0275prov=x({token:n,factory:n.\u0275fac}),n})();class bP extends class OR{}{constructor(t,e){super(),this._id=t,this._renderer=e}create(t,e){return new CP(this._id,t,e||{},this._renderer)}}class CP{constructor(t,e,i,r){this.id=t,this.element=e,this._renderer=r,this.parentPlayer=null,this._started=!1,this.totalTime=0,this._command("create",i)}_listen(t,e){return this._renderer.listen(this.element,`@@${this.id}:${t}`,e)}_command(t,...e){return Wb(this._renderer,this.element,this.id,t,e)}onDone(t){this._listen("done",t)}onStart(t){this._listen("start",t)}onDestroy(t){this._listen("destroy",t)}init(){this._command("init")}hasStarted(){return this._started}play(){this._command("play"),this._started=!0}pause(){this._command("pause")}restart(){this._command("restart")}finish(){this._command("finish")}destroy(){this._command("destroy")}reset(){this._command("reset"),this._started=!1}setPosition(t){this._command("setPosition",t)}getPosition(){var t,e;return null!==(e=null===(t=this._renderer.engine.players[+this.id])||void 0===t?void 0:t.getPosition())&&void 0!==e?e:0}}function Wb(n,t,e,i,r){return n.setProperty(t,`@@${e}:${i}`,r)}const qb="@.disabled";let wP=(()=>{class n{constructor(e,i,r){this.delegate=e,this.engine=i,this._zone=r,this._currentId=0,this._microtaskId=1,this._animationCallbacksBuffer=[],this._rendererCache=new Map,this._cdRecurDepth=0,this.promise=Promise.resolve(0),i.onRemovalComplete=(s,o)=>{const a=null==o?void 0:o.parentNode(s);a&&o.removeChild(a,s)}}createRenderer(e,i){const s=this.delegate.createRenderer(e,i);if(!(e&&i&&i.data&&i.data.animation)){let u=this._rendererCache.get(s);return u||(u=new Kb("",s,this.engine),this._rendererCache.set(s,u)),u}const o=i.id,a=i.id+"-"+this._currentId;this._currentId++,this.engine.register(a,e);const l=u=>{Array.isArray(u)?u.forEach(l):this.engine.registerTrigger(o,a,e,u.name,u)};return i.data.animation.forEach(l),new EP(this,a,s,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}_scheduleCountTask(){this.promise.then(()=>{this._microtaskId++})}scheduleListenerCallback(e,i,r){e>=0&&e<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(e){return new(e||n)(v(Ys),v(Cl),v(le))},n.\u0275prov=x({token:n,factory:n.\u0275fac}),n})();class Kb{constructor(t,e,i){this.namespaceId=t,this.delegate=e,this.engine=i,this.destroyNode=this.delegate.destroyNode?r=>e.destroyNode(r):null}get data(){return this.delegate.data}destroy(){this.engine.destroy(this.namespaceId,this.delegate),this.delegate.destroy()}createElement(t,e){return this.delegate.createElement(t,e)}createComment(t){return this.delegate.createComment(t)}createText(t){return this.delegate.createText(t)}appendChild(t,e){this.delegate.appendChild(t,e),this.engine.onInsert(this.namespaceId,e,t,!1)}insertBefore(t,e,i,r=!0){this.delegate.insertBefore(t,e,i),this.engine.onInsert(this.namespaceId,e,t,r)}removeChild(t,e,i){this.engine.onRemove(this.namespaceId,e,this.delegate,i)}selectRootElement(t,e){return this.delegate.selectRootElement(t,e)}parentNode(t){return this.delegate.parentNode(t)}nextSibling(t){return this.delegate.nextSibling(t)}setAttribute(t,e,i,r){this.delegate.setAttribute(t,e,i,r)}removeAttribute(t,e,i){this.delegate.removeAttribute(t,e,i)}addClass(t,e){this.delegate.addClass(t,e)}removeClass(t,e){this.delegate.removeClass(t,e)}setStyle(t,e,i,r){this.delegate.setStyle(t,e,i,r)}removeStyle(t,e,i){this.delegate.removeStyle(t,e,i)}setProperty(t,e,i){"@"==e.charAt(0)&&e==qb?this.disableAnimations(t,!!i):this.delegate.setProperty(t,e,i)}setValue(t,e){this.delegate.setValue(t,e)}listen(t,e,i){return this.delegate.listen(t,e,i)}disableAnimations(t,e){this.engine.disableAnimations(t,e)}}class EP extends Kb{constructor(t,e,i,r){super(e,i,r),this.factory=t,this.namespaceId=e}setProperty(t,e,i){"@"==e.charAt(0)?"."==e.charAt(1)&&e==qb?this.disableAnimations(t,i=void 0===i||!!i):this.engine.process(this.namespaceId,t,e.substr(1),i):this.delegate.setProperty(t,e,i)}listen(t,e,i){if("@"==e.charAt(0)){const r=function DP(n){switch(n){case"body":return document.body;case"document":return document;case"window":return window;default:return n}}(t);let s=e.substr(1),o="";return"@"!=s.charAt(0)&&([s,o]=function SP(n){const t=n.indexOf(".");return[n.substring(0,t),n.substr(t+1)]}(s)),this.engine.listen(this.namespaceId,r,s,o,a=>{this.factory.scheduleListenerCallback(a._data||-1,i,a)})}return this.delegate.listen(t,e,i)}}let MP=(()=>{class n extends Cl{constructor(e,i,r){super(e.body,i,r)}ngOnDestroy(){this.flush()}}return n.\u0275fac=function(e){return new(e||n)(v(Z),v(hh),v(Eh))},n.\u0275prov=x({token:n,factory:n.\u0275fac}),n})();const ts=new T("AnimationModuleType"),Yb=[{provide:cb,useClass:vP},{provide:Eh,useFactory:function TP(){return new GN}},{provide:Cl,useClass:MP},{provide:Ys,useFactory:function AP(n,t,e){return new wP(n,t,e)},deps:[el,Cl,le]}],Zb=[{provide:hh,useFactory:()=>new yP},{provide:ts,useValue:"BrowserAnimations"},...Yb],IP=[{provide:hh,useClass:Eb},{provide:ts,useValue:"NoopAnimations"},...Yb];let kh,xP=(()=>{class n{static withConfig(e){return{ngModule:n,providers:e.disableAnimations?IP:Zb}}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=me({type:n}),n.\u0275inj=ce({providers:Zb,imports:[nb]}),n})();function cn(n){return null!=n&&"false"!=`${n}`}function xh(n,t=0){return function kP(n){return!isNaN(parseFloat(n))&&!isNaN(Number(n))}(n)?Number(n):t}function El(n){return Array.isArray(n)?n:[n]}function qe(n){return null==n?"":"string"==typeof n?n:`${n}px`}function ii(n){return n instanceof Ee?n.nativeElement:n}try{kh="undefined"!=typeof Intl&&Intl.v8BreakIterator}catch(n){kh=!1}let ns,St=(()=>{class n{constructor(e){this._platformId=e,this.isBrowser=this._platformId?function AO(n){return n===Nv}(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&&!kh)&&"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(e){return new(e||n)(v(vd))},n.\u0275prov=x({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),Dl=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=me({type:n}),n.\u0275inj=ce({}),n})();const Xb=["color","button","checkbox","date","datetime-local","email","file","hidden","image","month","number","password","radio","range","reset","search","submit","tel","text","time","url","week"];function Qb(){if(ns)return ns;if("object"!=typeof document||!document)return ns=new Set(Xb),ns;let n=document.createElement("input");return ns=new Set(Xb.filter(t=>(n.setAttribute("type",t),n.type===t))),ns}let mo,er,Oh;function go(n){return function FP(){if(null==mo&&"undefined"!=typeof window)try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:()=>mo=!0}))}finally{mo=mo||!1}return mo}()?n:!!n.capture}function RP(){if(null==er){if("object"!=typeof document||!document||"function"!=typeof Element||!Element)return er=!1,er;if("scrollBehavior"in document.documentElement.style)er=!0;else{const n=Element.prototype.scrollTo;er=!!n&&!/\{\s*\[native code\]\s*\}/.test(n.toString())}}return er}function vi(n){return n.composedPath?n.composedPath()[0]:n.target}function Fh(){return"undefined"!=typeof __karma__&&!!__karma__||"undefined"!=typeof jasmine&&!!jasmine||"undefined"!=typeof jest&&!!jest||"undefined"!=typeof Mocha&&!!Mocha}function Jb(...n){if(1===n.length){const t=n[0];if(se(t))return Ml(t,null);if(Ke(t)&&Object.getPrototypeOf(t)===Object.prototype){const e=Object.keys(t);return Ml(e.map(i=>t[i]),e)}}if("function"==typeof n[n.length-1]){const t=n.pop();return Ml(n=1===n.length&&se(n[0])?n[0]:n,null).pipe(Ze(e=>t(...e)))}return Ml(n,null)}function Ml(n,t){return new Ce(e=>{const i=n.length;if(0===i)return void e.complete();const r=new Array(i);let s=0,o=0;for(let a=0;a<i;a++){const l=ds(n[a]);let c=!1;e.add(l.subscribe({next:u=>{c||(c=!0,o++),r[a]=u},error:u=>e.error(u),complete:()=>{s++,(s===i||!c)&&(o===i&&e.next(t?t.reduce((u,d,h)=>(u[d]=r[h],u),{}):r),e.complete())}}))}})}let eC=(()=>{class n{constructor(e,i){this._renderer=e,this._elementRef=i,this.onChange=r=>{},this.onTouched=()=>{}}setProperty(e,i){this._renderer.setProperty(this._elementRef.nativeElement,e,i)}registerOnTouched(e){this.onTouched=e}registerOnChange(e){this.onChange=e}setDisabledState(e){this.setProperty("disabled",e)}}return n.\u0275fac=function(e){return new(e||n)(g(mi),g(Ee))},n.\u0275dir=k({type:n}),n})(),tr=(()=>{class n extends eC{}return n.\u0275fac=function(){let t;return function(i){return(t||(t=$e(n)))(i||n)}}(),n.\u0275dir=k({type:n,features:[q]}),n})();const un=new T("NgValueAccessor"),VP={provide:un,useExisting:fe(()=>Tl),multi:!0},HP=new T("CompositionEventMode");let Tl=(()=>{class n extends eC{constructor(e,i,r){super(e,i),this._compositionMode=r,this._composing=!1,null==this._compositionMode&&(this._compositionMode=!function BP(){const n=Hn()?Hn().getUserAgent():"";return/android (\d+)/.test(n.toLowerCase())}())}writeValue(e){this.setProperty("value",null==e?"":e)}_handleInput(e){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(e)}_compositionStart(){this._composing=!0}_compositionEnd(e){this._composing=!1,this._compositionMode&&this.onChange(e)}}return n.\u0275fac=function(e){return new(e||n)(g(mi),g(Ee),g(HP,8))},n.\u0275dir=k({type:n,selectors:[["input","formControlName","",3,"type","checkbox"],["textarea","formControlName",""],["input","formControl","",3,"type","checkbox"],["textarea","formControl",""],["input","ngModel","",3,"type","checkbox"],["textarea","ngModel",""],["","ngDefaultControl",""]],hostBindings:function(e,i){1&e&&Ae("input",function(s){return i._handleInput(s.target.value)})("blur",function(){return i.onTouched()})("compositionstart",function(){return i._compositionStart()})("compositionend",function(s){return i._compositionEnd(s.target.value)})},features:[oe([VP]),q]}),n})();function bi(n){return null==n||0===n.length}function nC(n){return null!=n&&"number"==typeof n.length}const lt=new T("NgValidators"),Ci=new T("NgAsyncValidators"),jP=/^(?=.{1,254}$)(?=.{1,64}@)[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+)*@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/;class $P{static min(t){return function iC(n){return t=>{if(bi(t.value)||bi(n))return null;const e=parseFloat(t.value);return!isNaN(e)&&e<n?{min:{min:n,actual:t.value}}:null}}(t)}static max(t){return function rC(n){return t=>{if(bi(t.value)||bi(n))return null;const e=parseFloat(t.value);return!isNaN(e)&&e>n?{max:{max:n,actual:t.value}}:null}}(t)}static required(t){return function sC(n){return bi(n.value)?{required:!0}:null}(t)}static requiredTrue(t){return function oC(n){return!0===n.value?null:{required:!0}}(t)}static email(t){return function aC(n){return bi(n.value)||jP.test(n.value)?null:{email:!0}}(t)}static minLength(t){return function lC(n){return t=>bi(t.value)||!nC(t.value)?null:t.value.length<n?{minlength:{requiredLength:n,actualLength:t.value.length}}:null}(t)}static maxLength(t){return function cC(n){return t=>nC(t.value)&&t.value.length>n?{maxlength:{requiredLength:n,actualLength:t.value.length}}:null}(t)}static pattern(t){return function uC(n){if(!n)return Al;let t,e;return"string"==typeof n?(e="","^"!==n.charAt(0)&&(e+="^"),e+=n,"$"!==n.charAt(n.length-1)&&(e+="$"),t=new RegExp(e)):(e=n.toString(),t=n),i=>{if(bi(i.value))return null;const r=i.value;return t.test(r)?null:{pattern:{requiredPattern:e,actualValue:r}}}}(t)}static nullValidator(t){return null}static compose(t){return gC(t)}static composeAsync(t){return _C(t)}}function Al(n){return null}function dC(n){return null!=n}function hC(n){const t=va(n)?ds(n):n;return Zg(t),t}function fC(n){let t={};return n.forEach(e=>{t=null!=e?Object.assign(Object.assign({},t),e):t}),0===Object.keys(t).length?null:t}function pC(n,t){return t.map(e=>e(n))}function mC(n){return n.map(t=>function UP(n){return!n.validate}(t)?t:e=>t.validate(e))}function gC(n){if(!n)return null;const t=n.filter(dC);return 0==t.length?null:function(e){return fC(pC(e,t))}}function Rh(n){return null!=n?gC(mC(n)):null}function _C(n){if(!n)return null;const t=n.filter(dC);return 0==t.length?null:function(e){return Jb(pC(e,t).map(hC)).pipe(Ze(fC))}}function Nh(n){return null!=n?_C(mC(n)):null}function yC(n,t){return null===n?[t]:Array.isArray(n)?[...n,t]:[n,t]}function vC(n){return n._rawValidators}function bC(n){return n._rawAsyncValidators}function Ph(n){return n?Array.isArray(n)?n:[n]:[]}function Il(n,t){return Array.isArray(n)?n.includes(t):n===t}function CC(n,t){const e=Ph(t);return Ph(n).forEach(r=>{Il(e,r)||e.push(r)}),e}function wC(n,t){return Ph(t).filter(e=>!Il(n,e))}class EC{constructor(){this._rawValidators=[],this._rawAsyncValidators=[],this._onDestroyCallbacks=[]}get value(){return this.control?this.control.value:null}get valid(){return this.control?this.control.valid:null}get invalid(){return this.control?this.control.invalid:null}get pending(){return this.control?this.control.pending:null}get disabled(){return this.control?this.control.disabled:null}get enabled(){return this.control?this.control.enabled:null}get errors(){return this.control?this.control.errors:null}get pristine(){return this.control?this.control.pristine:null}get dirty(){return this.control?this.control.dirty:null}get touched(){return this.control?this.control.touched:null}get status(){return this.control?this.control.status:null}get untouched(){return this.control?this.control.untouched:null}get statusChanges(){return this.control?this.control.statusChanges:null}get valueChanges(){return this.control?this.control.valueChanges:null}get path(){return null}_setValidators(t){this._rawValidators=t||[],this._composedValidatorFn=Rh(this._rawValidators)}_setAsyncValidators(t){this._rawAsyncValidators=t||[],this._composedAsyncValidatorFn=Nh(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_registerOnDestroy(t){this._onDestroyCallbacks.push(t)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(t=>t()),this._onDestroyCallbacks=[]}reset(t){this.control&&this.control.reset(t)}hasError(t,e){return!!this.control&&this.control.hasError(t,e)}getError(t,e){return this.control?this.control.getError(t,e):null}}class ri extends EC{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}}class Mt extends EC{get formDirective(){return null}get path(){return null}}let SC=(()=>{class n extends class DC{constructor(t){this._cd=t}is(t){var e,i,r;return"submitted"===t?!!(null===(e=this._cd)||void 0===e?void 0:e.submitted):!!(null===(r=null===(i=this._cd)||void 0===i?void 0:i.control)||void 0===r?void 0:r[t])}}{constructor(e){super(e)}}return n.\u0275fac=function(e){return new(e||n)(g(ri,2))},n.\u0275dir=k({type:n,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(e,i){2&e&&mt("ng-untouched",i.is("untouched"))("ng-touched",i.is("touched"))("ng-pristine",i.is("pristine"))("ng-dirty",i.is("dirty"))("ng-valid",i.is("valid"))("ng-invalid",i.is("invalid"))("ng-pending",i.is("pending"))},features:[q]}),n})();function _o(n,t){Bh(n,t),t.valueAccessor.writeValue(n.value),function QP(n,t){t.valueAccessor.registerOnChange(e=>{n._pendingValue=e,n._pendingChange=!0,n._pendingDirty=!0,"change"===n.updateOn&&TC(n,t)})}(n,t),function e1(n,t){const e=(i,r)=>{t.valueAccessor.writeValue(i),r&&t.viewToModelUpdate(i)};n.registerOnChange(e),t._registerOnDestroy(()=>{n._unregisterOnChange(e)})}(n,t),function JP(n,t){t.valueAccessor.registerOnTouched(()=>{n._pendingTouched=!0,"blur"===n.updateOn&&n._pendingChange&&TC(n,t),"submit"!==n.updateOn&&n.markAsTouched()})}(n,t),function XP(n,t){if(t.valueAccessor.setDisabledState){const e=i=>{t.valueAccessor.setDisabledState(i)};n.registerOnDisabledChange(e),t._registerOnDestroy(()=>{n._unregisterOnDisabledChange(e)})}}(n,t)}function Ol(n,t,e=!0){const i=()=>{};t.valueAccessor&&(t.valueAccessor.registerOnChange(i),t.valueAccessor.registerOnTouched(i)),Rl(n,t),n&&(t._invokeOnDestroyCallbacks(),n._registerOnCollectionChange(()=>{}))}function Fl(n,t){n.forEach(e=>{e.registerOnValidatorChange&&e.registerOnValidatorChange(t)})}function Bh(n,t){const e=vC(n);null!==t.validator?n.setValidators(yC(e,t.validator)):"function"==typeof e&&n.setValidators([e]);const i=bC(n);null!==t.asyncValidator?n.setAsyncValidators(yC(i,t.asyncValidator)):"function"==typeof i&&n.setAsyncValidators([i]);const r=()=>n.updateValueAndValidity();Fl(t._rawValidators,r),Fl(t._rawAsyncValidators,r)}function Rl(n,t){let e=!1;if(null!==n){if(null!==t.validator){const r=vC(n);if(Array.isArray(r)&&r.length>0){const s=r.filter(o=>o!==t.validator);s.length!==r.length&&(e=!0,n.setValidators(s))}}if(null!==t.asyncValidator){const r=bC(n);if(Array.isArray(r)&&r.length>0){const s=r.filter(o=>o!==t.asyncValidator);s.length!==r.length&&(e=!0,n.setAsyncValidators(s))}}}const i=()=>{};return Fl(t._rawValidators,i),Fl(t._rawAsyncValidators,i),e}function TC(n,t){n._pendingDirty&&n.markAsDirty(),n.setValue(n._pendingValue,{emitModelToViewChange:!1}),t.viewToModelUpdate(n._pendingValue),n._pendingChange=!1}function AC(n,t){Bh(n,t)}function xC(n,t){n._syncPendingControls(),t.forEach(e=>{const i=e.control;"submit"===i.updateOn&&i._pendingChange&&(e.viewToModelUpdate(i._pendingValue),i._pendingChange=!1)})}function $h(n,t){const e=n.indexOf(t);e>-1&&n.splice(e,1)}const yo="VALID",Nl="INVALID",is="PENDING",vo="DISABLED";function zh(n){return(Pl(n)?n.validators:n)||null}function kC(n){return Array.isArray(n)?Rh(n):n||null}function Gh(n,t){return(Pl(t)?t.asyncValidators:n)||null}function OC(n){return Array.isArray(n)?Nh(n):n||null}function Pl(n){return null!=n&&!Array.isArray(n)&&"object"==typeof n}const FC=n=>n instanceof Kh,Wh=n=>n instanceof Yh;function RC(n){return FC(n)?n.value:n.getRawValue()}function NC(n,t){const e=Wh(n),i=n.controls;if(!(e?Object.keys(i):i).length)throw new A(1e3,"");if(!i[t])throw new A(1001,"")}function PC(n,t){Wh(n),n._forEachChild((i,r)=>{if(void 0===t[r])throw new A(1002,"")})}class qh{constructor(t,e){this._pendingDirty=!1,this._hasOwnPendingAsyncValidator=!1,this._pendingTouched=!1,this._onCollectionChange=()=>{},this._parent=null,this.pristine=!0,this.touched=!1,this._onDisabledChange=[],this._rawValidators=t,this._rawAsyncValidators=e,this._composedValidatorFn=kC(this._rawValidators),this._composedAsyncValidatorFn=OC(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn}set validator(t){this._rawValidators=this._composedValidatorFn=t}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(t){this._rawAsyncValidators=this._composedAsyncValidatorFn=t}get parent(){return this._parent}get valid(){return this.status===yo}get invalid(){return this.status===Nl}get pending(){return this.status==is}get disabled(){return this.status===vo}get enabled(){return this.status!==vo}get dirty(){return!this.pristine}get untouched(){return!this.touched}get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(t){this._rawValidators=t,this._composedValidatorFn=kC(t)}setAsyncValidators(t){this._rawAsyncValidators=t,this._composedAsyncValidatorFn=OC(t)}addValidators(t){this.setValidators(CC(t,this._rawValidators))}addAsyncValidators(t){this.setAsyncValidators(CC(t,this._rawAsyncValidators))}removeValidators(t){this.setValidators(wC(t,this._rawValidators))}removeAsyncValidators(t){this.setAsyncValidators(wC(t,this._rawAsyncValidators))}hasValidator(t){return Il(this._rawValidators,t)}hasAsyncValidator(t){return Il(this._rawAsyncValidators,t)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(t={}){this.touched=!0,this._parent&&!t.onlySelf&&this._parent.markAsTouched(t)}markAllAsTouched(){this.markAsTouched({onlySelf:!0}),this._forEachChild(t=>t.markAllAsTouched())}markAsUntouched(t={}){this.touched=!1,this._pendingTouched=!1,this._forEachChild(e=>{e.markAsUntouched({onlySelf:!0})}),this._parent&&!t.onlySelf&&this._parent._updateTouched(t)}markAsDirty(t={}){this.pristine=!1,this._parent&&!t.onlySelf&&this._parent.markAsDirty(t)}markAsPristine(t={}){this.pristine=!0,this._pendingDirty=!1,this._forEachChild(e=>{e.markAsPristine({onlySelf:!0})}),this._parent&&!t.onlySelf&&this._parent._updatePristine(t)}markAsPending(t={}){this.status=is,!1!==t.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!t.onlySelf&&this._parent.markAsPending(t)}disable(t={}){const e=this._parentMarkedDirty(t.onlySelf);this.status=vo,this.errors=null,this._forEachChild(i=>{i.disable(Object.assign(Object.assign({},t),{onlySelf:!0}))}),this._updateValue(),!1!==t.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(Object.assign(Object.assign({},t),{skipPristineCheck:e})),this._onDisabledChange.forEach(i=>i(!0))}enable(t={}){const e=this._parentMarkedDirty(t.onlySelf);this.status=yo,this._forEachChild(i=>{i.enable(Object.assign(Object.assign({},t),{onlySelf:!0}))}),this.updateValueAndValidity({onlySelf:!0,emitEvent:t.emitEvent}),this._updateAncestors(Object.assign(Object.assign({},t),{skipPristineCheck:e})),this._onDisabledChange.forEach(i=>i(!1))}_updateAncestors(t){this._parent&&!t.onlySelf&&(this._parent.updateValueAndValidity(t),t.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}setParent(t){this._parent=t}updateValueAndValidity(t={}){this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===yo||this.status===is)&&this._runAsyncValidator(t.emitEvent)),!1!==t.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!t.onlySelf&&this._parent.updateValueAndValidity(t)}_updateTreeValidity(t={emitEvent:!0}){this._forEachChild(e=>e._updateTreeValidity(t)),this.updateValueAndValidity({onlySelf:!0,emitEvent:t.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?vo:yo}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(t){if(this.asyncValidator){this.status=is,this._hasOwnPendingAsyncValidator=!0;const e=hC(this.asyncValidator(this));this._asyncValidationSubscription=e.subscribe(i=>{this._hasOwnPendingAsyncValidator=!1,this.setErrors(i,{emitEvent:t})})}}_cancelExistingSubscription(){this._asyncValidationSubscription&&(this._asyncValidationSubscription.unsubscribe(),this._hasOwnPendingAsyncValidator=!1)}setErrors(t,e={}){this.errors=t,this._updateControlsErrors(!1!==e.emitEvent)}get(t){return function s1(n,t,e){if(null==t||(Array.isArray(t)||(t=t.split(e)),Array.isArray(t)&&0===t.length))return null;let i=n;return t.forEach(r=>{i=Wh(i)?i.controls.hasOwnProperty(r)?i.controls[r]:null:(n=>n instanceof a1)(i)&&i.at(r)||null}),i}(this,t,".")}getError(t,e){const i=e?this.get(e):this;return i&&i.errors?i.errors[t]:null}hasError(t,e){return!!this.getError(t,e)}get root(){let t=this;for(;t._parent;)t=t._parent;return t}_updateControlsErrors(t){this.status=this._calculateStatus(),t&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(t)}_initObservables(){this.valueChanges=new Ie,this.statusChanges=new Ie}_calculateStatus(){return this._allControlsDisabled()?vo:this.errors?Nl:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(is)?is:this._anyControlsHaveStatus(Nl)?Nl:yo}_anyControlsHaveStatus(t){return this._anyControls(e=>e.status===t)}_anyControlsDirty(){return this._anyControls(t=>t.dirty)}_anyControlsTouched(){return this._anyControls(t=>t.touched)}_updatePristine(t={}){this.pristine=!this._anyControlsDirty(),this._parent&&!t.onlySelf&&this._parent._updatePristine(t)}_updateTouched(t={}){this.touched=this._anyControlsTouched(),this._parent&&!t.onlySelf&&this._parent._updateTouched(t)}_isBoxedValue(t){return"object"==typeof t&&null!==t&&2===Object.keys(t).length&&"value"in t&&"disabled"in t}_registerOnCollectionChange(t){this._onCollectionChange=t}_setUpdateStrategy(t){Pl(t)&&null!=t.updateOn&&(this._updateOn=t.updateOn)}_parentMarkedDirty(t){return!t&&!(!this._parent||!this._parent.dirty)&&!this._parent._anyControlsDirty()}}class Kh extends qh{constructor(t=null,e,i){super(zh(e),Gh(i,e)),this.defaultValue=null,this._onChange=[],this._pendingChange=!1,this._applyFormState(t),this._setUpdateStrategy(e),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),Pl(e)&&e.initialValueIsDefault&&(this.defaultValue=this._isBoxedValue(t)?t.value:t)}setValue(t,e={}){this.value=this._pendingValue=t,this._onChange.length&&!1!==e.emitModelToViewChange&&this._onChange.forEach(i=>i(this.value,!1!==e.emitViewToModelChange)),this.updateValueAndValidity(e)}patchValue(t,e={}){this.setValue(t,e)}reset(t=this.defaultValue,e={}){this._applyFormState(t),this.markAsPristine(e),this.markAsUntouched(e),this.setValue(this.value,e),this._pendingChange=!1}_updateValue(){}_anyControls(t){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(t){this._onChange.push(t)}_unregisterOnChange(t){$h(this._onChange,t)}registerOnDisabledChange(t){this._onDisabledChange.push(t)}_unregisterOnDisabledChange(t){$h(this._onDisabledChange,t)}_forEachChild(t){}_syncPendingControls(){return!("submit"!==this.updateOn||(this._pendingDirty&&this.markAsDirty(),this._pendingTouched&&this.markAsTouched(),!this._pendingChange)||(this.setValue(this._pendingValue,{onlySelf:!0,emitModelToViewChange:!1}),0))}_applyFormState(t){this._isBoxedValue(t)?(this.value=this._pendingValue=t.value,t.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=t}}class Yh extends qh{constructor(t,e,i){super(zh(e),Gh(i,e)),this.controls=t,this._initObservables(),this._setUpdateStrategy(e),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}registerControl(t,e){return this.controls[t]?this.controls[t]:(this.controls[t]=e,e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange),e)}addControl(t,e,i={}){this.registerControl(t,e),this.updateValueAndValidity({emitEvent:i.emitEvent}),this._onCollectionChange()}removeControl(t,e={}){this.controls[t]&&this.controls[t]._registerOnCollectionChange(()=>{}),delete this.controls[t],this.updateValueAndValidity({emitEvent:e.emitEvent}),this._onCollectionChange()}setControl(t,e,i={}){this.controls[t]&&this.controls[t]._registerOnCollectionChange(()=>{}),delete this.controls[t],e&&this.registerControl(t,e),this.updateValueAndValidity({emitEvent:i.emitEvent}),this._onCollectionChange()}contains(t){return this.controls.hasOwnProperty(t)&&this.controls[t].enabled}setValue(t,e={}){PC(this,t),Object.keys(t).forEach(i=>{NC(this,i),this.controls[i].setValue(t[i],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}patchValue(t,e={}){null!=t&&(Object.keys(t).forEach(i=>{this.controls[i]&&this.controls[i].patchValue(t[i],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e))}reset(t={},e={}){this._forEachChild((i,r)=>{i.reset(t[r],{onlySelf:!0,emitEvent:e.emitEvent})}),this._updatePristine(e),this._updateTouched(e),this.updateValueAndValidity(e)}getRawValue(){return this._reduceChildren({},(t,e,i)=>(t[i]=RC(e),t))}_syncPendingControls(){let t=this._reduceChildren(!1,(e,i)=>!!i._syncPendingControls()||e);return t&&this.updateValueAndValidity({onlySelf:!0}),t}_forEachChild(t){Object.keys(this.controls).forEach(e=>{const i=this.controls[e];i&&t(i,e)})}_setUpControls(){this._forEachChild(t=>{t.setParent(this),t._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(t){for(const e of Object.keys(this.controls)){const i=this.controls[e];if(this.contains(e)&&t(i))return!0}return!1}_reduceValue(){return this._reduceChildren({},(t,e,i)=>((e.enabled||this.disabled)&&(t[i]=e.value),t))}_reduceChildren(t,e){let i=t;return this._forEachChild((r,s)=>{i=e(i,r,s)}),i}_allControlsDisabled(){for(const t of Object.keys(this.controls))if(this.controls[t].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}}class a1 extends qh{constructor(t,e,i){super(zh(e),Gh(i,e)),this.controls=t,this._initObservables(),this._setUpdateStrategy(e),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}at(t){return this.controls[t]}push(t,e={}){this.controls.push(t),this._registerControl(t),this.updateValueAndValidity({emitEvent:e.emitEvent}),this._onCollectionChange()}insert(t,e,i={}){this.controls.splice(t,0,e),this._registerControl(e),this.updateValueAndValidity({emitEvent:i.emitEvent})}removeAt(t,e={}){this.controls[t]&&this.controls[t]._registerOnCollectionChange(()=>{}),this.controls.splice(t,1),this.updateValueAndValidity({emitEvent:e.emitEvent})}setControl(t,e,i={}){this.controls[t]&&this.controls[t]._registerOnCollectionChange(()=>{}),this.controls.splice(t,1),e&&(this.controls.splice(t,0,e),this._registerControl(e)),this.updateValueAndValidity({emitEvent:i.emitEvent}),this._onCollectionChange()}get length(){return this.controls.length}setValue(t,e={}){PC(this,t),t.forEach((i,r)=>{NC(this,r),this.at(r).setValue(i,{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}patchValue(t,e={}){null!=t&&(t.forEach((i,r)=>{this.at(r)&&this.at(r).patchValue(i,{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e))}reset(t=[],e={}){this._forEachChild((i,r)=>{i.reset(t[r],{onlySelf:!0,emitEvent:e.emitEvent})}),this._updatePristine(e),this._updateTouched(e),this.updateValueAndValidity(e)}getRawValue(){return this.controls.map(t=>RC(t))}clear(t={}){this.controls.length<1||(this._forEachChild(e=>e._registerOnCollectionChange(()=>{})),this.controls.splice(0),this.updateValueAndValidity({emitEvent:t.emitEvent}))}_syncPendingControls(){let t=this.controls.reduce((e,i)=>!!i._syncPendingControls()||e,!1);return t&&this.updateValueAndValidity({onlySelf:!0}),t}_forEachChild(t){this.controls.forEach((e,i)=>{t(e,i)})}_updateValue(){this.value=this.controls.filter(t=>t.enabled||this.disabled).map(t=>t.value)}_anyControls(t){return this.controls.some(e=>e.enabled&&t(e))}_setUpControls(){this._forEachChild(t=>this._registerControl(t))}_allControlsDisabled(){for(const t of this.controls)if(t.enabled)return!1;return this.controls.length>0||this.disabled}_registerControl(t){t.setParent(this),t._registerOnCollectionChange(this._onCollectionChange)}}const l1={provide:Mt,useExisting:fe(()=>Ll)},bo=(()=>Promise.resolve(null))();let Ll=(()=>{class n extends Mt{constructor(e,i){super(),this.submitted=!1,this._directives=new Set,this.ngSubmit=new Ie,this.form=new Yh({},Rh(e),Nh(i))}ngAfterViewInit(){this._setUpdateStrategy()}get formDirective(){return this}get control(){return this.form}get path(){return[]}get controls(){return this.form.controls}addControl(e){bo.then(()=>{const i=this._findContainer(e.path);e.control=i.registerControl(e.name,e.control),_o(e.control,e),e.control.updateValueAndValidity({emitEvent:!1}),this._directives.add(e)})}getControl(e){return this.form.get(e.path)}removeControl(e){bo.then(()=>{const i=this._findContainer(e.path);i&&i.removeControl(e.name),this._directives.delete(e)})}addFormGroup(e){bo.then(()=>{const i=this._findContainer(e.path),r=new Yh({});AC(r,e),i.registerControl(e.name,r),r.updateValueAndValidity({emitEvent:!1})})}removeFormGroup(e){bo.then(()=>{const i=this._findContainer(e.path);i&&i.removeControl(e.name)})}getFormGroup(e){return this.form.get(e.path)}updateModel(e,i){bo.then(()=>{this.form.get(e.path).setValue(i)})}setValue(e){this.control.setValue(e)}onSubmit(e){return this.submitted=!0,xC(this.form,this._directives),this.ngSubmit.emit(e),!1}onReset(){this.resetForm()}resetForm(e){this.form.reset(e),this.submitted=!1}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.form._updateOn=this.options.updateOn)}_findContainer(e){return e.pop(),e.length?this.form.get(e):this.form}}return n.\u0275fac=function(e){return new(e||n)(g(lt,10),g(Ci,10))},n.\u0275dir=k({type:n,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(e,i){1&e&&Ae("submit",function(s){return i.onSubmit(s)})("reset",function(){return i.onReset()})},inputs:{options:["ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[oe([l1]),q]}),n})(),$C=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=me({type:n}),n.\u0275inj=ce({}),n})();const Zh=new T("NgModelWithFormControlWarning"),g1={provide:ri,useExisting:fe(()=>Xh)};let Xh=(()=>{class n extends ri{constructor(e,i,r,s){super(),this._ngModelWarningConfig=s,this.update=new Ie,this._ngModelWarningSent=!1,this._setValidators(e),this._setAsyncValidators(i),this.valueAccessor=function jh(n,t){if(!t)return null;let e,i,r;return Array.isArray(t),t.forEach(s=>{s.constructor===Tl?e=s:function r1(n){return Object.getPrototypeOf(n.constructor)===tr}(s)?i=s:r=s}),r||i||e||null}(0,r)}set isDisabled(e){}ngOnChanges(e){if(this._isControlChanged(e)){const i=e.form.previousValue;i&&Ol(i,this,!1),_o(this.form,this),this.control.disabled&&this.valueAccessor.setDisabledState&&this.valueAccessor.setDisabledState(!0),this.form.updateValueAndValidity({emitEvent:!1})}(function Hh(n,t){if(!n.hasOwnProperty("model"))return!1;const e=n.model;return!!e.isFirstChange()||!Object.is(t,e.currentValue)})(e,this.viewModel)&&(this.form.setValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.form&&Ol(this.form,this,!1)}get path(){return[]}get control(){return this.form}viewToModelUpdate(e){this.viewModel=e,this.update.emit(e)}_isControlChanged(e){return e.hasOwnProperty("form")}}return n._ngModelWarningSentOnce=!1,n.\u0275fac=function(e){return new(e||n)(g(lt,10),g(Ci,10),g(un,10),g(Zh,8))},n.\u0275dir=k({type:n,selectors:[["","formControl",""]],inputs:{form:["formControl","form"],isDisabled:["disabled","isDisabled"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},exportAs:["ngForm"],features:[oe([g1]),q,Qt]}),n})();const _1={provide:Mt,useExisting:fe(()=>Vl)};let Vl=(()=>{class n extends Mt{constructor(e,i){super(),this.validators=e,this.asyncValidators=i,this.submitted=!1,this._onCollectionChange=()=>this._updateDomValue(),this.directives=[],this.form=null,this.ngSubmit=new Ie,this._setValidators(e),this._setAsyncValidators(i)}ngOnChanges(e){this._checkFormPresent(),e.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations(),this._oldForm=this.form)}ngOnDestroy(){this.form&&(Rl(this.form,this),this.form._onCollectionChange===this._onCollectionChange&&this.form._registerOnCollectionChange(()=>{}))}get formDirective(){return this}get control(){return this.form}get path(){return[]}addControl(e){const i=this.form.get(e.path);return _o(i,e),i.updateValueAndValidity({emitEvent:!1}),this.directives.push(e),i}getControl(e){return this.form.get(e.path)}removeControl(e){Ol(e.control||null,e,!1),$h(this.directives,e)}addFormGroup(e){this._setUpFormContainer(e)}removeFormGroup(e){this._cleanUpFormContainer(e)}getFormGroup(e){return this.form.get(e.path)}addFormArray(e){this._setUpFormContainer(e)}removeFormArray(e){this._cleanUpFormContainer(e)}getFormArray(e){return this.form.get(e.path)}updateModel(e,i){this.form.get(e.path).setValue(i)}onSubmit(e){return this.submitted=!0,xC(this.form,this.directives),this.ngSubmit.emit(e),!1}onReset(){this.resetForm()}resetForm(e){this.form.reset(e),this.submitted=!1}_updateDomValue(){this.directives.forEach(e=>{const i=e.control,r=this.form.get(e.path);i!==r&&(Ol(i||null,e),FC(r)&&(_o(r,e),e.control=r))}),this.form._updateTreeValidity({emitEvent:!1})}_setUpFormContainer(e){const i=this.form.get(e.path);AC(i,e),i.updateValueAndValidity({emitEvent:!1})}_cleanUpFormContainer(e){if(this.form){const i=this.form.get(e.path);i&&function t1(n,t){return Rl(n,t)}(i,e)&&i.updateValueAndValidity({emitEvent:!1})}}_updateRegistrations(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm&&this._oldForm._registerOnCollectionChange(()=>{})}_updateValidators(){Bh(this.form,this),this._oldForm&&Rl(this._oldForm,this)}_checkFormPresent(){}}return n.\u0275fac=function(e){return new(e||n)(g(lt,10),g(Ci,10))},n.\u0275dir=k({type:n,selectors:[["","formGroup",""]],hostBindings:function(e,i){1&e&&Ae("submit",function(s){return i.onSubmit(s)})("reset",function(){return i.onReset()})},inputs:{form:["formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[oe([_1]),q,Qt]}),n})(),P1=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=me({type:n}),n.\u0275inj=ce({imports:[[$C]]}),n})(),L1=(()=>{class n{static withConfig(e){return{ngModule:n,providers:[{provide:Zh,useValue:e.warnOnNgModelWithFormControl}]}}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=me({type:n}),n.\u0275inj=ce({imports:[P1]}),n})();const V1=new T("cdk-dir-doc",{providedIn:"root",factory:function B1(){return na(Z)}}),H1=/^(ar|ckb|dv|he|iw|fa|nqo|ps|sd|ug|ur|yi|.*[-_](Adlm|Arab|Hebr|Nkoo|Rohg|Thaa))(?!.*[-_](Latn|Cyrl)($|-|_))($|-|_)/i;let Bl=(()=>{class n{constructor(e){if(this.value="ltr",this.change=new Ie,e){const r=e.documentElement?e.documentElement.dir:null;this.value=function j1(n){const t=(null==n?void 0:n.toLowerCase())||"";return"auto"===t&&"undefined"!=typeof navigator&&(null==navigator?void 0:navigator.language)?H1.test(navigator.language)?"rtl":"ltr":"rtl"===t?"rtl":"ltr"}((e.body?e.body.dir:null)||r||"ltr")}}ngOnDestroy(){this.change.complete()}}return n.\u0275fac=function(e){return new(e||n)(v(V1,8))},n.\u0275prov=x({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),Co=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=me({type:n}),n.\u0275inj=ce({}),n})();class $1 extends de{constructor(t){super(),this._value=t}get value(){return this.getValue()}_subscribe(t){const e=super._subscribe(t);return e&&!e.closed&&t.next(this._value),e}getValue(){if(this.hasError)throw this.thrownError;if(this.closed)throw new Ii;return this._value}next(t){super.next(this._value=t)}}function ir(n,...t){return t.length?t.some(e=>n[e]):n.altKey||n.shiftKey||n.ctrlKey||n.metaKey}function wi(){}function wo(n,t,e){return function(r){return r.lift(new iL(n,t,e))}}class iL{constructor(t,e,i){this.nextOrObserver=t,this.error=e,this.complete=i}call(t,e){return e.subscribe(new rL(t,this.nextOrObserver,this.error,this.complete))}}class rL extends ye{constructor(t,e,i,r){super(t),this._tapNext=wi,this._tapError=wi,this._tapComplete=wi,this._tapError=i||wi,this._tapComplete=r||wi,Q(e)?(this._context=this,this._tapNext=e):e&&(this._context=e,this._tapNext=e.next||wi,this._tapError=e.error||wi,this._tapComplete=e.complete||wi)}_next(t){try{this._tapNext.call(this._context,t)}catch(e){return void this.destination.error(e)}this.destination.next(t)}_error(t){try{this._tapError.call(this._context,t)}catch(e){return void this.destination.error(e)}this.destination.error(t)}_complete(){try{this._tapComplete.call(this._context)}catch(t){return void this.destination.error(t)}return this.destination.complete()}}const Hl=new Sn(tl);function jl(n,t=Hl){return e=>e.lift(new sL(n,t))}class sL{constructor(t,e){this.dueTime=t,this.scheduler=e}call(t,e){return e.subscribe(new oL(t,this.dueTime,this.scheduler))}}class oL extends ye{constructor(t,e,i){super(t),this.dueTime=e,this.scheduler=i,this.debouncedSubscription=null,this.lastValue=null,this.hasValue=!1}_next(t){this.clearDebounce(),this.lastValue=t,this.hasValue=!0,this.add(this.debouncedSubscription=this.scheduler.schedule(aL,this.dueTime,this))}_complete(){this.debouncedNext(),this.destination.complete()}debouncedNext(){if(this.clearDebounce(),this.hasValue){const{lastValue:t}=this;this.lastValue=null,this.hasValue=!1,this.destination.next(t)}}clearDebounce(){const t=this.debouncedSubscription;null!==t&&(this.remove(t),t.unsubscribe(),this.debouncedSubscription=null)}}function aL(n){n.debouncedNext()}function rr(n,t){return function(i){return i.lift(new lL(n,t))}}class lL{constructor(t,e){this.predicate=t,this.thisArg=e}call(t,e){return e.subscribe(new cL(t,this.predicate,this.thisArg))}}class cL extends ye{constructor(t,e,i){super(t),this.predicate=e,this.thisArg=i,this.count=0}_next(t){let e;try{e=this.predicate.call(this.thisArg,t,this.count++)}catch(i){return void this.destination.error(i)}e&&this.destination.next(t)}}function lw(n){return t=>t.lift(new uL(n))}class uL{constructor(t){this.total=t}call(t,e){return e.subscribe(new dL(t,this.total))}}class dL extends ye{constructor(t,e){super(t),this.total=e,this.count=0}_next(t){++this.count>this.total&&this.destination.next(t)}}class fL{constructor(t,e){this.compare=t,this.keySelector=e}call(t,e){return e.subscribe(new pL(t,this.compare,this.keySelector))}}class pL extends ye{constructor(t,e,i){super(t),this.keySelector=i,this.hasKey=!1,"function"==typeof e&&(this.compare=e)}compare(t,e){return t===e}_next(t){let e;try{const{keySelector:r}=this;e=r?r(t):t}catch(r){return this.destination.error(r)}let i=!1;if(this.hasKey)try{const{compare:r}=this;i=r(this.key,e)}catch(r){return this.destination.error(r)}else this.hasKey=!0;i||(this.key=e,this.destination.next(t))}}function Ot(n){return t=>t.lift(new mL(n))}class mL{constructor(t){this.notifier=t}call(t,e){const i=new gL(t),r=ps(this.notifier,new hs(i));return r&&!i.seenValue?(i.add(r),e.subscribe(i)):i}}class gL extends fs{constructor(t){super(t),this.seenValue=!1}notifyNext(){this.seenValue=!0,this.complete()}notifyComplete(){}}let cw=(()=>{class n{create(e){return"undefined"==typeof MutationObserver?null:new MutationObserver(e)}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=x({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),_L=(()=>{class n{constructor(e){this._mutationObserverFactory=e,this._observedElements=new Map}ngOnDestroy(){this._observedElements.forEach((e,i)=>this._cleanupObserver(i))}observe(e){const i=ii(e);return new Ce(r=>{const o=this._observeElement(i).subscribe(r);return()=>{o.unsubscribe(),this._unobserveElement(i)}})}_observeElement(e){if(this._observedElements.has(e))this._observedElements.get(e).count++;else{const i=new de,r=this._mutationObserverFactory.create(s=>i.next(s));r&&r.observe(e,{characterData:!0,childList:!0,subtree:!0}),this._observedElements.set(e,{observer:r,stream:i,count:1})}return this._observedElements.get(e).stream}_unobserveElement(e){this._observedElements.has(e)&&(this._observedElements.get(e).count--,this._observedElements.get(e).count||this._cleanupObserver(e))}_cleanupObserver(e){if(this._observedElements.has(e)){const{observer:i,stream:r}=this._observedElements.get(e);i&&i.disconnect(),r.complete(),this._observedElements.delete(e)}}}return n.\u0275fac=function(e){return new(e||n)(v(cw))},n.\u0275prov=x({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),yL=(()=>{class n{constructor(e,i,r){this._contentObserver=e,this._elementRef=i,this._ngZone=r,this.event=new Ie,this._disabled=!1,this._currentSubscription=null}get disabled(){return this._disabled}set disabled(e){this._disabled=cn(e),this._disabled?this._unsubscribe():this._subscribe()}get debounce(){return this._debounce}set debounce(e){this._debounce=xh(e),this._subscribe()}ngAfterContentInit(){!this._currentSubscription&&!this.disabled&&this._subscribe()}ngOnDestroy(){this._unsubscribe()}_subscribe(){this._unsubscribe();const e=this._contentObserver.observe(this._elementRef);this._ngZone.runOutsideAngular(()=>{this._currentSubscription=(this.debounce?e.pipe(jl(this.debounce)):e).subscribe(this.event)})}_unsubscribe(){var e;null===(e=this._currentSubscription)||void 0===e||e.unsubscribe()}}return n.\u0275fac=function(e){return new(e||n)(g(_L),g(Ee),g(le))},n.\u0275dir=k({type:n,selectors:[["","cdkObserveContent",""]],inputs:{disabled:["cdkObserveContentDisabled","disabled"],debounce:"debounce"},outputs:{event:"cdkObserveContent"},exportAs:["cdkObserveContent"]}),n})(),uw=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=me({type:n}),n.\u0275inj=ce({providers:[cw]}),n})();function $l(n,t){return(n.getAttribute(t)||"").match(/\S+/g)||[]}const hw="cdk-describedby-message-container",fw="cdk-describedby-message",Ul="cdk-describedby-host";let CL=0;const Un=new Map;let Kt=null,wL=(()=>{class n{constructor(e){this._document=e}describe(e,i,r){if(!this._canBeDescribed(e,i))return;const s=af(i,r);"string"!=typeof i?(pw(i),Un.set(s,{messageElement:i,referenceCount:0})):Un.has(s)||this._createMessageElement(i,r),this._isElementDescribedByMessage(e,s)||this._addMessageReference(e,s)}removeDescription(e,i,r){if(!i||!this._isElementNode(e))return;const s=af(i,r);if(this._isElementDescribedByMessage(e,s)&&this._removeMessageReference(e,s),"string"==typeof i){const o=Un.get(s);o&&0===o.referenceCount&&this._deleteMessageElement(s)}Kt&&0===Kt.childNodes.length&&this._deleteMessagesContainer()}ngOnDestroy(){const e=this._document.querySelectorAll(`[${Ul}]`);for(let i=0;i<e.length;i++)this._removeCdkDescribedByReferenceIds(e[i]),e[i].removeAttribute(Ul);Kt&&this._deleteMessagesContainer(),Un.clear()}_createMessageElement(e,i){const r=this._document.createElement("div");pw(r),r.textContent=e,i&&r.setAttribute("role",i),this._createMessagesContainer(),Kt.appendChild(r),Un.set(af(e,i),{messageElement:r,referenceCount:0})}_deleteMessageElement(e){var i;const r=Un.get(e);null===(i=null==r?void 0:r.messageElement)||void 0===i||i.remove(),Un.delete(e)}_createMessagesContainer(){if(!Kt){const e=this._document.getElementById(hw);null==e||e.remove(),Kt=this._document.createElement("div"),Kt.id=hw,Kt.style.visibility="hidden",Kt.classList.add("cdk-visually-hidden"),this._document.body.appendChild(Kt)}}_deleteMessagesContainer(){Kt&&(Kt.remove(),Kt=null)}_removeCdkDescribedByReferenceIds(e){const i=$l(e,"aria-describedby").filter(r=>0!=r.indexOf(fw));e.setAttribute("aria-describedby",i.join(" "))}_addMessageReference(e,i){const r=Un.get(i);(function vL(n,t,e){const i=$l(n,t);i.some(r=>r.trim()==e.trim())||(i.push(e.trim()),n.setAttribute(t,i.join(" ")))})(e,"aria-describedby",r.messageElement.id),e.setAttribute(Ul,""),r.referenceCount++}_removeMessageReference(e,i){const r=Un.get(i);r.referenceCount--,function bL(n,t,e){const r=$l(n,t).filter(s=>s!=e.trim());r.length?n.setAttribute(t,r.join(" ")):n.removeAttribute(t)}(e,"aria-describedby",r.messageElement.id),e.removeAttribute(Ul)}_isElementDescribedByMessage(e,i){const r=$l(e,"aria-describedby"),s=Un.get(i),o=s&&s.messageElement.id;return!!o&&-1!=r.indexOf(o)}_canBeDescribed(e,i){if(!this._isElementNode(e))return!1;if(i&&"object"==typeof i)return!0;const r=null==i?"":`${i}`.trim(),s=e.getAttribute("aria-label");return!(!r||s&&s.trim()===r)}_isElementNode(e){return e.nodeType===this._document.ELEMENT_NODE}}return n.\u0275fac=function(e){return new(e||n)(v(Z))},n.\u0275prov=x({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();function af(n,t){return"string"==typeof n?`${t||""}/${n}`:n}function pw(n){n.id||(n.id=`${fw}-${CL++}`)}class DL extends class EL{constructor(t){this._items=t,this._activeItemIndex=-1,this._activeItem=null,this._wrap=!1,this._letterKeyStream=new de,this._typeaheadSubscription=W.EMPTY,this._vertical=!0,this._allowedModifierKeys=[],this._homeAndEnd=!1,this._skipPredicateFn=e=>e.disabled,this._pressedLetters=[],this.tabOut=new de,this.change=new de,t instanceof Js&&t.changes.subscribe(e=>{if(this._activeItem){const r=e.toArray().indexOf(this._activeItem);r>-1&&r!==this._activeItemIndex&&(this._activeItemIndex=r)}})}skipPredicate(t){return this._skipPredicateFn=t,this}withWrap(t=!0){return this._wrap=t,this}withVerticalOrientation(t=!0){return this._vertical=t,this}withHorizontalOrientation(t){return this._horizontal=t,this}withAllowedModifierKeys(t){return this._allowedModifierKeys=t,this}withTypeAhead(t=200){return this._typeaheadSubscription.unsubscribe(),this._typeaheadSubscription=this._letterKeyStream.pipe(wo(e=>this._pressedLetters.push(e)),jl(t),rr(()=>this._pressedLetters.length>0),Ze(()=>this._pressedLetters.join(""))).subscribe(e=>{const i=this._getItemsArray();for(let r=1;r<i.length+1;r++){const s=(this._activeItemIndex+r)%i.length,o=i[s];if(!this._skipPredicateFn(o)&&0===o.getLabel().toUpperCase().trim().indexOf(e)){this.setActiveItem(s);break}}this._pressedLetters=[]}),this}withHomeAndEnd(t=!0){return this._homeAndEnd=t,this}setActiveItem(t){const e=this._activeItem;this.updateActiveItem(t),this._activeItem!==e&&this.change.next(this._activeItemIndex)}onKeydown(t){const e=t.keyCode,r=["altKey","ctrlKey","metaKey","shiftKey"].every(s=>!t[s]||this._allowedModifierKeys.indexOf(s)>-1);switch(e){case 9:return void this.tabOut.next();case 40:if(this._vertical&&r){this.setNextItemActive();break}return;case 38:if(this._vertical&&r){this.setPreviousItemActive();break}return;case 39:if(this._horizontal&&r){"rtl"===this._horizontal?this.setPreviousItemActive():this.setNextItemActive();break}return;case 37:if(this._horizontal&&r){"rtl"===this._horizontal?this.setNextItemActive():this.setPreviousItemActive();break}return;case 36:if(this._homeAndEnd&&r){this.setFirstItemActive();break}return;case 35:if(this._homeAndEnd&&r){this.setLastItemActive();break}return;default:return void((r||ir(t,"shiftKey"))&&(t.key&&1===t.key.length?this._letterKeyStream.next(t.key.toLocaleUpperCase()):(e>=65&&e<=90||e>=48&&e<=57)&&this._letterKeyStream.next(String.fromCharCode(e))))}this._pressedLetters=[],t.preventDefault()}get activeItemIndex(){return this._activeItemIndex}get activeItem(){return this._activeItem}isTyping(){return this._pressedLetters.length>0}setFirstItemActive(){this._setActiveItemByIndex(0,1)}setLastItemActive(){this._setActiveItemByIndex(this._items.length-1,-1)}setNextItemActive(){this._activeItemIndex<0?this.setFirstItemActive():this._setActiveItemByDelta(1)}setPreviousItemActive(){this._activeItemIndex<0&&this._wrap?this.setLastItemActive():this._setActiveItemByDelta(-1)}updateActiveItem(t){const e=this._getItemsArray(),i="number"==typeof t?t:e.indexOf(t),r=e[i];this._activeItem=null==r?null:r,this._activeItemIndex=i}_setActiveItemByDelta(t){this._wrap?this._setActiveInWrapMode(t):this._setActiveInDefaultMode(t)}_setActiveInWrapMode(t){const e=this._getItemsArray();for(let i=1;i<=e.length;i++){const r=(this._activeItemIndex+t*i+e.length)%e.length;if(!this._skipPredicateFn(e[r]))return void this.setActiveItem(r)}}_setActiveInDefaultMode(t){this._setActiveItemByIndex(this._activeItemIndex+t,t)}_setActiveItemByIndex(t,e){const i=this._getItemsArray();if(i[t]){for(;this._skipPredicateFn(i[t]);)if(!i[t+=e])return;this.setActiveItem(t)}}_getItemsArray(){return this._items instanceof Js?this._items.toArray():this._items}}{setActiveItem(t){this.activeItem&&this.activeItem.setInactiveStyles(),super.setActiveItem(t),this.activeItem&&this.activeItem.setActiveStyles()}}function gw(n){return 0===n.buttons||0===n.offsetX&&0===n.offsetY}function _w(n){const t=n.touches&&n.touches[0]||n.changedTouches&&n.changedTouches[0];return!(!t||-1!==t.identifier||null!=t.radiusX&&1!==t.radiusX||null!=t.radiusY&&1!==t.radiusY)}const xL=new T("cdk-input-modality-detector-options"),kL={ignoreKeys:[18,17,224,91,16]},rs=go({passive:!0,capture:!0});let OL=(()=>{class n{constructor(e,i,r,s){this._platform=e,this._mostRecentTarget=null,this._modality=new $1(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=vi(o))},this._onMousedown=o=>{Date.now()-this._lastTouchMs<650||(this._modality.next(gw(o)?"keyboard":"mouse"),this._mostRecentTarget=vi(o))},this._onTouchstart=o=>{_w(o)?this._modality.next("keyboard"):(this._lastTouchMs=Date.now(),this._modality.next("touch"),this._mostRecentTarget=vi(o))},this._options=Object.assign(Object.assign({},kL),s),this.modalityDetected=this._modality.pipe(lw(1)),this.modalityChanged=this.modalityDetected.pipe(function hL(n,t){return e=>e.lift(new fL(n,t))}()),e.isBrowser&&i.runOutsideAngular(()=>{r.addEventListener("keydown",this._onKeydown,rs),r.addEventListener("mousedown",this._onMousedown,rs),r.addEventListener("touchstart",this._onTouchstart,rs)})}get mostRecentModality(){return this._modality.value}ngOnDestroy(){this._modality.complete(),this._platform.isBrowser&&(document.removeEventListener("keydown",this._onKeydown,rs),document.removeEventListener("mousedown",this._onMousedown,rs),document.removeEventListener("touchstart",this._onTouchstart,rs))}}return n.\u0275fac=function(e){return new(e||n)(v(St),v(le),v(Z),v(xL,8))},n.\u0275prov=x({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const RL=new T("cdk-focus-monitor-default-options"),zl=go({passive:!0,capture:!0});let vw=(()=>{class n{constructor(e,i,r,s,o){this._ngZone=e,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 de,this._rootNodeFocusAndBlurListener=a=>{const l=vi(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(e,i=!1){const r=ii(e);if(!this._platform.isBrowser||1!==r.nodeType)return Mn(null);const s=function PP(n){if(function NP(){if(null==Oh){const n="undefined"!=typeof document?document.head:null;Oh=!(!n||!n.createShadowRoot&&!n.attachShadow)}return Oh}()){const t=n.getRootNode?n.getRootNode():null;if("undefined"!=typeof ShadowRoot&&ShadowRoot&&t instanceof ShadowRoot)return t}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 de,rootNode:s};return this._elementInfo.set(r,a),this._registerGlobalListeners(a),a.subject}stopMonitoring(e){const i=ii(e),r=this._elementInfo.get(i);r&&(r.subject.complete(),this._setClasses(i),this._elementInfo.delete(i),this._removeGlobalListeners(r))}focusVia(e,i,r){const s=ii(e);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((e,i)=>this.stopMonitoring(i))}_getDocument(){return this._document||document}_getWindow(){return this._getDocument().defaultView||window}_getFocusOrigin(e){return this._origin?this._originFromTouchInteraction?this._shouldBeAttributedToTouch(e)?"touch":"program":this._origin:this._windowFocused&&this._lastFocusOrigin?this._lastFocusOrigin:"program"}_shouldBeAttributedToTouch(e){return 1===this._detectionMode||!!(null==e?void 0:e.contains(this._inputModalityDetector._mostRecentTarget))}_setClasses(e,i){e.classList.toggle("cdk-focused",!!i),e.classList.toggle("cdk-touch-focused","touch"===i),e.classList.toggle("cdk-keyboard-focused","keyboard"===i),e.classList.toggle("cdk-mouse-focused","mouse"===i),e.classList.toggle("cdk-program-focused","program"===i)}_setOrigin(e,i=!1){this._ngZone.runOutsideAngular(()=>{this._origin=e,this._originFromTouchInteraction="touch"===e&&i,0===this._detectionMode&&(clearTimeout(this._originTimeoutId),this._originTimeoutId=setTimeout(()=>this._origin=null,this._originFromTouchInteraction?650:1))})}_onFocus(e,i){const r=this._elementInfo.get(i),s=vi(e);!r||!r.checkChildren&&i!==s||this._originChanged(i,this._getFocusOrigin(s),r)}_onBlur(e,i){const r=this._elementInfo.get(i);!r||r.checkChildren&&e.relatedTarget instanceof Node&&i.contains(e.relatedTarget)||(this._setClasses(i),this._emitOrigin(r.subject,null))}_emitOrigin(e,i){this._ngZone.run(()=>e.next(i))}_registerGlobalListeners(e){if(!this._platform.isBrowser)return;const i=e.rootNode,r=this._rootNodeFocusListenerCount.get(i)||0;r||this._ngZone.runOutsideAngular(()=>{i.addEventListener("focus",this._rootNodeFocusAndBlurListener,zl),i.addEventListener("blur",this._rootNodeFocusAndBlurListener,zl)}),this._rootNodeFocusListenerCount.set(i,r+1),1==++this._monitoredElementCount&&(this._ngZone.runOutsideAngular(()=>{this._getWindow().addEventListener("focus",this._windowFocusListener)}),this._inputModalityDetector.modalityDetected.pipe(Ot(this._stopInputModalityDetector)).subscribe(s=>{this._setOrigin(s,!0)}))}_removeGlobalListeners(e){const i=e.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,zl),i.removeEventListener("blur",this._rootNodeFocusAndBlurListener,zl),this._rootNodeFocusListenerCount.delete(i))}--this._monitoredElementCount||(this._getWindow().removeEventListener("focus",this._windowFocusListener),this._stopInputModalityDetector.next(),clearTimeout(this._windowFocusTimeoutId),clearTimeout(this._originTimeoutId))}_originChanged(e,i,r){this._setClasses(e,i),this._emitOrigin(r.subject,i),this._lastFocusOrigin=i}_getClosestElementsInfo(e){const i=[];return this._elementInfo.forEach((r,s)=>{(s===e||r.checkChildren&&s.contains(e))&&i.push([s,r])}),i}}return n.\u0275fac=function(e){return new(e||n)(v(le),v(St),v(OL),v(Z,8),v(RL,8))},n.\u0275prov=x({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const bw="cdk-high-contrast-black-on-white",Cw="cdk-high-contrast-white-on-black",lf="cdk-high-contrast-active";let ww=(()=>{class n{constructor(e,i){this._platform=e,this._document=i}getHighContrastMode(){if(!this._platform.isBrowser)return 0;const e=this._document.createElement("div");e.style.backgroundColor="rgb(1,2,3)",e.style.position="absolute",this._document.body.appendChild(e);const i=this._document.defaultView||window,r=i&&i.getComputedStyle?i.getComputedStyle(e):null,s=(r&&r.backgroundColor||"").replace(/ /g,"");switch(e.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 e=this._document.body.classList;e.remove(lf),e.remove(bw),e.remove(Cw),this._hasCheckedHighContrastMode=!0;const i=this.getHighContrastMode();1===i?(e.add(lf),e.add(bw)):2===i&&(e.add(lf),e.add(Cw))}}}return n.\u0275fac=function(e){return new(e||n)(v(St),v(Z))},n.\u0275prov=x({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),NL=(()=>{class n{constructor(e){e._applyBodyHighContrastModeCssClasses()}}return n.\u0275fac=function(e){return new(e||n)(v(ww))},n.\u0275mod=me({type:n}),n.\u0275inj=ce({imports:[[Dl,uw]]}),n})();function PL(n,t){if(1&n&&Xn(0,"mat-pseudo-checkbox",4),2&n){const e=ue();$("state",e.selected?"checked":"unchecked")("disabled",e.disabled)}}function LL(n,t){if(1&n&&(K(0,"span",5),wt(1),J()),2&n){const e=ue();j(1),Ui("(",e.group.label,")")}}const VL=["*"],HL=new T("mat-sanity-checks",{providedIn:"root",factory:function BL(){return!0}});let Tt=(()=>{class n{constructor(e,i,r){this._sanityChecks=i,this._document=r,this._hasDoneGlobalChecks=!1,e._applyBodyHighContrastModeCssClasses(),this._hasDoneGlobalChecks||(this._hasDoneGlobalChecks=!0)}_checkIsEnabled(e){return!Fh()&&("boolean"==typeof this._sanityChecks?this._sanityChecks:!!this._sanityChecks[e])}}return n.\u0275fac=function(e){return new(e||n)(v(ww),v(HL,8),v(Z))},n.\u0275mod=me({type:n}),n.\u0275inj=ce({imports:[[Co],Co]}),n})();function jL(n){return class extends n{constructor(...t){super(...t),this._disabled=!1}get disabled(){return this._disabled}set disabled(t){this._disabled=cn(t)}}}function cf(n,t){return class extends n{constructor(...e){super(...e),this.defaultColor=t,this.color=t}get color(){return this._color}set color(e){const i=e||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 Dw(n){return class extends n{constructor(...t){super(...t),this._disableRipple=!1}get disableRipple(){return this._disableRipple}set disableRipple(t){this._disableRipple=cn(t)}}}function $L(n){return class extends n{constructor(...t){super(...t),this.stateChanges=new de,this.errorState=!1}updateErrorState(){const t=this.errorState,s=(this.errorStateMatcher||this._defaultErrorStateMatcher).isErrorState(this.ngControl?this.ngControl.control:null,this._parentFormGroup||this._parentForm);s!==t&&(this.errorState=s,this.stateChanges.next())}}}let Sw=(()=>{class n{isErrorState(e,i){return!!(e&&e.invalid&&(e.touched||i&&i.submitted))}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=x({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();class zL{constructor(t,e,i){this._renderer=t,this.element=e,this.config=i,this.state=3}fadeOut(){this._renderer.fadeOutRipple(this)}}const Mw={enterDuration:225,exitDuration:150},uf=go({passive:!0}),Tw=["mousedown","touchstart"],Aw=["mouseup","mouseleave","touchend","touchcancel"];class WL{constructor(t,e,i,r){this._target=t,this._ngZone=e,this._isPointerDown=!1,this._activeRipples=new Set,this._pointerUpEventsRegistered=!1,r.isBrowser&&(this._containerElement=ii(i))}fadeInRipple(t,e,i={}){const r=this._containerRect=this._containerRect||this._containerElement.getBoundingClientRect(),s=Object.assign(Object.assign({},Mw),i.animation);i.centered&&(t=r.left+r.width/2,e=r.top+r.height/2);const o=i.radius||function KL(n,t,e){const i=Math.max(Math.abs(n-e.left),Math.abs(n-e.right)),r=Math.max(Math.abs(t-e.top),Math.abs(t-e.bottom));return Math.sqrt(i*i+r*r)}(t,e,r),a=t-r.left,l=e-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 qL(n){window.getComputedStyle(n).getPropertyValue("opacity")}(u),u.style.transform="scale(1)";const d=new zL(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(t){const e=this._activeRipples.delete(t);if(t===this._mostRecentTransientRipple&&(this._mostRecentTransientRipple=null),this._activeRipples.size||(this._containerRect=null),!e)return;const i=t.element,r=Object.assign(Object.assign({},Mw),t.config.animation);i.style.transitionDuration=`${r.exitDuration}ms`,i.style.opacity="0",t.state=2,this._runTimeoutOutsideZone(()=>{t.state=3,i.remove()},r.exitDuration)}fadeOutAll(){this._activeRipples.forEach(t=>t.fadeOut())}fadeOutAllNonPersistent(){this._activeRipples.forEach(t=>{t.config.persistent||t.fadeOut()})}setupTriggerEvents(t){const e=ii(t);!e||e===this._triggerElement||(this._removeTriggerEvents(),this._triggerElement=e,this._registerEvents(Tw))}handleEvent(t){"mousedown"===t.type?this._onMousedown(t):"touchstart"===t.type?this._onTouchStart(t):this._onPointerUp(),this._pointerUpEventsRegistered||(this._registerEvents(Aw),this._pointerUpEventsRegistered=!0)}_onMousedown(t){const e=gw(t),i=this._lastTouchStartEvent&&Date.now()<this._lastTouchStartEvent+800;!this._target.rippleDisabled&&!e&&!i&&(this._isPointerDown=!0,this.fadeInRipple(t.clientX,t.clientY,this._target.rippleConfig))}_onTouchStart(t){if(!this._target.rippleDisabled&&!_w(t)){this._lastTouchStartEvent=Date.now(),this._isPointerDown=!0;const e=t.changedTouches;for(let i=0;i<e.length;i++)this.fadeInRipple(e[i].clientX,e[i].clientY,this._target.rippleConfig)}}_onPointerUp(){!this._isPointerDown||(this._isPointerDown=!1,this._activeRipples.forEach(t=>{!t.config.persistent&&(1===t.state||t.config.terminateOnPointerUp&&0===t.state)&&t.fadeOut()}))}_runTimeoutOutsideZone(t,e=0){this._ngZone.runOutsideAngular(()=>setTimeout(t,e))}_registerEvents(t){this._ngZone.runOutsideAngular(()=>{t.forEach(e=>{this._triggerElement.addEventListener(e,this,uf)})})}_removeTriggerEvents(){this._triggerElement&&(Tw.forEach(t=>{this._triggerElement.removeEventListener(t,this,uf)}),this._pointerUpEventsRegistered&&Aw.forEach(t=>{this._triggerElement.removeEventListener(t,this,uf)}))}}const YL=new T("mat-ripple-global-options");let df=(()=>{class n{constructor(e,i,r,s,o){this._elementRef=e,this._animationMode=o,this.radius=0,this._disabled=!1,this._isInitialized=!1,this._globalOptions=s||{},this._rippleRenderer=new WL(this,i,e,r)}get disabled(){return this._disabled}set disabled(e){e&&this.fadeOutAllNonPersistent(),this._disabled=e,this._setupTriggerEventsIfEnabled()}get trigger(){return this._trigger||this._elementRef.nativeElement}set trigger(e){this._trigger=e,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(e,i=0,r){return"number"==typeof e?this._rippleRenderer.fadeInRipple(e,i,Object.assign(Object.assign({},this.rippleConfig),r)):this._rippleRenderer.fadeInRipple(0,0,Object.assign(Object.assign({},this.rippleConfig),e))}}return n.\u0275fac=function(e){return new(e||n)(g(Ee),g(le),g(St),g(YL,8),g(ts,8))},n.\u0275dir=k({type:n,selectors:[["","mat-ripple",""],["","matRipple",""]],hostAttrs:[1,"mat-ripple"],hostVars:2,hostBindings:function(e,i){2&e&&mt("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})(),Iw=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=me({type:n}),n.\u0275inj=ce({imports:[[Tt,Dl],Tt]}),n})(),ZL=(()=>{class n{constructor(e){this._animationMode=e,this.state="unchecked",this.disabled=!1}}return n.\u0275fac=function(e){return new(e||n)(g(ts,8))},n.\u0275cmp=An({type:n,selectors:[["mat-pseudo-checkbox"]],hostAttrs:[1,"mat-pseudo-checkbox"],hostVars:8,hostBindings:function(e,i){2&e&&mt("mat-pseudo-checkbox-indeterminate","indeterminate"===i.state)("mat-pseudo-checkbox-checked","checked"===i.state)("mat-pseudo-checkbox-disabled",i.disabled)("_mat-animation-noopable","NoopAnimations"===i._animationMode)},inputs:{state:"state",disabled:"disabled"},decls:0,vars:0,template:function(e,i){},styles:['.mat-pseudo-checkbox{width:16px;height:16px;border:2px solid;border-radius:2px;cursor:pointer;display:inline-block;vertical-align:middle;box-sizing:border-box;position:relative;flex-shrink:0;transition:border-color 90ms cubic-bezier(0, 0, 0.2, 0.1),background-color 90ms cubic-bezier(0, 0, 0.2, 0.1)}.mat-pseudo-checkbox::after{position:absolute;opacity:0;content:"";border-bottom:2px solid currentColor;transition:opacity 90ms cubic-bezier(0, 0, 0.2, 0.1)}.mat-pseudo-checkbox.mat-pseudo-checkbox-checked,.mat-pseudo-checkbox.mat-pseudo-checkbox-indeterminate{border-color:transparent}._mat-animation-noopable.mat-pseudo-checkbox{transition:none;animation:none}._mat-animation-noopable.mat-pseudo-checkbox::after{transition:none}.mat-pseudo-checkbox-disabled{cursor:default}.mat-pseudo-checkbox-indeterminate::after{top:5px;left:1px;width:10px;opacity:1;border-radius:2px}.mat-pseudo-checkbox-checked::after{top:2.4px;left:1px;width:8px;height:3px;border-left:2px solid currentColor;transform:rotate(-45deg);opacity:1;box-sizing:content-box}\n'],encapsulation:2,changeDetection:0}),n})(),XL=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=me({type:n}),n.\u0275inj=ce({imports:[[Tt]]}),n})();const xw=new T("MAT_OPTION_PARENT_COMPONENT"),kw=new T("MatOptgroup");let QL=0;class Ow{constructor(t,e=!1){this.source=t,this.isUserInput=e}}let JL=(()=>{class n{constructor(e,i,r,s){this._element=e,this._changeDetectorRef=i,this._parent=r,this.group=s,this._selected=!1,this._active=!1,this._disabled=!1,this._mostRecentViewValue="",this.id="mat-option-"+QL++,this.onSelectionChange=new Ie,this._stateChanges=new de}get multiple(){return this._parent&&this._parent.multiple}get selected(){return this._selected}get disabled(){return this.group&&this.group.disabled||this._disabled}set disabled(e){this._disabled=cn(e)}get disableRipple(){return!(!this._parent||!this._parent.disableRipple)}get active(){return this._active}get viewValue(){return(this._getHostElement().textContent||"").trim()}select(){this._selected||(this._selected=!0,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent())}deselect(){this._selected&&(this._selected=!1,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent())}focus(e,i){const r=this._getHostElement();"function"==typeof r.focus&&r.focus(i)}setActiveStyles(){this._active||(this._active=!0,this._changeDetectorRef.markForCheck())}setInactiveStyles(){this._active&&(this._active=!1,this._changeDetectorRef.markForCheck())}getLabel(){return this.viewValue}_handleKeydown(e){(13===e.keyCode||32===e.keyCode)&&!ir(e)&&(this._selectViaInteraction(),e.preventDefault())}_selectViaInteraction(){this.disabled||(this._selected=!this.multiple||!this._selected,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent(!0))}_getAriaSelected(){return this.selected||!this.multiple&&null}_getTabIndex(){return this.disabled?"-1":"0"}_getHostElement(){return this._element.nativeElement}ngAfterViewChecked(){if(this._selected){const e=this.viewValue;e!==this._mostRecentViewValue&&(this._mostRecentViewValue=e,this._stateChanges.next())}}ngOnDestroy(){this._stateChanges.complete()}_emitSelectionChangeEvent(e=!1){this.onSelectionChange.emit(new Ow(this,e))}}return n.\u0275fac=function(e){Uu()},n.\u0275dir=k({type:n,inputs:{value:"value",id:"id",disabled:"disabled"},outputs:{onSelectionChange:"onSelectionChange"}}),n})(),Fw=(()=>{class n extends JL{constructor(e,i,r,s){super(e,i,r,s)}}return n.\u0275fac=function(e){return new(e||n)(g(Ee),g(ei),g(xw,8),g(kw,8))},n.\u0275cmp=An({type:n,selectors:[["mat-option"]],hostAttrs:["role","option",1,"mat-option","mat-focus-indicator"],hostVars:12,hostBindings:function(e,i){1&e&&Ae("click",function(){return i._selectViaInteraction()})("keydown",function(s){return i._handleKeydown(s)}),2&e&&(Ca("id",i.id),nt("tabindex",i._getTabIndex())("aria-selected",i._getAriaSelected())("aria-disabled",i.disabled.toString()),mt("mat-selected",i.selected)("mat-option-multiple",i.multiple)("mat-active",i.active)("mat-option-disabled",i.disabled))},exportAs:["matOption"],features:[q],ngContentSelectors:VL,decls:5,vars:4,consts:[["class","mat-option-pseudo-checkbox",3,"state","disabled",4,"ngIf"],[1,"mat-option-text"],["class","cdk-visually-hidden",4,"ngIf"],["mat-ripple","",1,"mat-option-ripple",3,"matRippleTrigger","matRippleDisabled"],[1,"mat-option-pseudo-checkbox",3,"state","disabled"],[1,"cdk-visually-hidden"]],template:function(e,i){1&e&&(Gr(),Te(0,PL,1,2,"mat-pseudo-checkbox",0),K(1,"span",1),Gt(2),J(),Te(3,LL,2,1,"span",2),Xn(4,"div",3)),2&e&&($("ngIf",i.multiple),j(3),$("ngIf",i.group&&i.group._inert),j(1),$("matRippleTrigger",i._getHostElement())("matRippleDisabled",i.disabled||i.disableRipple))},directives:[ZL,Wa,df],styles:[".mat-option{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;line-height:48px;height:48px;padding:0 16px;text-align:left;text-decoration:none;max-width:100%;position:relative;cursor:pointer;outline:none;display:flex;flex-direction:row;max-width:100%;box-sizing:border-box;align-items:center;-webkit-tap-highlight-color:transparent}.mat-option[disabled]{cursor:default}[dir=rtl] .mat-option{text-align:right}.mat-option .mat-icon{margin-right:16px;vertical-align:middle}.mat-option .mat-icon svg{vertical-align:top}[dir=rtl] .mat-option .mat-icon{margin-left:16px;margin-right:0}.mat-option[aria-disabled=true]{-webkit-user-select:none;-moz-user-select:none;user-select:none;cursor:default}.mat-optgroup .mat-option:not(.mat-option-multiple){padding-left:32px}[dir=rtl] .mat-optgroup .mat-option:not(.mat-option-multiple){padding-left:16px;padding-right:32px}.cdk-high-contrast-active .mat-option{margin:0 1px}.cdk-high-contrast-active .mat-option.mat-active{border:solid 1px currentColor;margin:0}.cdk-high-contrast-active .mat-option[aria-disabled=true]{opacity:.5}.mat-option-text{display:inline-block;flex-grow:1;overflow:hidden;text-overflow:ellipsis}.mat-option .mat-option-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-option-pseudo-checkbox{margin-right:8px}[dir=rtl] .mat-option-pseudo-checkbox{margin-left:8px;margin-right:0}\n"],encapsulation:2,changeDetection:0}),n})(),Rw=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=me({type:n}),n.\u0275inj=ce({imports:[[Iw,ao,Tt,XL]]}),n})();function ss(n,t,e,i){return Q(e)&&(i=e,e=void 0),i?ss(n,t,e).pipe(Ze(r=>se(r)?i(...r):i(r))):new Ce(r=>{Nw(n,t,function s(o){r.next(arguments.length>1?Array.prototype.slice.call(arguments):o)},r,e)})}function Nw(n,t,e,i,r){let s;if(function rV(n){return n&&"function"==typeof n.addEventListener&&"function"==typeof n.removeEventListener}(n)){const o=n;n.addEventListener(t,e,r),s=()=>o.removeEventListener(t,e,r)}else if(function iV(n){return n&&"function"==typeof n.on&&"function"==typeof n.off}(n)){const o=n;n.on(t,e),s=()=>o.off(t,e)}else if(function nV(n){return n&&"function"==typeof n.addListener&&"function"==typeof n.removeListener}(n)){const o=n;n.addListener(t,e),s=()=>o.removeListener(t,e)}else{if(!n||!n.length)throw new TypeError("Invalid event target");for(let o=0,a=n.length;o<a;o++)Nw(n[o],t,e,i,r)}i.add(s)}function hf(...n){return function sV(){return Bf(1)}()(Mn(...n))}function Do(...n){const t=n[n.length-1];return ur(t)?(n.pop(),e=>hf(n,e,t)):e=>hf(n,e)}const oV=(()=>{function n(){return Error.call(this),this.message="argument out of range",this.name="ArgumentOutOfRangeError",this}return n.prototype=Object.create(Error.prototype),n})();function Ei(n){return t=>0===n?eh():t.lift(new aV(n))}class aV{constructor(t){if(this.total=t,this.total<0)throw new oV}call(t,e){return e.subscribe(new lV(t,this.total))}}class lV extends ye{constructor(t,e){super(t),this.total=e,this.count=0}_next(t){const e=this.total,i=++this.count;i<=e&&(this.destination.next(t),i===e&&(this.destination.complete(),this.unsubscribe()))}}const cV=["connectionContainer"],uV=["inputContainer"],dV=["label"];function hV(n,t){1&n&&(Hi(0),K(1,"div",14),Xn(2,"div",15)(3,"div",16)(4,"div",17),J(),K(5,"div",18),Xn(6,"div",15)(7,"div",16)(8,"div",17),J(),ji())}function fV(n,t){if(1&n){const e=$i();K(0,"div",19),Ae("cdkObserveContent",function(){return gn(e),ue().updateOutlineGap()}),Gt(1,1),J()}2&n&&$("cdkObserveContentDisabled","outline"!=ue().appearance)}function pV(n,t){if(1&n&&(Hi(0),Gt(1,2),K(2,"span"),wt(3),J(),ji()),2&n){const e=ue(2);j(3),wn(e._control.placeholder)}}function mV(n,t){1&n&&Gt(0,3,["*ngSwitchCase","true"])}function gV(n,t){1&n&&(K(0,"span",23),wt(1," *"),J())}function _V(n,t){if(1&n){const e=$i();K(0,"label",20,21),Ae("cdkObserveContent",function(){return gn(e),ue().updateOutlineGap()}),Te(2,pV,4,1,"ng-container",12),Te(3,mV,1,0,"ng-content",12),Te(4,gV,2,0,"span",22),J()}if(2&n){const e=ue();mt("mat-empty",e._control.empty&&!e._shouldAlwaysFloat())("mat-form-field-empty",e._control.empty&&!e._shouldAlwaysFloat())("mat-accent","accent"==e.color)("mat-warn","warn"==e.color),$("cdkObserveContentDisabled","outline"!=e.appearance)("id",e._labelId)("ngSwitch",e._hasLabel()),nt("for",e._control.id)("aria-owns",e._control.id),j(2),$("ngSwitchCase",!1),j(1),$("ngSwitchCase",!0),j(1),$("ngIf",!e.hideRequiredMarker&&e._control.required&&!e._control.disabled)}}function yV(n,t){1&n&&(K(0,"div",24),Gt(1,4),J())}function vV(n,t){if(1&n&&(K(0,"div",25),Xn(1,"span",26),J()),2&n){const e=ue();j(1),mt("mat-accent","accent"==e.color)("mat-warn","warn"==e.color)}}function bV(n,t){1&n&&(K(0,"div"),Gt(1,5),J()),2&n&&$("@transitionMessages",ue()._subscriptAnimationState)}function CV(n,t){if(1&n&&(K(0,"div",30),wt(1),J()),2&n){const e=ue(2);$("id",e._hintLabelId),j(1),wn(e.hintLabel)}}function wV(n,t){if(1&n&&(K(0,"div",27),Te(1,CV,2,2,"div",28),Gt(2,6),Xn(3,"div",29),Gt(4,7),J()),2&n){const e=ue();$("@transitionMessages",e._subscriptAnimationState),j(1),$("ngIf",e.hintLabel)}}const EV=["*",[["","matPrefix",""]],[["mat-placeholder"]],[["mat-label"]],[["","matSuffix",""]],[["mat-error"]],[["mat-hint",3,"align","end"]],[["mat-hint","align","end"]]],DV=["*","[matPrefix]","mat-placeholder","mat-label","[matSuffix]","mat-error","mat-hint:not([align='end'])","mat-hint[align='end']"];let SV=0;const Pw=new T("MatError");let MV=(()=>{class n{constructor(e,i){this.id="mat-error-"+SV++,e||i.nativeElement.setAttribute("aria-live","polite")}}return n.\u0275fac=function(e){return new(e||n)(Ds("aria-live"),g(Ee))},n.\u0275dir=k({type:n,selectors:[["mat-error"]],hostAttrs:["aria-atomic","true",1,"mat-error"],hostVars:1,hostBindings:function(e,i){2&e&&nt("id",i.id)},inputs:{id:"id"},features:[oe([{provide:Pw,useExisting:n}])]}),n})();const TV={transitionMessages:ub("transitionMessages",[ih("enter",jn({opacity:1,transform:"translateY(0%)"})),rh("void => enter",[jn({opacity:0,transform:"translateY(-5px)"}),nh("300ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])};let ff=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=k({type:n}),n})(),AV=0;const Lw=new T("MatHint");let IV=(()=>{class n{constructor(){this.align="start",this.id="mat-hint-"+AV++}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=k({type:n,selectors:[["mat-hint"]],hostAttrs:[1,"mat-hint"],hostVars:4,hostBindings:function(e,i){2&e&&(nt("id",i.id)("align",null),mt("mat-form-field-hint-end","end"===i.align))},inputs:{align:"align",id:"id"},features:[oe([{provide:Lw,useExisting:n}])]}),n})(),pf=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=k({type:n,selectors:[["mat-label"]]}),n})(),xV=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=k({type:n,selectors:[["mat-placeholder"]]}),n})();const kV=new T("MatPrefix"),Vw=new T("MatSuffix");let OV=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=k({type:n,selectors:[["","matSuffix",""]],features:[oe([{provide:Vw,useExisting:n}])]}),n})(),Bw=0;const RV=cf(class{constructor(n){this._elementRef=n}},"primary"),NV=new T("MAT_FORM_FIELD_DEFAULT_OPTIONS"),mf=new T("MatFormField");let PV=(()=>{class n extends RV{constructor(e,i,r,s,o,a,l){super(e),this._changeDetectorRef=i,this._dir=r,this._defaults=s,this._platform=o,this._ngZone=a,this._outlineGapCalculationNeededImmediately=!1,this._outlineGapCalculationNeededOnStable=!1,this._destroyed=new de,this._showAlwaysAnimate=!1,this._subscriptAnimationState="",this._hintLabel="",this._hintLabelId="mat-hint-"+Bw++,this._labelId="mat-form-field-label-"+Bw++,this.floatLabel=this._getDefaultFloatLabelState(),this._animationsEnabled="NoopAnimations"!==l,this.appearance=s&&s.appearance?s.appearance:"legacy",this._hideRequiredMarker=!(!s||null==s.hideRequiredMarker)&&s.hideRequiredMarker}get appearance(){return this._appearance}set appearance(e){const i=this._appearance;this._appearance=e||this._defaults&&this._defaults.appearance||"legacy","outline"===this._appearance&&i!==e&&(this._outlineGapCalculationNeededOnStable=!0)}get hideRequiredMarker(){return this._hideRequiredMarker}set hideRequiredMarker(e){this._hideRequiredMarker=cn(e)}_shouldAlwaysFloat(){return"always"===this.floatLabel&&!this._showAlwaysAnimate}_canLabelFloat(){return"never"!==this.floatLabel}get hintLabel(){return this._hintLabel}set hintLabel(e){this._hintLabel=e,this._processHints()}get floatLabel(){return"legacy"!==this.appearance&&"never"===this._floatLabel?"auto":this._floatLabel}set floatLabel(e){e!==this._floatLabel&&(this._floatLabel=e||this._getDefaultFloatLabelState(),this._changeDetectorRef.markForCheck())}get _control(){return this._explicitFormFieldControl||this._controlNonStatic||this._controlStatic}set _control(e){this._explicitFormFieldControl=e}getLabelId(){return this._hasFloatingLabel()?this._labelId:null}getConnectedOverlayOrigin(){return this._connectionContainerRef||this._elementRef}ngAfterContentInit(){this._validateControlChild();const e=this._control;e.controlType&&this._elementRef.nativeElement.classList.add(`mat-form-field-type-${e.controlType}`),e.stateChanges.pipe(Do(null)).subscribe(()=>{this._validatePlaceholders(),this._syncDescribedByIds(),this._changeDetectorRef.markForCheck()}),e.ngControl&&e.ngControl.valueChanges&&e.ngControl.valueChanges.pipe(Ot(this._destroyed)).subscribe(()=>this._changeDetectorRef.markForCheck()),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.pipe(Ot(this._destroyed)).subscribe(()=>{this._outlineGapCalculationNeededOnStable&&this.updateOutlineGap()})}),si(this._prefixChildren.changes,this._suffixChildren.changes).subscribe(()=>{this._outlineGapCalculationNeededOnStable=!0,this._changeDetectorRef.markForCheck()}),this._hintChildren.changes.pipe(Do(null)).subscribe(()=>{this._processHints(),this._changeDetectorRef.markForCheck()}),this._errorChildren.changes.pipe(Do(null)).subscribe(()=>{this._syncDescribedByIds(),this._changeDetectorRef.markForCheck()}),this._dir&&this._dir.change.pipe(Ot(this._destroyed)).subscribe(()=>{"function"==typeof requestAnimationFrame?this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>this.updateOutlineGap())}):this.updateOutlineGap()})}ngAfterContentChecked(){this._validateControlChild(),this._outlineGapCalculationNeededImmediately&&this.updateOutlineGap()}ngAfterViewInit(){this._subscriptAnimationState="enter",this._changeDetectorRef.detectChanges()}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete()}_shouldForward(e){const i=this._control?this._control.ngControl:null;return i&&i[e]}_hasPlaceholder(){return!!(this._control&&this._control.placeholder||this._placeholderChild)}_hasLabel(){return!(!this._labelChildNonStatic&&!this._labelChildStatic)}_shouldLabelFloat(){return this._canLabelFloat()&&(this._control&&this._control.shouldLabelFloat||this._shouldAlwaysFloat())}_hideControlPlaceholder(){return"legacy"===this.appearance&&!this._hasLabel()||this._hasLabel()&&!this._shouldLabelFloat()}_hasFloatingLabel(){return this._hasLabel()||"legacy"===this.appearance&&this._hasPlaceholder()}_getDisplayedMessages(){return this._errorChildren&&this._errorChildren.length>0&&this._control.errorState?"error":"hint"}_animateAndLockLabel(){this._hasFloatingLabel()&&this._canLabelFloat()&&(this._animationsEnabled&&this._label&&(this._showAlwaysAnimate=!0,ss(this._label.nativeElement,"transitionend").pipe(Ei(1)).subscribe(()=>{this._showAlwaysAnimate=!1})),this.floatLabel="always",this._changeDetectorRef.markForCheck())}_validatePlaceholders(){}_processHints(){this._validateHints(),this._syncDescribedByIds()}_validateHints(){}_getDefaultFloatLabelState(){return this._defaults&&this._defaults.floatLabel||"auto"}_syncDescribedByIds(){if(this._control){let e=[];if(this._control.userAriaDescribedBy&&"string"==typeof this._control.userAriaDescribedBy&&e.push(...this._control.userAriaDescribedBy.split(" ")),"hint"===this._getDisplayedMessages()){const i=this._hintChildren?this._hintChildren.find(s=>"start"===s.align):null,r=this._hintChildren?this._hintChildren.find(s=>"end"===s.align):null;i?e.push(i.id):this._hintLabel&&e.push(this._hintLabelId),r&&e.push(r.id)}else this._errorChildren&&e.push(...this._errorChildren.map(i=>i.id));this._control.setDescribedByIds(e)}}_validateControlChild(){}updateOutlineGap(){const e=this._label?this._label.nativeElement:null,i=this._connectionContainerRef.nativeElement,r=".mat-form-field-outline-start",s=".mat-form-field-outline-gap";if("outline"!==this.appearance||!this._platform.isBrowser)return;if(!e||!e.children.length||!e.textContent.trim()){const u=i.querySelectorAll(`${r}, ${s}`);for(let d=0;d<u.length;d++)u[d].style.width="0";return}if(!this._isAttachedToDOM())return void(this._outlineGapCalculationNeededImmediately=!0);let o=0,a=0;const l=i.querySelectorAll(r),c=i.querySelectorAll(s);if(this._label&&this._label.nativeElement.children.length){const u=i.getBoundingClientRect();if(0===u.width&&0===u.height)return this._outlineGapCalculationNeededOnStable=!0,void(this._outlineGapCalculationNeededImmediately=!1);const d=this._getStartEnd(u),h=e.children,f=this._getStartEnd(h[0].getBoundingClientRect());let p=0;for(let m=0;m<h.length;m++)p+=h[m].offsetWidth;o=Math.abs(f-d)-5,a=p>0?.75*p+10:0}for(let u=0;u<l.length;u++)l[u].style.width=`${o}px`;for(let u=0;u<c.length;u++)c[u].style.width=`${a}px`;this._outlineGapCalculationNeededOnStable=this._outlineGapCalculationNeededImmediately=!1}_getStartEnd(e){return this._dir&&"rtl"===this._dir.value?e.right:e.left}_isAttachedToDOM(){const e=this._elementRef.nativeElement;if(e.getRootNode){const i=e.getRootNode();return i&&i!==e}return document.documentElement.contains(e)}}return n.\u0275fac=function(e){return new(e||n)(g(Ee),g(ei),g(Bl,8),g(NV,8),g(St),g(le),g(ts,8))},n.\u0275cmp=An({type:n,selectors:[["mat-form-field"]],contentQueries:function(e,i,r){if(1&e&&(rn(r,ff,5),rn(r,ff,7),rn(r,pf,5),rn(r,pf,7),rn(r,xV,5),rn(r,Pw,5),rn(r,Lw,5),rn(r,kV,5),rn(r,Vw,5)),2&e){let s;Ue(s=ze())&&(i._controlNonStatic=s.first),Ue(s=ze())&&(i._controlStatic=s.first),Ue(s=ze())&&(i._labelChildNonStatic=s.first),Ue(s=ze())&&(i._labelChildStatic=s.first),Ue(s=ze())&&(i._placeholderChild=s.first),Ue(s=ze())&&(i._errorChildren=s),Ue(s=ze())&&(i._hintChildren=s),Ue(s=ze())&&(i._prefixChildren=s),Ue(s=ze())&&(i._suffixChildren=s)}},viewQuery:function(e,i){if(1&e&&(Qn(cV,7),Qn(uV,5),Qn(dV,5)),2&e){let r;Ue(r=ze())&&(i._connectionContainerRef=r.first),Ue(r=ze())&&(i._inputContainerRef=r.first),Ue(r=ze())&&(i._label=r.first)}},hostAttrs:[1,"mat-form-field"],hostVars:40,hostBindings:function(e,i){2&e&&mt("mat-form-field-appearance-standard","standard"==i.appearance)("mat-form-field-appearance-fill","fill"==i.appearance)("mat-form-field-appearance-outline","outline"==i.appearance)("mat-form-field-appearance-legacy","legacy"==i.appearance)("mat-form-field-invalid",i._control.errorState)("mat-form-field-can-float",i._canLabelFloat())("mat-form-field-should-float",i._shouldLabelFloat())("mat-form-field-has-label",i._hasFloatingLabel())("mat-form-field-hide-placeholder",i._hideControlPlaceholder())("mat-form-field-disabled",i._control.disabled)("mat-form-field-autofilled",i._control.autofilled)("mat-focused",i._control.focused)("ng-untouched",i._shouldForward("untouched"))("ng-touched",i._shouldForward("touched"))("ng-pristine",i._shouldForward("pristine"))("ng-dirty",i._shouldForward("dirty"))("ng-valid",i._shouldForward("valid"))("ng-invalid",i._shouldForward("invalid"))("ng-pending",i._shouldForward("pending"))("_mat-animation-noopable",!i._animationsEnabled)},inputs:{color:"color",appearance:"appearance",hideRequiredMarker:"hideRequiredMarker",hintLabel:"hintLabel",floatLabel:"floatLabel"},exportAs:["matFormField"],features:[oe([{provide:mf,useExisting:n}]),q],ngContentSelectors:DV,decls:15,vars:8,consts:[[1,"mat-form-field-wrapper"],[1,"mat-form-field-flex",3,"click"],["connectionContainer",""],[4,"ngIf"],["class","mat-form-field-prefix",3,"cdkObserveContentDisabled","cdkObserveContent",4,"ngIf"],[1,"mat-form-field-infix"],["inputContainer",""],[1,"mat-form-field-label-wrapper"],["class","mat-form-field-label",3,"cdkObserveContentDisabled","id","mat-empty","mat-form-field-empty","mat-accent","mat-warn","ngSwitch","cdkObserveContent",4,"ngIf"],["class","mat-form-field-suffix",4,"ngIf"],["class","mat-form-field-underline",4,"ngIf"],[1,"mat-form-field-subscript-wrapper",3,"ngSwitch"],[4,"ngSwitchCase"],["class","mat-form-field-hint-wrapper",4,"ngSwitchCase"],[1,"mat-form-field-outline"],[1,"mat-form-field-outline-start"],[1,"mat-form-field-outline-gap"],[1,"mat-form-field-outline-end"],[1,"mat-form-field-outline","mat-form-field-outline-thick"],[1,"mat-form-field-prefix",3,"cdkObserveContentDisabled","cdkObserveContent"],[1,"mat-form-field-label",3,"cdkObserveContentDisabled","id","ngSwitch","cdkObserveContent"],["label",""],["class","mat-placeholder-required mat-form-field-required-marker","aria-hidden","true",4,"ngIf"],["aria-hidden","true",1,"mat-placeholder-required","mat-form-field-required-marker"],[1,"mat-form-field-suffix"],[1,"mat-form-field-underline"],[1,"mat-form-field-ripple"],[1,"mat-form-field-hint-wrapper"],["class","mat-hint",3,"id",4,"ngIf"],[1,"mat-form-field-hint-spacer"],[1,"mat-hint",3,"id"]],template:function(e,i){1&e&&(Gr(EV),K(0,"div",0)(1,"div",1,2),Ae("click",function(s){return i._control.onContainerClick&&i._control.onContainerClick(s)}),Te(3,hV,9,0,"ng-container",3),Te(4,fV,2,1,"div",4),K(5,"div",5,6),Gt(7),K(8,"span",7),Te(9,_V,5,16,"label",8),J()(),Te(10,yV,2,0,"div",9),J(),Te(11,vV,2,4,"div",10),K(12,"div",11),Te(13,bV,2,1,"div",12),Te(14,wV,5,2,"div",13),J()()),2&e&&(j(3),$("ngIf","outline"==i.appearance),j(1),$("ngIf",i._prefixChildren.length),j(5),$("ngIf",i._hasFloatingLabel()),j(1),$("ngIf",i._suffixChildren.length),j(1),$("ngIf","outline"!=i.appearance),j(1),$("ngSwitch",i._getDisplayedMessages()),j(1),$("ngSwitchCase","error"),j(1),$("ngSwitchCase","hint"))},directives:[Wa,yL,Ya,Hv],styles:[".mat-form-field{display:inline-block;position:relative;text-align:left}[dir=rtl] .mat-form-field{text-align:right}.mat-form-field-wrapper{position:relative}.mat-form-field-flex{display:inline-flex;align-items:baseline;box-sizing:border-box;width:100%}.mat-form-field-prefix,.mat-form-field-suffix{white-space:nowrap;flex:none;position:relative}.mat-form-field-infix{display:block;position:relative;flex:auto;min-width:0;width:180px}.cdk-high-contrast-active .mat-form-field-infix{border-image:linear-gradient(transparent, transparent)}.mat-form-field-label-wrapper{position:absolute;left:0;box-sizing:content-box;width:100%;height:100%;overflow:hidden;pointer-events:none}[dir=rtl] .mat-form-field-label-wrapper{left:auto;right:0}.mat-form-field-label{position:absolute;left:0;font:inherit;pointer-events:none;width:100%;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;transform-origin:0 0;transition:transform 400ms cubic-bezier(0.25, 0.8, 0.25, 1),color 400ms cubic-bezier(0.25, 0.8, 0.25, 1),width 400ms cubic-bezier(0.25, 0.8, 0.25, 1);display:none}[dir=rtl] .mat-form-field-label{transform-origin:100% 0;left:auto;right:0}.mat-form-field-empty.mat-form-field-label,.mat-form-field-can-float.mat-form-field-should-float .mat-form-field-label{display:block}.mat-form-field-autofill-control:-webkit-autofill+.mat-form-field-label-wrapper .mat-form-field-label{display:none}.mat-form-field-can-float .mat-form-field-autofill-control:-webkit-autofill+.mat-form-field-label-wrapper .mat-form-field-label{display:block;transition:none}.mat-input-server:focus+.mat-form-field-label-wrapper .mat-form-field-label,.mat-input-server[placeholder]:not(:placeholder-shown)+.mat-form-field-label-wrapper .mat-form-field-label{display:none}.mat-form-field-can-float .mat-input-server:focus+.mat-form-field-label-wrapper .mat-form-field-label,.mat-form-field-can-float .mat-input-server[placeholder]:not(:placeholder-shown)+.mat-form-field-label-wrapper .mat-form-field-label{display:block}.mat-form-field-label:not(.mat-form-field-empty){transition:none}.mat-form-field-underline{position:absolute;width:100%;pointer-events:none;transform:scale3d(1, 1.0001, 1)}.mat-form-field-ripple{position:absolute;left:0;width:100%;transform-origin:50%;transform:scaleX(0.5);opacity:0;transition:background-color 300ms cubic-bezier(0.55, 0, 0.55, 0.2)}.mat-form-field.mat-focused .mat-form-field-ripple,.mat-form-field.mat-form-field-invalid .mat-form-field-ripple{opacity:1;transform:none;transition:transform 300ms cubic-bezier(0.25, 0.8, 0.25, 1),opacity 100ms cubic-bezier(0.25, 0.8, 0.25, 1),background-color 300ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-form-field-subscript-wrapper{position:absolute;box-sizing:border-box;width:100%;overflow:hidden}.mat-form-field-subscript-wrapper .mat-icon,.mat-form-field-label-wrapper .mat-icon{width:1em;height:1em;font-size:inherit;vertical-align:baseline}.mat-form-field-hint-wrapper{display:flex}.mat-form-field-hint-spacer{flex:1 0 1em}.mat-error{display:block}.mat-form-field-control-wrapper{position:relative}.mat-form-field-hint-end{order:1}.mat-form-field._mat-animation-noopable .mat-form-field-label,.mat-form-field._mat-animation-noopable .mat-form-field-ripple{transition:none}\n",'.mat-form-field-appearance-fill .mat-form-field-flex{border-radius:4px 4px 0 0;padding:.75em .75em 0 .75em}.cdk-high-contrast-active .mat-form-field-appearance-fill .mat-form-field-flex{outline:solid 1px}.cdk-high-contrast-active .mat-form-field-appearance-fill.mat-focused .mat-form-field-flex{outline:dashed 3px}.mat-form-field-appearance-fill .mat-form-field-underline::before{content:"";display:block;position:absolute;bottom:0;height:1px;width:100%}.mat-form-field-appearance-fill .mat-form-field-ripple{bottom:0;height:2px}.cdk-high-contrast-active .mat-form-field-appearance-fill .mat-form-field-ripple{height:0}.mat-form-field-appearance-fill:not(.mat-form-field-disabled) .mat-form-field-flex:hover~.mat-form-field-underline .mat-form-field-ripple{opacity:1;transform:none;transition:opacity 600ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-form-field-appearance-fill._mat-animation-noopable:not(.mat-form-field-disabled) .mat-form-field-flex:hover~.mat-form-field-underline .mat-form-field-ripple{transition:none}.mat-form-field-appearance-fill .mat-form-field-subscript-wrapper{padding:0 1em}\n','.mat-input-element{font:inherit;background:transparent;color:currentColor;border:none;outline:none;padding:0;margin:0;width:100%;max-width:100%;vertical-align:bottom;text-align:inherit;box-sizing:content-box}.mat-input-element:-moz-ui-invalid{box-shadow:none}.mat-input-element,.mat-input-element::-webkit-search-cancel-button,.mat-input-element::-webkit-search-decoration,.mat-input-element::-webkit-search-results-button,.mat-input-element::-webkit-search-results-decoration{-webkit-appearance:none}.mat-input-element::-webkit-contacts-auto-fill-button,.mat-input-element::-webkit-caps-lock-indicator,.mat-input-element:not([type=password])::-webkit-credentials-auto-fill-button{visibility:hidden}.mat-input-element[type=date],.mat-input-element[type=datetime],.mat-input-element[type=datetime-local],.mat-input-element[type=month],.mat-input-element[type=week],.mat-input-element[type=time]{line-height:1}.mat-input-element[type=date]::after,.mat-input-element[type=datetime]::after,.mat-input-element[type=datetime-local]::after,.mat-input-element[type=month]::after,.mat-input-element[type=week]::after,.mat-input-element[type=time]::after{content:" ";white-space:pre;width:1px}.mat-input-element::-webkit-inner-spin-button,.mat-input-element::-webkit-calendar-picker-indicator,.mat-input-element::-webkit-clear-button{font-size:.75em}.mat-input-element::placeholder{-webkit-user-select:none;-moz-user-select:none;user-select:none;transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-input-element::-moz-placeholder{-webkit-user-select:none;-moz-user-select:none;user-select:none;transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-input-element::-webkit-input-placeholder{-webkit-user-select:none;-moz-user-select:none;user-select:none;transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-input-element:-ms-input-placeholder{-webkit-user-select:none;-moz-user-select:none;user-select:none;transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-form-field-hide-placeholder .mat-input-element::placeholder{color:transparent !important;-webkit-text-fill-color:transparent;transition:none}.cdk-high-contrast-active .mat-form-field-hide-placeholder .mat-input-element::placeholder{opacity:0}.mat-form-field-hide-placeholder .mat-input-element::-moz-placeholder{color:transparent !important;-webkit-text-fill-color:transparent;transition:none}.cdk-high-contrast-active .mat-form-field-hide-placeholder .mat-input-element::-moz-placeholder{opacity:0}.mat-form-field-hide-placeholder .mat-input-element::-webkit-input-placeholder{color:transparent !important;-webkit-text-fill-color:transparent;transition:none}.cdk-high-contrast-active .mat-form-field-hide-placeholder .mat-input-element::-webkit-input-placeholder{opacity:0}.mat-form-field-hide-placeholder .mat-input-element:-ms-input-placeholder{color:transparent !important;-webkit-text-fill-color:transparent;transition:none}.cdk-high-contrast-active .mat-form-field-hide-placeholder .mat-input-element:-ms-input-placeholder{opacity:0}textarea.mat-input-element{resize:vertical;overflow:auto}textarea.mat-input-element.cdk-textarea-autosize{resize:none}textarea.mat-input-element{padding:2px 0;margin:-2px 0}select.mat-input-element{-moz-appearance:none;-webkit-appearance:none;position:relative;background-color:transparent;display:inline-flex;box-sizing:border-box;padding-top:1em;top:-1em;margin-bottom:-1em}select.mat-input-element::-moz-focus-inner{border:0}select.mat-input-element:not(:disabled){cursor:pointer}.mat-form-field-type-mat-native-select .mat-form-field-infix::after{content:"";width:0;height:0;border-left:5px solid transparent;border-right:5px solid transparent;border-top:5px solid;position:absolute;top:50%;right:0;margin-top:-2.5px;pointer-events:none}[dir=rtl] .mat-form-field-type-mat-native-select .mat-form-field-infix::after{right:auto;left:0}.mat-form-field-type-mat-native-select .mat-input-element{padding-right:15px}[dir=rtl] .mat-form-field-type-mat-native-select .mat-input-element{padding-right:0;padding-left:15px}.mat-form-field-type-mat-native-select .mat-form-field-label-wrapper{max-width:calc(100% - 10px)}.mat-form-field-type-mat-native-select.mat-form-field-appearance-outline .mat-form-field-infix::after{margin-top:-5px}.mat-form-field-type-mat-native-select.mat-form-field-appearance-fill .mat-form-field-infix::after{margin-top:-10px}\n',".mat-form-field-appearance-legacy .mat-form-field-label{transform:perspective(100px)}.mat-form-field-appearance-legacy .mat-form-field-prefix .mat-icon,.mat-form-field-appearance-legacy .mat-form-field-suffix .mat-icon{width:1em}.mat-form-field-appearance-legacy .mat-form-field-prefix .mat-icon-button,.mat-form-field-appearance-legacy .mat-form-field-suffix .mat-icon-button{font:inherit;vertical-align:baseline}.mat-form-field-appearance-legacy .mat-form-field-prefix .mat-icon-button .mat-icon,.mat-form-field-appearance-legacy .mat-form-field-suffix .mat-icon-button .mat-icon{font-size:inherit}.mat-form-field-appearance-legacy .mat-form-field-underline{height:1px}.cdk-high-contrast-active .mat-form-field-appearance-legacy .mat-form-field-underline{height:0;border-top:solid 1px}.mat-form-field-appearance-legacy .mat-form-field-ripple{top:0;height:2px;overflow:hidden}.cdk-high-contrast-active .mat-form-field-appearance-legacy .mat-form-field-ripple{height:0;border-top:solid 2px}.mat-form-field-appearance-legacy.mat-form-field-disabled .mat-form-field-underline{background-position:0;background-color:transparent}.cdk-high-contrast-active .mat-form-field-appearance-legacy.mat-form-field-disabled .mat-form-field-underline{border-top-style:dotted;border-top-width:2px}.mat-form-field-appearance-legacy.mat-form-field-invalid:not(.mat-focused) .mat-form-field-ripple{height:1px}\n",".mat-form-field-appearance-outline .mat-form-field-wrapper{margin:.25em 0}.mat-form-field-appearance-outline .mat-form-field-flex{padding:0 .75em 0 .75em;margin-top:-0.25em;position:relative}.mat-form-field-appearance-outline .mat-form-field-prefix,.mat-form-field-appearance-outline .mat-form-field-suffix{top:.25em}.mat-form-field-appearance-outline .mat-form-field-outline{display:flex;position:absolute;top:.25em;left:0;right:0;bottom:0;pointer-events:none}.mat-form-field-appearance-outline .mat-form-field-outline-start,.mat-form-field-appearance-outline .mat-form-field-outline-end{border:1px solid currentColor;min-width:5px}.mat-form-field-appearance-outline .mat-form-field-outline-start{border-radius:5px 0 0 5px;border-right-style:none}[dir=rtl] .mat-form-field-appearance-outline .mat-form-field-outline-start{border-right-style:solid;border-left-style:none;border-radius:0 5px 5px 0}.mat-form-field-appearance-outline .mat-form-field-outline-end{border-radius:0 5px 5px 0;border-left-style:none;flex-grow:1}[dir=rtl] .mat-form-field-appearance-outline .mat-form-field-outline-end{border-left-style:solid;border-right-style:none;border-radius:5px 0 0 5px}.mat-form-field-appearance-outline .mat-form-field-outline-gap{border-radius:.000001px;border:1px solid currentColor;border-left-style:none;border-right-style:none}.mat-form-field-appearance-outline.mat-form-field-can-float.mat-form-field-should-float .mat-form-field-outline-gap{border-top-color:transparent}.mat-form-field-appearance-outline .mat-form-field-outline-thick{opacity:0}.mat-form-field-appearance-outline .mat-form-field-outline-thick .mat-form-field-outline-start,.mat-form-field-appearance-outline .mat-form-field-outline-thick .mat-form-field-outline-end,.mat-form-field-appearance-outline .mat-form-field-outline-thick .mat-form-field-outline-gap{border-width:2px}.mat-form-field-appearance-outline.mat-focused .mat-form-field-outline,.mat-form-field-appearance-outline.mat-form-field-invalid .mat-form-field-outline{opacity:0;transition:opacity 100ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-form-field-appearance-outline.mat-focused .mat-form-field-outline-thick,.mat-form-field-appearance-outline.mat-form-field-invalid .mat-form-field-outline-thick{opacity:1}.cdk-high-contrast-active .mat-form-field-appearance-outline.mat-focused .mat-form-field-outline-thick{border:3px dashed}.mat-form-field-appearance-outline:not(.mat-form-field-disabled) .mat-form-field-flex:hover .mat-form-field-outline{opacity:0;transition:opacity 600ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-form-field-appearance-outline:not(.mat-form-field-disabled) .mat-form-field-flex:hover .mat-form-field-outline-thick{opacity:1}.mat-form-field-appearance-outline .mat-form-field-subscript-wrapper{padding:0 1em}.mat-form-field-appearance-outline._mat-animation-noopable:not(.mat-form-field-disabled) .mat-form-field-flex:hover~.mat-form-field-outline,.mat-form-field-appearance-outline._mat-animation-noopable .mat-form-field-outline,.mat-form-field-appearance-outline._mat-animation-noopable .mat-form-field-outline-start,.mat-form-field-appearance-outline._mat-animation-noopable .mat-form-field-outline-end,.mat-form-field-appearance-outline._mat-animation-noopable .mat-form-field-outline-gap{transition:none}\n",".mat-form-field-appearance-standard .mat-form-field-flex{padding-top:.75em}.mat-form-field-appearance-standard .mat-form-field-underline{height:1px}.cdk-high-contrast-active .mat-form-field-appearance-standard .mat-form-field-underline{height:0;border-top:solid 1px}.mat-form-field-appearance-standard .mat-form-field-ripple{bottom:0;height:2px}.cdk-high-contrast-active .mat-form-field-appearance-standard .mat-form-field-ripple{height:0;border-top:solid 2px}.mat-form-field-appearance-standard.mat-form-field-disabled .mat-form-field-underline{background-position:0;background-color:transparent}.cdk-high-contrast-active .mat-form-field-appearance-standard.mat-form-field-disabled .mat-form-field-underline{border-top-style:dotted;border-top-width:2px}.mat-form-field-appearance-standard:not(.mat-form-field-disabled) .mat-form-field-flex:hover~.mat-form-field-underline .mat-form-field-ripple{opacity:1;transform:none;transition:opacity 600ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-form-field-appearance-standard._mat-animation-noopable:not(.mat-form-field-disabled) .mat-form-field-flex:hover~.mat-form-field-underline .mat-form-field-ripple{transition:none}\n"],encapsulation:2,data:{animation:[TV.transitionMessages]},changeDetection:0}),n})(),gf=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=me({type:n}),n.\u0275inj=ce({imports:[[ao,Tt,uw],Tt]}),n})();const jw=go({passive:!0});let LV=(()=>{class n{constructor(e,i){this._platform=e,this._ngZone=i,this._monitoredElements=new Map}monitor(e){if(!this._platform.isBrowser)return ab;const i=ii(e),r=this._monitoredElements.get(i);if(r)return r.subject;const s=new de,o="cdk-text-field-autofilled",a=l=>{"cdk-text-field-autofill-start"!==l.animationName||i.classList.contains(o)?"cdk-text-field-autofill-end"===l.animationName&&i.classList.contains(o)&&(i.classList.remove(o),this._ngZone.run(()=>s.next({target:l.target,isAutofilled:!1}))):(i.classList.add(o),this._ngZone.run(()=>s.next({target:l.target,isAutofilled:!0})))};return this._ngZone.runOutsideAngular(()=>{i.addEventListener("animationstart",a,jw),i.classList.add("cdk-text-field-autofill-monitored")}),this._monitoredElements.set(i,{subject:s,unlisten:()=>{i.removeEventListener("animationstart",a,jw)}}),s}stopMonitoring(e){const i=ii(e),r=this._monitoredElements.get(i);r&&(r.unlisten(),r.subject.complete(),i.classList.remove("cdk-text-field-autofill-monitored"),i.classList.remove("cdk-text-field-autofilled"),this._monitoredElements.delete(i))}ngOnDestroy(){this._monitoredElements.forEach((e,i)=>this.stopMonitoring(i))}}return n.\u0275fac=function(e){return new(e||n)(v(St),v(le))},n.\u0275prov=x({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),$w=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=me({type:n}),n.\u0275inj=ce({imports:[[Dl]]}),n})();const VV=new T("MAT_INPUT_VALUE_ACCESSOR"),BV=["button","checkbox","file","hidden","image","radio","range","reset","submit"];let HV=0;const jV=$L(class{constructor(n,t,e,i){this._defaultErrorStateMatcher=n,this._parentForm=t,this._parentFormGroup=e,this.ngControl=i}});let Uw=(()=>{class n extends jV{constructor(e,i,r,s,o,a,l,c,u,d){super(a,s,o,r),this._elementRef=e,this._platform=i,this._autofillMonitor=c,this._formField=d,this._uid="mat-input-"+HV++,this.focused=!1,this.stateChanges=new de,this.controlType="mat-input",this.autofilled=!1,this._disabled=!1,this._type="text",this._readonly=!1,this._neverEmptyInputTypes=["date","datetime","datetime-local","month","time","week"].filter(p=>Qb().has(p));const h=this._elementRef.nativeElement,f=h.nodeName.toLowerCase();this._inputValueAccessor=l||h,this._previousNativeValue=this.value,this.id=this.id,i.IOS&&u.runOutsideAngular(()=>{e.nativeElement.addEventListener("keyup",p=>{const m=p.target;!m.value&&0===m.selectionStart&&0===m.selectionEnd&&(m.setSelectionRange(1,1),m.setSelectionRange(0,0))})}),this._isServer=!this._platform.isBrowser,this._isNativeSelect="select"===f,this._isTextarea="textarea"===f,this._isInFormField=!!d,this._isNativeSelect&&(this.controlType=h.multiple?"mat-native-select-multiple":"mat-native-select")}get disabled(){return this.ngControl&&null!==this.ngControl.disabled?this.ngControl.disabled:this._disabled}set disabled(e){this._disabled=cn(e),this.focused&&(this.focused=!1,this.stateChanges.next())}get id(){return this._id}set id(e){this._id=e||this._uid}get required(){var e,i,r,s;return null!==(s=null!==(e=this._required)&&void 0!==e?e:null===(r=null===(i=this.ngControl)||void 0===i?void 0:i.control)||void 0===r?void 0:r.hasValidator($P.required))&&void 0!==s&&s}set required(e){this._required=cn(e)}get type(){return this._type}set type(e){this._type=e||"text",this._validateType(),!this._isTextarea&&Qb().has(this._type)&&(this._elementRef.nativeElement.type=this._type)}get value(){return this._inputValueAccessor.value}set value(e){e!==this.value&&(this._inputValueAccessor.value=e,this.stateChanges.next())}get readonly(){return this._readonly}set readonly(e){this._readonly=cn(e)}ngAfterViewInit(){this._platform.isBrowser&&this._autofillMonitor.monitor(this._elementRef.nativeElement).subscribe(e=>{this.autofilled=e.isAutofilled,this.stateChanges.next()})}ngOnChanges(){this.stateChanges.next()}ngOnDestroy(){this.stateChanges.complete(),this._platform.isBrowser&&this._autofillMonitor.stopMonitoring(this._elementRef.nativeElement)}ngDoCheck(){this.ngControl&&this.updateErrorState(),this._dirtyCheckNativeValue(),this._dirtyCheckPlaceholder()}focus(e){this._elementRef.nativeElement.focus(e)}_focusChanged(e){e!==this.focused&&(this.focused=e,this.stateChanges.next())}_onInput(){}_dirtyCheckPlaceholder(){var e,i;const r=(null===(i=null===(e=this._formField)||void 0===e?void 0:e._hideControlPlaceholder)||void 0===i?void 0:i.call(e))?null:this.placeholder;if(r!==this._previousPlaceholder){const s=this._elementRef.nativeElement;this._previousPlaceholder=r,r?s.setAttribute("placeholder",r):s.removeAttribute("placeholder")}}_dirtyCheckNativeValue(){const e=this._elementRef.nativeElement.value;this._previousNativeValue!==e&&(this._previousNativeValue=e,this.stateChanges.next())}_validateType(){BV.indexOf(this._type)}_isNeverEmpty(){return this._neverEmptyInputTypes.indexOf(this._type)>-1}_isBadInput(){let e=this._elementRef.nativeElement.validity;return e&&e.badInput}get empty(){return!(this._isNeverEmpty()||this._elementRef.nativeElement.value||this._isBadInput()||this.autofilled)}get shouldLabelFloat(){if(this._isNativeSelect){const e=this._elementRef.nativeElement,i=e.options[0];return this.focused||e.multiple||!this.empty||!!(e.selectedIndex>-1&&i&&i.label)}return this.focused||!this.empty}setDescribedByIds(e){e.length?this._elementRef.nativeElement.setAttribute("aria-describedby",e.join(" ")):this._elementRef.nativeElement.removeAttribute("aria-describedby")}onContainerClick(){this.focused||this.focus()}_isInlineSelect(){const e=this._elementRef.nativeElement;return this._isNativeSelect&&(e.multiple||e.size>1)}}return n.\u0275fac=function(e){return new(e||n)(g(Ee),g(St),g(ri,10),g(Ll,8),g(Vl,8),g(Sw),g(VV,10),g(LV),g(le),g(mf,8))},n.\u0275dir=k({type:n,selectors:[["input","matInput",""],["textarea","matInput",""],["select","matNativeControl",""],["input","matNativeControl",""],["textarea","matNativeControl",""]],hostAttrs:[1,"mat-input-element","mat-form-field-autofill-control"],hostVars:12,hostBindings:function(e,i){1&e&&Ae("focus",function(){return i._focusChanged(!0)})("blur",function(){return i._focusChanged(!1)})("input",function(){return i._onInput()}),2&e&&(Ca("disabled",i.disabled)("required",i.required),nt("id",i.id)("data-placeholder",i.placeholder)("name",i.name||null)("readonly",i.readonly&&!i._isNativeSelect||null)("aria-invalid",i.empty&&i.required?null:i.errorState)("aria-required",i.required),mt("mat-input-server",i._isServer)("mat-native-select-inline",i._isInlineSelect()))},inputs:{disabled:"disabled",id:"id",placeholder:"placeholder",name:"name",required:"required",type:"type",errorStateMatcher:"errorStateMatcher",userAriaDescribedBy:["aria-describedby","userAriaDescribedBy"],value:"value",readonly:"readonly"},exportAs:["matInput"],features:[oe([{provide:ff,useExisting:n}]),q,Qt]}),n})(),$V=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=me({type:n}),n.\u0275inj=ce({providers:[Sw],imports:[[$w,gf,Tt],$w,gf]}),n})(),UV=(()=>{class n{constructor(){this.errorStateMatcher={isErrorState:()=>!!this.error||!this.valueCanBeChanged&&this.formControl.dirty},this.formControl=new Kh(""),this.onEnter$=new de,this.valueCanBeChanged=!1}ngOnInit(){this.onEnter$.pipe(jl(100)).subscribe(()=>{var e;this.shouldValueChange(this.formControl.value)&&(null===(e=this.onEnter)||void 0===e||e.call(this,{value:this.modifyValueBeforeChange(this.formControl.value)}))}),this.valueChanges$=this.formControl.valueChanges.pipe(rr(e=>(this.valueCanBeChanged=this.shouldValueChange(e),this.valueCanBeChanged))).subscribe(e=>{this.updateOnBlur||this.triggerValueChange(e)})}triggerValueChange(e){this.onValueChange&&this.onValueChange({value:this.modifyValueBeforeChange(e),metaData:this.metaData})}onEnterKeydown(e){this.onEnter$.next()}onBlur(){this.updateOnBlur&&this.shouldValueChange(this.formControl.value)&&this.triggerValueChange(this.formControl.value)}ngOnChanges(e){var i;this.disabled?this.formControl.disable({emitEvent:!1}):this.formControl.enable({emitEvent:!1}),e.value&&!(null===(i=this.input)||void 0===i?void 0:i.focused)&&this.formControl.setValue(this.value,{emitEvent:!1})}modifyValueBeforeChange(e){return e}shouldValueChange(e){return!0}ngOnDestroy(){this.valueChanges$&&this.valueChanges$.unsubscribe(),this.onEnter$&&this.onEnter$.unsubscribe()}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=x({token:n,factory:n.\u0275fac}),n})(),zV=(()=>{class n extends UV{constructor(){super(...arguments),this.filteredSuggestions=[]}ngOnChanges(e){super.ngOnChanges(e),this.filter()}ngOnInit(){super.ngOnInit(),this.autocompleteChanges$=this.formControl.valueChanges.subscribe(()=>this.filter())}ngOnDestroy(){super.ngOnDestroy(),this.autocompleteChanges$&&this.autocompleteChanges$.unsubscribe()}get suggestionStyle(){return 1!==this.filteredSuggestions.length||this.filteredSuggestions[0]?null:{display:"none"}}filter(){var e;const i=`${this.formControl.value||""}`.toLowerCase();this.filteredSuggestions=(null===(e=this.suggestions)||void 0===e?void 0:e.filter(r=>{var s,o;return(null===(o=null===(s=r.label)||void 0===s?void 0:s.toLowerCase())||void 0===o?void 0:o.includes(i))||""}))||[],this.filteredSuggestions=this.filteredSuggestions.length?this.filteredSuggestions:[null]}triggerFocus(){var e;null===(e=this.onFocus)||void 0===e||e.call(this)}optionSelected(e){this.onEnter$.next()}}return n.\u0275fac=function(){let t;return function(i){return(t||(t=$e(n)))(i||n)}}(),n.\u0275prov=x({token:n,factory:n.\u0275fac}),n})();var GV=kf(959);new class KV extends Sn{flush(t){this.active=!0,this.scheduled=void 0;const{actions:e}=this;let i,r=-1,s=e.length;t=t||e.shift();do{if(i=t.execute(t.state,t.delay))break}while(++r<s&&(t=e.shift()));if(this.active=!1,i){for(;++r<s&&(t=e.shift());)t.unsubscribe();throw i}}}(class qV extends tl{constructor(t,e){super(t,e),this.scheduler=t,this.work=e}requestAsyncId(t,e,i=0){return null!==i&&i>0?super.requestAsyncId(t,e,i):(t.actions.push(this),t.scheduled||(t.scheduled=requestAnimationFrame(()=>t.flush(null))))}recycleAsyncId(t,e,i=0){if(null!==i&&i>0||null===i&&this.delay>0)return super.recycleAsyncId(t,e,i);0===t.actions.length&&(cancelAnimationFrame(e),t.scheduled=void 0)}});let ZV=1;const XV=Promise.resolve(),Gl={};function zw(n){return n in Gl&&(delete Gl[n],!0)}const Gw={setImmediate(n){const t=ZV++;return Gl[t]=!0,XV.then(()=>zw(t)&&n()),t},clearImmediate(n){zw(n)}};new class JV extends Sn{flush(t){this.active=!0,this.scheduled=void 0;const{actions:e}=this;let i,r=-1,s=e.length;t=t||e.shift();do{if(i=t.execute(t.state,t.delay))break}while(++r<s&&(t=e.shift()));if(this.active=!1,i){for(;++r<s&&(t=e.shift());)t.unsubscribe();throw i}}}(class QV extends tl{constructor(t,e){super(t,e),this.scheduler=t,this.work=e}requestAsyncId(t,e,i=0){return null!==i&&i>0?super.requestAsyncId(t,e,i):(t.actions.push(this),t.scheduled||(t.scheduled=Gw.setImmediate(t.flush.bind(t,null))))}recycleAsyncId(t,e,i=0){if(null!==i&&i>0||null===i&&this.delay>0)return super.recycleAsyncId(t,e,i);0===t.actions.length&&(Gw.clearImmediate(e),t.scheduled=void 0)}});class nB{constructor(t){this.durationSelector=t}call(t,e){return e.subscribe(new iB(t,this.durationSelector))}}class iB extends fs{constructor(t,e){super(t),this.durationSelector=e,this.hasValue=!1}_next(t){if(this.value=t,this.hasValue=!0,!this.throttled){let e;try{const{durationSelector:r}=this;e=r(t)}catch(r){return this.destination.error(r)}const i=ps(e,new hs(this));!i||i.closed?this.clearThrottle():this.add(this.throttled=i)}}clearThrottle(){const{value:t,hasValue:e,throttled:i}=this;i&&(this.remove(i),this.throttled=void 0,i.unsubscribe()),e&&(this.value=void 0,this.hasValue=!1,this.destination.next(t))}notifyNext(){this.clearThrottle()}notifyComplete(){this.clearThrottle()}}function Ww(n){return!se(n)&&n-parseFloat(n)+1>=0}function sB(n){const{index:t,period:e,subscriber:i}=n;if(i.next(t),!i.closed){if(-1===e)return i.complete();n.index=t+1,this.schedule(n,e)}}function qw(n,t=Hl){return function tB(n){return function(e){return e.lift(new nB(n))}}(()=>function rB(n=0,t,e){let i=-1;return Ww(t)?i=Number(t)<1?1:Number(t):ur(t)&&(e=t),ur(e)||(e=Hl),new Ce(r=>{const s=Ww(n)?n:+n-e.now();return e.schedule(sB,s,{index:0,period:i,subscriber:r})})}(n,t))}let Kw=(()=>{class n{constructor(e,i,r){this._ngZone=e,this._platform=i,this._scrolled=new de,this._globalSubscription=null,this._scrolledCount=0,this.scrollContainers=new Map,this._document=r}register(e){this.scrollContainers.has(e)||this.scrollContainers.set(e,e.elementScrolled().subscribe(()=>this._scrolled.next(e)))}deregister(e){const i=this.scrollContainers.get(e);i&&(i.unsubscribe(),this.scrollContainers.delete(e))}scrolled(e=20){return this._platform.isBrowser?new Ce(i=>{this._globalSubscription||this._addGlobalListener();const r=e>0?this._scrolled.pipe(qw(e)).subscribe(i):this._scrolled.subscribe(i);return this._scrolledCount++,()=>{r.unsubscribe(),this._scrolledCount--,this._scrolledCount||this._removeGlobalListener()}}):Mn()}ngOnDestroy(){this._removeGlobalListener(),this.scrollContainers.forEach((e,i)=>this.deregister(i)),this._scrolled.complete()}ancestorScrolled(e,i){const r=this.getAncestorScrollContainers(e);return this.scrolled(i).pipe(rr(s=>!s||r.indexOf(s)>-1))}getAncestorScrollContainers(e){const i=[];return this.scrollContainers.forEach((r,s)=>{this._scrollableContainsElement(s,e)&&i.push(s)}),i}_getWindow(){return this._document.defaultView||window}_scrollableContainsElement(e,i){let r=ii(i),s=e.getElementRef().nativeElement;do{if(r==s)return!0}while(r=r.parentElement);return!1}_addGlobalListener(){this._globalSubscription=this._ngZone.runOutsideAngular(()=>ss(this._getWindow().document,"scroll").subscribe(()=>this._scrolled.next()))}_removeGlobalListener(){this._globalSubscription&&(this._globalSubscription.unsubscribe(),this._globalSubscription=null)}}return n.\u0275fac=function(e){return new(e||n)(v(le),v(St),v(Z,8))},n.\u0275prov=x({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),_f=(()=>{class n{constructor(e,i,r){this._platform=e,this._change=new de,this._changeListener=s=>{this._change.next(s)},this._document=r,i.runOutsideAngular(()=>{if(e.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 e=this._getWindow();e.removeEventListener("resize",this._changeListener),e.removeEventListener("orientationchange",this._changeListener)}this._change.complete()}getViewportSize(){this._viewportSize||this._updateViewportSize();const e={width:this._viewportSize.width,height:this._viewportSize.height};return this._platform.isBrowser||(this._viewportSize=null),e}getViewportRect(){const e=this.getViewportScrollPosition(),{width:i,height:r}=this.getViewportSize();return{top:e.top,left:e.left,bottom:e.top+r,right:e.left+i,height:r,width:i}}getViewportScrollPosition(){if(!this._platform.isBrowser)return{top:0,left:0};const e=this._document,i=this._getWindow(),r=e.documentElement,s=r.getBoundingClientRect();return{top:-s.top||e.body.scrollTop||i.scrollY||r.scrollTop||0,left:-s.left||e.body.scrollLeft||i.scrollX||r.scrollLeft||0}}change(e=20){return e>0?this._change.pipe(qw(e)):this._change}_getWindow(){return this._document.defaultView||window}_updateViewportSize(){const e=this._getWindow();this._viewportSize=this._platform.isBrowser?{width:e.innerWidth,height:e.innerHeight}:{width:0,height:0}}}return n.\u0275fac=function(e){return new(e||n)(v(St),v(le),v(Z,8))},n.\u0275prov=x({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),Wl=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=me({type:n}),n.\u0275inj=ce({}),n})(),Yw=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=me({type:n}),n.\u0275inj=ce({imports:[[Co,Dl,Wl],Co,Wl]}),n})();class yf{attach(t){return this._attachedHost=t,t.attach(this)}detach(){let t=this._attachedHost;null!=t&&(this._attachedHost=null,t.detach())}get isAttached(){return null!=this._attachedHost}setAttachedHost(t){this._attachedHost=t}}class Zw extends yf{constructor(t,e,i,r){super(),this.component=t,this.viewContainerRef=e,this.injector=i,this.componentFactoryResolver=r}}class Xw extends yf{constructor(t,e,i){super(),this.templateRef=t,this.viewContainerRef=e,this.context=i}get origin(){return this.templateRef.elementRef}attach(t,e=this.context){return this.context=e,super.attach(t)}detach(){return this.context=void 0,super.detach()}}class lB extends yf{constructor(t){super(),this.element=t instanceof Ee?t.nativeElement:t}}class uB extends class cB{constructor(){this._isDisposed=!1,this.attachDomPortal=null}hasAttached(){return!!this._attachedPortal}attach(t){return t instanceof Zw?(this._attachedPortal=t,this.attachComponentPortal(t)):t instanceof Xw?(this._attachedPortal=t,this.attachTemplatePortal(t)):this.attachDomPortal&&t instanceof lB?(this._attachedPortal=t,this.attachDomPortal(t)):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(t){this._disposeFn=t}_invokeDisposeFn(){this._disposeFn&&(this._disposeFn(),this._disposeFn=null)}}{constructor(t,e,i,r,s){super(),this.outletElement=t,this._componentFactoryResolver=e,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(t){const i=(t.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(t.component);let r;return t.viewContainerRef?(r=t.viewContainerRef.createComponent(i,t.viewContainerRef.length,t.injector||t.viewContainerRef.injector),this.setDisposeFn(()=>r.destroy())):(r=i.create(t.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=t,r}attachTemplatePortal(t){let e=t.viewContainerRef,i=e.createEmbeddedView(t.templateRef,t.context);return i.rootNodes.forEach(r=>this.outletElement.appendChild(r)),i.detectChanges(),this.setDisposeFn(()=>{let r=e.indexOf(i);-1!==r&&e.remove(r)}),this._attachedPortal=t,i}dispose(){super.dispose(),this.outletElement.remove()}_getComponentRootNode(t){return t.hostView.rootNodes[0]}}let dB=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=me({type:n}),n.\u0275inj=ce({}),n})();const Qw=RP();class hB{constructor(t,e){this._viewportRuler=t,this._previousHTMLStyles={top:"",left:""},this._isEnabled=!1,this._document=e}attach(){}enable(){if(this._canBeEnabled()){const t=this._document.documentElement;this._previousScrollPosition=this._viewportRuler.getViewportScrollPosition(),this._previousHTMLStyles.left=t.style.left||"",this._previousHTMLStyles.top=t.style.top||"",t.style.left=qe(-this._previousScrollPosition.left),t.style.top=qe(-this._previousScrollPosition.top),t.classList.add("cdk-global-scrollblock"),this._isEnabled=!0}}disable(){if(this._isEnabled){const t=this._document.documentElement,i=t.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,t.classList.remove("cdk-global-scrollblock"),Qw&&(i.scrollBehavior=r.scrollBehavior="auto"),window.scroll(this._previousScrollPosition.left,this._previousScrollPosition.top),Qw&&(i.scrollBehavior=s,r.scrollBehavior=o)}}_canBeEnabled(){if(this._document.documentElement.classList.contains("cdk-global-scrollblock")||this._isEnabled)return!1;const e=this._document.body,i=this._viewportRuler.getViewportSize();return e.scrollHeight>i.height||e.scrollWidth>i.width}}class fB{constructor(t,e,i,r){this._scrollDispatcher=t,this._ngZone=e,this._viewportRuler=i,this._config=r,this._scrollSubscription=null,this._detach=()=>{this.disable(),this._overlayRef.hasAttached()&&this._ngZone.run(()=>this._overlayRef.detach())}}attach(t){this._overlayRef=t}enable(){if(this._scrollSubscription)return;const t=this._scrollDispatcher.scrolled(0);this._config&&this._config.threshold&&this._config.threshold>1?(this._initialScrollPosition=this._viewportRuler.getViewportScrollPosition().top,this._scrollSubscription=t.subscribe(()=>{const e=this._viewportRuler.getViewportScrollPosition().top;Math.abs(e-this._initialScrollPosition)>this._config.threshold?this._detach():this._overlayRef.updatePosition()})):this._scrollSubscription=t.subscribe(this._detach)}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}}class Jw{enable(){}disable(){}attach(){}}function vf(n,t){return t.some(e=>n.bottom<e.top||n.top>e.bottom||n.right<e.left||n.left>e.right)}function eE(n,t){return t.some(e=>n.top<e.top||n.bottom>e.bottom||n.left<e.left||n.right>e.right)}class pB{constructor(t,e,i,r){this._scrollDispatcher=t,this._viewportRuler=e,this._ngZone=i,this._config=r,this._scrollSubscription=null}attach(t){this._overlayRef=t}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 e=this._overlayRef.overlayElement.getBoundingClientRect(),{width:i,height:r}=this._viewportRuler.getViewportSize();vf(e,[{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 mB=(()=>{class n{constructor(e,i,r,s){this._scrollDispatcher=e,this._viewportRuler=i,this._ngZone=r,this.noop=()=>new Jw,this.close=o=>new fB(this._scrollDispatcher,this._ngZone,this._viewportRuler,o),this.block=()=>new hB(this._viewportRuler,this._document),this.reposition=o=>new pB(this._scrollDispatcher,this._viewportRuler,this._ngZone,o),this._document=s}}return n.\u0275fac=function(e){return new(e||n)(v(Kw),v(_f),v(le),v(Z))},n.\u0275prov=x({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();class tE{constructor(t){if(this.scrollStrategy=new Jw,this.panelClass="",this.hasBackdrop=!1,this.backdropClass="cdk-overlay-dark-backdrop",this.disposeOnNavigation=!1,t){const e=Object.keys(t);for(const i of e)void 0!==t[i]&&(this[i]=t[i])}}}class gB{constructor(t,e){this.connectionPair=t,this.scrollableViewProperties=e}}class _B{constructor(t,e,i,r,s,o,a,l,c){this._portalOutlet=t,this._host=e,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 de,this._attachments=new de,this._detachments=new de,this._locationChanges=W.EMPTY,this._backdropClickHandler=u=>this._backdropClick.next(u),this._keydownEvents=new de,this._outsidePointerEvents=new de,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(t){let e=this._portalOutlet.attach(t);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(Ei(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),e}detach(){if(!this.hasAttached())return;this.detachBackdrop(),this._togglePointerEvents(!1),this._positionStrategy&&this._positionStrategy.detach&&this._positionStrategy.detach(),this._scrollStrategy&&this._scrollStrategy.disable();const t=this._portalOutlet.detach();return this._detachments.next(),this._keyboardDispatcher.remove(this),this._detachContentWhenStable(),this._locationChanges.unsubscribe(),this._outsideClickDispatcher.remove(this),t}dispose(){var t;const e=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===(t=this._host)||void 0===t||t.remove(),this._previousHostParent=this._pane=this._host=null,e&&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(t){t!==this._positionStrategy&&(this._positionStrategy&&this._positionStrategy.dispose(),this._positionStrategy=t,this.hasAttached()&&(t.attach(this),this.updatePosition()))}updateSize(t){this._config=Object.assign(Object.assign({},this._config),t),this._updateElementSize()}setDirection(t){this._config=Object.assign(Object.assign({},this._config),{direction:t}),this._updateElementDirection()}addPanelClass(t){this._pane&&this._toggleClasses(this._pane,t,!0)}removePanelClass(t){this._pane&&this._toggleClasses(this._pane,t,!1)}getDirection(){const t=this._config.direction;return t?"string"==typeof t?t:t.value:"ltr"}updateScrollStrategy(t){t!==this._scrollStrategy&&(this._disposeScrollStrategy(),this._scrollStrategy=t,this.hasAttached()&&(t.attach(this),t.enable()))}_updateElementDirection(){this._host.setAttribute("dir",this.getDirection())}_updateElementSize(){if(!this._pane)return;const t=this._pane.style;t.width=qe(this._config.width),t.height=qe(this._config.height),t.minWidth=qe(this._config.minWidth),t.minHeight=qe(this._config.minHeight),t.maxWidth=qe(this._config.maxWidth),t.maxHeight=qe(this._config.maxHeight)}_togglePointerEvents(t){this._pane.style.pointerEvents=t?"":"none"}_attachBackdrop(){const t="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(t)})}):this._backdropElement.classList.add(t)}_updateStackingOrder(){this._host.nextSibling&&this._host.parentNode.appendChild(this._host)}detachBackdrop(){const t=this._backdropElement;if(!t)return;let e;const i=()=>{t&&(t.removeEventListener("click",this._backdropClickHandler),t.removeEventListener("transitionend",i),this._disposeBackdrop(t)),this._config.backdropClass&&this._toggleClasses(t,this._config.backdropClass,!1),clearTimeout(e)};t.classList.remove("cdk-overlay-backdrop-showing"),this._ngZone.runOutsideAngular(()=>{t.addEventListener("transitionend",i)}),t.style.pointerEvents="none",e=this._ngZone.runOutsideAngular(()=>setTimeout(i,500))}_toggleClasses(t,e,i){const r=El(e||[]).filter(s=>!!s);r.length&&(i?t.classList.add(...r):t.classList.remove(...r))}_detachContentWhenStable(){this._ngZone.runOutsideAngular(()=>{const t=this._ngZone.onStable.pipe(Ot(si(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()),t.unsubscribe())})})}_disposeScrollStrategy(){const t=this._scrollStrategy;t&&(t.disable(),t.detach&&t.detach())}_disposeBackdrop(t){t&&(t.remove(),this._backdropElement===t&&(this._backdropElement=null))}}let bf=(()=>{class n{constructor(e,i){this._platform=i,this._document=e}ngOnDestroy(){var e;null===(e=this._containerElement)||void 0===e||e.remove()}getContainerElement(){return this._containerElement||this._createContainer(),this._containerElement}_createContainer(){const e="cdk-overlay-container";if(this._platform.isBrowser||Fh()){const r=this._document.querySelectorAll(`.${e}[platform="server"], .${e}[platform="test"]`);for(let s=0;s<r.length;s++)r[s].remove()}const i=this._document.createElement("div");i.classList.add(e),Fh()?i.setAttribute("platform","test"):this._platform.isBrowser||i.setAttribute("platform","server"),this._document.body.appendChild(i),this._containerElement=i}}return n.\u0275fac=function(e){return new(e||n)(v(Z),v(St))},n.\u0275prov=x({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const nE="cdk-overlay-connected-position-bounding-box",yB=/([A-Za-z%]+)$/;class vB{constructor(t,e,i,r,s){this._viewportRuler=e,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 de,this._resizeSubscription=W.EMPTY,this._offsetX=0,this._offsetY=0,this._appliedPanelClasses=[],this.positionChanges=this._positionChanges,this.setOrigin(t)}get positions(){return this._preferredPositions}attach(t){this._validatePositions(),t.hostElement.classList.add(nE),this._overlayRef=t,this._boundingBox=t.hostElement,this._pane=t.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 t=this._originRect,e=this._overlayRect,i=this._viewportRect,r=this._containerRect,s=[];let o;for(let a of this._preferredPositions){let l=this._getOriginPoint(t,r,a),c=this._getOverlayPoint(l,e,a),u=this._getOverlayFit(c,e,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:e,boundingBoxRect:this._calculateBoundingBoxRect(l,a)}):(!o||o.overlayFit.visibleArea<u.visibleArea)&&(o={overlayFit:u,overlayPoint:c,originPoint:l,position:a,overlayRect:e})}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&&sr(this._boundingBox.style,{top:"",left:"",right:"",bottom:"",height:"",width:"",alignItems:"",justifyContent:""}),this._pane&&this._resetOverlayElementStyles(),this._overlayRef&&this._overlayRef.hostElement.classList.remove(nE),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 t=this._lastPosition||this._preferredPositions[0],e=this._getOriginPoint(this._originRect,this._containerRect,t);this._applyPosition(t,e)}}withScrollableContainers(t){return this._scrollables=t,this}withPositions(t){return this._preferredPositions=t,-1===t.indexOf(this._lastPosition)&&(this._lastPosition=null),this._validatePositions(),this}withViewportMargin(t){return this._viewportMargin=t,this}withFlexibleDimensions(t=!0){return this._hasFlexibleDimensions=t,this}withGrowAfterOpen(t=!0){return this._growAfterOpen=t,this}withPush(t=!0){return this._canPush=t,this}withLockedPosition(t=!0){return this._positionLocked=t,this}setOrigin(t){return this._origin=t,this}withDefaultOffsetX(t){return this._offsetX=t,this}withDefaultOffsetY(t){return this._offsetY=t,this}withTransformOriginOn(t){return this._transformOriginSelector=t,this}_getOriginPoint(t,e,i){let r,s;if("center"==i.originX)r=t.left+t.width/2;else{const o=this._isRtl()?t.right:t.left,a=this._isRtl()?t.left:t.right;r="start"==i.originX?o:a}return e.left<0&&(r-=e.left),s="center"==i.originY?t.top+t.height/2:"top"==i.originY?t.top:t.bottom,e.top<0&&(s-=e.top),{x:r,y:s}}_getOverlayPoint(t,e,i){let r,s;return r="center"==i.overlayX?-e.width/2:"start"===i.overlayX?this._isRtl()?-e.width:0:this._isRtl()?0:-e.width,s="center"==i.overlayY?-e.height/2:"top"==i.overlayY?0:-e.height,{x:t.x+r,y:t.y+s}}_getOverlayFit(t,e,i,r){const s=rE(e);let{x:o,y:a}=t,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),m=this._subtractOverflows(s.height,h,f),y=p*m;return{visibleArea:y,isCompletelyWithinViewport:s.width*s.height===y,fitsInViewportVertically:m===s.height,fitsInViewportHorizontally:p==s.width}}_canFitWithFlexibleDimensions(t,e,i){if(this._hasFlexibleDimensions){const r=i.bottom-e.y,s=i.right-e.x,o=iE(this._overlayRef.getConfig().minHeight),a=iE(this._overlayRef.getConfig().minWidth),c=t.fitsInViewportHorizontally||null!=a&&a<=s;return(t.fitsInViewportVertically||null!=o&&o<=r)&&c}return!1}_pushOverlayOnScreen(t,e,i){if(this._previousPushAmount&&this._positionLocked)return{x:t.x+this._previousPushAmount.x,y:t.y+this._previousPushAmount.y};const r=rE(e),s=this._viewportRect,o=Math.max(t.x+r.width-s.width,0),a=Math.max(t.y+r.height-s.height,0),l=Math.max(s.top-i.top-t.y,0),c=Math.max(s.left-i.left-t.x,0);let u=0,d=0;return u=r.width<=s.width?c||-o:t.x<this._viewportMargin?s.left-i.left-t.x:0,d=r.height<=s.height?l||-a:t.y<this._viewportMargin?s.top-i.top-t.y:0,this._previousPushAmount={x:u,y:d},{x:t.x+u,y:t.y+d}}_applyPosition(t,e){if(this._setTransformOrigin(t),this._setOverlayElementStyles(e,t),this._setBoundingBoxStyles(e,t),t.panelClass&&this._addPanelClasses(t.panelClass),this._lastPosition=t,this._positionChanges.observers.length){const i=this._getScrollVisibility(),r=new gB(t,i);this._positionChanges.next(r)}this._isInitialRender=!1}_setTransformOrigin(t){if(!this._transformOriginSelector)return;const e=this._boundingBox.querySelectorAll(this._transformOriginSelector);let i,r=t.overlayY;i="center"===t.overlayX?"center":this._isRtl()?"start"===t.overlayX?"right":"left":"start"===t.overlayX?"left":"right";for(let s=0;s<e.length;s++)e[s].style.transformOrigin=`${i} ${r}`}_calculateBoundingBoxRect(t,e){const i=this._viewportRect,r=this._isRtl();let s,o,a,u,d,h;if("top"===e.overlayY)o=t.y,s=i.height-o+this._viewportMargin;else if("bottom"===e.overlayY)a=i.height-t.y+2*this._viewportMargin,s=i.height-a+this._viewportMargin;else{const f=Math.min(i.bottom-t.y+i.top,t.y),p=this._lastBoundingBoxSize.height;s=2*f,o=t.y-f,s>p&&!this._isInitialRender&&!this._growAfterOpen&&(o=t.y-p/2)}if("end"===e.overlayX&&!r||"start"===e.overlayX&&r)h=i.width-t.x+this._viewportMargin,u=t.x-this._viewportMargin;else if("start"===e.overlayX&&!r||"end"===e.overlayX&&r)d=t.x,u=i.right-t.x;else{const f=Math.min(i.right-t.x+i.left,t.x),p=this._lastBoundingBoxSize.width;u=2*f,d=t.x-f,u>p&&!this._isInitialRender&&!this._growAfterOpen&&(d=t.x-p/2)}return{top:o,left:d,bottom:a,right:h,width:u,height:s}}_setBoundingBoxStyles(t,e){const i=this._calculateBoundingBoxRect(t,e);!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=qe(i.height),r.top=qe(i.top),r.bottom=qe(i.bottom),r.width=qe(i.width),r.left=qe(i.left),r.right=qe(i.right),r.alignItems="center"===e.overlayX?"center":"end"===e.overlayX?"flex-end":"flex-start",r.justifyContent="center"===e.overlayY?"center":"bottom"===e.overlayY?"flex-end":"flex-start",s&&(r.maxHeight=qe(s)),o&&(r.maxWidth=qe(o))}this._lastBoundingBoxSize=i,sr(this._boundingBox.style,r)}_resetBoundingBoxStyles(){sr(this._boundingBox.style,{top:"0",left:"0",right:"0",bottom:"0",height:"",width:"",alignItems:"",justifyContent:""})}_resetOverlayElementStyles(){sr(this._pane.style,{top:"",left:"",bottom:"",right:"",position:"",transform:""})}_setOverlayElementStyles(t,e){const i={},r=this._hasExactPosition(),s=this._hasFlexibleDimensions,o=this._overlayRef.getConfig();if(r){const u=this._viewportRuler.getViewportScrollPosition();sr(i,this._getExactOverlayY(e,t,u)),sr(i,this._getExactOverlayX(e,t,u))}else i.position="static";let a="",l=this._getOffset(e,"x"),c=this._getOffset(e,"y");l&&(a+=`translateX(${l}px) `),c&&(a+=`translateY(${c}px)`),i.transform=a.trim(),o.maxHeight&&(r?i.maxHeight=qe(o.maxHeight):s&&(i.maxHeight="")),o.maxWidth&&(r?i.maxWidth=qe(o.maxWidth):s&&(i.maxWidth="")),sr(this._pane.style,i)}_getExactOverlayY(t,e,i){let r={top:"",bottom:""},s=this._getOverlayPoint(e,this._overlayRect,t);return this._isPushed&&(s=this._pushOverlayOnScreen(s,this._overlayRect,i)),"bottom"===t.overlayY?r.bottom=this._document.documentElement.clientHeight-(s.y+this._overlayRect.height)+"px":r.top=qe(s.y),r}_getExactOverlayX(t,e,i){let o,r={left:"",right:""},s=this._getOverlayPoint(e,this._overlayRect,t);return this._isPushed&&(s=this._pushOverlayOnScreen(s,this._overlayRect,i)),o=this._isRtl()?"end"===t.overlayX?"left":"right":"end"===t.overlayX?"right":"left","right"===o?r.right=this._document.documentElement.clientWidth-(s.x+this._overlayRect.width)+"px":r.left=qe(s.x),r}_getScrollVisibility(){const t=this._getOriginRect(),e=this._pane.getBoundingClientRect(),i=this._scrollables.map(r=>r.getElementRef().nativeElement.getBoundingClientRect());return{isOriginClipped:eE(t,i),isOriginOutsideView:vf(t,i),isOverlayClipped:eE(e,i),isOverlayOutsideView:vf(e,i)}}_subtractOverflows(t,...e){return e.reduce((i,r)=>i-Math.max(r,0),t)}_getNarrowedViewportRect(){const t=this._document.documentElement.clientWidth,e=this._document.documentElement.clientHeight,i=this._viewportRuler.getViewportScrollPosition();return{top:i.top+this._viewportMargin,left:i.left+this._viewportMargin,right:i.left+t-this._viewportMargin,bottom:i.top+e-this._viewportMargin,width:t-2*this._viewportMargin,height:e-2*this._viewportMargin}}_isRtl(){return"rtl"===this._overlayRef.getDirection()}_hasExactPosition(){return!this._hasFlexibleDimensions||this._isPushed}_getOffset(t,e){return"x"===e?null==t.offsetX?this._offsetX:t.offsetX:null==t.offsetY?this._offsetY:t.offsetY}_validatePositions(){}_addPanelClasses(t){this._pane&&El(t).forEach(e=>{""!==e&&-1===this._appliedPanelClasses.indexOf(e)&&(this._appliedPanelClasses.push(e),this._pane.classList.add(e))})}_clearPanelClasses(){this._pane&&(this._appliedPanelClasses.forEach(t=>{this._pane.classList.remove(t)}),this._appliedPanelClasses=[])}_getOriginRect(){const t=this._origin;if(t instanceof Ee)return t.nativeElement.getBoundingClientRect();if(t instanceof Element)return t.getBoundingClientRect();const e=t.width||0,i=t.height||0;return{top:t.y,bottom:t.y+i,left:t.x,right:t.x+e,height:i,width:e}}}function sr(n,t){for(let e in t)t.hasOwnProperty(e)&&(n[e]=t[e]);return n}function iE(n){if("number"!=typeof n&&null!=n){const[t,e]=n.split(yB);return e&&"px"!==e?null:parseFloat(t)}return n||null}function rE(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 sE="cdk-global-overlay-wrapper";class bB{constructor(){this._cssPosition="static",this._topOffset="",this._bottomOffset="",this._leftOffset="",this._rightOffset="",this._alignItems="",this._justifyContent="",this._width="",this._height=""}attach(t){const e=t.getConfig();this._overlayRef=t,this._width&&!e.width&&t.updateSize({width:this._width}),this._height&&!e.height&&t.updateSize({height:this._height}),t.hostElement.classList.add(sE),this._isDisposed=!1}top(t=""){return this._bottomOffset="",this._topOffset=t,this._alignItems="flex-start",this}left(t=""){return this._rightOffset="",this._leftOffset=t,this._justifyContent="flex-start",this}bottom(t=""){return this._topOffset="",this._bottomOffset=t,this._alignItems="flex-end",this}right(t=""){return this._leftOffset="",this._rightOffset=t,this._justifyContent="flex-end",this}width(t=""){return this._overlayRef?this._overlayRef.updateSize({width:t}):this._width=t,this}height(t=""){return this._overlayRef?this._overlayRef.updateSize({height:t}):this._height=t,this}centerHorizontally(t=""){return this.left(t),this._justifyContent="center",this}centerVertically(t=""){return this.top(t),this._alignItems="center",this}apply(){if(!this._overlayRef||!this._overlayRef.hasAttached())return;const t=this._overlayRef.overlayElement.style,e=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);t.position=this._cssPosition,t.marginLeft=l?"0":this._leftOffset,t.marginTop=c?"0":this._topOffset,t.marginBottom=this._bottomOffset,t.marginRight=this._rightOffset,l?e.justifyContent="flex-start":"center"===this._justifyContent?e.justifyContent="center":"rtl"===this._overlayRef.getConfig().direction?"flex-start"===this._justifyContent?e.justifyContent="flex-end":"flex-end"===this._justifyContent&&(e.justifyContent="flex-start"):e.justifyContent=this._justifyContent,e.alignItems=c?"flex-start":this._alignItems}dispose(){if(this._isDisposed||!this._overlayRef)return;const t=this._overlayRef.overlayElement.style,e=this._overlayRef.hostElement,i=e.style;e.classList.remove(sE),i.justifyContent=i.alignItems=t.marginTop=t.marginBottom=t.marginLeft=t.marginRight=t.position="",this._overlayRef=null,this._isDisposed=!0}}let CB=(()=>{class n{constructor(e,i,r,s){this._viewportRuler=e,this._document=i,this._platform=r,this._overlayContainer=s}global(){return new bB}flexibleConnectedTo(e){return new vB(e,this._viewportRuler,this._document,this._platform,this._overlayContainer)}}return n.\u0275fac=function(e){return new(e||n)(v(_f),v(Z),v(St),v(bf))},n.\u0275prov=x({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),oE=(()=>{class n{constructor(e){this._attachedOverlays=[],this._document=e}ngOnDestroy(){this.detach()}add(e){this.remove(e),this._attachedOverlays.push(e)}remove(e){const i=this._attachedOverlays.indexOf(e);i>-1&&this._attachedOverlays.splice(i,1),0===this._attachedOverlays.length&&this.detach()}}return n.\u0275fac=function(e){return new(e||n)(v(Z))},n.\u0275prov=x({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),wB=(()=>{class n extends oE{constructor(e){super(e),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(e){super.add(e),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(e){return new(e||n)(v(Z))},n.\u0275prov=x({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),EB=(()=>{class n extends oE{constructor(e,i){super(e),this._platform=i,this._cursorStyleIsSet=!1,this._pointerDownListener=r=>{this._pointerDownEventTarget=vi(r)},this._clickListener=r=>{const s=vi(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(e){if(super.add(e),!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 e=this._document.body;e.removeEventListener("pointerdown",this._pointerDownListener,!0),e.removeEventListener("click",this._clickListener,!0),e.removeEventListener("auxclick",this._clickListener,!0),e.removeEventListener("contextmenu",this._clickListener,!0),this._platform.IOS&&this._cursorStyleIsSet&&(e.style.cursor=this._cursorOriginalValue,this._cursorStyleIsSet=!1),this._isAttached=!1}}}return n.\u0275fac=function(e){return new(e||n)(v(Z),v(St))},n.\u0275prov=x({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),DB=0,os=(()=>{class n{constructor(e,i,r,s,o,a,l,c,u,d,h){this.scrollStrategies=e,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(e){const i=this._createHostElement(),r=this._createPaneElement(i),s=this._createPortalOutlet(r),o=new tE(e);return o.direction=o.direction||this._directionality.value,new _B(s,i,r,o,this._ngZone,this._keyboardDispatcher,this._document,this._location,this._outsideClickDispatcher)}position(){return this._positionBuilder}_createPaneElement(e){const i=this._document.createElement("div");return i.id="cdk-overlay-"+DB++,i.classList.add("cdk-overlay-pane"),e.appendChild(i),i}_createHostElement(){const e=this._document.createElement("div");return this._overlayContainer.getContainerElement().appendChild(e),e}_createPortalOutlet(e){return this._appRef||(this._appRef=this._injector.get(Oa)),new uB(e,this._componentFactoryResolver,this._appRef,this._injector,this._document)}}return n.\u0275fac=function(e){return new(e||n)(v(mB),v(bf),v(Gi),v(CB),v(wB),v(Ct),v(le),v(Z),v(Bl),v(wv),v(EB))},n.\u0275prov=x({token:n,factory:n.\u0275fac}),n})();const TB={provide:new T("cdk-connected-overlay-scroll-strategy"),deps:[os],useFactory:function MB(n){return()=>n.scrollStrategies.reposition()}};let aE=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=me({type:n}),n.\u0275inj=ce({providers:[os,TB],imports:[[Co,dB,Yw],Yw]}),n})();class xB{constructor(t,e){this.delay=t,this.scheduler=e}call(t,e){return e.subscribe(new Cf(t,this.delay,this.scheduler))}}class Cf extends ye{constructor(t,e,i){super(t),this.delay=e,this.scheduler=i,this.queue=[],this.active=!1,this.errored=!1}static dispatch(t){const e=t.source,i=e.queue,r=t.scheduler,s=t.destination;for(;i.length>0&&i[0].time-r.now()<=0;)i.shift().notification.observe(s);if(i.length>0){const o=Math.max(0,i[0].time-r.now());this.schedule(t,o)}else this.unsubscribe(),e.active=!1}_schedule(t){this.active=!0,this.destination.add(t.schedule(Cf.dispatch,this.delay,{source:this,destination:this.destination,scheduler:t}))}scheduleNotification(t){if(!0===this.errored)return;const e=this.scheduler,i=new kB(e.now()+this.delay,t);this.queue.push(i),!1===this.active&&this._schedule(e)}_next(t){this.scheduleNotification(kt.createNext(t))}_error(t){this.errored=!0,this.queue=[],this.destination.error(t),this.unsubscribe()}_complete(){this.scheduleNotification(kt.createComplete()),this.unsubscribe()}}class kB{constructor(t,e){this.time=t,this.notification=e}}const OB=["panel"];function FB(n,t){if(1&n&&(K(0,"div",0,1),Gt(2),J()),2&n){const e=t.id,i=ue();$("id",i.id)("ngClass",i._classList),nt("aria-label",i.ariaLabel||null)("aria-labelledby",i._getPanelAriaLabelledby(e))}}const RB=["*"];let NB=0;class PB{constructor(t,e){this.source=t,this.option=e}}const LB=Dw(class{}),lE=new T("mat-autocomplete-default-options",{providedIn:"root",factory:function VB(){return{autoActiveFirstOption:!1}}});let BB=(()=>{class n extends LB{constructor(e,i,r,s){super(),this._changeDetectorRef=e,this._elementRef=i,this._activeOptionChanges=W.EMPTY,this.showPanel=!1,this._isOpen=!1,this.displayWith=null,this.optionSelected=new Ie,this.opened=new Ie,this.closed=new Ie,this.optionActivated=new Ie,this._classList={},this.id="mat-autocomplete-"+NB++,this.inertGroups=(null==s?void 0:s.SAFARI)||!1,this._autoActiveFirstOption=!!r.autoActiveFirstOption}get isOpen(){return this._isOpen&&this.showPanel}get autoActiveFirstOption(){return this._autoActiveFirstOption}set autoActiveFirstOption(e){this._autoActiveFirstOption=cn(e)}set classList(e){this._classList=e&&e.length?function OP(n,t=/\s+/){const e=[];if(null!=n){const i=Array.isArray(n)?n:`${n}`.split(t);for(const r of i){const s=`${r}`.trim();s&&e.push(s)}}return e}(e).reduce((i,r)=>(i[r]=!0,i),{}):{},this._setVisibilityClasses(this._classList),this._elementRef.nativeElement.className=""}ngAfterContentInit(){this._keyManager=new DL(this.options).withWrap(),this._activeOptionChanges=this._keyManager.change.subscribe(e=>{this.isOpen&&this.optionActivated.emit({source:this,option:this.options.toArray()[e]||null})}),this._setVisibility()}ngOnDestroy(){this._activeOptionChanges.unsubscribe()}_setScrollTop(e){this.panel&&(this.panel.nativeElement.scrollTop=e)}_getScrollTop(){return this.panel?this.panel.nativeElement.scrollTop:0}_setVisibility(){this.showPanel=!!this.options.length,this._setVisibilityClasses(this._classList),this._changeDetectorRef.markForCheck()}_emitSelectEvent(e){const i=new PB(this,e);this.optionSelected.emit(i)}_getPanelAriaLabelledby(e){return this.ariaLabel?null:this.ariaLabelledby?(e?e+" ":"")+this.ariaLabelledby:e}_setVisibilityClasses(e){e[this._visibleClass]=this.showPanel,e[this._hiddenClass]=!this.showPanel}}return n.\u0275fac=function(e){return new(e||n)(g(ei),g(Ee),g(lE),g(St))},n.\u0275dir=k({type:n,viewQuery:function(e,i){if(1&e&&(Qn(Bn,7),Qn(OB,5)),2&e){let r;Ue(r=ze())&&(i.template=r.first),Ue(r=ze())&&(i.panel=r.first)}},inputs:{ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],displayWith:"displayWith",autoActiveFirstOption:"autoActiveFirstOption",panelWidth:"panelWidth",classList:["class","classList"]},outputs:{optionSelected:"optionSelected",opened:"opened",closed:"closed",optionActivated:"optionActivated"},features:[q]}),n})(),HB=(()=>{class n extends BB{constructor(){super(...arguments),this._visibleClass="mat-autocomplete-visible",this._hiddenClass="mat-autocomplete-hidden"}}return n.\u0275fac=function(){let t;return function(i){return(t||(t=$e(n)))(i||n)}}(),n.\u0275cmp=An({type:n,selectors:[["mat-autocomplete"]],contentQueries:function(e,i,r){if(1&e&&(rn(r,kw,5),rn(r,Fw,5)),2&e){let s;Ue(s=ze())&&(i.optionGroups=s),Ue(s=ze())&&(i.options=s)}},hostAttrs:[1,"mat-autocomplete"],inputs:{disableRipple:"disableRipple"},exportAs:["matAutocomplete"],features:[oe([{provide:xw,useExisting:n}]),q],ngContentSelectors:RB,decls:1,vars:0,consts:[["role","listbox",1,"mat-autocomplete-panel",3,"id","ngClass"],["panel",""]],template:function(e,i){1&e&&(Gr(),Te(0,FB,3,4,"ng-template"))},directives:[jd],styles:[".mat-autocomplete-panel{min-width:112px;max-width:280px;overflow:auto;-webkit-overflow-scrolling:touch;visibility:hidden;max-width:none;max-height:256px;position:relative;width:100%;border-bottom-left-radius:4px;border-bottom-right-radius:4px}.mat-autocomplete-panel.mat-autocomplete-visible{visibility:visible}.mat-autocomplete-panel.mat-autocomplete-hidden{visibility:hidden}.mat-autocomplete-panel-above .mat-autocomplete-panel{border-radius:0;border-top-left-radius:4px;border-top-right-radius:4px}.mat-autocomplete-panel .mat-divider-horizontal{margin-top:-1px}.cdk-high-contrast-active .mat-autocomplete-panel{outline:solid 1px}mat-autocomplete{display:none}\n"],encapsulation:2,changeDetection:0}),n})();const cE=new T("mat-autocomplete-scroll-strategy"),$B={provide:cE,deps:[os],useFactory:function jB(n){return()=>n.scrollStrategies.reposition()}},UB={provide:un,useExisting:fe(()=>uE),multi:!0};let zB=(()=>{class n{constructor(e,i,r,s,o,a,l,c,u,d,h){this._element=e,this._overlay=i,this._viewContainerRef=r,this._zone=s,this._changeDetectorRef=o,this._dir=l,this._formField=c,this._document=u,this._viewportRuler=d,this._defaults=h,this._componentDestroyed=!1,this._autocompleteDisabled=!1,this._manuallyFloatingLabel=!1,this._viewportSubscription=W.EMPTY,this._canOpenOnNextFocus=!0,this._closeKeyEventStream=new de,this._windowBlurHandler=()=>{this._canOpenOnNextFocus=this._document.activeElement!==this._element.nativeElement||this.panelOpen},this._onChange=()=>{},this._onTouched=()=>{},this.position="auto",this.autocompleteAttribute="off",this._overlayAttached=!1,this.optionSelections=function WV(n){return new Ce(t=>{let e;try{e=n()}catch(r){return void t.error(r)}return(e?ds(e):eh()).subscribe(t)})}(()=>{const f=this.autocomplete?this.autocomplete.options:null;return f?f.changes.pipe(Do(f),uo(()=>si(...f.map(p=>p.onSelectionChange)))):this._zone.onStable.pipe(Ei(1),uo(()=>this.optionSelections))}),this._scrollStrategy=a}get autocompleteDisabled(){return this._autocompleteDisabled}set autocompleteDisabled(e){this._autocompleteDisabled=cn(e)}ngAfterViewInit(){const e=this._getWindow();void 0!==e&&this._zone.runOutsideAngular(()=>e.addEventListener("blur",this._windowBlurHandler))}ngOnChanges(e){e.position&&this._positionStrategy&&(this._setStrategyPositions(this._positionStrategy),this.panelOpen&&this._overlayRef.updatePosition())}ngOnDestroy(){const e=this._getWindow();void 0!==e&&e.removeEventListener("blur",this._windowBlurHandler),this._viewportSubscription.unsubscribe(),this._componentDestroyed=!0,this._destroyPanel(),this._closeKeyEventStream.complete()}get panelOpen(){return this._overlayAttached&&this.autocomplete.showPanel}openPanel(){this._attachOverlay(),this._floatLabel()}closePanel(){this._resetLabel(),this._overlayAttached&&(this.panelOpen&&this.autocomplete.closed.emit(),this.autocomplete._isOpen=this._overlayAttached=!1,this._overlayRef&&this._overlayRef.hasAttached()&&(this._overlayRef.detach(),this._closingActionsSubscription.unsubscribe()),this._componentDestroyed||this._changeDetectorRef.detectChanges())}updatePosition(){this._overlayAttached&&this._overlayRef.updatePosition()}get panelClosingActions(){return si(this.optionSelections,this.autocomplete._keyManager.tabOut.pipe(rr(()=>this._overlayAttached)),this._closeKeyEventStream,this._getOutsideClickStream(),this._overlayRef?this._overlayRef.detachments().pipe(rr(()=>this._overlayAttached)):Mn()).pipe(Ze(e=>e instanceof Ow?e:null))}get activeOption(){return this.autocomplete&&this.autocomplete._keyManager?this.autocomplete._keyManager.activeItem:null}_getOutsideClickStream(){return si(ss(this._document,"click"),ss(this._document,"auxclick"),ss(this._document,"touchend")).pipe(rr(e=>{const i=vi(e),r=this._formField?this._formField._elementRef.nativeElement:null,s=this.connectedTo?this.connectedTo.elementRef.nativeElement:null;return this._overlayAttached&&i!==this._element.nativeElement&&(!r||!r.contains(i))&&(!s||!s.contains(i))&&!!this._overlayRef&&!this._overlayRef.overlayElement.contains(i)}))}writeValue(e){Promise.resolve().then(()=>this._setTriggerValue(e))}registerOnChange(e){this._onChange=e}registerOnTouched(e){this._onTouched=e}setDisabledState(e){this._element.nativeElement.disabled=e}_handleKeydown(e){const i=e.keyCode;if(27===i&&!ir(e)&&e.preventDefault(),this.activeOption&&13===i&&this.panelOpen&&!ir(e))this.activeOption._selectViaInteraction(),this._resetActiveItem(),e.preventDefault();else if(this.autocomplete){const r=this.autocomplete._keyManager.activeItem,s=38===i||40===i;this.panelOpen||9===i?this.autocomplete._keyManager.onKeydown(e):s&&this._canOpen()&&this.openPanel(),(s||this.autocomplete._keyManager.activeItem!==r)&&this._scrollToOption(this.autocomplete._keyManager.activeItemIndex||0)}}_handleInput(e){let i=e.target,r=i.value;"number"===i.type&&(r=""==r?null:parseFloat(r)),this._previousValue!==r&&(this._previousValue=r,this._onChange(r),this._canOpen()&&this._document.activeElement===e.target&&this.openPanel())}_handleFocus(){this._canOpenOnNextFocus?this._canOpen()&&(this._previousValue=this._element.nativeElement.value,this._attachOverlay(),this._floatLabel(!0)):this._canOpenOnNextFocus=!0}_floatLabel(e=!1){this._formField&&"auto"===this._formField.floatLabel&&(e?this._formField._animateAndLockLabel():this._formField.floatLabel="always",this._manuallyFloatingLabel=!0)}_resetLabel(){this._manuallyFloatingLabel&&(this._formField.floatLabel="auto",this._manuallyFloatingLabel=!1)}_subscribeToClosingActions(){return si(this._zone.onStable.pipe(Ei(1)),this.autocomplete.options.changes.pipe(wo(()=>this._positionStrategy.reapplyLastPosition()),function IB(n,t=Hl){const i=function AB(n){return n instanceof Date&&!isNaN(+n)}(n)?+n-t.now():Math.abs(n);return r=>r.lift(new xB(i,t))}(0))).pipe(uo(()=>{const r=this.panelOpen;return this._resetActiveItem(),this.autocomplete._setVisibility(),this.panelOpen&&(this._overlayRef.updatePosition(),r!==this.panelOpen&&this.autocomplete.opened.emit()),this.panelClosingActions}),Ei(1)).subscribe(r=>this._setValueAndClose(r))}_destroyPanel(){this._overlayRef&&(this.closePanel(),this._overlayRef.dispose(),this._overlayRef=null)}_setTriggerValue(e){const i=this.autocomplete&&this.autocomplete.displayWith?this.autocomplete.displayWith(e):e,r=null!=i?i:"";this._formField?this._formField._control.value=r:this._element.nativeElement.value=r,this._previousValue=r}_setValueAndClose(e){const i=e&&e.source;i&&(this._clearPreviousSelectedOption(i),this._setTriggerValue(i.value),this._onChange(i.value),this.autocomplete._emitSelectEvent(i),this._element.nativeElement.focus()),this.closePanel()}_clearPreviousSelectedOption(e){this.autocomplete.options.forEach(i=>{i!==e&&i.selected&&i.deselect()})}_attachOverlay(){var e;let i=this._overlayRef;i?(this._positionStrategy.setOrigin(this._getConnectedElement()),i.updateSize({width:this._getPanelWidth()})):(this._portal=new Xw(this.autocomplete.template,this._viewContainerRef,{id:null===(e=this._formField)||void 0===e?void 0:e.getLabelId()}),i=this._overlay.create(this._getOverlayConfig()),this._overlayRef=i,i.keydownEvents().subscribe(s=>{(27===s.keyCode&&!ir(s)||38===s.keyCode&&ir(s,"altKey"))&&(this._closeKeyEventStream.next(),this._resetActiveItem(),s.stopPropagation(),s.preventDefault())}),this._viewportSubscription=this._viewportRuler.change().subscribe(()=>{this.panelOpen&&i&&i.updateSize({width:this._getPanelWidth()})})),i&&!i.hasAttached()&&(i.attach(this._portal),this._closingActionsSubscription=this._subscribeToClosingActions());const r=this.panelOpen;this.autocomplete._setVisibility(),this.autocomplete._isOpen=this._overlayAttached=!0,this.panelOpen&&r!==this.panelOpen&&this.autocomplete.opened.emit()}_getOverlayConfig(){var e;return new tE({positionStrategy:this._getOverlayPosition(),scrollStrategy:this._scrollStrategy(),width:this._getPanelWidth(),direction:this._dir,panelClass:null===(e=this._defaults)||void 0===e?void 0:e.overlayPanelClass})}_getOverlayPosition(){const e=this._overlay.position().flexibleConnectedTo(this._getConnectedElement()).withFlexibleDimensions(!1).withPush(!1);return this._setStrategyPositions(e),this._positionStrategy=e,e}_setStrategyPositions(e){const i=[{originX:"start",originY:"bottom",overlayX:"start",overlayY:"top"},{originX:"end",originY:"bottom",overlayX:"end",overlayY:"top"}],r=this._aboveClass,s=[{originX:"start",originY:"top",overlayX:"start",overlayY:"bottom",panelClass:r},{originX:"end",originY:"top",overlayX:"end",overlayY:"bottom",panelClass:r}];let o;o="above"===this.position?s:"below"===this.position?i:[...i,...s],e.withPositions(o)}_getConnectedElement(){return this.connectedTo?this.connectedTo.elementRef:this._formField?this._formField.getConnectedOverlayOrigin():this._element}_getPanelWidth(){return this.autocomplete.panelWidth||this._getHostWidth()}_getHostWidth(){return this._getConnectedElement().nativeElement.getBoundingClientRect().width}_resetActiveItem(){const e=this.autocomplete;e.autoActiveFirstOption?e._keyManager.setFirstItemActive():e._keyManager.setActiveItem(-1)}_canOpen(){const e=this._element.nativeElement;return!e.readOnly&&!e.disabled&&!this._autocompleteDisabled}_getWindow(){var e;return(null===(e=this._document)||void 0===e?void 0:e.defaultView)||window}_scrollToOption(e){const i=this.autocomplete,r=function eV(n,t,e){if(e.length){let i=t.toArray(),r=e.toArray(),s=0;for(let o=0;o<n+1;o++)i[o].group&&i[o].group===r[s]&&s++;return s}return 0}(e,i.options,i.optionGroups);if(0===e&&1===r)i._setScrollTop(0);else if(i.panel){const s=i.options.toArray()[e];if(s){const o=s._getHostElement(),a=function tV(n,t,e,i){return n<e?n:n+t>e+i?Math.max(0,n-i+t):e}(o.offsetTop,o.offsetHeight,i._getScrollTop(),i.panel.nativeElement.offsetHeight);i._setScrollTop(a)}}}}return n.\u0275fac=function(e){return new(e||n)(g(Ee),g(os),g(nn),g(le),g(ei),g(cE),g(Bl,8),g(mf,9),g(Z,8),g(_f),g(lE,8))},n.\u0275dir=k({type:n,inputs:{autocomplete:["matAutocomplete","autocomplete"],position:["matAutocompletePosition","position"],connectedTo:["matAutocompleteConnectedTo","connectedTo"],autocompleteAttribute:["autocomplete","autocompleteAttribute"],autocompleteDisabled:["matAutocompleteDisabled","autocompleteDisabled"]},features:[Qt]}),n})(),uE=(()=>{class n extends zB{constructor(){super(...arguments),this._aboveClass="mat-autocomplete-panel-above"}}return n.\u0275fac=function(){let t;return function(i){return(t||(t=$e(n)))(i||n)}}(),n.\u0275dir=k({type:n,selectors:[["input","matAutocomplete",""],["textarea","matAutocomplete",""]],hostAttrs:[1,"mat-autocomplete-trigger"],hostVars:7,hostBindings:function(e,i){1&e&&Ae("focusin",function(){return i._handleFocus()})("blur",function(){return i._onTouched()})("input",function(s){return i._handleInput(s)})("keydown",function(s){return i._handleKeydown(s)}),2&e&&nt("autocomplete",i.autocompleteAttribute)("role",i.autocompleteDisabled?null:"combobox")("aria-autocomplete",i.autocompleteDisabled?null:"list")("aria-activedescendant",i.panelOpen&&i.activeOption?i.activeOption.id:null)("aria-expanded",i.autocompleteDisabled?null:i.panelOpen.toString())("aria-owns",i.autocompleteDisabled||!i.panelOpen||null==i.autocomplete?null:i.autocomplete.id)("aria-haspopup",!i.autocompleteDisabled)},exportAs:["matAutocompleteTrigger"],features:[oe([UB]),q]}),n})(),GB=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=me({type:n}),n.\u0275inj=ce({providers:[$B],imports:[[aE,Rw,Tt,ao],Wl,Rw,Tt]}),n})();const WB=["mat-button",""],qB=["*"],YB=["mat-button","mat-flat-button","mat-icon-button","mat-raised-button","mat-stroked-button","mat-mini-fab","mat-fab"],ZB=cf(jL(Dw(class{constructor(n){this._elementRef=n}})));let XB=(()=>{class n extends ZB{constructor(e,i,r){super(e),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 YB)this._hasHostAttributes(s)&&this._getHostElement().classList.add(s);e.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(e,i){e?this._focusMonitor.focusVia(this._getHostElement(),e,i):this._getHostElement().focus(i)}_getHostElement(){return this._elementRef.nativeElement}_isRippleDisabled(){return this.disableRipple||this.disabled}_hasHostAttributes(...e){return e.some(i=>this._getHostElement().hasAttribute(i))}}return n.\u0275fac=function(e){return new(e||n)(g(Ee),g(vw),g(ts,8))},n.\u0275cmp=An({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(e,i){if(1&e&&Qn(df,5),2&e){let r;Ue(r=ze())&&(i.ripple=r.first)}},hostAttrs:[1,"mat-focus-indicator"],hostVars:5,hostBindings:function(e,i){2&e&&(nt("disabled",i.disabled||null),mt("_mat-animation-noopable","NoopAnimations"===i._animationMode)("mat-button-disabled",i.disabled))},inputs:{disabled:"disabled",disableRipple:"disableRipple",color:"color"},exportAs:["matButton"],features:[q],attrs:WB,ngContentSelectors:qB,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(e,i){1&e&&(Gr(),K(0,"span",0),Gt(1),J(),Xn(2,"span",1)(3,"span",2)),2&e&&(j(2),mt("mat-button-ripple-round",i.isRoundButton||i.isIconButton),$("matRippleDisabled",i._isRippleDisabled())("matRippleCentered",i.isIconButton)("matRippleTrigger",i._getHostElement()))},directives:[df],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})(),QB=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=me({type:n}),n.\u0275inj=ce({imports:[[Iw,Tt],Tt]}),n})();class JB extends ye{notifyNext(t,e,i,r,s){this.destination.next(e)}notifyError(t,e){this.destination.error(t)}notifyComplete(t){this.destination.complete()}}class eH extends ye{constructor(t,e,i){super(),this.parent=t,this.outerValue=e,this.outerIndex=i,this.index=0}_next(t){this.parent.notifyNext(this.outerValue,t,this.outerIndex,this.index++,this)}_error(t){this.parent.notifyError(t,this),this.unsubscribe()}_complete(){this.parent.notifyComplete(this),this.unsubscribe()}}function tH(n,t,e,i,r=new eH(n,e,i)){if(!r.closed)return t instanceof Ce?t.subscribe(r):Xl(t)(r)}const dE={};class iH{constructor(t){this.resultSelector=t}call(t,e){return e.subscribe(new rH(t,this.resultSelector))}}class rH extends JB{constructor(t,e){super(t),this.resultSelector=e,this.active=0,this.values=[],this.observables=[]}_next(t){this.values.push(dE),this.observables.push(t)}_complete(){const t=this.observables,e=t.length;if(0===e)this.destination.complete();else{this.active=e,this.toRespond=e;for(let i=0;i<e;i++)this.add(tH(this,t[i],void 0,i))}}notifyComplete(t){0==(this.active-=1)&&this.destination.complete()}notifyNext(t,e,i){const r=this.values,o=this.toRespond?r[i]===dE?--this.toRespond:this.toRespond:0;r[i]=e,0===o&&(this.resultSelector?this._tryResultSelector(r):this.destination.next(r.slice()))}_tryResultSelector(t){let e;try{e=this.resultSelector.apply(this,t)}catch(i){return void this.destination.error(i)}this.destination.next(e)}}const hE=new Set;let as,sH=(()=>{class n{constructor(e){this._platform=e,this._matchMedia=this._platform.isBrowser&&window.matchMedia?window.matchMedia.bind(window):aH}matchMedia(e){return(this._platform.WEBKIT||this._platform.BLINK)&&function oH(n){if(!hE.has(n))try{as||(as=document.createElement("style"),as.setAttribute("type","text/css"),document.head.appendChild(as)),as.sheet&&(as.sheet.insertRule(`@media ${n} {body{ }}`,0),hE.add(n))}catch(t){console.error(t)}}(e),this._matchMedia(e)}}return n.\u0275fac=function(e){return new(e||n)(v(St))},n.\u0275prov=x({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();function aH(n){return{matches:"all"===n||""===n,media:n,addListener:()=>{},removeListener:()=>{}}}let lH=(()=>{class n{constructor(e,i){this._mediaMatcher=e,this._zone=i,this._queries=new Map,this._destroySubject=new de}ngOnDestroy(){this._destroySubject.next(),this._destroySubject.complete()}isMatched(e){return fE(El(e)).some(r=>this._registerQuery(r).mql.matches)}observe(e){let s=function nH(...n){let t,e;return ur(n[n.length-1])&&(e=n.pop()),"function"==typeof n[n.length-1]&&(t=n.pop()),1===n.length&&se(n[0])&&(n=n[0]),ec(n,e).lift(new iH(t))}(fE(El(e)).map(o=>this._registerQuery(o).observable));return s=hf(s.pipe(Ei(1)),s.pipe(lw(1),jl(0))),s.pipe(Ze(o=>{const a={matches:!1,breakpoints:{}};return o.forEach(({matches:l,query:c})=>{a.matches=a.matches||l,a.breakpoints[c]=l}),a}))}_registerQuery(e){if(this._queries.has(e))return this._queries.get(e);const i=this._mediaMatcher.matchMedia(e),s={observable:new Ce(o=>{const a=l=>this._zone.run(()=>o.next(l));return i.addListener(a),()=>{i.removeListener(a)}}).pipe(Do(i),Ze(({matches:o})=>({query:e,matches:o})),Ot(this._destroySubject)),mql:i};return this._queries.set(e,s),s}}return n.\u0275fac=function(e){return new(e||n)(v(sH),v(le))},n.\u0275prov=x({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();function fE(n){return n.map(t=>t.split(",")).reduce((t,e)=>t.concat(e)).map(t=>t.trim())}const uH={tooltipState:ub("state",[ih("initial, void, hidden",jn({opacity:0,transform:"scale(0)"})),ih("visible",jn({transform:"scale(1)"})),rh("* => visible",nh("200ms cubic-bezier(0, 0, 0.2, 1)",FR([jn({opacity:0,transform:"scale(0)",offset:0}),jn({opacity:.5,transform:"scale(0.99)",offset:.5}),jn({opacity:1,transform:"scale(1)",offset:1})]))),rh("* => hidden",nh("100ms cubic-bezier(0, 0, 0.2, 1)",jn({opacity:0})))])},pE="tooltip-panel",mE=go({passive:!0}),gE=new T("mat-tooltip-scroll-strategy"),pH={provide:gE,deps:[os],useFactory:function fH(n){return()=>n.scrollStrategies.reposition({scrollThrottle:20})}},mH=new T("mat-tooltip-default-options",{providedIn:"root",factory:function gH(){return{showDelay:0,hideDelay:0,touchendHideDelay:1500}}});let _H=(()=>{class n{constructor(e,i,r,s,o,a,l,c,u,d,h,f){this._overlay=e,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 de,this._scrollStrategy=u,this._document=f,h&&(h.position&&(this.position=h.position),h.touchGestures&&(this.touchGestures=h.touchGestures)),d.change.pipe(Ot(this._destroyed)).subscribe(()=>{this._overlayRef&&this._updatePosition(this._overlayRef)})}get position(){return this._position}set position(e){var i;e!==this._position&&(this._position=e,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(e){this._disabled=cn(e),this._disabled?this.hide(0):this._setupPointerEnterEventsIfNeeded()}get showDelay(){return this._showDelay}set showDelay(e){this._showDelay=xh(e)}get hideDelay(){return this._hideDelay}set hideDelay(e){this._hideDelay=xh(e)}get message(){return this._message}set message(e){this._ariaDescriber.removeDescription(this._elementRef.nativeElement,this._message,"tooltip"),this._message=null!=e?String(e).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(e){this._tooltipClass=e,this._tooltipInstance&&this._setTooltipClass(this._tooltipClass)}ngAfterViewInit(){this._viewInitialized=!0,this._setupPointerEnterEventsIfNeeded(),this._focusMonitor.monitor(this._elementRef).pipe(Ot(this._destroyed)).subscribe(e=>{e?"keyboard"===e&&this._ngZone.run(()=>this.show()):this._ngZone.run(()=>this.hide(0))})}ngOnDestroy(){const e=this._elementRef.nativeElement;clearTimeout(this._touchstartTimeout),this._overlayRef&&(this._overlayRef.dispose(),this._tooltipInstance=null),this._passiveListeners.forEach(([i,r])=>{e.removeEventListener(i,r,mE)}),this._passiveListeners.length=0,this._destroyed.next(),this._destroyed.complete(),this._ariaDescriber.removeDescription(e,this.message,"tooltip"),this._focusMonitor.stopMonitoring(e)}show(e=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 Zw(this._tooltipComponent,this._viewContainerRef),this._tooltipInstance=i.attach(this._portal).instance,this._tooltipInstance.afterHidden().pipe(Ot(this._destroyed)).subscribe(()=>this._detach()),this._setTooltipClass(this._tooltipClass),this._updateTooltipMessage(),this._tooltipInstance.show(e)}hide(e=this.hideDelay){this._tooltipInstance&&this._tooltipInstance.hide(e)}toggle(){this._isTooltipVisible()?this.hide():this.show()}_isTooltipVisible(){return!!this._tooltipInstance&&this._tooltipInstance.isVisible()}_createOverlay(){if(this._overlayRef)return this._overlayRef;const e=this._scrollDispatcher.getAncestorScrollContainers(this._elementRef),i=this._overlay.position().flexibleConnectedTo(this._elementRef).withTransformOriginOn(`.${this._cssClassPrefix}-tooltip`).withFlexibleDimensions(!1).withViewportMargin(this._viewportMargin).withScrollableContainers(e);return i.positionChanges.pipe(Ot(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}-${pE}`,scrollStrategy:this._scrollStrategy()}),this._updatePosition(this._overlayRef),this._overlayRef.detachments().pipe(Ot(this._destroyed)).subscribe(()=>this._detach()),this._overlayRef.outsidePointerEvents().pipe(Ot(this._destroyed)).subscribe(()=>{var r;return null===(r=this._tooltipInstance)||void 0===r?void 0:r._handleBodyInteraction()}),this._overlayRef.keydownEvents().pipe(Ot(this._destroyed)).subscribe(r=>{this._isTooltipVisible()&&27===r.keyCode&&!ir(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(e){const i=e.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(e){return e}_getOrigin(){const e=!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&&e||"right"==i&&!e?r={originX:"start",originY:"center"}:("after"==i||"right"==i&&e||"left"==i&&!e)&&(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 e=!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&&e||"right"==i&&!e?r={overlayX:"end",overlayY:"center"}:("after"==i||"right"==i&&e||"left"==i&&!e)&&(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(Ei(1),Ot(this._destroyed)).subscribe(()=>{this._tooltipInstance&&this._overlayRef.updatePosition()}))}_setTooltipClass(e){this._tooltipInstance&&(this._tooltipInstance.tooltipClass=e,this._tooltipInstance._markForCheck())}_invertPosition(e,i){return"above"===this.position||"below"===this.position?"top"===i?i="bottom":"bottom"===i&&(i="top"):"end"===e?e="start":"start"===e&&(e="end"),{x:e,y:i}}_updateCurrentPositionClass(e){const{overlayY:i,originX:r,originY:s}=e;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}-${pE}-`;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 e=[];if(this._platformSupportsMouseEvents())e.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)};e.push(["touchend",i],["touchcancel",i])}this._addListeners(e),this._passiveListeners.push(...e)}_addListeners(e){e.forEach(([i,r])=>{this._elementRef.nativeElement.addEventListener(i,r,mE)})}_platformSupportsMouseEvents(){return!this._platform.IOS&&!this._platform.ANDROID}_wheelListener(e){if(this._isTooltipVisible()){const i=this._document.elementFromPoint(e.clientX,e.clientY),r=this._elementRef.nativeElement;i!==r&&!r.contains(i)&&this.hide()}}_disableNativeGesturesIfNecessary(){const e=this.touchGestures;if("off"!==e){const i=this._elementRef.nativeElement,r=i.style;("on"===e||"INPUT"!==i.nodeName&&"TEXTAREA"!==i.nodeName)&&(r.userSelect=r.msUserSelect=r.webkitUserSelect=r.MozUserSelect="none"),("on"===e||!i.draggable)&&(r.webkitUserDrag="none"),r.touchAction="none",r.webkitTapHighlightColor="transparent"}}}return n.\u0275fac=function(e){Uu()},n.\u0275dir=k({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})(),yH=(()=>{class n extends _H{constructor(e,i,r,s,o,a,l,c,u,d,h,f){super(e,i,r,s,o,a,l,c,u,d,h,f),this._tooltipComponent=bH}}return n.\u0275fac=function(e){return new(e||n)(g(os),g(Ee),g(Kw),g(nn),g(le),g(St),g(wL),g(vw),g(gE),g(Bl,8),g(mH,8),g(Z))},n.\u0275dir=k({type:n,selectors:[["","matTooltip",""]],hostAttrs:[1,"mat-tooltip-trigger"],exportAs:["matTooltip"],features:[q]}),n})(),vH=(()=>{class n{constructor(e){this._changeDetectorRef=e,this._visibility="initial",this._closeOnInteraction=!1,this._onHide=new de}show(e){clearTimeout(this._hideTimeoutId),this._closeOnInteraction=!0,this._showTimeoutId=setTimeout(()=>{this._visibility="visible",this._showTimeoutId=void 0,this._onShow(),this._markForCheck()},e)}hide(e){clearTimeout(this._showTimeoutId),this._hideTimeoutId=setTimeout(()=>{this._visibility="hidden",this._hideTimeoutId=void 0,this._markForCheck()},e)}afterHidden(){return this._onHide}isVisible(){return"visible"===this._visibility}ngOnDestroy(){clearTimeout(this._showTimeoutId),clearTimeout(this._hideTimeoutId),this._onHide.complete()}_animationStart(){this._closeOnInteraction=!1}_animationDone(e){const i=e.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(e){return new(e||n)(g(ei))},n.\u0275dir=k({type:n}),n})(),bH=(()=>{class n extends vH{constructor(e,i){super(e),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(e){return new(e||n)(g(ei),g(lH))},n.\u0275cmp=An({type:n,selectors:[["mat-tooltip-component"]],hostAttrs:["aria-hidden","true"],hostVars:2,hostBindings:function(e,i){2&e&&qu("zoom","visible"===i._visibility?1:null)},features:[q],decls:3,vars:7,consts:[[1,"mat-tooltip",3,"ngClass"]],template:function(e,i){if(1&e&&(K(0,"div",0),Ae("@state.start",function(){return i._animationStart()})("@state.done",function(s){return i._animationDone(s)}),function Sy(n,t){const e=te();let i;const r=n+20;e.firstCreatePass?(i=function ax(n,t){if(t)for(let e=t.length-1;e>=0;e--){const i=t[e];if(n===i.name)return i}}(t,e.pipeRegistry),e.data[r]=i,i.onDestroy&&(e.destroyHooks||(e.destroyHooks=[])).push(r,i.onDestroy)):i=e.data[r];const s=i.factory||(i.factory=Ri(i.type)),o=oi(g);try{const a=Yo(!1),l=s();return Yo(a),function TT(n,t,e,i){e>=n.data.length&&(n.data[e]=null,n.blueprint[e]=null),t[e]=i}(e,C(),r,l),l}finally{oi(o)}}(1,"async"),wt(2),J()),2&e){let r;mt("mat-tooltip-handset",null==(r=My(1,5,i._isHandset))?null:r.matches),$("ngClass",i.tooltipClass)("@state",i._visibility),j(2),wn(i.message)}},directives:[jd],pipes:[Uv],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:[uH.tooltipState]},changeDetection:0}),n})(),CH=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=me({type:n}),n.\u0275inj=ce({providers:[pH],imports:[[NL,ao,aE,Tt],Tt,Wl]}),n})();class EH{constructor(t){this.selector=t}call(t,e){return e.subscribe(new DH(t,this.selector,this.caught))}}class DH extends fs{constructor(t,e,i){super(t),this.selector=e,this.caught=i}error(t){if(!this.isStopped){let e;try{e=this.selector(t,this.caught)}catch(s){return void super.error(s)}this._unsubscribeAndRecycle();const i=new hs(this);this.add(i);const r=ps(e,i);r!==i&&this.add(r)}}}class MH{constructor(t){this.callback=t}call(t,e){return e.subscribe(new TH(t,this.callback))}}class TH extends ye{constructor(t,e){super(t),this.add(new W(e))}}class IH{}class Di{constructor(t){this.normalizedNames=new Map,this.lazyUpdate=null,t?this.lazyInit="string"==typeof t?()=>{this.headers=new Map,t.split("\n").forEach(e=>{const i=e.indexOf(":");if(i>0){const r=e.slice(0,i),s=r.toLowerCase(),o=e.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(t).forEach(e=>{let i=t[e];const r=e.toLowerCase();"string"==typeof i&&(i=[i]),i.length>0&&(this.headers.set(r,i),this.maybeSetNormalizedName(e,r))})}:this.headers=new Map}has(t){return this.init(),this.headers.has(t.toLowerCase())}get(t){this.init();const e=this.headers.get(t.toLowerCase());return e&&e.length>0?e[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(t){return this.init(),this.headers.get(t.toLowerCase())||null}append(t,e){return this.clone({name:t,value:e,op:"a"})}set(t,e){return this.clone({name:t,value:e,op:"s"})}delete(t,e){return this.clone({name:t,value:e,op:"d"})}maybeSetNormalizedName(t,e){this.normalizedNames.has(e)||this.normalizedNames.set(e,t)}init(){this.lazyInit&&(this.lazyInit instanceof Di?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(t=>this.applyUpdate(t)),this.lazyUpdate=null))}copyFrom(t){t.init(),Array.from(t.headers.keys()).forEach(e=>{this.headers.set(e,t.headers.get(e)),this.normalizedNames.set(e,t.normalizedNames.get(e))})}clone(t){const e=new Di;return e.lazyInit=this.lazyInit&&this.lazyInit instanceof Di?this.lazyInit:this,e.lazyUpdate=(this.lazyUpdate||[]).concat([t]),e}applyUpdate(t){const e=t.name.toLowerCase();switch(t.op){case"a":case"s":let i=t.value;if("string"==typeof i&&(i=[i]),0===i.length)return;this.maybeSetNormalizedName(t.name,e);const r=("a"===t.op?this.headers.get(e):void 0)||[];r.push(...i),this.headers.set(e,r);break;case"d":const s=t.value;if(s){let o=this.headers.get(e);if(!o)return;o=o.filter(a=>-1===s.indexOf(a)),0===o.length?(this.headers.delete(e),this.normalizedNames.delete(e)):this.headers.set(e,o)}else this.headers.delete(e),this.normalizedNames.delete(e)}}forEach(t){this.init(),Array.from(this.normalizedNames.keys()).forEach(e=>t(this.normalizedNames.get(e),this.headers.get(e)))}}class xH{encodeKey(t){return _E(t)}encodeValue(t){return _E(t)}decodeKey(t){return decodeURIComponent(t)}decodeValue(t){return decodeURIComponent(t)}}const OH=/%(\d[a-f0-9])/gi,FH={40:"@","3A":":",24:"$","2C":",","3B":";","2B":"+","3D":"=","3F":"?","2F":"/"};function _E(n){return encodeURIComponent(n).replace(OH,(t,e)=>{var i;return null!==(i=FH[e])&&void 0!==i?i:t})}function yE(n){return`${n}`}class Si{constructor(t={}){if(this.updates=null,this.cloneFrom=null,this.encoder=t.encoder||new xH,t.fromString){if(t.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=function kH(n,t){const e=new Map;return n.length>0&&n.replace(/^\?/,"").split("&").forEach(r=>{const s=r.indexOf("="),[o,a]=-1==s?[t.decodeKey(r),""]:[t.decodeKey(r.slice(0,s)),t.decodeValue(r.slice(s+1))],l=e.get(o)||[];l.push(a),e.set(o,l)}),e}(t.fromString,this.encoder)}else t.fromObject?(this.map=new Map,Object.keys(t.fromObject).forEach(e=>{const i=t.fromObject[e];this.map.set(e,Array.isArray(i)?i:[i])})):this.map=null}has(t){return this.init(),this.map.has(t)}get(t){this.init();const e=this.map.get(t);return e?e[0]:null}getAll(t){return this.init(),this.map.get(t)||null}keys(){return this.init(),Array.from(this.map.keys())}append(t,e){return this.clone({param:t,value:e,op:"a"})}appendAll(t){const e=[];return Object.keys(t).forEach(i=>{const r=t[i];Array.isArray(r)?r.forEach(s=>{e.push({param:i,value:s,op:"a"})}):e.push({param:i,value:r,op:"a"})}),this.clone(e)}set(t,e){return this.clone({param:t,value:e,op:"s"})}delete(t,e){return this.clone({param:t,value:e,op:"d"})}toString(){return this.init(),this.keys().map(t=>{const e=this.encoder.encodeKey(t);return this.map.get(t).map(i=>e+"="+this.encoder.encodeValue(i)).join("&")}).filter(t=>""!==t).join("&")}clone(t){const e=new Si({encoder:this.encoder});return e.cloneFrom=this.cloneFrom||this,e.updates=(this.updates||[]).concat(t),e}init(){null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(t=>this.map.set(t,this.cloneFrom.map.get(t))),this.updates.forEach(t=>{switch(t.op){case"a":case"s":const e=("a"===t.op?this.map.get(t.param):void 0)||[];e.push(yE(t.value)),this.map.set(t.param,e);break;case"d":if(void 0===t.value){this.map.delete(t.param);break}{let i=this.map.get(t.param)||[];const r=i.indexOf(yE(t.value));-1!==r&&i.splice(r,1),i.length>0?this.map.set(t.param,i):this.map.delete(t.param)}}}),this.cloneFrom=this.updates=null)}}class RH{constructor(){this.map=new Map}set(t,e){return this.map.set(t,e),this}get(t){return this.map.has(t)||this.map.set(t,t.defaultValue()),this.map.get(t)}delete(t){return this.map.delete(t),this}has(t){return this.map.has(t)}keys(){return this.map.keys()}}function vE(n){return"undefined"!=typeof ArrayBuffer&&n instanceof ArrayBuffer}function bE(n){return"undefined"!=typeof Blob&&n instanceof Blob}function CE(n){return"undefined"!=typeof FormData&&n instanceof FormData}class So{constructor(t,e,i,r){let s;if(this.url=e,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=t.toUpperCase(),function NH(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 Di),this.context||(this.context=new RH),this.params){const o=this.params.toString();if(0===o.length)this.urlWithParams=e;else{const a=e.indexOf("?");this.urlWithParams=e+(-1===a?"?":a<e.length-1?"&":"")+o}}else this.params=new Si,this.urlWithParams=e}serializeBody(){return null===this.body?null:vE(this.body)||bE(this.body)||CE(this.body)||function PH(n){return"undefined"!=typeof URLSearchParams&&n instanceof URLSearchParams}(this.body)||"string"==typeof this.body?this.body:this.body instanceof Si?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||CE(this.body)?null:bE(this.body)?this.body.type||null:vE(this.body)?null:"string"==typeof this.body?"text/plain":this.body instanceof Si?"application/x-www-form-urlencoded;charset=UTF-8":"object"==typeof this.body||"number"==typeof this.body||"boolean"==typeof this.body?"application/json":null}clone(t={}){var e;const i=t.method||this.method,r=t.url||this.url,s=t.responseType||this.responseType,o=void 0!==t.body?t.body:this.body,a=void 0!==t.withCredentials?t.withCredentials:this.withCredentials,l=void 0!==t.reportProgress?t.reportProgress:this.reportProgress;let c=t.headers||this.headers,u=t.params||this.params;const d=null!==(e=t.context)&&void 0!==e?e:this.context;return void 0!==t.setHeaders&&(c=Object.keys(t.setHeaders).reduce((h,f)=>h.set(f,t.setHeaders[f]),c)),t.setParams&&(u=Object.keys(t.setParams).reduce((h,f)=>h.set(f,t.setParams[f]),u)),new So(i,r,o,{params:u,headers:c,context:d,reportProgress:l,responseType:s,withCredentials:a})}}var ct=(()=>((ct=ct||{})[ct.Sent=0]="Sent",ct[ct.UploadProgress=1]="UploadProgress",ct[ct.ResponseHeader=2]="ResponseHeader",ct[ct.DownloadProgress=3]="DownloadProgress",ct[ct.Response=4]="Response",ct[ct.User=5]="User",ct))();class wf extends class LH{constructor(t,e=200,i="OK"){this.headers=t.headers||new Di,this.status=void 0!==t.status?t.status:e,this.statusText=t.statusText||i,this.url=t.url||null,this.ok=this.status>=200&&this.status<300}}{constructor(t={}){super(t),this.type=ct.Response,this.body=void 0!==t.body?t.body:null}clone(t={}){return new wf({body:void 0!==t.body?t.body:this.body,headers:t.headers||this.headers,status:void 0!==t.status?t.status:this.status,statusText:t.statusText||this.statusText,url:t.url||this.url||void 0})}}function Ef(n,t){return{body:t,headers:n.headers,context:n.context,observe:n.observe,params:n.params,reportProgress:n.reportProgress,responseType:n.responseType,withCredentials:n.withCredentials}}let EE=(()=>{class n{constructor(e){this.handler=e}request(e,i,r={}){let s;if(e instanceof So)s=e;else{let l,c;l=r.headers instanceof Di?r.headers:new Di(r.headers),r.params&&(c=r.params instanceof Si?r.params:new Si({fromObject:r.params})),s=new So(e,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=Mn(s).pipe(function AH(n,t){return Jl(n,t,1)}(l=>this.handler.handle(l)));if(e instanceof So||"events"===r.observe)return o;const a=o.pipe(rr(l=>l instanceof wf));switch(r.observe||"body"){case"body":switch(s.responseType){case"arraybuffer":return a.pipe(Ze(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(Ze(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(Ze(l=>{if(null!==l.body&&"string"!=typeof l.body)throw new Error("Response is not a string.");return l.body}));default:return a.pipe(Ze(l=>l.body))}case"response":return a;default:throw new Error(`Unreachable: unhandled observe type ${r.observe}}`)}}delete(e,i={}){return this.request("DELETE",e,i)}get(e,i={}){return this.request("GET",e,i)}head(e,i={}){return this.request("HEAD",e,i)}jsonp(e,i){return this.request("JSONP",e,{params:(new Si).append(i,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(e,i={}){return this.request("OPTIONS",e,i)}patch(e,i,r={}){return this.request("PATCH",e,Ef(r,i))}post(e,i,r={}){return this.request("POST",e,Ef(r,i))}put(e,i,r={}){return this.request("PUT",e,Ef(r,i))}}return n.\u0275fac=function(e){return new(e||n)(v(IH))},n.\u0275prov=x({token:n,factory:n.\u0275fac}),n})();const BH=["*"];let ql;function Mo(n){var t;return(null===(t=function HH(){if(void 0===ql&&(ql=null,"undefined"!=typeof window)){const n=window;void 0!==n.trustedTypes&&(ql=n.trustedTypes.createPolicy("angular#components",{createHTML:t=>t}))}return ql}())||void 0===t?void 0:t.createHTML(n))||n}function DE(n){return Error(`Unable to find icon with the name "${n}"`)}function SE(n){return Error(`The URL provided to MatIconRegistry was not trusted as a resource URL via Angular's DomSanitizer. Attempted URL was "${n}".`)}function ME(n){return Error(`The literal provided to MatIconRegistry was not trusted as safe HTML by Angular's DomSanitizer. Attempted literal was "${n}".`)}class or{constructor(t,e,i){this.url=t,this.svgText=e,this.options=i}}let To=(()=>{class n{constructor(e,i,r,s){this._httpClient=e,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(e,i,r){return this.addSvgIconInNamespace("",e,i,r)}addSvgIconLiteral(e,i,r){return this.addSvgIconLiteralInNamespace("",e,i,r)}addSvgIconInNamespace(e,i,r,s){return this._addSvgIconConfig(e,i,new or(r,null,s))}addSvgIconResolver(e){return this._resolvers.push(e),this}addSvgIconLiteralInNamespace(e,i,r,s){const o=this._sanitizer.sanitize(ae.HTML,r);if(!o)throw ME(r);const a=Mo(o);return this._addSvgIconConfig(e,i,new or("",a,s))}addSvgIconSet(e,i){return this.addSvgIconSetInNamespace("",e,i)}addSvgIconSetLiteral(e,i){return this.addSvgIconSetLiteralInNamespace("",e,i)}addSvgIconSetInNamespace(e,i,r){return this._addSvgIconSetConfig(e,new or(i,null,r))}addSvgIconSetLiteralInNamespace(e,i,r){const s=this._sanitizer.sanitize(ae.HTML,i);if(!s)throw ME(i);const o=Mo(s);return this._addSvgIconSetConfig(e,new or("",o,r))}registerFontClassAlias(e,i=e){return this._fontCssClassesByAlias.set(e,i),this}classNameForFontAlias(e){return this._fontCssClassesByAlias.get(e)||e}setDefaultFontSetClass(e){return this._defaultFontSetClass=e,this}getDefaultFontSetClass(){return this._defaultFontSetClass}getSvgIconFromUrl(e){const i=this._sanitizer.sanitize(ae.RESOURCE_URL,e);if(!i)throw SE(e);const r=this._cachedIconsByUrl.get(i);return r?Mn(Kl(r)):this._loadSvgIconFromConfig(new or(e,null)).pipe(wo(s=>this._cachedIconsByUrl.set(i,s)),Ze(s=>Kl(s)))}getNamedSvgIcon(e,i=""){const r=TE(i,e);let s=this._svgIconConfigs.get(r);if(s)return this._getSvgFromConfig(s);if(s=this._getIconConfigFromResolvers(i,e),s)return this._svgIconConfigs.set(r,s),this._getSvgFromConfig(s);const o=this._iconSetConfigs.get(i);return o?this._getSvgFromIconSetConfigs(e,o):lb(DE(r))}ngOnDestroy(){this._resolvers=[],this._svgIconConfigs.clear(),this._iconSetConfigs.clear(),this._cachedIconsByUrl.clear()}_getSvgFromConfig(e){return e.svgText?Mn(Kl(this._svgElementFromConfig(e))):this._loadSvgIconFromConfig(e).pipe(Ze(i=>Kl(i)))}_getSvgFromIconSetConfigs(e,i){const r=this._extractIconWithNameFromAnySet(e,i);if(r)return Mn(r);const s=i.filter(o=>!o.svgText).map(o=>this._loadSvgIconSetFromConfig(o).pipe(function wH(n){return function(e){const i=new EH(n),r=e.lift(i);return i.caught=r}}(a=>{const c=`Loading icon set URL: ${this._sanitizer.sanitize(ae.RESOURCE_URL,o.url)} failed: ${a.message}`;return this._errorHandler.handleError(new Error(c)),Mn(null)})));return Jb(s).pipe(Ze(()=>{const o=this._extractIconWithNameFromAnySet(e,i);if(!o)throw DE(e);return o}))}_extractIconWithNameFromAnySet(e,i){for(let r=i.length-1;r>=0;r--){const s=i[r];if(s.svgText&&s.svgText.toString().indexOf(e)>-1){const o=this._svgElementFromConfig(s),a=this._extractSvgIconFromSet(o,e,s.options);if(a)return a}}return null}_loadSvgIconFromConfig(e){return this._fetchIcon(e).pipe(wo(i=>e.svgText=i),Ze(()=>this._svgElementFromConfig(e)))}_loadSvgIconSetFromConfig(e){return e.svgText?Mn(null):this._fetchIcon(e).pipe(wo(i=>e.svgText=i))}_extractSvgIconFromSet(e,i,r){const s=e.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(Mo("<svg></svg>"));return a.appendChild(o),this._setSvgAttributes(a,r)}_svgElementFromString(e){const i=this._document.createElement("DIV");i.innerHTML=e;const r=i.querySelector("svg");if(!r)throw Error("<svg> tag not found");return r}_toSvgElement(e){const i=this._svgElementFromString(Mo("<svg></svg>")),r=e.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<e.childNodes.length;s++)e.childNodes[s].nodeType===this._document.ELEMENT_NODE&&i.appendChild(e.childNodes[s].cloneNode(!0));return i}_setSvgAttributes(e,i){return e.setAttribute("fit",""),e.setAttribute("height","100%"),e.setAttribute("width","100%"),e.setAttribute("preserveAspectRatio","xMidYMid meet"),e.setAttribute("focusable","false"),i&&i.viewBox&&e.setAttribute("viewBox",i.viewBox),e}_fetchIcon(e){var i;const{url:r,options:s}=e,o=null!==(i=null==s?void 0:s.withCredentials)&&void 0!==i&&i;if(!this._httpClient)throw function jH(){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(ae.RESOURCE_URL,r);if(!a)throw SE(r);const l=this._inProgressUrlFetches.get(a);if(l)return l;const c=this._httpClient.get(a,{responseType:"text",withCredentials:o}).pipe(Ze(u=>Mo(u)),function SH(n){return t=>t.lift(new MH(n))}(()=>this._inProgressUrlFetches.delete(a)),jf());return this._inProgressUrlFetches.set(a,c),c}_addSvgIconConfig(e,i,r){return this._svgIconConfigs.set(TE(e,i),r),this}_addSvgIconSetConfig(e,i){const r=this._iconSetConfigs.get(e);return r?r.push(i):this._iconSetConfigs.set(e,[i]),this}_svgElementFromConfig(e){if(!e.svgElement){const i=this._svgElementFromString(e.svgText);this._setSvgAttributes(i,e.options),e.svgElement=i}return e.svgElement}_getIconConfigFromResolvers(e,i){for(let r=0;r<this._resolvers.length;r++){const s=this._resolvers[r](i,e);if(s)return UH(s)?new or(s.url,null,s.options):new or(s,null)}}}return n.\u0275fac=function(e){return new(e||n)(v(EE,8),v(Jd),v(Z,8),v(hi))},n.\u0275prov=x({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();function Kl(n){return n.cloneNode(!0)}function TE(n,t){return n+":"+t}function UH(n){return!(!n.url||!n.options)}const zH=cf(class{constructor(n){this._elementRef=n}}),GH=new T("mat-icon-location",{providedIn:"root",factory:function WH(){const n=na(Z),t=n?n.location:null;return{getPathname:()=>t?t.pathname+t.search:""}}}),AE=["clip-path","color-profile","src","cursor","fill","filter","marker","marker-start","marker-mid","marker-end","mask","stroke"],qH=AE.map(n=>`[${n}]`).join(", "),KH=/^url\(['"]?#(.*?)['"]?\)$/;let YH=(()=>{class n extends zH{constructor(e,i,r,s,o){super(e),this._iconRegistry=i,this._location=s,this._errorHandler=o,this._inline=!1,this._currentIconFetch=W.EMPTY,r||e.nativeElement.setAttribute("aria-hidden","true")}get inline(){return this._inline}set inline(e){this._inline=cn(e)}get svgIcon(){return this._svgIcon}set svgIcon(e){e!==this._svgIcon&&(e?this._updateSvgIcon(e):this._svgIcon&&this._clearSvgElement(),this._svgIcon=e)}get fontSet(){return this._fontSet}set fontSet(e){const i=this._cleanupFontValue(e);i!==this._fontSet&&(this._fontSet=i,this._updateFontIconClasses())}get fontIcon(){return this._fontIcon}set fontIcon(e){const i=this._cleanupFontValue(e);i!==this._fontIcon&&(this._fontIcon=i,this._updateFontIconClasses())}_splitIconName(e){if(!e)return["",""];const i=e.split(":");switch(i.length){case 1:return["",i[0]];case 2:return i;default:throw Error(`Invalid icon name: "${e}"`)}}ngOnInit(){this._updateFontIconClasses()}ngAfterViewChecked(){const e=this._elementsWithExternalReferences;if(e&&e.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(e){this._clearSvgElement();const i=e.querySelectorAll("style");for(let s=0;s<i.length;s++)i[s].textContent+=" ";const r=this._location.getPathname();this._previousPath=r,this._cacheChildrenWithExternalReferences(e),this._prependPathToReferences(r),this._elementRef.nativeElement.appendChild(e)}_clearSvgElement(){const e=this._elementRef.nativeElement;let i=e.childNodes.length;for(this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear();i--;){const r=e.childNodes[i];(1!==r.nodeType||"svg"===r.nodeName.toLowerCase())&&r.remove()}}_updateFontIconClasses(){if(!this._usingFontIcon())return;const e=this._elementRef.nativeElement,i=this.fontSet?this._iconRegistry.classNameForFontAlias(this.fontSet):this._iconRegistry.getDefaultFontSetClass();i!=this._previousFontSetClass&&(this._previousFontSetClass&&e.classList.remove(this._previousFontSetClass),i&&e.classList.add(i),this._previousFontSetClass=i),this.fontIcon!=this._previousFontIconClass&&(this._previousFontIconClass&&e.classList.remove(this._previousFontIconClass),this.fontIcon&&e.classList.add(this.fontIcon),this._previousFontIconClass=this.fontIcon)}_cleanupFontValue(e){return"string"==typeof e?e.trim().split(" ")[0]:e}_prependPathToReferences(e){const i=this._elementsWithExternalReferences;i&&i.forEach((r,s)=>{r.forEach(o=>{s.setAttribute(o.name,`url('${e}#${o.value}')`)})})}_cacheChildrenWithExternalReferences(e){const i=e.querySelectorAll(qH),r=this._elementsWithExternalReferences=this._elementsWithExternalReferences||new Map;for(let s=0;s<i.length;s++)AE.forEach(o=>{const a=i[s],l=a.getAttribute(o),c=l?l.match(KH):null;if(c){let u=r.get(a);u||(u=[],r.set(a,u)),u.push({name:o,value:c[1]})}})}_updateSvgIcon(e){if(this._svgNamespace=null,this._svgName=null,this._currentIconFetch.unsubscribe(),e){const[i,r]=this._splitIconName(e);i&&(this._svgNamespace=i),r&&(this._svgName=r),this._currentIconFetch=this._iconRegistry.getNamedSvgIcon(r,i).pipe(Ei(1)).subscribe(s=>this._setSvgElement(s),s=>{this._errorHandler.handleError(new Error(`Error retrieving icon ${i}:${r}! ${s.message}`))})}}}return n.\u0275fac=function(e){return new(e||n)(g(Ee),g(To),Ds("aria-hidden"),g(GH),g(hi))},n.\u0275cmp=An({type:n,selectors:[["mat-icon"]],hostAttrs:["role","img",1,"mat-icon","notranslate"],hostVars:7,hostBindings:function(e,i){2&e&&(nt("data-mat-icon-type",i._usingFontIcon()?"font":"svg")("data-mat-icon-name",i._svgName||i.fontIcon)("data-mat-icon-namespace",i._svgNamespace||i.fontSet),mt("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:[q],ngContentSelectors:BH,decls:1,vars:0,template:function(e,i){1&e&&(Gr(),Gt(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})(),ZH=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=me({type:n}),n.\u0275inj=ce({imports:[[Tt],Tt]}),n})();"function"==typeof SuppressedError&&SuppressedError;const Yl=new T("config"),kE=new T("NEW_CONFIG"),OE=new T("INITIAL_CONFIG"),C2={suffix:"",prefix:"",thousandSeparator:" ",decimalMarker:".",clearIfNotMatch:!1,showTemplate:!1,showMaskTyped:!1,placeHolderCharacter:"_",dropSpecialCharacters:!0,hiddenInput:void 0,shownMaskExpression:"",separatorLimit:"",allowNegativeNumbers:!1,validation:!0,specialCharacters:["-","/","(",")",".",":"," ","+",",","@","[","]",'"',"'"],leadZeroDateTime:!1,patterns:{0:{pattern:new RegExp("\\d")},9:{pattern:new RegExp("\\d"),optional:!0},X:{pattern:new RegExp("\\d"),symbol:"*"},A:{pattern:new RegExp("[a-zA-Z0-9]")},S:{pattern:new RegExp("[a-zA-Z]")},d:{pattern:new RegExp("\\d")},m:{pattern:new RegExp("\\d")},M:{pattern:new RegExp("\\d")},H:{pattern:new RegExp("\\d")},h:{pattern:new RegExp("\\d")},s:{pattern:new RegExp("\\d")}}},w2=["Hh:m0:s0","Hh:m0","m0:s0"],E2=["percent","Hh","s0","m0","separator","d0/M0/0000","d0/M0","d0","M0"];let Af=(()=>{class n{constructor(e){this._config=e,this.maskExpression="",this.actualValue="",this.shownMaskExpression="",this._formatWithSeparators=(i,r,s,o)=>{const a=i.split(s),l=a.length>1?`${s}${a[1]}`:"";let c=a[0];const u=this.separatorLimit.replace(/\s/g,"");u&&+u&&(c="-"===c[0]?`-${c.slice(1,c.length).slice(0,u.length)}`:c.slice(0,u.length));const d=/(\d+)(\d{3})/;for(;r&&d.test(c);)c=c.replace(d,"$1"+r+"$2");return void 0===o?c+l:0===o?c:c+l.substr(0,o+1)},this.percentage=i=>Number(i)>=0&&Number(i)<=100,this.getPrecision=i=>{const r=i.split(".");return r.length>1?Number(r[r.length-1]):1/0},this.checkAndRemoveSuffix=i=>{var r,s,o;for(let a=(null===(r=this.suffix)||void 0===r?void 0:r.length)-1;a>=0;a--){const l=this.suffix.substr(a,null===(s=this.suffix)||void 0===s?void 0:s.length);if(i.includes(l)&&(a-1<0||!i.includes(this.suffix.substr(a-1,null===(o=this.suffix)||void 0===o?void 0:o.length))))return i.replace(l,"")}return i},this.checkInputPrecision=(i,r,s)=>{if(r<1/0){const o=new RegExp(this._charToRegExpExpression(s)+`\\d{${r}}.*$`),a=i.match(o);a&&a[0].length-1>r&&(i=i.substring(0,i.length-(a[0].length-1-r))),0===r&&i.endsWith(s)&&(i=i.substring(0,i.length-1))}return i},this._shift=new Set,this.clearIfNotMatch=this._config.clearIfNotMatch,this.dropSpecialCharacters=this._config.dropSpecialCharacters,this.maskSpecialCharacters=this._config.specialCharacters,this.maskAvailablePatterns=this._config.patterns,this.prefix=this._config.prefix,this.suffix=this._config.suffix,this.thousandSeparator=this._config.thousandSeparator,this.decimalMarker=this._config.decimalMarker,this.hiddenInput=this._config.hiddenInput,this.showMaskTyped=this._config.showMaskTyped,this.placeHolderCharacter=this._config.placeHolderCharacter,this.validation=this._config.validation,this.separatorLimit=this._config.separatorLimit,this.allowNegativeNumbers=this._config.allowNegativeNumbers,this.leadZeroDateTime=this._config.leadZeroDateTime}applyMaskWithPattern(e,i){const[r,s]=i;return this.customPattern=s,this.applyMask(e,r)}applyMask(e,i,r=0,s=!1,o=!1,a=(()=>{})){if(null==e||void 0===i)return"";let l=0,c="",u=!1,d=!1,h=1,f=!1;e.slice(0,this.prefix.length)===this.prefix&&(e=e.slice(this.prefix.length,e.length)),this.suffix&&(null==e?void 0:e.length)>0&&(e=this.checkAndRemoveSuffix(e));const p=e.toString().split("");"IP"===i&&(this.ipError=p.filter(w=>"."===w).length<3&&p.length<7,i="099.099.099.099");const m=[];for(let w=0;w<e.length;w++)e[w].match("\\d")&&m.push(e[w]);if("CPF_CNPJ"===i&&(this.cpfCnpjError=11!==m.length&&14!==m.length,i=m.length>11?"00.000.000/0000-00":"000.000.000-00"),i.startsWith("percent")){if(e.match("[a-z]|[A-Z]")||e.match(/[-!$%^&*()_+|~=`{}\[\]:";'<>?,\/.]/)){e=this._stripToDecimal(e);const w=this.getPrecision(i);e=this.checkInputPrecision(e,w,this.decimalMarker)}e.indexOf(".")>0&&!this.percentage(e.substring(0,e.indexOf(".")))&&(e=`${e.substring(0,e.indexOf(".")-1)}${e.substring(e.indexOf("."),e.length)}`),c=this.percentage(e)?e:e.substring(0,e.length-1)}else if(i.startsWith("separator")){(e.match("[w\u0430-\u044f\u0410-\u042f]")||e.match("[\u0401\u0451\u0410-\u044f]")||e.match("[a-z]|[A-Z]")||e.match(/[-@#!$%\\^&*()_\xa3\xac'+|~=`{}\[\]:";<>.?\/]/)||e.match("[^A-Za-z0-9,]"))&&(e=this._stripToDecimal(e)),e=e.length>1&&"0"===e[0]&&e[1]!==this.decimalMarker?e.slice(1,e.length):e;const w=this._charToRegExpExpression(this.thousandSeparator),M=this._charToRegExpExpression(this.decimalMarker),ne='@#!$%^&*()_+|~=`{}\\[\\]:\\s,\\.";<>?\\/'.replace(w,"").replace(M,""),Se=new RegExp("["+ne+"]");e.match(Se)&&(e=e.substring(0,e.length-1));const it=this.getPrecision(i),ut=(e=this.checkInputPrecision(e,it,this.decimalMarker)).replace(new RegExp(w,"g"),"");c=this._formatWithSeparators(ut,this.thousandSeparator,this.decimalMarker,it);const dt=c.indexOf(",")-e.indexOf(","),Ft=c.length-e.length;if(Ft>0&&","!==c[r]){d=!0;let At=0;do{this._shift.add(r+At),At++}while(At<Ft)}else 0!==dt&&r>0&&!(c.indexOf(",")>=r&&r>3)||!(c.indexOf(".")>=r&&r>3)&&Ft<=0?(this._shift.clear(),d=!0,h=Ft,this._shift.add(r+=Ft)):this._shift.clear()}else for(let w=0,M=p[0];w<p.length&&l!==i.length;w++,M=p[w])if(this._checkSymbolMask(M,i[l])&&"?"===i[l+1])c+=M,l+=2;else if("*"===i[l+1]&&u&&this._checkSymbolMask(M,i[l+2]))c+=M,l+=3,u=!1;else if(this._checkSymbolMask(M,i[l])&&"*"===i[l+1])c+=M,u=!0;else if("?"===i[l+1]&&this._checkSymbolMask(M,i[l+2]))c+=M,l+=3;else if(this._checkSymbolMask(M,i[l])){if("H"===i[l]&&Number(M)>2){l+=1,this._shiftStep(i,l,p.length),w--,this.leadZeroDateTime&&(c+="0");continue}if("h"===i[l]&&"2"===c&&Number(M)>3){l+=1,w--;continue}if("m"===i[l]&&Number(M)>5){l+=1,this._shiftStep(i,l,p.length),w--,this.leadZeroDateTime&&(c+="0");continue}if("s"===i[l]&&Number(M)>5){l+=1,this._shiftStep(i,l,p.length),w--,this.leadZeroDateTime&&(c+="0");continue}const ne=31;if("d"===i[l]&&(Number(M)>3&&this.leadZeroDateTime||Number(e.slice(l,l+2))>ne||"/"===e[l+1])){l+=1,this._shiftStep(i,l,p.length),w--,this.leadZeroDateTime&&(c+="0");continue}if("M"===i[l]){const it=0===l&&(Number(M)>2||Number(e.slice(l,l+2))>12||"/"===e[l+1]),ut=e.slice(l-3,l-1).includes("/")&&("/"===e[l-2]&&Number(e.slice(l-1,l+1))>12&&"/"!==e[l]||"/"===e[l]||"/"===e[l-3]&&Number(e.slice(l-2,l))>12&&"/"!==e[l-1]||"/"===e[l-1]),dt=Number(e.slice(l-3,l-1))<=ne&&!e.slice(l-3,l-1).includes("/")&&"/"===e[l-1]&&(Number(e.slice(l,l+2))>12||"/"===e[l+1]),Ft=Number(e.slice(l-3,l-1))>ne&&!e.slice(l-3,l-1).includes("/")&&!e.slice(l-2,l).includes("/")&&Number(e.slice(l-2,l))>12,At=Number(e.slice(l-3,l-1))<=ne&&!e.slice(l-3,l-1).includes("/")&&"/"!==e[l-1]&&Number(e.slice(l-1,l+1))>12;if(Number(M)>1&&this.leadZeroDateTime||it||ut||dt||Ft||At){l+=1,this._shiftStep(i,l,p.length),w--,this.leadZeroDateTime&&(c+="0");continue}}c+=M,l++}else-1!==this.maskSpecialCharacters.indexOf(i[l])?(c+=i[l],l++,this._shiftStep(i,l,p.length),w--):this.maskSpecialCharacters.indexOf(M)>-1&&this.maskAvailablePatterns[i[l]]&&this.maskAvailablePatterns[i[l]].optional?(!!p[l]&&"099.099.099.099"!==i&&"000.000.000-00"!==i&&"00.000.000/0000-00"!==i&&(c+=p[l]),l++,w--):"*"===this.maskExpression[l+1]&&this._findSpecialChar(this.maskExpression[l+2])&&this._findSpecialChar(M)===this.maskExpression[l+2]&&u||"?"===this.maskExpression[l+1]&&this._findSpecialChar(this.maskExpression[l+2])&&this._findSpecialChar(M)===this.maskExpression[l+2]&&u?(l+=3,c+=M):this.showMaskTyped&&this.maskSpecialCharacters.indexOf(M)<0&&M!==this.placeHolderCharacter&&(f=!0);c.length+1===i.length&&-1!==this.maskSpecialCharacters.indexOf(i[i.length-1])&&(c+=i[i.length-1]);let y=r+1;for(;this._shift.has(y);)h++,y++;let b=s?l:this._shift.has(r)?h:0;f&&b--,a(b,d),h<0&&this._shift.clear();let _=!1;o&&(_=p.every(w=>this.maskSpecialCharacters.includes(w)));let E=`${this.prefix}${_?"":c}${this.suffix}`;return 0===c.length&&(E=`${this.prefix}${c}`),E}_findSpecialChar(e){return this.maskSpecialCharacters.find(i=>i===e)}_checkSymbolMask(e,i){return this.maskAvailablePatterns=this.customPattern?this.customPattern:this.maskAvailablePatterns,this.maskAvailablePatterns[i]&&this.maskAvailablePatterns[i].pattern&&this.maskAvailablePatterns[i].pattern.test(e)}_stripToDecimal(e){return e.split("").filter((i,r)=>i.match("^-?\\d")||i.match("\\s")||"."===i||","===i||"-"===i&&0===r&&this.allowNegativeNumbers).join("")}_charToRegExpExpression(e){return e&&(" "===e?"\\s":"[\\^$.|?*+()".indexOf(e)>=0?"\\"+e:e)}_shiftStep(e,i,r){const s=/[*?]/g.test(e.slice(0,i))?r:i;this._shift.add(s+this.prefix.length||0)}}return n.\u0275fac=function(e){return new(e||n)(v(Yl))},n.\u0275prov=x({token:n,factory:n.\u0275fac}),n})(),FE=(()=>{class n extends Af{constructor(e,i,r,s){super(i),this.document=e,this._config=i,this._elementRef=r,this._renderer=s,this.maskExpression="",this.isNumberValue=!1,this.placeHolderCharacter="_",this.maskIsShown="",this.selStart=null,this.selEnd=null,this.writingValue=!1,this.onChange=o=>{}}applyMask(e,i,r=0,s=!1,o=!1,a=(()=>{})){if(!i)return e;if(this.maskIsShown=this.showMaskTyped?this.showMaskInInput():"","IP"===this.maskExpression&&this.showMaskTyped&&(this.maskIsShown=this.showMaskInInput(e||"#")),"CPF_CNPJ"===this.maskExpression&&this.showMaskTyped&&(this.maskIsShown=this.showMaskInInput(e||"#")),!e&&this.showMaskTyped)return this.formControlResult(this.prefix),this.prefix+this.maskIsShown;const l=e&&"number"==typeof this.selStart?e[this.selStart]:"";let c="";if(void 0!==this.hiddenInput){let f=this.actualValue.split("");""!==e&&f.length?"number"==typeof this.selStart&&"number"==typeof this.selEnd&&(e.length>f.length?f.splice(this.selStart,0,l):e.length<f.length&&(f.length-e.length==1?f.splice(this.selStart-1,1):f.splice(this.selStart,this.selEnd-this.selStart))):f=[],c=this.actualValue.length?this.shiftTypedSymbols(f.join("")):e}c=Boolean(c)&&c.length?c:e;const u=super.applyMask(c,i,r,s,o,a);if(this.actualValue=this.getActualValue(u),"."===this.thousandSeparator&&"."===this.decimalMarker&&(this.decimalMarker=","),this.maskExpression.startsWith("separator")&&!0===this.dropSpecialCharacters&&(this.maskSpecialCharacters=this.maskSpecialCharacters.filter(f=>f!==this.decimalMarker)),this.formControlResult(u),!this.showMaskTyped)return this.hiddenInput&&u&&u.length?this.hideInput(u,this.maskExpression):u;const d=u.length,h=this.prefix+this.maskIsShown;if(this.maskExpression.includes("H")){const f=this._numberSkipedSymbols(u);return u+h.slice(d+f)}return"IP"===this.maskExpression||"CPF_CNPJ"===this.maskExpression?u+h:u+h.slice(d)}_numberSkipedSymbols(e){const i=/(^|\D)(\d\D)/g;let r=i.exec(e),s=0;for(;null!=r;)s+=1,r=i.exec(e);return s}applyValueChanges(e=0,i,r,s=(()=>{})){const o=this._elementRef.nativeElement;o.value=this.applyMask(o.value,this.maskExpression,e,i,r,s),o!==this.document.activeElement&&this.clearIfNotMatchFn()}hideInput(e,i){return e.split("").map((r,s)=>this.maskAvailablePatterns&&this.maskAvailablePatterns[i[s]]&&this.maskAvailablePatterns[i[s]].symbol?this.maskAvailablePatterns[i[s]].symbol:r).join("")}getActualValue(e){const i=e.split("").filter((r,s)=>this._checkSymbolMask(r,this.maskExpression[s])||this.maskSpecialCharacters.includes(this.maskExpression[s])&&r===this.maskExpression[s]);return i.join("")===e?i.join(""):e}shiftTypedSymbols(e){let i="";return(e&&e.split("").map((s,o)=>{if(this.maskSpecialCharacters.includes(e[o+1])&&e[o+1]!==this.maskExpression[o+1])return i=s,e[o+1];if(i.length){const a=i;return i="",a}return s})||[]).join("")}showMaskInInput(e){if(this.showMaskTyped&&this.shownMaskExpression){if(this.maskExpression.length!==this.shownMaskExpression.length)throw new Error("Mask expression must match mask placeholder length");return this.shownMaskExpression}if(this.showMaskTyped){if(e){if("IP"===this.maskExpression)return this._checkForIp(e);if("CPF_CNPJ"===this.maskExpression)return this._checkForCpfCnpj(e)}return this.maskExpression.replace(/\w/g,this.placeHolderCharacter)}return""}clearIfNotMatchFn(){const e=this._elementRef.nativeElement;this.clearIfNotMatch&&this.prefix.length+this.maskExpression.length+this.suffix.length!==e.value.replace(/_/g,"").length&&(this.formElementProperty=["value",""],this.applyMask(e.value,this.maskExpression))}set formElementProperty([e,i]){Promise.resolve().then(()=>this._renderer.setProperty(this._elementRef.nativeElement,e,i))}checkSpecialCharAmount(e){return e.split("").filter(r=>this._findSpecialChar(r)).length}removeMask(e){return this._removeMask(this._removeSuffix(this._removePrefix(e)),this.maskSpecialCharacters.concat("_").concat(this.placeHolderCharacter))}_checkForIp(e){if("#"===e)return`${this.placeHolderCharacter}.${this.placeHolderCharacter}.${this.placeHolderCharacter}.${this.placeHolderCharacter}`;const i=[];for(let r=0;r<e.length;r++)e[r].match("\\d")&&i.push(e[r]);return i.length<=3?`${this.placeHolderCharacter}.${this.placeHolderCharacter}.${this.placeHolderCharacter}`:i.length>3&&i.length<=6?`${this.placeHolderCharacter}.${this.placeHolderCharacter}`:i.length>6&&i.length<=9?this.placeHolderCharacter:""}_checkForCpfCnpj(e){const i=`${this.placeHolderCharacter}${this.placeHolderCharacter}${this.placeHolderCharacter}.${this.placeHolderCharacter}${this.placeHolderCharacter}${this.placeHolderCharacter}.${this.placeHolderCharacter}${this.placeHolderCharacter}${this.placeHolderCharacter}-${this.placeHolderCharacter}${this.placeHolderCharacter}`,r=`${this.placeHolderCharacter}${this.placeHolderCharacter}.${this.placeHolderCharacter}${this.placeHolderCharacter}${this.placeHolderCharacter}.${this.placeHolderCharacter}${this.placeHolderCharacter}${this.placeHolderCharacter}/${this.placeHolderCharacter}${this.placeHolderCharacter}${this.placeHolderCharacter}${this.placeHolderCharacter}-${this.placeHolderCharacter}${this.placeHolderCharacter}`;if("#"===e)return i;const s=[];for(let o=0;o<e.length;o++)e[o].match("\\d")&&s.push(e[o]);return s.length<=3?i.slice(s.length,i.length):s.length>3&&s.length<=6?i.slice(s.length+1,i.length):s.length>6&&s.length<=9?i.slice(s.length+2,i.length):s.length>9&&s.length<11?i.slice(s.length+3,i.length):11===s.length?"":12===s.length?r.slice(17===e.length?16:15,r.length):s.length>12&&s.length<=14?r.slice(s.length+4,r.length):""}formControlResult(e){this.writingValue||(Array.isArray(this.dropSpecialCharacters)?this.onChange(this._toNumber(this._removeMask(this._removeSuffix(this._removePrefix(e)),this.dropSpecialCharacters))):this.onChange(this.dropSpecialCharacters?this._toNumber(this._checkSymbols(e)):this._removeSuffix(e)))}_toNumber(e){if(!this.isNumberValue)return e;const i=Number(e);return Number.isNaN(i)?e:i}_removeMask(e,i){return e&&e.replace(this._regExpForRemove(i),"")}_removePrefix(e){return this.prefix?e&&e.replace(this.prefix,""):e}_removeSuffix(e){return this.suffix?e&&e.replace(this.suffix,""):e}_retrieveSeparatorValue(e){return this._removeMask(this._removeSuffix(this._removePrefix(e)),this.maskSpecialCharacters)}_regExpForRemove(e){return new RegExp(e.map(i=>`\\${i}`).join("|"),"gi")}_checkSymbols(e){if(""===e)return e;const i=this._retrieveSeparatorPrecision(this.maskExpression);let r=this._retrieveSeparatorValue(e);return"."!==this.decimalMarker&&(r=r.replace(this.decimalMarker,".")),this.isNumberValue?i?e===this.decimalMarker?null:this._checkPrecision(this.maskExpression,r):Number(r):r}_retrieveSeparatorPrecision(e){const i=e.match(new RegExp("^separator\\.([^d]*)"));return i?Number(i[1]):null}_checkPrecision(e,i){return e.indexOf("2")>0?Number(i).toFixed(2):Number(i)}}return n.\u0275fac=function(e){return new(e||n)(v(Z),v(Yl),v(Ee),v(mi))},n.\u0275prov=x({token:n,factory:n.\u0275fac}),n})(),D2=(()=>{class n{constructor(e,i,r){this.document=e,this._maskService=i,this._config=r,this.maskExpression="",this.specialCharacters=[],this.patterns={},this.prefix="",this.suffix="",this.thousandSeparator=" ",this.decimalMarker=".",this.dropSpecialCharacters=null,this.hiddenInput=null,this.showMaskTyped=null,this.placeHolderCharacter=null,this.shownMaskExpression=null,this.showTemplate=null,this.clearIfNotMatch=null,this.validation=null,this.separatorLimit=null,this.allowNegativeNumbers=null,this.leadZeroDateTime=null,this._maskValue="",this._position=null,this._maskExpressionArray=[],this._justPasted=!1,this.onChange=s=>{},this.onTouch=()=>{}}ngOnChanges(e){const{maskExpression:i,specialCharacters:r,patterns:s,prefix:o,suffix:a,thousandSeparator:l,decimalMarker:c,dropSpecialCharacters:u,hiddenInput:d,showMaskTyped:h,placeHolderCharacter:f,shownMaskExpression:p,showTemplate:m,clearIfNotMatch:y,validation:b,separatorLimit:_,allowNegativeNumbers:E,leadZeroDateTime:w}=e;if(i&&(this._maskValue=i.currentValue||"",i.currentValue&&i.currentValue.split("||").length>1&&(this._maskExpressionArray=i.currentValue.split("||").sort((M,ne)=>M.length-ne.length),this._maskValue=this._maskExpressionArray[0],this.maskExpression=this._maskExpressionArray[0],this._maskService.maskExpression=this._maskExpressionArray[0])),r){if(!r.currentValue||!Array.isArray(r.currentValue))return;this._maskService.maskSpecialCharacters=r.currentValue||[]}s&&s.currentValue&&(this._maskService.maskAvailablePatterns=s.currentValue),o&&(this._maskService.prefix=o.currentValue),a&&(this._maskService.suffix=a.currentValue),l&&(this._maskService.thousandSeparator=l.currentValue),c&&(this._maskService.decimalMarker=c.currentValue),u&&(this._maskService.dropSpecialCharacters=u.currentValue),d&&(this._maskService.hiddenInput=d.currentValue),h&&(this._maskService.showMaskTyped=h.currentValue),f&&(this._maskService.placeHolderCharacter=f.currentValue),p&&(this._maskService.shownMaskExpression=p.currentValue),m&&(this._maskService.showTemplate=m.currentValue),y&&(this._maskService.clearIfNotMatch=y.currentValue),b&&(this._maskService.validation=b.currentValue),_&&(this._maskService.separatorLimit=_.currentValue),E&&(this._maskService.allowNegativeNumbers=E.currentValue,this._maskService.allowNegativeNumbers&&(this._maskService.maskSpecialCharacters=this._maskService.maskSpecialCharacters.filter(M=>"-"!==M))),w&&(this._maskService.leadZeroDateTime=w.currentValue),this._applyMask()}validate({value:e}){if(!this._maskService.validation||!this._maskValue)return null;if(this._maskService.ipError)return this._createValidationError(e);if(this._maskService.cpfCnpjError)return this._createValidationError(e);if(this._maskValue.startsWith("separator")||E2.includes(this._maskValue)||this._maskService.clearIfNotMatch)return null;if(w2.includes(this._maskValue))return this._validateTime(e);if(e&&e.toString().length>=1){let i=0;for(const r in this._maskService.maskAvailablePatterns)if(this._maskService.maskAvailablePatterns[r].optional&&!0===this._maskService.maskAvailablePatterns[r].optional&&(this._maskValue.indexOf(r)!==this._maskValue.lastIndexOf(r)?i+=this._maskValue.split("").filter(o=>o===r).join("").length:-1!==this._maskValue.indexOf(r)&&i++,-1!==this._maskValue.indexOf(r)&&e.toString().length>=this._maskValue.indexOf(r)||i===this._maskValue.length))return null;if(1===this._maskValue.indexOf("{")&&e.toString().length===this._maskValue.length+Number(this._maskValue.split("{")[1].split("}")[0])-4||1===this._maskValue.indexOf("*")||1===this._maskValue.indexOf("?"))return null;if(this._maskValue.indexOf("*")>1&&e.toString().length<this._maskValue.indexOf("*")||this._maskValue.indexOf("?")>1&&e.toString().length<this._maskValue.indexOf("?")||1===this._maskValue.indexOf("{"))return this._createValidationError(e);if(-1===this._maskValue.indexOf("*")||-1===this._maskValue.indexOf("?")){const r=this._maskService.dropSpecialCharacters?this._maskValue.length-this._maskService.checkSpecialCharAmount(this._maskValue)-i:this._maskValue.length-i;if(e.toString().length<r)return this._createValidationError(e)}}return null}onPaste(){this._justPasted=!0}onInput(e){const i=e.target;if(this._inputValue=i.value,this._setMask(),!this._maskValue)return void this.onChange(i.value);const r=1===i.selectionStart?i.selectionStart+this._maskService.prefix.length:i.selectionStart;let s=0,o=!1;if(this._maskService.applyValueChanges(r,this._justPasted,"Backspace"===this._code,(l,c)=>{this._justPasted=!1,s=l,o=c}),this.document.activeElement!==i)return;this._position=1===this._position&&1===this._inputValue.length?null:this._position;let a=this._position?this._inputValue.length+r+s:r+("Backspace"!==this._code||o?s:0);a>this._getActualInputLength()&&(a=this._getActualInputLength()),i.setSelectionRange(a,a),this._position=null}onBlur(){this._maskValue&&this._maskService.clearIfNotMatchFn(),this.onTouch()}onFocus(e){if(!this._maskValue)return;const i=e.target;null!==i&&null!==i.selectionStart&&i.selectionStart===i.selectionEnd&&i.selectionStart>this._maskService.prefix.length&&38!==e.keyCode&&this._maskService.showMaskTyped&&(this._maskService.maskIsShown=this._maskService.showMaskInInput(),i.setSelectionRange&&this._maskService.prefix+this._maskService.maskIsShown===i.value?(i.focus(),i.setSelectionRange(0,0)):i.selectionStart>this._maskService.actualValue.length&&i.setSelectionRange(this._maskService.actualValue.length,this._maskService.actualValue.length));const o=i.value&&i.value!==this._maskService.prefix?i.value:this._maskService.prefix+this._maskService.maskIsShown;i.value!==o&&(i.value=o),(i.selectionStart||i.selectionEnd)<=this._maskService.prefix.length?i.selectionStart=this._maskService.prefix.length:i.selectionEnd>this._getActualInputLength()&&(i.selectionEnd=this._getActualInputLength())}onKeyDown(e){var i;if(!this._maskValue)return;this._code=e.code?e.code:e.key;const r=e.target;if(this._inputValue=r.value,this._setMask(),38===e.keyCode&&e.preventDefault(),37===e.keyCode||8===e.keyCode||46===e.keyCode){if(8===e.keyCode&&0===r.value.length&&(r.selectionStart=r.selectionEnd),8===e.keyCode&&0!==r.selectionStart)if(this.specialCharacters=(null===(i=this.specialCharacters)||void 0===i?void 0:i.length)?this.specialCharacters:this._config.specialCharacters,this.prefix.length>1&&r.selectionStart<=this.prefix.length)r.setSelectionRange(this.prefix.length,this.prefix.length);else{if(this._inputValue.length!==r.selectionStart&&1!==r.selectionStart)for(;this.specialCharacters.includes(this._inputValue[r.selectionStart-1].toString())&&(this.prefix.length>=1&&r.selectionStart>this.prefix.length||0===this.prefix.length);)r.setSelectionRange(r.selectionStart-1,r.selectionStart-1);this.suffixCheckOnPressDelete(e.keyCode,r)}this.suffixCheckOnPressDelete(e.keyCode,r),this._maskService.prefix.length&&r.selectionStart<=this._maskService.prefix.length&&r.selectionEnd<=this._maskService.prefix.length&&e.preventDefault();const s=r.selectionStart;8===e.keyCode&&!r.readOnly&&0===s&&r.selectionEnd===r.value.length&&0!==r.value.length&&(this._position=this._maskService.prefix?this._maskService.prefix.length:0,this._maskService.applyMask(this._maskService.prefix,this._maskService.maskExpression,this._position))}this.suffix&&this.suffix.length>1&&this._inputValue.length-this.suffix.length<r.selectionStart?r.setSelectionRange(this._inputValue.length-this.suffix.length,this._inputValue.length):(65===e.keyCode&&!0===e.ctrlKey||65===e.keyCode&&!0===e.metaKey)&&(r.setSelectionRange(0,this._getActualInputLength()),e.preventDefault()),this._maskService.selStart=r.selectionStart,this._maskService.selEnd=r.selectionEnd}writeValue(e){return function IE(n,t,e,i){return new(e||(e=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 e?s:new e(function(o){o(s)})}(u.value).then(a,l)}c((i=i.apply(n,t||[])).next())})}(this,void 0,void 0,function*(){"object"==typeof e&&null!==e&&"value"in e&&("disable"in e&&this.setDisabledState(Boolean(e.disable)),e=e.value),void 0===e&&(e=""),"number"==typeof e&&(e=String(e),e="."!==this.decimalMarker?e.replace(".",this.decimalMarker):e,this._maskService.isNumberValue=!0),e&&this._maskService.maskExpression||this._maskService.maskExpression&&(this._maskService.prefix||this._maskService.showMaskTyped)?(this._maskService.writingValue=!0,this._maskService.formElementProperty=["value",this._maskService.applyMask(e,this._maskService.maskExpression)],this._maskService.writingValue=!1):this._maskService.formElementProperty=["value",e],this._inputValue=e})}registerOnChange(e){this.onChange=e,this._maskService.onChange=this.onChange}registerOnTouched(e){this.onTouch=e}suffixCheckOnPressDelete(e,i){46===e&&this.suffix.length>0&&this._inputValue.length-this.suffix.length<=i.selectionStart&&i.setSelectionRange(this._inputValue.length-this.suffix.length,this._inputValue.length),8===e&&(this.suffix.length>1&&this._inputValue.length-this.suffix.length<i.selectionStart&&i.setSelectionRange(this._inputValue.length-this.suffix.length,this._inputValue.length),1===this.suffix.length&&this._inputValue.length===i.selectionStart&&i.setSelectionRange(i.selectionStart-1,i.selectionStart-1))}setDisabledState(e){this._maskService.formElementProperty=["disabled",e]}_repeatPatternSymbols(e){return e.match(/{[0-9]+}/)&&e.split("").reduce((i,r,s)=>{if(this._start="{"===r?s:this._start,"}"!==r)return this._maskService._findSpecialChar(r)?i+r:i;this._end=s;const o=Number(e.slice(this._start+1,this._end));return i+new Array(o+1).join(e[this._start-1])},"")||e}_applyMask(){this._maskService.maskExpression=this._repeatPatternSymbols(this._maskValue||""),this._maskService.formElementProperty=["value",this._maskService.applyMask(this._inputValue,this._maskService.maskExpression)]}_validateTime(e){const i=this._maskValue.split("").filter(r=>":"!==r).length;return null===e||0===e.length?null:0==+e[e.length-1]&&e.length<i||e.length<=i-2?this._createValidationError(e):null}_getActualInputLength(){return this._maskService.actualValue.length||this._maskService.actualValue.length+this._maskService.prefix.length}_createValidationError(e){return{mask:{requiredMask:this._maskValue,actualValue:e}}}_setMask(){this._maskExpressionArray.length>0&&this._maskExpressionArray.some(e=>{const i=this._maskService.removeMask(this._inputValue).length<=this._maskService.removeMask(e).length;if(this._inputValue&&i)return this._maskValue=e,this.maskExpression=e,this._maskService.maskExpression=e,i;this._maskValue=this._maskExpressionArray[this._maskExpressionArray.length-1],this.maskExpression=this._maskExpressionArray[this._maskExpressionArray.length-1],this._maskService.maskExpression=this._maskExpressionArray[this._maskExpressionArray.length-1]})}}return n.\u0275fac=function(e){return new(e||n)(g(Z),g(FE),g(Yl))},n.\u0275dir=k({type:n,selectors:[["input","mask",""],["textarea","mask",""]],hostBindings:function(e,i){1&e&&Ae("paste",function(){return i.onPaste()})("input",function(s){return i.onInput(s)})("blur",function(){return i.onBlur()})("click",function(s){return i.onFocus(s)})("keydown",function(s){return i.onKeyDown(s)})},inputs:{maskExpression:["mask","maskExpression"],specialCharacters:"specialCharacters",patterns:"patterns",prefix:"prefix",suffix:"suffix",thousandSeparator:"thousandSeparator",decimalMarker:"decimalMarker",dropSpecialCharacters:"dropSpecialCharacters",hiddenInput:"hiddenInput",showMaskTyped:"showMaskTyped",placeHolderCharacter:"placeHolderCharacter",shownMaskExpression:"shownMaskExpression",showTemplate:"showTemplate",clearIfNotMatch:"clearIfNotMatch",validation:"validation",separatorLimit:"separatorLimit",allowNegativeNumbers:"allowNegativeNumbers",leadZeroDateTime:"leadZeroDateTime"},features:[oe([{provide:un,useExisting:fe(()=>n),multi:!0},{provide:lt,useExisting:fe(()=>n),multi:!0},FE]),Qt]}),n})(),S2=(()=>{class n{static forRoot(e){return{ngModule:n,providers:[{provide:kE,useValue:e},{provide:OE,useValue:C2},{provide:Yl,useFactory:M2,deps:[OE,kE]},Af]}}static forChild(){return{ngModule:n}}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=me({type:n}),n.\u0275inj=ce({}),n})();function M2(n,t){return Object.assign(Object.assign({},n),t instanceof Function?t():t)}const RE="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};RE.KeyboardEvent||(RE.KeyboardEvent=function(n,t){});const T2=["inputEl"];function A2(n,t){if(1&n&&(K(0,"mat-label"),wt(1),J()),2&n){const e=ue(2);j(1),wn(e.label)}}function I2(n,t){if(1&n){const e=$i();K(0,"button",8),Ae("click",function(r){return gn(e),ue(2).emitSuffixClick(r)}),K(1,"mat-icon"),wt(2),J()()}if(2&n){const e=ue(2);$("matTooltip",null==e.suffix?null:e.suffix.tooltip),j(2),wn(e.suffix.icon)}}function x2(n,t){if(1&n&&(K(0,"mat-option",9),wt(1),J()),2&n){const e=t.$implicit,i=ue(2);$("value",null==e?null:e.value)("ngStyle",i.suggestionStyle)("disabled",!!i.suggestionStyle),j(1),Ui(" ",null==e?null:e.label," ")}}function k2(n,t){if(1&n&&(K(0,"mat-error"),wt(1),J()),2&n){const e=ue(2);j(1),Ui(" ",e.error," ")}}function O2(n,t){if(1&n){const e=$i();Hi(0),K(1,"mat-form-field",1),Te(2,A2,2,1,"mat-label",0),K(3,"input",2,3),Ae("blur",function(){return gn(e),ue().onBlur()})("keydown.enter",function(r){return gn(e),ue().onEnterKeydown(r)}),J(),Te(5,I2,3,2,"button",4),K(6,"mat-autocomplete",5,6),Ae("opened",function(){return gn(e),ue().triggerFocus()})("optionSelected",function(r){return gn(e),ue().optionSelected(r)}),Te(8,x2,2,4,"mat-option",7),J(),K(9,"mat-hint"),wt(10),J(),Te(11,k2,2,1,"mat-error",0),J(),ji()}if(2&n){const e=function Lg(n){return gr(function zD(){return L.lFrame.contextLView}(),20+n)}(7),i=ue();j(1),$("appearance",i.appearance||"outline")("floatLabel",i.floatLabel),j(1),$("ngIf",i.label),j(1),$("id",i.id)("type",i.type)("placeholder",i.placeholder||i.label)("formControl",i.formControl)("errorStateMatcher",i.errorStateMatcher)("matAutocomplete",e),j(2),$("ngIf",i.suffix&&(i.isFocused||!i.suffix.showOnBlur)),j(1),$("panelWidth",i.suggestionsPanelWidth),j(2),$("ngForOf",i.filteredSuggestions),j(2),wn(i.helpText),j(1),$("ngIf",i.error)}}function F2(n,t){if(1&n&&(K(0,"mat-label"),wt(1),J()),2&n){const e=ue(2);j(1),wn(e.label)}}function R2(n,t){if(1&n){const e=$i();K(0,"button",8),Ae("click",function(r){return gn(e),ue(2).emitSuffixClick(r)}),K(1,"mat-icon"),wt(2),J()()}if(2&n){const e=ue(2);$("matTooltip",null==e.suffix?null:e.suffix.tooltip),j(2),wn(e.suffix.icon)}}function N2(n,t){if(1&n&&(K(0,"mat-error"),wt(1),J()),2&n){const e=ue(2);j(1),Ui(" ",e.error," ")}}function P2(n,t){if(1&n){const e=$i();Hi(0),K(1,"mat-form-field",1),Te(2,F2,2,1,"mat-label",0),K(3,"input",10,3),Ae("blur",function(){return gn(e),ue().onBlur()})("keydown.enter",function(r){return gn(e),ue().onEnterKeydown(r)}),J(),Te(5,R2,3,2,"button",4),K(6,"mat-hint"),wt(7),J(),Te(8,N2,2,1,"mat-error",0),J(),ji()}if(2&n){const e=ue();j(1),$("appearance",e.appearance||"outline")("floatLabel",e.floatLabel),j(1),$("ngIf",e.label),j(1),$("id",e.id)("type",e.type)("placeholder",e.placeholder||e.label)("formControl",e.formControl)("errorStateMatcher",e.errorStateMatcher)("mask",null==e.mask?null:e.mask.expression)("suffix",(null==e.mask?null:e.mask.suffix)||"")("prefix",(null==e.mask?null:e.mask.prefix)||"")("dropSpecialCharacters",!(null!=e.mask&&e.mask.emitSpecialCharacters))("showMaskTyped",null==e.mask?null:e.mask.showMaskTyped)("thousandSeparator",null==e.mask?null:e.mask.thousandSeparator)("leadZeroDateTime",null==e.mask?null:e.mask.leadZeroDateTime)("allowNegativeNumbers",null==e.mask?null:e.mask.allowNegativeNumbers),j(2),$("ngIf",e.suffix&&(e.isFocused||!e.suffix.showOnBlur)),j(2),wn(e.helpText),j(1),$("ngIf",e.error)}}let L2=(()=>{class n extends zV{constructor(){super(...arguments),this.floatLabel="auto",this.setValue=({value:e})=>{this.formControl.setValue(e)},this.focused=!1,this.type="text",this.id=(0,GV.generate)()}ngAfterViewInit(){this.focused&&this.inputEl.nativeElement.focus()}get isFocused(){var e;return null===(e=this.input)||void 0===e?void 0:e.focused}emitSuffixClick(e){this.onSuffixClick&&(e.stopPropagation(),this.onSuffixClick())}}return n.\u0275fac=function(){let t;return function(i){return(t||(t=$e(n)))(i||n)}}(),n.\u0275cmp=An({type:n,selectors:[["drayman-text-field-internal"]],viewQuery:function(e,i){if(1&e&&(Qn(Uw,5),Qn(T2,5)),2&e){let r;Ue(r=ze())&&(i.input=r.first),Ue(r=ze())&&(i.inputEl=r.first)}},inputs:{floatLabel:"floatLabel",metaData:"metaData",appearance:"appearance",onValueChange:"onValueChange",onEnter:"onEnter",setValue:"setValue",focused:"focused",onFocus:"onFocus",value:"value",label:"label",disabled:"disabled",placeholder:"placeholder",helpText:"helpText",error:"error",updateOnBlur:"updateOnBlur",suggestions:"suggestions",suggestionsPanelWidth:"suggestionsPanelWidth",mask:"mask",type:"type",onSuffixClick:"onSuffixClick",suffix:"suffix"},features:[q],decls:2,vars:2,consts:[[4,"ngIf"],[3,"appearance","floatLabel"],["matInput","","autocomplete","off",3,"id","type","placeholder","formControl","errorStateMatcher","matAutocomplete","blur","keydown.enter"],["inputEl",""],["mat-icon-button","","matSuffix","",3,"matTooltip","click",4,"ngIf"],[3,"panelWidth","opened","optionSelected"],["auto","matAutocomplete"],[3,"value","ngStyle","disabled",4,"ngFor","ngForOf"],["mat-icon-button","","matSuffix","",3,"matTooltip","click"],[3,"value","ngStyle","disabled"],["matInput","","autocomplete","off",3,"id","type","placeholder","formControl","errorStateMatcher","mask","suffix","prefix","dropSpecialCharacters","showMaskTyped","thousandSeparator","leadZeroDateTime","allowNegativeNumbers","blur","keydown.enter"]],template:function(e,i){1&e&&(Te(0,O2,12,14,"ng-container",0),Te(1,P2,9,19,"ng-container",0)),2&e&&($("ngIf",!i.mask),j(1),$("ngIf",i.mask))},directives:[Wa,PV,pf,Uw,Tl,uE,SC,Xh,XB,OV,yH,YH,HB,Ov,Fw,$v,IV,MV,D2],styles:["mat-form-field[_ngcontent-%COMP%]{width:100%} .mat-form-field-infix{width:auto!important}"]}),n})(),V2=(()=>{class n{constructor(e){this._document=e}ngOnDestroy(){const e=this._containerElement;e&&e.parentNode&&e.parentNode.removeChild(e)}getContainerElement(){return this._containerElement||this._createContainer(),this._containerElement}_createContainer(){const e="cdk-overlay-container",i=this._document.querySelectorAll(`.${e}`);if(null==i?void 0:i.length)this._containerElement=i[0];else{const r=this._document.createElement("div");r.classList.add(e),this._document.body.appendChild(r),this._containerElement=r}}}return n.\u0275fac=function(e){return new(e||n)(v(Z))},n.\u0275prov=x({token:n,factory:n.\u0275fac}),n})(),B2=(()=>{class n{constructor(e){this.injector=e}ngDoBootstrap(){const e=function kR(n,t){const e=function DR(n,t){return t.get(Gi).resolveComponentFactory(n).inputs}(n,t.injector),i=t.strategyFactory||new AR(n,t.injector),r=function ER(n){const t={};return n.forEach(({propName:e,templateName:i})=>{t[function yR(n){return n.replace(/[A-Z]/g,t=>`-${t.toLowerCase()}`)}(i)]=e}),t}(e);class s extends xR{constructor(a){super(),this.injector=a}get ngElementStrategy(){if(!this._ngElementStrategy){const a=this._ngElementStrategy=i.create(this.injector||t.injector);e.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),e.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}(L2,{injector:this.injector});customElements.define("drayman-text-field",e)}}return n.\u0275fac=function(e){return new(e||n)(v(Ct))},n.\u0275mod=me({type:n}),n.\u0275inj=ce({providers:[{provide:bf,useClass:V2},{provide:gd,multi:!0,useFactory:t=>()=>{t.setDefaultFontSetClass("material-symbols-rounded")},deps:[To]}],imports:[[nb,xP,L1,gf,$V,GB,S2.forRoot(),QB,ZH,CH]]}),n})();(function hk(){av=!1})(),KF().bootstrapModule(B2).catch(n=>console.error(n))})()})();
|