@formbird/angular-elements 7.1.1-2.1 → 7.1.1-3.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,2 +1,2 @@
1
- "use strict";(self.webpackChunksc_signature=self.webpackChunksc_signature||[]).push([[179],{531:()=>{function Xn(n){return"function"==typeof n}let yo=!1;const It={Promise:void 0,set useDeprecatedSynchronousErrorHandling(n){if(n){const e=new Error;console.warn("DEPRECATED! RxJS was set to use deprecated synchronous error handling behavior by code at: \n"+e.stack)}else yo&&console.log("RxJS: Back to a better error behavior. Thank you. <3");yo=n},get useDeprecatedSynchronousErrorHandling(){return yo}};function Jn(n){setTimeout(()=>{throw n},0)}const Ws={closed:!0,next(n){},error(n){if(It.useDeprecatedSynchronousErrorHandling)throw n;Jn(n)},complete(){}},ir=Array.isArray||(n=>n&&"number"==typeof n.length);function Ic(n){return null!==n&&"object"==typeof n}const qs=(()=>{function n(e){return Error.call(this),this.message=e?`${e.length} errors occurred during unsubscription:\n${e.map((t,i)=>`${i+1}) ${t.toString()}`).join("\n ")}`:"",this.name="UnsubscriptionError",this.errors=e,this}return n.prototype=Object.create(Error.prototype),n})();class se{constructor(e){this.closed=!1,this._parentOrParents=null,this._subscriptions=null,e&&(this._ctorUnsubscribe=!0,this._unsubscribe=e)}unsubscribe(){let e;if(this.closed)return;let{_parentOrParents:t,_ctorUnsubscribe:i,_unsubscribe:r,_subscriptions:o}=this;if(this.closed=!0,this._parentOrParents=null,this._subscriptions=null,t instanceof se)t.remove(this);else if(null!==t)for(let s=0;s<t.length;++s)t[s].remove(this);if(Xn(r)){i&&(this._unsubscribe=void 0);try{r.call(this)}catch(s){e=s instanceof qs?Sp(s.errors):[s]}}if(ir(o)){let s=-1,a=o.length;for(;++s<a;){const l=o[s];if(Ic(l))try{l.unsubscribe()}catch(c){e=e||[],c instanceof qs?e=e.concat(Sp(c.errors)):e.push(c)}}}if(e)throw new qs(e)}add(e){let t=e;if(!e)return se.EMPTY;switch(typeof e){case"function":t=new se(e);case"object":if(t===this||t.closed||"function"!=typeof t.unsubscribe)return t;if(this.closed)return t.unsubscribe(),t;if(!(t instanceof se)){const o=t;t=new se,t._subscriptions=[o]}break;default:throw new Error("unrecognized teardown "+e+" added to Subscription.")}let{_parentOrParents:i}=t;if(null===i)t._parentOrParents=this;else if(i instanceof se){if(i===this)return t;t._parentOrParents=[i,this]}else{if(-1!==i.indexOf(this))return t;i.push(this)}const r=this._subscriptions;return null===r?this._subscriptions=[t]:r.push(t),t}remove(e){const t=this._subscriptions;if(t){const i=t.indexOf(e);-1!==i&&t.splice(i,1)}}}var n;function Sp(n){return n.reduce((e,t)=>e.concat(t instanceof qs?t.errors:t),[])}se.EMPTY=((n=new se).closed=!0,n);const Qs="function"==typeof Symbol?Symbol("rxSubscriber"):"@@rxSubscriber_"+Math.random();class ve extends se{constructor(e,t,i){switch(super(),this.syncErrorValue=null,this.syncErrorThrown=!1,this.syncErrorThrowable=!1,this.isStopped=!1,arguments.length){case 0:this.destination=Ws;break;case 1:if(!e){this.destination=Ws;break}if("object"==typeof e){e instanceof ve?(this.syncErrorThrowable=e.syncErrorThrowable,this.destination=e,e.add(this)):(this.syncErrorThrowable=!0,this.destination=new Mp(this,e));break}default:this.syncErrorThrowable=!0,this.destination=new Mp(this,e,t,i)}}[Qs](){return this}static create(e,t,i){const r=new ve(e,t,i);return r.syncErrorThrowable=!1,r}next(e){this.isStopped||this._next(e)}error(e){this.isStopped||(this.isStopped=!0,this._error(e))}complete(){this.isStopped||(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe())}_next(e){this.destination.next(e)}_error(e){this.destination.error(e),this.unsubscribe()}_complete(){this.destination.complete(),this.unsubscribe()}_unsubscribeAndRecycle(){const{_parentOrParents:e}=this;return this._parentOrParents=null,this.unsubscribe(),this.closed=!1,this.isStopped=!1,this._parentOrParents=e,this}}class Mp extends ve{constructor(e,t,i,r){super(),this._parentSubscriber=e;let o,s=this;Xn(t)?o=t:t&&(o=t.next,i=t.error,r=t.complete,t!==Ws&&(s=Object.create(t),Xn(s.unsubscribe)&&this.add(s.unsubscribe.bind(s)),s.unsubscribe=this.unsubscribe.bind(this))),this._context=s,this._next=o,this._error=i,this._complete=r}next(e){if(!this.isStopped&&this._next){const{_parentSubscriber:t}=this;It.useDeprecatedSynchronousErrorHandling&&t.syncErrorThrowable?this.__tryOrSetError(t,this._next,e)&&this.unsubscribe():this.__tryOrUnsub(this._next,e)}}error(e){if(!this.isStopped){const{_parentSubscriber:t}=this,{useDeprecatedSynchronousErrorHandling:i}=It;if(this._error)i&&t.syncErrorThrowable?(this.__tryOrSetError(t,this._error,e),this.unsubscribe()):(this.__tryOrUnsub(this._error,e),this.unsubscribe());else if(t.syncErrorThrowable)i?(t.syncErrorValue=e,t.syncErrorThrown=!0):Jn(e),this.unsubscribe();else{if(this.unsubscribe(),i)throw e;Jn(e)}}}complete(){if(!this.isStopped){const{_parentSubscriber:e}=this;if(this._complete){const t=()=>this._complete.call(this._context);It.useDeprecatedSynchronousErrorHandling&&e.syncErrorThrowable?(this.__tryOrSetError(e,t),this.unsubscribe()):(this.__tryOrUnsub(t),this.unsubscribe())}else this.unsubscribe()}}__tryOrUnsub(e,t){try{e.call(this._context,t)}catch(i){if(this.unsubscribe(),It.useDeprecatedSynchronousErrorHandling)throw i;Jn(i)}}__tryOrSetError(e,t,i){if(!It.useDeprecatedSynchronousErrorHandling)throw new Error("bad call");try{t.call(this._context,i)}catch(r){return It.useDeprecatedSynchronousErrorHandling?(e.syncErrorValue=r,e.syncErrorThrown=!0,!0):(Jn(r),!0)}return!1}_unsubscribe(){const{_parentSubscriber:e}=this;this._context=null,this._parentSubscriber=null,e.unsubscribe()}}const vo="function"==typeof Symbol&&Symbol.observable||"@@observable";function Ap(n){return n}let me=(()=>{class n{constructor(t){this._isScalar=!1,t&&(this._subscribe=t)}lift(t){const i=new n;return i.source=this,i.operator=t,i}subscribe(t,i,r){const{operator:o}=this,s=function gS(n,e,t){if(n){if(n instanceof ve)return n;if(n[Qs])return n[Qs]()}return n||e||t?new ve(n,e,t):new ve(Ws)}(t,i,r);if(s.add(o?o.call(s,this.source):this.source||It.useDeprecatedSynchronousErrorHandling&&!s.syncErrorThrowable?this._subscribe(s):this._trySubscribe(s)),It.useDeprecatedSynchronousErrorHandling&&s.syncErrorThrowable&&(s.syncErrorThrowable=!1,s.syncErrorThrown))throw s.syncErrorValue;return s}_trySubscribe(t){try{return this._subscribe(t)}catch(i){It.useDeprecatedSynchronousErrorHandling&&(t.syncErrorThrown=!0,t.syncErrorValue=i),function mS(n){for(;n;){const{closed:e,destination:t,isStopped:i}=n;if(e||i)return!1;n=t&&t instanceof ve?t:null}return!0}(t)?t.error(i):console.warn(i)}}forEach(t,i){return new(i=Tp(i))((r,o)=>{let s;s=this.subscribe(a=>{try{t(a)}catch(l){o(l),s&&s.unsubscribe()}},o,r)})}_subscribe(t){const{source:i}=this;return i&&i.subscribe(t)}[vo](){return this}pipe(...t){return 0===t.length?this:function Ip(n){return 0===n.length?Ap:1===n.length?n[0]:function(t){return n.reduce((i,r)=>r(i),t)}}(t)(this)}toPromise(t){return new(t=Tp(t))((i,r)=>{let o;this.subscribe(s=>o=s,s=>r(s),()=>i(o))})}}return n.create=e=>new n(e),n})();function Tp(n){if(n||(n=It.Promise||Promise),!n)throw new Error("no Promise impl found");return n}const Di=(()=>{function n(){return Error.call(this),this.message="object unsubscribed",this.name="ObjectUnsubscribedError",this}return n.prototype=Object.create(Error.prototype),n})();class xp extends se{constructor(e,t){super(),this.subject=e,this.subscriber=t,this.closed=!1}unsubscribe(){if(this.closed)return;this.closed=!0;const e=this.subject,t=e.observers;if(this.subject=null,!t||0===t.length||e.isStopped||e.closed)return;const i=t.indexOf(this.subscriber);-1!==i&&t.splice(i,1)}}class Fp extends ve{constructor(e){super(e),this.destination=e}}let Pe=(()=>{class n extends me{constructor(){super(),this.observers=[],this.closed=!1,this.isStopped=!1,this.hasError=!1,this.thrownError=null}[Qs](){return new Fp(this)}lift(t){const i=new Rp(this,this);return i.operator=t,i}next(t){if(this.closed)throw new Di;if(!this.isStopped){const{observers:i}=this,r=i.length,o=i.slice();for(let s=0;s<r;s++)o[s].next(t)}}error(t){if(this.closed)throw new Di;this.hasError=!0,this.thrownError=t,this.isStopped=!0;const{observers:i}=this,r=i.length,o=i.slice();for(let s=0;s<r;s++)o[s].error(t);this.observers.length=0}complete(){if(this.closed)throw new Di;this.isStopped=!0;const{observers:t}=this,i=t.length,r=t.slice();for(let o=0;o<i;o++)r[o].complete();this.observers.length=0}unsubscribe(){this.isStopped=!0,this.closed=!0,this.observers=null}_trySubscribe(t){if(this.closed)throw new Di;return super._trySubscribe(t)}_subscribe(t){if(this.closed)throw new Di;return this.hasError?(t.error(this.thrownError),se.EMPTY):this.isStopped?(t.complete(),se.EMPTY):(this.observers.push(t),new xp(this,t))}asObservable(){const t=new me;return t.source=this,t}}return n.create=(e,t)=>new Rp(e,t),n})();class Rp extends Pe{constructor(e,t){super(),this.destination=e,this.source=t}next(e){const{destination:t}=this;t&&t.next&&t.next(e)}error(e){const{destination:t}=this;t&&t.error&&this.destination.error(e)}complete(){const{destination:e}=this;e&&e.complete&&this.destination.complete()}_subscribe(e){const{source:t}=this;return t?this.source.subscribe(e):se.EMPTY}}function rr(n){return n&&"function"==typeof n.schedule}function Ue(n,e){return function(i){if("function"!=typeof n)throw new TypeError("argument is not a function. Are you looking for `mapTo()`?");return i.lift(new _S(n,e))}}class _S{constructor(e,t){this.project=e,this.thisArg=t}call(e,t){return t.subscribe(new yS(e,this.project,this.thisArg))}}class yS extends ve{constructor(e,t,i){super(e),this.project=t,this.count=0,this.thisArg=i||this}_next(e){let t;try{t=this.project.call(this.thisArg,e,this.count++)}catch(i){return void this.destination.error(i)}this.destination.next(t)}}const Op=n=>e=>{for(let t=0,i=n.length;t<i&&!e.closed;t++)e.next(n[t]);e.complete()},Ks=function bS(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}(),kp=n=>n&&"number"==typeof n.length&&"function"!=typeof n;function Np(n){return!!n&&"function"!=typeof n.subscribe&&"function"==typeof n.then}const Tc=n=>{if(n&&"function"==typeof n[vo])return(n=>e=>{const t=n[vo]();if("function"!=typeof t.subscribe)throw new TypeError("Provided object does not correctly implement Symbol.observable");return t.subscribe(e)})(n);if(kp(n))return Op(n);if(Np(n))return(n=>e=>(n.then(t=>{e.closed||(e.next(t),e.complete())},t=>e.error(t)).then(null,Jn),e))(n);if(n&&"function"==typeof n[Ks])return(n=>e=>{const t=n[Ks]();for(;;){let i;try{i=t.next()}catch(r){return e.error(r),e}if(i.done){e.complete();break}if(e.next(i.value),e.closed)break}return"function"==typeof t.return&&e.add(()=>{t.return&&t.return()}),e})(n);{const t=`You provided ${Ic(n)?"an invalid object":`'${n}'`} where a stream was expected. You can provide an Observable, Promise, Array, or Iterable.`;throw new TypeError(t)}};function xc(n,e){return new me(t=>{const i=new se;let r=0;return i.add(e.schedule(function(){r!==n.length?(t.next(n[r++]),t.closed||i.add(this.schedule())):t.complete()})),i})}function Ys(n,e){return e?function IS(n,e){if(null!=n){if(function MS(n){return n&&"function"==typeof n[vo]}(n))return function DS(n,e){return new me(t=>{const i=new se;return i.add(e.schedule(()=>{const r=n[vo]();i.add(r.subscribe({next(o){i.add(e.schedule(()=>t.next(o)))},error(o){i.add(e.schedule(()=>t.error(o)))},complete(){i.add(e.schedule(()=>t.complete()))}}))})),i})}(n,e);if(Np(n))return function wS(n,e){return new me(t=>{const i=new se;return i.add(e.schedule(()=>n.then(r=>{i.add(e.schedule(()=>{t.next(r),i.add(e.schedule(()=>t.complete()))}))},r=>{i.add(e.schedule(()=>t.error(r)))}))),i})}(n,e);if(kp(n))return xc(n,e);if(function AS(n){return n&&"function"==typeof n[Ks]}(n)||"string"==typeof n)return function SS(n,e){if(!n)throw new Error("Iterable cannot be null");return new me(t=>{const i=new se;let r;return i.add(()=>{r&&"function"==typeof r.return&&r.return()}),i.add(e.schedule(()=>{r=n[Ks](),i.add(e.schedule(function(){if(t.closed)return;let o,s;try{const a=r.next();o=a.value,s=a.done}catch(a){return void t.error(a)}s?t.complete():(t.next(o),this.schedule())}))})),i})}(n,e)}throw new TypeError((null!==n&&typeof n||n)+" is not observable")}(n,e):n instanceof me?n:new me(Tc(n))}class bo extends ve{constructor(e){super(),this.parent=e}_next(e){this.parent.notifyNext(e)}_error(e){this.parent.notifyError(e),this.unsubscribe()}_complete(){this.parent.notifyComplete(),this.unsubscribe()}}class Co extends ve{notifyNext(e){this.destination.next(e)}notifyError(e){this.destination.error(e)}notifyComplete(){this.destination.complete()}}function Eo(n,e){if(e.closed)return;if(n instanceof me)return n.subscribe(e);let t;try{t=Tc(n)(e)}catch(i){e.error(i)}return t}function Fc(n,e,t=Number.POSITIVE_INFINITY){return"function"==typeof e?i=>i.pipe(Fc((r,o)=>Ys(n(r,o)).pipe(Ue((s,a)=>e(r,s,o,a))),t)):("number"==typeof e&&(t=e),i=>i.lift(new TS(n,t)))}class TS{constructor(e,t=Number.POSITIVE_INFINITY){this.project=e,this.concurrent=t}call(e,t){return t.subscribe(new xS(e,this.project,this.concurrent))}}class xS extends Co{constructor(e,t,i=Number.POSITIVE_INFINITY){super(e),this.project=t,this.concurrent=i,this.hasCompleted=!1,this.buffer=[],this.active=0,this.index=0}_next(e){this.active<this.concurrent?this._tryNext(e):this.buffer.push(e)}_tryNext(e){let t;const i=this.index++;try{t=this.project(e,i)}catch(r){return void this.destination.error(r)}this.active++,this._innerSub(t)}_innerSub(e){const t=new bo(this),i=this.destination;i.add(t);const r=Eo(e,t);r!==t&&i.add(r)}_complete(){this.hasCompleted=!0,0===this.active&&0===this.buffer.length&&this.destination.complete(),this.unsubscribe()}notifyNext(e){this.destination.next(e)}notifyComplete(){const e=this.buffer;this.active--,e.length>0?this._next(e.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()}}function Pp(n=Number.POSITIVE_INFINITY){return Fc(Ap,n)}function Rc(n,e){return e?xc(n,e):new me(Op(n))}function Oc(...n){let e=Number.POSITIVE_INFINITY,t=null,i=n[n.length-1];return rr(i)?(t=n.pop(),n.length>1&&"number"==typeof n[n.length-1]&&(e=n.pop())):"number"==typeof i&&(e=n.pop()),null===t&&1===n.length&&n[0]instanceof me?n[0]:Pp(e)(Rc(n,t))}function Lp(){return function(e){return e.lift(new FS(e))}}class FS{constructor(e){this.connectable=e}call(e,t){const{connectable:i}=this;i._refCount++;const r=new RS(e,i),o=t.subscribe(r);return r.closed||(r.connection=i.connect()),o}}class RS extends ve{constructor(e,t){super(e),this.connectable=t}_unsubscribe(){const{connectable:e}=this;if(!e)return void(this.connection=null);this.connectable=null;const t=e._refCount;if(t<=0)return void(this.connection=null);if(e._refCount=t-1,t>1)return void(this.connection=null);const{connection:i}=this,r=e._connection;this.connection=null,r&&(!i||r===i)&&r.unsubscribe()}}class OS extends me{constructor(e,t){super(),this.source=e,this.subjectFactory=t,this._refCount=0,this._isComplete=!1}_subscribe(e){return this.getSubject().subscribe(e)}getSubject(){const e=this._subject;return(!e||e.isStopped)&&(this._subject=this.subjectFactory()),this._subject}connect(){let e=this._connection;return e||(this._isComplete=!1,e=this._connection=new se,e.add(this.source.subscribe(new NS(this.getSubject(),this))),e.closed&&(this._connection=null,e=se.EMPTY)),e}refCount(){return Lp()(this)}}const kS=(()=>{const n=OS.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 NS extends Fp{constructor(e,t){super(e),this.connectable=t}_error(e){this._unsubscribe(),super._error(e)}_complete(){this.connectable._isComplete=!0,this._unsubscribe(),super._complete()}_unsubscribe(){const e=this.connectable;if(e){this.connectable=null;const t=e._connection;e._refCount=0,e._subject=null,e._connection=null,t&&t.unsubscribe()}}}class VS{constructor(e,t){this.subjectFactory=e,this.selector=t}call(e,t){const{selector:i}=this,r=this.subjectFactory(),o=i(r).subscribe(e);return o.add(t.subscribe(r)),o}}function BS(){return new Pe}function Vp(){return n=>Lp()(function LS(n,e){return function(i){let r;if(r="function"==typeof n?n:function(){return n},"function"==typeof e)return i.lift(new VS(r,e));const o=Object.create(i,kS);return o.source=i,o.subjectFactory=r,o}}(BS)(n))}function ie(n){for(let e in n)if(n[e]===ie)return e;throw Error("Could not find renamed property on target object.")}function kc(n,e){for(const t in e)e.hasOwnProperty(t)&&!n.hasOwnProperty(t)&&(n[t]=e[t])}function G(n){if("string"==typeof n)return n;if(Array.isArray(n))return"["+n.map(G).join(", ")+"]";if(null==n)return""+n;if(n.overriddenName)return`${n.overriddenName}`;if(n.name)return`${n.name}`;const e=n.toString();if(null==e)return""+e;const t=e.indexOf("\n");return-1===t?e:e.substring(0,t)}function Nc(n,e){return null==n||""===n?null===e?"":e:null==e||""===e?n:n+" "+e}const jS=ie({__forward_ref__:ie});function ue(n){return n.__forward_ref__=ue,n.toString=function(){return G(this())},n}function x(n){return function Bp(n){return"function"==typeof n&&n.hasOwnProperty(jS)&&n.__forward_ref__===ue}(n)?n():n}class wi extends Error{constructor(e,t){super(function Pc(n,e){return`${n?`NG0${n}: `:""}${e}`}(e,t)),this.code=e}}function H(n){return"string"==typeof n?n:null==n?"":String(n)}function Je(n){return"function"==typeof n?n.name||n.toString():"object"==typeof n&&null!=n&&"function"==typeof n.type?n.type.name||n.type.toString():H(n)}function Zs(n,e){const t=e?` in ${e}`:"";throw new wi("201",`No provider for ${Je(n)} found${t}`)}function pt(n,e){null==n&&function fe(n,e,t,i){throw new Error(`ASSERTION ERROR: ${n}`+(null==i?"":` [Expected=> ${t} ${i} ${e} <=Actual]`))}(e,n,null,"!=")}function I(n){return{token:n.token,providedIn:n.providedIn||null,factory:n.factory,value:void 0}}function ce(n){return{providers:n.providers||[],imports:n.imports||[]}}function Nn(n){return jp(n,Xs)||jp(n,Up)}function jp(n,e){return n.hasOwnProperty(e)?n[e]:null}function Hp(n){return n&&(n.hasOwnProperty(Lc)||n.hasOwnProperty(qS))?n[Lc]:null}const Xs=ie({\u0275prov:ie}),Lc=ie({\u0275inj:ie}),Up=ie({ngInjectableDef:ie}),qS=ie({ngInjectorDef:ie});var O=(()=>((O=O||{})[O.Default=0]="Default",O[O.Host=1]="Host",O[O.Self=2]="Self",O[O.SkipSelf=4]="SkipSelf",O[O.Optional=8]="Optional",O))();let Vc;function ei(n){const e=Vc;return Vc=n,e}function zp(n,e,t){const i=Nn(n);return i&&"root"==i.providedIn?void 0===i.value?i.value=i.factory():i.value:t&O.Optional?null:void 0!==e?e:void Zs(G(n),"Injector")}function ti(n){return{toString:n}.toString()}var Ut=(()=>((Ut=Ut||{})[Ut.OnPush=0]="OnPush",Ut[Ut.Default=1]="Default",Ut))(),lt=(()=>(function(n){n[n.Emulated=0]="Emulated",n[n.None=2]="None",n[n.ShadowDom=3]="ShadowDom"}(lt||(lt={})),lt))();const KS="undefined"!=typeof globalThis&&globalThis,YS="undefined"!=typeof window&&window,ZS="undefined"!=typeof self&&"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&self,ee=KS||"undefined"!=typeof global&&global||YS||ZS,or={},ae=[],Js=ie({\u0275cmp:ie}),Bc=ie({\u0275dir:ie}),jc=ie({\u0275pipe:ie}),$p=ie({\u0275mod:ie}),Pn=ie({\u0275fac:ie}),Do=ie({__NG_ELEMENT_ID__:ie});let XS=0;function Si(n){return ti(()=>{const t={},i={type:n.type,providersResolver:null,decls:n.decls,vars:n.vars,factory:null,template:n.template||null,consts:n.consts||null,ngContentSelectors:n.ngContentSelectors,hostBindings:n.hostBindings||null,hostVars:n.hostVars||0,hostAttrs:n.hostAttrs||null,contentQueries:n.contentQueries||null,declaredInputs:t,inputs:null,outputs:null,exportAs:n.exportAs||null,onPush:n.changeDetection===Ut.OnPush,directiveDefs:null,pipeDefs:null,selectors:n.selectors||ae,viewQuery:n.viewQuery||null,features:n.features||null,data:n.data||{},encapsulation:n.encapsulation||lt.Emulated,id:"c",styles:n.styles||ae,_:null,setInput:null,schemas:n.schemas||null,tView:null},r=n.directives,o=n.features,s=n.pipes;return i.id+=XS++,i.inputs=Qp(n.inputs,t),i.outputs=Qp(n.outputs),o&&o.forEach(a=>a(i)),i.directiveDefs=r?()=>("function"==typeof r?r():r).map(Gp):null,i.pipeDefs=s?()=>("function"==typeof s?s():s).map(Wp):null,i})}function Gp(n){return $e(n)||function ni(n){return n[Bc]||null}(n)}function Wp(n){return function Mi(n){return n[jc]||null}(n)}const qp={};function pe(n){return ti(()=>{const e={type:n.type,bootstrap:n.bootstrap||ae,declarations:n.declarations||ae,imports:n.imports||ae,exports:n.exports||ae,transitiveCompileScopes:null,schemas:n.schemas||null,id:n.id||null};return null!=n.id&&(qp[n.id]=n.type),e})}function Qp(n,e){if(null==n)return or;const t={};for(const i in n)if(n.hasOwnProperty(i)){let r=n[i],o=r;Array.isArray(r)&&(o=r[1],r=r[0]),t[r]=i,e&&(e[r]=o)}return t}const k=Si;function ct(n){return{type:n.type,name:n.name,factory:null,pure:!1!==n.pure,onDestroy:n.type.prototype.ngOnDestroy||null}}function $e(n){return n[Js]||null}function Tt(n,e){const t=n[$p]||null;if(!t&&!0===e)throw new Error(`Type ${G(n)} does not have '\u0275mod' property.`);return t}const z=11;function fn(n){return Array.isArray(n)&&"object"==typeof n[1]}function $t(n){return Array.isArray(n)&&!0===n[1]}function zc(n){return 0!=(8&n.flags)}function ia(n){return 2==(2&n.flags)}function ra(n){return 1==(1&n.flags)}function Gt(n){return null!==n.template}function o0(n){return 0!=(512&n[2])}function xi(n,e){return n.hasOwnProperty(Pn)?n[Pn]:null}class Gc{constructor(e,t,i){this.previousValue=e,this.currentValue=t,this.firstChange=i}isFirstChange(){return this.firstChange}}function Yp(n){return n.type.prototype.ngOnChanges&&(n.setInput=c0),l0}function l0(){const n=Xp(this),e=null==n?void 0:n.current;if(e){const t=n.previous;if(t===or)n.previous=e;else for(let i in e)t[i]=e[i];n.current=null,this.ngOnChanges(e)}}function c0(n,e,t,i){const r=Xp(n)||function u0(n,e){return n[Zp]=e}(n,{previous:or,current:null}),o=r.current||(r.current={}),s=r.previous,a=this.declaredInputs[t],l=s[a];o[a]=new Gc(l&&l.currentValue,e,s===or),n[i]=e}const Zp="__ngSimpleChanges__";function Xp(n){return n[Zp]||null}let qc;function Ee(n){return!!n.listen}const tm={createRenderer:(n,e)=>function Qc(){return void 0!==qc?qc:"undefined"!=typeof document?document:void 0}()};function Ie(n){for(;Array.isArray(n);)n=n[0];return n}function oa(n,e){return Ie(e[n])}function Rt(n,e){return Ie(e[n.index])}function Kc(n,e){return n.data[e]}function ur(n,e){return n[e]}function _t(n,e){const t=e[n];return fn(t)?t:t[0]}function nm(n){return 4==(4&n[2])}function Yc(n){return 128==(128&n[2])}function ii(n,e){return null==e?null:n[e]}function im(n){n[18]=0}function Zc(n,e){n[5]+=e;let t=n,i=n[3];for(;null!==i&&(1===e&&1===t[5]||-1===e&&0===t[5]);)i[5]+=e,t=i,i=i[3]}const L={lFrame:hm(null),bindingsEnabled:!0,isInCheckNoChangesMode:!1};function rm(){return L.bindingsEnabled}function C(){return L.lFrame.lView}function K(){return L.lFrame.tView}function Re(){let n=sm();for(;null!==n&&64===n.type;)n=n.parent;return n}function sm(){return L.lFrame.currentTNode}function pn(n,e){const t=L.lFrame;t.currentTNode=n,t.isParent=e}function Xc(){return L.lFrame.isParent}function Jc(){L.lFrame.isParent=!1}function sa(){return L.isInCheckNoChangesMode}function aa(n){L.isInCheckNoChangesMode=n}function et(){const n=L.lFrame;let e=n.bindingRootIndex;return-1===e&&(e=n.bindingRootIndex=n.tView.bindingStartIndex),e}function dr(){return L.lFrame.bindingIndex++}function Vn(n){const e=L.lFrame,t=e.bindingIndex;return e.bindingIndex=e.bindingIndex+n,t}function w0(n,e){const t=L.lFrame;t.bindingIndex=t.bindingRootIndex=n,eu(e)}function eu(n){L.lFrame.currentDirectiveIndex=n}function cm(){return L.lFrame.currentQueryIndex}function nu(n){L.lFrame.currentQueryIndex=n}function M0(n){const e=n[1];return 2===e.type?e.declTNode:1===e.type?n[6]:null}function um(n,e,t){if(t&O.SkipSelf){let r=e,o=n;for(;!(r=r.parent,null!==r||t&O.Host||(r=M0(o),null===r||(o=o[15],10&r.type))););if(null===r)return!1;e=r,n=o}const i=L.lFrame=dm();return i.currentTNode=e,i.lView=n,!0}function la(n){const e=dm(),t=n[1];L.lFrame=e,e.currentTNode=t.firstChild,e.lView=n,e.tView=t,e.contextLView=n,e.bindingIndex=t.bindingStartIndex,e.inI18n=!1}function dm(){const n=L.lFrame,e=null===n?null:n.child;return null===e?hm(n):e}function hm(n){const e={currentTNode:null,isParent:!0,lView:null,tView:null,selectedIndex:-1,contextLView:null,elementDepthCount:0,currentNamespace:null,currentDirectiveIndex:-1,bindingRootIndex:-1,bindingIndex:-1,currentQueryIndex:0,parent:n,child:null,inI18n:!1};return null!==n&&(n.child=e),e}function fm(){const n=L.lFrame;return L.lFrame=n.parent,n.currentTNode=null,n.lView=null,n}const pm=fm;function ca(){const n=fm();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 tt(){return L.lFrame.selectedIndex}function ri(n){L.lFrame.selectedIndex=n}function De(){const n=L.lFrame;return Kc(n.tView,n.selectedIndex)}function ua(n,e){for(let t=e.directiveStart,i=e.directiveEnd;t<i;t++){const o=n.data[t].type.prototype,{ngAfterContentInit:s,ngAfterContentChecked:a,ngAfterViewInit:l,ngAfterViewChecked:c,ngOnDestroy:u}=o;s&&(n.contentHooks||(n.contentHooks=[])).push(-t,s),a&&((n.contentHooks||(n.contentHooks=[])).push(t,a),(n.contentCheckHooks||(n.contentCheckHooks=[])).push(t,a)),l&&(n.viewHooks||(n.viewHooks=[])).push(-t,l),c&&((n.viewHooks||(n.viewHooks=[])).push(t,c),(n.viewCheckHooks||(n.viewCheckHooks=[])).push(t,c)),null!=u&&(n.destroyHooks||(n.destroyHooks=[])).push(t,u)}}function da(n,e,t){mm(n,e,3,t)}function ha(n,e,t,i){(3&n[2])===t&&mm(n,e,t,i)}function iu(n,e){let t=n[2];(3&t)===e&&(t&=2047,t+=1,n[2]=t)}function mm(n,e,t,i){const o=null!=i?i:-1,s=e.length-1;let a=0;for(let l=void 0!==i?65535&n[18]:0;l<s;l++)if("number"==typeof e[l+1]){if(a=e[l],null!=i&&a>=i)break}else e[l]<0&&(n[18]+=65536),(a<o||-1==o)&&(N0(n,t,e,l),n[18]=(4294901760&n[18])+l+2),l++}function N0(n,e,t,i){const r=t[i]<0,o=t[i+1],a=n[r?-t[i]:t[i]];if(r){if(n[2]>>11<n[18]>>16&&(3&n[2])===e){n[2]+=2048;try{o.call(a)}finally{}}}else try{o.call(a)}finally{}}class Io{constructor(e,t,i){this.factory=e,this.resolving=!1,this.canSeeViewProviders=t,this.injectImpl=i}}function fa(n,e,t){const i=Ee(n);let r=0;for(;r<t.length;){const o=t[r];if("number"==typeof o){if(0!==o)break;r++;const s=t[r++],a=t[r++],l=t[r++];i?n.setAttribute(e,a,l,s):e.setAttributeNS(s,a,l)}else{const s=o,a=t[++r];ou(s)?i&&n.setProperty(e,s,a):i?n.setAttribute(e,s,a):e.setAttribute(s,a),r++}}return r}function gm(n){return 3===n||4===n||6===n}function ou(n){return 64===n.charCodeAt(0)}function pa(n,e){if(null!==e&&0!==e.length)if(null===n||0===n.length)n=e.slice();else{let t=-1;for(let i=0;i<e.length;i++){const r=e[i];"number"==typeof r?t=r:0===t||_m(n,t,r,null,-1===t||2===t?e[++i]:null)}}return n}function _m(n,e,t,i,r){let o=0,s=n.length;if(-1===e)s=-1;else for(;o<n.length;){const a=n[o++];if("number"==typeof a){if(a===e){s=-1;break}if(a>e){s=o-1;break}}}for(;o<n.length;){const a=n[o];if("number"==typeof a)break;if(a===t){if(null===i)return void(null!==r&&(n[o+1]=r));if(i===n[o+1])return void(n[o+2]=r)}o++,null!==i&&o++,null!==r&&o++}-1!==s&&(n.splice(s,0,e),o=s+1),n.splice(o++,0,t),null!==i&&n.splice(o++,0,i),null!==r&&n.splice(o++,0,r)}function ym(n){return-1!==n}function hr(n){return 32767&n}function fr(n,e){let t=function j0(n){return n>>16}(n),i=e;for(;t>0;)i=i[15],t--;return i}let su=!0;function ma(n){const e=su;return su=n,e}let H0=0;function xo(n,e){const t=lu(n,e);if(-1!==t)return t;const i=e[1];i.firstCreatePass&&(n.injectorIndex=e.length,au(i.data,n),au(e,null),au(i.blueprint,null));const r=ga(n,e),o=n.injectorIndex;if(ym(r)){const s=hr(r),a=fr(r,e),l=a[1].data;for(let c=0;c<8;c++)e[o+c]=a[s+c]|l[s+c]}return e[o+8]=r,o}function au(n,e){n.push(0,0,0,0,0,0,0,0,e)}function lu(n,e){return-1===n.injectorIndex||n.parent&&n.parent.injectorIndex===n.injectorIndex||null===e[n.injectorIndex+8]?-1:n.injectorIndex}function ga(n,e){if(n.parent&&-1!==n.parent.injectorIndex)return n.parent.injectorIndex;let t=0,i=null,r=e;for(;null!==r;){const o=r[1],s=o.type;if(i=2===s?o.declTNode:1===s?r[6]:null,null===i)return-1;if(t++,r=r[15],-1!==i.injectorIndex)return i.injectorIndex|t<<16}return-1}function _a(n,e,t){!function U0(n,e,t){let i;"string"==typeof t?i=t.charCodeAt(0)||0:t.hasOwnProperty(Do)&&(i=t[Do]),null==i&&(i=t[Do]=H0++);const r=255&i;e.data[n+(r>>5)]|=1<<r}(n,e,t)}function Cm(n,e,t){if(t&O.Optional)return n;Zs(e,"NodeInjector")}function Em(n,e,t,i){if(t&O.Optional&&void 0===i&&(i=null),0==(t&(O.Self|O.Host))){const r=n[9],o=ei(void 0);try{return r?r.get(e,i,t&O.Optional):zp(e,i,t&O.Optional)}finally{ei(o)}}return Cm(i,e,t)}function Dm(n,e,t,i=O.Default,r){if(null!==n){const o=function W0(n){if("string"==typeof n)return n.charCodeAt(0)||0;const e=n.hasOwnProperty(Do)?n[Do]:void 0;return"number"==typeof e?e>=0?255&e:$0:e}(t);if("function"==typeof o){if(!um(e,n,i))return i&O.Host?Cm(r,t,i):Em(e,t,i,r);try{const s=o(i);if(null!=s||i&O.Optional)return s;Zs(t)}finally{pm()}}else if("number"==typeof o){let s=null,a=lu(n,e),l=-1,c=i&O.Host?e[16][6]:null;for((-1===a||i&O.SkipSelf)&&(l=-1===a?ga(n,e):e[a+8],-1!==l&&Mm(i,!1)?(s=e[1],a=hr(l),e=fr(l,e)):a=-1);-1!==a;){const u=e[1];if(Sm(o,a,u.data)){const d=G0(a,e,t,s,i,c);if(d!==wm)return d}l=e[a+8],-1!==l&&Mm(i,e[1].data[a+8]===c)&&Sm(o,a,e)?(s=u,a=hr(l),e=fr(l,e)):a=-1}}}return Em(e,t,i,r)}const wm={};function $0(){return new pr(Re(),C())}function G0(n,e,t,i,r,o){const s=e[1],a=s.data[n+8],u=ya(a,s,t,null==i?ia(a)&&su:i!=s&&0!=(3&a.type),r&O.Host&&o===a);return null!==u?Fo(e,s,u,a):wm}function ya(n,e,t,i,r){const o=n.providerIndexes,s=e.data,a=1048575&o,l=n.directiveStart,u=o>>20,h=r?a+u:n.directiveEnd;for(let f=i?a:a+u;f<h;f++){const p=s[f];if(f<l&&t===p||f>=l&&p.type===t)return f}if(r){const f=s[l];if(f&&Gt(f)&&f.type===t)return l}return null}function Fo(n,e,t,i){let r=n[t];const o=e.data;if(function P0(n){return n instanceof Io}(r)){const s=r;s.resolving&&function HS(n,e){const t=e?`. Dependency path: ${e.join(" > ")} > ${n}`:"";throw new wi("200",`Circular dependency in DI detected for ${n}${t}`)}(Je(o[t]));const a=ma(s.canSeeViewProviders);s.resolving=!0;const l=s.injectImpl?ei(s.injectImpl):null;um(n,i,O.Default);try{r=n[t]=s.factory(void 0,o,n,i),e.firstCreatePass&&t>=i.directiveStart&&function k0(n,e,t){const{ngOnChanges:i,ngOnInit:r,ngDoCheck:o}=e.type.prototype;if(i){const s=Yp(e);(t.preOrderHooks||(t.preOrderHooks=[])).push(n,s),(t.preOrderCheckHooks||(t.preOrderCheckHooks=[])).push(n,s)}r&&(t.preOrderHooks||(t.preOrderHooks=[])).push(0-n,r),o&&((t.preOrderHooks||(t.preOrderHooks=[])).push(n,o),(t.preOrderCheckHooks||(t.preOrderCheckHooks=[])).push(n,o))}(t,o[t],e)}finally{null!==l&&ei(l),ma(a),s.resolving=!1,pm()}}return r}function Sm(n,e,t){return!!(t[e+(n>>5)]&1<<n)}function Mm(n,e){return!(n&O.Self||n&O.Host&&e)}class pr{constructor(e,t){this._tNode=e,this._lView=t}get(e,t,i){return Dm(this._tNode,this._lView,e,i,t)}}const gr="__parameters__";function Fi(n,e,t){return ti(()=>{const i=function uu(n){return function(...t){if(n){const i=n(...t);for(const r in i)this[r]=i[r]}}}(e);function r(...o){if(this instanceof r)return i.apply(this,o),this;const s=new r(...o);return a.annotation=s,a;function a(l,c,u){const d=l.hasOwnProperty(gr)?l[gr]:Object.defineProperty(l,gr,{value:[]})[gr];for(;d.length<=u;)d.push(null);return(d[u]=d[u]||[]).push(s),l}}return t&&(r.prototype=Object.create(t.prototype)),r.prototype.ngMetadataName=n,r.annotationCls=r,r})}class T{constructor(e,t){this._desc=e,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,"number"==typeof t?this.__NG_ELEMENT_ID__=t:void 0!==t&&(this.\u0275prov=I({token:this,providedIn:t.providedIn||"root",factory:t.factory}))}toString(){return`InjectionToken ${this._desc}`}}function Ot(n,e){void 0===e&&(e=n);for(let t=0;t<n.length;t++){let i=n[t];Array.isArray(i)?(e===n&&(e=n.slice(0,t)),Ot(i,e)):e!==n&&e.push(i)}return e}function mn(n,e){n.forEach(t=>Array.isArray(t)?mn(t,e):e(t))}function ba(n,e,t){e>=n.length?n.push(t):n.splice(e,0,t)}function Ri(n,e){return e>=n.length-1?n.pop():n.splice(e,1)[0]}function si(n,e){const t=[];for(let i=0;i<n;i++)t.push(e);return t}function vt(n,e,t){let i=yr(n,e);return i>=0?n[1|i]=t:(i=~i,function Z0(n,e,t,i){let r=n.length;if(r==e)n.push(t,i);else if(1===r)n.push(i,n[0]),n[0]=t;else{for(r--,n.push(n[r-1],n[r]);r>e;)n[r]=n[r-2],r--;n[e]=t,n[e+1]=i}}(n,i,e,t)),i}function hu(n,e){const t=yr(n,e);if(t>=0)return n[1|t]}function yr(n,e){return function xm(n,e,t){let i=0,r=n.length>>t;for(;r!==i;){const o=i+(r-i>>1),s=n[o<<t];if(e===s)return o<<t;s>e?r=o:i=o+1}return~(r<<t)}(n,e,1)}const No={},pu="__NG_DI_FLAG__",vr="ngTempTokenPath",rM=/\n/gm,mu="__source",gu=ie({provide:String,useValue:ie});let Po;function br(n){const e=Po;return Po=n,e}function sM(n,e=O.Default){if(void 0===Po)throw new Error("inject() must be called from an injection context");return null===Po?zp(n,void 0,e):Po.get(n,e&O.Optional?null:void 0,e)}function b(n,e=O.Default){return(function QS(){return Vc}()||sM)(x(n),e)}const _u=b;function Oi(n){const e=[];for(let t=0;t<n.length;t++){const i=x(n[t]);if(Array.isArray(i)){if(0===i.length)throw new Error("Arguments array must have arguments.");let r,o=O.Default;for(let s=0;s<i.length;s++){const a=i[s],l=aM(a);"number"==typeof l?-1===l?r=a.token:o|=l:r=a}e.push(b(r,o))}else e.push(b(i))}return e}function Lo(n,e){return n[pu]=e,n.prototype[pu]=e,n}function aM(n){return n[pu]}function Rm(n,e,t,i){const r=n[vr];throw e[mu]&&r.unshift(e[mu]),n.message=function Om(n,e,t,i=null){n=n&&"\n"===n.charAt(0)&&"\u0275"==n.charAt(1)?n.substr(2):n;let r=G(e);if(Array.isArray(e))r=e.map(G).join(" -> ");else if("object"==typeof e){let o=[];for(let s in e)if(e.hasOwnProperty(s)){let a=e[s];o.push(s+":"+("string"==typeof a?JSON.stringify(a):G(a)))}r=`{${o.join(", ")}}`}return`${t}${i?"("+i+")":""}[${r}]: ${n.replace(rM,"\n ")}`}("\n"+n.message,r,t,i),n.ngTokenPath=r,n[vr]=null,n}const Vo=Lo(Fi("Inject",n=>({token:n})),-1),bt=Lo(Fi("Optional"),8),ai=Lo(Fi("SkipSelf"),4);let wa;function Er(n){var e;return(null===(e=function vu(){if(void 0===wa&&(wa=null,ee.trustedTypes))try{wa=ee.trustedTypes.createPolicy("angular",{createHTML:n=>n,createScript:n=>n,createScriptURL:n=>n})}catch(n){}return wa}())||void 0===e?void 0:e.createHTML(n))||n}class ki{constructor(e){this.changingThisBreaksApplicationSecurity=e}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see https://g.co/ng/security#xss)`}}class yM extends ki{getTypeName(){return"HTML"}}class vM extends ki{getTypeName(){return"Style"}}class bM extends ki{getTypeName(){return"Script"}}class CM extends ki{getTypeName(){return"URL"}}class EM extends ki{getTypeName(){return"ResourceURL"}}function Ct(n){return n instanceof ki?n.changingThisBreaksApplicationSecurity:n}function gn(n,e){const t=jm(n);if(null!=t&&t!==e){if("ResourceURL"===t&&"URL"===e)return!0;throw new Error(`Required a safe ${e}, got a ${t} (see https://g.co/ng/security#xss)`)}return t===e}function jm(n){return n instanceof ki&&n.getTypeName()||null}class IM{constructor(e){this.inertDocumentHelper=e}getInertBodyElement(e){e="<body><remove></remove>"+e;try{const t=(new window.DOMParser).parseFromString(Er(e),"text/html").body;return null===t?this.inertDocumentHelper.getInertBodyElement(e):(t.removeChild(t.firstChild),t)}catch(t){return null}}}class TM{constructor(e){if(this.defaultDoc=e,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert"),null==this.inertDocument.body){const t=this.inertDocument.createElement("html");this.inertDocument.appendChild(t);const i=this.inertDocument.createElement("body");t.appendChild(i)}}getInertBodyElement(e){const t=this.inertDocument.createElement("template");if("content"in t)return t.innerHTML=Er(e),t;const i=this.inertDocument.createElement("body");return i.innerHTML=Er(e),this.defaultDoc.documentMode&&this.stripCustomNsAttrs(i),i}stripCustomNsAttrs(e){const t=e.attributes;for(let r=t.length-1;0<r;r--){const s=t.item(r).name;("xmlns:ns1"===s||0===s.indexOf("ns1:"))&&e.removeAttribute(s)}let i=e.firstChild;for(;i;)i.nodeType===Node.ELEMENT_NODE&&this.stripCustomNsAttrs(i),i=i.nextSibling}}const FM=/^(?:(?:https?|mailto|ftp|tel|file|sms):|[^&:/?#]*(?:[/?#]|$))/gi,RM=/^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 jo(n){return(n=String(n)).match(FM)||n.match(RM)?n:"unsafe:"+n}function Um(n){return(n=String(n)).split(",").map(e=>jo(e.trim())).join(", ")}function _n(n){const e={};for(const t of n.split(","))e[t]=!0;return e}function Ho(...n){const e={};for(const t of n)for(const i in t)t.hasOwnProperty(i)&&(e[i]=!0);return e}const zm=_n("area,br,col,hr,img,wbr"),$m=_n("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),Gm=_n("rp,rt"),Cu=Ho(zm,Ho($m,_n("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")),Ho(Gm,_n("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")),Ho(Gm,$m)),Eu=_n("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),Du=_n("srcset"),Wm=Ho(Eu,Du,_n("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"),_n("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")),OM=_n("script,style,template");class kM{constructor(){this.sanitizedSomething=!1,this.buf=[]}sanitizeChildren(e){let t=e.firstChild,i=!0;for(;t;)if(t.nodeType===Node.ELEMENT_NODE?i=this.startElement(t):t.nodeType===Node.TEXT_NODE?this.chars(t.nodeValue):this.sanitizedSomething=!0,i&&t.firstChild)t=t.firstChild;else for(;t;){t.nodeType===Node.ELEMENT_NODE&&this.endElement(t);let r=this.checkClobberedElement(t,t.nextSibling);if(r){t=r;break}t=this.checkClobberedElement(t,t.parentNode)}return this.buf.join("")}startElement(e){const t=e.nodeName.toLowerCase();if(!Cu.hasOwnProperty(t))return this.sanitizedSomething=!0,!OM.hasOwnProperty(t);this.buf.push("<"),this.buf.push(t);const i=e.attributes;for(let r=0;r<i.length;r++){const o=i.item(r),s=o.name,a=s.toLowerCase();if(!Wm.hasOwnProperty(a)){this.sanitizedSomething=!0;continue}let l=o.value;Eu[a]&&(l=jo(l)),Du[a]&&(l=Um(l)),this.buf.push(" ",s,'="',qm(l),'"')}return this.buf.push(">"),!0}endElement(e){const t=e.nodeName.toLowerCase();Cu.hasOwnProperty(t)&&!zm.hasOwnProperty(t)&&(this.buf.push("</"),this.buf.push(t),this.buf.push(">"))}chars(e){this.buf.push(qm(e))}checkClobberedElement(e,t){if(t&&(e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_CONTAINED_BY)===Node.DOCUMENT_POSITION_CONTAINED_BY)throw new Error(`Failed to sanitize html because the element is clobbered: ${e.outerHTML}`);return t}}const NM=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,PM=/([^\#-~ |!])/g;function qm(n){return n.replace(/&/g,"&amp;").replace(NM,function(e){return"&#"+(1024*(e.charCodeAt(0)-55296)+(e.charCodeAt(1)-56320)+65536)+";"}).replace(PM,function(e){return"&#"+e.charCodeAt(0)+";"}).replace(/</g,"&lt;").replace(/>/g,"&gt;")}let Ma;function Qm(n,e){let t=null;try{Ma=Ma||function Hm(n){const e=new TM(n);return function xM(){try{return!!(new window.DOMParser).parseFromString(Er(""),"text/html")}catch(n){return!1}}()?new IM(e):e}(n);let i=e?String(e):"";t=Ma.getInertBodyElement(i);let r=5,o=i;do{if(0===r)throw new Error("Failed to sanitize html because the input is unstable");r--,i=o,o=t.innerHTML,t=Ma.getInertBodyElement(i)}while(i!==o);return Er((new kM).sanitizeChildren(wu(t)||t))}finally{if(t){const i=wu(t)||t;for(;i.firstChild;)i.removeChild(i.firstChild)}}}function wu(n){return"content"in n&&function LM(n){return n.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===n.nodeName}(n)?n.content:null}var X=(()=>((X=X||{})[X.NONE=0]="NONE",X[X.HTML=1]="HTML",X[X.STYLE=2]="STYLE",X[X.SCRIPT=3]="SCRIPT",X[X.URL=4]="URL",X[X.RESOURCE_URL=5]="RESOURCE_URL",X))();const Xm="__ngContext__";function We(n,e){n[Xm]=e}function Mu(n){const e=function zo(n){return n[Xm]||null}(n);return e?Array.isArray(e)?e:e.lView:null}function Aa(n){return n.ngOriginalError}function eA(n,...e){n.error(...e)}class yn{constructor(){this._console=console}handleError(e){const t=this._findOriginalError(e),i=this._findContext(e),r=function JM(n){return n&&n.ngErrorLogger||eA}(e);r(this._console,"ERROR",e),t&&r(this._console,"ORIGINAL ERROR",t),i&&r(this._console,"ERROR CONTEXT",i)}_findContext(e){return e?function rg(n){return n.ngDebugContext}(e)||this._findContext(Aa(e)):null}_findOriginalError(e){let t=e&&Aa(e);for(;t&&Aa(t);)t=Aa(t);return t||null}}const ag=(()=>("undefined"!=typeof requestAnimationFrame&&requestAnimationFrame||setTimeout).bind(ee))();function vn(n){return n instanceof Function?n():n}var Et=(()=>((Et=Et||{})[Et.Important=1]="Important",Et[Et.DashCase=2]="DashCase",Et))();function Tu(n,e){return undefined(n,e)}function $o(n){const e=n[3];return $t(e)?e[3]:e}function xu(n){return hg(n[13])}function Fu(n){return hg(n[4])}function hg(n){for(;null!==n&&!$t(n);)n=n[4];return n}function wr(n,e,t,i,r){if(null!=i){let o,s=!1;$t(i)?o=i:fn(i)&&(s=!0,i=i[0]);const a=Ie(i);0===n&&null!==t?null==r?yg(e,t,a):Ni(e,t,a,r||null,!0):1===n&&null!==t?Ni(e,t,a,r||null,!0):2===n?function Sg(n,e,t){const i=Ta(n,e);i&&function CA(n,e,t,i){Ee(n)?n.removeChild(e,t,i):e.removeChild(t)}(n,i,e,t)}(e,a,s):3===n&&e.destroyNode(a),null!=o&&function wA(n,e,t,i,r){const o=t[7];o!==Ie(t)&&wr(e,n,i,o,r);for(let a=10;a<t.length;a++){const l=t[a];Go(l[1],l,n,e,i,o)}}(e,n,o,t,r)}}function Ou(n,e,t){return Ee(n)?n.createElement(e,t):null===t?n.createElement(e):n.createElementNS(t,e)}function pg(n,e){const t=n[9],i=t.indexOf(e),r=e[3];1024&e[2]&&(e[2]&=-1025,Zc(r,-1)),t.splice(i,1)}function ku(n,e){if(n.length<=10)return;const t=10+e,i=n[t];if(i){const r=i[17];null!==r&&r!==n&&pg(r,i),e>0&&(n[t-1][4]=i[4]);const o=Ri(n,10+e);!function fA(n,e){Go(n,e,e[z],2,null,null),e[0]=null,e[6]=null}(i[1],i);const s=o[19];null!==s&&s.detachView(o[1]),i[3]=null,i[4]=null,i[2]&=-129}return i}function mg(n,e){if(!(256&e[2])){const t=e[z];Ee(t)&&t.destroyNode&&Go(n,e,t,3,null,null),function gA(n){let e=n[13];if(!e)return Nu(n[1],n);for(;e;){let t=null;if(fn(e))t=e[13];else{const i=e[10];i&&(t=i)}if(!t){for(;e&&!e[4]&&e!==n;)fn(e)&&Nu(e[1],e),e=e[3];null===e&&(e=n),fn(e)&&Nu(e[1],e),t=e&&e[4]}e=t}}(e)}}function Nu(n,e){if(!(256&e[2])){e[2]&=-129,e[2]|=256,function bA(n,e){let t;if(null!=n&&null!=(t=n.destroyHooks))for(let i=0;i<t.length;i+=2){const r=e[t[i]];if(!(r instanceof Io)){const o=t[i+1];if(Array.isArray(o))for(let s=0;s<o.length;s+=2){const a=r[o[s]],l=o[s+1];try{l.call(a)}finally{}}else try{o.call(r)}finally{}}}}(n,e),function vA(n,e){const t=n.cleanup,i=e[7];let r=-1;if(null!==t)for(let o=0;o<t.length-1;o+=2)if("string"==typeof t[o]){const s=t[o+1],a="function"==typeof s?s(e):Ie(e[s]),l=i[r=t[o+2]],c=t[o+3];"boolean"==typeof c?a.removeEventListener(t[o],l,c):c>=0?i[r=c]():i[r=-c].unsubscribe(),o+=2}else{const s=i[r=t[o+1]];t[o].call(s)}if(null!==i){for(let o=r+1;o<i.length;o++)i[o]();e[7]=null}}(n,e),1===e[1].type&&Ee(e[z])&&e[z].destroy();const t=e[17];if(null!==t&&$t(e[3])){t!==e[3]&&pg(t,e);const i=e[19];null!==i&&i.detachView(n)}}}function gg(n,e,t){return function _g(n,e,t){let i=e;for(;null!==i&&40&i.type;)i=(e=i).parent;if(null===i)return t[0];if(2&i.flags){const r=n.data[i.directiveStart].encapsulation;if(r===lt.None||r===lt.Emulated)return null}return Rt(i,t)}(n,e.parent,t)}function Ni(n,e,t,i,r){Ee(n)?n.insertBefore(e,t,i,r):e.insertBefore(t,i,r)}function yg(n,e,t){Ee(n)?n.appendChild(e,t):e.appendChild(t)}function vg(n,e,t,i,r){null!==i?Ni(n,e,t,i,r):yg(n,e,t)}function Ta(n,e){return Ee(n)?n.parentNode(e):e.parentNode}function bg(n,e,t){return Eg(n,e,t)}let Eg=function Cg(n,e,t){return 40&n.type?Rt(n,t):null};function xa(n,e,t,i){const r=gg(n,i,e),o=e[z],a=bg(i.parent||e[6],i,e);if(null!=r)if(Array.isArray(t))for(let l=0;l<t.length;l++)vg(o,r,t[l],a,!1);else vg(o,r,t,a,!1)}function Fa(n,e){if(null!==e){const t=e.type;if(3&t)return Rt(e,n);if(4&t)return Lu(-1,n[e.index]);if(8&t){const i=e.child;if(null!==i)return Fa(n,i);{const r=n[e.index];return $t(r)?Lu(-1,r):Ie(r)}}if(32&t)return Tu(e,n)()||Ie(n[e.index]);{const i=wg(n,e);return null!==i?Array.isArray(i)?i[0]:Fa($o(n[16]),i):Fa(n,e.next)}}return null}function wg(n,e){return null!==e?n[16][6].projection[e.projection]:null}function Lu(n,e){const t=10+n+1;if(t<e.length){const i=e[t],r=i[1].firstChild;if(null!==r)return Fa(i,r)}return e[7]}function Vu(n,e,t,i,r,o,s){for(;null!=t;){const a=i[t.index],l=t.type;if(s&&0===e&&(a&&We(Ie(a),i),t.flags|=4),64!=(64&t.flags))if(8&l)Vu(n,e,t.child,i,r,o,!1),wr(e,n,r,a,o);else if(32&l){const c=Tu(t,i);let u;for(;u=c();)wr(e,n,r,u,o);wr(e,n,r,a,o)}else 16&l?Mg(n,e,i,t,r,o):wr(e,n,r,a,o);t=s?t.projectionNext:t.next}}function Go(n,e,t,i,r,o){Vu(t,i,n.firstChild,e,r,o,!1)}function Mg(n,e,t,i,r,o){const s=t[16],l=s[6].projection[i.projection];if(Array.isArray(l))for(let c=0;c<l.length;c++)wr(e,n,r,l[c],o);else Vu(n,e,l,s[3],r,o,!0)}function Ag(n,e,t){Ee(n)?n.setAttribute(e,"style",t):e.style.cssText=t}function Bu(n,e,t){Ee(n)?""===t?n.removeAttribute(e,"class"):n.setAttribute(e,"class",t):e.className=t}function Ig(n,e,t){let i=n.length;for(;;){const r=n.indexOf(e,t);if(-1===r)return r;if(0===r||n.charCodeAt(r-1)<=32){const o=e.length;if(r+o===i||n.charCodeAt(r+o)<=32)return r}t=r+1}}const Tg="ng-template";function MA(n,e,t){let i=0;for(;i<n.length;){let r=n[i++];if(t&&"class"===r){if(r=n[i],-1!==Ig(r.toLowerCase(),e,0))return!0}else if(1===r){for(;i<n.length&&"string"==typeof(r=n[i++]);)if(r.toLowerCase()===e)return!0;return!1}}return!1}function xg(n){return 4===n.type&&n.value!==Tg}function AA(n,e,t){return e===(4!==n.type||t?n.value:Tg)}function IA(n,e,t){let i=4;const r=n.attrs||[],o=function FA(n){for(let e=0;e<n.length;e++)if(gm(n[e]))return e;return n.length}(r);let s=!1;for(let a=0;a<e.length;a++){const l=e[a];if("number"!=typeof l){if(!s)if(4&i){if(i=2|1&i,""!==l&&!AA(n,l,t)||""===l&&1===e.length){if(Wt(i))return!1;s=!0}}else{const c=8&i?l:e[++a];if(8&i&&null!==n.attrs){if(!MA(n.attrs,c,t)){if(Wt(i))return!1;s=!0}continue}const d=TA(8&i?"class":l,r,xg(n),t);if(-1===d){if(Wt(i))return!1;s=!0;continue}if(""!==c){let h;h=d>o?"":r[d+1].toLowerCase();const f=8&i?h:null;if(f&&-1!==Ig(f,c,0)||2&i&&c!==h){if(Wt(i))return!1;s=!0}}}}else{if(!s&&!Wt(i)&&!Wt(l))return!1;if(s&&Wt(l))continue;s=!1,i=l|1&i}}return Wt(i)||s}function Wt(n){return 0==(1&n)}function TA(n,e,t,i){if(null===e)return-1;let r=0;if(i||!t){let o=!1;for(;r<e.length;){const s=e[r];if(s===n)return r;if(3===s||6===s)o=!0;else{if(1===s||2===s){let a=e[++r];for(;"string"==typeof a;)a=e[++r];continue}if(4===s)break;if(0===s){r+=4;continue}}r+=o?1:2}return-1}return function RA(n,e){let t=n.indexOf(4);if(t>-1)for(t++;t<n.length;){const i=n[t];if("number"==typeof i)return-1;if(i===e)return t;t++}return-1}(e,n)}function Fg(n,e,t=!1){for(let i=0;i<e.length;i++)if(IA(n,e[i],t))return!0;return!1}function OA(n,e){e:for(let t=0;t<e.length;t++){const i=e[t];if(n.length===i.length){for(let r=0;r<n.length;r++)if(n[r]!==i[r])continue e;return!0}}return!1}function Rg(n,e){return n?":not("+e.trim()+")":e}function kA(n){let e=n[0],t=1,i=2,r="",o=!1;for(;t<n.length;){let s=n[t];if("string"==typeof s)if(2&i){const a=n[++t];r+="["+s+(a.length>0?'="'+a+'"':"")+"]"}else 8&i?r+="."+s:4&i&&(r+=" "+s);else""!==r&&!Wt(s)&&(e+=Rg(o,r),r=""),i=s,o=o||!Wt(i);t++}return""!==r&&(e+=Rg(o,r)),e}const U={};function bn(n){Og(K(),C(),tt()+n,sa())}function Og(n,e,t,i){if(!i)if(3==(3&e[2])){const o=n.preOrderCheckHooks;null!==o&&da(e,o,t)}else{const o=n.preOrderHooks;null!==o&&ha(e,o,0,t)}ri(t)}function Ra(n,e){return n<<17|e<<2}function qt(n){return n>>17&32767}function ju(n){return 2|n}function Bn(n){return(131068&n)>>2}function Hu(n,e){return-131069&n|e<<2}function Uu(n){return 1|n}function $g(n,e){const t=n.contentQueries;if(null!==t)for(let i=0;i<t.length;i+=2){const r=t[i],o=t[i+1];if(-1!==o){const s=n.data[o];nu(r),s.contentQueries(2,e[o],o)}}}function Wo(n,e,t,i,r,o,s,a,l,c){const u=e.blueprint.slice();return u[0]=r,u[2]=140|i,im(u),u[3]=u[15]=n,u[8]=t,u[10]=s||n&&n[10],u[z]=a||n&&n[z],u[12]=l||n&&n[12]||null,u[9]=c||n&&n[9]||null,u[6]=o,u[16]=2==e.type?n[16]:u,u}function Sr(n,e,t,i,r){let o=n.data[e];if(null===o)o=function Zu(n,e,t,i,r){const o=sm(),s=Xc(),l=n.data[e]=function XA(n,e,t,i,r,o){return{type:t,index:i,insertBeforeIndex:null,injectorIndex:e?e.injectorIndex:-1,directiveStart:-1,directiveEnd:-1,directiveStylingLast:-1,propertyBindings:null,flags:0,providerIndexes:0,value:r,attrs:o,mergedAttrs:null,localNames:null,initialInputs:void 0,inputs:null,outputs:null,tViews:null,next:null,projectionNext:null,child:null,parent:e,projection:null,styles:null,stylesWithoutHost:null,residualStyles:void 0,classes:null,classesWithoutHost:null,residualClasses:void 0,classBindings:0,styleBindings:0}}(0,s?o:o&&o.parent,t,e,i,r);return null===n.firstChild&&(n.firstChild=l),null!==o&&(s?null==o.child&&null!==l.parent&&(o.child=l):null===o.next&&(o.next=l)),l}(n,e,t,i,r),function D0(){return L.lFrame.inI18n}()&&(o.flags|=64);else if(64&o.type){o.type=t,o.value=i,o.attrs=r;const s=function Ao(){const n=L.lFrame,e=n.currentTNode;return n.isParent?e:e.parent}();o.injectorIndex=null===s?-1:s.injectorIndex}return pn(o,!0),o}function Mr(n,e,t,i){if(0===t)return-1;const r=e.length;for(let o=0;o<t;o++)e.push(i),n.blueprint.push(i),n.data.push(null);return r}function qo(n,e,t){la(e);try{const i=n.viewQuery;null!==i&&sd(1,i,t);const r=n.template;null!==r&&Gg(n,e,r,1,t),n.firstCreatePass&&(n.firstCreatePass=!1),n.staticContentQueries&&$g(n,e),n.staticViewQueries&&sd(2,n.viewQuery,t);const o=n.components;null!==o&&function KA(n,e){for(let t=0;t<e.length;t++)gI(n,e[t])}(e,o)}catch(i){throw n.firstCreatePass&&(n.incompleteFirstPass=!0,n.firstCreatePass=!1),i}finally{e[2]&=-5,ca()}}function Ar(n,e,t,i){const r=e[2];if(256==(256&r))return;la(e);const o=sa();try{im(e),function am(n){return L.lFrame.bindingIndex=n}(n.bindingStartIndex),null!==t&&Gg(n,e,t,2,i);const s=3==(3&r);if(!o)if(s){const c=n.preOrderCheckHooks;null!==c&&da(e,c,null)}else{const c=n.preOrderHooks;null!==c&&ha(e,c,0,null),iu(e,0)}if(function pI(n){for(let e=xu(n);null!==e;e=Fu(e)){if(!e[2])continue;const t=e[9];for(let i=0;i<t.length;i++){const r=t[i],o=r[3];0==(1024&r[2])&&Zc(o,1),r[2]|=1024}}}(e),function fI(n){for(let e=xu(n);null!==e;e=Fu(e))for(let t=10;t<e.length;t++){const i=e[t],r=i[1];Yc(i)&&Ar(r,i,r.template,i[8])}}(e),null!==n.contentQueries&&$g(n,e),!o)if(s){const c=n.contentCheckHooks;null!==c&&da(e,c)}else{const c=n.contentHooks;null!==c&&ha(e,c,1),iu(e,1)}!function qA(n,e){const t=n.hostBindingOpCodes;if(null!==t)try{for(let i=0;i<t.length;i++){const r=t[i];if(r<0)ri(~r);else{const o=r,s=t[++i],a=t[++i];w0(s,o),a(2,e[o])}}}finally{ri(-1)}}(n,e);const a=n.components;null!==a&&function QA(n,e){for(let t=0;t<e.length;t++)mI(n,e[t])}(e,a);const l=n.viewQuery;if(null!==l&&sd(2,l,i),!o)if(s){const c=n.viewCheckHooks;null!==c&&da(e,c)}else{const c=n.viewHooks;null!==c&&ha(e,c,2),iu(e,2)}!0===n.firstUpdatePass&&(n.firstUpdatePass=!1),o||(e[2]&=-73),1024&e[2]&&(e[2]&=-1025,Zc(e[3],-1))}finally{ca()}}function YA(n,e,t,i){const r=e[10],o=!sa(),s=nm(e);try{o&&!s&&r.begin&&r.begin(),s&&qo(n,e,i),Ar(n,e,t,i)}finally{o&&!s&&r.end&&r.end()}}function Gg(n,e,t,i,r){const o=tt(),s=2&i;try{ri(-1),s&&e.length>20&&Og(n,e,20,sa()),t(i,r)}finally{ri(o)}}function qg(n){const e=n.tView;return null===e||e.incompleteFirstPass?n.tView=Na(1,null,n.template,n.decls,n.vars,n.directiveDefs,n.pipeDefs,n.viewQuery,n.schemas,n.consts):e}function Na(n,e,t,i,r,o,s,a,l,c){const u=20+i,d=u+r,h=function ZA(n,e){const t=[];for(let i=0;i<e;i++)t.push(i<n?null:U);return t}(u,d),f="function"==typeof c?c():c;return h[1]={type:n,blueprint:h,template:t,queries:null,viewQuery:a,declTNode:e,data:h.slice().fill(null,u),bindingStartIndex:u,expandoStartIndex:d,hostBindingOpCodes:null,firstCreatePass:!0,firstUpdatePass:!0,staticViewQueries:!1,staticContentQueries:!1,preOrderHooks:null,preOrderCheckHooks:null,contentHooks:null,contentCheckHooks:null,viewHooks:null,viewCheckHooks:null,destroyHooks:null,cleanup:null,contentQueries:null,components:null,directiveRegistry:"function"==typeof o?o():o,pipeRegistry:"function"==typeof s?s():s,firstChild:null,schemas:l,consts:f,incompleteFirstPass:!1}}function Yg(n,e,t,i){const r=s_(e);null===t?r.push(i):(r.push(t),n.firstCreatePass&&a_(n).push(i,r.length-1))}function Zg(n,e,t){for(let i in n)if(n.hasOwnProperty(i)){const r=n[i];(t=null===t?{}:t).hasOwnProperty(i)?t[i].push(e,r):t[i]=[e,r]}return t}function Dt(n,e,t,i,r,o,s,a){const l=Rt(e,t);let u,c=e.inputs;!a&&null!=c&&(u=c[i])?(u_(n,t,u,i,r),ia(e)&&function tI(n,e){const t=_t(e,n);16&t[2]||(t[2]|=64)}(t,e.index)):3&e.type&&(i=function eI(n){return"class"===n?"className":"for"===n?"htmlFor":"formaction"===n?"formAction":"innerHtml"===n?"innerHTML":"readonly"===n?"readOnly":"tabindex"===n?"tabIndex":n}(i),r=null!=s?s(r,e.value||"",i):r,Ee(o)?o.setProperty(l,i,r):ou(i)||(l.setProperty?l.setProperty(i,r):l[i]=r))}function Jg(n,e,t,i,r,o){const s=o.hostBindings;if(s){let a=n.hostBindingOpCodes;null===a&&(a=n.hostBindingOpCodes=[]);const l=~e.index;(function rI(n){let e=n.length;for(;e>0;){const t=n[--e];if("number"==typeof t&&t<0)return t}return 0})(a)!=l&&a.push(l),a.push(i,r,s)}}function e_(n,e){null!==n.hostBindings&&n.hostBindings(1,e)}function t_(n,e){e.flags|=2,(n.components||(n.components=[])).push(e.index)}function cI(n,e,t){if(t){if(e.exportAs)for(let i=0;i<e.exportAs.length;i++)t[e.exportAs[i]]=n;Gt(e)&&(t[""]=n)}}function n_(n,e,t){n.flags|=1,n.directiveStart=e,n.directiveEnd=e+t,n.providerIndexes=e}function i_(n,e,t,i,r){n.data[i]=r;const o=r.factory||(r.factory=xi(r.type)),s=new Io(o,Gt(r),null);n.blueprint[i]=s,t[i]=s,Jg(n,e,0,i,Mr(n,t,r.hostVars,U),r)}function uI(n,e,t){const i=Rt(e,n),r=qg(t),o=n[10],s=Pa(n,Wo(n,r,null,t.onPush?64:16,i,e,o,o.createRenderer(i,t),null,null));n[e.index]=s}function Cn(n,e,t,i,r,o){const s=Rt(n,e);!function td(n,e,t,i,r,o,s){if(null==o)Ee(n)?n.removeAttribute(e,r,t):e.removeAttribute(r);else{const a=null==s?H(o):s(o,i||"",r);Ee(n)?n.setAttribute(e,r,a,t):t?e.setAttributeNS(t,r,a):e.setAttribute(r,a)}}(e[z],s,o,n.value,t,i,r)}function dI(n,e,t,i,r,o){const s=o[e];if(null!==s){const a=i.setInput;for(let l=0;l<s.length;){const c=s[l++],u=s[l++],d=s[l++];null!==a?i.setInput(t,d,c,u):t[u]=d}}}function hI(n,e){let t=null,i=0;for(;i<e.length;){const r=e[i];if(0!==r)if(5!==r){if("number"==typeof r)break;n.hasOwnProperty(r)&&(null===t&&(t=[]),t.push(r,n[r],e[i+1])),i+=2}else i+=2;else i+=4}return t}function mI(n,e){const t=_t(e,n);if(Yc(t)){const i=t[1];80&t[2]?Ar(i,t,i.template,t[8]):t[5]>0&&nd(t)}}function nd(n){for(let i=xu(n);null!==i;i=Fu(i))for(let r=10;r<i.length;r++){const o=i[r];if(1024&o[2]){const s=o[1];Ar(s,o,s.template,o[8])}else o[5]>0&&nd(o)}const t=n[1].components;if(null!==t)for(let i=0;i<t.length;i++){const r=_t(t[i],n);Yc(r)&&r[5]>0&&nd(r)}}function gI(n,e){const t=_t(e,n),i=t[1];(function _I(n,e){for(let t=e.length;t<n.blueprint.length;t++)e.push(n.blueprint[t])})(i,t),qo(i,t,t[8])}function Pa(n,e){return n[13]?n[14][4]=e:n[13]=e,n[14]=e,e}function id(n){for(;n;){n[2]|=64;const e=$o(n);if(o0(n)&&!e)return n;n=e}return null}function od(n,e,t){const i=e[10];i.begin&&i.begin();try{Ar(n,e,n.template,t)}catch(r){throw c_(e,r),r}finally{i.end&&i.end()}}function o_(n){!function rd(n){for(let e=0;e<n.components.length;e++){const t=n.components[e],i=Mu(t),r=i[1];YA(r,i,r.template,t)}}(n[8])}function sd(n,e,t){nu(0),e(n,t)}const CI=(()=>Promise.resolve(null))();function s_(n){return n[7]||(n[7]=[])}function a_(n){return n.cleanup||(n.cleanup=[])}function c_(n,e){const t=n[9],i=t?t.get(yn,null):null;i&&i.handleError(e)}function u_(n,e,t,i,r){for(let o=0;o<t.length;){const s=t[o++],a=t[o++],l=e[s],c=n.data[s];null!==c.setInput?c.setInput(l,r,i,a):l[a]=r}}function jn(n,e,t){const i=oa(e,n);!function fg(n,e,t){Ee(n)?n.setValue(e,t):e.textContent=t}(n[z],i,t)}function La(n,e,t){let i=t?n.styles:null,r=t?n.classes:null,o=0;if(null!==e)for(let s=0;s<e.length;s++){const a=e[s];"number"==typeof a?o=a:1==o?r=Nc(r,a):2==o&&(i=Nc(i,a+": "+e[++s]+";"))}t?n.styles=i:n.stylesWithoutHost=i,t?n.classes=r:n.classesWithoutHost=r}const Qo=new T("INJECTOR",-1);class d_{get(e,t=No){if(t===No){const i=new Error(`NullInjectorError: No provider for ${G(e)}!`);throw i.name="NullInjectorError",i}return t}}const Ko=new T("Set Injector scope."),Yo={},wI={};let ad;function h_(){return void 0===ad&&(ad=new d_),ad}function f_(n,e=null,t=null,i){return new MI(n,t,e||h_(),i)}class MI{constructor(e,t,i,r=null){this.parent=i,this.records=new Map,this.injectorDefTypes=new Set,this.onDestroy=new Set,this._destroyed=!1;const o=[];t&&mn(t,a=>this.processProvider(a,e,t)),mn([e],a=>this.processInjectorType(a,[],o)),this.records.set(Qo,Ir(void 0,this));const s=this.records.get(Ko);this.scope=null!=s?s.value:null,this.source=r||("object"==typeof e?null:G(e))}get destroyed(){return this._destroyed}destroy(){this.assertNotDestroyed(),this._destroyed=!0;try{this.onDestroy.forEach(e=>e.ngOnDestroy())}finally{this.records.clear(),this.onDestroy.clear(),this.injectorDefTypes.clear()}}get(e,t=No,i=O.Default){this.assertNotDestroyed();const r=br(this),o=ei(void 0);try{if(!(i&O.SkipSelf)){let a=this.records.get(e);if(void 0===a){const l=function kI(n){return"function"==typeof n||"object"==typeof n&&n instanceof T}(e)&&Nn(e);a=l&&this.injectableDefInScope(l)?Ir(ld(e),Yo):null,this.records.set(e,a)}if(null!=a)return this.hydrate(e,a)}return(i&O.Self?h_():this.parent).get(e,t=i&O.Optional&&t===No?null:t)}catch(s){if("NullInjectorError"===s.name){if((s[vr]=s[vr]||[]).unshift(G(e)),r)throw s;return Rm(s,e,"R3InjectorError",this.source)}throw s}finally{ei(o),br(r)}}_resolveInjectorDefTypes(){this.injectorDefTypes.forEach(e=>this.get(e))}toString(){const e=[];return this.records.forEach((i,r)=>e.push(G(r))),`R3Injector[${e.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new Error("Injector has already been destroyed.")}processInjectorType(e,t,i){if(!(e=x(e)))return!1;let r=Hp(e);const o=null==r&&e.ngModule||void 0,s=void 0===o?e:o,a=-1!==i.indexOf(s);if(void 0!==o&&(r=Hp(o)),null==r)return!1;if(null!=r.imports&&!a){let u;i.push(s);try{mn(r.imports,d=>{this.processInjectorType(d,t,i)&&(void 0===u&&(u=[]),u.push(d))})}finally{}if(void 0!==u)for(let d=0;d<u.length;d++){const{ngModule:h,providers:f}=u[d];mn(f,p=>this.processProvider(p,h,f||ae))}}this.injectorDefTypes.add(s);const l=xi(s)||(()=>new s);this.records.set(s,Ir(l,Yo));const c=r.providers;if(null!=c&&!a){const u=e;mn(c,d=>this.processProvider(d,u,c))}return void 0!==o&&void 0!==e.providers}processProvider(e,t,i){let r=Tr(e=x(e))?e:x(e&&e.provide);const o=function II(n,e,t){return m_(n)?Ir(void 0,n.useValue):Ir(function p_(n,e,t){let i;if(Tr(n)){const r=x(n);return xi(r)||ld(r)}if(m_(n))i=()=>x(n.useValue);else if(function xI(n){return!(!n||!n.useFactory)}(n))i=()=>n.useFactory(...Oi(n.deps||[]));else if(function TI(n){return!(!n||!n.useExisting)}(n))i=()=>b(x(n.useExisting));else{const r=x(n&&(n.useClass||n.provide));if(!function RI(n){return!!n.deps}(n))return xi(r)||ld(r);i=()=>new r(...Oi(n.deps))}return i}(n),Yo)}(e);if(Tr(e)||!0!==e.multi)this.records.get(r);else{let s=this.records.get(r);s||(s=Ir(void 0,Yo,!0),s.factory=()=>Oi(s.multi),this.records.set(r,s)),r=e,s.multi.push(e)}this.records.set(r,o)}hydrate(e,t){return t.value===Yo&&(t.value=wI,t.value=t.factory()),"object"==typeof t.value&&t.value&&function OI(n){return null!==n&&"object"==typeof n&&"function"==typeof n.ngOnDestroy}(t.value)&&this.onDestroy.add(t.value),t.value}injectableDefInScope(e){if(!e.providedIn)return!1;const t=x(e.providedIn);return"string"==typeof t?"any"===t||t===this.scope:this.injectorDefTypes.has(t)}}function ld(n){const e=Nn(n),t=null!==e?e.factory:xi(n);if(null!==t)return t;if(n instanceof T)throw new Error(`Token ${G(n)} is missing a \u0275prov definition.`);if(n instanceof Function)return function AI(n){const e=n.length;if(e>0){const i=si(e,"?");throw new Error(`Can't resolve all parameters for ${G(n)}: (${i.join(", ")}).`)}const t=function GS(n){const e=n&&(n[Xs]||n[Up]);if(e){const t=function WS(n){if(n.hasOwnProperty("name"))return n.name;const e=(""+n).match(/^function\s*([^\s(]+)/);return null===e?"":e[1]}(n);return console.warn(`DEPRECATED: DI is instantiating a token "${t}" that inherits its @Injectable decorator but does not provide one itself.\nThis will become an error in a future version of Angular. Please add @Injectable() to the "${t}" class.`),e}return null}(n);return null!==t?()=>t.factory(n):()=>new n}(n);throw new Error("unreachable")}function Ir(n,e,t=!1){return{factory:n,value:e,multi:t?[]:void 0}}function m_(n){return null!==n&&"object"==typeof n&&gu in n}function Tr(n){return"function"==typeof n}const g_=function NI(n,e,t){return function SI(n,e=null,t=null,i){const r=f_(n,e,t,i);return r._resolveInjectorDefTypes(),r}({name:t},e,n,t)};let re=(()=>{class n{static create(t,i){return Array.isArray(t)?g_(t,i,""):g_(t.providers,t.parent,t.name||"")}}return n.THROW_IF_NOT_FOUND=No,n.NULL=new d_,n.\u0275prov=I({token:n,providedIn:"any",factory:()=>b(Qo)}),n.__NG_ELEMENT_ID__=-1,n})();function qI(n,e){ua(Mu(n)[1],Re())}function J(n){let e=function R_(n){return Object.getPrototypeOf(n.prototype).constructor}(n.type),t=!0;const i=[n];for(;e;){let r;if(Gt(n))r=e.\u0275cmp||e.\u0275dir;else{if(e.\u0275cmp)throw new Error("Directives cannot inherit Components");r=e.\u0275dir}if(r){if(t){i.push(r);const s=n;s.inputs=pd(n.inputs),s.declaredInputs=pd(n.declaredInputs),s.outputs=pd(n.outputs);const a=r.hostBindings;a&&ZI(n,a);const l=r.viewQuery,c=r.contentQueries;if(l&&KI(n,l),c&&YI(n,c),kc(n.inputs,r.inputs),kc(n.declaredInputs,r.declaredInputs),kc(n.outputs,r.outputs),Gt(r)&&r.data.animation){const u=n.data;u.animation=(u.animation||[]).concat(r.data.animation)}}const o=r.features;if(o)for(let s=0;s<o.length;s++){const a=o[s];a&&a.ngInherit&&a(n),a===J&&(t=!1)}}e=Object.getPrototypeOf(e)}!function QI(n){let e=0,t=null;for(let i=n.length-1;i>=0;i--){const r=n[i];r.hostVars=e+=r.hostVars,r.hostAttrs=pa(r.hostAttrs,t=pa(t,r.hostAttrs))}}(i)}function pd(n){return n===or?{}:n===ae?[]:n}function KI(n,e){const t=n.viewQuery;n.viewQuery=t?(i,r)=>{e(i,r),t(i,r)}:e}function YI(n,e){const t=n.contentQueries;n.contentQueries=t?(i,r,o)=>{e(i,r,o),t(i,r,o)}:e}function ZI(n,e){const t=n.hostBindings;n.hostBindings=t?(i,r)=>{e(i,r),t(i,r)}:e}let Va=null;function xr(){if(!Va){const n=ee.Symbol;if(n&&n.iterator)Va=n.iterator;else{const e=Object.getOwnPropertyNames(Map.prototype);for(let t=0;t<e.length;++t){const i=e[t];"entries"!==i&&"size"!==i&&Map.prototype[i]===Map.prototype.entries&&(Va=i)}}}return Va}function Xo(n){return!!md(n)&&(Array.isArray(n)||!(n instanceof Map)&&xr()in n)}function md(n){return null!==n&&("function"==typeof n||"object"==typeof n)}function qe(n,e,t){return!Object.is(n[e],t)&&(n[e]=t,!0)}function Kt(n,e,t,i){const r=C();return qe(r,dr(),e)&&(K(),Cn(De(),r,n,e,t,i)),Kt}function Rr(n,e,t,i){return qe(n,dr(),t)?e+H(t)+i:U}function es(n){return ur(function E0(){return L.lFrame.contextLView}(),20+n)}function v(n,e=O.Default){const t=C();return null===t?b(n,e):Dm(Re(),t,x(n),e)}function Un(n,e,t){const i=C();return qe(i,dr(),e)&&Dt(K(),De(),i,n,e,i[z],t,!1),Un}function bd(n,e,t,i,r){const s=r?"class":"style";u_(n,t,e.inputs[s],s,i)}function Yt(n,e,t,i){const r=C(),o=K(),s=20+n,a=r[z],l=r[s]=Ou(a,e,function O0(){return L.lFrame.currentNamespace}()),c=o.firstCreatePass?function IT(n,e,t,i,r,o,s){const a=e.consts,c=Sr(e,n,2,r,ii(a,o));return function ed(n,e,t,i){let r=!1;if(rm()){const o=function aI(n,e,t){const i=n.directiveRegistry;let r=null;if(i)for(let o=0;o<i.length;o++){const s=i[o];Fg(t,s.selectors,!1)&&(r||(r=[]),_a(xo(t,e),n,s.type),Gt(s)?(t_(n,t),r.unshift(s)):r.push(s))}return r}(n,e,t),s=null===i?null:{"":-1};if(null!==o){r=!0,n_(t,n.data.length,o.length);for(let u=0;u<o.length;u++){const d=o[u];d.providersResolver&&d.providersResolver(d)}let a=!1,l=!1,c=Mr(n,e,o.length,null);for(let u=0;u<o.length;u++){const d=o[u];t.mergedAttrs=pa(t.mergedAttrs,d.hostAttrs),i_(n,t,e,c,d),cI(c,d,s),null!==d.contentQueries&&(t.flags|=8),(null!==d.hostBindings||null!==d.hostAttrs||0!==d.hostVars)&&(t.flags|=128);const h=d.type.prototype;!a&&(h.ngOnChanges||h.ngOnInit||h.ngDoCheck)&&((n.preOrderHooks||(n.preOrderHooks=[])).push(t.index),a=!0),!l&&(h.ngOnChanges||h.ngDoCheck)&&((n.preOrderCheckHooks||(n.preOrderCheckHooks=[])).push(t.index),l=!0),c++}!function JA(n,e){const i=e.directiveEnd,r=n.data,o=e.attrs,s=[];let a=null,l=null;for(let c=e.directiveStart;c<i;c++){const u=r[c],d=u.inputs,h=null===o||xg(e)?null:hI(d,o);s.push(h),a=Zg(d,c,a),l=Zg(u.outputs,c,l)}null!==a&&(a.hasOwnProperty("class")&&(e.flags|=16),a.hasOwnProperty("style")&&(e.flags|=32)),e.initialInputs=s,e.inputs=a,e.outputs=l}(n,t)}s&&function lI(n,e,t){if(e){const i=n.localNames=[];for(let r=0;r<e.length;r+=2){const o=t[e[r+1]];if(null==o)throw new wi("301",`Export of name '${e[r+1]}' not found!`);i.push(e[r],o)}}}(t,i,s)}return t.mergedAttrs=pa(t.mergedAttrs,t.attrs),r}(e,t,c,ii(a,s)),null!==c.attrs&&La(c,c.attrs,!1),null!==c.mergedAttrs&&La(c,c.mergedAttrs,!0),null!==e.queries&&e.queries.elementStart(e,c),c}(s,o,r,0,e,t,i):o.data[s];pn(c,!0);const u=c.mergedAttrs;null!==u&&fa(a,l,u);const d=c.classes;null!==d&&Bu(a,l,d);const h=c.styles;null!==h&&Ag(a,l,h),64!=(64&c.flags)&&xa(o,r,l,c),0===function _0(){return L.lFrame.elementDepthCount}()&&We(l,r),function y0(){L.lFrame.elementDepthCount++}(),ra(c)&&(function Xu(n,e,t){!rm()||(function oI(n,e,t,i){const r=t.directiveStart,o=t.directiveEnd;n.firstCreatePass||xo(t,e),We(i,e);const s=t.initialInputs;for(let a=r;a<o;a++){const l=n.data[a],c=Gt(l);c&&uI(e,t,l);const u=Fo(e,n,a,t);We(u,e),null!==s&&dI(0,a-r,u,l,0,s),c&&(_t(t.index,e)[8]=u)}}(n,e,t,Rt(t,e)),128==(128&t.flags)&&function sI(n,e,t){const i=t.directiveStart,r=t.directiveEnd,s=t.index,a=function S0(){return L.lFrame.currentDirectiveIndex}();try{ri(s);for(let l=i;l<r;l++){const c=n.data[l],u=e[l];eu(l),(null!==c.hostBindings||0!==c.hostVars||null!==c.hostAttrs)&&e_(c,u)}}finally{ri(-1),eu(a)}}(n,e,t))}(o,r,c),function Wg(n,e,t){if(zc(e)){const r=e.directiveEnd;for(let o=e.directiveStart;o<r;o++){const s=n.data[o];s.contentQueries&&s.contentQueries(1,t[o],o)}}}(o,c,r)),null!==i&&function Ju(n,e,t=Rt){const i=e.localNames;if(null!==i){let r=e.index+1;for(let o=0;o<i.length;o+=2){const s=i[o+1],a=-1===s?t(e,n):n[s];n[r++]=a}}}(r,c)}function Zt(){let n=Re();Xc()?Jc():(n=n.parent,pn(n,!1));const e=n;!function v0(){L.lFrame.elementDepthCount--}();const t=K();t.firstCreatePass&&(ua(t,n),zc(n)&&t.queries.elementEnd(n)),null!=e.classesWithoutHost&&function V0(n){return 0!=(16&n.flags)}(e)&&bd(t,e,C(),e.classesWithoutHost,!0),null!=e.stylesWithoutHost&&function B0(n){return 0!=(32&n.flags)}(e)&&bd(t,e,C(),e.stylesWithoutHost,!1)}function Hr(n,e,t,i){Yt(n,e,t,i),Zt()}function Ha(n){return!!n&&"function"==typeof n.then}function ry(n){return!!n&&"function"==typeof n.subscribe}const Cd=ry;function dt(n,e,t,i){const r=C(),o=K(),s=Re();return function sy(n,e,t,i,r,o,s,a){const l=ra(i),u=n.firstCreatePass&&a_(n),d=e[8],h=s_(e);let f=!0;if(3&i.type||a){const m=Rt(i,e),y=a?a(m):m,_=h.length,E=a?S=>a(Ie(S[i.index])):i.index;if(Ee(t)){let S=null;if(!a&&l&&(S=function FT(n,e,t,i){const r=n.cleanup;if(null!=r)for(let o=0;o<r.length-1;o+=2){const s=r[o];if(s===t&&r[o+1]===i){const a=e[7],l=r[o+2];return a.length>l?a[l]:null}"string"==typeof s&&(o+=2)}return null}(n,e,r,i.index)),null!==S)(S.__ngLastListenerFn__||S).__ngNextListenerFn__=o,S.__ngLastListenerFn__=o,f=!1;else{o=Ed(i,e,d,o,!1);const P=t.listen(y,r,o);h.push(o,P),u&&u.push(r,E,_,_+1)}}else o=Ed(i,e,d,o,!0),y.addEventListener(r,o,s),h.push(o),u&&u.push(r,E,_,s)}else o=Ed(i,e,d,o,!1);const p=i.outputs;let g;if(f&&null!==p&&(g=p[r])){const m=g.length;if(m)for(let y=0;y<m;y+=2){const ne=e[g[y]][g[y+1]].subscribe(o),le=h.length;h.push(o,ne),u&&u.push(r,i.index,le,-(le+1))}}}(o,r,r[z],s,n,e,!!t,i),dt}function ay(n,e,t,i){try{return!1!==t(i)}catch(r){return c_(n,r),!1}}function Ed(n,e,t,i,r){return function o(s){if(s===Function)return i;const a=2&n.flags?_t(n.index,e):e;0==(32&e[2])&&id(a);let l=ay(e,0,i,s),c=o.__ngNextListenerFn__;for(;c;)l=ay(e,0,c,s)&&l,c=c.__ngNextListenerFn__;return r&&!1===l&&(s.preventDefault(),s.returnValue=!1),l}}function OT(n,e){let t=null;const i=function xA(n){const e=n.attrs;if(null!=e){const t=e.indexOf(5);if(0==(1&t))return e[t+1]}return null}(n);for(let r=0;r<e.length;r++){const o=e[r];if("*"!==o){if(null===i?Fg(n,o,!0):OA(i,o))return r}else t=r}return t}function Dd(n){const e=C()[16][6];if(!e.projection){const i=e.projection=si(n?n.length:1,null),r=i.slice();let o=e.child;for(;null!==o;){const s=n?OT(o,n):0;null!==s&&(r[s]?r[s].projectionNext=o:i[s]=o,r[s]=o),o=o.next}}}function wd(n,e=0,t){const i=C(),r=K(),o=Sr(r,20+n,16,null,t||null);null===o.projection&&(o.projection=e),Jc(),64!=(64&o.flags)&&function DA(n,e,t){Mg(e[z],0,e,t,gg(n,t,e),bg(t.parent||e[6],t,e))}(r,i,o)}function Sd(n,e,t){return Md(n,"",e,"",t),Sd}function Md(n,e,t,i,r){const o=C(),s=Rr(o,e,t,i);return s!==U&&Dt(K(),De(),o,n,s,o[z],r,!1),Md}function gy(n,e,t,i,r){const o=n[t+1],s=null===e;let a=i?qt(o):Bn(o),l=!1;for(;0!==a&&(!1===l||s);){const u=n[a+1];PT(n[a],e)&&(l=!0,n[a+1]=i?Uu(u):ju(u)),a=i?qt(u):Bn(u)}l&&(n[t+1]=i?ju(o):Uu(o))}function PT(n,e){return null===n||null==e||(Array.isArray(n)?n[1]:n)===e||!(!Array.isArray(n)||"string"!=typeof e)&&yr(n,e)>=0}const ke={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function _y(n){return n.substring(ke.key,ke.keyEnd)}function yy(n,e){const t=ke.textEnd;return t===e?-1:(e=ke.keyEnd=function jT(n,e,t){for(;e<t&&n.charCodeAt(e)>32;)e++;return e}(n,ke.key=e,t),Ur(n,e,t))}function Ur(n,e,t){for(;e<t&&n.charCodeAt(e)<=32;)e++;return e}function Ua(n,e,t){return Xt(n,e,t,!1),Ua}function zn(n,e){return Xt(n,e,null,!0),zn}function Dy(n){!function Jt(n,e,t,i){const r=K(),o=Vn(2);r.firstUpdatePass&&Sy(r,null,o,i);const s=C();if(t!==U&&qe(s,o,t)){const a=r.data[tt()];if(Ty(a,i)&&!wy(r,o)){let l=i?a.classesWithoutHost:a.stylesWithoutHost;null!==l&&(t=Nc(l,t||"")),bd(r,a,s,t,i)}else!function KT(n,e,t,i,r,o,s,a){r===U&&(r=ae);let l=0,c=0,u=0<r.length?r[0]:null,d=0<o.length?o[0]:null;for(;null!==u||null!==d;){const h=l<r.length?r[l+1]:void 0,f=c<o.length?o[c+1]:void 0;let g,p=null;u===d?(l+=2,c+=2,h!==f&&(p=d,g=f)):null===d||null!==u&&u<d?(l+=2,p=u):(c+=2,p=d,g=f),null!==p&&Ay(n,e,t,i,p,g,s,a),u=l<r.length?r[l]:null,d=c<o.length?o[c]:null}}(r,a,s,s[z],s[o+1],s[o+1]=function QT(n,e,t){if(null==t||""===t)return ae;const i=[],r=Ct(t);if(Array.isArray(r))for(let o=0;o<r.length;o++)n(i,r[o],!0);else if("object"==typeof r)for(const o in r)r.hasOwnProperty(o)&&n(i,o,r[o]);else"string"==typeof r&&e(i,r);return i}(n,e,t),i,o)}}(vt,wn,n,!0)}function wn(n,e){for(let t=function VT(n){return function by(n){ke.key=0,ke.keyEnd=0,ke.value=0,ke.valueEnd=0,ke.textEnd=n.length}(n),yy(n,Ur(n,0,ke.textEnd))}(e);t>=0;t=yy(e,t))vt(n,_y(e),!0)}function Xt(n,e,t,i){const r=C(),o=K(),s=Vn(2);o.firstUpdatePass&&Sy(o,n,s,i),e!==U&&qe(r,s,e)&&Ay(o,o.data[tt()],r,r[z],n,r[s+1]=function YT(n,e){return null==n||("string"==typeof e?n+=e:"object"==typeof n&&(n=G(Ct(n)))),n}(e,t),i,s)}function wy(n,e){return e>=n.expandoStartIndex}function Sy(n,e,t,i){const r=n.data;if(null===r[t+1]){const o=r[tt()],s=wy(n,t);Ty(o,i)&&null===e&&!s&&(e=!1),e=function $T(n,e,t,i){const r=function tu(n){const e=L.lFrame.currentDirectiveIndex;return-1===e?null:n[e]}(n);let o=i?e.residualClasses:e.residualStyles;if(null===r)0===(i?e.classBindings:e.styleBindings)&&(t=ts(t=Ad(null,n,e,t,i),e.attrs,i),o=null);else{const s=e.directiveStylingLast;if(-1===s||n[s]!==r)if(t=Ad(r,n,e,t,i),null===o){let l=function GT(n,e,t){const i=t?e.classBindings:e.styleBindings;if(0!==Bn(i))return n[qt(i)]}(n,e,i);void 0!==l&&Array.isArray(l)&&(l=Ad(null,n,e,l[1],i),l=ts(l,e.attrs,i),function WT(n,e,t,i){n[qt(t?e.classBindings:e.styleBindings)]=i}(n,e,i,l))}else o=function qT(n,e,t){let i;const r=e.directiveEnd;for(let o=1+e.directiveStylingLast;o<r;o++)i=ts(i,n[o].hostAttrs,t);return ts(i,e.attrs,t)}(n,e,i)}return void 0!==o&&(i?e.residualClasses=o:e.residualStyles=o),t}(r,o,e,i),function kT(n,e,t,i,r,o){let s=o?e.classBindings:e.styleBindings,a=qt(s),l=Bn(s);n[i]=t;let u,c=!1;if(Array.isArray(t)){const d=t;u=d[1],(null===u||yr(d,u)>0)&&(c=!0)}else u=t;if(r)if(0!==l){const h=qt(n[a+1]);n[i+1]=Ra(h,a),0!==h&&(n[h+1]=Hu(n[h+1],i)),n[a+1]=function LA(n,e){return 131071&n|e<<17}(n[a+1],i)}else n[i+1]=Ra(a,0),0!==a&&(n[a+1]=Hu(n[a+1],i)),a=i;else n[i+1]=Ra(l,0),0===a?a=i:n[l+1]=Hu(n[l+1],i),l=i;c&&(n[i+1]=ju(n[i+1])),gy(n,u,i,!0),gy(n,u,i,!1),function NT(n,e,t,i,r){const o=r?n.residualClasses:n.residualStyles;null!=o&&"string"==typeof e&&yr(o,e)>=0&&(t[i+1]=Uu(t[i+1]))}(e,u,n,i,o),s=Ra(a,l),o?e.classBindings=s:e.styleBindings=s}(r,o,e,t,s,i)}}function Ad(n,e,t,i,r){let o=null;const s=t.directiveEnd;let a=t.directiveStylingLast;for(-1===a?a=t.directiveStart:a++;a<s&&(o=e[a],i=ts(i,o.hostAttrs,r),o!==n);)a++;return null!==n&&(t.directiveStylingLast=a),i}function ts(n,e,t){const i=t?1:2;let r=-1;if(null!==e)for(let o=0;o<e.length;o++){const s=e[o];"number"==typeof s?r=s:r===i&&(Array.isArray(n)||(n=void 0===n?[]:["",n]),vt(n,s,!!t||e[++o]))}return void 0===n?null:n}function Ay(n,e,t,i,r,o,s,a){if(!(3&e.type))return;const l=n.data,c=l[a+1];za(function Pg(n){return 1==(1&n)}(c)?Iy(l,e,t,r,Bn(c),s):void 0)||(za(o)||function Ng(n){return 2==(2&n)}(c)&&(o=Iy(l,null,t,r,a,s)),function SA(n,e,t,i,r){const o=Ee(n);if(e)r?o?n.addClass(t,i):t.classList.add(i):o?n.removeClass(t,i):t.classList.remove(i);else{let s=-1===i.indexOf("-")?void 0:Et.DashCase;if(null==r)o?n.removeStyle(t,i,s):t.style.removeProperty(i);else{const a="string"==typeof r&&r.endsWith("!important");a&&(r=r.slice(0,-10),s|=Et.Important),o?n.setStyle(t,i,r,s):t.style.setProperty(i,r,a?"important":"")}}}(i,s,oa(tt(),t),r,o))}function Iy(n,e,t,i,r,o){const s=null===e;let a;for(;r>0;){const l=n[r],c=Array.isArray(l),u=c?l[1]:l,d=null===u;let h=t[r+1];h===U&&(h=d?ae:void 0);let f=d?hu(h,i):u===i?h:void 0;if(c&&!za(f)&&(f=hu(l,i)),za(f)&&(a=f,s))return a;const p=n[r+1];r=s?qt(p):Bn(p)}if(null!==e){let l=o?e.residualClasses:e.residualStyles;null!=l&&(a=hu(l,i))}return a}function za(n){return void 0!==n}function Ty(n,e){return 0!=(n.flags&(e?16:32))}function ns(n,e=""){const t=C(),i=K(),r=n+20,o=i.firstCreatePass?Sr(i,r,1,e,null):i.data[r],s=t[r]=function Ru(n,e){return Ee(n)?n.createText(e):n.createTextNode(e)}(t[z],e);xa(i,t,s,o),pn(o,!1)}function Id(n){return $a("",n,""),Id}function $a(n,e,t){const i=C(),r=Rr(i,n,e,t);return r!==U&&jn(i,tt(),r),$a}const Li=void 0;var gx=["en",[["a","p"],["AM","PM"],Li],[["AM","PM"],Li,Li],[["S","M","T","W","T","F","S"],["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],["Su","Mo","Tu","We","Th","Fr","Sa"]],Li,[["J","F","M","A","M","J","J","A","S","O","N","D"],["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],["January","February","March","April","May","June","July","August","September","October","November","December"]],Li,[["B","A"],["BC","AD"],["Before Christ","Anno Domini"]],0,[6,0],["M/d/yy","MMM d, y","MMMM d, y","EEEE, MMMM d, y"],["h:mm a","h:mm:ss a","h:mm:ss a z","h:mm:ss a zzzz"],["{1}, {0}",Li,"{1} 'at' {0}",Li],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",function mx(n){const t=Math.floor(Math.abs(n)),i=n.toString().replace(/^[^.]*\.?/,"").length;return 1===t&&0===i?1:5}];let zr={};function Yy(n){return n in zr||(zr[n]=ee.ng&&ee.ng.common&&ee.ng.common.locales&&ee.ng.common.locales[n]),zr[n]}var w=(()=>((w=w||{})[w.LocaleId=0]="LocaleId",w[w.DayPeriodsFormat=1]="DayPeriodsFormat",w[w.DayPeriodsStandalone=2]="DayPeriodsStandalone",w[w.DaysFormat=3]="DaysFormat",w[w.DaysStandalone=4]="DaysStandalone",w[w.MonthsFormat=5]="MonthsFormat",w[w.MonthsStandalone=6]="MonthsStandalone",w[w.Eras=7]="Eras",w[w.FirstDayOfWeek=8]="FirstDayOfWeek",w[w.WeekendRange=9]="WeekendRange",w[w.DateFormat=10]="DateFormat",w[w.TimeFormat=11]="TimeFormat",w[w.DateTimeFormat=12]="DateTimeFormat",w[w.NumberSymbols=13]="NumberSymbols",w[w.NumberFormats=14]="NumberFormats",w[w.CurrencyCode=15]="CurrencyCode",w[w.CurrencySymbol=16]="CurrencySymbol",w[w.CurrencyName=17]="CurrencyName",w[w.Currencies=18]="Currencies",w[w.Directionality=19]="Directionality",w[w.PluralCase=20]="PluralCase",w[w.ExtraData=21]="ExtraData",w))();const Ga="en-US";let Zy=Ga;class Ev{}const wv="ngComponent";class _F{resolveComponentFactory(e){throw function Dv(n){const e=Error(`No component factory found for ${G(n)}. Did you add it to @NgModule.entryComponents?`);return e[wv]=n,e}(e)}}let $n=(()=>{class n{}return n.NULL=new _F,n})();function Ya(...n){}function Gr(n,e){return new ye(Rt(n,e))}const bF=function yF(){return Gr(Re(),C())};let ye=(()=>{class n{constructor(t){this.nativeElement=t}}return n.__NG_ELEMENT_ID__=bF,n})();function Sv(n){return n instanceof ye?n.nativeElement:n}class Vi{}let Bi=(()=>{class n{}return n.__NG_ELEMENT_ID__=()=>EF(),n})();const EF=function wF(){const n=C(),t=_t(Re().index,n);return function DF(n){return n[z]}(fn(t)?t:n)};let Pd=(()=>{class n{}return n.\u0275prov=I({token:n,providedIn:"root",factory:()=>null}),n})();class ui{constructor(e){this.full=e,this.major=e.split(".")[0],this.minor=e.split(".")[1],this.patch=e.split(".").slice(2).join(".")}}const Mv=new ui("13.0.1"),Wr={};function Za(n,e,t,i,r=!1){for(;null!==t;){const o=e[t.index];if(null!==o&&i.push(Ie(o)),$t(o))for(let a=10;a<o.length;a++){const l=o[a],c=l[1].firstChild;null!==c&&Za(l[1],l,c,i)}const s=t.type;if(8&s)Za(n,e,t.child,i);else if(32&s){const a=Tu(t,e);let l;for(;l=a();)i.push(l)}else if(16&s){const a=wg(e,t);if(Array.isArray(a))i.push(...a);else{const l=$o(e[16]);Za(l[1],l,a,i,!0)}}t=r?t.projectionNext:t.next}return i}class as{constructor(e,t){this._lView=e,this._cdRefInjectingView=t,this._appRef=null,this._attachedToViewContainer=!1}get rootNodes(){const e=this._lView,t=e[1];return Za(t,e,t.firstChild,[])}get context(){return this._lView[8]}set context(e){this._lView[8]=e}get destroyed(){return 256==(256&this._lView[2])}destroy(){if(this._appRef)this._appRef.detachView(this);else if(this._attachedToViewContainer){const e=this._lView[3];if($t(e)){const t=e[8],i=t?t.indexOf(this):-1;i>-1&&(ku(e,i),Ri(t,i))}this._attachedToViewContainer=!1}mg(this._lView[1],this._lView)}onDestroy(e){Yg(this._lView[1],this._lView,null,e)}markForCheck(){id(this._cdRefInjectingView||this._lView)}detach(){this._lView[2]&=-129}reattach(){this._lView[2]|=128}detectChanges(){od(this._lView[1],this._lView,this.context)}checkNoChanges(){!function vI(n,e,t){aa(!0);try{od(n,e,t)}finally{aa(!1)}}(this._lView[1],this._lView,this.context)}attachToViewContainerRef(){if(this._appRef)throw new Error("This view is already attached directly to the ApplicationRef!");this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null,function mA(n,e){Go(n,e,e[z],2,null,null)}(this._lView[1],this._lView)}attachToAppRef(e){if(this._attachedToViewContainer)throw new Error("This view is already attached to a ViewContainer!");this._appRef=e}}class SF extends as{constructor(e){super(e),this._view=e}detectChanges(){o_(this._view)}checkNoChanges(){!function bI(n){aa(!0);try{o_(n)}finally{aa(!1)}}(this._view)}get context(){return null}}class Av extends $n{constructor(e){super(),this.ngModule=e}resolveComponentFactory(e){const t=$e(e);return new Ld(t,this.ngModule)}}function Iv(n){const e=[];for(let t in n)n.hasOwnProperty(t)&&e.push({propName:n[t],templateName:t});return e}const AF=new T("SCHEDULER_TOKEN",{providedIn:"root",factory:()=>ag});class Ld extends Ev{constructor(e,t){super(),this.componentDef=e,this.ngModule=t,this.componentType=e.type,this.selector=function NA(n){return n.map(kA).join(",")}(e.selectors),this.ngContentSelectors=e.ngContentSelectors?e.ngContentSelectors:[],this.isBoundToModule=!!t}get inputs(){return Iv(this.componentDef.inputs)}get outputs(){return Iv(this.componentDef.outputs)}create(e,t,i,r){const o=(r=r||this.ngModule)?function IF(n,e){return{get:(t,i,r)=>{const o=n.get(t,Wr,r);return o!==Wr||i===Wr?o:e.get(t,i,r)}}}(e,r.injector):e,s=o.get(Vi,tm),a=o.get(Pd,null),l=s.createRenderer(null,this.componentDef),c=this.componentDef.selectors[0][0]||"div",u=i?function Kg(n,e,t){if(Ee(n))return n.selectRootElement(e,t===lt.ShadowDom);let i="string"==typeof e?n.querySelector(e):e;return i.textContent="",i}(l,i,this.componentDef.encapsulation):Ou(s.createRenderer(null,this.componentDef),c,function MF(n){const e=n.toLowerCase();return"svg"===e?"http://www.w3.org/2000/svg":"math"===e?"http://www.w3.org/1998/MathML/":null}(c)),d=this.componentDef.onPush?576:528,h=function F_(n,e){return{components:[],scheduler:n||ag,clean:CI,playerHandler:e||null,flags:0}}(),f=Na(0,null,null,1,0,null,null,null,null,null),p=Wo(null,f,h,d,null,null,s,l,a,o);let g,m;la(p);try{const y=function T_(n,e,t,i,r,o){const s=t[1];t[20]=n;const l=Sr(s,20,2,"#host",null),c=l.mergedAttrs=e.hostAttrs;null!==c&&(La(l,c,!0),null!==n&&(fa(r,n,c),null!==l.classes&&Bu(r,n,l.classes),null!==l.styles&&Ag(r,n,l.styles)));const u=i.createRenderer(n,e),d=Wo(t,qg(e),null,e.onPush?64:16,t[20],l,i,u,o||null,null);return s.firstCreatePass&&(_a(xo(l,t),s,e.type),t_(s,l),n_(l,t.length,1)),Pa(t,d),t[20]=d}(u,this.componentDef,p,s,l);if(u)if(i)fa(l,u,["ng-version",Mv.full]);else{const{attrs:_,classes:E}=function PA(n){const e=[],t=[];let i=1,r=2;for(;i<n.length;){let o=n[i];if("string"==typeof o)2===r?""!==o&&e.push(o,n[++i]):8===r&&t.push(o);else{if(!Wt(r))break;r=o}i++}return{attrs:e,classes:t}}(this.componentDef.selectors[0]);_&&fa(l,u,_),E&&E.length>0&&Bu(l,u,E.join(" "))}if(m=Kc(f,20),void 0!==t){const _=m.projection=[];for(let E=0;E<this.ngContentSelectors.length;E++){const S=t[E];_.push(null!=S?Array.from(S):null)}}g=function x_(n,e,t,i,r){const o=t[1],s=function iI(n,e,t){const i=Re();n.firstCreatePass&&(t.providersResolver&&t.providersResolver(t),i_(n,i,e,Mr(n,e,1,null),t));const r=Fo(e,n,i.directiveStart,i);We(r,e);const o=Rt(i,e);return o&&We(o,e),r}(o,t,e);if(i.components.push(s),n[8]=s,r&&r.forEach(l=>l(s,e)),e.contentQueries){const l=Re();e.contentQueries(1,s,l.directiveStart)}const a=Re();return!o.firstCreatePass||null===e.hostBindings&&null===e.hostAttrs||(ri(a.index),Jg(t[1],a,0,a.directiveStart,a.directiveEnd,e),e_(e,s)),s}(y,this.componentDef,p,h,[qI]),qo(f,p,null)}finally{ca()}return new xF(this.componentType,g,Gr(m,p),p,m)}}class xF extends class gF{}{constructor(e,t,i,r,o){super(),this.location=i,this._rootLView=r,this._tNode=o,this.instance=t,this.hostView=this.changeDetectorRef=new SF(r),this.componentType=e}get injector(){return new pr(this._tNode,this._rootLView)}destroy(){this.hostView.destroy()}onDestroy(e){this.hostView.onDestroy(e)}}class ji{}const qr=new Map;class xv extends ji{constructor(e,t){super(),this._parent=t,this._bootstrapComponents=[],this.injector=this,this.destroyCbs=[],this.componentFactoryResolver=new Av(this);const i=Tt(e);this._bootstrapComponents=vn(i.bootstrap),this._r3Injector=f_(e,t,[{provide:ji,useValue:this},{provide:$n,useValue:this.componentFactoryResolver}],G(e)),this._r3Injector._resolveInjectorDefTypes(),this.instance=this.get(e)}get(e,t=re.THROW_IF_NOT_FOUND,i=O.Default){return e===re||e===ji||e===Qo?this:this._r3Injector.get(e,t,i)}destroy(){const e=this._r3Injector;!e.destroyed&&e.destroy(),this.destroyCbs.forEach(t=>t()),this.destroyCbs=null}onDestroy(e){this.destroyCbs.push(e)}}class Bd extends class RF{}{constructor(e){super(),this.moduleType=e,null!==Tt(e)&&function OF(n){const e=new Set;!function t(i){const r=Tt(i,!0),o=r.id;null!==o&&(function Tv(n,e,t){if(e&&e!==t)throw new Error(`Duplicate module registered for ${n} - ${G(e)} vs ${G(e.name)}`)}(o,qr.get(o),i),qr.set(o,i));const s=vn(r.imports);for(const a of s)e.has(a)||(e.add(a),t(a))}(n)}(e)}create(e){return new xv(this.moduleType,e)}}function Rv(n,e,t,i,r,o){const s=e+t;return qe(n,s,r)?function En(n,e,t){return n[e]=t}(n,s+1,o?i.call(o,r):i(r)):function ls(n,e){const t=n[e];return t===U?void 0:t}(n,s+1)}function jd(n){return e=>{setTimeout(n,void 0,e)}}const Ve=class QF extends Pe{constructor(e=!1){super(),this.__isAsync=e}emit(e){super.next(e)}subscribe(e,t,i){var r,o,s;let a=e,l=t||(()=>null),c=i;if(e&&"object"==typeof e){const d=e;a=null===(r=d.next)||void 0===r?void 0:r.bind(d),l=null===(o=d.error)||void 0===o?void 0:o.bind(d),c=null===(s=d.complete)||void 0===s?void 0:s.bind(d)}this.__isAsync&&(l=jd(l),a&&(a=jd(a)),c&&(c=jd(c)));const u=super.subscribe({next:a,error:l,complete:c});return e instanceof se&&e.add(u),u}};function KF(){return this._results[xr()]()}class Xa{constructor(e=!1){this._emitDistinctChangesOnly=e,this.dirty=!0,this._results=[],this._changesDetected=!1,this._changes=null,this.length=0,this.first=void 0,this.last=void 0;const t=xr(),i=Xa.prototype;i[t]||(i[t]=KF)}get changes(){return this._changes||(this._changes=new Ve)}get(e){return this._results[e]}map(e){return this._results.map(e)}filter(e){return this._results.filter(e)}find(e){return this._results.find(e)}reduce(e,t){return this._results.reduce(e,t)}forEach(e){this._results.forEach(e)}some(e){return this._results.some(e)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(e,t){const i=this;i.dirty=!1;const r=Ot(e);(this._changesDetected=!function K0(n,e,t){if(n.length!==e.length)return!1;for(let i=0;i<n.length;i++){let r=n[i],o=e[i];if(t&&(r=t(r),o=t(o)),o!==r)return!1}return!0}(i._results,r,t))&&(i._results=r,i.length=r.length,i.last=r[this.length-1],i.first=r[0])}notifyOnChanges(){this._changes&&(this._changesDetected||!this._emitDistinctChangesOnly)&&this._changes.emit(this)}setDirty(){this.dirty=!0}destroy(){this.changes.complete(),this.changes.unsubscribe()}}Symbol;const ZF=function eR(){return Ja(Re(),C())};let Gn=(()=>{class n{}return n.__NG_ELEMENT_ID__=ZF,n})();const XF=Gn,JF=class extends XF{constructor(e,t,i){super(),this._declarationLView=e,this._declarationTContainer=t,this.elementRef=i}createEmbeddedView(e){const t=this._declarationTContainer.tViews,i=Wo(this._declarationLView,t,e,16,null,t.declTNode,null,null,null,null);i[17]=this._declarationLView[this._declarationTContainer.index];const o=this._declarationLView[19];return null!==o&&(i[19]=o.createEmbeddedView(t)),qo(t,i,e),new as(i)}};function Ja(n,e){return 4&n.type?new JF(e,n,Gr(n,e)):null}const nR=function iR(){return Hv(Re(),C())};let en=(()=>{class n{}return n.__NG_ELEMENT_ID__=nR,n})();const rR=en,Bv=class extends rR{constructor(e,t,i){super(),this._lContainer=e,this._hostTNode=t,this._hostLView=i}get element(){return Gr(this._hostTNode,this._hostLView)}get injector(){return new pr(this._hostTNode,this._hostLView)}get parentInjector(){const e=ga(this._hostTNode,this._hostLView);if(ym(e)){const t=fr(e,this._hostLView),i=hr(e);return new pr(t[1].data[i+8],t)}return new pr(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(e){const t=jv(this._lContainer);return null!==t&&t[e]||null}get length(){return this._lContainer.length-10}createEmbeddedView(e,t,i){const r=e.createEmbeddedView(t||{});return this.insert(r,i),r}createComponent(e,t,i,r,o){const s=e&&!function Oo(n){return"function"==typeof n}(e);let a;if(s)a=t;else{const d=t||{};a=d.index,i=d.injector,r=d.projectableNodes,o=d.ngModuleRef}const l=s?e:new Ld($e(e)),c=i||this.parentInjector;if(!o&&null==l.ngModule&&c){const d=c.get(ji,null);d&&(o=d)}const u=l.create(c,r,void 0,o);return this.insert(u.hostView,a),u}insert(e,t){const i=e._lView,r=i[1];if(function g0(n){return $t(n[3])}(i)){const u=this.indexOf(e);if(-1!==u)this.detach(u);else{const d=i[3],h=new Bv(d,d[6],d[3]);h.detach(h.indexOf(e))}}const o=this._adjustIndex(t),s=this._lContainer;!function _A(n,e,t,i){const r=10+i,o=t.length;i>0&&(t[r-1][4]=e),i<o-10?(e[4]=t[r],ba(t,10+i,e)):(t.push(e),e[4]=null),e[3]=t;const s=e[17];null!==s&&t!==s&&function yA(n,e){const t=n[9];e[16]!==e[3][3][16]&&(n[2]=!0),null===t?n[9]=[e]:t.push(e)}(s,e);const a=e[19];null!==a&&a.insertView(n),e[2]|=128}(r,i,s,o);const a=Lu(o,s),l=i[z],c=Ta(l,s[7]);return null!==c&&function pA(n,e,t,i,r,o){i[0]=r,i[6]=e,Go(n,i,t,1,r,o)}(r,s[6],l,i,c,a),e.attachToViewContainerRef(),ba(Hd(s),o,e),e}move(e,t){return this.insert(e,t)}indexOf(e){const t=jv(this._lContainer);return null!==t?t.indexOf(e):-1}remove(e){const t=this._adjustIndex(e,-1),i=ku(this._lContainer,t);i&&(Ri(Hd(this._lContainer),t),mg(i[1],i))}detach(e){const t=this._adjustIndex(e,-1),i=ku(this._lContainer,t);return i&&null!=Ri(Hd(this._lContainer),t)?new as(i):null}_adjustIndex(e,t=0){return null==e?this.length+t:e}};function jv(n){return n[8]}function Hd(n){return n[8]||(n[8]=[])}function Hv(n,e){let t;const i=e[n.index];if($t(i))t=i;else{let r;if(8&n.type)r=Ie(i);else{const o=e[z];r=o.createComment("");const s=Rt(n,e);Ni(o,Ta(o,s),r,function EA(n,e){return Ee(n)?n.nextSibling(e):e.nextSibling}(o,s),!1)}e[n.index]=t=function r_(n,e,t,i){return new Array(n,!0,!1,e,null,0,i,t,null,null)}(i,e,r,n),Pa(e,t)}return new Bv(t,n,e)}class Ud{constructor(e){this.queryList=e,this.matches=null}clone(){return new Ud(this.queryList)}setDirty(){this.queryList.setDirty()}}class zd{constructor(e=[]){this.queries=e}createEmbeddedView(e){const t=e.queries;if(null!==t){const i=null!==e.contentQueries?e.contentQueries[0]:t.length,r=[];for(let o=0;o<i;o++){const s=t.getByIndex(o);r.push(this.queries[s.indexInDeclarationView].clone())}return new zd(r)}return null}insertView(e){this.dirtyQueriesWithMatches(e)}detachView(e){this.dirtyQueriesWithMatches(e)}dirtyQueriesWithMatches(e){for(let t=0;t<this.queries.length;t++)null!==Wv(e,t).matches&&this.queries[t].setDirty()}}class Uv{constructor(e,t,i=null){this.predicate=e,this.flags=t,this.read=i}}class $d{constructor(e=[]){this.queries=e}elementStart(e,t){for(let i=0;i<this.queries.length;i++)this.queries[i].elementStart(e,t)}elementEnd(e){for(let t=0;t<this.queries.length;t++)this.queries[t].elementEnd(e)}embeddedTView(e){let t=null;for(let i=0;i<this.length;i++){const r=null!==t?t.length:0,o=this.getByIndex(i).embeddedTView(e,r);o&&(o.indexInDeclarationView=i,null!==t?t.push(o):t=[o])}return null!==t?new $d(t):null}template(e,t){for(let i=0;i<this.queries.length;i++)this.queries[i].template(e,t)}getByIndex(e){return this.queries[e]}get length(){return this.queries.length}track(e){this.queries.push(e)}}class Gd{constructor(e,t=-1){this.metadata=e,this.matches=null,this.indexInDeclarationView=-1,this.crossesNgTemplate=!1,this._appliesToNextNode=!0,this._declarationNodeIndex=t}elementStart(e,t){this.isApplyingToNode(t)&&this.matchTNode(e,t)}elementEnd(e){this._declarationNodeIndex===e.index&&(this._appliesToNextNode=!1)}template(e,t){this.elementStart(e,t)}embeddedTView(e,t){return this.isApplyingToNode(e)?(this.crossesNgTemplate=!0,this.addMatch(-e.index,t),new Gd(this.metadata)):null}isApplyingToNode(e){if(this._appliesToNextNode&&1!=(1&this.metadata.flags)){const t=this._declarationNodeIndex;let i=e.parent;for(;null!==i&&8&i.type&&i.index!==t;)i=i.parent;return t===(null!==i?i.index:-1)}return this._appliesToNextNode}matchTNode(e,t){const i=this.metadata.predicate;if(Array.isArray(i))for(let r=0;r<i.length;r++){const o=i[r];this.matchTNodeWithReadOption(e,t,aR(t,o)),this.matchTNodeWithReadOption(e,t,ya(t,e,o,!1,!1))}else i===Gn?4&t.type&&this.matchTNodeWithReadOption(e,t,-1):this.matchTNodeWithReadOption(e,t,ya(t,e,i,!1,!1))}matchTNodeWithReadOption(e,t,i){if(null!==i){const r=this.metadata.read;if(null!==r)if(r===ye||r===en||r===Gn&&4&t.type)this.addMatch(t.index,-2);else{const o=ya(t,e,r,!1,!1);null!==o&&this.addMatch(t.index,o)}else this.addMatch(t.index,i)}}addMatch(e,t){null===this.matches?this.matches=[e,t]:this.matches.push(e,t)}}function aR(n,e){const t=n.localNames;if(null!==t)for(let i=0;i<t.length;i+=2)if(t[i]===e)return t[i+1];return null}function cR(n,e,t,i){return-1===t?function lR(n,e){return 11&n.type?Gr(n,e):4&n.type?Ja(n,e):null}(e,n):-2===t?function uR(n,e,t){return t===ye?Gr(e,n):t===Gn?Ja(e,n):t===en?Hv(e,n):void 0}(n,e,i):Fo(n,n[1],t,e)}function zv(n,e,t,i){const r=e[19].queries[i];if(null===r.matches){const o=n.data,s=t.matches,a=[];for(let l=0;l<s.length;l+=2){const c=s[l];a.push(c<0?null:cR(e,o[c],s[l+1],t.metadata.read))}r.matches=a}return r.matches}function Wd(n,e,t,i){const r=n.queries.getByIndex(t),o=r.matches;if(null!==o){const s=zv(n,e,r,t);for(let a=0;a<o.length;a+=2){const l=o[a];if(l>0)i.push(s[a/2]);else{const c=o[a+1],u=e[-l];for(let d=10;d<u.length;d++){const h=u[d];h[17]===h[3]&&Wd(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];Wd(f[1],f,c,i)}}}}}return i}function Qr(n){const e=C(),t=K(),i=cm();nu(i+1);const r=Wv(t,i);if(n.dirty&&nm(e)===(2==(2&r.metadata.flags))){if(null===r.matches)n.reset([]);else{const o=r.crossesNgTemplate?Wd(t,e,i,[]):zv(t,e,r,i);n.reset(o,Sv),n.notifyOnChanges()}return!0}return!1}function Kr(n,e,t){const i=K();i.firstCreatePass&&(function Gv(n,e,t){null===n.queries&&(n.queries=new $d),n.queries.track(new Gd(e,t))}(i,new Uv(n,e,t),-1),2==(2&e)&&(i.staticViewQueries=!0)),function $v(n,e,t){const i=new Xa(4==(4&t));Yg(n,e,i,i.destroy),null===e[19]&&(e[19]=new zd),e[19].queries.push(new Ud(i))}(i,C(),e)}function Yr(){return function hR(n,e){return n[19].queries[e].queryList}(C(),cm())}function Wv(n,e){return n.queries.getByIndex(e)}const nl=new T("Application Initializer");let Xr=(()=>{class n{constructor(t){this.appInits=t,this.resolve=Ya,this.reject=Ya,this.initialized=!1,this.done=!1,this.donePromise=new Promise((i,r)=>{this.resolve=i,this.reject=r})}runInitializers(){if(this.initialized)return;const t=[],i=()=>{this.done=!0,this.resolve()};if(this.appInits)for(let r=0;r<this.appInits.length;r++){const o=this.appInits[r]();if(Ha(o))t.push(o);else if(Cd(o)){const s=new Promise((a,l)=>{o.subscribe({complete:a,error:l})});t.push(s)}}Promise.all(t).then(()=>{i()}).catch(r=>{this.reject(r)}),0===t.length&&i(),this.initialized=!0}}return n.\u0275fac=function(t){return new(t||n)(b(nl,8))},n.\u0275prov=I({token:n,factory:n.\u0275fac}),n})();const ds=new T("AppId"),kR={provide:ds,useFactory:function OR(){return`${Xd()}${Xd()}${Xd()}`},deps:[]};function Xd(){return String.fromCharCode(97+Math.floor(25*Math.random()))}const cb=new T("Platform Initializer"),il=new T("Platform ID"),NR=new T("appBootstrapListener");let Jd=(()=>{class n{log(t){console.log(t)}warn(t){console.warn(t)}}return n.\u0275fac=function(t){return new(t||n)},n.\u0275prov=I({token:n,factory:n.\u0275fac}),n})();const Wn=new T("LocaleId"),ub=new T("DefaultCurrencyCode");class LR{constructor(e,t){this.ngModuleFactory=e,this.componentFactories=t}}const eh=function(n){return new Bd(n)},VR=eh,BR=function(n){return Promise.resolve(eh(n))},hb=function(n){const e=eh(n),i=vn(Tt(n).declarations).reduce((r,o)=>{const s=$e(o);return s&&r.push(new Ld(s)),r},[]);return new LR(e,i)},jR=hb,HR=function(n){return Promise.resolve(hb(n))};let fb=(()=>{class n{constructor(){this.compileModuleSync=VR,this.compileModuleAsync=BR,this.compileModuleAndAllComponentsSync=jR,this.compileModuleAndAllComponentsAsync=HR}clearCache(){}clearCacheFor(t){}getModuleId(t){}}return n.\u0275fac=function(t){return new(t||n)},n.\u0275prov=I({token:n,factory:n.\u0275fac}),n})();const $R=(()=>Promise.resolve(0))();function th(n){"undefined"==typeof Zone?$R.then(()=>{n&&n.apply(null,null)}):Zone.current.scheduleMicroTask("scheduleMicrotask",n)}class oe{constructor({enableLongStackTrace:e=!1,shouldCoalesceEventChangeDetection:t=!1,shouldCoalesceRunChangeDetection:i=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new Ve(!1),this.onMicrotaskEmpty=new Ve(!1),this.onStable=new Ve(!1),this.onError=new Ve(!1),"undefined"==typeof Zone)throw new Error("In this configuration Angular requires Zone.js");Zone.assertZonePatched();const r=this;r._nesting=0,r._outer=r._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(r._inner=r._inner.fork(new Zone.TaskTrackingZoneSpec)),e&&Zone.longStackTraceZoneSpec&&(r._inner=r._inner.fork(Zone.longStackTraceZoneSpec)),r.shouldCoalesceEventChangeDetection=!i&&t,r.shouldCoalesceRunChangeDetection=i,r.lastRequestAnimationFrameId=-1,r.nativeRequestAnimationFrame=function GR(){let n=ee.requestAnimationFrame,e=ee.cancelAnimationFrame;if("undefined"!=typeof Zone&&n&&e){const t=n[Zone.__symbol__("OriginalDelegate")];t&&(n=t);const i=e[Zone.__symbol__("OriginalDelegate")];i&&(e=i)}return{nativeRequestAnimationFrame:n,nativeCancelAnimationFrame:e}}().nativeRequestAnimationFrame,function QR(n){const e=()=>{!function qR(n){n.isCheckStableRunning||-1!==n.lastRequestAnimationFrameId||(n.lastRequestAnimationFrameId=n.nativeRequestAnimationFrame.call(ee,()=>{n.fakeTopEventTask||(n.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{n.lastRequestAnimationFrameId=-1,ih(n),n.isCheckStableRunning=!0,nh(n),n.isCheckStableRunning=!1},void 0,()=>{},()=>{})),n.fakeTopEventTask.invoke()}),ih(n))}(n)};n._inner=n._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(t,i,r,o,s,a)=>{try{return pb(n),t.invokeTask(r,o,s,a)}finally{(n.shouldCoalesceEventChangeDetection&&"eventTask"===o.type||n.shouldCoalesceRunChangeDetection)&&e(),mb(n)}},onInvoke:(t,i,r,o,s,a,l)=>{try{return pb(n),t.invoke(r,o,s,a,l)}finally{n.shouldCoalesceRunChangeDetection&&e(),mb(n)}},onHasTask:(t,i,r,o)=>{t.hasTask(r,o),i===r&&("microTask"==o.change?(n._hasPendingMicrotasks=o.microTask,ih(n),nh(n)):"macroTask"==o.change&&(n.hasPendingMacrotasks=o.macroTask))},onHandleError:(t,i,r,o)=>(t.handleError(r,o),n.runOutsideAngular(()=>n.onError.emit(o)),!1)})}(r)}static isInAngularZone(){return!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!oe.isInAngularZone())throw new Error("Expected to be in Angular Zone, but it is not!")}static assertNotInAngularZone(){if(oe.isInAngularZone())throw new Error("Expected to not be in Angular Zone, but it is!")}run(e,t,i){return this._inner.run(e,t,i)}runTask(e,t,i,r){const o=this._inner,s=o.scheduleEventTask("NgZoneEvent: "+r,e,WR,Ya,Ya);try{return o.runTask(s,t,i)}finally{o.cancelTask(s)}}runGuarded(e,t,i){return this._inner.runGuarded(e,t,i)}runOutsideAngular(e){return this._outer.run(e)}}const WR={};function nh(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 ih(n){n.hasPendingMicrotasks=!!(n._hasPendingMicrotasks||(n.shouldCoalesceEventChangeDetection||n.shouldCoalesceRunChangeDetection)&&-1!==n.lastRequestAnimationFrameId)}function pb(n){n._nesting++,n.isStable&&(n.isStable=!1,n.onUnstable.emit(null))}function mb(n){n._nesting--,nh(n)}class KR{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new Ve,this.onMicrotaskEmpty=new Ve,this.onStable=new Ve,this.onError=new Ve}run(e,t,i){return e.apply(t,i)}runGuarded(e,t,i){return e.apply(t,i)}runOutsideAngular(e){return e()}runTask(e,t,i,r){return e.apply(t,i)}}let rh=(()=>{class n{constructor(t){this._ngZone=t,this._pendingCount=0,this._isZoneStable=!0,this._didWork=!1,this._callbacks=[],this.taskTrackingZone=null,this._watchAngularEvents(),t.run(()=>{this.taskTrackingZone="undefined"==typeof Zone?null:Zone.current.get("TaskTrackingZone")})}_watchAngularEvents(){this._ngZone.onUnstable.subscribe({next:()=>{this._didWork=!0,this._isZoneStable=!1}}),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.subscribe({next:()=>{oe.assertNotInAngularZone(),th(()=>{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())th(()=>{for(;0!==this._callbacks.length;){let t=this._callbacks.pop();clearTimeout(t.timeoutId),t.doneCb(this._didWork)}this._didWork=!1});else{let t=this.getPendingTasks();this._callbacks=this._callbacks.filter(i=>!i.updateCb||!i.updateCb(t)||(clearTimeout(i.timeoutId),!1)),this._didWork=!0}}getPendingTasks(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(t=>({source:t.source,creationLocation:t.creationLocation,data:t.data})):[]}addCallback(t,i,r){let o=-1;i&&i>0&&(o=setTimeout(()=>{this._callbacks=this._callbacks.filter(s=>s.timeoutId!==o),t(this._didWork,this.getPendingTasks())},i)),this._callbacks.push({doneCb:t,timeoutId:o,updateCb:r})}whenStable(t,i,r){if(r&&!this.taskTrackingZone)throw new Error('Task tracking zone is required when passing an update callback to whenStable(). Is "zone.js/plugins/task-tracking" loaded?');this.addCallback(t,i,r),this._runCallbacksIfReady()}getPendingRequestCount(){return this._pendingCount}findProviders(t,i,r){return[]}}return n.\u0275fac=function(t){return new(t||n)(b(oe))},n.\u0275prov=I({token:n,factory:n.\u0275fac}),n})(),gb=(()=>{class n{constructor(){this._applications=new Map,oh.addToWindow(this)}registerApplication(t,i){this._applications.set(t,i)}unregisterApplication(t){this._applications.delete(t)}unregisterAllApplications(){this._applications.clear()}getTestability(t){return this._applications.get(t)||null}getAllTestabilities(){return Array.from(this._applications.values())}getAllRootElements(){return Array.from(this._applications.keys())}findTestabilityInTree(t,i=!0){return oh.findTestabilityInTree(this,t,i)}}return n.\u0275fac=function(t){return new(t||n)},n.\u0275prov=I({token:n,factory:n.\u0275fac}),n})();class YR{addToWindow(e){}findTestabilityInTree(e,t,i){return null}}let oh=new YR,_b=!0,yb=!1;function sh(){return yb=!0,_b}let tn;const vb=new T("AllowMultipleToken");function bb(n,e,t=[]){const i=`Platform: ${e}`,r=new T(i);return(o=[])=>{let s=Cb();if(!s||s.injector.get(vb,!1))if(n)n(t.concat(o).concat({provide:r,useValue:!0}));else{const a=t.concat(o).concat({provide:r,useValue:!0},{provide:Ko,useValue:"platform"});!function sO(n){if(tn&&!tn.destroyed&&!tn.injector.get(vb,!1))throw new Error("There can be only one platform. Destroy the previous one to create a new one.");tn=n.get(Eb);const e=n.get(cb,null);e&&e.forEach(t=>t())}(re.create({providers:a,name:i}))}return function aO(n){const e=Cb();if(!e)throw new Error("No platform exists!");if(!e.injector.get(n,null))throw new Error("A platform with a different configuration has been created. Please destroy it first.");return e}(r)}}function Cb(){return tn&&!tn.destroyed?tn:null}let Eb=(()=>{class n{constructor(t){this._injector=t,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(t,i){const a=function lO(n,e){let t;return t="noop"===n?new KR:("zone.js"===n?void 0:n)||new oe({enableLongStackTrace:sh(),shouldCoalesceEventChangeDetection:!!(null==e?void 0:e.ngZoneEventCoalescing),shouldCoalesceRunChangeDetection:!!(null==e?void 0:e.ngZoneRunCoalescing)}),t}(i?i.ngZone:void 0,{ngZoneEventCoalescing:i&&i.ngZoneEventCoalescing||!1,ngZoneRunCoalescing:i&&i.ngZoneRunCoalescing||!1}),l=[{provide:oe,useValue:a}];return a.run(()=>{const c=re.create({providers:l,parent:this.injector,name:t.moduleType.name}),u=t.create(c),d=u.injector.get(yn,null);if(!d)throw new Error("No ErrorHandler. Is platform module (BrowserModule) included?");return a.runOutsideAngular(()=>{const h=a.onError.subscribe({next:f=>{d.handleError(f)}});u.onDestroy(()=>{ah(this._modules,u),h.unsubscribe()})}),function cO(n,e,t){try{const i=t();return Ha(i)?i.catch(r=>{throw e.runOutsideAngular(()=>n.handleError(r)),r}):i}catch(i){throw e.runOutsideAngular(()=>n.handleError(i)),i}}(d,a,()=>{const h=u.injector.get(Xr);return h.runInitializers(),h.donePromise.then(()=>(function Cx(n){pt(n,"Expected localeId to be defined"),"string"==typeof n&&(Zy=n.toLowerCase().replace(/_/g,"-"))}(u.injector.get(Wn,Ga)||Ga),this._moduleDoBootstrap(u),u))})})}bootstrapModule(t,i=[]){const r=Db({},i);return function eO(n,e,t){const i=new Bd(t);return Promise.resolve(i)}(0,0,t).then(o=>this.bootstrapModuleFactory(o,r))}_moduleDoBootstrap(t){const i=t.injector.get(Hi);if(t._bootstrapComponents.length>0)t._bootstrapComponents.forEach(r=>i.bootstrap(r));else{if(!t.instance.ngDoBootstrap)throw new Error(`The module ${G(t.instance.constructor)} was bootstrapped, but it does not declare "@NgModule.bootstrap" components nor a "ngDoBootstrap" method. Please define one of these.`);t.instance.ngDoBootstrap(i)}this._modules.push(t)}onDestroy(t){this._destroyListeners.push(t)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new Error("The platform has already been destroyed!");this._modules.slice().forEach(t=>t.destroy()),this._destroyListeners.forEach(t=>t()),this._destroyed=!0}get destroyed(){return this._destroyed}}return n.\u0275fac=function(t){return new(t||n)(b(re))},n.\u0275prov=I({token:n,factory:n.\u0275fac}),n})();function Db(n,e){return Array.isArray(e)?e.reduce(Db,n):Object.assign(Object.assign({},n),e)}let Hi=(()=>{class n{constructor(t,i,r,o,s){this._zone=t,this._injector=i,this._exceptionHandler=r,this._componentFactoryResolver=o,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 a=new me(c=>{this._stable=this._zone.isStable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks,this._zone.runOutsideAngular(()=>{c.next(this._stable),c.complete()})}),l=new me(c=>{let u;this._zone.runOutsideAngular(()=>{u=this._zone.onStable.subscribe(()=>{oe.assertNotInAngularZone(),th(()=>{!this._stable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks&&(this._stable=!0,c.next(!0))})})});const d=this._zone.onUnstable.subscribe(()=>{oe.assertInAngularZone(),this._stable&&(this._stable=!1,this._zone.runOutsideAngular(()=>{c.next(!1)}))});return()=>{u.unsubscribe(),d.unsubscribe()}});this.isStable=Oc(a,l.pipe(Vp()))}bootstrap(t,i){if(!this._initStatus.done)throw new Error("Cannot bootstrap as there are still asynchronous initializers running. Bootstrap components in the `ngDoBootstrap` method of the root module.");let r;r=t instanceof Ev?t:this._componentFactoryResolver.resolveComponentFactory(t),this.componentTypes.push(r.componentType);const o=function rO(n){return n.isBoundToModule}(r)?void 0:this._injector.get(ji),a=r.create(re.NULL,[],i||r.selector,o),l=a.location.nativeElement,c=a.injector.get(rh,null),u=c&&a.injector.get(gb);return c&&u&&u.registerApplication(l,c),a.onDestroy(()=>{this.detachView(a.hostView),ah(this.components,a),u&&u.unregisterApplication(l)}),this._loadComponent(a),a}tick(){if(this._runningTick)throw new Error("ApplicationRef.tick is called recursively");try{this._runningTick=!0;for(let t of this._views)t.detectChanges()}catch(t){this._zone.runOutsideAngular(()=>this._exceptionHandler.handleError(t))}finally{this._runningTick=!1}}attachView(t){const i=t;this._views.push(i),i.attachToAppRef(this)}detachView(t){const i=t;ah(this._views,i),i.detachFromAppRef()}_loadComponent(t){this.attachView(t.hostView),this.tick(),this.components.push(t),this._injector.get(NR,[]).concat(this._bootstrapListeners).forEach(r=>r(t))}ngOnDestroy(){this._views.slice().forEach(t=>t.destroy()),this._onMicrotaskEmptySubscription.unsubscribe()}get viewCount(){return this._views.length}}return n.\u0275fac=function(t){return new(t||n)(b(oe),b(re),b(yn),b($n),b(Xr))},n.\u0275prov=I({token:n,factory:n.\u0275fac}),n})();function ah(n,e){const t=n.indexOf(e);t>-1&&n.splice(t,1)}const hO=function fO(n){return function pO(n,e,t){if(ia(n)&&!t){const i=_t(n.index,e);return new as(i,i)}return 47&n.type?new as(e[16],e):null}(Re(),C(),16==(16&n))};let Jr=(()=>{class n{}return n.__NG_ELEMENT_ID__=hO,n})();class xb{constructor(){}supports(e){return Xo(e)}create(e){return new SO(e)}}const wO=(n,e)=>e;class SO{constructor(e){this.length=0,this._linkedRecords=null,this._unlinkedRecords=null,this._previousItHead=null,this._itHead=null,this._itTail=null,this._additionsHead=null,this._additionsTail=null,this._movesHead=null,this._movesTail=null,this._removalsHead=null,this._removalsTail=null,this._identityChangesHead=null,this._identityChangesTail=null,this._trackByFn=e||wO}forEachItem(e){let t;for(t=this._itHead;null!==t;t=t._next)e(t)}forEachOperation(e){let t=this._itHead,i=this._removalsHead,r=0,o=null;for(;t||i;){const s=!i||t&&t.currentIndex<Rb(i,r,o)?t:i,a=Rb(s,r,o),l=s.currentIndex;if(s===i)r--,i=i._nextRemoved;else if(t=t._next,null==s.previousIndex)r++;else{o||(o=[]);const c=a-r,u=l-r;if(c!=u){for(let h=0;h<c;h++){const f=h<o.length?o[h]:o[h]=0,p=f+h;u<=p&&p<c&&(o[h]=f+1)}o[s.previousIndex]=u-c}}a!==l&&e(s,a,l)}}forEachPreviousItem(e){let t;for(t=this._previousItHead;null!==t;t=t._nextPrevious)e(t)}forEachAddedItem(e){let t;for(t=this._additionsHead;null!==t;t=t._nextAdded)e(t)}forEachMovedItem(e){let t;for(t=this._movesHead;null!==t;t=t._nextMoved)e(t)}forEachRemovedItem(e){let t;for(t=this._removalsHead;null!==t;t=t._nextRemoved)e(t)}forEachIdentityChange(e){let t;for(t=this._identityChangesHead;null!==t;t=t._nextIdentityChange)e(t)}diff(e){if(null==e&&(e=[]),!Xo(e))throw new Error(`Error trying to diff '${G(e)}'. Only arrays and iterables are allowed`);return this.check(e)?this:null}onDestroy(){}check(e){this._reset();let r,o,s,t=this._itHead,i=!1;if(Array.isArray(e)){this.length=e.length;for(let a=0;a<this.length;a++)o=e[a],s=this._trackByFn(a,o),null!==t&&Object.is(t.trackById,s)?(i&&(t=this._verifyReinsertion(t,o,s,a)),Object.is(t.item,o)||this._addIdentityChange(t,o)):(t=this._mismatch(t,o,s,a),i=!0),t=t._next}else r=0,function nT(n,e){if(Array.isArray(n))for(let t=0;t<n.length;t++)e(n[t]);else{const t=n[xr()]();let i;for(;!(i=t.next()).done;)e(i.value)}}(e,a=>{s=this._trackByFn(r,a),null!==t&&Object.is(t.trackById,s)?(i&&(t=this._verifyReinsertion(t,a,s,r)),Object.is(t.item,a)||this._addIdentityChange(t,a)):(t=this._mismatch(t,a,s,r),i=!0),t=t._next,r++}),this.length=r;return this._truncate(t),this.collection=e,this.isDirty}get isDirty(){return null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead}_reset(){if(this.isDirty){let e;for(e=this._previousItHead=this._itHead;null!==e;e=e._next)e._nextPrevious=e._next;for(e=this._additionsHead;null!==e;e=e._nextAdded)e.previousIndex=e.currentIndex;for(this._additionsHead=this._additionsTail=null,e=this._movesHead;null!==e;e=e._nextMoved)e.previousIndex=e.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(e,t,i,r){let o;return null===e?o=this._itTail:(o=e._prev,this._remove(e)),null!==(e=null===this._unlinkedRecords?null:this._unlinkedRecords.get(i,null))?(Object.is(e.item,t)||this._addIdentityChange(e,t),this._reinsertAfter(e,o,r)):null!==(e=null===this._linkedRecords?null:this._linkedRecords.get(i,r))?(Object.is(e.item,t)||this._addIdentityChange(e,t),this._moveAfter(e,o,r)):e=this._addAfter(new MO(t,i),o,r),e}_verifyReinsertion(e,t,i,r){let o=null===this._unlinkedRecords?null:this._unlinkedRecords.get(i,null);return null!==o?e=this._reinsertAfter(o,e._prev,r):e.currentIndex!=r&&(e.currentIndex=r,this._addToMoves(e,r)),e}_truncate(e){for(;null!==e;){const t=e._next;this._addToRemovals(this._unlink(e)),e=t}null!==this._unlinkedRecords&&this._unlinkedRecords.clear(),null!==this._additionsTail&&(this._additionsTail._nextAdded=null),null!==this._movesTail&&(this._movesTail._nextMoved=null),null!==this._itTail&&(this._itTail._next=null),null!==this._removalsTail&&(this._removalsTail._nextRemoved=null),null!==this._identityChangesTail&&(this._identityChangesTail._nextIdentityChange=null)}_reinsertAfter(e,t,i){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(e);const r=e._prevRemoved,o=e._nextRemoved;return null===r?this._removalsHead=o:r._nextRemoved=o,null===o?this._removalsTail=r:o._prevRemoved=r,this._insertAfter(e,t,i),this._addToMoves(e,i),e}_moveAfter(e,t,i){return this._unlink(e),this._insertAfter(e,t,i),this._addToMoves(e,i),e}_addAfter(e,t,i){return this._insertAfter(e,t,i),this._additionsTail=null===this._additionsTail?this._additionsHead=e:this._additionsTail._nextAdded=e,e}_insertAfter(e,t,i){const r=null===t?this._itHead:t._next;return e._next=r,e._prev=t,null===r?this._itTail=e:r._prev=e,null===t?this._itHead=e:t._next=e,null===this._linkedRecords&&(this._linkedRecords=new Fb),this._linkedRecords.put(e),e.currentIndex=i,e}_remove(e){return this._addToRemovals(this._unlink(e))}_unlink(e){null!==this._linkedRecords&&this._linkedRecords.remove(e);const t=e._prev,i=e._next;return null===t?this._itHead=i:t._next=i,null===i?this._itTail=t:i._prev=t,e}_addToMoves(e,t){return e.previousIndex===t||(this._movesTail=null===this._movesTail?this._movesHead=e:this._movesTail._nextMoved=e),e}_addToRemovals(e){return null===this._unlinkedRecords&&(this._unlinkedRecords=new Fb),this._unlinkedRecords.put(e),e.currentIndex=null,e._nextRemoved=null,null===this._removalsTail?(this._removalsTail=this._removalsHead=e,e._prevRemoved=null):(e._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=e),e}_addIdentityChange(e,t){return e.item=t,this._identityChangesTail=null===this._identityChangesTail?this._identityChangesHead=e:this._identityChangesTail._nextIdentityChange=e,e}}class MO{constructor(e,t){this.item=e,this.trackById=t,this.currentIndex=null,this.previousIndex=null,this._nextPrevious=null,this._prev=null,this._next=null,this._prevDup=null,this._nextDup=null,this._prevRemoved=null,this._nextRemoved=null,this._nextAdded=null,this._nextMoved=null,this._nextIdentityChange=null}}class AO{constructor(){this._head=null,this._tail=null}add(e){null===this._head?(this._head=this._tail=e,e._nextDup=null,e._prevDup=null):(this._tail._nextDup=e,e._prevDup=this._tail,e._nextDup=null,this._tail=e)}get(e,t){let i;for(i=this._head;null!==i;i=i._nextDup)if((null===t||t<=i.currentIndex)&&Object.is(i.trackById,e))return i;return null}remove(e){const t=e._prevDup,i=e._nextDup;return null===t?this._head=i:t._nextDup=i,null===i?this._tail=t:i._prevDup=t,null===this._head}}class Fb{constructor(){this.map=new Map}put(e){const t=e.trackById;let i=this.map.get(t);i||(i=new AO,this.map.set(t,i)),i.add(e)}get(e,t){const r=this.map.get(e);return r?r.get(e,t):null}remove(e){const t=e.trackById;return this.map.get(t).remove(e)&&this.map.delete(t),e}get isEmpty(){return 0===this.map.size}clear(){this.map.clear()}}function Rb(n,e,t){const i=n.previousIndex;if(null===i)return i;let r=0;return t&&i<t.length&&(r=t[i]),i+e+r}class Ob{constructor(){}supports(e){return e instanceof Map||md(e)}create(){return new IO}}class IO{constructor(){this._records=new Map,this._mapHead=null,this._appendAfter=null,this._previousMapHead=null,this._changesHead=null,this._changesTail=null,this._additionsHead=null,this._additionsTail=null,this._removalsHead=null,this._removalsTail=null}get isDirty(){return null!==this._additionsHead||null!==this._changesHead||null!==this._removalsHead}forEachItem(e){let t;for(t=this._mapHead;null!==t;t=t._next)e(t)}forEachPreviousItem(e){let t;for(t=this._previousMapHead;null!==t;t=t._nextPrevious)e(t)}forEachChangedItem(e){let t;for(t=this._changesHead;null!==t;t=t._nextChanged)e(t)}forEachAddedItem(e){let t;for(t=this._additionsHead;null!==t;t=t._nextAdded)e(t)}forEachRemovedItem(e){let t;for(t=this._removalsHead;null!==t;t=t._nextRemoved)e(t)}diff(e){if(e){if(!(e instanceof Map||md(e)))throw new Error(`Error trying to diff '${G(e)}'. Only maps and objects are allowed`)}else e=new Map;return this.check(e)?this:null}onDestroy(){}check(e){this._reset();let t=this._mapHead;if(this._appendAfter=null,this._forEach(e,(i,r)=>{if(t&&t.key===r)this._maybeAddToChanges(t,i),this._appendAfter=t,t=t._next;else{const o=this._getOrCreateRecordForKey(r,i);t=this._insertBeforeOrAppend(t,o)}}),t){t._prev&&(t._prev._next=null),this._removalsHead=t;for(let i=t;null!==i;i=i._nextRemoved)i===this._mapHead&&(this._mapHead=null),this._records.delete(i.key),i._nextRemoved=i._next,i.previousValue=i.currentValue,i.currentValue=null,i._prev=null,i._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty}_insertBeforeOrAppend(e,t){if(e){const i=e._prev;return t._next=e,t._prev=i,e._prev=t,i&&(i._next=t),e===this._mapHead&&(this._mapHead=t),this._appendAfter=e,e}return this._appendAfter?(this._appendAfter._next=t,t._prev=this._appendAfter):this._mapHead=t,this._appendAfter=t,null}_getOrCreateRecordForKey(e,t){if(this._records.has(e)){const r=this._records.get(e);this._maybeAddToChanges(r,t);const o=r._prev,s=r._next;return o&&(o._next=s),s&&(s._prev=o),r._next=null,r._prev=null,r}const i=new TO(e);return this._records.set(e,i),i.currentValue=t,this._addToAdditions(i),i}_reset(){if(this.isDirty){let e;for(this._previousMapHead=this._mapHead,e=this._previousMapHead;null!==e;e=e._next)e._nextPrevious=e._next;for(e=this._changesHead;null!==e;e=e._nextChanged)e.previousValue=e.currentValue;for(e=this._additionsHead;null!=e;e=e._nextAdded)e.previousValue=e.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}}_maybeAddToChanges(e,t){Object.is(t,e.currentValue)||(e.previousValue=e.currentValue,e.currentValue=t,this._addToChanges(e))}_addToAdditions(e){null===this._additionsHead?this._additionsHead=this._additionsTail=e:(this._additionsTail._nextAdded=e,this._additionsTail=e)}_addToChanges(e){null===this._changesHead?this._changesHead=this._changesTail=e:(this._changesTail._nextChanged=e,this._changesTail=e)}_forEach(e,t){e instanceof Map?e.forEach(t):Object.keys(e).forEach(i=>t(e[i],i))}}class TO{constructor(e){this.key=e,this.previousValue=null,this.currentValue=null,this._nextPrevious=null,this._next=null,this._prev=null,this._nextAdded=null,this._nextRemoved=null,this._nextChanged=null}}function kb(){return new hs([new xb])}let hs=(()=>{class n{constructor(t){this.factories=t}static create(t,i){if(null!=i){const r=i.factories.slice();t=t.concat(r)}return new n(t)}static extend(t){return{provide:n,useFactory:i=>n.create(t,i||kb()),deps:[[n,new ai,new bt]]}}find(t){const i=this.factories.find(r=>r.supports(t));if(null!=i)return i;throw new Error(`Cannot find a differ supporting object '${t}' of type '${function xO(n){return n.name||typeof n}(t)}'`)}}return n.\u0275prov=I({token:n,providedIn:"root",factory:kb}),n})();function Nb(){return new eo([new Ob])}let eo=(()=>{class n{constructor(t){this.factories=t}static create(t,i){if(i){const r=i.factories.slice();t=t.concat(r)}return new n(t)}static extend(t){return{provide:n,useFactory:i=>n.create(t,i||Nb()),deps:[[n,new ai,new bt]]}}find(t){const i=this.factories.find(r=>r.supports(t));if(i)return i;throw new Error(`Cannot find a differ supporting object '${t}'`)}}return n.\u0275prov=I({token:n,providedIn:"root",factory:Nb}),n})();const FO=[new Ob],OO=new hs([new xb]),kO=new eo(FO),NO=bb(null,"core",[{provide:il,useValue:"unknown"},{provide:Eb,deps:[re]},{provide:gb,deps:[]},{provide:Jd,deps:[]}]),jO=[{provide:Hi,useClass:Hi,deps:[oe,re,yn,$n,Xr]},{provide:AF,deps:[oe],useFactory:function HO(n){let e=[];return n.onStable.subscribe(()=>{for(;e.length;)e.pop()()}),function(t){e.push(t)}}},{provide:Xr,useClass:Xr,deps:[[new bt,nl]]},{provide:fb,useClass:fb,deps:[]},kR,{provide:hs,useFactory:function PO(){return OO},deps:[]},{provide:eo,useFactory:function LO(){return kO},deps:[]},{provide:Wn,useFactory:function VO(n){return n||function BO(){return"undefined"!=typeof $localize&&$localize.locale||Ga}()},deps:[[new Vo(Wn),new bt,new ai]]},{provide:ub,useValue:"USD"}];let UO=(()=>{class n{constructor(t){}}return n.\u0275fac=function(t){return new(t||n)(b(Hi))},n.\u0275mod=pe({type:n}),n.\u0275inj=ce({providers:jO}),n})(),_l=null;function Sn(){return _l}const q=new T("DocumentToken");let ws=(()=>{class n{historyGo(t){throw new Error("Not implemented")}}return n.\u0275fac=function(t){return new(t||n)},n.\u0275prov=I({token:n,factory:function(){return function NN(){return b(vC)}()},providedIn:"platform"}),n})(),vC=(()=>{class n extends ws{constructor(t){super(),this._doc=t,this._init()}_init(){this.location=window.location,this._history=window.history}getBaseHrefFromDOM(){return Sn().getBaseHref(this._doc)}onPopState(t){const i=Sn().getGlobalEventTarget(this._doc,"window");return i.addEventListener("popstate",t,!1),()=>i.removeEventListener("popstate",t)}onHashChange(t){const i=Sn().getGlobalEventTarget(this._doc,"window");return i.addEventListener("hashchange",t,!1),()=>i.removeEventListener("hashchange",t)}get href(){return this.location.href}get protocol(){return this.location.protocol}get hostname(){return this.location.hostname}get port(){return this.location.port}get pathname(){return this.location.pathname}get search(){return this.location.search}get hash(){return this.location.hash}set pathname(t){this.location.pathname=t}pushState(t,i,r){bC()?this._history.pushState(t,i,r):this.location.hash=r}replaceState(t,i,r){bC()?this._history.replaceState(t,i,r):this.location.hash=r}forward(){this._history.forward()}back(){this._history.back()}historyGo(t=0){this._history.go(t)}getState(){return this._history.state}}return n.\u0275fac=function(t){return new(t||n)(b(q))},n.\u0275prov=I({token:n,factory:function(){return function PN(){return new vC(b(q))}()},providedIn:"platform"}),n})();function bC(){return!!window.history.pushState}function CC(n,e){if(0==n.length)return e;if(0==e.length)return n;let t=0;return n.endsWith("/")&&t++,e.startsWith("/")&&t++,2==t?n+e.substring(1):1==t?n+e:n+"/"+e}function EC(n){const e=n.match(/#|\?|$/),t=e&&e.index||n.length;return n.slice(0,t-("/"===n[t-1]?1:0))+n.slice(t)}function Wi(n){return n&&"?"!==n[0]?"?"+n:n}let Nh=(()=>{class n{historyGo(t){throw new Error("Not implemented")}}return n.\u0275fac=function(t){return new(t||n)},n.\u0275prov=I({token:n,factory:function(){return function LN(n){const e=b(q).location;return new BN(b(ws),e&&e.origin||"")}()},providedIn:"root"}),n})();const VN=new T("appBaseHref");let BN=(()=>{class n extends Nh{constructor(t,i){if(super(),this._platformLocation=t,this._removeListenerFns=[],null==i&&(i=this._platformLocation.getBaseHrefFromDOM()),null==i)throw new Error("No base href set. Please provide a value for the APP_BASE_HREF token or add a base element to the document.");this._baseHref=i}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(t){this._removeListenerFns.push(this._platformLocation.onPopState(t),this._platformLocation.onHashChange(t))}getBaseHref(){return this._baseHref}prepareExternalUrl(t){return CC(this._baseHref,t)}path(t=!1){const i=this._platformLocation.pathname+Wi(this._platformLocation.search),r=this._platformLocation.hash;return r&&t?`${i}${r}`:i}pushState(t,i,r,o){const s=this.prepareExternalUrl(r+Wi(o));this._platformLocation.pushState(t,i,s)}replaceState(t,i,r,o){const s=this.prepareExternalUrl(r+Wi(o));this._platformLocation.replaceState(t,i,s)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}historyGo(t=0){var i,r;null===(r=(i=this._platformLocation).historyGo)||void 0===r||r.call(i,t)}}return n.\u0275fac=function(t){return new(t||n)(b(ws),b(VN,8))},n.\u0275prov=I({token:n,factory:n.\u0275fac}),n})(),DC=(()=>{class n{constructor(t,i){this._subject=new Ve,this._urlChangeListeners=[],this._platformStrategy=t;const r=this._platformStrategy.getBaseHref();this._platformLocation=i,this._baseHref=EC(wC(r)),this._platformStrategy.onPopState(o=>{this._subject.emit({url:this.path(!0),pop:!0,state:o.state,type:o.type})})}path(t=!1){return this.normalize(this._platformStrategy.path(t))}getState(){return this._platformLocation.getState()}isCurrentPathEqualTo(t,i=""){return this.path()==this.normalize(t+Wi(i))}normalize(t){return n.stripTrailingSlash(function HN(n,e){return n&&e.startsWith(n)?e.substring(n.length):e}(this._baseHref,wC(t)))}prepareExternalUrl(t){return t&&"/"!==t[0]&&(t="/"+t),this._platformStrategy.prepareExternalUrl(t)}go(t,i="",r=null){this._platformStrategy.pushState(r,"",t,i),this._notifyUrlChangeListeners(this.prepareExternalUrl(t+Wi(i)),r)}replaceState(t,i="",r=null){this._platformStrategy.replaceState(r,"",t,i),this._notifyUrlChangeListeners(this.prepareExternalUrl(t+Wi(i)),r)}forward(){this._platformStrategy.forward()}back(){this._platformStrategy.back()}historyGo(t=0){var i,r;null===(r=(i=this._platformStrategy).historyGo)||void 0===r||r.call(i,t)}onUrlChange(t){this._urlChangeListeners.push(t),this._urlChangeSubscription||(this._urlChangeSubscription=this.subscribe(i=>{this._notifyUrlChangeListeners(i.url,i.state)}))}_notifyUrlChangeListeners(t="",i){this._urlChangeListeners.forEach(r=>r(t,i))}subscribe(t,i,r){return this._subject.subscribe({next:t,error:i,complete:r})}}return n.normalizeQueryParams=Wi,n.joinWithSlash=CC,n.stripTrailingSlash=EC,n.\u0275fac=function(t){return new(t||n)(b(Nh),b(ws))},n.\u0275prov=I({token:n,factory:function(){return function jN(){return new DC(b(Nh),b(ws))}()},providedIn:"root"}),n})();function wC(n){return n.replace(/\/index.html$/,"")}var Te=(()=>((Te=Te||{})[Te.Zero=0]="Zero",Te[Te.One=1]="One",Te[Te.Two=2]="Two",Te[Te.Few=3]="Few",Te[Te.Many=4]="Many",Te[Te.Other=5]="Other",Te))();const QN=function Ky(n){return function it(n){const e=function _x(n){return n.toLowerCase().replace(/_/g,"-")}(n);let t=Yy(e);if(t)return t;const i=e.split("-")[0];if(t=Yy(i),t)return t;if("en"===i)return gx;throw new Error(`Missing locale data for the locale "${n}".`)}(n)[w.PluralCase]};class Al{}let DP=(()=>{class n extends Al{constructor(t){super(),this.locale=t}getPluralCategory(t,i){switch(QN(i||this.locale)(t)){case Te.Zero:return"zero";case Te.One:return"one";case Te.Two:return"two";case Te.Few:return"few";case Te.Many:return"many";default:return"other"}}}return n.\u0275fac=function(t){return new(t||n)(b(Wn))},n.\u0275prov=I({token:n,factory:n.\u0275fac}),n})(),$h=(()=>{class n{constructor(t,i,r,o){this._iterableDiffers=t,this._keyValueDiffers=i,this._ngEl=r,this._renderer=o,this._iterableDiffer=null,this._keyValueDiffer=null,this._initialClasses=[],this._rawClass=null}set klass(t){this._removeClasses(this._initialClasses),this._initialClasses="string"==typeof t?t.split(/\s+/):[],this._applyClasses(this._initialClasses),this._applyClasses(this._rawClass)}set ngClass(t){this._removeClasses(this._rawClass),this._applyClasses(this._initialClasses),this._iterableDiffer=null,this._keyValueDiffer=null,this._rawClass="string"==typeof t?t.split(/\s+/):t,this._rawClass&&(Xo(this._rawClass)?this._iterableDiffer=this._iterableDiffers.find(this._rawClass).create():this._keyValueDiffer=this._keyValueDiffers.find(this._rawClass).create())}ngDoCheck(){if(this._iterableDiffer){const t=this._iterableDiffer.diff(this._rawClass);t&&this._applyIterableChanges(t)}else if(this._keyValueDiffer){const t=this._keyValueDiffer.diff(this._rawClass);t&&this._applyKeyValueChanges(t)}}_applyKeyValueChanges(t){t.forEachAddedItem(i=>this._toggleClass(i.key,i.currentValue)),t.forEachChangedItem(i=>this._toggleClass(i.key,i.currentValue)),t.forEachRemovedItem(i=>{i.previousValue&&this._toggleClass(i.key,!1)})}_applyIterableChanges(t){t.forEachAddedItem(i=>{if("string"!=typeof i.item)throw new Error(`NgClass can only toggle CSS classes expressed as strings, got ${G(i.item)}`);this._toggleClass(i.item,!0)}),t.forEachRemovedItem(i=>this._toggleClass(i.item,!1))}_applyClasses(t){t&&(Array.isArray(t)||t instanceof Set?t.forEach(i=>this._toggleClass(i,!0)):Object.keys(t).forEach(i=>this._toggleClass(i,!!t[i])))}_removeClasses(t){t&&(Array.isArray(t)||t instanceof Set?t.forEach(i=>this._toggleClass(i,!1)):Object.keys(t).forEach(i=>this._toggleClass(i,!1)))}_toggleClass(t,i){(t=t.trim())&&t.split(/\s+/g).forEach(r=>{i?this._renderer.addClass(this._ngEl.nativeElement,r):this._renderer.removeClass(this._ngEl.nativeElement,r)})}}return n.\u0275fac=function(t){return new(t||n)(v(hs),v(eo),v(ye),v(Bi))},n.\u0275dir=k({type:n,selectors:[["","ngClass",""]],inputs:{klass:["class","klass"],ngClass:"ngClass"}}),n})();class PP{createSubscription(e,t){return e.subscribe({next:t,error:i=>{throw i}})}dispose(e){e.unsubscribe()}onDestroy(e){e.unsubscribe()}}class LP{createSubscription(e,t){return e.then(t,i=>{throw i})}dispose(e){}onDestroy(e){}}const VP=new LP,BP=new PP;let PC=(()=>{class n{constructor(t){this._ref=t,this._latestValue=null,this._subscription=null,this._obj=null,this._strategy=null}ngOnDestroy(){this._subscription&&this._dispose()}transform(t){return this._obj?t!==this._obj?(this._dispose(),this.transform(t)):this._latestValue:(t&&this._subscribe(t),this._latestValue)}_subscribe(t){this._obj=t,this._strategy=this._selectStrategy(t),this._subscription=this._strategy.createSubscription(t,i=>this._updateLatestValue(t,i))}_selectStrategy(t){if(Ha(t))return VP;if(ry(t))return BP;throw function ln(n,e){return Error(`InvalidPipeArgument: '${e}' for pipe '${G(n)}'`)}(n,t)}_dispose(){this._strategy.dispose(this._subscription),this._latestValue=null,this._subscription=null,this._obj=null}_updateLatestValue(t,i){t===this._obj&&(this._latestValue=i,this._ref.markForCheck())}}return n.\u0275fac=function(t){return new(t||n)(v(Jr,16))},n.\u0275pipe=ct({name:"async",type:n,pure:!1}),n})(),As=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=pe({type:n}),n.\u0275inj=ce({providers:[{provide:Al,useClass:DP}]}),n})();const VC="browser";class Kh extends class c1 extends class kN{}{constructor(){super(...arguments),this.supportsDOMEvents=!0}}{static makeCurrent(){!function ON(n){_l||(_l=n)}(new Kh)}onAndCancel(e,t,i){return e.addEventListener(t,i,!1),()=>{e.removeEventListener(t,i,!1)}}dispatchEvent(e,t){e.dispatchEvent(t)}remove(e){e.parentNode&&e.parentNode.removeChild(e)}createElement(e,t){return(t=t||this.getDefaultDocument()).createElement(e)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(e){return e.nodeType===Node.ELEMENT_NODE}isShadowRoot(e){return e instanceof DocumentFragment}getGlobalEventTarget(e,t){return"window"===t?window:"document"===t?e:"body"===t?e.body:null}getBaseHref(e){const t=function u1(){return Is=Is||document.querySelector("base"),Is?Is.getAttribute("href"):null}();return null==t?null:function d1(n){Il=Il||document.createElement("a"),Il.setAttribute("href",n);const e=Il.pathname;return"/"===e.charAt(0)?e:`/${e}`}(t)}resetBaseElement(){Is=null}getUserAgent(){return window.navigator.userAgent}getCookie(e){return function wP(n,e){e=encodeURIComponent(e);for(const t of n.split(";")){const i=t.indexOf("="),[r,o]=-1==i?[t,""]:[t.slice(0,i),t.slice(i+1)];if(r.trim()===e)return decodeURIComponent(o)}return null}(document.cookie,e)}}let Il,Is=null;const jC=new T("TRANSITION_ID"),f1=[{provide:nl,useFactory:function h1(n,e,t){return()=>{t.get(Xr).donePromise.then(()=>{const i=Sn(),r=e.querySelectorAll(`style[ng-transition="${n}"]`);for(let o=0;o<r.length;o++)i.remove(r[o])})}},deps:[jC,q,re],multi:!0}];class Yh{static init(){!function ZR(n){oh=n}(new Yh)}addToWindow(e){ee.getAngularTestability=(i,r=!0)=>{const o=e.findTestabilityInTree(i,r);if(null==o)throw new Error("Could not find testability for element.");return o},ee.getAllAngularTestabilities=()=>e.getAllTestabilities(),ee.getAllAngularRootElements=()=>e.getAllRootElements(),ee.frameworkStabilizers||(ee.frameworkStabilizers=[]),ee.frameworkStabilizers.push(i=>{const r=ee.getAllAngularTestabilities();let o=r.length,s=!1;const a=function(l){s=s||l,o--,0==o&&i(s)};r.forEach(function(l){l.whenStable(a)})})}findTestabilityInTree(e,t,i){if(null==t)return null;const r=e.getTestability(t);return null!=r?r:i?Sn().isShadowRoot(t)?this.findTestabilityInTree(e,t.host,!0):this.findTestabilityInTree(e,t.parentElement,!0):null}}let p1=(()=>{class n{build(){return new XMLHttpRequest}}return n.\u0275fac=function(t){return new(t||n)},n.\u0275prov=I({token:n,factory:n.\u0275fac}),n})();const Ts=new T("EventManagerPlugins");let xl=(()=>{class n{constructor(t,i){this._zone=i,this._eventNameToPlugin=new Map,t.forEach(r=>r.manager=this),this._plugins=t.slice().reverse()}addEventListener(t,i,r){return this._findPluginFor(i).addEventListener(t,i,r)}addGlobalEventListener(t,i,r){return this._findPluginFor(i).addGlobalEventListener(t,i,r)}getZone(){return this._zone}_findPluginFor(t){const i=this._eventNameToPlugin.get(t);if(i)return i;const r=this._plugins;for(let o=0;o<r.length;o++){const s=r[o];if(s.supports(t))return this._eventNameToPlugin.set(t,s),s}throw new Error(`No event manager plugin found for event ${t}`)}}return n.\u0275fac=function(t){return new(t||n)(b(Ts),b(oe))},n.\u0275prov=I({token:n,factory:n.\u0275fac}),n})();class Zh{constructor(e){this._doc=e}addGlobalEventListener(e,t,i){const r=Sn().getGlobalEventTarget(this._doc,e);if(!r)throw new Error(`Unsupported event target ${r} for event ${t}`);return this.addEventListener(r,t,i)}}let UC=(()=>{class n{constructor(){this._stylesSet=new Set}addStyles(t){const i=new Set;t.forEach(r=>{this._stylesSet.has(r)||(this._stylesSet.add(r),i.add(r))}),this.onStylesAdded(i)}onStylesAdded(t){}getAllStyles(){return Array.from(this._stylesSet)}}return n.\u0275fac=function(t){return new(t||n)},n.\u0275prov=I({token:n,factory:n.\u0275fac}),n})(),xs=(()=>{class n extends UC{constructor(t){super(),this._doc=t,this._hostNodes=new Map,this._hostNodes.set(t.head,[])}_addStylesToHost(t,i,r){t.forEach(o=>{const s=this._doc.createElement("style");s.textContent=o,r.push(i.appendChild(s))})}addHost(t){const i=[];this._addStylesToHost(this._stylesSet,t,i),this._hostNodes.set(t,i)}removeHost(t){const i=this._hostNodes.get(t);i&&i.forEach(zC),this._hostNodes.delete(t)}onStylesAdded(t){this._hostNodes.forEach((i,r)=>{this._addStylesToHost(t,r,i)})}ngOnDestroy(){this._hostNodes.forEach(t=>t.forEach(zC))}}return n.\u0275fac=function(t){return new(t||n)(b(q))},n.\u0275prov=I({token:n,factory:n.\u0275fac}),n})();function zC(n){Sn().remove(n)}const Xh={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/"},Jh=/%COMP%/g;function Fl(n,e,t){for(let i=0;i<e.length;i++){let r=e[i];Array.isArray(r)?Fl(n,r,t):(r=r.replace(Jh,n),t.push(r))}return t}function WC(n){return e=>{if("__ngUnwrap__"===e)return n;!1===n(e)&&(e.preventDefault(),e.returnValue=!1)}}let Rl=(()=>{class n{constructor(t,i,r){this.eventManager=t,this.sharedStylesHost=i,this.appId=r,this.rendererByCompId=new Map,this.defaultRenderer=new ef(t)}createRenderer(t,i){if(!t||!i)return this.defaultRenderer;switch(i.encapsulation){case lt.Emulated:{let r=this.rendererByCompId.get(i.id);return r||(r=new T1(this.eventManager,this.sharedStylesHost,i,this.appId),this.rendererByCompId.set(i.id,r)),r.applyToHost(t),r}case 1:case lt.ShadowDom:return new x1(this.eventManager,this.sharedStylesHost,t,i);default:if(!this.rendererByCompId.has(i.id)){const r=Fl(i.id,i.styles,[]);this.sharedStylesHost.addStyles(r),this.rendererByCompId.set(i.id,this.defaultRenderer)}return this.defaultRenderer}}begin(){}end(){}}return n.\u0275fac=function(t){return new(t||n)(b(xl),b(xs),b(ds))},n.\u0275prov=I({token:n,factory:n.\u0275fac}),n})();class ef{constructor(e){this.eventManager=e,this.data=Object.create(null),this.destroyNode=null}destroy(){}createElement(e,t){return t?document.createElementNS(Xh[t]||t,e):document.createElement(e)}createComment(e){return document.createComment(e)}createText(e){return document.createTextNode(e)}appendChild(e,t){e.appendChild(t)}insertBefore(e,t,i){e&&e.insertBefore(t,i)}removeChild(e,t){e&&e.removeChild(t)}selectRootElement(e,t){let i="string"==typeof e?document.querySelector(e):e;if(!i)throw new Error(`The selector "${e}" did not match any elements`);return t||(i.textContent=""),i}parentNode(e){return e.parentNode}nextSibling(e){return e.nextSibling}setAttribute(e,t,i,r){if(r){t=r+":"+t;const o=Xh[r];o?e.setAttributeNS(o,t,i):e.setAttribute(t,i)}else e.setAttribute(t,i)}removeAttribute(e,t,i){if(i){const r=Xh[i];r?e.removeAttributeNS(r,t):e.removeAttribute(`${i}:${t}`)}else e.removeAttribute(t)}addClass(e,t){e.classList.add(t)}removeClass(e,t){e.classList.remove(t)}setStyle(e,t,i,r){r&(Et.DashCase|Et.Important)?e.style.setProperty(t,i,r&Et.Important?"important":""):e.style[t]=i}removeStyle(e,t,i){i&Et.DashCase?e.style.removeProperty(t):e.style[t]=""}setProperty(e,t,i){e[t]=i}setValue(e,t){e.nodeValue=t}listen(e,t,i){return"string"==typeof e?this.eventManager.addGlobalEventListener(e,t,WC(i)):this.eventManager.addEventListener(e,t,WC(i))}}class T1 extends ef{constructor(e,t,i,r){super(e),this.component=i;const o=Fl(r+"-"+i.id,i.styles,[]);t.addStyles(o),this.contentAttr=function M1(n){return"_ngcontent-%COMP%".replace(Jh,n)}(r+"-"+i.id),this.hostAttr=function A1(n){return"_nghost-%COMP%".replace(Jh,n)}(r+"-"+i.id)}applyToHost(e){super.setAttribute(e,this.hostAttr,"")}createElement(e,t){const i=super.createElement(e,t);return super.setAttribute(i,this.contentAttr,""),i}}class x1 extends ef{constructor(e,t,i,r){super(e),this.sharedStylesHost=t,this.hostEl=i,this.shadowRoot=i.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);const o=Fl(r.id,r.styles,[]);for(let s=0;s<o.length;s++){const a=document.createElement("style");a.textContent=o[s],this.shadowRoot.appendChild(a)}}nodeOrShadowRoot(e){return e===this.hostEl?this.shadowRoot:e}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}appendChild(e,t){return super.appendChild(this.nodeOrShadowRoot(e),t)}insertBefore(e,t,i){return super.insertBefore(this.nodeOrShadowRoot(e),t,i)}removeChild(e,t){return super.removeChild(this.nodeOrShadowRoot(e),t)}parentNode(e){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(e)))}}let F1=(()=>{class n extends Zh{constructor(t){super(t)}supports(t){return!0}addEventListener(t,i,r){return t.addEventListener(i,r,!1),()=>this.removeEventListener(t,i,r)}removeEventListener(t,i,r){return t.removeEventListener(i,r)}}return n.\u0275fac=function(t){return new(t||n)(b(q))},n.\u0275prov=I({token:n,factory:n.\u0275fac}),n})();const KC=["alt","control","meta","shift"],V1={"\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"},YC={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"},B1={alt:n=>n.altKey,control:n=>n.ctrlKey,meta:n=>n.metaKey,shift:n=>n.shiftKey};let j1=(()=>{class n extends Zh{constructor(t){super(t)}supports(t){return null!=n.parseEventName(t)}addEventListener(t,i,r){const o=n.parseEventName(i),s=n.eventCallback(o.fullKey,r,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>Sn().onAndCancel(t,o.domEventName,s))}static parseEventName(t){const i=t.toLowerCase().split("."),r=i.shift();if(0===i.length||"keydown"!==r&&"keyup"!==r)return null;const o=n._normalizeKey(i.pop());let s="";if(KC.forEach(l=>{const c=i.indexOf(l);c>-1&&(i.splice(c,1),s+=l+".")}),s+=o,0!=i.length||0===o.length)return null;const a={};return a.domEventName=r,a.fullKey=s,a}static getEventFullKey(t){let i="",r=function H1(n){let e=n.key;if(null==e){if(e=n.keyIdentifier,null==e)return"Unidentified";e.startsWith("U+")&&(e=String.fromCharCode(parseInt(e.substring(2),16)),3===n.location&&YC.hasOwnProperty(e)&&(e=YC[e]))}return V1[e]||e}(t);return r=r.toLowerCase()," "===r?r="space":"."===r&&(r="dot"),KC.forEach(o=>{o!=r&&B1[o](t)&&(i+=o+".")}),i+=r,i}static eventCallback(t,i,r){return o=>{n.getEventFullKey(o)===t&&r.runGuarded(()=>i(o))}}static _normalizeKey(t){return"esc"===t?"escape":t}}return n.\u0275fac=function(t){return new(t||n)(b(q))},n.\u0275prov=I({token:n,factory:n.\u0275fac}),n})(),Fs=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275prov=I({token:n,factory:function(t){let i=null;return i=t?new(t||n):b(nf),i},providedIn:"root"}),n})(),nf=(()=>{class n extends Fs{constructor(t){super(),this._doc=t}sanitize(t,i){if(null==i)return null;switch(t){case X.NONE:return i;case X.HTML:return gn(i,"HTML")?Ct(i):Qm(this._doc,String(i)).toString();case X.STYLE:return gn(i,"Style")?Ct(i):i;case X.SCRIPT:if(gn(i,"Script"))return Ct(i);throw new Error("unsafe value used in a script context");case X.URL:return jm(i),gn(i,"URL")?Ct(i):jo(String(i));case X.RESOURCE_URL:if(gn(i,"ResourceURL"))return Ct(i);throw new Error("unsafe value used in a resource URL context (see https://g.co/ng/security#xss)");default:throw new Error(`Unexpected SecurityContext ${t} (see https://g.co/ng/security#xss)`)}}bypassSecurityTrustHtml(t){return function DM(n){return new yM(n)}(t)}bypassSecurityTrustStyle(t){return function wM(n){return new vM(n)}(t)}bypassSecurityTrustScript(t){return function SM(n){return new bM(n)}(t)}bypassSecurityTrustUrl(t){return function MM(n){return new CM(n)}(t)}bypassSecurityTrustResourceUrl(t){return function AM(n){return new EM(n)}(t)}}return n.\u0275fac=function(t){return new(t||n)(b(q))},n.\u0275prov=I({token:n,factory:function(t){let i=null;return i=t?new t:function U1(n){return new nf(n.get(q))}(b(re)),i},providedIn:"root"}),n})();const W1=[{provide:il,useValue:VC},{provide:cb,useValue:function z1(){Kh.makeCurrent(),Yh.init()},multi:!0},{provide:q,useFactory:function G1(){return function h0(n){qc=n}(document),document},deps:[]}],Q1=bb(NO,"browser",W1),K1=[[],{provide:Ko,useValue:"root"},{provide:yn,useFactory:function $1(){return new yn},deps:[]},{provide:Ts,useClass:F1,multi:!0,deps:[q,oe,il]},{provide:Ts,useClass:j1,multi:!0,deps:[q]},[],{provide:Rl,useClass:Rl,deps:[xl,xs,ds]},{provide:Vi,useExisting:Rl},{provide:UC,useExisting:xs},{provide:xs,useClass:xs,deps:[q]},{provide:rh,useClass:rh,deps:[oe]},{provide:xl,useClass:xl,deps:[Ts,oe]},{provide:class l1{},useClass:p1,deps:[]},[]];let Y1=(()=>{class n{constructor(t){if(t)throw new Error("BrowserModule has already been loaded. If you need access to common directives such as NgIf and NgFor from a lazy loaded module, import CommonModule instead.")}static withServerTransition(t){return{ngModule:n,providers:[{provide:ds,useValue:t.appId},{provide:jC,useExisting:ds},f1]}}}return n.\u0275fac=function(t){return new(t||n)(b(n,12))},n.\u0275mod=pe({type:n}),n.\u0275inj=ce({providers:K1,imports:[As,UO]}),n})();"undefined"!=typeof window&&window;class Ol{constructor(e,t,i,r){if(isNaN(e)||isNaN(t))throw new Error(`Point is invalid: (${e}, ${t})`);this.x=+e,this.y=+t,this.pressure=i||0,this.time=r||Date.now()}distanceTo(e){return Math.sqrt(Math.pow(this.x-e.x,2)+Math.pow(this.y-e.y,2))}equals(e){return this.x===e.x&&this.y===e.y&&this.pressure===e.pressure&&this.time===e.time}velocityFrom(e){return this.time!==e.time?this.distanceTo(e)/(this.time-e.time):0}}class sf{constructor(e,t,i,r,o,s){this.startPoint=e,this.control2=t,this.control1=i,this.endPoint=r,this.startWidth=o,this.endWidth=s}static fromPoints(e,t){const i=this.calculateControlPoints(e[0],e[1],e[2]).c2,r=this.calculateControlPoints(e[1],e[2],e[3]).c1;return new sf(e[1],i,r,e[2],t.start,t.end)}static calculateControlPoints(e,t,i){const r=e.x-t.x,o=e.y-t.y,s=t.x-i.x,a=t.y-i.y,l_x=(e.x+t.x)/2,l_y=(e.y+t.y)/2,c_x=(t.x+i.x)/2,c_y=(t.y+i.y)/2,u=Math.sqrt(r*r+o*o),d=Math.sqrt(s*s+a*a),p=d/(u+d),m=t.x-(c_x+(l_x-c_x)*p),y=t.y-(c_y+(l_y-c_y)*p);return{c1:new Ol(l_x+m,l_y+y),c2:new Ol(c_x+m,c_y+y)}}length(){let i,r,t=0;for(let o=0;o<=10;o+=1){const s=o/10,a=this.point(s,this.startPoint.x,this.control1.x,this.control2.x,this.endPoint.x),l=this.point(s,this.startPoint.y,this.control1.y,this.control2.y,this.endPoint.y);if(o>0){const c=a-i,u=l-r;t+=Math.sqrt(c*c+u*u)}i=a,r=l}return t}point(e,t,i,r,o){return t*(1-e)*(1-e)*(1-e)+3*i*(1-e)*(1-e)*e+3*r*(1-e)*e*e+o*e*e*e}}class kl extends class rL{constructor(){try{this._et=new EventTarget}catch(e){this._et=document}}addEventListener(e,t,i){this._et.addEventListener(e,t,i)}dispatchEvent(e){return this._et.dispatchEvent(e)}removeEventListener(e,t,i){this._et.removeEventListener(e,t,i)}}{constructor(e,t={}){super(),this.canvas=e,this._handleMouseDown=i=>{1===i.buttons&&(this._drawningStroke=!0,this._strokeBegin(i))},this._handleMouseMove=i=>{this._drawningStroke&&this._strokeMoveUpdate(i)},this._handleMouseUp=i=>{1===i.buttons&&this._drawningStroke&&(this._drawningStroke=!1,this._strokeEnd(i))},this._handleTouchStart=i=>{i.preventDefault(),1===i.targetTouches.length&&this._strokeBegin(i.changedTouches[0])},this._handleTouchMove=i=>{i.preventDefault(),this._strokeMoveUpdate(i.targetTouches[0])},this._handleTouchEnd=i=>{i.target===this.canvas&&(i.preventDefault(),this._strokeEnd(i.changedTouches[0]))},this._handlePointerStart=i=>{this._drawningStroke=!0,i.preventDefault(),this._strokeBegin(i)},this._handlePointerMove=i=>{this._drawningStroke&&(i.preventDefault(),this._strokeMoveUpdate(i))},this._handlePointerEnd=i=>{this._drawningStroke=!1,i.target===this.canvas&&(i.preventDefault(),this._strokeEnd(i))},this.velocityFilterWeight=t.velocityFilterWeight||.7,this.minWidth=t.minWidth||.5,this.maxWidth=t.maxWidth||2.5,this.throttle="throttle"in t?t.throttle:16,this.minDistance="minDistance"in t?t.minDistance:5,this.dotSize=t.dotSize||0,this.penColor=t.penColor||"black",this.backgroundColor=t.backgroundColor||"rgba(0,0,0,0)",this._strokeMoveUpdate=this.throttle?function oL(n,e=250){let r,o,s,t=0,i=null;const a=()=>{t=Date.now(),i=null,r=n.apply(o,s),i||(o=null,s=[])};return function(...c){const u=Date.now(),d=e-(u-t);return o=this,s=c,d<=0||d>e?(i&&(clearTimeout(i),i=null),t=u,r=n.apply(o,s),i||(o=null,s=[])):i||(i=window.setTimeout(a,d)),r}}(kl.prototype._strokeUpdate,this.throttle):kl.prototype._strokeUpdate,this._ctx=e.getContext("2d"),this.clear(),this.on()}clear(){const{_ctx:e,canvas:t}=this;e.fillStyle=this.backgroundColor,e.clearRect(0,0,t.width,t.height),e.fillRect(0,0,t.width,t.height),this._data=[],this._reset(),this._isEmpty=!0}fromDataURL(e,t={}){return new Promise((i,r)=>{const o=new Image,s=t.ratio||window.devicePixelRatio||1,a=t.width||this.canvas.width/s,l=t.height||this.canvas.height/s,c=t.xOffset||0,u=t.yOffset||0;this._reset(),o.onload=()=>{this._ctx.drawImage(o,c,u,a,l),i()},o.onerror=d=>{r(d)},o.crossOrigin="anonymous",o.src=e,this._isEmpty=!1})}toDataURL(e="image/png",t){return"image/svg+xml"===e?this._toSVG():this.canvas.toDataURL(e,t)}on(){this.canvas.style.touchAction="none",this.canvas.style.msTouchAction="none",this.canvas.style.userSelect="none";const e=/Macintosh/.test(navigator.userAgent)&&"ontouchstart"in document;window.PointerEvent&&!e?this._handlePointerEvents():(this._handleMouseEvents(),"ontouchstart"in window&&this._handleTouchEvents())}off(){this.canvas.style.touchAction="auto",this.canvas.style.msTouchAction="auto",this.canvas.style.userSelect="auto",this.canvas.removeEventListener("pointerdown",this._handlePointerStart),this.canvas.removeEventListener("pointermove",this._handlePointerMove),document.removeEventListener("pointerup",this._handlePointerEnd),this.canvas.removeEventListener("mousedown",this._handleMouseDown),this.canvas.removeEventListener("mousemove",this._handleMouseMove),document.removeEventListener("mouseup",this._handleMouseUp),this.canvas.removeEventListener("touchstart",this._handleTouchStart),this.canvas.removeEventListener("touchmove",this._handleTouchMove),this.canvas.removeEventListener("touchend",this._handleTouchEnd)}isEmpty(){return this._isEmpty}fromData(e,{clear:t=!0}={}){t&&this.clear(),this._fromData(e,this._drawCurve.bind(this),this._drawDot.bind(this)),this._data=t?e:this._data.concat(e)}toData(){return this._data}_strokeBegin(e){this.dispatchEvent(new CustomEvent("beginStroke",{detail:e})),this._data.push({dotSize:this.dotSize,minWidth:this.minWidth,maxWidth:this.maxWidth,penColor:this.penColor,points:[]}),this._reset(),this._strokeUpdate(e)}_strokeUpdate(e){if(0===this._data.length)return void this._strokeBegin(e);this.dispatchEvent(new CustomEvent("beforeUpdateStroke",{detail:e}));const o=this._createPoint(e.clientX,e.clientY,void 0!==e.pressure?e.pressure:void 0!==e.force?e.force:0),s=this._data[this._data.length-1],a=s.points,l=a.length>0&&a[a.length-1],c=!!l&&o.distanceTo(l)<=this.minDistance,{penColor:u,dotSize:d,minWidth:h,maxWidth:f}=s;if(!l||!l||!c){const p=this._addPoint(o);l?p&&this._drawCurve(p,{penColor:u,dotSize:d,minWidth:h,maxWidth:f}):this._drawDot(o,{penColor:u,dotSize:d,minWidth:h,maxWidth:f}),a.push({time:o.time,x:o.x,y:o.y,pressure:o.pressure})}this.dispatchEvent(new CustomEvent("afterUpdateStroke",{detail:e}))}_strokeEnd(e){this._strokeUpdate(e),this.dispatchEvent(new CustomEvent("endStroke",{detail:e}))}_handlePointerEvents(){this._drawningStroke=!1,this.canvas.addEventListener("pointerdown",this._handlePointerStart),this.canvas.addEventListener("pointermove",this._handlePointerMove),document.addEventListener("pointerup",this._handlePointerEnd)}_handleMouseEvents(){this._drawningStroke=!1,this.canvas.addEventListener("mousedown",this._handleMouseDown),this.canvas.addEventListener("mousemove",this._handleMouseMove),document.addEventListener("mouseup",this._handleMouseUp)}_handleTouchEvents(){this.canvas.addEventListener("touchstart",this._handleTouchStart),this.canvas.addEventListener("touchmove",this._handleTouchMove),this.canvas.addEventListener("touchend",this._handleTouchEnd)}_reset(){this._lastPoints=[],this._lastVelocity=0,this._lastWidth=(this.minWidth+this.maxWidth)/2,this._ctx.fillStyle=this.penColor}_createPoint(e,t,i){const r=this.canvas.getBoundingClientRect();return new Ol(e-r.left,t-r.top,i,(new Date).getTime())}_addPoint(e){const{_lastPoints:t}=this;if(t.push(e),t.length>2){3===t.length&&t.unshift(t[0]);const i=this._calculateCurveWidths(t[1],t[2]),r=sf.fromPoints(t,i);return t.shift(),r}return null}_calculateCurveWidths(e,t){const i=this.velocityFilterWeight*t.velocityFrom(e)+(1-this.velocityFilterWeight)*this._lastVelocity,r=this._strokeWidth(i),o={end:r,start:this._lastWidth};return this._lastVelocity=i,this._lastWidth=r,o}_strokeWidth(e){return Math.max(this.maxWidth/(e+1),this.minWidth)}_drawCurveSegment(e,t,i){const r=this._ctx;r.moveTo(e,t),r.arc(e,t,i,0,2*Math.PI,!1),this._isEmpty=!1}_drawCurve(e,t){const i=this._ctx,r=e.endWidth-e.startWidth,o=2*Math.ceil(e.length());i.beginPath(),i.fillStyle=t.penColor;for(let s=0;s<o;s+=1){const a=s/o,l=a*a,c=l*a,u=1-a,d=u*u,h=d*u;let f=h*e.startPoint.x;f+=3*d*a*e.control1.x,f+=3*u*l*e.control2.x,f+=c*e.endPoint.x;let p=h*e.startPoint.y;p+=3*d*a*e.control1.y,p+=3*u*l*e.control2.y,p+=c*e.endPoint.y;const g=Math.min(e.startWidth+c*r,t.maxWidth);this._drawCurveSegment(f,p,g)}i.closePath(),i.fill()}_drawDot(e,t){const i=this._ctx,r=t.dotSize>0?t.dotSize:(t.minWidth+t.maxWidth)/2;i.beginPath(),this._drawCurveSegment(e.x,e.y,r),i.closePath(),i.fillStyle=t.penColor,i.fill()}_fromData(e,t,i){for(const r of e){const{penColor:o,dotSize:s,minWidth:a,maxWidth:l,points:c}=r;if(c.length>1)for(let u=0;u<c.length;u+=1){const d=c[u],h=new Ol(d.x,d.y,d.pressure,d.time);this.penColor=o,0===u&&this._reset();const f=this._addPoint(h);f&&t(f,{penColor:o,dotSize:s,minWidth:a,maxWidth:l})}else this._reset(),i(c[0],{penColor:o,dotSize:s,minWidth:a,maxWidth:l})}}_toSVG(){const e=this._data,t=Math.max(window.devicePixelRatio||1,1),o=this.canvas.width/t,s=this.canvas.height/t,a=document.createElementNS("http://www.w3.org/2000/svg","svg");a.setAttribute("width",this.canvas.width.toString()),a.setAttribute("height",this.canvas.height.toString()),this._fromData(e,(f,{penColor:p})=>{const g=document.createElement("path");if(!(isNaN(f.control1.x)||isNaN(f.control1.y)||isNaN(f.control2.x)||isNaN(f.control2.y))){const m=`M ${f.startPoint.x.toFixed(3)},${f.startPoint.y.toFixed(3)} C ${f.control1.x.toFixed(3)},${f.control1.y.toFixed(3)} ${f.control2.x.toFixed(3)},${f.control2.y.toFixed(3)} ${f.endPoint.x.toFixed(3)},${f.endPoint.y.toFixed(3)}`;g.setAttribute("d",m),g.setAttribute("stroke-width",(2.25*f.endWidth).toFixed(3)),g.setAttribute("stroke",p),g.setAttribute("fill","none"),g.setAttribute("stroke-linecap","round"),a.appendChild(g)}},(f,{penColor:p,dotSize:g,minWidth:m,maxWidth:y})=>{const _=document.createElement("circle");_.setAttribute("r",(g>0?g:(m+y)/2).toString()),_.setAttribute("cx",f.x.toString()),_.setAttribute("cy",f.y.toString()),_.setAttribute("fill",p),a.appendChild(_)});const c=`<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 0 ${this.canvas.width} ${this.canvas.height}" width="${o}" height="${s}">`;let u=a.innerHTML;if(void 0===u){const f=document.createElement("dummy"),p=a.childNodes;f.innerHTML="";for(let g=0;g<p.length;g+=1)f.appendChild(p[g].cloneNode(!0));u=f.innerHTML}return"data:image/svg+xml;base64,"+btoa(c+u+"</svg>")}}let af=(()=>{class n{constructor(){if(this.injector=window.FormbirdServiceInjector,!this.injector){const t=document.querySelectorAll("#bodyAngularJS div[ui-view]");this.injector=angular.element(t).injector(),this.isAngularJS=!0}}get(t){return this.injector.get(t)}isAngularJSCore(){return this.isAngularJS}}return n.\u0275fac=function(t){return new(t||n)},n.\u0275prov=I({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),XC=(()=>{class n{constructor(t){this.injector=t,this.ajsService=t.get("ChangedDocumentService")}watch(t,i,r,o){return this.ajsService.watch(t,i,r,o)}valueChanged(t,i,r,o){this.ajsService.valueChanged(t,i,r,o)}dispatchChanged(t){this.ajsService.dispatchChanged(t)}executeOnFieldChangeWithNoChanges(t){this.injector.isAngularJSCore()?console.warn("This feature is not supported on AngularJS Core."):this.ajsService.executeOnFieldChangeWithNoChanges(t)}watchDocument(t){return this.injector.isAngularJSCore()?(console.warn("This feature is not supported on AngularJS Core."),null):this.ajsService.watchDocument(t)}watchStoreChanges(){return this.injector.isAngularJSCore()?(console.warn("This feature is not supported on AngularJS Core."),null):this.ajsService.watchStoreChanges()}dispatchAction(t){this.injector.isAngularJSCore()?console.warn("This feature is not supported on AngularJS Core."):this.ajsService.dispatchAction(t)}watchComponentTemplate(t){if(!this.injector.isAngularJSCore())return this.ajsService.watchComponentTemplate(t);console.warn("This feature is not supported on AngularJS Core.")}watchComponentDef(t,i){if(!this.injector.isAngularJSCore())return this.ajsService.watchComponentDef(t,i);console.warn("This feature is not supported on AngularJS Core.")}notifyIntializedField(t,i){if(!this.injector.isAngularJSCore())return this.ajsService.notifyIntializedField(t,i);console.warn("This function is not supported on AngularJS Core.")}notifyDocumentChanged(t){if(!this.injector.isAngularJSCore())return this.ajsService.notifyDocumentChanged(t);console.warn("This function is not supported on AngularJS Core.")}notifyComponentDefinitionUpdated(t,i,r,o){if(!this.injector.isAngularJSCore())return this.ajsService.notifyComponentDefinitionUpdated(t,i,r,o);console.warn("This function is not supported on AngularJS Core.")}setOrgDocument(t){if(!this.injector.isAngularJSCore())return this.ajsService.setOrgDocument(t);console.warn("This function is not supported on AngularJS Core.")}setDocumentInfo(t,i){if(!this.injector.isAngularJSCore())return this.ajsService.setDocumentInfo(t,i);console.warn("This function is not supported on AngularJS Core.")}setDocument(t){if(!this.injector.isAngularJSCore())return this.ajsService.setDocument(t);console.warn("This function is not supported on AngularJS Core.")}setComponentFlagTemplate(t,i,r,o){if(!this.injector.isAngularJSCore())return this.ajsService.setComponentFlagTemplate(t,i,r,o);console.warn("This function is not supported on AngularJS Core.")}isLoadedDocument(t,i){if(!this.injector.isAngularJSCore())return this.ajsService.isLoadedDocument(t,i);console.warn("This function is not supported on AngularJS Core.")}}return n.\u0275fac=function(t){return new(t||n)(b(af))},n.\u0275prov=I({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();class sL extends se{constructor(e,t){super()}schedule(e,t=0){return this}}class Nl extends sL{constructor(e,t){super(e,t),this.scheduler=e,this.work=t,this.pending=!1}schedule(e,t=0){if(this.closed)return this;this.state=e;const i=this.id,r=this.scheduler;return null!=i&&(this.id=this.recycleAsyncId(r,i,t)),this.pending=!0,this.delay=t,this.id=this.id||this.requestAsyncId(r,this.id,t),this}requestAsyncId(e,t,i=0){return setInterval(e.flush.bind(e,this),i)}recycleAsyncId(e,t,i=0){if(null!==i&&this.delay===i&&!1===this.pending)return t;clearInterval(t)}execute(e,t){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;const i=this._execute(e,t);if(i)return i;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(e,t){let r,i=!1;try{this.work(e)}catch(o){i=!0,r=!!o&&o||new Error(o)}if(i)return this.unsubscribe(),r}_unsubscribe(){const e=this.id,t=this.scheduler,i=t.actions,r=i.indexOf(this);this.work=null,this.state=null,this.pending=!1,this.scheduler=null,-1!==r&&i.splice(r,1),null!=e&&(this.id=this.recycleAsyncId(t,e,null)),this.delay=null}}let eE=(()=>{class n{constructor(t,i=n.now){this.SchedulerAction=t,this.now=i}schedule(t,i=0,r){return new this.SchedulerAction(this,t).schedule(r,i)}}return n.now=()=>Date.now(),n})();class cn extends eE{constructor(e,t=eE.now){super(e,()=>cn.delegate&&cn.delegate!==this?cn.delegate.now():t()),this.actions=[],this.active=!1,this.scheduled=void 0}schedule(e,t=0,i){return cn.delegate&&cn.delegate!==this?cn.delegate.schedule(e,t,i):super.schedule(e,t,i)}flush(e){const{actions:t}=this;if(this.active)return void t.push(e);let i;this.active=!0;do{if(i=e.execute(e.state,e.delay))break}while(e=t.shift());if(this.active=!1,i){for(;e=t.shift();)e.unsubscribe();throw i}}}const lf=new cn(Nl);function tE(n,e=lf){return t=>t.lift(new aL(n,e))}class aL{constructor(e,t){this.dueTime=e,this.scheduler=t}call(e,t){return t.subscribe(new lL(e,this.dueTime,this.scheduler))}}class lL extends ve{constructor(e,t,i){super(e),this.dueTime=t,this.scheduler=i,this.debouncedSubscription=null,this.lastValue=null,this.hasValue=!1}_next(e){this.clearDebounce(),this.lastValue=e,this.hasValue=!0,this.add(this.debouncedSubscription=this.scheduler.schedule(cL,this.dueTime,this))}_complete(){this.debouncedNext(),this.destination.complete()}debouncedNext(){if(this.clearDebounce(),this.hasValue){const{lastValue:e}=this;this.lastValue=null,this.hasValue=!1,this.destination.next(e)}}clearDebounce(){const e=this.debouncedSubscription;null!==e&&(this.remove(e),e.unsubscribe(),this.debouncedSubscription=null)}}function cL(n){n.debouncedNext()}function nE(...n){if(1===n.length){const e=n[0];if(ir(e))return Pl(e,null);if(Ic(e)&&Object.getPrototypeOf(e)===Object.prototype){const t=Object.keys(e);return Pl(t.map(i=>e[i]),t)}}if("function"==typeof n[n.length-1]){const e=n.pop();return Pl(n=1===n.length&&ir(n[0])?n[0]:n,null).pipe(Ue(t=>e(...t)))}return Pl(n,null)}function Pl(n,e){return new me(t=>{const i=n.length;if(0===i)return void t.complete();const r=new Array(i);let o=0,s=0;for(let a=0;a<i;a++){const l=Ys(n[a]);let c=!1;t.add(l.subscribe({next:u=>{c||(c=!0,s++),r[a]=u},error:u=>t.error(u),complete:()=>{o++,(o===i||!c)&&(s===i&&t.next(e?e.reduce((u,d,h)=>(u[d]=r[h],u),{}):r),t.complete())}}))}})}function pi(n){return null==n||0===n.length}function oE(n){return null!=n&&"number"==typeof n.length}const pL=/^(?=.{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 mL{static min(e){return function sE(n){return e=>{if(pi(e.value)||pi(n))return null;const t=parseFloat(e.value);return!isNaN(t)&&t<n?{min:{min:n,actual:e.value}}:null}}(e)}static max(e){return function aE(n){return e=>{if(pi(e.value)||pi(n))return null;const t=parseFloat(e.value);return!isNaN(t)&&t>n?{max:{max:n,actual:e.value}}:null}}(e)}static required(e){return function lE(n){return pi(n.value)?{required:!0}:null}(e)}static requiredTrue(e){return function cE(n){return!0===n.value?null:{required:!0}}(e)}static email(e){return function uE(n){return pi(n.value)||pL.test(n.value)?null:{email:!0}}(e)}static minLength(e){return function dE(n){return e=>pi(e.value)||!oE(e.value)?null:e.value.length<n?{minlength:{requiredLength:n,actualLength:e.value.length}}:null}(e)}static maxLength(e){return function hE(n){return e=>oE(e.value)&&e.value.length>n?{maxlength:{requiredLength:n,actualLength:e.value.length}}:null}(e)}static pattern(e){return function fE(n){if(!n)return Rs;let e,t;return"string"==typeof n?(t="","^"!==n.charAt(0)&&(t+="^"),t+=n,"$"!==n.charAt(n.length-1)&&(t+="$"),e=new RegExp(t)):(t=n.toString(),e=n),i=>{if(pi(i.value))return null;const r=i.value;return e.test(r)?null:{pattern:{requiredPattern:t,actualValue:r}}}}(e)}static nullValidator(e){return null}static compose(e){return vE(e)}static composeAsync(e){return bE(e)}}function Rs(n){return null}function pE(n){return null!=n}function mE(n){const e=Ha(n)?Ys(n):n;return Cd(e),e}function gE(n){let e={};return n.forEach(t=>{e=null!=t?Object.assign(Object.assign({},e),t):e}),0===Object.keys(e).length?null:e}function _E(n,e){return e.map(t=>t(n))}function yE(n){return n.map(e=>function gL(n){return!n.validate}(e)?e:t=>e.validate(t))}function vE(n){if(!n)return null;const e=n.filter(pE);return 0==e.length?null:function(t){return gE(_E(t,e))}}function bE(n){if(!n)return null;const e=n.filter(pE);return 0==e.length?null:function(t){return nE(_E(t,e).map(mE)).pipe(Ue(gE))}}function hf(n){return n?Array.isArray(n)?n:[n]:[]}function Ll(n,e){return Array.isArray(n)?n.includes(e):n===e}function wE(n,e){const t=hf(e);return hf(n).forEach(r=>{Ll(t,r)||t.push(r)}),t}function SE(n,e){return hf(e).filter(t=>!Ll(n,t))}function zl(n,e){const t=n.indexOf(e);t>-1&&n.splice(t,1)}const ks="VALID",$l="INVALID",so="PENDING",Ns="DISABLED";function yf(n){return(bf(n)?n.validators:n)||null}function FE(n){return Array.isArray(n)?function uf(n){return null!=n?vE(yE(n)):null}(n):n||null}function vf(n,e){return(bf(e)?e.asyncValidators:n)||null}function RE(n){return Array.isArray(n)?function df(n){return null!=n?bE(yE(n)):null}(n):n||null}function bf(n){return null!=n&&!Array.isArray(n)&&"object"==typeof n}class Cf{constructor(e,t){this._hasOwnPendingAsyncValidator=!1,this._onCollectionChange=()=>{},this._parent=null,this.pristine=!0,this.touched=!1,this._onDisabledChange=[],this._rawValidators=e,this._rawAsyncValidators=t,this._composedValidatorFn=FE(this._rawValidators),this._composedAsyncValidatorFn=RE(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn}set validator(e){this._rawValidators=this._composedValidatorFn=e}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(e){this._rawAsyncValidators=this._composedAsyncValidatorFn=e}get parent(){return this._parent}get valid(){return this.status===ks}get invalid(){return this.status===$l}get pending(){return this.status==so}get disabled(){return this.status===Ns}get enabled(){return this.status!==Ns}get dirty(){return!this.pristine}get untouched(){return!this.touched}get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(e){this._rawValidators=e,this._composedValidatorFn=FE(e)}setAsyncValidators(e){this._rawAsyncValidators=e,this._composedAsyncValidatorFn=RE(e)}addValidators(e){this.setValidators(wE(e,this._rawValidators))}addAsyncValidators(e){this.setAsyncValidators(wE(e,this._rawAsyncValidators))}removeValidators(e){this.setValidators(SE(e,this._rawValidators))}removeAsyncValidators(e){this.setAsyncValidators(SE(e,this._rawAsyncValidators))}hasValidator(e){return Ll(this._rawValidators,e)}hasAsyncValidator(e){return Ll(this._rawAsyncValidators,e)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(e={}){this.touched=!0,this._parent&&!e.onlySelf&&this._parent.markAsTouched(e)}markAllAsTouched(){this.markAsTouched({onlySelf:!0}),this._forEachChild(e=>e.markAllAsTouched())}markAsUntouched(e={}){this.touched=!1,this._pendingTouched=!1,this._forEachChild(t=>{t.markAsUntouched({onlySelf:!0})}),this._parent&&!e.onlySelf&&this._parent._updateTouched(e)}markAsDirty(e={}){this.pristine=!1,this._parent&&!e.onlySelf&&this._parent.markAsDirty(e)}markAsPristine(e={}){this.pristine=!0,this._pendingDirty=!1,this._forEachChild(t=>{t.markAsPristine({onlySelf:!0})}),this._parent&&!e.onlySelf&&this._parent._updatePristine(e)}markAsPending(e={}){this.status=so,!1!==e.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!e.onlySelf&&this._parent.markAsPending(e)}disable(e={}){const t=this._parentMarkedDirty(e.onlySelf);this.status=Ns,this.errors=null,this._forEachChild(i=>{i.disable(Object.assign(Object.assign({},e),{onlySelf:!0}))}),this._updateValue(),!1!==e.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(Object.assign(Object.assign({},e),{skipPristineCheck:t})),this._onDisabledChange.forEach(i=>i(!0))}enable(e={}){const t=this._parentMarkedDirty(e.onlySelf);this.status=ks,this._forEachChild(i=>{i.enable(Object.assign(Object.assign({},e),{onlySelf:!0}))}),this.updateValueAndValidity({onlySelf:!0,emitEvent:e.emitEvent}),this._updateAncestors(Object.assign(Object.assign({},e),{skipPristineCheck:t})),this._onDisabledChange.forEach(i=>i(!1))}_updateAncestors(e){this._parent&&!e.onlySelf&&(this._parent.updateValueAndValidity(e),e.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}setParent(e){this._parent=e}updateValueAndValidity(e={}){this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===ks||this.status===so)&&this._runAsyncValidator(e.emitEvent)),!1!==e.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!e.onlySelf&&this._parent.updateValueAndValidity(e)}_updateTreeValidity(e={emitEvent:!0}){this._forEachChild(t=>t._updateTreeValidity(e)),this.updateValueAndValidity({onlySelf:!0,emitEvent:e.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?Ns:ks}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(e){if(this.asyncValidator){this.status=so,this._hasOwnPendingAsyncValidator=!0;const t=mE(this.asyncValidator(this));this._asyncValidationSubscription=t.subscribe(i=>{this._hasOwnPendingAsyncValidator=!1,this.setErrors(i,{emitEvent:e})})}}_cancelExistingSubscription(){this._asyncValidationSubscription&&(this._asyncValidationSubscription.unsubscribe(),this._hasOwnPendingAsyncValidator=!1)}setErrors(e,t={}){this.errors=e,this._updateControlsErrors(!1!==t.emitEvent)}get(e){return function TL(n,e,t){if(null==e||(Array.isArray(e)||(e=e.split(t)),Array.isArray(e)&&0===e.length))return null;let i=n;return e.forEach(r=>{i=i instanceof Gl?i.controls.hasOwnProperty(r)?i.controls[r]:null:i instanceof xL&&i.at(r)||null}),i}(this,e,".")}getError(e,t){const i=t?this.get(t):this;return i&&i.errors?i.errors[e]:null}hasError(e,t){return!!this.getError(e,t)}get root(){let e=this;for(;e._parent;)e=e._parent;return e}_updateControlsErrors(e){this.status=this._calculateStatus(),e&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(e)}_initObservables(){this.valueChanges=new Ve,this.statusChanges=new Ve}_calculateStatus(){return this._allControlsDisabled()?Ns:this.errors?$l:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(so)?so:this._anyControlsHaveStatus($l)?$l:ks}_anyControlsHaveStatus(e){return this._anyControls(t=>t.status===e)}_anyControlsDirty(){return this._anyControls(e=>e.dirty)}_anyControlsTouched(){return this._anyControls(e=>e.touched)}_updatePristine(e={}){this.pristine=!this._anyControlsDirty(),this._parent&&!e.onlySelf&&this._parent._updatePristine(e)}_updateTouched(e={}){this.touched=this._anyControlsTouched(),this._parent&&!e.onlySelf&&this._parent._updateTouched(e)}_isBoxedValue(e){return"object"==typeof e&&null!==e&&2===Object.keys(e).length&&"value"in e&&"disabled"in e}_registerOnCollectionChange(e){this._onCollectionChange=e}_setUpdateStrategy(e){bf(e)&&null!=e.updateOn&&(this._updateOn=e.updateOn)}_parentMarkedDirty(e){return!e&&!(!this._parent||!this._parent.dirty)&&!this._parent._anyControlsDirty()}}class ao extends Cf{constructor(e=null,t,i){super(yf(t),vf(i,t)),this._onChange=[],this._applyFormState(e),this._setUpdateStrategy(t),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}setValue(e,t={}){this.value=this._pendingValue=e,this._onChange.length&&!1!==t.emitModelToViewChange&&this._onChange.forEach(i=>i(this.value,!1!==t.emitViewToModelChange)),this.updateValueAndValidity(t)}patchValue(e,t={}){this.setValue(e,t)}reset(e=null,t={}){this._applyFormState(e),this.markAsPristine(t),this.markAsUntouched(t),this.setValue(this.value,t),this._pendingChange=!1}_updateValue(){}_anyControls(e){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(e){this._onChange.push(e)}_unregisterOnChange(e){zl(this._onChange,e)}registerOnDisabledChange(e){this._onDisabledChange.push(e)}_unregisterOnDisabledChange(e){zl(this._onDisabledChange,e)}_forEachChild(e){}_syncPendingControls(){return!("submit"!==this.updateOn||(this._pendingDirty&&this.markAsDirty(),this._pendingTouched&&this.markAsTouched(),!this._pendingChange)||(this.setValue(this._pendingValue,{onlySelf:!0,emitModelToViewChange:!1}),0))}_applyFormState(e){this._isBoxedValue(e)?(this.value=this._pendingValue=e.value,e.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=e}}class Gl extends Cf{constructor(e,t,i){super(yf(t),vf(i,t)),this.controls=e,this._initObservables(),this._setUpdateStrategy(t),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}registerControl(e,t){return this.controls[e]?this.controls[e]:(this.controls[e]=t,t.setParent(this),t._registerOnCollectionChange(this._onCollectionChange),t)}addControl(e,t,i={}){this.registerControl(e,t),this.updateValueAndValidity({emitEvent:i.emitEvent}),this._onCollectionChange()}removeControl(e,t={}){this.controls[e]&&this.controls[e]._registerOnCollectionChange(()=>{}),delete this.controls[e],this.updateValueAndValidity({emitEvent:t.emitEvent}),this._onCollectionChange()}setControl(e,t,i={}){this.controls[e]&&this.controls[e]._registerOnCollectionChange(()=>{}),delete this.controls[e],t&&this.registerControl(e,t),this.updateValueAndValidity({emitEvent:i.emitEvent}),this._onCollectionChange()}contains(e){return this.controls.hasOwnProperty(e)&&this.controls[e].enabled}setValue(e,t={}){this._checkAllValuesPresent(e),Object.keys(e).forEach(i=>{this._throwIfControlMissing(i),this.controls[i].setValue(e[i],{onlySelf:!0,emitEvent:t.emitEvent})}),this.updateValueAndValidity(t)}patchValue(e,t={}){null!=e&&(Object.keys(e).forEach(i=>{this.controls[i]&&this.controls[i].patchValue(e[i],{onlySelf:!0,emitEvent:t.emitEvent})}),this.updateValueAndValidity(t))}reset(e={},t={}){this._forEachChild((i,r)=>{i.reset(e[r],{onlySelf:!0,emitEvent:t.emitEvent})}),this._updatePristine(t),this._updateTouched(t),this.updateValueAndValidity(t)}getRawValue(){return this._reduceChildren({},(e,t,i)=>(e[i]=t instanceof ao?t.value:t.getRawValue(),e))}_syncPendingControls(){let e=this._reduceChildren(!1,(t,i)=>!!i._syncPendingControls()||t);return e&&this.updateValueAndValidity({onlySelf:!0}),e}_throwIfControlMissing(e){if(!Object.keys(this.controls).length)throw new Error("\n There are no form controls registered with this group yet. If you're using ngModel,\n you may want to check next tick (e.g. use setTimeout).\n ");if(!this.controls[e])throw new Error(`Cannot find form control with name: ${e}.`)}_forEachChild(e){Object.keys(this.controls).forEach(t=>{const i=this.controls[t];i&&e(i,t)})}_setUpControls(){this._forEachChild(e=>{e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(e){for(const t of Object.keys(this.controls)){const i=this.controls[t];if(this.contains(t)&&e(i))return!0}return!1}_reduceValue(){return this._reduceChildren({},(e,t,i)=>((t.enabled||this.disabled)&&(e[i]=t.value),e))}_reduceChildren(e,t){let i=e;return this._forEachChild((r,o)=>{i=t(i,r,o)}),i}_allControlsDisabled(){for(const e of Object.keys(this.controls))if(this.controls[e].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}_checkAllValuesPresent(e){this._forEachChild((t,i)=>{if(void 0===e[i])throw new Error(`Must supply a value for form control with name: '${i}'.`)})}}class xL extends Cf{constructor(e,t,i){super(yf(t),vf(i,t)),this.controls=e,this._initObservables(),this._setUpdateStrategy(t),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}at(e){return this.controls[e]}push(e,t={}){this.controls.push(e),this._registerControl(e),this.updateValueAndValidity({emitEvent:t.emitEvent}),this._onCollectionChange()}insert(e,t,i={}){this.controls.splice(e,0,t),this._registerControl(t),this.updateValueAndValidity({emitEvent:i.emitEvent})}removeAt(e,t={}){this.controls[e]&&this.controls[e]._registerOnCollectionChange(()=>{}),this.controls.splice(e,1),this.updateValueAndValidity({emitEvent:t.emitEvent})}setControl(e,t,i={}){this.controls[e]&&this.controls[e]._registerOnCollectionChange(()=>{}),this.controls.splice(e,1),t&&(this.controls.splice(e,0,t),this._registerControl(t)),this.updateValueAndValidity({emitEvent:i.emitEvent}),this._onCollectionChange()}get length(){return this.controls.length}setValue(e,t={}){this._checkAllValuesPresent(e),e.forEach((i,r)=>{this._throwIfControlMissing(r),this.at(r).setValue(i,{onlySelf:!0,emitEvent:t.emitEvent})}),this.updateValueAndValidity(t)}patchValue(e,t={}){null!=e&&(e.forEach((i,r)=>{this.at(r)&&this.at(r).patchValue(i,{onlySelf:!0,emitEvent:t.emitEvent})}),this.updateValueAndValidity(t))}reset(e=[],t={}){this._forEachChild((i,r)=>{i.reset(e[r],{onlySelf:!0,emitEvent:t.emitEvent})}),this._updatePristine(t),this._updateTouched(t),this.updateValueAndValidity(t)}getRawValue(){return this.controls.map(e=>e instanceof ao?e.value:e.getRawValue())}clear(e={}){this.controls.length<1||(this._forEachChild(t=>t._registerOnCollectionChange(()=>{})),this.controls.splice(0),this.updateValueAndValidity({emitEvent:e.emitEvent}))}_syncPendingControls(){let e=this.controls.reduce((t,i)=>!!i._syncPendingControls()||t,!1);return e&&this.updateValueAndValidity({onlySelf:!0}),e}_throwIfControlMissing(e){if(!this.controls.length)throw new Error("\n There are no form controls registered with this array yet. If you're using ngModel,\n you may want to check next tick (e.g. use setTimeout).\n ");if(!this.at(e))throw new Error(`Cannot find form control at index ${e}`)}_forEachChild(e){this.controls.forEach((t,i)=>{e(t,i)})}_updateValue(){this.value=this.controls.filter(e=>e.enabled||this.disabled).map(e=>e.value)}_anyControls(e){return this.controls.some(t=>t.enabled&&e(t))}_setUpControls(){this._forEachChild(e=>this._registerControl(e))}_checkAllValuesPresent(e){this._forEachChild((t,i)=>{if(void 0===e[i])throw new Error(`Must supply a value for form control at index: ${i}.`)})}_allControlsDisabled(){for(const e of this.controls)if(e.enabled)return!1;return this.controls.length>0||this.disabled}_registerControl(e){e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange)}}let VE=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=pe({type:n}),n.\u0275inj=ce({}),n})(),rV=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=pe({type:n}),n.\u0275inj=ce({imports:[[VE]]}),n})(),oV=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=pe({type:n}),n.\u0275inj=ce({imports:[rV]}),n})(),nD=(()=>{class n{constructor(){this.formGroups={}}setupStandardProperties(t){const i=t.componentDefinition;i&&(t.disabled=!1===i.enabled),t.elementName=t.fieldName,t.registeredControlName=t.fieldName+t.key}setupStandardComponent(t,i){this.setupStandardProperties(t);const o=this.ensureFormGroupExisted(t.document.documentId),s=t.componentDefinition;this.setupDefaultValidator(s,i);const a=new ao({value:t.fieldValue,disabled:this.isComponentDisabled(s)},i);return o.registerControl(s.name+t.key,a)}setupControl(t,i,r,o){const s=this.ensureFormGroupExisted(t.document.documentId),a=new ao(r,o);return s.registerControl(i+t.key,a)}enableField(t,i){i&&(!1===t.enabled?i.disable({emitEvent:!1}):i.enable({emitEvent:!1}))}enableFieldByFlag(t,i){i&&(!1===t?i.disable({emitEvent:!1}):i.enable({emitEvent:!1}))}setupDefaultValidator(t,i){i=i||[],t.mandatory&&i.push(mL.required)}isComponentDisabled(t){return!1===t.enabled}ensureFormGroupExisted(t){return this.formGroups[t]||(this.formGroups[t]=new Gl({})),this.formGroups[t]}getControl(t,i){return this.formGroups[t]?this.formGroups[t].get(i):null}}return n.\u0275fac=function(t){return new(t||n)},n.\u0275prov=I({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();class sV{isErrorState(e,t){return!!(e&&e.invalid&&(e.dirty||e.touched||t&&t.submitted))}}let aV=(()=>{class n{constructor(t,i,r,o){this.formbirdInjectorService=t,this.changedDocumentService=i,this.componentSetupService=r,this.cdr=o,this.shouldNotifyCompInitializedInSuper=!0,this.shouldDispatchEmptyFieldValue=!0,this.subs=new se,this.matcher=new sV,this.broadcastService=t.get("BroadcastService")}ngOnInit(){this.setupComponent(),this.initializeFieldValue(),this.setupChangeDetection(),this.shouldNotifyCompInitializedInSuper&&this.notifyComponentIntialized()}ngOnDestroy(){this.subs.unsubscribe()}setupComponent(){this.formControl=this.componentSetupService.setupStandardComponent(this,this.validators),this.setFieldActivation(!1)}setupChangeDetection(t){if(this.fieldName){const r=this.changedDocumentService.watch(this.fieldName,this.document.documentId,this.registeredControlName).subscribe(o=>{this.onFieldValueChanged(o)});this.subs.add(r)}const i=this.changedDocumentService.watchComponentDef(this.fieldName,this.template.documentId).subscribe(r=>{this.onComponentDefChanged(r)});if(this.subs.add(i),this.formControl){let r;r=t?this.formControl.valueChanges.subscribe(o=>{this.onControlValueChanged(o)}):this.formControl.valueChanges.pipe(tE(500)).subscribe(o=>{this.onControlValueChanged(o)}),this.subs.add(r)}this.setupDocumentCreatedDetection()}setFieldActivation(t){this.componentSetupService.enableField(this.componentDefinition,this.formControl),this.detectChanges(t)}valueChanged(t){this.fieldValue=t,this.changedDocumentService.valueChanged(this,t,this.registeredControlName)}dispatchChanged(t){this.changedDocumentService.notifyDocumentChanged({documentId:this.document.documentId,fieldName:this.fieldName,newValue:this.fieldValue,isInitValue:t})}detectChanges(t){!1!==t&&!this.cdr.destroyed&&this.cdr.detectChanges()}updateComponentDefChange(t){this.componentDefinition=t}onControlValueChanged(t){this.valueChanged(t)}onComponentDefChanged(t){console.log("Change detection on template: ",t.name),this.updateComponentDefChange(t);const i=!1===t.enabled;this.disabled!==i&&(this.disabled=i,this.setFieldActivation())}isEqualFieldValue(t){return this.fieldValue===t}onFieldValueChanged(t,i=!0){this.isEqualFieldValue(t)||(console.log(`On field value changed for component: ${this.registeredControlName} - has label: ${this.componentDefinition.label}`),this.fieldValue=t,this.formControl&&this.formControl.patchValue(this.fieldValue,{emitEvent:!1,onlySelf:!0}),i&&this.detectChanges())}setupDocumentCreatedDetection(){const t=this.broadcastService.on("document:new").subscribe(i=>{this.onDocumentCreated(i),this.detectChanges()});this.subs.add(t)}onDocumentCreated(t){const i=null==t?void 0:t.document;if(i){const o=i.documentId;(null==t?void 0:t.unsavedDocumentListId)===this.formParameters.unsavedDocumentListId&&this.document.documentId===o&&(this.fieldValue=i[this.fieldName],this.initializeFieldValue(),this.notifyComponentIntialized())}}initializeFieldValue(){}notifyComponentIntialized(){this.changedDocumentService.notifyIntializedField(this,this.shouldDispatchEmptyFieldValue)}notifyComponentDefChanged(){}}return n.\u0275fac=function(t){return new(t||n)(v(af),v(XC),v(nD),v(Jr))},n.\u0275cmp=Si({type:n,selectors:[["ng-component"]],inputs:{document:"document",fieldValue:"fieldValue",template:"template",fieldName:"fieldName",formParameters:"formParameters",key:"key",responsiveLayouts:"responsiveLayouts",message:"message",componentDefinition:"componentDefinition"},decls:0,vars:0,template:function(t,i){},encapsulation:2}),n})(),lV=(()=>{class n{constructor(){if(this.injector=window.FormbirdServiceInjector,!this.injector){const t=document.querySelectorAll("#bodyAngularJS div[ui-view]");this.injector=angular.element(t).injector(),this.isAngularJS=!0}}get(t){return this.injector.get(t)}isAngularJSCore(){return this.isAngularJS}}return n.\u0275fac=function(t){return new(t||n)},n.\u0275prov=I({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),cV=(()=>{class n{constructor(){this.chunkSeparator="_",this.charmap={},this.charmapReverse={},this.minus="Z",this.plus="Y",this.acceptedformat="image/jsignature;base30",this.allchars="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWX".split(""),this.bitness=this.allchars.length/2;for(let t=this.bitness-1;t>-1;t--)this.charmap[this.allchars[t]]=this.allchars[t+this.bitness],this.charmapReverse[this.allchars[t+this.bitness]]=this.allchars[t]}remapTailChars(t){const i=t.split(""),r=i.length;for(let o=1;o<r;o++)i[o]=this.charmap[i[o]];return i.join("")}compressstrokeleg(t){const i=[];let r=0,s=1;const a=t.length;let l,c,u;for(let d=0;d<a;d++)l=Math.round(t[d]),c=l-r,r=l,c<0&&s>0?(s=-1,i.push(this.minus)):c>0&&s<0&&(s=1,i.push(this.plus)),u=Math.abs(c),i.push(u>=this.bitness?this.remapTailChars(u.toString(this.bitness)):u.toString(this.bitness));return i.join("")}uncompressstrokeleg(t){const i=[],r=t.split(""),o=r.length;let s,u,a=1,l=[],c=0;for(let d=0;d<o;d++)s=r[d],s in this.charmap||s===this.minus||s===this.plus?(0!==l.length&&(u=parseInt(l.join(""),this.bitness)*a+c,i.push(u),c=u),s===this.minus?(a=-1,l=[]):s===this.plus?(a=1,l=[]):l=[s]):l.push(this.charmapReverse[s]);return i.push(parseInt(l.join(""),this.bitness)*a+c),i}compressstrokes(t){const i=[],r=t.length;let o;for(let s=0;s<r;s++)o=t[s],i.push(this.compressstrokeleg(o.x)),i.push(this.compressstrokeleg(o.y));return i.join(this.chunkSeparator)}uncompressstrokes(t){const i=[],r=t.split(this.chunkSeparator),o=r.length/2;for(let s=0;s<o;s++)i.push({x:this.uncompressstrokeleg(r[2*s]),y:this.uncompressstrokeleg(r[2*s+1])});return i}pluginCompressor(t){return[this.acceptedformat,this.compressstrokes(t)]}pluginDecompressor(t,i,r){"string"==typeof t&&(t.substring(0,this.acceptedformat.length).toLowerCase()===this.acceptedformat&&(t=t.substring(this.acceptedformat.length+1)),r(this.uncompressstrokes(t)))}}return n.\u0275fac=function(t){return new(t||n)},n.\u0275prov=I({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),uV=(()=>{class n{create(t){return"undefined"==typeof MutationObserver?null:new MutationObserver(t)}}return n.\u0275fac=function(t){return new(t||n)},n.\u0275prov=I({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),iD=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=pe({type:n}),n.\u0275inj=ce({providers:[uV]}),n})();const dV=new T("cdk-dir-doc",{providedIn:"root",factory:function hV(){return _u(q)}});let rD=(()=>{class n{constructor(t){if(this.value="ltr",this.change=new Ve,t){const r=t.documentElement?t.documentElement.dir:null,o=(t.body?t.body.dir:null)||r;this.value="ltr"===o||"rtl"===o?o:"ltr"}}ngOnDestroy(){this.change.complete()}}return n.\u0275fac=function(t){return new(t||n)(b(dV,8))},n.\u0275prov=I({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),Ls=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=pe({type:n}),n.\u0275inj=ce({}),n})();const oD=new ui("13.0.1");let Tf;try{Tf="undefined"!=typeof Intl&&Intl.v8BreakIterator}catch(n){Tf=!1}let Vs,Qi,xf,un=(()=>{class n{constructor(t){this._platformId=t,this.isBrowser=this._platformId?function s1(n){return n===VC}(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&&!Tf)&&"undefined"!=typeof CSS&&!this.EDGE&&!this.TRIDENT,this.WEBKIT=this.isBrowser&&/AppleWebKit/i.test(navigator.userAgent)&&!this.BLINK&&!this.EDGE&&!this.TRIDENT,this.IOS=this.isBrowser&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!("MSStream"in window),this.FIREFOX=this.isBrowser&&/(firefox|minefield)/i.test(navigator.userAgent),this.ANDROID=this.isBrowser&&/android/i.test(navigator.userAgent)&&!this.TRIDENT,this.SAFARI=this.isBrowser&&/safari/i.test(navigator.userAgent)&&this.WEBKIT}}return n.\u0275fac=function(t){return new(t||n)(b(il))},n.\u0275prov=I({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),ql=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=pe({type:n}),n.\u0275inj=ce({}),n})();function Bs(n){return function fV(){if(null==Vs&&"undefined"!=typeof window)try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:()=>Vs=!0}))}finally{Vs=Vs||!1}return Vs}()?n:!!n.capture}function pV(){if(null==Qi){if("object"!=typeof document||!document||"function"!=typeof Element||!Element)return Qi=!1,Qi;if("scrollBehavior"in document.documentElement.style)Qi=!0;else{const n=Element.prototype.scrollTo;Qi=!!n&&!/\{\s*\[native code\]\s*\}/.test(n.toString())}}return Qi}function Ki(n){return n.composedPath?n.composedPath()[0]:n.target}function Ff(){return"undefined"!=typeof __karma__&&!!__karma__||"undefined"!=typeof jasmine&&!!jasmine||"undefined"!=typeof jest&&!!jest||"undefined"!=typeof Mocha&&!!Mocha}class _V extends Pe{constructor(e){super(),this._value=e}get value(){return this.getValue()}_subscribe(e){const t=super._subscribe(e);return t&&!t.closed&&e.next(this._value),t}getValue(){if(this.hasError)throw this.thrownError;if(this.closed)throw new Di;return this._value}next(e){super.next(this._value=e)}}function An(...n){let e=n[n.length-1];return rr(e)?(n.pop(),xc(n,e)):Rc(n)}function aD(n){return e=>e.lift(new SV(n))}class SV{constructor(e){this.total=e}call(e,t){return t.subscribe(new MV(e,this.total))}}class MV extends ve{constructor(e,t){super(e),this.total=t,this.count=0}_next(e){++this.count>this.total&&this.destination.next(e)}}class IV{constructor(e,t){this.compare=e,this.keySelector=t}call(e,t){return t.subscribe(new TV(e,this.compare,this.keySelector))}}class TV extends ve{constructor(e,t,i){super(e),this.keySelector=i,this.hasKey=!1,"function"==typeof t&&(this.compare=t)}compare(e,t){return e===t}_next(e){let t;try{const{keySelector:r}=this;t=r?r(e):e}catch(r){return this.destination.error(r)}let i=!1;if(this.hasKey)try{const{compare:r}=this;i=r(this.key,t)}catch(r){return this.destination.error(r)}else this.hasKey=!0;i||(this.key=t,this.destination.next(e))}}function In(n){return e=>e.lift(new xV(n))}class xV{constructor(e){this.notifier=e}call(e,t){const i=new FV(e),r=Eo(this.notifier,new bo(i));return r&&!i.seenValue?(i.add(r),t.subscribe(i)):i}}class FV extends Co{constructor(e){super(e),this.seenValue=!1}notifyNext(){this.seenValue=!0,this.complete()}notifyComplete(){}}function Kl(n){return null!=n&&"false"!=`${n}`}function Yl(n){return Array.isArray(n)?n:[n]}function Fe(n){return null==n?"":"string"==typeof n?n:`${n}px`}function co(n){return n instanceof ye?n.nativeElement:n}function Zl(n,e){return(n.getAttribute(e)||"").match(/\S+/g)||[]}const cD="cdk-describedby-message-container",uD="cdk-describedby-message",Xl="cdk-describedby-host";let NV=0;const Tn=new Map;let wt=null,PV=(()=>{class n{constructor(t){this._document=t}describe(t,i,r){if(!this._canBeDescribed(t,i))return;const o=Rf(i,r);"string"!=typeof i?(dD(i),Tn.set(o,{messageElement:i,referenceCount:0})):Tn.has(o)||this._createMessageElement(i,r),this._isElementDescribedByMessage(t,o)||this._addMessageReference(t,o)}removeDescription(t,i,r){if(!i||!this._isElementNode(t))return;const o=Rf(i,r);if(this._isElementDescribedByMessage(t,o)&&this._removeMessageReference(t,o),"string"==typeof i){const s=Tn.get(o);s&&0===s.referenceCount&&this._deleteMessageElement(o)}wt&&0===wt.childNodes.length&&this._deleteMessagesContainer()}ngOnDestroy(){const t=this._document.querySelectorAll(`[${Xl}]`);for(let i=0;i<t.length;i++)this._removeCdkDescribedByReferenceIds(t[i]),t[i].removeAttribute(Xl);wt&&this._deleteMessagesContainer(),Tn.clear()}_createMessageElement(t,i){const r=this._document.createElement("div");dD(r),r.textContent=t,i&&r.setAttribute("role",i),this._createMessagesContainer(),wt.appendChild(r),Tn.set(Rf(t,i),{messageElement:r,referenceCount:0})}_deleteMessageElement(t){var i;const r=Tn.get(t);null===(i=null==r?void 0:r.messageElement)||void 0===i||i.remove(),Tn.delete(t)}_createMessagesContainer(){if(!wt){const t=this._document.getElementById(cD);null==t||t.remove(),wt=this._document.createElement("div"),wt.id=cD,wt.style.visibility="hidden",wt.classList.add("cdk-visually-hidden"),this._document.body.appendChild(wt)}}_deleteMessagesContainer(){wt&&(wt.remove(),wt=null)}_removeCdkDescribedByReferenceIds(t){const i=Zl(t,"aria-describedby").filter(r=>0!=r.indexOf(uD));t.setAttribute("aria-describedby",i.join(" "))}_addMessageReference(t,i){const r=Tn.get(i);(function OV(n,e,t){const i=Zl(n,e);i.some(r=>r.trim()==t.trim())||(i.push(t.trim()),n.setAttribute(e,i.join(" ")))})(t,"aria-describedby",r.messageElement.id),t.setAttribute(Xl,""),r.referenceCount++}_removeMessageReference(t,i){const r=Tn.get(i);r.referenceCount--,function kV(n,e,t){const r=Zl(n,e).filter(o=>o!=t.trim());r.length?n.setAttribute(e,r.join(" ")):n.removeAttribute(e)}(t,"aria-describedby",r.messageElement.id),t.removeAttribute(Xl)}_isElementDescribedByMessage(t,i){const r=Zl(t,"aria-describedby"),o=Tn.get(i),s=o&&o.messageElement.id;return!!s&&-1!=r.indexOf(s)}_canBeDescribed(t,i){if(!this._isElementNode(t))return!1;if(i&&"object"==typeof i)return!0;const r=null==i?"":`${i}`.trim(),o=t.getAttribute("aria-label");return!(!r||o&&o.trim()===r)}_isElementNode(t){return t.nodeType===this._document.ELEMENT_NODE}}return n.\u0275fac=function(t){return new(t||n)(b(q))},n.\u0275prov=I({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();function Rf(n,e){return"string"==typeof n?`${e||""}/${n}`:n}function dD(n){n.id||(n.id=`${uD}-${NV++}`)}function fD(n){return 0===n.offsetX&&0===n.offsetY}function pD(n){const e=n.touches&&n.touches[0]||n.changedTouches&&n.changedTouches[0];return!(!e||-1!==e.identifier||null!=e.radiusX&&1!==e.radiusX||null!=e.radiusY&&1!==e.radiusY)}const UV=new T("cdk-input-modality-detector-options"),zV={ignoreKeys:[18,17,224,91,16]},uo=Bs({passive:!0,capture:!0});let $V=(()=>{class n{constructor(t,i,r,o){this._platform=t,this._mostRecentTarget=null,this._modality=new _V(null),this._lastTouchMs=0,this._onKeydown=s=>{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===s.keyCode))||(this._modality.next("keyboard"),this._mostRecentTarget=Ki(s))},this._onMousedown=s=>{Date.now()-this._lastTouchMs<650||(this._modality.next(fD(s)?"keyboard":"mouse"),this._mostRecentTarget=Ki(s))},this._onTouchstart=s=>{pD(s)?this._modality.next("keyboard"):(this._lastTouchMs=Date.now(),this._modality.next("touch"),this._mostRecentTarget=Ki(s))},this._options=Object.assign(Object.assign({},zV),o),this.modalityDetected=this._modality.pipe(aD(1)),this.modalityChanged=this.modalityDetected.pipe(function AV(n,e){return t=>t.lift(new IV(n,e))}()),t.isBrowser&&i.runOutsideAngular(()=>{r.addEventListener("keydown",this._onKeydown,uo),r.addEventListener("mousedown",this._onMousedown,uo),r.addEventListener("touchstart",this._onTouchstart,uo)})}get mostRecentModality(){return this._modality.value}ngOnDestroy(){this._modality.complete(),this._platform.isBrowser&&(document.removeEventListener("keydown",this._onKeydown,uo),document.removeEventListener("mousedown",this._onMousedown,uo),document.removeEventListener("touchstart",this._onTouchstart,uo))}}return n.\u0275fac=function(t){return new(t||n)(b(un),b(oe),b(q),b(UV,8))},n.\u0275prov=I({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const WV=new T("cdk-focus-monitor-default-options"),Jl=Bs({passive:!0,capture:!0});let gD=(()=>{class n{constructor(t,i,r,o,s){this._ngZone=t,this._platform=i,this._inputModalityDetector=r,this._origin=null,this._windowFocused=!1,this._originFromTouchInteraction=!1,this._elementInfo=new Map,this._monitoredElementCount=0,this._rootNodeFocusListenerCount=new Map,this._windowFocusListener=()=>{this._windowFocused=!0,this._windowFocusTimeoutId=setTimeout(()=>this._windowFocused=!1)},this._stopInputModalityDetector=new Pe,this._rootNodeFocusAndBlurListener=a=>{const l=Ki(a),c="focus"===a.type?this._onFocus:this._onBlur;for(let u=l;u;u=u.parentElement)c.call(this,a,u)},this._document=o,this._detectionMode=(null==s?void 0:s.detectionMode)||0}monitor(t,i=!1){const r=co(t);if(!this._platform.isBrowser||1!==r.nodeType)return An(null);const o=function gV(n){if(function mV(){if(null==xf){const n="undefined"!=typeof document?document.head:null;xf=!(!n||!n.createShadowRoot&&!n.attachShadow)}return xf}()){const e=n.getRootNode?n.getRootNode():null;if("undefined"!=typeof ShadowRoot&&ShadowRoot&&e instanceof ShadowRoot)return e}return null}(r)||this._getDocument(),s=this._elementInfo.get(r);if(s)return i&&(s.checkChildren=!0),s.subject;const a={checkChildren:i,subject:new Pe,rootNode:o};return this._elementInfo.set(r,a),this._registerGlobalListeners(a),a.subject}stopMonitoring(t){const i=co(t),r=this._elementInfo.get(i);r&&(r.subject.complete(),this._setClasses(i),this._elementInfo.delete(i),this._removeGlobalListeners(r))}focusVia(t,i,r){const o=co(t);o===this._getDocument().activeElement?this._getClosestElementsInfo(o).forEach(([a,l])=>this._originChanged(a,i,l)):(this._setOrigin(i),"function"==typeof o.focus&&o.focus(r))}ngOnDestroy(){this._elementInfo.forEach((t,i)=>this.stopMonitoring(i))}_getDocument(){return this._document||document}_getWindow(){return this._getDocument().defaultView||window}_getFocusOrigin(t){return this._origin?this._originFromTouchInteraction?this._shouldBeAttributedToTouch(t)?"touch":"program":this._origin:this._windowFocused&&this._lastFocusOrigin?this._lastFocusOrigin:"program"}_shouldBeAttributedToTouch(t){return 1===this._detectionMode||!!(null==t?void 0:t.contains(this._inputModalityDetector._mostRecentTarget))}_setClasses(t,i){t.classList.toggle("cdk-focused",!!i),t.classList.toggle("cdk-touch-focused","touch"===i),t.classList.toggle("cdk-keyboard-focused","keyboard"===i),t.classList.toggle("cdk-mouse-focused","mouse"===i),t.classList.toggle("cdk-program-focused","program"===i)}_setOrigin(t,i=!1){this._ngZone.runOutsideAngular(()=>{this._origin=t,this._originFromTouchInteraction="touch"===t&&i,0===this._detectionMode&&(clearTimeout(this._originTimeoutId),this._originTimeoutId=setTimeout(()=>this._origin=null,this._originFromTouchInteraction?650:1))})}_onFocus(t,i){const r=this._elementInfo.get(i),o=Ki(t);!r||!r.checkChildren&&i!==o||this._originChanged(i,this._getFocusOrigin(o),r)}_onBlur(t,i){const r=this._elementInfo.get(i);!r||r.checkChildren&&t.relatedTarget instanceof Node&&i.contains(t.relatedTarget)||(this._setClasses(i),this._emitOrigin(r.subject,null))}_emitOrigin(t,i){this._ngZone.run(()=>t.next(i))}_registerGlobalListeners(t){if(!this._platform.isBrowser)return;const i=t.rootNode,r=this._rootNodeFocusListenerCount.get(i)||0;r||this._ngZone.runOutsideAngular(()=>{i.addEventListener("focus",this._rootNodeFocusAndBlurListener,Jl),i.addEventListener("blur",this._rootNodeFocusAndBlurListener,Jl)}),this._rootNodeFocusListenerCount.set(i,r+1),1==++this._monitoredElementCount&&(this._ngZone.runOutsideAngular(()=>{this._getWindow().addEventListener("focus",this._windowFocusListener)}),this._inputModalityDetector.modalityDetected.pipe(In(this._stopInputModalityDetector)).subscribe(o=>{this._setOrigin(o,!0)}))}_removeGlobalListeners(t){const i=t.rootNode;if(this._rootNodeFocusListenerCount.has(i)){const r=this._rootNodeFocusListenerCount.get(i);r>1?this._rootNodeFocusListenerCount.set(i,r-1):(i.removeEventListener("focus",this._rootNodeFocusAndBlurListener,Jl),i.removeEventListener("blur",this._rootNodeFocusAndBlurListener,Jl),this._rootNodeFocusListenerCount.delete(i))}--this._monitoredElementCount||(this._getWindow().removeEventListener("focus",this._windowFocusListener),this._stopInputModalityDetector.next(),clearTimeout(this._windowFocusTimeoutId),clearTimeout(this._originTimeoutId))}_originChanged(t,i,r){this._setClasses(t,i),this._emitOrigin(r.subject,i),this._lastFocusOrigin=i}_getClosestElementsInfo(t){const i=[];return this._elementInfo.forEach((r,o)=>{(o===t||r.checkChildren&&o.contains(t))&&i.push([o,r])}),i}}return n.\u0275fac=function(t){return new(t||n)(b(oe),b(un),b($V),b(q,8),b(WV,8))},n.\u0275prov=I({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const _D="cdk-high-contrast-black-on-white",yD="cdk-high-contrast-white-on-black",Of="cdk-high-contrast-active";let vD=(()=>{class n{constructor(t,i){this._platform=t,this._document=i}getHighContrastMode(){if(!this._platform.isBrowser)return 0;const t=this._document.createElement("div");t.style.backgroundColor="rgb(1,2,3)",t.style.position="absolute",this._document.body.appendChild(t);const i=this._document.defaultView||window,r=i&&i.getComputedStyle?i.getComputedStyle(t):null,o=(r&&r.backgroundColor||"").replace(/ /g,"");switch(t.remove(),o){case"rgb(0,0,0)":return 2;case"rgb(255,255,255)":return 1}return 0}_applyBodyHighContrastModeCssClasses(){if(!this._hasCheckedHighContrastMode&&this._platform.isBrowser&&this._document.body){const t=this._document.body.classList;t.remove(Of),t.remove(_D),t.remove(yD),this._hasCheckedHighContrastMode=!0;const i=this.getHighContrastMode();1===i?(t.add(Of),t.add(_D)):2===i&&(t.add(Of),t.add(yD))}}}return n.\u0275fac=function(t){return new(t||n)(b(un),b(q))},n.\u0275prov=I({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),qV=(()=>{class n{constructor(t){t._applyBodyHighContrastModeCssClasses()}}return n.\u0275fac=function(t){return new(t||n)(b(vD))},n.\u0275mod=pe({type:n}),n.\u0275inj=ce({imports:[[ql,iD]]}),n})();function CD(n,e){return{type:7,name:n,definitions:e,options:{}}}function kf(n,e=null){return{type:4,styles:e,timings:n}}function xn(n){return{type:6,styles:n,offset:null}}function Nf(n,e,t){return{type:0,name:n,styles:e,options:t}}function KV(n){return{type:5,steps:n}}function Pf(n,e,t=null){return{type:1,expr:n,animation:e,options:t}}function SD(){return"undefined"!=typeof window&&void 0!==window.document}function Vf(){return"undefined"!=typeof process&&"[object process]"==={}.toString.call(process)}let Uf=(n,e)=>!1,zf=(n,e)=>!1,ID=(n,e,t)=>[];const TD=Vf();(TD||"undefined"!=typeof Element)&&(Uf=SD()?(n,e)=>{for(;e&&e!==document.documentElement;){if(e===n)return!0;e=e.parentNode||e.host}return!1}:(n,e)=>n.contains(e),zf=(()=>{if(TD||Element.prototype.matches)return(n,e)=>n.matches(e);{const n=Element.prototype,e=n.matchesSelector||n.mozMatchesSelector||n.msMatchesSelector||n.oMatchesSelector||n.webkitMatchesSelector;return e?(t,i)=>e.apply(t,[i]):zf}})(),ID=(n,e,t)=>{let i=[];if(t){const r=n.querySelectorAll(e);for(let o=0;o<r.length;o++)i.push(r[o])}else{const r=n.querySelector(e);r&&i.push(r)}return i});const yc=new T("AnimationModuleType"),vw=new ui("13.0.1"),bj=new T("mat-sanity-checks",{providedIn:"root",factory:function vj(){return!0}});let dn=(()=>{class n{constructor(t,i,r){this._hasDoneGlobalChecks=!1,this._document=r,t._applyBodyHighContrastModeCssClasses(),this._sanityChecks=i,this._hasDoneGlobalChecks||(this._checkDoctypeIsDefined(),this._checkThemeIsPresent(),this._checkCdkVersionMatch(),this._hasDoneGlobalChecks=!0)}_checkIsEnabled(t){return!(!sh()||Ff())&&("boolean"==typeof this._sanityChecks?this._sanityChecks:!!this._sanityChecks[t])}_checkDoctypeIsDefined(){this._checkIsEnabled("doctype")&&!this._document.doctype&&console.warn("Current document does not have a doctype. This may cause some Angular Material components not to behave as expected.")}_checkThemeIsPresent(){if(!this._checkIsEnabled("theme")||!this._document.body||"function"!=typeof getComputedStyle)return;const t=this._document.createElement("div");t.classList.add("mat-theme-loaded-marker"),this._document.body.appendChild(t);const i=getComputedStyle(t);i&&"none"!==i.display&&console.warn("Could not find Angular Material core theme. Most Material components may not work as expected. For more info refer to the theming guide: https://material.angular.io/guide/theming"),t.remove()}_checkCdkVersionMatch(){this._checkIsEnabled("version")&&vw.full!==oD.full&&console.warn("The Angular Material version ("+vw.full+") does not match the Angular CDK version ("+oD.full+").\nPlease ensure the versions of these two packages exactly match.")}}return n.\u0275fac=function(t){return new(t||n)(b(vD),b(bj,8),b(q))},n.\u0275mod=pe({type:n}),n.\u0275inj=ce({imports:[[Ls],Ls]}),n})();function Cj(n){return class extends n{constructor(...e){super(...e),this._disabled=!1}get disabled(){return this._disabled}set disabled(e){this._disabled=Kl(e)}}}function bw(n,e){return class extends n{constructor(...t){super(...t),this.defaultColor=e,this.color=e}get color(){return this._color}set color(t){const i=t||this.defaultColor;i!==this._color&&(this._color&&this._elementRef.nativeElement.classList.remove(`mat-${this._color}`),i&&this._elementRef.nativeElement.classList.add(`mat-${i}`),this._color=i)}}}function Ej(n){return class extends n{constructor(...e){super(...e),this._disableRipple=!1}get disableRipple(){return this._disableRipple}set disableRipple(e){this._disableRipple=Kl(e)}}}let wj=(()=>{class n{isErrorState(t,i){return!!(t&&t.invalid&&(t.touched||i&&i.submitted))}}return n.\u0275fac=function(t){return new(t||n)},n.\u0275prov=I({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();class Sj{constructor(e,t,i){this._renderer=e,this.element=t,this.config=i,this.state=3}fadeOut(){this._renderer.fadeOutRipple(this)}}const Cw={enterDuration:225,exitDuration:150},pp=Bs({passive:!0}),Ew=["mousedown","touchstart"],Dw=["mouseup","mouseleave","touchend","touchcancel"];class Aj{constructor(e,t,i,r){this._target=e,this._ngZone=t,this._isPointerDown=!1,this._activeRipples=new Set,this._pointerUpEventsRegistered=!1,r.isBrowser&&(this._containerElement=co(i))}fadeInRipple(e,t,i={}){const r=this._containerRect=this._containerRect||this._containerElement.getBoundingClientRect(),o=Object.assign(Object.assign({},Cw),i.animation);i.centered&&(e=r.left+r.width/2,t=r.top+r.height/2);const s=i.radius||function Tj(n,e,t){const i=Math.max(Math.abs(n-t.left),Math.abs(n-t.right)),r=Math.max(Math.abs(e-t.top),Math.abs(e-t.bottom));return Math.sqrt(i*i+r*r)}(e,t,r),a=e-r.left,l=t-r.top,c=o.enterDuration,u=document.createElement("div");u.classList.add("mat-ripple-element"),u.style.left=a-s+"px",u.style.top=l-s+"px",u.style.height=2*s+"px",u.style.width=2*s+"px",null!=i.color&&(u.style.backgroundColor=i.color),u.style.transitionDuration=`${c}ms`,this._containerElement.appendChild(u),function Ij(n){window.getComputedStyle(n).getPropertyValue("opacity")}(u),u.style.transform="scale(1)";const d=new Sj(this,u,i);return d.state=0,this._activeRipples.add(d),i.persistent||(this._mostRecentTransientRipple=d),this._runTimeoutOutsideZone(()=>{const h=d===this._mostRecentTransientRipple;d.state=1,!i.persistent&&(!h||!this._isPointerDown)&&d.fadeOut()},c),d}fadeOutRipple(e){const t=this._activeRipples.delete(e);if(e===this._mostRecentTransientRipple&&(this._mostRecentTransientRipple=null),this._activeRipples.size||(this._containerRect=null),!t)return;const i=e.element,r=Object.assign(Object.assign({},Cw),e.config.animation);i.style.transitionDuration=`${r.exitDuration}ms`,i.style.opacity="0",e.state=2,this._runTimeoutOutsideZone(()=>{e.state=3,i.remove()},r.exitDuration)}fadeOutAll(){this._activeRipples.forEach(e=>e.fadeOut())}fadeOutAllNonPersistent(){this._activeRipples.forEach(e=>{e.config.persistent||e.fadeOut()})}setupTriggerEvents(e){const t=co(e);!t||t===this._triggerElement||(this._removeTriggerEvents(),this._triggerElement=t,this._registerEvents(Ew))}handleEvent(e){"mousedown"===e.type?this._onMousedown(e):"touchstart"===e.type?this._onTouchStart(e):this._onPointerUp(),this._pointerUpEventsRegistered||(this._registerEvents(Dw),this._pointerUpEventsRegistered=!0)}_onMousedown(e){const t=fD(e),i=this._lastTouchStartEvent&&Date.now()<this._lastTouchStartEvent+800;!this._target.rippleDisabled&&!t&&!i&&(this._isPointerDown=!0,this.fadeInRipple(e.clientX,e.clientY,this._target.rippleConfig))}_onTouchStart(e){if(!this._target.rippleDisabled&&!pD(e)){this._lastTouchStartEvent=Date.now(),this._isPointerDown=!0;const t=e.changedTouches;for(let i=0;i<t.length;i++)this.fadeInRipple(t[i].clientX,t[i].clientY,this._target.rippleConfig)}}_onPointerUp(){!this._isPointerDown||(this._isPointerDown=!1,this._activeRipples.forEach(e=>{!e.config.persistent&&(1===e.state||e.config.terminateOnPointerUp&&0===e.state)&&e.fadeOut()}))}_runTimeoutOutsideZone(e,t=0){this._ngZone.runOutsideAngular(()=>setTimeout(e,t))}_registerEvents(e){this._ngZone.runOutsideAngular(()=>{e.forEach(t=>{this._triggerElement.addEventListener(t,this,pp)})})}_removeTriggerEvents(){this._triggerElement&&(Ew.forEach(e=>{this._triggerElement.removeEventListener(e,this,pp)}),this._pointerUpEventsRegistered&&Dw.forEach(e=>{this._triggerElement.removeEventListener(e,this,pp)}))}}const xj=new T("mat-ripple-global-options");let ww=(()=>{class n{constructor(t,i,r,o,s){this._elementRef=t,this._animationMode=s,this.radius=0,this._disabled=!1,this._isInitialized=!1,this._globalOptions=o||{},this._rippleRenderer=new Aj(this,i,t,r)}get disabled(){return this._disabled}set disabled(t){t&&this.fadeOutAllNonPersistent(),this._disabled=t,this._setupTriggerEventsIfEnabled()}get trigger(){return this._trigger||this._elementRef.nativeElement}set trigger(t){this._trigger=t,this._setupTriggerEventsIfEnabled()}ngOnInit(){this._isInitialized=!0,this._setupTriggerEventsIfEnabled()}ngOnDestroy(){this._rippleRenderer._removeTriggerEvents()}fadeOutAll(){this._rippleRenderer.fadeOutAll()}fadeOutAllNonPersistent(){this._rippleRenderer.fadeOutAllNonPersistent()}get rippleConfig(){return{centered:this.centered,radius:this.radius,color:this.color,animation:Object.assign(Object.assign(Object.assign({},this._globalOptions.animation),"NoopAnimations"===this._animationMode?{enterDuration:0,exitDuration:0}:{}),this.animation),terminateOnPointerUp:this._globalOptions.terminateOnPointerUp}}get rippleDisabled(){return this.disabled||!!this._globalOptions.disabled}_setupTriggerEventsIfEnabled(){!this.disabled&&this._isInitialized&&this._rippleRenderer.setupTriggerEvents(this.trigger)}launch(t,i=0,r){return"number"==typeof t?this._rippleRenderer.fadeInRipple(t,i,Object.assign(Object.assign({},this.rippleConfig),r)):this._rippleRenderer.fadeInRipple(0,0,Object.assign(Object.assign({},this.rippleConfig),t))}}return n.\u0275fac=function(t){return new(t||n)(v(ye),v(oe),v(un),v(xj,8),v(yc,8))},n.\u0275dir=k({type:n,selectors:[["","mat-ripple",""],["","matRipple",""]],hostAttrs:[1,"mat-ripple"],hostVars:2,hostBindings:function(t,i){2&t&&zn("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})(),Fj=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=pe({type:n}),n.\u0275inj=ce({imports:[[dn,ql],dn]}),n})(),Pj=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275dir=k({type:n,selectors:[["mat-label"]]}),n})(),mp=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=pe({type:n}),n.\u0275inj=ce({imports:[[As,dn,iD],dn]}),n})();function Sw(n,e,t,i){return Xn(t)&&(i=t,t=void 0),i?Sw(n,e,t).pipe(Ue(r=>ir(r)?i(...r):i(r))):new me(r=>{Mw(n,e,function o(s){r.next(arguments.length>1?Array.prototype.slice.call(arguments):s)},r,t)})}function Mw(n,e,t,i,r){let o;if(function Bj(n){return n&&"function"==typeof n.addEventListener&&"function"==typeof n.removeEventListener}(n)){const s=n;n.addEventListener(e,t,r),o=()=>s.removeEventListener(e,t,r)}else if(function Vj(n){return n&&"function"==typeof n.on&&"function"==typeof n.off}(n)){const s=n;n.on(e,t),o=()=>s.off(e,t)}else if(function Lj(n){return n&&"function"==typeof n.addListener&&"function"==typeof n.removeListener}(n)){const s=n;n.addListener(e,t),o=()=>s.removeListener(e,t)}else{if(!n||!n.length)throw new TypeError("Invalid event target");for(let s=0,a=n.length;s<a;s++)Mw(n[s],e,t,i,r)}i.add(o)}new class Hj extends cn{flush(e){this.active=!0,this.scheduled=void 0;const{actions:t}=this;let i,r=-1,o=t.length;e=e||t.shift();do{if(i=e.execute(e.state,e.delay))break}while(++r<o&&(e=t.shift()));if(this.active=!1,i){for(;++r<o&&(e=t.shift());)e.unsubscribe();throw i}}}(class jj extends Nl{constructor(e,t){super(e,t),this.scheduler=e,this.work=t}requestAsyncId(e,t,i=0){return null!==i&&i>0?super.requestAsyncId(e,t,i):(e.actions.push(this),e.scheduled||(e.scheduled=requestAnimationFrame(()=>e.flush(null))))}recycleAsyncId(e,t,i=0){if(null!==i&&i>0||null===i&&this.delay>0)return super.recycleAsyncId(e,t,i);0===e.actions.length&&(cancelAnimationFrame(t),e.scheduled=void 0)}});let zj=1;const $j=Promise.resolve(),vc={};function Aw(n){return n in vc&&(delete vc[n],!0)}const Iw={setImmediate(n){const e=zj++;return vc[e]=!0,$j.then(()=>Aw(e)&&n()),e},clearImmediate(n){Aw(n)}};new class Wj extends cn{flush(e){this.active=!0,this.scheduled=void 0;const{actions:t}=this;let i,r=-1,o=t.length;e=e||t.shift();do{if(i=e.execute(e.state,e.delay))break}while(++r<o&&(e=t.shift()));if(this.active=!1,i){for(;++r<o&&(e=t.shift());)e.unsubscribe();throw i}}}(class Gj extends Nl{constructor(e,t){super(e,t),this.scheduler=e,this.work=t}requestAsyncId(e,t,i=0){return null!==i&&i>0?super.requestAsyncId(e,t,i):(e.actions.push(this),e.scheduled||(e.scheduled=Iw.setImmediate(e.flush.bind(e,null))))}recycleAsyncId(e,t,i=0){if(null!==i&&i>0||null===i&&this.delay>0)return super.recycleAsyncId(e,t,i);0===e.actions.length&&(Iw.clearImmediate(t),e.scheduled=void 0)}});class Kj{constructor(e){this.durationSelector=e}call(e,t){return t.subscribe(new Yj(e,this.durationSelector))}}class Yj extends Co{constructor(e,t){super(e),this.durationSelector=t,this.hasValue=!1}_next(e){if(this.value=e,this.hasValue=!0,!this.throttled){let t;try{const{durationSelector:r}=this;t=r(e)}catch(r){return this.destination.error(r)}const i=Eo(t,new bo(this));!i||i.closed?this.clearThrottle():this.add(this.throttled=i)}}clearThrottle(){const{value:e,hasValue:t,throttled:i}=this;i&&(this.remove(i),this.throttled=void 0,i.unsubscribe()),t&&(this.value=void 0,this.hasValue=!1,this.destination.next(e))}notifyNext(){this.clearThrottle()}notifyComplete(){this.clearThrottle()}}function Tw(n){return!ir(n)&&n-parseFloat(n)+1>=0}function Xj(n){const{index:e,period:t,subscriber:i}=n;if(i.next(e),!i.closed){if(-1===t)return i.complete();n.index=e+1,this.schedule(n,t)}}function xw(n,e=lf){return function Qj(n){return function(t){return t.lift(new Kj(n))}}(()=>function Zj(n=0,e,t){let i=-1;return Tw(e)?i=Number(e)<1?1:Number(e):rr(e)&&(t=e),rr(t)||(t=lf),new me(r=>{const o=Tw(n)?n:+n-t.now();return t.schedule(Xj,o,{index:0,period:i,subscriber:r})})}(n,e))}function Fw(n,e){return function(i){return i.lift(new Jj(n,e))}}class Jj{constructor(e,t){this.predicate=e,this.thisArg=t}call(e,t){return t.subscribe(new eH(e,this.predicate,this.thisArg))}}class eH extends ve{constructor(e,t,i){super(e),this.predicate=t,this.thisArg=i,this.count=0}_next(e){let t;try{t=this.predicate.call(this.thisArg,e,this.count++)}catch(i){return void this.destination.error(i)}t&&this.destination.next(e)}}let Rw=(()=>{class n{constructor(t,i,r){this._ngZone=t,this._platform=i,this._scrolled=new Pe,this._globalSubscription=null,this._scrolledCount=0,this.scrollContainers=new Map,this._document=r}register(t){this.scrollContainers.has(t)||this.scrollContainers.set(t,t.elementScrolled().subscribe(()=>this._scrolled.next(t)))}deregister(t){const i=this.scrollContainers.get(t);i&&(i.unsubscribe(),this.scrollContainers.delete(t))}scrolled(t=20){return this._platform.isBrowser?new me(i=>{this._globalSubscription||this._addGlobalListener();const r=t>0?this._scrolled.pipe(xw(t)).subscribe(i):this._scrolled.subscribe(i);return this._scrolledCount++,()=>{r.unsubscribe(),this._scrolledCount--,this._scrolledCount||this._removeGlobalListener()}}):An()}ngOnDestroy(){this._removeGlobalListener(),this.scrollContainers.forEach((t,i)=>this.deregister(i)),this._scrolled.complete()}ancestorScrolled(t,i){const r=this.getAncestorScrollContainers(t);return this.scrolled(i).pipe(Fw(o=>!o||r.indexOf(o)>-1))}getAncestorScrollContainers(t){const i=[];return this.scrollContainers.forEach((r,o)=>{this._scrollableContainsElement(o,t)&&i.push(o)}),i}_getWindow(){return this._document.defaultView||window}_scrollableContainsElement(t,i){let r=co(i),o=t.getElementRef().nativeElement;do{if(r==o)return!0}while(r=r.parentElement);return!1}_addGlobalListener(){this._globalSubscription=this._ngZone.runOutsideAngular(()=>Sw(this._getWindow().document,"scroll").subscribe(()=>this._scrolled.next()))}_removeGlobalListener(){this._globalSubscription&&(this._globalSubscription.unsubscribe(),this._globalSubscription=null)}}return n.\u0275fac=function(t){return new(t||n)(b(oe),b(un),b(q,8))},n.\u0275prov=I({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),Ow=(()=>{class n{constructor(t,i,r){this._platform=t,this._change=new Pe,this._changeListener=o=>{this._change.next(o)},this._document=r,i.runOutsideAngular(()=>{if(t.isBrowser){const o=this._getWindow();o.addEventListener("resize",this._changeListener),o.addEventListener("orientationchange",this._changeListener)}this.change().subscribe(()=>this._viewportSize=null)})}ngOnDestroy(){if(this._platform.isBrowser){const t=this._getWindow();t.removeEventListener("resize",this._changeListener),t.removeEventListener("orientationchange",this._changeListener)}this._change.complete()}getViewportSize(){this._viewportSize||this._updateViewportSize();const t={width:this._viewportSize.width,height:this._viewportSize.height};return this._platform.isBrowser||(this._viewportSize=null),t}getViewportRect(){const t=this.getViewportScrollPosition(),{width:i,height:r}=this.getViewportSize();return{top:t.top,left:t.left,bottom:t.top+r,right:t.left+i,height:r,width:i}}getViewportScrollPosition(){if(!this._platform.isBrowser)return{top:0,left:0};const t=this._document,i=this._getWindow(),r=t.documentElement,o=r.getBoundingClientRect();return{top:-o.top||t.body.scrollTop||i.scrollY||r.scrollTop||0,left:-o.left||t.body.scrollLeft||i.scrollX||r.scrollLeft||0}}change(t=20){return t>0?this._change.pipe(xw(t)):this._change}_getWindow(){return this._document.defaultView||window}_updateViewportSize(){const t=this._getWindow();this._viewportSize=this._platform.isBrowser?{width:t.innerWidth,height:t.innerHeight}:{width:0,height:0}}}return n.\u0275fac=function(t){return new(t||n)(b(un),b(oe),b(q,8))},n.\u0275prov=I({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),gp=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=pe({type:n}),n.\u0275inj=ce({}),n})(),kw=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=pe({type:n}),n.\u0275inj=ce({imports:[[Ls,ql,gp],Ls,gp]}),n})();class _p{attach(e){return this._attachedHost=e,e.attach(this)}detach(){let e=this._attachedHost;null!=e&&(this._attachedHost=null,e.detach())}get isAttached(){return null!=this._attachedHost}setAttachedHost(e){this._attachedHost=e}}class Nw extends _p{constructor(e,t,i,r){super(),this.component=e,this.viewContainerRef=t,this.injector=i,this.componentFactoryResolver=r}}class iH extends _p{constructor(e,t,i){super(),this.templateRef=e,this.viewContainerRef=t,this.context=i}get origin(){return this.templateRef.elementRef}attach(e,t=this.context){return this.context=t,super.attach(e)}detach(){return this.context=void 0,super.detach()}}class rH extends _p{constructor(e){super(),this.element=e instanceof ye?e.nativeElement:e}}class sH extends class oH{constructor(){this._isDisposed=!1,this.attachDomPortal=null}hasAttached(){return!!this._attachedPortal}attach(e){return e instanceof Nw?(this._attachedPortal=e,this.attachComponentPortal(e)):e instanceof iH?(this._attachedPortal=e,this.attachTemplatePortal(e)):this.attachDomPortal&&e instanceof rH?(this._attachedPortal=e,this.attachDomPortal(e)):void 0}detach(){this._attachedPortal&&(this._attachedPortal.setAttachedHost(null),this._attachedPortal=null),this._invokeDisposeFn()}dispose(){this.hasAttached()&&this.detach(),this._invokeDisposeFn(),this._isDisposed=!0}setDisposeFn(e){this._disposeFn=e}_invokeDisposeFn(){this._disposeFn&&(this._disposeFn(),this._disposeFn=null)}}{constructor(e,t,i,r,o){super(),this.outletElement=e,this._componentFactoryResolver=t,this._appRef=i,this._defaultInjector=r,this.attachDomPortal=s=>{const a=s.element,l=this._document.createComment("dom-portal");a.parentNode.insertBefore(l,a),this.outletElement.appendChild(a),this._attachedPortal=s,super.setDisposeFn(()=>{l.parentNode&&l.parentNode.replaceChild(a,l)})},this._document=o}attachComponentPortal(e){const i=(e.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(e.component);let r;return e.viewContainerRef?(r=e.viewContainerRef.createComponent(i,e.viewContainerRef.length,e.injector||e.viewContainerRef.injector),this.setDisposeFn(()=>r.destroy())):(r=i.create(e.injector||this._defaultInjector),this._appRef.attachView(r.hostView),this.setDisposeFn(()=>{this._appRef.detachView(r.hostView),r.destroy()})),this.outletElement.appendChild(this._getComponentRootNode(r)),this._attachedPortal=e,r}attachTemplatePortal(e){let t=e.viewContainerRef,i=t.createEmbeddedView(e.templateRef,e.context);return i.rootNodes.forEach(r=>this.outletElement.appendChild(r)),i.detectChanges(),this.setDisposeFn(()=>{let r=t.indexOf(i);-1!==r&&t.remove(r)}),this._attachedPortal=e,i}dispose(){super.dispose(),this.outletElement.remove()}_getComponentRootNode(e){return e.hostView.rootNodes[0]}}let aH=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=pe({type:n}),n.\u0275inj=ce({}),n})();const lH=(()=>{function n(){return Error.call(this),this.message="argument out of range",this.name="ArgumentOutOfRangeError",this}return n.prototype=Object.create(Error.prototype),n})(),cH=new me(n=>n.complete());function Pw(n){return n?function uH(n){return new me(e=>n.schedule(()=>e.complete()))}(n):cH}function bc(n){return e=>0===n?Pw():e.lift(new dH(n))}class dH{constructor(e){if(this.total=e,this.total<0)throw new lH}call(e,t){return t.subscribe(new hH(e,this.total))}}class hH extends ve{constructor(e,t){super(e),this.total=t,this.count=0}_next(e){const t=this.total,i=++this.count;i<=t&&(this.destination.next(e),i===t&&(this.destination.complete(),this.unsubscribe()))}}const Lw=pV();class fH{constructor(e,t){this._viewportRuler=e,this._previousHTMLStyles={top:"",left:""},this._isEnabled=!1,this._document=t}attach(){}enable(){if(this._canBeEnabled()){const e=this._document.documentElement;this._previousScrollPosition=this._viewportRuler.getViewportScrollPosition(),this._previousHTMLStyles.left=e.style.left||"",this._previousHTMLStyles.top=e.style.top||"",e.style.left=Fe(-this._previousScrollPosition.left),e.style.top=Fe(-this._previousScrollPosition.top),e.classList.add("cdk-global-scrollblock"),this._isEnabled=!0}}disable(){if(this._isEnabled){const e=this._document.documentElement,i=e.style,r=this._document.body.style,o=i.scrollBehavior||"",s=r.scrollBehavior||"";this._isEnabled=!1,i.left=this._previousHTMLStyles.left,i.top=this._previousHTMLStyles.top,e.classList.remove("cdk-global-scrollblock"),Lw&&(i.scrollBehavior=r.scrollBehavior="auto"),window.scroll(this._previousScrollPosition.left,this._previousScrollPosition.top),Lw&&(i.scrollBehavior=o,r.scrollBehavior=s)}}_canBeEnabled(){if(this._document.documentElement.classList.contains("cdk-global-scrollblock")||this._isEnabled)return!1;const t=this._document.body,i=this._viewportRuler.getViewportSize();return t.scrollHeight>i.height||t.scrollWidth>i.width}}class pH{constructor(e,t,i,r){this._scrollDispatcher=e,this._ngZone=t,this._viewportRuler=i,this._config=r,this._scrollSubscription=null,this._detach=()=>{this.disable(),this._overlayRef.hasAttached()&&this._ngZone.run(()=>this._overlayRef.detach())}}attach(e){this._overlayRef=e}enable(){if(this._scrollSubscription)return;const e=this._scrollDispatcher.scrolled(0);this._config&&this._config.threshold&&this._config.threshold>1?(this._initialScrollPosition=this._viewportRuler.getViewportScrollPosition().top,this._scrollSubscription=e.subscribe(()=>{const t=this._viewportRuler.getViewportScrollPosition().top;Math.abs(t-this._initialScrollPosition)>this._config.threshold?this._detach():this._overlayRef.updatePosition()})):this._scrollSubscription=e.subscribe(this._detach)}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}}class Vw{enable(){}disable(){}attach(){}}function yp(n,e){return e.some(t=>n.bottom<t.top||n.top>t.bottom||n.right<t.left||n.left>t.right)}function Bw(n,e){return e.some(t=>n.top<t.top||n.bottom>t.bottom||n.left<t.left||n.right>t.right)}class mH{constructor(e,t,i,r){this._scrollDispatcher=e,this._viewportRuler=t,this._ngZone=i,this._config=r,this._scrollSubscription=null}attach(e){this._overlayRef=e}enable(){this._scrollSubscription||(this._scrollSubscription=this._scrollDispatcher.scrolled(this._config?this._config.scrollThrottle:0).subscribe(()=>{if(this._overlayRef.updatePosition(),this._config&&this._config.autoClose){const t=this._overlayRef.overlayElement.getBoundingClientRect(),{width:i,height:r}=this._viewportRuler.getViewportSize();yp(t,[{width:i,height:r,bottom:r,right:i,top:0,left:0}])&&(this.disable(),this._ngZone.run(()=>this._overlayRef.detach()))}}))}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}}let gH=(()=>{class n{constructor(t,i,r,o){this._scrollDispatcher=t,this._viewportRuler=i,this._ngZone=r,this.noop=()=>new Vw,this.close=s=>new pH(this._scrollDispatcher,this._ngZone,this._viewportRuler,s),this.block=()=>new fH(this._viewportRuler,this._document),this.reposition=s=>new mH(this._scrollDispatcher,this._viewportRuler,this._ngZone,s),this._document=o}}return n.\u0275fac=function(t){return new(t||n)(b(Rw),b(Ow),b(oe),b(q))},n.\u0275prov=I({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();class _H{constructor(e){if(this.scrollStrategy=new Vw,this.panelClass="",this.hasBackdrop=!1,this.backdropClass="cdk-overlay-dark-backdrop",this.disposeOnNavigation=!1,e){const t=Object.keys(e);for(const i of t)void 0!==e[i]&&(this[i]=e[i])}}}class yH{constructor(e,t){this.connectionPair=e,this.scrollableViewProperties=t}}class vH{constructor(e,t,i,r,o,s,a,l,c){this._portalOutlet=e,this._host=t,this._pane=i,this._config=r,this._ngZone=o,this._keyboardDispatcher=s,this._document=a,this._location=l,this._outsideClickDispatcher=c,this._backdropElement=null,this._backdropClick=new Pe,this._attachments=new Pe,this._detachments=new Pe,this._locationChanges=se.EMPTY,this._backdropClickHandler=u=>this._backdropClick.next(u),this._keydownEvents=new Pe,this._outsidePointerEvents=new Pe,r.scrollStrategy&&(this._scrollStrategy=r.scrollStrategy,this._scrollStrategy.attach(this)),this._positionStrategy=r.positionStrategy}get overlayElement(){return this._pane}get backdropElement(){return this._backdropElement}get hostElement(){return this._host}attach(e){let t=this._portalOutlet.attach(e);return!this._host.parentElement&&this._previousHostParent&&this._previousHostParent.appendChild(this._host),this._positionStrategy&&this._positionStrategy.attach(this),this._updateStackingOrder(),this._updateElementSize(),this._updateElementDirection(),this._scrollStrategy&&this._scrollStrategy.enable(),this._ngZone.onStable.pipe(bc(1)).subscribe(()=>{this.hasAttached()&&this.updatePosition()}),this._togglePointerEvents(!0),this._config.hasBackdrop&&this._attachBackdrop(),this._config.panelClass&&this._toggleClasses(this._pane,this._config.panelClass,!0),this._attachments.next(),this._keyboardDispatcher.add(this),this._config.disposeOnNavigation&&(this._locationChanges=this._location.subscribe(()=>this.dispose())),this._outsideClickDispatcher.add(this),t}detach(){if(!this.hasAttached())return;this.detachBackdrop(),this._togglePointerEvents(!1),this._positionStrategy&&this._positionStrategy.detach&&this._positionStrategy.detach(),this._scrollStrategy&&this._scrollStrategy.disable();const e=this._portalOutlet.detach();return this._detachments.next(),this._keyboardDispatcher.remove(this),this._detachContentWhenStable(),this._locationChanges.unsubscribe(),this._outsideClickDispatcher.remove(this),e}dispose(){var e;const t=this.hasAttached();this._positionStrategy&&this._positionStrategy.dispose(),this._disposeScrollStrategy(),this._disposeBackdrop(this._backdropElement),this._locationChanges.unsubscribe(),this._keyboardDispatcher.remove(this),this._portalOutlet.dispose(),this._attachments.complete(),this._backdropClick.complete(),this._keydownEvents.complete(),this._outsidePointerEvents.complete(),this._outsideClickDispatcher.remove(this),null===(e=this._host)||void 0===e||e.remove(),this._previousHostParent=this._pane=this._host=null,t&&this._detachments.next(),this._detachments.complete()}hasAttached(){return this._portalOutlet.hasAttached()}backdropClick(){return this._backdropClick}attachments(){return this._attachments}detachments(){return this._detachments}keydownEvents(){return this._keydownEvents}outsidePointerEvents(){return this._outsidePointerEvents}getConfig(){return this._config}updatePosition(){this._positionStrategy&&this._positionStrategy.apply()}updatePositionStrategy(e){e!==this._positionStrategy&&(this._positionStrategy&&this._positionStrategy.dispose(),this._positionStrategy=e,this.hasAttached()&&(e.attach(this),this.updatePosition()))}updateSize(e){this._config=Object.assign(Object.assign({},this._config),e),this._updateElementSize()}setDirection(e){this._config=Object.assign(Object.assign({},this._config),{direction:e}),this._updateElementDirection()}addPanelClass(e){this._pane&&this._toggleClasses(this._pane,e,!0)}removePanelClass(e){this._pane&&this._toggleClasses(this._pane,e,!1)}getDirection(){const e=this._config.direction;return e?"string"==typeof e?e:e.value:"ltr"}updateScrollStrategy(e){e!==this._scrollStrategy&&(this._disposeScrollStrategy(),this._scrollStrategy=e,this.hasAttached()&&(e.attach(this),e.enable()))}_updateElementDirection(){this._host.setAttribute("dir",this.getDirection())}_updateElementSize(){if(!this._pane)return;const e=this._pane.style;e.width=Fe(this._config.width),e.height=Fe(this._config.height),e.minWidth=Fe(this._config.minWidth),e.minHeight=Fe(this._config.minHeight),e.maxWidth=Fe(this._config.maxWidth),e.maxHeight=Fe(this._config.maxHeight)}_togglePointerEvents(e){this._pane.style.pointerEvents=e?"":"none"}_attachBackdrop(){const e="cdk-overlay-backdrop-showing";this._backdropElement=this._document.createElement("div"),this._backdropElement.classList.add("cdk-overlay-backdrop"),this._config.backdropClass&&this._toggleClasses(this._backdropElement,this._config.backdropClass,!0),this._host.parentElement.insertBefore(this._backdropElement,this._host),this._backdropElement.addEventListener("click",this._backdropClickHandler),"undefined"!=typeof requestAnimationFrame?this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>{this._backdropElement&&this._backdropElement.classList.add(e)})}):this._backdropElement.classList.add(e)}_updateStackingOrder(){this._host.nextSibling&&this._host.parentNode.appendChild(this._host)}detachBackdrop(){const e=this._backdropElement;if(!e)return;let t;const i=()=>{e&&(e.removeEventListener("click",this._backdropClickHandler),e.removeEventListener("transitionend",i),this._disposeBackdrop(e)),this._config.backdropClass&&this._toggleClasses(e,this._config.backdropClass,!1),clearTimeout(t)};e.classList.remove("cdk-overlay-backdrop-showing"),this._ngZone.runOutsideAngular(()=>{e.addEventListener("transitionend",i)}),e.style.pointerEvents="none",t=this._ngZone.runOutsideAngular(()=>setTimeout(i,500))}_toggleClasses(e,t,i){const r=Yl(t||[]).filter(o=>!!o);r.length&&(i?e.classList.add(...r):e.classList.remove(...r))}_detachContentWhenStable(){this._ngZone.runOutsideAngular(()=>{const e=this._ngZone.onStable.pipe(In(Oc(this._attachments,this._detachments))).subscribe(()=>{(!this._pane||!this._host||0===this._pane.children.length)&&(this._pane&&this._config.panelClass&&this._toggleClasses(this._pane,this._config.panelClass,!1),this._host&&this._host.parentElement&&(this._previousHostParent=this._host.parentElement,this._host.remove()),e.unsubscribe())})})}_disposeScrollStrategy(){const e=this._scrollStrategy;e&&(e.disable(),e.detach&&e.detach())}_disposeBackdrop(e){e&&(e.remove(),this._backdropElement===e&&(this._backdropElement=null))}}let jw=(()=>{class n{constructor(t,i){this._platform=i,this._document=t}ngOnDestroy(){var t;null===(t=this._containerElement)||void 0===t||t.remove()}getContainerElement(){return this._containerElement||this._createContainer(),this._containerElement}_createContainer(){const t="cdk-overlay-container";if(this._platform.isBrowser||Ff()){const r=this._document.querySelectorAll(`.${t}[platform="server"], .${t}[platform="test"]`);for(let o=0;o<r.length;o++)r[o].remove()}const i=this._document.createElement("div");i.classList.add(t),Ff()?i.setAttribute("platform","test"):this._platform.isBrowser||i.setAttribute("platform","server"),this._document.body.appendChild(i),this._containerElement=i}}return n.\u0275fac=function(t){return new(t||n)(b(q),b(un))},n.\u0275prov=I({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const Hw="cdk-overlay-connected-position-bounding-box",bH=/([A-Za-z%]+)$/;class CH{constructor(e,t,i,r,o){this._viewportRuler=t,this._document=i,this._platform=r,this._overlayContainer=o,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 Pe,this._resizeSubscription=se.EMPTY,this._offsetX=0,this._offsetY=0,this._appliedPanelClasses=[],this.positionChanges=this._positionChanges,this.setOrigin(e)}get positions(){return this._preferredPositions}attach(e){this._validatePositions(),e.hostElement.classList.add(Hw),this._overlayRef=e,this._boundingBox=e.hostElement,this._pane=e.overlayElement,this._isDisposed=!1,this._isInitialRender=!0,this._lastPosition=null,this._resizeSubscription.unsubscribe(),this._resizeSubscription=this._viewportRuler.change().subscribe(()=>{this._isInitialRender=!0,this.apply()})}apply(){if(this._isDisposed||!this._platform.isBrowser)return;if(!this._isInitialRender&&this._positionLocked&&this._lastPosition)return void this.reapplyLastPosition();this._clearPanelClasses(),this._resetOverlayElementStyles(),this._resetBoundingBoxStyles(),this._viewportRect=this._getNarrowedViewportRect(),this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect();const e=this._originRect,t=this._overlayRect,i=this._viewportRect,r=[];let o;for(let s of this._preferredPositions){let a=this._getOriginPoint(e,s),l=this._getOverlayPoint(a,t,s),c=this._getOverlayFit(l,t,i,s);if(c.isCompletelyWithinViewport)return this._isPushed=!1,void this._applyPosition(s,a);this._canFitWithFlexibleDimensions(c,l,i)?r.push({position:s,origin:a,overlayRect:t,boundingBoxRect:this._calculateBoundingBoxRect(a,s)}):(!o||o.overlayFit.visibleArea<c.visibleArea)&&(o={overlayFit:c,overlayPoint:l,originPoint:a,position:s,overlayRect:t})}if(r.length){let s=null,a=-1;for(const l of r){const c=l.boundingBoxRect.width*l.boundingBoxRect.height*(l.position.weight||1);c>a&&(a=c,s=l)}return this._isPushed=!1,void this._applyPosition(s.position,s.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&&er(this._boundingBox.style,{top:"",left:"",right:"",bottom:"",height:"",width:"",alignItems:"",justifyContent:""}),this._pane&&this._resetOverlayElementStyles(),this._overlayRef&&this._overlayRef.hostElement.classList.remove(Hw),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();const e=this._lastPosition||this._preferredPositions[0],t=this._getOriginPoint(this._originRect,e);this._applyPosition(e,t)}}withScrollableContainers(e){return this._scrollables=e,this}withPositions(e){return this._preferredPositions=e,-1===e.indexOf(this._lastPosition)&&(this._lastPosition=null),this._validatePositions(),this}withViewportMargin(e){return this._viewportMargin=e,this}withFlexibleDimensions(e=!0){return this._hasFlexibleDimensions=e,this}withGrowAfterOpen(e=!0){return this._growAfterOpen=e,this}withPush(e=!0){return this._canPush=e,this}withLockedPosition(e=!0){return this._positionLocked=e,this}setOrigin(e){return this._origin=e,this}withDefaultOffsetX(e){return this._offsetX=e,this}withDefaultOffsetY(e){return this._offsetY=e,this}withTransformOriginOn(e){return this._transformOriginSelector=e,this}_getOriginPoint(e,t){let i,r;if("center"==t.originX)i=e.left+e.width/2;else{const o=this._isRtl()?e.right:e.left,s=this._isRtl()?e.left:e.right;i="start"==t.originX?o:s}return r="center"==t.originY?e.top+e.height/2:"top"==t.originY?e.top:e.bottom,{x:i,y:r}}_getOverlayPoint(e,t,i){let r,o;return r="center"==i.overlayX?-t.width/2:"start"===i.overlayX?this._isRtl()?-t.width:0:this._isRtl()?0:-t.width,o="center"==i.overlayY?-t.height/2:"top"==i.overlayY?0:-t.height,{x:e.x+r,y:e.y+o}}_getOverlayFit(e,t,i,r){const o=zw(t);let{x:s,y:a}=e,l=this._getOffset(r,"x"),c=this._getOffset(r,"y");l&&(s+=l),c&&(a+=c);let h=0-a,f=a+o.height-i.height,p=this._subtractOverflows(o.width,0-s,s+o.width-i.width),g=this._subtractOverflows(o.height,h,f),m=p*g;return{visibleArea:m,isCompletelyWithinViewport:o.width*o.height===m,fitsInViewportVertically:g===o.height,fitsInViewportHorizontally:p==o.width}}_canFitWithFlexibleDimensions(e,t,i){if(this._hasFlexibleDimensions){const r=i.bottom-t.y,o=i.right-t.x,s=Uw(this._overlayRef.getConfig().minHeight),a=Uw(this._overlayRef.getConfig().minWidth),c=e.fitsInViewportHorizontally||null!=a&&a<=o;return(e.fitsInViewportVertically||null!=s&&s<=r)&&c}return!1}_pushOverlayOnScreen(e,t,i){if(this._previousPushAmount&&this._positionLocked)return{x:e.x+this._previousPushAmount.x,y:e.y+this._previousPushAmount.y};const r=zw(t),o=this._viewportRect,s=Math.max(e.x+r.width-o.width,0),a=Math.max(e.y+r.height-o.height,0),l=Math.max(o.top-i.top-e.y,0),c=Math.max(o.left-i.left-e.x,0);let u=0,d=0;return u=r.width<=o.width?c||-s:e.x<this._viewportMargin?o.left-i.left-e.x:0,d=r.height<=o.height?l||-a:e.y<this._viewportMargin?o.top-i.top-e.y:0,this._previousPushAmount={x:u,y:d},{x:e.x+u,y:e.y+d}}_applyPosition(e,t){if(this._setTransformOrigin(e),this._setOverlayElementStyles(t,e),this._setBoundingBoxStyles(t,e),e.panelClass&&this._addPanelClasses(e.panelClass),this._lastPosition=e,this._positionChanges.observers.length){const i=this._getScrollVisibility(),r=new yH(e,i);this._positionChanges.next(r)}this._isInitialRender=!1}_setTransformOrigin(e){if(!this._transformOriginSelector)return;const t=this._boundingBox.querySelectorAll(this._transformOriginSelector);let i,r=e.overlayY;i="center"===e.overlayX?"center":this._isRtl()?"start"===e.overlayX?"right":"left":"start"===e.overlayX?"left":"right";for(let o=0;o<t.length;o++)t[o].style.transformOrigin=`${i} ${r}`}_calculateBoundingBoxRect(e,t){const i=this._viewportRect,r=this._isRtl();let o,s,a,u,d,h;if("top"===t.overlayY)s=e.y,o=i.height-s+this._viewportMargin;else if("bottom"===t.overlayY)a=i.height-e.y+2*this._viewportMargin,o=i.height-a+this._viewportMargin;else{const f=Math.min(i.bottom-e.y+i.top,e.y),p=this._lastBoundingBoxSize.height;o=2*f,s=e.y-f,o>p&&!this._isInitialRender&&!this._growAfterOpen&&(s=e.y-p/2)}if("end"===t.overlayX&&!r||"start"===t.overlayX&&r)h=i.width-e.x+this._viewportMargin,u=e.x-this._viewportMargin;else if("start"===t.overlayX&&!r||"end"===t.overlayX&&r)d=e.x,u=i.right-e.x;else{const f=Math.min(i.right-e.x+i.left,e.x),p=this._lastBoundingBoxSize.width;u=2*f,d=e.x-f,u>p&&!this._isInitialRender&&!this._growAfterOpen&&(d=e.x-p/2)}return{top:s,left:d,bottom:a,right:h,width:u,height:o}}_setBoundingBoxStyles(e,t){const i=this._calculateBoundingBoxRect(e,t);!this._isInitialRender&&!this._growAfterOpen&&(i.height=Math.min(i.height,this._lastBoundingBoxSize.height),i.width=Math.min(i.width,this._lastBoundingBoxSize.width));const r={};if(this._hasExactPosition())r.top=r.left="0",r.bottom=r.right=r.maxHeight=r.maxWidth="",r.width=r.height="100%";else{const o=this._overlayRef.getConfig().maxHeight,s=this._overlayRef.getConfig().maxWidth;r.height=Fe(i.height),r.top=Fe(i.top),r.bottom=Fe(i.bottom),r.width=Fe(i.width),r.left=Fe(i.left),r.right=Fe(i.right),r.alignItems="center"===t.overlayX?"center":"end"===t.overlayX?"flex-end":"flex-start",r.justifyContent="center"===t.overlayY?"center":"bottom"===t.overlayY?"flex-end":"flex-start",o&&(r.maxHeight=Fe(o)),s&&(r.maxWidth=Fe(s))}this._lastBoundingBoxSize=i,er(this._boundingBox.style,r)}_resetBoundingBoxStyles(){er(this._boundingBox.style,{top:"0",left:"0",right:"0",bottom:"0",height:"",width:"",alignItems:"",justifyContent:""})}_resetOverlayElementStyles(){er(this._pane.style,{top:"",left:"",bottom:"",right:"",position:"",transform:""})}_setOverlayElementStyles(e,t){const i={},r=this._hasExactPosition(),o=this._hasFlexibleDimensions,s=this._overlayRef.getConfig();if(r){const u=this._viewportRuler.getViewportScrollPosition();er(i,this._getExactOverlayY(t,e,u)),er(i,this._getExactOverlayX(t,e,u))}else i.position="static";let a="",l=this._getOffset(t,"x"),c=this._getOffset(t,"y");l&&(a+=`translateX(${l}px) `),c&&(a+=`translateY(${c}px)`),i.transform=a.trim(),s.maxHeight&&(r?i.maxHeight=Fe(s.maxHeight):o&&(i.maxHeight="")),s.maxWidth&&(r?i.maxWidth=Fe(s.maxWidth):o&&(i.maxWidth="")),er(this._pane.style,i)}_getExactOverlayY(e,t,i){let r={top:"",bottom:""},o=this._getOverlayPoint(t,this._overlayRect,e);this._isPushed&&(o=this._pushOverlayOnScreen(o,this._overlayRect,i));let s=this._overlayContainer.getContainerElement().getBoundingClientRect().top;return o.y-=s,"bottom"===e.overlayY?r.bottom=this._document.documentElement.clientHeight-(o.y+this._overlayRect.height)+"px":r.top=Fe(o.y),r}_getExactOverlayX(e,t,i){let s,r={left:"",right:""},o=this._getOverlayPoint(t,this._overlayRect,e);return this._isPushed&&(o=this._pushOverlayOnScreen(o,this._overlayRect,i)),s=this._isRtl()?"end"===e.overlayX?"left":"right":"end"===e.overlayX?"right":"left","right"===s?r.right=this._document.documentElement.clientWidth-(o.x+this._overlayRect.width)+"px":r.left=Fe(o.x),r}_getScrollVisibility(){const e=this._getOriginRect(),t=this._pane.getBoundingClientRect(),i=this._scrollables.map(r=>r.getElementRef().nativeElement.getBoundingClientRect());return{isOriginClipped:Bw(e,i),isOriginOutsideView:yp(e,i),isOverlayClipped:Bw(t,i),isOverlayOutsideView:yp(t,i)}}_subtractOverflows(e,...t){return t.reduce((i,r)=>i-Math.max(r,0),e)}_getNarrowedViewportRect(){const e=this._document.documentElement.clientWidth,t=this._document.documentElement.clientHeight,i=this._viewportRuler.getViewportScrollPosition();return{top:i.top+this._viewportMargin,left:i.left+this._viewportMargin,right:i.left+e-this._viewportMargin,bottom:i.top+t-this._viewportMargin,width:e-2*this._viewportMargin,height:t-2*this._viewportMargin}}_isRtl(){return"rtl"===this._overlayRef.getDirection()}_hasExactPosition(){return!this._hasFlexibleDimensions||this._isPushed}_getOffset(e,t){return"x"===t?null==e.offsetX?this._offsetX:e.offsetX:null==e.offsetY?this._offsetY:e.offsetY}_validatePositions(){}_addPanelClasses(e){this._pane&&Yl(e).forEach(t=>{""!==t&&-1===this._appliedPanelClasses.indexOf(t)&&(this._appliedPanelClasses.push(t),this._pane.classList.add(t))})}_clearPanelClasses(){this._pane&&(this._appliedPanelClasses.forEach(e=>{this._pane.classList.remove(e)}),this._appliedPanelClasses=[])}_getOriginRect(){const e=this._origin;if(e instanceof ye)return e.nativeElement.getBoundingClientRect();if(e instanceof Element)return e.getBoundingClientRect();const t=e.width||0,i=e.height||0;return{top:e.y,bottom:e.y+i,left:e.x,right:e.x+t,height:i,width:t}}}function er(n,e){for(let t in e)e.hasOwnProperty(t)&&(n[t]=e[t]);return n}function Uw(n){if("number"!=typeof n&&null!=n){const[e,t]=n.split(bH);return t&&"px"!==t?null:parseFloat(e)}return n||null}function zw(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 $w="cdk-global-overlay-wrapper";class EH{constructor(){this._cssPosition="static",this._topOffset="",this._bottomOffset="",this._leftOffset="",this._rightOffset="",this._alignItems="",this._justifyContent="",this._width="",this._height=""}attach(e){const t=e.getConfig();this._overlayRef=e,this._width&&!t.width&&e.updateSize({width:this._width}),this._height&&!t.height&&e.updateSize({height:this._height}),e.hostElement.classList.add($w),this._isDisposed=!1}top(e=""){return this._bottomOffset="",this._topOffset=e,this._alignItems="flex-start",this}left(e=""){return this._rightOffset="",this._leftOffset=e,this._justifyContent="flex-start",this}bottom(e=""){return this._topOffset="",this._bottomOffset=e,this._alignItems="flex-end",this}right(e=""){return this._leftOffset="",this._rightOffset=e,this._justifyContent="flex-end",this}width(e=""){return this._overlayRef?this._overlayRef.updateSize({width:e}):this._width=e,this}height(e=""){return this._overlayRef?this._overlayRef.updateSize({height:e}):this._height=e,this}centerHorizontally(e=""){return this.left(e),this._justifyContent="center",this}centerVertically(e=""){return this.top(e),this._alignItems="center",this}apply(){if(!this._overlayRef||!this._overlayRef.hasAttached())return;const e=this._overlayRef.overlayElement.style,t=this._overlayRef.hostElement.style,i=this._overlayRef.getConfig(),{width:r,height:o,maxWidth:s,maxHeight:a}=i,l=!("100%"!==r&&"100vw"!==r||s&&"100%"!==s&&"100vw"!==s),c=!("100%"!==o&&"100vh"!==o||a&&"100%"!==a&&"100vh"!==a);e.position=this._cssPosition,e.marginLeft=l?"0":this._leftOffset,e.marginTop=c?"0":this._topOffset,e.marginBottom=this._bottomOffset,e.marginRight=this._rightOffset,l?t.justifyContent="flex-start":"center"===this._justifyContent?t.justifyContent="center":"rtl"===this._overlayRef.getConfig().direction?"flex-start"===this._justifyContent?t.justifyContent="flex-end":"flex-end"===this._justifyContent&&(t.justifyContent="flex-start"):t.justifyContent=this._justifyContent,t.alignItems=c?"flex-start":this._alignItems}dispose(){if(this._isDisposed||!this._overlayRef)return;const e=this._overlayRef.overlayElement.style,t=this._overlayRef.hostElement,i=t.style;t.classList.remove($w),i.justifyContent=i.alignItems=e.marginTop=e.marginBottom=e.marginLeft=e.marginRight=e.position="",this._overlayRef=null,this._isDisposed=!0}}let DH=(()=>{class n{constructor(t,i,r,o){this._viewportRuler=t,this._document=i,this._platform=r,this._overlayContainer=o}global(){return new EH}flexibleConnectedTo(t){return new CH(t,this._viewportRuler,this._document,this._platform,this._overlayContainer)}}return n.\u0275fac=function(t){return new(t||n)(b(Ow),b(q),b(un),b(jw))},n.\u0275prov=I({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),Gw=(()=>{class n{constructor(t){this._attachedOverlays=[],this._document=t}ngOnDestroy(){this.detach()}add(t){this.remove(t),this._attachedOverlays.push(t)}remove(t){const i=this._attachedOverlays.indexOf(t);i>-1&&this._attachedOverlays.splice(i,1),0===this._attachedOverlays.length&&this.detach()}}return n.\u0275fac=function(t){return new(t||n)(b(q))},n.\u0275prov=I({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),wH=(()=>{class n extends Gw{constructor(t){super(t),this._keydownListener=i=>{const r=this._attachedOverlays;for(let o=r.length-1;o>-1;o--)if(r[o]._keydownEvents.observers.length>0){r[o]._keydownEvents.next(i);break}}}add(t){super.add(t),this._isAttached||(this._document.body.addEventListener("keydown",this._keydownListener),this._isAttached=!0)}detach(){this._isAttached&&(this._document.body.removeEventListener("keydown",this._keydownListener),this._isAttached=!1)}}return n.\u0275fac=function(t){return new(t||n)(b(q))},n.\u0275prov=I({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),SH=(()=>{class n extends Gw{constructor(t,i){super(t),this._platform=i,this._cursorStyleIsSet=!1,this._pointerDownListener=r=>{this._pointerDownEventTarget=Ki(r)},this._clickListener=r=>{const o=Ki(r),s="click"===r.type&&this._pointerDownEventTarget?this._pointerDownEventTarget:o;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(o)||c.overlayElement.contains(s))break;c._outsidePointerEvents.next(r)}}}}add(t){if(super.add(t),!this._isAttached){const i=this._document.body;i.addEventListener("pointerdown",this._pointerDownListener,!0),i.addEventListener("click",this._clickListener,!0),i.addEventListener("auxclick",this._clickListener,!0),i.addEventListener("contextmenu",this._clickListener,!0),this._platform.IOS&&!this._cursorStyleIsSet&&(this._cursorOriginalValue=i.style.cursor,i.style.cursor="pointer",this._cursorStyleIsSet=!0),this._isAttached=!0}}detach(){if(this._isAttached){const t=this._document.body;t.removeEventListener("pointerdown",this._pointerDownListener,!0),t.removeEventListener("click",this._clickListener,!0),t.removeEventListener("auxclick",this._clickListener,!0),t.removeEventListener("contextmenu",this._clickListener,!0),this._platform.IOS&&this._cursorStyleIsSet&&(t.style.cursor=this._cursorOriginalValue,this._cursorStyleIsSet=!1),this._isAttached=!1}}}return n.\u0275fac=function(t){return new(t||n)(b(q),b(un))},n.\u0275prov=I({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),MH=0,Cc=(()=>{class n{constructor(t,i,r,o,s,a,l,c,u,d,h){this.scrollStrategies=t,this._overlayContainer=i,this._componentFactoryResolver=r,this._positionBuilder=o,this._keyboardDispatcher=s,this._injector=a,this._ngZone=l,this._document=c,this._directionality=u,this._location=d,this._outsideClickDispatcher=h}create(t){const i=this._createHostElement(),r=this._createPaneElement(i),o=this._createPortalOutlet(r),s=new _H(t);return s.direction=s.direction||this._directionality.value,new vH(o,i,r,s,this._ngZone,this._keyboardDispatcher,this._document,this._location,this._outsideClickDispatcher)}position(){return this._positionBuilder}_createPaneElement(t){const i=this._document.createElement("div");return i.id="cdk-overlay-"+MH++,i.classList.add("cdk-overlay-pane"),t.appendChild(i),i}_createHostElement(){const t=this._document.createElement("div");return this._overlayContainer.getContainerElement().appendChild(t),t}_createPortalOutlet(t){return this._appRef||(this._appRef=this._injector.get(Hi)),new sH(t,this._componentFactoryResolver,this._appRef,this._injector,this._document)}}return n.\u0275fac=function(t){return new(t||n)(b(gH),b(jw),b($n),b(DH),b(wH),b(re),b(oe),b(q),b(rD),b(DC),b(SH))},n.\u0275prov=I({token:n,factory:n.\u0275fac}),n})();const TH={provide:new T("cdk-connected-overlay-scroll-strategy"),deps:[Cc],useFactory:function IH(n){return()=>n.scrollStrategies.reposition()}};let xH=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=pe({type:n}),n.\u0275inj=ce({providers:[Cc,TH],imports:[[Ls,aH,kw],kw]}),n})();class FH extends ve{notifyNext(e,t,i,r,o){this.destination.next(t)}notifyError(e,t){this.destination.error(e)}notifyComplete(e){this.destination.complete()}}class RH extends ve{constructor(e,t,i){super(),this.parent=e,this.outerValue=t,this.outerIndex=i,this.index=0}_next(e){this.parent.notifyNext(this.outerValue,e,this.outerIndex,this.index++,this)}_error(e){this.parent.notifyError(e,this),this.unsubscribe()}_complete(){this.parent.notifyComplete(this),this.unsubscribe()}}function OH(n,e,t,i,r=new RH(n,t,i)){if(!r.closed)return e instanceof me?e.subscribe(r):Tc(e)(r)}const Ww={};class NH{constructor(e){this.resultSelector=e}call(e,t){return t.subscribe(new PH(e,this.resultSelector))}}class PH extends FH{constructor(e,t){super(e),this.resultSelector=t,this.active=0,this.values=[],this.observables=[]}_next(e){this.values.push(Ww),this.observables.push(e)}_complete(){const e=this.observables,t=e.length;if(0===t)this.destination.complete();else{this.active=t,this.toRespond=t;for(let i=0;i<t;i++)this.add(OH(this,e[i],void 0,i))}}notifyComplete(e){0==(this.active-=1)&&this.destination.complete()}notifyNext(e,t,i){const r=this.values,s=this.toRespond?r[i]===Ww?--this.toRespond:this.toRespond:0;r[i]=t,0===s&&(this.resultSelector?this._tryResultSelector(r):this.destination.next(r.slice()))}_tryResultSelector(e){let t;try{t=this.resultSelector.apply(this,e)}catch(i){return void this.destination.error(i)}this.destination.next(t)}}function vp(...n){return function LH(){return Pp(1)}()(An(...n))}function VH(...n){const e=n[n.length-1];return rr(e)?(n.pop(),t=>vp(n,t,e)):t=>vp(n,t)}const qw=new Set;let mo,BH=(()=>{class n{constructor(t){this._platform=t,this._matchMedia=this._platform.isBrowser&&window.matchMedia?window.matchMedia.bind(window):HH}matchMedia(t){return(this._platform.WEBKIT||this._platform.BLINK)&&function jH(n){if(!qw.has(n))try{mo||(mo=document.createElement("style"),mo.setAttribute("type","text/css"),document.head.appendChild(mo)),mo.sheet&&(mo.sheet.insertRule(`@media ${n} {body{ }}`,0),qw.add(n))}catch(e){console.error(e)}}(t),this._matchMedia(t)}}return n.\u0275fac=function(t){return new(t||n)(b(un))},n.\u0275prov=I({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();function HH(n){return{matches:"all"===n||""===n,media:n,addListener:()=>{},removeListener:()=>{}}}let UH=(()=>{class n{constructor(t,i){this._mediaMatcher=t,this._zone=i,this._queries=new Map,this._destroySubject=new Pe}ngOnDestroy(){this._destroySubject.next(),this._destroySubject.complete()}isMatched(t){return Qw(Yl(t)).some(r=>this._registerQuery(r).mql.matches)}observe(t){let o=function kH(...n){let e,t;return rr(n[n.length-1])&&(t=n.pop()),"function"==typeof n[n.length-1]&&(e=n.pop()),1===n.length&&ir(n[0])&&(n=n[0]),Rc(n,t).lift(new NH(e))}(Qw(Yl(t)).map(s=>this._registerQuery(s).observable));return o=vp(o.pipe(bc(1)),o.pipe(aD(1),tE(0))),o.pipe(Ue(s=>{const a={matches:!1,breakpoints:{}};return s.forEach(({matches:l,query:c})=>{a.matches=a.matches||l,a.breakpoints[c]=l}),a}))}_registerQuery(t){if(this._queries.has(t))return this._queries.get(t);const i=this._mediaMatcher.matchMedia(t),o={observable:new me(s=>{const a=l=>this._zone.run(()=>s.next(l));return i.addListener(a),()=>{i.removeListener(a)}}).pipe(VH(i),Ue(({matches:s})=>({query:t,matches:s})),In(this._destroySubject)),mql:i};return this._queries.set(t,o),o}}return n.\u0275fac=function(t){return new(t||n)(b(BH),b(oe))},n.\u0275prov=I({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();function Qw(n){return n.map(e=>e.split(",")).reduce((e,t)=>e.concat(t)).map(e=>e.trim())}const $H={tooltipState:CD("state",[Nf("initial, void, hidden",xn({opacity:0,transform:"scale(0)"})),Nf("visible",xn({transform:"scale(1)"})),Pf("* => visible",kf("200ms cubic-bezier(0, 0, 0.2, 1)",KV([xn({opacity:0,transform:"scale(0)",offset:0}),xn({opacity:.5,transform:"scale(0.99)",offset:.5}),xn({opacity:1,transform:"scale(1)",offset:1})]))),Pf("* => hidden",kf("100ms cubic-bezier(0, 0, 0.2, 1)",xn({opacity:0})))])},Kw="tooltip-panel",Yw=Bs({passive:!0}),Zw=new T("mat-tooltip-scroll-strategy"),QH={provide:Zw,deps:[Cc],useFactory:function qH(n){return()=>n.scrollStrategies.reposition({scrollThrottle:20})}},KH=new T("mat-tooltip-default-options",{providedIn:"root",factory:function YH(){return{showDelay:0,hideDelay:0,touchendHideDelay:1500}}});let ZH=(()=>{class n{constructor(t,i,r,o,s,a,l,c,u,d,h,f){this._overlay=t,this._elementRef=i,this._scrollDispatcher=r,this._viewContainerRef=o,this._ngZone=s,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 Pe,this._handleKeydown=p=>{this._isTooltipVisible()&&27===p.keyCode&&!function wV(n,...e){return e.length?e.some(t=>n[t]):n.altKey||n.shiftKey||n.ctrlKey||n.metaKey}(p)&&(p.preventDefault(),p.stopPropagation(),this._ngZone.run(()=>this.hide(0)))},this._scrollStrategy=u,this._document=f,h&&(h.position&&(this.position=h.position),h.touchGestures&&(this.touchGestures=h.touchGestures)),d.change.pipe(In(this._destroyed)).subscribe(()=>{this._overlayRef&&this._updatePosition(this._overlayRef)}),s.runOutsideAngular(()=>{i.nativeElement.addEventListener("keydown",this._handleKeydown)})}get position(){return this._position}set position(t){var i;t!==this._position&&(this._position=t,this._overlayRef&&(this._updatePosition(this._overlayRef),null===(i=this._tooltipInstance)||void 0===i||i.show(0),this._overlayRef.updatePosition()))}get disabled(){return this._disabled}set disabled(t){this._disabled=Kl(t),this._disabled?this.hide(0):this._setupPointerEnterEventsIfNeeded()}get message(){return this._message}set message(t){this._ariaDescriber.removeDescription(this._elementRef.nativeElement,this._message,"tooltip"),this._message=null!=t?String(t).trim():"",!this._message&&this._isTooltipVisible()?this.hide(0):(this._setupPointerEnterEventsIfNeeded(),this._updateTooltipMessage(),this._ngZone.runOutsideAngular(()=>{Promise.resolve().then(()=>{this._ariaDescriber.describe(this._elementRef.nativeElement,this.message,"tooltip")})}))}get tooltipClass(){return this._tooltipClass}set tooltipClass(t){this._tooltipClass=t,this._tooltipInstance&&this._setTooltipClass(this._tooltipClass)}ngAfterViewInit(){this._viewInitialized=!0,this._setupPointerEnterEventsIfNeeded(),this._focusMonitor.monitor(this._elementRef).pipe(In(this._destroyed)).subscribe(t=>{t?"keyboard"===t&&this._ngZone.run(()=>this.show()):this._ngZone.run(()=>this.hide(0))})}ngOnDestroy(){const t=this._elementRef.nativeElement;clearTimeout(this._touchstartTimeout),this._overlayRef&&(this._overlayRef.dispose(),this._tooltipInstance=null),t.removeEventListener("keydown",this._handleKeydown),this._passiveListeners.forEach(([i,r])=>{t.removeEventListener(i,r,Yw)}),this._passiveListeners.length=0,this._destroyed.next(),this._destroyed.complete(),this._ariaDescriber.removeDescription(t,this.message,"tooltip"),this._focusMonitor.stopMonitoring(t)}show(t=this.showDelay){if(this.disabled||!this.message||this._isTooltipVisible()&&!this._tooltipInstance._showTimeoutId&&!this._tooltipInstance._hideTimeoutId)return;const i=this._createOverlay();this._detach(),this._portal=this._portal||new Nw(this._tooltipComponent,this._viewContainerRef),this._tooltipInstance=i.attach(this._portal).instance,this._tooltipInstance.afterHidden().pipe(In(this._destroyed)).subscribe(()=>this._detach()),this._setTooltipClass(this._tooltipClass),this._updateTooltipMessage(),this._tooltipInstance.show(t)}hide(t=this.hideDelay){this._tooltipInstance&&this._tooltipInstance.hide(t)}toggle(){this._isTooltipVisible()?this.hide():this.show()}_isTooltipVisible(){return!!this._tooltipInstance&&this._tooltipInstance.isVisible()}_createOverlay(){if(this._overlayRef)return this._overlayRef;const t=this._scrollDispatcher.getAncestorScrollContainers(this._elementRef),i=this._overlay.position().flexibleConnectedTo(this._elementRef).withTransformOriginOn(`.${this._cssClassPrefix}-tooltip`).withFlexibleDimensions(!1).withViewportMargin(this._viewportMargin).withScrollableContainers(t);return i.positionChanges.pipe(In(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}-${Kw}`,scrollStrategy:this._scrollStrategy()}),this._updatePosition(this._overlayRef),this._overlayRef.detachments().pipe(In(this._destroyed)).subscribe(()=>this._detach()),this._overlayRef.outsidePointerEvents().pipe(In(this._destroyed)).subscribe(()=>{var r;return null===(r=this._tooltipInstance)||void 0===r?void 0:r._handleBodyInteraction()}),this._overlayRef}_detach(){this._overlayRef&&this._overlayRef.hasAttached()&&this._overlayRef.detach(),this._tooltipInstance=null}_updatePosition(t){const i=t.getConfig().positionStrategy,r=this._getOrigin(),o=this._getOverlayPosition();i.withPositions([this._addOffset(Object.assign(Object.assign({},r.main),o.main)),this._addOffset(Object.assign(Object.assign({},r.fallback),o.fallback))])}_addOffset(t){return t}_getOrigin(){const t=!this._dir||"ltr"==this._dir.value,i=this.position;let r;"above"==i||"below"==i?r={originX:"center",originY:"above"==i?"top":"bottom"}:"before"==i||"left"==i&&t||"right"==i&&!t?r={originX:"start",originY:"center"}:("after"==i||"right"==i&&t||"left"==i&&!t)&&(r={originX:"end",originY:"center"});const{x:o,y:s}=this._invertPosition(r.originX,r.originY);return{main:r,fallback:{originX:o,originY:s}}}_getOverlayPosition(){const t=!this._dir||"ltr"==this._dir.value,i=this.position;let r;"above"==i?r={overlayX:"center",overlayY:"bottom"}:"below"==i?r={overlayX:"center",overlayY:"top"}:"before"==i||"left"==i&&t||"right"==i&&!t?r={overlayX:"end",overlayY:"center"}:("after"==i||"right"==i&&t||"left"==i&&!t)&&(r={overlayX:"start",overlayY:"center"});const{x:o,y:s}=this._invertPosition(r.overlayX,r.overlayY);return{main:r,fallback:{overlayX:o,overlayY:s}}}_updateTooltipMessage(){this._tooltipInstance&&(this._tooltipInstance.message=this.message,this._tooltipInstance._markForCheck(),this._ngZone.onMicrotaskEmpty.pipe(bc(1),In(this._destroyed)).subscribe(()=>{this._tooltipInstance&&this._overlayRef.updatePosition()}))}_setTooltipClass(t){this._tooltipInstance&&(this._tooltipInstance.tooltipClass=t,this._tooltipInstance._markForCheck())}_invertPosition(t,i){return"above"===this.position||"below"===this.position?"top"===i?i="bottom":"bottom"===i&&(i="top"):"end"===t?t="start":"start"===t&&(t="end"),{x:t,y:i}}_updateCurrentPositionClass(t){const{overlayY:i,originX:r,originY:o}=t;let s;if(s="center"===i?this._dir&&"rtl"===this._dir.value?"end"===r?"left":"right":"start"===r?"left":"right":"bottom"===i&&"top"===o?"above":"below",s!==this._currentPosition){const a=this._overlayRef;if(a){const l=`${this._cssClassPrefix}-${Kw}-`;a.removePanelClass(l+this._currentPosition),a.addPanelClass(l+s)}this._currentPosition=s}}_setupPointerEnterEventsIfNeeded(){this._disabled||!this.message||!this._viewInitialized||this._passiveListeners.length||(this._platformSupportsMouseEvents()?this._passiveListeners.push(["mouseenter",()=>{this._setupPointerExitEventsIfNeeded(),this.show()}]):"off"!==this.touchGestures&&(this._disableNativeGesturesIfNecessary(),this._passiveListeners.push(["touchstart",()=>{this._setupPointerExitEventsIfNeeded(),clearTimeout(this._touchstartTimeout),this._touchstartTimeout=setTimeout(()=>this.show(),500)}])),this._addListeners(this._passiveListeners))}_setupPointerExitEventsIfNeeded(){if(this._pointerExitEventsInitialized)return;this._pointerExitEventsInitialized=!0;const t=[];if(this._platformSupportsMouseEvents())t.push(["mouseleave",()=>this.hide()],["wheel",i=>this._wheelListener(i)]);else if("off"!==this.touchGestures){this._disableNativeGesturesIfNecessary();const i=()=>{clearTimeout(this._touchstartTimeout),this.hide(this._defaultOptions.touchendHideDelay)};t.push(["touchend",i],["touchcancel",i])}this._addListeners(t),this._passiveListeners.push(...t)}_addListeners(t){t.forEach(([i,r])=>{this._elementRef.nativeElement.addEventListener(i,r,Yw)})}_platformSupportsMouseEvents(){return!this._platform.IOS&&!this._platform.ANDROID}_wheelListener(t){if(this._isTooltipVisible()){const i=this._document.elementFromPoint(t.clientX,t.clientY),r=this._elementRef.nativeElement;i!==r&&!r.contains(i)&&this.hide()}}_disableNativeGesturesIfNecessary(){const t=this.touchGestures;if("off"!==t){const i=this._elementRef.nativeElement,r=i.style;("on"===t||"INPUT"!==i.nodeName&&"TEXTAREA"!==i.nodeName)&&(r.userSelect=r.msUserSelect=r.webkitUserSelect=r.MozUserSelect="none"),("on"===t||!i.draggable)&&(r.webkitUserDrag="none"),r.touchAction="none",r.webkitTapHighlightColor="transparent"}}}return n.\u0275fac=function(t){!function ey(){throw new Error("invalid")}()},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})(),XH=(()=>{class n extends ZH{constructor(t,i,r,o,s,a,l,c,u,d,h,f){super(t,i,r,o,s,a,l,c,u,d,h,f),this._tooltipComponent=e2}}return n.\u0275fac=function(t){return new(t||n)(v(Cc),v(ye),v(Rw),v(en),v(oe),v(un),v(PV),v(gD),v(Zw),v(rD,8),v(KH,8),v(q))},n.\u0275dir=k({type:n,selectors:[["","matTooltip",""]],hostAttrs:[1,"mat-tooltip-trigger"],exportAs:["matTooltip"],features:[J]}),n})(),JH=(()=>{class n{constructor(t){this._changeDetectorRef=t,this._visibility="initial",this._closeOnInteraction=!1,this._onHide=new Pe}show(t){clearTimeout(this._hideTimeoutId),this._closeOnInteraction=!0,this._showTimeoutId=setTimeout(()=>{this._visibility="visible",this._showTimeoutId=void 0,this._onShow(),this._markForCheck()},t)}hide(t){clearTimeout(this._showTimeoutId),this._hideTimeoutId=setTimeout(()=>{this._visibility="hidden",this._hideTimeoutId=void 0,this._markForCheck()},t)}afterHidden(){return this._onHide}isVisible(){return"visible"===this._visibility}ngOnDestroy(){clearTimeout(this._showTimeoutId),clearTimeout(this._hideTimeoutId),this._onHide.complete()}_animationStart(){this._closeOnInteraction=!1}_animationDone(t){const i=t.toState;"hidden"===i&&!this.isVisible()&&this._onHide.next(),("visible"===i||"hidden"===i)&&(this._closeOnInteraction=!0)}_handleBodyInteraction(){this._closeOnInteraction&&this.hide(0)}_markForCheck(){this._changeDetectorRef.markForCheck()}_onShow(){}}return n.\u0275fac=function(t){return new(t||n)(v(Jr))},n.\u0275dir=k({type:n}),n})(),e2=(()=>{class n extends JH{constructor(t,i){super(t),this._breakpointObserver=i,this._isHandset=this._breakpointObserver.observe("(max-width: 599.98px) and (orientation: portrait), (max-width: 959.98px) and (orientation: landscape)")}}return n.\u0275fac=function(t){return new(t||n)(v(Jr),v(UH))},n.\u0275cmp=Si({type:n,selectors:[["mat-tooltip-component"]],hostAttrs:["aria-hidden","true"],hostVars:2,hostBindings:function(t,i){2&t&&Ua("zoom","visible"===i._visibility?1:null)},features:[J],decls:3,vars:7,consts:[[1,"mat-tooltip",3,"ngClass"]],template:function(t,i){if(1&t&&(Yt(0,"div",0),dt("@state.start",function(){return i._animationStart()})("@state.done",function(o){return i._animationDone(o)}),function Lv(n,e){const t=K();let i;const r=n+20;t.firstCreatePass?(i=function zF(n,e){if(e)for(let t=e.length-1;t>=0;t--){const i=e[t];if(n===i.name)return i}throw new wi("302",`The pipe '${n}' could not be found!`)}(e,t.pipeRegistry),t.data[r]=i,i.onDestroy&&(t.destroyHooks||(t.destroyHooks=[])).push(r,i.onDestroy)):i=t.data[r];const o=i.factory||(i.factory=xi(i.type)),s=ei(v);try{const a=ma(!1),l=o();return ma(a),function oT(n,e,t,i){t>=n.data.length&&(n.data[t]=null,n.blueprint[t]=null),e[t]=i}(t,C(),r,l),l}finally{ei(s)}}(1,"async"),ns(2),Zt()),2&t){let r;zn("mat-tooltip-handset",null==(r=function Vv(n,e,t){const i=n+20,r=C(),o=ur(r,i);return function cs(n,e){return n[1].data[e].pure}(r,i)?Rv(r,et(),e,o.transform,t,o):o.transform(t)}(1,5,i._isHandset))?null:r.matches),Un("ngClass",i.tooltipClass)("@state",i._visibility),bn(2),Id(i.message)}},directives:[$h],pipes:[PC],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:[$H.tooltipState]},changeDetection:0}),n})(),t2=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=pe({type:n}),n.\u0275inj=ce({providers:[QH],imports:[[qV,As,xH,dn],dn,gp]}),n})();const n2=["mat-button",""],r2=["*"],s2=["mat-button","mat-flat-button","mat-icon-button","mat-raised-button","mat-stroked-button","mat-mini-fab","mat-fab"],a2=bw(Cj(Ej(class{constructor(n){this._elementRef=n}})));let l2=(()=>{class n extends a2{constructor(t,i,r){super(t),this._focusMonitor=i,this._animationMode=r,this.isRoundButton=this._hasHostAttributes("mat-fab","mat-mini-fab"),this.isIconButton=this._hasHostAttributes("mat-icon-button");for(const o of s2)this._hasHostAttributes(o)&&this._getHostElement().classList.add(o);t.nativeElement.classList.add("mat-button-base"),this.isRoundButton&&(this.color="accent")}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0)}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef)}focus(t,i){t?this._focusMonitor.focusVia(this._getHostElement(),t,i):this._getHostElement().focus(i)}_getHostElement(){return this._elementRef.nativeElement}_isRippleDisabled(){return this.disableRipple||this.disabled}_hasHostAttributes(...t){return t.some(i=>this._getHostElement().hasAttribute(i))}}return n.\u0275fac=function(t){return new(t||n)(v(ye),v(gD),v(yc,8))},n.\u0275cmp=Si({type:n,selectors:[["button","mat-button",""],["button","mat-raised-button",""],["button","mat-icon-button",""],["button","mat-fab",""],["button","mat-mini-fab",""],["button","mat-stroked-button",""],["button","mat-flat-button",""]],viewQuery:function(t,i){if(1&t&&Kr(ww,5),2&t){let r;Qr(r=Yr())&&(i.ripple=r.first)}},hostAttrs:[1,"mat-focus-indicator"],hostVars:5,hostBindings:function(t,i){2&t&&(Kt("disabled",i.disabled||null),zn("_mat-animation-noopable","NoopAnimations"===i._animationMode)("mat-button-disabled",i.disabled))},inputs:{disabled:"disabled",disableRipple:"disableRipple",color:"color"},exportAs:["matButton"],features:[J],attrs:n2,ngContentSelectors:r2,decls:4,vars:5,consts:[[1,"mat-button-wrapper"],["matRipple","",1,"mat-button-ripple",3,"matRippleDisabled","matRippleCentered","matRippleTrigger"],[1,"mat-button-focus-overlay"]],template:function(t,i){1&t&&(Dd(),Yt(0,"span",0),wd(1),Zt(),Hr(2,"span",1),Hr(3,"span",2)),2&t&&(bn(2),zn("mat-button-ripple-round",i.isRoundButton||i.isIconButton),Un("matRippleDisabled",i._isRippleDisabled())("matRippleCentered",i.isIconButton)("matRippleTrigger",i._getHostElement()))},directives:[ww],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})(),c2=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=pe({type:n}),n.\u0275inj=ce({imports:[[Fj,dn],dn]}),n})();function Xw(n,e){return new me(e?t=>e.schedule(u2,0,{error:n,subscriber:t}):t=>t.error(n))}function u2({error:n,subscriber:e}){e.error(n)}function vi(){}function bp(n,e,t){return function(r){return r.lift(new d2(n,e,t))}}class d2{constructor(e,t,i){this.nextOrObserver=e,this.error=t,this.complete=i}call(e,t){return t.subscribe(new h2(e,this.nextOrObserver,this.error,this.complete))}}class h2 extends ve{constructor(e,t,i,r){super(e),this._tapNext=vi,this._tapError=vi,this._tapComplete=vi,this._tapError=i||vi,this._tapComplete=r||vi,Xn(t)?(this._context=this,this._tapNext=t):t&&(this._context=t,this._tapNext=t.next||vi,this._tapError=t.error||vi,this._tapComplete=t.complete||vi)}_next(e){try{this._tapNext.call(this._context,e)}catch(t){return void this.destination.error(t)}this.destination.next(e)}_error(e){try{this._tapError.call(this._context,e)}catch(t){return void this.destination.error(t)}this.destination.error(e)}_complete(){try{this._tapComplete.call(this._context)}catch(e){return void this.destination.error(e)}return this.destination.complete()}}class p2{constructor(e){this.selector=e}call(e,t){return t.subscribe(new m2(e,this.selector,this.caught))}}class m2 extends Co{constructor(e,t,i){super(e),this.selector=t,this.caught=i}error(e){if(!this.isStopped){let t;try{t=this.selector(e,this.caught)}catch(o){return void super.error(o)}this._unsubscribeAndRecycle();const i=new bo(this);this.add(i);const r=Eo(t,i);r!==i&&this.add(r)}}}class _2{constructor(e){this.callback=e}call(e,t){return t.subscribe(new y2(e,this.callback))}}class y2 extends ve{constructor(e,t){super(e),this.add(new se(t))}}class b2{}class bi{constructor(e){this.normalizedNames=new Map,this.lazyUpdate=null,e?this.lazyInit="string"==typeof e?()=>{this.headers=new Map,e.split("\n").forEach(t=>{const i=t.indexOf(":");if(i>0){const r=t.slice(0,i),o=r.toLowerCase(),s=t.slice(i+1).trim();this.maybeSetNormalizedName(r,o),this.headers.has(o)?this.headers.get(o).push(s):this.headers.set(o,[s])}})}:()=>{this.headers=new Map,Object.keys(e).forEach(t=>{let i=e[t];const r=t.toLowerCase();"string"==typeof i&&(i=[i]),i.length>0&&(this.headers.set(r,i),this.maybeSetNormalizedName(t,r))})}:this.headers=new Map}has(e){return this.init(),this.headers.has(e.toLowerCase())}get(e){this.init();const t=this.headers.get(e.toLowerCase());return t&&t.length>0?t[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(e){return this.init(),this.headers.get(e.toLowerCase())||null}append(e,t){return this.clone({name:e,value:t,op:"a"})}set(e,t){return this.clone({name:e,value:t,op:"s"})}delete(e,t){return this.clone({name:e,value:t,op:"d"})}maybeSetNormalizedName(e,t){this.normalizedNames.has(t)||this.normalizedNames.set(t,e)}init(){this.lazyInit&&(this.lazyInit instanceof bi?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(e=>this.applyUpdate(e)),this.lazyUpdate=null))}copyFrom(e){e.init(),Array.from(e.headers.keys()).forEach(t=>{this.headers.set(t,e.headers.get(t)),this.normalizedNames.set(t,e.normalizedNames.get(t))})}clone(e){const t=new bi;return t.lazyInit=this.lazyInit&&this.lazyInit instanceof bi?this.lazyInit:this,t.lazyUpdate=(this.lazyUpdate||[]).concat([e]),t}applyUpdate(e){const t=e.name.toLowerCase();switch(e.op){case"a":case"s":let i=e.value;if("string"==typeof i&&(i=[i]),0===i.length)return;this.maybeSetNormalizedName(e.name,t);const r=("a"===e.op?this.headers.get(t):void 0)||[];r.push(...i),this.headers.set(t,r);break;case"d":const o=e.value;if(o){let s=this.headers.get(t);if(!s)return;s=s.filter(a=>-1===o.indexOf(a)),0===s.length?(this.headers.delete(t),this.normalizedNames.delete(t)):this.headers.set(t,s)}else this.headers.delete(t),this.normalizedNames.delete(t)}}forEach(e){this.init(),Array.from(this.normalizedNames.keys()).forEach(t=>e(this.normalizedNames.get(t),this.headers.get(t)))}}class C2{encodeKey(e){return Jw(e)}encodeValue(e){return Jw(e)}decodeKey(e){return decodeURIComponent(e)}decodeValue(e){return decodeURIComponent(e)}}const D2=/%(\d[a-f0-9])/gi,w2={40:"@","3A":":",24:"$","2C":",","3B":";","2B":"+","3D":"=","3F":"?","2F":"/"};function Jw(n){return encodeURIComponent(n).replace(D2,(e,t)=>{var i;return null!==(i=w2[t])&&void 0!==i?i:e})}function eS(n){return`${n}`}class Ci{constructor(e={}){if(this.updates=null,this.cloneFrom=null,this.encoder=e.encoder||new C2,e.fromString){if(e.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=function E2(n,e){const t=new Map;return n.length>0&&n.replace(/^\?/,"").split("&").forEach(r=>{const o=r.indexOf("="),[s,a]=-1==o?[e.decodeKey(r),""]:[e.decodeKey(r.slice(0,o)),e.decodeValue(r.slice(o+1))],l=t.get(s)||[];l.push(a),t.set(s,l)}),t}(e.fromString,this.encoder)}else e.fromObject?(this.map=new Map,Object.keys(e.fromObject).forEach(t=>{const i=e.fromObject[t];this.map.set(t,Array.isArray(i)?i:[i])})):this.map=null}has(e){return this.init(),this.map.has(e)}get(e){this.init();const t=this.map.get(e);return t?t[0]:null}getAll(e){return this.init(),this.map.get(e)||null}keys(){return this.init(),Array.from(this.map.keys())}append(e,t){return this.clone({param:e,value:t,op:"a"})}appendAll(e){const t=[];return Object.keys(e).forEach(i=>{const r=e[i];Array.isArray(r)?r.forEach(o=>{t.push({param:i,value:o,op:"a"})}):t.push({param:i,value:r,op:"a"})}),this.clone(t)}set(e,t){return this.clone({param:e,value:t,op:"s"})}delete(e,t){return this.clone({param:e,value:t,op:"d"})}toString(){return this.init(),this.keys().map(e=>{const t=this.encoder.encodeKey(e);return this.map.get(e).map(i=>t+"="+this.encoder.encodeValue(i)).join("&")}).filter(e=>""!==e).join("&")}clone(e){const t=new Ci({encoder:this.encoder});return t.cloneFrom=this.cloneFrom||this,t.updates=(this.updates||[]).concat(e),t}init(){null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(e=>this.map.set(e,this.cloneFrom.map.get(e))),this.updates.forEach(e=>{switch(e.op){case"a":case"s":const t=("a"===e.op?this.map.get(e.param):void 0)||[];t.push(eS(e.value)),this.map.set(e.param,t);break;case"d":if(void 0===e.value){this.map.delete(e.param);break}{let i=this.map.get(e.param)||[];const r=i.indexOf(eS(e.value));-1!==r&&i.splice(r,1),i.length>0?this.map.set(e.param,i):this.map.delete(e.param)}}}),this.cloneFrom=this.updates=null)}}class S2{constructor(){this.map=new Map}set(e,t){return this.map.set(e,t),this}get(e){return this.map.has(e)||this.map.set(e,e.defaultValue()),this.map.get(e)}delete(e){return this.map.delete(e),this}keys(){return this.map.keys()}}function tS(n){return"undefined"!=typeof ArrayBuffer&&n instanceof ArrayBuffer}function nS(n){return"undefined"!=typeof Blob&&n instanceof Blob}function iS(n){return"undefined"!=typeof FormData&&n instanceof FormData}class zs{constructor(e,t,i,r){let o;if(this.url=t,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=e.toUpperCase(),function M2(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,o=r):o=i,o&&(this.reportProgress=!!o.reportProgress,this.withCredentials=!!o.withCredentials,o.responseType&&(this.responseType=o.responseType),o.headers&&(this.headers=o.headers),o.context&&(this.context=o.context),o.params&&(this.params=o.params)),this.headers||(this.headers=new bi),this.context||(this.context=new S2),this.params){const s=this.params.toString();if(0===s.length)this.urlWithParams=t;else{const a=t.indexOf("?");this.urlWithParams=t+(-1===a?"?":a<t.length-1?"&":"")+s}}else this.params=new Ci,this.urlWithParams=t}serializeBody(){return null===this.body?null:tS(this.body)||nS(this.body)||iS(this.body)||function A2(n){return"undefined"!=typeof URLSearchParams&&n instanceof URLSearchParams}(this.body)||"string"==typeof this.body?this.body:this.body instanceof Ci?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||iS(this.body)?null:nS(this.body)?this.body.type||null:tS(this.body)?null:"string"==typeof this.body?"text/plain":this.body instanceof Ci?"application/x-www-form-urlencoded;charset=UTF-8":"object"==typeof this.body||"number"==typeof this.body||"boolean"==typeof this.body?"application/json":null}clone(e={}){var t;const i=e.method||this.method,r=e.url||this.url,o=e.responseType||this.responseType,s=void 0!==e.body?e.body:this.body,a=void 0!==e.withCredentials?e.withCredentials:this.withCredentials,l=void 0!==e.reportProgress?e.reportProgress:this.reportProgress;let c=e.headers||this.headers,u=e.params||this.params;const d=null!==(t=e.context)&&void 0!==t?t:this.context;return void 0!==e.setHeaders&&(c=Object.keys(e.setHeaders).reduce((h,f)=>h.set(f,e.setHeaders[f]),c)),e.setParams&&(u=Object.keys(e.setParams).reduce((h,f)=>h.set(f,e.setParams[f]),u)),new zs(i,r,s,{params:u,headers:c,context:d,reportProgress:l,responseType:o,withCredentials:a})}}var ze=(()=>((ze=ze||{})[ze.Sent=0]="Sent",ze[ze.UploadProgress=1]="UploadProgress",ze[ze.ResponseHeader=2]="ResponseHeader",ze[ze.DownloadProgress=3]="DownloadProgress",ze[ze.Response=4]="Response",ze[ze.User=5]="User",ze))();class Cp extends class I2{constructor(e,t=200,i="OK"){this.headers=e.headers||new bi,this.status=void 0!==e.status?e.status:t,this.statusText=e.statusText||i,this.url=e.url||null,this.ok=this.status>=200&&this.status<300}}{constructor(e={}){super(e),this.type=ze.Response,this.body=void 0!==e.body?e.body:null}clone(e={}){return new Cp({body:void 0!==e.body?e.body:this.body,headers:e.headers||this.headers,status:void 0!==e.status?e.status:this.status,statusText:e.statusText||this.statusText,url:e.url||this.url||void 0})}}function Ep(n,e){return{body:e,headers:n.headers,context:n.context,observe:n.observe,params:n.params,reportProgress:n.reportProgress,responseType:n.responseType,withCredentials:n.withCredentials}}let oS=(()=>{class n{constructor(t){this.handler=t}request(t,i,r={}){let o;if(t instanceof zs)o=t;else{let l,c;l=r.headers instanceof bi?r.headers:new bi(r.headers),r.params&&(c=r.params instanceof Ci?r.params:new Ci({fromObject:r.params})),o=new zs(t,i,void 0!==r.body?r.body:null,{headers:l,context:r.context,params:c,reportProgress:r.reportProgress,responseType:r.responseType||"json",withCredentials:r.withCredentials})}const s=An(o).pipe(function v2(n,e){return Fc(n,e,1)}(l=>this.handler.handle(l)));if(t instanceof zs||"events"===r.observe)return s;const a=s.pipe(Fw(l=>l instanceof Cp));switch(r.observe||"body"){case"body":switch(o.responseType){case"arraybuffer":return a.pipe(Ue(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(Ue(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(Ue(l=>{if(null!==l.body&&"string"!=typeof l.body)throw new Error("Response is not a string.");return l.body}));default:return a.pipe(Ue(l=>l.body))}case"response":return a;default:throw new Error(`Unreachable: unhandled observe type ${r.observe}}`)}}delete(t,i={}){return this.request("DELETE",t,i)}get(t,i={}){return this.request("GET",t,i)}head(t,i={}){return this.request("HEAD",t,i)}jsonp(t,i){return this.request("JSONP",t,{params:(new Ci).append(i,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(t,i={}){return this.request("OPTIONS",t,i)}patch(t,i,r={}){return this.request("PATCH",t,Ep(r,i))}post(t,i,r={}){return this.request("POST",t,Ep(r,i))}put(t,i,r={}){return this.request("PUT",t,Ep(r,i))}}return n.\u0275fac=function(t){return new(t||n)(b(b2))},n.\u0275prov=I({token:n,factory:n.\u0275fac}),n})();const x2=["*"];let Ec;function $s(n){var e;return(null===(e=function F2(){if(void 0===Ec&&(Ec=null,"undefined"!=typeof window)){const n=window;void 0!==n.trustedTypes&&(Ec=n.trustedTypes.createPolicy("angular#components",{createHTML:e=>e}))}return Ec}())||void 0===e?void 0:e.createHTML(n))||n}function sS(n){return Error(`Unable to find icon with the name "${n}"`)}function aS(n){return Error(`The URL provided to MatIconRegistry was not trusted as a resource URL via Angular's DomSanitizer. Attempted URL was "${n}".`)}function lS(n){return Error(`The literal provided to MatIconRegistry was not trusted as safe HTML by Angular's DomSanitizer. Attempted literal was "${n}".`)}class tr{constructor(e,t,i){this.url=e,this.svgText=t,this.options=i}}let Dc=(()=>{class n{constructor(t,i,r,o){this._httpClient=t,this._sanitizer=i,this._errorHandler=o,this._svgIconConfigs=new Map,this._iconSetConfigs=new Map,this._cachedIconsByUrl=new Map,this._inProgressUrlFetches=new Map,this._fontCssClassesByAlias=new Map,this._resolvers=[],this._defaultFontSetClass="material-icons",this._document=r}addSvgIcon(t,i,r){return this.addSvgIconInNamespace("",t,i,r)}addSvgIconLiteral(t,i,r){return this.addSvgIconLiteralInNamespace("",t,i,r)}addSvgIconInNamespace(t,i,r,o){return this._addSvgIconConfig(t,i,new tr(r,null,o))}addSvgIconResolver(t){return this._resolvers.push(t),this}addSvgIconLiteralInNamespace(t,i,r,o){const s=this._sanitizer.sanitize(X.HTML,r);if(!s)throw lS(r);const a=$s(s);return this._addSvgIconConfig(t,i,new tr("",a,o))}addSvgIconSet(t,i){return this.addSvgIconSetInNamespace("",t,i)}addSvgIconSetLiteral(t,i){return this.addSvgIconSetLiteralInNamespace("",t,i)}addSvgIconSetInNamespace(t,i,r){return this._addSvgIconSetConfig(t,new tr(i,null,r))}addSvgIconSetLiteralInNamespace(t,i,r){const o=this._sanitizer.sanitize(X.HTML,i);if(!o)throw lS(i);const s=$s(o);return this._addSvgIconSetConfig(t,new tr("",s,r))}registerFontClassAlias(t,i=t){return this._fontCssClassesByAlias.set(t,i),this}classNameForFontAlias(t){return this._fontCssClassesByAlias.get(t)||t}setDefaultFontSetClass(t){return this._defaultFontSetClass=t,this}getDefaultFontSetClass(){return this._defaultFontSetClass}getSvgIconFromUrl(t){const i=this._sanitizer.sanitize(X.RESOURCE_URL,t);if(!i)throw aS(t);const r=this._cachedIconsByUrl.get(i);return r?An(wc(r)):this._loadSvgIconFromConfig(new tr(t,null)).pipe(bp(o=>this._cachedIconsByUrl.set(i,o)),Ue(o=>wc(o)))}getNamedSvgIcon(t,i=""){const r=cS(i,t);let o=this._svgIconConfigs.get(r);if(o)return this._getSvgFromConfig(o);if(o=this._getIconConfigFromResolvers(i,t),o)return this._svgIconConfigs.set(r,o),this._getSvgFromConfig(o);const s=this._iconSetConfigs.get(i);return s?this._getSvgFromIconSetConfigs(t,s):Xw(sS(r))}ngOnDestroy(){this._resolvers=[],this._svgIconConfigs.clear(),this._iconSetConfigs.clear(),this._cachedIconsByUrl.clear()}_getSvgFromConfig(t){return t.svgText?An(wc(this._svgElementFromConfig(t))):this._loadSvgIconFromConfig(t).pipe(Ue(i=>wc(i)))}_getSvgFromIconSetConfigs(t,i){const r=this._extractIconWithNameFromAnySet(t,i);if(r)return An(r);const o=i.filter(s=>!s.svgText).map(s=>this._loadSvgIconSetFromConfig(s).pipe(function f2(n){return function(t){const i=new p2(n),r=t.lift(i);return i.caught=r}}(a=>{const c=`Loading icon set URL: ${this._sanitizer.sanitize(X.RESOURCE_URL,s.url)} failed: ${a.message}`;return this._errorHandler.handleError(new Error(c)),An(null)})));return nE(o).pipe(Ue(()=>{const s=this._extractIconWithNameFromAnySet(t,i);if(!s)throw sS(t);return s}))}_extractIconWithNameFromAnySet(t,i){for(let r=i.length-1;r>=0;r--){const o=i[r];if(o.svgText&&o.svgText.toString().indexOf(t)>-1){const s=this._svgElementFromConfig(o),a=this._extractSvgIconFromSet(s,t,o.options);if(a)return a}}return null}_loadSvgIconFromConfig(t){return this._fetchIcon(t).pipe(bp(i=>t.svgText=i),Ue(()=>this._svgElementFromConfig(t)))}_loadSvgIconSetFromConfig(t){return t.svgText?An(null):this._fetchIcon(t).pipe(bp(i=>t.svgText=i))}_extractSvgIconFromSet(t,i,r){const o=t.querySelector(`[id="${i}"]`);if(!o)return null;const s=o.cloneNode(!0);if(s.removeAttribute("id"),"svg"===s.nodeName.toLowerCase())return this._setSvgAttributes(s,r);if("symbol"===s.nodeName.toLowerCase())return this._setSvgAttributes(this._toSvgElement(s),r);const a=this._svgElementFromString($s("<svg></svg>"));return a.appendChild(s),this._setSvgAttributes(a,r)}_svgElementFromString(t){const i=this._document.createElement("DIV");i.innerHTML=t;const r=i.querySelector("svg");if(!r)throw Error("<svg> tag not found");return r}_toSvgElement(t){const i=this._svgElementFromString($s("<svg></svg>")),r=t.attributes;for(let o=0;o<r.length;o++){const{name:s,value:a}=r[o];"id"!==s&&i.setAttribute(s,a)}for(let o=0;o<t.childNodes.length;o++)t.childNodes[o].nodeType===this._document.ELEMENT_NODE&&i.appendChild(t.childNodes[o].cloneNode(!0));return i}_setSvgAttributes(t,i){return t.setAttribute("fit",""),t.setAttribute("height","100%"),t.setAttribute("width","100%"),t.setAttribute("preserveAspectRatio","xMidYMid meet"),t.setAttribute("focusable","false"),i&&i.viewBox&&t.setAttribute("viewBox",i.viewBox),t}_fetchIcon(t){var i;const{url:r,options:o}=t,s=null!==(i=null==o?void 0:o.withCredentials)&&void 0!==i&&i;if(!this._httpClient)throw function R2(){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(X.RESOURCE_URL,r);if(!a)throw aS(r);const l=this._inProgressUrlFetches.get(a);if(l)return l;const c=this._httpClient.get(a,{responseType:"text",withCredentials:s}).pipe(Ue(u=>$s(u)),function g2(n){return e=>e.lift(new _2(n))}(()=>this._inProgressUrlFetches.delete(a)),Vp());return this._inProgressUrlFetches.set(a,c),c}_addSvgIconConfig(t,i,r){return this._svgIconConfigs.set(cS(t,i),r),this}_addSvgIconSetConfig(t,i){const r=this._iconSetConfigs.get(t);return r?r.push(i):this._iconSetConfigs.set(t,[i]),this}_svgElementFromConfig(t){if(!t.svgElement){const i=this._svgElementFromString(t.svgText);this._setSvgAttributes(i,t.options),t.svgElement=i}return t.svgElement}_getIconConfigFromResolvers(t,i){for(let r=0;r<this._resolvers.length;r++){const o=this._resolvers[r](i,t);if(o)return k2(o)?new tr(o.url,null,o.options):new tr(o,null)}}}return n.\u0275fac=function(t){return new(t||n)(b(oS,8),b(Fs),b(q,8),b(yn))},n.\u0275prov=I({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();function wc(n){return n.cloneNode(!0)}function cS(n,e){return n+":"+e}function k2(n){return!(!n.url||!n.options)}const N2=bw(class{constructor(n){this._elementRef=n}}),P2=new T("mat-icon-location",{providedIn:"root",factory:function L2(){const n=_u(q),e=n?n.location:null;return{getPathname:()=>e?e.pathname+e.search:""}}}),uS=["clip-path","color-profile","src","cursor","fill","filter","marker","marker-start","marker-mid","marker-end","mask","stroke"],V2=uS.map(n=>`[${n}]`).join(", "),B2=/^url\(['"]?#(.*?)['"]?\)$/;let j2=(()=>{class n extends N2{constructor(t,i,r,o,s){super(t),this._iconRegistry=i,this._location=o,this._errorHandler=s,this._inline=!1,this._currentIconFetch=se.EMPTY,r||t.nativeElement.setAttribute("aria-hidden","true")}get inline(){return this._inline}set inline(t){this._inline=Kl(t)}get svgIcon(){return this._svgIcon}set svgIcon(t){t!==this._svgIcon&&(t?this._updateSvgIcon(t):this._svgIcon&&this._clearSvgElement(),this._svgIcon=t)}get fontSet(){return this._fontSet}set fontSet(t){const i=this._cleanupFontValue(t);i!==this._fontSet&&(this._fontSet=i,this._updateFontIconClasses())}get fontIcon(){return this._fontIcon}set fontIcon(t){const i=this._cleanupFontValue(t);i!==this._fontIcon&&(this._fontIcon=i,this._updateFontIconClasses())}_splitIconName(t){if(!t)return["",""];const i=t.split(":");switch(i.length){case 1:return["",i[0]];case 2:return i;default:throw Error(`Invalid icon name: "${t}"`)}}ngOnInit(){this._updateFontIconClasses()}ngAfterViewChecked(){const t=this._elementsWithExternalReferences;if(t&&t.size){const i=this._location.getPathname();i!==this._previousPath&&(this._previousPath=i,this._prependPathToReferences(i))}}ngOnDestroy(){this._currentIconFetch.unsubscribe(),this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear()}_usingFontIcon(){return!this.svgIcon}_setSvgElement(t){this._clearSvgElement();const i=t.querySelectorAll("style");for(let o=0;o<i.length;o++)i[o].textContent+=" ";const r=this._location.getPathname();this._previousPath=r,this._cacheChildrenWithExternalReferences(t),this._prependPathToReferences(r),this._elementRef.nativeElement.appendChild(t)}_clearSvgElement(){const t=this._elementRef.nativeElement;let i=t.childNodes.length;for(this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear();i--;){const r=t.childNodes[i];(1!==r.nodeType||"svg"===r.nodeName.toLowerCase())&&r.remove()}}_updateFontIconClasses(){if(!this._usingFontIcon())return;const t=this._elementRef.nativeElement,i=this.fontSet?this._iconRegistry.classNameForFontAlias(this.fontSet):this._iconRegistry.getDefaultFontSetClass();i!=this._previousFontSetClass&&(this._previousFontSetClass&&t.classList.remove(this._previousFontSetClass),i&&t.classList.add(i),this._previousFontSetClass=i),this.fontIcon!=this._previousFontIconClass&&(this._previousFontIconClass&&t.classList.remove(this._previousFontIconClass),this.fontIcon&&t.classList.add(this.fontIcon),this._previousFontIconClass=this.fontIcon)}_cleanupFontValue(t){return"string"==typeof t?t.trim().split(" ")[0]:t}_prependPathToReferences(t){const i=this._elementsWithExternalReferences;i&&i.forEach((r,o)=>{r.forEach(s=>{o.setAttribute(s.name,`url('${t}#${s.value}')`)})})}_cacheChildrenWithExternalReferences(t){const i=t.querySelectorAll(V2),r=this._elementsWithExternalReferences=this._elementsWithExternalReferences||new Map;for(let o=0;o<i.length;o++)uS.forEach(s=>{const a=i[o],l=a.getAttribute(s),c=l?l.match(B2):null;if(c){let u=r.get(a);u||(u=[],r.set(a,u)),u.push({name:s,value:c[1]})}})}_updateSvgIcon(t){if(this._svgNamespace=null,this._svgName=null,this._currentIconFetch.unsubscribe(),t){const[i,r]=this._splitIconName(t);i&&(this._svgNamespace=i),r&&(this._svgName=r),this._currentIconFetch=this._iconRegistry.getNamedSvgIcon(r,i).pipe(bc(1)).subscribe(o=>this._setSvgElement(o),o=>{this._errorHandler.handleError(new Error(`Error retrieving icon ${i}:${r}! ${o.message}`))})}}}return n.\u0275fac=function(t){return new(t||n)(v(ye),v(Dc),function va(n){return function z0(n,e){if("class"===e)return n.classes;if("style"===e)return n.styles;const t=n.attrs;if(t){const i=t.length;let r=0;for(;r<i;){const o=t[r];if(gm(o))break;if(0===o)r+=2;else if("number"==typeof o)for(r++;r<i&&"string"==typeof t[r];)r++;else{if(o===e)return t[r+1];r+=2}}}return null}(Re(),n)}("aria-hidden"),v(P2),v(yn))},n.\u0275cmp=Si({type:n,selectors:[["mat-icon"]],hostAttrs:["role","img",1,"mat-icon","notranslate"],hostVars:7,hostBindings:function(t,i){2&t&&(Kt("data-mat-icon-type",i._usingFontIcon()?"font":"svg")("data-mat-icon-name",i._svgName||i.fontIcon)("data-mat-icon-namespace",i._svgNamespace||i.fontSet),zn("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:[J],ngContentSelectors:x2,decls:1,vars:0,template:function(t,i){1&t&&(Dd(),wd(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})(),H2=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=pe({type:n}),n.\u0275inj=ce({imports:[[dn],dn]}),n})();const U2=["elSignature"],z2=["cvSignature"],$2=["divUndo"],G2=["imgSignHere"],W2=function(n){return{"disable-element-temp":n}};let dS=(()=>{class n extends aV{constructor(t,i,r,o,s,a){super(t,o,s,i),this.formbirdInjectorService=t,this.cdRef=i,this.el=r,this.changedDocumentService=o,this.componentSetupService=s,this.compressorBase30Service=a,this.visible=!0,this.disableSave=!1,this.changed=!1,this.notificationService=this.formbirdInjectorService.get("NotificationService")}ngOnInit(){this.componentSetupService.setupStandardProperties(this),null==this.componentDefinition.visible||(this.visible=this.componentDefinition.visible),null==this.componentDefinition.disableSave||(this.disableSave=this.componentDefinition.disableSave),this.lineColor=this.componentDefinition.lineColor,this.penColor="black",null==this.componentDefinition.penColor||(this.penColor=this.componentDefinition.penColor);const t=this.broadcastService.on("formReset").subscribe(()=>{this.signaturePad.clear(),this.hasSignature(!1)});this.subs.add(t)}ngOnDestroy(){this.observer.unobserve(this.elSignature.nativeElement)}initializeFieldValue(){this.divUndo&&this.hasSignature(!1)}onFieldValueChanged(t){t||(this.signaturePad.clear(),this.hasSignature(!1)),this.fieldValue!==t&&(this.fieldValue=t,this.loadData(),this.detectChanges())}valueChanged(t){super.valueChanged(t.map(i=>JSON.stringify(i)))}ngAfterViewInit(){this.signaturePad=new kl(this.cvSignature.nativeElement,{penColor:this.penColor}),this.signaturePad.addEventListener("endStroke",()=>{this.hasSignature(!0);const t=this.signaturePad.toData();this.valueChanged(t)}),this.initializeFieldValue(),this.setupChangeDetection(),this.setFieldActivation(),this.notifyComponentIntialized(),this.resizeCanvas(),this.observer=new ResizeObserver(()=>{console.log("observer called"),this.resizeCanvas()}),this.observer.observe(this.elSignature.nativeElement),this.loadData()}loadData(){if((()=>this.fieldValue&&Array.isArray(this.fieldValue))())try{const i=this.fieldValue.map(r=>JSON.parse(r));this.signaturePad.fromData(i),this.hasSignature(!0)}catch(i){null!=this.fieldValue[1]&&this.fieldValue[1].trim().length>0&&this.compressorBase30Service.pluginDecompressor(this.fieldValue[1],this.fieldValue[0],r=>{const o=this.convertStringDataToPoint(r).map(s=>Object.assign({dotSize:0,maxWidth:2.5,minWidth:.5},s));this.signaturePad.fromData(o),this.hasSignature(!0)})}else this.fieldValue&&"string"==typeof this.fieldValue&&this.compressorBase30Service.pluginDecompressor(this.fieldValue,"image/jsignature;base30",i=>{const r=this.convertStringDataToPoint(i);this.signaturePad.fromData(r),this.hasSignature(!0)})}convertStringDataToPoint(t){const i=[];for(let r=0;r<t.length;r++){const o=[];for(let s=0;s<t[r].x.length;s++)o.push({time:0,x:t[r].x[s],y:t[r].y[s]});i.push({penColor:this.penColor,points:o})}return i}resizeCanvas(){const t=this.signaturePad.toData(),i=Math.max(window.devicePixelRatio||1,1);this.cvSignature.nativeElement.width=this.cvSignature.nativeElement.offsetWidth*i,this.cvSignature.nativeElement.height=this.cvSignature.nativeElement.offsetHeight*i,this.cvSignature.nativeElement.getContext("2d").scale(i,i),this.signaturePad.fromData(t)}undo(){const t=this.signaturePad.toData();t&&(t.pop(),this.signaturePad.fromData(t),this.valueChanged(t)),(!t||0===t.length)&&this.hasSignature(!1)}setFieldActivation(){this.disabled?(this.elSignature.nativeElement.style.cursor="not-allowed",this.divUndo.nativeElement.style["pointer-events"]="none",this.cvSignature.nativeElement.style["pointer-events"]="none"):(this.elSignature.nativeElement.style.cursor="pointer",this.divUndo.nativeElement.style["pointer-events"]="auto",this.cvSignature.nativeElement.style["pointer-events"]="auto")}showToolTip(t,i,r){return r.offsetWidth<=i.scrollWidth}toggleTooltip(t){setTimeout(()=>{t.toggle()})}hasSignature(t){t?(this.divUndo.nativeElement.style.display="block",this.imgSignHere.nativeElement.style.display="none"):(this.divUndo.nativeElement.style.display="none",this.imgSignHere.nativeElement.style.display="block")}}return n.\u0275fac=function(t){return new(t||n)(v(lV),v(Jr),v(ye),v(XC),v(nD),v(cV))},n.\u0275cmp=Si({type:n,selectors:[["ng-component"]],viewQuery:function(t,i){if(1&t&&(Kr(U2,7),Kr(z2,7),Kr($2,7),Kr(G2,7)),2&t){let r;Qr(r=Yr())&&(i.elSignature=r.first),Qr(r=Yr())&&(i.cvSignature=r.first),Qr(r=Yr())&&(i.divUndo=r.first),Qr(r=Yr())&&(i.imgSignHere=r.first)}},inputs:{responsiveLayouts:"responsiveLayouts"},features:[J],decls:20,vars:14,consts:[[1,"signature-wrapper"],["formFieldContainer",""],[3,"click"],["labelContainer",""],[1,"labelToolTipContainer",3,"matTooltip","matTooltipDisabled"],["tooltip","matTooltip"],[1,"ft-signature",3,"ngClass"],[2,"border","2px dotted #000000","background-color","gray",3,"id"],["elSignature",""],["src","data:image/gif;base64,R0lGODlhtABJAOf/AAABAAACAAEEAAIFAQQHAgUIBAcJBQoJAAgLBwwLAAoMCA0MAA8OAwwPCxMQAA8RDRURABYSARITERMVBBQVExcXABgYAhYYFRkaBBwbABkaGB0cAR4dAhocGRsdGh8fBSIgAB0fHB4gHSAhHyQjBSckACIjISgmASQlIyooBSYnJSwpAC0qAC4rAS8rAikqKCssKjEuBTMvAC0uLDUwAjcyBS8xLzg0Bjs1ATIzMTw3Azk5BDQ2MzY3NTs7Bjw8Bzg5Nz49ADo7OUA/AkJABEJBBTw+O0RCBj5APUVECEdFAUFCQElGAkpIBERGQ0xKBk5LB09MCEdJRlJOAlNPA0pLSVRQBFZSBk1PTFdTB1hUCVtVAE9RTlxXAl5YBFJUUVRVU2BaBmFbCFZXVWJcCVZYVVlbWWZgAmhhBGliBVxeW15gXWxlCW1mC2BiX25nDHBoAXJqA2NlYnRrBmZnZXFuCGhpZ3NwCnRxDHVyAHdzAWxta3l1A3p2BW9xbnx4CX55DIB7AHN1coJ8AYN+A3Z4dXh6d4eBCYiCDImDDnt9eoyFAI2GAo6HA36AfZCJBoCCf4KEgZOLDJWND4WHhJiQAYiKh5qSBZ2UCouNip+VDqGXAI6QjaSaA5CSj6ecB5SWk6ieC6qfDq2hAJeZlq+jAJmbmLCkAqynBJyem66oCZ2fnLCqDaCin7StALKsEKOloriwA7qyCaeppry0DamrqL+2AL21EMG4AKyuq8O6Aq6wrca8CbCyr7O1ssm/EcvBAM3DALa4tc/EAri6t7q8udLHCdPIDr2/vNXKEtjMANrNAMDCvtvPAsLEwd3QB8PFwsXHxN/SDcfJxuHUEuTWAOXXAOfYAMvNyejaBc3PzOrcC9DSz+zdEOjgE+viANPV0uzjAO3kAO7lANfZ1vDnBvLoC9nb2PPpD/brAPTqEtze2/ftAPnuAPrvAN/h3vvwAPzxBeHk4P7yCeXn5Ofp5unr6Ovt6u7w7fHz8PP18vX49Pn7+Pv9+v7//P///yH5BAEKAP8ALAAAAAC0AEkAAAj+AP8JHEhQoL+DCAsqXMiwocOHECNKnEixosWHCDNq9Hexo8ePIEOKhHiwXiQVFy6M+EKJ2L2NHEfKnEmz5sWDoAgE2MmT50pLxfDBtEm0qNGQBzntpGJLnLhqqgAxqdAzgIkxmZDlG3q0q9evBqHt1DSvrFmz1VD1URKhqgozmZht3Qi2rl2QB8EEGHS2r19qo/QcadtThRpO0OZqvMu4cUN/8ggs8Oa3cmVpovAQYVAVxhpP0fZxdUy6rr9ZAaxYXm053rJPdYIsqDrDDahpoumW3m3zoKAAiVgLXx1P2ac5O2bzJGBDDils/Ebznt7x4JIAt4ZrZ93u2KY3OJT+7ySQgw4pbdF1U19P0l+DAOK2yxfezpgmNjUM9DTQw04qbuktxt6ABPlDTgAnzKegdu0Ec0kaNOjEkwFA7NEKOAFmROB6/sASwBYLhrgdO8BUckYMEu5kgBB+XNiPdBvadZAfATQi4o3ysfPLJGK4UJUCRvgBCzkwxRSjVwcZEQAuODY5Hzq8SOIFC1U1gIQgs5xT5JFF+dOPAgGY4+SYCpqDSyNdnFDVA0sUUss6W3I5kj/gBMACmXiGWI4ti2hBQlUSOGFILu/EKedNrQQQBoOjeEHCCTggUk2eeYpDSyJXgFAVBVIosos8hh6KkT97BCDJcMrQUFUABPBV1ij+kuASDqVOhiMLIlRwUNUFVTjSCz2hilqgP0AEwItw3nAmwyeyGCPLGZzNKk5PJMARizq0OulNLINEsUFVHWABiS/1wHioP/wYQAC2rNURwAbs9IXOpGUhEl5PCzShSrZkbuPKIE1YAC4XkQhjj7kE+sNNADIM10UAOmz3RAAuELaAX7h4EYQYyfAb4jVRTVWVCCy5hDBv/qQSwBnDfbITFLzEw1o8beHSjix1kGUWOmhUlUV8HouYVh9JEOYTGEAJpV5pB9kRQCXaLUIYBnrQ61cwARgQr1/WUBkAEYPgsJMMMs8jjhixBB0iYHoQAUFVJpSRlWIaNnYQDwEEs13+OYhQtdOpfjESwA+VlePjAqiUFU8lEBhA2Tx/BBDBNWrjiNkdm7llBidynUwUugYY0M587GiSwk6b+MVEAH/41c7qBhx7VjfSmJXFTnNY1s4zlcvn2nGyVfXCYdDo4/mc2ARQQ4jtTBEAB6Ob1c5ssvilyU6fCFfDTgsA3RcgAYjS+4LtKNMJcuLt5BlouR3UJSkBsMFaNY1E3xc1O1Fz1jE7odOXOBNg3XDeph9EVMZ5YhgfjrrznXstpzbEcF9NDiKHAOjMMnkIQO78soydUM4sowgACfwSuQ+UbTXd+FsALLC1s2hhZasJRgWyp0AG2Qc/+mFVLiQ4k4PkIAD+xmDN9QjQCfvNgx3OO0JfBhEAKvjlT3yJxzV4MYpYKINdZZFFADAQjxhY0C8Tc1Vl4BAAPdSQfMHAA6t2wcM57UMyRnSdFXaygUFIAhF/+BYBZGeWK+ylL1gLQDW8UYJVVYAJ35jHIpo4D1QEIAUnLIuaLugXL7piNaJg0hktw0QC9KKNSJlGAHAwnHZ84garcoHezhKPAFbvLJUIwA7mUY309SSIL2TEPOLho0tKTydpq8y04GMZl4FoHrwAAR4GYUdVdOOMnfQFKD/iD1AEAA7yAUYf0JAFQMTCfq7AwRHmGABVeG8eTCRCWcTRjXCUgx3HKGBZ/qTJUzDMfs/+2EnHKqOKANBgNTsIAA3fsCoCMOET/hsf+AwgjGnexB9uCEAnxjSHVQVAmWXRgyxd9wM7jS6FASiH4nwEuHm8ImtxNIsa72CZcuzkcVF4JBSsEIRv7YQBzxxfH7IWQSN55CAzCIAyxsQOUSxiDle4gXIWMDpXBKACH1zn6rBTln6C4CwhXMAHGxGAG6yGCAFIXGW0iAGz+IiGZflFG2o2D2kwgQiJ2Ce/NGqAYjiUIge5ADFpFY9njOIXZVHHtzbQh1GoQg8YYFXqyrLTKbBSVVooSxoC8IbVtKV2lWHiFcryjZ1g9izt+GAbejKFofLrDllDxl0lkte9Vu4ZNu3+SQReWZYg/PEswNhJ9WyL1r5cg1W8CEYwjrEMb0RvdVBr5LuEY9smyGA8tPCLLS5xjWpYI6XyqagBVOvTihykA0JVoDk2oYQayOCgWJwHOoDpl9GWQB2c4R0/LbqTCaRAP8soCxkXxZpvMWkUbWGAac2iqZ58YA6rVFBFFcCM1Y6KDhrc5Gq0yIAWmkUcVAmD5FZDxgq4gAUpOMEG0rcBswagDso451nMsRNrlOUaqwPB445IX4qNYkEEVQA0HOwQOgVgAQmW8FmWEYHWVcZlO2nCaqgkvr6UQxoa5q8yqrIAEhBBDJOI3kktAFoqya8s0mDVNr6xDWBcAqwB+ED+iNgQAAVEg8cMOYgaJMdHIZvFwn45wk4mYZltvNQyvC2LyxaQ2FVpcrT8NYsjSyxoO/nlGo3Y14LiMdkGTAPOC0HXF3aCg0ocA7t29m0MIpBTv7jsn5Z5G2bPEIA2zKMd1aBiI+Zwh6396cZnwdrFJNtqSsWD1Q3ABqYVgi5H6JV7OoBDJ5QBajujQ6SWYbUZK5NCppaFyazJpwGgXRZ0xPROkgwArvMUDzEE4AHC7i5r0VULN8wgRT/2wRw+oYxIhno1p7OFZXBBsbK0QyefrYwkdlKDJkxBC10IoEBfvJNS56kdXgiABLQx7IJoZB/R8MQaYEDlINThE8+w973+y4IHKoD6elkoizX6x5rbWdQCTZ4HVxFEBC/ooRKqCEaz5wNxiXOj4sTeiD6gwQk1vKAqDCACHkYR8JGvhomAKEtud43vAExBQgsYRDAi+TD6qnNM7diCz4H+mI3kgxmZMIMKqhKBI+hhFPpzul+OsQV6hYNVbfgFnsvCjp08IxheS0Mcv7UIo87BCjhIrGPJ1I4XUgAcZG+PRvCBDEuMwQRsV0IfUGE1uZ+F1eNJgRYG8YnoGQOlR3TXh+wXZteaReRNasccLwB5dcsEJvggBiW+IIKqHBIQqoiq3F+xBaP9rdGoLgsTI9xocFeuHVQIwAWIZPsJbuQewqAEFzz+UBULNAEQr9iG3OszikFsQQmmdVkd+hLxALwyEQFQ8vjaEVMNaKn6XdpIPXwBCSyAtycbAAWDEAsO53m8kFB3ZlslUBYVlUAK1A4T0wH35xgwQQ+94AhVcGw8sQFTQAixkEie5xfhQARpkFEBwAQz1jvs0AQB0AFwgn9gUSTykAuKIAUSUBUgYAWIIAsqFoLzcAsqQgRwoAm/kIL8wg6rEwKFAoN3USTvkAuG4AQ32BMgkAWLcAs9OHKvoCZVwQI7R1RJEAAisIQbUiTrUAuFsATv0RMlsAWMgAvcNnLPIAlioANtEQFiojbqoGcjACpMiDIwcQ6zIAhIACY9kQL+XRAreeh03rCIaoMOYGUCfigs/1Ak5AALfmAEhsgTLOAFknCAPsgv1bAIPhIAKFAuf1iGG9EP4NAKewAEOcQTLoBlv5BeoRgi3TAJAbUTDeAGxBAglBhnG8EP3LAKdtADscgqMXAGlQAMe3eLliEOmqBnKlIGu9A+qRiMlTiM2mAKdJAD8EYANJAGl6Bz0NgX5vAJTyAhBIAFs0A32vhTw4gNpCAHNgBvBlADbKAJxvCFm8QOqqAF4uEEq6A0kRePPbYR+zANoOBuVIYDbbAJn2Zn7RALYsAZO2EEoICKB4mQeKWQGWd0VJZsy+aPYxIPuMAGRpMDmeCHHemR1GS+ds5QdGuHL/JGb7DXJMBQB7H1ApBwfy8Jkz1kdsiQCWWAAh33cSGHI8fwB3+yEyZgCD9XN0LJHrhXDJYABpjXE0m3dE3HGtIwCKXYgn5waVRZlVwCE/ege7zHdm4Hd5UBaduzExJAB8jwIgmBlggJE/YgDJHABf/HExGgeaigDJVgW7yoBsKQIXrZmNuoEfvnCFigARZlAGCQC9jomJppcRshD72gCFXQAVUAC/C4maaZaUWSl6e5mgkZlBYREAA7","alt","sign here",1,"sign-here"],["imgSignHere",""],[3,"id"],["cvSignature",""],[1,"undo-wrapper"],["divUndo",""],["type","button","mat-raised-button","","color","primary",3,"disabled","click"]],template:function(t,i){if(1&t){const r=function iy(){return C()}();Yt(0,"div",0,1),Yt(2,"mat-label",2,3),dt("click",function(){!function om(n){return L.lFrame.contextLView=n,n[8]}(r);const s=es(6);return i.toggleTooltip(s)}),ns(4),Zt(),Hr(5,"div",4,5),Yt(7,"div",6),Yt(8,"div",7,8),Hr(10,"img",9,10),Hr(12,"canvas",11,12),Yt(14,"div",13,14),Yt(16,"button",15),dt("click",function(){return i.undo()}),Yt(17,"mat-icon"),ns(18,"undo"),Zt(),ns(19," Undo Last Stroke "),Zt(),Zt(),Zt(),Zt(),Zt()}if(2&t){const r=es(1),o=es(3),s=es(6);bn(2),Dy(null!=i.componentDefinition&&i.componentDefinition.mandatory?"mandatory":""),bn(2),$a(" ",null==i.componentDefinition?null:i.componentDefinition.label," "),bn(1),Sd("matTooltip",i.componentDefinition.label),Un("matTooltipDisabled",i.showToolTip(s,r,o)),bn(2),Un("ngClass",function Fv(n,e,t,i){return Rv(C(),et(),n,e,t,i)}(12,W2,i.disabled)),bn(1),Un("id",i.fieldName),bn(4),Ua("pointer-events",i.disabled?"none":"auto"),Un("id","cv"+i.fieldName),bn(4),Un("disabled",i.disabled)}},directives:[Pj,XH,$h,l2,j2],styles:["html.touch #content{float:left;width:92%}html.touch #scrollgrabber{float:right;width:4%;margin-right:2%;background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAAFCAAAAACh79lDAAAAAXNSR0IArs4c6QAAABJJREFUCB1jmMmQxjCT4T/DfwAPLgOXlrt3IwAAAABJRU5ErkJggg==)}html.borderradius #scrollgrabber{border-radius:1em}.signature-wrapper .ft-signature{margin-top:5px;margin-bottom:10px}@media screen and (max-width: 520.98px){.signature-wrapper .ft-signature{margin:0}}.signature-wrapper canvas{background-color:transparent!important;touch-action:none;min-height:200px!important;width:100%}.signature-wrapper .sign-here{position:absolute;min-width:90px!important;max-width:180px!important;width:8%!important;-webkit-user-drag:none;-webkit-user-select:none;user-select:none;pointer-events:none}.signature-wrapper .undo-wrapper{display:none;touch-action:none;position:relative;padding:0!important;margin:-1.5em 0 1.5em!important;width:100%!important;height:0!important;text-align:center}.signature-wrapper .undo-wrapper button{position:relative;top:auto;margin:-9px 0 0!important}\n"],encapsulation:2,changeDetection:0}),n})();let fS=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=pe({type:n}),n.\u0275inj=ce({imports:[[ql]]}),n})(),Q2=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=pe({type:n}),n.\u0275inj=ce({providers:[wj],imports:[[fS,mp,dn],fS,mp]}),n})();const Z2=new class Y2 extends cn{}(class K2 extends Nl{constructor(e,t){super(e,t),this.scheduler=e,this.work=t}schedule(e,t=0){return t>0?super.schedule(e,t):(this.delay=t,this.state=e,this.scheduler.flush(this),this)}execute(e,t){return t>0||this.closed?super.execute(e,t):this._execute(e,t)}requestAsyncId(e,t,i=0){return null!==i&&i>0||null===i&&this.delay>0?super.requestAsyncId(e,t,i):e.flush(this)}});class Ht{constructor(e,t,i){this.kind=e,this.value=t,this.error=i,this.hasValue="N"===e}observe(e){switch(this.kind){case"N":return e.next&&e.next(this.value);case"E":return e.error&&e.error(this.error);case"C":return e.complete&&e.complete()}}do(e,t,i){switch(this.kind){case"N":return e&&e(this.value);case"E":return t&&t(this.error);case"C":return i&&i()}}accept(e,t,i){return e&&"function"==typeof e.next?this.observe(e):this.do(e,t,i)}toObservable(){switch(this.kind){case"N":return An(this.value);case"E":return Xw(this.error);case"C":return Pw()}throw new Error("unexpected notification kind value")}static createNext(e){return void 0!==e?new Ht("N",e):Ht.undefinedValueNotification}static createError(e){return new Ht("E",void 0,e)}static createComplete(){return Ht.completeNotification}}Ht.completeNotification=new Ht("C"),Ht.undefinedValueNotification=new Ht("N",void 0);class Sc extends ve{constructor(e,t,i=0){super(e),this.scheduler=t,this.delay=i}static dispatch(e){const{notification:t,destination:i}=e;t.observe(i),this.unsubscribe()}scheduleMessage(e){this.destination.add(this.scheduler.schedule(Sc.dispatch,this.delay,new J2(e,this.destination)))}_next(e){this.scheduleMessage(Ht.createNext(e))}_error(e){this.scheduleMessage(Ht.createError(e)),this.unsubscribe()}_complete(){this.scheduleMessage(Ht.createComplete()),this.unsubscribe()}}class J2{constructor(e,t){this.notification=e,this.destination=t}}class eU extends Pe{constructor(e=Number.POSITIVE_INFINITY,t=Number.POSITIVE_INFINITY,i){super(),this.scheduler=i,this._events=[],this._infiniteTimeWindow=!1,this._bufferSize=e<1?1:e,this._windowTime=t<1?1:t,t===Number.POSITIVE_INFINITY?(this._infiniteTimeWindow=!0,this.next=this.nextInfiniteTimeWindow):this.next=this.nextTimeWindow}nextInfiniteTimeWindow(e){if(!this.isStopped){const t=this._events;t.push(e),t.length>this._bufferSize&&t.shift()}super.next(e)}nextTimeWindow(e){this.isStopped||(this._events.push(new tU(this._getNow(),e)),this._trimBufferThenGetEvents()),super.next(e)}_subscribe(e){const t=this._infiniteTimeWindow,i=t?this._events:this._trimBufferThenGetEvents(),r=this.scheduler,o=i.length;let s;if(this.closed)throw new Di;if(this.isStopped||this.hasError?s=se.EMPTY:(this.observers.push(e),s=new xp(this,e)),r&&e.add(e=new Sc(e,r)),t)for(let a=0;a<o&&!e.closed;a++)e.next(i[a]);else for(let a=0;a<o&&!e.closed;a++)e.next(i[a].value);return this.hasError?e.error(this.thrownError):this.isStopped&&e.complete(),s}_getNow(){return(this.scheduler||Z2).now()}_trimBufferThenGetEvents(){const e=this._getNow(),t=this._bufferSize,i=this._windowTime,r=this._events,o=r.length;let s=0;for(;s<o&&!(e-r[s].time<i);)s++;return o>t&&(s=Math.max(s,o-t)),s>0&&r.splice(0,s),r}}class tU{constructor(e,t){this.time=e,this.value=t}}function pS(n,e){return"function"==typeof e?t=>t.pipe(pS((i,r)=>Ys(n(i,r)).pipe(Ue((o,s)=>e(i,o,r,s))))):t=>t.lift(new nU(n))}class nU{constructor(e){this.project=e}call(e,t){return t.subscribe(new iU(e,this.project))}}class iU extends Co{constructor(e,t){super(e),this.project=t,this.index=0}_next(e){let t;const i=this.index++;try{t=this.project(e,i)}catch(r){return void this.destination.error(r)}this._innerSub(t)}_innerSub(e){const t=this.innerSubscription;t&&t.unsubscribe();const i=new bo(this),r=this.destination;r.add(i),this.innerSubscription=Eo(e,i),this.innerSubscription!==i&&r.add(this.innerSubscription)}_complete(){const{innerSubscription:e}=this;(!e||e.closed)&&super._complete(),this.unsubscribe()}_unsubscribe(){this.innerSubscription=void 0}notifyComplete(){this.innerSubscription=void 0,this.isStopped&&super._complete()}notifyNext(e){this.destination.next(e)}}const Mc={schedule(n,e){const t=setTimeout(n,e);return()=>clearTimeout(t)},scheduleBeforeRender(n){if("undefined"==typeof window)return Mc.schedule(n,0);if(void 0===window.requestAnimationFrame)return Mc.schedule(n,16);const e=window.requestAnimationFrame(n);return()=>window.cancelAnimationFrame(e)}};let Dp;function fU(n,e,t){let i=t;return function sU(n){return!!n&&n.nodeType===Node.ELEMENT_NODE}(n)&&e.some((r,o)=>!("*"===r||!function lU(n,e){if(!Dp){const t=Element.prototype;Dp=t.matches||t.matchesSelector||t.mozMatchesSelector||t.msMatchesSelector||t.oMatchesSelector||t.webkitMatchesSelector}return n.nodeType===Node.ELEMENT_NODE&&Dp.call(n,e)}(n,r)||(i=o,0))),i}class mU{constructor(e,t){this.componentFactory=t.get($n).resolveComponentFactory(e)}create(e){return new gU(this.componentFactory,e)}}class gU{constructor(e,t){this.componentFactory=e,this.injector=t,this.eventEmitters=new eU(1),this.events=this.eventEmitters.pipe(pS(i=>Oc(...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(oe),this.elementZone="undefined"==typeof Zone?null:this.ngZone.run(()=>Zone.current)}connect(e){this.runInZone(()=>{if(null!==this.scheduledDestroyFn)return this.scheduledDestroyFn(),void(this.scheduledDestroyFn=null);null===this.componentRef&&this.initializeComponent(e)})}disconnect(){this.runInZone(()=>{null===this.componentRef||null!==this.scheduledDestroyFn||(this.scheduledDestroyFn=Mc.schedule(()=>{null!==this.componentRef&&(this.componentRef.destroy(),this.componentRef=null,this.viewChangeDetectorRef=null)},10))})}getInputValue(e){return this.runInZone(()=>null===this.componentRef?this.initialInputValues.get(e):this.componentRef.instance[e])}setInputValue(e,t){this.runInZone(()=>{null!==this.componentRef?function cU(n,e){return n===e||n!=n&&e!=e}(t,this.getInputValue(e))&&(void 0!==t||!this.unchangedInputs.has(e))||(this.recordInputChange(e,t),this.unchangedInputs.delete(e),this.hasInputChanges=!0,this.componentRef.instance[e]=t,this.scheduleDetectChanges()):this.initialInputValues.set(e,t)})}initializeComponent(e){const t=re.create({providers:[],parent:this.injector}),i=function hU(n,e){const t=n.childNodes,i=e.map(()=>[]);let r=-1;e.some((o,s)=>"*"===o&&(r=s,!0));for(let o=0,s=t.length;o<s;++o){const a=t[o],l=fU(a,e,r);-1!==l&&i[l].push(a)}return i}(e,this.componentFactory.ngContentSelectors);this.componentRef=this.componentFactory.create(t,i,e),this.viewChangeDetectorRef=this.componentRef.injector.get(Jr),this.implementsOnChanges=function aU(n){return"function"==typeof n}(this.componentRef.instance.ngOnChanges),this.initializeInputs(),this.initializeOutputs(this.componentRef),this.detectChanges(),this.injector.get(Hi).attachView(this.componentRef.hostView)}initializeInputs(){this.componentFactory.inputs.forEach(({propName:e})=>{this.initialInputValues.has(e)&&this.setInputValue(e,this.initialInputValues.get(e))}),this.initialInputValues.clear()}initializeOutputs(e){const t=this.componentFactory.outputs.map(({propName:i,templateName:r})=>e.instance[i].pipe(Ue(s=>({name:r,value:s}))));this.eventEmitters.next(t)}callNgOnChanges(e){if(!this.implementsOnChanges||null===this.inputChanges)return;const t=this.inputChanges;this.inputChanges=null,e.instance.ngOnChanges(t)}markViewForCheck(e){this.hasInputChanges&&(this.hasInputChanges=!1,e.markForCheck())}scheduleDetectChanges(){this.scheduledChangeDetectionFn||(this.scheduledChangeDetectionFn=Mc.scheduleBeforeRender(()=>{this.scheduledChangeDetectionFn=null,this.detectChanges()}))}recordInputChange(e,t){if(!this.implementsOnChanges)return;null===this.inputChanges&&(this.inputChanges={});const i=this.inputChanges[e];if(i)return void(i.currentValue=t);const r=this.unchangedInputs.has(e),o=r?void 0:this.getInputValue(e);this.inputChanges[e]=new Gc(o,t,r)}detectChanges(){null!==this.componentRef&&(this.callNgOnChanges(this.componentRef),this.markViewForCheck(this.viewChangeDetectorRef),this.componentRef.changeDetectorRef.detectChanges())}runInZone(e){return this.elementZone&&Zone.current!==this.elementZone?this.ngZone.run(e):e()}}class _U extends HTMLElement{constructor(){super(...arguments),this.ngElementEventsSubscription=null}}let vU=(()=>{class n{constructor(t){this.fbInjectorService=t,this.convertToCustomElement=(i,r,o,s,a,l)=>{if(s&&this.fbInjectorService.isAngularJSCore()&&(r+=s),a||(a="NOT-SET"),!customElements.get(r)){const c=function yU(n,e){const t=function dU(n,e){return e.get($n).resolveComponentFactory(n).inputs}(n,e.injector),i=e.strategyFactory||new mU(n,e.injector),r=function uU(n){const e={};return n.forEach(({propName:t,templateName:i})=>{e[function rU(n){return n.replace(/[A-Z]/g,e=>`-${e.toLowerCase()}`)}(i)]=t}),e}(t);class o extends _U{constructor(a){super(),this.injector=a}get ngElementStrategy(){if(!this._ngElementStrategy){const a=this._ngElementStrategy=i.create(this.injector||e.injector);t.forEach(({propName:l})=>{if(!this.hasOwnProperty(l))return;const c=this[l];delete this[l],a.setInputValue(l,c)})}return this._ngElementStrategy}attributeChangedCallback(a,l,c,u){this.ngElementStrategy.setInputValue(r[a],c)}connectedCallback(){let a=!1;this.ngElementStrategy.events&&(this.subscribeToEvents(),a=!0),this.ngElementStrategy.connect(this),a||this.subscribeToEvents()}disconnectedCallback(){this._ngElementStrategy&&this._ngElementStrategy.disconnect(),this.ngElementEventsSubscription&&(this.ngElementEventsSubscription.unsubscribe(),this.ngElementEventsSubscription=null)}subscribeToEvents(){this.ngElementEventsSubscription=this.ngElementStrategy.events.subscribe(a=>{const l=function oU(n,e,t){if("function"!=typeof CustomEvent){const o=n.createEvent("CustomEvent");return o.initCustomEvent(e,!1,!1,t),o}return new CustomEvent(e,{bubbles:!1,cancelable:!1,detail:t})}(this.ownerDocument,a.name,a.value);this.dispatchEvent(l)})}}return o.observedAttributes=Object.keys(r),t.forEach(({propName:s})=>{Object.defineProperty(o.prototype,s,{get(){return this.ngElementStrategy.getInputValue(s)},set(a){this.ngElementStrategy.setInputValue(s,a)},configurable:!0,enumerable:!0})}),o}(i,{injector:o}),u=c.prototype.connectedCallback||function(){};c.prototype.connectedCallback=function(){this.setAttribute("fb-component-version",a),l&&(this.setAttribute("is-static-panel",l.isStaticPanel),this.setAttribute("is-collapsible-panel",l.isCollapsiblePanel)),u.call(this)},customElements.define(r,c)}}}}return n.\u0275fac=function(t){return new(t||n)(b(af))},n.\u0275prov=I({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),bU=(()=>{class n{constructor(t,i){this.injector=t,this.customElementService=i,i.convertToCustomElement(dS,"sc-signature",this.injector,"-ng","7.1.12.1"),i.convertToCustomElement(dS,"sc-signature-web-component",this.injector,null,"7.1.12.1")}}return n.\u0275fac=function(t){return new(t||n)(b(re),b(vU))},n.\u0275mod=pe({type:n}),n.\u0275inj=ce({imports:[[As,oV,c2,H2,Q2,mp,t2]]}),n})(),CU=(()=>{class n{constructor(){}ngDoBootstrap(){}}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=pe({type:n}),n.\u0275inj=ce({providers:[],imports:[[As,Y1,bU]]}),n})();(function XR(){if(yb)throw new Error("Cannot enable prod mode after platform setup.");_b=!1})(),Q1().bootstrapModule(CU).catch(n=>console.error(n))}},Xn=>{Xn(Xn.s=531)}]);
1
+ "use strict";(self.webpackChunksc_signature=self.webpackChunksc_signature||[]).push([[179],{531:()=>{function Xn(n){return"function"==typeof n}let yo=!1;const It={Promise:void 0,set useDeprecatedSynchronousErrorHandling(n){if(n){const e=new Error;console.warn("DEPRECATED! RxJS was set to use deprecated synchronous error handling behavior by code at: \n"+e.stack)}else yo&&console.log("RxJS: Back to a better error behavior. Thank you. <3");yo=n},get useDeprecatedSynchronousErrorHandling(){return yo}};function Jn(n){setTimeout(()=>{throw n},0)}const Ws={closed:!0,next(n){},error(n){if(It.useDeprecatedSynchronousErrorHandling)throw n;Jn(n)},complete(){}},ir=Array.isArray||(n=>n&&"number"==typeof n.length);function Ic(n){return null!==n&&"object"==typeof n}const qs=(()=>{function n(e){return Error.call(this),this.message=e?`${e.length} errors occurred during unsubscription:\n${e.map((t,i)=>`${i+1}) ${t.toString()}`).join("\n ")}`:"",this.name="UnsubscriptionError",this.errors=e,this}return n.prototype=Object.create(Error.prototype),n})();class se{constructor(e){this.closed=!1,this._parentOrParents=null,this._subscriptions=null,e&&(this._ctorUnsubscribe=!0,this._unsubscribe=e)}unsubscribe(){let e;if(this.closed)return;let{_parentOrParents:t,_ctorUnsubscribe:i,_unsubscribe:r,_subscriptions:o}=this;if(this.closed=!0,this._parentOrParents=null,this._subscriptions=null,t instanceof se)t.remove(this);else if(null!==t)for(let s=0;s<t.length;++s)t[s].remove(this);if(Xn(r)){i&&(this._unsubscribe=void 0);try{r.call(this)}catch(s){e=s instanceof qs?Sp(s.errors):[s]}}if(ir(o)){let s=-1,a=o.length;for(;++s<a;){const l=o[s];if(Ic(l))try{l.unsubscribe()}catch(c){e=e||[],c instanceof qs?e=e.concat(Sp(c.errors)):e.push(c)}}}if(e)throw new qs(e)}add(e){let t=e;if(!e)return se.EMPTY;switch(typeof e){case"function":t=new se(e);case"object":if(t===this||t.closed||"function"!=typeof t.unsubscribe)return t;if(this.closed)return t.unsubscribe(),t;if(!(t instanceof se)){const o=t;t=new se,t._subscriptions=[o]}break;default:throw new Error("unrecognized teardown "+e+" added to Subscription.")}let{_parentOrParents:i}=t;if(null===i)t._parentOrParents=this;else if(i instanceof se){if(i===this)return t;t._parentOrParents=[i,this]}else{if(-1!==i.indexOf(this))return t;i.push(this)}const r=this._subscriptions;return null===r?this._subscriptions=[t]:r.push(t),t}remove(e){const t=this._subscriptions;if(t){const i=t.indexOf(e);-1!==i&&t.splice(i,1)}}}var n;function Sp(n){return n.reduce((e,t)=>e.concat(t instanceof qs?t.errors:t),[])}se.EMPTY=((n=new se).closed=!0,n);const Qs="function"==typeof Symbol?Symbol("rxSubscriber"):"@@rxSubscriber_"+Math.random();class ve extends se{constructor(e,t,i){switch(super(),this.syncErrorValue=null,this.syncErrorThrown=!1,this.syncErrorThrowable=!1,this.isStopped=!1,arguments.length){case 0:this.destination=Ws;break;case 1:if(!e){this.destination=Ws;break}if("object"==typeof e){e instanceof ve?(this.syncErrorThrowable=e.syncErrorThrowable,this.destination=e,e.add(this)):(this.syncErrorThrowable=!0,this.destination=new Mp(this,e));break}default:this.syncErrorThrowable=!0,this.destination=new Mp(this,e,t,i)}}[Qs](){return this}static create(e,t,i){const r=new ve(e,t,i);return r.syncErrorThrowable=!1,r}next(e){this.isStopped||this._next(e)}error(e){this.isStopped||(this.isStopped=!0,this._error(e))}complete(){this.isStopped||(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe())}_next(e){this.destination.next(e)}_error(e){this.destination.error(e),this.unsubscribe()}_complete(){this.destination.complete(),this.unsubscribe()}_unsubscribeAndRecycle(){const{_parentOrParents:e}=this;return this._parentOrParents=null,this.unsubscribe(),this.closed=!1,this.isStopped=!1,this._parentOrParents=e,this}}class Mp extends ve{constructor(e,t,i,r){super(),this._parentSubscriber=e;let o,s=this;Xn(t)?o=t:t&&(o=t.next,i=t.error,r=t.complete,t!==Ws&&(s=Object.create(t),Xn(s.unsubscribe)&&this.add(s.unsubscribe.bind(s)),s.unsubscribe=this.unsubscribe.bind(this))),this._context=s,this._next=o,this._error=i,this._complete=r}next(e){if(!this.isStopped&&this._next){const{_parentSubscriber:t}=this;It.useDeprecatedSynchronousErrorHandling&&t.syncErrorThrowable?this.__tryOrSetError(t,this._next,e)&&this.unsubscribe():this.__tryOrUnsub(this._next,e)}}error(e){if(!this.isStopped){const{_parentSubscriber:t}=this,{useDeprecatedSynchronousErrorHandling:i}=It;if(this._error)i&&t.syncErrorThrowable?(this.__tryOrSetError(t,this._error,e),this.unsubscribe()):(this.__tryOrUnsub(this._error,e),this.unsubscribe());else if(t.syncErrorThrowable)i?(t.syncErrorValue=e,t.syncErrorThrown=!0):Jn(e),this.unsubscribe();else{if(this.unsubscribe(),i)throw e;Jn(e)}}}complete(){if(!this.isStopped){const{_parentSubscriber:e}=this;if(this._complete){const t=()=>this._complete.call(this._context);It.useDeprecatedSynchronousErrorHandling&&e.syncErrorThrowable?(this.__tryOrSetError(e,t),this.unsubscribe()):(this.__tryOrUnsub(t),this.unsubscribe())}else this.unsubscribe()}}__tryOrUnsub(e,t){try{e.call(this._context,t)}catch(i){if(this.unsubscribe(),It.useDeprecatedSynchronousErrorHandling)throw i;Jn(i)}}__tryOrSetError(e,t,i){if(!It.useDeprecatedSynchronousErrorHandling)throw new Error("bad call");try{t.call(this._context,i)}catch(r){return It.useDeprecatedSynchronousErrorHandling?(e.syncErrorValue=r,e.syncErrorThrown=!0,!0):(Jn(r),!0)}return!1}_unsubscribe(){const{_parentSubscriber:e}=this;this._context=null,this._parentSubscriber=null,e.unsubscribe()}}const vo="function"==typeof Symbol&&Symbol.observable||"@@observable";function Ap(n){return n}let me=(()=>{class n{constructor(t){this._isScalar=!1,t&&(this._subscribe=t)}lift(t){const i=new n;return i.source=this,i.operator=t,i}subscribe(t,i,r){const{operator:o}=this,s=function gS(n,e,t){if(n){if(n instanceof ve)return n;if(n[Qs])return n[Qs]()}return n||e||t?new ve(n,e,t):new ve(Ws)}(t,i,r);if(s.add(o?o.call(s,this.source):this.source||It.useDeprecatedSynchronousErrorHandling&&!s.syncErrorThrowable?this._subscribe(s):this._trySubscribe(s)),It.useDeprecatedSynchronousErrorHandling&&s.syncErrorThrowable&&(s.syncErrorThrowable=!1,s.syncErrorThrown))throw s.syncErrorValue;return s}_trySubscribe(t){try{return this._subscribe(t)}catch(i){It.useDeprecatedSynchronousErrorHandling&&(t.syncErrorThrown=!0,t.syncErrorValue=i),function mS(n){for(;n;){const{closed:e,destination:t,isStopped:i}=n;if(e||i)return!1;n=t&&t instanceof ve?t:null}return!0}(t)?t.error(i):console.warn(i)}}forEach(t,i){return new(i=Tp(i))((r,o)=>{let s;s=this.subscribe(a=>{try{t(a)}catch(l){o(l),s&&s.unsubscribe()}},o,r)})}_subscribe(t){const{source:i}=this;return i&&i.subscribe(t)}[vo](){return this}pipe(...t){return 0===t.length?this:function Ip(n){return 0===n.length?Ap:1===n.length?n[0]:function(t){return n.reduce((i,r)=>r(i),t)}}(t)(this)}toPromise(t){return new(t=Tp(t))((i,r)=>{let o;this.subscribe(s=>o=s,s=>r(s),()=>i(o))})}}return n.create=e=>new n(e),n})();function Tp(n){if(n||(n=It.Promise||Promise),!n)throw new Error("no Promise impl found");return n}const Di=(()=>{function n(){return Error.call(this),this.message="object unsubscribed",this.name="ObjectUnsubscribedError",this}return n.prototype=Object.create(Error.prototype),n})();class xp extends se{constructor(e,t){super(),this.subject=e,this.subscriber=t,this.closed=!1}unsubscribe(){if(this.closed)return;this.closed=!0;const e=this.subject,t=e.observers;if(this.subject=null,!t||0===t.length||e.isStopped||e.closed)return;const i=t.indexOf(this.subscriber);-1!==i&&t.splice(i,1)}}class Fp extends ve{constructor(e){super(e),this.destination=e}}let Pe=(()=>{class n extends me{constructor(){super(),this.observers=[],this.closed=!1,this.isStopped=!1,this.hasError=!1,this.thrownError=null}[Qs](){return new Fp(this)}lift(t){const i=new Rp(this,this);return i.operator=t,i}next(t){if(this.closed)throw new Di;if(!this.isStopped){const{observers:i}=this,r=i.length,o=i.slice();for(let s=0;s<r;s++)o[s].next(t)}}error(t){if(this.closed)throw new Di;this.hasError=!0,this.thrownError=t,this.isStopped=!0;const{observers:i}=this,r=i.length,o=i.slice();for(let s=0;s<r;s++)o[s].error(t);this.observers.length=0}complete(){if(this.closed)throw new Di;this.isStopped=!0;const{observers:t}=this,i=t.length,r=t.slice();for(let o=0;o<i;o++)r[o].complete();this.observers.length=0}unsubscribe(){this.isStopped=!0,this.closed=!0,this.observers=null}_trySubscribe(t){if(this.closed)throw new Di;return super._trySubscribe(t)}_subscribe(t){if(this.closed)throw new Di;return this.hasError?(t.error(this.thrownError),se.EMPTY):this.isStopped?(t.complete(),se.EMPTY):(this.observers.push(t),new xp(this,t))}asObservable(){const t=new me;return t.source=this,t}}return n.create=(e,t)=>new Rp(e,t),n})();class Rp extends Pe{constructor(e,t){super(),this.destination=e,this.source=t}next(e){const{destination:t}=this;t&&t.next&&t.next(e)}error(e){const{destination:t}=this;t&&t.error&&this.destination.error(e)}complete(){const{destination:e}=this;e&&e.complete&&this.destination.complete()}_subscribe(e){const{source:t}=this;return t?this.source.subscribe(e):se.EMPTY}}function rr(n){return n&&"function"==typeof n.schedule}function Ue(n,e){return function(i){if("function"!=typeof n)throw new TypeError("argument is not a function. Are you looking for `mapTo()`?");return i.lift(new _S(n,e))}}class _S{constructor(e,t){this.project=e,this.thisArg=t}call(e,t){return t.subscribe(new yS(e,this.project,this.thisArg))}}class yS extends ve{constructor(e,t,i){super(e),this.project=t,this.count=0,this.thisArg=i||this}_next(e){let t;try{t=this.project.call(this.thisArg,e,this.count++)}catch(i){return void this.destination.error(i)}this.destination.next(t)}}const Op=n=>e=>{for(let t=0,i=n.length;t<i&&!e.closed;t++)e.next(n[t]);e.complete()},Ks=function bS(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}(),kp=n=>n&&"number"==typeof n.length&&"function"!=typeof n;function Np(n){return!!n&&"function"!=typeof n.subscribe&&"function"==typeof n.then}const Tc=n=>{if(n&&"function"==typeof n[vo])return(n=>e=>{const t=n[vo]();if("function"!=typeof t.subscribe)throw new TypeError("Provided object does not correctly implement Symbol.observable");return t.subscribe(e)})(n);if(kp(n))return Op(n);if(Np(n))return(n=>e=>(n.then(t=>{e.closed||(e.next(t),e.complete())},t=>e.error(t)).then(null,Jn),e))(n);if(n&&"function"==typeof n[Ks])return(n=>e=>{const t=n[Ks]();for(;;){let i;try{i=t.next()}catch(r){return e.error(r),e}if(i.done){e.complete();break}if(e.next(i.value),e.closed)break}return"function"==typeof t.return&&e.add(()=>{t.return&&t.return()}),e})(n);{const t=`You provided ${Ic(n)?"an invalid object":`'${n}'`} where a stream was expected. You can provide an Observable, Promise, Array, or Iterable.`;throw new TypeError(t)}};function xc(n,e){return new me(t=>{const i=new se;let r=0;return i.add(e.schedule(function(){r!==n.length?(t.next(n[r++]),t.closed||i.add(this.schedule())):t.complete()})),i})}function Ys(n,e){return e?function IS(n,e){if(null!=n){if(function MS(n){return n&&"function"==typeof n[vo]}(n))return function DS(n,e){return new me(t=>{const i=new se;return i.add(e.schedule(()=>{const r=n[vo]();i.add(r.subscribe({next(o){i.add(e.schedule(()=>t.next(o)))},error(o){i.add(e.schedule(()=>t.error(o)))},complete(){i.add(e.schedule(()=>t.complete()))}}))})),i})}(n,e);if(Np(n))return function wS(n,e){return new me(t=>{const i=new se;return i.add(e.schedule(()=>n.then(r=>{i.add(e.schedule(()=>{t.next(r),i.add(e.schedule(()=>t.complete()))}))},r=>{i.add(e.schedule(()=>t.error(r)))}))),i})}(n,e);if(kp(n))return xc(n,e);if(function AS(n){return n&&"function"==typeof n[Ks]}(n)||"string"==typeof n)return function SS(n,e){if(!n)throw new Error("Iterable cannot be null");return new me(t=>{const i=new se;let r;return i.add(()=>{r&&"function"==typeof r.return&&r.return()}),i.add(e.schedule(()=>{r=n[Ks](),i.add(e.schedule(function(){if(t.closed)return;let o,s;try{const a=r.next();o=a.value,s=a.done}catch(a){return void t.error(a)}s?t.complete():(t.next(o),this.schedule())}))})),i})}(n,e)}throw new TypeError((null!==n&&typeof n||n)+" is not observable")}(n,e):n instanceof me?n:new me(Tc(n))}class bo extends ve{constructor(e){super(),this.parent=e}_next(e){this.parent.notifyNext(e)}_error(e){this.parent.notifyError(e),this.unsubscribe()}_complete(){this.parent.notifyComplete(),this.unsubscribe()}}class Co extends ve{notifyNext(e){this.destination.next(e)}notifyError(e){this.destination.error(e)}notifyComplete(){this.destination.complete()}}function Eo(n,e){if(e.closed)return;if(n instanceof me)return n.subscribe(e);let t;try{t=Tc(n)(e)}catch(i){e.error(i)}return t}function Fc(n,e,t=Number.POSITIVE_INFINITY){return"function"==typeof e?i=>i.pipe(Fc((r,o)=>Ys(n(r,o)).pipe(Ue((s,a)=>e(r,s,o,a))),t)):("number"==typeof e&&(t=e),i=>i.lift(new TS(n,t)))}class TS{constructor(e,t=Number.POSITIVE_INFINITY){this.project=e,this.concurrent=t}call(e,t){return t.subscribe(new xS(e,this.project,this.concurrent))}}class xS extends Co{constructor(e,t,i=Number.POSITIVE_INFINITY){super(e),this.project=t,this.concurrent=i,this.hasCompleted=!1,this.buffer=[],this.active=0,this.index=0}_next(e){this.active<this.concurrent?this._tryNext(e):this.buffer.push(e)}_tryNext(e){let t;const i=this.index++;try{t=this.project(e,i)}catch(r){return void this.destination.error(r)}this.active++,this._innerSub(t)}_innerSub(e){const t=new bo(this),i=this.destination;i.add(t);const r=Eo(e,t);r!==t&&i.add(r)}_complete(){this.hasCompleted=!0,0===this.active&&0===this.buffer.length&&this.destination.complete(),this.unsubscribe()}notifyNext(e){this.destination.next(e)}notifyComplete(){const e=this.buffer;this.active--,e.length>0?this._next(e.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()}}function Pp(n=Number.POSITIVE_INFINITY){return Fc(Ap,n)}function Rc(n,e){return e?xc(n,e):new me(Op(n))}function Oc(...n){let e=Number.POSITIVE_INFINITY,t=null,i=n[n.length-1];return rr(i)?(t=n.pop(),n.length>1&&"number"==typeof n[n.length-1]&&(e=n.pop())):"number"==typeof i&&(e=n.pop()),null===t&&1===n.length&&n[0]instanceof me?n[0]:Pp(e)(Rc(n,t))}function Lp(){return function(e){return e.lift(new FS(e))}}class FS{constructor(e){this.connectable=e}call(e,t){const{connectable:i}=this;i._refCount++;const r=new RS(e,i),o=t.subscribe(r);return r.closed||(r.connection=i.connect()),o}}class RS extends ve{constructor(e,t){super(e),this.connectable=t}_unsubscribe(){const{connectable:e}=this;if(!e)return void(this.connection=null);this.connectable=null;const t=e._refCount;if(t<=0)return void(this.connection=null);if(e._refCount=t-1,t>1)return void(this.connection=null);const{connection:i}=this,r=e._connection;this.connection=null,r&&(!i||r===i)&&r.unsubscribe()}}class OS extends me{constructor(e,t){super(),this.source=e,this.subjectFactory=t,this._refCount=0,this._isComplete=!1}_subscribe(e){return this.getSubject().subscribe(e)}getSubject(){const e=this._subject;return(!e||e.isStopped)&&(this._subject=this.subjectFactory()),this._subject}connect(){let e=this._connection;return e||(this._isComplete=!1,e=this._connection=new se,e.add(this.source.subscribe(new NS(this.getSubject(),this))),e.closed&&(this._connection=null,e=se.EMPTY)),e}refCount(){return Lp()(this)}}const kS=(()=>{const n=OS.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 NS extends Fp{constructor(e,t){super(e),this.connectable=t}_error(e){this._unsubscribe(),super._error(e)}_complete(){this.connectable._isComplete=!0,this._unsubscribe(),super._complete()}_unsubscribe(){const e=this.connectable;if(e){this.connectable=null;const t=e._connection;e._refCount=0,e._subject=null,e._connection=null,t&&t.unsubscribe()}}}class VS{constructor(e,t){this.subjectFactory=e,this.selector=t}call(e,t){const{selector:i}=this,r=this.subjectFactory(),o=i(r).subscribe(e);return o.add(t.subscribe(r)),o}}function BS(){return new Pe}function Vp(){return n=>Lp()(function LS(n,e){return function(i){let r;if(r="function"==typeof n?n:function(){return n},"function"==typeof e)return i.lift(new VS(r,e));const o=Object.create(i,kS);return o.source=i,o.subjectFactory=r,o}}(BS)(n))}function ie(n){for(let e in n)if(n[e]===ie)return e;throw Error("Could not find renamed property on target object.")}function kc(n,e){for(const t in e)e.hasOwnProperty(t)&&!n.hasOwnProperty(t)&&(n[t]=e[t])}function G(n){if("string"==typeof n)return n;if(Array.isArray(n))return"["+n.map(G).join(", ")+"]";if(null==n)return""+n;if(n.overriddenName)return`${n.overriddenName}`;if(n.name)return`${n.name}`;const e=n.toString();if(null==e)return""+e;const t=e.indexOf("\n");return-1===t?e:e.substring(0,t)}function Nc(n,e){return null==n||""===n?null===e?"":e:null==e||""===e?n:n+" "+e}const jS=ie({__forward_ref__:ie});function ue(n){return n.__forward_ref__=ue,n.toString=function(){return G(this())},n}function x(n){return function Bp(n){return"function"==typeof n&&n.hasOwnProperty(jS)&&n.__forward_ref__===ue}(n)?n():n}class wi extends Error{constructor(e,t){super(function Pc(n,e){return`${n?`NG0${n}: `:""}${e}`}(e,t)),this.code=e}}function H(n){return"string"==typeof n?n:null==n?"":String(n)}function Je(n){return"function"==typeof n?n.name||n.toString():"object"==typeof n&&null!=n&&"function"==typeof n.type?n.type.name||n.type.toString():H(n)}function Zs(n,e){const t=e?` in ${e}`:"";throw new wi("201",`No provider for ${Je(n)} found${t}`)}function pt(n,e){null==n&&function fe(n,e,t,i){throw new Error(`ASSERTION ERROR: ${n}`+(null==i?"":` [Expected=> ${t} ${i} ${e} <=Actual]`))}(e,n,null,"!=")}function I(n){return{token:n.token,providedIn:n.providedIn||null,factory:n.factory,value:void 0}}function ce(n){return{providers:n.providers||[],imports:n.imports||[]}}function Nn(n){return jp(n,Xs)||jp(n,Up)}function jp(n,e){return n.hasOwnProperty(e)?n[e]:null}function Hp(n){return n&&(n.hasOwnProperty(Lc)||n.hasOwnProperty(qS))?n[Lc]:null}const Xs=ie({\u0275prov:ie}),Lc=ie({\u0275inj:ie}),Up=ie({ngInjectableDef:ie}),qS=ie({ngInjectorDef:ie});var O=(()=>((O=O||{})[O.Default=0]="Default",O[O.Host=1]="Host",O[O.Self=2]="Self",O[O.SkipSelf=4]="SkipSelf",O[O.Optional=8]="Optional",O))();let Vc;function ei(n){const e=Vc;return Vc=n,e}function zp(n,e,t){const i=Nn(n);return i&&"root"==i.providedIn?void 0===i.value?i.value=i.factory():i.value:t&O.Optional?null:void 0!==e?e:void Zs(G(n),"Injector")}function ti(n){return{toString:n}.toString()}var Ut=(()=>((Ut=Ut||{})[Ut.OnPush=0]="OnPush",Ut[Ut.Default=1]="Default",Ut))(),lt=(()=>(function(n){n[n.Emulated=0]="Emulated",n[n.None=2]="None",n[n.ShadowDom=3]="ShadowDom"}(lt||(lt={})),lt))();const KS="undefined"!=typeof globalThis&&globalThis,YS="undefined"!=typeof window&&window,ZS="undefined"!=typeof self&&"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&self,ee=KS||"undefined"!=typeof global&&global||YS||ZS,or={},ae=[],Js=ie({\u0275cmp:ie}),Bc=ie({\u0275dir:ie}),jc=ie({\u0275pipe:ie}),$p=ie({\u0275mod:ie}),Pn=ie({\u0275fac:ie}),Do=ie({__NG_ELEMENT_ID__:ie});let XS=0;function Si(n){return ti(()=>{const t={},i={type:n.type,providersResolver:null,decls:n.decls,vars:n.vars,factory:null,template:n.template||null,consts:n.consts||null,ngContentSelectors:n.ngContentSelectors,hostBindings:n.hostBindings||null,hostVars:n.hostVars||0,hostAttrs:n.hostAttrs||null,contentQueries:n.contentQueries||null,declaredInputs:t,inputs:null,outputs:null,exportAs:n.exportAs||null,onPush:n.changeDetection===Ut.OnPush,directiveDefs:null,pipeDefs:null,selectors:n.selectors||ae,viewQuery:n.viewQuery||null,features:n.features||null,data:n.data||{},encapsulation:n.encapsulation||lt.Emulated,id:"c",styles:n.styles||ae,_:null,setInput:null,schemas:n.schemas||null,tView:null},r=n.directives,o=n.features,s=n.pipes;return i.id+=XS++,i.inputs=Qp(n.inputs,t),i.outputs=Qp(n.outputs),o&&o.forEach(a=>a(i)),i.directiveDefs=r?()=>("function"==typeof r?r():r).map(Gp):null,i.pipeDefs=s?()=>("function"==typeof s?s():s).map(Wp):null,i})}function Gp(n){return $e(n)||function ni(n){return n[Bc]||null}(n)}function Wp(n){return function Mi(n){return n[jc]||null}(n)}const qp={};function pe(n){return ti(()=>{const e={type:n.type,bootstrap:n.bootstrap||ae,declarations:n.declarations||ae,imports:n.imports||ae,exports:n.exports||ae,transitiveCompileScopes:null,schemas:n.schemas||null,id:n.id||null};return null!=n.id&&(qp[n.id]=n.type),e})}function Qp(n,e){if(null==n)return or;const t={};for(const i in n)if(n.hasOwnProperty(i)){let r=n[i],o=r;Array.isArray(r)&&(o=r[1],r=r[0]),t[r]=i,e&&(e[r]=o)}return t}const k=Si;function ct(n){return{type:n.type,name:n.name,factory:null,pure:!1!==n.pure,onDestroy:n.type.prototype.ngOnDestroy||null}}function $e(n){return n[Js]||null}function Tt(n,e){const t=n[$p]||null;if(!t&&!0===e)throw new Error(`Type ${G(n)} does not have '\u0275mod' property.`);return t}const z=11;function fn(n){return Array.isArray(n)&&"object"==typeof n[1]}function $t(n){return Array.isArray(n)&&!0===n[1]}function zc(n){return 0!=(8&n.flags)}function ia(n){return 2==(2&n.flags)}function ra(n){return 1==(1&n.flags)}function Gt(n){return null!==n.template}function o0(n){return 0!=(512&n[2])}function xi(n,e){return n.hasOwnProperty(Pn)?n[Pn]:null}class Gc{constructor(e,t,i){this.previousValue=e,this.currentValue=t,this.firstChange=i}isFirstChange(){return this.firstChange}}function Yp(n){return n.type.prototype.ngOnChanges&&(n.setInput=c0),l0}function l0(){const n=Xp(this),e=null==n?void 0:n.current;if(e){const t=n.previous;if(t===or)n.previous=e;else for(let i in e)t[i]=e[i];n.current=null,this.ngOnChanges(e)}}function c0(n,e,t,i){const r=Xp(n)||function u0(n,e){return n[Zp]=e}(n,{previous:or,current:null}),o=r.current||(r.current={}),s=r.previous,a=this.declaredInputs[t],l=s[a];o[a]=new Gc(l&&l.currentValue,e,s===or),n[i]=e}const Zp="__ngSimpleChanges__";function Xp(n){return n[Zp]||null}let qc;function Ee(n){return!!n.listen}const tm={createRenderer:(n,e)=>function Qc(){return void 0!==qc?qc:"undefined"!=typeof document?document:void 0}()};function Ie(n){for(;Array.isArray(n);)n=n[0];return n}function oa(n,e){return Ie(e[n])}function Rt(n,e){return Ie(e[n.index])}function Kc(n,e){return n.data[e]}function ur(n,e){return n[e]}function _t(n,e){const t=e[n];return fn(t)?t:t[0]}function nm(n){return 4==(4&n[2])}function Yc(n){return 128==(128&n[2])}function ii(n,e){return null==e?null:n[e]}function im(n){n[18]=0}function Zc(n,e){n[5]+=e;let t=n,i=n[3];for(;null!==i&&(1===e&&1===t[5]||-1===e&&0===t[5]);)i[5]+=e,t=i,i=i[3]}const L={lFrame:hm(null),bindingsEnabled:!0,isInCheckNoChangesMode:!1};function rm(){return L.bindingsEnabled}function C(){return L.lFrame.lView}function K(){return L.lFrame.tView}function Re(){let n=sm();for(;null!==n&&64===n.type;)n=n.parent;return n}function sm(){return L.lFrame.currentTNode}function pn(n,e){const t=L.lFrame;t.currentTNode=n,t.isParent=e}function Xc(){return L.lFrame.isParent}function Jc(){L.lFrame.isParent=!1}function sa(){return L.isInCheckNoChangesMode}function aa(n){L.isInCheckNoChangesMode=n}function et(){const n=L.lFrame;let e=n.bindingRootIndex;return-1===e&&(e=n.bindingRootIndex=n.tView.bindingStartIndex),e}function dr(){return L.lFrame.bindingIndex++}function Vn(n){const e=L.lFrame,t=e.bindingIndex;return e.bindingIndex=e.bindingIndex+n,t}function w0(n,e){const t=L.lFrame;t.bindingIndex=t.bindingRootIndex=n,eu(e)}function eu(n){L.lFrame.currentDirectiveIndex=n}function cm(){return L.lFrame.currentQueryIndex}function nu(n){L.lFrame.currentQueryIndex=n}function M0(n){const e=n[1];return 2===e.type?e.declTNode:1===e.type?n[6]:null}function um(n,e,t){if(t&O.SkipSelf){let r=e,o=n;for(;!(r=r.parent,null!==r||t&O.Host||(r=M0(o),null===r||(o=o[15],10&r.type))););if(null===r)return!1;e=r,n=o}const i=L.lFrame=dm();return i.currentTNode=e,i.lView=n,!0}function la(n){const e=dm(),t=n[1];L.lFrame=e,e.currentTNode=t.firstChild,e.lView=n,e.tView=t,e.contextLView=n,e.bindingIndex=t.bindingStartIndex,e.inI18n=!1}function dm(){const n=L.lFrame,e=null===n?null:n.child;return null===e?hm(n):e}function hm(n){const e={currentTNode:null,isParent:!0,lView:null,tView:null,selectedIndex:-1,contextLView:null,elementDepthCount:0,currentNamespace:null,currentDirectiveIndex:-1,bindingRootIndex:-1,bindingIndex:-1,currentQueryIndex:0,parent:n,child:null,inI18n:!1};return null!==n&&(n.child=e),e}function fm(){const n=L.lFrame;return L.lFrame=n.parent,n.currentTNode=null,n.lView=null,n}const pm=fm;function ca(){const n=fm();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 tt(){return L.lFrame.selectedIndex}function ri(n){L.lFrame.selectedIndex=n}function De(){const n=L.lFrame;return Kc(n.tView,n.selectedIndex)}function ua(n,e){for(let t=e.directiveStart,i=e.directiveEnd;t<i;t++){const o=n.data[t].type.prototype,{ngAfterContentInit:s,ngAfterContentChecked:a,ngAfterViewInit:l,ngAfterViewChecked:c,ngOnDestroy:u}=o;s&&(n.contentHooks||(n.contentHooks=[])).push(-t,s),a&&((n.contentHooks||(n.contentHooks=[])).push(t,a),(n.contentCheckHooks||(n.contentCheckHooks=[])).push(t,a)),l&&(n.viewHooks||(n.viewHooks=[])).push(-t,l),c&&((n.viewHooks||(n.viewHooks=[])).push(t,c),(n.viewCheckHooks||(n.viewCheckHooks=[])).push(t,c)),null!=u&&(n.destroyHooks||(n.destroyHooks=[])).push(t,u)}}function da(n,e,t){mm(n,e,3,t)}function ha(n,e,t,i){(3&n[2])===t&&mm(n,e,t,i)}function iu(n,e){let t=n[2];(3&t)===e&&(t&=2047,t+=1,n[2]=t)}function mm(n,e,t,i){const o=null!=i?i:-1,s=e.length-1;let a=0;for(let l=void 0!==i?65535&n[18]:0;l<s;l++)if("number"==typeof e[l+1]){if(a=e[l],null!=i&&a>=i)break}else e[l]<0&&(n[18]+=65536),(a<o||-1==o)&&(N0(n,t,e,l),n[18]=(4294901760&n[18])+l+2),l++}function N0(n,e,t,i){const r=t[i]<0,o=t[i+1],a=n[r?-t[i]:t[i]];if(r){if(n[2]>>11<n[18]>>16&&(3&n[2])===e){n[2]+=2048;try{o.call(a)}finally{}}}else try{o.call(a)}finally{}}class Io{constructor(e,t,i){this.factory=e,this.resolving=!1,this.canSeeViewProviders=t,this.injectImpl=i}}function fa(n,e,t){const i=Ee(n);let r=0;for(;r<t.length;){const o=t[r];if("number"==typeof o){if(0!==o)break;r++;const s=t[r++],a=t[r++],l=t[r++];i?n.setAttribute(e,a,l,s):e.setAttributeNS(s,a,l)}else{const s=o,a=t[++r];ou(s)?i&&n.setProperty(e,s,a):i?n.setAttribute(e,s,a):e.setAttribute(s,a),r++}}return r}function gm(n){return 3===n||4===n||6===n}function ou(n){return 64===n.charCodeAt(0)}function pa(n,e){if(null!==e&&0!==e.length)if(null===n||0===n.length)n=e.slice();else{let t=-1;for(let i=0;i<e.length;i++){const r=e[i];"number"==typeof r?t=r:0===t||_m(n,t,r,null,-1===t||2===t?e[++i]:null)}}return n}function _m(n,e,t,i,r){let o=0,s=n.length;if(-1===e)s=-1;else for(;o<n.length;){const a=n[o++];if("number"==typeof a){if(a===e){s=-1;break}if(a>e){s=o-1;break}}}for(;o<n.length;){const a=n[o];if("number"==typeof a)break;if(a===t){if(null===i)return void(null!==r&&(n[o+1]=r));if(i===n[o+1])return void(n[o+2]=r)}o++,null!==i&&o++,null!==r&&o++}-1!==s&&(n.splice(s,0,e),o=s+1),n.splice(o++,0,t),null!==i&&n.splice(o++,0,i),null!==r&&n.splice(o++,0,r)}function ym(n){return-1!==n}function hr(n){return 32767&n}function fr(n,e){let t=function j0(n){return n>>16}(n),i=e;for(;t>0;)i=i[15],t--;return i}let su=!0;function ma(n){const e=su;return su=n,e}let H0=0;function xo(n,e){const t=lu(n,e);if(-1!==t)return t;const i=e[1];i.firstCreatePass&&(n.injectorIndex=e.length,au(i.data,n),au(e,null),au(i.blueprint,null));const r=ga(n,e),o=n.injectorIndex;if(ym(r)){const s=hr(r),a=fr(r,e),l=a[1].data;for(let c=0;c<8;c++)e[o+c]=a[s+c]|l[s+c]}return e[o+8]=r,o}function au(n,e){n.push(0,0,0,0,0,0,0,0,e)}function lu(n,e){return-1===n.injectorIndex||n.parent&&n.parent.injectorIndex===n.injectorIndex||null===e[n.injectorIndex+8]?-1:n.injectorIndex}function ga(n,e){if(n.parent&&-1!==n.parent.injectorIndex)return n.parent.injectorIndex;let t=0,i=null,r=e;for(;null!==r;){const o=r[1],s=o.type;if(i=2===s?o.declTNode:1===s?r[6]:null,null===i)return-1;if(t++,r=r[15],-1!==i.injectorIndex)return i.injectorIndex|t<<16}return-1}function _a(n,e,t){!function U0(n,e,t){let i;"string"==typeof t?i=t.charCodeAt(0)||0:t.hasOwnProperty(Do)&&(i=t[Do]),null==i&&(i=t[Do]=H0++);const r=255&i;e.data[n+(r>>5)]|=1<<r}(n,e,t)}function Cm(n,e,t){if(t&O.Optional)return n;Zs(e,"NodeInjector")}function Em(n,e,t,i){if(t&O.Optional&&void 0===i&&(i=null),0==(t&(O.Self|O.Host))){const r=n[9],o=ei(void 0);try{return r?r.get(e,i,t&O.Optional):zp(e,i,t&O.Optional)}finally{ei(o)}}return Cm(i,e,t)}function Dm(n,e,t,i=O.Default,r){if(null!==n){const o=function W0(n){if("string"==typeof n)return n.charCodeAt(0)||0;const e=n.hasOwnProperty(Do)?n[Do]:void 0;return"number"==typeof e?e>=0?255&e:$0:e}(t);if("function"==typeof o){if(!um(e,n,i))return i&O.Host?Cm(r,t,i):Em(e,t,i,r);try{const s=o(i);if(null!=s||i&O.Optional)return s;Zs(t)}finally{pm()}}else if("number"==typeof o){let s=null,a=lu(n,e),l=-1,c=i&O.Host?e[16][6]:null;for((-1===a||i&O.SkipSelf)&&(l=-1===a?ga(n,e):e[a+8],-1!==l&&Mm(i,!1)?(s=e[1],a=hr(l),e=fr(l,e)):a=-1);-1!==a;){const u=e[1];if(Sm(o,a,u.data)){const d=G0(a,e,t,s,i,c);if(d!==wm)return d}l=e[a+8],-1!==l&&Mm(i,e[1].data[a+8]===c)&&Sm(o,a,e)?(s=u,a=hr(l),e=fr(l,e)):a=-1}}}return Em(e,t,i,r)}const wm={};function $0(){return new pr(Re(),C())}function G0(n,e,t,i,r,o){const s=e[1],a=s.data[n+8],u=ya(a,s,t,null==i?ia(a)&&su:i!=s&&0!=(3&a.type),r&O.Host&&o===a);return null!==u?Fo(e,s,u,a):wm}function ya(n,e,t,i,r){const o=n.providerIndexes,s=e.data,a=1048575&o,l=n.directiveStart,u=o>>20,h=r?a+u:n.directiveEnd;for(let f=i?a:a+u;f<h;f++){const p=s[f];if(f<l&&t===p||f>=l&&p.type===t)return f}if(r){const f=s[l];if(f&&Gt(f)&&f.type===t)return l}return null}function Fo(n,e,t,i){let r=n[t];const o=e.data;if(function P0(n){return n instanceof Io}(r)){const s=r;s.resolving&&function HS(n,e){const t=e?`. Dependency path: ${e.join(" > ")} > ${n}`:"";throw new wi("200",`Circular dependency in DI detected for ${n}${t}`)}(Je(o[t]));const a=ma(s.canSeeViewProviders);s.resolving=!0;const l=s.injectImpl?ei(s.injectImpl):null;um(n,i,O.Default);try{r=n[t]=s.factory(void 0,o,n,i),e.firstCreatePass&&t>=i.directiveStart&&function k0(n,e,t){const{ngOnChanges:i,ngOnInit:r,ngDoCheck:o}=e.type.prototype;if(i){const s=Yp(e);(t.preOrderHooks||(t.preOrderHooks=[])).push(n,s),(t.preOrderCheckHooks||(t.preOrderCheckHooks=[])).push(n,s)}r&&(t.preOrderHooks||(t.preOrderHooks=[])).push(0-n,r),o&&((t.preOrderHooks||(t.preOrderHooks=[])).push(n,o),(t.preOrderCheckHooks||(t.preOrderCheckHooks=[])).push(n,o))}(t,o[t],e)}finally{null!==l&&ei(l),ma(a),s.resolving=!1,pm()}}return r}function Sm(n,e,t){return!!(t[e+(n>>5)]&1<<n)}function Mm(n,e){return!(n&O.Self||n&O.Host&&e)}class pr{constructor(e,t){this._tNode=e,this._lView=t}get(e,t,i){return Dm(this._tNode,this._lView,e,i,t)}}const gr="__parameters__";function Fi(n,e,t){return ti(()=>{const i=function uu(n){return function(...t){if(n){const i=n(...t);for(const r in i)this[r]=i[r]}}}(e);function r(...o){if(this instanceof r)return i.apply(this,o),this;const s=new r(...o);return a.annotation=s,a;function a(l,c,u){const d=l.hasOwnProperty(gr)?l[gr]:Object.defineProperty(l,gr,{value:[]})[gr];for(;d.length<=u;)d.push(null);return(d[u]=d[u]||[]).push(s),l}}return t&&(r.prototype=Object.create(t.prototype)),r.prototype.ngMetadataName=n,r.annotationCls=r,r})}class T{constructor(e,t){this._desc=e,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,"number"==typeof t?this.__NG_ELEMENT_ID__=t:void 0!==t&&(this.\u0275prov=I({token:this,providedIn:t.providedIn||"root",factory:t.factory}))}toString(){return`InjectionToken ${this._desc}`}}function Ot(n,e){void 0===e&&(e=n);for(let t=0;t<n.length;t++){let i=n[t];Array.isArray(i)?(e===n&&(e=n.slice(0,t)),Ot(i,e)):e!==n&&e.push(i)}return e}function mn(n,e){n.forEach(t=>Array.isArray(t)?mn(t,e):e(t))}function ba(n,e,t){e>=n.length?n.push(t):n.splice(e,0,t)}function Ri(n,e){return e>=n.length-1?n.pop():n.splice(e,1)[0]}function si(n,e){const t=[];for(let i=0;i<n;i++)t.push(e);return t}function vt(n,e,t){let i=yr(n,e);return i>=0?n[1|i]=t:(i=~i,function Z0(n,e,t,i){let r=n.length;if(r==e)n.push(t,i);else if(1===r)n.push(i,n[0]),n[0]=t;else{for(r--,n.push(n[r-1],n[r]);r>e;)n[r]=n[r-2],r--;n[e]=t,n[e+1]=i}}(n,i,e,t)),i}function hu(n,e){const t=yr(n,e);if(t>=0)return n[1|t]}function yr(n,e){return function xm(n,e,t){let i=0,r=n.length>>t;for(;r!==i;){const o=i+(r-i>>1),s=n[o<<t];if(e===s)return o<<t;s>e?r=o:i=o+1}return~(r<<t)}(n,e,1)}const No={},pu="__NG_DI_FLAG__",vr="ngTempTokenPath",rM=/\n/gm,mu="__source",gu=ie({provide:String,useValue:ie});let Po;function br(n){const e=Po;return Po=n,e}function sM(n,e=O.Default){if(void 0===Po)throw new Error("inject() must be called from an injection context");return null===Po?zp(n,void 0,e):Po.get(n,e&O.Optional?null:void 0,e)}function b(n,e=O.Default){return(function QS(){return Vc}()||sM)(x(n),e)}const _u=b;function Oi(n){const e=[];for(let t=0;t<n.length;t++){const i=x(n[t]);if(Array.isArray(i)){if(0===i.length)throw new Error("Arguments array must have arguments.");let r,o=O.Default;for(let s=0;s<i.length;s++){const a=i[s],l=aM(a);"number"==typeof l?-1===l?r=a.token:o|=l:r=a}e.push(b(r,o))}else e.push(b(i))}return e}function Lo(n,e){return n[pu]=e,n.prototype[pu]=e,n}function aM(n){return n[pu]}function Rm(n,e,t,i){const r=n[vr];throw e[mu]&&r.unshift(e[mu]),n.message=function Om(n,e,t,i=null){n=n&&"\n"===n.charAt(0)&&"\u0275"==n.charAt(1)?n.substr(2):n;let r=G(e);if(Array.isArray(e))r=e.map(G).join(" -> ");else if("object"==typeof e){let o=[];for(let s in e)if(e.hasOwnProperty(s)){let a=e[s];o.push(s+":"+("string"==typeof a?JSON.stringify(a):G(a)))}r=`{${o.join(", ")}}`}return`${t}${i?"("+i+")":""}[${r}]: ${n.replace(rM,"\n ")}`}("\n"+n.message,r,t,i),n.ngTokenPath=r,n[vr]=null,n}const Vo=Lo(Fi("Inject",n=>({token:n})),-1),bt=Lo(Fi("Optional"),8),ai=Lo(Fi("SkipSelf"),4);let wa;function Er(n){var e;return(null===(e=function vu(){if(void 0===wa&&(wa=null,ee.trustedTypes))try{wa=ee.trustedTypes.createPolicy("angular",{createHTML:n=>n,createScript:n=>n,createScriptURL:n=>n})}catch(n){}return wa}())||void 0===e?void 0:e.createHTML(n))||n}class ki{constructor(e){this.changingThisBreaksApplicationSecurity=e}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see https://g.co/ng/security#xss)`}}class yM extends ki{getTypeName(){return"HTML"}}class vM extends ki{getTypeName(){return"Style"}}class bM extends ki{getTypeName(){return"Script"}}class CM extends ki{getTypeName(){return"URL"}}class EM extends ki{getTypeName(){return"ResourceURL"}}function Ct(n){return n instanceof ki?n.changingThisBreaksApplicationSecurity:n}function gn(n,e){const t=jm(n);if(null!=t&&t!==e){if("ResourceURL"===t&&"URL"===e)return!0;throw new Error(`Required a safe ${e}, got a ${t} (see https://g.co/ng/security#xss)`)}return t===e}function jm(n){return n instanceof ki&&n.getTypeName()||null}class IM{constructor(e){this.inertDocumentHelper=e}getInertBodyElement(e){e="<body><remove></remove>"+e;try{const t=(new window.DOMParser).parseFromString(Er(e),"text/html").body;return null===t?this.inertDocumentHelper.getInertBodyElement(e):(t.removeChild(t.firstChild),t)}catch(t){return null}}}class TM{constructor(e){if(this.defaultDoc=e,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert"),null==this.inertDocument.body){const t=this.inertDocument.createElement("html");this.inertDocument.appendChild(t);const i=this.inertDocument.createElement("body");t.appendChild(i)}}getInertBodyElement(e){const t=this.inertDocument.createElement("template");if("content"in t)return t.innerHTML=Er(e),t;const i=this.inertDocument.createElement("body");return i.innerHTML=Er(e),this.defaultDoc.documentMode&&this.stripCustomNsAttrs(i),i}stripCustomNsAttrs(e){const t=e.attributes;for(let r=t.length-1;0<r;r--){const s=t.item(r).name;("xmlns:ns1"===s||0===s.indexOf("ns1:"))&&e.removeAttribute(s)}let i=e.firstChild;for(;i;)i.nodeType===Node.ELEMENT_NODE&&this.stripCustomNsAttrs(i),i=i.nextSibling}}const FM=/^(?:(?:https?|mailto|ftp|tel|file|sms):|[^&:/?#]*(?:[/?#]|$))/gi,RM=/^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 jo(n){return(n=String(n)).match(FM)||n.match(RM)?n:"unsafe:"+n}function Um(n){return(n=String(n)).split(",").map(e=>jo(e.trim())).join(", ")}function _n(n){const e={};for(const t of n.split(","))e[t]=!0;return e}function Ho(...n){const e={};for(const t of n)for(const i in t)t.hasOwnProperty(i)&&(e[i]=!0);return e}const zm=_n("area,br,col,hr,img,wbr"),$m=_n("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),Gm=_n("rp,rt"),Cu=Ho(zm,Ho($m,_n("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")),Ho(Gm,_n("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")),Ho(Gm,$m)),Eu=_n("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),Du=_n("srcset"),Wm=Ho(Eu,Du,_n("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"),_n("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")),OM=_n("script,style,template");class kM{constructor(){this.sanitizedSomething=!1,this.buf=[]}sanitizeChildren(e){let t=e.firstChild,i=!0;for(;t;)if(t.nodeType===Node.ELEMENT_NODE?i=this.startElement(t):t.nodeType===Node.TEXT_NODE?this.chars(t.nodeValue):this.sanitizedSomething=!0,i&&t.firstChild)t=t.firstChild;else for(;t;){t.nodeType===Node.ELEMENT_NODE&&this.endElement(t);let r=this.checkClobberedElement(t,t.nextSibling);if(r){t=r;break}t=this.checkClobberedElement(t,t.parentNode)}return this.buf.join("")}startElement(e){const t=e.nodeName.toLowerCase();if(!Cu.hasOwnProperty(t))return this.sanitizedSomething=!0,!OM.hasOwnProperty(t);this.buf.push("<"),this.buf.push(t);const i=e.attributes;for(let r=0;r<i.length;r++){const o=i.item(r),s=o.name,a=s.toLowerCase();if(!Wm.hasOwnProperty(a)){this.sanitizedSomething=!0;continue}let l=o.value;Eu[a]&&(l=jo(l)),Du[a]&&(l=Um(l)),this.buf.push(" ",s,'="',qm(l),'"')}return this.buf.push(">"),!0}endElement(e){const t=e.nodeName.toLowerCase();Cu.hasOwnProperty(t)&&!zm.hasOwnProperty(t)&&(this.buf.push("</"),this.buf.push(t),this.buf.push(">"))}chars(e){this.buf.push(qm(e))}checkClobberedElement(e,t){if(t&&(e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_CONTAINED_BY)===Node.DOCUMENT_POSITION_CONTAINED_BY)throw new Error(`Failed to sanitize html because the element is clobbered: ${e.outerHTML}`);return t}}const NM=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,PM=/([^\#-~ |!])/g;function qm(n){return n.replace(/&/g,"&amp;").replace(NM,function(e){return"&#"+(1024*(e.charCodeAt(0)-55296)+(e.charCodeAt(1)-56320)+65536)+";"}).replace(PM,function(e){return"&#"+e.charCodeAt(0)+";"}).replace(/</g,"&lt;").replace(/>/g,"&gt;")}let Ma;function Qm(n,e){let t=null;try{Ma=Ma||function Hm(n){const e=new TM(n);return function xM(){try{return!!(new window.DOMParser).parseFromString(Er(""),"text/html")}catch(n){return!1}}()?new IM(e):e}(n);let i=e?String(e):"";t=Ma.getInertBodyElement(i);let r=5,o=i;do{if(0===r)throw new Error("Failed to sanitize html because the input is unstable");r--,i=o,o=t.innerHTML,t=Ma.getInertBodyElement(i)}while(i!==o);return Er((new kM).sanitizeChildren(wu(t)||t))}finally{if(t){const i=wu(t)||t;for(;i.firstChild;)i.removeChild(i.firstChild)}}}function wu(n){return"content"in n&&function LM(n){return n.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===n.nodeName}(n)?n.content:null}var X=(()=>((X=X||{})[X.NONE=0]="NONE",X[X.HTML=1]="HTML",X[X.STYLE=2]="STYLE",X[X.SCRIPT=3]="SCRIPT",X[X.URL=4]="URL",X[X.RESOURCE_URL=5]="RESOURCE_URL",X))();const Xm="__ngContext__";function We(n,e){n[Xm]=e}function Mu(n){const e=function zo(n){return n[Xm]||null}(n);return e?Array.isArray(e)?e:e.lView:null}function Aa(n){return n.ngOriginalError}function eA(n,...e){n.error(...e)}class yn{constructor(){this._console=console}handleError(e){const t=this._findOriginalError(e),i=this._findContext(e),r=function JM(n){return n&&n.ngErrorLogger||eA}(e);r(this._console,"ERROR",e),t&&r(this._console,"ORIGINAL ERROR",t),i&&r(this._console,"ERROR CONTEXT",i)}_findContext(e){return e?function rg(n){return n.ngDebugContext}(e)||this._findContext(Aa(e)):null}_findOriginalError(e){let t=e&&Aa(e);for(;t&&Aa(t);)t=Aa(t);return t||null}}const ag=(()=>("undefined"!=typeof requestAnimationFrame&&requestAnimationFrame||setTimeout).bind(ee))();function vn(n){return n instanceof Function?n():n}var Et=(()=>((Et=Et||{})[Et.Important=1]="Important",Et[Et.DashCase=2]="DashCase",Et))();function Tu(n,e){return undefined(n,e)}function $o(n){const e=n[3];return $t(e)?e[3]:e}function xu(n){return hg(n[13])}function Fu(n){return hg(n[4])}function hg(n){for(;null!==n&&!$t(n);)n=n[4];return n}function wr(n,e,t,i,r){if(null!=i){let o,s=!1;$t(i)?o=i:fn(i)&&(s=!0,i=i[0]);const a=Ie(i);0===n&&null!==t?null==r?yg(e,t,a):Ni(e,t,a,r||null,!0):1===n&&null!==t?Ni(e,t,a,r||null,!0):2===n?function Sg(n,e,t){const i=Ta(n,e);i&&function CA(n,e,t,i){Ee(n)?n.removeChild(e,t,i):e.removeChild(t)}(n,i,e,t)}(e,a,s):3===n&&e.destroyNode(a),null!=o&&function wA(n,e,t,i,r){const o=t[7];o!==Ie(t)&&wr(e,n,i,o,r);for(let a=10;a<t.length;a++){const l=t[a];Go(l[1],l,n,e,i,o)}}(e,n,o,t,r)}}function Ou(n,e,t){return Ee(n)?n.createElement(e,t):null===t?n.createElement(e):n.createElementNS(t,e)}function pg(n,e){const t=n[9],i=t.indexOf(e),r=e[3];1024&e[2]&&(e[2]&=-1025,Zc(r,-1)),t.splice(i,1)}function ku(n,e){if(n.length<=10)return;const t=10+e,i=n[t];if(i){const r=i[17];null!==r&&r!==n&&pg(r,i),e>0&&(n[t-1][4]=i[4]);const o=Ri(n,10+e);!function fA(n,e){Go(n,e,e[z],2,null,null),e[0]=null,e[6]=null}(i[1],i);const s=o[19];null!==s&&s.detachView(o[1]),i[3]=null,i[4]=null,i[2]&=-129}return i}function mg(n,e){if(!(256&e[2])){const t=e[z];Ee(t)&&t.destroyNode&&Go(n,e,t,3,null,null),function gA(n){let e=n[13];if(!e)return Nu(n[1],n);for(;e;){let t=null;if(fn(e))t=e[13];else{const i=e[10];i&&(t=i)}if(!t){for(;e&&!e[4]&&e!==n;)fn(e)&&Nu(e[1],e),e=e[3];null===e&&(e=n),fn(e)&&Nu(e[1],e),t=e&&e[4]}e=t}}(e)}}function Nu(n,e){if(!(256&e[2])){e[2]&=-129,e[2]|=256,function bA(n,e){let t;if(null!=n&&null!=(t=n.destroyHooks))for(let i=0;i<t.length;i+=2){const r=e[t[i]];if(!(r instanceof Io)){const o=t[i+1];if(Array.isArray(o))for(let s=0;s<o.length;s+=2){const a=r[o[s]],l=o[s+1];try{l.call(a)}finally{}}else try{o.call(r)}finally{}}}}(n,e),function vA(n,e){const t=n.cleanup,i=e[7];let r=-1;if(null!==t)for(let o=0;o<t.length-1;o+=2)if("string"==typeof t[o]){const s=t[o+1],a="function"==typeof s?s(e):Ie(e[s]),l=i[r=t[o+2]],c=t[o+3];"boolean"==typeof c?a.removeEventListener(t[o],l,c):c>=0?i[r=c]():i[r=-c].unsubscribe(),o+=2}else{const s=i[r=t[o+1]];t[o].call(s)}if(null!==i){for(let o=r+1;o<i.length;o++)i[o]();e[7]=null}}(n,e),1===e[1].type&&Ee(e[z])&&e[z].destroy();const t=e[17];if(null!==t&&$t(e[3])){t!==e[3]&&pg(t,e);const i=e[19];null!==i&&i.detachView(n)}}}function gg(n,e,t){return function _g(n,e,t){let i=e;for(;null!==i&&40&i.type;)i=(e=i).parent;if(null===i)return t[0];if(2&i.flags){const r=n.data[i.directiveStart].encapsulation;if(r===lt.None||r===lt.Emulated)return null}return Rt(i,t)}(n,e.parent,t)}function Ni(n,e,t,i,r){Ee(n)?n.insertBefore(e,t,i,r):e.insertBefore(t,i,r)}function yg(n,e,t){Ee(n)?n.appendChild(e,t):e.appendChild(t)}function vg(n,e,t,i,r){null!==i?Ni(n,e,t,i,r):yg(n,e,t)}function Ta(n,e){return Ee(n)?n.parentNode(e):e.parentNode}function bg(n,e,t){return Eg(n,e,t)}let Eg=function Cg(n,e,t){return 40&n.type?Rt(n,t):null};function xa(n,e,t,i){const r=gg(n,i,e),o=e[z],a=bg(i.parent||e[6],i,e);if(null!=r)if(Array.isArray(t))for(let l=0;l<t.length;l++)vg(o,r,t[l],a,!1);else vg(o,r,t,a,!1)}function Fa(n,e){if(null!==e){const t=e.type;if(3&t)return Rt(e,n);if(4&t)return Lu(-1,n[e.index]);if(8&t){const i=e.child;if(null!==i)return Fa(n,i);{const r=n[e.index];return $t(r)?Lu(-1,r):Ie(r)}}if(32&t)return Tu(e,n)()||Ie(n[e.index]);{const i=wg(n,e);return null!==i?Array.isArray(i)?i[0]:Fa($o(n[16]),i):Fa(n,e.next)}}return null}function wg(n,e){return null!==e?n[16][6].projection[e.projection]:null}function Lu(n,e){const t=10+n+1;if(t<e.length){const i=e[t],r=i[1].firstChild;if(null!==r)return Fa(i,r)}return e[7]}function Vu(n,e,t,i,r,o,s){for(;null!=t;){const a=i[t.index],l=t.type;if(s&&0===e&&(a&&We(Ie(a),i),t.flags|=4),64!=(64&t.flags))if(8&l)Vu(n,e,t.child,i,r,o,!1),wr(e,n,r,a,o);else if(32&l){const c=Tu(t,i);let u;for(;u=c();)wr(e,n,r,u,o);wr(e,n,r,a,o)}else 16&l?Mg(n,e,i,t,r,o):wr(e,n,r,a,o);t=s?t.projectionNext:t.next}}function Go(n,e,t,i,r,o){Vu(t,i,n.firstChild,e,r,o,!1)}function Mg(n,e,t,i,r,o){const s=t[16],l=s[6].projection[i.projection];if(Array.isArray(l))for(let c=0;c<l.length;c++)wr(e,n,r,l[c],o);else Vu(n,e,l,s[3],r,o,!0)}function Ag(n,e,t){Ee(n)?n.setAttribute(e,"style",t):e.style.cssText=t}function Bu(n,e,t){Ee(n)?""===t?n.removeAttribute(e,"class"):n.setAttribute(e,"class",t):e.className=t}function Ig(n,e,t){let i=n.length;for(;;){const r=n.indexOf(e,t);if(-1===r)return r;if(0===r||n.charCodeAt(r-1)<=32){const o=e.length;if(r+o===i||n.charCodeAt(r+o)<=32)return r}t=r+1}}const Tg="ng-template";function MA(n,e,t){let i=0;for(;i<n.length;){let r=n[i++];if(t&&"class"===r){if(r=n[i],-1!==Ig(r.toLowerCase(),e,0))return!0}else if(1===r){for(;i<n.length&&"string"==typeof(r=n[i++]);)if(r.toLowerCase()===e)return!0;return!1}}return!1}function xg(n){return 4===n.type&&n.value!==Tg}function AA(n,e,t){return e===(4!==n.type||t?n.value:Tg)}function IA(n,e,t){let i=4;const r=n.attrs||[],o=function FA(n){for(let e=0;e<n.length;e++)if(gm(n[e]))return e;return n.length}(r);let s=!1;for(let a=0;a<e.length;a++){const l=e[a];if("number"!=typeof l){if(!s)if(4&i){if(i=2|1&i,""!==l&&!AA(n,l,t)||""===l&&1===e.length){if(Wt(i))return!1;s=!0}}else{const c=8&i?l:e[++a];if(8&i&&null!==n.attrs){if(!MA(n.attrs,c,t)){if(Wt(i))return!1;s=!0}continue}const d=TA(8&i?"class":l,r,xg(n),t);if(-1===d){if(Wt(i))return!1;s=!0;continue}if(""!==c){let h;h=d>o?"":r[d+1].toLowerCase();const f=8&i?h:null;if(f&&-1!==Ig(f,c,0)||2&i&&c!==h){if(Wt(i))return!1;s=!0}}}}else{if(!s&&!Wt(i)&&!Wt(l))return!1;if(s&&Wt(l))continue;s=!1,i=l|1&i}}return Wt(i)||s}function Wt(n){return 0==(1&n)}function TA(n,e,t,i){if(null===e)return-1;let r=0;if(i||!t){let o=!1;for(;r<e.length;){const s=e[r];if(s===n)return r;if(3===s||6===s)o=!0;else{if(1===s||2===s){let a=e[++r];for(;"string"==typeof a;)a=e[++r];continue}if(4===s)break;if(0===s){r+=4;continue}}r+=o?1:2}return-1}return function RA(n,e){let t=n.indexOf(4);if(t>-1)for(t++;t<n.length;){const i=n[t];if("number"==typeof i)return-1;if(i===e)return t;t++}return-1}(e,n)}function Fg(n,e,t=!1){for(let i=0;i<e.length;i++)if(IA(n,e[i],t))return!0;return!1}function OA(n,e){e:for(let t=0;t<e.length;t++){const i=e[t];if(n.length===i.length){for(let r=0;r<n.length;r++)if(n[r]!==i[r])continue e;return!0}}return!1}function Rg(n,e){return n?":not("+e.trim()+")":e}function kA(n){let e=n[0],t=1,i=2,r="",o=!1;for(;t<n.length;){let s=n[t];if("string"==typeof s)if(2&i){const a=n[++t];r+="["+s+(a.length>0?'="'+a+'"':"")+"]"}else 8&i?r+="."+s:4&i&&(r+=" "+s);else""!==r&&!Wt(s)&&(e+=Rg(o,r),r=""),i=s,o=o||!Wt(i);t++}return""!==r&&(e+=Rg(o,r)),e}const U={};function bn(n){Og(K(),C(),tt()+n,sa())}function Og(n,e,t,i){if(!i)if(3==(3&e[2])){const o=n.preOrderCheckHooks;null!==o&&da(e,o,t)}else{const o=n.preOrderHooks;null!==o&&ha(e,o,0,t)}ri(t)}function Ra(n,e){return n<<17|e<<2}function qt(n){return n>>17&32767}function ju(n){return 2|n}function Bn(n){return(131068&n)>>2}function Hu(n,e){return-131069&n|e<<2}function Uu(n){return 1|n}function $g(n,e){const t=n.contentQueries;if(null!==t)for(let i=0;i<t.length;i+=2){const r=t[i],o=t[i+1];if(-1!==o){const s=n.data[o];nu(r),s.contentQueries(2,e[o],o)}}}function Wo(n,e,t,i,r,o,s,a,l,c){const u=e.blueprint.slice();return u[0]=r,u[2]=140|i,im(u),u[3]=u[15]=n,u[8]=t,u[10]=s||n&&n[10],u[z]=a||n&&n[z],u[12]=l||n&&n[12]||null,u[9]=c||n&&n[9]||null,u[6]=o,u[16]=2==e.type?n[16]:u,u}function Sr(n,e,t,i,r){let o=n.data[e];if(null===o)o=function Zu(n,e,t,i,r){const o=sm(),s=Xc(),l=n.data[e]=function XA(n,e,t,i,r,o){return{type:t,index:i,insertBeforeIndex:null,injectorIndex:e?e.injectorIndex:-1,directiveStart:-1,directiveEnd:-1,directiveStylingLast:-1,propertyBindings:null,flags:0,providerIndexes:0,value:r,attrs:o,mergedAttrs:null,localNames:null,initialInputs:void 0,inputs:null,outputs:null,tViews:null,next:null,projectionNext:null,child:null,parent:e,projection:null,styles:null,stylesWithoutHost:null,residualStyles:void 0,classes:null,classesWithoutHost:null,residualClasses:void 0,classBindings:0,styleBindings:0}}(0,s?o:o&&o.parent,t,e,i,r);return null===n.firstChild&&(n.firstChild=l),null!==o&&(s?null==o.child&&null!==l.parent&&(o.child=l):null===o.next&&(o.next=l)),l}(n,e,t,i,r),function D0(){return L.lFrame.inI18n}()&&(o.flags|=64);else if(64&o.type){o.type=t,o.value=i,o.attrs=r;const s=function Ao(){const n=L.lFrame,e=n.currentTNode;return n.isParent?e:e.parent}();o.injectorIndex=null===s?-1:s.injectorIndex}return pn(o,!0),o}function Mr(n,e,t,i){if(0===t)return-1;const r=e.length;for(let o=0;o<t;o++)e.push(i),n.blueprint.push(i),n.data.push(null);return r}function qo(n,e,t){la(e);try{const i=n.viewQuery;null!==i&&sd(1,i,t);const r=n.template;null!==r&&Gg(n,e,r,1,t),n.firstCreatePass&&(n.firstCreatePass=!1),n.staticContentQueries&&$g(n,e),n.staticViewQueries&&sd(2,n.viewQuery,t);const o=n.components;null!==o&&function KA(n,e){for(let t=0;t<e.length;t++)gI(n,e[t])}(e,o)}catch(i){throw n.firstCreatePass&&(n.incompleteFirstPass=!0,n.firstCreatePass=!1),i}finally{e[2]&=-5,ca()}}function Ar(n,e,t,i){const r=e[2];if(256==(256&r))return;la(e);const o=sa();try{im(e),function am(n){return L.lFrame.bindingIndex=n}(n.bindingStartIndex),null!==t&&Gg(n,e,t,2,i);const s=3==(3&r);if(!o)if(s){const c=n.preOrderCheckHooks;null!==c&&da(e,c,null)}else{const c=n.preOrderHooks;null!==c&&ha(e,c,0,null),iu(e,0)}if(function pI(n){for(let e=xu(n);null!==e;e=Fu(e)){if(!e[2])continue;const t=e[9];for(let i=0;i<t.length;i++){const r=t[i],o=r[3];0==(1024&r[2])&&Zc(o,1),r[2]|=1024}}}(e),function fI(n){for(let e=xu(n);null!==e;e=Fu(e))for(let t=10;t<e.length;t++){const i=e[t],r=i[1];Yc(i)&&Ar(r,i,r.template,i[8])}}(e),null!==n.contentQueries&&$g(n,e),!o)if(s){const c=n.contentCheckHooks;null!==c&&da(e,c)}else{const c=n.contentHooks;null!==c&&ha(e,c,1),iu(e,1)}!function qA(n,e){const t=n.hostBindingOpCodes;if(null!==t)try{for(let i=0;i<t.length;i++){const r=t[i];if(r<0)ri(~r);else{const o=r,s=t[++i],a=t[++i];w0(s,o),a(2,e[o])}}}finally{ri(-1)}}(n,e);const a=n.components;null!==a&&function QA(n,e){for(let t=0;t<e.length;t++)mI(n,e[t])}(e,a);const l=n.viewQuery;if(null!==l&&sd(2,l,i),!o)if(s){const c=n.viewCheckHooks;null!==c&&da(e,c)}else{const c=n.viewHooks;null!==c&&ha(e,c,2),iu(e,2)}!0===n.firstUpdatePass&&(n.firstUpdatePass=!1),o||(e[2]&=-73),1024&e[2]&&(e[2]&=-1025,Zc(e[3],-1))}finally{ca()}}function YA(n,e,t,i){const r=e[10],o=!sa(),s=nm(e);try{o&&!s&&r.begin&&r.begin(),s&&qo(n,e,i),Ar(n,e,t,i)}finally{o&&!s&&r.end&&r.end()}}function Gg(n,e,t,i,r){const o=tt(),s=2&i;try{ri(-1),s&&e.length>20&&Og(n,e,20,sa()),t(i,r)}finally{ri(o)}}function qg(n){const e=n.tView;return null===e||e.incompleteFirstPass?n.tView=Na(1,null,n.template,n.decls,n.vars,n.directiveDefs,n.pipeDefs,n.viewQuery,n.schemas,n.consts):e}function Na(n,e,t,i,r,o,s,a,l,c){const u=20+i,d=u+r,h=function ZA(n,e){const t=[];for(let i=0;i<e;i++)t.push(i<n?null:U);return t}(u,d),f="function"==typeof c?c():c;return h[1]={type:n,blueprint:h,template:t,queries:null,viewQuery:a,declTNode:e,data:h.slice().fill(null,u),bindingStartIndex:u,expandoStartIndex:d,hostBindingOpCodes:null,firstCreatePass:!0,firstUpdatePass:!0,staticViewQueries:!1,staticContentQueries:!1,preOrderHooks:null,preOrderCheckHooks:null,contentHooks:null,contentCheckHooks:null,viewHooks:null,viewCheckHooks:null,destroyHooks:null,cleanup:null,contentQueries:null,components:null,directiveRegistry:"function"==typeof o?o():o,pipeRegistry:"function"==typeof s?s():s,firstChild:null,schemas:l,consts:f,incompleteFirstPass:!1}}function Yg(n,e,t,i){const r=s_(e);null===t?r.push(i):(r.push(t),n.firstCreatePass&&a_(n).push(i,r.length-1))}function Zg(n,e,t){for(let i in n)if(n.hasOwnProperty(i)){const r=n[i];(t=null===t?{}:t).hasOwnProperty(i)?t[i].push(e,r):t[i]=[e,r]}return t}function Dt(n,e,t,i,r,o,s,a){const l=Rt(e,t);let u,c=e.inputs;!a&&null!=c&&(u=c[i])?(u_(n,t,u,i,r),ia(e)&&function tI(n,e){const t=_t(e,n);16&t[2]||(t[2]|=64)}(t,e.index)):3&e.type&&(i=function eI(n){return"class"===n?"className":"for"===n?"htmlFor":"formaction"===n?"formAction":"innerHtml"===n?"innerHTML":"readonly"===n?"readOnly":"tabindex"===n?"tabIndex":n}(i),r=null!=s?s(r,e.value||"",i):r,Ee(o)?o.setProperty(l,i,r):ou(i)||(l.setProperty?l.setProperty(i,r):l[i]=r))}function Jg(n,e,t,i,r,o){const s=o.hostBindings;if(s){let a=n.hostBindingOpCodes;null===a&&(a=n.hostBindingOpCodes=[]);const l=~e.index;(function rI(n){let e=n.length;for(;e>0;){const t=n[--e];if("number"==typeof t&&t<0)return t}return 0})(a)!=l&&a.push(l),a.push(i,r,s)}}function e_(n,e){null!==n.hostBindings&&n.hostBindings(1,e)}function t_(n,e){e.flags|=2,(n.components||(n.components=[])).push(e.index)}function cI(n,e,t){if(t){if(e.exportAs)for(let i=0;i<e.exportAs.length;i++)t[e.exportAs[i]]=n;Gt(e)&&(t[""]=n)}}function n_(n,e,t){n.flags|=1,n.directiveStart=e,n.directiveEnd=e+t,n.providerIndexes=e}function i_(n,e,t,i,r){n.data[i]=r;const o=r.factory||(r.factory=xi(r.type)),s=new Io(o,Gt(r),null);n.blueprint[i]=s,t[i]=s,Jg(n,e,0,i,Mr(n,t,r.hostVars,U),r)}function uI(n,e,t){const i=Rt(e,n),r=qg(t),o=n[10],s=Pa(n,Wo(n,r,null,t.onPush?64:16,i,e,o,o.createRenderer(i,t),null,null));n[e.index]=s}function Cn(n,e,t,i,r,o){const s=Rt(n,e);!function td(n,e,t,i,r,o,s){if(null==o)Ee(n)?n.removeAttribute(e,r,t):e.removeAttribute(r);else{const a=null==s?H(o):s(o,i||"",r);Ee(n)?n.setAttribute(e,r,a,t):t?e.setAttributeNS(t,r,a):e.setAttribute(r,a)}}(e[z],s,o,n.value,t,i,r)}function dI(n,e,t,i,r,o){const s=o[e];if(null!==s){const a=i.setInput;for(let l=0;l<s.length;){const c=s[l++],u=s[l++],d=s[l++];null!==a?i.setInput(t,d,c,u):t[u]=d}}}function hI(n,e){let t=null,i=0;for(;i<e.length;){const r=e[i];if(0!==r)if(5!==r){if("number"==typeof r)break;n.hasOwnProperty(r)&&(null===t&&(t=[]),t.push(r,n[r],e[i+1])),i+=2}else i+=2;else i+=4}return t}function mI(n,e){const t=_t(e,n);if(Yc(t)){const i=t[1];80&t[2]?Ar(i,t,i.template,t[8]):t[5]>0&&nd(t)}}function nd(n){for(let i=xu(n);null!==i;i=Fu(i))for(let r=10;r<i.length;r++){const o=i[r];if(1024&o[2]){const s=o[1];Ar(s,o,s.template,o[8])}else o[5]>0&&nd(o)}const t=n[1].components;if(null!==t)for(let i=0;i<t.length;i++){const r=_t(t[i],n);Yc(r)&&r[5]>0&&nd(r)}}function gI(n,e){const t=_t(e,n),i=t[1];(function _I(n,e){for(let t=e.length;t<n.blueprint.length;t++)e.push(n.blueprint[t])})(i,t),qo(i,t,t[8])}function Pa(n,e){return n[13]?n[14][4]=e:n[13]=e,n[14]=e,e}function id(n){for(;n;){n[2]|=64;const e=$o(n);if(o0(n)&&!e)return n;n=e}return null}function od(n,e,t){const i=e[10];i.begin&&i.begin();try{Ar(n,e,n.template,t)}catch(r){throw c_(e,r),r}finally{i.end&&i.end()}}function o_(n){!function rd(n){for(let e=0;e<n.components.length;e++){const t=n.components[e],i=Mu(t),r=i[1];YA(r,i,r.template,t)}}(n[8])}function sd(n,e,t){nu(0),e(n,t)}const CI=(()=>Promise.resolve(null))();function s_(n){return n[7]||(n[7]=[])}function a_(n){return n.cleanup||(n.cleanup=[])}function c_(n,e){const t=n[9],i=t?t.get(yn,null):null;i&&i.handleError(e)}function u_(n,e,t,i,r){for(let o=0;o<t.length;){const s=t[o++],a=t[o++],l=e[s],c=n.data[s];null!==c.setInput?c.setInput(l,r,i,a):l[a]=r}}function jn(n,e,t){const i=oa(e,n);!function fg(n,e,t){Ee(n)?n.setValue(e,t):e.textContent=t}(n[z],i,t)}function La(n,e,t){let i=t?n.styles:null,r=t?n.classes:null,o=0;if(null!==e)for(let s=0;s<e.length;s++){const a=e[s];"number"==typeof a?o=a:1==o?r=Nc(r,a):2==o&&(i=Nc(i,a+": "+e[++s]+";"))}t?n.styles=i:n.stylesWithoutHost=i,t?n.classes=r:n.classesWithoutHost=r}const Qo=new T("INJECTOR",-1);class d_{get(e,t=No){if(t===No){const i=new Error(`NullInjectorError: No provider for ${G(e)}!`);throw i.name="NullInjectorError",i}return t}}const Ko=new T("Set Injector scope."),Yo={},wI={};let ad;function h_(){return void 0===ad&&(ad=new d_),ad}function f_(n,e=null,t=null,i){return new MI(n,t,e||h_(),i)}class MI{constructor(e,t,i,r=null){this.parent=i,this.records=new Map,this.injectorDefTypes=new Set,this.onDestroy=new Set,this._destroyed=!1;const o=[];t&&mn(t,a=>this.processProvider(a,e,t)),mn([e],a=>this.processInjectorType(a,[],o)),this.records.set(Qo,Ir(void 0,this));const s=this.records.get(Ko);this.scope=null!=s?s.value:null,this.source=r||("object"==typeof e?null:G(e))}get destroyed(){return this._destroyed}destroy(){this.assertNotDestroyed(),this._destroyed=!0;try{this.onDestroy.forEach(e=>e.ngOnDestroy())}finally{this.records.clear(),this.onDestroy.clear(),this.injectorDefTypes.clear()}}get(e,t=No,i=O.Default){this.assertNotDestroyed();const r=br(this),o=ei(void 0);try{if(!(i&O.SkipSelf)){let a=this.records.get(e);if(void 0===a){const l=function kI(n){return"function"==typeof n||"object"==typeof n&&n instanceof T}(e)&&Nn(e);a=l&&this.injectableDefInScope(l)?Ir(ld(e),Yo):null,this.records.set(e,a)}if(null!=a)return this.hydrate(e,a)}return(i&O.Self?h_():this.parent).get(e,t=i&O.Optional&&t===No?null:t)}catch(s){if("NullInjectorError"===s.name){if((s[vr]=s[vr]||[]).unshift(G(e)),r)throw s;return Rm(s,e,"R3InjectorError",this.source)}throw s}finally{ei(o),br(r)}}_resolveInjectorDefTypes(){this.injectorDefTypes.forEach(e=>this.get(e))}toString(){const e=[];return this.records.forEach((i,r)=>e.push(G(r))),`R3Injector[${e.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new Error("Injector has already been destroyed.")}processInjectorType(e,t,i){if(!(e=x(e)))return!1;let r=Hp(e);const o=null==r&&e.ngModule||void 0,s=void 0===o?e:o,a=-1!==i.indexOf(s);if(void 0!==o&&(r=Hp(o)),null==r)return!1;if(null!=r.imports&&!a){let u;i.push(s);try{mn(r.imports,d=>{this.processInjectorType(d,t,i)&&(void 0===u&&(u=[]),u.push(d))})}finally{}if(void 0!==u)for(let d=0;d<u.length;d++){const{ngModule:h,providers:f}=u[d];mn(f,p=>this.processProvider(p,h,f||ae))}}this.injectorDefTypes.add(s);const l=xi(s)||(()=>new s);this.records.set(s,Ir(l,Yo));const c=r.providers;if(null!=c&&!a){const u=e;mn(c,d=>this.processProvider(d,u,c))}return void 0!==o&&void 0!==e.providers}processProvider(e,t,i){let r=Tr(e=x(e))?e:x(e&&e.provide);const o=function II(n,e,t){return m_(n)?Ir(void 0,n.useValue):Ir(function p_(n,e,t){let i;if(Tr(n)){const r=x(n);return xi(r)||ld(r)}if(m_(n))i=()=>x(n.useValue);else if(function xI(n){return!(!n||!n.useFactory)}(n))i=()=>n.useFactory(...Oi(n.deps||[]));else if(function TI(n){return!(!n||!n.useExisting)}(n))i=()=>b(x(n.useExisting));else{const r=x(n&&(n.useClass||n.provide));if(!function RI(n){return!!n.deps}(n))return xi(r)||ld(r);i=()=>new r(...Oi(n.deps))}return i}(n),Yo)}(e);if(Tr(e)||!0!==e.multi)this.records.get(r);else{let s=this.records.get(r);s||(s=Ir(void 0,Yo,!0),s.factory=()=>Oi(s.multi),this.records.set(r,s)),r=e,s.multi.push(e)}this.records.set(r,o)}hydrate(e,t){return t.value===Yo&&(t.value=wI,t.value=t.factory()),"object"==typeof t.value&&t.value&&function OI(n){return null!==n&&"object"==typeof n&&"function"==typeof n.ngOnDestroy}(t.value)&&this.onDestroy.add(t.value),t.value}injectableDefInScope(e){if(!e.providedIn)return!1;const t=x(e.providedIn);return"string"==typeof t?"any"===t||t===this.scope:this.injectorDefTypes.has(t)}}function ld(n){const e=Nn(n),t=null!==e?e.factory:xi(n);if(null!==t)return t;if(n instanceof T)throw new Error(`Token ${G(n)} is missing a \u0275prov definition.`);if(n instanceof Function)return function AI(n){const e=n.length;if(e>0){const i=si(e,"?");throw new Error(`Can't resolve all parameters for ${G(n)}: (${i.join(", ")}).`)}const t=function GS(n){const e=n&&(n[Xs]||n[Up]);if(e){const t=function WS(n){if(n.hasOwnProperty("name"))return n.name;const e=(""+n).match(/^function\s*([^\s(]+)/);return null===e?"":e[1]}(n);return console.warn(`DEPRECATED: DI is instantiating a token "${t}" that inherits its @Injectable decorator but does not provide one itself.\nThis will become an error in a future version of Angular. Please add @Injectable() to the "${t}" class.`),e}return null}(n);return null!==t?()=>t.factory(n):()=>new n}(n);throw new Error("unreachable")}function Ir(n,e,t=!1){return{factory:n,value:e,multi:t?[]:void 0}}function m_(n){return null!==n&&"object"==typeof n&&gu in n}function Tr(n){return"function"==typeof n}const g_=function NI(n,e,t){return function SI(n,e=null,t=null,i){const r=f_(n,e,t,i);return r._resolveInjectorDefTypes(),r}({name:t},e,n,t)};let re=(()=>{class n{static create(t,i){return Array.isArray(t)?g_(t,i,""):g_(t.providers,t.parent,t.name||"")}}return n.THROW_IF_NOT_FOUND=No,n.NULL=new d_,n.\u0275prov=I({token:n,providedIn:"any",factory:()=>b(Qo)}),n.__NG_ELEMENT_ID__=-1,n})();function qI(n,e){ua(Mu(n)[1],Re())}function J(n){let e=function R_(n){return Object.getPrototypeOf(n.prototype).constructor}(n.type),t=!0;const i=[n];for(;e;){let r;if(Gt(n))r=e.\u0275cmp||e.\u0275dir;else{if(e.\u0275cmp)throw new Error("Directives cannot inherit Components");r=e.\u0275dir}if(r){if(t){i.push(r);const s=n;s.inputs=pd(n.inputs),s.declaredInputs=pd(n.declaredInputs),s.outputs=pd(n.outputs);const a=r.hostBindings;a&&ZI(n,a);const l=r.viewQuery,c=r.contentQueries;if(l&&KI(n,l),c&&YI(n,c),kc(n.inputs,r.inputs),kc(n.declaredInputs,r.declaredInputs),kc(n.outputs,r.outputs),Gt(r)&&r.data.animation){const u=n.data;u.animation=(u.animation||[]).concat(r.data.animation)}}const o=r.features;if(o)for(let s=0;s<o.length;s++){const a=o[s];a&&a.ngInherit&&a(n),a===J&&(t=!1)}}e=Object.getPrototypeOf(e)}!function QI(n){let e=0,t=null;for(let i=n.length-1;i>=0;i--){const r=n[i];r.hostVars=e+=r.hostVars,r.hostAttrs=pa(r.hostAttrs,t=pa(t,r.hostAttrs))}}(i)}function pd(n){return n===or?{}:n===ae?[]:n}function KI(n,e){const t=n.viewQuery;n.viewQuery=t?(i,r)=>{e(i,r),t(i,r)}:e}function YI(n,e){const t=n.contentQueries;n.contentQueries=t?(i,r,o)=>{e(i,r,o),t(i,r,o)}:e}function ZI(n,e){const t=n.hostBindings;n.hostBindings=t?(i,r)=>{e(i,r),t(i,r)}:e}let Va=null;function xr(){if(!Va){const n=ee.Symbol;if(n&&n.iterator)Va=n.iterator;else{const e=Object.getOwnPropertyNames(Map.prototype);for(let t=0;t<e.length;++t){const i=e[t];"entries"!==i&&"size"!==i&&Map.prototype[i]===Map.prototype.entries&&(Va=i)}}}return Va}function Xo(n){return!!md(n)&&(Array.isArray(n)||!(n instanceof Map)&&xr()in n)}function md(n){return null!==n&&("function"==typeof n||"object"==typeof n)}function qe(n,e,t){return!Object.is(n[e],t)&&(n[e]=t,!0)}function Kt(n,e,t,i){const r=C();return qe(r,dr(),e)&&(K(),Cn(De(),r,n,e,t,i)),Kt}function Rr(n,e,t,i){return qe(n,dr(),t)?e+H(t)+i:U}function es(n){return ur(function E0(){return L.lFrame.contextLView}(),20+n)}function v(n,e=O.Default){const t=C();return null===t?b(n,e):Dm(Re(),t,x(n),e)}function Un(n,e,t){const i=C();return qe(i,dr(),e)&&Dt(K(),De(),i,n,e,i[z],t,!1),Un}function bd(n,e,t,i,r){const s=r?"class":"style";u_(n,t,e.inputs[s],s,i)}function Yt(n,e,t,i){const r=C(),o=K(),s=20+n,a=r[z],l=r[s]=Ou(a,e,function O0(){return L.lFrame.currentNamespace}()),c=o.firstCreatePass?function IT(n,e,t,i,r,o,s){const a=e.consts,c=Sr(e,n,2,r,ii(a,o));return function ed(n,e,t,i){let r=!1;if(rm()){const o=function aI(n,e,t){const i=n.directiveRegistry;let r=null;if(i)for(let o=0;o<i.length;o++){const s=i[o];Fg(t,s.selectors,!1)&&(r||(r=[]),_a(xo(t,e),n,s.type),Gt(s)?(t_(n,t),r.unshift(s)):r.push(s))}return r}(n,e,t),s=null===i?null:{"":-1};if(null!==o){r=!0,n_(t,n.data.length,o.length);for(let u=0;u<o.length;u++){const d=o[u];d.providersResolver&&d.providersResolver(d)}let a=!1,l=!1,c=Mr(n,e,o.length,null);for(let u=0;u<o.length;u++){const d=o[u];t.mergedAttrs=pa(t.mergedAttrs,d.hostAttrs),i_(n,t,e,c,d),cI(c,d,s),null!==d.contentQueries&&(t.flags|=8),(null!==d.hostBindings||null!==d.hostAttrs||0!==d.hostVars)&&(t.flags|=128);const h=d.type.prototype;!a&&(h.ngOnChanges||h.ngOnInit||h.ngDoCheck)&&((n.preOrderHooks||(n.preOrderHooks=[])).push(t.index),a=!0),!l&&(h.ngOnChanges||h.ngDoCheck)&&((n.preOrderCheckHooks||(n.preOrderCheckHooks=[])).push(t.index),l=!0),c++}!function JA(n,e){const i=e.directiveEnd,r=n.data,o=e.attrs,s=[];let a=null,l=null;for(let c=e.directiveStart;c<i;c++){const u=r[c],d=u.inputs,h=null===o||xg(e)?null:hI(d,o);s.push(h),a=Zg(d,c,a),l=Zg(u.outputs,c,l)}null!==a&&(a.hasOwnProperty("class")&&(e.flags|=16),a.hasOwnProperty("style")&&(e.flags|=32)),e.initialInputs=s,e.inputs=a,e.outputs=l}(n,t)}s&&function lI(n,e,t){if(e){const i=n.localNames=[];for(let r=0;r<e.length;r+=2){const o=t[e[r+1]];if(null==o)throw new wi("301",`Export of name '${e[r+1]}' not found!`);i.push(e[r],o)}}}(t,i,s)}return t.mergedAttrs=pa(t.mergedAttrs,t.attrs),r}(e,t,c,ii(a,s)),null!==c.attrs&&La(c,c.attrs,!1),null!==c.mergedAttrs&&La(c,c.mergedAttrs,!0),null!==e.queries&&e.queries.elementStart(e,c),c}(s,o,r,0,e,t,i):o.data[s];pn(c,!0);const u=c.mergedAttrs;null!==u&&fa(a,l,u);const d=c.classes;null!==d&&Bu(a,l,d);const h=c.styles;null!==h&&Ag(a,l,h),64!=(64&c.flags)&&xa(o,r,l,c),0===function _0(){return L.lFrame.elementDepthCount}()&&We(l,r),function y0(){L.lFrame.elementDepthCount++}(),ra(c)&&(function Xu(n,e,t){!rm()||(function oI(n,e,t,i){const r=t.directiveStart,o=t.directiveEnd;n.firstCreatePass||xo(t,e),We(i,e);const s=t.initialInputs;for(let a=r;a<o;a++){const l=n.data[a],c=Gt(l);c&&uI(e,t,l);const u=Fo(e,n,a,t);We(u,e),null!==s&&dI(0,a-r,u,l,0,s),c&&(_t(t.index,e)[8]=u)}}(n,e,t,Rt(t,e)),128==(128&t.flags)&&function sI(n,e,t){const i=t.directiveStart,r=t.directiveEnd,s=t.index,a=function S0(){return L.lFrame.currentDirectiveIndex}();try{ri(s);for(let l=i;l<r;l++){const c=n.data[l],u=e[l];eu(l),(null!==c.hostBindings||0!==c.hostVars||null!==c.hostAttrs)&&e_(c,u)}}finally{ri(-1),eu(a)}}(n,e,t))}(o,r,c),function Wg(n,e,t){if(zc(e)){const r=e.directiveEnd;for(let o=e.directiveStart;o<r;o++){const s=n.data[o];s.contentQueries&&s.contentQueries(1,t[o],o)}}}(o,c,r)),null!==i&&function Ju(n,e,t=Rt){const i=e.localNames;if(null!==i){let r=e.index+1;for(let o=0;o<i.length;o+=2){const s=i[o+1],a=-1===s?t(e,n):n[s];n[r++]=a}}}(r,c)}function Zt(){let n=Re();Xc()?Jc():(n=n.parent,pn(n,!1));const e=n;!function v0(){L.lFrame.elementDepthCount--}();const t=K();t.firstCreatePass&&(ua(t,n),zc(n)&&t.queries.elementEnd(n)),null!=e.classesWithoutHost&&function V0(n){return 0!=(16&n.flags)}(e)&&bd(t,e,C(),e.classesWithoutHost,!0),null!=e.stylesWithoutHost&&function B0(n){return 0!=(32&n.flags)}(e)&&bd(t,e,C(),e.stylesWithoutHost,!1)}function Hr(n,e,t,i){Yt(n,e,t,i),Zt()}function Ha(n){return!!n&&"function"==typeof n.then}function ry(n){return!!n&&"function"==typeof n.subscribe}const Cd=ry;function dt(n,e,t,i){const r=C(),o=K(),s=Re();return function sy(n,e,t,i,r,o,s,a){const l=ra(i),u=n.firstCreatePass&&a_(n),d=e[8],h=s_(e);let f=!0;if(3&i.type||a){const m=Rt(i,e),y=a?a(m):m,_=h.length,E=a?S=>a(Ie(S[i.index])):i.index;if(Ee(t)){let S=null;if(!a&&l&&(S=function FT(n,e,t,i){const r=n.cleanup;if(null!=r)for(let o=0;o<r.length-1;o+=2){const s=r[o];if(s===t&&r[o+1]===i){const a=e[7],l=r[o+2];return a.length>l?a[l]:null}"string"==typeof s&&(o+=2)}return null}(n,e,r,i.index)),null!==S)(S.__ngLastListenerFn__||S).__ngNextListenerFn__=o,S.__ngLastListenerFn__=o,f=!1;else{o=Ed(i,e,d,o,!1);const P=t.listen(y,r,o);h.push(o,P),u&&u.push(r,E,_,_+1)}}else o=Ed(i,e,d,o,!0),y.addEventListener(r,o,s),h.push(o),u&&u.push(r,E,_,s)}else o=Ed(i,e,d,o,!1);const p=i.outputs;let g;if(f&&null!==p&&(g=p[r])){const m=g.length;if(m)for(let y=0;y<m;y+=2){const ne=e[g[y]][g[y+1]].subscribe(o),le=h.length;h.push(o,ne),u&&u.push(r,i.index,le,-(le+1))}}}(o,r,r[z],s,n,e,!!t,i),dt}function ay(n,e,t,i){try{return!1!==t(i)}catch(r){return c_(n,r),!1}}function Ed(n,e,t,i,r){return function o(s){if(s===Function)return i;const a=2&n.flags?_t(n.index,e):e;0==(32&e[2])&&id(a);let l=ay(e,0,i,s),c=o.__ngNextListenerFn__;for(;c;)l=ay(e,0,c,s)&&l,c=c.__ngNextListenerFn__;return r&&!1===l&&(s.preventDefault(),s.returnValue=!1),l}}function OT(n,e){let t=null;const i=function xA(n){const e=n.attrs;if(null!=e){const t=e.indexOf(5);if(0==(1&t))return e[t+1]}return null}(n);for(let r=0;r<e.length;r++){const o=e[r];if("*"!==o){if(null===i?Fg(n,o,!0):OA(i,o))return r}else t=r}return t}function Dd(n){const e=C()[16][6];if(!e.projection){const i=e.projection=si(n?n.length:1,null),r=i.slice();let o=e.child;for(;null!==o;){const s=n?OT(o,n):0;null!==s&&(r[s]?r[s].projectionNext=o:i[s]=o,r[s]=o),o=o.next}}}function wd(n,e=0,t){const i=C(),r=K(),o=Sr(r,20+n,16,null,t||null);null===o.projection&&(o.projection=e),Jc(),64!=(64&o.flags)&&function DA(n,e,t){Mg(e[z],0,e,t,gg(n,t,e),bg(t.parent||e[6],t,e))}(r,i,o)}function Sd(n,e,t){return Md(n,"",e,"",t),Sd}function Md(n,e,t,i,r){const o=C(),s=Rr(o,e,t,i);return s!==U&&Dt(K(),De(),o,n,s,o[z],r,!1),Md}function gy(n,e,t,i,r){const o=n[t+1],s=null===e;let a=i?qt(o):Bn(o),l=!1;for(;0!==a&&(!1===l||s);){const u=n[a+1];PT(n[a],e)&&(l=!0,n[a+1]=i?Uu(u):ju(u)),a=i?qt(u):Bn(u)}l&&(n[t+1]=i?ju(o):Uu(o))}function PT(n,e){return null===n||null==e||(Array.isArray(n)?n[1]:n)===e||!(!Array.isArray(n)||"string"!=typeof e)&&yr(n,e)>=0}const ke={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function _y(n){return n.substring(ke.key,ke.keyEnd)}function yy(n,e){const t=ke.textEnd;return t===e?-1:(e=ke.keyEnd=function jT(n,e,t){for(;e<t&&n.charCodeAt(e)>32;)e++;return e}(n,ke.key=e,t),Ur(n,e,t))}function Ur(n,e,t){for(;e<t&&n.charCodeAt(e)<=32;)e++;return e}function Ua(n,e,t){return Xt(n,e,t,!1),Ua}function zn(n,e){return Xt(n,e,null,!0),zn}function Dy(n){!function Jt(n,e,t,i){const r=K(),o=Vn(2);r.firstUpdatePass&&Sy(r,null,o,i);const s=C();if(t!==U&&qe(s,o,t)){const a=r.data[tt()];if(Ty(a,i)&&!wy(r,o)){let l=i?a.classesWithoutHost:a.stylesWithoutHost;null!==l&&(t=Nc(l,t||"")),bd(r,a,s,t,i)}else!function KT(n,e,t,i,r,o,s,a){r===U&&(r=ae);let l=0,c=0,u=0<r.length?r[0]:null,d=0<o.length?o[0]:null;for(;null!==u||null!==d;){const h=l<r.length?r[l+1]:void 0,f=c<o.length?o[c+1]:void 0;let g,p=null;u===d?(l+=2,c+=2,h!==f&&(p=d,g=f)):null===d||null!==u&&u<d?(l+=2,p=u):(c+=2,p=d,g=f),null!==p&&Ay(n,e,t,i,p,g,s,a),u=l<r.length?r[l]:null,d=c<o.length?o[c]:null}}(r,a,s,s[z],s[o+1],s[o+1]=function QT(n,e,t){if(null==t||""===t)return ae;const i=[],r=Ct(t);if(Array.isArray(r))for(let o=0;o<r.length;o++)n(i,r[o],!0);else if("object"==typeof r)for(const o in r)r.hasOwnProperty(o)&&n(i,o,r[o]);else"string"==typeof r&&e(i,r);return i}(n,e,t),i,o)}}(vt,wn,n,!0)}function wn(n,e){for(let t=function VT(n){return function by(n){ke.key=0,ke.keyEnd=0,ke.value=0,ke.valueEnd=0,ke.textEnd=n.length}(n),yy(n,Ur(n,0,ke.textEnd))}(e);t>=0;t=yy(e,t))vt(n,_y(e),!0)}function Xt(n,e,t,i){const r=C(),o=K(),s=Vn(2);o.firstUpdatePass&&Sy(o,n,s,i),e!==U&&qe(r,s,e)&&Ay(o,o.data[tt()],r,r[z],n,r[s+1]=function YT(n,e){return null==n||("string"==typeof e?n+=e:"object"==typeof n&&(n=G(Ct(n)))),n}(e,t),i,s)}function wy(n,e){return e>=n.expandoStartIndex}function Sy(n,e,t,i){const r=n.data;if(null===r[t+1]){const o=r[tt()],s=wy(n,t);Ty(o,i)&&null===e&&!s&&(e=!1),e=function $T(n,e,t,i){const r=function tu(n){const e=L.lFrame.currentDirectiveIndex;return-1===e?null:n[e]}(n);let o=i?e.residualClasses:e.residualStyles;if(null===r)0===(i?e.classBindings:e.styleBindings)&&(t=ts(t=Ad(null,n,e,t,i),e.attrs,i),o=null);else{const s=e.directiveStylingLast;if(-1===s||n[s]!==r)if(t=Ad(r,n,e,t,i),null===o){let l=function GT(n,e,t){const i=t?e.classBindings:e.styleBindings;if(0!==Bn(i))return n[qt(i)]}(n,e,i);void 0!==l&&Array.isArray(l)&&(l=Ad(null,n,e,l[1],i),l=ts(l,e.attrs,i),function WT(n,e,t,i){n[qt(t?e.classBindings:e.styleBindings)]=i}(n,e,i,l))}else o=function qT(n,e,t){let i;const r=e.directiveEnd;for(let o=1+e.directiveStylingLast;o<r;o++)i=ts(i,n[o].hostAttrs,t);return ts(i,e.attrs,t)}(n,e,i)}return void 0!==o&&(i?e.residualClasses=o:e.residualStyles=o),t}(r,o,e,i),function kT(n,e,t,i,r,o){let s=o?e.classBindings:e.styleBindings,a=qt(s),l=Bn(s);n[i]=t;let u,c=!1;if(Array.isArray(t)){const d=t;u=d[1],(null===u||yr(d,u)>0)&&(c=!0)}else u=t;if(r)if(0!==l){const h=qt(n[a+1]);n[i+1]=Ra(h,a),0!==h&&(n[h+1]=Hu(n[h+1],i)),n[a+1]=function LA(n,e){return 131071&n|e<<17}(n[a+1],i)}else n[i+1]=Ra(a,0),0!==a&&(n[a+1]=Hu(n[a+1],i)),a=i;else n[i+1]=Ra(l,0),0===a?a=i:n[l+1]=Hu(n[l+1],i),l=i;c&&(n[i+1]=ju(n[i+1])),gy(n,u,i,!0),gy(n,u,i,!1),function NT(n,e,t,i,r){const o=r?n.residualClasses:n.residualStyles;null!=o&&"string"==typeof e&&yr(o,e)>=0&&(t[i+1]=Uu(t[i+1]))}(e,u,n,i,o),s=Ra(a,l),o?e.classBindings=s:e.styleBindings=s}(r,o,e,t,s,i)}}function Ad(n,e,t,i,r){let o=null;const s=t.directiveEnd;let a=t.directiveStylingLast;for(-1===a?a=t.directiveStart:a++;a<s&&(o=e[a],i=ts(i,o.hostAttrs,r),o!==n);)a++;return null!==n&&(t.directiveStylingLast=a),i}function ts(n,e,t){const i=t?1:2;let r=-1;if(null!==e)for(let o=0;o<e.length;o++){const s=e[o];"number"==typeof s?r=s:r===i&&(Array.isArray(n)||(n=void 0===n?[]:["",n]),vt(n,s,!!t||e[++o]))}return void 0===n?null:n}function Ay(n,e,t,i,r,o,s,a){if(!(3&e.type))return;const l=n.data,c=l[a+1];za(function Pg(n){return 1==(1&n)}(c)?Iy(l,e,t,r,Bn(c),s):void 0)||(za(o)||function Ng(n){return 2==(2&n)}(c)&&(o=Iy(l,null,t,r,a,s)),function SA(n,e,t,i,r){const o=Ee(n);if(e)r?o?n.addClass(t,i):t.classList.add(i):o?n.removeClass(t,i):t.classList.remove(i);else{let s=-1===i.indexOf("-")?void 0:Et.DashCase;if(null==r)o?n.removeStyle(t,i,s):t.style.removeProperty(i);else{const a="string"==typeof r&&r.endsWith("!important");a&&(r=r.slice(0,-10),s|=Et.Important),o?n.setStyle(t,i,r,s):t.style.setProperty(i,r,a?"important":"")}}}(i,s,oa(tt(),t),r,o))}function Iy(n,e,t,i,r,o){const s=null===e;let a;for(;r>0;){const l=n[r],c=Array.isArray(l),u=c?l[1]:l,d=null===u;let h=t[r+1];h===U&&(h=d?ae:void 0);let f=d?hu(h,i):u===i?h:void 0;if(c&&!za(f)&&(f=hu(l,i)),za(f)&&(a=f,s))return a;const p=n[r+1];r=s?qt(p):Bn(p)}if(null!==e){let l=o?e.residualClasses:e.residualStyles;null!=l&&(a=hu(l,i))}return a}function za(n){return void 0!==n}function Ty(n,e){return 0!=(n.flags&(e?16:32))}function ns(n,e=""){const t=C(),i=K(),r=n+20,o=i.firstCreatePass?Sr(i,r,1,e,null):i.data[r],s=t[r]=function Ru(n,e){return Ee(n)?n.createText(e):n.createTextNode(e)}(t[z],e);xa(i,t,s,o),pn(o,!1)}function Id(n){return $a("",n,""),Id}function $a(n,e,t){const i=C(),r=Rr(i,n,e,t);return r!==U&&jn(i,tt(),r),$a}const Li=void 0;var gx=["en",[["a","p"],["AM","PM"],Li],[["AM","PM"],Li,Li],[["S","M","T","W","T","F","S"],["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],["Su","Mo","Tu","We","Th","Fr","Sa"]],Li,[["J","F","M","A","M","J","J","A","S","O","N","D"],["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],["January","February","March","April","May","June","July","August","September","October","November","December"]],Li,[["B","A"],["BC","AD"],["Before Christ","Anno Domini"]],0,[6,0],["M/d/yy","MMM d, y","MMMM d, y","EEEE, MMMM d, y"],["h:mm a","h:mm:ss a","h:mm:ss a z","h:mm:ss a zzzz"],["{1}, {0}",Li,"{1} 'at' {0}",Li],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",function mx(n){const t=Math.floor(Math.abs(n)),i=n.toString().replace(/^[^.]*\.?/,"").length;return 1===t&&0===i?1:5}];let zr={};function Yy(n){return n in zr||(zr[n]=ee.ng&&ee.ng.common&&ee.ng.common.locales&&ee.ng.common.locales[n]),zr[n]}var w=(()=>((w=w||{})[w.LocaleId=0]="LocaleId",w[w.DayPeriodsFormat=1]="DayPeriodsFormat",w[w.DayPeriodsStandalone=2]="DayPeriodsStandalone",w[w.DaysFormat=3]="DaysFormat",w[w.DaysStandalone=4]="DaysStandalone",w[w.MonthsFormat=5]="MonthsFormat",w[w.MonthsStandalone=6]="MonthsStandalone",w[w.Eras=7]="Eras",w[w.FirstDayOfWeek=8]="FirstDayOfWeek",w[w.WeekendRange=9]="WeekendRange",w[w.DateFormat=10]="DateFormat",w[w.TimeFormat=11]="TimeFormat",w[w.DateTimeFormat=12]="DateTimeFormat",w[w.NumberSymbols=13]="NumberSymbols",w[w.NumberFormats=14]="NumberFormats",w[w.CurrencyCode=15]="CurrencyCode",w[w.CurrencySymbol=16]="CurrencySymbol",w[w.CurrencyName=17]="CurrencyName",w[w.Currencies=18]="Currencies",w[w.Directionality=19]="Directionality",w[w.PluralCase=20]="PluralCase",w[w.ExtraData=21]="ExtraData",w))();const Ga="en-US";let Zy=Ga;class Ev{}const wv="ngComponent";class _F{resolveComponentFactory(e){throw function Dv(n){const e=Error(`No component factory found for ${G(n)}. Did you add it to @NgModule.entryComponents?`);return e[wv]=n,e}(e)}}let $n=(()=>{class n{}return n.NULL=new _F,n})();function Ya(...n){}function Gr(n,e){return new ye(Rt(n,e))}const bF=function yF(){return Gr(Re(),C())};let ye=(()=>{class n{constructor(t){this.nativeElement=t}}return n.__NG_ELEMENT_ID__=bF,n})();function Sv(n){return n instanceof ye?n.nativeElement:n}class Vi{}let Bi=(()=>{class n{}return n.__NG_ELEMENT_ID__=()=>EF(),n})();const EF=function wF(){const n=C(),t=_t(Re().index,n);return function DF(n){return n[z]}(fn(t)?t:n)};let Pd=(()=>{class n{}return n.\u0275prov=I({token:n,providedIn:"root",factory:()=>null}),n})();class ui{constructor(e){this.full=e,this.major=e.split(".")[0],this.minor=e.split(".")[1],this.patch=e.split(".").slice(2).join(".")}}const Mv=new ui("13.0.1"),Wr={};function Za(n,e,t,i,r=!1){for(;null!==t;){const o=e[t.index];if(null!==o&&i.push(Ie(o)),$t(o))for(let a=10;a<o.length;a++){const l=o[a],c=l[1].firstChild;null!==c&&Za(l[1],l,c,i)}const s=t.type;if(8&s)Za(n,e,t.child,i);else if(32&s){const a=Tu(t,e);let l;for(;l=a();)i.push(l)}else if(16&s){const a=wg(e,t);if(Array.isArray(a))i.push(...a);else{const l=$o(e[16]);Za(l[1],l,a,i,!0)}}t=r?t.projectionNext:t.next}return i}class as{constructor(e,t){this._lView=e,this._cdRefInjectingView=t,this._appRef=null,this._attachedToViewContainer=!1}get rootNodes(){const e=this._lView,t=e[1];return Za(t,e,t.firstChild,[])}get context(){return this._lView[8]}set context(e){this._lView[8]=e}get destroyed(){return 256==(256&this._lView[2])}destroy(){if(this._appRef)this._appRef.detachView(this);else if(this._attachedToViewContainer){const e=this._lView[3];if($t(e)){const t=e[8],i=t?t.indexOf(this):-1;i>-1&&(ku(e,i),Ri(t,i))}this._attachedToViewContainer=!1}mg(this._lView[1],this._lView)}onDestroy(e){Yg(this._lView[1],this._lView,null,e)}markForCheck(){id(this._cdRefInjectingView||this._lView)}detach(){this._lView[2]&=-129}reattach(){this._lView[2]|=128}detectChanges(){od(this._lView[1],this._lView,this.context)}checkNoChanges(){!function vI(n,e,t){aa(!0);try{od(n,e,t)}finally{aa(!1)}}(this._lView[1],this._lView,this.context)}attachToViewContainerRef(){if(this._appRef)throw new Error("This view is already attached directly to the ApplicationRef!");this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null,function mA(n,e){Go(n,e,e[z],2,null,null)}(this._lView[1],this._lView)}attachToAppRef(e){if(this._attachedToViewContainer)throw new Error("This view is already attached to a ViewContainer!");this._appRef=e}}class SF extends as{constructor(e){super(e),this._view=e}detectChanges(){o_(this._view)}checkNoChanges(){!function bI(n){aa(!0);try{o_(n)}finally{aa(!1)}}(this._view)}get context(){return null}}class Av extends $n{constructor(e){super(),this.ngModule=e}resolveComponentFactory(e){const t=$e(e);return new Ld(t,this.ngModule)}}function Iv(n){const e=[];for(let t in n)n.hasOwnProperty(t)&&e.push({propName:n[t],templateName:t});return e}const AF=new T("SCHEDULER_TOKEN",{providedIn:"root",factory:()=>ag});class Ld extends Ev{constructor(e,t){super(),this.componentDef=e,this.ngModule=t,this.componentType=e.type,this.selector=function NA(n){return n.map(kA).join(",")}(e.selectors),this.ngContentSelectors=e.ngContentSelectors?e.ngContentSelectors:[],this.isBoundToModule=!!t}get inputs(){return Iv(this.componentDef.inputs)}get outputs(){return Iv(this.componentDef.outputs)}create(e,t,i,r){const o=(r=r||this.ngModule)?function IF(n,e){return{get:(t,i,r)=>{const o=n.get(t,Wr,r);return o!==Wr||i===Wr?o:e.get(t,i,r)}}}(e,r.injector):e,s=o.get(Vi,tm),a=o.get(Pd,null),l=s.createRenderer(null,this.componentDef),c=this.componentDef.selectors[0][0]||"div",u=i?function Kg(n,e,t){if(Ee(n))return n.selectRootElement(e,t===lt.ShadowDom);let i="string"==typeof e?n.querySelector(e):e;return i.textContent="",i}(l,i,this.componentDef.encapsulation):Ou(s.createRenderer(null,this.componentDef),c,function MF(n){const e=n.toLowerCase();return"svg"===e?"http://www.w3.org/2000/svg":"math"===e?"http://www.w3.org/1998/MathML/":null}(c)),d=this.componentDef.onPush?576:528,h=function F_(n,e){return{components:[],scheduler:n||ag,clean:CI,playerHandler:e||null,flags:0}}(),f=Na(0,null,null,1,0,null,null,null,null,null),p=Wo(null,f,h,d,null,null,s,l,a,o);let g,m;la(p);try{const y=function T_(n,e,t,i,r,o){const s=t[1];t[20]=n;const l=Sr(s,20,2,"#host",null),c=l.mergedAttrs=e.hostAttrs;null!==c&&(La(l,c,!0),null!==n&&(fa(r,n,c),null!==l.classes&&Bu(r,n,l.classes),null!==l.styles&&Ag(r,n,l.styles)));const u=i.createRenderer(n,e),d=Wo(t,qg(e),null,e.onPush?64:16,t[20],l,i,u,o||null,null);return s.firstCreatePass&&(_a(xo(l,t),s,e.type),t_(s,l),n_(l,t.length,1)),Pa(t,d),t[20]=d}(u,this.componentDef,p,s,l);if(u)if(i)fa(l,u,["ng-version",Mv.full]);else{const{attrs:_,classes:E}=function PA(n){const e=[],t=[];let i=1,r=2;for(;i<n.length;){let o=n[i];if("string"==typeof o)2===r?""!==o&&e.push(o,n[++i]):8===r&&t.push(o);else{if(!Wt(r))break;r=o}i++}return{attrs:e,classes:t}}(this.componentDef.selectors[0]);_&&fa(l,u,_),E&&E.length>0&&Bu(l,u,E.join(" "))}if(m=Kc(f,20),void 0!==t){const _=m.projection=[];for(let E=0;E<this.ngContentSelectors.length;E++){const S=t[E];_.push(null!=S?Array.from(S):null)}}g=function x_(n,e,t,i,r){const o=t[1],s=function iI(n,e,t){const i=Re();n.firstCreatePass&&(t.providersResolver&&t.providersResolver(t),i_(n,i,e,Mr(n,e,1,null),t));const r=Fo(e,n,i.directiveStart,i);We(r,e);const o=Rt(i,e);return o&&We(o,e),r}(o,t,e);if(i.components.push(s),n[8]=s,r&&r.forEach(l=>l(s,e)),e.contentQueries){const l=Re();e.contentQueries(1,s,l.directiveStart)}const a=Re();return!o.firstCreatePass||null===e.hostBindings&&null===e.hostAttrs||(ri(a.index),Jg(t[1],a,0,a.directiveStart,a.directiveEnd,e),e_(e,s)),s}(y,this.componentDef,p,h,[qI]),qo(f,p,null)}finally{ca()}return new xF(this.componentType,g,Gr(m,p),p,m)}}class xF extends class gF{}{constructor(e,t,i,r,o){super(),this.location=i,this._rootLView=r,this._tNode=o,this.instance=t,this.hostView=this.changeDetectorRef=new SF(r),this.componentType=e}get injector(){return new pr(this._tNode,this._rootLView)}destroy(){this.hostView.destroy()}onDestroy(e){this.hostView.onDestroy(e)}}class ji{}const qr=new Map;class xv extends ji{constructor(e,t){super(),this._parent=t,this._bootstrapComponents=[],this.injector=this,this.destroyCbs=[],this.componentFactoryResolver=new Av(this);const i=Tt(e);this._bootstrapComponents=vn(i.bootstrap),this._r3Injector=f_(e,t,[{provide:ji,useValue:this},{provide:$n,useValue:this.componentFactoryResolver}],G(e)),this._r3Injector._resolveInjectorDefTypes(),this.instance=this.get(e)}get(e,t=re.THROW_IF_NOT_FOUND,i=O.Default){return e===re||e===ji||e===Qo?this:this._r3Injector.get(e,t,i)}destroy(){const e=this._r3Injector;!e.destroyed&&e.destroy(),this.destroyCbs.forEach(t=>t()),this.destroyCbs=null}onDestroy(e){this.destroyCbs.push(e)}}class Bd extends class RF{}{constructor(e){super(),this.moduleType=e,null!==Tt(e)&&function OF(n){const e=new Set;!function t(i){const r=Tt(i,!0),o=r.id;null!==o&&(function Tv(n,e,t){if(e&&e!==t)throw new Error(`Duplicate module registered for ${n} - ${G(e)} vs ${G(e.name)}`)}(o,qr.get(o),i),qr.set(o,i));const s=vn(r.imports);for(const a of s)e.has(a)||(e.add(a),t(a))}(n)}(e)}create(e){return new xv(this.moduleType,e)}}function Rv(n,e,t,i,r,o){const s=e+t;return qe(n,s,r)?function En(n,e,t){return n[e]=t}(n,s+1,o?i.call(o,r):i(r)):function ls(n,e){const t=n[e];return t===U?void 0:t}(n,s+1)}function jd(n){return e=>{setTimeout(n,void 0,e)}}const Ve=class QF extends Pe{constructor(e=!1){super(),this.__isAsync=e}emit(e){super.next(e)}subscribe(e,t,i){var r,o,s;let a=e,l=t||(()=>null),c=i;if(e&&"object"==typeof e){const d=e;a=null===(r=d.next)||void 0===r?void 0:r.bind(d),l=null===(o=d.error)||void 0===o?void 0:o.bind(d),c=null===(s=d.complete)||void 0===s?void 0:s.bind(d)}this.__isAsync&&(l=jd(l),a&&(a=jd(a)),c&&(c=jd(c)));const u=super.subscribe({next:a,error:l,complete:c});return e instanceof se&&e.add(u),u}};function KF(){return this._results[xr()]()}class Xa{constructor(e=!1){this._emitDistinctChangesOnly=e,this.dirty=!0,this._results=[],this._changesDetected=!1,this._changes=null,this.length=0,this.first=void 0,this.last=void 0;const t=xr(),i=Xa.prototype;i[t]||(i[t]=KF)}get changes(){return this._changes||(this._changes=new Ve)}get(e){return this._results[e]}map(e){return this._results.map(e)}filter(e){return this._results.filter(e)}find(e){return this._results.find(e)}reduce(e,t){return this._results.reduce(e,t)}forEach(e){this._results.forEach(e)}some(e){return this._results.some(e)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(e,t){const i=this;i.dirty=!1;const r=Ot(e);(this._changesDetected=!function K0(n,e,t){if(n.length!==e.length)return!1;for(let i=0;i<n.length;i++){let r=n[i],o=e[i];if(t&&(r=t(r),o=t(o)),o!==r)return!1}return!0}(i._results,r,t))&&(i._results=r,i.length=r.length,i.last=r[this.length-1],i.first=r[0])}notifyOnChanges(){this._changes&&(this._changesDetected||!this._emitDistinctChangesOnly)&&this._changes.emit(this)}setDirty(){this.dirty=!0}destroy(){this.changes.complete(),this.changes.unsubscribe()}}Symbol;const ZF=function eR(){return Ja(Re(),C())};let Gn=(()=>{class n{}return n.__NG_ELEMENT_ID__=ZF,n})();const XF=Gn,JF=class extends XF{constructor(e,t,i){super(),this._declarationLView=e,this._declarationTContainer=t,this.elementRef=i}createEmbeddedView(e){const t=this._declarationTContainer.tViews,i=Wo(this._declarationLView,t,e,16,null,t.declTNode,null,null,null,null);i[17]=this._declarationLView[this._declarationTContainer.index];const o=this._declarationLView[19];return null!==o&&(i[19]=o.createEmbeddedView(t)),qo(t,i,e),new as(i)}};function Ja(n,e){return 4&n.type?new JF(e,n,Gr(n,e)):null}const nR=function iR(){return Hv(Re(),C())};let en=(()=>{class n{}return n.__NG_ELEMENT_ID__=nR,n})();const rR=en,Bv=class extends rR{constructor(e,t,i){super(),this._lContainer=e,this._hostTNode=t,this._hostLView=i}get element(){return Gr(this._hostTNode,this._hostLView)}get injector(){return new pr(this._hostTNode,this._hostLView)}get parentInjector(){const e=ga(this._hostTNode,this._hostLView);if(ym(e)){const t=fr(e,this._hostLView),i=hr(e);return new pr(t[1].data[i+8],t)}return new pr(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(e){const t=jv(this._lContainer);return null!==t&&t[e]||null}get length(){return this._lContainer.length-10}createEmbeddedView(e,t,i){const r=e.createEmbeddedView(t||{});return this.insert(r,i),r}createComponent(e,t,i,r,o){const s=e&&!function Oo(n){return"function"==typeof n}(e);let a;if(s)a=t;else{const d=t||{};a=d.index,i=d.injector,r=d.projectableNodes,o=d.ngModuleRef}const l=s?e:new Ld($e(e)),c=i||this.parentInjector;if(!o&&null==l.ngModule&&c){const d=c.get(ji,null);d&&(o=d)}const u=l.create(c,r,void 0,o);return this.insert(u.hostView,a),u}insert(e,t){const i=e._lView,r=i[1];if(function g0(n){return $t(n[3])}(i)){const u=this.indexOf(e);if(-1!==u)this.detach(u);else{const d=i[3],h=new Bv(d,d[6],d[3]);h.detach(h.indexOf(e))}}const o=this._adjustIndex(t),s=this._lContainer;!function _A(n,e,t,i){const r=10+i,o=t.length;i>0&&(t[r-1][4]=e),i<o-10?(e[4]=t[r],ba(t,10+i,e)):(t.push(e),e[4]=null),e[3]=t;const s=e[17];null!==s&&t!==s&&function yA(n,e){const t=n[9];e[16]!==e[3][3][16]&&(n[2]=!0),null===t?n[9]=[e]:t.push(e)}(s,e);const a=e[19];null!==a&&a.insertView(n),e[2]|=128}(r,i,s,o);const a=Lu(o,s),l=i[z],c=Ta(l,s[7]);return null!==c&&function pA(n,e,t,i,r,o){i[0]=r,i[6]=e,Go(n,i,t,1,r,o)}(r,s[6],l,i,c,a),e.attachToViewContainerRef(),ba(Hd(s),o,e),e}move(e,t){return this.insert(e,t)}indexOf(e){const t=jv(this._lContainer);return null!==t?t.indexOf(e):-1}remove(e){const t=this._adjustIndex(e,-1),i=ku(this._lContainer,t);i&&(Ri(Hd(this._lContainer),t),mg(i[1],i))}detach(e){const t=this._adjustIndex(e,-1),i=ku(this._lContainer,t);return i&&null!=Ri(Hd(this._lContainer),t)?new as(i):null}_adjustIndex(e,t=0){return null==e?this.length+t:e}};function jv(n){return n[8]}function Hd(n){return n[8]||(n[8]=[])}function Hv(n,e){let t;const i=e[n.index];if($t(i))t=i;else{let r;if(8&n.type)r=Ie(i);else{const o=e[z];r=o.createComment("");const s=Rt(n,e);Ni(o,Ta(o,s),r,function EA(n,e){return Ee(n)?n.nextSibling(e):e.nextSibling}(o,s),!1)}e[n.index]=t=function r_(n,e,t,i){return new Array(n,!0,!1,e,null,0,i,t,null,null)}(i,e,r,n),Pa(e,t)}return new Bv(t,n,e)}class Ud{constructor(e){this.queryList=e,this.matches=null}clone(){return new Ud(this.queryList)}setDirty(){this.queryList.setDirty()}}class zd{constructor(e=[]){this.queries=e}createEmbeddedView(e){const t=e.queries;if(null!==t){const i=null!==e.contentQueries?e.contentQueries[0]:t.length,r=[];for(let o=0;o<i;o++){const s=t.getByIndex(o);r.push(this.queries[s.indexInDeclarationView].clone())}return new zd(r)}return null}insertView(e){this.dirtyQueriesWithMatches(e)}detachView(e){this.dirtyQueriesWithMatches(e)}dirtyQueriesWithMatches(e){for(let t=0;t<this.queries.length;t++)null!==Wv(e,t).matches&&this.queries[t].setDirty()}}class Uv{constructor(e,t,i=null){this.predicate=e,this.flags=t,this.read=i}}class $d{constructor(e=[]){this.queries=e}elementStart(e,t){for(let i=0;i<this.queries.length;i++)this.queries[i].elementStart(e,t)}elementEnd(e){for(let t=0;t<this.queries.length;t++)this.queries[t].elementEnd(e)}embeddedTView(e){let t=null;for(let i=0;i<this.length;i++){const r=null!==t?t.length:0,o=this.getByIndex(i).embeddedTView(e,r);o&&(o.indexInDeclarationView=i,null!==t?t.push(o):t=[o])}return null!==t?new $d(t):null}template(e,t){for(let i=0;i<this.queries.length;i++)this.queries[i].template(e,t)}getByIndex(e){return this.queries[e]}get length(){return this.queries.length}track(e){this.queries.push(e)}}class Gd{constructor(e,t=-1){this.metadata=e,this.matches=null,this.indexInDeclarationView=-1,this.crossesNgTemplate=!1,this._appliesToNextNode=!0,this._declarationNodeIndex=t}elementStart(e,t){this.isApplyingToNode(t)&&this.matchTNode(e,t)}elementEnd(e){this._declarationNodeIndex===e.index&&(this._appliesToNextNode=!1)}template(e,t){this.elementStart(e,t)}embeddedTView(e,t){return this.isApplyingToNode(e)?(this.crossesNgTemplate=!0,this.addMatch(-e.index,t),new Gd(this.metadata)):null}isApplyingToNode(e){if(this._appliesToNextNode&&1!=(1&this.metadata.flags)){const t=this._declarationNodeIndex;let i=e.parent;for(;null!==i&&8&i.type&&i.index!==t;)i=i.parent;return t===(null!==i?i.index:-1)}return this._appliesToNextNode}matchTNode(e,t){const i=this.metadata.predicate;if(Array.isArray(i))for(let r=0;r<i.length;r++){const o=i[r];this.matchTNodeWithReadOption(e,t,aR(t,o)),this.matchTNodeWithReadOption(e,t,ya(t,e,o,!1,!1))}else i===Gn?4&t.type&&this.matchTNodeWithReadOption(e,t,-1):this.matchTNodeWithReadOption(e,t,ya(t,e,i,!1,!1))}matchTNodeWithReadOption(e,t,i){if(null!==i){const r=this.metadata.read;if(null!==r)if(r===ye||r===en||r===Gn&&4&t.type)this.addMatch(t.index,-2);else{const o=ya(t,e,r,!1,!1);null!==o&&this.addMatch(t.index,o)}else this.addMatch(t.index,i)}}addMatch(e,t){null===this.matches?this.matches=[e,t]:this.matches.push(e,t)}}function aR(n,e){const t=n.localNames;if(null!==t)for(let i=0;i<t.length;i+=2)if(t[i]===e)return t[i+1];return null}function cR(n,e,t,i){return-1===t?function lR(n,e){return 11&n.type?Gr(n,e):4&n.type?Ja(n,e):null}(e,n):-2===t?function uR(n,e,t){return t===ye?Gr(e,n):t===Gn?Ja(e,n):t===en?Hv(e,n):void 0}(n,e,i):Fo(n,n[1],t,e)}function zv(n,e,t,i){const r=e[19].queries[i];if(null===r.matches){const o=n.data,s=t.matches,a=[];for(let l=0;l<s.length;l+=2){const c=s[l];a.push(c<0?null:cR(e,o[c],s[l+1],t.metadata.read))}r.matches=a}return r.matches}function Wd(n,e,t,i){const r=n.queries.getByIndex(t),o=r.matches;if(null!==o){const s=zv(n,e,r,t);for(let a=0;a<o.length;a+=2){const l=o[a];if(l>0)i.push(s[a/2]);else{const c=o[a+1],u=e[-l];for(let d=10;d<u.length;d++){const h=u[d];h[17]===h[3]&&Wd(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];Wd(f[1],f,c,i)}}}}}return i}function Qr(n){const e=C(),t=K(),i=cm();nu(i+1);const r=Wv(t,i);if(n.dirty&&nm(e)===(2==(2&r.metadata.flags))){if(null===r.matches)n.reset([]);else{const o=r.crossesNgTemplate?Wd(t,e,i,[]):zv(t,e,r,i);n.reset(o,Sv),n.notifyOnChanges()}return!0}return!1}function Kr(n,e,t){const i=K();i.firstCreatePass&&(function Gv(n,e,t){null===n.queries&&(n.queries=new $d),n.queries.track(new Gd(e,t))}(i,new Uv(n,e,t),-1),2==(2&e)&&(i.staticViewQueries=!0)),function $v(n,e,t){const i=new Xa(4==(4&t));Yg(n,e,i,i.destroy),null===e[19]&&(e[19]=new zd),e[19].queries.push(new Ud(i))}(i,C(),e)}function Yr(){return function hR(n,e){return n[19].queries[e].queryList}(C(),cm())}function Wv(n,e){return n.queries.getByIndex(e)}const nl=new T("Application Initializer");let Xr=(()=>{class n{constructor(t){this.appInits=t,this.resolve=Ya,this.reject=Ya,this.initialized=!1,this.done=!1,this.donePromise=new Promise((i,r)=>{this.resolve=i,this.reject=r})}runInitializers(){if(this.initialized)return;const t=[],i=()=>{this.done=!0,this.resolve()};if(this.appInits)for(let r=0;r<this.appInits.length;r++){const o=this.appInits[r]();if(Ha(o))t.push(o);else if(Cd(o)){const s=new Promise((a,l)=>{o.subscribe({complete:a,error:l})});t.push(s)}}Promise.all(t).then(()=>{i()}).catch(r=>{this.reject(r)}),0===t.length&&i(),this.initialized=!0}}return n.\u0275fac=function(t){return new(t||n)(b(nl,8))},n.\u0275prov=I({token:n,factory:n.\u0275fac}),n})();const ds=new T("AppId"),kR={provide:ds,useFactory:function OR(){return`${Xd()}${Xd()}${Xd()}`},deps:[]};function Xd(){return String.fromCharCode(97+Math.floor(25*Math.random()))}const cb=new T("Platform Initializer"),il=new T("Platform ID"),NR=new T("appBootstrapListener");let Jd=(()=>{class n{log(t){console.log(t)}warn(t){console.warn(t)}}return n.\u0275fac=function(t){return new(t||n)},n.\u0275prov=I({token:n,factory:n.\u0275fac}),n})();const Wn=new T("LocaleId"),ub=new T("DefaultCurrencyCode");class LR{constructor(e,t){this.ngModuleFactory=e,this.componentFactories=t}}const eh=function(n){return new Bd(n)},VR=eh,BR=function(n){return Promise.resolve(eh(n))},hb=function(n){const e=eh(n),i=vn(Tt(n).declarations).reduce((r,o)=>{const s=$e(o);return s&&r.push(new Ld(s)),r},[]);return new LR(e,i)},jR=hb,HR=function(n){return Promise.resolve(hb(n))};let fb=(()=>{class n{constructor(){this.compileModuleSync=VR,this.compileModuleAsync=BR,this.compileModuleAndAllComponentsSync=jR,this.compileModuleAndAllComponentsAsync=HR}clearCache(){}clearCacheFor(t){}getModuleId(t){}}return n.\u0275fac=function(t){return new(t||n)},n.\u0275prov=I({token:n,factory:n.\u0275fac}),n})();const $R=(()=>Promise.resolve(0))();function th(n){"undefined"==typeof Zone?$R.then(()=>{n&&n.apply(null,null)}):Zone.current.scheduleMicroTask("scheduleMicrotask",n)}class oe{constructor({enableLongStackTrace:e=!1,shouldCoalesceEventChangeDetection:t=!1,shouldCoalesceRunChangeDetection:i=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new Ve(!1),this.onMicrotaskEmpty=new Ve(!1),this.onStable=new Ve(!1),this.onError=new Ve(!1),"undefined"==typeof Zone)throw new Error("In this configuration Angular requires Zone.js");Zone.assertZonePatched();const r=this;r._nesting=0,r._outer=r._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(r._inner=r._inner.fork(new Zone.TaskTrackingZoneSpec)),e&&Zone.longStackTraceZoneSpec&&(r._inner=r._inner.fork(Zone.longStackTraceZoneSpec)),r.shouldCoalesceEventChangeDetection=!i&&t,r.shouldCoalesceRunChangeDetection=i,r.lastRequestAnimationFrameId=-1,r.nativeRequestAnimationFrame=function GR(){let n=ee.requestAnimationFrame,e=ee.cancelAnimationFrame;if("undefined"!=typeof Zone&&n&&e){const t=n[Zone.__symbol__("OriginalDelegate")];t&&(n=t);const i=e[Zone.__symbol__("OriginalDelegate")];i&&(e=i)}return{nativeRequestAnimationFrame:n,nativeCancelAnimationFrame:e}}().nativeRequestAnimationFrame,function QR(n){const e=()=>{!function qR(n){n.isCheckStableRunning||-1!==n.lastRequestAnimationFrameId||(n.lastRequestAnimationFrameId=n.nativeRequestAnimationFrame.call(ee,()=>{n.fakeTopEventTask||(n.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{n.lastRequestAnimationFrameId=-1,ih(n),n.isCheckStableRunning=!0,nh(n),n.isCheckStableRunning=!1},void 0,()=>{},()=>{})),n.fakeTopEventTask.invoke()}),ih(n))}(n)};n._inner=n._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(t,i,r,o,s,a)=>{try{return pb(n),t.invokeTask(r,o,s,a)}finally{(n.shouldCoalesceEventChangeDetection&&"eventTask"===o.type||n.shouldCoalesceRunChangeDetection)&&e(),mb(n)}},onInvoke:(t,i,r,o,s,a,l)=>{try{return pb(n),t.invoke(r,o,s,a,l)}finally{n.shouldCoalesceRunChangeDetection&&e(),mb(n)}},onHasTask:(t,i,r,o)=>{t.hasTask(r,o),i===r&&("microTask"==o.change?(n._hasPendingMicrotasks=o.microTask,ih(n),nh(n)):"macroTask"==o.change&&(n.hasPendingMacrotasks=o.macroTask))},onHandleError:(t,i,r,o)=>(t.handleError(r,o),n.runOutsideAngular(()=>n.onError.emit(o)),!1)})}(r)}static isInAngularZone(){return!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!oe.isInAngularZone())throw new Error("Expected to be in Angular Zone, but it is not!")}static assertNotInAngularZone(){if(oe.isInAngularZone())throw new Error("Expected to not be in Angular Zone, but it is!")}run(e,t,i){return this._inner.run(e,t,i)}runTask(e,t,i,r){const o=this._inner,s=o.scheduleEventTask("NgZoneEvent: "+r,e,WR,Ya,Ya);try{return o.runTask(s,t,i)}finally{o.cancelTask(s)}}runGuarded(e,t,i){return this._inner.runGuarded(e,t,i)}runOutsideAngular(e){return this._outer.run(e)}}const WR={};function nh(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 ih(n){n.hasPendingMicrotasks=!!(n._hasPendingMicrotasks||(n.shouldCoalesceEventChangeDetection||n.shouldCoalesceRunChangeDetection)&&-1!==n.lastRequestAnimationFrameId)}function pb(n){n._nesting++,n.isStable&&(n.isStable=!1,n.onUnstable.emit(null))}function mb(n){n._nesting--,nh(n)}class KR{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new Ve,this.onMicrotaskEmpty=new Ve,this.onStable=new Ve,this.onError=new Ve}run(e,t,i){return e.apply(t,i)}runGuarded(e,t,i){return e.apply(t,i)}runOutsideAngular(e){return e()}runTask(e,t,i,r){return e.apply(t,i)}}let rh=(()=>{class n{constructor(t){this._ngZone=t,this._pendingCount=0,this._isZoneStable=!0,this._didWork=!1,this._callbacks=[],this.taskTrackingZone=null,this._watchAngularEvents(),t.run(()=>{this.taskTrackingZone="undefined"==typeof Zone?null:Zone.current.get("TaskTrackingZone")})}_watchAngularEvents(){this._ngZone.onUnstable.subscribe({next:()=>{this._didWork=!0,this._isZoneStable=!1}}),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.subscribe({next:()=>{oe.assertNotInAngularZone(),th(()=>{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())th(()=>{for(;0!==this._callbacks.length;){let t=this._callbacks.pop();clearTimeout(t.timeoutId),t.doneCb(this._didWork)}this._didWork=!1});else{let t=this.getPendingTasks();this._callbacks=this._callbacks.filter(i=>!i.updateCb||!i.updateCb(t)||(clearTimeout(i.timeoutId),!1)),this._didWork=!0}}getPendingTasks(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(t=>({source:t.source,creationLocation:t.creationLocation,data:t.data})):[]}addCallback(t,i,r){let o=-1;i&&i>0&&(o=setTimeout(()=>{this._callbacks=this._callbacks.filter(s=>s.timeoutId!==o),t(this._didWork,this.getPendingTasks())},i)),this._callbacks.push({doneCb:t,timeoutId:o,updateCb:r})}whenStable(t,i,r){if(r&&!this.taskTrackingZone)throw new Error('Task tracking zone is required when passing an update callback to whenStable(). Is "zone.js/plugins/task-tracking" loaded?');this.addCallback(t,i,r),this._runCallbacksIfReady()}getPendingRequestCount(){return this._pendingCount}findProviders(t,i,r){return[]}}return n.\u0275fac=function(t){return new(t||n)(b(oe))},n.\u0275prov=I({token:n,factory:n.\u0275fac}),n})(),gb=(()=>{class n{constructor(){this._applications=new Map,oh.addToWindow(this)}registerApplication(t,i){this._applications.set(t,i)}unregisterApplication(t){this._applications.delete(t)}unregisterAllApplications(){this._applications.clear()}getTestability(t){return this._applications.get(t)||null}getAllTestabilities(){return Array.from(this._applications.values())}getAllRootElements(){return Array.from(this._applications.keys())}findTestabilityInTree(t,i=!0){return oh.findTestabilityInTree(this,t,i)}}return n.\u0275fac=function(t){return new(t||n)},n.\u0275prov=I({token:n,factory:n.\u0275fac}),n})();class YR{addToWindow(e){}findTestabilityInTree(e,t,i){return null}}let oh=new YR,_b=!0,yb=!1;function sh(){return yb=!0,_b}let tn;const vb=new T("AllowMultipleToken");function bb(n,e,t=[]){const i=`Platform: ${e}`,r=new T(i);return(o=[])=>{let s=Cb();if(!s||s.injector.get(vb,!1))if(n)n(t.concat(o).concat({provide:r,useValue:!0}));else{const a=t.concat(o).concat({provide:r,useValue:!0},{provide:Ko,useValue:"platform"});!function sO(n){if(tn&&!tn.destroyed&&!tn.injector.get(vb,!1))throw new Error("There can be only one platform. Destroy the previous one to create a new one.");tn=n.get(Eb);const e=n.get(cb,null);e&&e.forEach(t=>t())}(re.create({providers:a,name:i}))}return function aO(n){const e=Cb();if(!e)throw new Error("No platform exists!");if(!e.injector.get(n,null))throw new Error("A platform with a different configuration has been created. Please destroy it first.");return e}(r)}}function Cb(){return tn&&!tn.destroyed?tn:null}let Eb=(()=>{class n{constructor(t){this._injector=t,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(t,i){const a=function lO(n,e){let t;return t="noop"===n?new KR:("zone.js"===n?void 0:n)||new oe({enableLongStackTrace:sh(),shouldCoalesceEventChangeDetection:!!(null==e?void 0:e.ngZoneEventCoalescing),shouldCoalesceRunChangeDetection:!!(null==e?void 0:e.ngZoneRunCoalescing)}),t}(i?i.ngZone:void 0,{ngZoneEventCoalescing:i&&i.ngZoneEventCoalescing||!1,ngZoneRunCoalescing:i&&i.ngZoneRunCoalescing||!1}),l=[{provide:oe,useValue:a}];return a.run(()=>{const c=re.create({providers:l,parent:this.injector,name:t.moduleType.name}),u=t.create(c),d=u.injector.get(yn,null);if(!d)throw new Error("No ErrorHandler. Is platform module (BrowserModule) included?");return a.runOutsideAngular(()=>{const h=a.onError.subscribe({next:f=>{d.handleError(f)}});u.onDestroy(()=>{ah(this._modules,u),h.unsubscribe()})}),function cO(n,e,t){try{const i=t();return Ha(i)?i.catch(r=>{throw e.runOutsideAngular(()=>n.handleError(r)),r}):i}catch(i){throw e.runOutsideAngular(()=>n.handleError(i)),i}}(d,a,()=>{const h=u.injector.get(Xr);return h.runInitializers(),h.donePromise.then(()=>(function Cx(n){pt(n,"Expected localeId to be defined"),"string"==typeof n&&(Zy=n.toLowerCase().replace(/_/g,"-"))}(u.injector.get(Wn,Ga)||Ga),this._moduleDoBootstrap(u),u))})})}bootstrapModule(t,i=[]){const r=Db({},i);return function eO(n,e,t){const i=new Bd(t);return Promise.resolve(i)}(0,0,t).then(o=>this.bootstrapModuleFactory(o,r))}_moduleDoBootstrap(t){const i=t.injector.get(Hi);if(t._bootstrapComponents.length>0)t._bootstrapComponents.forEach(r=>i.bootstrap(r));else{if(!t.instance.ngDoBootstrap)throw new Error(`The module ${G(t.instance.constructor)} was bootstrapped, but it does not declare "@NgModule.bootstrap" components nor a "ngDoBootstrap" method. Please define one of these.`);t.instance.ngDoBootstrap(i)}this._modules.push(t)}onDestroy(t){this._destroyListeners.push(t)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new Error("The platform has already been destroyed!");this._modules.slice().forEach(t=>t.destroy()),this._destroyListeners.forEach(t=>t()),this._destroyed=!0}get destroyed(){return this._destroyed}}return n.\u0275fac=function(t){return new(t||n)(b(re))},n.\u0275prov=I({token:n,factory:n.\u0275fac}),n})();function Db(n,e){return Array.isArray(e)?e.reduce(Db,n):Object.assign(Object.assign({},n),e)}let Hi=(()=>{class n{constructor(t,i,r,o,s){this._zone=t,this._injector=i,this._exceptionHandler=r,this._componentFactoryResolver=o,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 a=new me(c=>{this._stable=this._zone.isStable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks,this._zone.runOutsideAngular(()=>{c.next(this._stable),c.complete()})}),l=new me(c=>{let u;this._zone.runOutsideAngular(()=>{u=this._zone.onStable.subscribe(()=>{oe.assertNotInAngularZone(),th(()=>{!this._stable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks&&(this._stable=!0,c.next(!0))})})});const d=this._zone.onUnstable.subscribe(()=>{oe.assertInAngularZone(),this._stable&&(this._stable=!1,this._zone.runOutsideAngular(()=>{c.next(!1)}))});return()=>{u.unsubscribe(),d.unsubscribe()}});this.isStable=Oc(a,l.pipe(Vp()))}bootstrap(t,i){if(!this._initStatus.done)throw new Error("Cannot bootstrap as there are still asynchronous initializers running. Bootstrap components in the `ngDoBootstrap` method of the root module.");let r;r=t instanceof Ev?t:this._componentFactoryResolver.resolveComponentFactory(t),this.componentTypes.push(r.componentType);const o=function rO(n){return n.isBoundToModule}(r)?void 0:this._injector.get(ji),a=r.create(re.NULL,[],i||r.selector,o),l=a.location.nativeElement,c=a.injector.get(rh,null),u=c&&a.injector.get(gb);return c&&u&&u.registerApplication(l,c),a.onDestroy(()=>{this.detachView(a.hostView),ah(this.components,a),u&&u.unregisterApplication(l)}),this._loadComponent(a),a}tick(){if(this._runningTick)throw new Error("ApplicationRef.tick is called recursively");try{this._runningTick=!0;for(let t of this._views)t.detectChanges()}catch(t){this._zone.runOutsideAngular(()=>this._exceptionHandler.handleError(t))}finally{this._runningTick=!1}}attachView(t){const i=t;this._views.push(i),i.attachToAppRef(this)}detachView(t){const i=t;ah(this._views,i),i.detachFromAppRef()}_loadComponent(t){this.attachView(t.hostView),this.tick(),this.components.push(t),this._injector.get(NR,[]).concat(this._bootstrapListeners).forEach(r=>r(t))}ngOnDestroy(){this._views.slice().forEach(t=>t.destroy()),this._onMicrotaskEmptySubscription.unsubscribe()}get viewCount(){return this._views.length}}return n.\u0275fac=function(t){return new(t||n)(b(oe),b(re),b(yn),b($n),b(Xr))},n.\u0275prov=I({token:n,factory:n.\u0275fac}),n})();function ah(n,e){const t=n.indexOf(e);t>-1&&n.splice(t,1)}const hO=function fO(n){return function pO(n,e,t){if(ia(n)&&!t){const i=_t(n.index,e);return new as(i,i)}return 47&n.type?new as(e[16],e):null}(Re(),C(),16==(16&n))};let Jr=(()=>{class n{}return n.__NG_ELEMENT_ID__=hO,n})();class xb{constructor(){}supports(e){return Xo(e)}create(e){return new SO(e)}}const wO=(n,e)=>e;class SO{constructor(e){this.length=0,this._linkedRecords=null,this._unlinkedRecords=null,this._previousItHead=null,this._itHead=null,this._itTail=null,this._additionsHead=null,this._additionsTail=null,this._movesHead=null,this._movesTail=null,this._removalsHead=null,this._removalsTail=null,this._identityChangesHead=null,this._identityChangesTail=null,this._trackByFn=e||wO}forEachItem(e){let t;for(t=this._itHead;null!==t;t=t._next)e(t)}forEachOperation(e){let t=this._itHead,i=this._removalsHead,r=0,o=null;for(;t||i;){const s=!i||t&&t.currentIndex<Rb(i,r,o)?t:i,a=Rb(s,r,o),l=s.currentIndex;if(s===i)r--,i=i._nextRemoved;else if(t=t._next,null==s.previousIndex)r++;else{o||(o=[]);const c=a-r,u=l-r;if(c!=u){for(let h=0;h<c;h++){const f=h<o.length?o[h]:o[h]=0,p=f+h;u<=p&&p<c&&(o[h]=f+1)}o[s.previousIndex]=u-c}}a!==l&&e(s,a,l)}}forEachPreviousItem(e){let t;for(t=this._previousItHead;null!==t;t=t._nextPrevious)e(t)}forEachAddedItem(e){let t;for(t=this._additionsHead;null!==t;t=t._nextAdded)e(t)}forEachMovedItem(e){let t;for(t=this._movesHead;null!==t;t=t._nextMoved)e(t)}forEachRemovedItem(e){let t;for(t=this._removalsHead;null!==t;t=t._nextRemoved)e(t)}forEachIdentityChange(e){let t;for(t=this._identityChangesHead;null!==t;t=t._nextIdentityChange)e(t)}diff(e){if(null==e&&(e=[]),!Xo(e))throw new Error(`Error trying to diff '${G(e)}'. Only arrays and iterables are allowed`);return this.check(e)?this:null}onDestroy(){}check(e){this._reset();let r,o,s,t=this._itHead,i=!1;if(Array.isArray(e)){this.length=e.length;for(let a=0;a<this.length;a++)o=e[a],s=this._trackByFn(a,o),null!==t&&Object.is(t.trackById,s)?(i&&(t=this._verifyReinsertion(t,o,s,a)),Object.is(t.item,o)||this._addIdentityChange(t,o)):(t=this._mismatch(t,o,s,a),i=!0),t=t._next}else r=0,function nT(n,e){if(Array.isArray(n))for(let t=0;t<n.length;t++)e(n[t]);else{const t=n[xr()]();let i;for(;!(i=t.next()).done;)e(i.value)}}(e,a=>{s=this._trackByFn(r,a),null!==t&&Object.is(t.trackById,s)?(i&&(t=this._verifyReinsertion(t,a,s,r)),Object.is(t.item,a)||this._addIdentityChange(t,a)):(t=this._mismatch(t,a,s,r),i=!0),t=t._next,r++}),this.length=r;return this._truncate(t),this.collection=e,this.isDirty}get isDirty(){return null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead}_reset(){if(this.isDirty){let e;for(e=this._previousItHead=this._itHead;null!==e;e=e._next)e._nextPrevious=e._next;for(e=this._additionsHead;null!==e;e=e._nextAdded)e.previousIndex=e.currentIndex;for(this._additionsHead=this._additionsTail=null,e=this._movesHead;null!==e;e=e._nextMoved)e.previousIndex=e.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(e,t,i,r){let o;return null===e?o=this._itTail:(o=e._prev,this._remove(e)),null!==(e=null===this._unlinkedRecords?null:this._unlinkedRecords.get(i,null))?(Object.is(e.item,t)||this._addIdentityChange(e,t),this._reinsertAfter(e,o,r)):null!==(e=null===this._linkedRecords?null:this._linkedRecords.get(i,r))?(Object.is(e.item,t)||this._addIdentityChange(e,t),this._moveAfter(e,o,r)):e=this._addAfter(new MO(t,i),o,r),e}_verifyReinsertion(e,t,i,r){let o=null===this._unlinkedRecords?null:this._unlinkedRecords.get(i,null);return null!==o?e=this._reinsertAfter(o,e._prev,r):e.currentIndex!=r&&(e.currentIndex=r,this._addToMoves(e,r)),e}_truncate(e){for(;null!==e;){const t=e._next;this._addToRemovals(this._unlink(e)),e=t}null!==this._unlinkedRecords&&this._unlinkedRecords.clear(),null!==this._additionsTail&&(this._additionsTail._nextAdded=null),null!==this._movesTail&&(this._movesTail._nextMoved=null),null!==this._itTail&&(this._itTail._next=null),null!==this._removalsTail&&(this._removalsTail._nextRemoved=null),null!==this._identityChangesTail&&(this._identityChangesTail._nextIdentityChange=null)}_reinsertAfter(e,t,i){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(e);const r=e._prevRemoved,o=e._nextRemoved;return null===r?this._removalsHead=o:r._nextRemoved=o,null===o?this._removalsTail=r:o._prevRemoved=r,this._insertAfter(e,t,i),this._addToMoves(e,i),e}_moveAfter(e,t,i){return this._unlink(e),this._insertAfter(e,t,i),this._addToMoves(e,i),e}_addAfter(e,t,i){return this._insertAfter(e,t,i),this._additionsTail=null===this._additionsTail?this._additionsHead=e:this._additionsTail._nextAdded=e,e}_insertAfter(e,t,i){const r=null===t?this._itHead:t._next;return e._next=r,e._prev=t,null===r?this._itTail=e:r._prev=e,null===t?this._itHead=e:t._next=e,null===this._linkedRecords&&(this._linkedRecords=new Fb),this._linkedRecords.put(e),e.currentIndex=i,e}_remove(e){return this._addToRemovals(this._unlink(e))}_unlink(e){null!==this._linkedRecords&&this._linkedRecords.remove(e);const t=e._prev,i=e._next;return null===t?this._itHead=i:t._next=i,null===i?this._itTail=t:i._prev=t,e}_addToMoves(e,t){return e.previousIndex===t||(this._movesTail=null===this._movesTail?this._movesHead=e:this._movesTail._nextMoved=e),e}_addToRemovals(e){return null===this._unlinkedRecords&&(this._unlinkedRecords=new Fb),this._unlinkedRecords.put(e),e.currentIndex=null,e._nextRemoved=null,null===this._removalsTail?(this._removalsTail=this._removalsHead=e,e._prevRemoved=null):(e._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=e),e}_addIdentityChange(e,t){return e.item=t,this._identityChangesTail=null===this._identityChangesTail?this._identityChangesHead=e:this._identityChangesTail._nextIdentityChange=e,e}}class MO{constructor(e,t){this.item=e,this.trackById=t,this.currentIndex=null,this.previousIndex=null,this._nextPrevious=null,this._prev=null,this._next=null,this._prevDup=null,this._nextDup=null,this._prevRemoved=null,this._nextRemoved=null,this._nextAdded=null,this._nextMoved=null,this._nextIdentityChange=null}}class AO{constructor(){this._head=null,this._tail=null}add(e){null===this._head?(this._head=this._tail=e,e._nextDup=null,e._prevDup=null):(this._tail._nextDup=e,e._prevDup=this._tail,e._nextDup=null,this._tail=e)}get(e,t){let i;for(i=this._head;null!==i;i=i._nextDup)if((null===t||t<=i.currentIndex)&&Object.is(i.trackById,e))return i;return null}remove(e){const t=e._prevDup,i=e._nextDup;return null===t?this._head=i:t._nextDup=i,null===i?this._tail=t:i._prevDup=t,null===this._head}}class Fb{constructor(){this.map=new Map}put(e){const t=e.trackById;let i=this.map.get(t);i||(i=new AO,this.map.set(t,i)),i.add(e)}get(e,t){const r=this.map.get(e);return r?r.get(e,t):null}remove(e){const t=e.trackById;return this.map.get(t).remove(e)&&this.map.delete(t),e}get isEmpty(){return 0===this.map.size}clear(){this.map.clear()}}function Rb(n,e,t){const i=n.previousIndex;if(null===i)return i;let r=0;return t&&i<t.length&&(r=t[i]),i+e+r}class Ob{constructor(){}supports(e){return e instanceof Map||md(e)}create(){return new IO}}class IO{constructor(){this._records=new Map,this._mapHead=null,this._appendAfter=null,this._previousMapHead=null,this._changesHead=null,this._changesTail=null,this._additionsHead=null,this._additionsTail=null,this._removalsHead=null,this._removalsTail=null}get isDirty(){return null!==this._additionsHead||null!==this._changesHead||null!==this._removalsHead}forEachItem(e){let t;for(t=this._mapHead;null!==t;t=t._next)e(t)}forEachPreviousItem(e){let t;for(t=this._previousMapHead;null!==t;t=t._nextPrevious)e(t)}forEachChangedItem(e){let t;for(t=this._changesHead;null!==t;t=t._nextChanged)e(t)}forEachAddedItem(e){let t;for(t=this._additionsHead;null!==t;t=t._nextAdded)e(t)}forEachRemovedItem(e){let t;for(t=this._removalsHead;null!==t;t=t._nextRemoved)e(t)}diff(e){if(e){if(!(e instanceof Map||md(e)))throw new Error(`Error trying to diff '${G(e)}'. Only maps and objects are allowed`)}else e=new Map;return this.check(e)?this:null}onDestroy(){}check(e){this._reset();let t=this._mapHead;if(this._appendAfter=null,this._forEach(e,(i,r)=>{if(t&&t.key===r)this._maybeAddToChanges(t,i),this._appendAfter=t,t=t._next;else{const o=this._getOrCreateRecordForKey(r,i);t=this._insertBeforeOrAppend(t,o)}}),t){t._prev&&(t._prev._next=null),this._removalsHead=t;for(let i=t;null!==i;i=i._nextRemoved)i===this._mapHead&&(this._mapHead=null),this._records.delete(i.key),i._nextRemoved=i._next,i.previousValue=i.currentValue,i.currentValue=null,i._prev=null,i._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty}_insertBeforeOrAppend(e,t){if(e){const i=e._prev;return t._next=e,t._prev=i,e._prev=t,i&&(i._next=t),e===this._mapHead&&(this._mapHead=t),this._appendAfter=e,e}return this._appendAfter?(this._appendAfter._next=t,t._prev=this._appendAfter):this._mapHead=t,this._appendAfter=t,null}_getOrCreateRecordForKey(e,t){if(this._records.has(e)){const r=this._records.get(e);this._maybeAddToChanges(r,t);const o=r._prev,s=r._next;return o&&(o._next=s),s&&(s._prev=o),r._next=null,r._prev=null,r}const i=new TO(e);return this._records.set(e,i),i.currentValue=t,this._addToAdditions(i),i}_reset(){if(this.isDirty){let e;for(this._previousMapHead=this._mapHead,e=this._previousMapHead;null!==e;e=e._next)e._nextPrevious=e._next;for(e=this._changesHead;null!==e;e=e._nextChanged)e.previousValue=e.currentValue;for(e=this._additionsHead;null!=e;e=e._nextAdded)e.previousValue=e.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}}_maybeAddToChanges(e,t){Object.is(t,e.currentValue)||(e.previousValue=e.currentValue,e.currentValue=t,this._addToChanges(e))}_addToAdditions(e){null===this._additionsHead?this._additionsHead=this._additionsTail=e:(this._additionsTail._nextAdded=e,this._additionsTail=e)}_addToChanges(e){null===this._changesHead?this._changesHead=this._changesTail=e:(this._changesTail._nextChanged=e,this._changesTail=e)}_forEach(e,t){e instanceof Map?e.forEach(t):Object.keys(e).forEach(i=>t(e[i],i))}}class TO{constructor(e){this.key=e,this.previousValue=null,this.currentValue=null,this._nextPrevious=null,this._next=null,this._prev=null,this._nextAdded=null,this._nextRemoved=null,this._nextChanged=null}}function kb(){return new hs([new xb])}let hs=(()=>{class n{constructor(t){this.factories=t}static create(t,i){if(null!=i){const r=i.factories.slice();t=t.concat(r)}return new n(t)}static extend(t){return{provide:n,useFactory:i=>n.create(t,i||kb()),deps:[[n,new ai,new bt]]}}find(t){const i=this.factories.find(r=>r.supports(t));if(null!=i)return i;throw new Error(`Cannot find a differ supporting object '${t}' of type '${function xO(n){return n.name||typeof n}(t)}'`)}}return n.\u0275prov=I({token:n,providedIn:"root",factory:kb}),n})();function Nb(){return new eo([new Ob])}let eo=(()=>{class n{constructor(t){this.factories=t}static create(t,i){if(i){const r=i.factories.slice();t=t.concat(r)}return new n(t)}static extend(t){return{provide:n,useFactory:i=>n.create(t,i||Nb()),deps:[[n,new ai,new bt]]}}find(t){const i=this.factories.find(r=>r.supports(t));if(i)return i;throw new Error(`Cannot find a differ supporting object '${t}'`)}}return n.\u0275prov=I({token:n,providedIn:"root",factory:Nb}),n})();const FO=[new Ob],OO=new hs([new xb]),kO=new eo(FO),NO=bb(null,"core",[{provide:il,useValue:"unknown"},{provide:Eb,deps:[re]},{provide:gb,deps:[]},{provide:Jd,deps:[]}]),jO=[{provide:Hi,useClass:Hi,deps:[oe,re,yn,$n,Xr]},{provide:AF,deps:[oe],useFactory:function HO(n){let e=[];return n.onStable.subscribe(()=>{for(;e.length;)e.pop()()}),function(t){e.push(t)}}},{provide:Xr,useClass:Xr,deps:[[new bt,nl]]},{provide:fb,useClass:fb,deps:[]},kR,{provide:hs,useFactory:function PO(){return OO},deps:[]},{provide:eo,useFactory:function LO(){return kO},deps:[]},{provide:Wn,useFactory:function VO(n){return n||function BO(){return"undefined"!=typeof $localize&&$localize.locale||Ga}()},deps:[[new Vo(Wn),new bt,new ai]]},{provide:ub,useValue:"USD"}];let UO=(()=>{class n{constructor(t){}}return n.\u0275fac=function(t){return new(t||n)(b(Hi))},n.\u0275mod=pe({type:n}),n.\u0275inj=ce({providers:jO}),n})(),_l=null;function Sn(){return _l}const q=new T("DocumentToken");let ws=(()=>{class n{historyGo(t){throw new Error("Not implemented")}}return n.\u0275fac=function(t){return new(t||n)},n.\u0275prov=I({token:n,factory:function(){return function NN(){return b(vC)}()},providedIn:"platform"}),n})(),vC=(()=>{class n extends ws{constructor(t){super(),this._doc=t,this._init()}_init(){this.location=window.location,this._history=window.history}getBaseHrefFromDOM(){return Sn().getBaseHref(this._doc)}onPopState(t){const i=Sn().getGlobalEventTarget(this._doc,"window");return i.addEventListener("popstate",t,!1),()=>i.removeEventListener("popstate",t)}onHashChange(t){const i=Sn().getGlobalEventTarget(this._doc,"window");return i.addEventListener("hashchange",t,!1),()=>i.removeEventListener("hashchange",t)}get href(){return this.location.href}get protocol(){return this.location.protocol}get hostname(){return this.location.hostname}get port(){return this.location.port}get pathname(){return this.location.pathname}get search(){return this.location.search}get hash(){return this.location.hash}set pathname(t){this.location.pathname=t}pushState(t,i,r){bC()?this._history.pushState(t,i,r):this.location.hash=r}replaceState(t,i,r){bC()?this._history.replaceState(t,i,r):this.location.hash=r}forward(){this._history.forward()}back(){this._history.back()}historyGo(t=0){this._history.go(t)}getState(){return this._history.state}}return n.\u0275fac=function(t){return new(t||n)(b(q))},n.\u0275prov=I({token:n,factory:function(){return function PN(){return new vC(b(q))}()},providedIn:"platform"}),n})();function bC(){return!!window.history.pushState}function CC(n,e){if(0==n.length)return e;if(0==e.length)return n;let t=0;return n.endsWith("/")&&t++,e.startsWith("/")&&t++,2==t?n+e.substring(1):1==t?n+e:n+"/"+e}function EC(n){const e=n.match(/#|\?|$/),t=e&&e.index||n.length;return n.slice(0,t-("/"===n[t-1]?1:0))+n.slice(t)}function Wi(n){return n&&"?"!==n[0]?"?"+n:n}let Nh=(()=>{class n{historyGo(t){throw new Error("Not implemented")}}return n.\u0275fac=function(t){return new(t||n)},n.\u0275prov=I({token:n,factory:function(){return function LN(n){const e=b(q).location;return new BN(b(ws),e&&e.origin||"")}()},providedIn:"root"}),n})();const VN=new T("appBaseHref");let BN=(()=>{class n extends Nh{constructor(t,i){if(super(),this._platformLocation=t,this._removeListenerFns=[],null==i&&(i=this._platformLocation.getBaseHrefFromDOM()),null==i)throw new Error("No base href set. Please provide a value for the APP_BASE_HREF token or add a base element to the document.");this._baseHref=i}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(t){this._removeListenerFns.push(this._platformLocation.onPopState(t),this._platformLocation.onHashChange(t))}getBaseHref(){return this._baseHref}prepareExternalUrl(t){return CC(this._baseHref,t)}path(t=!1){const i=this._platformLocation.pathname+Wi(this._platformLocation.search),r=this._platformLocation.hash;return r&&t?`${i}${r}`:i}pushState(t,i,r,o){const s=this.prepareExternalUrl(r+Wi(o));this._platformLocation.pushState(t,i,s)}replaceState(t,i,r,o){const s=this.prepareExternalUrl(r+Wi(o));this._platformLocation.replaceState(t,i,s)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}historyGo(t=0){var i,r;null===(r=(i=this._platformLocation).historyGo)||void 0===r||r.call(i,t)}}return n.\u0275fac=function(t){return new(t||n)(b(ws),b(VN,8))},n.\u0275prov=I({token:n,factory:n.\u0275fac}),n})(),DC=(()=>{class n{constructor(t,i){this._subject=new Ve,this._urlChangeListeners=[],this._platformStrategy=t;const r=this._platformStrategy.getBaseHref();this._platformLocation=i,this._baseHref=EC(wC(r)),this._platformStrategy.onPopState(o=>{this._subject.emit({url:this.path(!0),pop:!0,state:o.state,type:o.type})})}path(t=!1){return this.normalize(this._platformStrategy.path(t))}getState(){return this._platformLocation.getState()}isCurrentPathEqualTo(t,i=""){return this.path()==this.normalize(t+Wi(i))}normalize(t){return n.stripTrailingSlash(function HN(n,e){return n&&e.startsWith(n)?e.substring(n.length):e}(this._baseHref,wC(t)))}prepareExternalUrl(t){return t&&"/"!==t[0]&&(t="/"+t),this._platformStrategy.prepareExternalUrl(t)}go(t,i="",r=null){this._platformStrategy.pushState(r,"",t,i),this._notifyUrlChangeListeners(this.prepareExternalUrl(t+Wi(i)),r)}replaceState(t,i="",r=null){this._platformStrategy.replaceState(r,"",t,i),this._notifyUrlChangeListeners(this.prepareExternalUrl(t+Wi(i)),r)}forward(){this._platformStrategy.forward()}back(){this._platformStrategy.back()}historyGo(t=0){var i,r;null===(r=(i=this._platformStrategy).historyGo)||void 0===r||r.call(i,t)}onUrlChange(t){this._urlChangeListeners.push(t),this._urlChangeSubscription||(this._urlChangeSubscription=this.subscribe(i=>{this._notifyUrlChangeListeners(i.url,i.state)}))}_notifyUrlChangeListeners(t="",i){this._urlChangeListeners.forEach(r=>r(t,i))}subscribe(t,i,r){return this._subject.subscribe({next:t,error:i,complete:r})}}return n.normalizeQueryParams=Wi,n.joinWithSlash=CC,n.stripTrailingSlash=EC,n.\u0275fac=function(t){return new(t||n)(b(Nh),b(ws))},n.\u0275prov=I({token:n,factory:function(){return function jN(){return new DC(b(Nh),b(ws))}()},providedIn:"root"}),n})();function wC(n){return n.replace(/\/index.html$/,"")}var Te=(()=>((Te=Te||{})[Te.Zero=0]="Zero",Te[Te.One=1]="One",Te[Te.Two=2]="Two",Te[Te.Few=3]="Few",Te[Te.Many=4]="Many",Te[Te.Other=5]="Other",Te))();const QN=function Ky(n){return function it(n){const e=function _x(n){return n.toLowerCase().replace(/_/g,"-")}(n);let t=Yy(e);if(t)return t;const i=e.split("-")[0];if(t=Yy(i),t)return t;if("en"===i)return gx;throw new Error(`Missing locale data for the locale "${n}".`)}(n)[w.PluralCase]};class Al{}let DP=(()=>{class n extends Al{constructor(t){super(),this.locale=t}getPluralCategory(t,i){switch(QN(i||this.locale)(t)){case Te.Zero:return"zero";case Te.One:return"one";case Te.Two:return"two";case Te.Few:return"few";case Te.Many:return"many";default:return"other"}}}return n.\u0275fac=function(t){return new(t||n)(b(Wn))},n.\u0275prov=I({token:n,factory:n.\u0275fac}),n})(),$h=(()=>{class n{constructor(t,i,r,o){this._iterableDiffers=t,this._keyValueDiffers=i,this._ngEl=r,this._renderer=o,this._iterableDiffer=null,this._keyValueDiffer=null,this._initialClasses=[],this._rawClass=null}set klass(t){this._removeClasses(this._initialClasses),this._initialClasses="string"==typeof t?t.split(/\s+/):[],this._applyClasses(this._initialClasses),this._applyClasses(this._rawClass)}set ngClass(t){this._removeClasses(this._rawClass),this._applyClasses(this._initialClasses),this._iterableDiffer=null,this._keyValueDiffer=null,this._rawClass="string"==typeof t?t.split(/\s+/):t,this._rawClass&&(Xo(this._rawClass)?this._iterableDiffer=this._iterableDiffers.find(this._rawClass).create():this._keyValueDiffer=this._keyValueDiffers.find(this._rawClass).create())}ngDoCheck(){if(this._iterableDiffer){const t=this._iterableDiffer.diff(this._rawClass);t&&this._applyIterableChanges(t)}else if(this._keyValueDiffer){const t=this._keyValueDiffer.diff(this._rawClass);t&&this._applyKeyValueChanges(t)}}_applyKeyValueChanges(t){t.forEachAddedItem(i=>this._toggleClass(i.key,i.currentValue)),t.forEachChangedItem(i=>this._toggleClass(i.key,i.currentValue)),t.forEachRemovedItem(i=>{i.previousValue&&this._toggleClass(i.key,!1)})}_applyIterableChanges(t){t.forEachAddedItem(i=>{if("string"!=typeof i.item)throw new Error(`NgClass can only toggle CSS classes expressed as strings, got ${G(i.item)}`);this._toggleClass(i.item,!0)}),t.forEachRemovedItem(i=>this._toggleClass(i.item,!1))}_applyClasses(t){t&&(Array.isArray(t)||t instanceof Set?t.forEach(i=>this._toggleClass(i,!0)):Object.keys(t).forEach(i=>this._toggleClass(i,!!t[i])))}_removeClasses(t){t&&(Array.isArray(t)||t instanceof Set?t.forEach(i=>this._toggleClass(i,!1)):Object.keys(t).forEach(i=>this._toggleClass(i,!1)))}_toggleClass(t,i){(t=t.trim())&&t.split(/\s+/g).forEach(r=>{i?this._renderer.addClass(this._ngEl.nativeElement,r):this._renderer.removeClass(this._ngEl.nativeElement,r)})}}return n.\u0275fac=function(t){return new(t||n)(v(hs),v(eo),v(ye),v(Bi))},n.\u0275dir=k({type:n,selectors:[["","ngClass",""]],inputs:{klass:["class","klass"],ngClass:"ngClass"}}),n})();class PP{createSubscription(e,t){return e.subscribe({next:t,error:i=>{throw i}})}dispose(e){e.unsubscribe()}onDestroy(e){e.unsubscribe()}}class LP{createSubscription(e,t){return e.then(t,i=>{throw i})}dispose(e){}onDestroy(e){}}const VP=new LP,BP=new PP;let PC=(()=>{class n{constructor(t){this._ref=t,this._latestValue=null,this._subscription=null,this._obj=null,this._strategy=null}ngOnDestroy(){this._subscription&&this._dispose()}transform(t){return this._obj?t!==this._obj?(this._dispose(),this.transform(t)):this._latestValue:(t&&this._subscribe(t),this._latestValue)}_subscribe(t){this._obj=t,this._strategy=this._selectStrategy(t),this._subscription=this._strategy.createSubscription(t,i=>this._updateLatestValue(t,i))}_selectStrategy(t){if(Ha(t))return VP;if(ry(t))return BP;throw function ln(n,e){return Error(`InvalidPipeArgument: '${e}' for pipe '${G(n)}'`)}(n,t)}_dispose(){this._strategy.dispose(this._subscription),this._latestValue=null,this._subscription=null,this._obj=null}_updateLatestValue(t,i){t===this._obj&&(this._latestValue=i,this._ref.markForCheck())}}return n.\u0275fac=function(t){return new(t||n)(v(Jr,16))},n.\u0275pipe=ct({name:"async",type:n,pure:!1}),n})(),As=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=pe({type:n}),n.\u0275inj=ce({providers:[{provide:Al,useClass:DP}]}),n})();const VC="browser";class Kh extends class c1 extends class kN{}{constructor(){super(...arguments),this.supportsDOMEvents=!0}}{static makeCurrent(){!function ON(n){_l||(_l=n)}(new Kh)}onAndCancel(e,t,i){return e.addEventListener(t,i,!1),()=>{e.removeEventListener(t,i,!1)}}dispatchEvent(e,t){e.dispatchEvent(t)}remove(e){e.parentNode&&e.parentNode.removeChild(e)}createElement(e,t){return(t=t||this.getDefaultDocument()).createElement(e)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(e){return e.nodeType===Node.ELEMENT_NODE}isShadowRoot(e){return e instanceof DocumentFragment}getGlobalEventTarget(e,t){return"window"===t?window:"document"===t?e:"body"===t?e.body:null}getBaseHref(e){const t=function u1(){return Is=Is||document.querySelector("base"),Is?Is.getAttribute("href"):null}();return null==t?null:function d1(n){Il=Il||document.createElement("a"),Il.setAttribute("href",n);const e=Il.pathname;return"/"===e.charAt(0)?e:`/${e}`}(t)}resetBaseElement(){Is=null}getUserAgent(){return window.navigator.userAgent}getCookie(e){return function wP(n,e){e=encodeURIComponent(e);for(const t of n.split(";")){const i=t.indexOf("="),[r,o]=-1==i?[t,""]:[t.slice(0,i),t.slice(i+1)];if(r.trim()===e)return decodeURIComponent(o)}return null}(document.cookie,e)}}let Il,Is=null;const jC=new T("TRANSITION_ID"),f1=[{provide:nl,useFactory:function h1(n,e,t){return()=>{t.get(Xr).donePromise.then(()=>{const i=Sn(),r=e.querySelectorAll(`style[ng-transition="${n}"]`);for(let o=0;o<r.length;o++)i.remove(r[o])})}},deps:[jC,q,re],multi:!0}];class Yh{static init(){!function ZR(n){oh=n}(new Yh)}addToWindow(e){ee.getAngularTestability=(i,r=!0)=>{const o=e.findTestabilityInTree(i,r);if(null==o)throw new Error("Could not find testability for element.");return o},ee.getAllAngularTestabilities=()=>e.getAllTestabilities(),ee.getAllAngularRootElements=()=>e.getAllRootElements(),ee.frameworkStabilizers||(ee.frameworkStabilizers=[]),ee.frameworkStabilizers.push(i=>{const r=ee.getAllAngularTestabilities();let o=r.length,s=!1;const a=function(l){s=s||l,o--,0==o&&i(s)};r.forEach(function(l){l.whenStable(a)})})}findTestabilityInTree(e,t,i){if(null==t)return null;const r=e.getTestability(t);return null!=r?r:i?Sn().isShadowRoot(t)?this.findTestabilityInTree(e,t.host,!0):this.findTestabilityInTree(e,t.parentElement,!0):null}}let p1=(()=>{class n{build(){return new XMLHttpRequest}}return n.\u0275fac=function(t){return new(t||n)},n.\u0275prov=I({token:n,factory:n.\u0275fac}),n})();const Ts=new T("EventManagerPlugins");let xl=(()=>{class n{constructor(t,i){this._zone=i,this._eventNameToPlugin=new Map,t.forEach(r=>r.manager=this),this._plugins=t.slice().reverse()}addEventListener(t,i,r){return this._findPluginFor(i).addEventListener(t,i,r)}addGlobalEventListener(t,i,r){return this._findPluginFor(i).addGlobalEventListener(t,i,r)}getZone(){return this._zone}_findPluginFor(t){const i=this._eventNameToPlugin.get(t);if(i)return i;const r=this._plugins;for(let o=0;o<r.length;o++){const s=r[o];if(s.supports(t))return this._eventNameToPlugin.set(t,s),s}throw new Error(`No event manager plugin found for event ${t}`)}}return n.\u0275fac=function(t){return new(t||n)(b(Ts),b(oe))},n.\u0275prov=I({token:n,factory:n.\u0275fac}),n})();class Zh{constructor(e){this._doc=e}addGlobalEventListener(e,t,i){const r=Sn().getGlobalEventTarget(this._doc,e);if(!r)throw new Error(`Unsupported event target ${r} for event ${t}`);return this.addEventListener(r,t,i)}}let UC=(()=>{class n{constructor(){this._stylesSet=new Set}addStyles(t){const i=new Set;t.forEach(r=>{this._stylesSet.has(r)||(this._stylesSet.add(r),i.add(r))}),this.onStylesAdded(i)}onStylesAdded(t){}getAllStyles(){return Array.from(this._stylesSet)}}return n.\u0275fac=function(t){return new(t||n)},n.\u0275prov=I({token:n,factory:n.\u0275fac}),n})(),xs=(()=>{class n extends UC{constructor(t){super(),this._doc=t,this._hostNodes=new Map,this._hostNodes.set(t.head,[])}_addStylesToHost(t,i,r){t.forEach(o=>{const s=this._doc.createElement("style");s.textContent=o,r.push(i.appendChild(s))})}addHost(t){const i=[];this._addStylesToHost(this._stylesSet,t,i),this._hostNodes.set(t,i)}removeHost(t){const i=this._hostNodes.get(t);i&&i.forEach(zC),this._hostNodes.delete(t)}onStylesAdded(t){this._hostNodes.forEach((i,r)=>{this._addStylesToHost(t,r,i)})}ngOnDestroy(){this._hostNodes.forEach(t=>t.forEach(zC))}}return n.\u0275fac=function(t){return new(t||n)(b(q))},n.\u0275prov=I({token:n,factory:n.\u0275fac}),n})();function zC(n){Sn().remove(n)}const Xh={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/"},Jh=/%COMP%/g;function Fl(n,e,t){for(let i=0;i<e.length;i++){let r=e[i];Array.isArray(r)?Fl(n,r,t):(r=r.replace(Jh,n),t.push(r))}return t}function WC(n){return e=>{if("__ngUnwrap__"===e)return n;!1===n(e)&&(e.preventDefault(),e.returnValue=!1)}}let Rl=(()=>{class n{constructor(t,i,r){this.eventManager=t,this.sharedStylesHost=i,this.appId=r,this.rendererByCompId=new Map,this.defaultRenderer=new ef(t)}createRenderer(t,i){if(!t||!i)return this.defaultRenderer;switch(i.encapsulation){case lt.Emulated:{let r=this.rendererByCompId.get(i.id);return r||(r=new T1(this.eventManager,this.sharedStylesHost,i,this.appId),this.rendererByCompId.set(i.id,r)),r.applyToHost(t),r}case 1:case lt.ShadowDom:return new x1(this.eventManager,this.sharedStylesHost,t,i);default:if(!this.rendererByCompId.has(i.id)){const r=Fl(i.id,i.styles,[]);this.sharedStylesHost.addStyles(r),this.rendererByCompId.set(i.id,this.defaultRenderer)}return this.defaultRenderer}}begin(){}end(){}}return n.\u0275fac=function(t){return new(t||n)(b(xl),b(xs),b(ds))},n.\u0275prov=I({token:n,factory:n.\u0275fac}),n})();class ef{constructor(e){this.eventManager=e,this.data=Object.create(null),this.destroyNode=null}destroy(){}createElement(e,t){return t?document.createElementNS(Xh[t]||t,e):document.createElement(e)}createComment(e){return document.createComment(e)}createText(e){return document.createTextNode(e)}appendChild(e,t){e.appendChild(t)}insertBefore(e,t,i){e&&e.insertBefore(t,i)}removeChild(e,t){e&&e.removeChild(t)}selectRootElement(e,t){let i="string"==typeof e?document.querySelector(e):e;if(!i)throw new Error(`The selector "${e}" did not match any elements`);return t||(i.textContent=""),i}parentNode(e){return e.parentNode}nextSibling(e){return e.nextSibling}setAttribute(e,t,i,r){if(r){t=r+":"+t;const o=Xh[r];o?e.setAttributeNS(o,t,i):e.setAttribute(t,i)}else e.setAttribute(t,i)}removeAttribute(e,t,i){if(i){const r=Xh[i];r?e.removeAttributeNS(r,t):e.removeAttribute(`${i}:${t}`)}else e.removeAttribute(t)}addClass(e,t){e.classList.add(t)}removeClass(e,t){e.classList.remove(t)}setStyle(e,t,i,r){r&(Et.DashCase|Et.Important)?e.style.setProperty(t,i,r&Et.Important?"important":""):e.style[t]=i}removeStyle(e,t,i){i&Et.DashCase?e.style.removeProperty(t):e.style[t]=""}setProperty(e,t,i){e[t]=i}setValue(e,t){e.nodeValue=t}listen(e,t,i){return"string"==typeof e?this.eventManager.addGlobalEventListener(e,t,WC(i)):this.eventManager.addEventListener(e,t,WC(i))}}class T1 extends ef{constructor(e,t,i,r){super(e),this.component=i;const o=Fl(r+"-"+i.id,i.styles,[]);t.addStyles(o),this.contentAttr=function M1(n){return"_ngcontent-%COMP%".replace(Jh,n)}(r+"-"+i.id),this.hostAttr=function A1(n){return"_nghost-%COMP%".replace(Jh,n)}(r+"-"+i.id)}applyToHost(e){super.setAttribute(e,this.hostAttr,"")}createElement(e,t){const i=super.createElement(e,t);return super.setAttribute(i,this.contentAttr,""),i}}class x1 extends ef{constructor(e,t,i,r){super(e),this.sharedStylesHost=t,this.hostEl=i,this.shadowRoot=i.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);const o=Fl(r.id,r.styles,[]);for(let s=0;s<o.length;s++){const a=document.createElement("style");a.textContent=o[s],this.shadowRoot.appendChild(a)}}nodeOrShadowRoot(e){return e===this.hostEl?this.shadowRoot:e}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}appendChild(e,t){return super.appendChild(this.nodeOrShadowRoot(e),t)}insertBefore(e,t,i){return super.insertBefore(this.nodeOrShadowRoot(e),t,i)}removeChild(e,t){return super.removeChild(this.nodeOrShadowRoot(e),t)}parentNode(e){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(e)))}}let F1=(()=>{class n extends Zh{constructor(t){super(t)}supports(t){return!0}addEventListener(t,i,r){return t.addEventListener(i,r,!1),()=>this.removeEventListener(t,i,r)}removeEventListener(t,i,r){return t.removeEventListener(i,r)}}return n.\u0275fac=function(t){return new(t||n)(b(q))},n.\u0275prov=I({token:n,factory:n.\u0275fac}),n})();const KC=["alt","control","meta","shift"],V1={"\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"},YC={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"},B1={alt:n=>n.altKey,control:n=>n.ctrlKey,meta:n=>n.metaKey,shift:n=>n.shiftKey};let j1=(()=>{class n extends Zh{constructor(t){super(t)}supports(t){return null!=n.parseEventName(t)}addEventListener(t,i,r){const o=n.parseEventName(i),s=n.eventCallback(o.fullKey,r,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>Sn().onAndCancel(t,o.domEventName,s))}static parseEventName(t){const i=t.toLowerCase().split("."),r=i.shift();if(0===i.length||"keydown"!==r&&"keyup"!==r)return null;const o=n._normalizeKey(i.pop());let s="";if(KC.forEach(l=>{const c=i.indexOf(l);c>-1&&(i.splice(c,1),s+=l+".")}),s+=o,0!=i.length||0===o.length)return null;const a={};return a.domEventName=r,a.fullKey=s,a}static getEventFullKey(t){let i="",r=function H1(n){let e=n.key;if(null==e){if(e=n.keyIdentifier,null==e)return"Unidentified";e.startsWith("U+")&&(e=String.fromCharCode(parseInt(e.substring(2),16)),3===n.location&&YC.hasOwnProperty(e)&&(e=YC[e]))}return V1[e]||e}(t);return r=r.toLowerCase()," "===r?r="space":"."===r&&(r="dot"),KC.forEach(o=>{o!=r&&B1[o](t)&&(i+=o+".")}),i+=r,i}static eventCallback(t,i,r){return o=>{n.getEventFullKey(o)===t&&r.runGuarded(()=>i(o))}}static _normalizeKey(t){return"esc"===t?"escape":t}}return n.\u0275fac=function(t){return new(t||n)(b(q))},n.\u0275prov=I({token:n,factory:n.\u0275fac}),n})(),Fs=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275prov=I({token:n,factory:function(t){let i=null;return i=t?new(t||n):b(nf),i},providedIn:"root"}),n})(),nf=(()=>{class n extends Fs{constructor(t){super(),this._doc=t}sanitize(t,i){if(null==i)return null;switch(t){case X.NONE:return i;case X.HTML:return gn(i,"HTML")?Ct(i):Qm(this._doc,String(i)).toString();case X.STYLE:return gn(i,"Style")?Ct(i):i;case X.SCRIPT:if(gn(i,"Script"))return Ct(i);throw new Error("unsafe value used in a script context");case X.URL:return jm(i),gn(i,"URL")?Ct(i):jo(String(i));case X.RESOURCE_URL:if(gn(i,"ResourceURL"))return Ct(i);throw new Error("unsafe value used in a resource URL context (see https://g.co/ng/security#xss)");default:throw new Error(`Unexpected SecurityContext ${t} (see https://g.co/ng/security#xss)`)}}bypassSecurityTrustHtml(t){return function DM(n){return new yM(n)}(t)}bypassSecurityTrustStyle(t){return function wM(n){return new vM(n)}(t)}bypassSecurityTrustScript(t){return function SM(n){return new bM(n)}(t)}bypassSecurityTrustUrl(t){return function MM(n){return new CM(n)}(t)}bypassSecurityTrustResourceUrl(t){return function AM(n){return new EM(n)}(t)}}return n.\u0275fac=function(t){return new(t||n)(b(q))},n.\u0275prov=I({token:n,factory:function(t){let i=null;return i=t?new t:function U1(n){return new nf(n.get(q))}(b(re)),i},providedIn:"root"}),n})();const W1=[{provide:il,useValue:VC},{provide:cb,useValue:function z1(){Kh.makeCurrent(),Yh.init()},multi:!0},{provide:q,useFactory:function G1(){return function h0(n){qc=n}(document),document},deps:[]}],Q1=bb(NO,"browser",W1),K1=[[],{provide:Ko,useValue:"root"},{provide:yn,useFactory:function $1(){return new yn},deps:[]},{provide:Ts,useClass:F1,multi:!0,deps:[q,oe,il]},{provide:Ts,useClass:j1,multi:!0,deps:[q]},[],{provide:Rl,useClass:Rl,deps:[xl,xs,ds]},{provide:Vi,useExisting:Rl},{provide:UC,useExisting:xs},{provide:xs,useClass:xs,deps:[q]},{provide:rh,useClass:rh,deps:[oe]},{provide:xl,useClass:xl,deps:[Ts,oe]},{provide:class l1{},useClass:p1,deps:[]},[]];let Y1=(()=>{class n{constructor(t){if(t)throw new Error("BrowserModule has already been loaded. If you need access to common directives such as NgIf and NgFor from a lazy loaded module, import CommonModule instead.")}static withServerTransition(t){return{ngModule:n,providers:[{provide:ds,useValue:t.appId},{provide:jC,useExisting:ds},f1]}}}return n.\u0275fac=function(t){return new(t||n)(b(n,12))},n.\u0275mod=pe({type:n}),n.\u0275inj=ce({providers:K1,imports:[As,UO]}),n})();"undefined"!=typeof window&&window;class Ol{constructor(e,t,i,r){if(isNaN(e)||isNaN(t))throw new Error(`Point is invalid: (${e}, ${t})`);this.x=+e,this.y=+t,this.pressure=i||0,this.time=r||Date.now()}distanceTo(e){return Math.sqrt(Math.pow(this.x-e.x,2)+Math.pow(this.y-e.y,2))}equals(e){return this.x===e.x&&this.y===e.y&&this.pressure===e.pressure&&this.time===e.time}velocityFrom(e){return this.time!==e.time?this.distanceTo(e)/(this.time-e.time):0}}class sf{constructor(e,t,i,r,o,s){this.startPoint=e,this.control2=t,this.control1=i,this.endPoint=r,this.startWidth=o,this.endWidth=s}static fromPoints(e,t){const i=this.calculateControlPoints(e[0],e[1],e[2]).c2,r=this.calculateControlPoints(e[1],e[2],e[3]).c1;return new sf(e[1],i,r,e[2],t.start,t.end)}static calculateControlPoints(e,t,i){const r=e.x-t.x,o=e.y-t.y,s=t.x-i.x,a=t.y-i.y,l_x=(e.x+t.x)/2,l_y=(e.y+t.y)/2,c_x=(t.x+i.x)/2,c_y=(t.y+i.y)/2,u=Math.sqrt(r*r+o*o),d=Math.sqrt(s*s+a*a),p=d/(u+d),m=t.x-(c_x+(l_x-c_x)*p),y=t.y-(c_y+(l_y-c_y)*p);return{c1:new Ol(l_x+m,l_y+y),c2:new Ol(c_x+m,c_y+y)}}length(){let i,r,t=0;for(let o=0;o<=10;o+=1){const s=o/10,a=this.point(s,this.startPoint.x,this.control1.x,this.control2.x,this.endPoint.x),l=this.point(s,this.startPoint.y,this.control1.y,this.control2.y,this.endPoint.y);if(o>0){const c=a-i,u=l-r;t+=Math.sqrt(c*c+u*u)}i=a,r=l}return t}point(e,t,i,r,o){return t*(1-e)*(1-e)*(1-e)+3*i*(1-e)*(1-e)*e+3*r*(1-e)*e*e+o*e*e*e}}class kl extends class rL{constructor(){try{this._et=new EventTarget}catch(e){this._et=document}}addEventListener(e,t,i){this._et.addEventListener(e,t,i)}dispatchEvent(e){return this._et.dispatchEvent(e)}removeEventListener(e,t,i){this._et.removeEventListener(e,t,i)}}{constructor(e,t={}){super(),this.canvas=e,this._handleMouseDown=i=>{1===i.buttons&&(this._drawningStroke=!0,this._strokeBegin(i))},this._handleMouseMove=i=>{this._drawningStroke&&this._strokeMoveUpdate(i)},this._handleMouseUp=i=>{1===i.buttons&&this._drawningStroke&&(this._drawningStroke=!1,this._strokeEnd(i))},this._handleTouchStart=i=>{i.preventDefault(),1===i.targetTouches.length&&this._strokeBegin(i.changedTouches[0])},this._handleTouchMove=i=>{i.preventDefault(),this._strokeMoveUpdate(i.targetTouches[0])},this._handleTouchEnd=i=>{i.target===this.canvas&&(i.preventDefault(),this._strokeEnd(i.changedTouches[0]))},this._handlePointerStart=i=>{this._drawningStroke=!0,i.preventDefault(),this._strokeBegin(i)},this._handlePointerMove=i=>{this._drawningStroke&&(i.preventDefault(),this._strokeMoveUpdate(i))},this._handlePointerEnd=i=>{this._drawningStroke=!1,i.target===this.canvas&&(i.preventDefault(),this._strokeEnd(i))},this.velocityFilterWeight=t.velocityFilterWeight||.7,this.minWidth=t.minWidth||.5,this.maxWidth=t.maxWidth||2.5,this.throttle="throttle"in t?t.throttle:16,this.minDistance="minDistance"in t?t.minDistance:5,this.dotSize=t.dotSize||0,this.penColor=t.penColor||"black",this.backgroundColor=t.backgroundColor||"rgba(0,0,0,0)",this._strokeMoveUpdate=this.throttle?function oL(n,e=250){let r,o,s,t=0,i=null;const a=()=>{t=Date.now(),i=null,r=n.apply(o,s),i||(o=null,s=[])};return function(...c){const u=Date.now(),d=e-(u-t);return o=this,s=c,d<=0||d>e?(i&&(clearTimeout(i),i=null),t=u,r=n.apply(o,s),i||(o=null,s=[])):i||(i=window.setTimeout(a,d)),r}}(kl.prototype._strokeUpdate,this.throttle):kl.prototype._strokeUpdate,this._ctx=e.getContext("2d"),this.clear(),this.on()}clear(){const{_ctx:e,canvas:t}=this;e.fillStyle=this.backgroundColor,e.clearRect(0,0,t.width,t.height),e.fillRect(0,0,t.width,t.height),this._data=[],this._reset(),this._isEmpty=!0}fromDataURL(e,t={}){return new Promise((i,r)=>{const o=new Image,s=t.ratio||window.devicePixelRatio||1,a=t.width||this.canvas.width/s,l=t.height||this.canvas.height/s,c=t.xOffset||0,u=t.yOffset||0;this._reset(),o.onload=()=>{this._ctx.drawImage(o,c,u,a,l),i()},o.onerror=d=>{r(d)},o.crossOrigin="anonymous",o.src=e,this._isEmpty=!1})}toDataURL(e="image/png",t){return"image/svg+xml"===e?this._toSVG():this.canvas.toDataURL(e,t)}on(){this.canvas.style.touchAction="none",this.canvas.style.msTouchAction="none",this.canvas.style.userSelect="none";const e=/Macintosh/.test(navigator.userAgent)&&"ontouchstart"in document;window.PointerEvent&&!e?this._handlePointerEvents():(this._handleMouseEvents(),"ontouchstart"in window&&this._handleTouchEvents())}off(){this.canvas.style.touchAction="auto",this.canvas.style.msTouchAction="auto",this.canvas.style.userSelect="auto",this.canvas.removeEventListener("pointerdown",this._handlePointerStart),this.canvas.removeEventListener("pointermove",this._handlePointerMove),document.removeEventListener("pointerup",this._handlePointerEnd),this.canvas.removeEventListener("mousedown",this._handleMouseDown),this.canvas.removeEventListener("mousemove",this._handleMouseMove),document.removeEventListener("mouseup",this._handleMouseUp),this.canvas.removeEventListener("touchstart",this._handleTouchStart),this.canvas.removeEventListener("touchmove",this._handleTouchMove),this.canvas.removeEventListener("touchend",this._handleTouchEnd)}isEmpty(){return this._isEmpty}fromData(e,{clear:t=!0}={}){t&&this.clear(),this._fromData(e,this._drawCurve.bind(this),this._drawDot.bind(this)),this._data=t?e:this._data.concat(e)}toData(){return this._data}_strokeBegin(e){this.dispatchEvent(new CustomEvent("beginStroke",{detail:e})),this._data.push({dotSize:this.dotSize,minWidth:this.minWidth,maxWidth:this.maxWidth,penColor:this.penColor,points:[]}),this._reset(),this._strokeUpdate(e)}_strokeUpdate(e){if(0===this._data.length)return void this._strokeBegin(e);this.dispatchEvent(new CustomEvent("beforeUpdateStroke",{detail:e}));const o=this._createPoint(e.clientX,e.clientY,void 0!==e.pressure?e.pressure:void 0!==e.force?e.force:0),s=this._data[this._data.length-1],a=s.points,l=a.length>0&&a[a.length-1],c=!!l&&o.distanceTo(l)<=this.minDistance,{penColor:u,dotSize:d,minWidth:h,maxWidth:f}=s;if(!l||!l||!c){const p=this._addPoint(o);l?p&&this._drawCurve(p,{penColor:u,dotSize:d,minWidth:h,maxWidth:f}):this._drawDot(o,{penColor:u,dotSize:d,minWidth:h,maxWidth:f}),a.push({time:o.time,x:o.x,y:o.y,pressure:o.pressure})}this.dispatchEvent(new CustomEvent("afterUpdateStroke",{detail:e}))}_strokeEnd(e){this._strokeUpdate(e),this.dispatchEvent(new CustomEvent("endStroke",{detail:e}))}_handlePointerEvents(){this._drawningStroke=!1,this.canvas.addEventListener("pointerdown",this._handlePointerStart),this.canvas.addEventListener("pointermove",this._handlePointerMove),document.addEventListener("pointerup",this._handlePointerEnd)}_handleMouseEvents(){this._drawningStroke=!1,this.canvas.addEventListener("mousedown",this._handleMouseDown),this.canvas.addEventListener("mousemove",this._handleMouseMove),document.addEventListener("mouseup",this._handleMouseUp)}_handleTouchEvents(){this.canvas.addEventListener("touchstart",this._handleTouchStart),this.canvas.addEventListener("touchmove",this._handleTouchMove),this.canvas.addEventListener("touchend",this._handleTouchEnd)}_reset(){this._lastPoints=[],this._lastVelocity=0,this._lastWidth=(this.minWidth+this.maxWidth)/2,this._ctx.fillStyle=this.penColor}_createPoint(e,t,i){const r=this.canvas.getBoundingClientRect();return new Ol(e-r.left,t-r.top,i,(new Date).getTime())}_addPoint(e){const{_lastPoints:t}=this;if(t.push(e),t.length>2){3===t.length&&t.unshift(t[0]);const i=this._calculateCurveWidths(t[1],t[2]),r=sf.fromPoints(t,i);return t.shift(),r}return null}_calculateCurveWidths(e,t){const i=this.velocityFilterWeight*t.velocityFrom(e)+(1-this.velocityFilterWeight)*this._lastVelocity,r=this._strokeWidth(i),o={end:r,start:this._lastWidth};return this._lastVelocity=i,this._lastWidth=r,o}_strokeWidth(e){return Math.max(this.maxWidth/(e+1),this.minWidth)}_drawCurveSegment(e,t,i){const r=this._ctx;r.moveTo(e,t),r.arc(e,t,i,0,2*Math.PI,!1),this._isEmpty=!1}_drawCurve(e,t){const i=this._ctx,r=e.endWidth-e.startWidth,o=2*Math.ceil(e.length());i.beginPath(),i.fillStyle=t.penColor;for(let s=0;s<o;s+=1){const a=s/o,l=a*a,c=l*a,u=1-a,d=u*u,h=d*u;let f=h*e.startPoint.x;f+=3*d*a*e.control1.x,f+=3*u*l*e.control2.x,f+=c*e.endPoint.x;let p=h*e.startPoint.y;p+=3*d*a*e.control1.y,p+=3*u*l*e.control2.y,p+=c*e.endPoint.y;const g=Math.min(e.startWidth+c*r,t.maxWidth);this._drawCurveSegment(f,p,g)}i.closePath(),i.fill()}_drawDot(e,t){const i=this._ctx,r=t.dotSize>0?t.dotSize:(t.minWidth+t.maxWidth)/2;i.beginPath(),this._drawCurveSegment(e.x,e.y,r),i.closePath(),i.fillStyle=t.penColor,i.fill()}_fromData(e,t,i){for(const r of e){const{penColor:o,dotSize:s,minWidth:a,maxWidth:l,points:c}=r;if(c.length>1)for(let u=0;u<c.length;u+=1){const d=c[u],h=new Ol(d.x,d.y,d.pressure,d.time);this.penColor=o,0===u&&this._reset();const f=this._addPoint(h);f&&t(f,{penColor:o,dotSize:s,minWidth:a,maxWidth:l})}else this._reset(),i(c[0],{penColor:o,dotSize:s,minWidth:a,maxWidth:l})}}_toSVG(){const e=this._data,t=Math.max(window.devicePixelRatio||1,1),o=this.canvas.width/t,s=this.canvas.height/t,a=document.createElementNS("http://www.w3.org/2000/svg","svg");a.setAttribute("width",this.canvas.width.toString()),a.setAttribute("height",this.canvas.height.toString()),this._fromData(e,(f,{penColor:p})=>{const g=document.createElement("path");if(!(isNaN(f.control1.x)||isNaN(f.control1.y)||isNaN(f.control2.x)||isNaN(f.control2.y))){const m=`M ${f.startPoint.x.toFixed(3)},${f.startPoint.y.toFixed(3)} C ${f.control1.x.toFixed(3)},${f.control1.y.toFixed(3)} ${f.control2.x.toFixed(3)},${f.control2.y.toFixed(3)} ${f.endPoint.x.toFixed(3)},${f.endPoint.y.toFixed(3)}`;g.setAttribute("d",m),g.setAttribute("stroke-width",(2.25*f.endWidth).toFixed(3)),g.setAttribute("stroke",p),g.setAttribute("fill","none"),g.setAttribute("stroke-linecap","round"),a.appendChild(g)}},(f,{penColor:p,dotSize:g,minWidth:m,maxWidth:y})=>{const _=document.createElement("circle");_.setAttribute("r",(g>0?g:(m+y)/2).toString()),_.setAttribute("cx",f.x.toString()),_.setAttribute("cy",f.y.toString()),_.setAttribute("fill",p),a.appendChild(_)});const c=`<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 0 ${this.canvas.width} ${this.canvas.height}" width="${o}" height="${s}">`;let u=a.innerHTML;if(void 0===u){const f=document.createElement("dummy"),p=a.childNodes;f.innerHTML="";for(let g=0;g<p.length;g+=1)f.appendChild(p[g].cloneNode(!0));u=f.innerHTML}return"data:image/svg+xml;base64,"+btoa(c+u+"</svg>")}}let af=(()=>{class n{constructor(){if(this.injector=window.FormbirdServiceInjector,!this.injector){const t=document.querySelectorAll("#bodyAngularJS div[ui-view]");this.injector=angular.element(t).injector(),this.isAngularJS=!0}}get(t){return this.injector.get(t)}isAngularJSCore(){return this.isAngularJS}}return n.\u0275fac=function(t){return new(t||n)},n.\u0275prov=I({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),XC=(()=>{class n{constructor(t){this.injector=t,this.ajsService=t.get("ChangedDocumentService")}watch(t,i,r,o){return this.ajsService.watch(t,i,r,o)}valueChanged(t,i,r,o){this.ajsService.valueChanged(t,i,r,o)}dispatchChanged(t){this.ajsService.dispatchChanged(t)}executeOnFieldChangeWithNoChanges(t){this.injector.isAngularJSCore()?console.warn("This feature is not supported on AngularJS Core."):this.ajsService.executeOnFieldChangeWithNoChanges(t)}watchDocument(t){return this.injector.isAngularJSCore()?(console.warn("This feature is not supported on AngularJS Core."),null):this.ajsService.watchDocument(t)}watchStoreChanges(){return this.injector.isAngularJSCore()?(console.warn("This feature is not supported on AngularJS Core."),null):this.ajsService.watchStoreChanges()}dispatchAction(t){this.injector.isAngularJSCore()?console.warn("This feature is not supported on AngularJS Core."):this.ajsService.dispatchAction(t)}watchComponentTemplate(t){if(!this.injector.isAngularJSCore())return this.ajsService.watchComponentTemplate(t);console.warn("This feature is not supported on AngularJS Core.")}watchComponentDef(t,i){if(!this.injector.isAngularJSCore())return this.ajsService.watchComponentDef(t,i);console.warn("This feature is not supported on AngularJS Core.")}notifyIntializedField(t,i){if(!this.injector.isAngularJSCore())return this.ajsService.notifyIntializedField(t,i);console.warn("This function is not supported on AngularJS Core.")}notifyDocumentChanged(t){if(!this.injector.isAngularJSCore())return this.ajsService.notifyDocumentChanged(t);console.warn("This function is not supported on AngularJS Core.")}notifyComponentDefinitionUpdated(t,i,r,o){if(!this.injector.isAngularJSCore())return this.ajsService.notifyComponentDefinitionUpdated(t,i,r,o);console.warn("This function is not supported on AngularJS Core.")}setOrgDocument(t){if(!this.injector.isAngularJSCore())return this.ajsService.setOrgDocument(t);console.warn("This function is not supported on AngularJS Core.")}setDocumentInfo(t,i){if(!this.injector.isAngularJSCore())return this.ajsService.setDocumentInfo(t,i);console.warn("This function is not supported on AngularJS Core.")}setDocument(t){if(!this.injector.isAngularJSCore())return this.ajsService.setDocument(t);console.warn("This function is not supported on AngularJS Core.")}setComponentFlagTemplate(t,i,r,o){if(!this.injector.isAngularJSCore())return this.ajsService.setComponentFlagTemplate(t,i,r,o);console.warn("This function is not supported on AngularJS Core.")}isLoadedDocument(t,i){if(!this.injector.isAngularJSCore())return this.ajsService.isLoadedDocument(t,i);console.warn("This function is not supported on AngularJS Core.")}}return n.\u0275fac=function(t){return new(t||n)(b(af))},n.\u0275prov=I({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();class sL extends se{constructor(e,t){super()}schedule(e,t=0){return this}}class Nl extends sL{constructor(e,t){super(e,t),this.scheduler=e,this.work=t,this.pending=!1}schedule(e,t=0){if(this.closed)return this;this.state=e;const i=this.id,r=this.scheduler;return null!=i&&(this.id=this.recycleAsyncId(r,i,t)),this.pending=!0,this.delay=t,this.id=this.id||this.requestAsyncId(r,this.id,t),this}requestAsyncId(e,t,i=0){return setInterval(e.flush.bind(e,this),i)}recycleAsyncId(e,t,i=0){if(null!==i&&this.delay===i&&!1===this.pending)return t;clearInterval(t)}execute(e,t){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;const i=this._execute(e,t);if(i)return i;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(e,t){let r,i=!1;try{this.work(e)}catch(o){i=!0,r=!!o&&o||new Error(o)}if(i)return this.unsubscribe(),r}_unsubscribe(){const e=this.id,t=this.scheduler,i=t.actions,r=i.indexOf(this);this.work=null,this.state=null,this.pending=!1,this.scheduler=null,-1!==r&&i.splice(r,1),null!=e&&(this.id=this.recycleAsyncId(t,e,null)),this.delay=null}}let eE=(()=>{class n{constructor(t,i=n.now){this.SchedulerAction=t,this.now=i}schedule(t,i=0,r){return new this.SchedulerAction(this,t).schedule(r,i)}}return n.now=()=>Date.now(),n})();class cn extends eE{constructor(e,t=eE.now){super(e,()=>cn.delegate&&cn.delegate!==this?cn.delegate.now():t()),this.actions=[],this.active=!1,this.scheduled=void 0}schedule(e,t=0,i){return cn.delegate&&cn.delegate!==this?cn.delegate.schedule(e,t,i):super.schedule(e,t,i)}flush(e){const{actions:t}=this;if(this.active)return void t.push(e);let i;this.active=!0;do{if(i=e.execute(e.state,e.delay))break}while(e=t.shift());if(this.active=!1,i){for(;e=t.shift();)e.unsubscribe();throw i}}}const lf=new cn(Nl);function tE(n,e=lf){return t=>t.lift(new aL(n,e))}class aL{constructor(e,t){this.dueTime=e,this.scheduler=t}call(e,t){return t.subscribe(new lL(e,this.dueTime,this.scheduler))}}class lL extends ve{constructor(e,t,i){super(e),this.dueTime=t,this.scheduler=i,this.debouncedSubscription=null,this.lastValue=null,this.hasValue=!1}_next(e){this.clearDebounce(),this.lastValue=e,this.hasValue=!0,this.add(this.debouncedSubscription=this.scheduler.schedule(cL,this.dueTime,this))}_complete(){this.debouncedNext(),this.destination.complete()}debouncedNext(){if(this.clearDebounce(),this.hasValue){const{lastValue:e}=this;this.lastValue=null,this.hasValue=!1,this.destination.next(e)}}clearDebounce(){const e=this.debouncedSubscription;null!==e&&(this.remove(e),e.unsubscribe(),this.debouncedSubscription=null)}}function cL(n){n.debouncedNext()}function nE(...n){if(1===n.length){const e=n[0];if(ir(e))return Pl(e,null);if(Ic(e)&&Object.getPrototypeOf(e)===Object.prototype){const t=Object.keys(e);return Pl(t.map(i=>e[i]),t)}}if("function"==typeof n[n.length-1]){const e=n.pop();return Pl(n=1===n.length&&ir(n[0])?n[0]:n,null).pipe(Ue(t=>e(...t)))}return Pl(n,null)}function Pl(n,e){return new me(t=>{const i=n.length;if(0===i)return void t.complete();const r=new Array(i);let o=0,s=0;for(let a=0;a<i;a++){const l=Ys(n[a]);let c=!1;t.add(l.subscribe({next:u=>{c||(c=!0,s++),r[a]=u},error:u=>t.error(u),complete:()=>{o++,(o===i||!c)&&(s===i&&t.next(e?e.reduce((u,d,h)=>(u[d]=r[h],u),{}):r),t.complete())}}))}})}function pi(n){return null==n||0===n.length}function oE(n){return null!=n&&"number"==typeof n.length}const pL=/^(?=.{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 mL{static min(e){return function sE(n){return e=>{if(pi(e.value)||pi(n))return null;const t=parseFloat(e.value);return!isNaN(t)&&t<n?{min:{min:n,actual:e.value}}:null}}(e)}static max(e){return function aE(n){return e=>{if(pi(e.value)||pi(n))return null;const t=parseFloat(e.value);return!isNaN(t)&&t>n?{max:{max:n,actual:e.value}}:null}}(e)}static required(e){return function lE(n){return pi(n.value)?{required:!0}:null}(e)}static requiredTrue(e){return function cE(n){return!0===n.value?null:{required:!0}}(e)}static email(e){return function uE(n){return pi(n.value)||pL.test(n.value)?null:{email:!0}}(e)}static minLength(e){return function dE(n){return e=>pi(e.value)||!oE(e.value)?null:e.value.length<n?{minlength:{requiredLength:n,actualLength:e.value.length}}:null}(e)}static maxLength(e){return function hE(n){return e=>oE(e.value)&&e.value.length>n?{maxlength:{requiredLength:n,actualLength:e.value.length}}:null}(e)}static pattern(e){return function fE(n){if(!n)return Rs;let e,t;return"string"==typeof n?(t="","^"!==n.charAt(0)&&(t+="^"),t+=n,"$"!==n.charAt(n.length-1)&&(t+="$"),e=new RegExp(t)):(t=n.toString(),e=n),i=>{if(pi(i.value))return null;const r=i.value;return e.test(r)?null:{pattern:{requiredPattern:t,actualValue:r}}}}(e)}static nullValidator(e){return null}static compose(e){return vE(e)}static composeAsync(e){return bE(e)}}function Rs(n){return null}function pE(n){return null!=n}function mE(n){const e=Ha(n)?Ys(n):n;return Cd(e),e}function gE(n){let e={};return n.forEach(t=>{e=null!=t?Object.assign(Object.assign({},e),t):e}),0===Object.keys(e).length?null:e}function _E(n,e){return e.map(t=>t(n))}function yE(n){return n.map(e=>function gL(n){return!n.validate}(e)?e:t=>e.validate(t))}function vE(n){if(!n)return null;const e=n.filter(pE);return 0==e.length?null:function(t){return gE(_E(t,e))}}function bE(n){if(!n)return null;const e=n.filter(pE);return 0==e.length?null:function(t){return nE(_E(t,e).map(mE)).pipe(Ue(gE))}}function hf(n){return n?Array.isArray(n)?n:[n]:[]}function Ll(n,e){return Array.isArray(n)?n.includes(e):n===e}function wE(n,e){const t=hf(e);return hf(n).forEach(r=>{Ll(t,r)||t.push(r)}),t}function SE(n,e){return hf(e).filter(t=>!Ll(n,t))}function zl(n,e){const t=n.indexOf(e);t>-1&&n.splice(t,1)}const ks="VALID",$l="INVALID",so="PENDING",Ns="DISABLED";function yf(n){return(bf(n)?n.validators:n)||null}function FE(n){return Array.isArray(n)?function uf(n){return null!=n?vE(yE(n)):null}(n):n||null}function vf(n,e){return(bf(e)?e.asyncValidators:n)||null}function RE(n){return Array.isArray(n)?function df(n){return null!=n?bE(yE(n)):null}(n):n||null}function bf(n){return null!=n&&!Array.isArray(n)&&"object"==typeof n}class Cf{constructor(e,t){this._hasOwnPendingAsyncValidator=!1,this._onCollectionChange=()=>{},this._parent=null,this.pristine=!0,this.touched=!1,this._onDisabledChange=[],this._rawValidators=e,this._rawAsyncValidators=t,this._composedValidatorFn=FE(this._rawValidators),this._composedAsyncValidatorFn=RE(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn}set validator(e){this._rawValidators=this._composedValidatorFn=e}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(e){this._rawAsyncValidators=this._composedAsyncValidatorFn=e}get parent(){return this._parent}get valid(){return this.status===ks}get invalid(){return this.status===$l}get pending(){return this.status==so}get disabled(){return this.status===Ns}get enabled(){return this.status!==Ns}get dirty(){return!this.pristine}get untouched(){return!this.touched}get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(e){this._rawValidators=e,this._composedValidatorFn=FE(e)}setAsyncValidators(e){this._rawAsyncValidators=e,this._composedAsyncValidatorFn=RE(e)}addValidators(e){this.setValidators(wE(e,this._rawValidators))}addAsyncValidators(e){this.setAsyncValidators(wE(e,this._rawAsyncValidators))}removeValidators(e){this.setValidators(SE(e,this._rawValidators))}removeAsyncValidators(e){this.setAsyncValidators(SE(e,this._rawAsyncValidators))}hasValidator(e){return Ll(this._rawValidators,e)}hasAsyncValidator(e){return Ll(this._rawAsyncValidators,e)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(e={}){this.touched=!0,this._parent&&!e.onlySelf&&this._parent.markAsTouched(e)}markAllAsTouched(){this.markAsTouched({onlySelf:!0}),this._forEachChild(e=>e.markAllAsTouched())}markAsUntouched(e={}){this.touched=!1,this._pendingTouched=!1,this._forEachChild(t=>{t.markAsUntouched({onlySelf:!0})}),this._parent&&!e.onlySelf&&this._parent._updateTouched(e)}markAsDirty(e={}){this.pristine=!1,this._parent&&!e.onlySelf&&this._parent.markAsDirty(e)}markAsPristine(e={}){this.pristine=!0,this._pendingDirty=!1,this._forEachChild(t=>{t.markAsPristine({onlySelf:!0})}),this._parent&&!e.onlySelf&&this._parent._updatePristine(e)}markAsPending(e={}){this.status=so,!1!==e.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!e.onlySelf&&this._parent.markAsPending(e)}disable(e={}){const t=this._parentMarkedDirty(e.onlySelf);this.status=Ns,this.errors=null,this._forEachChild(i=>{i.disable(Object.assign(Object.assign({},e),{onlySelf:!0}))}),this._updateValue(),!1!==e.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(Object.assign(Object.assign({},e),{skipPristineCheck:t})),this._onDisabledChange.forEach(i=>i(!0))}enable(e={}){const t=this._parentMarkedDirty(e.onlySelf);this.status=ks,this._forEachChild(i=>{i.enable(Object.assign(Object.assign({},e),{onlySelf:!0}))}),this.updateValueAndValidity({onlySelf:!0,emitEvent:e.emitEvent}),this._updateAncestors(Object.assign(Object.assign({},e),{skipPristineCheck:t})),this._onDisabledChange.forEach(i=>i(!1))}_updateAncestors(e){this._parent&&!e.onlySelf&&(this._parent.updateValueAndValidity(e),e.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}setParent(e){this._parent=e}updateValueAndValidity(e={}){this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===ks||this.status===so)&&this._runAsyncValidator(e.emitEvent)),!1!==e.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!e.onlySelf&&this._parent.updateValueAndValidity(e)}_updateTreeValidity(e={emitEvent:!0}){this._forEachChild(t=>t._updateTreeValidity(e)),this.updateValueAndValidity({onlySelf:!0,emitEvent:e.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?Ns:ks}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(e){if(this.asyncValidator){this.status=so,this._hasOwnPendingAsyncValidator=!0;const t=mE(this.asyncValidator(this));this._asyncValidationSubscription=t.subscribe(i=>{this._hasOwnPendingAsyncValidator=!1,this.setErrors(i,{emitEvent:e})})}}_cancelExistingSubscription(){this._asyncValidationSubscription&&(this._asyncValidationSubscription.unsubscribe(),this._hasOwnPendingAsyncValidator=!1)}setErrors(e,t={}){this.errors=e,this._updateControlsErrors(!1!==t.emitEvent)}get(e){return function TL(n,e,t){if(null==e||(Array.isArray(e)||(e=e.split(t)),Array.isArray(e)&&0===e.length))return null;let i=n;return e.forEach(r=>{i=i instanceof Gl?i.controls.hasOwnProperty(r)?i.controls[r]:null:i instanceof xL&&i.at(r)||null}),i}(this,e,".")}getError(e,t){const i=t?this.get(t):this;return i&&i.errors?i.errors[e]:null}hasError(e,t){return!!this.getError(e,t)}get root(){let e=this;for(;e._parent;)e=e._parent;return e}_updateControlsErrors(e){this.status=this._calculateStatus(),e&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(e)}_initObservables(){this.valueChanges=new Ve,this.statusChanges=new Ve}_calculateStatus(){return this._allControlsDisabled()?Ns:this.errors?$l:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(so)?so:this._anyControlsHaveStatus($l)?$l:ks}_anyControlsHaveStatus(e){return this._anyControls(t=>t.status===e)}_anyControlsDirty(){return this._anyControls(e=>e.dirty)}_anyControlsTouched(){return this._anyControls(e=>e.touched)}_updatePristine(e={}){this.pristine=!this._anyControlsDirty(),this._parent&&!e.onlySelf&&this._parent._updatePristine(e)}_updateTouched(e={}){this.touched=this._anyControlsTouched(),this._parent&&!e.onlySelf&&this._parent._updateTouched(e)}_isBoxedValue(e){return"object"==typeof e&&null!==e&&2===Object.keys(e).length&&"value"in e&&"disabled"in e}_registerOnCollectionChange(e){this._onCollectionChange=e}_setUpdateStrategy(e){bf(e)&&null!=e.updateOn&&(this._updateOn=e.updateOn)}_parentMarkedDirty(e){return!e&&!(!this._parent||!this._parent.dirty)&&!this._parent._anyControlsDirty()}}class ao extends Cf{constructor(e=null,t,i){super(yf(t),vf(i,t)),this._onChange=[],this._applyFormState(e),this._setUpdateStrategy(t),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}setValue(e,t={}){this.value=this._pendingValue=e,this._onChange.length&&!1!==t.emitModelToViewChange&&this._onChange.forEach(i=>i(this.value,!1!==t.emitViewToModelChange)),this.updateValueAndValidity(t)}patchValue(e,t={}){this.setValue(e,t)}reset(e=null,t={}){this._applyFormState(e),this.markAsPristine(t),this.markAsUntouched(t),this.setValue(this.value,t),this._pendingChange=!1}_updateValue(){}_anyControls(e){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(e){this._onChange.push(e)}_unregisterOnChange(e){zl(this._onChange,e)}registerOnDisabledChange(e){this._onDisabledChange.push(e)}_unregisterOnDisabledChange(e){zl(this._onDisabledChange,e)}_forEachChild(e){}_syncPendingControls(){return!("submit"!==this.updateOn||(this._pendingDirty&&this.markAsDirty(),this._pendingTouched&&this.markAsTouched(),!this._pendingChange)||(this.setValue(this._pendingValue,{onlySelf:!0,emitModelToViewChange:!1}),0))}_applyFormState(e){this._isBoxedValue(e)?(this.value=this._pendingValue=e.value,e.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=e}}class Gl extends Cf{constructor(e,t,i){super(yf(t),vf(i,t)),this.controls=e,this._initObservables(),this._setUpdateStrategy(t),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}registerControl(e,t){return this.controls[e]?this.controls[e]:(this.controls[e]=t,t.setParent(this),t._registerOnCollectionChange(this._onCollectionChange),t)}addControl(e,t,i={}){this.registerControl(e,t),this.updateValueAndValidity({emitEvent:i.emitEvent}),this._onCollectionChange()}removeControl(e,t={}){this.controls[e]&&this.controls[e]._registerOnCollectionChange(()=>{}),delete this.controls[e],this.updateValueAndValidity({emitEvent:t.emitEvent}),this._onCollectionChange()}setControl(e,t,i={}){this.controls[e]&&this.controls[e]._registerOnCollectionChange(()=>{}),delete this.controls[e],t&&this.registerControl(e,t),this.updateValueAndValidity({emitEvent:i.emitEvent}),this._onCollectionChange()}contains(e){return this.controls.hasOwnProperty(e)&&this.controls[e].enabled}setValue(e,t={}){this._checkAllValuesPresent(e),Object.keys(e).forEach(i=>{this._throwIfControlMissing(i),this.controls[i].setValue(e[i],{onlySelf:!0,emitEvent:t.emitEvent})}),this.updateValueAndValidity(t)}patchValue(e,t={}){null!=e&&(Object.keys(e).forEach(i=>{this.controls[i]&&this.controls[i].patchValue(e[i],{onlySelf:!0,emitEvent:t.emitEvent})}),this.updateValueAndValidity(t))}reset(e={},t={}){this._forEachChild((i,r)=>{i.reset(e[r],{onlySelf:!0,emitEvent:t.emitEvent})}),this._updatePristine(t),this._updateTouched(t),this.updateValueAndValidity(t)}getRawValue(){return this._reduceChildren({},(e,t,i)=>(e[i]=t instanceof ao?t.value:t.getRawValue(),e))}_syncPendingControls(){let e=this._reduceChildren(!1,(t,i)=>!!i._syncPendingControls()||t);return e&&this.updateValueAndValidity({onlySelf:!0}),e}_throwIfControlMissing(e){if(!Object.keys(this.controls).length)throw new Error("\n There are no form controls registered with this group yet. If you're using ngModel,\n you may want to check next tick (e.g. use setTimeout).\n ");if(!this.controls[e])throw new Error(`Cannot find form control with name: ${e}.`)}_forEachChild(e){Object.keys(this.controls).forEach(t=>{const i=this.controls[t];i&&e(i,t)})}_setUpControls(){this._forEachChild(e=>{e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(e){for(const t of Object.keys(this.controls)){const i=this.controls[t];if(this.contains(t)&&e(i))return!0}return!1}_reduceValue(){return this._reduceChildren({},(e,t,i)=>((t.enabled||this.disabled)&&(e[i]=t.value),e))}_reduceChildren(e,t){let i=e;return this._forEachChild((r,o)=>{i=t(i,r,o)}),i}_allControlsDisabled(){for(const e of Object.keys(this.controls))if(this.controls[e].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}_checkAllValuesPresent(e){this._forEachChild((t,i)=>{if(void 0===e[i])throw new Error(`Must supply a value for form control with name: '${i}'.`)})}}class xL extends Cf{constructor(e,t,i){super(yf(t),vf(i,t)),this.controls=e,this._initObservables(),this._setUpdateStrategy(t),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}at(e){return this.controls[e]}push(e,t={}){this.controls.push(e),this._registerControl(e),this.updateValueAndValidity({emitEvent:t.emitEvent}),this._onCollectionChange()}insert(e,t,i={}){this.controls.splice(e,0,t),this._registerControl(t),this.updateValueAndValidity({emitEvent:i.emitEvent})}removeAt(e,t={}){this.controls[e]&&this.controls[e]._registerOnCollectionChange(()=>{}),this.controls.splice(e,1),this.updateValueAndValidity({emitEvent:t.emitEvent})}setControl(e,t,i={}){this.controls[e]&&this.controls[e]._registerOnCollectionChange(()=>{}),this.controls.splice(e,1),t&&(this.controls.splice(e,0,t),this._registerControl(t)),this.updateValueAndValidity({emitEvent:i.emitEvent}),this._onCollectionChange()}get length(){return this.controls.length}setValue(e,t={}){this._checkAllValuesPresent(e),e.forEach((i,r)=>{this._throwIfControlMissing(r),this.at(r).setValue(i,{onlySelf:!0,emitEvent:t.emitEvent})}),this.updateValueAndValidity(t)}patchValue(e,t={}){null!=e&&(e.forEach((i,r)=>{this.at(r)&&this.at(r).patchValue(i,{onlySelf:!0,emitEvent:t.emitEvent})}),this.updateValueAndValidity(t))}reset(e=[],t={}){this._forEachChild((i,r)=>{i.reset(e[r],{onlySelf:!0,emitEvent:t.emitEvent})}),this._updatePristine(t),this._updateTouched(t),this.updateValueAndValidity(t)}getRawValue(){return this.controls.map(e=>e instanceof ao?e.value:e.getRawValue())}clear(e={}){this.controls.length<1||(this._forEachChild(t=>t._registerOnCollectionChange(()=>{})),this.controls.splice(0),this.updateValueAndValidity({emitEvent:e.emitEvent}))}_syncPendingControls(){let e=this.controls.reduce((t,i)=>!!i._syncPendingControls()||t,!1);return e&&this.updateValueAndValidity({onlySelf:!0}),e}_throwIfControlMissing(e){if(!this.controls.length)throw new Error("\n There are no form controls registered with this array yet. If you're using ngModel,\n you may want to check next tick (e.g. use setTimeout).\n ");if(!this.at(e))throw new Error(`Cannot find form control at index ${e}`)}_forEachChild(e){this.controls.forEach((t,i)=>{e(t,i)})}_updateValue(){this.value=this.controls.filter(e=>e.enabled||this.disabled).map(e=>e.value)}_anyControls(e){return this.controls.some(t=>t.enabled&&e(t))}_setUpControls(){this._forEachChild(e=>this._registerControl(e))}_checkAllValuesPresent(e){this._forEachChild((t,i)=>{if(void 0===e[i])throw new Error(`Must supply a value for form control at index: ${i}.`)})}_allControlsDisabled(){for(const e of this.controls)if(e.enabled)return!1;return this.controls.length>0||this.disabled}_registerControl(e){e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange)}}let VE=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=pe({type:n}),n.\u0275inj=ce({}),n})(),rV=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=pe({type:n}),n.\u0275inj=ce({imports:[[VE]]}),n})(),oV=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=pe({type:n}),n.\u0275inj=ce({imports:[rV]}),n})(),nD=(()=>{class n{constructor(){this.formGroups={}}setupStandardProperties(t){const i=t.componentDefinition;i&&(t.disabled=!1===i.enabled),t.elementName=t.fieldName,t.registeredControlName=t.fieldName+t.key}setupStandardComponent(t,i){this.setupStandardProperties(t);const o=this.ensureFormGroupExisted(t.document.documentId),s=t.componentDefinition;this.setupDefaultValidator(s,i);const a=new ao({value:t.fieldValue,disabled:this.isComponentDisabled(s)},i);return o.registerControl(s.name+t.key,a)}setupControl(t,i,r,o){const s=this.ensureFormGroupExisted(t.document.documentId),a=new ao(r,o);return s.registerControl(i+t.key,a)}enableField(t,i){i&&(!1===t.enabled?i.disable({emitEvent:!1}):i.enable({emitEvent:!1}))}enableFieldByFlag(t,i){i&&(!1===t?i.disable({emitEvent:!1}):i.enable({emitEvent:!1}))}setupDefaultValidator(t,i){i=i||[],t.mandatory&&i.push(mL.required)}isComponentDisabled(t){return!1===t.enabled}ensureFormGroupExisted(t){return this.formGroups[t]||(this.formGroups[t]=new Gl({})),this.formGroups[t]}getControl(t,i){return this.formGroups[t]?this.formGroups[t].get(i):null}}return n.\u0275fac=function(t){return new(t||n)},n.\u0275prov=I({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();class sV{isErrorState(e,t){return!!(e&&e.invalid&&(e.dirty||e.touched||t&&t.submitted))}}let aV=(()=>{class n{constructor(t,i,r,o){this.formbirdInjectorService=t,this.changedDocumentService=i,this.componentSetupService=r,this.cdr=o,this.shouldNotifyCompInitializedInSuper=!0,this.shouldDispatchEmptyFieldValue=!0,this.subs=new se,this.matcher=new sV,this.broadcastService=t.get("BroadcastService")}ngOnInit(){this.setupComponent(),this.initializeFieldValue(),this.setupChangeDetection(),this.shouldNotifyCompInitializedInSuper&&this.notifyComponentIntialized()}ngOnDestroy(){this.subs.unsubscribe()}setupComponent(){this.formControl=this.componentSetupService.setupStandardComponent(this,this.validators),this.setFieldActivation(!1)}setupChangeDetection(t){if(this.fieldName){const r=this.changedDocumentService.watch(this.fieldName,this.document.documentId,this.registeredControlName).subscribe(o=>{this.onFieldValueChanged(o)});this.subs.add(r)}const i=this.changedDocumentService.watchComponentDef(this.fieldName,this.template.documentId).subscribe(r=>{this.onComponentDefChanged(r)});if(this.subs.add(i),this.formControl){let r;r=t?this.formControl.valueChanges.subscribe(o=>{this.onControlValueChanged(o)}):this.formControl.valueChanges.pipe(tE(500)).subscribe(o=>{this.onControlValueChanged(o)}),this.subs.add(r)}this.setupDocumentCreatedDetection()}setFieldActivation(t){this.componentSetupService.enableField(this.componentDefinition,this.formControl),this.detectChanges(t)}valueChanged(t){this.fieldValue=t,this.changedDocumentService.valueChanged(this,t,this.registeredControlName)}dispatchChanged(t){this.changedDocumentService.notifyDocumentChanged({documentId:this.document.documentId,fieldName:this.fieldName,newValue:this.fieldValue,isInitValue:t})}detectChanges(t){!1!==t&&!this.cdr.destroyed&&this.cdr.detectChanges()}updateComponentDefChange(t){this.componentDefinition=t}onControlValueChanged(t){this.valueChanged(t)}onComponentDefChanged(t){console.log("Change detection on template: ",t.name),this.updateComponentDefChange(t);const i=!1===t.enabled;this.disabled!==i&&(this.disabled=i,this.setFieldActivation())}isEqualFieldValue(t){return this.fieldValue===t}onFieldValueChanged(t,i=!0){this.isEqualFieldValue(t)||(console.log(`On field value changed for component: ${this.registeredControlName} - has label: ${this.componentDefinition.label}`),this.fieldValue=t,this.formControl&&this.formControl.patchValue(this.fieldValue,{emitEvent:!1,onlySelf:!0}),i&&this.detectChanges())}setupDocumentCreatedDetection(){const t=this.broadcastService.on("document:new").subscribe(i=>{this.onDocumentCreated(i),this.detectChanges()});this.subs.add(t)}onDocumentCreated(t){const i=null==t?void 0:t.document;if(i){const o=i.documentId;(null==t?void 0:t.unsavedDocumentListId)===this.formParameters.unsavedDocumentListId&&this.document.documentId===o&&(this.fieldValue=i[this.fieldName],this.initializeFieldValue(),this.notifyComponentIntialized())}}initializeFieldValue(){}notifyComponentIntialized(){this.changedDocumentService.notifyIntializedField(this,this.shouldDispatchEmptyFieldValue)}notifyComponentDefChanged(){}}return n.\u0275fac=function(t){return new(t||n)(v(af),v(XC),v(nD),v(Jr))},n.\u0275cmp=Si({type:n,selectors:[["ng-component"]],inputs:{document:"document",fieldValue:"fieldValue",template:"template",fieldName:"fieldName",formParameters:"formParameters",key:"key",responsiveLayouts:"responsiveLayouts",message:"message",componentDefinition:"componentDefinition"},decls:0,vars:0,template:function(t,i){},encapsulation:2}),n})(),lV=(()=>{class n{constructor(){if(this.injector=window.FormbirdServiceInjector,!this.injector){const t=document.querySelectorAll("#bodyAngularJS div[ui-view]");this.injector=angular.element(t).injector(),this.isAngularJS=!0}}get(t){return this.injector.get(t)}isAngularJSCore(){return this.isAngularJS}}return n.\u0275fac=function(t){return new(t||n)},n.\u0275prov=I({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),cV=(()=>{class n{constructor(){this.chunkSeparator="_",this.charmap={},this.charmapReverse={},this.minus="Z",this.plus="Y",this.acceptedformat="image/jsignature;base30",this.allchars="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWX".split(""),this.bitness=this.allchars.length/2;for(let t=this.bitness-1;t>-1;t--)this.charmap[this.allchars[t]]=this.allchars[t+this.bitness],this.charmapReverse[this.allchars[t+this.bitness]]=this.allchars[t]}remapTailChars(t){const i=t.split(""),r=i.length;for(let o=1;o<r;o++)i[o]=this.charmap[i[o]];return i.join("")}compressstrokeleg(t){const i=[];let r=0,s=1;const a=t.length;let l,c,u;for(let d=0;d<a;d++)l=Math.round(t[d]),c=l-r,r=l,c<0&&s>0?(s=-1,i.push(this.minus)):c>0&&s<0&&(s=1,i.push(this.plus)),u=Math.abs(c),i.push(u>=this.bitness?this.remapTailChars(u.toString(this.bitness)):u.toString(this.bitness));return i.join("")}uncompressstrokeleg(t){const i=[],r=t.split(""),o=r.length;let s,u,a=1,l=[],c=0;for(let d=0;d<o;d++)s=r[d],s in this.charmap||s===this.minus||s===this.plus?(0!==l.length&&(u=parseInt(l.join(""),this.bitness)*a+c,i.push(u),c=u),s===this.minus?(a=-1,l=[]):s===this.plus?(a=1,l=[]):l=[s]):l.push(this.charmapReverse[s]);return i.push(parseInt(l.join(""),this.bitness)*a+c),i}compressstrokes(t){const i=[],r=t.length;let o;for(let s=0;s<r;s++)o=t[s],i.push(this.compressstrokeleg(o.x)),i.push(this.compressstrokeleg(o.y));return i.join(this.chunkSeparator)}uncompressstrokes(t){const i=[],r=t.split(this.chunkSeparator),o=r.length/2;for(let s=0;s<o;s++)i.push({x:this.uncompressstrokeleg(r[2*s]),y:this.uncompressstrokeleg(r[2*s+1])});return i}pluginCompressor(t){return[this.acceptedformat,this.compressstrokes(t)]}pluginDecompressor(t,i,r){"string"==typeof t&&(t.substring(0,this.acceptedformat.length).toLowerCase()===this.acceptedformat&&(t=t.substring(this.acceptedformat.length+1)),r(this.uncompressstrokes(t)))}}return n.\u0275fac=function(t){return new(t||n)},n.\u0275prov=I({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),uV=(()=>{class n{create(t){return"undefined"==typeof MutationObserver?null:new MutationObserver(t)}}return n.\u0275fac=function(t){return new(t||n)},n.\u0275prov=I({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),iD=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=pe({type:n}),n.\u0275inj=ce({providers:[uV]}),n})();const dV=new T("cdk-dir-doc",{providedIn:"root",factory:function hV(){return _u(q)}});let rD=(()=>{class n{constructor(t){if(this.value="ltr",this.change=new Ve,t){const r=t.documentElement?t.documentElement.dir:null,o=(t.body?t.body.dir:null)||r;this.value="ltr"===o||"rtl"===o?o:"ltr"}}ngOnDestroy(){this.change.complete()}}return n.\u0275fac=function(t){return new(t||n)(b(dV,8))},n.\u0275prov=I({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),Ls=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=pe({type:n}),n.\u0275inj=ce({}),n})();const oD=new ui("13.0.1");let Tf;try{Tf="undefined"!=typeof Intl&&Intl.v8BreakIterator}catch(n){Tf=!1}let Vs,Qi,xf,un=(()=>{class n{constructor(t){this._platformId=t,this.isBrowser=this._platformId?function s1(n){return n===VC}(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&&!Tf)&&"undefined"!=typeof CSS&&!this.EDGE&&!this.TRIDENT,this.WEBKIT=this.isBrowser&&/AppleWebKit/i.test(navigator.userAgent)&&!this.BLINK&&!this.EDGE&&!this.TRIDENT,this.IOS=this.isBrowser&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!("MSStream"in window),this.FIREFOX=this.isBrowser&&/(firefox|minefield)/i.test(navigator.userAgent),this.ANDROID=this.isBrowser&&/android/i.test(navigator.userAgent)&&!this.TRIDENT,this.SAFARI=this.isBrowser&&/safari/i.test(navigator.userAgent)&&this.WEBKIT}}return n.\u0275fac=function(t){return new(t||n)(b(il))},n.\u0275prov=I({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),ql=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=pe({type:n}),n.\u0275inj=ce({}),n})();function Bs(n){return function fV(){if(null==Vs&&"undefined"!=typeof window)try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:()=>Vs=!0}))}finally{Vs=Vs||!1}return Vs}()?n:!!n.capture}function pV(){if(null==Qi){if("object"!=typeof document||!document||"function"!=typeof Element||!Element)return Qi=!1,Qi;if("scrollBehavior"in document.documentElement.style)Qi=!0;else{const n=Element.prototype.scrollTo;Qi=!!n&&!/\{\s*\[native code\]\s*\}/.test(n.toString())}}return Qi}function Ki(n){return n.composedPath?n.composedPath()[0]:n.target}function Ff(){return"undefined"!=typeof __karma__&&!!__karma__||"undefined"!=typeof jasmine&&!!jasmine||"undefined"!=typeof jest&&!!jest||"undefined"!=typeof Mocha&&!!Mocha}class _V extends Pe{constructor(e){super(),this._value=e}get value(){return this.getValue()}_subscribe(e){const t=super._subscribe(e);return t&&!t.closed&&e.next(this._value),t}getValue(){if(this.hasError)throw this.thrownError;if(this.closed)throw new Di;return this._value}next(e){super.next(this._value=e)}}function An(...n){let e=n[n.length-1];return rr(e)?(n.pop(),xc(n,e)):Rc(n)}function aD(n){return e=>e.lift(new SV(n))}class SV{constructor(e){this.total=e}call(e,t){return t.subscribe(new MV(e,this.total))}}class MV extends ve{constructor(e,t){super(e),this.total=t,this.count=0}_next(e){++this.count>this.total&&this.destination.next(e)}}class IV{constructor(e,t){this.compare=e,this.keySelector=t}call(e,t){return t.subscribe(new TV(e,this.compare,this.keySelector))}}class TV extends ve{constructor(e,t,i){super(e),this.keySelector=i,this.hasKey=!1,"function"==typeof t&&(this.compare=t)}compare(e,t){return e===t}_next(e){let t;try{const{keySelector:r}=this;t=r?r(e):e}catch(r){return this.destination.error(r)}let i=!1;if(this.hasKey)try{const{compare:r}=this;i=r(this.key,t)}catch(r){return this.destination.error(r)}else this.hasKey=!0;i||(this.key=t,this.destination.next(e))}}function In(n){return e=>e.lift(new xV(n))}class xV{constructor(e){this.notifier=e}call(e,t){const i=new FV(e),r=Eo(this.notifier,new bo(i));return r&&!i.seenValue?(i.add(r),t.subscribe(i)):i}}class FV extends Co{constructor(e){super(e),this.seenValue=!1}notifyNext(){this.seenValue=!0,this.complete()}notifyComplete(){}}function Kl(n){return null!=n&&"false"!=`${n}`}function Yl(n){return Array.isArray(n)?n:[n]}function Fe(n){return null==n?"":"string"==typeof n?n:`${n}px`}function co(n){return n instanceof ye?n.nativeElement:n}function Zl(n,e){return(n.getAttribute(e)||"").match(/\S+/g)||[]}const cD="cdk-describedby-message-container",uD="cdk-describedby-message",Xl="cdk-describedby-host";let NV=0;const Tn=new Map;let wt=null,PV=(()=>{class n{constructor(t){this._document=t}describe(t,i,r){if(!this._canBeDescribed(t,i))return;const o=Rf(i,r);"string"!=typeof i?(dD(i),Tn.set(o,{messageElement:i,referenceCount:0})):Tn.has(o)||this._createMessageElement(i,r),this._isElementDescribedByMessage(t,o)||this._addMessageReference(t,o)}removeDescription(t,i,r){if(!i||!this._isElementNode(t))return;const o=Rf(i,r);if(this._isElementDescribedByMessage(t,o)&&this._removeMessageReference(t,o),"string"==typeof i){const s=Tn.get(o);s&&0===s.referenceCount&&this._deleteMessageElement(o)}wt&&0===wt.childNodes.length&&this._deleteMessagesContainer()}ngOnDestroy(){const t=this._document.querySelectorAll(`[${Xl}]`);for(let i=0;i<t.length;i++)this._removeCdkDescribedByReferenceIds(t[i]),t[i].removeAttribute(Xl);wt&&this._deleteMessagesContainer(),Tn.clear()}_createMessageElement(t,i){const r=this._document.createElement("div");dD(r),r.textContent=t,i&&r.setAttribute("role",i),this._createMessagesContainer(),wt.appendChild(r),Tn.set(Rf(t,i),{messageElement:r,referenceCount:0})}_deleteMessageElement(t){var i;const r=Tn.get(t);null===(i=null==r?void 0:r.messageElement)||void 0===i||i.remove(),Tn.delete(t)}_createMessagesContainer(){if(!wt){const t=this._document.getElementById(cD);null==t||t.remove(),wt=this._document.createElement("div"),wt.id=cD,wt.style.visibility="hidden",wt.classList.add("cdk-visually-hidden"),this._document.body.appendChild(wt)}}_deleteMessagesContainer(){wt&&(wt.remove(),wt=null)}_removeCdkDescribedByReferenceIds(t){const i=Zl(t,"aria-describedby").filter(r=>0!=r.indexOf(uD));t.setAttribute("aria-describedby",i.join(" "))}_addMessageReference(t,i){const r=Tn.get(i);(function OV(n,e,t){const i=Zl(n,e);i.some(r=>r.trim()==t.trim())||(i.push(t.trim()),n.setAttribute(e,i.join(" ")))})(t,"aria-describedby",r.messageElement.id),t.setAttribute(Xl,""),r.referenceCount++}_removeMessageReference(t,i){const r=Tn.get(i);r.referenceCount--,function kV(n,e,t){const r=Zl(n,e).filter(o=>o!=t.trim());r.length?n.setAttribute(e,r.join(" ")):n.removeAttribute(e)}(t,"aria-describedby",r.messageElement.id),t.removeAttribute(Xl)}_isElementDescribedByMessage(t,i){const r=Zl(t,"aria-describedby"),o=Tn.get(i),s=o&&o.messageElement.id;return!!s&&-1!=r.indexOf(s)}_canBeDescribed(t,i){if(!this._isElementNode(t))return!1;if(i&&"object"==typeof i)return!0;const r=null==i?"":`${i}`.trim(),o=t.getAttribute("aria-label");return!(!r||o&&o.trim()===r)}_isElementNode(t){return t.nodeType===this._document.ELEMENT_NODE}}return n.\u0275fac=function(t){return new(t||n)(b(q))},n.\u0275prov=I({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();function Rf(n,e){return"string"==typeof n?`${e||""}/${n}`:n}function dD(n){n.id||(n.id=`${uD}-${NV++}`)}function fD(n){return 0===n.offsetX&&0===n.offsetY}function pD(n){const e=n.touches&&n.touches[0]||n.changedTouches&&n.changedTouches[0];return!(!e||-1!==e.identifier||null!=e.radiusX&&1!==e.radiusX||null!=e.radiusY&&1!==e.radiusY)}const UV=new T("cdk-input-modality-detector-options"),zV={ignoreKeys:[18,17,224,91,16]},uo=Bs({passive:!0,capture:!0});let $V=(()=>{class n{constructor(t,i,r,o){this._platform=t,this._mostRecentTarget=null,this._modality=new _V(null),this._lastTouchMs=0,this._onKeydown=s=>{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===s.keyCode))||(this._modality.next("keyboard"),this._mostRecentTarget=Ki(s))},this._onMousedown=s=>{Date.now()-this._lastTouchMs<650||(this._modality.next(fD(s)?"keyboard":"mouse"),this._mostRecentTarget=Ki(s))},this._onTouchstart=s=>{pD(s)?this._modality.next("keyboard"):(this._lastTouchMs=Date.now(),this._modality.next("touch"),this._mostRecentTarget=Ki(s))},this._options=Object.assign(Object.assign({},zV),o),this.modalityDetected=this._modality.pipe(aD(1)),this.modalityChanged=this.modalityDetected.pipe(function AV(n,e){return t=>t.lift(new IV(n,e))}()),t.isBrowser&&i.runOutsideAngular(()=>{r.addEventListener("keydown",this._onKeydown,uo),r.addEventListener("mousedown",this._onMousedown,uo),r.addEventListener("touchstart",this._onTouchstart,uo)})}get mostRecentModality(){return this._modality.value}ngOnDestroy(){this._modality.complete(),this._platform.isBrowser&&(document.removeEventListener("keydown",this._onKeydown,uo),document.removeEventListener("mousedown",this._onMousedown,uo),document.removeEventListener("touchstart",this._onTouchstart,uo))}}return n.\u0275fac=function(t){return new(t||n)(b(un),b(oe),b(q),b(UV,8))},n.\u0275prov=I({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const WV=new T("cdk-focus-monitor-default-options"),Jl=Bs({passive:!0,capture:!0});let gD=(()=>{class n{constructor(t,i,r,o,s){this._ngZone=t,this._platform=i,this._inputModalityDetector=r,this._origin=null,this._windowFocused=!1,this._originFromTouchInteraction=!1,this._elementInfo=new Map,this._monitoredElementCount=0,this._rootNodeFocusListenerCount=new Map,this._windowFocusListener=()=>{this._windowFocused=!0,this._windowFocusTimeoutId=setTimeout(()=>this._windowFocused=!1)},this._stopInputModalityDetector=new Pe,this._rootNodeFocusAndBlurListener=a=>{const l=Ki(a),c="focus"===a.type?this._onFocus:this._onBlur;for(let u=l;u;u=u.parentElement)c.call(this,a,u)},this._document=o,this._detectionMode=(null==s?void 0:s.detectionMode)||0}monitor(t,i=!1){const r=co(t);if(!this._platform.isBrowser||1!==r.nodeType)return An(null);const o=function gV(n){if(function mV(){if(null==xf){const n="undefined"!=typeof document?document.head:null;xf=!(!n||!n.createShadowRoot&&!n.attachShadow)}return xf}()){const e=n.getRootNode?n.getRootNode():null;if("undefined"!=typeof ShadowRoot&&ShadowRoot&&e instanceof ShadowRoot)return e}return null}(r)||this._getDocument(),s=this._elementInfo.get(r);if(s)return i&&(s.checkChildren=!0),s.subject;const a={checkChildren:i,subject:new Pe,rootNode:o};return this._elementInfo.set(r,a),this._registerGlobalListeners(a),a.subject}stopMonitoring(t){const i=co(t),r=this._elementInfo.get(i);r&&(r.subject.complete(),this._setClasses(i),this._elementInfo.delete(i),this._removeGlobalListeners(r))}focusVia(t,i,r){const o=co(t);o===this._getDocument().activeElement?this._getClosestElementsInfo(o).forEach(([a,l])=>this._originChanged(a,i,l)):(this._setOrigin(i),"function"==typeof o.focus&&o.focus(r))}ngOnDestroy(){this._elementInfo.forEach((t,i)=>this.stopMonitoring(i))}_getDocument(){return this._document||document}_getWindow(){return this._getDocument().defaultView||window}_getFocusOrigin(t){return this._origin?this._originFromTouchInteraction?this._shouldBeAttributedToTouch(t)?"touch":"program":this._origin:this._windowFocused&&this._lastFocusOrigin?this._lastFocusOrigin:"program"}_shouldBeAttributedToTouch(t){return 1===this._detectionMode||!!(null==t?void 0:t.contains(this._inputModalityDetector._mostRecentTarget))}_setClasses(t,i){t.classList.toggle("cdk-focused",!!i),t.classList.toggle("cdk-touch-focused","touch"===i),t.classList.toggle("cdk-keyboard-focused","keyboard"===i),t.classList.toggle("cdk-mouse-focused","mouse"===i),t.classList.toggle("cdk-program-focused","program"===i)}_setOrigin(t,i=!1){this._ngZone.runOutsideAngular(()=>{this._origin=t,this._originFromTouchInteraction="touch"===t&&i,0===this._detectionMode&&(clearTimeout(this._originTimeoutId),this._originTimeoutId=setTimeout(()=>this._origin=null,this._originFromTouchInteraction?650:1))})}_onFocus(t,i){const r=this._elementInfo.get(i),o=Ki(t);!r||!r.checkChildren&&i!==o||this._originChanged(i,this._getFocusOrigin(o),r)}_onBlur(t,i){const r=this._elementInfo.get(i);!r||r.checkChildren&&t.relatedTarget instanceof Node&&i.contains(t.relatedTarget)||(this._setClasses(i),this._emitOrigin(r.subject,null))}_emitOrigin(t,i){this._ngZone.run(()=>t.next(i))}_registerGlobalListeners(t){if(!this._platform.isBrowser)return;const i=t.rootNode,r=this._rootNodeFocusListenerCount.get(i)||0;r||this._ngZone.runOutsideAngular(()=>{i.addEventListener("focus",this._rootNodeFocusAndBlurListener,Jl),i.addEventListener("blur",this._rootNodeFocusAndBlurListener,Jl)}),this._rootNodeFocusListenerCount.set(i,r+1),1==++this._monitoredElementCount&&(this._ngZone.runOutsideAngular(()=>{this._getWindow().addEventListener("focus",this._windowFocusListener)}),this._inputModalityDetector.modalityDetected.pipe(In(this._stopInputModalityDetector)).subscribe(o=>{this._setOrigin(o,!0)}))}_removeGlobalListeners(t){const i=t.rootNode;if(this._rootNodeFocusListenerCount.has(i)){const r=this._rootNodeFocusListenerCount.get(i);r>1?this._rootNodeFocusListenerCount.set(i,r-1):(i.removeEventListener("focus",this._rootNodeFocusAndBlurListener,Jl),i.removeEventListener("blur",this._rootNodeFocusAndBlurListener,Jl),this._rootNodeFocusListenerCount.delete(i))}--this._monitoredElementCount||(this._getWindow().removeEventListener("focus",this._windowFocusListener),this._stopInputModalityDetector.next(),clearTimeout(this._windowFocusTimeoutId),clearTimeout(this._originTimeoutId))}_originChanged(t,i,r){this._setClasses(t,i),this._emitOrigin(r.subject,i),this._lastFocusOrigin=i}_getClosestElementsInfo(t){const i=[];return this._elementInfo.forEach((r,o)=>{(o===t||r.checkChildren&&o.contains(t))&&i.push([o,r])}),i}}return n.\u0275fac=function(t){return new(t||n)(b(oe),b(un),b($V),b(q,8),b(WV,8))},n.\u0275prov=I({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const _D="cdk-high-contrast-black-on-white",yD="cdk-high-contrast-white-on-black",Of="cdk-high-contrast-active";let vD=(()=>{class n{constructor(t,i){this._platform=t,this._document=i}getHighContrastMode(){if(!this._platform.isBrowser)return 0;const t=this._document.createElement("div");t.style.backgroundColor="rgb(1,2,3)",t.style.position="absolute",this._document.body.appendChild(t);const i=this._document.defaultView||window,r=i&&i.getComputedStyle?i.getComputedStyle(t):null,o=(r&&r.backgroundColor||"").replace(/ /g,"");switch(t.remove(),o){case"rgb(0,0,0)":return 2;case"rgb(255,255,255)":return 1}return 0}_applyBodyHighContrastModeCssClasses(){if(!this._hasCheckedHighContrastMode&&this._platform.isBrowser&&this._document.body){const t=this._document.body.classList;t.remove(Of),t.remove(_D),t.remove(yD),this._hasCheckedHighContrastMode=!0;const i=this.getHighContrastMode();1===i?(t.add(Of),t.add(_D)):2===i&&(t.add(Of),t.add(yD))}}}return n.\u0275fac=function(t){return new(t||n)(b(un),b(q))},n.\u0275prov=I({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),qV=(()=>{class n{constructor(t){t._applyBodyHighContrastModeCssClasses()}}return n.\u0275fac=function(t){return new(t||n)(b(vD))},n.\u0275mod=pe({type:n}),n.\u0275inj=ce({imports:[[ql,iD]]}),n})();function CD(n,e){return{type:7,name:n,definitions:e,options:{}}}function kf(n,e=null){return{type:4,styles:e,timings:n}}function xn(n){return{type:6,styles:n,offset:null}}function Nf(n,e,t){return{type:0,name:n,styles:e,options:t}}function KV(n){return{type:5,steps:n}}function Pf(n,e,t=null){return{type:1,expr:n,animation:e,options:t}}function SD(){return"undefined"!=typeof window&&void 0!==window.document}function Vf(){return"undefined"!=typeof process&&"[object process]"==={}.toString.call(process)}let Uf=(n,e)=>!1,zf=(n,e)=>!1,ID=(n,e,t)=>[];const TD=Vf();(TD||"undefined"!=typeof Element)&&(Uf=SD()?(n,e)=>{for(;e&&e!==document.documentElement;){if(e===n)return!0;e=e.parentNode||e.host}return!1}:(n,e)=>n.contains(e),zf=(()=>{if(TD||Element.prototype.matches)return(n,e)=>n.matches(e);{const n=Element.prototype,e=n.matchesSelector||n.mozMatchesSelector||n.msMatchesSelector||n.oMatchesSelector||n.webkitMatchesSelector;return e?(t,i)=>e.apply(t,[i]):zf}})(),ID=(n,e,t)=>{let i=[];if(t){const r=n.querySelectorAll(e);for(let o=0;o<r.length;o++)i.push(r[o])}else{const r=n.querySelector(e);r&&i.push(r)}return i});const yc=new T("AnimationModuleType"),vw=new ui("13.0.1"),bj=new T("mat-sanity-checks",{providedIn:"root",factory:function vj(){return!0}});let dn=(()=>{class n{constructor(t,i,r){this._hasDoneGlobalChecks=!1,this._document=r,t._applyBodyHighContrastModeCssClasses(),this._sanityChecks=i,this._hasDoneGlobalChecks||(this._checkDoctypeIsDefined(),this._checkThemeIsPresent(),this._checkCdkVersionMatch(),this._hasDoneGlobalChecks=!0)}_checkIsEnabled(t){return!(!sh()||Ff())&&("boolean"==typeof this._sanityChecks?this._sanityChecks:!!this._sanityChecks[t])}_checkDoctypeIsDefined(){this._checkIsEnabled("doctype")&&!this._document.doctype&&console.warn("Current document does not have a doctype. This may cause some Angular Material components not to behave as expected.")}_checkThemeIsPresent(){if(!this._checkIsEnabled("theme")||!this._document.body||"function"!=typeof getComputedStyle)return;const t=this._document.createElement("div");t.classList.add("mat-theme-loaded-marker"),this._document.body.appendChild(t);const i=getComputedStyle(t);i&&"none"!==i.display&&console.warn("Could not find Angular Material core theme. Most Material components may not work as expected. For more info refer to the theming guide: https://material.angular.io/guide/theming"),t.remove()}_checkCdkVersionMatch(){this._checkIsEnabled("version")&&vw.full!==oD.full&&console.warn("The Angular Material version ("+vw.full+") does not match the Angular CDK version ("+oD.full+").\nPlease ensure the versions of these two packages exactly match.")}}return n.\u0275fac=function(t){return new(t||n)(b(vD),b(bj,8),b(q))},n.\u0275mod=pe({type:n}),n.\u0275inj=ce({imports:[[Ls],Ls]}),n})();function Cj(n){return class extends n{constructor(...e){super(...e),this._disabled=!1}get disabled(){return this._disabled}set disabled(e){this._disabled=Kl(e)}}}function bw(n,e){return class extends n{constructor(...t){super(...t),this.defaultColor=e,this.color=e}get color(){return this._color}set color(t){const i=t||this.defaultColor;i!==this._color&&(this._color&&this._elementRef.nativeElement.classList.remove(`mat-${this._color}`),i&&this._elementRef.nativeElement.classList.add(`mat-${i}`),this._color=i)}}}function Ej(n){return class extends n{constructor(...e){super(...e),this._disableRipple=!1}get disableRipple(){return this._disableRipple}set disableRipple(e){this._disableRipple=Kl(e)}}}let wj=(()=>{class n{isErrorState(t,i){return!!(t&&t.invalid&&(t.touched||i&&i.submitted))}}return n.\u0275fac=function(t){return new(t||n)},n.\u0275prov=I({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();class Sj{constructor(e,t,i){this._renderer=e,this.element=t,this.config=i,this.state=3}fadeOut(){this._renderer.fadeOutRipple(this)}}const Cw={enterDuration:225,exitDuration:150},pp=Bs({passive:!0}),Ew=["mousedown","touchstart"],Dw=["mouseup","mouseleave","touchend","touchcancel"];class Aj{constructor(e,t,i,r){this._target=e,this._ngZone=t,this._isPointerDown=!1,this._activeRipples=new Set,this._pointerUpEventsRegistered=!1,r.isBrowser&&(this._containerElement=co(i))}fadeInRipple(e,t,i={}){const r=this._containerRect=this._containerRect||this._containerElement.getBoundingClientRect(),o=Object.assign(Object.assign({},Cw),i.animation);i.centered&&(e=r.left+r.width/2,t=r.top+r.height/2);const s=i.radius||function Tj(n,e,t){const i=Math.max(Math.abs(n-t.left),Math.abs(n-t.right)),r=Math.max(Math.abs(e-t.top),Math.abs(e-t.bottom));return Math.sqrt(i*i+r*r)}(e,t,r),a=e-r.left,l=t-r.top,c=o.enterDuration,u=document.createElement("div");u.classList.add("mat-ripple-element"),u.style.left=a-s+"px",u.style.top=l-s+"px",u.style.height=2*s+"px",u.style.width=2*s+"px",null!=i.color&&(u.style.backgroundColor=i.color),u.style.transitionDuration=`${c}ms`,this._containerElement.appendChild(u),function Ij(n){window.getComputedStyle(n).getPropertyValue("opacity")}(u),u.style.transform="scale(1)";const d=new Sj(this,u,i);return d.state=0,this._activeRipples.add(d),i.persistent||(this._mostRecentTransientRipple=d),this._runTimeoutOutsideZone(()=>{const h=d===this._mostRecentTransientRipple;d.state=1,!i.persistent&&(!h||!this._isPointerDown)&&d.fadeOut()},c),d}fadeOutRipple(e){const t=this._activeRipples.delete(e);if(e===this._mostRecentTransientRipple&&(this._mostRecentTransientRipple=null),this._activeRipples.size||(this._containerRect=null),!t)return;const i=e.element,r=Object.assign(Object.assign({},Cw),e.config.animation);i.style.transitionDuration=`${r.exitDuration}ms`,i.style.opacity="0",e.state=2,this._runTimeoutOutsideZone(()=>{e.state=3,i.remove()},r.exitDuration)}fadeOutAll(){this._activeRipples.forEach(e=>e.fadeOut())}fadeOutAllNonPersistent(){this._activeRipples.forEach(e=>{e.config.persistent||e.fadeOut()})}setupTriggerEvents(e){const t=co(e);!t||t===this._triggerElement||(this._removeTriggerEvents(),this._triggerElement=t,this._registerEvents(Ew))}handleEvent(e){"mousedown"===e.type?this._onMousedown(e):"touchstart"===e.type?this._onTouchStart(e):this._onPointerUp(),this._pointerUpEventsRegistered||(this._registerEvents(Dw),this._pointerUpEventsRegistered=!0)}_onMousedown(e){const t=fD(e),i=this._lastTouchStartEvent&&Date.now()<this._lastTouchStartEvent+800;!this._target.rippleDisabled&&!t&&!i&&(this._isPointerDown=!0,this.fadeInRipple(e.clientX,e.clientY,this._target.rippleConfig))}_onTouchStart(e){if(!this._target.rippleDisabled&&!pD(e)){this._lastTouchStartEvent=Date.now(),this._isPointerDown=!0;const t=e.changedTouches;for(let i=0;i<t.length;i++)this.fadeInRipple(t[i].clientX,t[i].clientY,this._target.rippleConfig)}}_onPointerUp(){!this._isPointerDown||(this._isPointerDown=!1,this._activeRipples.forEach(e=>{!e.config.persistent&&(1===e.state||e.config.terminateOnPointerUp&&0===e.state)&&e.fadeOut()}))}_runTimeoutOutsideZone(e,t=0){this._ngZone.runOutsideAngular(()=>setTimeout(e,t))}_registerEvents(e){this._ngZone.runOutsideAngular(()=>{e.forEach(t=>{this._triggerElement.addEventListener(t,this,pp)})})}_removeTriggerEvents(){this._triggerElement&&(Ew.forEach(e=>{this._triggerElement.removeEventListener(e,this,pp)}),this._pointerUpEventsRegistered&&Dw.forEach(e=>{this._triggerElement.removeEventListener(e,this,pp)}))}}const xj=new T("mat-ripple-global-options");let ww=(()=>{class n{constructor(t,i,r,o,s){this._elementRef=t,this._animationMode=s,this.radius=0,this._disabled=!1,this._isInitialized=!1,this._globalOptions=o||{},this._rippleRenderer=new Aj(this,i,t,r)}get disabled(){return this._disabled}set disabled(t){t&&this.fadeOutAllNonPersistent(),this._disabled=t,this._setupTriggerEventsIfEnabled()}get trigger(){return this._trigger||this._elementRef.nativeElement}set trigger(t){this._trigger=t,this._setupTriggerEventsIfEnabled()}ngOnInit(){this._isInitialized=!0,this._setupTriggerEventsIfEnabled()}ngOnDestroy(){this._rippleRenderer._removeTriggerEvents()}fadeOutAll(){this._rippleRenderer.fadeOutAll()}fadeOutAllNonPersistent(){this._rippleRenderer.fadeOutAllNonPersistent()}get rippleConfig(){return{centered:this.centered,radius:this.radius,color:this.color,animation:Object.assign(Object.assign(Object.assign({},this._globalOptions.animation),"NoopAnimations"===this._animationMode?{enterDuration:0,exitDuration:0}:{}),this.animation),terminateOnPointerUp:this._globalOptions.terminateOnPointerUp}}get rippleDisabled(){return this.disabled||!!this._globalOptions.disabled}_setupTriggerEventsIfEnabled(){!this.disabled&&this._isInitialized&&this._rippleRenderer.setupTriggerEvents(this.trigger)}launch(t,i=0,r){return"number"==typeof t?this._rippleRenderer.fadeInRipple(t,i,Object.assign(Object.assign({},this.rippleConfig),r)):this._rippleRenderer.fadeInRipple(0,0,Object.assign(Object.assign({},this.rippleConfig),t))}}return n.\u0275fac=function(t){return new(t||n)(v(ye),v(oe),v(un),v(xj,8),v(yc,8))},n.\u0275dir=k({type:n,selectors:[["","mat-ripple",""],["","matRipple",""]],hostAttrs:[1,"mat-ripple"],hostVars:2,hostBindings:function(t,i){2&t&&zn("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})(),Fj=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=pe({type:n}),n.\u0275inj=ce({imports:[[dn,ql],dn]}),n})(),Pj=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275dir=k({type:n,selectors:[["mat-label"]]}),n})(),mp=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=pe({type:n}),n.\u0275inj=ce({imports:[[As,dn,iD],dn]}),n})();function Sw(n,e,t,i){return Xn(t)&&(i=t,t=void 0),i?Sw(n,e,t).pipe(Ue(r=>ir(r)?i(...r):i(r))):new me(r=>{Mw(n,e,function o(s){r.next(arguments.length>1?Array.prototype.slice.call(arguments):s)},r,t)})}function Mw(n,e,t,i,r){let o;if(function Bj(n){return n&&"function"==typeof n.addEventListener&&"function"==typeof n.removeEventListener}(n)){const s=n;n.addEventListener(e,t,r),o=()=>s.removeEventListener(e,t,r)}else if(function Vj(n){return n&&"function"==typeof n.on&&"function"==typeof n.off}(n)){const s=n;n.on(e,t),o=()=>s.off(e,t)}else if(function Lj(n){return n&&"function"==typeof n.addListener&&"function"==typeof n.removeListener}(n)){const s=n;n.addListener(e,t),o=()=>s.removeListener(e,t)}else{if(!n||!n.length)throw new TypeError("Invalid event target");for(let s=0,a=n.length;s<a;s++)Mw(n[s],e,t,i,r)}i.add(o)}new class Hj extends cn{flush(e){this.active=!0,this.scheduled=void 0;const{actions:t}=this;let i,r=-1,o=t.length;e=e||t.shift();do{if(i=e.execute(e.state,e.delay))break}while(++r<o&&(e=t.shift()));if(this.active=!1,i){for(;++r<o&&(e=t.shift());)e.unsubscribe();throw i}}}(class jj extends Nl{constructor(e,t){super(e,t),this.scheduler=e,this.work=t}requestAsyncId(e,t,i=0){return null!==i&&i>0?super.requestAsyncId(e,t,i):(e.actions.push(this),e.scheduled||(e.scheduled=requestAnimationFrame(()=>e.flush(null))))}recycleAsyncId(e,t,i=0){if(null!==i&&i>0||null===i&&this.delay>0)return super.recycleAsyncId(e,t,i);0===e.actions.length&&(cancelAnimationFrame(t),e.scheduled=void 0)}});let zj=1;const $j=Promise.resolve(),vc={};function Aw(n){return n in vc&&(delete vc[n],!0)}const Iw={setImmediate(n){const e=zj++;return vc[e]=!0,$j.then(()=>Aw(e)&&n()),e},clearImmediate(n){Aw(n)}};new class Wj extends cn{flush(e){this.active=!0,this.scheduled=void 0;const{actions:t}=this;let i,r=-1,o=t.length;e=e||t.shift();do{if(i=e.execute(e.state,e.delay))break}while(++r<o&&(e=t.shift()));if(this.active=!1,i){for(;++r<o&&(e=t.shift());)e.unsubscribe();throw i}}}(class Gj extends Nl{constructor(e,t){super(e,t),this.scheduler=e,this.work=t}requestAsyncId(e,t,i=0){return null!==i&&i>0?super.requestAsyncId(e,t,i):(e.actions.push(this),e.scheduled||(e.scheduled=Iw.setImmediate(e.flush.bind(e,null))))}recycleAsyncId(e,t,i=0){if(null!==i&&i>0||null===i&&this.delay>0)return super.recycleAsyncId(e,t,i);0===e.actions.length&&(Iw.clearImmediate(t),e.scheduled=void 0)}});class Kj{constructor(e){this.durationSelector=e}call(e,t){return t.subscribe(new Yj(e,this.durationSelector))}}class Yj extends Co{constructor(e,t){super(e),this.durationSelector=t,this.hasValue=!1}_next(e){if(this.value=e,this.hasValue=!0,!this.throttled){let t;try{const{durationSelector:r}=this;t=r(e)}catch(r){return this.destination.error(r)}const i=Eo(t,new bo(this));!i||i.closed?this.clearThrottle():this.add(this.throttled=i)}}clearThrottle(){const{value:e,hasValue:t,throttled:i}=this;i&&(this.remove(i),this.throttled=void 0,i.unsubscribe()),t&&(this.value=void 0,this.hasValue=!1,this.destination.next(e))}notifyNext(){this.clearThrottle()}notifyComplete(){this.clearThrottle()}}function Tw(n){return!ir(n)&&n-parseFloat(n)+1>=0}function Xj(n){const{index:e,period:t,subscriber:i}=n;if(i.next(e),!i.closed){if(-1===t)return i.complete();n.index=e+1,this.schedule(n,t)}}function xw(n,e=lf){return function Qj(n){return function(t){return t.lift(new Kj(n))}}(()=>function Zj(n=0,e,t){let i=-1;return Tw(e)?i=Number(e)<1?1:Number(e):rr(e)&&(t=e),rr(t)||(t=lf),new me(r=>{const o=Tw(n)?n:+n-t.now();return t.schedule(Xj,o,{index:0,period:i,subscriber:r})})}(n,e))}function Fw(n,e){return function(i){return i.lift(new Jj(n,e))}}class Jj{constructor(e,t){this.predicate=e,this.thisArg=t}call(e,t){return t.subscribe(new eH(e,this.predicate,this.thisArg))}}class eH extends ve{constructor(e,t,i){super(e),this.predicate=t,this.thisArg=i,this.count=0}_next(e){let t;try{t=this.predicate.call(this.thisArg,e,this.count++)}catch(i){return void this.destination.error(i)}t&&this.destination.next(e)}}let Rw=(()=>{class n{constructor(t,i,r){this._ngZone=t,this._platform=i,this._scrolled=new Pe,this._globalSubscription=null,this._scrolledCount=0,this.scrollContainers=new Map,this._document=r}register(t){this.scrollContainers.has(t)||this.scrollContainers.set(t,t.elementScrolled().subscribe(()=>this._scrolled.next(t)))}deregister(t){const i=this.scrollContainers.get(t);i&&(i.unsubscribe(),this.scrollContainers.delete(t))}scrolled(t=20){return this._platform.isBrowser?new me(i=>{this._globalSubscription||this._addGlobalListener();const r=t>0?this._scrolled.pipe(xw(t)).subscribe(i):this._scrolled.subscribe(i);return this._scrolledCount++,()=>{r.unsubscribe(),this._scrolledCount--,this._scrolledCount||this._removeGlobalListener()}}):An()}ngOnDestroy(){this._removeGlobalListener(),this.scrollContainers.forEach((t,i)=>this.deregister(i)),this._scrolled.complete()}ancestorScrolled(t,i){const r=this.getAncestorScrollContainers(t);return this.scrolled(i).pipe(Fw(o=>!o||r.indexOf(o)>-1))}getAncestorScrollContainers(t){const i=[];return this.scrollContainers.forEach((r,o)=>{this._scrollableContainsElement(o,t)&&i.push(o)}),i}_getWindow(){return this._document.defaultView||window}_scrollableContainsElement(t,i){let r=co(i),o=t.getElementRef().nativeElement;do{if(r==o)return!0}while(r=r.parentElement);return!1}_addGlobalListener(){this._globalSubscription=this._ngZone.runOutsideAngular(()=>Sw(this._getWindow().document,"scroll").subscribe(()=>this._scrolled.next()))}_removeGlobalListener(){this._globalSubscription&&(this._globalSubscription.unsubscribe(),this._globalSubscription=null)}}return n.\u0275fac=function(t){return new(t||n)(b(oe),b(un),b(q,8))},n.\u0275prov=I({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),Ow=(()=>{class n{constructor(t,i,r){this._platform=t,this._change=new Pe,this._changeListener=o=>{this._change.next(o)},this._document=r,i.runOutsideAngular(()=>{if(t.isBrowser){const o=this._getWindow();o.addEventListener("resize",this._changeListener),o.addEventListener("orientationchange",this._changeListener)}this.change().subscribe(()=>this._viewportSize=null)})}ngOnDestroy(){if(this._platform.isBrowser){const t=this._getWindow();t.removeEventListener("resize",this._changeListener),t.removeEventListener("orientationchange",this._changeListener)}this._change.complete()}getViewportSize(){this._viewportSize||this._updateViewportSize();const t={width:this._viewportSize.width,height:this._viewportSize.height};return this._platform.isBrowser||(this._viewportSize=null),t}getViewportRect(){const t=this.getViewportScrollPosition(),{width:i,height:r}=this.getViewportSize();return{top:t.top,left:t.left,bottom:t.top+r,right:t.left+i,height:r,width:i}}getViewportScrollPosition(){if(!this._platform.isBrowser)return{top:0,left:0};const t=this._document,i=this._getWindow(),r=t.documentElement,o=r.getBoundingClientRect();return{top:-o.top||t.body.scrollTop||i.scrollY||r.scrollTop||0,left:-o.left||t.body.scrollLeft||i.scrollX||r.scrollLeft||0}}change(t=20){return t>0?this._change.pipe(xw(t)):this._change}_getWindow(){return this._document.defaultView||window}_updateViewportSize(){const t=this._getWindow();this._viewportSize=this._platform.isBrowser?{width:t.innerWidth,height:t.innerHeight}:{width:0,height:0}}}return n.\u0275fac=function(t){return new(t||n)(b(un),b(oe),b(q,8))},n.\u0275prov=I({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),gp=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=pe({type:n}),n.\u0275inj=ce({}),n})(),kw=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=pe({type:n}),n.\u0275inj=ce({imports:[[Ls,ql,gp],Ls,gp]}),n})();class _p{attach(e){return this._attachedHost=e,e.attach(this)}detach(){let e=this._attachedHost;null!=e&&(this._attachedHost=null,e.detach())}get isAttached(){return null!=this._attachedHost}setAttachedHost(e){this._attachedHost=e}}class Nw extends _p{constructor(e,t,i,r){super(),this.component=e,this.viewContainerRef=t,this.injector=i,this.componentFactoryResolver=r}}class iH extends _p{constructor(e,t,i){super(),this.templateRef=e,this.viewContainerRef=t,this.context=i}get origin(){return this.templateRef.elementRef}attach(e,t=this.context){return this.context=t,super.attach(e)}detach(){return this.context=void 0,super.detach()}}class rH extends _p{constructor(e){super(),this.element=e instanceof ye?e.nativeElement:e}}class sH extends class oH{constructor(){this._isDisposed=!1,this.attachDomPortal=null}hasAttached(){return!!this._attachedPortal}attach(e){return e instanceof Nw?(this._attachedPortal=e,this.attachComponentPortal(e)):e instanceof iH?(this._attachedPortal=e,this.attachTemplatePortal(e)):this.attachDomPortal&&e instanceof rH?(this._attachedPortal=e,this.attachDomPortal(e)):void 0}detach(){this._attachedPortal&&(this._attachedPortal.setAttachedHost(null),this._attachedPortal=null),this._invokeDisposeFn()}dispose(){this.hasAttached()&&this.detach(),this._invokeDisposeFn(),this._isDisposed=!0}setDisposeFn(e){this._disposeFn=e}_invokeDisposeFn(){this._disposeFn&&(this._disposeFn(),this._disposeFn=null)}}{constructor(e,t,i,r,o){super(),this.outletElement=e,this._componentFactoryResolver=t,this._appRef=i,this._defaultInjector=r,this.attachDomPortal=s=>{const a=s.element,l=this._document.createComment("dom-portal");a.parentNode.insertBefore(l,a),this.outletElement.appendChild(a),this._attachedPortal=s,super.setDisposeFn(()=>{l.parentNode&&l.parentNode.replaceChild(a,l)})},this._document=o}attachComponentPortal(e){const i=(e.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(e.component);let r;return e.viewContainerRef?(r=e.viewContainerRef.createComponent(i,e.viewContainerRef.length,e.injector||e.viewContainerRef.injector),this.setDisposeFn(()=>r.destroy())):(r=i.create(e.injector||this._defaultInjector),this._appRef.attachView(r.hostView),this.setDisposeFn(()=>{this._appRef.detachView(r.hostView),r.destroy()})),this.outletElement.appendChild(this._getComponentRootNode(r)),this._attachedPortal=e,r}attachTemplatePortal(e){let t=e.viewContainerRef,i=t.createEmbeddedView(e.templateRef,e.context);return i.rootNodes.forEach(r=>this.outletElement.appendChild(r)),i.detectChanges(),this.setDisposeFn(()=>{let r=t.indexOf(i);-1!==r&&t.remove(r)}),this._attachedPortal=e,i}dispose(){super.dispose(),this.outletElement.remove()}_getComponentRootNode(e){return e.hostView.rootNodes[0]}}let aH=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=pe({type:n}),n.\u0275inj=ce({}),n})();const lH=(()=>{function n(){return Error.call(this),this.message="argument out of range",this.name="ArgumentOutOfRangeError",this}return n.prototype=Object.create(Error.prototype),n})(),cH=new me(n=>n.complete());function Pw(n){return n?function uH(n){return new me(e=>n.schedule(()=>e.complete()))}(n):cH}function bc(n){return e=>0===n?Pw():e.lift(new dH(n))}class dH{constructor(e){if(this.total=e,this.total<0)throw new lH}call(e,t){return t.subscribe(new hH(e,this.total))}}class hH extends ve{constructor(e,t){super(e),this.total=t,this.count=0}_next(e){const t=this.total,i=++this.count;i<=t&&(this.destination.next(e),i===t&&(this.destination.complete(),this.unsubscribe()))}}const Lw=pV();class fH{constructor(e,t){this._viewportRuler=e,this._previousHTMLStyles={top:"",left:""},this._isEnabled=!1,this._document=t}attach(){}enable(){if(this._canBeEnabled()){const e=this._document.documentElement;this._previousScrollPosition=this._viewportRuler.getViewportScrollPosition(),this._previousHTMLStyles.left=e.style.left||"",this._previousHTMLStyles.top=e.style.top||"",e.style.left=Fe(-this._previousScrollPosition.left),e.style.top=Fe(-this._previousScrollPosition.top),e.classList.add("cdk-global-scrollblock"),this._isEnabled=!0}}disable(){if(this._isEnabled){const e=this._document.documentElement,i=e.style,r=this._document.body.style,o=i.scrollBehavior||"",s=r.scrollBehavior||"";this._isEnabled=!1,i.left=this._previousHTMLStyles.left,i.top=this._previousHTMLStyles.top,e.classList.remove("cdk-global-scrollblock"),Lw&&(i.scrollBehavior=r.scrollBehavior="auto"),window.scroll(this._previousScrollPosition.left,this._previousScrollPosition.top),Lw&&(i.scrollBehavior=o,r.scrollBehavior=s)}}_canBeEnabled(){if(this._document.documentElement.classList.contains("cdk-global-scrollblock")||this._isEnabled)return!1;const t=this._document.body,i=this._viewportRuler.getViewportSize();return t.scrollHeight>i.height||t.scrollWidth>i.width}}class pH{constructor(e,t,i,r){this._scrollDispatcher=e,this._ngZone=t,this._viewportRuler=i,this._config=r,this._scrollSubscription=null,this._detach=()=>{this.disable(),this._overlayRef.hasAttached()&&this._ngZone.run(()=>this._overlayRef.detach())}}attach(e){this._overlayRef=e}enable(){if(this._scrollSubscription)return;const e=this._scrollDispatcher.scrolled(0);this._config&&this._config.threshold&&this._config.threshold>1?(this._initialScrollPosition=this._viewportRuler.getViewportScrollPosition().top,this._scrollSubscription=e.subscribe(()=>{const t=this._viewportRuler.getViewportScrollPosition().top;Math.abs(t-this._initialScrollPosition)>this._config.threshold?this._detach():this._overlayRef.updatePosition()})):this._scrollSubscription=e.subscribe(this._detach)}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}}class Vw{enable(){}disable(){}attach(){}}function yp(n,e){return e.some(t=>n.bottom<t.top||n.top>t.bottom||n.right<t.left||n.left>t.right)}function Bw(n,e){return e.some(t=>n.top<t.top||n.bottom>t.bottom||n.left<t.left||n.right>t.right)}class mH{constructor(e,t,i,r){this._scrollDispatcher=e,this._viewportRuler=t,this._ngZone=i,this._config=r,this._scrollSubscription=null}attach(e){this._overlayRef=e}enable(){this._scrollSubscription||(this._scrollSubscription=this._scrollDispatcher.scrolled(this._config?this._config.scrollThrottle:0).subscribe(()=>{if(this._overlayRef.updatePosition(),this._config&&this._config.autoClose){const t=this._overlayRef.overlayElement.getBoundingClientRect(),{width:i,height:r}=this._viewportRuler.getViewportSize();yp(t,[{width:i,height:r,bottom:r,right:i,top:0,left:0}])&&(this.disable(),this._ngZone.run(()=>this._overlayRef.detach()))}}))}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}}let gH=(()=>{class n{constructor(t,i,r,o){this._scrollDispatcher=t,this._viewportRuler=i,this._ngZone=r,this.noop=()=>new Vw,this.close=s=>new pH(this._scrollDispatcher,this._ngZone,this._viewportRuler,s),this.block=()=>new fH(this._viewportRuler,this._document),this.reposition=s=>new mH(this._scrollDispatcher,this._viewportRuler,this._ngZone,s),this._document=o}}return n.\u0275fac=function(t){return new(t||n)(b(Rw),b(Ow),b(oe),b(q))},n.\u0275prov=I({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();class _H{constructor(e){if(this.scrollStrategy=new Vw,this.panelClass="",this.hasBackdrop=!1,this.backdropClass="cdk-overlay-dark-backdrop",this.disposeOnNavigation=!1,e){const t=Object.keys(e);for(const i of t)void 0!==e[i]&&(this[i]=e[i])}}}class yH{constructor(e,t){this.connectionPair=e,this.scrollableViewProperties=t}}class vH{constructor(e,t,i,r,o,s,a,l,c){this._portalOutlet=e,this._host=t,this._pane=i,this._config=r,this._ngZone=o,this._keyboardDispatcher=s,this._document=a,this._location=l,this._outsideClickDispatcher=c,this._backdropElement=null,this._backdropClick=new Pe,this._attachments=new Pe,this._detachments=new Pe,this._locationChanges=se.EMPTY,this._backdropClickHandler=u=>this._backdropClick.next(u),this._keydownEvents=new Pe,this._outsidePointerEvents=new Pe,r.scrollStrategy&&(this._scrollStrategy=r.scrollStrategy,this._scrollStrategy.attach(this)),this._positionStrategy=r.positionStrategy}get overlayElement(){return this._pane}get backdropElement(){return this._backdropElement}get hostElement(){return this._host}attach(e){let t=this._portalOutlet.attach(e);return!this._host.parentElement&&this._previousHostParent&&this._previousHostParent.appendChild(this._host),this._positionStrategy&&this._positionStrategy.attach(this),this._updateStackingOrder(),this._updateElementSize(),this._updateElementDirection(),this._scrollStrategy&&this._scrollStrategy.enable(),this._ngZone.onStable.pipe(bc(1)).subscribe(()=>{this.hasAttached()&&this.updatePosition()}),this._togglePointerEvents(!0),this._config.hasBackdrop&&this._attachBackdrop(),this._config.panelClass&&this._toggleClasses(this._pane,this._config.panelClass,!0),this._attachments.next(),this._keyboardDispatcher.add(this),this._config.disposeOnNavigation&&(this._locationChanges=this._location.subscribe(()=>this.dispose())),this._outsideClickDispatcher.add(this),t}detach(){if(!this.hasAttached())return;this.detachBackdrop(),this._togglePointerEvents(!1),this._positionStrategy&&this._positionStrategy.detach&&this._positionStrategy.detach(),this._scrollStrategy&&this._scrollStrategy.disable();const e=this._portalOutlet.detach();return this._detachments.next(),this._keyboardDispatcher.remove(this),this._detachContentWhenStable(),this._locationChanges.unsubscribe(),this._outsideClickDispatcher.remove(this),e}dispose(){var e;const t=this.hasAttached();this._positionStrategy&&this._positionStrategy.dispose(),this._disposeScrollStrategy(),this._disposeBackdrop(this._backdropElement),this._locationChanges.unsubscribe(),this._keyboardDispatcher.remove(this),this._portalOutlet.dispose(),this._attachments.complete(),this._backdropClick.complete(),this._keydownEvents.complete(),this._outsidePointerEvents.complete(),this._outsideClickDispatcher.remove(this),null===(e=this._host)||void 0===e||e.remove(),this._previousHostParent=this._pane=this._host=null,t&&this._detachments.next(),this._detachments.complete()}hasAttached(){return this._portalOutlet.hasAttached()}backdropClick(){return this._backdropClick}attachments(){return this._attachments}detachments(){return this._detachments}keydownEvents(){return this._keydownEvents}outsidePointerEvents(){return this._outsidePointerEvents}getConfig(){return this._config}updatePosition(){this._positionStrategy&&this._positionStrategy.apply()}updatePositionStrategy(e){e!==this._positionStrategy&&(this._positionStrategy&&this._positionStrategy.dispose(),this._positionStrategy=e,this.hasAttached()&&(e.attach(this),this.updatePosition()))}updateSize(e){this._config=Object.assign(Object.assign({},this._config),e),this._updateElementSize()}setDirection(e){this._config=Object.assign(Object.assign({},this._config),{direction:e}),this._updateElementDirection()}addPanelClass(e){this._pane&&this._toggleClasses(this._pane,e,!0)}removePanelClass(e){this._pane&&this._toggleClasses(this._pane,e,!1)}getDirection(){const e=this._config.direction;return e?"string"==typeof e?e:e.value:"ltr"}updateScrollStrategy(e){e!==this._scrollStrategy&&(this._disposeScrollStrategy(),this._scrollStrategy=e,this.hasAttached()&&(e.attach(this),e.enable()))}_updateElementDirection(){this._host.setAttribute("dir",this.getDirection())}_updateElementSize(){if(!this._pane)return;const e=this._pane.style;e.width=Fe(this._config.width),e.height=Fe(this._config.height),e.minWidth=Fe(this._config.minWidth),e.minHeight=Fe(this._config.minHeight),e.maxWidth=Fe(this._config.maxWidth),e.maxHeight=Fe(this._config.maxHeight)}_togglePointerEvents(e){this._pane.style.pointerEvents=e?"":"none"}_attachBackdrop(){const e="cdk-overlay-backdrop-showing";this._backdropElement=this._document.createElement("div"),this._backdropElement.classList.add("cdk-overlay-backdrop"),this._config.backdropClass&&this._toggleClasses(this._backdropElement,this._config.backdropClass,!0),this._host.parentElement.insertBefore(this._backdropElement,this._host),this._backdropElement.addEventListener("click",this._backdropClickHandler),"undefined"!=typeof requestAnimationFrame?this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>{this._backdropElement&&this._backdropElement.classList.add(e)})}):this._backdropElement.classList.add(e)}_updateStackingOrder(){this._host.nextSibling&&this._host.parentNode.appendChild(this._host)}detachBackdrop(){const e=this._backdropElement;if(!e)return;let t;const i=()=>{e&&(e.removeEventListener("click",this._backdropClickHandler),e.removeEventListener("transitionend",i),this._disposeBackdrop(e)),this._config.backdropClass&&this._toggleClasses(e,this._config.backdropClass,!1),clearTimeout(t)};e.classList.remove("cdk-overlay-backdrop-showing"),this._ngZone.runOutsideAngular(()=>{e.addEventListener("transitionend",i)}),e.style.pointerEvents="none",t=this._ngZone.runOutsideAngular(()=>setTimeout(i,500))}_toggleClasses(e,t,i){const r=Yl(t||[]).filter(o=>!!o);r.length&&(i?e.classList.add(...r):e.classList.remove(...r))}_detachContentWhenStable(){this._ngZone.runOutsideAngular(()=>{const e=this._ngZone.onStable.pipe(In(Oc(this._attachments,this._detachments))).subscribe(()=>{(!this._pane||!this._host||0===this._pane.children.length)&&(this._pane&&this._config.panelClass&&this._toggleClasses(this._pane,this._config.panelClass,!1),this._host&&this._host.parentElement&&(this._previousHostParent=this._host.parentElement,this._host.remove()),e.unsubscribe())})})}_disposeScrollStrategy(){const e=this._scrollStrategy;e&&(e.disable(),e.detach&&e.detach())}_disposeBackdrop(e){e&&(e.remove(),this._backdropElement===e&&(this._backdropElement=null))}}let jw=(()=>{class n{constructor(t,i){this._platform=i,this._document=t}ngOnDestroy(){var t;null===(t=this._containerElement)||void 0===t||t.remove()}getContainerElement(){return this._containerElement||this._createContainer(),this._containerElement}_createContainer(){const t="cdk-overlay-container";if(this._platform.isBrowser||Ff()){const r=this._document.querySelectorAll(`.${t}[platform="server"], .${t}[platform="test"]`);for(let o=0;o<r.length;o++)r[o].remove()}const i=this._document.createElement("div");i.classList.add(t),Ff()?i.setAttribute("platform","test"):this._platform.isBrowser||i.setAttribute("platform","server"),this._document.body.appendChild(i),this._containerElement=i}}return n.\u0275fac=function(t){return new(t||n)(b(q),b(un))},n.\u0275prov=I({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const Hw="cdk-overlay-connected-position-bounding-box",bH=/([A-Za-z%]+)$/;class CH{constructor(e,t,i,r,o){this._viewportRuler=t,this._document=i,this._platform=r,this._overlayContainer=o,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 Pe,this._resizeSubscription=se.EMPTY,this._offsetX=0,this._offsetY=0,this._appliedPanelClasses=[],this.positionChanges=this._positionChanges,this.setOrigin(e)}get positions(){return this._preferredPositions}attach(e){this._validatePositions(),e.hostElement.classList.add(Hw),this._overlayRef=e,this._boundingBox=e.hostElement,this._pane=e.overlayElement,this._isDisposed=!1,this._isInitialRender=!0,this._lastPosition=null,this._resizeSubscription.unsubscribe(),this._resizeSubscription=this._viewportRuler.change().subscribe(()=>{this._isInitialRender=!0,this.apply()})}apply(){if(this._isDisposed||!this._platform.isBrowser)return;if(!this._isInitialRender&&this._positionLocked&&this._lastPosition)return void this.reapplyLastPosition();this._clearPanelClasses(),this._resetOverlayElementStyles(),this._resetBoundingBoxStyles(),this._viewportRect=this._getNarrowedViewportRect(),this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect();const e=this._originRect,t=this._overlayRect,i=this._viewportRect,r=[];let o;for(let s of this._preferredPositions){let a=this._getOriginPoint(e,s),l=this._getOverlayPoint(a,t,s),c=this._getOverlayFit(l,t,i,s);if(c.isCompletelyWithinViewport)return this._isPushed=!1,void this._applyPosition(s,a);this._canFitWithFlexibleDimensions(c,l,i)?r.push({position:s,origin:a,overlayRect:t,boundingBoxRect:this._calculateBoundingBoxRect(a,s)}):(!o||o.overlayFit.visibleArea<c.visibleArea)&&(o={overlayFit:c,overlayPoint:l,originPoint:a,position:s,overlayRect:t})}if(r.length){let s=null,a=-1;for(const l of r){const c=l.boundingBoxRect.width*l.boundingBoxRect.height*(l.position.weight||1);c>a&&(a=c,s=l)}return this._isPushed=!1,void this._applyPosition(s.position,s.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&&er(this._boundingBox.style,{top:"",left:"",right:"",bottom:"",height:"",width:"",alignItems:"",justifyContent:""}),this._pane&&this._resetOverlayElementStyles(),this._overlayRef&&this._overlayRef.hostElement.classList.remove(Hw),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();const e=this._lastPosition||this._preferredPositions[0],t=this._getOriginPoint(this._originRect,e);this._applyPosition(e,t)}}withScrollableContainers(e){return this._scrollables=e,this}withPositions(e){return this._preferredPositions=e,-1===e.indexOf(this._lastPosition)&&(this._lastPosition=null),this._validatePositions(),this}withViewportMargin(e){return this._viewportMargin=e,this}withFlexibleDimensions(e=!0){return this._hasFlexibleDimensions=e,this}withGrowAfterOpen(e=!0){return this._growAfterOpen=e,this}withPush(e=!0){return this._canPush=e,this}withLockedPosition(e=!0){return this._positionLocked=e,this}setOrigin(e){return this._origin=e,this}withDefaultOffsetX(e){return this._offsetX=e,this}withDefaultOffsetY(e){return this._offsetY=e,this}withTransformOriginOn(e){return this._transformOriginSelector=e,this}_getOriginPoint(e,t){let i,r;if("center"==t.originX)i=e.left+e.width/2;else{const o=this._isRtl()?e.right:e.left,s=this._isRtl()?e.left:e.right;i="start"==t.originX?o:s}return r="center"==t.originY?e.top+e.height/2:"top"==t.originY?e.top:e.bottom,{x:i,y:r}}_getOverlayPoint(e,t,i){let r,o;return r="center"==i.overlayX?-t.width/2:"start"===i.overlayX?this._isRtl()?-t.width:0:this._isRtl()?0:-t.width,o="center"==i.overlayY?-t.height/2:"top"==i.overlayY?0:-t.height,{x:e.x+r,y:e.y+o}}_getOverlayFit(e,t,i,r){const o=zw(t);let{x:s,y:a}=e,l=this._getOffset(r,"x"),c=this._getOffset(r,"y");l&&(s+=l),c&&(a+=c);let h=0-a,f=a+o.height-i.height,p=this._subtractOverflows(o.width,0-s,s+o.width-i.width),g=this._subtractOverflows(o.height,h,f),m=p*g;return{visibleArea:m,isCompletelyWithinViewport:o.width*o.height===m,fitsInViewportVertically:g===o.height,fitsInViewportHorizontally:p==o.width}}_canFitWithFlexibleDimensions(e,t,i){if(this._hasFlexibleDimensions){const r=i.bottom-t.y,o=i.right-t.x,s=Uw(this._overlayRef.getConfig().minHeight),a=Uw(this._overlayRef.getConfig().minWidth),c=e.fitsInViewportHorizontally||null!=a&&a<=o;return(e.fitsInViewportVertically||null!=s&&s<=r)&&c}return!1}_pushOverlayOnScreen(e,t,i){if(this._previousPushAmount&&this._positionLocked)return{x:e.x+this._previousPushAmount.x,y:e.y+this._previousPushAmount.y};const r=zw(t),o=this._viewportRect,s=Math.max(e.x+r.width-o.width,0),a=Math.max(e.y+r.height-o.height,0),l=Math.max(o.top-i.top-e.y,0),c=Math.max(o.left-i.left-e.x,0);let u=0,d=0;return u=r.width<=o.width?c||-s:e.x<this._viewportMargin?o.left-i.left-e.x:0,d=r.height<=o.height?l||-a:e.y<this._viewportMargin?o.top-i.top-e.y:0,this._previousPushAmount={x:u,y:d},{x:e.x+u,y:e.y+d}}_applyPosition(e,t){if(this._setTransformOrigin(e),this._setOverlayElementStyles(t,e),this._setBoundingBoxStyles(t,e),e.panelClass&&this._addPanelClasses(e.panelClass),this._lastPosition=e,this._positionChanges.observers.length){const i=this._getScrollVisibility(),r=new yH(e,i);this._positionChanges.next(r)}this._isInitialRender=!1}_setTransformOrigin(e){if(!this._transformOriginSelector)return;const t=this._boundingBox.querySelectorAll(this._transformOriginSelector);let i,r=e.overlayY;i="center"===e.overlayX?"center":this._isRtl()?"start"===e.overlayX?"right":"left":"start"===e.overlayX?"left":"right";for(let o=0;o<t.length;o++)t[o].style.transformOrigin=`${i} ${r}`}_calculateBoundingBoxRect(e,t){const i=this._viewportRect,r=this._isRtl();let o,s,a,u,d,h;if("top"===t.overlayY)s=e.y,o=i.height-s+this._viewportMargin;else if("bottom"===t.overlayY)a=i.height-e.y+2*this._viewportMargin,o=i.height-a+this._viewportMargin;else{const f=Math.min(i.bottom-e.y+i.top,e.y),p=this._lastBoundingBoxSize.height;o=2*f,s=e.y-f,o>p&&!this._isInitialRender&&!this._growAfterOpen&&(s=e.y-p/2)}if("end"===t.overlayX&&!r||"start"===t.overlayX&&r)h=i.width-e.x+this._viewportMargin,u=e.x-this._viewportMargin;else if("start"===t.overlayX&&!r||"end"===t.overlayX&&r)d=e.x,u=i.right-e.x;else{const f=Math.min(i.right-e.x+i.left,e.x),p=this._lastBoundingBoxSize.width;u=2*f,d=e.x-f,u>p&&!this._isInitialRender&&!this._growAfterOpen&&(d=e.x-p/2)}return{top:s,left:d,bottom:a,right:h,width:u,height:o}}_setBoundingBoxStyles(e,t){const i=this._calculateBoundingBoxRect(e,t);!this._isInitialRender&&!this._growAfterOpen&&(i.height=Math.min(i.height,this._lastBoundingBoxSize.height),i.width=Math.min(i.width,this._lastBoundingBoxSize.width));const r={};if(this._hasExactPosition())r.top=r.left="0",r.bottom=r.right=r.maxHeight=r.maxWidth="",r.width=r.height="100%";else{const o=this._overlayRef.getConfig().maxHeight,s=this._overlayRef.getConfig().maxWidth;r.height=Fe(i.height),r.top=Fe(i.top),r.bottom=Fe(i.bottom),r.width=Fe(i.width),r.left=Fe(i.left),r.right=Fe(i.right),r.alignItems="center"===t.overlayX?"center":"end"===t.overlayX?"flex-end":"flex-start",r.justifyContent="center"===t.overlayY?"center":"bottom"===t.overlayY?"flex-end":"flex-start",o&&(r.maxHeight=Fe(o)),s&&(r.maxWidth=Fe(s))}this._lastBoundingBoxSize=i,er(this._boundingBox.style,r)}_resetBoundingBoxStyles(){er(this._boundingBox.style,{top:"0",left:"0",right:"0",bottom:"0",height:"",width:"",alignItems:"",justifyContent:""})}_resetOverlayElementStyles(){er(this._pane.style,{top:"",left:"",bottom:"",right:"",position:"",transform:""})}_setOverlayElementStyles(e,t){const i={},r=this._hasExactPosition(),o=this._hasFlexibleDimensions,s=this._overlayRef.getConfig();if(r){const u=this._viewportRuler.getViewportScrollPosition();er(i,this._getExactOverlayY(t,e,u)),er(i,this._getExactOverlayX(t,e,u))}else i.position="static";let a="",l=this._getOffset(t,"x"),c=this._getOffset(t,"y");l&&(a+=`translateX(${l}px) `),c&&(a+=`translateY(${c}px)`),i.transform=a.trim(),s.maxHeight&&(r?i.maxHeight=Fe(s.maxHeight):o&&(i.maxHeight="")),s.maxWidth&&(r?i.maxWidth=Fe(s.maxWidth):o&&(i.maxWidth="")),er(this._pane.style,i)}_getExactOverlayY(e,t,i){let r={top:"",bottom:""},o=this._getOverlayPoint(t,this._overlayRect,e);this._isPushed&&(o=this._pushOverlayOnScreen(o,this._overlayRect,i));let s=this._overlayContainer.getContainerElement().getBoundingClientRect().top;return o.y-=s,"bottom"===e.overlayY?r.bottom=this._document.documentElement.clientHeight-(o.y+this._overlayRect.height)+"px":r.top=Fe(o.y),r}_getExactOverlayX(e,t,i){let s,r={left:"",right:""},o=this._getOverlayPoint(t,this._overlayRect,e);return this._isPushed&&(o=this._pushOverlayOnScreen(o,this._overlayRect,i)),s=this._isRtl()?"end"===e.overlayX?"left":"right":"end"===e.overlayX?"right":"left","right"===s?r.right=this._document.documentElement.clientWidth-(o.x+this._overlayRect.width)+"px":r.left=Fe(o.x),r}_getScrollVisibility(){const e=this._getOriginRect(),t=this._pane.getBoundingClientRect(),i=this._scrollables.map(r=>r.getElementRef().nativeElement.getBoundingClientRect());return{isOriginClipped:Bw(e,i),isOriginOutsideView:yp(e,i),isOverlayClipped:Bw(t,i),isOverlayOutsideView:yp(t,i)}}_subtractOverflows(e,...t){return t.reduce((i,r)=>i-Math.max(r,0),e)}_getNarrowedViewportRect(){const e=this._document.documentElement.clientWidth,t=this._document.documentElement.clientHeight,i=this._viewportRuler.getViewportScrollPosition();return{top:i.top+this._viewportMargin,left:i.left+this._viewportMargin,right:i.left+e-this._viewportMargin,bottom:i.top+t-this._viewportMargin,width:e-2*this._viewportMargin,height:t-2*this._viewportMargin}}_isRtl(){return"rtl"===this._overlayRef.getDirection()}_hasExactPosition(){return!this._hasFlexibleDimensions||this._isPushed}_getOffset(e,t){return"x"===t?null==e.offsetX?this._offsetX:e.offsetX:null==e.offsetY?this._offsetY:e.offsetY}_validatePositions(){}_addPanelClasses(e){this._pane&&Yl(e).forEach(t=>{""!==t&&-1===this._appliedPanelClasses.indexOf(t)&&(this._appliedPanelClasses.push(t),this._pane.classList.add(t))})}_clearPanelClasses(){this._pane&&(this._appliedPanelClasses.forEach(e=>{this._pane.classList.remove(e)}),this._appliedPanelClasses=[])}_getOriginRect(){const e=this._origin;if(e instanceof ye)return e.nativeElement.getBoundingClientRect();if(e instanceof Element)return e.getBoundingClientRect();const t=e.width||0,i=e.height||0;return{top:e.y,bottom:e.y+i,left:e.x,right:e.x+t,height:i,width:t}}}function er(n,e){for(let t in e)e.hasOwnProperty(t)&&(n[t]=e[t]);return n}function Uw(n){if("number"!=typeof n&&null!=n){const[e,t]=n.split(bH);return t&&"px"!==t?null:parseFloat(e)}return n||null}function zw(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 $w="cdk-global-overlay-wrapper";class EH{constructor(){this._cssPosition="static",this._topOffset="",this._bottomOffset="",this._leftOffset="",this._rightOffset="",this._alignItems="",this._justifyContent="",this._width="",this._height=""}attach(e){const t=e.getConfig();this._overlayRef=e,this._width&&!t.width&&e.updateSize({width:this._width}),this._height&&!t.height&&e.updateSize({height:this._height}),e.hostElement.classList.add($w),this._isDisposed=!1}top(e=""){return this._bottomOffset="",this._topOffset=e,this._alignItems="flex-start",this}left(e=""){return this._rightOffset="",this._leftOffset=e,this._justifyContent="flex-start",this}bottom(e=""){return this._topOffset="",this._bottomOffset=e,this._alignItems="flex-end",this}right(e=""){return this._leftOffset="",this._rightOffset=e,this._justifyContent="flex-end",this}width(e=""){return this._overlayRef?this._overlayRef.updateSize({width:e}):this._width=e,this}height(e=""){return this._overlayRef?this._overlayRef.updateSize({height:e}):this._height=e,this}centerHorizontally(e=""){return this.left(e),this._justifyContent="center",this}centerVertically(e=""){return this.top(e),this._alignItems="center",this}apply(){if(!this._overlayRef||!this._overlayRef.hasAttached())return;const e=this._overlayRef.overlayElement.style,t=this._overlayRef.hostElement.style,i=this._overlayRef.getConfig(),{width:r,height:o,maxWidth:s,maxHeight:a}=i,l=!("100%"!==r&&"100vw"!==r||s&&"100%"!==s&&"100vw"!==s),c=!("100%"!==o&&"100vh"!==o||a&&"100%"!==a&&"100vh"!==a);e.position=this._cssPosition,e.marginLeft=l?"0":this._leftOffset,e.marginTop=c?"0":this._topOffset,e.marginBottom=this._bottomOffset,e.marginRight=this._rightOffset,l?t.justifyContent="flex-start":"center"===this._justifyContent?t.justifyContent="center":"rtl"===this._overlayRef.getConfig().direction?"flex-start"===this._justifyContent?t.justifyContent="flex-end":"flex-end"===this._justifyContent&&(t.justifyContent="flex-start"):t.justifyContent=this._justifyContent,t.alignItems=c?"flex-start":this._alignItems}dispose(){if(this._isDisposed||!this._overlayRef)return;const e=this._overlayRef.overlayElement.style,t=this._overlayRef.hostElement,i=t.style;t.classList.remove($w),i.justifyContent=i.alignItems=e.marginTop=e.marginBottom=e.marginLeft=e.marginRight=e.position="",this._overlayRef=null,this._isDisposed=!0}}let DH=(()=>{class n{constructor(t,i,r,o){this._viewportRuler=t,this._document=i,this._platform=r,this._overlayContainer=o}global(){return new EH}flexibleConnectedTo(t){return new CH(t,this._viewportRuler,this._document,this._platform,this._overlayContainer)}}return n.\u0275fac=function(t){return new(t||n)(b(Ow),b(q),b(un),b(jw))},n.\u0275prov=I({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),Gw=(()=>{class n{constructor(t){this._attachedOverlays=[],this._document=t}ngOnDestroy(){this.detach()}add(t){this.remove(t),this._attachedOverlays.push(t)}remove(t){const i=this._attachedOverlays.indexOf(t);i>-1&&this._attachedOverlays.splice(i,1),0===this._attachedOverlays.length&&this.detach()}}return n.\u0275fac=function(t){return new(t||n)(b(q))},n.\u0275prov=I({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),wH=(()=>{class n extends Gw{constructor(t){super(t),this._keydownListener=i=>{const r=this._attachedOverlays;for(let o=r.length-1;o>-1;o--)if(r[o]._keydownEvents.observers.length>0){r[o]._keydownEvents.next(i);break}}}add(t){super.add(t),this._isAttached||(this._document.body.addEventListener("keydown",this._keydownListener),this._isAttached=!0)}detach(){this._isAttached&&(this._document.body.removeEventListener("keydown",this._keydownListener),this._isAttached=!1)}}return n.\u0275fac=function(t){return new(t||n)(b(q))},n.\u0275prov=I({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),SH=(()=>{class n extends Gw{constructor(t,i){super(t),this._platform=i,this._cursorStyleIsSet=!1,this._pointerDownListener=r=>{this._pointerDownEventTarget=Ki(r)},this._clickListener=r=>{const o=Ki(r),s="click"===r.type&&this._pointerDownEventTarget?this._pointerDownEventTarget:o;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(o)||c.overlayElement.contains(s))break;c._outsidePointerEvents.next(r)}}}}add(t){if(super.add(t),!this._isAttached){const i=this._document.body;i.addEventListener("pointerdown",this._pointerDownListener,!0),i.addEventListener("click",this._clickListener,!0),i.addEventListener("auxclick",this._clickListener,!0),i.addEventListener("contextmenu",this._clickListener,!0),this._platform.IOS&&!this._cursorStyleIsSet&&(this._cursorOriginalValue=i.style.cursor,i.style.cursor="pointer",this._cursorStyleIsSet=!0),this._isAttached=!0}}detach(){if(this._isAttached){const t=this._document.body;t.removeEventListener("pointerdown",this._pointerDownListener,!0),t.removeEventListener("click",this._clickListener,!0),t.removeEventListener("auxclick",this._clickListener,!0),t.removeEventListener("contextmenu",this._clickListener,!0),this._platform.IOS&&this._cursorStyleIsSet&&(t.style.cursor=this._cursorOriginalValue,this._cursorStyleIsSet=!1),this._isAttached=!1}}}return n.\u0275fac=function(t){return new(t||n)(b(q),b(un))},n.\u0275prov=I({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),MH=0,Cc=(()=>{class n{constructor(t,i,r,o,s,a,l,c,u,d,h){this.scrollStrategies=t,this._overlayContainer=i,this._componentFactoryResolver=r,this._positionBuilder=o,this._keyboardDispatcher=s,this._injector=a,this._ngZone=l,this._document=c,this._directionality=u,this._location=d,this._outsideClickDispatcher=h}create(t){const i=this._createHostElement(),r=this._createPaneElement(i),o=this._createPortalOutlet(r),s=new _H(t);return s.direction=s.direction||this._directionality.value,new vH(o,i,r,s,this._ngZone,this._keyboardDispatcher,this._document,this._location,this._outsideClickDispatcher)}position(){return this._positionBuilder}_createPaneElement(t){const i=this._document.createElement("div");return i.id="cdk-overlay-"+MH++,i.classList.add("cdk-overlay-pane"),t.appendChild(i),i}_createHostElement(){const t=this._document.createElement("div");return this._overlayContainer.getContainerElement().appendChild(t),t}_createPortalOutlet(t){return this._appRef||(this._appRef=this._injector.get(Hi)),new sH(t,this._componentFactoryResolver,this._appRef,this._injector,this._document)}}return n.\u0275fac=function(t){return new(t||n)(b(gH),b(jw),b($n),b(DH),b(wH),b(re),b(oe),b(q),b(rD),b(DC),b(SH))},n.\u0275prov=I({token:n,factory:n.\u0275fac}),n})();const TH={provide:new T("cdk-connected-overlay-scroll-strategy"),deps:[Cc],useFactory:function IH(n){return()=>n.scrollStrategies.reposition()}};let xH=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=pe({type:n}),n.\u0275inj=ce({providers:[Cc,TH],imports:[[Ls,aH,kw],kw]}),n})();class FH extends ve{notifyNext(e,t,i,r,o){this.destination.next(t)}notifyError(e,t){this.destination.error(e)}notifyComplete(e){this.destination.complete()}}class RH extends ve{constructor(e,t,i){super(),this.parent=e,this.outerValue=t,this.outerIndex=i,this.index=0}_next(e){this.parent.notifyNext(this.outerValue,e,this.outerIndex,this.index++,this)}_error(e){this.parent.notifyError(e,this),this.unsubscribe()}_complete(){this.parent.notifyComplete(this),this.unsubscribe()}}function OH(n,e,t,i,r=new RH(n,t,i)){if(!r.closed)return e instanceof me?e.subscribe(r):Tc(e)(r)}const Ww={};class NH{constructor(e){this.resultSelector=e}call(e,t){return t.subscribe(new PH(e,this.resultSelector))}}class PH extends FH{constructor(e,t){super(e),this.resultSelector=t,this.active=0,this.values=[],this.observables=[]}_next(e){this.values.push(Ww),this.observables.push(e)}_complete(){const e=this.observables,t=e.length;if(0===t)this.destination.complete();else{this.active=t,this.toRespond=t;for(let i=0;i<t;i++)this.add(OH(this,e[i],void 0,i))}}notifyComplete(e){0==(this.active-=1)&&this.destination.complete()}notifyNext(e,t,i){const r=this.values,s=this.toRespond?r[i]===Ww?--this.toRespond:this.toRespond:0;r[i]=t,0===s&&(this.resultSelector?this._tryResultSelector(r):this.destination.next(r.slice()))}_tryResultSelector(e){let t;try{t=this.resultSelector.apply(this,e)}catch(i){return void this.destination.error(i)}this.destination.next(t)}}function vp(...n){return function LH(){return Pp(1)}()(An(...n))}function VH(...n){const e=n[n.length-1];return rr(e)?(n.pop(),t=>vp(n,t,e)):t=>vp(n,t)}const qw=new Set;let mo,BH=(()=>{class n{constructor(t){this._platform=t,this._matchMedia=this._platform.isBrowser&&window.matchMedia?window.matchMedia.bind(window):HH}matchMedia(t){return(this._platform.WEBKIT||this._platform.BLINK)&&function jH(n){if(!qw.has(n))try{mo||(mo=document.createElement("style"),mo.setAttribute("type","text/css"),document.head.appendChild(mo)),mo.sheet&&(mo.sheet.insertRule(`@media ${n} {body{ }}`,0),qw.add(n))}catch(e){console.error(e)}}(t),this._matchMedia(t)}}return n.\u0275fac=function(t){return new(t||n)(b(un))},n.\u0275prov=I({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();function HH(n){return{matches:"all"===n||""===n,media:n,addListener:()=>{},removeListener:()=>{}}}let UH=(()=>{class n{constructor(t,i){this._mediaMatcher=t,this._zone=i,this._queries=new Map,this._destroySubject=new Pe}ngOnDestroy(){this._destroySubject.next(),this._destroySubject.complete()}isMatched(t){return Qw(Yl(t)).some(r=>this._registerQuery(r).mql.matches)}observe(t){let o=function kH(...n){let e,t;return rr(n[n.length-1])&&(t=n.pop()),"function"==typeof n[n.length-1]&&(e=n.pop()),1===n.length&&ir(n[0])&&(n=n[0]),Rc(n,t).lift(new NH(e))}(Qw(Yl(t)).map(s=>this._registerQuery(s).observable));return o=vp(o.pipe(bc(1)),o.pipe(aD(1),tE(0))),o.pipe(Ue(s=>{const a={matches:!1,breakpoints:{}};return s.forEach(({matches:l,query:c})=>{a.matches=a.matches||l,a.breakpoints[c]=l}),a}))}_registerQuery(t){if(this._queries.has(t))return this._queries.get(t);const i=this._mediaMatcher.matchMedia(t),o={observable:new me(s=>{const a=l=>this._zone.run(()=>s.next(l));return i.addListener(a),()=>{i.removeListener(a)}}).pipe(VH(i),Ue(({matches:s})=>({query:t,matches:s})),In(this._destroySubject)),mql:i};return this._queries.set(t,o),o}}return n.\u0275fac=function(t){return new(t||n)(b(BH),b(oe))},n.\u0275prov=I({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();function Qw(n){return n.map(e=>e.split(",")).reduce((e,t)=>e.concat(t)).map(e=>e.trim())}const $H={tooltipState:CD("state",[Nf("initial, void, hidden",xn({opacity:0,transform:"scale(0)"})),Nf("visible",xn({transform:"scale(1)"})),Pf("* => visible",kf("200ms cubic-bezier(0, 0, 0.2, 1)",KV([xn({opacity:0,transform:"scale(0)",offset:0}),xn({opacity:.5,transform:"scale(0.99)",offset:.5}),xn({opacity:1,transform:"scale(1)",offset:1})]))),Pf("* => hidden",kf("100ms cubic-bezier(0, 0, 0.2, 1)",xn({opacity:0})))])},Kw="tooltip-panel",Yw=Bs({passive:!0}),Zw=new T("mat-tooltip-scroll-strategy"),QH={provide:Zw,deps:[Cc],useFactory:function qH(n){return()=>n.scrollStrategies.reposition({scrollThrottle:20})}},KH=new T("mat-tooltip-default-options",{providedIn:"root",factory:function YH(){return{showDelay:0,hideDelay:0,touchendHideDelay:1500}}});let ZH=(()=>{class n{constructor(t,i,r,o,s,a,l,c,u,d,h,f){this._overlay=t,this._elementRef=i,this._scrollDispatcher=r,this._viewContainerRef=o,this._ngZone=s,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 Pe,this._handleKeydown=p=>{this._isTooltipVisible()&&27===p.keyCode&&!function wV(n,...e){return e.length?e.some(t=>n[t]):n.altKey||n.shiftKey||n.ctrlKey||n.metaKey}(p)&&(p.preventDefault(),p.stopPropagation(),this._ngZone.run(()=>this.hide(0)))},this._scrollStrategy=u,this._document=f,h&&(h.position&&(this.position=h.position),h.touchGestures&&(this.touchGestures=h.touchGestures)),d.change.pipe(In(this._destroyed)).subscribe(()=>{this._overlayRef&&this._updatePosition(this._overlayRef)}),s.runOutsideAngular(()=>{i.nativeElement.addEventListener("keydown",this._handleKeydown)})}get position(){return this._position}set position(t){var i;t!==this._position&&(this._position=t,this._overlayRef&&(this._updatePosition(this._overlayRef),null===(i=this._tooltipInstance)||void 0===i||i.show(0),this._overlayRef.updatePosition()))}get disabled(){return this._disabled}set disabled(t){this._disabled=Kl(t),this._disabled?this.hide(0):this._setupPointerEnterEventsIfNeeded()}get message(){return this._message}set message(t){this._ariaDescriber.removeDescription(this._elementRef.nativeElement,this._message,"tooltip"),this._message=null!=t?String(t).trim():"",!this._message&&this._isTooltipVisible()?this.hide(0):(this._setupPointerEnterEventsIfNeeded(),this._updateTooltipMessage(),this._ngZone.runOutsideAngular(()=>{Promise.resolve().then(()=>{this._ariaDescriber.describe(this._elementRef.nativeElement,this.message,"tooltip")})}))}get tooltipClass(){return this._tooltipClass}set tooltipClass(t){this._tooltipClass=t,this._tooltipInstance&&this._setTooltipClass(this._tooltipClass)}ngAfterViewInit(){this._viewInitialized=!0,this._setupPointerEnterEventsIfNeeded(),this._focusMonitor.monitor(this._elementRef).pipe(In(this._destroyed)).subscribe(t=>{t?"keyboard"===t&&this._ngZone.run(()=>this.show()):this._ngZone.run(()=>this.hide(0))})}ngOnDestroy(){const t=this._elementRef.nativeElement;clearTimeout(this._touchstartTimeout),this._overlayRef&&(this._overlayRef.dispose(),this._tooltipInstance=null),t.removeEventListener("keydown",this._handleKeydown),this._passiveListeners.forEach(([i,r])=>{t.removeEventListener(i,r,Yw)}),this._passiveListeners.length=0,this._destroyed.next(),this._destroyed.complete(),this._ariaDescriber.removeDescription(t,this.message,"tooltip"),this._focusMonitor.stopMonitoring(t)}show(t=this.showDelay){if(this.disabled||!this.message||this._isTooltipVisible()&&!this._tooltipInstance._showTimeoutId&&!this._tooltipInstance._hideTimeoutId)return;const i=this._createOverlay();this._detach(),this._portal=this._portal||new Nw(this._tooltipComponent,this._viewContainerRef),this._tooltipInstance=i.attach(this._portal).instance,this._tooltipInstance.afterHidden().pipe(In(this._destroyed)).subscribe(()=>this._detach()),this._setTooltipClass(this._tooltipClass),this._updateTooltipMessage(),this._tooltipInstance.show(t)}hide(t=this.hideDelay){this._tooltipInstance&&this._tooltipInstance.hide(t)}toggle(){this._isTooltipVisible()?this.hide():this.show()}_isTooltipVisible(){return!!this._tooltipInstance&&this._tooltipInstance.isVisible()}_createOverlay(){if(this._overlayRef)return this._overlayRef;const t=this._scrollDispatcher.getAncestorScrollContainers(this._elementRef),i=this._overlay.position().flexibleConnectedTo(this._elementRef).withTransformOriginOn(`.${this._cssClassPrefix}-tooltip`).withFlexibleDimensions(!1).withViewportMargin(this._viewportMargin).withScrollableContainers(t);return i.positionChanges.pipe(In(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}-${Kw}`,scrollStrategy:this._scrollStrategy()}),this._updatePosition(this._overlayRef),this._overlayRef.detachments().pipe(In(this._destroyed)).subscribe(()=>this._detach()),this._overlayRef.outsidePointerEvents().pipe(In(this._destroyed)).subscribe(()=>{var r;return null===(r=this._tooltipInstance)||void 0===r?void 0:r._handleBodyInteraction()}),this._overlayRef}_detach(){this._overlayRef&&this._overlayRef.hasAttached()&&this._overlayRef.detach(),this._tooltipInstance=null}_updatePosition(t){const i=t.getConfig().positionStrategy,r=this._getOrigin(),o=this._getOverlayPosition();i.withPositions([this._addOffset(Object.assign(Object.assign({},r.main),o.main)),this._addOffset(Object.assign(Object.assign({},r.fallback),o.fallback))])}_addOffset(t){return t}_getOrigin(){const t=!this._dir||"ltr"==this._dir.value,i=this.position;let r;"above"==i||"below"==i?r={originX:"center",originY:"above"==i?"top":"bottom"}:"before"==i||"left"==i&&t||"right"==i&&!t?r={originX:"start",originY:"center"}:("after"==i||"right"==i&&t||"left"==i&&!t)&&(r={originX:"end",originY:"center"});const{x:o,y:s}=this._invertPosition(r.originX,r.originY);return{main:r,fallback:{originX:o,originY:s}}}_getOverlayPosition(){const t=!this._dir||"ltr"==this._dir.value,i=this.position;let r;"above"==i?r={overlayX:"center",overlayY:"bottom"}:"below"==i?r={overlayX:"center",overlayY:"top"}:"before"==i||"left"==i&&t||"right"==i&&!t?r={overlayX:"end",overlayY:"center"}:("after"==i||"right"==i&&t||"left"==i&&!t)&&(r={overlayX:"start",overlayY:"center"});const{x:o,y:s}=this._invertPosition(r.overlayX,r.overlayY);return{main:r,fallback:{overlayX:o,overlayY:s}}}_updateTooltipMessage(){this._tooltipInstance&&(this._tooltipInstance.message=this.message,this._tooltipInstance._markForCheck(),this._ngZone.onMicrotaskEmpty.pipe(bc(1),In(this._destroyed)).subscribe(()=>{this._tooltipInstance&&this._overlayRef.updatePosition()}))}_setTooltipClass(t){this._tooltipInstance&&(this._tooltipInstance.tooltipClass=t,this._tooltipInstance._markForCheck())}_invertPosition(t,i){return"above"===this.position||"below"===this.position?"top"===i?i="bottom":"bottom"===i&&(i="top"):"end"===t?t="start":"start"===t&&(t="end"),{x:t,y:i}}_updateCurrentPositionClass(t){const{overlayY:i,originX:r,originY:o}=t;let s;if(s="center"===i?this._dir&&"rtl"===this._dir.value?"end"===r?"left":"right":"start"===r?"left":"right":"bottom"===i&&"top"===o?"above":"below",s!==this._currentPosition){const a=this._overlayRef;if(a){const l=`${this._cssClassPrefix}-${Kw}-`;a.removePanelClass(l+this._currentPosition),a.addPanelClass(l+s)}this._currentPosition=s}}_setupPointerEnterEventsIfNeeded(){this._disabled||!this.message||!this._viewInitialized||this._passiveListeners.length||(this._platformSupportsMouseEvents()?this._passiveListeners.push(["mouseenter",()=>{this._setupPointerExitEventsIfNeeded(),this.show()}]):"off"!==this.touchGestures&&(this._disableNativeGesturesIfNecessary(),this._passiveListeners.push(["touchstart",()=>{this._setupPointerExitEventsIfNeeded(),clearTimeout(this._touchstartTimeout),this._touchstartTimeout=setTimeout(()=>this.show(),500)}])),this._addListeners(this._passiveListeners))}_setupPointerExitEventsIfNeeded(){if(this._pointerExitEventsInitialized)return;this._pointerExitEventsInitialized=!0;const t=[];if(this._platformSupportsMouseEvents())t.push(["mouseleave",()=>this.hide()],["wheel",i=>this._wheelListener(i)]);else if("off"!==this.touchGestures){this._disableNativeGesturesIfNecessary();const i=()=>{clearTimeout(this._touchstartTimeout),this.hide(this._defaultOptions.touchendHideDelay)};t.push(["touchend",i],["touchcancel",i])}this._addListeners(t),this._passiveListeners.push(...t)}_addListeners(t){t.forEach(([i,r])=>{this._elementRef.nativeElement.addEventListener(i,r,Yw)})}_platformSupportsMouseEvents(){return!this._platform.IOS&&!this._platform.ANDROID}_wheelListener(t){if(this._isTooltipVisible()){const i=this._document.elementFromPoint(t.clientX,t.clientY),r=this._elementRef.nativeElement;i!==r&&!r.contains(i)&&this.hide()}}_disableNativeGesturesIfNecessary(){const t=this.touchGestures;if("off"!==t){const i=this._elementRef.nativeElement,r=i.style;("on"===t||"INPUT"!==i.nodeName&&"TEXTAREA"!==i.nodeName)&&(r.userSelect=r.msUserSelect=r.webkitUserSelect=r.MozUserSelect="none"),("on"===t||!i.draggable)&&(r.webkitUserDrag="none"),r.touchAction="none",r.webkitTapHighlightColor="transparent"}}}return n.\u0275fac=function(t){!function ey(){throw new Error("invalid")}()},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})(),XH=(()=>{class n extends ZH{constructor(t,i,r,o,s,a,l,c,u,d,h,f){super(t,i,r,o,s,a,l,c,u,d,h,f),this._tooltipComponent=e2}}return n.\u0275fac=function(t){return new(t||n)(v(Cc),v(ye),v(Rw),v(en),v(oe),v(un),v(PV),v(gD),v(Zw),v(rD,8),v(KH,8),v(q))},n.\u0275dir=k({type:n,selectors:[["","matTooltip",""]],hostAttrs:[1,"mat-tooltip-trigger"],exportAs:["matTooltip"],features:[J]}),n})(),JH=(()=>{class n{constructor(t){this._changeDetectorRef=t,this._visibility="initial",this._closeOnInteraction=!1,this._onHide=new Pe}show(t){clearTimeout(this._hideTimeoutId),this._closeOnInteraction=!0,this._showTimeoutId=setTimeout(()=>{this._visibility="visible",this._showTimeoutId=void 0,this._onShow(),this._markForCheck()},t)}hide(t){clearTimeout(this._showTimeoutId),this._hideTimeoutId=setTimeout(()=>{this._visibility="hidden",this._hideTimeoutId=void 0,this._markForCheck()},t)}afterHidden(){return this._onHide}isVisible(){return"visible"===this._visibility}ngOnDestroy(){clearTimeout(this._showTimeoutId),clearTimeout(this._hideTimeoutId),this._onHide.complete()}_animationStart(){this._closeOnInteraction=!1}_animationDone(t){const i=t.toState;"hidden"===i&&!this.isVisible()&&this._onHide.next(),("visible"===i||"hidden"===i)&&(this._closeOnInteraction=!0)}_handleBodyInteraction(){this._closeOnInteraction&&this.hide(0)}_markForCheck(){this._changeDetectorRef.markForCheck()}_onShow(){}}return n.\u0275fac=function(t){return new(t||n)(v(Jr))},n.\u0275dir=k({type:n}),n})(),e2=(()=>{class n extends JH{constructor(t,i){super(t),this._breakpointObserver=i,this._isHandset=this._breakpointObserver.observe("(max-width: 599.98px) and (orientation: portrait), (max-width: 959.98px) and (orientation: landscape)")}}return n.\u0275fac=function(t){return new(t||n)(v(Jr),v(UH))},n.\u0275cmp=Si({type:n,selectors:[["mat-tooltip-component"]],hostAttrs:["aria-hidden","true"],hostVars:2,hostBindings:function(t,i){2&t&&Ua("zoom","visible"===i._visibility?1:null)},features:[J],decls:3,vars:7,consts:[[1,"mat-tooltip",3,"ngClass"]],template:function(t,i){if(1&t&&(Yt(0,"div",0),dt("@state.start",function(){return i._animationStart()})("@state.done",function(o){return i._animationDone(o)}),function Lv(n,e){const t=K();let i;const r=n+20;t.firstCreatePass?(i=function zF(n,e){if(e)for(let t=e.length-1;t>=0;t--){const i=e[t];if(n===i.name)return i}throw new wi("302",`The pipe '${n}' could not be found!`)}(e,t.pipeRegistry),t.data[r]=i,i.onDestroy&&(t.destroyHooks||(t.destroyHooks=[])).push(r,i.onDestroy)):i=t.data[r];const o=i.factory||(i.factory=xi(i.type)),s=ei(v);try{const a=ma(!1),l=o();return ma(a),function oT(n,e,t,i){t>=n.data.length&&(n.data[t]=null,n.blueprint[t]=null),e[t]=i}(t,C(),r,l),l}finally{ei(s)}}(1,"async"),ns(2),Zt()),2&t){let r;zn("mat-tooltip-handset",null==(r=function Vv(n,e,t){const i=n+20,r=C(),o=ur(r,i);return function cs(n,e){return n[1].data[e].pure}(r,i)?Rv(r,et(),e,o.transform,t,o):o.transform(t)}(1,5,i._isHandset))?null:r.matches),Un("ngClass",i.tooltipClass)("@state",i._visibility),bn(2),Id(i.message)}},directives:[$h],pipes:[PC],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:[$H.tooltipState]},changeDetection:0}),n})(),t2=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=pe({type:n}),n.\u0275inj=ce({providers:[QH],imports:[[qV,As,xH,dn],dn,gp]}),n})();const n2=["mat-button",""],r2=["*"],s2=["mat-button","mat-flat-button","mat-icon-button","mat-raised-button","mat-stroked-button","mat-mini-fab","mat-fab"],a2=bw(Cj(Ej(class{constructor(n){this._elementRef=n}})));let l2=(()=>{class n extends a2{constructor(t,i,r){super(t),this._focusMonitor=i,this._animationMode=r,this.isRoundButton=this._hasHostAttributes("mat-fab","mat-mini-fab"),this.isIconButton=this._hasHostAttributes("mat-icon-button");for(const o of s2)this._hasHostAttributes(o)&&this._getHostElement().classList.add(o);t.nativeElement.classList.add("mat-button-base"),this.isRoundButton&&(this.color="accent")}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0)}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef)}focus(t,i){t?this._focusMonitor.focusVia(this._getHostElement(),t,i):this._getHostElement().focus(i)}_getHostElement(){return this._elementRef.nativeElement}_isRippleDisabled(){return this.disableRipple||this.disabled}_hasHostAttributes(...t){return t.some(i=>this._getHostElement().hasAttribute(i))}}return n.\u0275fac=function(t){return new(t||n)(v(ye),v(gD),v(yc,8))},n.\u0275cmp=Si({type:n,selectors:[["button","mat-button",""],["button","mat-raised-button",""],["button","mat-icon-button",""],["button","mat-fab",""],["button","mat-mini-fab",""],["button","mat-stroked-button",""],["button","mat-flat-button",""]],viewQuery:function(t,i){if(1&t&&Kr(ww,5),2&t){let r;Qr(r=Yr())&&(i.ripple=r.first)}},hostAttrs:[1,"mat-focus-indicator"],hostVars:5,hostBindings:function(t,i){2&t&&(Kt("disabled",i.disabled||null),zn("_mat-animation-noopable","NoopAnimations"===i._animationMode)("mat-button-disabled",i.disabled))},inputs:{disabled:"disabled",disableRipple:"disableRipple",color:"color"},exportAs:["matButton"],features:[J],attrs:n2,ngContentSelectors:r2,decls:4,vars:5,consts:[[1,"mat-button-wrapper"],["matRipple","",1,"mat-button-ripple",3,"matRippleDisabled","matRippleCentered","matRippleTrigger"],[1,"mat-button-focus-overlay"]],template:function(t,i){1&t&&(Dd(),Yt(0,"span",0),wd(1),Zt(),Hr(2,"span",1),Hr(3,"span",2)),2&t&&(bn(2),zn("mat-button-ripple-round",i.isRoundButton||i.isIconButton),Un("matRippleDisabled",i._isRippleDisabled())("matRippleCentered",i.isIconButton)("matRippleTrigger",i._getHostElement()))},directives:[ww],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})(),c2=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=pe({type:n}),n.\u0275inj=ce({imports:[[Fj,dn],dn]}),n})();function Xw(n,e){return new me(e?t=>e.schedule(u2,0,{error:n,subscriber:t}):t=>t.error(n))}function u2({error:n,subscriber:e}){e.error(n)}function vi(){}function bp(n,e,t){return function(r){return r.lift(new d2(n,e,t))}}class d2{constructor(e,t,i){this.nextOrObserver=e,this.error=t,this.complete=i}call(e,t){return t.subscribe(new h2(e,this.nextOrObserver,this.error,this.complete))}}class h2 extends ve{constructor(e,t,i,r){super(e),this._tapNext=vi,this._tapError=vi,this._tapComplete=vi,this._tapError=i||vi,this._tapComplete=r||vi,Xn(t)?(this._context=this,this._tapNext=t):t&&(this._context=t,this._tapNext=t.next||vi,this._tapError=t.error||vi,this._tapComplete=t.complete||vi)}_next(e){try{this._tapNext.call(this._context,e)}catch(t){return void this.destination.error(t)}this.destination.next(e)}_error(e){try{this._tapError.call(this._context,e)}catch(t){return void this.destination.error(t)}this.destination.error(e)}_complete(){try{this._tapComplete.call(this._context)}catch(e){return void this.destination.error(e)}return this.destination.complete()}}class p2{constructor(e){this.selector=e}call(e,t){return t.subscribe(new m2(e,this.selector,this.caught))}}class m2 extends Co{constructor(e,t,i){super(e),this.selector=t,this.caught=i}error(e){if(!this.isStopped){let t;try{t=this.selector(e,this.caught)}catch(o){return void super.error(o)}this._unsubscribeAndRecycle();const i=new bo(this);this.add(i);const r=Eo(t,i);r!==i&&this.add(r)}}}class _2{constructor(e){this.callback=e}call(e,t){return t.subscribe(new y2(e,this.callback))}}class y2 extends ve{constructor(e,t){super(e),this.add(new se(t))}}class b2{}class bi{constructor(e){this.normalizedNames=new Map,this.lazyUpdate=null,e?this.lazyInit="string"==typeof e?()=>{this.headers=new Map,e.split("\n").forEach(t=>{const i=t.indexOf(":");if(i>0){const r=t.slice(0,i),o=r.toLowerCase(),s=t.slice(i+1).trim();this.maybeSetNormalizedName(r,o),this.headers.has(o)?this.headers.get(o).push(s):this.headers.set(o,[s])}})}:()=>{this.headers=new Map,Object.keys(e).forEach(t=>{let i=e[t];const r=t.toLowerCase();"string"==typeof i&&(i=[i]),i.length>0&&(this.headers.set(r,i),this.maybeSetNormalizedName(t,r))})}:this.headers=new Map}has(e){return this.init(),this.headers.has(e.toLowerCase())}get(e){this.init();const t=this.headers.get(e.toLowerCase());return t&&t.length>0?t[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(e){return this.init(),this.headers.get(e.toLowerCase())||null}append(e,t){return this.clone({name:e,value:t,op:"a"})}set(e,t){return this.clone({name:e,value:t,op:"s"})}delete(e,t){return this.clone({name:e,value:t,op:"d"})}maybeSetNormalizedName(e,t){this.normalizedNames.has(t)||this.normalizedNames.set(t,e)}init(){this.lazyInit&&(this.lazyInit instanceof bi?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(e=>this.applyUpdate(e)),this.lazyUpdate=null))}copyFrom(e){e.init(),Array.from(e.headers.keys()).forEach(t=>{this.headers.set(t,e.headers.get(t)),this.normalizedNames.set(t,e.normalizedNames.get(t))})}clone(e){const t=new bi;return t.lazyInit=this.lazyInit&&this.lazyInit instanceof bi?this.lazyInit:this,t.lazyUpdate=(this.lazyUpdate||[]).concat([e]),t}applyUpdate(e){const t=e.name.toLowerCase();switch(e.op){case"a":case"s":let i=e.value;if("string"==typeof i&&(i=[i]),0===i.length)return;this.maybeSetNormalizedName(e.name,t);const r=("a"===e.op?this.headers.get(t):void 0)||[];r.push(...i),this.headers.set(t,r);break;case"d":const o=e.value;if(o){let s=this.headers.get(t);if(!s)return;s=s.filter(a=>-1===o.indexOf(a)),0===s.length?(this.headers.delete(t),this.normalizedNames.delete(t)):this.headers.set(t,s)}else this.headers.delete(t),this.normalizedNames.delete(t)}}forEach(e){this.init(),Array.from(this.normalizedNames.keys()).forEach(t=>e(this.normalizedNames.get(t),this.headers.get(t)))}}class C2{encodeKey(e){return Jw(e)}encodeValue(e){return Jw(e)}decodeKey(e){return decodeURIComponent(e)}decodeValue(e){return decodeURIComponent(e)}}const D2=/%(\d[a-f0-9])/gi,w2={40:"@","3A":":",24:"$","2C":",","3B":";","2B":"+","3D":"=","3F":"?","2F":"/"};function Jw(n){return encodeURIComponent(n).replace(D2,(e,t)=>{var i;return null!==(i=w2[t])&&void 0!==i?i:e})}function eS(n){return`${n}`}class Ci{constructor(e={}){if(this.updates=null,this.cloneFrom=null,this.encoder=e.encoder||new C2,e.fromString){if(e.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=function E2(n,e){const t=new Map;return n.length>0&&n.replace(/^\?/,"").split("&").forEach(r=>{const o=r.indexOf("="),[s,a]=-1==o?[e.decodeKey(r),""]:[e.decodeKey(r.slice(0,o)),e.decodeValue(r.slice(o+1))],l=t.get(s)||[];l.push(a),t.set(s,l)}),t}(e.fromString,this.encoder)}else e.fromObject?(this.map=new Map,Object.keys(e.fromObject).forEach(t=>{const i=e.fromObject[t];this.map.set(t,Array.isArray(i)?i:[i])})):this.map=null}has(e){return this.init(),this.map.has(e)}get(e){this.init();const t=this.map.get(e);return t?t[0]:null}getAll(e){return this.init(),this.map.get(e)||null}keys(){return this.init(),Array.from(this.map.keys())}append(e,t){return this.clone({param:e,value:t,op:"a"})}appendAll(e){const t=[];return Object.keys(e).forEach(i=>{const r=e[i];Array.isArray(r)?r.forEach(o=>{t.push({param:i,value:o,op:"a"})}):t.push({param:i,value:r,op:"a"})}),this.clone(t)}set(e,t){return this.clone({param:e,value:t,op:"s"})}delete(e,t){return this.clone({param:e,value:t,op:"d"})}toString(){return this.init(),this.keys().map(e=>{const t=this.encoder.encodeKey(e);return this.map.get(e).map(i=>t+"="+this.encoder.encodeValue(i)).join("&")}).filter(e=>""!==e).join("&")}clone(e){const t=new Ci({encoder:this.encoder});return t.cloneFrom=this.cloneFrom||this,t.updates=(this.updates||[]).concat(e),t}init(){null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(e=>this.map.set(e,this.cloneFrom.map.get(e))),this.updates.forEach(e=>{switch(e.op){case"a":case"s":const t=("a"===e.op?this.map.get(e.param):void 0)||[];t.push(eS(e.value)),this.map.set(e.param,t);break;case"d":if(void 0===e.value){this.map.delete(e.param);break}{let i=this.map.get(e.param)||[];const r=i.indexOf(eS(e.value));-1!==r&&i.splice(r,1),i.length>0?this.map.set(e.param,i):this.map.delete(e.param)}}}),this.cloneFrom=this.updates=null)}}class S2{constructor(){this.map=new Map}set(e,t){return this.map.set(e,t),this}get(e){return this.map.has(e)||this.map.set(e,e.defaultValue()),this.map.get(e)}delete(e){return this.map.delete(e),this}keys(){return this.map.keys()}}function tS(n){return"undefined"!=typeof ArrayBuffer&&n instanceof ArrayBuffer}function nS(n){return"undefined"!=typeof Blob&&n instanceof Blob}function iS(n){return"undefined"!=typeof FormData&&n instanceof FormData}class zs{constructor(e,t,i,r){let o;if(this.url=t,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=e.toUpperCase(),function M2(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,o=r):o=i,o&&(this.reportProgress=!!o.reportProgress,this.withCredentials=!!o.withCredentials,o.responseType&&(this.responseType=o.responseType),o.headers&&(this.headers=o.headers),o.context&&(this.context=o.context),o.params&&(this.params=o.params)),this.headers||(this.headers=new bi),this.context||(this.context=new S2),this.params){const s=this.params.toString();if(0===s.length)this.urlWithParams=t;else{const a=t.indexOf("?");this.urlWithParams=t+(-1===a?"?":a<t.length-1?"&":"")+s}}else this.params=new Ci,this.urlWithParams=t}serializeBody(){return null===this.body?null:tS(this.body)||nS(this.body)||iS(this.body)||function A2(n){return"undefined"!=typeof URLSearchParams&&n instanceof URLSearchParams}(this.body)||"string"==typeof this.body?this.body:this.body instanceof Ci?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||iS(this.body)?null:nS(this.body)?this.body.type||null:tS(this.body)?null:"string"==typeof this.body?"text/plain":this.body instanceof Ci?"application/x-www-form-urlencoded;charset=UTF-8":"object"==typeof this.body||"number"==typeof this.body||"boolean"==typeof this.body?"application/json":null}clone(e={}){var t;const i=e.method||this.method,r=e.url||this.url,o=e.responseType||this.responseType,s=void 0!==e.body?e.body:this.body,a=void 0!==e.withCredentials?e.withCredentials:this.withCredentials,l=void 0!==e.reportProgress?e.reportProgress:this.reportProgress;let c=e.headers||this.headers,u=e.params||this.params;const d=null!==(t=e.context)&&void 0!==t?t:this.context;return void 0!==e.setHeaders&&(c=Object.keys(e.setHeaders).reduce((h,f)=>h.set(f,e.setHeaders[f]),c)),e.setParams&&(u=Object.keys(e.setParams).reduce((h,f)=>h.set(f,e.setParams[f]),u)),new zs(i,r,s,{params:u,headers:c,context:d,reportProgress:l,responseType:o,withCredentials:a})}}var ze=(()=>((ze=ze||{})[ze.Sent=0]="Sent",ze[ze.UploadProgress=1]="UploadProgress",ze[ze.ResponseHeader=2]="ResponseHeader",ze[ze.DownloadProgress=3]="DownloadProgress",ze[ze.Response=4]="Response",ze[ze.User=5]="User",ze))();class Cp extends class I2{constructor(e,t=200,i="OK"){this.headers=e.headers||new bi,this.status=void 0!==e.status?e.status:t,this.statusText=e.statusText||i,this.url=e.url||null,this.ok=this.status>=200&&this.status<300}}{constructor(e={}){super(e),this.type=ze.Response,this.body=void 0!==e.body?e.body:null}clone(e={}){return new Cp({body:void 0!==e.body?e.body:this.body,headers:e.headers||this.headers,status:void 0!==e.status?e.status:this.status,statusText:e.statusText||this.statusText,url:e.url||this.url||void 0})}}function Ep(n,e){return{body:e,headers:n.headers,context:n.context,observe:n.observe,params:n.params,reportProgress:n.reportProgress,responseType:n.responseType,withCredentials:n.withCredentials}}let oS=(()=>{class n{constructor(t){this.handler=t}request(t,i,r={}){let o;if(t instanceof zs)o=t;else{let l,c;l=r.headers instanceof bi?r.headers:new bi(r.headers),r.params&&(c=r.params instanceof Ci?r.params:new Ci({fromObject:r.params})),o=new zs(t,i,void 0!==r.body?r.body:null,{headers:l,context:r.context,params:c,reportProgress:r.reportProgress,responseType:r.responseType||"json",withCredentials:r.withCredentials})}const s=An(o).pipe(function v2(n,e){return Fc(n,e,1)}(l=>this.handler.handle(l)));if(t instanceof zs||"events"===r.observe)return s;const a=s.pipe(Fw(l=>l instanceof Cp));switch(r.observe||"body"){case"body":switch(o.responseType){case"arraybuffer":return a.pipe(Ue(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(Ue(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(Ue(l=>{if(null!==l.body&&"string"!=typeof l.body)throw new Error("Response is not a string.");return l.body}));default:return a.pipe(Ue(l=>l.body))}case"response":return a;default:throw new Error(`Unreachable: unhandled observe type ${r.observe}}`)}}delete(t,i={}){return this.request("DELETE",t,i)}get(t,i={}){return this.request("GET",t,i)}head(t,i={}){return this.request("HEAD",t,i)}jsonp(t,i){return this.request("JSONP",t,{params:(new Ci).append(i,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(t,i={}){return this.request("OPTIONS",t,i)}patch(t,i,r={}){return this.request("PATCH",t,Ep(r,i))}post(t,i,r={}){return this.request("POST",t,Ep(r,i))}put(t,i,r={}){return this.request("PUT",t,Ep(r,i))}}return n.\u0275fac=function(t){return new(t||n)(b(b2))},n.\u0275prov=I({token:n,factory:n.\u0275fac}),n})();const x2=["*"];let Ec;function $s(n){var e;return(null===(e=function F2(){if(void 0===Ec&&(Ec=null,"undefined"!=typeof window)){const n=window;void 0!==n.trustedTypes&&(Ec=n.trustedTypes.createPolicy("angular#components",{createHTML:e=>e}))}return Ec}())||void 0===e?void 0:e.createHTML(n))||n}function sS(n){return Error(`Unable to find icon with the name "${n}"`)}function aS(n){return Error(`The URL provided to MatIconRegistry was not trusted as a resource URL via Angular's DomSanitizer. Attempted URL was "${n}".`)}function lS(n){return Error(`The literal provided to MatIconRegistry was not trusted as safe HTML by Angular's DomSanitizer. Attempted literal was "${n}".`)}class tr{constructor(e,t,i){this.url=e,this.svgText=t,this.options=i}}let Dc=(()=>{class n{constructor(t,i,r,o){this._httpClient=t,this._sanitizer=i,this._errorHandler=o,this._svgIconConfigs=new Map,this._iconSetConfigs=new Map,this._cachedIconsByUrl=new Map,this._inProgressUrlFetches=new Map,this._fontCssClassesByAlias=new Map,this._resolvers=[],this._defaultFontSetClass="material-icons",this._document=r}addSvgIcon(t,i,r){return this.addSvgIconInNamespace("",t,i,r)}addSvgIconLiteral(t,i,r){return this.addSvgIconLiteralInNamespace("",t,i,r)}addSvgIconInNamespace(t,i,r,o){return this._addSvgIconConfig(t,i,new tr(r,null,o))}addSvgIconResolver(t){return this._resolvers.push(t),this}addSvgIconLiteralInNamespace(t,i,r,o){const s=this._sanitizer.sanitize(X.HTML,r);if(!s)throw lS(r);const a=$s(s);return this._addSvgIconConfig(t,i,new tr("",a,o))}addSvgIconSet(t,i){return this.addSvgIconSetInNamespace("",t,i)}addSvgIconSetLiteral(t,i){return this.addSvgIconSetLiteralInNamespace("",t,i)}addSvgIconSetInNamespace(t,i,r){return this._addSvgIconSetConfig(t,new tr(i,null,r))}addSvgIconSetLiteralInNamespace(t,i,r){const o=this._sanitizer.sanitize(X.HTML,i);if(!o)throw lS(i);const s=$s(o);return this._addSvgIconSetConfig(t,new tr("",s,r))}registerFontClassAlias(t,i=t){return this._fontCssClassesByAlias.set(t,i),this}classNameForFontAlias(t){return this._fontCssClassesByAlias.get(t)||t}setDefaultFontSetClass(t){return this._defaultFontSetClass=t,this}getDefaultFontSetClass(){return this._defaultFontSetClass}getSvgIconFromUrl(t){const i=this._sanitizer.sanitize(X.RESOURCE_URL,t);if(!i)throw aS(t);const r=this._cachedIconsByUrl.get(i);return r?An(wc(r)):this._loadSvgIconFromConfig(new tr(t,null)).pipe(bp(o=>this._cachedIconsByUrl.set(i,o)),Ue(o=>wc(o)))}getNamedSvgIcon(t,i=""){const r=cS(i,t);let o=this._svgIconConfigs.get(r);if(o)return this._getSvgFromConfig(o);if(o=this._getIconConfigFromResolvers(i,t),o)return this._svgIconConfigs.set(r,o),this._getSvgFromConfig(o);const s=this._iconSetConfigs.get(i);return s?this._getSvgFromIconSetConfigs(t,s):Xw(sS(r))}ngOnDestroy(){this._resolvers=[],this._svgIconConfigs.clear(),this._iconSetConfigs.clear(),this._cachedIconsByUrl.clear()}_getSvgFromConfig(t){return t.svgText?An(wc(this._svgElementFromConfig(t))):this._loadSvgIconFromConfig(t).pipe(Ue(i=>wc(i)))}_getSvgFromIconSetConfigs(t,i){const r=this._extractIconWithNameFromAnySet(t,i);if(r)return An(r);const o=i.filter(s=>!s.svgText).map(s=>this._loadSvgIconSetFromConfig(s).pipe(function f2(n){return function(t){const i=new p2(n),r=t.lift(i);return i.caught=r}}(a=>{const c=`Loading icon set URL: ${this._sanitizer.sanitize(X.RESOURCE_URL,s.url)} failed: ${a.message}`;return this._errorHandler.handleError(new Error(c)),An(null)})));return nE(o).pipe(Ue(()=>{const s=this._extractIconWithNameFromAnySet(t,i);if(!s)throw sS(t);return s}))}_extractIconWithNameFromAnySet(t,i){for(let r=i.length-1;r>=0;r--){const o=i[r];if(o.svgText&&o.svgText.toString().indexOf(t)>-1){const s=this._svgElementFromConfig(o),a=this._extractSvgIconFromSet(s,t,o.options);if(a)return a}}return null}_loadSvgIconFromConfig(t){return this._fetchIcon(t).pipe(bp(i=>t.svgText=i),Ue(()=>this._svgElementFromConfig(t)))}_loadSvgIconSetFromConfig(t){return t.svgText?An(null):this._fetchIcon(t).pipe(bp(i=>t.svgText=i))}_extractSvgIconFromSet(t,i,r){const o=t.querySelector(`[id="${i}"]`);if(!o)return null;const s=o.cloneNode(!0);if(s.removeAttribute("id"),"svg"===s.nodeName.toLowerCase())return this._setSvgAttributes(s,r);if("symbol"===s.nodeName.toLowerCase())return this._setSvgAttributes(this._toSvgElement(s),r);const a=this._svgElementFromString($s("<svg></svg>"));return a.appendChild(s),this._setSvgAttributes(a,r)}_svgElementFromString(t){const i=this._document.createElement("DIV");i.innerHTML=t;const r=i.querySelector("svg");if(!r)throw Error("<svg> tag not found");return r}_toSvgElement(t){const i=this._svgElementFromString($s("<svg></svg>")),r=t.attributes;for(let o=0;o<r.length;o++){const{name:s,value:a}=r[o];"id"!==s&&i.setAttribute(s,a)}for(let o=0;o<t.childNodes.length;o++)t.childNodes[o].nodeType===this._document.ELEMENT_NODE&&i.appendChild(t.childNodes[o].cloneNode(!0));return i}_setSvgAttributes(t,i){return t.setAttribute("fit",""),t.setAttribute("height","100%"),t.setAttribute("width","100%"),t.setAttribute("preserveAspectRatio","xMidYMid meet"),t.setAttribute("focusable","false"),i&&i.viewBox&&t.setAttribute("viewBox",i.viewBox),t}_fetchIcon(t){var i;const{url:r,options:o}=t,s=null!==(i=null==o?void 0:o.withCredentials)&&void 0!==i&&i;if(!this._httpClient)throw function R2(){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(X.RESOURCE_URL,r);if(!a)throw aS(r);const l=this._inProgressUrlFetches.get(a);if(l)return l;const c=this._httpClient.get(a,{responseType:"text",withCredentials:s}).pipe(Ue(u=>$s(u)),function g2(n){return e=>e.lift(new _2(n))}(()=>this._inProgressUrlFetches.delete(a)),Vp());return this._inProgressUrlFetches.set(a,c),c}_addSvgIconConfig(t,i,r){return this._svgIconConfigs.set(cS(t,i),r),this}_addSvgIconSetConfig(t,i){const r=this._iconSetConfigs.get(t);return r?r.push(i):this._iconSetConfigs.set(t,[i]),this}_svgElementFromConfig(t){if(!t.svgElement){const i=this._svgElementFromString(t.svgText);this._setSvgAttributes(i,t.options),t.svgElement=i}return t.svgElement}_getIconConfigFromResolvers(t,i){for(let r=0;r<this._resolvers.length;r++){const o=this._resolvers[r](i,t);if(o)return k2(o)?new tr(o.url,null,o.options):new tr(o,null)}}}return n.\u0275fac=function(t){return new(t||n)(b(oS,8),b(Fs),b(q,8),b(yn))},n.\u0275prov=I({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();function wc(n){return n.cloneNode(!0)}function cS(n,e){return n+":"+e}function k2(n){return!(!n.url||!n.options)}const N2=bw(class{constructor(n){this._elementRef=n}}),P2=new T("mat-icon-location",{providedIn:"root",factory:function L2(){const n=_u(q),e=n?n.location:null;return{getPathname:()=>e?e.pathname+e.search:""}}}),uS=["clip-path","color-profile","src","cursor","fill","filter","marker","marker-start","marker-mid","marker-end","mask","stroke"],V2=uS.map(n=>`[${n}]`).join(", "),B2=/^url\(['"]?#(.*?)['"]?\)$/;let j2=(()=>{class n extends N2{constructor(t,i,r,o,s){super(t),this._iconRegistry=i,this._location=o,this._errorHandler=s,this._inline=!1,this._currentIconFetch=se.EMPTY,r||t.nativeElement.setAttribute("aria-hidden","true")}get inline(){return this._inline}set inline(t){this._inline=Kl(t)}get svgIcon(){return this._svgIcon}set svgIcon(t){t!==this._svgIcon&&(t?this._updateSvgIcon(t):this._svgIcon&&this._clearSvgElement(),this._svgIcon=t)}get fontSet(){return this._fontSet}set fontSet(t){const i=this._cleanupFontValue(t);i!==this._fontSet&&(this._fontSet=i,this._updateFontIconClasses())}get fontIcon(){return this._fontIcon}set fontIcon(t){const i=this._cleanupFontValue(t);i!==this._fontIcon&&(this._fontIcon=i,this._updateFontIconClasses())}_splitIconName(t){if(!t)return["",""];const i=t.split(":");switch(i.length){case 1:return["",i[0]];case 2:return i;default:throw Error(`Invalid icon name: "${t}"`)}}ngOnInit(){this._updateFontIconClasses()}ngAfterViewChecked(){const t=this._elementsWithExternalReferences;if(t&&t.size){const i=this._location.getPathname();i!==this._previousPath&&(this._previousPath=i,this._prependPathToReferences(i))}}ngOnDestroy(){this._currentIconFetch.unsubscribe(),this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear()}_usingFontIcon(){return!this.svgIcon}_setSvgElement(t){this._clearSvgElement();const i=t.querySelectorAll("style");for(let o=0;o<i.length;o++)i[o].textContent+=" ";const r=this._location.getPathname();this._previousPath=r,this._cacheChildrenWithExternalReferences(t),this._prependPathToReferences(r),this._elementRef.nativeElement.appendChild(t)}_clearSvgElement(){const t=this._elementRef.nativeElement;let i=t.childNodes.length;for(this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear();i--;){const r=t.childNodes[i];(1!==r.nodeType||"svg"===r.nodeName.toLowerCase())&&r.remove()}}_updateFontIconClasses(){if(!this._usingFontIcon())return;const t=this._elementRef.nativeElement,i=this.fontSet?this._iconRegistry.classNameForFontAlias(this.fontSet):this._iconRegistry.getDefaultFontSetClass();i!=this._previousFontSetClass&&(this._previousFontSetClass&&t.classList.remove(this._previousFontSetClass),i&&t.classList.add(i),this._previousFontSetClass=i),this.fontIcon!=this._previousFontIconClass&&(this._previousFontIconClass&&t.classList.remove(this._previousFontIconClass),this.fontIcon&&t.classList.add(this.fontIcon),this._previousFontIconClass=this.fontIcon)}_cleanupFontValue(t){return"string"==typeof t?t.trim().split(" ")[0]:t}_prependPathToReferences(t){const i=this._elementsWithExternalReferences;i&&i.forEach((r,o)=>{r.forEach(s=>{o.setAttribute(s.name,`url('${t}#${s.value}')`)})})}_cacheChildrenWithExternalReferences(t){const i=t.querySelectorAll(V2),r=this._elementsWithExternalReferences=this._elementsWithExternalReferences||new Map;for(let o=0;o<i.length;o++)uS.forEach(s=>{const a=i[o],l=a.getAttribute(s),c=l?l.match(B2):null;if(c){let u=r.get(a);u||(u=[],r.set(a,u)),u.push({name:s,value:c[1]})}})}_updateSvgIcon(t){if(this._svgNamespace=null,this._svgName=null,this._currentIconFetch.unsubscribe(),t){const[i,r]=this._splitIconName(t);i&&(this._svgNamespace=i),r&&(this._svgName=r),this._currentIconFetch=this._iconRegistry.getNamedSvgIcon(r,i).pipe(bc(1)).subscribe(o=>this._setSvgElement(o),o=>{this._errorHandler.handleError(new Error(`Error retrieving icon ${i}:${r}! ${o.message}`))})}}}return n.\u0275fac=function(t){return new(t||n)(v(ye),v(Dc),function va(n){return function z0(n,e){if("class"===e)return n.classes;if("style"===e)return n.styles;const t=n.attrs;if(t){const i=t.length;let r=0;for(;r<i;){const o=t[r];if(gm(o))break;if(0===o)r+=2;else if("number"==typeof o)for(r++;r<i&&"string"==typeof t[r];)r++;else{if(o===e)return t[r+1];r+=2}}}return null}(Re(),n)}("aria-hidden"),v(P2),v(yn))},n.\u0275cmp=Si({type:n,selectors:[["mat-icon"]],hostAttrs:["role","img",1,"mat-icon","notranslate"],hostVars:7,hostBindings:function(t,i){2&t&&(Kt("data-mat-icon-type",i._usingFontIcon()?"font":"svg")("data-mat-icon-name",i._svgName||i.fontIcon)("data-mat-icon-namespace",i._svgNamespace||i.fontSet),zn("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:[J],ngContentSelectors:x2,decls:1,vars:0,template:function(t,i){1&t&&(Dd(),wd(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})(),H2=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=pe({type:n}),n.\u0275inj=ce({imports:[[dn],dn]}),n})();const U2=["elSignature"],z2=["cvSignature"],$2=["divUndo"],G2=["imgSignHere"],W2=function(n){return{"disable-element-temp":n}};let dS=(()=>{class n extends aV{constructor(t,i,r,o,s,a){super(t,o,s,i),this.formbirdInjectorService=t,this.cdRef=i,this.el=r,this.changedDocumentService=o,this.componentSetupService=s,this.compressorBase30Service=a,this.visible=!0,this.disableSave=!1,this.changed=!1,this.notificationService=this.formbirdInjectorService.get("NotificationService")}ngOnInit(){this.componentSetupService.setupStandardProperties(this),null==this.componentDefinition.visible||(this.visible=this.componentDefinition.visible),null==this.componentDefinition.disableSave||(this.disableSave=this.componentDefinition.disableSave),this.lineColor=this.componentDefinition.lineColor,this.penColor="black",null==this.componentDefinition.penColor||(this.penColor=this.componentDefinition.penColor);const t=this.broadcastService.on("formReset").subscribe(()=>{this.signaturePad.clear(),this.hasSignature(!1)});this.subs.add(t)}ngOnDestroy(){this.observer.unobserve(this.elSignature.nativeElement)}initializeFieldValue(){this.divUndo&&this.hasSignature(!1)}onFieldValueChanged(t){t||(this.signaturePad.clear(),this.hasSignature(!1)),this.fieldValue!==t&&(this.fieldValue=t,this.loadData(),this.detectChanges())}valueChanged(t){super.valueChanged(t.map(i=>JSON.stringify(i)))}ngAfterViewInit(){this.signaturePad=new kl(this.cvSignature.nativeElement,{penColor:this.penColor}),this.signaturePad.addEventListener("endStroke",()=>{this.hasSignature(!0);const t=this.signaturePad.toData();this.valueChanged(t)}),this.initializeFieldValue(),this.setupChangeDetection(),this.setFieldActivation(),this.notifyComponentIntialized(),this.resizeCanvas(),this.observer=new ResizeObserver(()=>{console.log("observer called"),this.resizeCanvas()}),this.observer.observe(this.elSignature.nativeElement),this.loadData()}loadData(){if((()=>this.fieldValue&&Array.isArray(this.fieldValue))())try{const i=this.fieldValue.map(r=>JSON.parse(r));this.signaturePad.fromData(i),this.hasSignature(!0)}catch(i){null!=this.fieldValue[1]&&this.fieldValue[1].trim().length>0&&this.compressorBase30Service.pluginDecompressor(this.fieldValue[1],this.fieldValue[0],r=>{const o=this.convertStringDataToPoint(r).map(s=>Object.assign({dotSize:0,maxWidth:2.5,minWidth:.5},s));this.signaturePad.fromData(o),this.hasSignature(!0)})}else this.fieldValue&&"string"==typeof this.fieldValue&&this.compressorBase30Service.pluginDecompressor(this.fieldValue,"image/jsignature;base30",i=>{const r=this.convertStringDataToPoint(i);this.signaturePad.fromData(r),this.hasSignature(!0)})}convertStringDataToPoint(t){const i=[];for(let r=0;r<t.length;r++){const o=[];for(let s=0;s<t[r].x.length;s++)o.push({time:0,x:t[r].x[s],y:t[r].y[s]});i.push({penColor:this.penColor,points:o})}return i}resizeCanvas(){const t=this.signaturePad.toData(),i=Math.max(window.devicePixelRatio||1,1);this.cvSignature.nativeElement.width=this.cvSignature.nativeElement.offsetWidth*i,this.cvSignature.nativeElement.height=this.cvSignature.nativeElement.offsetHeight*i,this.cvSignature.nativeElement.getContext("2d").scale(i,i),this.signaturePad.fromData(t)}undo(){const t=this.signaturePad.toData();t&&(t.pop(),this.signaturePad.fromData(t),this.valueChanged(t)),(!t||0===t.length)&&this.hasSignature(!1)}setFieldActivation(){this.disabled?(this.elSignature.nativeElement.style.cursor="not-allowed",this.divUndo.nativeElement.style["pointer-events"]="none",this.cvSignature.nativeElement.style["pointer-events"]="none"):(this.elSignature.nativeElement.style.cursor="pointer",this.divUndo.nativeElement.style["pointer-events"]="auto",this.cvSignature.nativeElement.style["pointer-events"]="auto")}showToolTip(t,i,r){return r.offsetWidth<=i.scrollWidth}toggleTooltip(t){setTimeout(()=>{t.toggle()})}hasSignature(t){t?(this.divUndo.nativeElement.style.display="block",this.imgSignHere.nativeElement.style.display="none"):(this.divUndo.nativeElement.style.display="none",this.imgSignHere.nativeElement.style.display="block")}}return n.\u0275fac=function(t){return new(t||n)(v(lV),v(Jr),v(ye),v(XC),v(nD),v(cV))},n.\u0275cmp=Si({type:n,selectors:[["ng-component"]],viewQuery:function(t,i){if(1&t&&(Kr(U2,7),Kr(z2,7),Kr($2,7),Kr(G2,7)),2&t){let r;Qr(r=Yr())&&(i.elSignature=r.first),Qr(r=Yr())&&(i.cvSignature=r.first),Qr(r=Yr())&&(i.divUndo=r.first),Qr(r=Yr())&&(i.imgSignHere=r.first)}},inputs:{responsiveLayouts:"responsiveLayouts"},features:[J],decls:20,vars:14,consts:[[1,"signature-wrapper"],["formFieldContainer",""],[3,"click"],["labelContainer",""],[1,"labelToolTipContainer",3,"matTooltip","matTooltipDisabled"],["tooltip","matTooltip"],[1,"ft-signature",3,"ngClass"],[2,"border","2px dotted #000000","background-color","gray",3,"id"],["elSignature",""],["src","data:image/gif;base64,R0lGODlhtABJAOf/AAABAAACAAEEAAIFAQQHAgUIBAcJBQoJAAgLBwwLAAoMCA0MAA8OAwwPCxMQAA8RDRURABYSARITERMVBBQVExcXABgYAhYYFRkaBBwbABkaGB0cAR4dAhocGRsdGh8fBSIgAB0fHB4gHSAhHyQjBSckACIjISgmASQlIyooBSYnJSwpAC0qAC4rAS8rAikqKCssKjEuBTMvAC0uLDUwAjcyBS8xLzg0Bjs1ATIzMTw3Azk5BDQ2MzY3NTs7Bjw8Bzg5Nz49ADo7OUA/AkJABEJBBTw+O0RCBj5APUVECEdFAUFCQElGAkpIBERGQ0xKBk5LB09MCEdJRlJOAlNPA0pLSVRQBFZSBk1PTFdTB1hUCVtVAE9RTlxXAl5YBFJUUVRVU2BaBmFbCFZXVWJcCVZYVVlbWWZgAmhhBGliBVxeW15gXWxlCW1mC2BiX25nDHBoAXJqA2NlYnRrBmZnZXFuCGhpZ3NwCnRxDHVyAHdzAWxta3l1A3p2BW9xbnx4CX55DIB7AHN1coJ8AYN+A3Z4dXh6d4eBCYiCDImDDnt9eoyFAI2GAo6HA36AfZCJBoCCf4KEgZOLDJWND4WHhJiQAYiKh5qSBZ2UCouNip+VDqGXAI6QjaSaA5CSj6ecB5SWk6ieC6qfDq2hAJeZlq+jAJmbmLCkAqynBJyem66oCZ2fnLCqDaCin7StALKsEKOloriwA7qyCaeppry0DamrqL+2AL21EMG4AKyuq8O6Aq6wrca8CbCyr7O1ssm/EcvBAM3DALa4tc/EAri6t7q8udLHCdPIDr2/vNXKEtjMANrNAMDCvtvPAsLEwd3QB8PFwsXHxN/SDcfJxuHUEuTWAOXXAOfYAMvNyejaBc3PzOrcC9DSz+zdEOjgE+viANPV0uzjAO3kAO7lANfZ1vDnBvLoC9nb2PPpD/brAPTqEtze2/ftAPnuAPrvAN/h3vvwAPzxBeHk4P7yCeXn5Ofp5unr6Ovt6u7w7fHz8PP18vX49Pn7+Pv9+v7//P///yH5BAEKAP8ALAAAAAC0AEkAAAj+AP8JHEhQoL+DCAsqXMiwocOHECNKnEixosWHCDNq9Hexo8ePIEOKhHiwXiQVFy6M+EKJ2L2NHEfKnEmz5sWDoAgE2MmT50pLxfDBtEm0qNGQBzntpGJLnLhqqgAxqdAzgIkxmZDlG3q0q9evBqHt1DSvrFmz1VD1URKhqgozmZht3Qi2rl2QB8EEGHS2r19qo/QcadtThRpO0OZqvMu4cUN/8ggs8Oa3cmVpovAQYVAVxhpP0fZxdUy6rr9ZAaxYXm053rJPdYIsqDrDDahpoumW3m3zoKAAiVgLXx1P2ac5O2bzJGBDDils/Ebznt7x4JIAt4ZrZ93u2KY3OJT+7ySQgw4pbdF1U19P0l+DAOK2yxfezpgmNjUM9DTQw04qbuktxt6ABPlDTgAnzKegdu0Ec0kaNOjEkwFA7NEKOAFmROB6/sASwBYLhrgdO8BUckYMEu5kgBB+XNiPdBvadZAfATQi4o3ysfPLJGK4UJUCRvgBCzkwxRSjVwcZEQAuODY5Hzq8SOIFC1U1gIQgs5xT5JFF+dOPAgGY4+SYCpqDSyNdnFDVA0sUUss6W3I5kj/gBMACmXiGWI4ti2hBQlUSOGFILu/EKedNrQQQBoOjeEHCCTggUk2eeYpDSyJXgFAVBVIosos8hh6KkT97BCDJcMrQUFUABPBV1ij+kuASDqVOhiMLIlRwUNUFVTjSCz2hilqgP0AEwItw3nAmwyeyGCPLGZzNKk5PJMARizq0OulNLINEsUFVHWABiS/1wHioP/wYQAC2rNURwAbs9IXOpGUhEl5PCzShSrZkbuPKIE1YAC4XkQhjj7kE+sNNADIM10UAOmz3RAAuELaAX7h4EYQYyfAb4jVRTVWVCCy5hDBv/qQSwBnDfbITFLzEw1o8beHSjix1kGUWOmhUlUV8HouYVh9JEOYTGEAJpV5pB9kRQCXaLUIYBnrQ61cwARgQr1/WUBkAEYPgsJMMMs8jjhixBB0iYHoQAUFVJpSRlWIaNnYQDwEEs13+OYhQtdOpfjESwA+VlePjAqiUFU8lEBhA2Tx/BBDBNWrjiNkdm7llBidynUwUugYY0M587GiSwk6b+MVEAH/41c7qBhx7VjfSmJXFTnNY1s4zlcvn2nGyVfXCYdDo4/mc2ARQQ4jtTBEAB6Ob1c5ssvilyU6fCFfDTgsA3RcgAYjS+4LtKNMJcuLt5BlouR3UJSkBsMFaNY1E3xc1O1Fz1jE7odOXOBNg3XDeph9EVMZ5YhgfjrrznXstpzbEcF9NDiKHAOjMMnkIQO78soydUM4sowgACfwSuQ+UbTXd+FsALLC1s2hhZasJRgWyp0AG2Qc/+mFVLiQ4k4PkIAD+xmDN9QjQCfvNgx3OO0JfBhEAKvjlT3yJxzV4MYpYKINdZZFFADAQjxhY0C8Tc1Vl4BAAPdSQfMHAA6t2wcM57UMyRnSdFXaygUFIAhF/+BYBZGeWK+ylL1gLQDW8UYJVVYAJ35jHIpo4D1QEIAUnLIuaLugXL7piNaJg0hktw0QC9KKNSJlGAHAwnHZ84garcoHezhKPAFbvLJUIwA7mUY309SSIL2TEPOLho0tKTydpq8y04GMZl4FoHrwAAR4GYUdVdOOMnfQFKD/iD1AEAA7yAUYf0JAFQMTCfq7AwRHmGABVeG8eTCRCWcTRjXCUgx3HKGBZ/qTJUzDMfs/+2EnHKqOKANBgNTsIAA3fsCoCMOET/hsf+AwgjGnexB9uCEAnxjSHVQVAmWXRgyxd9wM7jS6FASiH4nwEuHm8ImtxNIsa72CZcuzkcVF4JBSsEIRv7YQBzxxfH7IWQSN55CAzCIAyxsQOUSxiDle4gXIWMDpXBKACH1zn6rBTln6C4CwhXMAHGxGAG6yGCAFIXGW0iAGz+IiGZflFG2o2D2kwgQiJ2Ce/NGqAYjiUIge5ADFpFY9njOIXZVHHtzbQh1GoQg8YYFXqyrLTKbBSVVooSxoC8IbVtKV2lWHiFcryjZ1g9izt+GAbejKFofLrDllDxl0lkte9Vu4ZNu3+SQReWZYg/PEswNhJ9WyL1r5cg1W8CEYwjrEMb0RvdVBr5LuEY9smyGA8tPCLLS5xjWpYI6XyqagBVOvTihykA0JVoDk2oYQayOCgWJwHOoDpl9GWQB2c4R0/LbqTCaRAP8soCxkXxZpvMWkUbWGAac2iqZ58YA6rVFBFFcCM1Y6KDhrc5Gq0yIAWmkUcVAmD5FZDxgq4gAUpOMEG0rcBswagDso451nMsRNrlOUaqwPB445IX4qNYkEEVQA0HOwQOgVgAQmW8FmWEYHWVcZlO2nCaqgkvr6UQxoa5q8yqrIAEhBBDJOI3kktAFoqya8s0mDVNr6xDWBcAqwB+ED+iNgQAAVEg8cMOYgaJMdHIZvFwn45wk4mYZltvNQyvC2LyxaQ2FVpcrT8NYsjSyxoO/nlGo3Y14LiMdkGTAPOC0HXF3aCg0ocA7t29m0MIpBTv7jsn5Z5G2bPEIA2zKMd1aBiI+Zwh6396cZnwdrFJNtqSsWD1Q3ABqYVgi5H6JV7OoBDJ5QBajujQ6SWYbUZK5NCppaFyazJpwGgXRZ0xPROkgwArvMUDzEE4AHC7i5r0VULN8wgRT/2wRw+oYxIhno1p7OFZXBBsbK0QyefrYwkdlKDJkxBC10IoEBfvJNS56kdXgiABLQx7IJoZB/R8MQaYEDlINThE8+w973+y4IHKoD6elkoizX6x5rbWdQCTZ4HVxFEBC/ooRKqCEaz5wNxiXOj4sTeiD6gwQk1vKAqDCACHkYR8JGvhomAKEtud43vAExBQgsYRDAi+TD6qnNM7diCz4H+mI3kgxmZMIMKqhKBI+hhFPpzul+OsQV6hYNVbfgFnsvCjp08IxheS0Mcv7UIo87BCjhIrGPJ1I4XUgAcZG+PRvCBDEuMwQRsV0IfUGE1uZ+F1eNJgRYG8YnoGQOlR3TXh+wXZteaReRNasccLwB5dcsEJvggBiW+IIKqHBIQqoiq3F+xBaP9rdGoLgsTI9xocFeuHVQIwAWIZPsJbuQewqAEFzz+UBULNAEQr9iG3OszikFsQQmmdVkd+hLxALwyEQFQ8vjaEVMNaKn6XdpIPXwBCSyAtycbAAWDEAsO53m8kFB3ZlslUBYVlUAK1A4T0wH35xgwQQ+94AhVcGw8sQFTQAixkEie5xfhQARpkFEBwAQz1jvs0AQB0AFwgn9gUSTykAuKIAUSUBUgYAWIIAsqFoLzcAsqQgRwoAm/kIL8wg6rEwKFAoN3USTvkAuG4AQ32BMgkAWLcAs9OHKvoCZVwQI7R1RJEAAisIQbUiTrUAuFsATv0RMlsAWMgAvcNnLPIAlioANtEQFiojbqoGcjACpMiDIwcQ6zIAhIACY9kQL+XRAreeh03rCIaoMOYGUCfigs/1Ak5AALfmAEhsgTLOAFknCAPsgv1bAIPhIAKFAuf1iGG9EP4NAKewAEOcQTLoBlv5BeoRgi3TAJAbUTDeAGxBAglBhnG8EP3LAKdtADscgqMXAGlQAMe3eLliEOmqBnKlIGu9A+qRiMlTiM2mAKdJAD8EYANJAGl6Bz0NgX5vAJTyAhBIAFs0A32vhTw4gNpCAHNgBvBlADbKAJxvCFm8QOqqAF4uEEq6A0kRePPbYR+zANoOBuVIYDbbAJn2Zn7RALYsAZO2EEoICKB4mQeKWQGWd0VJZsy+aPYxIPuMAGRpMDmeCHHemR1GS+ds5QdGuHL/JGb7DXJMBQB7H1ApBwfy8Jkz1kdsiQCWWAAh33cSGHI8fwB3+yEyZgCD9XN0LJHrhXDJYABpjXE0m3dE3HGtIwCKXYgn5waVRZlVwCE/ege7zHdm4Hd5UBaduzExJAB8jwIgmBlggJE/YgDJHABf/HExGgeaigDJVgW7yoBsKQIXrZmNuoEfvnCFigARZlAGCQC9jomJppcRshD72gCFXQAVUAC/C4maaZaUWSl6e5mgkZlBYREAA7","alt","sign here",1,"sign-here"],["imgSignHere",""],[3,"id"],["cvSignature",""],[1,"undo-wrapper"],["divUndo",""],["type","button","mat-raised-button","","color","primary",3,"disabled","click"]],template:function(t,i){if(1&t){const r=function iy(){return C()}();Yt(0,"div",0,1),Yt(2,"mat-label",2,3),dt("click",function(){!function om(n){return L.lFrame.contextLView=n,n[8]}(r);const s=es(6);return i.toggleTooltip(s)}),ns(4),Zt(),Hr(5,"div",4,5),Yt(7,"div",6),Yt(8,"div",7,8),Hr(10,"img",9,10),Hr(12,"canvas",11,12),Yt(14,"div",13,14),Yt(16,"button",15),dt("click",function(){return i.undo()}),Yt(17,"mat-icon"),ns(18,"undo"),Zt(),ns(19," Undo Last Stroke "),Zt(),Zt(),Zt(),Zt(),Zt()}if(2&t){const r=es(1),o=es(3),s=es(6);bn(2),Dy(null!=i.componentDefinition&&i.componentDefinition.mandatory?"mandatory":""),bn(2),$a(" ",null==i.componentDefinition?null:i.componentDefinition.label," "),bn(1),Sd("matTooltip",i.componentDefinition.label),Un("matTooltipDisabled",i.showToolTip(s,r,o)),bn(2),Un("ngClass",function Fv(n,e,t,i){return Rv(C(),et(),n,e,t,i)}(12,W2,i.disabled)),bn(1),Un("id",i.fieldName),bn(4),Ua("pointer-events",i.disabled?"none":"auto"),Un("id","cv"+i.fieldName),bn(4),Un("disabled",i.disabled)}},directives:[Pj,XH,$h,l2,j2],styles:["html.touch #content{float:left;width:92%}html.touch #scrollgrabber{float:right;width:4%;margin-right:2%;background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAAFCAAAAACh79lDAAAAAXNSR0IArs4c6QAAABJJREFUCB1jmMmQxjCT4T/DfwAPLgOXlrt3IwAAAABJRU5ErkJggg==)}html.borderradius #scrollgrabber{border-radius:1em}.signature-wrapper .ft-signature{margin-top:5px;margin-bottom:10px}@media screen and (max-width: 520.98px){.signature-wrapper .ft-signature{margin:0}}.signature-wrapper canvas{background-color:transparent!important;touch-action:none;min-height:200px!important;width:100%}.signature-wrapper .sign-here{position:absolute;min-width:90px!important;max-width:180px!important;width:8%!important;-webkit-user-drag:none;-webkit-user-select:none;user-select:none;pointer-events:none}.signature-wrapper .undo-wrapper{display:none;touch-action:none;position:relative;padding:0!important;margin:-1.5em 0 1.5em!important;width:100%!important;height:0!important;text-align:center}.signature-wrapper .undo-wrapper button{position:relative;top:auto;margin:-9px 0 0!important}\n"],encapsulation:2,changeDetection:0}),n})();let fS=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=pe({type:n}),n.\u0275inj=ce({imports:[[ql]]}),n})(),Q2=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=pe({type:n}),n.\u0275inj=ce({providers:[wj],imports:[[fS,mp,dn],fS,mp]}),n})();const Z2=new class Y2 extends cn{}(class K2 extends Nl{constructor(e,t){super(e,t),this.scheduler=e,this.work=t}schedule(e,t=0){return t>0?super.schedule(e,t):(this.delay=t,this.state=e,this.scheduler.flush(this),this)}execute(e,t){return t>0||this.closed?super.execute(e,t):this._execute(e,t)}requestAsyncId(e,t,i=0){return null!==i&&i>0||null===i&&this.delay>0?super.requestAsyncId(e,t,i):e.flush(this)}});class Ht{constructor(e,t,i){this.kind=e,this.value=t,this.error=i,this.hasValue="N"===e}observe(e){switch(this.kind){case"N":return e.next&&e.next(this.value);case"E":return e.error&&e.error(this.error);case"C":return e.complete&&e.complete()}}do(e,t,i){switch(this.kind){case"N":return e&&e(this.value);case"E":return t&&t(this.error);case"C":return i&&i()}}accept(e,t,i){return e&&"function"==typeof e.next?this.observe(e):this.do(e,t,i)}toObservable(){switch(this.kind){case"N":return An(this.value);case"E":return Xw(this.error);case"C":return Pw()}throw new Error("unexpected notification kind value")}static createNext(e){return void 0!==e?new Ht("N",e):Ht.undefinedValueNotification}static createError(e){return new Ht("E",void 0,e)}static createComplete(){return Ht.completeNotification}}Ht.completeNotification=new Ht("C"),Ht.undefinedValueNotification=new Ht("N",void 0);class Sc extends ve{constructor(e,t,i=0){super(e),this.scheduler=t,this.delay=i}static dispatch(e){const{notification:t,destination:i}=e;t.observe(i),this.unsubscribe()}scheduleMessage(e){this.destination.add(this.scheduler.schedule(Sc.dispatch,this.delay,new J2(e,this.destination)))}_next(e){this.scheduleMessage(Ht.createNext(e))}_error(e){this.scheduleMessage(Ht.createError(e)),this.unsubscribe()}_complete(){this.scheduleMessage(Ht.createComplete()),this.unsubscribe()}}class J2{constructor(e,t){this.notification=e,this.destination=t}}class eU extends Pe{constructor(e=Number.POSITIVE_INFINITY,t=Number.POSITIVE_INFINITY,i){super(),this.scheduler=i,this._events=[],this._infiniteTimeWindow=!1,this._bufferSize=e<1?1:e,this._windowTime=t<1?1:t,t===Number.POSITIVE_INFINITY?(this._infiniteTimeWindow=!0,this.next=this.nextInfiniteTimeWindow):this.next=this.nextTimeWindow}nextInfiniteTimeWindow(e){if(!this.isStopped){const t=this._events;t.push(e),t.length>this._bufferSize&&t.shift()}super.next(e)}nextTimeWindow(e){this.isStopped||(this._events.push(new tU(this._getNow(),e)),this._trimBufferThenGetEvents()),super.next(e)}_subscribe(e){const t=this._infiniteTimeWindow,i=t?this._events:this._trimBufferThenGetEvents(),r=this.scheduler,o=i.length;let s;if(this.closed)throw new Di;if(this.isStopped||this.hasError?s=se.EMPTY:(this.observers.push(e),s=new xp(this,e)),r&&e.add(e=new Sc(e,r)),t)for(let a=0;a<o&&!e.closed;a++)e.next(i[a]);else for(let a=0;a<o&&!e.closed;a++)e.next(i[a].value);return this.hasError?e.error(this.thrownError):this.isStopped&&e.complete(),s}_getNow(){return(this.scheduler||Z2).now()}_trimBufferThenGetEvents(){const e=this._getNow(),t=this._bufferSize,i=this._windowTime,r=this._events,o=r.length;let s=0;for(;s<o&&!(e-r[s].time<i);)s++;return o>t&&(s=Math.max(s,o-t)),s>0&&r.splice(0,s),r}}class tU{constructor(e,t){this.time=e,this.value=t}}function pS(n,e){return"function"==typeof e?t=>t.pipe(pS((i,r)=>Ys(n(i,r)).pipe(Ue((o,s)=>e(i,o,r,s))))):t=>t.lift(new nU(n))}class nU{constructor(e){this.project=e}call(e,t){return t.subscribe(new iU(e,this.project))}}class iU extends Co{constructor(e,t){super(e),this.project=t,this.index=0}_next(e){let t;const i=this.index++;try{t=this.project(e,i)}catch(r){return void this.destination.error(r)}this._innerSub(t)}_innerSub(e){const t=this.innerSubscription;t&&t.unsubscribe();const i=new bo(this),r=this.destination;r.add(i),this.innerSubscription=Eo(e,i),this.innerSubscription!==i&&r.add(this.innerSubscription)}_complete(){const{innerSubscription:e}=this;(!e||e.closed)&&super._complete(),this.unsubscribe()}_unsubscribe(){this.innerSubscription=void 0}notifyComplete(){this.innerSubscription=void 0,this.isStopped&&super._complete()}notifyNext(e){this.destination.next(e)}}const Mc={schedule(n,e){const t=setTimeout(n,e);return()=>clearTimeout(t)},scheduleBeforeRender(n){if("undefined"==typeof window)return Mc.schedule(n,0);if(void 0===window.requestAnimationFrame)return Mc.schedule(n,16);const e=window.requestAnimationFrame(n);return()=>window.cancelAnimationFrame(e)}};let Dp;function fU(n,e,t){let i=t;return function sU(n){return!!n&&n.nodeType===Node.ELEMENT_NODE}(n)&&e.some((r,o)=>!("*"===r||!function lU(n,e){if(!Dp){const t=Element.prototype;Dp=t.matches||t.matchesSelector||t.mozMatchesSelector||t.msMatchesSelector||t.oMatchesSelector||t.webkitMatchesSelector}return n.nodeType===Node.ELEMENT_NODE&&Dp.call(n,e)}(n,r)||(i=o,0))),i}class mU{constructor(e,t){this.componentFactory=t.get($n).resolveComponentFactory(e)}create(e){return new gU(this.componentFactory,e)}}class gU{constructor(e,t){this.componentFactory=e,this.injector=t,this.eventEmitters=new eU(1),this.events=this.eventEmitters.pipe(pS(i=>Oc(...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(oe),this.elementZone="undefined"==typeof Zone?null:this.ngZone.run(()=>Zone.current)}connect(e){this.runInZone(()=>{if(null!==this.scheduledDestroyFn)return this.scheduledDestroyFn(),void(this.scheduledDestroyFn=null);null===this.componentRef&&this.initializeComponent(e)})}disconnect(){this.runInZone(()=>{null===this.componentRef||null!==this.scheduledDestroyFn||(this.scheduledDestroyFn=Mc.schedule(()=>{null!==this.componentRef&&(this.componentRef.destroy(),this.componentRef=null,this.viewChangeDetectorRef=null)},10))})}getInputValue(e){return this.runInZone(()=>null===this.componentRef?this.initialInputValues.get(e):this.componentRef.instance[e])}setInputValue(e,t){this.runInZone(()=>{null!==this.componentRef?function cU(n,e){return n===e||n!=n&&e!=e}(t,this.getInputValue(e))&&(void 0!==t||!this.unchangedInputs.has(e))||(this.recordInputChange(e,t),this.unchangedInputs.delete(e),this.hasInputChanges=!0,this.componentRef.instance[e]=t,this.scheduleDetectChanges()):this.initialInputValues.set(e,t)})}initializeComponent(e){const t=re.create({providers:[],parent:this.injector}),i=function hU(n,e){const t=n.childNodes,i=e.map(()=>[]);let r=-1;e.some((o,s)=>"*"===o&&(r=s,!0));for(let o=0,s=t.length;o<s;++o){const a=t[o],l=fU(a,e,r);-1!==l&&i[l].push(a)}return i}(e,this.componentFactory.ngContentSelectors);this.componentRef=this.componentFactory.create(t,i,e),this.viewChangeDetectorRef=this.componentRef.injector.get(Jr),this.implementsOnChanges=function aU(n){return"function"==typeof n}(this.componentRef.instance.ngOnChanges),this.initializeInputs(),this.initializeOutputs(this.componentRef),this.detectChanges(),this.injector.get(Hi).attachView(this.componentRef.hostView)}initializeInputs(){this.componentFactory.inputs.forEach(({propName:e})=>{this.initialInputValues.has(e)&&this.setInputValue(e,this.initialInputValues.get(e))}),this.initialInputValues.clear()}initializeOutputs(e){const t=this.componentFactory.outputs.map(({propName:i,templateName:r})=>e.instance[i].pipe(Ue(s=>({name:r,value:s}))));this.eventEmitters.next(t)}callNgOnChanges(e){if(!this.implementsOnChanges||null===this.inputChanges)return;const t=this.inputChanges;this.inputChanges=null,e.instance.ngOnChanges(t)}markViewForCheck(e){this.hasInputChanges&&(this.hasInputChanges=!1,e.markForCheck())}scheduleDetectChanges(){this.scheduledChangeDetectionFn||(this.scheduledChangeDetectionFn=Mc.scheduleBeforeRender(()=>{this.scheduledChangeDetectionFn=null,this.detectChanges()}))}recordInputChange(e,t){if(!this.implementsOnChanges)return;null===this.inputChanges&&(this.inputChanges={});const i=this.inputChanges[e];if(i)return void(i.currentValue=t);const r=this.unchangedInputs.has(e),o=r?void 0:this.getInputValue(e);this.inputChanges[e]=new Gc(o,t,r)}detectChanges(){null!==this.componentRef&&(this.callNgOnChanges(this.componentRef),this.markViewForCheck(this.viewChangeDetectorRef),this.componentRef.changeDetectorRef.detectChanges())}runInZone(e){return this.elementZone&&Zone.current!==this.elementZone?this.ngZone.run(e):e()}}class _U extends HTMLElement{constructor(){super(...arguments),this.ngElementEventsSubscription=null}}let vU=(()=>{class n{constructor(t){this.fbInjectorService=t,this.convertToCustomElement=(i,r,o,s,a,l)=>{if(s&&this.fbInjectorService.isAngularJSCore()&&(r+=s),a||(a="NOT-SET"),!customElements.get(r)){const c=function yU(n,e){const t=function dU(n,e){return e.get($n).resolveComponentFactory(n).inputs}(n,e.injector),i=e.strategyFactory||new mU(n,e.injector),r=function uU(n){const e={};return n.forEach(({propName:t,templateName:i})=>{e[function rU(n){return n.replace(/[A-Z]/g,e=>`-${e.toLowerCase()}`)}(i)]=t}),e}(t);class o extends _U{constructor(a){super(),this.injector=a}get ngElementStrategy(){if(!this._ngElementStrategy){const a=this._ngElementStrategy=i.create(this.injector||e.injector);t.forEach(({propName:l})=>{if(!this.hasOwnProperty(l))return;const c=this[l];delete this[l],a.setInputValue(l,c)})}return this._ngElementStrategy}attributeChangedCallback(a,l,c,u){this.ngElementStrategy.setInputValue(r[a],c)}connectedCallback(){let a=!1;this.ngElementStrategy.events&&(this.subscribeToEvents(),a=!0),this.ngElementStrategy.connect(this),a||this.subscribeToEvents()}disconnectedCallback(){this._ngElementStrategy&&this._ngElementStrategy.disconnect(),this.ngElementEventsSubscription&&(this.ngElementEventsSubscription.unsubscribe(),this.ngElementEventsSubscription=null)}subscribeToEvents(){this.ngElementEventsSubscription=this.ngElementStrategy.events.subscribe(a=>{const l=function oU(n,e,t){if("function"!=typeof CustomEvent){const o=n.createEvent("CustomEvent");return o.initCustomEvent(e,!1,!1,t),o}return new CustomEvent(e,{bubbles:!1,cancelable:!1,detail:t})}(this.ownerDocument,a.name,a.value);this.dispatchEvent(l)})}}return o.observedAttributes=Object.keys(r),t.forEach(({propName:s})=>{Object.defineProperty(o.prototype,s,{get(){return this.ngElementStrategy.getInputValue(s)},set(a){this.ngElementStrategy.setInputValue(s,a)},configurable:!0,enumerable:!0})}),o}(i,{injector:o}),u=c.prototype.connectedCallback||function(){};c.prototype.connectedCallback=function(){this.setAttribute("fb-component-version",a),l&&(this.setAttribute("is-static-panel",l.isStaticPanel),this.setAttribute("is-collapsible-panel",l.isCollapsiblePanel)),u.call(this)},customElements.define(r,c)}}}}return n.\u0275fac=function(t){return new(t||n)(b(af))},n.\u0275prov=I({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),bU=(()=>{class n{constructor(t,i){this.injector=t,this.customElementService=i,i.convertToCustomElement(dS,"sc-signature",this.injector,"-ng","7.1.13.1"),i.convertToCustomElement(dS,"sc-signature-web-component",this.injector,null,"7.1.13.1")}}return n.\u0275fac=function(t){return new(t||n)(b(re),b(vU))},n.\u0275mod=pe({type:n}),n.\u0275inj=ce({imports:[[As,oV,c2,H2,Q2,mp,t2]]}),n})(),CU=(()=>{class n{constructor(){}ngDoBootstrap(){}}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=pe({type:n}),n.\u0275inj=ce({providers:[],imports:[[As,Y1,bU]]}),n})();(function XR(){if(yb)throw new Error("Cannot enable prod mode after platform setup.");_b=!1})(),Q1().bootstrapModule(CU).catch(n=>console.error(n))}},Xn=>{Xn(Xn.s=531)}]);
2
2
  //# sourceMappingURL=main.js.map