@pepperi-addons/ngx-lib-react 0.0.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.
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunkngx_lib_elements=self.webpackChunkngx_lib_elements||[]).push([[179],{67:()=>{function fe(n){return"function"==typeof n}function ro(n){const e=n(i=>{Error.call(i),i.stack=(new Error).stack});return e.prototype=Object.create(Error.prototype),e.prototype.constructor=e,e}const $a=ro(n=>function(e){n(this),this.message=e?`${e.length} errors occurred during unsubscription:\n${e.map((i,r)=>`${r+1}) ${i.toString()}`).join("\n ")}`:"",this.name="UnsubscriptionError",this.errors=e});function Kr(n,t){if(n){const e=n.indexOf(t);0<=e&&n.splice(e,1)}}class Ge{constructor(t){this.initialTeardown=t,this.closed=!1,this._parentage=null,this._finalizers=null}unsubscribe(){let t;if(!this.closed){this.closed=!0;const{_parentage:e}=this;if(e)if(this._parentage=null,Array.isArray(e))for(const s of e)s.remove(this);else e.remove(this);const{initialTeardown:i}=this;if(fe(i))try{i()}catch(s){t=s instanceof $a?s.errors:[s]}const{_finalizers:r}=this;if(r){this._finalizers=null;for(const s of r)try{D1(s)}catch(o){t=t??[],o instanceof $a?t=[...t,...o.errors]:t.push(o)}}if(t)throw new $a(t)}}add(t){var e;if(t&&t!==this)if(this.closed)D1(t);else{if(t instanceof Ge){if(t.closed||t._hasParent(this))return;t._addParent(this)}(this._finalizers=null!==(e=this._finalizers)&&void 0!==e?e:[]).push(t)}}_hasParent(t){const{_parentage:e}=this;return e===t||Array.isArray(e)&&e.includes(t)}_addParent(t){const{_parentage:e}=this;this._parentage=Array.isArray(e)?(e.push(t),e):e?[e,t]:t}_removeParent(t){const{_parentage:e}=this;e===t?this._parentage=null:Array.isArray(e)&&Kr(e,t)}remove(t){const{_finalizers:e}=this;e&&Kr(e,t),t instanceof Ge&&t._removeParent(this)}}Ge.EMPTY=(()=>{const n=new Ge;return n.closed=!0,n})();const E1=Ge.EMPTY;function C1(n){return n instanceof Ge||n&&"closed"in n&&fe(n.remove)&&fe(n.add)&&fe(n.unsubscribe)}function D1(n){fe(n)?n():n.unsubscribe()}const lr={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1},Ya={setTimeout(n,t,...e){const{delegate:i}=Ya;return i?.setTimeout?i.setTimeout(n,t,...e):setTimeout(n,t,...e)},clearTimeout(n){const{delegate:t}=Ya;return(t?.clearTimeout||clearTimeout)(n)},delegate:void 0};function M1(n){Ya.setTimeout(()=>{const{onUnhandledError:t}=lr;if(!t)throw n;t(n)})}function Uu(){}const TC=$u("C",void 0,void 0);function $u(n,t,e){return{kind:n,value:t,error:e}}let cr=null;function Ga(n){if(lr.useDeprecatedSynchronousErrorHandling){const t=!cr;if(t&&(cr={errorThrown:!1,error:null}),n(),t){const{errorThrown:e,error:i}=cr;if(cr=null,e)throw i}}else n()}class Yu extends Ge{constructor(t){super(),this.isStopped=!1,t?(this.destination=t,C1(t)&&t.add(this)):this.destination=kC}static create(t,e,i){return new so(t,e,i)}next(t){this.isStopped?Wu(function xC(n){return $u("N",n,void 0)}(t),this):this._next(t)}error(t){this.isStopped?Wu(function IC(n){return $u("E",void 0,n)}(t),this):(this.isStopped=!0,this._error(t))}complete(){this.isStopped?Wu(TC,this):(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe(),this.destination=null)}_next(t){this.destination.next(t)}_error(t){try{this.destination.error(t)}finally{this.unsubscribe()}}_complete(){try{this.destination.complete()}finally{this.unsubscribe()}}}const RC=Function.prototype.bind;function Gu(n,t){return RC.call(n,t)}class OC{constructor(t){this.partialObserver=t}next(t){const{partialObserver:e}=this;if(e.next)try{e.next(t)}catch(i){Wa(i)}}error(t){const{partialObserver:e}=this;if(e.error)try{e.error(t)}catch(i){Wa(i)}else Wa(t)}complete(){const{partialObserver:t}=this;if(t.complete)try{t.complete()}catch(e){Wa(e)}}}class so extends Yu{constructor(t,e,i){let r;if(super(),fe(t)||!t)r={next:t??void 0,error:e??void 0,complete:i??void 0};else{let s;this&&lr.useDeprecatedNextContext?(s=Object.create(t),s.unsubscribe=()=>this.unsubscribe(),r={next:t.next&&Gu(t.next,s),error:t.error&&Gu(t.error,s),complete:t.complete&&Gu(t.complete,s)}):r=t}this.destination=new OC(r)}}function Wa(n){lr.useDeprecatedSynchronousErrorHandling?function AC(n){lr.useDeprecatedSynchronousErrorHandling&&cr&&(cr.errorThrown=!0,cr.error=n)}(n):M1(n)}function Wu(n,t){const{onStoppedNotification:e}=lr;e&&Ya.setTimeout(()=>e(n,t))}const kC={closed:!0,next:Uu,error:function FC(n){throw n},complete:Uu},Ku="function"==typeof Symbol&&Symbol.observable||"@@observable";function Ni(n){return n}let Te=(()=>{class n{constructor(e){e&&(this._subscribe=e)}lift(e){const i=new n;return i.source=this,i.operator=e,i}subscribe(e,i,r){const s=function NC(n){return n&&n instanceof Yu||function LC(n){return n&&fe(n.next)&&fe(n.error)&&fe(n.complete)}(n)&&C1(n)}(e)?e:new so(e,i,r);return Ga(()=>{const{operator:o,source:a}=this;s.add(o?o.call(s,a):a?this._subscribe(s):this._trySubscribe(s))}),s}_trySubscribe(e){try{return this._subscribe(e)}catch(i){e.error(i)}}forEach(e,i){return new(i=T1(i))((r,s)=>{const o=new so({next:a=>{try{e(a)}catch(l){s(l),o.unsubscribe()}},error:s,complete:r});this.subscribe(o)})}_subscribe(e){var i;return null===(i=this.source)||void 0===i?void 0:i.subscribe(e)}[Ku](){return this}pipe(...e){return function S1(n){return 0===n.length?Ni:1===n.length?n[0]:function(e){return n.reduce((i,r)=>r(i),e)}}(e)(this)}toPromise(e){return new(e=T1(e))((i,r)=>{let s;this.subscribe(o=>s=o,o=>r(o),()=>i(s))})}}return n.create=t=>new n(t),n})();function T1(n){var t;return null!==(t=n??lr.Promise)&&void 0!==t?t:Promise}const PC=ro(n=>function(){n(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"});let le=(()=>{class n extends Te{constructor(){super(),this.closed=!1,this.currentObservers=null,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift(e){const i=new I1(this,this);return i.operator=e,i}_throwIfClosed(){if(this.closed)throw new PC}next(e){Ga(()=>{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(const i of this.currentObservers)i.next(e)}})}error(e){Ga(()=>{if(this._throwIfClosed(),!this.isStopped){this.hasError=this.isStopped=!0,this.thrownError=e;const{observers:i}=this;for(;i.length;)i.shift().error(e)}})}complete(){Ga(()=>{if(this._throwIfClosed(),!this.isStopped){this.isStopped=!0;const{observers:e}=this;for(;e.length;)e.shift().complete()}})}unsubscribe(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null}get observed(){var e;return(null===(e=this.observers)||void 0===e?void 0:e.length)>0}_trySubscribe(e){return this._throwIfClosed(),super._trySubscribe(e)}_subscribe(e){return this._throwIfClosed(),this._checkFinalizedStatuses(e),this._innerSubscribe(e)}_innerSubscribe(e){const{hasError:i,isStopped:r,observers:s}=this;return i||r?E1:(this.currentObservers=null,s.push(e),new Ge(()=>{this.currentObservers=null,Kr(s,e)}))}_checkFinalizedStatuses(e){const{hasError:i,thrownError:r,isStopped:s}=this;i?e.error(r):s&&e.complete()}asObservable(){const e=new Te;return e.source=this,e}}return n.create=(t,e)=>new I1(t,e),n})();class I1 extends le{constructor(t,e){super(),this.destination=t,this.source=e}next(t){var e,i;null===(i=null===(e=this.destination)||void 0===e?void 0:e.next)||void 0===i||i.call(e,t)}error(t){var e,i;null===(i=null===(e=this.destination)||void 0===e?void 0:e.error)||void 0===i||i.call(e,t)}complete(){var t,e;null===(e=null===(t=this.destination)||void 0===t?void 0:t.complete)||void 0===e||e.call(t)}_subscribe(t){var e,i;return null!==(i=null===(e=this.source)||void 0===e?void 0:e.subscribe(t))&&void 0!==i?i:E1}}function x1(n){return fe(n?.lift)}function We(n){return t=>{if(x1(t))return t.lift(function(e){try{return n(e,this)}catch(i){this.error(i)}});throw new TypeError("Unable to lift unknown Observable type")}}function Pe(n,t,e,i,r){return new VC(n,t,e,i,r)}class VC extends Yu{constructor(t,e,i,r,s,o){super(t),this.onFinalize=s,this.shouldUnsubscribe=o,this._next=e?function(a){try{e(a)}catch(l){t.error(l)}}:super._next,this._error=r?function(a){try{r(a)}catch(l){t.error(l)}finally{this.unsubscribe()}}:super._error,this._complete=i?function(){try{i()}catch(a){t.error(a)}finally{this.unsubscribe()}}:super._complete}unsubscribe(){var t;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){const{closed:e}=this;super.unsubscribe(),!e&&(null===(t=this.onFinalize)||void 0===t||t.call(this))}}}function K(n,t){return We((e,i)=>{let r=0;e.subscribe(Pe(i,s=>{i.next(n.call(t,s,r++))}))})}function Pi(n){return this instanceof Pi?(this.v=n,this):new Pi(n)}function O1(n,t,e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r,i=e.apply(n,t||[]),s=[];return r=Object.create(("function"==typeof AsyncIterator?AsyncIterator:Object).prototype),a("next"),a("throw"),a("return",function o(p){return function(g){return Promise.resolve(g).then(p,d)}}),r[Symbol.asyncIterator]=function(){return this},r;function a(p,g){i[p]&&(r[p]=function(m){return new Promise(function(y,b){s.push([p,m,y,b])>1||l(p,m)})},g&&(r[p]=g(r[p])))}function l(p,g){try{!function c(p){p.value instanceof Pi?Promise.resolve(p.value.v).then(u,d):h(s[0][2],p)}(i[p](g))}catch(m){h(s[0][3],m)}}function u(p){l("next",p)}function d(p){l("throw",p)}function h(p,g){p(g),s.shift(),s.length&&l(s[0][0],s[0][1])}}function F1(n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e,t=n[Symbol.asyncIterator];return t?t.call(n):(n=function Qu(n){var t="function"==typeof Symbol&&Symbol.iterator,e=t&&n[t],i=0;if(e)return e.call(n);if(n&&"number"==typeof n.length)return{next:function(){return n&&i>=n.length&&(n=void 0),{value:n&&n[i++],done:!n}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}(n),e={},i("next"),i("throw"),i("return"),e[Symbol.asyncIterator]=function(){return this},e);function i(s){e[s]=n[s]&&function(o){return new Promise(function(a,l){!function r(s,o,a,l){Promise.resolve(l).then(function(c){s({value:c,done:a})},o)}(a,l,(o=n[s](o)).done,o.value)})}}}"function"==typeof SuppressedError&&SuppressedError;const ed=n=>n&&"number"==typeof n.length&&"function"!=typeof n;function k1(n){return fe(n?.then)}function L1(n){return fe(n[Ku])}function N1(n){return Symbol.asyncIterator&&fe(n?.[Symbol.asyncIterator])}function P1(n){return new TypeError(`You provided ${null!==n&&"object"==typeof n?"an invalid object":`'${n}'`} where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.`)}const V1=function dD(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}();function B1(n){return fe(n?.[V1])}function H1(n){return O1(this,arguments,function*(){const e=n.getReader();try{for(;;){const{value:i,done:r}=yield Pi(e.read());if(r)return yield Pi(void 0);yield yield Pi(i)}}finally{e.releaseLock()}})}function z1(n){return fe(n?.getReader)}function Gt(n){if(n instanceof Te)return n;if(null!=n){if(L1(n))return function hD(n){return new Te(t=>{const e=n[Ku]();if(fe(e.subscribe))return e.subscribe(t);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}(n);if(ed(n))return function fD(n){return new Te(t=>{for(let e=0;e<n.length&&!t.closed;e++)t.next(n[e]);t.complete()})}(n);if(k1(n))return function pD(n){return new Te(t=>{n.then(e=>{t.closed||(t.next(e),t.complete())},e=>t.error(e)).then(null,M1)})}(n);if(N1(n))return j1(n);if(B1(n))return function gD(n){return new Te(t=>{for(const e of n)if(t.next(e),t.closed)return;t.complete()})}(n);if(z1(n))return function mD(n){return j1(H1(n))}(n)}throw P1(n)}function j1(n){return new Te(t=>{(function _D(n,t){var e,i,r,s;return function A1(n,t,e,i){return new(e||(e=Promise))(function(s,o){function a(u){try{c(i.next(u))}catch(d){o(d)}}function l(u){try{c(i.throw(u))}catch(d){o(d)}}function c(u){u.done?s(u.value):function r(s){return s instanceof e?s:new e(function(o){o(s)})}(u.value).then(a,l)}c((i=i.apply(n,t||[])).next())})}(this,void 0,void 0,function*(){try{for(e=F1(n);!(i=yield e.next()).done;)if(t.next(i.value),t.closed)return}catch(o){r={error:o}}finally{try{i&&!i.done&&(s=e.return)&&(yield s.call(e))}finally{if(r)throw r.error}}t.complete()})})(n,t).catch(e=>t.error(e))})}function mi(n,t,e,i=0,r=!1){const s=t.schedule(function(){e(),r?n.add(this.schedule(null,i)):this.unsubscribe()},i);if(n.add(s),!r)return s}function pt(n,t,e=1/0){return fe(t)?pt((i,r)=>K((s,o)=>t(i,s,r,o))(Gt(n(i,r))),e):("number"==typeof t&&(e=t),We((i,r)=>function vD(n,t,e,i,r,s,o,a){const l=[];let c=0,u=0,d=!1;const h=()=>{d&&!l.length&&!c&&t.complete()},p=m=>c<i?g(m):l.push(m),g=m=>{s&&t.next(m),c++;let y=!1;Gt(e(m,u++)).subscribe(Pe(t,b=>{r?.(b),s?p(b):t.next(b)},()=>{y=!0},void 0,()=>{if(y)try{for(c--;l.length&&c<i;){const b=l.shift();o?mi(t,o,()=>g(b)):g(b)}h()}catch(b){t.error(b)}}))};return n.subscribe(Pe(t,p,()=>{d=!0,h()})),()=>{a?.()}}(i,r,n,e)))}function qr(n=1/0){return pt(Ni,n)}const Gn=new Te(n=>n.complete());function U1(n){return n&&fe(n.schedule)}function td(n){return n[n.length-1]}function $1(n){return fe(td(n))?n.pop():void 0}function oo(n){return U1(td(n))?n.pop():void 0}function Y1(n,t=0){return We((e,i)=>{e.subscribe(Pe(i,r=>mi(i,n,()=>i.next(r),t),()=>mi(i,n,()=>i.complete(),t),r=>mi(i,n,()=>i.error(r),t)))})}function G1(n,t=0){return We((e,i)=>{i.add(n.schedule(()=>e.subscribe(i),t))})}function W1(n,t){if(!n)throw new Error("Iterable cannot be null");return new Te(e=>{mi(e,t,()=>{const i=n[Symbol.asyncIterator]();mi(e,t,()=>{i.next().then(r=>{r.done?e.complete():e.next(r.value)})},0,!0)})})}function gt(n,t){return t?function SD(n,t){if(null!=n){if(L1(n))return function wD(n,t){return Gt(n).pipe(G1(t),Y1(t))}(n,t);if(ed(n))return function CD(n,t){return new Te(e=>{let i=0;return t.schedule(function(){i===n.length?e.complete():(e.next(n[i++]),e.closed||this.schedule())})})}(n,t);if(k1(n))return function ED(n,t){return Gt(n).pipe(G1(t),Y1(t))}(n,t);if(N1(n))return W1(n,t);if(B1(n))return function DD(n,t){return new Te(e=>{let i;return mi(e,t,()=>{i=n[V1](),mi(e,t,()=>{let r,s;try{({value:r,done:s}=i.next())}catch(o){return void e.error(o)}s?e.complete():e.next(r)},0,!0)}),()=>fe(i?.return)&&i.return()})}(n,t);if(z1(n))return function MD(n,t){return W1(H1(n),t)}(n,t)}throw P1(n)}(n,t):Gt(n)}function ur(...n){const t=oo(n),e=function bD(n,t){return"number"==typeof td(n)?n.pop():t}(n,1/0),i=n;return i.length?1===i.length?Gt(i[0]):qr(e)(gt(i,t)):Gn}function nd(n={}){const{connector:t=(()=>new le),resetOnError:e=!0,resetOnComplete:i=!0,resetOnRefCountZero:r=!0}=n;return s=>{let o,a,l,c=0,u=!1,d=!1;const h=()=>{a?.unsubscribe(),a=void 0},p=()=>{h(),o=l=void 0,u=d=!1},g=()=>{const m=o;p(),m?.unsubscribe()};return We((m,y)=>{c++,!d&&!u&&h();const b=l=l??t();y.add(()=>{c--,0===c&&!d&&!u&&(a=id(g,r))}),b.subscribe(y),!o&&c>0&&(o=new so({next:I=>b.next(I),error:I=>{d=!0,h(),a=id(p,e,I),b.error(I)},complete:()=>{u=!0,h(),a=id(p,i),b.complete()}}),Gt(m).subscribe(o))})(s)}}function id(n,t,...e){if(!0===t)return void n();if(!1===t)return;const i=new so({next:()=>{i.unsubscribe(),n()}});return t(...e).subscribe(i)}function Ie(n){for(let t in n)if(n[t]===Ie)return t;throw Error("Could not find renamed property on target object.")}function rd(n,t){for(const e in t)t.hasOwnProperty(e)&&!n.hasOwnProperty(e)&&(n[e]=t[e])}function xe(n){if("string"==typeof n)return n;if(Array.isArray(n))return"["+n.map(xe).join(", ")+"]";if(null==n)return""+n;if(n.overriddenName)return`${n.overriddenName}`;if(n.name)return`${n.name}`;const t=n.toString();if(null==t)return""+t;const e=t.indexOf("\n");return-1===e?t:t.substring(0,e)}function sd(n,t){return null==n||""===n?null===t?"":t:null==t||""===t?n:n+" "+t}const TD=Ie({__forward_ref__:Ie});function Re(n){return n.__forward_ref__=Re,n.toString=function(){return xe(this())},n}function $(n){return od(n)?n():n}function od(n){return"function"==typeof n&&n.hasOwnProperty(TD)&&n.__forward_ref__===Re}class F extends Error{constructor(t,e){super(function Ka(n,t){return`NG0${Math.abs(n)}${t?": "+t.trim():""}`}(t,e)),this.code=t}}function q(n){return"string"==typeof n?n:null==n?"":String(n)}function qa(n,t){throw new F(-201,!1)}function en(n,t){null==n&&function Ee(n,t,e,i){throw new Error(`ASSERTION ERROR: ${n}`+(null==i?"":` [Expected=> ${e} ${i} ${t} <=Actual]`))}(t,n,null,"!=")}function S(n){return{token:n.token,providedIn:n.providedIn||null,factory:n.factory,value:void 0}}function pe(n){return{providers:n.providers||[],imports:n.imports||[]}}function ad(n){return K1(n,Za)||K1(n,Z1)}function K1(n,t){return n.hasOwnProperty(t)?n[t]:null}function q1(n){return n&&(n.hasOwnProperty(ld)||n.hasOwnProperty(LD))?n[ld]:null}const Za=Ie({\u0275prov:Ie}),ld=Ie({\u0275inj:Ie}),Z1=Ie({ngInjectableDef:Ie}),LD=Ie({ngInjectorDef:Ie});var z=(()=>((z=z||{})[z.Default=0]="Default",z[z.Host=1]="Host",z[z.Self=2]="Self",z[z.SkipSelf=4]="SkipSelf",z[z.Optional=8]="Optional",z))();let cd;function Wn(n){const t=cd;return cd=n,t}function X1(n,t,e){const i=ad(n);return i&&"root"==i.providedIn?void 0===i.value?i.value=i.factory():i.value:e&z.Optional?null:void 0!==t?t:void qa(xe(n))}function Vi(n){return{toString:n}.toString()}var An=(()=>((An=An||{})[An.OnPush=0]="OnPush",An[An.Default=1]="Default",An))(),Rn=(()=>{return(n=Rn||(Rn={}))[n.Emulated=0]="Emulated",n[n.None=2]="None",n[n.ShadowDom=3]="ShadowDom",Rn;var n})();const Se=(()=>typeof globalThis<"u"&&globalThis||typeof global<"u"&&global||typeof window<"u"&&window||typeof self<"u"&&typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&self)(),Zr={},ye=[],Xa=Ie({\u0275cmp:Ie}),ud=Ie({\u0275dir:Ie}),dd=Ie({\u0275pipe:Ie}),Q1=Ie({\u0275mod:Ie}),vi=Ie({\u0275fac:Ie}),ao=Ie({__NG_ELEMENT_ID__:Ie});let PD=0;function Ft(n){return Vi(()=>{const e=!0===n.standalone,i={},r={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:i,inputs:null,outputs:null,exportAs:n.exportAs||null,onPush:n.changeDetection===An.OnPush,directiveDefs:null,pipeDefs:null,standalone:e,dependencies:e&&n.dependencies||null,getStandaloneInjector:null,selectors:n.selectors||ye,viewQuery:n.viewQuery||null,features:n.features||null,data:n.data||{},encapsulation:n.encapsulation||Rn.Emulated,id:"c"+PD++,styles:n.styles||ye,_:null,setInput:null,schemas:n.schemas||null,tView:null},s=n.dependencies,o=n.features;return r.inputs=tg(n.inputs,i),r.outputs=tg(n.outputs),o&&o.forEach(a=>a(r)),r.directiveDefs=s?()=>("function"==typeof s?s():s).map(J1).filter(eg):null,r.pipeDefs=s?()=>("function"==typeof s?s():s).map(Lt).filter(eg):null,r})}function J1(n){return Ae(n)||kt(n)}function eg(n){return null!==n}const BD={};function me(n){return Vi(()=>{const t={type:n.type,bootstrap:n.bootstrap||ye,declarations:n.declarations||ye,imports:n.imports||ye,exports:n.exports||ye,transitiveCompileScopes:null,schemas:n.schemas||null,id:n.id||null};return null!=n.id&&(BD[n.id]=n.type),t})}function tg(n,t){if(null==n)return Zr;const e={};for(const i in n)if(n.hasOwnProperty(i)){let r=n[i],s=r;Array.isArray(r)&&(s=r[1],r=r[0]),e[r]=i,t&&(t[r]=s)}return e}const O=Ft;function Oe(n){return{type:n.type,name:n.name,factory:null,pure:!1!==n.pure,standalone:!0===n.standalone,onDestroy:n.type.prototype.ngOnDestroy||null}}function Ae(n){return n[Xa]||null}function kt(n){return n[ud]||null}function Lt(n){return n[dd]||null}function tn(n,t){const e=n[Q1]||null;if(!e&&!0===t)throw new Error(`Type ${xe(n)} does not have '\u0275mod' property.`);return e}function Wt(n){return Array.isArray(n)&&"object"==typeof n[1]}function Fn(n){return Array.isArray(n)&&!0===n[1]}function pd(n){return 0!=(8&n.flags)}function tl(n){return 2==(2&n.flags)}function nl(n){return 1==(1&n.flags)}function kn(n){return null!==n.template}function $D(n){return 0!=(256&n[2])}function gr(n,t){return n.hasOwnProperty(vi)?n[vi]:null}class rg{constructor(t,e,i){this.previousValue=t,this.currentValue=e,this.firstChange=i}isFirstChange(){return this.firstChange}}function Ct(){return sg}function sg(n){return n.type.prototype.ngOnChanges&&(n.setInput=KD),WD}function WD(){const n=ag(this),t=n?.current;if(t){const e=n.previous;if(e===Zr)n.previous=t;else for(let i in t)e[i]=t[i];n.current=null,this.ngOnChanges(t)}}function KD(n,t,e,i){const r=ag(n)||function qD(n,t){return n[og]=t}(n,{previous:Zr,current:null}),s=r.current||(r.current={}),o=r.previous,a=this.declaredInputs[e],l=o[a];s[a]=new rg(l&&l.currentValue,t,o===Zr),n[i]=t}Ct.ngInherit=!0;const og="__ngSimpleChanges__";function ag(n){return n[og]||null}let yd;function Ke(n){return!!n.listen}const lg={createRenderer:(n,t)=>function bd(){return void 0!==yd?yd:typeof document<"u"?document:void 0}()};function tt(n){for(;Array.isArray(n);)n=n[0];return n}function il(n,t){return tt(t[n])}function wn(n,t){return tt(t[n.index])}function wd(n,t){return n.data[t]}function ts(n,t){return n[t]}function rn(n,t){const e=t[n];return Wt(e)?e:e[0]}function cg(n){return 4==(4&n[2])}function Ed(n){return 64==(64&n[2])}function Bi(n,t){return null==t?null:n[t]}function ug(n){n[18]=0}function Cd(n,t){n[5]+=t;let e=n,i=n[3];for(;null!==i&&(1===t&&1===e[5]||-1===t&&0===e[5]);)i[5]+=t,e=i,i=i[3]}const G={lFrame:yg(null),bindingsEnabled:!0};function hg(){return G.bindingsEnabled}function D(){return G.lFrame.lView}function ge(){return G.lFrame.tView}function Ce(n){return G.lFrame.contextLView=n,n[8]}function De(n){return G.lFrame.contextLView=null,n}function ct(){let n=fg();for(;null!==n&&64===n.type;)n=n.parent;return n}function fg(){return G.lFrame.currentTNode}function Kn(n,t){const e=G.lFrame;e.currentTNode=n,e.isParent=t}function Dd(){return G.lFrame.isParent}function Md(){G.lFrame.isParent=!1}function Nt(){const n=G.lFrame;let t=n.bindingRootIndex;return-1===t&&(t=n.bindingRootIndex=n.tView.bindingStartIndex),t}function yi(){return G.lFrame.bindingIndex}function ns(){return G.lFrame.bindingIndex++}function bi(n){const t=G.lFrame,e=t.bindingIndex;return t.bindingIndex=t.bindingIndex+n,e}function h5(n,t){const e=G.lFrame;e.bindingIndex=e.bindingRootIndex=n,Sd(t)}function Sd(n){G.lFrame.currentDirectiveIndex=n}function mg(){return G.lFrame.currentQueryIndex}function Id(n){G.lFrame.currentQueryIndex=n}function p5(n){const t=n[1];return 2===t.type?t.declTNode:1===t.type?n[6]:null}function _g(n,t,e){if(e&z.SkipSelf){let r=t,s=n;for(;!(r=r.parent,null!==r||e&z.Host||(r=p5(s),null===r||(s=s[15],10&r.type))););if(null===r)return!1;t=r,n=s}const i=G.lFrame=vg();return i.currentTNode=t,i.lView=n,!0}function sl(n){const t=vg(),e=n[1];G.lFrame=t,t.currentTNode=e.firstChild,t.lView=n,t.tView=e,t.contextLView=n,t.bindingIndex=e.bindingStartIndex,t.inI18n=!1}function vg(){const n=G.lFrame,t=null===n?null:n.child;return null===t?yg(n):t}function yg(n){const t={currentTNode:null,isParent:!0,lView:null,tView:null,selectedIndex:-1,contextLView:null,elementDepthCount:0,currentNamespace:null,currentDirectiveIndex:-1,bindingRootIndex:-1,bindingIndex:-1,currentQueryIndex:0,parent:n,child:null,inI18n:!1};return null!==n&&(n.child=t),t}function bg(){const n=G.lFrame;return G.lFrame=n.parent,n.currentTNode=null,n.lView=null,n}const wg=bg;function ol(){const n=bg();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 Pt(){return G.lFrame.selectedIndex}function Hi(n){G.lFrame.selectedIndex=n}function qe(){const n=G.lFrame;return wd(n.tView,n.selectedIndex)}function al(n,t){for(let e=t.directiveStart,i=t.directiveEnd;e<i;e++){const s=n.data[e].type.prototype,{ngAfterContentInit:o,ngAfterContentChecked:a,ngAfterViewInit:l,ngAfterViewChecked:c,ngOnDestroy:u}=s;o&&(n.contentHooks||(n.contentHooks=[])).push(-e,o),a&&((n.contentHooks||(n.contentHooks=[])).push(e,a),(n.contentCheckHooks||(n.contentCheckHooks=[])).push(e,a)),l&&(n.viewHooks||(n.viewHooks=[])).push(-e,l),c&&((n.viewHooks||(n.viewHooks=[])).push(e,c),(n.viewCheckHooks||(n.viewCheckHooks=[])).push(e,c)),null!=u&&(n.destroyHooks||(n.destroyHooks=[])).push(e,u)}}function ll(n,t,e){Eg(n,t,3,e)}function cl(n,t,e,i){(3&n[2])===e&&Eg(n,t,e,i)}function xd(n,t){let e=n[2];(3&e)===t&&(e&=2047,e+=1,n[2]=e)}function Eg(n,t,e,i){const s=i??-1,o=t.length-1;let a=0;for(let l=void 0!==i?65535&n[18]:0;l<o;l++)if("number"==typeof t[l+1]){if(a=t[l],null!=i&&a>=i)break}else t[l]<0&&(n[18]+=65536),(a<s||-1==s)&&(C5(n,e,t,l),n[18]=(4294901760&n[18])+l+2),l++}function C5(n,t,e,i){const r=e[i]<0,s=e[i+1],a=n[r?-e[i]:e[i]];if(r){if(n[2]>>11<n[18]>>16&&(3&n[2])===t){n[2]+=2048;try{s.call(a)}finally{}}}else try{s.call(a)}finally{}}class fo{constructor(t,e,i){this.factory=t,this.resolving=!1,this.canSeeViewProviders=e,this.injectImpl=i}}function ul(n,t,e){const i=Ke(n);let r=0;for(;r<e.length;){const s=e[r];if("number"==typeof s){if(0!==s)break;r++;const o=e[r++],a=e[r++],l=e[r++];i?n.setAttribute(t,a,l,o):t.setAttributeNS(o,a,l)}else{const o=s,a=e[++r];Rd(o)?i&&n.setProperty(t,o,a):i?n.setAttribute(t,o,a):t.setAttribute(o,a),r++}}return r}function Cg(n){return 3===n||4===n||6===n}function Rd(n){return 64===n.charCodeAt(0)}function dl(n,t){if(null!==t&&0!==t.length)if(null===n||0===n.length)n=t.slice();else{let e=-1;for(let i=0;i<t.length;i++){const r=t[i];"number"==typeof r?e=r:0===e||Dg(n,e,r,null,-1===e||2===e?t[++i]:null)}}return n}function Dg(n,t,e,i,r){let s=0,o=n.length;if(-1===t)o=-1;else for(;s<n.length;){const a=n[s++];if("number"==typeof a){if(a===t){o=-1;break}if(a>t){o=s-1;break}}}for(;s<n.length;){const a=n[s];if("number"==typeof a)break;if(a===e){if(null===i)return void(null!==r&&(n[s+1]=r));if(i===n[s+1])return void(n[s+2]=r)}s++,null!==i&&s++,null!==r&&s++}-1!==o&&(n.splice(o,0,t),s=o+1),n.splice(s++,0,e),null!==i&&n.splice(s++,0,i),null!==r&&n.splice(s++,0,r)}function Mg(n){return-1!==n}function is(n){return 32767&n}function rs(n,t){let e=function I5(n){return n>>16}(n),i=t;for(;e>0;)i=i[15],e--;return i}let Od=!0;function hl(n){const t=Od;return Od=n,t}let x5=0;const qn={};function go(n,t){const e=kd(n,t);if(-1!==e)return e;const i=t[1];i.firstCreatePass&&(n.injectorIndex=t.length,Fd(i.data,n),Fd(t,null),Fd(i.blueprint,null));const r=fl(n,t),s=n.injectorIndex;if(Mg(r)){const o=is(r),a=rs(r,t),l=a[1].data;for(let c=0;c<8;c++)t[s+c]=a[o+c]|l[o+c]}return t[s+8]=r,s}function Fd(n,t){n.push(0,0,0,0,0,0,0,0,t)}function kd(n,t){return-1===n.injectorIndex||n.parent&&n.parent.injectorIndex===n.injectorIndex||null===t[n.injectorIndex+8]?-1:n.injectorIndex}function fl(n,t){if(n.parent&&-1!==n.parent.injectorIndex)return n.parent.injectorIndex;let e=0,i=null,r=t;for(;null!==r;){if(i=kg(r),null===i)return-1;if(e++,r=r[15],-1!==i.injectorIndex)return i.injectorIndex|e<<16}return-1}function pl(n,t,e){!function A5(n,t,e){let i;"string"==typeof e?i=e.charCodeAt(0)||0:e.hasOwnProperty(ao)&&(i=e[ao]),null==i&&(i=e[ao]=x5++);const r=255&i;t.data[n+(r>>5)]|=1<<r}(n,t,e)}function Ig(n,t,e){if(e&z.Optional)return n;qa()}function xg(n,t,e,i){if(e&z.Optional&&void 0===i&&(i=null),0==(e&(z.Self|z.Host))){const r=n[9],s=Wn(void 0);try{return r?r.get(t,i,e&z.Optional):X1(t,i,e&z.Optional)}finally{Wn(s)}}return Ig(i,0,e)}function Ag(n,t,e,i=z.Default,r){if(null!==n){if(1024&t[2]){const o=function L5(n,t,e,i,r){let s=n,o=t;for(;null!==s&&null!==o&&1024&o[2]&&!(256&o[2]);){const a=Rg(s,o,e,i|z.Self,qn);if(a!==qn)return a;let l=s.parent;if(!l){const c=o[21];if(c){const u=c.get(e,qn,i);if(u!==qn)return u}l=kg(o),o=o[15]}s=l}return r}(n,t,e,i,qn);if(o!==qn)return o}const s=Rg(n,t,e,i,qn);if(s!==qn)return s}return xg(t,e,i,r)}function Rg(n,t,e,i,r){const s=function F5(n){if("string"==typeof n)return n.charCodeAt(0)||0;const t=n.hasOwnProperty(ao)?n[ao]:void 0;return"number"==typeof t?t>=0?255&t:k5:t}(e);if("function"==typeof s){if(!_g(t,n,i))return i&z.Host?Ig(r,0,i):xg(t,e,i,r);try{const o=s(i);if(null!=o||i&z.Optional)return o;qa()}finally{wg()}}else if("number"==typeof s){let o=null,a=kd(n,t),l=-1,c=i&z.Host?t[16][6]:null;for((-1===a||i&z.SkipSelf)&&(l=-1===a?fl(n,t):t[a+8],-1!==l&&Fg(i,!1)?(o=t[1],a=is(l),t=rs(l,t)):a=-1);-1!==a;){const u=t[1];if(Og(s,a,u.data)){const d=O5(a,t,e,o,i,c);if(d!==qn)return d}l=t[a+8],-1!==l&&Fg(i,t[1].data[a+8]===c)&&Og(s,a,t)?(o=u,a=is(l),t=rs(l,t)):a=-1}}return r}function O5(n,t,e,i,r,s){const o=t[1],a=o.data[n+8],u=gl(a,o,e,null==i?tl(a)&&Od:i!=o&&0!=(3&a.type),r&z.Host&&s===a);return null!==u?mo(t,o,u,a):qn}function gl(n,t,e,i,r){const s=n.providerIndexes,o=t.data,a=1048575&s,l=n.directiveStart,u=s>>20,h=r?a+u:n.directiveEnd;for(let p=i?a:a+u;p<h;p++){const g=o[p];if(p<l&&e===g||p>=l&&g.type===e)return p}if(r){const p=o[l];if(p&&kn(p)&&p.type===e)return l}return null}function mo(n,t,e,i){let r=n[e];const s=t.data;if(function D5(n){return n instanceof fo}(r)){const o=r;o.resolving&&function ID(n,t){const e=t?`. Dependency path: ${t.join(" > ")} > ${n}`:"";throw new F(-200,`Circular dependency in DI detected for ${n}${e}`)}(function ve(n){return"function"==typeof n?n.name||n.toString():"object"==typeof n&&null!=n&&"function"==typeof n.type?n.type.name||n.type.toString():q(n)}(s[e]));const a=hl(o.canSeeViewProviders);o.resolving=!0;const l=o.injectImpl?Wn(o.injectImpl):null;_g(n,i,z.Default);try{r=n[e]=o.factory(void 0,s,n,i),t.firstCreatePass&&e>=i.directiveStart&&function E5(n,t,e){const{ngOnChanges:i,ngOnInit:r,ngDoCheck:s}=t.type.prototype;if(i){const o=sg(t);(e.preOrderHooks||(e.preOrderHooks=[])).push(n,o),(e.preOrderCheckHooks||(e.preOrderCheckHooks=[])).push(n,o)}r&&(e.preOrderHooks||(e.preOrderHooks=[])).push(0-n,r),s&&((e.preOrderHooks||(e.preOrderHooks=[])).push(n,s),(e.preOrderCheckHooks||(e.preOrderCheckHooks=[])).push(n,s))}(e,s[e],t)}finally{null!==l&&Wn(l),hl(a),o.resolving=!1,wg()}}return r}function Og(n,t,e){return!!(e[t+(n>>5)]&1<<n)}function Fg(n,t){return!(n&z.Self||n&z.Host&&t)}class ss{constructor(t,e){this._tNode=t,this._lView=e}get(t,e,i){return Ag(this._tNode,this._lView,t,i,e)}}function k5(){return new ss(ct(),D())}function nt(n){return Vi(()=>{const t=n.prototype.constructor,e=t[vi]||Ld(t),i=Object.prototype;let r=Object.getPrototypeOf(n.prototype).constructor;for(;r&&r!==i;){const s=r[vi]||Ld(r);if(s&&s!==e)return s;r=Object.getPrototypeOf(r)}return s=>new s})}function Ld(n){return od(n)?()=>{const t=Ld($(n));return t&&t()}:gr(n)}function kg(n){const t=n[1],e=t.type;return 2===e?t.declTNode:1===e?n[6]:null}function ji(n){return function R5(n,t){if("class"===t)return n.classes;if("style"===t)return n.styles;const e=n.attrs;if(e){const i=e.length;let r=0;for(;r<i;){const s=e[r];if(Cg(s))break;if(0===s)r+=2;else if("number"==typeof s)for(r++;r<i&&"string"==typeof e[r];)r++;else{if(s===t)return e[r+1];r+=2}}}return null}(ct(),n)}const as="__parameters__";function cs(n,t,e){return Vi(()=>{const i=function Nd(n){return function(...e){if(n){const i=n(...e);for(const r in i)this[r]=i[r]}}}(t);function r(...s){if(this instanceof r)return i.apply(this,s),this;const o=new r(...s);return a.annotation=o,a;function a(l,c,u){const d=l.hasOwnProperty(as)?l[as]:Object.defineProperty(l,as,{value:[]})[as];for(;d.length<=u;)d.push(null);return(d[u]=d[u]||[]).push(o),l}}return e&&(r.prototype=Object.create(e.prototype)),r.prototype.ngMetadataName=n,r.annotationCls=r,r})}class R{constructor(t,e){this._desc=t,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,"number"==typeof e?this.__NG_ELEMENT_ID__=e:void 0!==e&&(this.\u0275prov=S({token:this,providedIn:e.providedIn||"root",factory:e.factory}))}get multi(){return this}toString(){return`InjectionToken ${this._desc}`}}function sn(n,t){void 0===t&&(t=n);for(let e=0;e<n.length;e++){let i=n[e];Array.isArray(i)?(t===n&&(t=n.slice(0,e)),sn(i,t)):t!==n&&t.push(i)}return t}function wi(n,t){n.forEach(e=>Array.isArray(e)?wi(e,t):t(e))}function Ng(n,t,e){t>=n.length?n.push(e):n.splice(t,0,e)}function ml(n,t){return t>=n.length-1?n.pop():n.splice(t,1)[0]}function yo(n,t){const e=[];for(let i=0;i<n;i++)e.push(t);return e}function on(n,t,e){let i=us(n,t);return i>=0?n[1|i]=e:(i=~i,function B5(n,t,e,i){let r=n.length;if(r==t)n.push(e,i);else if(1===r)n.push(i,n[0]),n[0]=e;else{for(r--,n.push(n[r-1],n[r]);r>t;)n[r]=n[r-2],r--;n[t]=e,n[t+1]=i}}(n,i,t,e)),i}function Vd(n,t){const e=us(n,t);if(e>=0)return n[1|e]}function us(n,t){return function Bg(n,t,e){let i=0,r=n.length>>e;for(;r!==i;){const s=i+(r-i>>1),o=n[s<<e];if(t===o)return s<<e;o>t?r=s:i=s+1}return~(r<<e)}(n,t,1)}const bo={},Hd="__NG_DI_FLAG__",vl="ngTempTokenPath",W5=/\n/gm,Hg="__source";let wo;function yl(n){const t=wo;return wo=n,t}function q5(n,t=z.Default){if(void 0===wo)throw new F(-203,"");return null===wo?X1(n,void 0,t):wo.get(n,t&z.Optional?null:void 0,t)}function v(n,t=z.Default){return(function ND(){return cd}()||q5)($(n),t)}function Eo(n,t=z.Default){return v(n,t)}function zd(n){const t=[];for(let e=0;e<n.length;e++){const i=$(n[e]);if(Array.isArray(i)){if(0===i.length)throw new F(900,"");let r,s=z.Default;for(let o=0;o<i.length;o++){const a=i[o],l=Z5(a);"number"==typeof l?-1===l?r=a.token:s|=l:r=a}t.push(v(r,s))}else t.push(v(i))}return t}function Co(n,t){return n[Hd]=t,n.prototype[Hd]=t,n}function Z5(n){return n[Hd]}const Zn=Co(cs("Optional"),8),Do=Co(cs("SkipSelf"),4);let El;function hs(n){return function Ud(){if(void 0===El&&(El=null,Se.trustedTypes))try{El=Se.trustedTypes.createPolicy("angular",{createHTML:n=>n,createScript:n=>n,createScriptURL:n=>n})}catch{}return El}()?.createHTML(n)||n}class mr{constructor(t){this.changingThisBreaksApplicationSecurity=t}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see https://g.co/ng/security#xss)`}}class u8 extends mr{getTypeName(){return"HTML"}}class d8 extends mr{getTypeName(){return"Style"}}class h8 extends mr{getTypeName(){return"Script"}}class f8 extends mr{getTypeName(){return"URL"}}class p8 extends mr{getTypeName(){return"ResourceURL"}}function an(n){return n instanceof mr?n.changingThisBreaksApplicationSecurity:n}function Xn(n,t){const e=Qg(n);if(null!=e&&e!==t){if("ResourceURL"===e&&"URL"===t)return!0;throw new Error(`Required a safe ${t}, got a ${e} (see https://g.co/ng/security#xss)`)}return e===t}function Qg(n){return n instanceof mr&&n.getTypeName()||null}class b8{constructor(t){this.inertDocumentHelper=t}getInertBodyElement(t){t="<body><remove></remove>"+t;try{const e=(new window.DOMParser).parseFromString(hs(t),"text/html").body;return null===e?this.inertDocumentHelper.getInertBodyElement(t):(e.removeChild(e.firstChild),e)}catch{return null}}}class w8{constructor(t){if(this.defaultDoc=t,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert"),null==this.inertDocument.body){const e=this.inertDocument.createElement("html");this.inertDocument.appendChild(e);const i=this.inertDocument.createElement("body");e.appendChild(i)}}getInertBodyElement(t){const e=this.inertDocument.createElement("template");if("content"in e)return e.innerHTML=hs(t),e;const i=this.inertDocument.createElement("body");return i.innerHTML=hs(t),this.defaultDoc.documentMode&&this.stripCustomNsAttrs(i),i}stripCustomNsAttrs(t){const e=t.attributes;for(let r=e.length-1;0<r;r--){const o=e.item(r).name;("xmlns:ns1"===o||0===o.indexOf("ns1:"))&&t.removeAttribute(o)}let i=t.firstChild;for(;i;)i.nodeType===Node.ELEMENT_NODE&&this.stripCustomNsAttrs(i),i=i.nextSibling}}const C8=/^(?:(?:https?|mailto|ftp|tel|file|sms):|[^&:/?#]*(?:[/?#]|$))/gi,D8=/^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 To(n){return(n=String(n)).match(C8)||n.match(D8)?n:"unsafe:"+n}function Qn(n){const t={};for(const e of n.split(","))t[e]=!0;return t}function Io(...n){const t={};for(const e of n)for(const i in e)e.hasOwnProperty(i)&&(t[i]=!0);return t}const tm=Qn("area,br,col,hr,img,wbr"),nm=Qn("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),im=Qn("rp,rt"),Yd=Io(tm,Io(nm,Qn("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")),Io(im,Qn("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")),Io(im,nm)),Gd=Qn("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),Wd=Qn("srcset"),rm=Io(Gd,Wd,Qn("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"),Qn("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")),M8=Qn("script,style,template");class S8{constructor(){this.sanitizedSomething=!1,this.buf=[]}sanitizeChildren(t){let e=t.firstChild,i=!0;for(;e;)if(e.nodeType===Node.ELEMENT_NODE?i=this.startElement(e):e.nodeType===Node.TEXT_NODE?this.chars(e.nodeValue):this.sanitizedSomething=!0,i&&e.firstChild)e=e.firstChild;else for(;e;){e.nodeType===Node.ELEMENT_NODE&&this.endElement(e);let r=this.checkClobberedElement(e,e.nextSibling);if(r){e=r;break}e=this.checkClobberedElement(e,e.parentNode)}return this.buf.join("")}startElement(t){const e=t.nodeName.toLowerCase();if(!Yd.hasOwnProperty(e))return this.sanitizedSomething=!0,!M8.hasOwnProperty(e);this.buf.push("<"),this.buf.push(e);const i=t.attributes;for(let r=0;r<i.length;r++){const s=i.item(r),o=s.name,a=o.toLowerCase();if(!rm.hasOwnProperty(a)){this.sanitizedSomething=!0;continue}let l=s.value;Gd[a]&&(l=To(l)),Wd[a]&&(n=l,l=(n=String(n)).split(",").map(t=>To(t.trim())).join(", ")),this.buf.push(" ",o,'="',sm(l),'"')}var n;return this.buf.push(">"),!0}endElement(t){const e=t.nodeName.toLowerCase();Yd.hasOwnProperty(e)&&!tm.hasOwnProperty(e)&&(this.buf.push("</"),this.buf.push(e),this.buf.push(">"))}chars(t){this.buf.push(sm(t))}checkClobberedElement(t,e){if(e&&(t.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_CONTAINED_BY)===Node.DOCUMENT_POSITION_CONTAINED_BY)throw new Error(`Failed to sanitize html because the element is clobbered: ${t.outerHTML}`);return e}}const T8=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,I8=/([^\#-~ |!])/g;function sm(n){return n.replace(/&/g,"&amp;").replace(T8,function(t){return"&#"+(1024*(t.charCodeAt(0)-55296)+(t.charCodeAt(1)-56320)+65536)+";"}).replace(I8,function(t){return"&#"+t.charCodeAt(0)+";"}).replace(/</g,"&lt;").replace(/>/g,"&gt;")}let Dl;function om(n,t){let e=null;try{Dl=Dl||function Jg(n){const t=new w8(n);return function E8(){try{return!!(new window.DOMParser).parseFromString(hs(""),"text/html")}catch{return!1}}()?new b8(t):t}(n);let i=t?String(t):"";e=Dl.getInertBodyElement(i);let r=5,s=i;do{if(0===r)throw new Error("Failed to sanitize html because the input is unstable");r--,i=s,s=e.innerHTML,e=Dl.getInertBodyElement(i)}while(i!==s);return hs((new S8).sanitizeChildren(Kd(e)||e))}finally{if(e){const i=Kd(e)||e;for(;i.firstChild;)i.removeChild(i.firstChild)}}}function Kd(n){return"content"in n&&function x8(n){return n.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===n.nodeName}(n)?n.content:null}var be=(()=>((be=be||{})[be.NONE=0]="NONE",be[be.HTML=1]="HTML",be[be.STYLE=2]="STYLE",be[be.SCRIPT=3]="SCRIPT",be[be.URL=4]="URL",be[be.RESOURCE_URL=5]="RESOURCE_URL",be))();function Ml(n){const t=function xo(){const n=D();return n&&n[12]}();return t?t.sanitize(be.URL,n)||"":Xn(n,"URL")?an(n):To(q(n))}function Zd(n){return n.ngOriginalError}class Ei{constructor(){this._console=console}handleError(t){const e=this._findOriginalError(t);this._console.error("ERROR",t),e&&this._console.error("ORIGINAL ERROR",e)}_findOriginalError(t){let e=t&&Zd(t);for(;e&&Zd(e);)e=Zd(e);return e||null}}const Xd=new Map;let Y8=0;const Jd="__ngContext__";function It(n,t){Wt(t)?(n[Jd]=t[20],function W8(n){Xd.set(n[20],n)}(t)):n[Jd]=t}function Ao(n){const t=n[Jd];return"number"==typeof t?function cm(n){return Xd.get(n)||null}(t):t||null}function eh(n){const t=Ao(n);return t?Wt(t)?t:t.lView:null}const nM=(()=>(typeof requestAnimationFrame<"u"&&requestAnimationFrame||setTimeout).bind(Se))();function Ci(n){return n instanceof Function?n():n}var ln=(()=>((ln=ln||{})[ln.Important=1]="Important",ln[ln.DashCase=2]="DashCase",ln))();function nh(n,t){return undefined(n,t)}function Ro(n){const t=n[3];return Fn(t)?t[3]:t}function ih(n){return vm(n[13])}function rh(n){return vm(n[4])}function vm(n){for(;null!==n&&!Fn(n);)n=n[4];return n}function ps(n,t,e,i,r){if(null!=i){let s,o=!1;Fn(i)?s=i:Wt(i)&&(o=!0,i=i[0]);const a=tt(i);0===n&&null!==e?null==r?Dm(t,e,a):_r(t,e,a,r||null,!0):1===n&&null!==e?_r(t,e,a,r||null,!0):2===n?function Om(n,t,e){const i=Sl(n,t);i&&function _M(n,t,e,i){Ke(n)?n.removeChild(t,e,i):t.removeChild(e)}(n,i,t,e)}(t,a,o):3===n&&t.destroyNode(a),null!=s&&function bM(n,t,e,i,r){const s=e[7];s!==tt(e)&&ps(t,n,i,s,r);for(let a=10;a<e.length;a++){const l=e[a];Oo(l[1],l,n,t,i,s)}}(t,n,s,e,r)}}function oh(n,t,e){if(Ke(n))return n.createElement(t,e);{const i=null!==e?function JD(n){const t=n.toLowerCase();return"svg"===t?"http://www.w3.org/2000/svg":"math"===t?"http://www.w3.org/1998/MathML/":null}(e):null;return null===i?n.createElement(t):n.createElementNS(i,t)}}function bm(n,t){const e=n[9],i=e.indexOf(t),r=t[3];512&t[2]&&(t[2]&=-513,Cd(r,-1)),e.splice(i,1)}function ah(n,t){if(n.length<=10)return;const e=10+t,i=n[e];if(i){const r=i[17];null!==r&&r!==n&&bm(r,i),t>0&&(n[e-1][4]=i[4]);const s=ml(n,10+t);!function cM(n,t){Oo(n,t,t[11],2,null,null),t[0]=null,t[6]=null}(i[1],i);const o=s[19];null!==o&&o.detachView(s[1]),i[3]=null,i[4]=null,i[2]&=-65}return i}function wm(n,t){if(!(128&t[2])){const e=t[11];Ke(e)&&e.destroyNode&&Oo(n,t,e,3,null,null),function hM(n){let t=n[13];if(!t)return lh(n[1],n);for(;t;){let e=null;if(Wt(t))e=t[13];else{const i=t[10];i&&(e=i)}if(!e){for(;t&&!t[4]&&t!==n;)Wt(t)&&lh(t[1],t),t=t[3];null===t&&(t=n),Wt(t)&&lh(t[1],t),e=t&&t[4]}t=e}}(t)}}function lh(n,t){if(!(128&t[2])){t[2]&=-65,t[2]|=128,function mM(n,t){let e;if(null!=n&&null!=(e=n.destroyHooks))for(let i=0;i<e.length;i+=2){const r=t[e[i]];if(!(r instanceof fo)){const s=e[i+1];if(Array.isArray(s))for(let o=0;o<s.length;o+=2){const a=r[s[o]],l=s[o+1];try{l.call(a)}finally{}}else try{s.call(r)}finally{}}}}(n,t),function gM(n,t){const e=n.cleanup,i=t[7];let r=-1;if(null!==e)for(let s=0;s<e.length-1;s+=2)if("string"==typeof e[s]){const o=e[s+1],a="function"==typeof o?o(t):tt(t[o]),l=i[r=e[s+2]],c=e[s+3];"boolean"==typeof c?a.removeEventListener(e[s],l,c):c>=0?i[r=c]():i[r=-c].unsubscribe(),s+=2}else{const o=i[r=e[s+1]];e[s].call(o)}if(null!==i){for(let s=r+1;s<i.length;s++)i[s]();t[7]=null}}(n,t),1===t[1].type&&Ke(t[11])&&t[11].destroy();const e=t[17];if(null!==e&&Fn(t[3])){e!==t[3]&&bm(e,t);const i=t[19];null!==i&&i.detachView(n)}!function K8(n){Xd.delete(n[20])}(t)}}function Em(n,t,e){return function Cm(n,t,e){let i=t;for(;null!==i&&40&i.type;)i=(t=i).parent;if(null===i)return e[0];if(2&i.flags){const r=n.data[i.directiveStart].encapsulation;if(r===Rn.None||r===Rn.Emulated)return null}return wn(i,e)}(n,t.parent,e)}function _r(n,t,e,i,r){Ke(n)?n.insertBefore(t,e,i,r):(Sm(t)?t.content:t).insertBefore(e,i,r)}function Dm(n,t,e){Ke(n)?n.appendChild(t,e):(Sm(t)?t.content:t).appendChild(e)}function Mm(n,t,e,i,r){null!==i?_r(n,t,e,i,r):Dm(n,t,e)}function Sm(n){return"TEMPLATE"===n.tagName&&void 0!==n.content}function Sl(n,t){return Ke(n)?n.parentNode(t):t.parentNode}function Tm(n,t,e){return xm(n,t,e)}let xm=function Im(n,t,e){return 40&n.type?wn(n,e):null};function Tl(n,t,e,i){const r=Em(n,i,t),s=t[11],a=Tm(i.parent||t[6],i,t);if(null!=r)if(Array.isArray(e))for(let l=0;l<e.length;l++)Mm(s,r,e[l],a,!1);else Mm(s,r,e,a,!1)}function Il(n,t){if(null!==t){const e=t.type;if(3&e)return wn(t,n);if(4&e)return uh(-1,n[t.index]);if(8&e){const i=t.child;if(null!==i)return Il(n,i);{const r=n[t.index];return Fn(r)?uh(-1,r):tt(r)}}if(32&e)return nh(t,n)()||tt(n[t.index]);{const i=Rm(n,t);return null!==i?Array.isArray(i)?i[0]:Il(Ro(n[16]),i):Il(n,t.next)}}return null}function Rm(n,t){return null!==t?n[16][6].projection[t.projection]:null}function uh(n,t){const e=10+n+1;if(e<t.length){const i=t[e],r=i[1].firstChild;if(null!==r)return Il(i,r)}return t[7]}function dh(n,t,e,i,r,s,o){for(;null!=e;){const a=i[e.index],l=e.type;if(o&&0===t&&(a&&It(tt(a),i),e.flags|=4),64!=(64&e.flags))if(8&l)dh(n,t,e.child,i,r,s,!1),ps(t,n,r,a,s);else if(32&l){const c=nh(e,i);let u;for(;u=c();)ps(t,n,r,u,s);ps(t,n,r,a,s)}else 16&l?Fm(n,t,i,e,r,s):ps(t,n,r,a,s);e=o?e.projectionNext:e.next}}function Oo(n,t,e,i,r,s){dh(e,i,n.firstChild,t,r,s,!1)}function Fm(n,t,e,i,r,s){const o=e[16],l=o[6].projection[i.projection];if(Array.isArray(l))for(let c=0;c<l.length;c++)ps(t,n,r,l[c],s);else dh(n,t,l,o[3],r,s,!0)}function km(n,t,e){Ke(n)?n.setAttribute(t,"style",e):t.style.cssText=e}function hh(n,t,e){Ke(n)?""===e?n.removeAttribute(t,"class"):n.setAttribute(t,"class",e):t.className=e}function Lm(n,t,e){let i=n.length;for(;;){const r=n.indexOf(t,e);if(-1===r)return r;if(0===r||n.charCodeAt(r-1)<=32){const s=t.length;if(r+s===i||n.charCodeAt(r+s)<=32)return r}e=r+1}}const Nm="ng-template";function EM(n,t,e){let i=0;for(;i<n.length;){let r=n[i++];if(e&&"class"===r){if(r=n[i],-1!==Lm(r.toLowerCase(),t,0))return!0}else if(1===r){for(;i<n.length&&"string"==typeof(r=n[i++]);)if(r.toLowerCase()===t)return!0;return!1}}return!1}function Pm(n){return 4===n.type&&n.value!==Nm}function CM(n,t,e){return t===(4!==n.type||e?n.value:Nm)}function DM(n,t,e){let i=4;const r=n.attrs||[],s=function TM(n){for(let t=0;t<n.length;t++)if(Cg(n[t]))return t;return n.length}(r);let o=!1;for(let a=0;a<t.length;a++){const l=t[a];if("number"!=typeof l){if(!o)if(4&i){if(i=2|1&i,""!==l&&!CM(n,l,e)||""===l&&1===t.length){if(Ln(i))return!1;o=!0}}else{const c=8&i?l:t[++a];if(8&i&&null!==n.attrs){if(!EM(n.attrs,c,e)){if(Ln(i))return!1;o=!0}continue}const d=MM(8&i?"class":l,r,Pm(n),e);if(-1===d){if(Ln(i))return!1;o=!0;continue}if(""!==c){let h;h=d>s?"":r[d+1].toLowerCase();const p=8&i?h:null;if(p&&-1!==Lm(p,c,0)||2&i&&c!==h){if(Ln(i))return!1;o=!0}}}}else{if(!o&&!Ln(i)&&!Ln(l))return!1;if(o&&Ln(l))continue;o=!1,i=l|1&i}}return Ln(i)||o}function Ln(n){return 0==(1&n)}function MM(n,t,e,i){if(null===t)return-1;let r=0;if(i||!e){let s=!1;for(;r<t.length;){const o=t[r];if(o===n)return r;if(3===o||6===o)s=!0;else{if(1===o||2===o){let a=t[++r];for(;"string"==typeof a;)a=t[++r];continue}if(4===o)break;if(0===o){r+=4;continue}}r+=s?1:2}return-1}return function IM(n,t){let e=n.indexOf(4);if(e>-1)for(e++;e<n.length;){const i=n[e];if("number"==typeof i)return-1;if(i===t)return e;e++}return-1}(t,n)}function Vm(n,t,e=!1){for(let i=0;i<t.length;i++)if(DM(n,t[i],e))return!0;return!1}function xM(n,t){e:for(let e=0;e<t.length;e++){const i=t[e];if(n.length===i.length){for(let r=0;r<n.length;r++)if(n[r]!==i[r])continue e;return!0}}return!1}function Bm(n,t){return n?":not("+t.trim()+")":t}function AM(n){let t=n[0],e=1,i=2,r="",s=!1;for(;e<n.length;){let o=n[e];if("string"==typeof o)if(2&i){const a=n[++e];r+="["+o+(a.length>0?'="'+a+'"':"")+"]"}else 8&i?r+="."+o:4&i&&(r+=" "+o);else""!==r&&!Ln(o)&&(t+=Bm(s,r),r=""),i=o,s=s||!Ln(i);e++}return""!==r&&(t+=Bm(s,r)),t}const Z={};function M(n){Hm(ge(),D(),Pt()+n,!1)}function Hm(n,t,e,i){if(!i)if(3==(3&t[2])){const s=n.preOrderCheckHooks;null!==s&&ll(t,s,e)}else{const s=n.preOrderHooks;null!==s&&cl(t,s,0,e)}Hi(e)}const $m=new R("ENVIRONMENT_INITIALIZER"),Ym=new R("INJECTOR_DEF_TYPES");function VM(...n){return{\u0275providers:Gm(0,n)}}function Gm(n,...t){const e=[],i=new Set;let r;return wi(t,s=>{const o=s;fh(o,e,[],i)&&(r||(r=[]),r.push(o))}),void 0!==r&&Wm(r,e),e}function Wm(n,t){for(let e=0;e<n.length;e++){const{providers:r}=n[e];wi(r,s=>{t.push(s)})}}function fh(n,t,e,i){if(!(n=$(n)))return!1;let r=null,s=q1(n);const o=!s&&Ae(n);if(s||o){if(o&&!o.standalone)return!1;r=n}else{const l=n.ngModule;if(s=q1(l),!s)return!1;r=l}const a=i.has(r);if(o){if(a)return!1;if(i.add(r),o.dependencies){const l="function"==typeof o.dependencies?o.dependencies():o.dependencies;for(const c of l)fh(c,t,e,i)}}else{if(!s)return!1;{if(null!=s.imports&&!a){let c;i.add(r);try{wi(s.imports,u=>{fh(u,t,e,i)&&(c||(c=[]),c.push(u))})}finally{}void 0!==c&&Wm(c,t)}if(!a){const c=gr(r)||(()=>new r);t.push({provide:r,useFactory:c,deps:ye},{provide:Ym,useValue:r,multi:!0},{provide:$m,useValue:()=>v(r),multi:!0})}const l=s.providers;null==l||a||wi(l,u=>{t.push(u)})}}return r!==n&&void 0!==n.providers}const BM=Ie({provide:String,useValue:Ie});function ph(n){return null!==n&&"object"==typeof n&&BM in n}function vr(n){return"function"==typeof n}const gh=new R("INJECTOR",-1);class Zm{get(t,e=bo){if(e===bo){const i=new Error(`NullInjectorError: No provider for ${xe(t)}!`);throw i.name="NullInjectorError",i}return e}}const mh=new R("Set Injector scope."),xl={},zM={};let _h;function vh(){return void 0===_h&&(_h=new Zm),_h}class yr{}class Xm extends yr{constructor(t,e,i,r){super(),this.parent=e,this.source=i,this.scopes=r,this.records=new Map,this._ngOnDestroyHooks=new Set,this._onDestroyHooks=[],this._destroyed=!1,bh(t,o=>this.processProvider(o)),this.records.set(gh,gs(void 0,this)),r.has("environment")&&this.records.set(yr,gs(void 0,this));const s=this.records.get(mh);null!=s&&"string"==typeof s.value&&this.scopes.add(s.value),this.injectorDefTypes=new Set(this.get(Ym.multi,ye,z.Self))}get destroyed(){return this._destroyed}destroy(){this.assertNotDestroyed(),this._destroyed=!0;try{for(const t of this._ngOnDestroyHooks)t.ngOnDestroy();for(const t of this._onDestroyHooks)t()}finally{this.records.clear(),this._ngOnDestroyHooks.clear(),this.injectorDefTypes.clear(),this._onDestroyHooks.length=0}}onDestroy(t){this._onDestroyHooks.push(t)}get(t,e=bo,i=z.Default){this.assertNotDestroyed();const r=yl(this),s=Wn(void 0);try{if(!(i&z.SkipSelf)){let a=this.records.get(t);if(void 0===a){const l=function GM(n){return"function"==typeof n||"object"==typeof n&&n instanceof R}(t)&&ad(t);a=l&&this.injectableDefInScope(l)?gs(yh(t),xl):null,this.records.set(t,a)}if(null!=a)return this.hydrate(t,a)}return(i&z.Self?vh():this.parent).get(t,e=i&z.Optional&&e===bo?null:e)}catch(o){if("NullInjectorError"===o.name){if((o[vl]=o[vl]||[]).unshift(xe(t)),r)throw o;return function X5(n,t,e,i){const r=n[vl];throw t[Hg]&&r.unshift(t[Hg]),n.message=function Q5(n,t,e,i=null){n=n&&"\n"===n.charAt(0)&&"\u0275"==n.charAt(1)?n.slice(2):n;let r=xe(t);if(Array.isArray(t))r=t.map(xe).join(" -> ");else if("object"==typeof t){let s=[];for(let o in t)if(t.hasOwnProperty(o)){let a=t[o];s.push(o+":"+("string"==typeof a?JSON.stringify(a):xe(a)))}r=`{${s.join(", ")}}`}return`${e}${i?"("+i+")":""}[${r}]: ${n.replace(W5,"\n ")}`}("\n"+n.message,r,e,i),n.ngTokenPath=r,n[vl]=null,n}(o,t,"R3InjectorError",this.source)}throw o}finally{Wn(s),yl(r)}}resolveInjectorInitializers(){const t=yl(this),e=Wn(void 0);try{const i=this.get($m.multi,ye,z.Self);for(const r of i)r()}finally{yl(t),Wn(e)}}toString(){const t=[],e=this.records;for(const i of e.keys())t.push(xe(i));return`R3Injector[${t.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new F(205,!1)}processProvider(t){let e=vr(t=$(t))?t:$(t&&t.provide);const i=function UM(n){return ph(n)?gs(void 0,n.useValue):gs(Qm(n),xl)}(t);if(vr(t)||!0!==t.multi)this.records.get(e);else{let r=this.records.get(e);r||(r=gs(void 0,xl,!0),r.factory=()=>zd(r.multi),this.records.set(e,r)),e=t,r.multi.push(t)}this.records.set(e,i)}hydrate(t,e){return e.value===xl&&(e.value=zM,e.value=e.factory()),"object"==typeof e.value&&e.value&&function YM(n){return null!==n&&"object"==typeof n&&"function"==typeof n.ngOnDestroy}(e.value)&&this._ngOnDestroyHooks.add(e.value),e.value}injectableDefInScope(t){if(!t.providedIn)return!1;const e=$(t.providedIn);return"string"==typeof e?"any"===e||this.scopes.has(e):this.injectorDefTypes.has(e)}}function yh(n){const t=ad(n),e=null!==t?t.factory:gr(n);if(null!==e)return e;if(n instanceof R)throw new F(204,!1);if(n instanceof Function)return function jM(n){const t=n.length;if(t>0)throw yo(t,"?"),new F(204,!1);const e=function FD(n){const t=n&&(n[Za]||n[Z1]);if(t){const e=function kD(n){if(n.hasOwnProperty("name"))return n.name;const t=(""+n).match(/^function\s*([^\s(]+)/);return null===t?"":t[1]}(n);return console.warn(`DEPRECATED: DI is instantiating a token "${e}" that inherits its @Injectable decorator but does not provide one itself.\nThis will become an error in a future version of Angular. Please add @Injectable() to the "${e}" class.`),t}return null}(n);return null!==e?()=>e.factory(n):()=>new n}(n);throw new F(204,!1)}function Qm(n,t,e){let i;if(vr(n)){const r=$(n);return gr(r)||yh(r)}if(ph(n))i=()=>$(n.useValue);else if(function qm(n){return!(!n||!n.useFactory)}(n))i=()=>n.useFactory(...zd(n.deps||[]));else if(function Km(n){return!(!n||!n.useExisting)}(n))i=()=>v($(n.useExisting));else{const r=$(n&&(n.useClass||n.provide));if(!function $M(n){return!!n.deps}(n))return gr(r)||yh(r);i=()=>new r(...zd(n.deps))}return i}function gs(n,t,e=!1){return{factory:n,value:t,multi:e?[]:void 0}}function WM(n){return!!n.\u0275providers}function bh(n,t){for(const e of n)Array.isArray(e)?bh(e,t):WM(e)?bh(e.\u0275providers,t):t(e)}function Jm(n,t=null,e=null,i){const r=e_(n,t,e,i);return r.resolveInjectorInitializers(),r}function e_(n,t=null,e=null,i,r=new Set){const s=[e||ye,VM(n)];return i=i||("object"==typeof n?void 0:xe(n)),new Xm(s,t||vh(),i||null,r)}let it=(()=>{class n{static create(e,i){if(Array.isArray(e))return Jm({name:""},i,e,"");{const r=e.name??"";return Jm({name:r},e.parent,e.providers,r)}}}return n.THROW_IF_NOT_FOUND=bo,n.NULL=new Zm,n.\u0275prov=S({token:n,providedIn:"any",factory:()=>v(gh)}),n.__NG_ELEMENT_ID__=-1,n})();function _(n,t=z.Default){const e=D();return null===e?v(n,t):Ag(ct(),e,$(n),t)}function Mh(){throw new Error("invalid")}function Rl(n,t){return n<<17|t<<2}function Nn(n){return n>>17&32767}function xh(n){return 2|n}function Di(n){return(131068&n)>>2}function Ah(n,t){return-131069&n|t<<2}function Rh(n){return 1|n}function b_(n,t){const e=n.contentQueries;if(null!==e)for(let i=0;i<e.length;i+=2){const r=e[i],s=e[i+1];if(-1!==s){const o=n.data[s];Id(r),o.contentQueries(2,t[s],s)}}}function Fo(n,t,e,i,r,s,o,a,l,c,u){const d=t.blueprint.slice();return d[0]=r,d[2]=76|i,(null!==u||n&&1024&n[2])&&(d[2]|=1024),ug(d),d[3]=d[15]=n,d[8]=e,d[10]=o||n&&n[10],d[11]=a||n&&n[11],d[12]=l||n&&n[12]||null,d[9]=c||n&&n[9]||null,d[6]=s,d[20]=function G8(){return Y8++}(),d[21]=u,d[16]=2==t.type?n[16]:d,d}function _s(n,t,e,i,r){let s=n.data[t];if(null===s)s=function Hh(n,t,e,i,r){const s=fg(),o=Dd(),l=n.data[t]=function MS(n,t,e,i,r,s){return{type:e,index:i,insertBeforeIndex:null,injectorIndex:t?t.injectorIndex:-1,directiveStart:-1,directiveEnd:-1,directiveStylingLast:-1,propertyBindings:null,flags:0,providerIndexes:0,value:r,attrs:s,mergedAttrs:null,localNames:null,initialInputs:void 0,inputs:null,outputs:null,tViews:null,next:null,projectionNext:null,child:null,parent:t,projection:null,styles:null,stylesWithoutHost:null,residualStyles:void 0,classes:null,classesWithoutHost:null,residualClasses:void 0,classBindings:0,styleBindings:0}}(0,o?s:s&&s.parent,e,t,i,r);return null===n.firstChild&&(n.firstChild=l),null!==s&&(o?null==s.child&&null!==l.parent&&(s.child=l):null===s.next&&(s.next=l)),l}(n,t,e,i,r),function d5(){return G.lFrame.inI18n}()&&(s.flags|=64);else if(64&s.type){s.type=e,s.value=i,s.attrs=r;const o=function ho(){const n=G.lFrame,t=n.currentTNode;return n.isParent?t:t.parent}();s.injectorIndex=null===o?-1:o.injectorIndex}return Kn(s,!0),s}function vs(n,t,e,i){if(0===e)return-1;const r=t.length;for(let s=0;s<e;s++)t.push(i),n.blueprint.push(i),n.data.push(null);return r}function ko(n,t,e){sl(t);try{const i=n.viewQuery;null!==i&&qh(1,i,e);const r=n.template;null!==r&&w_(n,t,r,1,e),n.firstCreatePass&&(n.firstCreatePass=!1),n.staticContentQueries&&b_(n,t),n.staticViewQueries&&qh(2,n.viewQuery,e);const s=n.components;null!==s&&function ES(n,t){for(let e=0;e<t.length;e++)US(n,t[e])}(t,s)}catch(i){throw n.firstCreatePass&&(n.incompleteFirstPass=!0,n.firstCreatePass=!1),i}finally{t[2]&=-5,ol()}}function ys(n,t,e,i){const r=t[2];if(128!=(128&r)){sl(t);try{ug(t),function pg(n){return G.lFrame.bindingIndex=n}(n.bindingStartIndex),null!==e&&w_(n,t,e,2,i);const o=3==(3&r);if(o){const c=n.preOrderCheckHooks;null!==c&&ll(t,c,null)}else{const c=n.preOrderHooks;null!==c&&cl(t,c,0,null),xd(t,0)}if(function zS(n){for(let t=ih(n);null!==t;t=rh(t)){if(!t[2])continue;const e=t[9];for(let i=0;i<e.length;i++){const r=e[i],s=r[3];0==(512&r[2])&&Cd(s,1),r[2]|=512}}}(t),function HS(n){for(let t=ih(n);null!==t;t=rh(t))for(let e=10;e<t.length;e++){const i=t[e],r=i[1];Ed(i)&&ys(r,i,r.template,i[8])}}(t),null!==n.contentQueries&&b_(n,t),o){const c=n.contentCheckHooks;null!==c&&ll(t,c)}else{const c=n.contentHooks;null!==c&&cl(t,c,1),xd(t,1)}!function bS(n,t){const e=n.hostBindingOpCodes;if(null!==e)try{for(let i=0;i<e.length;i++){const r=e[i];if(r<0)Hi(~r);else{const s=r,o=e[++i],a=e[++i];h5(o,s),a(2,t[s])}}}finally{Hi(-1)}}(n,t);const a=n.components;null!==a&&function wS(n,t){for(let e=0;e<t.length;e++)jS(n,t[e])}(t,a);const l=n.viewQuery;if(null!==l&&qh(2,l,i),o){const c=n.viewCheckHooks;null!==c&&ll(t,c)}else{const c=n.viewHooks;null!==c&&cl(t,c,2),xd(t,2)}!0===n.firstUpdatePass&&(n.firstUpdatePass=!1),t[2]&=-41,512&t[2]&&(t[2]&=-513,Cd(t[3],-1))}finally{ol()}}}function CS(n,t,e,i){const r=t[10],o=cg(t);try{!o&&r.begin&&r.begin(),o&&ko(n,t,i),ys(n,t,e,i)}finally{!o&&r.end&&r.end()}}function w_(n,t,e,i,r){const s=Pt(),o=2&i;try{Hi(-1),o&&t.length>22&&Hm(n,t,22,!1),e(i,r)}finally{Hi(s)}}function E_(n,t,e){if(pd(t)){const r=t.directiveEnd;for(let s=t.directiveStart;s<r;s++){const o=n.data[s];o.contentQueries&&o.contentQueries(1,e[s],s)}}}function zh(n,t,e){!hg()||(function OS(n,t,e,i){const r=e.directiveStart,s=e.directiveEnd;n.firstCreatePass||go(e,t),It(i,t);const o=e.initialInputs;for(let a=r;a<s;a++){const l=n.data[a],c=kn(l);c&&PS(t,e,l);const u=mo(t,n,a,e);It(u,t),null!==o&&VS(0,a-r,u,l,0,o),c&&(rn(e.index,t)[8]=u)}}(n,t,e,wn(e,t)),128==(128&e.flags)&&function FS(n,t,e){const i=e.directiveStart,r=e.directiveEnd,s=e.index,o=function f5(){return G.lFrame.currentDirectiveIndex}();try{Hi(s);for(let a=i;a<r;a++){const l=n.data[a],c=t[a];Sd(a),(null!==l.hostBindings||0!==l.hostVars||null!==l.hostAttrs)&&x_(l,c)}}finally{Hi(-1),Sd(o)}}(n,t,e))}function jh(n,t,e=wn){const i=t.localNames;if(null!==i){let r=t.index+1;for(let s=0;s<i.length;s+=2){const o=i[s+1],a=-1===o?e(t,n):n[o];n[r++]=a}}}function C_(n){const t=n.tView;return null===t||t.incompleteFirstPass?n.tView=kl(1,null,n.template,n.decls,n.vars,n.directiveDefs,n.pipeDefs,n.viewQuery,n.schemas,n.consts):t}function kl(n,t,e,i,r,s,o,a,l,c){const u=22+i,d=u+r,h=function DS(n,t){const e=[];for(let i=0;i<t;i++)e.push(i<n?null:Z);return e}(u,d),p="function"==typeof c?c():c;return h[1]={type:n,blueprint:h,template:e,queries:null,viewQuery:a,declTNode:t,data:h.slice().fill(null,u),bindingStartIndex:u,expandoStartIndex:d,hostBindingOpCodes:null,firstCreatePass:!0,firstUpdatePass:!0,staticViewQueries:!1,staticContentQueries:!1,preOrderHooks:null,preOrderCheckHooks:null,contentHooks:null,contentCheckHooks:null,viewHooks:null,viewCheckHooks:null,destroyHooks:null,cleanup:null,contentQueries:null,components:null,directiveRegistry:"function"==typeof s?s():s,pipeRegistry:"function"==typeof o?o():o,firstChild:null,schemas:l,consts:p,incompleteFirstPass:!1}}function S_(n,t,e,i){const r=L_(t);null===e?r.push(i):(r.push(e),n.firstCreatePass&&N_(n).push(i,r.length-1))}function T_(n,t,e){for(let i in n)if(n.hasOwnProperty(i)){const r=n[i];(e=null===e?{}:e).hasOwnProperty(i)?e[i].push(t,r):e[i]=[t,r]}return e}function cn(n,t,e,i,r,s,o,a){const l=wn(t,e);let u,c=t.inputs;!a&&null!=c&&(u=c[i])?(B_(n,e,u,i,r),tl(t)&&function IS(n,t){const e=rn(t,n);16&e[2]||(e[2]|=32)}(e,t.index)):3&t.type&&(i=function TS(n){return"class"===n?"className":"for"===n?"htmlFor":"formaction"===n?"formAction":"innerHtml"===n?"innerHTML":"readonly"===n?"readOnly":"tabindex"===n?"tabIndex":n}(i),r=null!=o?o(r,t.value||"",i):r,Ke(s)?s.setProperty(l,i,r):Rd(i)||(l.setProperty?l.setProperty(i,r):l[i]=r))}function Uh(n,t,e,i){let r=!1;if(hg()){const s=function kS(n,t,e){const i=n.directiveRegistry;let r=null;if(i)for(let s=0;s<i.length;s++){const o=i[s];Vm(e,o.selectors,!1)&&(r||(r=[]),pl(go(e,t),n,o.type),kn(o)?(A_(n,e),r.unshift(o)):r.push(o))}return r}(n,t,e),o=null===i?null:{"":-1};if(null!==s){r=!0,R_(e,n.data.length,s.length);for(let u=0;u<s.length;u++){const d=s[u];d.providersResolver&&d.providersResolver(d)}let a=!1,l=!1,c=vs(n,t,s.length,null);for(let u=0;u<s.length;u++){const d=s[u];e.mergedAttrs=dl(e.mergedAttrs,d.hostAttrs),O_(n,e,t,c,d),NS(c,d,o),null!==d.contentQueries&&(e.flags|=8),(null!==d.hostBindings||null!==d.hostAttrs||0!==d.hostVars)&&(e.flags|=128);const h=d.type.prototype;!a&&(h.ngOnChanges||h.ngOnInit||h.ngDoCheck)&&((n.preOrderHooks||(n.preOrderHooks=[])).push(e.index),a=!0),!l&&(h.ngOnChanges||h.ngDoCheck)&&((n.preOrderCheckHooks||(n.preOrderCheckHooks=[])).push(e.index),l=!0),c++}!function SS(n,t){const i=t.directiveEnd,r=n.data,s=t.attrs,o=[];let a=null,l=null;for(let c=t.directiveStart;c<i;c++){const u=r[c],d=u.inputs,h=null===s||Pm(t)?null:BS(d,s);o.push(h),a=T_(d,c,a),l=T_(u.outputs,c,l)}null!==a&&(a.hasOwnProperty("class")&&(t.flags|=16),a.hasOwnProperty("style")&&(t.flags|=32)),t.initialInputs=o,t.inputs=a,t.outputs=l}(n,e)}o&&function LS(n,t,e){if(t){const i=n.localNames=[];for(let r=0;r<t.length;r+=2){const s=e[t[r+1]];if(null==s)throw new F(-301,!1);i.push(t[r],s)}}}(e,i,o)}return e.mergedAttrs=dl(e.mergedAttrs,e.attrs),r}function I_(n,t,e,i,r,s){const o=s.hostBindings;if(o){let a=n.hostBindingOpCodes;null===a&&(a=n.hostBindingOpCodes=[]);const l=~t.index;(function RS(n){let t=n.length;for(;t>0;){const e=n[--t];if("number"==typeof e&&e<0)return e}return 0})(a)!=l&&a.push(l),a.push(i,r,o)}}function x_(n,t){null!==n.hostBindings&&n.hostBindings(1,t)}function A_(n,t){t.flags|=2,(n.components||(n.components=[])).push(t.index)}function NS(n,t,e){if(e){if(t.exportAs)for(let i=0;i<t.exportAs.length;i++)e[t.exportAs[i]]=n;kn(t)&&(e[""]=n)}}function R_(n,t,e){n.flags|=1,n.directiveStart=t,n.directiveEnd=t+e,n.providerIndexes=t}function O_(n,t,e,i,r){n.data[i]=r;const s=r.factory||(r.factory=gr(r.type)),o=new fo(s,kn(r),_);n.blueprint[i]=o,e[i]=o,I_(n,t,0,i,vs(n,e,r.hostVars,Z),r)}function PS(n,t,e){const i=wn(t,n),r=C_(e),s=n[10],o=Ll(n,Fo(n,r,null,e.onPush?32:16,i,t,s,s.createRenderer(i,e),null,null,null));n[t.index]=o}function Jn(n,t,e,i,r,s){const o=wn(n,t);!function $h(n,t,e,i,r,s,o){if(null==s)Ke(n)?n.removeAttribute(t,r,e):t.removeAttribute(r);else{const a=null==o?q(s):o(s,i||"",r);Ke(n)?n.setAttribute(t,r,a,e):e?t.setAttributeNS(e,r,a):t.setAttribute(r,a)}}(t[11],o,s,n.value,e,i,r)}function VS(n,t,e,i,r,s){const o=s[t];if(null!==o){const a=i.setInput;for(let l=0;l<o.length;){const c=o[l++],u=o[l++],d=o[l++];null!==a?i.setInput(e,d,c,u):e[u]=d}}}function BS(n,t){let e=null,i=0;for(;i<t.length;){const r=t[i];if(0!==r)if(5!==r){if("number"==typeof r)break;n.hasOwnProperty(r)&&(null===e&&(e=[]),e.push(r,n[r],t[i+1])),i+=2}else i+=2;else i+=4}return e}function F_(n,t,e,i){return new Array(n,!0,!1,t,null,0,i,e,null,null)}function jS(n,t){const e=rn(t,n);if(Ed(e)){const i=e[1];48&e[2]?ys(i,e,i.template,e[8]):e[5]>0&&Yh(e)}}function Yh(n){for(let i=ih(n);null!==i;i=rh(i))for(let r=10;r<i.length;r++){const s=i[r];if(512&s[2]){const o=s[1];ys(o,s,o.template,s[8])}else s[5]>0&&Yh(s)}const e=n[1].components;if(null!==e)for(let i=0;i<e.length;i++){const r=rn(e[i],n);Ed(r)&&r[5]>0&&Yh(r)}}function US(n,t){const e=rn(t,n),i=e[1];(function $S(n,t){for(let e=t.length;e<n.blueprint.length;e++)t.push(n.blueprint[e])})(i,e),ko(i,e,e[8])}function Ll(n,t){return n[13]?n[14][4]=t:n[13]=t,n[14]=t,t}function Gh(n){for(;n;){n[2]|=32;const t=Ro(n);if($D(n)&&!t)return n;n=t}return null}function k_(n){!function Wh(n){for(let t=0;t<n.components.length;t++){const e=n.components[t],i=eh(e);if(null!==i){const r=i[1];CS(r,i,r.template,e)}}}(n[8])}function qh(n,t,e){Id(0),t(n,e)}const GS=(()=>Promise.resolve(null))();function L_(n){return n[7]||(n[7]=[])}function N_(n){return n.cleanup||(n.cleanup=[])}function V_(n,t){const e=n[9],i=e?e.get(Ei,null):null;i&&i.handleError(t)}function B_(n,t,e,i,r){for(let s=0;s<e.length;){const o=e[s++],a=e[s++],l=t[o],c=n.data[o];null!==c.setInput?c.setInput(l,r,i,a):l[a]=r}}function Mi(n,t,e){const i=il(t,n);!function ym(n,t,e){Ke(n)?n.setValue(t,e):t.textContent=e}(n[11],i,e)}function Nl(n,t,e){let i=e?n.styles:null,r=e?n.classes:null,s=0;if(null!==t)for(let o=0;o<t.length;o++){const a=t[o];"number"==typeof a?s=a:1==s?r=sd(r,a):2==s&&(i=sd(i,a+": "+t[++o]+";"))}e?n.styles=i:n.stylesWithoutHost=i,e?n.classes=r:n.classesWithoutHost=r}function iT(){const n=ct();al(D()[1],n)}function ce(n){let t=function X_(n){return Object.getPrototypeOf(n.prototype).constructor}(n.type),e=!0;const i=[n];for(;t;){let r;if(kn(n))r=t.\u0275cmp||t.\u0275dir;else{if(t.\u0275cmp)throw new F(903,"");r=t.\u0275dir}if(r){if(e){i.push(r);const o=n;o.inputs=Xh(n.inputs),o.declaredInputs=Xh(n.declaredInputs),o.outputs=Xh(n.outputs);const a=r.hostBindings;a&&aT(n,a);const l=r.viewQuery,c=r.contentQueries;if(l&&sT(n,l),c&&oT(n,c),rd(n.inputs,r.inputs),rd(n.declaredInputs,r.declaredInputs),rd(n.outputs,r.outputs),kn(r)&&r.data.animation){const u=n.data;u.animation=(u.animation||[]).concat(r.data.animation)}}const s=r.features;if(s)for(let o=0;o<s.length;o++){const a=s[o];a&&a.ngInherit&&a(n),a===ce&&(e=!1)}}t=Object.getPrototypeOf(t)}!function rT(n){let t=0,e=null;for(let i=n.length-1;i>=0;i--){const r=n[i];r.hostVars=t+=r.hostVars,r.hostAttrs=dl(r.hostAttrs,e=dl(e,r.hostAttrs))}}(i)}function Xh(n){return n===Zr?{}:n===ye?[]:n}function sT(n,t){const e=n.viewQuery;n.viewQuery=e?(i,r)=>{t(i,r),e(i,r)}:t}function oT(n,t){const e=n.contentQueries;n.contentQueries=e?(i,r,s)=>{t(i,r,s),e(i,r,s)}:t}function aT(n,t){const e=n.hostBindings;n.hostBindings=e?(i,r)=>{t(i,r),e(i,r)}:t}let Pl=null;function br(){if(!Pl){const n=Se.Symbol;if(n&&n.iterator)Pl=n.iterator;else{const t=Object.getOwnPropertyNames(Map.prototype);for(let e=0;e<t.length;++e){const i=t[e];"entries"!==i&&"size"!==i&&Map.prototype[i]===Map.prototype.entries&&(Pl=i)}}}return Pl}function Lo(n){return!!Qh(n)&&(Array.isArray(n)||!(n instanceof Map)&&br()in n)}function Qh(n){return null!==n&&("function"==typeof n||"object"==typeof n)}function ei(n,t,e){return n[t]=e}function xt(n,t,e){return!Object.is(n[t],e)&&(n[t]=e,!0)}function wr(n,t,e,i){const r=xt(n,t,e);return xt(n,t+1,i)||r}function Ze(n,t,e,i){const r=D();return xt(r,ns(),t)&&(ge(),Jn(qe(),r,n,t,e,i)),Ze}function ws(n,t,e,i){return xt(n,ns(),e)?t+q(e)+i:Z}function Ds(n,t,e,i,r,s,o,a,l,c){const d=function En(n,t,e,i,r,s){const o=wr(n,t,e,i);return wr(n,t+2,r,s)||o}(n,yi(),e,r,o,l);return bi(4),d?t+q(e)+i+q(r)+s+q(o)+a+q(l)+c:Z}function C(n,t,e,i,r,s,o,a){const l=D(),c=ge(),u=n+22,d=c.firstCreatePass?function pT(n,t,e,i,r,s,o,a,l){const c=t.consts,u=_s(t,n,4,o||null,Bi(c,a));Uh(t,e,u,Bi(c,l)),al(t,u);const d=u.tViews=kl(2,u,i,r,s,t.directiveRegistry,t.pipeRegistry,null,t.schemas,c);return null!==t.queries&&(t.queries.template(t,u),d.queries=t.queries.embeddedTView(u)),u}(u,c,l,t,e,i,r,s,o):c.data[u];Kn(d,!1);const h=l[11].createComment("");Tl(c,l,h,d),It(h,l),Ll(l,l[u]=F_(h,l,h,d)),nl(d)&&zh(c,l,d),null!=o&&jh(l,d,a)}function Q(n){return ts(function u5(){return G.lFrame.contextLView}(),22+n)}function w(n,t,e){const i=D();return xt(i,ns(),t)&&cn(ge(),qe(),i,n,t,i[11],e,!1),w}function Jh(n,t,e,i,r){const o=r?"class":"style";B_(n,e,t.inputs[o],o,i)}function x(n,t,e,i){const r=D(),s=ge(),o=22+n,a=r[11],l=r[o]=oh(a,t,function w5(){return G.lFrame.currentNamespace}()),c=s.firstCreatePass?function mT(n,t,e,i,r,s,o){const a=t.consts,c=_s(t,n,2,r,Bi(a,s));return Uh(t,e,c,Bi(a,o)),null!==c.attrs&&Nl(c,c.attrs,!1),null!==c.mergedAttrs&&Nl(c,c.mergedAttrs,!0),null!==t.queries&&t.queries.elementStart(t,c),c}(o,s,r,0,t,e,i):s.data[o];Kn(c,!0);const u=c.mergedAttrs;null!==u&&ul(a,l,u);const d=c.classes;null!==d&&hh(a,l,d);const h=c.styles;return null!==h&&km(a,l,h),64!=(64&c.flags)&&Tl(s,r,l,c),0===function s5(){return G.lFrame.elementDepthCount}()&&It(l,r),function o5(){G.lFrame.elementDepthCount++}(),nl(c)&&(zh(s,r,c),E_(s,c,r)),null!==i&&jh(r,c),x}function L(){let n=ct();Dd()?Md():(n=n.parent,Kn(n,!1));const t=n;!function a5(){G.lFrame.elementDepthCount--}();const e=ge();return e.firstCreatePass&&(al(e,n),pd(n)&&e.queries.elementEnd(n)),null!=t.classesWithoutHost&&function S5(n){return 0!=(16&n.flags)}(t)&&Jh(e,t,D(),t.classesWithoutHost,!0),null!=t.stylesWithoutHost&&function T5(n){return 0!=(32&n.flags)}(t)&&Jh(e,t,D(),t.stylesWithoutHost,!1),L}function oe(n,t,e,i){return x(n,t,e,i),L(),oe}function _t(n,t,e){const i=D(),r=ge(),s=n+22,o=r.firstCreatePass?function _T(n,t,e,i,r){const s=t.consts,o=Bi(s,i),a=_s(t,n,8,"ng-container",o);return null!==o&&Nl(a,o,!0),Uh(t,e,a,Bi(s,r)),null!==t.queries&&t.queries.elementStart(t,a),a}(s,r,i,t,e):r.data[s];Kn(o,!0);const a=i[s]=i[11].createComment("");return Tl(r,i,a,o),It(a,i),nl(o)&&(zh(r,i,o),E_(r,o,i)),null!=e&&jh(i,o),_t}function vt(){let n=ct();const t=ge();return Dd()?Md():(n=n.parent,Kn(n,!1)),t.firstCreatePass&&(al(t,n),pd(n)&&t.queries.elementEnd(n)),vt}function Ne(n,t,e){return _t(n,t,e),vt(),Ne}function yt(){return D()}function Po(n){return!!n&&"function"==typeof n.then}function av(n){return!!n&&"function"==typeof n.subscribe}const ef=av;function W(n,t,e,i){const r=D(),s=ge(),o=ct();return function cv(n,t,e,i,r,s,o,a){const l=nl(i),u=n.firstCreatePass&&N_(n),d=t[8],h=L_(t);let p=!0;if(3&i.type||a){const y=wn(i,t),b=a?a(y):y,I=h.length,E=a?A=>a(tt(A[i.index])):i.index;if(Ke(e)){let A=null;if(!a&&l&&(A=function vT(n,t,e,i){const r=n.cleanup;if(null!=r)for(let s=0;s<r.length-1;s+=2){const o=r[s];if(o===e&&r[s+1]===i){const a=t[7],l=r[s+2];return a.length>l?a[l]:null}"string"==typeof o&&(s+=2)}return null}(n,t,r,i.index)),null!==A)(A.__ngLastListenerFn__||A).__ngNextListenerFn__=s,A.__ngLastListenerFn__=s,p=!1;else{s=tf(i,t,d,s,!1);const X=e.listen(b,r,s);h.push(s,X),u&&u.push(r,E,I,I+1)}}else s=tf(i,t,d,s,!0),b.addEventListener(r,s,o),h.push(s),u&&u.push(r,E,I,o)}else s=tf(i,t,d,s,!1);const g=i.outputs;let m;if(p&&null!==g&&(m=g[r])){const y=m.length;if(y)for(let b=0;b<y;b+=2){const he=t[m[b]][m[b+1]].subscribe(s),$e=h.length;h.push(s,he),u&&u.push(r,i.index,$e,-($e+1))}}}(s,r,r[11],o,n,t,!!e,i),W}function uv(n,t,e,i){try{return!1!==e(i)}catch(r){return V_(n,r),!1}}function tf(n,t,e,i,r){return function s(o){if(o===Function)return i;Gh(2&n.flags?rn(n.index,t):t);let l=uv(t,0,i,o),c=s.__ngNextListenerFn__;for(;c;)l=uv(t,0,c,o)&&l,c=c.__ngNextListenerFn__;return r&&!1===l&&(o.preventDefault(),o.returnValue=!1),l}}function T(n=1){return function g5(n){return(G.lFrame.contextLView=function m5(n,t){for(;n>0;)t=t[15],n--;return t}(n,G.lFrame.contextLView))[8]}(n)}function yT(n,t){let e=null;const i=function SM(n){const t=n.attrs;if(null!=t){const e=t.indexOf(5);if(0==(1&e))return t[e+1]}return null}(n);for(let r=0;r<t.length;r++){const s=t[r];if("*"!==s){if(null===i?Vm(n,s,!0):xM(i,s))return r}else e=r}return e}function Er(n){const t=D()[16][6];if(!t.projection){const i=t.projection=yo(n?n.length:1,null),r=i.slice();let s=t.child;for(;null!==s;){const o=n?yT(s,n):0;null!==o&&(r[o]?r[o].projectionNext=s:i[o]=s,r[o]=s),s=s.next}}}function Bt(n,t=0,e){const i=D(),r=ge(),s=_s(r,22+n,16,null,e||null);null===s.projection&&(s.projection=t),Md(),64!=(64&s.flags)&&function yM(n,t,e){Fm(t[11],0,t,e,Em(n,e,t),Tm(e.parent||t[6],e,t))}(r,i,s)}function rt(n,t,e){return nf(n,"",t,"",e),rt}function nf(n,t,e,i,r){const s=D(),o=ws(s,t,e,i);return o!==Z&&cn(ge(),qe(),s,n,o,s[11],r,!1),nf}function yv(n,t,e,i,r){const s=n[e+1],o=null===t;let a=i?Nn(s):Di(s),l=!1;for(;0!==a&&(!1===l||o);){const u=n[a+1];ET(n[a],t)&&(l=!0,n[a+1]=i?Rh(u):xh(u)),a=i?Nn(u):Di(u)}l&&(n[e+1]=i?xh(s):Rh(s))}function ET(n,t){return null===n||null==t||(Array.isArray(n)?n[1]:n)===t||!(!Array.isArray(n)||"string"!=typeof t)&&us(n,t)>=0}const dt={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function bv(n){return n.substring(dt.key,dt.keyEnd)}function wv(n,t){const e=dt.textEnd;return e===t?-1:(t=dt.keyEnd=function ST(n,t,e){for(;t<e&&n.charCodeAt(t)>32;)t++;return t}(n,dt.key=t,e),xs(n,t,e))}function xs(n,t,e){for(;t<e&&n.charCodeAt(t)<=32;)t++;return t}function rf(n,t,e){return Vn(n,t,e,!1),rf}function Ht(n,t){return Vn(n,t,null,!0),Ht}function sf(n){Bn(on,ni,n,!0)}function ni(n,t){for(let e=function DT(n){return function Cv(n){dt.key=0,dt.keyEnd=0,dt.value=0,dt.valueEnd=0,dt.textEnd=n.length}(n),wv(n,xs(n,0,dt.textEnd))}(t);e>=0;e=wv(t,e))on(n,bv(t),!0)}function Vn(n,t,e,i){const r=D(),s=ge(),o=bi(2);s.firstUpdatePass&&Tv(s,n,o,i),t!==Z&&xt(r,o,t)&&xv(s,s.data[Pt()],r,r[11],n,r[o+1]=function NT(n,t){return null==n||("string"==typeof t?n+=t:"object"==typeof n&&(n=xe(an(n)))),n}(t,e),i,o)}function Bn(n,t,e,i){const r=ge(),s=bi(2);r.firstUpdatePass&&Tv(r,null,s,i);const o=D();if(e!==Z&&xt(o,s,e)){const a=r.data[Pt()];if(Rv(a,i)&&!Sv(r,s)){let l=i?a.classesWithoutHost:a.stylesWithoutHost;null!==l&&(e=sd(l,e||"")),Jh(r,a,o,e,i)}else!function LT(n,t,e,i,r,s,o,a){r===Z&&(r=ye);let l=0,c=0,u=0<r.length?r[0]:null,d=0<s.length?s[0]:null;for(;null!==u||null!==d;){const h=l<r.length?r[l+1]:void 0,p=c<s.length?s[c+1]:void 0;let m,g=null;u===d?(l+=2,c+=2,h!==p&&(g=d,m=p)):null===d||null!==u&&u<d?(l+=2,g=u):(c+=2,g=d,m=p),null!==g&&xv(n,t,e,i,g,m,o,a),u=l<r.length?r[l]:null,d=c<s.length?s[c]:null}}(r,a,o,o[11],o[s+1],o[s+1]=function kT(n,t,e){if(null==e||""===e)return ye;const i=[],r=an(e);if(Array.isArray(r))for(let s=0;s<r.length;s++)n(i,r[s],!0);else if("object"==typeof r)for(const s in r)r.hasOwnProperty(s)&&n(i,s,r[s]);else"string"==typeof r&&t(i,r);return i}(n,t,e),i,s)}}function Sv(n,t){return t>=n.expandoStartIndex}function Tv(n,t,e,i){const r=n.data;if(null===r[e+1]){const s=r[Pt()],o=Sv(n,e);Rv(s,i)&&null===t&&!o&&(t=!1),t=function AT(n,t,e,i){const r=function Td(n){const t=G.lFrame.currentDirectiveIndex;return-1===t?null:n[t]}(n);let s=i?t.residualClasses:t.residualStyles;if(null===r)0===(i?t.classBindings:t.styleBindings)&&(e=Vo(e=af(null,n,t,e,i),t.attrs,i),s=null);else{const o=t.directiveStylingLast;if(-1===o||n[o]!==r)if(e=af(r,n,t,e,i),null===s){let l=function RT(n,t,e){const i=e?t.classBindings:t.styleBindings;if(0!==Di(i))return n[Nn(i)]}(n,t,i);void 0!==l&&Array.isArray(l)&&(l=af(null,n,t,l[1],i),l=Vo(l,t.attrs,i),function OT(n,t,e,i){n[Nn(e?t.classBindings:t.styleBindings)]=i}(n,t,i,l))}else s=function FT(n,t,e){let i;const r=t.directiveEnd;for(let s=1+t.directiveStylingLast;s<r;s++)i=Vo(i,n[s].hostAttrs,e);return Vo(i,t.attrs,e)}(n,t,i)}return void 0!==s&&(i?t.residualClasses=s:t.residualStyles=s),e}(r,s,t,i),function bT(n,t,e,i,r,s){let o=s?t.classBindings:t.styleBindings,a=Nn(o),l=Di(o);n[i]=e;let u,c=!1;if(Array.isArray(e)){const d=e;u=d[1],(null===u||us(d,u)>0)&&(c=!0)}else u=e;if(r)if(0!==l){const h=Nn(n[a+1]);n[i+1]=Rl(h,a),0!==h&&(n[h+1]=Ah(n[h+1],i)),n[a+1]=function uS(n,t){return 131071&n|t<<17}(n[a+1],i)}else n[i+1]=Rl(a,0),0!==a&&(n[a+1]=Ah(n[a+1],i)),a=i;else n[i+1]=Rl(l,0),0===a?a=i:n[l+1]=Ah(n[l+1],i),l=i;c&&(n[i+1]=xh(n[i+1])),yv(n,u,i,!0),yv(n,u,i,!1),function wT(n,t,e,i,r){const s=r?n.residualClasses:n.residualStyles;null!=s&&"string"==typeof t&&us(s,t)>=0&&(e[i+1]=Rh(e[i+1]))}(t,u,n,i,s),o=Rl(a,l),s?t.classBindings=o:t.styleBindings=o}(r,s,t,e,o,i)}}function af(n,t,e,i,r){let s=null;const o=e.directiveEnd;let a=e.directiveStylingLast;for(-1===a?a=e.directiveStart:a++;a<o&&(s=t[a],i=Vo(i,s.hostAttrs,r),s!==n);)a++;return null!==n&&(e.directiveStylingLast=a),i}function Vo(n,t,e){const i=e?1:2;let r=-1;if(null!==t)for(let s=0;s<t.length;s++){const o=t[s];"number"==typeof o?r=o:r===i&&(Array.isArray(n)||(n=void 0===n?[]:["",n]),on(n,o,!!e||t[++s]))}return void 0===n?null:n}function xv(n,t,e,i,r,s,o,a){if(!(3&t.type))return;const l=n.data,c=l[a+1];Bl(function h_(n){return 1==(1&n)}(c)?Av(l,t,e,r,Di(c),o):void 0)||(Bl(s)||function d_(n){return 2==(2&n)}(c)&&(s=Av(l,null,e,r,a,o)),function wM(n,t,e,i,r){const s=Ke(n);if(t)r?s?n.addClass(e,i):e.classList.add(i):s?n.removeClass(e,i):e.classList.remove(i);else{let o=-1===i.indexOf("-")?void 0:ln.DashCase;if(null==r)s?n.removeStyle(e,i,o):e.style.removeProperty(i);else{const a="string"==typeof r&&r.endsWith("!important");a&&(r=r.slice(0,-10),o|=ln.Important),s?n.setStyle(e,i,r,o):e.style.setProperty(i,r,a?"important":"")}}}(i,o,il(Pt(),e),r,s))}function Av(n,t,e,i,r,s){const o=null===t;let a;for(;r>0;){const l=n[r],c=Array.isArray(l),u=c?l[1]:l,d=null===u;let h=e[r+1];h===Z&&(h=d?ye:void 0);let p=d?Vd(h,i):u===i?h:void 0;if(c&&!Bl(p)&&(p=Vd(l,i)),Bl(p)&&(a=p,o))return a;const g=n[r+1];r=o?Nn(g):Di(g)}if(null!==t){let l=s?t.residualClasses:t.residualStyles;null!=l&&(a=Vd(l,i))}return a}function Bl(n){return void 0!==n}function Rv(n,t){return 0!=(n.flags&(t?16:32))}function Be(n,t=""){const e=D(),i=ge(),r=n+22,s=i.firstCreatePass?_s(i,r,1,t,null):i.data[r],o=e[r]=function sh(n,t){return Ke(n)?n.createText(t):n.createTextNode(t)}(e[11],t);Tl(i,e,o,s),Kn(s,!1)}function Kt(n){return Hn("",n,""),Kt}function Hn(n,t,e){const i=D(),r=ws(i,n,t,e);return r!==Z&&Mi(i,Pt(),r),Hn}function lf(n,t,e,i,r){const s=D(),o=function Es(n,t,e,i,r,s){const a=wr(n,yi(),e,r);return bi(2),a?t+q(e)+i+q(r)+s:Z}(s,n,t,e,i,r);return o!==Z&&Mi(s,Pt(),o),lf}function As(n,t,e){Bn(on,ni,ws(D(),n,t,e),!0)}function Hl(n,t,e){const i=D();return xt(i,ns(),t)&&cn(ge(),qe(),i,n,t,i[11],e,!0),Hl}const Os="en-US";let Qv=Os;function df(n,t,e,i,r){if(n=$(n),Array.isArray(n))for(let s=0;s<n.length;s++)df(n[s],t,e,i,r);else{const s=ge(),o=D();let a=vr(n)?n:$(n.provide),l=Qm(n);const c=ct(),u=1048575&c.providerIndexes,d=c.directiveStart,h=c.providerIndexes>>20;if(vr(n)||!n.multi){const p=new fo(l,r,_),g=ff(a,t,r?u:u+h,d);-1===g?(pl(go(c,o),s,a),hf(s,n,t.length),t.push(a),c.directiveStart++,c.directiveEnd++,r&&(c.providerIndexes+=1048576),e.push(p),o.push(p)):(e[g]=p,o[g]=p)}else{const p=ff(a,t,u+h,d),g=ff(a,t,u,u+h),m=p>=0&&e[p],y=g>=0&&e[g];if(r&&!y||!r&&!m){pl(go(c,o),s,a);const b=function Q6(n,t,e,i,r){const s=new fo(n,e,_);return s.multi=[],s.index=t,s.componentProviders=0,Cy(s,r,i&&!e),s}(r?X6:Z6,e.length,r,i,l);!r&&y&&(e[g].providerFactory=b),hf(s,n,t.length,0),t.push(a),c.directiveStart++,c.directiveEnd++,r&&(c.providerIndexes+=1048576),e.push(b),o.push(b)}else hf(s,n,p>-1?p:g,Cy(e[r?g:p],l,!r&&i));!r&&i&&y&&e[g].componentProviders++}}}function hf(n,t,e,i){const r=vr(t),s=function HM(n){return!!n.useClass}(t);if(r||s){const l=(s?$(t.useClass):t).prototype.ngOnDestroy;if(l){const c=n.destroyHooks||(n.destroyHooks=[]);if(!r&&t.multi){const u=c.indexOf(e);-1===u?c.push(e,[i,l]):c[u+1].push(i,l)}else c.push(e,l)}}}function Cy(n,t,e){return e&&n.componentProviders++,n.multi.push(t)-1}function ff(n,t,e,i){for(let r=e;r<i;r++)if(t[r]===n)return r;return-1}function Z6(n,t,e,i){return pf(this.multi,[])}function X6(n,t,e,i){const r=this.multi;let s;if(this.providerFactory){const o=this.providerFactory.componentProviders,a=mo(e,e[1],this.providerFactory.index,i);s=a.slice(0,o),pf(r,s);for(let l=o;l<a.length;l++)s.push(a[l])}else s=[],pf(r,s);return s}function pf(n,t){for(let e=0;e<n.length;e++)t.push((0,n[e])());return t}function we(n,t=[]){return e=>{e.providersResolver=(i,r)=>function q6(n,t,e){const i=ge();if(i.firstCreatePass){const r=kn(n);df(e,i.data,i.blueprint,r,!0),df(t,i.data,i.blueprint,r,!1)}}(i,r?r(n):n,t)}}class eI{resolveComponentFactory(t){throw function J6(n){const t=Error(`No component factory found for ${xe(n)}. Did you add it to @NgModule.entryComponents?`);return t.ngComponent=n,t}(t)}}let Yi=(()=>{class n{}return n.NULL=new eI,n})();class Gi{}class My{}class Sy{}function nI(){return ks(ct(),D())}function ks(n,t){return new se(wn(n,t))}let se=(()=>{class n{constructor(e){this.nativeElement=e}}return n.__NG_ELEMENT_ID__=nI,n})();function iI(n){return n instanceof se?n.nativeElement:n}class Uo{}let ht=(()=>{class n{}return n.__NG_ELEMENT_ID__=()=>function sI(){const n=D(),e=rn(ct().index,n);return function rI(n){return n[11]}(Wt(e)?e:n)}(),n})(),oI=(()=>{class n{}return n.\u0275prov=S({token:n,providedIn:"root",factory:()=>null}),n})();class Wi{constructor(t){this.full=t,this.major=t.split(".")[0],this.minor=t.split(".")[1],this.patch=t.split(".").slice(2).join(".")}}const aI=new Wi("14.0.2"),gf={};function Yl(n,t,e,i,r=!1){for(;null!==e;){const s=t[e.index];if(null!==s&&i.push(tt(s)),Fn(s))for(let a=10;a<s.length;a++){const l=s[a],c=l[1].firstChild;null!==c&&Yl(l[1],l,c,i)}const o=e.type;if(8&o)Yl(n,t,e.child,i);else if(32&o){const a=nh(e,t);let l;for(;l=a();)i.push(l)}else if(16&o){const a=Rm(t,e);if(Array.isArray(a))i.push(...a);else{const l=Ro(t[16]);Yl(l[1],l,a,i,!0)}}e=r?e.projectionNext:e.next}return i}class $o{constructor(t,e){this._lView=t,this._cdRefInjectingView=e,this._appRef=null,this._attachedToViewContainer=!1}get rootNodes(){const t=this._lView,e=t[1];return Yl(e,t,e.firstChild,[])}get context(){return this._lView[8]}set context(t){this._lView[8]=t}get destroyed(){return 128==(128&this._lView[2])}destroy(){if(this._appRef)this._appRef.detachView(this);else if(this._attachedToViewContainer){const t=this._lView[3];if(Fn(t)){const e=t[8],i=e?e.indexOf(this):-1;i>-1&&(ah(t,i),ml(e,i))}this._attachedToViewContainer=!1}wm(this._lView[1],this._lView)}onDestroy(t){S_(this._lView[1],this._lView,null,t)}markForCheck(){Gh(this._cdRefInjectingView||this._lView)}detach(){this._lView[2]&=-65}reattach(){this._lView[2]|=64}detectChanges(){!function Kh(n,t,e){const i=t[10];i.begin&&i.begin();try{ys(n,t,n.template,e)}catch(r){throw V_(t,r),r}finally{i.end&&i.end()}}(this._lView[1],this._lView,this.context)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new F(902,"");this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null,function dM(n,t){Oo(n,t,t[11],2,null,null)}(this._lView[1],this._lView)}attachToAppRef(t){if(this._attachedToViewContainer)throw new F(902,"");this._appRef=t}}class lI extends $o{constructor(t){super(t),this._view=t}detectChanges(){k_(this._view)}checkNoChanges(){}get context(){return null}}class mf extends Yi{constructor(t){super(),this.ngModule=t}resolveComponentFactory(t){const e=Ae(t);return new _f(e,this.ngModule)}}function Ty(n){const t=[];for(let e in n)n.hasOwnProperty(e)&&t.push({propName:n[e],templateName:e});return t}class uI{constructor(t,e){this.injector=t,this.parentInjector=e}get(t,e,i){const r=this.injector.get(t,gf,i);return r!==gf||e===gf?r:this.parentInjector.get(t,e,i)}}class _f extends Sy{constructor(t,e){super(),this.componentDef=t,this.ngModule=e,this.componentType=t.type,this.selector=function RM(n){return n.map(AM).join(",")}(t.selectors),this.ngContentSelectors=t.ngContentSelectors?t.ngContentSelectors:[],this.isBoundToModule=!!e}get inputs(){return Ty(this.componentDef.inputs)}get outputs(){return Ty(this.componentDef.outputs)}create(t,e,i,r){let s=(r=r||this.ngModule)instanceof yr?r:r?.injector;s&&null!==this.componentDef.getStandaloneInjector&&(s=this.componentDef.getStandaloneInjector(s)||s);const o=s?new uI(t,s):t,a=o.get(Uo,lg),l=o.get(oI,null),c=a.createRenderer(null,this.componentDef),u=this.componentDef.selectors[0][0]||"div",d=i?function M_(n,t,e){if(Ke(n))return n.selectRootElement(t,e===Rn.ShadowDom);let i="string"==typeof t?n.querySelector(t):t;return i.textContent="",i}(c,i,this.componentDef.encapsulation):oh(a.createRenderer(null,this.componentDef),u,function cI(n){const t=n.toLowerCase();return"svg"===t?"svg":"math"===t?"math":null}(u)),h=this.componentDef.onPush?288:272,p=function Z_(n,t){return{components:[],scheduler:n||nM,clean:GS,playerHandler:t||null,flags:0}}(),g=kl(0,null,null,1,0,null,null,null,null,null),m=Fo(null,g,p,h,null,null,a,c,l,o,null);let y,b;sl(m);try{const I=function K_(n,t,e,i,r,s){const o=e[1];e[22]=n;const l=_s(o,22,2,"#host",null),c=l.mergedAttrs=t.hostAttrs;null!==c&&(Nl(l,c,!0),null!==n&&(ul(r,n,c),null!==l.classes&&hh(r,n,l.classes),null!==l.styles&&km(r,n,l.styles)));const u=i.createRenderer(n,t),d=Fo(e,C_(t),null,t.onPush?32:16,e[22],l,i,u,s||null,null,null);return o.firstCreatePass&&(pl(go(l,e),o,t.type),A_(o,l),R_(l,e.length,1)),Ll(e,d),e[22]=d}(d,this.componentDef,m,a,c);if(d)if(i)ul(c,d,["ng-version",aI.full]);else{const{attrs:E,classes:A}=function OM(n){const t=[],e=[];let i=1,r=2;for(;i<n.length;){let s=n[i];if("string"==typeof s)2===r?""!==s&&t.push(s,n[++i]):8===r&&e.push(s);else{if(!Ln(r))break;r=s}i++}return{attrs:t,classes:e}}(this.componentDef.selectors[0]);E&&ul(c,d,E),A&&A.length>0&&hh(c,d,A.join(" "))}if(b=wd(g,22),void 0!==e){const E=b.projection=[];for(let A=0;A<this.ngContentSelectors.length;A++){const X=e[A];E.push(null!=X?Array.from(X):null)}}y=function q_(n,t,e,i,r){const s=e[1],o=function AS(n,t,e){const i=ct();n.firstCreatePass&&(e.providersResolver&&e.providersResolver(e),O_(n,i,t,vs(n,t,1,null),e));const r=mo(t,n,i.directiveStart,i);It(r,t);const s=wn(i,t);return s&&It(s,t),r}(s,e,t);if(i.components.push(o),n[8]=o,null!==r)for(const l of r)l(o,t);if(t.contentQueries){const l=ct();t.contentQueries(1,o,l.directiveStart)}const a=ct();return!s.firstCreatePass||null===t.hostBindings&&null===t.hostAttrs||(Hi(a.index),I_(e[1],a,0,a.directiveStart,a.directiveEnd,t),x_(t,o)),o}(I,this.componentDef,m,p,[iT]),ko(g,m,null)}finally{ol()}return new hI(this.componentType,y,ks(b,m),m,b)}}class hI extends class tI{}{constructor(t,e,i,r,s){super(),this.location=i,this._rootLView=r,this._tNode=s,this.instance=e,this.hostView=this.changeDetectorRef=new lI(r),this.componentType=t}get injector(){return new ss(this._tNode,this._rootLView)}destroy(){this.hostView.destroy()}onDestroy(t){this.hostView.onDestroy(t)}}class Iy extends Gi{constructor(t,e){super(),this._parent=e,this._bootstrapComponents=[],this.injector=this,this.destroyCbs=[],this.componentFactoryResolver=new mf(this);const i=tn(t);this._bootstrapComponents=Ci(i.bootstrap),this._r3Injector=e_(t,e,[{provide:Gi,useValue:this},{provide:Yi,useValue:this.componentFactoryResolver}],xe(t),new Set(["environment"])),this._r3Injector.resolveInjectorInitializers(),this.instance=this.get(t)}get(t,e=it.THROW_IF_NOT_FOUND,i=z.Default){return t===it||t===Gi||t===gh?this:this._r3Injector.get(t,e,i)}destroy(){const t=this._r3Injector;!t.destroyed&&t.destroy(),this.destroyCbs.forEach(e=>e()),this.destroyCbs=null}onDestroy(t){this.destroyCbs.push(t)}}class vf extends My{constructor(t){super(),this.moduleType=t}create(t){return new Iy(this.moduleType,t)}}class pI extends Gi{constructor(t,e,i){super(),this.componentFactoryResolver=new mf(this),this.instance=null;const r=new Xm([...t,{provide:Gi,useValue:this},{provide:Yi,useValue:this.componentFactoryResolver}],e||vh(),i,new Set(["environment"]));this.injector=r,r.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(t){this.injector.onDestroy(t)}}function Ls(n,t,e){const i=Nt()+n,r=D();return r[i]===Z?ei(r,i,e?t.call(e):t()):function No(n,t){return n[t]}(r,i)}function ke(n,t,e,i){return Ay(D(),Nt(),n,t,e,i)}function Yo(n,t,e,i,r){return Ry(D(),Nt(),n,t,e,i,r)}function xy(n,t,e,i,r,s){return function Oy(n,t,e,i,r,s,o,a){const l=t+e;return function Vl(n,t,e,i,r){const s=wr(n,t,e,i);return xt(n,t+2,r)||s}(n,l,r,s,o)?ei(n,l+3,a?i.call(a,r,s,o):i(r,s,o)):Go(n,l+3)}(D(),Nt(),n,t,e,i,r,s)}function Go(n,t){const e=n[t];return e===Z?void 0:e}function Ay(n,t,e,i,r,s){const o=t+e;return xt(n,o,r)?ei(n,o+1,s?i.call(s,r):i(r)):Go(n,o+1)}function Ry(n,t,e,i,r,s,o){const a=t+e;return wr(n,a,r,s)?ei(n,a+2,o?i.call(o,r,s):i(r,s)):Go(n,a+2)}function ii(n,t){const e=ge();let i;const r=n+22;e.firstCreatePass?(i=function DI(n,t){if(t)for(let e=t.length-1;e>=0;e--){const i=t[e];if(n===i.name)return i}}(t,e.pipeRegistry),e.data[r]=i,i.onDestroy&&(e.destroyHooks||(e.destroyHooks=[])).push(r,i.onDestroy)):i=e.data[r];const s=i.factory||(i.factory=gr(i.type)),o=Wn(_);try{const a=hl(!1),l=s();return hl(a),function gT(n,t,e,i){e>=n.data.length&&(n.data[e]=null,n.blueprint[e]=null),t[e]=i}(e,D(),r,l),l}finally{Wn(o)}}function Wl(n,t,e){const i=n+22,r=D(),s=ts(r,i);return Wo(r,i)?Ay(r,Nt(),t,s.transform,e,s):s.transform(e)}function Dr(n,t,e,i){const r=n+22,s=D(),o=ts(s,r);return Wo(s,r)?Ry(s,Nt(),t,o.transform,e,i,o):o.transform(e,i)}function Wo(n,t){return n[1].data[t].pure}function yf(n){return t=>{setTimeout(n,void 0,t)}}const Y=class II extends le{constructor(t=!1){super(),this.__isAsync=t}emit(t){super.next(t)}subscribe(t,e,i){let r=t,s=e||(()=>null),o=i;if(t&&"object"==typeof t){const l=t;r=l.next?.bind(l),s=l.error?.bind(l),o=l.complete?.bind(l)}this.__isAsync&&(s=yf(s),r&&(r=yf(r)),o&&(o=yf(o)));const a=super.subscribe({next:r,error:s,complete:o});return t instanceof Ge&&t.add(a),a}};function xI(){return this._results[br()]()}class Ko{constructor(t=!1){this._emitDistinctChangesOnly=t,this.dirty=!0,this._results=[],this._changesDetected=!1,this._changes=null,this.length=0,this.first=void 0,this.last=void 0;const e=br(),i=Ko.prototype;i[e]||(i[e]=xI)}get changes(){return this._changes||(this._changes=new Y)}get(t){return this._results[t]}map(t){return this._results.map(t)}filter(t){return this._results.filter(t)}find(t){return this._results.find(t)}reduce(t,e){return this._results.reduce(t,e)}forEach(t){this._results.forEach(t)}some(t){return this._results.some(t)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(t,e){const i=this;i.dirty=!1;const r=sn(t);(this._changesDetected=!function P5(n,t,e){if(n.length!==t.length)return!1;for(let i=0;i<n.length;i++){let r=n[i],s=t[i];if(e&&(r=e(r),s=e(s)),s!==r)return!1}return!0}(i._results,r,e))&&(i._results=r,i.length=r.length,i.last=r[this.length-1],i.first=r[0])}notifyOnChanges(){this._changes&&(this._changesDetected||!this._emitDistinctChangesOnly)&&this._changes.emit(this)}setDirty(){this.dirty=!0}destroy(){this.changes.complete(),this.changes.unsubscribe()}}let zn=(()=>{class n{}return n.__NG_ELEMENT_ID__=OI,n})();const AI=zn,RI=class extends AI{constructor(t,e,i){super(),this._declarationLView=t,this._declarationTContainer=e,this.elementRef=i}createEmbeddedView(t,e){const i=this._declarationTContainer.tViews,r=Fo(this._declarationLView,i,t,16,null,i.declTNode,null,null,null,null,e||null);r[17]=this._declarationLView[this._declarationTContainer.index];const o=this._declarationLView[19];return null!==o&&(r[19]=o.createEmbeddedView(i)),ko(i,r,t),new $o(r)}};function OI(){return Kl(ct(),D())}function Kl(n,t){return 4&n.type?new RI(t,n,ks(n,t)):null}let un=(()=>{class n{}return n.__NG_ELEMENT_ID__=FI,n})();function FI(){return Py(ct(),D())}const kI=un,Ly=class extends kI{constructor(t,e,i){super(),this._lContainer=t,this._hostTNode=e,this._hostLView=i}get element(){return ks(this._hostTNode,this._hostLView)}get injector(){return new ss(this._hostTNode,this._hostLView)}get parentInjector(){const t=fl(this._hostTNode,this._hostLView);if(Mg(t)){const e=rs(t,this._hostLView),i=is(t);return new ss(e[1].data[i+8],e)}return new ss(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(t){const e=Ny(this._lContainer);return null!==e&&e[t]||null}get length(){return this._lContainer.length-10}createEmbeddedView(t,e,i){let r,s;"number"==typeof i?r=i:null!=i&&(r=i.index,s=i.injector);const o=t.createEmbeddedView(e||{},s);return this.insert(o,r),o}createComponent(t,e,i,r,s){const o=t&&!function vo(n){return"function"==typeof n}(t);let a;if(o)a=e;else{const d=e||{};a=d.index,i=d.injector,r=d.projectableNodes,s=d.environmentInjector||d.ngModuleRef}const l=o?t:new _f(Ae(t)),c=i||this.parentInjector;if(!s&&null==l.ngModule){const h=(o?c:this.parentInjector).get(yr,null);h&&(s=h)}const u=l.create(c,r,void 0,s);return this.insert(u.hostView,a),u}insert(t,e){const i=t._lView,r=i[1];if(function r5(n){return Fn(n[3])}(i)){const u=this.indexOf(t);if(-1!==u)this.detach(u);else{const d=i[3],h=new Ly(d,d[6],d[3]);h.detach(h.indexOf(t))}}const s=this._adjustIndex(e),o=this._lContainer;!function fM(n,t,e,i){const r=10+i,s=e.length;i>0&&(e[r-1][4]=t),i<s-10?(t[4]=e[r],Ng(e,10+i,t)):(e.push(t),t[4]=null),t[3]=e;const o=t[17];null!==o&&e!==o&&function pM(n,t){const e=n[9];t[16]!==t[3][3][16]&&(n[2]=!0),null===e?n[9]=[t]:e.push(t)}(o,t);const a=t[19];null!==a&&a.insertView(n),t[2]|=64}(r,i,o,s);const a=uh(s,o),l=i[11],c=Sl(l,o[7]);return null!==c&&function uM(n,t,e,i,r,s){i[0]=r,i[6]=t,Oo(n,i,e,1,r,s)}(r,o[6],l,i,c,a),t.attachToViewContainerRef(),Ng(bf(o),s,t),t}move(t,e){return this.insert(t,e)}indexOf(t){const e=Ny(this._lContainer);return null!==e?e.indexOf(t):-1}remove(t){const e=this._adjustIndex(t,-1),i=ah(this._lContainer,e);i&&(ml(bf(this._lContainer),e),wm(i[1],i))}detach(t){const e=this._adjustIndex(t,-1),i=ah(this._lContainer,e);return i&&null!=ml(bf(this._lContainer),e)?new $o(i):null}_adjustIndex(t,e=0){return t??this.length+e}};function Ny(n){return n[8]}function bf(n){return n[8]||(n[8]=[])}function Py(n,t){let e;const i=t[n.index];if(Fn(i))e=i;else{let r;if(8&n.type)r=tt(i);else{const s=t[11];r=s.createComment("");const o=wn(n,t);_r(s,Sl(s,o),r,function vM(n,t){return Ke(n)?n.nextSibling(t):t.nextSibling}(s,o),!1)}t[n.index]=e=F_(i,t,r,n),Ll(t,e)}return new Ly(e,n,t)}class wf{constructor(t){this.queryList=t,this.matches=null}clone(){return new wf(this.queryList)}setDirty(){this.queryList.setDirty()}}class Ef{constructor(t=[]){this.queries=t}createEmbeddedView(t){const e=t.queries;if(null!==e){const i=null!==t.contentQueries?t.contentQueries[0]:e.length,r=[];for(let s=0;s<i;s++){const o=e.getByIndex(s);r.push(this.queries[o.indexInDeclarationView].clone())}return new Ef(r)}return null}insertView(t){this.dirtyQueriesWithMatches(t)}detachView(t){this.dirtyQueriesWithMatches(t)}dirtyQueriesWithMatches(t){for(let e=0;e<this.queries.length;e++)null!==jy(t,e).matches&&this.queries[e].setDirty()}}class Vy{constructor(t,e,i=null){this.predicate=t,this.flags=e,this.read=i}}class Cf{constructor(t=[]){this.queries=t}elementStart(t,e){for(let i=0;i<this.queries.length;i++)this.queries[i].elementStart(t,e)}elementEnd(t){for(let e=0;e<this.queries.length;e++)this.queries[e].elementEnd(t)}embeddedTView(t){let e=null;for(let i=0;i<this.length;i++){const r=null!==e?e.length:0,s=this.getByIndex(i).embeddedTView(t,r);s&&(s.indexInDeclarationView=i,null!==e?e.push(s):e=[s])}return null!==e?new Cf(e):null}template(t,e){for(let i=0;i<this.queries.length;i++)this.queries[i].template(t,e)}getByIndex(t){return this.queries[t]}get length(){return this.queries.length}track(t){this.queries.push(t)}}class Df{constructor(t,e=-1){this.metadata=t,this.matches=null,this.indexInDeclarationView=-1,this.crossesNgTemplate=!1,this._appliesToNextNode=!0,this._declarationNodeIndex=e}elementStart(t,e){this.isApplyingToNode(e)&&this.matchTNode(t,e)}elementEnd(t){this._declarationNodeIndex===t.index&&(this._appliesToNextNode=!1)}template(t,e){this.elementStart(t,e)}embeddedTView(t,e){return this.isApplyingToNode(t)?(this.crossesNgTemplate=!0,this.addMatch(-t.index,e),new Df(this.metadata)):null}isApplyingToNode(t){if(this._appliesToNextNode&&1!=(1&this.metadata.flags)){const e=this._declarationNodeIndex;let i=t.parent;for(;null!==i&&8&i.type&&i.index!==e;)i=i.parent;return e===(null!==i?i.index:-1)}return this._appliesToNextNode}matchTNode(t,e){const i=this.metadata.predicate;if(Array.isArray(i))for(let r=0;r<i.length;r++){const s=i[r];this.matchTNodeWithReadOption(t,e,PI(e,s)),this.matchTNodeWithReadOption(t,e,gl(e,t,s,!1,!1))}else i===zn?4&e.type&&this.matchTNodeWithReadOption(t,e,-1):this.matchTNodeWithReadOption(t,e,gl(e,t,i,!1,!1))}matchTNodeWithReadOption(t,e,i){if(null!==i){const r=this.metadata.read;if(null!==r)if(r===se||r===un||r===zn&&4&e.type)this.addMatch(e.index,-2);else{const s=gl(e,t,r,!1,!1);null!==s&&this.addMatch(e.index,s)}else this.addMatch(e.index,i)}}addMatch(t,e){null===this.matches?this.matches=[t,e]:this.matches.push(t,e)}}function PI(n,t){const e=n.localNames;if(null!==e)for(let i=0;i<e.length;i+=2)if(e[i]===t)return e[i+1];return null}function BI(n,t,e,i){return-1===e?function VI(n,t){return 11&n.type?ks(n,t):4&n.type?Kl(n,t):null}(t,n):-2===e?function HI(n,t,e){return e===se?ks(t,n):e===zn?Kl(t,n):e===un?Py(t,n):void 0}(n,t,i):mo(n,n[1],e,t)}function By(n,t,e,i){const r=t[19].queries[i];if(null===r.matches){const s=n.data,o=e.matches,a=[];for(let l=0;l<o.length;l+=2){const c=o[l];a.push(c<0?null:BI(t,s[c],o[l+1],e.metadata.read))}r.matches=a}return r.matches}function Mf(n,t,e,i){const r=n.queries.getByIndex(e),s=r.matches;if(null!==s){const o=By(n,t,r,e);for(let a=0;a<s.length;a+=2){const l=s[a];if(l>0)i.push(o[a/2]);else{const c=s[a+1],u=t[-l];for(let d=10;d<u.length;d++){const h=u[d];h[17]===h[3]&&Mf(h[1],h,c,i)}if(null!==u[9]){const d=u[9];for(let h=0;h<d.length;h++){const p=d[h];Mf(p[1],p,c,i)}}}}}return i}function He(n){const t=D(),e=ge(),i=mg();Id(i+1);const r=jy(e,i);if(n.dirty&&cg(t)===(2==(2&r.metadata.flags))){if(null===r.matches)n.reset([]);else{const s=r.crossesNgTemplate?Mf(e,t,i,[]):By(e,t,r,i);n.reset(s,iI),n.notifyOnChanges()}return!0}return!1}function ri(n,t,e){const i=ge();i.firstCreatePass&&(zy(i,new Vy(n,t,e),-1),2==(2&t)&&(i.staticViewQueries=!0)),Hy(i,D(),t)}function jt(n,t,e,i){const r=ge();if(r.firstCreatePass){const s=ct();zy(r,new Vy(t,e,i),s.index),function jI(n,t){const e=n.contentQueries||(n.contentQueries=[]);t!==(e.length?e[e.length-1]:-1)&&e.push(n.queries.length-1,t)}(r,n),2==(2&e)&&(r.staticContentQueries=!0)}Hy(r,D(),e)}function ze(){return function zI(n,t){return n[19].queries[t].queryList}(D(),mg())}function Hy(n,t,e){const i=new Ko(4==(4&e));S_(n,t,i,i.destroy),null===t[19]&&(t[19]=new Ef),t[19].queries.push(new wf(i))}function zy(n,t,e){null===n.queries&&(n.queries=new Cf),n.queries.track(new Df(t,e))}function jy(n,t){return n.queries.getByIndex(t)}function Me(n,t){return Kl(n,t)}function Zl(...n){}const l2=new R("Application Initializer");let Xl=(()=>{class n{constructor(e){this.appInits=e,this.resolve=Zl,this.reject=Zl,this.initialized=!1,this.done=!1,this.donePromise=new Promise((i,r)=>{this.resolve=i,this.reject=r})}runInitializers(){if(this.initialized)return;const e=[],i=()=>{this.done=!0,this.resolve()};if(this.appInits)for(let r=0;r<this.appInits.length;r++){const s=this.appInits[r]();if(Po(s))e.push(s);else if(ef(s)){const o=new Promise((a,l)=>{s.subscribe({complete:a,error:l})});e.push(o)}}Promise.all(e).then(()=>{i()}).catch(r=>{this.reject(r)}),0===e.length&&i(),this.initialized=!0}}return n.\u0275fac=function(e){return new(e||n)(v(l2,8))},n.\u0275prov=S({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const Zo=new R("AppId",{providedIn:"root",factory:function c2(){return`${Af()}${Af()}${Af()}`}});function Af(){return String.fromCharCode(97+Math.floor(25*Math.random()))}const u2=new R("Platform Initializer"),Xo=new R("Platform ID",{providedIn:"platform",factory:()=>"unknown"}),lx=new R("appBootstrapListener"),Mr=new R("AnimationModuleType");let cx=(()=>{class n{log(e){console.log(e)}warn(e){console.warn(e)}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=S({token:n,factory:n.\u0275fac,providedIn:"platform"}),n})();const si=new R("LocaleId",{providedIn:"root",factory:()=>Eo(si,z.Optional|z.SkipSelf)||function ux(){return typeof $localize<"u"&&$localize.locale||Os}()});class hx{constructor(t,e){this.ngModuleFactory=t,this.componentFactories=e}}let Rf=(()=>{class n{compileModuleSync(e){return new vf(e)}compileModuleAsync(e){return Promise.resolve(this.compileModuleSync(e))}compileModuleAndAllComponentsSync(e){const i=this.compileModuleSync(e),s=Ci(tn(e).declarations).reduce((o,a)=>{const l=Ae(a);return l&&o.push(new _f(l)),o},[]);return new hx(i,s)}compileModuleAndAllComponentsAsync(e){return Promise.resolve(this.compileModuleAndAllComponentsSync(e))}clearCache(){}clearCacheFor(e){}getModuleId(e){}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=S({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const px=(()=>Promise.resolve(0))();function Of(n){typeof Zone>"u"?px.then(()=>{n&&n.apply(null,null)}):Zone.current.scheduleMicroTask("scheduleMicrotask",n)}class ie{constructor({enableLongStackTrace:t=!1,shouldCoalesceEventChangeDetection:e=!1,shouldCoalesceRunChangeDetection:i=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new Y(!1),this.onMicrotaskEmpty=new Y(!1),this.onStable=new Y(!1),this.onError=new Y(!1),typeof Zone>"u")throw new Error("In this configuration Angular requires Zone.js");Zone.assertZonePatched();const r=this;r._nesting=0,r._outer=r._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(r._inner=r._inner.fork(new Zone.TaskTrackingZoneSpec)),t&&Zone.longStackTraceZoneSpec&&(r._inner=r._inner.fork(Zone.longStackTraceZoneSpec)),r.shouldCoalesceEventChangeDetection=!i&&e,r.shouldCoalesceRunChangeDetection=i,r.lastRequestAnimationFrameId=-1,r.nativeRequestAnimationFrame=function gx(){let n=Se.requestAnimationFrame,t=Se.cancelAnimationFrame;if(typeof Zone<"u"&&n&&t){const e=n[Zone.__symbol__("OriginalDelegate")];e&&(n=e);const i=t[Zone.__symbol__("OriginalDelegate")];i&&(t=i)}return{nativeRequestAnimationFrame:n,nativeCancelAnimationFrame:t}}().nativeRequestAnimationFrame,function vx(n){const t=()=>{!function _x(n){n.isCheckStableRunning||-1!==n.lastRequestAnimationFrameId||(n.lastRequestAnimationFrameId=n.nativeRequestAnimationFrame.call(Se,()=>{n.fakeTopEventTask||(n.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{n.lastRequestAnimationFrameId=-1,kf(n),n.isCheckStableRunning=!0,Ff(n),n.isCheckStableRunning=!1},void 0,()=>{},()=>{})),n.fakeTopEventTask.invoke()}),kf(n))}(n)};n._inner=n._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(e,i,r,s,o,a)=>{try{return d2(n),e.invokeTask(r,s,o,a)}finally{(n.shouldCoalesceEventChangeDetection&&"eventTask"===s.type||n.shouldCoalesceRunChangeDetection)&&t(),h2(n)}},onInvoke:(e,i,r,s,o,a,l)=>{try{return d2(n),e.invoke(r,s,o,a,l)}finally{n.shouldCoalesceRunChangeDetection&&t(),h2(n)}},onHasTask:(e,i,r,s)=>{e.hasTask(r,s),i===r&&("microTask"==s.change?(n._hasPendingMicrotasks=s.microTask,kf(n),Ff(n)):"macroTask"==s.change&&(n.hasPendingMacrotasks=s.macroTask))},onHandleError:(e,i,r,s)=>(e.handleError(r,s),n.runOutsideAngular(()=>n.onError.emit(s)),!1)})}(r)}static isInAngularZone(){return typeof Zone<"u"&&!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!ie.isInAngularZone())throw new Error("Expected to be in Angular Zone, but it is not!")}static assertNotInAngularZone(){if(ie.isInAngularZone())throw new Error("Expected to not be in Angular Zone, but it is!")}run(t,e,i){return this._inner.run(t,e,i)}runTask(t,e,i,r){const s=this._inner,o=s.scheduleEventTask("NgZoneEvent: "+r,t,mx,Zl,Zl);try{return s.runTask(o,e,i)}finally{s.cancelTask(o)}}runGuarded(t,e,i){return this._inner.runGuarded(t,e,i)}runOutsideAngular(t){return this._outer.run(t)}}const mx={};function Ff(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 kf(n){n.hasPendingMicrotasks=!!(n._hasPendingMicrotasks||(n.shouldCoalesceEventChangeDetection||n.shouldCoalesceRunChangeDetection)&&-1!==n.lastRequestAnimationFrameId)}function d2(n){n._nesting++,n.isStable&&(n.isStable=!1,n.onUnstable.emit(null))}function h2(n){n._nesting--,Ff(n)}class yx{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new Y,this.onMicrotaskEmpty=new Y,this.onStable=new Y,this.onError=new Y}run(t,e,i){return t.apply(e,i)}runGuarded(t,e,i){return t.apply(e,i)}runOutsideAngular(t){return t()}runTask(t,e,i,r){return t.apply(e,i)}}const f2=new R(""),Ql=new R("");let Pf,Lf=(()=>{class n{constructor(e,i,r){this._ngZone=e,this.registry=i,this._pendingCount=0,this._isZoneStable=!0,this._didWork=!1,this._callbacks=[],this.taskTrackingZone=null,Pf||(function bx(n){Pf=n}(r),r.addToWindow(i)),this._watchAngularEvents(),e.run(()=>{this.taskTrackingZone=typeof Zone>"u"?null:Zone.current.get("TaskTrackingZone")})}_watchAngularEvents(){this._ngZone.onUnstable.subscribe({next:()=>{this._didWork=!0,this._isZoneStable=!1}}),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.subscribe({next:()=>{ie.assertNotInAngularZone(),Of(()=>{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())Of(()=>{for(;0!==this._callbacks.length;){let e=this._callbacks.pop();clearTimeout(e.timeoutId),e.doneCb(this._didWork)}this._didWork=!1});else{let e=this.getPendingTasks();this._callbacks=this._callbacks.filter(i=>!i.updateCb||!i.updateCb(e)||(clearTimeout(i.timeoutId),!1)),this._didWork=!0}}getPendingTasks(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(e=>({source:e.source,creationLocation:e.creationLocation,data:e.data})):[]}addCallback(e,i,r){let s=-1;i&&i>0&&(s=setTimeout(()=>{this._callbacks=this._callbacks.filter(o=>o.timeoutId!==s),e(this._didWork,this.getPendingTasks())},i)),this._callbacks.push({doneCb:e,timeoutId:s,updateCb:r})}whenStable(e,i,r){if(r&&!this.taskTrackingZone)throw new Error('Task tracking zone is required when passing an update callback to whenStable(). Is "zone.js/plugins/task-tracking" loaded?');this.addCallback(e,i,r),this._runCallbacksIfReady()}getPendingRequestCount(){return this._pendingCount}registerApplication(e){this.registry.registerApplication(e,this)}unregisterApplication(e){this.registry.unregisterApplication(e)}findProviders(e,i,r){return[]}}return n.\u0275fac=function(e){return new(e||n)(v(ie),v(Nf),v(Ql))},n.\u0275prov=S({token:n,factory:n.\u0275fac}),n})(),Nf=(()=>{class n{constructor(){this._applications=new Map}registerApplication(e,i){this._applications.set(e,i)}unregisterApplication(e){this._applications.delete(e)}unregisterAllApplications(){this._applications.clear()}getTestability(e){return this._applications.get(e)||null}getAllTestabilities(){return Array.from(this._applications.values())}getAllRootElements(){return Array.from(this._applications.keys())}findTestabilityInTree(e,i=!0){return Pf?.findTestabilityInTree(this,e,i)??null}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=S({token:n,factory:n.\u0275fac,providedIn:"platform"}),n})(),Ki=null;const p2=new R("AllowMultipleToken"),g2=new R("PlatformOnDestroy");function _2(n,t,e=[]){const i=`Platform: ${t}`,r=new R(i);return(s=[])=>{let o=Vf();if(!o||o.injector.get(p2,!1)){const a=[...e,...s,{provide:r,useValue:!0}];n?n(a):function Cx(n){if(Ki&&!Ki.get(p2,!1))throw new F(400,"");Ki=n;const t=n.get(y2);(function m2(n){const t=n.get(u2,null);t&&t.forEach(e=>e())})(n)}(function v2(n=[],t){return it.create({name:t,providers:[{provide:mh,useValue:"platform"},{provide:g2,useValue:()=>Ki=null},...n]})}(a,i))}return function Mx(n){const t=Vf();if(!t)throw new F(401,"");return t}()}}function Vf(){return Ki?.get(y2)??null}let y2=(()=>{class n{constructor(e){this._injector=e,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(e,i){const r=function Sx(n,t){let e;return e="noop"===n?new yx:("zone.js"===n?void 0:n)||new ie(t),e}(i?.ngZone,function b2(n){return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:!(!n||!n.ngZoneEventCoalescing)||!1,shouldCoalesceRunChangeDetection:!(!n||!n.ngZoneRunCoalescing)||!1}}(i)),s=[{provide:ie,useValue:r}];return r.run(()=>{const o=it.create({providers:s,parent:this.injector,name:e.moduleType.name}),a=e.create(o),l=a.injector.get(Ei,null);if(!l)throw new F(402,"");return r.runOutsideAngular(()=>{const c=r.onError.subscribe({next:u=>{l.handleError(u)}});a.onDestroy(()=>{Jl(this._modules,a),c.unsubscribe()})}),function w2(n,t,e){try{const i=e();return Po(i)?i.catch(r=>{throw t.runOutsideAngular(()=>n.handleError(r)),r}):i}catch(i){throw t.runOutsideAngular(()=>n.handleError(i)),i}}(l,r,()=>{const c=a.injector.get(Xl);return c.runInitializers(),c.donePromise.then(()=>(function Jv(n){en(n,"Expected localeId to be defined"),"string"==typeof n&&(Qv=n.toLowerCase().replace(/_/g,"-"))}(a.injector.get(si,Os)||Os),this._moduleDoBootstrap(a),a))})})}bootstrapModule(e,i=[]){const r=E2({},i);return function wx(n,t,e){const i=new vf(e);return Promise.resolve(i)}(0,0,e).then(s=>this.bootstrapModuleFactory(s,r))}_moduleDoBootstrap(e){const i=e.injector.get(Qo);if(e._bootstrapComponents.length>0)e._bootstrapComponents.forEach(r=>i.bootstrap(r));else{if(!e.instance.ngDoBootstrap)throw new F(403,"");e.instance.ngDoBootstrap(i)}this._modules.push(e)}onDestroy(e){this._destroyListeners.push(e)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new F(404,"");this._modules.slice().forEach(i=>i.destroy()),this._destroyListeners.forEach(i=>i()),this._injector.get(g2,null)?.(),this._destroyed=!0}get destroyed(){return this._destroyed}}return n.\u0275fac=function(e){return new(e||n)(v(it))},n.\u0275prov=S({token:n,factory:n.\u0275fac,providedIn:"platform"}),n})();function E2(n,t){return Array.isArray(t)?t.reduce(E2,n):{...n,...t}}let Qo=(()=>{class n{constructor(e,i,r,s){this._zone=e,this._injector=i,this._exceptionHandler=r,this._initStatus=s,this._bootstrapListeners=[],this._views=[],this._runningTick=!1,this._stable=!0,this._destroyed=!1,this._destroyListeners=[],this.componentTypes=[],this.components=[],this._onMicrotaskEmptySubscription=this._zone.onMicrotaskEmpty.subscribe({next:()=>{this._zone.run(()=>{this.tick()})}});const o=new Te(l=>{this._stable=this._zone.isStable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks,this._zone.runOutsideAngular(()=>{l.next(this._stable),l.complete()})}),a=new Te(l=>{let c;this._zone.runOutsideAngular(()=>{c=this._zone.onStable.subscribe(()=>{ie.assertNotInAngularZone(),Of(()=>{!this._stable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks&&(this._stable=!0,l.next(!0))})})});const u=this._zone.onUnstable.subscribe(()=>{ie.assertInAngularZone(),this._stable&&(this._stable=!1,this._zone.runOutsideAngular(()=>{l.next(!1)}))});return()=>{c.unsubscribe(),u.unsubscribe()}});this.isStable=ur(o,a.pipe(nd()))}get destroyed(){return this._destroyed}get injector(){return this._injector}bootstrap(e,i){const r=e instanceof Sy;if(!this._initStatus.done)throw!r&&function Ps(n){const t=Ae(n)||kt(n)||Lt(n);return null!==t&&t.standalone}(e),new F(405,false);let s;s=r?e:this._injector.get(Yi).resolveComponentFactory(e),this.componentTypes.push(s.componentType);const o=function Ex(n){return n.isBoundToModule}(s)?void 0:this._injector.get(Gi),l=s.create(it.NULL,[],i||s.selector,o),c=l.location.nativeElement,u=l.injector.get(f2,null);return u?.registerApplication(c),l.onDestroy(()=>{this.detachView(l.hostView),Jl(this.components,l),u?.unregisterApplication(c)}),this._loadComponent(l),l}tick(){if(this._runningTick)throw new F(101,"");try{this._runningTick=!0;for(let e of this._views)e.detectChanges()}catch(e){this._zone.runOutsideAngular(()=>this._exceptionHandler.handleError(e))}finally{this._runningTick=!1}}attachView(e){const i=e;this._views.push(i),i.attachToAppRef(this)}detachView(e){const i=e;Jl(this._views,i),i.detachFromAppRef()}_loadComponent(e){this.attachView(e.hostView),this.tick(),this.components.push(e),this._injector.get(lx,[]).concat(this._bootstrapListeners).forEach(r=>r(e))}ngOnDestroy(){if(!this._destroyed)try{this._destroyListeners.forEach(e=>e()),this._views.slice().forEach(e=>e.destroy()),this._onMicrotaskEmptySubscription.unsubscribe()}finally{this._destroyed=!0,this._views=[],this._bootstrapListeners=[],this._destroyListeners=[]}}onDestroy(e){return this._destroyListeners.push(e),()=>Jl(this._destroyListeners,e)}destroy(){if(this._destroyed)throw new F(406,false);const e=this._injector;e.destroy&&!e.destroyed&&e.destroy()}get viewCount(){return this._views.length}warnIfDestroyed(){}}return n.\u0275fac=function(e){return new(e||n)(v(ie),v(it),v(Ei),v(Xl))},n.\u0275prov=S({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();function Jl(n,t){const e=n.indexOf(t);e>-1&&n.splice(e,1)}let D2=!0,Si=(()=>{class n{}return n.__NG_ELEMENT_ID__=xx,n})();function xx(n){return function Ax(n,t,e){if(tl(n)&&!e){const i=rn(n.index,t);return new $o(i,i)}return 47&n.type?new $o(t[16],t):null}(ct(),D(),16==(16&n))}class x2{constructor(){}supports(t){return Lo(t)}create(t){return new Nx(t)}}const Lx=(n,t)=>t;class Nx{constructor(t){this.length=0,this._linkedRecords=null,this._unlinkedRecords=null,this._previousItHead=null,this._itHead=null,this._itTail=null,this._additionsHead=null,this._additionsTail=null,this._movesHead=null,this._movesTail=null,this._removalsHead=null,this._removalsTail=null,this._identityChangesHead=null,this._identityChangesTail=null,this._trackByFn=t||Lx}forEachItem(t){let e;for(e=this._itHead;null!==e;e=e._next)t(e)}forEachOperation(t){let e=this._itHead,i=this._removalsHead,r=0,s=null;for(;e||i;){const o=!i||e&&e.currentIndex<R2(i,r,s)?e:i,a=R2(o,r,s),l=o.currentIndex;if(o===i)r--,i=i._nextRemoved;else if(e=e._next,null==o.previousIndex)r++;else{s||(s=[]);const c=a-r,u=l-r;if(c!=u){for(let h=0;h<c;h++){const p=h<s.length?s[h]:s[h]=0,g=p+h;u<=g&&g<c&&(s[h]=p+1)}s[o.previousIndex]=u-c}}a!==l&&t(o,a,l)}}forEachPreviousItem(t){let e;for(e=this._previousItHead;null!==e;e=e._nextPrevious)t(e)}forEachAddedItem(t){let e;for(e=this._additionsHead;null!==e;e=e._nextAdded)t(e)}forEachMovedItem(t){let e;for(e=this._movesHead;null!==e;e=e._nextMoved)t(e)}forEachRemovedItem(t){let e;for(e=this._removalsHead;null!==e;e=e._nextRemoved)t(e)}forEachIdentityChange(t){let e;for(e=this._identityChangesHead;null!==e;e=e._nextIdentityChange)t(e)}diff(t){if(null==t&&(t=[]),!Lo(t))throw new F(900,"");return this.check(t)?this:null}onDestroy(){}check(t){this._reset();let r,s,o,e=this._itHead,i=!1;if(Array.isArray(t)){this.length=t.length;for(let a=0;a<this.length;a++)s=t[a],o=this._trackByFn(a,s),null!==e&&Object.is(e.trackById,o)?(i&&(e=this._verifyReinsertion(e,s,o,a)),Object.is(e.item,s)||this._addIdentityChange(e,s)):(e=this._mismatch(e,s,o,a),i=!0),e=e._next}else r=0,function hT(n,t){if(Array.isArray(n))for(let e=0;e<n.length;e++)t(n[e]);else{const e=n[br()]();let i;for(;!(i=e.next()).done;)t(i.value)}}(t,a=>{o=this._trackByFn(r,a),null!==e&&Object.is(e.trackById,o)?(i&&(e=this._verifyReinsertion(e,a,o,r)),Object.is(e.item,a)||this._addIdentityChange(e,a)):(e=this._mismatch(e,a,o,r),i=!0),e=e._next,r++}),this.length=r;return this._truncate(e),this.collection=t,this.isDirty}get isDirty(){return null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead}_reset(){if(this.isDirty){let t;for(t=this._previousItHead=this._itHead;null!==t;t=t._next)t._nextPrevious=t._next;for(t=this._additionsHead;null!==t;t=t._nextAdded)t.previousIndex=t.currentIndex;for(this._additionsHead=this._additionsTail=null,t=this._movesHead;null!==t;t=t._nextMoved)t.previousIndex=t.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(t,e,i,r){let s;return null===t?s=this._itTail:(s=t._prev,this._remove(t)),null!==(t=null===this._unlinkedRecords?null:this._unlinkedRecords.get(i,null))?(Object.is(t.item,e)||this._addIdentityChange(t,e),this._reinsertAfter(t,s,r)):null!==(t=null===this._linkedRecords?null:this._linkedRecords.get(i,r))?(Object.is(t.item,e)||this._addIdentityChange(t,e),this._moveAfter(t,s,r)):t=this._addAfter(new Px(e,i),s,r),t}_verifyReinsertion(t,e,i,r){let s=null===this._unlinkedRecords?null:this._unlinkedRecords.get(i,null);return null!==s?t=this._reinsertAfter(s,t._prev,r):t.currentIndex!=r&&(t.currentIndex=r,this._addToMoves(t,r)),t}_truncate(t){for(;null!==t;){const e=t._next;this._addToRemovals(this._unlink(t)),t=e}null!==this._unlinkedRecords&&this._unlinkedRecords.clear(),null!==this._additionsTail&&(this._additionsTail._nextAdded=null),null!==this._movesTail&&(this._movesTail._nextMoved=null),null!==this._itTail&&(this._itTail._next=null),null!==this._removalsTail&&(this._removalsTail._nextRemoved=null),null!==this._identityChangesTail&&(this._identityChangesTail._nextIdentityChange=null)}_reinsertAfter(t,e,i){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(t);const r=t._prevRemoved,s=t._nextRemoved;return null===r?this._removalsHead=s:r._nextRemoved=s,null===s?this._removalsTail=r:s._prevRemoved=r,this._insertAfter(t,e,i),this._addToMoves(t,i),t}_moveAfter(t,e,i){return this._unlink(t),this._insertAfter(t,e,i),this._addToMoves(t,i),t}_addAfter(t,e,i){return this._insertAfter(t,e,i),this._additionsTail=null===this._additionsTail?this._additionsHead=t:this._additionsTail._nextAdded=t,t}_insertAfter(t,e,i){const r=null===e?this._itHead:e._next;return t._next=r,t._prev=e,null===r?this._itTail=t:r._prev=t,null===e?this._itHead=t:e._next=t,null===this._linkedRecords&&(this._linkedRecords=new A2),this._linkedRecords.put(t),t.currentIndex=i,t}_remove(t){return this._addToRemovals(this._unlink(t))}_unlink(t){null!==this._linkedRecords&&this._linkedRecords.remove(t);const e=t._prev,i=t._next;return null===e?this._itHead=i:e._next=i,null===i?this._itTail=e:i._prev=e,t}_addToMoves(t,e){return t.previousIndex===e||(this._movesTail=null===this._movesTail?this._movesHead=t:this._movesTail._nextMoved=t),t}_addToRemovals(t){return null===this._unlinkedRecords&&(this._unlinkedRecords=new A2),this._unlinkedRecords.put(t),t.currentIndex=null,t._nextRemoved=null,null===this._removalsTail?(this._removalsTail=this._removalsHead=t,t._prevRemoved=null):(t._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=t),t}_addIdentityChange(t,e){return t.item=e,this._identityChangesTail=null===this._identityChangesTail?this._identityChangesHead=t:this._identityChangesTail._nextIdentityChange=t,t}}class Px{constructor(t,e){this.item=t,this.trackById=e,this.currentIndex=null,this.previousIndex=null,this._nextPrevious=null,this._prev=null,this._next=null,this._prevDup=null,this._nextDup=null,this._prevRemoved=null,this._nextRemoved=null,this._nextAdded=null,this._nextMoved=null,this._nextIdentityChange=null}}class Vx{constructor(){this._head=null,this._tail=null}add(t){null===this._head?(this._head=this._tail=t,t._nextDup=null,t._prevDup=null):(this._tail._nextDup=t,t._prevDup=this._tail,t._nextDup=null,this._tail=t)}get(t,e){let i;for(i=this._head;null!==i;i=i._nextDup)if((null===e||e<=i.currentIndex)&&Object.is(i.trackById,t))return i;return null}remove(t){const e=t._prevDup,i=t._nextDup;return null===e?this._head=i:e._nextDup=i,null===i?this._tail=e:i._prevDup=e,null===this._head}}class A2{constructor(){this.map=new Map}put(t){const e=t.trackById;let i=this.map.get(e);i||(i=new Vx,this.map.set(e,i)),i.add(t)}get(t,e){const r=this.map.get(t);return r?r.get(t,e):null}remove(t){const e=t.trackById;return this.map.get(e).remove(t)&&this.map.delete(e),t}get isEmpty(){return 0===this.map.size}clear(){this.map.clear()}}function R2(n,t,e){const i=n.previousIndex;if(null===i)return i;let r=0;return e&&i<e.length&&(r=e[i]),i+t+r}class O2{constructor(){}supports(t){return t instanceof Map||Qh(t)}create(){return new Bx}}class Bx{constructor(){this._records=new Map,this._mapHead=null,this._appendAfter=null,this._previousMapHead=null,this._changesHead=null,this._changesTail=null,this._additionsHead=null,this._additionsTail=null,this._removalsHead=null,this._removalsTail=null}get isDirty(){return null!==this._additionsHead||null!==this._changesHead||null!==this._removalsHead}forEachItem(t){let e;for(e=this._mapHead;null!==e;e=e._next)t(e)}forEachPreviousItem(t){let e;for(e=this._previousMapHead;null!==e;e=e._nextPrevious)t(e)}forEachChangedItem(t){let e;for(e=this._changesHead;null!==e;e=e._nextChanged)t(e)}forEachAddedItem(t){let e;for(e=this._additionsHead;null!==e;e=e._nextAdded)t(e)}forEachRemovedItem(t){let e;for(e=this._removalsHead;null!==e;e=e._nextRemoved)t(e)}diff(t){if(t){if(!(t instanceof Map||Qh(t)))throw new F(900,"")}else t=new Map;return this.check(t)?this:null}onDestroy(){}check(t){this._reset();let e=this._mapHead;if(this._appendAfter=null,this._forEach(t,(i,r)=>{if(e&&e.key===r)this._maybeAddToChanges(e,i),this._appendAfter=e,e=e._next;else{const s=this._getOrCreateRecordForKey(r,i);e=this._insertBeforeOrAppend(e,s)}}),e){e._prev&&(e._prev._next=null),this._removalsHead=e;for(let i=e;null!==i;i=i._nextRemoved)i===this._mapHead&&(this._mapHead=null),this._records.delete(i.key),i._nextRemoved=i._next,i.previousValue=i.currentValue,i.currentValue=null,i._prev=null,i._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty}_insertBeforeOrAppend(t,e){if(t){const i=t._prev;return e._next=t,e._prev=i,t._prev=e,i&&(i._next=e),t===this._mapHead&&(this._mapHead=e),this._appendAfter=t,t}return this._appendAfter?(this._appendAfter._next=e,e._prev=this._appendAfter):this._mapHead=e,this._appendAfter=e,null}_getOrCreateRecordForKey(t,e){if(this._records.has(t)){const r=this._records.get(t);this._maybeAddToChanges(r,e);const s=r._prev,o=r._next;return s&&(s._next=o),o&&(o._prev=s),r._next=null,r._prev=null,r}const i=new Hx(t);return this._records.set(t,i),i.currentValue=e,this._addToAdditions(i),i}_reset(){if(this.isDirty){let t;for(this._previousMapHead=this._mapHead,t=this._previousMapHead;null!==t;t=t._next)t._nextPrevious=t._next;for(t=this._changesHead;null!==t;t=t._nextChanged)t.previousValue=t.currentValue;for(t=this._additionsHead;null!=t;t=t._nextAdded)t.previousValue=t.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}}_maybeAddToChanges(t,e){Object.is(e,t.currentValue)||(t.previousValue=t.currentValue,t.currentValue=e,this._addToChanges(t))}_addToAdditions(t){null===this._additionsHead?this._additionsHead=this._additionsTail=t:(this._additionsTail._nextAdded=t,this._additionsTail=t)}_addToChanges(t){null===this._changesHead?this._changesHead=this._changesTail=t:(this._changesTail._nextChanged=t,this._changesTail=t)}_forEach(t,e){t instanceof Map?t.forEach(e):Object.keys(t).forEach(i=>e(t[i],i))}}class Hx{constructor(t){this.key=t,this.previousValue=null,this.currentValue=null,this._nextPrevious=null,this._next=null,this._prev=null,this._nextAdded=null,this._nextRemoved=null,this._nextChanged=null}}function F2(){return new nc([new x2])}let nc=(()=>{class n{constructor(e){this.factories=e}static create(e,i){if(null!=i){const r=i.factories.slice();e=e.concat(r)}return new n(e)}static extend(e){return{provide:n,useFactory:i=>n.create(e,i||F2()),deps:[[n,new Do,new Zn]]}}find(e){const i=this.factories.find(r=>r.supports(e));if(null!=i)return i;throw new F(901,"")}}return n.\u0275prov=S({token:n,providedIn:"root",factory:F2}),n})();function k2(){return new Jo([new O2])}let Jo=(()=>{class n{constructor(e){this.factories=e}static create(e,i){if(i){const r=i.factories.slice();e=e.concat(r)}return new n(e)}static extend(e){return{provide:n,useFactory:i=>n.create(e,i||k2()),deps:[[n,new Do,new Zn]]}}find(e){const i=this.factories.find(s=>s.supports(e));if(i)return i;throw new F(901,"")}}return n.\u0275prov=S({token:n,providedIn:"root",factory:k2}),n})();const Ux=_2(null,"core",[]);let $x=(()=>{class n{constructor(e){}}return n.\u0275fac=function(e){return new(e||n)(v(Qo))},n.\u0275mod=me({type:n}),n.\u0275inj=pe({}),n})();function Ti(n){return"boolean"==typeof n?n:null!=n&&"false"!==n}let ic=null;function ai(){return ic}const ne=new R("DocumentToken");let Uf=(()=>{class n{historyGo(e){throw new Error("Not implemented")}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=S({token:n,factory:function(){return function Kx(){return v(L2)}()},providedIn:"platform"}),n})(),L2=(()=>{class n extends Uf{constructor(e){super(),this._doc=e,this._init()}_init(){this.location=window.location,this._history=window.history}getBaseHrefFromDOM(){return ai().getBaseHref(this._doc)}onPopState(e){const i=ai().getGlobalEventTarget(this._doc,"window");return i.addEventListener("popstate",e,!1),()=>i.removeEventListener("popstate",e)}onHashChange(e){const i=ai().getGlobalEventTarget(this._doc,"window");return i.addEventListener("hashchange",e,!1),()=>i.removeEventListener("hashchange",e)}get href(){return this.location.href}get protocol(){return this.location.protocol}get hostname(){return this.location.hostname}get port(){return this.location.port}get pathname(){return this.location.pathname}get search(){return this.location.search}get hash(){return this.location.hash}set pathname(e){this.location.pathname=e}pushState(e,i,r){N2()?this._history.pushState(e,i,r):this.location.hash=r}replaceState(e,i,r){N2()?this._history.replaceState(e,i,r):this.location.hash=r}forward(){this._history.forward()}back(){this._history.back()}historyGo(e=0){this._history.go(e)}getState(){return this._history.state}}return n.\u0275fac=function(e){return new(e||n)(v(ne))},n.\u0275prov=S({token:n,factory:function(){return function qx(){return new L2(v(ne))}()},providedIn:"platform"}),n})();function N2(){return!!window.history.pushState}function P2(n,t){if(0==n.length)return t;if(0==t.length)return n;let e=0;return n.endsWith("/")&&e++,t.startsWith("/")&&e++,2==e?n+t.substring(1):1==e?n+t:n+"/"+t}function V2(n){const t=n.match(/#|\?|$/),e=t&&t.index||n.length;return n.slice(0,e-("/"===n[e-1]?1:0))+n.slice(e)}function Tr(n){return n&&"?"!==n[0]?"?"+n:n}let rc=(()=>{class n{historyGo(e){throw new Error("Not implemented")}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=S({token:n,factory:function(){return function Zx(){const n=v(ne).location;return new Qx(v(Uf),n&&n.origin||"")}()},providedIn:"root"}),n})();const Xx=new R("appBaseHref");let Qx=(()=>{class n extends rc{constructor(e,i){if(super(),this._platformLocation=e,this._removeListenerFns=[],null==i&&(i=this._platformLocation.getBaseHrefFromDOM()),null==i)throw new Error("No base href set. Please provide a value for the APP_BASE_HREF token or add a base element to the document.");this._baseHref=i}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(e){this._removeListenerFns.push(this._platformLocation.onPopState(e),this._platformLocation.onHashChange(e))}getBaseHref(){return this._baseHref}prepareExternalUrl(e){return P2(this._baseHref,e)}path(e=!1){const i=this._platformLocation.pathname+Tr(this._platformLocation.search),r=this._platformLocation.hash;return r&&e?`${i}${r}`:i}pushState(e,i,r,s){const o=this.prepareExternalUrl(r+Tr(s));this._platformLocation.pushState(e,i,o)}replaceState(e,i,r,s){const o=this.prepareExternalUrl(r+Tr(s));this._platformLocation.replaceState(e,i,o)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(e=0){this._platformLocation.historyGo?.(e)}}return n.\u0275fac=function(e){return new(e||n)(v(Uf),v(Xx,8))},n.\u0275prov=S({token:n,factory:n.\u0275fac}),n})(),sc=(()=>{class n{constructor(e){this._subject=new Y,this._urlChangeListeners=[],this._urlChangeSubscription=null,this._locationStrategy=e;const i=this._locationStrategy.getBaseHref();this._baseHref=V2(B2(i)),this._locationStrategy.onPopState(r=>{this._subject.emit({url:this.path(!0),pop:!0,state:r.state,type:r.type})})}ngOnDestroy(){this._urlChangeSubscription?.unsubscribe(),this._urlChangeListeners=[]}path(e=!1){return this.normalize(this._locationStrategy.path(e))}getState(){return this._locationStrategy.getState()}isCurrentPathEqualTo(e,i=""){return this.path()==this.normalize(e+Tr(i))}normalize(e){return n.stripTrailingSlash(function eA(n,t){return n&&t.startsWith(n)?t.substring(n.length):t}(this._baseHref,B2(e)))}prepareExternalUrl(e){return e&&"/"!==e[0]&&(e="/"+e),this._locationStrategy.prepareExternalUrl(e)}go(e,i="",r=null){this._locationStrategy.pushState(r,"",e,i),this._notifyUrlChangeListeners(this.prepareExternalUrl(e+Tr(i)),r)}replaceState(e,i="",r=null){this._locationStrategy.replaceState(r,"",e,i),this._notifyUrlChangeListeners(this.prepareExternalUrl(e+Tr(i)),r)}forward(){this._locationStrategy.forward()}back(){this._locationStrategy.back()}historyGo(e=0){this._locationStrategy.historyGo?.(e)}onUrlChange(e){return this._urlChangeListeners.push(e),this._urlChangeSubscription||(this._urlChangeSubscription=this.subscribe(i=>{this._notifyUrlChangeListeners(i.url,i.state)})),()=>{const i=this._urlChangeListeners.indexOf(e);this._urlChangeListeners.splice(i,1),0===this._urlChangeListeners.length&&(this._urlChangeSubscription?.unsubscribe(),this._urlChangeSubscription=null)}}_notifyUrlChangeListeners(e="",i){this._urlChangeListeners.forEach(r=>r(e,i))}subscribe(e,i,r){return this._subject.subscribe({next:e,error:i,complete:r})}}return n.normalizeQueryParams=Tr,n.joinWithSlash=P2,n.stripTrailingSlash=V2,n.\u0275fac=function(e){return new(e||n)(v(rc))},n.\u0275prov=S({token:n,factory:function(){return function Jx(){return new sc(v(rc))}()},providedIn:"root"}),n})();function B2(n){return n.replace(/\/index.html$/,"")}function K2(n,t){t=encodeURIComponent(t);for(const e of n.split(";")){const i=e.indexOf("="),[r,s]=-1==i?[e,""]:[e.slice(0,i),e.slice(i+1)];if(r.trim()===t)return decodeURIComponent(s)}return null}let Ir=(()=>{class n{constructor(e,i,r,s){this._iterableDiffers=e,this._keyValueDiffers=i,this._ngEl=r,this._renderer=s,this._iterableDiffer=null,this._keyValueDiffer=null,this._initialClasses=[],this._rawClass=null}set klass(e){this._removeClasses(this._initialClasses),this._initialClasses="string"==typeof e?e.split(/\s+/):[],this._applyClasses(this._initialClasses),this._applyClasses(this._rawClass)}set ngClass(e){this._removeClasses(this._rawClass),this._applyClasses(this._initialClasses),this._iterableDiffer=null,this._keyValueDiffer=null,this._rawClass="string"==typeof e?e.split(/\s+/):e,this._rawClass&&(Lo(this._rawClass)?this._iterableDiffer=this._iterableDiffers.find(this._rawClass).create():this._keyValueDiffer=this._keyValueDiffers.find(this._rawClass).create())}ngDoCheck(){if(this._iterableDiffer){const e=this._iterableDiffer.diff(this._rawClass);e&&this._applyIterableChanges(e)}else if(this._keyValueDiffer){const e=this._keyValueDiffer.diff(this._rawClass);e&&this._applyKeyValueChanges(e)}}_applyKeyValueChanges(e){e.forEachAddedItem(i=>this._toggleClass(i.key,i.currentValue)),e.forEachChangedItem(i=>this._toggleClass(i.key,i.currentValue)),e.forEachRemovedItem(i=>{i.previousValue&&this._toggleClass(i.key,!1)})}_applyIterableChanges(e){e.forEachAddedItem(i=>{if("string"!=typeof i.item)throw new Error(`NgClass can only toggle CSS classes expressed as strings, got ${xe(i.item)}`);this._toggleClass(i.item,!0)}),e.forEachRemovedItem(i=>this._toggleClass(i.item,!1))}_applyClasses(e){e&&(Array.isArray(e)||e instanceof Set?e.forEach(i=>this._toggleClass(i,!0)):Object.keys(e).forEach(i=>this._toggleClass(i,!!e[i])))}_removeClasses(e){e&&(Array.isArray(e)||e instanceof Set?e.forEach(i=>this._toggleClass(i,!1)):Object.keys(e).forEach(i=>this._toggleClass(i,!1)))}_toggleClass(e,i){(e=e.trim())&&e.split(/\s+/g).forEach(r=>{i?this._renderer.addClass(this._ngEl.nativeElement,r):this._renderer.removeClass(this._ngEl.nativeElement,r)})}}return n.\u0275fac=function(e){return new(e||n)(_(nc),_(Jo),_(se),_(ht))},n.\u0275dir=O({type:n,selectors:[["","ngClass",""]],inputs:{klass:["class","klass"],ngClass:"ngClass"}}),n})();class VA{constructor(t,e,i,r){this.$implicit=t,this.ngForOf=e,this.index=i,this.count=r}get first(){return 0===this.index}get last(){return this.index===this.count-1}get even(){return this.index%2==0}get odd(){return!this.even}}let Z2=(()=>{class n{constructor(e,i,r){this._viewContainer=e,this._template=i,this._differs=r,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}set ngForOf(e){this._ngForOf=e,this._ngForOfDirty=!0}set ngForTrackBy(e){this._trackByFn=e}get ngForTrackBy(){return this._trackByFn}set ngForTemplate(e){e&&(this._template=e)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;const e=this._ngForOf;!this._differ&&e&&(this._differ=this._differs.find(e).create(this.ngForTrackBy))}if(this._differ){const e=this._differ.diff(this._ngForOf);e&&this._applyChanges(e)}}_applyChanges(e){const i=this._viewContainer;e.forEachOperation((r,s,o)=>{if(null==r.previousIndex)i.createEmbeddedView(this._template,new VA(r.item,this._ngForOf,-1,-1),null===o?void 0:o);else if(null==o)i.remove(null===s?void 0:s);else if(null!==s){const a=i.get(s);i.move(a,o),X2(a,r)}});for(let r=0,s=i.length;r<s;r++){const a=i.get(r).context;a.index=r,a.count=s,a.ngForOf=this._ngForOf}e.forEachIdentityChange(r=>{X2(i.get(r.currentIndex),r)})}static ngTemplateContextGuard(e,i){return!0}}return n.\u0275fac=function(e){return new(e||n)(_(un),_(zn),_(nc))},n.\u0275dir=O({type:n,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"}}),n})();function X2(n,t){n.context.$implicit=t.item}let qi=(()=>{class n{constructor(e,i){this._viewContainer=e,this._context=new BA,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=i}set ngIf(e){this._context.$implicit=this._context.ngIf=e,this._updateView()}set ngIfThen(e){Q2("ngIfThen",e),this._thenTemplateRef=e,this._thenViewRef=null,this._updateView()}set ngIfElse(e){Q2("ngIfElse",e),this._elseTemplateRef=e,this._elseViewRef=null,this._updateView()}_updateView(){this._context.$implicit?this._thenViewRef||(this._viewContainer.clear(),this._elseViewRef=null,this._thenTemplateRef&&(this._thenViewRef=this._viewContainer.createEmbeddedView(this._thenTemplateRef,this._context))):this._elseViewRef||(this._viewContainer.clear(),this._thenViewRef=null,this._elseTemplateRef&&(this._elseViewRef=this._viewContainer.createEmbeddedView(this._elseTemplateRef,this._context)))}static ngTemplateContextGuard(e,i){return!0}}return n.\u0275fac=function(e){return new(e||n)(_(un),_(zn))},n.\u0275dir=O({type:n,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"}}),n})();class BA{constructor(){this.$implicit=null,this.ngIf=null}}function Q2(n,t){if(t&&!t.createEmbeddedView)throw new Error(`${n} must be a TemplateRef, but received '${xe(t)}'.`)}class Jf{constructor(t,e){this._viewContainerRef=t,this._templateRef=e,this._created=!1}create(){this._created=!0,this._viewContainerRef.createEmbeddedView(this._templateRef)}destroy(){this._created=!1,this._viewContainerRef.clear()}enforceState(t){t&&!this._created?this.create():!t&&this._created&&this.destroy()}}let Bs=(()=>{class n{constructor(){this._defaultUsed=!1,this._caseCount=0,this._lastCaseCheckIndex=0,this._lastCasesMatched=!1}set ngSwitch(e){this._ngSwitch=e,0===this._caseCount&&this._updateDefaultCases(!0)}_addCase(){return this._caseCount++}_addDefault(e){this._defaultViews||(this._defaultViews=[]),this._defaultViews.push(e)}_matchCase(e){const i=e==this._ngSwitch;return this._lastCasesMatched=this._lastCasesMatched||i,this._lastCaseCheckIndex++,this._lastCaseCheckIndex===this._caseCount&&(this._updateDefaultCases(!this._lastCasesMatched),this._lastCaseCheckIndex=0,this._lastCasesMatched=!1),i}_updateDefaultCases(e){if(this._defaultViews&&e!==this._defaultUsed){this._defaultUsed=e;for(let i=0;i<this._defaultViews.length;i++)this._defaultViews[i].enforceState(e)}}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=O({type:n,selectors:[["","ngSwitch",""]],inputs:{ngSwitch:"ngSwitch"}}),n})(),gc=(()=>{class n{constructor(e,i,r){this.ngSwitch=r,r._addCase(),this._view=new Jf(e,i)}ngDoCheck(){this._view.enforceState(this.ngSwitch._matchCase(this.ngSwitchCase))}}return n.\u0275fac=function(e){return new(e||n)(_(un),_(zn),_(Bs,9))},n.\u0275dir=O({type:n,selectors:[["","ngSwitchCase",""]],inputs:{ngSwitchCase:"ngSwitchCase"}}),n})(),ep=(()=>{class n{constructor(e,i,r){r._addDefault(new Jf(e,i))}}return n.\u0275fac=function(e){return new(e||n)(_(un),_(zn),_(Bs,9))},n.\u0275dir=O({type:n,selectors:[["","ngSwitchDefault",""]]}),n})(),tp=(()=>{class n{constructor(e,i,r){this._ngEl=e,this._differs=i,this._renderer=r,this._ngStyle=null,this._differ=null}set ngStyle(e){this._ngStyle=e,!this._differ&&e&&(this._differ=this._differs.find(e).create())}ngDoCheck(){if(this._differ){const e=this._differ.diff(this._ngStyle);e&&this._applyChanges(e)}}_setStyle(e,i){const[r,s]=e.split(".");null!=(i=null!=i&&s?`${i}${s}`:i)?this._renderer.setStyle(this._ngEl.nativeElement,r,i):this._renderer.removeStyle(this._ngEl.nativeElement,r)}_applyChanges(e){e.forEachRemovedItem(i=>this._setStyle(i.key,null)),e.forEachAddedItem(i=>this._setStyle(i.key,i.currentValue)),e.forEachChangedItem(i=>this._setStyle(i.key,i.currentValue))}}return n.\u0275fac=function(e){return new(e||n)(_(se),_(Jo),_(ht))},n.\u0275dir=O({type:n,selectors:[["","ngStyle",""]],inputs:{ngStyle:"ngStyle"}}),n})(),na=(()=>{class n{constructor(e){this._viewContainerRef=e,this._viewRef=null,this.ngTemplateOutletContext=null,this.ngTemplateOutlet=null,this.ngTemplateOutletInjector=null}ngOnChanges(e){if(e.ngTemplateOutlet||e.ngTemplateOutletInjector){const i=this._viewContainerRef;if(this._viewRef&&i.remove(i.indexOf(this._viewRef)),this.ngTemplateOutlet){const{ngTemplateOutlet:r,ngTemplateOutletContext:s,ngTemplateOutletInjector:o}=this;this._viewRef=i.createEmbeddedView(r,s,o?{injector:o}:void 0)}else this._viewRef=null}else this._viewRef&&e.ngTemplateOutletContext&&this.ngTemplateOutletContext&&(this._viewRef.context=this.ngTemplateOutletContext)}}return n.\u0275fac=function(e){return new(e||n)(_(un))},n.\u0275dir=O({type:n,selectors:[["","ngTemplateOutlet",""]],inputs:{ngTemplateOutletContext:"ngTemplateOutletContext",ngTemplateOutlet:"ngTemplateOutlet",ngTemplateOutletInjector:"ngTemplateOutletInjector"},features:[Ct]}),n})();class zA{createSubscription(t,e){return t.subscribe({next:e,error:i=>{throw i}})}dispose(t){t.unsubscribe()}}class jA{createSubscription(t,e){return t.then(e,i=>{throw i})}dispose(t){}}const UA=new jA,$A=new zA;let eb=(()=>{class n{constructor(e){this._latestValue=null,this._subscription=null,this._obj=null,this._strategy=null,this._ref=e}ngOnDestroy(){this._subscription&&this._dispose(),this._ref=null}transform(e){return this._obj?e!==this._obj?(this._dispose(),this.transform(e)):this._latestValue:(e&&this._subscribe(e),this._latestValue)}_subscribe(e){this._obj=e,this._strategy=this._selectStrategy(e),this._subscription=this._strategy.createSubscription(e,i=>this._updateLatestValue(e,i))}_selectStrategy(e){if(Po(e))return UA;if(av(e))return $A;throw function Un(n,t){return new F(2100,"")}()}_dispose(){this._strategy.dispose(this._subscription),this._latestValue=null,this._subscription=null,this._obj=null}_updateLatestValue(e,i){e===this._obj&&(this._latestValue=i,this._ref.markForCheck())}}return n.\u0275fac=function(e){return new(e||n)(_(Si,16))},n.\u0275pipe=Oe({name:"async",type:n,pure:!1}),n})(),Zi=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=me({type:n}),n.\u0275inj=pe({}),n})();const nb="browser";function ib(n){return n===nb}class sb{}class rp extends class d9 extends class Wx{}{constructor(){super(...arguments),this.supportsDOMEvents=!0}}{static makeCurrent(){!function Gx(n){ic||(ic=n)}(new rp)}onAndCancel(t,e,i){return t.addEventListener(e,i,!1),()=>{t.removeEventListener(e,i,!1)}}dispatchEvent(t,e){t.dispatchEvent(e)}remove(t){t.parentNode&&t.parentNode.removeChild(t)}createElement(t,e){return(e=e||this.getDefaultDocument()).createElement(t)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(t){return t.nodeType===Node.ELEMENT_NODE}isShadowRoot(t){return t instanceof DocumentFragment}getGlobalEventTarget(t,e){return"window"===e?window:"document"===e?t:"body"===e?t.body:null}getBaseHref(t){const e=function h9(){return ia=ia||document.querySelector("base"),ia?ia.getAttribute("href"):null}();return null==e?null:function f9(n){mc=mc||document.createElement("a"),mc.setAttribute("href",n);const t=mc.pathname;return"/"===t.charAt(0)?t:`/${t}`}(e)}resetBaseElement(){ia=null}getUserAgent(){return window.navigator.userAgent}getCookie(t){return K2(document.cookie,t)}}let mc,ia=null;const ob=new R("TRANSITION_ID"),g9=[{provide:l2,useFactory:function p9(n,t,e){return()=>{e.get(Xl).donePromise.then(()=>{const i=ai(),r=t.querySelectorAll(`style[ng-transition="${n}"]`);for(let s=0;s<r.length;s++)i.remove(r[s])})}},deps:[ob,ne,it],multi:!0}];let _9=(()=>{class n{build(){return new XMLHttpRequest}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=S({token:n,factory:n.\u0275fac}),n})();const _c=new R("EventManagerPlugins");let vc=(()=>{class n{constructor(e,i){this._zone=i,this._eventNameToPlugin=new Map,e.forEach(r=>r.manager=this),this._plugins=e.slice().reverse()}addEventListener(e,i,r){return this._findPluginFor(i).addEventListener(e,i,r)}addGlobalEventListener(e,i,r){return this._findPluginFor(i).addGlobalEventListener(e,i,r)}getZone(){return this._zone}_findPluginFor(e){const i=this._eventNameToPlugin.get(e);if(i)return i;const r=this._plugins;for(let s=0;s<r.length;s++){const o=r[s];if(o.supports(e))return this._eventNameToPlugin.set(e,o),o}throw new Error(`No event manager plugin found for event ${e}`)}}return n.\u0275fac=function(e){return new(e||n)(v(_c),v(ie))},n.\u0275prov=S({token:n,factory:n.\u0275fac}),n})();class ab{constructor(t){this._doc=t}addGlobalEventListener(t,e,i){const r=ai().getGlobalEventTarget(this._doc,t);if(!r)throw new Error(`Unsupported event target ${r} for event ${e}`);return this.addEventListener(r,e,i)}}let lb=(()=>{class n{constructor(){this._stylesSet=new Set}addStyles(e){const i=new Set;e.forEach(r=>{this._stylesSet.has(r)||(this._stylesSet.add(r),i.add(r))}),this.onStylesAdded(i)}onStylesAdded(e){}getAllStyles(){return Array.from(this._stylesSet)}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=S({token:n,factory:n.\u0275fac}),n})(),ra=(()=>{class n extends lb{constructor(e){super(),this._doc=e,this._hostNodes=new Map,this._hostNodes.set(e.head,[])}_addStylesToHost(e,i,r){e.forEach(s=>{const o=this._doc.createElement("style");o.textContent=s,r.push(i.appendChild(o))})}addHost(e){const i=[];this._addStylesToHost(this._stylesSet,e,i),this._hostNodes.set(e,i)}removeHost(e){const i=this._hostNodes.get(e);i&&i.forEach(cb),this._hostNodes.delete(e)}onStylesAdded(e){this._hostNodes.forEach((i,r)=>{this._addStylesToHost(e,r,i)})}ngOnDestroy(){this._hostNodes.forEach(e=>e.forEach(cb))}}return n.\u0275fac=function(e){return new(e||n)(v(ne))},n.\u0275prov=S({token:n,factory:n.\u0275fac}),n})();function cb(n){ai().remove(n)}const sp={svg:"http://www.w3.org/2000/svg",xhtml:"http://www.w3.org/1999/xhtml",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/",math:"http://www.w3.org/1998/MathML/"},op=/%COMP%/g;function yc(n,t,e){for(let i=0;i<t.length;i++){let r=t[i];Array.isArray(r)?yc(n,r,e):(r=r.replace(op,n),e.push(r))}return e}function hb(n){return t=>{if("__ngUnwrap__"===t)return n;!1===n(t)&&(t.preventDefault(),t.returnValue=!1)}}let bc=(()=>{class n{constructor(e,i,r){this.eventManager=e,this.sharedStylesHost=i,this.appId=r,this.rendererByCompId=new Map,this.defaultRenderer=new ap(e)}createRenderer(e,i){if(!e||!i)return this.defaultRenderer;switch(i.encapsulation){case Rn.Emulated:{let r=this.rendererByCompId.get(i.id);return r||(r=new C9(this.eventManager,this.sharedStylesHost,i,this.appId),this.rendererByCompId.set(i.id,r)),r.applyToHost(e),r}case 1:case Rn.ShadowDom:return new D9(this.eventManager,this.sharedStylesHost,e,i);default:if(!this.rendererByCompId.has(i.id)){const r=yc(i.id,i.styles,[]);this.sharedStylesHost.addStyles(r),this.rendererByCompId.set(i.id,this.defaultRenderer)}return this.defaultRenderer}}begin(){}end(){}}return n.\u0275fac=function(e){return new(e||n)(v(vc),v(ra),v(Zo))},n.\u0275prov=S({token:n,factory:n.\u0275fac}),n})();class ap{constructor(t){this.eventManager=t,this.data=Object.create(null),this.destroyNode=null}destroy(){}createElement(t,e){return e?document.createElementNS(sp[e]||e,t):document.createElement(t)}createComment(t){return document.createComment(t)}createText(t){return document.createTextNode(t)}appendChild(t,e){(pb(t)?t.content:t).appendChild(e)}insertBefore(t,e,i){t&&(pb(t)?t.content:t).insertBefore(e,i)}removeChild(t,e){t&&t.removeChild(e)}selectRootElement(t,e){let i="string"==typeof t?document.querySelector(t):t;if(!i)throw new Error(`The selector "${t}" did not match any elements`);return e||(i.textContent=""),i}parentNode(t){return t.parentNode}nextSibling(t){return t.nextSibling}setAttribute(t,e,i,r){if(r){e=r+":"+e;const s=sp[r];s?t.setAttributeNS(s,e,i):t.setAttribute(e,i)}else t.setAttribute(e,i)}removeAttribute(t,e,i){if(i){const r=sp[i];r?t.removeAttributeNS(r,e):t.removeAttribute(`${i}:${e}`)}else t.removeAttribute(e)}addClass(t,e){t.classList.add(e)}removeClass(t,e){t.classList.remove(e)}setStyle(t,e,i,r){r&(ln.DashCase|ln.Important)?t.style.setProperty(e,i,r&ln.Important?"important":""):t.style[e]=i}removeStyle(t,e,i){i&ln.DashCase?t.style.removeProperty(e):t.style[e]=""}setProperty(t,e,i){t[e]=i}setValue(t,e){t.nodeValue=e}listen(t,e,i){return"string"==typeof t?this.eventManager.addGlobalEventListener(t,e,hb(i)):this.eventManager.addEventListener(t,e,hb(i))}}function pb(n){return"TEMPLATE"===n.tagName&&void 0!==n.content}class C9 extends ap{constructor(t,e,i,r){super(t),this.component=i;const s=yc(r+"-"+i.id,i.styles,[]);e.addStyles(s),this.contentAttr=function b9(n){return"_ngcontent-%COMP%".replace(op,n)}(r+"-"+i.id),this.hostAttr=function w9(n){return"_nghost-%COMP%".replace(op,n)}(r+"-"+i.id)}applyToHost(t){super.setAttribute(t,this.hostAttr,"")}createElement(t,e){const i=super.createElement(t,e);return super.setAttribute(i,this.contentAttr,""),i}}class D9 extends ap{constructor(t,e,i,r){super(t),this.sharedStylesHost=e,this.hostEl=i,this.shadowRoot=i.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);const s=yc(r.id,r.styles,[]);for(let o=0;o<s.length;o++){const a=document.createElement("style");a.textContent=s[o],this.shadowRoot.appendChild(a)}}nodeOrShadowRoot(t){return t===this.hostEl?this.shadowRoot:t}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}appendChild(t,e){return super.appendChild(this.nodeOrShadowRoot(t),e)}insertBefore(t,e,i){return super.insertBefore(this.nodeOrShadowRoot(t),e,i)}removeChild(t,e){return super.removeChild(this.nodeOrShadowRoot(t),e)}parentNode(t){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(t)))}}let M9=(()=>{class n extends ab{constructor(e){super(e)}supports(e){return!0}addEventListener(e,i,r){return e.addEventListener(i,r,!1),()=>this.removeEventListener(e,i,r)}removeEventListener(e,i,r){return e.removeEventListener(i,r)}}return n.\u0275fac=function(e){return new(e||n)(v(ne))},n.\u0275prov=S({token:n,factory:n.\u0275fac}),n})();const gb=["alt","control","meta","shift"],T9={"\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"},mb={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"},I9={alt:n=>n.altKey,control:n=>n.ctrlKey,meta:n=>n.metaKey,shift:n=>n.shiftKey};let x9=(()=>{class n extends ab{constructor(e){super(e)}supports(e){return null!=n.parseEventName(e)}addEventListener(e,i,r){const s=n.parseEventName(i),o=n.eventCallback(s.fullKey,r,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>ai().onAndCancel(e,s.domEventName,o))}static parseEventName(e){const i=e.toLowerCase().split("."),r=i.shift();if(0===i.length||"keydown"!==r&&"keyup"!==r)return null;const s=n._normalizeKey(i.pop());let o="";if(gb.forEach(l=>{const c=i.indexOf(l);c>-1&&(i.splice(c,1),o+=l+".")}),o+=s,0!=i.length||0===s.length)return null;const a={};return a.domEventName=r,a.fullKey=o,a}static getEventFullKey(e){let i="",r=function A9(n){let t=n.key;if(null==t){if(t=n.keyIdentifier,null==t)return"Unidentified";t.startsWith("U+")&&(t=String.fromCharCode(parseInt(t.substring(2),16)),3===n.location&&mb.hasOwnProperty(t)&&(t=mb[t]))}return T9[t]||t}(e);return r=r.toLowerCase()," "===r?r="space":"."===r&&(r="dot"),gb.forEach(s=>{s!=r&&I9[s](e)&&(i+=s+".")}),i+=r,i}static eventCallback(e,i,r){return s=>{n.getEventFullKey(s)===e&&r.runGuarded(()=>i(s))}}static _normalizeKey(e){return"esc"===e?"escape":e}}return n.\u0275fac=function(e){return new(e||n)(v(ne))},n.\u0275prov=S({token:n,factory:n.\u0275fac}),n})();const k9=_2(Ux,"browser",[{provide:Xo,useValue:nb},{provide:u2,useValue:function R9(){rp.makeCurrent()},multi:!0},{provide:ne,useFactory:function F9(){return function e5(n){yd=n}(document),document},deps:[]}]),vb=new R(""),yb=[{provide:Ql,useClass:class m9{addToWindow(t){Se.getAngularTestability=(i,r=!0)=>{const s=t.findTestabilityInTree(i,r);if(null==s)throw new Error("Could not find testability for element.");return s},Se.getAllAngularTestabilities=()=>t.getAllTestabilities(),Se.getAllAngularRootElements=()=>t.getAllRootElements(),Se.frameworkStabilizers||(Se.frameworkStabilizers=[]),Se.frameworkStabilizers.push(i=>{const r=Se.getAllAngularTestabilities();let s=r.length,o=!1;const a=function(l){o=o||l,s--,0==s&&i(o)};r.forEach(function(l){l.whenStable(a)})})}findTestabilityInTree(t,e,i){return null==e?null:t.getTestability(e)??(i?ai().isShadowRoot(e)?this.findTestabilityInTree(t,e.host,!0):this.findTestabilityInTree(t,e.parentElement,!0):null)}},deps:[]},{provide:f2,useClass:Lf,deps:[ie,Nf,Ql]},{provide:Lf,useClass:Lf,deps:[ie,Nf,Ql]}],bb=[{provide:mh,useValue:"root"},{provide:Ei,useFactory:function O9(){return new Ei},deps:[]},{provide:_c,useClass:M9,multi:!0,deps:[ne,ie,Xo]},{provide:_c,useClass:x9,multi:!0,deps:[ne]},{provide:bc,useClass:bc,deps:[vc,ra,Zo]},{provide:Uo,useExisting:bc},{provide:lb,useExisting:ra},{provide:ra,useClass:ra,deps:[ne]},{provide:vc,useClass:vc,deps:[_c,ie]},{provide:sb,useClass:_9,deps:[]},[]];let wb=(()=>{class n{constructor(e){}static withServerTransition(e){return{ngModule:n,providers:[{provide:Zo,useValue:e.appId},{provide:ob,useExisting:Zo},g9]}}}return n.\u0275fac=function(e){return new(e||n)(v(vb,12))},n.\u0275mod=me({type:n}),n.\u0275inj=pe({providers:[...bb,...yb],imports:[Zi,$x]}),n})();typeof window<"u"&&window;let sa=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=S({token:n,factory:function(e){let i=null;return i=e?new(e||n):v(Mb),i},providedIn:"root"}),n})(),Mb=(()=>{class n extends sa{constructor(e){super(),this._doc=e}sanitize(e,i){if(null==i)return null;switch(e){case be.NONE:return i;case be.HTML:return Xn(i,"HTML")?an(i):om(this._doc,String(i)).toString();case be.STYLE:return Xn(i,"Style")?an(i):i;case be.SCRIPT:if(Xn(i,"Script"))return an(i);throw new Error("unsafe value used in a script context");case be.URL:return Qg(i),Xn(i,"URL")?an(i):To(String(i));case be.RESOURCE_URL:if(Xn(i,"ResourceURL"))return an(i);throw new Error("unsafe value used in a resource URL context (see https://g.co/ng/security#xss)");default:throw new Error(`Unexpected SecurityContext ${e} (see https://g.co/ng/security#xss)`)}}bypassSecurityTrustHtml(e){return function g8(n){return new u8(n)}(e)}bypassSecurityTrustStyle(e){return function m8(n){return new d8(n)}(e)}bypassSecurityTrustScript(e){return function _8(n){return new h8(n)}(e)}bypassSecurityTrustUrl(e){return function v8(n){return new f8(n)}(e)}bypassSecurityTrustResourceUrl(e){return function y8(n){return new p8(n)}(e)}}return n.\u0275fac=function(e){return new(e||n)(v(ne))},n.\u0275prov=S({token:n,factory:function(e){let i=null;return i=e?new e:function $9(n){return new Mb(n.get(ne))}(v(it)),i},providedIn:"root"}),n})();class Sb{}const xi="*";function up(n,t){return{type:7,name:n,definitions:t,options:{}}}function dp(n,t=null){return{type:4,styles:t,timings:n}}function Tb(n,t=null){return{type:2,steps:n,options:t}}function Qi(n){return{type:6,styles:n,offset:null}}function wc(n,t,e){return{type:0,name:n,styles:t,options:e}}function Ec(n,t,e=null){return{type:1,expr:n,animation:t,options:e}}function G9(n=null){return{type:9,options:n}}function W9(n,t,e=null){return{type:11,selector:n,animation:t,options:e}}function Ib(n){Promise.resolve(null).then(n)}class oa{constructor(t=0,e=0){this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._started=!1,this._destroyed=!1,this._finished=!1,this._position=0,this.parentPlayer=null,this.totalTime=t+e}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(t=>t()),this._onDoneFns=[])}onStart(t){this._onStartFns.push(t)}onDone(t){this._onDoneFns.push(t)}onDestroy(t){this._onDestroyFns.push(t)}hasStarted(){return this._started}init(){}play(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}triggerMicrotask(){Ib(()=>this._onFinish())}_onStart(){this._onStartFns.forEach(t=>t()),this._onStartFns=[]}pause(){}restart(){}finish(){this._onFinish()}destroy(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(t=>t()),this._onDestroyFns=[])}reset(){this._started=!1}setPosition(t){this._position=this.totalTime?t*this.totalTime:1}getPosition(){return this.totalTime?this._position/this.totalTime:1}triggerCallback(t){const e="start"==t?this._onStartFns:this._onDoneFns;e.forEach(i=>i()),e.length=0}}class xb{constructor(t){this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=t;let e=0,i=0,r=0;const s=this.players.length;0==s?Ib(()=>this._onFinish()):this.players.forEach(o=>{o.onDone(()=>{++e==s&&this._onFinish()}),o.onDestroy(()=>{++i==s&&this._onDestroy()}),o.onStart(()=>{++r==s&&this._onStart()})}),this.totalTime=this.players.reduce((o,a)=>Math.max(o,a.totalTime),0)}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(t=>t()),this._onDoneFns=[])}init(){this.players.forEach(t=>t.init())}onStart(t){this._onStartFns.push(t)}_onStart(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(t=>t()),this._onStartFns=[])}onDone(t){this._onDoneFns.push(t)}onDestroy(t){this._onDestroyFns.push(t)}hasStarted(){return this._started}play(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(t=>t.play())}pause(){this.players.forEach(t=>t.pause())}restart(){this.players.forEach(t=>t.restart())}finish(){this._onFinish(),this.players.forEach(t=>t.finish())}destroy(){this._onDestroy()}_onDestroy(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(t=>t.destroy()),this._onDestroyFns.forEach(t=>t()),this._onDestroyFns=[])}reset(){this.players.forEach(t=>t.reset()),this._destroyed=!1,this._finished=!1,this._started=!1}setPosition(t){const e=t*this.totalTime;this.players.forEach(i=>{const r=i.totalTime?Math.min(1,e/i.totalTime):1;i.setPosition(r)})}getPosition(){const t=this.players.reduce((e,i)=>null===e||i.totalTime>e.totalTime?i:e,null);return null!=t?t.getPosition():0}beforeDestroy(){this.players.forEach(t=>{t.beforeDestroy&&t.beforeDestroy()})}triggerCallback(t){const e="start"==t?this._onStartFns:this._onDoneFns;e.forEach(i=>i()),e.length=0}}const ue=!1;function Ab(n){return new F(3e3,ue)}function I7(){return typeof window<"u"&&typeof window.document<"u"}function fp(){return typeof process<"u"&&"[object process]"==={}.toString.call(process)}function Ji(n){switch(n.length){case 0:return new oa;case 1:return n[0];default:return new xb(n)}}function Rb(n,t,e,i,r=new Map,s=new Map){const o=[],a=[];let l=-1,c=null;if(i.forEach(u=>{const d=u.get("offset"),h=d==l,p=h&&c||new Map;u.forEach((g,m)=>{let y=m,b=g;if("offset"!==m)switch(y=t.normalizePropertyName(y,o),b){case"!":b=r.get(m);break;case xi:b=s.get(m);break;default:b=t.normalizeStyleValue(m,y,b,o)}p.set(y,b)}),h||a.push(p),c=p,l=d}),o.length)throw function m7(n){return new F(3502,ue)}();return a}function pp(n,t,e,i){switch(t){case"start":n.onStart(()=>i(e&&gp(e,"start",n)));break;case"done":n.onDone(()=>i(e&&gp(e,"done",n)));break;case"destroy":n.onDestroy(()=>i(e&&gp(e,"destroy",n)))}}function gp(n,t,e){const s=mp(n.element,n.triggerName,n.fromState,n.toState,t||n.phaseName,e.totalTime??n.totalTime,!!e.disabled),o=n._data;return null!=o&&(s._data=o),s}function mp(n,t,e,i,r="",s=0,o){return{element:n,triggerName:t,fromState:e,toState:i,phaseName:r,totalTime:s,disabled:!!o}}function dn(n,t,e){let i=n.get(t);return i||n.set(t,i=e),i}function Ob(n){const t=n.indexOf(":");return[n.substring(1,t),n.slice(t+1)]}let _p=(n,t)=>!1,Fb=(n,t,e)=>[],kb=null;function vp(n){const t=n.parentNode||n.host;return t===kb?null:t}(fp()||typeof Element<"u")&&(I7()?(kb=(()=>document.documentElement)(),_p=(n,t)=>{for(;t;){if(t===n)return!0;t=vp(t)}return!1}):_p=(n,t)=>n.contains(t),Fb=(n,t,e)=>{if(e)return Array.from(n.querySelectorAll(t));const i=n.querySelector(t);return i?[i]:[]});let xr=null,Lb=!1;const Nb=_p,Pb=Fb;let Vb=(()=>{class n{validateStyleProperty(e){return function A7(n){xr||(xr=function R7(){return typeof document<"u"?document.body:null}()||{},Lb=!!xr.style&&"WebkitAppearance"in xr.style);let t=!0;return xr.style&&!function x7(n){return"ebkit"==n.substring(1,6)}(n)&&(t=n in xr.style,!t&&Lb&&(t="Webkit"+n.charAt(0).toUpperCase()+n.slice(1)in xr.style)),t}(e)}matchesElement(e,i){return!1}containsElement(e,i){return Nb(e,i)}getParentElement(e){return vp(e)}query(e,i,r){return Pb(e,i,r)}computeStyle(e,i,r){return r||""}animate(e,i,r,s,o,a=[],l){return new oa(r,s)}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=S({token:n,factory:n.\u0275fac}),n})(),yp=(()=>{class n{}return n.NOOP=new Vb,n})();const bp="ng-enter",Dc="ng-leave",Mc="ng-trigger",Sc=".ng-trigger",Hb="ng-animating",wp=".ng-animating";function er(n){if("number"==typeof n)return n;const t=n.match(/^(-?[\.\d]+)(m?s)/);return!t||t.length<2?0:Ep(parseFloat(t[1]),t[2])}function Ep(n,t){return"s"===t?1e3*n:n}function Tc(n,t,e){return n.hasOwnProperty("duration")?n:function k7(n,t,e){let r,s=0,o="";if("string"==typeof n){const a=n.match(/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i);if(null===a)return t.push(Ab()),{duration:0,delay:0,easing:""};r=Ep(parseFloat(a[1]),a[2]);const l=a[3];null!=l&&(s=Ep(parseFloat(l),a[4]));const c=a[5];c&&(o=c)}else r=n;if(!e){let a=!1,l=t.length;r<0&&(t.push(function K9(){return new F(3100,ue)}()),a=!0),s<0&&(t.push(function q9(){return new F(3101,ue)}()),a=!0),a&&t.splice(l,0,Ab())}return{duration:r,delay:s,easing:o}}(n,t,e)}function aa(n,t={}){return Object.keys(n).forEach(e=>{t[e]=n[e]}),t}function zb(n){const t=new Map;return Object.keys(n).forEach(e=>{t.set(e,n[e])}),t}function tr(n,t=new Map,e){if(e)for(let[i,r]of e)t.set(i,r);for(let[i,r]of n)t.set(i,r);return t}function Ub(n,t,e){return e?t+":"+e+";":""}function $b(n){let t="";for(let e=0;e<n.style.length;e++){const i=n.style.item(e);t+=Ub(0,i,n.style.getPropertyValue(i))}for(const e in n.style)n.style.hasOwnProperty(e)&&!e.startsWith("_")&&(t+=Ub(0,V7(e),n.style[e]));n.setAttribute("style",t)}function li(n,t,e){n.style&&(t.forEach((i,r)=>{const s=Dp(r);e&&!e.has(r)&&e.set(r,n.style[s]),n.style[s]=i}),fp()&&$b(n))}function Ar(n,t){n.style&&(t.forEach((e,i)=>{const r=Dp(i);n.style[r]=""}),fp()&&$b(n))}function la(n){return Array.isArray(n)?1==n.length?n[0]:Tb(n):n}const Cp=new RegExp("{{\\s*(.+?)\\s*}}","g");function Yb(n){let t=[];if("string"==typeof n){let e;for(;e=Cp.exec(n);)t.push(e[1]);Cp.lastIndex=0}return t}function Ic(n,t,e){const i=n.toString(),r=i.replace(Cp,(s,o)=>{let a=t[o];return null==a&&(e.push(function X9(n){return new F(3003,ue)}()),a=""),a.toString()});return r==i?n:r}function xc(n){const t=[];let e=n.next();for(;!e.done;)t.push(e.value),e=n.next();return t}const P7=/-+([a-z0-9])/g;function Dp(n){return n.replace(P7,(...t)=>t[1].toUpperCase())}function V7(n){return n.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}function hn(n,t,e){switch(t.type){case 7:return n.visitTrigger(t,e);case 0:return n.visitState(t,e);case 1:return n.visitTransition(t,e);case 2:return n.visitSequence(t,e);case 3:return n.visitGroup(t,e);case 4:return n.visitAnimate(t,e);case 5:return n.visitKeyframes(t,e);case 6:return n.visitStyle(t,e);case 8:return n.visitReference(t,e);case 9:return n.visitAnimateChild(t,e);case 10:return n.visitAnimateRef(t,e);case 11:return n.visitQuery(t,e);case 12:return n.visitStagger(t,e);default:throw function Q9(n){return new F(3004,ue)}()}}function Gb(n,t){return window.getComputedStyle(n)[t]}function $7(n,t){const e=[];return"string"==typeof n?n.split(/\s*,\s*/).forEach(i=>function Y7(n,t,e){if(":"==n[0]){const l=function G7(n,t){switch(n){case":enter":return"void => *";case":leave":return"* => void";case":increment":return(e,i)=>parseFloat(i)>parseFloat(e);case":decrement":return(e,i)=>parseFloat(i)<parseFloat(e);default:return t.push(function h7(n){return new F(3016,ue)}()),"* => *"}}(n,e);if("function"==typeof l)return void t.push(l);n=l}const i=n.match(/^(\*|[-\w]+)\s*(<?[=-]>)\s*(\*|[-\w]+)$/);if(null==i||i.length<4)return e.push(function d7(n){return new F(3015,ue)}()),t;const r=i[1],s=i[2],o=i[3];t.push(Wb(r,o));"<"==s[0]&&!("*"==r&&"*"==o)&&t.push(Wb(o,r))}(i,e,t)):e.push(n),e}const Fc=new Set(["true","1"]),kc=new Set(["false","0"]);function Wb(n,t){const e=Fc.has(n)||kc.has(n),i=Fc.has(t)||kc.has(t);return(r,s)=>{let o="*"==n||n==r,a="*"==t||t==s;return!o&&e&&"boolean"==typeof r&&(o=r?Fc.has(n):kc.has(n)),!a&&i&&"boolean"==typeof s&&(a=s?Fc.has(t):kc.has(t)),o&&a}}const W7=new RegExp("s*:selfs*,?","g");function Mp(n,t,e,i){return new K7(n).build(t,e,i)}class K7{constructor(t){this._driver=t}build(t,e,i){const r=new X7(e);return this._resetContextStyleTimingState(r),hn(this,la(t),r)}_resetContextStyleTimingState(t){t.currentQuerySelector="",t.collectedStyles=new Map,t.collectedStyles.set("",new Map),t.currentTime=0}visitTrigger(t,e){let i=e.queryCount=0,r=e.depCount=0;const s=[],o=[];return"@"==t.name.charAt(0)&&e.errors.push(function e7(){return new F(3006,ue)}()),t.definitions.forEach(a=>{if(this._resetContextStyleTimingState(e),0==a.type){const l=a,c=l.name;c.toString().split(/\s*,\s*/).forEach(u=>{l.name=u,s.push(this.visitState(l,e))}),l.name=c}else if(1==a.type){const l=this.visitTransition(a,e);i+=l.queryCount,r+=l.depCount,o.push(l)}else e.errors.push(function t7(){return new F(3007,ue)}())}),{type:7,name:t.name,states:s,transitions:o,queryCount:i,depCount:r,options:null}}visitState(t,e){const i=this.visitStyle(t.styles,e),r=t.options&&t.options.params||null;if(i.containsDynamicStyles){const s=new Set,o=r||{};i.styles.forEach(a=>{a instanceof Map&&a.forEach(l=>{Yb(l).forEach(c=>{o.hasOwnProperty(c)||s.add(c)})})}),s.size&&(xc(s.values()),e.errors.push(function n7(n,t){return new F(3008,ue)}()))}return{type:0,name:t.name,style:i,options:r?{params:r}:null}}visitTransition(t,e){e.queryCount=0,e.depCount=0;const i=hn(this,la(t.animation),e);return{type:1,matchers:$7(t.expr,e.errors),animation:i,queryCount:e.queryCount,depCount:e.depCount,options:Rr(t.options)}}visitSequence(t,e){return{type:2,steps:t.steps.map(i=>hn(this,i,e)),options:Rr(t.options)}}visitGroup(t,e){const i=e.currentTime;let r=0;const s=t.steps.map(o=>{e.currentTime=i;const a=hn(this,o,e);return r=Math.max(r,e.currentTime),a});return e.currentTime=r,{type:3,steps:s,options:Rr(t.options)}}visitAnimate(t,e){const i=function J7(n,t){if(n.hasOwnProperty("duration"))return n;if("number"==typeof n)return Sp(Tc(n,t).duration,0,"");const e=n;if(e.split(/\s+/).some(s=>"{"==s.charAt(0)&&"{"==s.charAt(1))){const s=Sp(0,0,"");return s.dynamic=!0,s.strValue=e,s}const r=Tc(e,t);return Sp(r.duration,r.delay,r.easing)}(t.timings,e.errors);e.currentAnimateTimings=i;let r,s=t.styles?t.styles:Qi({});if(5==s.type)r=this.visitKeyframes(s,e);else{let o=t.styles,a=!1;if(!o){a=!0;const c={};i.easing&&(c.easing=i.easing),o=Qi(c)}e.currentTime+=i.duration+i.delay;const l=this.visitStyle(o,e);l.isEmptyStep=a,r=l}return e.currentAnimateTimings=null,{type:4,timings:i,style:r,options:null}}visitStyle(t,e){const i=this._makeStyleAst(t,e);return this._validateStyleAst(i,e),i}_makeStyleAst(t,e){const i=[],r=Array.isArray(t.styles)?t.styles:[t.styles];for(let a of r)"string"==typeof a?a===xi?i.push(a):e.errors.push(new F(3002,ue)):i.push(zb(a));let s=!1,o=null;return i.forEach(a=>{if(a instanceof Map&&(a.has("easing")&&(o=a.get("easing"),a.delete("easing")),!s))for(let l of a.values())if(l.toString().indexOf("{{")>=0){s=!0;break}}),{type:6,styles:i,easing:o,offset:t.offset,containsDynamicStyles:s,options:null}}_validateStyleAst(t,e){const i=e.currentAnimateTimings;let r=e.currentTime,s=e.currentTime;i&&s>0&&(s-=i.duration+i.delay),t.styles.forEach(o=>{"string"!=typeof o&&o.forEach((a,l)=>{const c=e.collectedStyles.get(e.currentQuerySelector),u=c.get(l);let d=!0;u&&(s!=r&&s>=u.startTime&&r<=u.endTime&&(e.errors.push(function r7(n,t,e,i,r){return new F(3010,ue)}()),d=!1),s=u.startTime),d&&c.set(l,{startTime:s,endTime:r}),e.options&&function N7(n,t,e){const i=t.params||{},r=Yb(n);r.length&&r.forEach(s=>{i.hasOwnProperty(s)||e.push(function Z9(n){return new F(3001,ue)}())})}(a,e.options,e.errors)})})}visitKeyframes(t,e){const i={type:5,styles:[],options:null};if(!e.currentAnimateTimings)return e.errors.push(function s7(){return new F(3011,ue)}()),i;let s=0;const o=[];let a=!1,l=!1,c=0;const u=t.steps.map(b=>{const I=this._makeStyleAst(b,e);let E=null!=I.offset?I.offset:function Q7(n){if("string"==typeof n)return null;let t=null;if(Array.isArray(n))n.forEach(e=>{if(e instanceof Map&&e.has("offset")){const i=e;t=parseFloat(i.get("offset")),i.delete("offset")}});else if(n instanceof Map&&n.has("offset")){const e=n;t=parseFloat(e.get("offset")),e.delete("offset")}return t}(I.styles),A=0;return null!=E&&(s++,A=I.offset=E),l=l||A<0||A>1,a=a||A<c,c=A,o.push(A),I});l&&e.errors.push(function o7(){return new F(3012,ue)}()),a&&e.errors.push(function a7(){return new F(3200,ue)}());const d=t.steps.length;let h=0;s>0&&s<d?e.errors.push(function l7(){return new F(3202,ue)}()):0==s&&(h=1/(d-1));const p=d-1,g=e.currentTime,m=e.currentAnimateTimings,y=m.duration;return u.forEach((b,I)=>{const E=h>0?I==p?1:h*I:o[I],A=E*y;e.currentTime=g+m.delay+A,m.duration=A,this._validateStyleAst(b,e),b.offset=E,i.styles.push(b)}),i}visitReference(t,e){return{type:8,animation:hn(this,la(t.animation),e),options:Rr(t.options)}}visitAnimateChild(t,e){return e.depCount++,{type:9,options:Rr(t.options)}}visitAnimateRef(t,e){return{type:10,animation:this.visitReference(t.animation,e),options:Rr(t.options)}}visitQuery(t,e){const i=e.currentQuerySelector,r=t.options||{};e.queryCount++,e.currentQuery=t;const[s,o]=function q7(n){const t=!!n.split(/\s*,\s*/).find(e=>":self"==e);return t&&(n=n.replace(W7,"")),n=n.replace(/@\*/g,Sc).replace(/@\w+/g,e=>Sc+"-"+e.slice(1)).replace(/:animating/g,wp),[n,t]}(t.selector);e.currentQuerySelector=i.length?i+" "+s:s,dn(e.collectedStyles,e.currentQuerySelector,new Map);const a=hn(this,la(t.animation),e);return e.currentQuery=null,e.currentQuerySelector=i,{type:11,selector:s,limit:r.limit||0,optional:!!r.optional,includeSelf:o,animation:a,originalSelector:t.selector,options:Rr(t.options)}}visitStagger(t,e){e.currentQuery||e.errors.push(function c7(){return new F(3013,ue)}());const i="full"===t.timings?{duration:0,delay:0,easing:"full"}:Tc(t.timings,e.errors,!0);return{type:12,animation:hn(this,la(t.animation),e),timings:i,options:null}}}class X7{constructor(t){this.errors=t,this.queryCount=0,this.depCount=0,this.currentTransition=null,this.currentQuery=null,this.currentQuerySelector=null,this.currentAnimateTimings=null,this.currentTime=0,this.collectedStyles=new Map,this.options=null,this.unsupportedCSSPropertiesFound=new Set,this.nonAnimatableCSSPropertiesFound=new Set}}function Rr(n){return n?(n=aa(n)).params&&(n.params=function Z7(n){return n?aa(n):null}(n.params)):n={},n}function Sp(n,t,e){return{duration:n,delay:t,easing:e}}function Tp(n,t,e,i,r,s,o=null,a=!1){return{type:1,element:n,keyframes:t,preStyleProps:e,postStyleProps:i,duration:r,delay:s,totalTime:r+s,easing:o,subTimeline:a}}class Lc{constructor(){this._map=new Map}get(t){return this._map.get(t)||[]}append(t,e){let i=this._map.get(t);i||this._map.set(t,i=[]),i.push(...e)}has(t){return this._map.has(t)}clear(){this._map.clear()}}const nR=new RegExp(":enter","g"),rR=new RegExp(":leave","g");function Ip(n,t,e,i,r,s=new Map,o=new Map,a,l,c=[]){return(new sR).buildKeyframes(n,t,e,i,r,s,o,a,l,c)}class sR{buildKeyframes(t,e,i,r,s,o,a,l,c,u=[]){c=c||new Lc;const d=new xp(t,e,c,r,s,u,[]);d.options=l;const h=l.delay?er(l.delay):0;d.currentTimeline.delayNextStep(h),d.currentTimeline.setStyles([o],null,d.errors,l),hn(this,i,d);const p=d.timelines.filter(g=>g.containsAnimation());if(p.length&&a.size){let g;for(let m=p.length-1;m>=0;m--){const y=p[m];if(y.element===e){g=y;break}}g&&!g.allowOnlyTimelineStyles()&&g.setStyles([a],null,d.errors,l)}return p.length?p.map(g=>g.buildKeyframes()):[Tp(e,[],[],[],0,h,"",!1)]}visitTrigger(t,e){}visitState(t,e){}visitTransition(t,e){}visitAnimateChild(t,e){const i=e.subInstructions.get(e.element);if(i){const r=e.createSubContext(t.options),s=e.currentTimeline.currentTime,o=this._visitSubInstructions(i,r,r.options);s!=o&&e.transformIntoNewTimeline(o)}e.previousNode=t}visitAnimateRef(t,e){const i=e.createSubContext(t.options);i.transformIntoNewTimeline(),this.visitReference(t.animation,i),e.transformIntoNewTimeline(i.currentTimeline.currentTime),e.previousNode=t}_visitSubInstructions(t,e,i){let s=e.currentTimeline.currentTime;const o=null!=i.duration?er(i.duration):null,a=null!=i.delay?er(i.delay):null;return 0!==o&&t.forEach(l=>{const c=e.appendInstructionToTimeline(l,o,a);s=Math.max(s,c.duration+c.delay)}),s}visitReference(t,e){e.updateOptions(t.options,!0),hn(this,t.animation,e),e.previousNode=t}visitSequence(t,e){const i=e.subContextCount;let r=e;const s=t.options;if(s&&(s.params||s.delay)&&(r=e.createSubContext(s),r.transformIntoNewTimeline(),null!=s.delay)){6==r.previousNode.type&&(r.currentTimeline.snapshotCurrentStyles(),r.previousNode=Nc);const o=er(s.delay);r.delayNextStep(o)}t.steps.length&&(t.steps.forEach(o=>hn(this,o,r)),r.currentTimeline.applyStylesToKeyframe(),r.subContextCount>i&&r.transformIntoNewTimeline()),e.previousNode=t}visitGroup(t,e){const i=[];let r=e.currentTimeline.currentTime;const s=t.options&&t.options.delay?er(t.options.delay):0;t.steps.forEach(o=>{const a=e.createSubContext(t.options);s&&a.delayNextStep(s),hn(this,o,a),r=Math.max(r,a.currentTimeline.currentTime),i.push(a.currentTimeline)}),i.forEach(o=>e.currentTimeline.mergeTimelineCollectedStyles(o)),e.transformIntoNewTimeline(r),e.previousNode=t}_visitTiming(t,e){if(t.dynamic){const i=t.strValue;return Tc(e.params?Ic(i,e.params,e.errors):i,e.errors)}return{duration:t.duration,delay:t.delay,easing:t.easing}}visitAnimate(t,e){const i=e.currentAnimateTimings=this._visitTiming(t.timings,e),r=e.currentTimeline;i.delay&&(e.incrementTime(i.delay),r.snapshotCurrentStyles());const s=t.style;5==s.type?this.visitKeyframes(s,e):(e.incrementTime(i.duration),this.visitStyle(s,e),r.applyStylesToKeyframe()),e.currentAnimateTimings=null,e.previousNode=t}visitStyle(t,e){const i=e.currentTimeline,r=e.currentAnimateTimings;!r&&i.hasCurrentStyleProperties()&&i.forwardFrame();const s=r&&r.easing||t.easing;t.isEmptyStep?i.applyEmptyStep(s):i.setStyles(t.styles,s,e.errors,e.options),e.previousNode=t}visitKeyframes(t,e){const i=e.currentAnimateTimings,r=e.currentTimeline.duration,s=i.duration,a=e.createSubContext().currentTimeline;a.easing=i.easing,t.styles.forEach(l=>{a.forwardTime((l.offset||0)*s),a.setStyles(l.styles,l.easing,e.errors,e.options),a.applyStylesToKeyframe()}),e.currentTimeline.mergeTimelineCollectedStyles(a),e.transformIntoNewTimeline(r+s),e.previousNode=t}visitQuery(t,e){const i=e.currentTimeline.currentTime,r=t.options||{},s=r.delay?er(r.delay):0;s&&(6===e.previousNode.type||0==i&&e.currentTimeline.hasCurrentStyleProperties())&&(e.currentTimeline.snapshotCurrentStyles(),e.previousNode=Nc);let o=i;const a=e.invokeQuery(t.selector,t.originalSelector,t.limit,t.includeSelf,!!r.optional,e.errors);e.currentQueryTotal=a.length;let l=null;a.forEach((c,u)=>{e.currentQueryIndex=u;const d=e.createSubContext(t.options,c);s&&d.delayNextStep(s),c===e.element&&(l=d.currentTimeline),hn(this,t.animation,d),d.currentTimeline.applyStylesToKeyframe(),o=Math.max(o,d.currentTimeline.currentTime)}),e.currentQueryIndex=0,e.currentQueryTotal=0,e.transformIntoNewTimeline(o),l&&(e.currentTimeline.mergeTimelineCollectedStyles(l),e.currentTimeline.snapshotCurrentStyles()),e.previousNode=t}visitStagger(t,e){const i=e.parentContext,r=e.currentTimeline,s=t.timings,o=Math.abs(s.duration),a=o*(e.currentQueryTotal-1);let l=o*e.currentQueryIndex;switch(s.duration<0?"reverse":s.easing){case"reverse":l=a-l;break;case"full":l=i.currentStaggerTime}const u=e.currentTimeline;l&&u.delayNextStep(l);const d=u.currentTime;hn(this,t.animation,e),e.previousNode=t,i.currentStaggerTime=r.currentTime-d+(r.startTime-i.currentTimeline.startTime)}}const Nc={};class xp{constructor(t,e,i,r,s,o,a,l){this._driver=t,this.element=e,this.subInstructions=i,this._enterClassName=r,this._leaveClassName=s,this.errors=o,this.timelines=a,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=Nc,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=l||new Pc(this._driver,e,0),a.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(t,e){if(!t)return;const i=t;let r=this.options;null!=i.duration&&(r.duration=er(i.duration)),null!=i.delay&&(r.delay=er(i.delay));const s=i.params;if(s){let o=r.params;o||(o=this.options.params={}),Object.keys(s).forEach(a=>{(!e||!o.hasOwnProperty(a))&&(o[a]=Ic(s[a],o,this.errors))})}}_copyOptions(){const t={};if(this.options){const e=this.options.params;if(e){const i=t.params={};Object.keys(e).forEach(r=>{i[r]=e[r]})}}return t}createSubContext(t=null,e,i){const r=e||this.element,s=new xp(this._driver,r,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(r,i||0));return s.previousNode=this.previousNode,s.currentAnimateTimings=this.currentAnimateTimings,s.options=this._copyOptions(),s.updateOptions(t),s.currentQueryIndex=this.currentQueryIndex,s.currentQueryTotal=this.currentQueryTotal,s.parentContext=this,this.subContextCount++,s}transformIntoNewTimeline(t){return this.previousNode=Nc,this.currentTimeline=this.currentTimeline.fork(this.element,t),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(t,e,i){const r={duration:e??t.duration,delay:this.currentTimeline.currentTime+(i??0)+t.delay,easing:""},s=new oR(this._driver,t.element,t.keyframes,t.preStyleProps,t.postStyleProps,r,t.stretchStartingKeyframe);return this.timelines.push(s),r}incrementTime(t){this.currentTimeline.forwardTime(this.currentTimeline.duration+t)}delayNextStep(t){t>0&&this.currentTimeline.delayNextStep(t)}invokeQuery(t,e,i,r,s,o){let a=[];if(r&&a.push(this.element),t.length>0){t=(t=t.replace(nR,"."+this._enterClassName)).replace(rR,"."+this._leaveClassName);let c=this._driver.query(this.element,t,1!=i);0!==i&&(c=i<0?c.slice(c.length+i,c.length):c.slice(0,i)),a.push(...c)}return!s&&0==a.length&&o.push(function u7(n){return new F(3014,ue)}()),a}}class Pc{constructor(t,e,i,r){this._driver=t,this.element=e,this.startTime=i,this._elementTimelineStylesLookup=r,this.duration=0,this._previousKeyframe=new Map,this._currentKeyframe=new Map,this._keyframes=new Map,this._styleSummary=new Map,this._localTimelineStyles=new Map,this._pendingStyles=new Map,this._backFill=new Map,this._currentEmptyStepKeyframe=null,this._elementTimelineStylesLookup||(this._elementTimelineStylesLookup=new Map),this._globalTimelineStyles=this._elementTimelineStylesLookup.get(e),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(e,this._localTimelineStyles)),this._loadKeyframe()}containsAnimation(){switch(this._keyframes.size){case 0:return!1;case 1:return this.hasCurrentStyleProperties();default:return!0}}hasCurrentStyleProperties(){return this._currentKeyframe.size>0}get currentTime(){return this.startTime+this.duration}delayNextStep(t){const e=1===this._keyframes.size&&this._pendingStyles.size;this.duration||e?(this.forwardTime(this.currentTime+t),e&&this.snapshotCurrentStyles()):this.startTime+=t}fork(t,e){return this.applyStylesToKeyframe(),new Pc(this._driver,t,e||this.currentTime,this._elementTimelineStylesLookup)}_loadKeyframe(){this._currentKeyframe&&(this._previousKeyframe=this._currentKeyframe),this._currentKeyframe=this._keyframes.get(this.duration),this._currentKeyframe||(this._currentKeyframe=new Map,this._keyframes.set(this.duration,this._currentKeyframe))}forwardFrame(){this.duration+=1,this._loadKeyframe()}forwardTime(t){this.applyStylesToKeyframe(),this.duration=t,this._loadKeyframe()}_updateStyle(t,e){this._localTimelineStyles.set(t,e),this._globalTimelineStyles.set(t,e),this._styleSummary.set(t,{time:this.currentTime,value:e})}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}applyEmptyStep(t){t&&this._previousKeyframe.set("easing",t);for(let[e,i]of this._globalTimelineStyles)this._backFill.set(e,i||xi),this._currentKeyframe.set(e,xi);this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(t,e,i,r){e&&this._previousKeyframe.set("easing",e);const s=r&&r.params||{},o=function aR(n,t){const e=new Map;let i;return n.forEach(r=>{if("*"===r){i=i||t.keys();for(let s of i)e.set(s,xi)}else tr(r,e)}),e}(t,this._globalTimelineStyles);for(let[a,l]of o){const c=Ic(l,s,i);this._pendingStyles.set(a,c),this._localTimelineStyles.has(a)||this._backFill.set(a,this._globalTimelineStyles.get(a)||xi),this._updateStyle(a,c)}}applyStylesToKeyframe(){0!=this._pendingStyles.size&&(this._pendingStyles.forEach((t,e)=>{this._currentKeyframe.set(e,t)}),this._pendingStyles.clear(),this._localTimelineStyles.forEach((t,e)=>{this._currentKeyframe.has(e)||this._currentKeyframe.set(e,t)}))}snapshotCurrentStyles(){for(let[t,e]of this._localTimelineStyles)this._pendingStyles.set(t,e),this._updateStyle(t,e)}getFinalKeyframe(){return this._keyframes.get(this.duration)}get properties(){const t=[];for(let e in this._currentKeyframe)t.push(e);return t}mergeTimelineCollectedStyles(t){t._styleSummary.forEach((e,i)=>{const r=this._styleSummary.get(i);(!r||e.time>r.time)&&this._updateStyle(i,e.value)})}buildKeyframes(){this.applyStylesToKeyframe();const t=new Set,e=new Set,i=1===this._keyframes.size&&0===this.duration;let r=[];this._keyframes.forEach((a,l)=>{const c=tr(a,new Map,this._backFill);c.forEach((u,d)=>{"!"===u?t.add(d):u===xi&&e.add(d)}),i||c.set("offset",l/this.duration),r.push(c)});const s=t.size?xc(t.values()):[],o=e.size?xc(e.values()):[];if(i){const a=r[0],l=new Map(a);a.set("offset",0),l.set("offset",1),r=[a,l]}return Tp(this.element,r,s,o,this.duration,this.startTime,this.easing,!1)}}class oR extends Pc{constructor(t,e,i,r,s,o,a=!1){super(t,e,o.delay),this.keyframes=i,this.preStyleProps=r,this.postStyleProps=s,this._stretchStartingKeyframe=a,this.timings={duration:o.duration,delay:o.delay,easing:o.easing}}containsAnimation(){return this.keyframes.length>1}buildKeyframes(){let t=this.keyframes,{delay:e,duration:i,easing:r}=this.timings;if(this._stretchStartingKeyframe&&e){const s=[],o=i+e,a=e/o,l=tr(t[0]);l.set("offset",0),s.push(l);const c=tr(t[0]);c.set("offset",Zb(a)),s.push(c);const u=t.length-1;for(let d=1;d<=u;d++){let h=tr(t[d]);const p=h.get("offset");h.set("offset",Zb((e+p*i)/o)),s.push(h)}i=o,e=0,r="",t=s}return Tp(this.element,t,this.preStyleProps,this.postStyleProps,i,e,r,!0)}}function Zb(n,t=3){const e=Math.pow(10,t-1);return Math.round(n*e)/e}class Ap{}const lR=new Set(["width","height","minWidth","minHeight","maxWidth","maxHeight","left","top","bottom","right","fontSize","outlineWidth","outlineOffset","paddingTop","paddingLeft","paddingBottom","paddingRight","marginTop","marginLeft","marginBottom","marginRight","borderRadius","borderWidth","borderTopWidth","borderLeftWidth","borderRightWidth","borderBottomWidth","textIndent","perspective"]);class cR extends Ap{normalizePropertyName(t,e){return Dp(t)}normalizeStyleValue(t,e,i,r){let s="";const o=i.toString().trim();if(lR.has(e)&&0!==i&&"0"!==i)if("number"==typeof i)s="px";else{const a=i.match(/^[+-]?[\d\.]+([a-z]*)$/);a&&0==a[1].length&&r.push(function J9(n,t){return new F(3005,ue)}())}return o+s}}function Xb(n,t,e,i,r,s,o,a,l,c,u,d,h){return{type:0,element:n,triggerName:t,isRemovalTransition:r,fromState:e,fromStyles:s,toState:i,toStyles:o,timelines:a,queriedElements:l,preStyleProps:c,postStyleProps:u,totalTime:d,errors:h}}const Rp={};class Qb{constructor(t,e,i){this._triggerName=t,this.ast=e,this._stateStyles=i}match(t,e,i,r){return function uR(n,t,e,i,r){return n.some(s=>s(t,e,i,r))}(this.ast.matchers,t,e,i,r)}buildStyles(t,e,i){let r=this._stateStyles.get("*");return void 0!==t&&(r=this._stateStyles.get(t?.toString())||r),r?r.buildStyles(e,i):new Map}build(t,e,i,r,s,o,a,l,c,u){const d=[],h=this.ast.options&&this.ast.options.params||Rp,g=this.buildStyles(i,a&&a.params||Rp,d),m=l&&l.params||Rp,y=this.buildStyles(r,m,d),b=new Set,I=new Map,E=new Map,A="void"===r,X={params:dR(m,h),delay:this.ast.options?.delay},he=u?[]:Ip(t,e,this.ast.animation,s,o,g,y,X,c,d);let $e=0;if(he.forEach(mn=>{$e=Math.max(mn.duration+mn.delay,$e)}),d.length)return Xb(e,this._triggerName,i,r,A,g,y,[],[],I,E,$e,d);he.forEach(mn=>{const _n=mn.element,to=dn(I,_n,new Set);mn.preStyleProps.forEach(Yn=>to.add(Yn));const Li=dn(E,_n,new Set);mn.postStyleProps.forEach(Yn=>Li.add(Yn)),_n!==e&&b.add(_n)});const gn=xc(b.values());return Xb(e,this._triggerName,i,r,A,g,y,he,gn,I,E,$e)}}function dR(n,t){const e=aa(t);for(const i in n)n.hasOwnProperty(i)&&null!=n[i]&&(e[i]=n[i]);return e}class hR{constructor(t,e,i){this.styles=t,this.defaultParams=e,this.normalizer=i}buildStyles(t,e){const i=new Map,r=aa(this.defaultParams);return Object.keys(t).forEach(s=>{const o=t[s];null!==o&&(r[s]=o)}),this.styles.styles.forEach(s=>{"string"!=typeof s&&s.forEach((o,a)=>{o&&(o=Ic(o,r,e));const l=this.normalizer.normalizePropertyName(a,e);o=this.normalizer.normalizeStyleValue(a,l,o,e),i.set(l,o)})}),i}}class pR{constructor(t,e,i){this.name=t,this.ast=e,this._normalizer=i,this.transitionFactories=[],this.states=new Map,e.states.forEach(r=>{this.states.set(r.name,new hR(r.style,r.options&&r.options.params||{},i))}),Jb(this.states,"true","1"),Jb(this.states,"false","0"),e.transitions.forEach(r=>{this.transitionFactories.push(new Qb(t,r,this.states))}),this.fallbackTransition=function gR(n,t,e){return new Qb(n,{type:1,animation:{type:2,steps:[],options:null},matchers:[(o,a)=>!0],options:null,queryCount:0,depCount:0},t)}(t,this.states)}get containsQueries(){return this.ast.queryCount>0}matchTransition(t,e,i,r){return this.transitionFactories.find(o=>o.match(t,e,i,r))||null}matchStyles(t,e,i){return this.fallbackTransition.buildStyles(t,e,i)}}function Jb(n,t,e){n.has(t)?n.has(e)||n.set(e,n.get(t)):n.has(e)&&n.set(t,n.get(e))}const mR=new Lc;class _R{constructor(t,e,i){this.bodyNode=t,this._driver=e,this._normalizer=i,this._animations=new Map,this._playersById=new Map,this.players=[]}register(t,e){const i=[],s=Mp(this._driver,e,i,[]);if(i.length)throw function _7(n){return new F(3503,ue)}();this._animations.set(t,s)}_buildPlayer(t,e,i){const r=t.element,s=Rb(0,this._normalizer,0,t.keyframes,e,i);return this._driver.animate(r,s,t.duration,t.delay,t.easing,[],!0)}create(t,e,i={}){const r=[],s=this._animations.get(t);let o;const a=new Map;if(s?(o=Ip(this._driver,e,s,bp,Dc,new Map,new Map,i,mR,r),o.forEach(u=>{const d=dn(a,u.element,new Map);u.postStyleProps.forEach(h=>d.set(h,null))})):(r.push(function v7(){return new F(3300,ue)}()),o=[]),r.length)throw function y7(n){return new F(3504,ue)}();a.forEach((u,d)=>{u.forEach((h,p)=>{u.set(p,this._driver.computeStyle(d,p,xi))})});const c=Ji(o.map(u=>{const d=a.get(u.element);return this._buildPlayer(u,new Map,d)}));return this._playersById.set(t,c),c.onDestroy(()=>this.destroy(t)),this.players.push(c),c}destroy(t){const e=this._getPlayer(t);e.destroy(),this._playersById.delete(t);const i=this.players.indexOf(e);i>=0&&this.players.splice(i,1)}_getPlayer(t){const e=this._playersById.get(t);if(!e)throw function b7(n){return new F(3301,ue)}();return e}listen(t,e,i,r){const s=mp(e,"","","");return pp(this._getPlayer(t),i,s,r),()=>{}}command(t,e,i,r){if("register"==i)return void this.register(t,r[0]);if("create"==i)return void this.create(t,e,r[0]||{});const s=this._getPlayer(t);switch(i){case"play":s.play();break;case"pause":s.pause();break;case"reset":s.reset();break;case"restart":s.restart();break;case"finish":s.finish();break;case"init":s.init();break;case"setPosition":s.setPosition(parseFloat(r[0]));break;case"destroy":this.destroy(t)}}}const ew="ng-animate-queued",Op="ng-animate-disabled",ER=[],tw={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},CR={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},Mn="__ng_removed";class Fp{constructor(t,e=""){this.namespaceId=e;const i=t&&t.hasOwnProperty("value");if(this.value=function TR(n){return n??null}(i?t.value:t),i){const s=aa(t);delete s.value,this.options=s}else this.options={};this.options.params||(this.options.params={})}get params(){return this.options.params}absorbOptions(t){const e=t.params;if(e){const i=this.options.params;Object.keys(e).forEach(r=>{null==i[r]&&(i[r]=e[r])})}}}const ca="void",kp=new Fp(ca);class DR{constructor(t,e,i){this.id=t,this.hostElement=e,this._engine=i,this.players=[],this._triggers=new Map,this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+t,Sn(e,this._hostClassName)}listen(t,e,i,r){if(!this._triggers.has(e))throw function w7(n,t){return new F(3302,ue)}();if(null==i||0==i.length)throw function E7(n){return new F(3303,ue)}();if(!function IR(n){return"start"==n||"done"==n}(i))throw function C7(n,t){return new F(3400,ue)}();const s=dn(this._elementListeners,t,[]),o={name:e,phase:i,callback:r};s.push(o);const a=dn(this._engine.statesByElement,t,new Map);return a.has(e)||(Sn(t,Mc),Sn(t,Mc+"-"+e),a.set(e,kp)),()=>{this._engine.afterFlush(()=>{const l=s.indexOf(o);l>=0&&s.splice(l,1),this._triggers.has(e)||a.delete(e)})}}register(t,e){return!this._triggers.has(t)&&(this._triggers.set(t,e),!0)}_getTrigger(t){const e=this._triggers.get(t);if(!e)throw function D7(n){return new F(3401,ue)}();return e}trigger(t,e,i,r=!0){const s=this._getTrigger(e),o=new Lp(this.id,e,t);let a=this._engine.statesByElement.get(t);a||(Sn(t,Mc),Sn(t,Mc+"-"+e),this._engine.statesByElement.set(t,a=new Map));let l=a.get(e);const c=new Fp(i,this.id);if(!(i&&i.hasOwnProperty("value"))&&l&&c.absorbOptions(l.options),a.set(e,c),l||(l=kp),c.value!==ca&&l.value===c.value){if(!function RR(n,t){const e=Object.keys(n),i=Object.keys(t);if(e.length!=i.length)return!1;for(let r=0;r<e.length;r++){const s=e[r];if(!t.hasOwnProperty(s)||n[s]!==t[s])return!1}return!0}(l.params,c.params)){const m=[],y=s.matchStyles(l.value,l.params,m),b=s.matchStyles(c.value,c.params,m);m.length?this._engine.reportError(m):this._engine.afterFlush(()=>{Ar(t,y),li(t,b)})}return}const h=dn(this._engine.playersByElement,t,[]);h.forEach(m=>{m.namespaceId==this.id&&m.triggerName==e&&m.queued&&m.destroy()});let p=s.matchTransition(l.value,c.value,t,c.params),g=!1;if(!p){if(!r)return;p=s.fallbackTransition,g=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:t,triggerName:e,transition:p,fromState:l,toState:c,player:o,isFallbackTransition:g}),g||(Sn(t,ew),o.onStart(()=>{Hs(t,ew)})),o.onDone(()=>{let m=this.players.indexOf(o);m>=0&&this.players.splice(m,1);const y=this._engine.playersByElement.get(t);if(y){let b=y.indexOf(o);b>=0&&y.splice(b,1)}}),this.players.push(o),h.push(o),o}deregister(t){this._triggers.delete(t),this._engine.statesByElement.forEach(e=>e.delete(t)),this._elementListeners.forEach((e,i)=>{this._elementListeners.set(i,e.filter(r=>r.name!=t))})}clearElementCache(t){this._engine.statesByElement.delete(t),this._elementListeners.delete(t);const e=this._engine.playersByElement.get(t);e&&(e.forEach(i=>i.destroy()),this._engine.playersByElement.delete(t))}_signalRemovalForInnerTriggers(t,e){const i=this._engine.driver.query(t,Sc,!0);i.forEach(r=>{if(r[Mn])return;const s=this._engine.fetchNamespacesByElement(r);s.size?s.forEach(o=>o.triggerLeaveAnimation(r,e,!1,!0)):this.clearElementCache(r)}),this._engine.afterFlushAnimationsDone(()=>i.forEach(r=>this.clearElementCache(r)))}triggerLeaveAnimation(t,e,i,r){const s=this._engine.statesByElement.get(t),o=new Map;if(s){const a=[];if(s.forEach((l,c)=>{if(o.set(c,l.value),this._triggers.has(c)){const u=this.trigger(t,c,ca,r);u&&a.push(u)}}),a.length)return this._engine.markElementAsRemoved(this.id,t,!0,e,o),i&&Ji(a).onDone(()=>this._engine.processLeaveNode(t)),!0}return!1}prepareLeaveAnimationListeners(t){const e=this._elementListeners.get(t),i=this._engine.statesByElement.get(t);if(e&&i){const r=new Set;e.forEach(s=>{const o=s.name;if(r.has(o))return;r.add(o);const l=this._triggers.get(o).fallbackTransition,c=i.get(o)||kp,u=new Fp(ca),d=new Lp(this.id,o,t);this._engine.totalQueuedPlayers++,this._queue.push({element:t,triggerName:o,transition:l,fromState:c,toState:u,player:d,isFallbackTransition:!0})})}}removeNode(t,e){const i=this._engine;if(t.childElementCount&&this._signalRemovalForInnerTriggers(t,e),this.triggerLeaveAnimation(t,e,!0))return;let r=!1;if(i.totalAnimations){const s=i.players.length?i.playersByQueriedElement.get(t):[];if(s&&s.length)r=!0;else{let o=t;for(;o=o.parentNode;)if(i.statesByElement.get(o)){r=!0;break}}}if(this.prepareLeaveAnimationListeners(t),r)i.markElementAsRemoved(this.id,t,!1,e);else{const s=t[Mn];(!s||s===tw)&&(i.afterFlush(()=>this.clearElementCache(t)),i.destroyInnerAnimations(t),i._onRemovalComplete(t,e))}}insertNode(t,e){Sn(t,this._hostClassName)}drainQueuedTransitions(t){const e=[];return this._queue.forEach(i=>{const r=i.player;if(r.destroyed)return;const s=i.element,o=this._elementListeners.get(s);o&&o.forEach(a=>{if(a.name==i.triggerName){const l=mp(s,i.triggerName,i.fromState.value,i.toState.value);l._data=t,pp(i.player,a.phase,l,a.callback)}}),r.markedForDestroy?this._engine.afterFlush(()=>{r.destroy()}):e.push(i)}),this._queue=[],e.sort((i,r)=>{const s=i.transition.ast.depCount,o=r.transition.ast.depCount;return 0==s||0==o?s-o:this._engine.driver.containsElement(i.element,r.element)?1:-1})}destroy(t){this.players.forEach(e=>e.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,t)}elementContainsData(t){let e=!1;return this._elementListeners.has(t)&&(e=!0),e=!!this._queue.find(i=>i.element===t)||e,e}}class MR{constructor(t,e,i){this.bodyNode=t,this.driver=e,this._normalizer=i,this.players=[],this.newHostElements=new Map,this.playersByElement=new Map,this.playersByQueriedElement=new Map,this.statesByElement=new Map,this.disabledNodes=new Set,this.totalAnimations=0,this.totalQueuedPlayers=0,this._namespaceLookup={},this._namespaceList=[],this._flushFns=[],this._whenQuietFns=[],this.namespacesByHostElement=new Map,this.collectedEnterElements=[],this.collectedLeaveElements=[],this.onRemovalComplete=(r,s)=>{}}_onRemovalComplete(t,e){this.onRemovalComplete(t,e)}get queuedPlayers(){const t=[];return this._namespaceList.forEach(e=>{e.players.forEach(i=>{i.queued&&t.push(i)})}),t}createNamespace(t,e){const i=new DR(t,e,this);return this.bodyNode&&this.driver.containsElement(this.bodyNode,e)?this._balanceNamespaceList(i,e):(this.newHostElements.set(e,i),this.collectEnterElement(e)),this._namespaceLookup[t]=i}_balanceNamespaceList(t,e){const i=this._namespaceList,r=this.namespacesByHostElement;if(i.length-1>=0){let o=!1,a=this.driver.getParentElement(e);for(;a;){const l=r.get(a);if(l){const c=i.indexOf(l);i.splice(c+1,0,t),o=!0;break}a=this.driver.getParentElement(a)}o||i.unshift(t)}else i.push(t);return r.set(e,t),t}register(t,e){let i=this._namespaceLookup[t];return i||(i=this.createNamespace(t,e)),i}registerTrigger(t,e,i){let r=this._namespaceLookup[t];r&&r.register(e,i)&&this.totalAnimations++}destroy(t,e){if(!t)return;const i=this._fetchNamespace(t);this.afterFlush(()=>{this.namespacesByHostElement.delete(i.hostElement),delete this._namespaceLookup[t];const r=this._namespaceList.indexOf(i);r>=0&&this._namespaceList.splice(r,1)}),this.afterFlushAnimationsDone(()=>i.destroy(e))}_fetchNamespace(t){return this._namespaceLookup[t]}fetchNamespacesByElement(t){const e=new Set,i=this.statesByElement.get(t);if(i)for(let r of i.values())if(r.namespaceId){const s=this._fetchNamespace(r.namespaceId);s&&e.add(s)}return e}trigger(t,e,i,r){if(Vc(e)){const s=this._fetchNamespace(t);if(s)return s.trigger(e,i,r),!0}return!1}insertNode(t,e,i,r){if(!Vc(e))return;const s=e[Mn];if(s&&s.setForRemoval){s.setForRemoval=!1,s.setForMove=!0;const o=this.collectedLeaveElements.indexOf(e);o>=0&&this.collectedLeaveElements.splice(o,1)}if(t){const o=this._fetchNamespace(t);o&&o.insertNode(e,i)}r&&this.collectEnterElement(e)}collectEnterElement(t){this.collectedEnterElements.push(t)}markElementAsDisabled(t,e){e?this.disabledNodes.has(t)||(this.disabledNodes.add(t),Sn(t,Op)):this.disabledNodes.has(t)&&(this.disabledNodes.delete(t),Hs(t,Op))}removeNode(t,e,i,r){if(Vc(e)){const s=t?this._fetchNamespace(t):null;if(s?s.removeNode(e,r):this.markElementAsRemoved(t,e,!1,r),i){const o=this.namespacesByHostElement.get(e);o&&o.id!==t&&o.removeNode(e,r)}}else this._onRemovalComplete(e,r)}markElementAsRemoved(t,e,i,r,s){this.collectedLeaveElements.push(e),e[Mn]={namespaceId:t,setForRemoval:r,hasAnimation:i,removedBeforeQueried:!1,previousTriggersValues:s}}listen(t,e,i,r,s){return Vc(e)?this._fetchNamespace(t).listen(e,i,r,s):()=>{}}_buildInstruction(t,e,i,r,s){return t.transition.build(this.driver,t.element,t.fromState.value,t.toState.value,i,r,t.fromState.options,t.toState.options,e,s)}destroyInnerAnimations(t){let e=this.driver.query(t,Sc,!0);e.forEach(i=>this.destroyActiveAnimationsForElement(i)),0!=this.playersByQueriedElement.size&&(e=this.driver.query(t,wp,!0),e.forEach(i=>this.finishActiveQueriedAnimationOnElement(i)))}destroyActiveAnimationsForElement(t){const e=this.playersByElement.get(t);e&&e.forEach(i=>{i.queued?i.markedForDestroy=!0:i.destroy()})}finishActiveQueriedAnimationOnElement(t){const e=this.playersByQueriedElement.get(t);e&&e.forEach(i=>i.finish())}whenRenderingDone(){return new Promise(t=>{if(this.players.length)return Ji(this.players).onDone(()=>t());t()})}processLeaveNode(t){const e=t[Mn];if(e&&e.setForRemoval){if(t[Mn]=tw,e.namespaceId){this.destroyInnerAnimations(t);const i=this._fetchNamespace(e.namespaceId);i&&i.clearElementCache(t)}this._onRemovalComplete(t,e.setForRemoval)}t.classList?.contains(Op)&&this.markElementAsDisabled(t,!1),this.driver.query(t,".ng-animate-disabled",!0).forEach(i=>{this.markElementAsDisabled(i,!1)})}flush(t=-1){let e=[];if(this.newHostElements.size&&(this.newHostElements.forEach((i,r)=>this._balanceNamespaceList(i,r)),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let i=0;i<this.collectedEnterElements.length;i++)Sn(this.collectedEnterElements[i],"ng-star-inserted");if(this._namespaceList.length&&(this.totalQueuedPlayers||this.collectedLeaveElements.length)){const i=[];try{e=this._flushAnimations(i,t)}finally{for(let r=0;r<i.length;r++)i[r]()}}else for(let i=0;i<this.collectedLeaveElements.length;i++)this.processLeaveNode(this.collectedLeaveElements[i]);if(this.totalQueuedPlayers=0,this.collectedEnterElements.length=0,this.collectedLeaveElements.length=0,this._flushFns.forEach(i=>i()),this._flushFns=[],this._whenQuietFns.length){const i=this._whenQuietFns;this._whenQuietFns=[],e.length?Ji(e).onDone(()=>{i.forEach(r=>r())}):i.forEach(r=>r())}}reportError(t){throw function M7(n){return new F(3402,ue)}()}_flushAnimations(t,e){const i=new Lc,r=[],s=new Map,o=[],a=new Map,l=new Map,c=new Map,u=new Set;this.disabledNodes.forEach(P=>{u.add(P);const B=this.driver.query(P,".ng-animate-queued",!0);for(let U=0;U<B.length;U++)u.add(B[U])});const d=this.bodyNode,h=Array.from(this.statesByElement.keys()),p=rw(h,this.collectedEnterElements),g=new Map;let m=0;p.forEach((P,B)=>{const U=bp+m++;g.set(B,U),P.forEach(_e=>Sn(_e,U))});const y=[],b=new Set,I=new Set;for(let P=0;P<this.collectedLeaveElements.length;P++){const B=this.collectedLeaveElements[P],U=B[Mn];U&&U.setForRemoval&&(y.push(B),b.add(B),U.hasAnimation?this.driver.query(B,".ng-star-inserted",!0).forEach(_e=>b.add(_e)):I.add(B))}const E=new Map,A=rw(h,Array.from(b));A.forEach((P,B)=>{const U=Dc+m++;E.set(B,U),P.forEach(_e=>Sn(_e,U))}),t.push(()=>{p.forEach((P,B)=>{const U=g.get(B);P.forEach(_e=>Hs(_e,U))}),A.forEach((P,B)=>{const U=E.get(B);P.forEach(_e=>Hs(_e,U))}),y.forEach(P=>{this.processLeaveNode(P)})});const X=[],he=[];for(let P=this._namespaceList.length-1;P>=0;P--)this._namespaceList[P].drainQueuedTransitions(e).forEach(U=>{const _e=U.player,Et=U.element;if(X.push(_e),this.collectedEnterElements.length){const Ot=Et[Mn];if(Ot&&Ot.setForMove){if(Ot.previousTriggersValues&&Ot.previousTriggersValues.has(U.triggerName)){const Wr=Ot.previousTriggersValues.get(U.triggerName),xn=this.statesByElement.get(U.element);if(xn&&xn.has(U.triggerName)){const ju=xn.get(U.triggerName);ju.value=Wr,xn.set(U.triggerName,ju)}}return void _e.destroy()}}const gi=!d||!this.driver.containsElement(d,Et),vn=E.get(Et),ar=g.get(Et),Ye=this._buildInstruction(U,i,ar,vn,gi);if(Ye.errors&&Ye.errors.length)return void he.push(Ye);if(gi)return _e.onStart(()=>Ar(Et,Ye.fromStyles)),_e.onDestroy(()=>li(Et,Ye.toStyles)),void r.push(_e);if(U.isFallbackTransition)return _e.onStart(()=>Ar(Et,Ye.fromStyles)),_e.onDestroy(()=>li(Et,Ye.toStyles)),void r.push(_e);const SC=[];Ye.timelines.forEach(Ot=>{Ot.stretchStartingKeyframe=!0,this.disabledNodes.has(Ot.element)||SC.push(Ot)}),Ye.timelines=SC,i.append(Et,Ye.timelines),o.push({instruction:Ye,player:_e,element:Et}),Ye.queriedElements.forEach(Ot=>dn(a,Ot,[]).push(_e)),Ye.preStyleProps.forEach((Ot,Wr)=>{if(Ot.size){let xn=l.get(Wr);xn||l.set(Wr,xn=new Set),Ot.forEach((ju,w1)=>xn.add(w1))}}),Ye.postStyleProps.forEach((Ot,Wr)=>{let xn=c.get(Wr);xn||c.set(Wr,xn=new Set),Ot.forEach((ju,w1)=>xn.add(w1))})});if(he.length){const P=[];he.forEach(B=>{P.push(function S7(n,t){return new F(3505,ue)}())}),X.forEach(B=>B.destroy()),this.reportError(P)}const $e=new Map,gn=new Map;o.forEach(P=>{const B=P.element;i.has(B)&&(gn.set(B,B),this._beforeAnimationBuild(P.player.namespaceId,P.instruction,$e))}),r.forEach(P=>{const B=P.element;this._getPreviousPlayers(B,!1,P.namespaceId,P.triggerName,null).forEach(_e=>{dn($e,B,[]).push(_e),_e.destroy()})});const mn=y.filter(P=>ow(P,l,c)),_n=new Map;iw(_n,this.driver,I,c,xi).forEach(P=>{ow(P,l,c)&&mn.push(P)});const Li=new Map;p.forEach((P,B)=>{iw(Li,this.driver,new Set(P),l,"!")}),mn.forEach(P=>{const B=_n.get(P),U=Li.get(P);_n.set(P,new Map([...Array.from(B?.entries()??[]),...Array.from(U?.entries()??[])]))});const Yn=[],no=[],io={};o.forEach(P=>{const{element:B,player:U,instruction:_e}=P;if(i.has(B)){if(u.has(B))return U.onDestroy(()=>li(B,_e.toStyles)),U.disabled=!0,U.overrideTotalTime(_e.totalTime),void r.push(U);let Et=io;if(gn.size>1){let vn=B;const ar=[];for(;vn=vn.parentNode;){const Ye=gn.get(vn);if(Ye){Et=Ye;break}ar.push(vn)}ar.forEach(Ye=>gn.set(Ye,Et))}const gi=this._buildAnimation(U.namespaceId,_e,$e,s,Li,_n);if(U.setRealPlayer(gi),Et===io)Yn.push(U);else{const vn=this.playersByElement.get(Et);vn&&vn.length&&(U.parentPlayer=Ji(vn)),r.push(U)}}else Ar(B,_e.fromStyles),U.onDestroy(()=>li(B,_e.toStyles)),no.push(U),u.has(B)&&r.push(U)}),no.forEach(P=>{const B=s.get(P.element);if(B&&B.length){const U=Ji(B);P.setRealPlayer(U)}}),r.forEach(P=>{P.parentPlayer?P.syncPlayerEvents(P.parentPlayer):P.destroy()});for(let P=0;P<y.length;P++){const B=y[P],U=B[Mn];if(Hs(B,Dc),U&&U.hasAnimation)continue;let _e=[];if(a.size){let gi=a.get(B);gi&&gi.length&&_e.push(...gi);let vn=this.driver.query(B,wp,!0);for(let ar=0;ar<vn.length;ar++){let Ye=a.get(vn[ar]);Ye&&Ye.length&&_e.push(...Ye)}}const Et=_e.filter(gi=>!gi.destroyed);Et.length?xR(this,B,Et):this.processLeaveNode(B)}return y.length=0,Yn.forEach(P=>{this.players.push(P),P.onDone(()=>{P.destroy();const B=this.players.indexOf(P);this.players.splice(B,1)}),P.play()}),Yn}elementContainsData(t,e){let i=!1;const r=e[Mn];return r&&r.setForRemoval&&(i=!0),this.playersByElement.has(e)&&(i=!0),this.playersByQueriedElement.has(e)&&(i=!0),this.statesByElement.has(e)&&(i=!0),this._fetchNamespace(t).elementContainsData(e)||i}afterFlush(t){this._flushFns.push(t)}afterFlushAnimationsDone(t){this._whenQuietFns.push(t)}_getPreviousPlayers(t,e,i,r,s){let o=[];if(e){const a=this.playersByQueriedElement.get(t);a&&(o=a)}else{const a=this.playersByElement.get(t);if(a){const l=!s||s==ca;a.forEach(c=>{c.queued||!l&&c.triggerName!=r||o.push(c)})}}return(i||r)&&(o=o.filter(a=>!(i&&i!=a.namespaceId||r&&r!=a.triggerName))),o}_beforeAnimationBuild(t,e,i){const s=e.element,o=e.isRemovalTransition?void 0:t,a=e.isRemovalTransition?void 0:e.triggerName;for(const l of e.timelines){const c=l.element,u=c!==s,d=dn(i,c,[]);this._getPreviousPlayers(c,u,o,a,e.toState).forEach(p=>{const g=p.getRealPlayer();g.beforeDestroy&&g.beforeDestroy(),p.destroy(),d.push(p)})}Ar(s,e.fromStyles)}_buildAnimation(t,e,i,r,s,o){const a=e.triggerName,l=e.element,c=[],u=new Set,d=new Set,h=e.timelines.map(g=>{const m=g.element;u.add(m);const y=m[Mn];if(y&&y.removedBeforeQueried)return new oa(g.duration,g.delay);const b=m!==l,I=function AR(n){const t=[];return sw(n,t),t}((i.get(m)||ER).map($e=>$e.getRealPlayer())).filter($e=>!!$e.element&&$e.element===m),E=s.get(m),A=o.get(m),X=Rb(0,this._normalizer,0,g.keyframes,E,A),he=this._buildPlayer(g,X,I);if(g.subTimeline&&r&&d.add(m),b){const $e=new Lp(t,a,m);$e.setRealPlayer(he),c.push($e)}return he});c.forEach(g=>{dn(this.playersByQueriedElement,g.element,[]).push(g),g.onDone(()=>function SR(n,t,e){let i=n.get(t);if(i){if(i.length){const r=i.indexOf(e);i.splice(r,1)}0==i.length&&n.delete(t)}return i}(this.playersByQueriedElement,g.element,g))}),u.forEach(g=>Sn(g,Hb));const p=Ji(h);return p.onDestroy(()=>{u.forEach(g=>Hs(g,Hb)),li(l,e.toStyles)}),d.forEach(g=>{dn(r,g,[]).push(p)}),p}_buildPlayer(t,e,i){return e.length>0?this.driver.animate(t.element,e,t.duration,t.delay,t.easing,i):new oa(t.duration,t.delay)}}class Lp{constructor(t,e,i){this.namespaceId=t,this.triggerName=e,this.element=i,this._player=new oa,this._containsRealPlayer=!1,this._queuedCallbacks=new Map,this.destroyed=!1,this.markedForDestroy=!1,this.disabled=!1,this.queued=!0,this.totalTime=0}setRealPlayer(t){this._containsRealPlayer||(this._player=t,this._queuedCallbacks.forEach((e,i)=>{e.forEach(r=>pp(t,i,void 0,r))}),this._queuedCallbacks.clear(),this._containsRealPlayer=!0,this.overrideTotalTime(t.totalTime),this.queued=!1)}getRealPlayer(){return this._player}overrideTotalTime(t){this.totalTime=t}syncPlayerEvents(t){const e=this._player;e.triggerCallback&&t.onStart(()=>e.triggerCallback("start")),t.onDone(()=>this.finish()),t.onDestroy(()=>this.destroy())}_queueEvent(t,e){dn(this._queuedCallbacks,t,[]).push(e)}onDone(t){this.queued&&this._queueEvent("done",t),this._player.onDone(t)}onStart(t){this.queued&&this._queueEvent("start",t),this._player.onStart(t)}onDestroy(t){this.queued&&this._queueEvent("destroy",t),this._player.onDestroy(t)}init(){this._player.init()}hasStarted(){return!this.queued&&this._player.hasStarted()}play(){!this.queued&&this._player.play()}pause(){!this.queued&&this._player.pause()}restart(){!this.queued&&this._player.restart()}finish(){this._player.finish()}destroy(){this.destroyed=!0,this._player.destroy()}reset(){!this.queued&&this._player.reset()}setPosition(t){this.queued||this._player.setPosition(t)}getPosition(){return this.queued?0:this._player.getPosition()}triggerCallback(t){const e=this._player;e.triggerCallback&&e.triggerCallback(t)}}function Vc(n){return n&&1===n.nodeType}function nw(n,t){const e=n.style.display;return n.style.display=t??"none",e}function iw(n,t,e,i,r){const s=[];e.forEach(l=>s.push(nw(l)));const o=[];i.forEach((l,c)=>{const u=new Map;l.forEach(d=>{const h=t.computeStyle(c,d,r);u.set(d,h),(!h||0==h.length)&&(c[Mn]=CR,o.push(c))}),n.set(c,u)});let a=0;return e.forEach(l=>nw(l,s[a++])),o}function rw(n,t){const e=new Map;if(n.forEach(a=>e.set(a,[])),0==t.length)return e;const r=new Set(t),s=new Map;function o(a){if(!a)return 1;let l=s.get(a);if(l)return l;const c=a.parentNode;return l=e.has(c)?c:r.has(c)?1:o(c),s.set(a,l),l}return t.forEach(a=>{const l=o(a);1!==l&&e.get(l).push(a)}),e}function Sn(n,t){n.classList?.add(t)}function Hs(n,t){n.classList?.remove(t)}function xR(n,t,e){Ji(e).onDone(()=>n.processLeaveNode(t))}function sw(n,t){for(let e=0;e<n.length;e++){const i=n[e];i instanceof xb?sw(i.players,t):t.push(i)}}function ow(n,t,e){const i=e.get(n);if(!i)return!1;let r=t.get(n);return r?i.forEach(s=>r.add(s)):t.set(n,i),e.delete(n),!0}class Bc{constructor(t,e,i){this.bodyNode=t,this._driver=e,this._normalizer=i,this._triggerCache={},this.onRemovalComplete=(r,s)=>{},this._transitionEngine=new MR(t,e,i),this._timelineEngine=new _R(t,e,i),this._transitionEngine.onRemovalComplete=(r,s)=>this.onRemovalComplete(r,s)}registerTrigger(t,e,i,r,s){const o=t+"-"+r;let a=this._triggerCache[o];if(!a){const l=[],u=Mp(this._driver,s,l,[]);if(l.length)throw function g7(n,t){return new F(3404,ue)}();a=function fR(n,t,e){return new pR(n,t,e)}(r,u,this._normalizer),this._triggerCache[o]=a}this._transitionEngine.registerTrigger(e,r,a)}register(t,e){this._transitionEngine.register(t,e)}destroy(t,e){this._transitionEngine.destroy(t,e)}onInsert(t,e,i,r){this._transitionEngine.insertNode(t,e,i,r)}onRemove(t,e,i,r){this._transitionEngine.removeNode(t,e,r||!1,i)}disableAnimations(t,e){this._transitionEngine.markElementAsDisabled(t,e)}process(t,e,i,r){if("@"==i.charAt(0)){const[s,o]=Ob(i);this._timelineEngine.command(s,e,o,r)}else this._transitionEngine.trigger(t,e,i,r)}listen(t,e,i,r,s){if("@"==i.charAt(0)){const[o,a]=Ob(i);return this._timelineEngine.listen(o,e,a,s)}return this._transitionEngine.listen(t,e,i,r,s)}flush(t=-1){this._transitionEngine.flush(t)}get players(){return this._transitionEngine.players.concat(this._timelineEngine.players)}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}}let FR=(()=>{class n{constructor(e,i,r){this._element=e,this._startStyles=i,this._endStyles=r,this._state=0;let s=n.initialStylesByElement.get(e);s||n.initialStylesByElement.set(e,s=new Map),this._initialStyles=s}start(){this._state<1&&(this._startStyles&&li(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(li(this._element,this._initialStyles),this._endStyles&&(li(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(n.initialStylesByElement.delete(this._element),this._startStyles&&(Ar(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(Ar(this._element,this._endStyles),this._endStyles=null),li(this._element,this._initialStyles),this._state=3)}}return n.initialStylesByElement=new WeakMap,n})();function Np(n){let t=null;return n.forEach((e,i)=>{(function kR(n){return"display"===n||"position"===n})(i)&&(t=t||new Map,t.set(i,e))}),t}class aw{constructor(t,e,i,r){this.element=t,this.keyframes=e,this.options=i,this._specialStyles=r,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._initialized=!1,this._finished=!1,this._started=!1,this._destroyed=!1,this.time=0,this.parentPlayer=null,this.currentSnapshot=new Map,this._duration=i.duration,this._delay=i.delay||0,this.time=this._duration+this._delay}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(t=>t()),this._onDoneFns=[])}init(){this._buildPlayer(),this._preparePlayerBeforeStart()}_buildPlayer(){if(this._initialized)return;this._initialized=!0;const t=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,t,this.options),this._finalKeyframe=t.length?t[t.length-1]:new Map,this.domPlayer.addEventListener("finish",()=>this._onFinish())}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}_convertKeyframesToObject(t){const e=[];return t.forEach(i=>{e.push(Object.fromEntries(i))}),e}_triggerWebAnimation(t,e,i){return t.animate(this._convertKeyframesToObject(e),i)}onStart(t){this._onStartFns.push(t)}onDone(t){this._onDoneFns.push(t)}onDestroy(t){this._onDestroyFns.push(t)}play(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(t=>t()),this._onStartFns=[],this._started=!0,this._specialStyles&&this._specialStyles.start()),this.domPlayer.play()}pause(){this.init(),this.domPlayer.pause()}finish(){this.init(),this._specialStyles&&this._specialStyles.finish(),this._onFinish(),this.domPlayer.finish()}reset(){this._resetDomPlayerState(),this._destroyed=!1,this._finished=!1,this._started=!1}_resetDomPlayerState(){this.domPlayer&&this.domPlayer.cancel()}restart(){this.reset(),this.play()}hasStarted(){return this._started}destroy(){this._destroyed||(this._destroyed=!0,this._resetDomPlayerState(),this._onFinish(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(t=>t()),this._onDestroyFns=[])}setPosition(t){void 0===this.domPlayer&&this.init(),this.domPlayer.currentTime=t*this.time}getPosition(){return this.domPlayer.currentTime/this.time}get totalTime(){return this._delay+this._duration}beforeDestroy(){const t=new Map;this.hasStarted()&&this._finalKeyframe.forEach((i,r)=>{"offset"!==r&&t.set(r,this._finished?i:Gb(this.element,r))}),this.currentSnapshot=t}triggerCallback(t){const e="start"===t?this._onStartFns:this._onDoneFns;e.forEach(i=>i()),e.length=0}}class LR{validateStyleProperty(t){return!0}validateAnimatableStyleProperty(t){return!0}matchesElement(t,e){return!1}containsElement(t,e){return Nb(t,e)}getParentElement(t){return vp(t)}query(t,e,i){return Pb(t,e,i)}computeStyle(t,e,i){return window.getComputedStyle(t)[e]}animate(t,e,i,r,s,o=[]){const l={duration:i,delay:r,fill:0==r?"both":"forwards"};s&&(l.easing=s);const c=new Map,u=o.filter(p=>p instanceof aw);(function B7(n,t){return 0===n||0===t})(i,r)&&u.forEach(p=>{p.currentSnapshot.forEach((g,m)=>c.set(m,g))});let d=function L7(n){return n.length?n[0]instanceof Map?n:n.map(t=>zb(t)):[]}(e).map(p=>tr(p));d=function H7(n,t,e){if(e.size&&t.length){let i=t[0],r=[];if(e.forEach((s,o)=>{i.has(o)||r.push(o),i.set(o,s)}),r.length)for(let s=1;s<t.length;s++){let o=t[s];r.forEach(a=>o.set(a,Gb(n,a)))}}return t}(t,d,c);const h=function OR(n,t){let e=null,i=null;return Array.isArray(t)&&t.length?(e=Np(t[0]),t.length>1&&(i=Np(t[t.length-1]))):t instanceof Map&&(e=Np(t)),e||i?new FR(n,e,i):null}(t,d);return new aw(t,d,l,h)}}let NR=(()=>{class n extends Sb{constructor(e,i){super(),this._nextAnimationId=0,this._renderer=e.createRenderer(i.body,{id:"0",encapsulation:Rn.None,styles:[],data:{animation:[]}})}build(e){const i=this._nextAnimationId.toString();this._nextAnimationId++;const r=Array.isArray(e)?Tb(e):e;return lw(this._renderer,null,i,"register",[r]),new PR(i,this._renderer)}}return n.\u0275fac=function(e){return new(e||n)(v(Uo),v(ne))},n.\u0275prov=S({token:n,factory:n.\u0275fac}),n})();class PR extends class Y9{}{constructor(t,e){super(),this._id=t,this._renderer=e}create(t,e){return new VR(this._id,t,e||{},this._renderer)}}class VR{constructor(t,e,i,r){this.id=t,this.element=e,this._renderer=r,this.parentPlayer=null,this._started=!1,this.totalTime=0,this._command("create",i)}_listen(t,e){return this._renderer.listen(this.element,`@@${this.id}:${t}`,e)}_command(t,...e){return lw(this._renderer,this.element,this.id,t,e)}onDone(t){this._listen("done",t)}onStart(t){this._listen("start",t)}onDestroy(t){this._listen("destroy",t)}init(){this._command("init")}hasStarted(){return this._started}play(){this._command("play"),this._started=!0}pause(){this._command("pause")}restart(){this._command("restart")}finish(){this._command("finish")}destroy(){this._command("destroy")}reset(){this._command("reset"),this._started=!1}setPosition(t){this._command("setPosition",t)}getPosition(){return this._renderer.engine.players[+this.id]?.getPosition()??0}}function lw(n,t,e,i,r){return n.setProperty(t,`@@${e}:${i}`,r)}const cw="@.disabled";let BR=(()=>{class n{constructor(e,i,r){this.delegate=e,this.engine=i,this._zone=r,this._currentId=0,this._microtaskId=1,this._animationCallbacksBuffer=[],this._rendererCache=new Map,this._cdRecurDepth=0,this.promise=Promise.resolve(0),i.onRemovalComplete=(s,o)=>{const a=o?.parentNode(s);a&&o.removeChild(a,s)}}createRenderer(e,i){const s=this.delegate.createRenderer(e,i);if(!(e&&i&&i.data&&i.data.animation)){let u=this._rendererCache.get(s);return u||(u=new uw("",s,this.engine),this._rendererCache.set(s,u)),u}const o=i.id,a=i.id+"-"+this._currentId;this._currentId++,this.engine.register(a,e);const l=u=>{Array.isArray(u)?u.forEach(l):this.engine.registerTrigger(o,a,e,u.name,u)};return i.data.animation.forEach(l),new HR(this,a,s,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}_scheduleCountTask(){this.promise.then(()=>{this._microtaskId++})}scheduleListenerCallback(e,i,r){e>=0&&e<this._microtaskId?this._zone.run(()=>i(r)):(0==this._animationCallbacksBuffer.length&&Promise.resolve(null).then(()=>{this._zone.run(()=>{this._animationCallbacksBuffer.forEach(s=>{const[o,a]=s;o(a)}),this._animationCallbacksBuffer=[]})}),this._animationCallbacksBuffer.push([i,r]))}end(){this._cdRecurDepth--,0==this._cdRecurDepth&&this._zone.runOutsideAngular(()=>{this._scheduleCountTask(),this.engine.flush(this._microtaskId)}),this.delegate.end&&this.delegate.end()}whenRenderingDone(){return this.engine.whenRenderingDone()}}return n.\u0275fac=function(e){return new(e||n)(v(Uo),v(Bc),v(ie))},n.\u0275prov=S({token:n,factory:n.\u0275fac}),n})();class uw{constructor(t,e,i){this.namespaceId=t,this.delegate=e,this.engine=i,this.destroyNode=this.delegate.destroyNode?r=>e.destroyNode(r):null}get data(){return this.delegate.data}destroy(){this.engine.destroy(this.namespaceId,this.delegate),this.delegate.destroy()}createElement(t,e){return this.delegate.createElement(t,e)}createComment(t){return this.delegate.createComment(t)}createText(t){return this.delegate.createText(t)}appendChild(t,e){this.delegate.appendChild(t,e),this.engine.onInsert(this.namespaceId,e,t,!1)}insertBefore(t,e,i,r=!0){this.delegate.insertBefore(t,e,i),this.engine.onInsert(this.namespaceId,e,t,r)}removeChild(t,e,i){this.engine.onRemove(this.namespaceId,e,this.delegate,i)}selectRootElement(t,e){return this.delegate.selectRootElement(t,e)}parentNode(t){return this.delegate.parentNode(t)}nextSibling(t){return this.delegate.nextSibling(t)}setAttribute(t,e,i,r){this.delegate.setAttribute(t,e,i,r)}removeAttribute(t,e,i){this.delegate.removeAttribute(t,e,i)}addClass(t,e){this.delegate.addClass(t,e)}removeClass(t,e){this.delegate.removeClass(t,e)}setStyle(t,e,i,r){this.delegate.setStyle(t,e,i,r)}removeStyle(t,e,i){this.delegate.removeStyle(t,e,i)}setProperty(t,e,i){"@"==e.charAt(0)&&e==cw?this.disableAnimations(t,!!i):this.delegate.setProperty(t,e,i)}setValue(t,e){this.delegate.setValue(t,e)}listen(t,e,i){return this.delegate.listen(t,e,i)}disableAnimations(t,e){this.engine.disableAnimations(t,e)}}class HR extends uw{constructor(t,e,i,r){super(e,i,r),this.factory=t,this.namespaceId=e}setProperty(t,e,i){"@"==e.charAt(0)?"."==e.charAt(1)&&e==cw?this.disableAnimations(t,i=void 0===i||!!i):this.engine.process(this.namespaceId,t,e.slice(1),i):this.delegate.setProperty(t,e,i)}listen(t,e,i){if("@"==e.charAt(0)){const r=function zR(n){switch(n){case"body":return document.body;case"document":return document;case"window":return window;default:return n}}(t);let s=e.slice(1),o="";return"@"!=s.charAt(0)&&([s,o]=function jR(n){const t=n.indexOf(".");return[n.substring(0,t),n.slice(t+1)]}(s)),this.engine.listen(this.namespaceId,r,s,o,a=>{this.factory.scheduleListenerCallback(a._data||-1,i,a)})}return this.delegate.listen(t,e,i)}}const dw=[{provide:Sb,useClass:NR},{provide:Ap,useFactory:function $R(){return new cR}},{provide:Bc,useClass:(()=>{class n extends Bc{constructor(e,i,r){super(e.body,i,r)}ngOnDestroy(){this.flush()}}return n.\u0275fac=function(e){return new(e||n)(v(ne),v(yp),v(Ap))},n.\u0275prov=S({token:n,factory:n.\u0275fac}),n})()},{provide:Uo,useFactory:function YR(n,t,e){return new BR(n,t,e)},deps:[bc,Bc,ie]}],hw=[{provide:yp,useFactory:()=>new LR},{provide:Mr,useValue:"BrowserAnimations"},...dw],GR=[{provide:yp,useClass:Vb},{provide:Mr,useValue:"NoopAnimations"},...dw];let WR=(()=>{class n{static withConfig(e){return{ngModule:n,providers:e.disableAnimations?GR:hw}}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=me({type:n}),n.\u0275inj=pe({providers:hw,imports:[wb]}),n})();const Pp={now:()=>(Pp.delegate||Date).now(),delegate:void 0};class fw extends le{constructor(t=1/0,e=1/0,i=Pp){super(),this._bufferSize=t,this._windowTime=e,this._timestampProvider=i,this._buffer=[],this._infiniteTimeWindow=!0,this._infiniteTimeWindow=e===1/0,this._bufferSize=Math.max(1,t),this._windowTime=Math.max(1,e)}next(t){const{isStopped:e,_buffer:i,_infiniteTimeWindow:r,_timestampProvider:s,_windowTime:o}=this;e||(i.push(t),!r&&i.push(s.now()+o)),this._trimBuffer(),super.next(t)}_subscribe(t){this._throwIfClosed(),this._trimBuffer();const e=this._innerSubscribe(t),{_infiniteTimeWindow:i,_buffer:r}=this,s=r.slice();for(let o=0;o<s.length&&!t.closed;o+=i?1:2)t.next(s[o]);return this._checkFinalizedStatuses(t),e}_trimBuffer(){const{_bufferSize:t,_timestampProvider:e,_buffer:i,_infiniteTimeWindow:r}=this,s=(r?1:2)*t;if(t<1/0&&s<i.length&&i.splice(0,i.length-s),!r){const o=e.now();let a=0;for(let l=1;l<i.length&&i[l]<=o;l+=2)a=l;a&&i.splice(0,a+1)}}}function Tn(n,t){return We((e,i)=>{let r=null,s=0,o=!1;const a=()=>o&&!r&&i.complete();e.subscribe(Pe(i,l=>{r?.unsubscribe();let c=0;const u=s++;Gt(n(l,u)).subscribe(r=Pe(i,d=>i.next(t?t(l,d,u,c++):d),()=>{r=null,a()}))},()=>{o=!0,a()}))})}const zc={schedule(n,t){const e=setTimeout(n,t);return()=>clearTimeout(e)},scheduleBeforeRender(n){if(typeof window>"u")return zc.schedule(n,0);if(typeof window.requestAnimationFrame>"u")return zc.schedule(n,16);const t=window.requestAnimationFrame(n);return()=>window.cancelAnimationFrame(t)}};let Vp;function nO(n,t,e){let i=e;return function qR(n){return!!n&&n.nodeType===Node.ELEMENT_NODE}(n)&&t.some((r,s)=>!("*"===r||!function XR(n,t){if(!Vp){const e=Element.prototype;Vp=e.matches||e.matchesSelector||e.mozMatchesSelector||e.msMatchesSelector||e.oMatchesSelector||e.webkitMatchesSelector}return n.nodeType===Node.ELEMENT_NODE&&Vp.call(n,t)}(n,r)||(i=s,0))),i}class rO{constructor(t,e){this.componentFactory=e.get(Yi).resolveComponentFactory(t)}create(t){return new sO(this.componentFactory,t)}}class sO{constructor(t,e){this.componentFactory=t,this.injector=e,this.eventEmitters=new fw(1),this.events=this.eventEmitters.pipe(Tn(i=>ur(...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(ie),this.elementZone=typeof Zone>"u"?null:this.ngZone.run(()=>Zone.current)}connect(t){this.runInZone(()=>{if(null!==this.scheduledDestroyFn)return this.scheduledDestroyFn(),void(this.scheduledDestroyFn=null);null===this.componentRef&&this.initializeComponent(t)})}disconnect(){this.runInZone(()=>{null===this.componentRef||null!==this.scheduledDestroyFn||(this.scheduledDestroyFn=zc.schedule(()=>{null!==this.componentRef&&(this.componentRef.destroy(),this.componentRef=null,this.viewChangeDetectorRef=null)},10))})}getInputValue(t){return this.runInZone(()=>null===this.componentRef?this.initialInputValues.get(t):this.componentRef.instance[t])}setInputValue(t,e){this.runInZone(()=>{null!==this.componentRef?function QR(n,t){return n===t||n!=n&&t!=t}(e,this.getInputValue(t))&&(void 0!==e||!this.unchangedInputs.has(t))||(this.recordInputChange(t,e),this.unchangedInputs.delete(t),this.hasInputChanges=!0,this.componentRef.instance[t]=e,this.scheduleDetectChanges()):this.initialInputValues.set(t,e)})}initializeComponent(t){const e=it.create({providers:[],parent:this.injector}),i=function tO(n,t){const e=n.childNodes,i=t.map(()=>[]);let r=-1;t.some((s,o)=>"*"===s&&(r=o,!0));for(let s=0,o=e.length;s<o;++s){const a=e[s],l=nO(a,t,r);-1!==l&&i[l].push(a)}return i}(t,this.componentFactory.ngContentSelectors);this.componentRef=this.componentFactory.create(e,i,t),this.viewChangeDetectorRef=this.componentRef.injector.get(Si),this.implementsOnChanges=function ZR(n){return"function"==typeof n}(this.componentRef.instance.ngOnChanges),this.initializeInputs(),this.initializeOutputs(this.componentRef),this.detectChanges(),this.injector.get(Qo).attachView(this.componentRef.hostView)}initializeInputs(){this.componentFactory.inputs.forEach(({propName:t})=>{this.initialInputValues.has(t)&&this.setInputValue(t,this.initialInputValues.get(t))}),this.initialInputValues.clear()}initializeOutputs(t){const e=this.componentFactory.outputs.map(({propName:i,templateName:r})=>t.instance[i].pipe(K(o=>({name:r,value:o}))));this.eventEmitters.next(e)}callNgOnChanges(t){if(!this.implementsOnChanges||null===this.inputChanges)return;const e=this.inputChanges;this.inputChanges=null,t.instance.ngOnChanges(e)}markViewForCheck(t){this.hasInputChanges&&(this.hasInputChanges=!1,t.markForCheck())}scheduleDetectChanges(){this.scheduledChangeDetectionFn||(this.scheduledChangeDetectionFn=zc.scheduleBeforeRender(()=>{this.scheduledChangeDetectionFn=null,this.detectChanges()}))}recordInputChange(t,e){if(!this.implementsOnChanges)return;null===this.inputChanges&&(this.inputChanges={});const i=this.inputChanges[t];if(i)return void(i.currentValue=e);const r=this.unchangedInputs.has(t),s=r?void 0:this.getInputValue(t);this.inputChanges[t]=new rg(s,e,r)}detectChanges(){null!==this.componentRef&&(this.callNgOnChanges(this.componentRef),this.markViewForCheck(this.viewChangeDetectorRef),this.componentRef.changeDetectorRef.detectChanges())}runInZone(t){return this.elementZone&&Zone.current!==this.elementZone?this.ngZone.run(t):t()}}class oO extends HTMLElement{constructor(){super(...arguments),this.ngElementEventsSubscription=null}}function pw(n,t){const e=function eO(n,t){return t.get(Yi).resolveComponentFactory(n).inputs}(n,t.injector),i=t.strategyFactory||new rO(n,t.injector),r=function JR(n){const t={};return n.forEach(({propName:e,templateName:i})=>{t[function KR(n){return n.replace(/[A-Z]/g,t=>`-${t.toLowerCase()}`)}(i)]=e}),t}(e);class s extends oO{constructor(a){super(),this.injector=a}get ngElementStrategy(){if(!this._ngElementStrategy){const a=this._ngElementStrategy=i.create(this.injector||t.injector);e.forEach(({propName:l})=>{if(!this.hasOwnProperty(l))return;const c=this[l];delete this[l],a.setInputValue(l,c)})}return this._ngElementStrategy}attributeChangedCallback(a,l,c,u){this.ngElementStrategy.setInputValue(r[a],c)}connectedCallback(){let a=!1;this.ngElementStrategy.events&&(this.subscribeToEvents(),a=!0),this.ngElementStrategy.connect(this),a||this.subscribeToEvents()}disconnectedCallback(){this._ngElementStrategy&&this._ngElementStrategy.disconnect(),this.ngElementEventsSubscription&&(this.ngElementEventsSubscription.unsubscribe(),this.ngElementEventsSubscription=null)}subscribeToEvents(){this.ngElementEventsSubscription=this.ngElementStrategy.events.subscribe(a=>{const l=new CustomEvent(a.name,{detail:a.value});this.dispatchEvent(l)})}}return s.observedAttributes=Object.keys(r),e.forEach(({propName:o})=>{Object.defineProperty(s.prototype,o,{get(){return this.ngElementStrategy.getInputValue(o)},set(a){this.ngElementStrategy.setInputValue(o,a)},configurable:!0,enumerable:!0})}),s}const{isArray:aO}=Array,{getPrototypeOf:lO,prototype:cO,keys:uO}=Object;function gw(n){if(1===n.length){const t=n[0];if(aO(t))return{args:t,keys:null};if(function dO(n){return n&&"object"==typeof n&&lO(n)===cO}(t)){const e=uO(t);return{args:e.map(i=>t[i]),keys:e}}}return{args:n,keys:null}}const{isArray:hO}=Array;function Bp(n){return K(t=>function fO(n,t){return hO(t)?n(...t):n(t)}(n,t))}function mw(n,t){return n.reduce((e,i,r)=>(e[i]=t[r],e),{})}function jc(...n){const t=$1(n),{args:e,keys:i}=gw(n),r=new Te(s=>{const{length:o}=e;if(!o)return void s.complete();const a=new Array(o);let l=o,c=o;for(let u=0;u<o;u++){let d=!1;Gt(e[u]).subscribe(Pe(s,h=>{d||(d=!0,c--),a[u]=h},()=>l--,void 0,()=>{(!l||!d)&&(c||s.next(i?mw(i,a):a),s.complete())}))}});return t?r.pipe(Bp(t)):r}let _w=(()=>{class n{constructor(e,i){this._renderer=e,this._elementRef=i,this.onChange=r=>{},this.onTouched=()=>{}}setProperty(e,i){this._renderer.setProperty(this._elementRef.nativeElement,e,i)}registerOnTouched(e){this.onTouched=e}registerOnChange(e){this.onChange=e}setDisabledState(e){this.setProperty("disabled",e)}}return n.\u0275fac=function(e){return new(e||n)(_(ht),_(se))},n.\u0275dir=O({type:n}),n})(),Or=(()=>{class n extends _w{}return n.\u0275fac=function(){let t;return function(i){return(t||(t=nt(n)))(i||n)}}(),n.\u0275dir=O({type:n,features:[ce]}),n})();const ci=new R("NgValueAccessor"),gO={provide:ci,useExisting:Re(()=>Uc),multi:!0},_O=new R("CompositionEventMode");let Uc=(()=>{class n extends _w{constructor(e,i,r){super(e,i),this._compositionMode=r,this._composing=!1,null==this._compositionMode&&(this._compositionMode=!function mO(){const n=ai()?ai().getUserAgent():"";return/android (\d+)/.test(n.toLowerCase())}())}writeValue(e){this.setProperty("value",e??"")}_handleInput(e){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(e)}_compositionStart(){this._composing=!0}_compositionEnd(e){this._composing=!1,this._compositionMode&&this.onChange(e)}}return n.\u0275fac=function(e){return new(e||n)(_(ht),_(se),_(_O,8))},n.\u0275dir=O({type:n,selectors:[["input","formControlName","",3,"type","checkbox"],["textarea","formControlName",""],["input","formControl","",3,"type","checkbox"],["textarea","formControl",""],["input","ngModel","",3,"type","checkbox"],["textarea","ngModel",""],["","ngDefaultControl",""]],hostBindings:function(e,i){1&e&&W("input",function(s){return i._handleInput(s.target.value)})("blur",function(){return i.onTouched()})("compositionstart",function(){return i._compositionStart()})("compositionend",function(s){return i._compositionEnd(s.target.value)})},features:[we([gO]),ce]}),n})();function nr(n){return null==n||("string"==typeof n||Array.isArray(n))&&0===n.length}function yw(n){return null!=n&&"number"==typeof n.length}const At=new R("NgValidators"),ir=new R("NgAsyncValidators"),vO=/^(?=.{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 Qe{static min(t){return function bw(n){return t=>{if(nr(t.value)||nr(n))return null;const e=parseFloat(t.value);return!isNaN(e)&&e<n?{min:{min:n,actual:t.value}}:null}}(t)}static max(t){return function ww(n){return t=>{if(nr(t.value)||nr(n))return null;const e=parseFloat(t.value);return!isNaN(e)&&e>n?{max:{max:n,actual:t.value}}:null}}(t)}static required(t){return Ew(t)}static requiredTrue(t){return function Cw(n){return!0===n.value?null:{required:!0}}(t)}static email(t){return function Dw(n){return nr(n.value)||vO.test(n.value)?null:{email:!0}}(t)}static minLength(t){return function Mw(n){return t=>nr(t.value)||!yw(t.value)?null:t.value.length<n?{minlength:{requiredLength:n,actualLength:t.value.length}}:null}(t)}static maxLength(t){return Sw(t)}static pattern(t){return function Tw(n){if(!n)return $c;let t,e;return"string"==typeof n?(e="","^"!==n.charAt(0)&&(e+="^"),e+=n,"$"!==n.charAt(n.length-1)&&(e+="$"),t=new RegExp(e)):(e=n.toString(),t=n),i=>{if(nr(i.value))return null;const r=i.value;return t.test(r)?null:{pattern:{requiredPattern:e,actualValue:r}}}}(t)}static nullValidator(t){return null}static compose(t){return Fw(t)}static composeAsync(t){return kw(t)}}function Ew(n){return nr(n.value)?{required:!0}:null}function Sw(n){return t=>yw(t.value)&&t.value.length>n?{maxlength:{requiredLength:n,actualLength:t.value.length}}:null}function $c(n){return null}function Iw(n){return null!=n}function xw(n){const t=Po(n)?gt(n):n;return ef(t),t}function Aw(n){let t={};return n.forEach(e=>{t=null!=e?{...t,...e}:t}),0===Object.keys(t).length?null:t}function Rw(n,t){return t.map(e=>e(n))}function Ow(n){return n.map(t=>function yO(n){return!n.validate}(t)?t:e=>t.validate(e))}function Fw(n){if(!n)return null;const t=n.filter(Iw);return 0==t.length?null:function(e){return Aw(Rw(e,t))}}function Hp(n){return null!=n?Fw(Ow(n)):null}function kw(n){if(!n)return null;const t=n.filter(Iw);return 0==t.length?null:function(e){return jc(Rw(e,t).map(xw)).pipe(K(Aw))}}function zp(n){return null!=n?kw(Ow(n)):null}function Lw(n,t){return null===n?[t]:Array.isArray(n)?[...n,t]:[n,t]}function Nw(n){return n._rawValidators}function Pw(n){return n._rawAsyncValidators}function jp(n){return n?Array.isArray(n)?n:[n]:[]}function Yc(n,t){return Array.isArray(n)?n.includes(t):n===t}function Vw(n,t){const e=jp(t);return jp(n).forEach(r=>{Yc(e,r)||e.push(r)}),e}function Bw(n,t){return jp(t).filter(e=>!Yc(n,e))}class Hw{constructor(){this._rawValidators=[],this._rawAsyncValidators=[],this._onDestroyCallbacks=[]}get value(){return this.control?this.control.value:null}get valid(){return this.control?this.control.valid:null}get invalid(){return this.control?this.control.invalid:null}get pending(){return this.control?this.control.pending:null}get disabled(){return this.control?this.control.disabled:null}get enabled(){return this.control?this.control.enabled:null}get errors(){return this.control?this.control.errors:null}get pristine(){return this.control?this.control.pristine:null}get dirty(){return this.control?this.control.dirty:null}get touched(){return this.control?this.control.touched:null}get status(){return this.control?this.control.status:null}get untouched(){return this.control?this.control.untouched:null}get statusChanges(){return this.control?this.control.statusChanges:null}get valueChanges(){return this.control?this.control.valueChanges:null}get path(){return null}_setValidators(t){this._rawValidators=t||[],this._composedValidatorFn=Hp(this._rawValidators)}_setAsyncValidators(t){this._rawAsyncValidators=t||[],this._composedAsyncValidatorFn=zp(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_registerOnDestroy(t){this._onDestroyCallbacks.push(t)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(t=>t()),this._onDestroyCallbacks=[]}reset(t){this.control&&this.control.reset(t)}hasError(t,e){return!!this.control&&this.control.hasError(t,e)}getError(t,e){return this.control?this.control.getError(t,e):null}}class $t extends Hw{get formDirective(){return null}get path(){return null}}class ui extends Hw{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}}class zw{constructor(t){this._cd=t}get isTouched(){return!!this._cd?.control?.touched}get isUntouched(){return!!this._cd?.control?.untouched}get isPristine(){return!!this._cd?.control?.pristine}get isDirty(){return!!this._cd?.control?.dirty}get isValid(){return!!this._cd?.control?.valid}get isInvalid(){return!!this._cd?.control?.invalid}get isPending(){return!!this._cd?.control?.pending}get isSubmitted(){return!!this._cd?.submitted}}let Up=(()=>{class n extends zw{constructor(e){super(e)}}return n.\u0275fac=function(e){return new(e||n)(_(ui,2))},n.\u0275dir=O({type:n,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(e,i){2&e&&Ht("ng-untouched",i.isUntouched)("ng-touched",i.isTouched)("ng-pristine",i.isPristine)("ng-dirty",i.isDirty)("ng-valid",i.isValid)("ng-invalid",i.isInvalid)("ng-pending",i.isPending)},features:[ce]}),n})(),$p=(()=>{class n extends zw{constructor(e){super(e)}}return n.\u0275fac=function(e){return new(e||n)(_($t,10))},n.\u0275dir=O({type:n,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:16,hostBindings:function(e,i){2&e&&Ht("ng-untouched",i.isUntouched)("ng-touched",i.isTouched)("ng-pristine",i.isPristine)("ng-dirty",i.isDirty)("ng-valid",i.isValid)("ng-invalid",i.isInvalid)("ng-pending",i.isPending)("ng-submitted",i.isSubmitted)},features:[ce]}),n})();const ua="VALID",Wc="INVALID",zs="PENDING",da="DISABLED";function Kp(n){return(Kc(n)?n.validators:n)||null}function Uw(n){return Array.isArray(n)?Hp(n):n||null}function qp(n,t){return(Kc(t)?t.asyncValidators:n)||null}function $w(n){return Array.isArray(n)?zp(n):n||null}function Kc(n){return null!=n&&!Array.isArray(n)&&"object"==typeof n}function Yw(n,t,e){const i=n.controls;if(!(t?Object.keys(i):i).length)throw new F(1e3,"");if(!i[e])throw new F(1001,"")}function Gw(n,t,e){n._forEachChild((i,r)=>{if(void 0===e[r])throw new F(1002,"")})}class qc{constructor(t,e){this._pendingDirty=!1,this._hasOwnPendingAsyncValidator=!1,this._pendingTouched=!1,this._onCollectionChange=()=>{},this._parent=null,this.pristine=!0,this.touched=!1,this._onDisabledChange=[],this._rawValidators=t,this._rawAsyncValidators=e,this._composedValidatorFn=Uw(this._rawValidators),this._composedAsyncValidatorFn=$w(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn}set validator(t){this._rawValidators=this._composedValidatorFn=t}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(t){this._rawAsyncValidators=this._composedAsyncValidatorFn=t}get parent(){return this._parent}get valid(){return this.status===ua}get invalid(){return this.status===Wc}get pending(){return this.status==zs}get disabled(){return this.status===da}get enabled(){return this.status!==da}get dirty(){return!this.pristine}get untouched(){return!this.touched}get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(t){this._rawValidators=t,this._composedValidatorFn=Uw(t)}setAsyncValidators(t){this._rawAsyncValidators=t,this._composedAsyncValidatorFn=$w(t)}addValidators(t){this.setValidators(Vw(t,this._rawValidators))}addAsyncValidators(t){this.setAsyncValidators(Vw(t,this._rawAsyncValidators))}removeValidators(t){this.setValidators(Bw(t,this._rawValidators))}removeAsyncValidators(t){this.setAsyncValidators(Bw(t,this._rawAsyncValidators))}hasValidator(t){return Yc(this._rawValidators,t)}hasAsyncValidator(t){return Yc(this._rawAsyncValidators,t)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(t={}){this.touched=!0,this._parent&&!t.onlySelf&&this._parent.markAsTouched(t)}markAllAsTouched(){this.markAsTouched({onlySelf:!0}),this._forEachChild(t=>t.markAllAsTouched())}markAsUntouched(t={}){this.touched=!1,this._pendingTouched=!1,this._forEachChild(e=>{e.markAsUntouched({onlySelf:!0})}),this._parent&&!t.onlySelf&&this._parent._updateTouched(t)}markAsDirty(t={}){this.pristine=!1,this._parent&&!t.onlySelf&&this._parent.markAsDirty(t)}markAsPristine(t={}){this.pristine=!0,this._pendingDirty=!1,this._forEachChild(e=>{e.markAsPristine({onlySelf:!0})}),this._parent&&!t.onlySelf&&this._parent._updatePristine(t)}markAsPending(t={}){this.status=zs,!1!==t.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!t.onlySelf&&this._parent.markAsPending(t)}disable(t={}){const e=this._parentMarkedDirty(t.onlySelf);this.status=da,this.errors=null,this._forEachChild(i=>{i.disable({...t,onlySelf:!0})}),this._updateValue(),!1!==t.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors({...t,skipPristineCheck:e}),this._onDisabledChange.forEach(i=>i(!0))}enable(t={}){const e=this._parentMarkedDirty(t.onlySelf);this.status=ua,this._forEachChild(i=>{i.enable({...t,onlySelf:!0})}),this.updateValueAndValidity({onlySelf:!0,emitEvent:t.emitEvent}),this._updateAncestors({...t,skipPristineCheck:e}),this._onDisabledChange.forEach(i=>i(!1))}_updateAncestors(t){this._parent&&!t.onlySelf&&(this._parent.updateValueAndValidity(t),t.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}setParent(t){this._parent=t}getRawValue(){return this.value}updateValueAndValidity(t={}){this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===ua||this.status===zs)&&this._runAsyncValidator(t.emitEvent)),!1!==t.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!t.onlySelf&&this._parent.updateValueAndValidity(t)}_updateTreeValidity(t={emitEvent:!0}){this._forEachChild(e=>e._updateTreeValidity(t)),this.updateValueAndValidity({onlySelf:!0,emitEvent:t.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?da:ua}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(t){if(this.asyncValidator){this.status=zs,this._hasOwnPendingAsyncValidator=!0;const e=xw(this.asyncValidator(this));this._asyncValidationSubscription=e.subscribe(i=>{this._hasOwnPendingAsyncValidator=!1,this.setErrors(i,{emitEvent:t})})}}_cancelExistingSubscription(){this._asyncValidationSubscription&&(this._asyncValidationSubscription.unsubscribe(),this._hasOwnPendingAsyncValidator=!1)}setErrors(t,e={}){this.errors=t,this._updateControlsErrors(!1!==e.emitEvent)}get(t){let e=t;return null==e||(Array.isArray(e)||(e=e.split(".")),0===e.length)?null:e.reduce((i,r)=>i&&i._find(r),this)}getError(t,e){const i=e?this.get(e):this;return i&&i.errors?i.errors[t]:null}hasError(t,e){return!!this.getError(t,e)}get root(){let t=this;for(;t._parent;)t=t._parent;return t}_updateControlsErrors(t){this.status=this._calculateStatus(),t&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(t)}_initObservables(){this.valueChanges=new Y,this.statusChanges=new Y}_calculateStatus(){return this._allControlsDisabled()?da:this.errors?Wc:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(zs)?zs:this._anyControlsHaveStatus(Wc)?Wc:ua}_anyControlsHaveStatus(t){return this._anyControls(e=>e.status===t)}_anyControlsDirty(){return this._anyControls(t=>t.dirty)}_anyControlsTouched(){return this._anyControls(t=>t.touched)}_updatePristine(t={}){this.pristine=!this._anyControlsDirty(),this._parent&&!t.onlySelf&&this._parent._updatePristine(t)}_updateTouched(t={}){this.touched=this._anyControlsTouched(),this._parent&&!t.onlySelf&&this._parent._updateTouched(t)}_registerOnCollectionChange(t){this._onCollectionChange=t}_setUpdateStrategy(t){Kc(t)&&null!=t.updateOn&&(this._updateOn=t.updateOn)}_parentMarkedDirty(t){return!t&&!(!this._parent||!this._parent.dirty)&&!this._parent._anyControlsDirty()}_find(t){return null}}class Zc extends qc{constructor(t,e,i){super(Kp(e),qp(i,e)),this.controls=t,this._initObservables(),this._setUpdateStrategy(e),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}registerControl(t,e){return this.controls[t]?this.controls[t]:(this.controls[t]=e,e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange),e)}addControl(t,e,i={}){this.registerControl(t,e),this.updateValueAndValidity({emitEvent:i.emitEvent}),this._onCollectionChange()}removeControl(t,e={}){this.controls[t]&&this.controls[t]._registerOnCollectionChange(()=>{}),delete this.controls[t],this.updateValueAndValidity({emitEvent:e.emitEvent}),this._onCollectionChange()}setControl(t,e,i={}){this.controls[t]&&this.controls[t]._registerOnCollectionChange(()=>{}),delete this.controls[t],e&&this.registerControl(t,e),this.updateValueAndValidity({emitEvent:i.emitEvent}),this._onCollectionChange()}contains(t){return this.controls.hasOwnProperty(t)&&this.controls[t].enabled}setValue(t,e={}){Gw(this,0,t),Object.keys(t).forEach(i=>{Yw(this,!0,i),this.controls[i].setValue(t[i],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}patchValue(t,e={}){null!=t&&(Object.keys(t).forEach(i=>{const r=this.controls[i];r&&r.patchValue(t[i],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e))}reset(t={},e={}){this._forEachChild((i,r)=>{i.reset(t[r],{onlySelf:!0,emitEvent:e.emitEvent})}),this._updatePristine(e),this._updateTouched(e),this.updateValueAndValidity(e)}getRawValue(){return this._reduceChildren({},(t,e,i)=>(t[i]=e.getRawValue(),t))}_syncPendingControls(){let t=this._reduceChildren(!1,(e,i)=>!!i._syncPendingControls()||e);return t&&this.updateValueAndValidity({onlySelf:!0}),t}_forEachChild(t){Object.keys(this.controls).forEach(e=>{const i=this.controls[e];i&&t(i,e)})}_setUpControls(){this._forEachChild(t=>{t.setParent(this),t._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(t){for(const[e,i]of Object.entries(this.controls))if(this.contains(e)&&t(i))return!0;return!1}_reduceValue(){return this._reduceChildren({},(e,i,r)=>((i.enabled||this.disabled)&&(e[r]=i.value),e))}_reduceChildren(t,e){let i=t;return this._forEachChild((r,s)=>{i=e(i,r,s)}),i}_allControlsDisabled(){for(const t of Object.keys(this.controls))if(this.controls[t].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}_find(t){return this.controls.hasOwnProperty(t)?this.controls[t]:null}}function Xc(n,t){return[...t.path,n]}function ha(n,t){Zp(n,t),t.valueAccessor.writeValue(n.value),n.disabled&&t.valueAccessor.setDisabledState?.(!0),function IO(n,t){t.valueAccessor.registerOnChange(e=>{n._pendingValue=e,n._pendingChange=!0,n._pendingDirty=!0,"change"===n.updateOn&&Ww(n,t)})}(n,t),function AO(n,t){const e=(i,r)=>{t.valueAccessor.writeValue(i),r&&t.viewToModelUpdate(i)};n.registerOnChange(e),t._registerOnDestroy(()=>{n._unregisterOnChange(e)})}(n,t),function xO(n,t){t.valueAccessor.registerOnTouched(()=>{n._pendingTouched=!0,"blur"===n.updateOn&&n._pendingChange&&Ww(n,t),"submit"!==n.updateOn&&n.markAsTouched()})}(n,t),function TO(n,t){if(t.valueAccessor.setDisabledState){const e=i=>{t.valueAccessor.setDisabledState(i)};n.registerOnDisabledChange(e),t._registerOnDestroy(()=>{n._unregisterOnDisabledChange(e)})}}(n,t)}function Qc(n,t,e=!0){const i=()=>{};t.valueAccessor&&(t.valueAccessor.registerOnChange(i),t.valueAccessor.registerOnTouched(i)),eu(n,t),n&&(t._invokeOnDestroyCallbacks(),n._registerOnCollectionChange(()=>{}))}function Jc(n,t){n.forEach(e=>{e.registerOnValidatorChange&&e.registerOnValidatorChange(t)})}function Zp(n,t){const e=Nw(n);null!==t.validator?n.setValidators(Lw(e,t.validator)):"function"==typeof e&&n.setValidators([e]);const i=Pw(n);null!==t.asyncValidator?n.setAsyncValidators(Lw(i,t.asyncValidator)):"function"==typeof i&&n.setAsyncValidators([i]);const r=()=>n.updateValueAndValidity();Jc(t._rawValidators,r),Jc(t._rawAsyncValidators,r)}function eu(n,t){let e=!1;if(null!==n){if(null!==t.validator){const r=Nw(n);if(Array.isArray(r)&&r.length>0){const s=r.filter(o=>o!==t.validator);s.length!==r.length&&(e=!0,n.setValidators(s))}}if(null!==t.asyncValidator){const r=Pw(n);if(Array.isArray(r)&&r.length>0){const s=r.filter(o=>o!==t.asyncValidator);s.length!==r.length&&(e=!0,n.setAsyncValidators(s))}}}const i=()=>{};return Jc(t._rawValidators,i),Jc(t._rawAsyncValidators,i),e}function Ww(n,t){n._pendingDirty&&n.markAsDirty(),n.setValue(n._pendingValue,{emitModelToViewChange:!1}),t.viewToModelUpdate(n._pendingValue),n._pendingChange=!1}function Kw(n,t){Zp(n,t)}function Xp(n,t){if(!n.hasOwnProperty("model"))return!1;const e=n.model;return!!e.isFirstChange()||!Object.is(t,e.currentValue)}function Zw(n,t){n._syncPendingControls(),t.forEach(e=>{const i=e.control;"submit"===i.updateOn&&i._pendingChange&&(e.viewToModelUpdate(i._pendingValue),i._pendingChange=!1)})}function Qp(n,t){if(!t)return null;let e,i,r;return Array.isArray(t),t.forEach(s=>{s.constructor===Uc?e=s:function FO(n){return Object.getPrototypeOf(n.constructor)===Or}(s)?i=s:r=s}),r||i||e||null}const LO={provide:$t,useExisting:Re(()=>pa)},fa=(()=>Promise.resolve(null))();let pa=(()=>{class n extends $t{constructor(e,i){super(),this.submitted=!1,this._directives=new Set,this.ngSubmit=new Y,this.form=new Zc({},Hp(e),zp(i))}ngAfterViewInit(){this._setUpdateStrategy()}get formDirective(){return this}get control(){return this.form}get path(){return[]}get controls(){return this.form.controls}addControl(e){fa.then(()=>{const i=this._findContainer(e.path);e.control=i.registerControl(e.name,e.control),ha(e.control,e),e.control.updateValueAndValidity({emitEvent:!1}),this._directives.add(e)})}getControl(e){return this.form.get(e.path)}removeControl(e){fa.then(()=>{const i=this._findContainer(e.path);i&&i.removeControl(e.name),this._directives.delete(e)})}addFormGroup(e){fa.then(()=>{const i=this._findContainer(e.path),r=new Zc({});Kw(r,e),i.registerControl(e.name,r),r.updateValueAndValidity({emitEvent:!1})})}removeFormGroup(e){fa.then(()=>{const i=this._findContainer(e.path);i&&i.removeControl(e.name)})}getFormGroup(e){return this.form.get(e.path)}updateModel(e,i){fa.then(()=>{this.form.get(e.path).setValue(i)})}setValue(e){this.control.setValue(e)}onSubmit(e){return this.submitted=!0,Zw(this.form,this._directives),this.ngSubmit.emit(e),!1}onReset(){this.resetForm()}resetForm(e){this.form.reset(e),this.submitted=!1}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.form._updateOn=this.options.updateOn)}_findContainer(e){return e.pop(),e.length?this.form.get(e):this.form}}return n.\u0275fac=function(e){return new(e||n)(_(At,10),_(ir,10))},n.\u0275dir=O({type:n,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(e,i){1&e&&W("submit",function(s){return i.onSubmit(s)})("reset",function(){return i.onReset()})},inputs:{options:["ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[we([LO]),ce]}),n})();function Xw(n,t){const e=n.indexOf(t);e>-1&&n.splice(e,1)}function Qw(n){return"object"==typeof n&&null!==n&&2===Object.keys(n).length&&"value"in n&&"disabled"in n}const js=class extends qc{constructor(t=null,e,i){super(Kp(e),qp(i,e)),this.defaultValue=null,this._onChange=[],this._pendingChange=!1,this._applyFormState(t),this._setUpdateStrategy(e),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),Kc(e)&&(e.nonNullable||e.initialValueIsDefault)&&(this.defaultValue=Qw(t)?t.value:t)}setValue(t,e={}){this.value=this._pendingValue=t,this._onChange.length&&!1!==e.emitModelToViewChange&&this._onChange.forEach(i=>i(this.value,!1!==e.emitViewToModelChange)),this.updateValueAndValidity(e)}patchValue(t,e={}){this.setValue(t,e)}reset(t=this.defaultValue,e={}){this._applyFormState(t),this.markAsPristine(e),this.markAsUntouched(e),this.setValue(this.value,e),this._pendingChange=!1}_updateValue(){}_anyControls(t){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(t){this._onChange.push(t)}_unregisterOnChange(t){Xw(this._onChange,t)}registerOnDisabledChange(t){this._onDisabledChange.push(t)}_unregisterOnDisabledChange(t){Xw(this._onDisabledChange,t)}_forEachChild(t){}_syncPendingControls(){return!("submit"!==this.updateOn||(this._pendingDirty&&this.markAsDirty(),this._pendingTouched&&this.markAsTouched(),!this._pendingChange)||(this.setValue(this._pendingValue,{onlySelf:!0,emitModelToViewChange:!1}),0))}_applyFormState(t){Qw(t)?(this.value=this._pendingValue=t.value,t.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=t}};let Jw=(()=>{class n extends $t{ngOnInit(){this._checkParentType(),this.formDirective.addFormGroup(this)}ngOnDestroy(){this.formDirective&&this.formDirective.removeFormGroup(this)}get control(){return this.formDirective.getFormGroup(this)}get path(){return Xc(null==this.name?this.name:this.name.toString(),this._parent)}get formDirective(){return this._parent?this._parent.formDirective:null}_checkParentType(){}}return n.\u0275fac=function(){let t;return function(i){return(t||(t=nt(n)))(i||n)}}(),n.\u0275dir=O({type:n,features:[ce]}),n})();const VO={provide:ui,useExisting:Re(()=>Jp)},t3=(()=>Promise.resolve(null))();let Jp=(()=>{class n extends ui{constructor(e,i,r,s,o){super(),this._changeDetectorRef=o,this.control=new js,this._registered=!1,this.update=new Y,this._parent=e,this._setValidators(i),this._setAsyncValidators(r),this.valueAccessor=Qp(0,s)}ngOnChanges(e){if(this._checkForErrors(),!this._registered||"name"in e){if(this._registered&&(this._checkName(),this.formDirective)){const i=e.name.previousValue;this.formDirective.removeControl({name:i,path:this._getPath(i)})}this._setUpControl()}"isDisabled"in e&&this._updateDisabled(e),Xp(e,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}get path(){return this._getPath(this.name)}get formDirective(){return this._parent?this._parent.formDirective:null}viewToModelUpdate(e){this.viewModel=e,this.update.emit(e)}_setUpControl(){this._setUpdateStrategy(),this._isStandalone()?this._setUpStandalone():this.formDirective.addControl(this),this._registered=!0}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.control._updateOn=this.options.updateOn)}_isStandalone(){return!this._parent||!(!this.options||!this.options.standalone)}_setUpStandalone(){ha(this.control,this),this.control.updateValueAndValidity({emitEvent:!1})}_checkForErrors(){this._isStandalone()||this._checkParentType(),this._checkName()}_checkParentType(){}_checkName(){this.options&&this.options.name&&(this.name=this.options.name),this._isStandalone()}_updateValue(e){t3.then(()=>{this.control.setValue(e,{emitViewToModelChange:!1}),this._changeDetectorRef?.markForCheck()})}_updateDisabled(e){const i=e.isDisabled.currentValue,r=0!==i&&Ti(i);t3.then(()=>{r&&!this.control.disabled?this.control.disable():!r&&this.control.disabled&&this.control.enable(),this._changeDetectorRef?.markForCheck()})}_getPath(e){return this._parent?Xc(e,this._parent):[e]}}return n.\u0275fac=function(e){return new(e||n)(_($t,9),_(At,10),_(ir,10),_(ci,10),_(Si,8))},n.\u0275dir=O({type:n,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:["disabled","isDisabled"],model:["ngModel","model"],options:["ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],features:[we([VO]),ce,Ct]}),n})(),i3=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=me({type:n}),n.\u0275inj=pe({}),n})();const e0=new R("NgModelWithFormControlWarning"),YO={provide:$t,useExisting:Re(()=>Fr)};let Fr=(()=>{class n extends $t{constructor(e,i){super(),this.validators=e,this.asyncValidators=i,this.submitted=!1,this._onCollectionChange=()=>this._updateDomValue(),this.directives=[],this.form=null,this.ngSubmit=new Y,this._setValidators(e),this._setAsyncValidators(i)}ngOnChanges(e){this._checkFormPresent(),e.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations(),this._oldForm=this.form)}ngOnDestroy(){this.form&&(eu(this.form,this),this.form._onCollectionChange===this._onCollectionChange&&this.form._registerOnCollectionChange(()=>{}))}get formDirective(){return this}get control(){return this.form}get path(){return[]}addControl(e){const i=this.form.get(e.path);return ha(i,e),i.updateValueAndValidity({emitEvent:!1}),this.directives.push(e),i}getControl(e){return this.form.get(e.path)}removeControl(e){Qc(e.control||null,e,!1),function kO(n,t){const e=n.indexOf(t);e>-1&&n.splice(e,1)}(this.directives,e)}addFormGroup(e){this._setUpFormContainer(e)}removeFormGroup(e){this._cleanUpFormContainer(e)}getFormGroup(e){return this.form.get(e.path)}addFormArray(e){this._setUpFormContainer(e)}removeFormArray(e){this._cleanUpFormContainer(e)}getFormArray(e){return this.form.get(e.path)}updateModel(e,i){this.form.get(e.path).setValue(i)}onSubmit(e){return this.submitted=!0,Zw(this.form,this.directives),this.ngSubmit.emit(e),!1}onReset(){this.resetForm()}resetForm(e){this.form.reset(e),this.submitted=!1}_updateDomValue(){this.directives.forEach(e=>{const i=e.control,r=this.form.get(e.path);i!==r&&(Qc(i||null,e),(n=>n instanceof js)(r)&&(ha(r,e),e.control=r))}),this.form._updateTreeValidity({emitEvent:!1})}_setUpFormContainer(e){const i=this.form.get(e.path);Kw(i,e),i.updateValueAndValidity({emitEvent:!1})}_cleanUpFormContainer(e){if(this.form){const i=this.form.get(e.path);i&&function RO(n,t){return eu(n,t)}(i,e)&&i.updateValueAndValidity({emitEvent:!1})}}_updateRegistrations(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm&&this._oldForm._registerOnCollectionChange(()=>{})}_updateValidators(){Zp(this.form,this),this._oldForm&&eu(this._oldForm,this)}_checkFormPresent(){}}return n.\u0275fac=function(e){return new(e||n)(_(At,10),_(ir,10))},n.\u0275dir=O({type:n,selectors:[["","formGroup",""]],hostBindings:function(e,i){1&e&&W("submit",function(s){return i.onSubmit(s)})("reset",function(){return i.onReset()})},inputs:{form:["formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[we([YO]),ce,Ct]}),n})();const GO={provide:$t,useExisting:Re(()=>tu)};let tu=(()=>{class n extends Jw{constructor(e,i,r){super(),this._parent=e,this._setValidators(i),this._setAsyncValidators(r)}_checkParentType(){a3(this._parent)}}return n.\u0275fac=function(e){return new(e||n)(_($t,13),_(At,10),_(ir,10))},n.\u0275dir=O({type:n,selectors:[["","formGroupName",""]],inputs:{name:["formGroupName","name"]},features:[we([GO]),ce]}),n})();const WO={provide:$t,useExisting:Re(()=>t0)};let t0=(()=>{class n extends $t{constructor(e,i,r){super(),this._parent=e,this._setValidators(i),this._setAsyncValidators(r)}ngOnInit(){this._checkParentType(),this.formDirective.addFormArray(this)}ngOnDestroy(){this.formDirective&&this.formDirective.removeFormArray(this)}get control(){return this.formDirective.getFormArray(this)}get formDirective(){return this._parent?this._parent.formDirective:null}get path(){return Xc(null==this.name?this.name:this.name.toString(),this._parent)}_checkParentType(){a3(this._parent)}}return n.\u0275fac=function(e){return new(e||n)(_($t,13),_(At,10),_(ir,10))},n.\u0275dir=O({type:n,selectors:[["","formArrayName",""]],inputs:{name:["formArrayName","name"]},features:[we([WO]),ce]}),n})();function a3(n){return!(n instanceof tu||n instanceof Fr||n instanceof t0)}const KO={provide:ui,useExisting:Re(()=>n0)};let n0=(()=>{class n extends ui{constructor(e,i,r,s,o){super(),this._ngModelWarningConfig=o,this._added=!1,this.update=new Y,this._ngModelWarningSent=!1,this._parent=e,this._setValidators(i),this._setAsyncValidators(r),this.valueAccessor=Qp(0,s)}set isDisabled(e){}ngOnChanges(e){this._added||this._setUpControl(),Xp(e,this.viewModel)&&(this.viewModel=this.model,this.formDirective.updateModel(this,this.model))}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}viewToModelUpdate(e){this.viewModel=e,this.update.emit(e)}get path(){return Xc(null==this.name?this.name:this.name.toString(),this._parent)}get formDirective(){return this._parent?this._parent.formDirective:null}_checkParentType(){}_setUpControl(){this._checkParentType(),this.control=this.formDirective.addControl(this),this._added=!0}}return n._ngModelWarningSentOnce=!1,n.\u0275fac=function(e){return new(e||n)(_($t,13),_(At,10),_(ir,10),_(ci,10),_(e0,8))},n.\u0275dir=O({type:n,selectors:[["","formControlName",""]],inputs:{name:["formControlName","name"],isDisabled:["disabled","isDisabled"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},features:[we([KO]),ce,Ct]}),n})();let kr=(()=>{class n{constructor(){this._validator=$c}ngOnChanges(e){if(this.inputName in e){const i=this.normalizeInput(e[this.inputName].currentValue);this._enabled=this.enabled(i),this._validator=this._enabled?this.createValidator(i):$c,this._onChange&&this._onChange()}}validate(e){return this._validator(e)}registerOnValidatorChange(e){this._onChange=e}enabled(e){return null!=e}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=O({type:n,features:[Ct]}),n})();const iF={provide:At,useExisting:Re(()=>nu),multi:!0};let nu=(()=>{class n extends kr{constructor(){super(...arguments),this.inputName="required",this.normalizeInput=Ti,this.createValidator=e=>Ew}enabled(e){return e}}return n.\u0275fac=function(){let t;return function(i){return(t||(t=nt(n)))(i||n)}}(),n.\u0275dir=O({type:n,selectors:[["","required","","formControlName","",3,"type","checkbox"],["","required","","formControl","",3,"type","checkbox"],["","required","","ngModel","",3,"type","checkbox"]],hostVars:1,hostBindings:function(e,i){2&e&&Ze("required",i._enabled?"":null)},inputs:{required:"required"},features:[we([iF]),ce]}),n})();const aF={provide:At,useExisting:Re(()=>o0),multi:!0};let o0=(()=>{class n extends kr{constructor(){super(...arguments),this.inputName="maxlength",this.normalizeInput=e=>function u3(n){return"number"==typeof n?n:parseInt(n,10)}(e),this.createValidator=e=>Sw(e)}}return n.\u0275fac=function(){let t;return function(i){return(t||(t=nt(n)))(i||n)}}(),n.\u0275dir=O({type:n,selectors:[["","maxlength","","formControlName",""],["","maxlength","","formControl",""],["","maxlength","","ngModel",""]],hostVars:1,hostBindings:function(e,i){2&e&&Ze("maxlength",i._enabled?i.maxlength:null)},inputs:{maxlength:"maxlength"},features:[we([aF]),ce]}),n})(),v3=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=me({type:n}),n.\u0275inj=pe({imports:[i3]}),n})(),cF=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=me({type:n}),n.\u0275inj=pe({imports:[v3]}),n})(),a0=(()=>{class n{static withConfig(e){return{ngModule:n,providers:[{provide:e0,useValue:e.warnOnNgModelWithFormControl}]}}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=me({type:n}),n.\u0275inj=pe({imports:[v3]}),n})();class y3 extends qc{constructor(t,e,i){super(Kp(e),qp(i,e)),this.controls=t,this._initObservables(),this._setUpdateStrategy(e),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}at(t){return this.controls[this._adjustIndex(t)]}push(t,e={}){this.controls.push(t),this._registerControl(t),this.updateValueAndValidity({emitEvent:e.emitEvent}),this._onCollectionChange()}insert(t,e,i={}){this.controls.splice(t,0,e),this._registerControl(e),this.updateValueAndValidity({emitEvent:i.emitEvent})}removeAt(t,e={}){let i=this._adjustIndex(t);i<0&&(i=0),this.controls[i]&&this.controls[i]._registerOnCollectionChange(()=>{}),this.controls.splice(i,1),this.updateValueAndValidity({emitEvent:e.emitEvent})}setControl(t,e,i={}){let r=this._adjustIndex(t);r<0&&(r=0),this.controls[r]&&this.controls[r]._registerOnCollectionChange(()=>{}),this.controls.splice(r,1),e&&(this.controls.splice(r,0,e),this._registerControl(e)),this.updateValueAndValidity({emitEvent:i.emitEvent}),this._onCollectionChange()}get length(){return this.controls.length}setValue(t,e={}){Gw(this,0,t),t.forEach((i,r)=>{Yw(this,!1,r),this.at(r).setValue(i,{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}patchValue(t,e={}){null!=t&&(t.forEach((i,r)=>{this.at(r)&&this.at(r).patchValue(i,{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e))}reset(t=[],e={}){this._forEachChild((i,r)=>{i.reset(t[r],{onlySelf:!0,emitEvent:e.emitEvent})}),this._updatePristine(e),this._updateTouched(e),this.updateValueAndValidity(e)}getRawValue(){return this.controls.map(t=>t.getRawValue())}clear(t={}){this.controls.length<1||(this._forEachChild(e=>e._registerOnCollectionChange(()=>{})),this.controls.splice(0),this.updateValueAndValidity({emitEvent:t.emitEvent}))}_adjustIndex(t){return t<0?t+this.length:t}_syncPendingControls(){let t=this.controls.reduce((e,i)=>!!i._syncPendingControls()||e,!1);return t&&this.updateValueAndValidity({onlySelf:!0}),t}_forEachChild(t){this.controls.forEach((e,i)=>{t(e,i)})}_updateValue(){this.value=this.controls.filter(t=>t.enabled||this.disabled).map(t=>t.value)}_anyControls(t){return this.controls.some(e=>e.enabled&&t(e))}_setUpControls(){this._forEachChild(t=>this._registerControl(t))}_allControlsDisabled(){for(const t of this.controls)if(t.enabled)return!1;return this.controls.length>0||this.disabled}_registerControl(t){t.setParent(this),t._registerOnCollectionChange(this._onCollectionChange)}_find(t){return this.at(t)??null}}function l0(n){return!!n&&(void 0!==n.asyncValidators||void 0!==n.validators||void 0!==n.updateOn)}let b3=(()=>{class n{constructor(){this.useNonNullable=!1}get nonNullable(){const e=new n;return e.useNonNullable=!0,e}group(e,i=null){const r=this._reduceControls(e);let a,s=null,o=null;return null!==i&&(l0(i)?(s=null!=i.validators?i.validators:null,o=null!=i.asyncValidators?i.asyncValidators:null,a=null!=i.updateOn?i.updateOn:void 0):(s=null!=i.validator?i.validator:null,o=null!=i.asyncValidator?i.asyncValidator:null)),new Zc(r,{asyncValidators:o,updateOn:a,validators:s})}control(e,i,r){let s={};return this.useNonNullable?(l0(i)?s=i:(s.validators=i,s.asyncValidators=r),new js(e,{...s,nonNullable:!0})):new js(e,i,r)}array(e,i,r){const s=e.map(o=>this._createControl(o));return new y3(s,i,r)}_reduceControls(e){const i={};return Object.keys(e).forEach(r=>{i[r]=this._createControl(e[r])}),i}_createControl(e){return e instanceof js||e instanceof qc?e:Array.isArray(e)?this.control(e[0],e.length>1?e[1]:null,e.length>2?e[2]:null):this.control(e)}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=S({token:n,factory:n.\u0275fac,providedIn:a0}),n})();function V(...n){return gt(n,oo(n))}function Lr(n){return!!n&&(n instanceof Te||fe(n.lift)&&fe(n.subscribe))}function Us(...n){return function uF(){return qr(1)}()(gt(n,oo(n)))}function ga(n){return new Te(t=>{Gt(n()).subscribe(t)})}function Yt(n){return n<=0?()=>Gn:We((t,e)=>{let i=0;t.subscribe(Pe(e,r=>{++i<=n&&(e.next(r),n<=i&&e.complete())}))})}function w3(n,t,e){let i,r=!1;return n&&"object"==typeof n?({bufferSize:i=1/0,windowTime:t=1/0,refCount:r=!1,scheduler:e}=n):i=n??1/0,nd({connector:()=>new fw(i,t,e),resetOnError:!0,resetOnComplete:!1,resetOnRefCountZero:r})}function Nr(n,t){return fe(t)?pt(n,t,1):pt(n,1)}class ma{}let E3=(()=>{class n extends ma{getTranslation(e){return V({})}}return n.\u0275fac=function(){let t;return function(i){return(t||(t=nt(n)))(i||n)}}(),n.\u0275prov=S({token:n,factory:n.\u0275fac}),n})();class c0{}let C3=(()=>{class n{handle(e){return e.key}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=S({token:n,factory:n.\u0275fac}),n})();function iu(n,t){if(n===t)return!0;if(null===n||null===t)return!1;if(n!=n&&t!=t)return!0;let r,s,o,e=typeof n;if(e==typeof t&&"object"==e){if(!Array.isArray(n)){if(Array.isArray(t))return!1;for(s in o=Object.create(null),n){if(!iu(n[s],t[s]))return!1;o[s]=!0}for(s in t)if(!(s in o)&&typeof t[s]<"u")return!1;return!0}if(!Array.isArray(t))return!1;if((r=n.length)==t.length){for(s=0;s<r;s++)if(!iu(n[s],t[s]))return!1;return!0}}return!1}function rr(n){return typeof n<"u"&&null!==n}function u0(n){return n&&"object"==typeof n&&!Array.isArray(n)}function D3(n,t){let e=Object.assign({},n);return u0(n)&&u0(t)&&Object.keys(t).forEach(i=>{u0(t[i])?i in n?e[i]=D3(n[i],t[i]):Object.assign(e,{[i]:t[i]}):Object.assign(e,{[i]:t[i]})}),e}class ru{}let M3=(()=>{class n extends ru{constructor(){super(...arguments),this.templateMatcher=/{{\s?([^{}\s]*)\s?}}/g}interpolate(e,i){let r;return r="string"==typeof e?this.interpolateString(e,i):"function"==typeof e?this.interpolateFunction(e,i):e,r}getValue(e,i){let r="string"==typeof i?i.split("."):[i];i="";do{i+=r.shift(),!rr(e)||!rr(e[i])||"object"!=typeof e[i]&&r.length?r.length?i+=".":e=void 0:(e=e[i],i="")}while(r.length);return e}interpolateFunction(e,i){return e(i)}interpolateString(e,i){return i?e.replace(this.templateMatcher,(r,s)=>{let o=this.getValue(i,s);return rr(o)?o:r}):e}}return n.\u0275fac=function(){let t;return function(i){return(t||(t=nt(n)))(i||n)}}(),n.\u0275prov=S({token:n,factory:n.\u0275fac}),n})();class su{}let S3=(()=>{class n extends su{compile(e,i){return e}compileTranslations(e,i){return e}}return n.\u0275fac=function(){let t;return function(i){return(t||(t=nt(n)))(i||n)}}(),n.\u0275prov=S({token:n,factory:n.\u0275fac}),n})();class T3{constructor(){this.currentLang=this.defaultLang,this.translations={},this.langs=[],this.onTranslationChange=new Y,this.onLangChange=new Y,this.onDefaultLangChange=new Y}}const d0=new R("USE_STORE"),h0=new R("USE_DEFAULT_LANG"),f0=new R("DEFAULT_LANGUAGE"),p0=new R("USE_EXTEND");let Ai=(()=>{class n{constructor(e,i,r,s,o,a=!0,l=!1,c=!1,u){this.store=e,this.currentLoader=i,this.compiler=r,this.parser=s,this.missingTranslationHandler=o,this.useDefaultLang=a,this.isolate=l,this.extend=c,this.pending=!1,this._onTranslationChange=new Y,this._onLangChange=new Y,this._onDefaultLangChange=new Y,this._langs=[],this._translations={},this._translationRequests={},u&&this.setDefaultLang(u)}get onTranslationChange(){return this.isolate?this._onTranslationChange:this.store.onTranslationChange}get onLangChange(){return this.isolate?this._onLangChange:this.store.onLangChange}get onDefaultLangChange(){return this.isolate?this._onDefaultLangChange:this.store.onDefaultLangChange}get defaultLang(){return this.isolate?this._defaultLang:this.store.defaultLang}set defaultLang(e){this.isolate?this._defaultLang=e:this.store.defaultLang=e}get currentLang(){return this.isolate?this._currentLang:this.store.currentLang}set currentLang(e){this.isolate?this._currentLang=e:this.store.currentLang=e}get langs(){return this.isolate?this._langs:this.store.langs}set langs(e){this.isolate?this._langs=e:this.store.langs=e}get translations(){return this.isolate?this._translations:this.store.translations}set translations(e){this.isolate?this._translations=e:this.store.translations=e}setDefaultLang(e){if(e===this.defaultLang)return;let i=this.retrieveTranslations(e);typeof i<"u"?(null==this.defaultLang&&(this.defaultLang=e),i.pipe(Yt(1)).subscribe(r=>{this.changeDefaultLang(e)})):this.changeDefaultLang(e)}getDefaultLang(){return this.defaultLang}use(e){if(e===this.currentLang)return V(this.translations[e]);let i=this.retrieveTranslations(e);return typeof i<"u"?(this.currentLang||(this.currentLang=e),i.pipe(Yt(1)).subscribe(r=>{this.changeLang(e)}),i):(this.changeLang(e),V(this.translations[e]))}retrieveTranslations(e){let i;return(typeof this.translations[e]>"u"||this.extend)&&(this._translationRequests[e]=this._translationRequests[e]||this.getTranslation(e),i=this._translationRequests[e]),i}getTranslation(e){this.pending=!0;const i=this.currentLoader.getTranslation(e).pipe(w3(1),Yt(1));return this.loadingTranslations=i.pipe(K(r=>this.compiler.compileTranslations(r,e)),w3(1),Yt(1)),this.loadingTranslations.subscribe({next:r=>{this.translations[e]=this.extend&&this.translations[e]?{...r,...this.translations[e]}:r,this.updateLangs(),this.pending=!1},error:r=>{this.pending=!1}}),i}setTranslation(e,i,r=!1){i=this.compiler.compileTranslations(i,e),this.translations[e]=(r||this.extend)&&this.translations[e]?D3(this.translations[e],i):i,this.updateLangs(),this.onTranslationChange.emit({lang:e,translations:this.translations[e]})}getLangs(){return this.langs}addLangs(e){e.forEach(i=>{-1===this.langs.indexOf(i)&&this.langs.push(i)})}updateLangs(){this.addLangs(Object.keys(this.translations))}getParsedResult(e,i,r){let s;if(i instanceof Array){let o={},a=!1;for(let l of i)o[l]=this.getParsedResult(e,l,r),Lr(o[l])&&(a=!0);return a?jc(i.map(c=>Lr(o[c])?o[c]:V(o[c]))).pipe(K(c=>{let u={};return c.forEach((d,h)=>{u[i[h]]=d}),u})):o}if(e&&(s=this.parser.interpolate(this.parser.getValue(e,i),r)),typeof s>"u"&&null!=this.defaultLang&&this.defaultLang!==this.currentLang&&this.useDefaultLang&&(s=this.parser.interpolate(this.parser.getValue(this.translations[this.defaultLang],i),r)),typeof s>"u"){let o={key:i,translateService:this};typeof r<"u"&&(o.interpolateParams=r),s=this.missingTranslationHandler.handle(o)}return typeof s<"u"?s:i}get(e,i){if(!rr(e)||!e.length)throw new Error('Parameter "key" required');if(this.pending)return this.loadingTranslations.pipe(Nr(r=>Lr(r=this.getParsedResult(r,e,i))?r:V(r)));{let r=this.getParsedResult(this.translations[this.currentLang],e,i);return Lr(r)?r:V(r)}}getStreamOnTranslationChange(e,i){if(!rr(e)||!e.length)throw new Error('Parameter "key" required');return Us(ga(()=>this.get(e,i)),this.onTranslationChange.pipe(Tn(r=>{const s=this.getParsedResult(r.translations,e,i);return"function"==typeof s.subscribe?s:V(s)})))}stream(e,i){if(!rr(e)||!e.length)throw new Error('Parameter "key" required');return Us(ga(()=>this.get(e,i)),this.onLangChange.pipe(Tn(r=>{const s=this.getParsedResult(r.translations,e,i);return Lr(s)?s:V(s)})))}instant(e,i){if(!rr(e)||!e.length)throw new Error('Parameter "key" required');let r=this.getParsedResult(this.translations[this.currentLang],e,i);if(Lr(r)){if(e instanceof Array){let s={};return e.forEach((o,a)=>{s[e[a]]=e[a]}),s}return e}return r}set(e,i,r=this.currentLang){this.translations[r][e]=this.compiler.compile(i,r),this.updateLangs(),this.onTranslationChange.emit({lang:r,translations:this.translations[r]})}changeLang(e){this.currentLang=e,this.onLangChange.emit({lang:e,translations:this.translations[e]}),null==this.defaultLang&&this.changeDefaultLang(e)}changeDefaultLang(e){this.defaultLang=e,this.onDefaultLangChange.emit({lang:e,translations:this.translations[e]})}reloadLang(e){return this.resetLang(e),this.getTranslation(e)}resetLang(e){this._translationRequests[e]=void 0,this.translations[e]=void 0}getBrowserLang(){if(typeof window>"u"||typeof window.navigator>"u")return;let e=window.navigator.languages?window.navigator.languages[0]:null;return e=e||window.navigator.language||window.navigator.browserLanguage||window.navigator.userLanguage,typeof e>"u"?void 0:(-1!==e.indexOf("-")&&(e=e.split("-")[0]),-1!==e.indexOf("_")&&(e=e.split("_")[0]),e)}getBrowserCultureLang(){if(typeof window>"u"||typeof window.navigator>"u")return;let e=window.navigator.languages?window.navigator.languages[0]:null;return e=e||window.navigator.language||window.navigator.browserLanguage||window.navigator.userLanguage,e}}return n.\u0275fac=function(e){return new(e||n)(v(T3),v(ma),v(su),v(ru),v(c0),v(h0),v(d0),v(p0),v(f0))},n.\u0275prov=S({token:n,factory:n.\u0275fac}),n})(),I3=(()=>{class n{constructor(e,i){this.translate=e,this._ref=i,this.value="",this.lastKey=null,this.lastParams=[]}updateValue(e,i,r){let s=o=>{this.value=void 0!==o?o:e,this.lastKey=e,this._ref.markForCheck()};if(r){let o=this.translate.getParsedResult(r,e,i);Lr(o.subscribe)?o.subscribe(s):s(o)}this.translate.get(e,i).subscribe(s)}transform(e,...i){if(!e||!e.length)return e;if(iu(e,this.lastKey)&&iu(i,this.lastParams))return this.value;let r;if(rr(i[0])&&i.length)if("string"==typeof i[0]&&i[0].length){let s=i[0].replace(/(\')?([a-zA-Z0-9_]+)(\')?(\s)?:/g,'"$2":').replace(/:(\s)?(\')(.*?)(\')/g,':"$3"');try{r=JSON.parse(s)}catch{throw new SyntaxError(`Wrong parameter in TranslatePipe. Expected a valid Object, received: ${i[0]}`)}}else"object"==typeof i[0]&&!Array.isArray(i[0])&&(r=i[0]);return this.lastKey=e,this.lastParams=i,this.updateValue(e,r),this._dispose(),this.onTranslationChange||(this.onTranslationChange=this.translate.onTranslationChange.subscribe(s=>{this.lastKey&&s.lang===this.translate.currentLang&&(this.lastKey=null,this.updateValue(e,r,s.translations))})),this.onLangChange||(this.onLangChange=this.translate.onLangChange.subscribe(s=>{this.lastKey&&(this.lastKey=null,this.updateValue(e,r,s.translations))})),this.onDefaultLangChange||(this.onDefaultLangChange=this.translate.onDefaultLangChange.subscribe(()=>{this.lastKey&&(this.lastKey=null,this.updateValue(e,r))})),this.value}_dispose(){typeof this.onTranslationChange<"u"&&(this.onTranslationChange.unsubscribe(),this.onTranslationChange=void 0),typeof this.onLangChange<"u"&&(this.onLangChange.unsubscribe(),this.onLangChange=void 0),typeof this.onDefaultLangChange<"u"&&(this.onDefaultLangChange.unsubscribe(),this.onDefaultLangChange=void 0)}ngOnDestroy(){this._dispose()}}return n.\u0275fac=function(e){return new(e||n)(_(Ai,16),_(Si,16))},n.\u0275pipe=Oe({name:"translate",type:n,pure:!1}),n.\u0275prov=S({token:n,factory:n.\u0275fac}),n})(),x3=(()=>{class n{static forRoot(e={}){return{ngModule:n,providers:[e.loader||{provide:ma,useClass:E3},e.compiler||{provide:su,useClass:S3},e.parser||{provide:ru,useClass:M3},e.missingTranslationHandler||{provide:c0,useClass:C3},T3,{provide:d0,useValue:e.isolate},{provide:h0,useValue:e.useDefaultLang},{provide:p0,useValue:e.extend},{provide:f0,useValue:e.defaultLanguage},Ai]}}static forChild(e={}){return{ngModule:n,providers:[e.loader||{provide:ma,useClass:E3},e.compiler||{provide:su,useClass:S3},e.parser||{provide:ru,useClass:M3},e.missingTranslationHandler||{provide:c0,useClass:C3},{provide:d0,useValue:e.isolate},{provide:h0,useValue:e.useDefaultLang},{provide:p0,useValue:e.extend},{provide:f0,useValue:e.defaultLanguage},Ai]}}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=me({type:n}),n.\u0275inj=pe({}),n})();function fn(n,t){return We((e,i)=>{let r=0;e.subscribe(Pe(i,s=>n.call(t,s,r++)&&i.next(s)))})}class A3{}class R3{}class di{constructor(t){this.normalizedNames=new Map,this.lazyUpdate=null,t?this.lazyInit="string"==typeof t?()=>{this.headers=new Map,t.split("\n").forEach(e=>{const i=e.indexOf(":");if(i>0){const r=e.slice(0,i),s=r.toLowerCase(),o=e.slice(i+1).trim();this.maybeSetNormalizedName(r,s),this.headers.has(s)?this.headers.get(s).push(o):this.headers.set(s,[o])}})}:()=>{this.headers=new Map,Object.keys(t).forEach(e=>{let i=t[e];const r=e.toLowerCase();"string"==typeof i&&(i=[i]),i.length>0&&(this.headers.set(r,i),this.maybeSetNormalizedName(e,r))})}:this.headers=new Map}has(t){return this.init(),this.headers.has(t.toLowerCase())}get(t){this.init();const e=this.headers.get(t.toLowerCase());return e&&e.length>0?e[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(t){return this.init(),this.headers.get(t.toLowerCase())||null}append(t,e){return this.clone({name:t,value:e,op:"a"})}set(t,e){return this.clone({name:t,value:e,op:"s"})}delete(t,e){return this.clone({name:t,value:e,op:"d"})}maybeSetNormalizedName(t,e){this.normalizedNames.has(e)||this.normalizedNames.set(e,t)}init(){this.lazyInit&&(this.lazyInit instanceof di?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(t=>this.applyUpdate(t)),this.lazyUpdate=null))}copyFrom(t){t.init(),Array.from(t.headers.keys()).forEach(e=>{this.headers.set(e,t.headers.get(e)),this.normalizedNames.set(e,t.normalizedNames.get(e))})}clone(t){const e=new di;return e.lazyInit=this.lazyInit&&this.lazyInit instanceof di?this.lazyInit:this,e.lazyUpdate=(this.lazyUpdate||[]).concat([t]),e}applyUpdate(t){const e=t.name.toLowerCase();switch(t.op){case"a":case"s":let i=t.value;if("string"==typeof i&&(i=[i]),0===i.length)return;this.maybeSetNormalizedName(t.name,e);const r=("a"===t.op?this.headers.get(e):void 0)||[];r.push(...i),this.headers.set(e,r);break;case"d":const s=t.value;if(s){let o=this.headers.get(e);if(!o)return;o=o.filter(a=>-1===s.indexOf(a)),0===o.length?(this.headers.delete(e),this.normalizedNames.delete(e)):this.headers.set(e,o)}else this.headers.delete(e),this.normalizedNames.delete(e)}}forEach(t){this.init(),Array.from(this.normalizedNames.keys()).forEach(e=>t(this.normalizedNames.get(e),this.headers.get(e)))}}class dF{encodeKey(t){return O3(t)}encodeValue(t){return O3(t)}decodeKey(t){return decodeURIComponent(t)}decodeValue(t){return decodeURIComponent(t)}}const fF=/%(\d[a-f0-9])/gi,pF={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function O3(n){return encodeURIComponent(n).replace(fF,(t,e)=>pF[e]??t)}function ou(n){return`${n}`}class sr{constructor(t={}){if(this.updates=null,this.cloneFrom=null,this.encoder=t.encoder||new dF,t.fromString){if(t.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=function hF(n,t){const e=new Map;return n.length>0&&n.replace(/^\?/,"").split("&").forEach(r=>{const s=r.indexOf("="),[o,a]=-1==s?[t.decodeKey(r),""]:[t.decodeKey(r.slice(0,s)),t.decodeValue(r.slice(s+1))],l=e.get(o)||[];l.push(a),e.set(o,l)}),e}(t.fromString,this.encoder)}else t.fromObject?(this.map=new Map,Object.keys(t.fromObject).forEach(e=>{const i=t.fromObject[e],r=Array.isArray(i)?i.map(ou):[ou(i)];this.map.set(e,r)})):this.map=null}has(t){return this.init(),this.map.has(t)}get(t){this.init();const e=this.map.get(t);return e?e[0]:null}getAll(t){return this.init(),this.map.get(t)||null}keys(){return this.init(),Array.from(this.map.keys())}append(t,e){return this.clone({param:t,value:e,op:"a"})}appendAll(t){const e=[];return Object.keys(t).forEach(i=>{const r=t[i];Array.isArray(r)?r.forEach(s=>{e.push({param:i,value:s,op:"a"})}):e.push({param:i,value:r,op:"a"})}),this.clone(e)}set(t,e){return this.clone({param:t,value:e,op:"s"})}delete(t,e){return this.clone({param:t,value:e,op:"d"})}toString(){return this.init(),this.keys().map(t=>{const e=this.encoder.encodeKey(t);return this.map.get(t).map(i=>e+"="+this.encoder.encodeValue(i)).join("&")}).filter(t=>""!==t).join("&")}clone(t){const e=new sr({encoder:this.encoder});return e.cloneFrom=this.cloneFrom||this,e.updates=(this.updates||[]).concat(t),e}init(){null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(t=>this.map.set(t,this.cloneFrom.map.get(t))),this.updates.forEach(t=>{switch(t.op){case"a":case"s":const e=("a"===t.op?this.map.get(t.param):void 0)||[];e.push(ou(t.value)),this.map.set(t.param,e);break;case"d":if(void 0===t.value){this.map.delete(t.param);break}{let i=this.map.get(t.param)||[];const r=i.indexOf(ou(t.value));-1!==r&&i.splice(r,1),i.length>0?this.map.set(t.param,i):this.map.delete(t.param)}}}),this.cloneFrom=this.updates=null)}}class gF{constructor(){this.map=new Map}set(t,e){return this.map.set(t,e),this}get(t){return this.map.has(t)||this.map.set(t,t.defaultValue()),this.map.get(t)}delete(t){return this.map.delete(t),this}has(t){return this.map.has(t)}keys(){return this.map.keys()}}function F3(n){return typeof ArrayBuffer<"u"&&n instanceof ArrayBuffer}function k3(n){return typeof Blob<"u"&&n instanceof Blob}function L3(n){return typeof FormData<"u"&&n instanceof FormData}class _a{constructor(t,e,i,r){let s;if(this.url=e,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=t.toUpperCase(),function mF(n){switch(n){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||r?(this.body=void 0!==i?i:null,s=r):s=i,s&&(this.reportProgress=!!s.reportProgress,this.withCredentials=!!s.withCredentials,s.responseType&&(this.responseType=s.responseType),s.headers&&(this.headers=s.headers),s.context&&(this.context=s.context),s.params&&(this.params=s.params)),this.headers||(this.headers=new di),this.context||(this.context=new gF),this.params){const o=this.params.toString();if(0===o.length)this.urlWithParams=e;else{const a=e.indexOf("?");this.urlWithParams=e+(-1===a?"?":a<e.length-1?"&":"")+o}}else this.params=new sr,this.urlWithParams=e}serializeBody(){return null===this.body?null:F3(this.body)||k3(this.body)||L3(this.body)||function _F(n){return typeof URLSearchParams<"u"&&n instanceof URLSearchParams}(this.body)||"string"==typeof this.body?this.body:this.body instanceof sr?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||L3(this.body)?null:k3(this.body)?this.body.type||null:F3(this.body)?null:"string"==typeof this.body?"text/plain":this.body instanceof sr?"application/x-www-form-urlencoded;charset=UTF-8":"object"==typeof this.body||"number"==typeof this.body||"boolean"==typeof this.body?"application/json":null}clone(t={}){const e=t.method||this.method,i=t.url||this.url,r=t.responseType||this.responseType,s=void 0!==t.body?t.body:this.body,o=void 0!==t.withCredentials?t.withCredentials:this.withCredentials,a=void 0!==t.reportProgress?t.reportProgress:this.reportProgress;let l=t.headers||this.headers,c=t.params||this.params;const u=t.context??this.context;return void 0!==t.setHeaders&&(l=Object.keys(t.setHeaders).reduce((d,h)=>d.set(h,t.setHeaders[h]),l)),t.setParams&&(c=Object.keys(t.setParams).reduce((d,h)=>d.set(h,t.setParams[h]),c)),new _a(e,i,s,{params:c,headers:l,context:u,reportProgress:a,responseType:r,withCredentials:o})}}var at=(()=>((at=at||{})[at.Sent=0]="Sent",at[at.UploadProgress=1]="UploadProgress",at[at.ResponseHeader=2]="ResponseHeader",at[at.DownloadProgress=3]="DownloadProgress",at[at.Response=4]="Response",at[at.User=5]="User",at))();class g0{constructor(t,e=200,i="OK"){this.headers=t.headers||new di,this.status=void 0!==t.status?t.status:e,this.statusText=t.statusText||i,this.url=t.url||null,this.ok=this.status>=200&&this.status<300}}class m0 extends g0{constructor(t={}){super(t),this.type=at.ResponseHeader}clone(t={}){return new m0({headers:t.headers||this.headers,status:void 0!==t.status?t.status:this.status,statusText:t.statusText||this.statusText,url:t.url||this.url||void 0})}}class va extends g0{constructor(t={}){super(t),this.type=at.Response,this.body=void 0!==t.body?t.body:null}clone(t={}){return new va({body:void 0!==t.body?t.body:this.body,headers:t.headers||this.headers,status:void 0!==t.status?t.status:this.status,statusText:t.statusText||this.statusText,url:t.url||this.url||void 0})}}class N3 extends g0{constructor(t){super(t,0,"Unknown Error"),this.name="HttpErrorResponse",this.ok=!1,this.message=this.status>=200&&this.status<300?`Http failure during parsing for ${t.url||"(unknown url)"}`:`Http failure response for ${t.url||"(unknown url)"}: ${t.status} ${t.statusText}`,this.error=t.error||null}}function _0(n,t){return{body:t,headers:n.headers,context:n.context,observe:n.observe,params:n.params,reportProgress:n.reportProgress,responseType:n.responseType,withCredentials:n.withCredentials}}let $s=(()=>{class n{constructor(e){this.handler=e}request(e,i,r={}){let s;if(e instanceof _a)s=e;else{let l,c;l=r.headers instanceof di?r.headers:new di(r.headers),r.params&&(c=r.params instanceof sr?r.params:new sr({fromObject:r.params})),s=new _a(e,i,void 0!==r.body?r.body:null,{headers:l,context:r.context,params:c,reportProgress:r.reportProgress,responseType:r.responseType||"json",withCredentials:r.withCredentials})}const o=V(s).pipe(Nr(l=>this.handler.handle(l)));if(e instanceof _a||"events"===r.observe)return o;const a=o.pipe(fn(l=>l instanceof va));switch(r.observe||"body"){case"body":switch(s.responseType){case"arraybuffer":return a.pipe(K(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(K(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(K(l=>{if(null!==l.body&&"string"!=typeof l.body)throw new Error("Response is not a string.");return l.body}));default:return a.pipe(K(l=>l.body))}case"response":return a;default:throw new Error(`Unreachable: unhandled observe type ${r.observe}}`)}}delete(e,i={}){return this.request("DELETE",e,i)}get(e,i={}){return this.request("GET",e,i)}head(e,i={}){return this.request("HEAD",e,i)}jsonp(e,i){return this.request("JSONP",e,{params:(new sr).append(i,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(e,i={}){return this.request("OPTIONS",e,i)}patch(e,i,r={}){return this.request("PATCH",e,_0(r,i))}post(e,i,r={}){return this.request("POST",e,_0(r,i))}put(e,i,r={}){return this.request("PUT",e,_0(r,i))}}return n.\u0275fac=function(e){return new(e||n)(v(A3))},n.\u0275prov=S({token:n,factory:n.\u0275fac}),n})();class P3{constructor(t,e){this.next=t,this.interceptor=e}handle(t){return this.interceptor.intercept(t,this.next)}}const ya=new R("HTTP_INTERCEPTORS");let vF=(()=>{class n{intercept(e,i){return i.handle(e)}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=S({token:n,factory:n.\u0275fac}),n})();const yF=/^\)\]\}',?\n/;let V3=(()=>{class n{constructor(e){this.xhrFactory=e}handle(e){if("JSONP"===e.method)throw new Error("Attempted to construct Jsonp request without HttpClientJsonpModule installed.");return new Te(i=>{const r=this.xhrFactory.build();if(r.open(e.method,e.urlWithParams),e.withCredentials&&(r.withCredentials=!0),e.headers.forEach((p,g)=>r.setRequestHeader(p,g.join(","))),e.headers.has("Accept")||r.setRequestHeader("Accept","application/json, text/plain, */*"),!e.headers.has("Content-Type")){const p=e.detectContentTypeHeader();null!==p&&r.setRequestHeader("Content-Type",p)}if(e.responseType){const p=e.responseType.toLowerCase();r.responseType="json"!==p?p:"text"}const s=e.serializeBody();let o=null;const a=()=>{if(null!==o)return o;const p=r.statusText||"OK",g=new di(r.getAllResponseHeaders()),m=function bF(n){return"responseURL"in n&&n.responseURL?n.responseURL:/^X-Request-URL:/m.test(n.getAllResponseHeaders())?n.getResponseHeader("X-Request-URL"):null}(r)||e.url;return o=new m0({headers:g,status:r.status,statusText:p,url:m}),o},l=()=>{let{headers:p,status:g,statusText:m,url:y}=a(),b=null;204!==g&&(b=typeof r.response>"u"?r.responseText:r.response),0===g&&(g=b?200:0);let I=g>=200&&g<300;if("json"===e.responseType&&"string"==typeof b){const E=b;b=b.replace(yF,"");try{b=""!==b?JSON.parse(b):null}catch(A){b=E,I&&(I=!1,b={error:A,text:b})}}I?(i.next(new va({body:b,headers:p,status:g,statusText:m,url:y||void 0})),i.complete()):i.error(new N3({error:b,headers:p,status:g,statusText:m,url:y||void 0}))},c=p=>{const{url:g}=a(),m=new N3({error:p,status:r.status||0,statusText:r.statusText||"Unknown Error",url:g||void 0});i.error(m)};let u=!1;const d=p=>{u||(i.next(a()),u=!0);let g={type:at.DownloadProgress,loaded:p.loaded};p.lengthComputable&&(g.total=p.total),"text"===e.responseType&&!!r.responseText&&(g.partialText=r.responseText),i.next(g)},h=p=>{let g={type:at.UploadProgress,loaded:p.loaded};p.lengthComputable&&(g.total=p.total),i.next(g)};return r.addEventListener("load",l),r.addEventListener("error",c),r.addEventListener("timeout",c),r.addEventListener("abort",c),e.reportProgress&&(r.addEventListener("progress",d),null!==s&&r.upload&&r.upload.addEventListener("progress",h)),r.send(s),i.next({type:at.Sent}),()=>{r.removeEventListener("error",c),r.removeEventListener("abort",c),r.removeEventListener("load",l),r.removeEventListener("timeout",c),e.reportProgress&&(r.removeEventListener("progress",d),null!==s&&r.upload&&r.upload.removeEventListener("progress",h)),r.readyState!==r.DONE&&r.abort()}})}}return n.\u0275fac=function(e){return new(e||n)(v(sb))},n.\u0275prov=S({token:n,factory:n.\u0275fac}),n})();const v0=new R("XSRF_COOKIE_NAME"),y0=new R("XSRF_HEADER_NAME");class B3{}let wF=(()=>{class n{constructor(e,i,r){this.doc=e,this.platform=i,this.cookieName=r,this.lastCookieString="",this.lastToken=null,this.parseCount=0}getToken(){if("server"===this.platform)return null;const e=this.doc.cookie||"";return e!==this.lastCookieString&&(this.parseCount++,this.lastToken=K2(e,this.cookieName),this.lastCookieString=e),this.lastToken}}return n.\u0275fac=function(e){return new(e||n)(v(ne),v(Xo),v(v0))},n.\u0275prov=S({token:n,factory:n.\u0275fac}),n})(),b0=(()=>{class n{constructor(e,i){this.tokenService=e,this.headerName=i}intercept(e,i){const r=e.url.toLowerCase();if("GET"===e.method||"HEAD"===e.method||r.startsWith("http://")||r.startsWith("https://"))return i.handle(e);const s=this.tokenService.getToken();return null!==s&&!e.headers.has(this.headerName)&&(e=e.clone({headers:e.headers.set(this.headerName,s)})),i.handle(e)}}return n.\u0275fac=function(e){return new(e||n)(v(B3),v(y0))},n.\u0275prov=S({token:n,factory:n.\u0275fac}),n})(),EF=(()=>{class n{constructor(e,i){this.backend=e,this.injector=i,this.chain=null}handle(e){if(null===this.chain){const i=this.injector.get(ya,[]);this.chain=i.reduceRight((r,s)=>new P3(r,s),this.backend)}return this.chain.handle(e)}}return n.\u0275fac=function(e){return new(e||n)(v(R3),v(it))},n.\u0275prov=S({token:n,factory:n.\u0275fac}),n})(),CF=(()=>{class n{static disable(){return{ngModule:n,providers:[{provide:b0,useClass:vF}]}}static withOptions(e={}){return{ngModule:n,providers:[e.cookieName?{provide:v0,useValue:e.cookieName}:[],e.headerName?{provide:y0,useValue:e.headerName}:[]]}}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=me({type:n}),n.\u0275inj=pe({providers:[b0,{provide:ya,useExisting:b0,multi:!0},{provide:B3,useClass:wF},{provide:v0,useValue:"XSRF-TOKEN"},{provide:y0,useValue:"X-XSRF-TOKEN"}]}),n})(),H3=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=me({type:n}),n.\u0275inj=pe({providers:[$s,{provide:A3,useClass:EF},V3,{provide:R3,useExisting:V3}],imports:[CF.withOptions({cookieName:"XSRF-TOKEN",headerName:"X-XSRF-TOKEN"})]}),n})();class DF{constructor(t,e="/assets/i18n/",i=".json"){this.http=t,this.prefix=e,this.suffix=i}getTranslation(t){return this.http.get(`${this.prefix}${t}${this.suffix}`)}}function Dt(n){return null!=n&&"false"!=`${n}`}function bt(n,t=0){return z3(n)?Number(n):t}function z3(n){return!isNaN(parseFloat(n))&&!isNaN(Number(n))}function au(n){return Array.isArray(n)?n:[n]}function lt(n){return null==n?"":"string"==typeof n?n:`${n}px`}function Ri(n){return n instanceof se?n.nativeElement:n}const MF=["addListener","removeListener"],SF=["addEventListener","removeEventListener"],TF=["on","off"];function lu(n,t,e,i){if(fe(e)&&(i=e,e=void 0),i)return lu(n,t,e).pipe(Bp(i));const[r,s]=function AF(n){return fe(n.addEventListener)&&fe(n.removeEventListener)}(n)?SF.map(o=>a=>n[o](t,a,e)):function IF(n){return fe(n.addListener)&&fe(n.removeListener)}(n)?MF.map(j3(n,t)):function xF(n){return fe(n.on)&&fe(n.off)}(n)?TF.map(j3(n,t)):[];if(!r&&ed(n))return pt(o=>lu(o,t,e))(Gt(n));if(!r)throw new TypeError("Invalid event target");return new Te(o=>{const a=(...l)=>o.next(1<l.length?l:l[0]);return r(a),()=>s(a)})}function j3(n,t){return e=>i=>n[e](t,i)}class RF extends Ge{constructor(t,e){super()}schedule(t,e=0){return this}}const cu={setInterval(n,t,...e){const{delegate:i}=cu;return i?.setInterval?i.setInterval(n,t,...e):setInterval(n,t,...e)},clearInterval(n){const{delegate:t}=cu;return(t?.clearInterval||clearInterval)(n)},delegate:void 0};class w0 extends RF{constructor(t,e){super(t,e),this.scheduler=t,this.work=e,this.pending=!1}schedule(t,e=0){var i;if(this.closed)return this;this.state=t;const r=this.id,s=this.scheduler;return null!=r&&(this.id=this.recycleAsyncId(s,r,e)),this.pending=!0,this.delay=e,this.id=null!==(i=this.id)&&void 0!==i?i:this.requestAsyncId(s,this.id,e),this}requestAsyncId(t,e,i=0){return cu.setInterval(t.flush.bind(t,this),i)}recycleAsyncId(t,e,i=0){if(null!=i&&this.delay===i&&!1===this.pending)return e;null!=e&&cu.clearInterval(e)}execute(t,e){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;const i=this._execute(t,e);if(i)return i;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(t,e){let r,i=!1;try{this.work(t)}catch(s){i=!0,r=s||new Error("Scheduled action threw falsy error")}if(i)return this.unsubscribe(),r}unsubscribe(){if(!this.closed){const{id:t,scheduler:e}=this,{actions:i}=e;this.work=this.state=this.scheduler=null,this.pending=!1,Kr(i,this),null!=t&&(this.id=this.recycleAsyncId(e,t,null)),this.delay=null,super.unsubscribe()}}}const ba={schedule(n){let t=requestAnimationFrame,e=cancelAnimationFrame;const{delegate:i}=ba;i&&(t=i.requestAnimationFrame,e=i.cancelAnimationFrame);const r=t(s=>{e=void 0,n(s)});return new Ge(()=>e?.(r))},requestAnimationFrame(...n){const{delegate:t}=ba;return(t?.requestAnimationFrame||requestAnimationFrame)(...n)},cancelAnimationFrame(...n){const{delegate:t}=ba;return(t?.cancelAnimationFrame||cancelAnimationFrame)(...n)},delegate:void 0};class wa{constructor(t,e=wa.now){this.schedulerActionCtor=t,this.now=e}schedule(t,e=0,i){return new this.schedulerActionCtor(this,t).schedule(i,e)}}wa.now=Pp.now;class E0 extends wa{constructor(t,e=wa.now){super(t,e),this.actions=[],this._active=!1}flush(t){const{actions:e}=this;if(this._active)return void e.push(t);let i;this._active=!0;do{if(i=t.execute(t.state,t.delay))break}while(t=e.shift());if(this._active=!1,i){for(;t=e.shift();)t.unsubscribe();throw i}}}new class FF extends E0{flush(t){this._active=!0;const e=this._scheduled;this._scheduled=void 0;const{actions:i}=this;let r;t=t||i.shift();do{if(r=t.execute(t.state,t.delay))break}while((t=i[0])&&t.id===e&&i.shift());if(this._active=!1,r){for(;(t=i[0])&&t.id===e&&i.shift();)t.unsubscribe();throw r}}}(class OF extends w0{constructor(t,e){super(t,e),this.scheduler=t,this.work=e}requestAsyncId(t,e,i=0){return null!==i&&i>0?super.requestAsyncId(t,e,i):(t.actions.push(this),t._scheduled||(t._scheduled=ba.requestAnimationFrame(()=>t.flush(void 0))))}recycleAsyncId(t,e,i=0){var r;if(null!=i?i>0:this.delay>0)return super.recycleAsyncId(t,e,i);const{actions:s}=t;null!=e&&(null===(r=s[s.length-1])||void 0===r?void 0:r.id)!==e&&(ba.cancelAnimationFrame(e),t._scheduled=void 0)}});let C0,LF=1;const uu={};function U3(n){return n in uu&&(delete uu[n],!0)}const NF={setImmediate(n){const t=LF++;return uu[t]=!0,C0||(C0=Promise.resolve()),C0.then(()=>U3(t)&&n()),t},clearImmediate(n){U3(n)}},{setImmediate:PF,clearImmediate:VF}=NF,du={setImmediate(...n){const{delegate:t}=du;return(t?.setImmediate||PF)(...n)},clearImmediate(n){const{delegate:t}=du;return(t?.clearImmediate||VF)(n)},delegate:void 0},D0=(new class HF extends E0{flush(t){this._active=!0;const e=this._scheduled;this._scheduled=void 0;const{actions:i}=this;let r;t=t||i.shift();do{if(r=t.execute(t.state,t.delay))break}while((t=i[0])&&t.id===e&&i.shift());if(this._active=!1,r){for(;(t=i[0])&&t.id===e&&i.shift();)t.unsubscribe();throw r}}}(class BF extends w0{constructor(t,e){super(t,e),this.scheduler=t,this.work=e}requestAsyncId(t,e,i=0){return null!==i&&i>0?super.requestAsyncId(t,e,i):(t.actions.push(this),t._scheduled||(t._scheduled=du.setImmediate(t.flush.bind(t,void 0))))}recycleAsyncId(t,e,i=0){var r;if(null!=i?i>0:this.delay>0)return super.recycleAsyncId(t,e,i);const{actions:s}=t;null!=e&&(null===(r=s[s.length-1])||void 0===r?void 0:r.id)!==e&&(du.clearImmediate(e),t._scheduled=void 0)}}),new E0(w0)),jF=D0;function $3(n,t=D0){return function UF(n){return We((t,e)=>{let i=!1,r=null,s=null,o=!1;const a=()=>{if(s?.unsubscribe(),s=null,i){i=!1;const c=r;r=null,e.next(c)}o&&e.complete()},l=()=>{s=null,o&&e.complete()};t.subscribe(Pe(e,c=>{i=!0,r=c,s||Gt(n(c)).subscribe(s=Pe(e,a,l))},()=>{o=!0,(!i||!s||s.closed)&&e.complete()}))})}(()=>function YF(n=0,t,e=jF){let i=-1;return null!=t&&(U1(t)?e=t:i=t),new Te(r=>{let s=function $F(n){return n instanceof Date&&!isNaN(n)}(n)?+n-e.now():n;s<0&&(s=0);let o=0;return e.schedule(function(){r.closed||(r.next(o++),0<=i?this.schedule(void 0,i):r.complete())},s)})}(n,t))}let M0;try{M0=typeof Intl<"u"&&Intl.v8BreakIterator}catch{M0=!1}let Ys,pn=(()=>{class n{constructor(e){this._platformId=e,this.isBrowser=this._platformId?ib(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&&!M0)&&typeof CSS<"u"&&!this.EDGE&&!this.TRIDENT,this.WEBKIT=this.isBrowser&&/AppleWebKit/i.test(navigator.userAgent)&&!this.BLINK&&!this.EDGE&&!this.TRIDENT,this.IOS=this.isBrowser&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!("MSStream"in window),this.FIREFOX=this.isBrowser&&/(firefox|minefield)/i.test(navigator.userAgent),this.ANDROID=this.isBrowser&&/android/i.test(navigator.userAgent)&&!this.TRIDENT,this.SAFARI=this.isBrowser&&/safari/i.test(navigator.userAgent)&&this.WEBKIT}}return n.\u0275fac=function(e){return new(e||n)(v(Xo))},n.\u0275prov=S({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const Y3=["color","button","checkbox","date","datetime-local","email","file","hidden","image","month","number","password","radio","range","reset","search","submit","tel","text","time","url","week"];function G3(){if(Ys)return Ys;if("object"!=typeof document||!document)return Ys=new Set(Y3),Ys;let n=document.createElement("input");return Ys=new Set(Y3.filter(t=>(n.setAttribute("type",t),n.type===t))),Ys}let Ea,Pr,S0;function hu(n){return function GF(){if(null==Ea&&typeof window<"u")try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:()=>Ea=!0}))}finally{Ea=Ea||!1}return Ea}()?n:!!n.capture}function WF(){if(null==Pr){if("object"!=typeof document||!document||"function"!=typeof Element||!Element)return Pr=!1,Pr;if("scrollBehavior"in document.documentElement.style)Pr=!0;else{const n=Element.prototype.scrollTo;Pr=!!n&&!/\{\s*\[native code\]\s*\}/.test(n.toString())}}return Pr}function Vr(n){return n.composedPath?n.composedPath()[0]:n.target}function T0(){return typeof __karma__<"u"&&!!__karma__||typeof jasmine<"u"&&!!jasmine||typeof jest<"u"&&!!jest||typeof Mocha<"u"&&!!Mocha}const ZF=new R("cdk-dir-doc",{providedIn:"root",factory:function XF(){return Eo(ne)}}),QF=/^(ar|ckb|dv|he|iw|fa|nqo|ps|sd|ug|ur|yi|.*[-_](Adlm|Arab|Hebr|Nkoo|Rohg|Thaa))(?!.*[-_](Latn|Cyrl)($|-|_))($|-|_)/i;function W3(n){const t=n?.toLowerCase()||"";return"auto"===t&&typeof navigator<"u"&&navigator?.language?QF.test(navigator.language)?"rtl":"ltr":"rtl"===t?"rtl":"ltr"}let Ca=(()=>{class n{constructor(e){if(this.value="ltr",this.change=new Y,e){const r=e.documentElement?e.documentElement.dir:null;this.value=W3((e.body?e.body.dir:null)||r||"ltr")}}ngOnDestroy(){this.change.complete()}}return n.\u0275fac=function(e){return new(e||n)(v(ZF,8))},n.\u0275prov=S({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),JF=(()=>{class n{constructor(){this._dir="ltr",this._isInitialized=!1,this.change=new Y}get dir(){return this._dir}set dir(e){const i=this._dir;this._dir=W3(e),this._rawDir=e,i!==this._dir&&this._isInitialized&&this.change.emit(this._dir)}get value(){return this.dir}ngAfterContentInit(){this._isInitialized=!0}ngOnDestroy(){this.change.complete()}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=O({type:n,selectors:[["","dir",""]],hostVars:1,hostBindings:function(e,i){2&e&&Ze("dir",i._rawDir)},inputs:{dir:"dir"},outputs:{change:"dirChange"},exportAs:["dir"],features:[we([{provide:Ca,useExisting:n}])]}),n})(),Da=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=me({type:n}),n.\u0275inj=pe({}),n})(),tk=(()=>{class n{constructor(e,i,r){this._ngZone=e,this._platform=i,this._scrolled=new le,this._globalSubscription=null,this._scrolledCount=0,this.scrollContainers=new Map,this._document=r}register(e){this.scrollContainers.has(e)||this.scrollContainers.set(e,e.elementScrolled().subscribe(()=>this._scrolled.next(e)))}deregister(e){const i=this.scrollContainers.get(e);i&&(i.unsubscribe(),this.scrollContainers.delete(e))}scrolled(e=20){return this._platform.isBrowser?new Te(i=>{this._globalSubscription||this._addGlobalListener();const r=e>0?this._scrolled.pipe($3(e)).subscribe(i):this._scrolled.subscribe(i);return this._scrolledCount++,()=>{r.unsubscribe(),this._scrolledCount--,this._scrolledCount||this._removeGlobalListener()}}):V()}ngOnDestroy(){this._removeGlobalListener(),this.scrollContainers.forEach((e,i)=>this.deregister(i)),this._scrolled.complete()}ancestorScrolled(e,i){const r=this.getAncestorScrollContainers(e);return this.scrolled(i).pipe(fn(s=>!s||r.indexOf(s)>-1))}getAncestorScrollContainers(e){const i=[];return this.scrollContainers.forEach((r,s)=>{this._scrollableContainsElement(s,e)&&i.push(s)}),i}_getWindow(){return this._document.defaultView||window}_scrollableContainsElement(e,i){let r=Ri(i),s=e.getElementRef().nativeElement;do{if(r==s)return!0}while(r=r.parentElement);return!1}_addGlobalListener(){this._globalSubscription=this._ngZone.runOutsideAngular(()=>lu(this._getWindow().document,"scroll").subscribe(()=>this._scrolled.next()))}_removeGlobalListener(){this._globalSubscription&&(this._globalSubscription.unsubscribe(),this._globalSubscription=null)}}return n.\u0275fac=function(e){return new(e||n)(v(ie),v(pn),v(ne,8))},n.\u0275prov=S({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),I0=(()=>{class n{constructor(e,i,r){this._platform=e,this._change=new le,this._changeListener=s=>{this._change.next(s)},this._document=r,i.runOutsideAngular(()=>{if(e.isBrowser){const s=this._getWindow();s.addEventListener("resize",this._changeListener),s.addEventListener("orientationchange",this._changeListener)}this.change().subscribe(()=>this._viewportSize=null)})}ngOnDestroy(){if(this._platform.isBrowser){const e=this._getWindow();e.removeEventListener("resize",this._changeListener),e.removeEventListener("orientationchange",this._changeListener)}this._change.complete()}getViewportSize(){this._viewportSize||this._updateViewportSize();const e={width:this._viewportSize.width,height:this._viewportSize.height};return this._platform.isBrowser||(this._viewportSize=null),e}getViewportRect(){const e=this.getViewportScrollPosition(),{width:i,height:r}=this.getViewportSize();return{top:e.top,left:e.left,bottom:e.top+r,right:e.left+i,height:r,width:i}}getViewportScrollPosition(){if(!this._platform.isBrowser)return{top:0,left:0};const e=this._document,i=this._getWindow(),r=e.documentElement,s=r.getBoundingClientRect();return{top:-s.top||e.body.scrollTop||i.scrollY||r.scrollTop||0,left:-s.left||e.body.scrollLeft||i.scrollX||r.scrollLeft||0}}change(e=20){return e>0?this._change.pipe($3(e)):this._change}_getWindow(){return this._document.defaultView||window}_updateViewportSize(){const e=this._getWindow();this._viewportSize=this._platform.isBrowser?{width:e.innerWidth,height:e.innerHeight}:{width:0,height:0}}}return n.\u0275fac=function(e){return new(e||n)(v(pn),v(ie),v(ne,8))},n.\u0275prov=S({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),x0=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=me({type:n}),n.\u0275inj=pe({}),n})(),K3=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=me({type:n}),n.\u0275inj=pe({imports:[Da,x0,Da,x0]}),n})();class A0{attach(t){return this._attachedHost=t,t.attach(this)}detach(){let t=this._attachedHost;null!=t&&(this._attachedHost=null,t.detach())}get isAttached(){return null!=this._attachedHost}setAttachedHost(t){this._attachedHost=t}}class ik extends A0{constructor(t,e,i,r){super(),this.component=t,this.viewContainerRef=e,this.injector=i,this.componentFactoryResolver=r}}class q3 extends A0{constructor(t,e,i,r){super(),this.templateRef=t,this.viewContainerRef=e,this.context=i,this.injector=r}get origin(){return this.templateRef.elementRef}attach(t,e=this.context){return this.context=e,super.attach(t)}detach(){return this.context=void 0,super.detach()}}class rk extends A0{constructor(t){super(),this.element=t instanceof se?t.nativeElement:t}}class ok extends class sk{constructor(){this._isDisposed=!1,this.attachDomPortal=null}hasAttached(){return!!this._attachedPortal}attach(t){return t instanceof ik?(this._attachedPortal=t,this.attachComponentPortal(t)):t instanceof q3?(this._attachedPortal=t,this.attachTemplatePortal(t)):this.attachDomPortal&&t instanceof rk?(this._attachedPortal=t,this.attachDomPortal(t)):void 0}detach(){this._attachedPortal&&(this._attachedPortal.setAttachedHost(null),this._attachedPortal=null),this._invokeDisposeFn()}dispose(){this.hasAttached()&&this.detach(),this._invokeDisposeFn(),this._isDisposed=!0}setDisposeFn(t){this._disposeFn=t}_invokeDisposeFn(){this._disposeFn&&(this._disposeFn(),this._disposeFn=null)}}{constructor(t,e,i,r,s){super(),this.outletElement=t,this._componentFactoryResolver=e,this._appRef=i,this._defaultInjector=r,this.attachDomPortal=o=>{const a=o.element,l=this._document.createComment("dom-portal");a.parentNode.insertBefore(l,a),this.outletElement.appendChild(a),this._attachedPortal=o,super.setDisposeFn(()=>{l.parentNode&&l.parentNode.replaceChild(a,l)})},this._document=s}attachComponentPortal(t){const i=(t.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(t.component);let r;return t.viewContainerRef?(r=t.viewContainerRef.createComponent(i,t.viewContainerRef.length,t.injector||t.viewContainerRef.injector),this.setDisposeFn(()=>r.destroy())):(r=i.create(t.injector||this._defaultInjector||it.NULL),this._appRef.attachView(r.hostView),this.setDisposeFn(()=>{this._appRef.viewCount>0&&this._appRef.detachView(r.hostView),r.destroy()})),this.outletElement.appendChild(this._getComponentRootNode(r)),this._attachedPortal=t,r}attachTemplatePortal(t){let e=t.viewContainerRef,i=e.createEmbeddedView(t.templateRef,t.context,{injector:t.injector});return i.rootNodes.forEach(r=>this.outletElement.appendChild(r)),i.detectChanges(),this.setDisposeFn(()=>{let r=e.indexOf(i);-1!==r&&e.remove(r)}),this._attachedPortal=t,i}dispose(){super.dispose(),this.outletElement.remove()}_getComponentRootNode(t){return t.hostView.rootNodes[0]}}let ak=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=me({type:n}),n.\u0275inj=pe({}),n})();function Zt(n){return We((t,e)=>{Gt(n).subscribe(Pe(e,()=>e.complete(),Uu)),!e.closed&&t.subscribe(e)})}function Ma(n,...t){return t.length?t.some(e=>n[e]):n.altKey||n.shiftKey||n.ctrlKey||n.metaKey}const J3=WF();class wk{constructor(t,e){this._viewportRuler=t,this._previousHTMLStyles={top:"",left:""},this._isEnabled=!1,this._document=e}attach(){}enable(){if(this._canBeEnabled()){const t=this._document.documentElement;this._previousScrollPosition=this._viewportRuler.getViewportScrollPosition(),this._previousHTMLStyles.left=t.style.left||"",this._previousHTMLStyles.top=t.style.top||"",t.style.left=lt(-this._previousScrollPosition.left),t.style.top=lt(-this._previousScrollPosition.top),t.classList.add("cdk-global-scrollblock"),this._isEnabled=!0}}disable(){if(this._isEnabled){const t=this._document.documentElement,i=t.style,r=this._document.body.style,s=i.scrollBehavior||"",o=r.scrollBehavior||"";this._isEnabled=!1,i.left=this._previousHTMLStyles.left,i.top=this._previousHTMLStyles.top,t.classList.remove("cdk-global-scrollblock"),J3&&(i.scrollBehavior=r.scrollBehavior="auto"),window.scroll(this._previousScrollPosition.left,this._previousScrollPosition.top),J3&&(i.scrollBehavior=s,r.scrollBehavior=o)}}_canBeEnabled(){if(this._document.documentElement.classList.contains("cdk-global-scrollblock")||this._isEnabled)return!1;const e=this._document.body,i=this._viewportRuler.getViewportSize();return e.scrollHeight>i.height||e.scrollWidth>i.width}}class Ek{constructor(t,e,i,r){this._scrollDispatcher=t,this._ngZone=e,this._viewportRuler=i,this._config=r,this._scrollSubscription=null,this._detach=()=>{this.disable(),this._overlayRef.hasAttached()&&this._ngZone.run(()=>this._overlayRef.detach())}}attach(t){this._overlayRef=t}enable(){if(this._scrollSubscription)return;const t=this._scrollDispatcher.scrolled(0);this._config&&this._config.threshold&&this._config.threshold>1?(this._initialScrollPosition=this._viewportRuler.getViewportScrollPosition().top,this._scrollSubscription=t.subscribe(()=>{const e=this._viewportRuler.getViewportScrollPosition().top;Math.abs(e-this._initialScrollPosition)>this._config.threshold?this._detach():this._overlayRef.updatePosition()})):this._scrollSubscription=t.subscribe(this._detach)}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}}class eE{enable(){}disable(){}attach(){}}function L0(n,t){return t.some(e=>n.bottom<e.top||n.top>e.bottom||n.right<e.left||n.left>e.right)}function tE(n,t){return t.some(e=>n.top<e.top||n.bottom>e.bottom||n.left<e.left||n.right>e.right)}class Ck{constructor(t,e,i,r){this._scrollDispatcher=t,this._viewportRuler=e,this._ngZone=i,this._config=r,this._scrollSubscription=null}attach(t){this._overlayRef=t}enable(){this._scrollSubscription||(this._scrollSubscription=this._scrollDispatcher.scrolled(this._config?this._config.scrollThrottle:0).subscribe(()=>{if(this._overlayRef.updatePosition(),this._config&&this._config.autoClose){const e=this._overlayRef.overlayElement.getBoundingClientRect(),{width:i,height:r}=this._viewportRuler.getViewportSize();L0(e,[{width:i,height:r,bottom:r,right:i,top:0,left:0}])&&(this.disable(),this._ngZone.run(()=>this._overlayRef.detach()))}}))}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}}let Dk=(()=>{class n{constructor(e,i,r,s){this._scrollDispatcher=e,this._viewportRuler=i,this._ngZone=r,this.noop=()=>new eE,this.close=o=>new Ek(this._scrollDispatcher,this._ngZone,this._viewportRuler,o),this.block=()=>new wk(this._viewportRuler,this._document),this.reposition=o=>new Ck(this._scrollDispatcher,this._viewportRuler,this._ngZone,o),this._document=s}}return n.\u0275fac=function(e){return new(e||n)(v(tk),v(I0),v(ie),v(ne))},n.\u0275prov=S({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();class nE{constructor(t){if(this.scrollStrategy=new eE,this.panelClass="",this.hasBackdrop=!1,this.backdropClass="cdk-overlay-dark-backdrop",this.disposeOnNavigation=!1,t){const e=Object.keys(t);for(const i of e)void 0!==t[i]&&(this[i]=t[i])}}}class Mk{constructor(t,e){this.connectionPair=t,this.scrollableViewProperties=e}}let iE=(()=>{class n{constructor(e){this._attachedOverlays=[],this._document=e}ngOnDestroy(){this.detach()}add(e){this.remove(e),this._attachedOverlays.push(e)}remove(e){const i=this._attachedOverlays.indexOf(e);i>-1&&this._attachedOverlays.splice(i,1),0===this._attachedOverlays.length&&this.detach()}}return n.\u0275fac=function(e){return new(e||n)(v(ne))},n.\u0275prov=S({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),Sk=(()=>{class n extends iE{constructor(e,i){super(e),this._ngZone=i,this._keydownListener=r=>{const s=this._attachedOverlays;for(let o=s.length-1;o>-1;o--)if(s[o]._keydownEvents.observers.length>0){const a=s[o]._keydownEvents;this._ngZone?this._ngZone.run(()=>a.next(r)):a.next(r);break}}}add(e){super.add(e),this._isAttached||(this._ngZone?this._ngZone.runOutsideAngular(()=>this._document.body.addEventListener("keydown",this._keydownListener)):this._document.body.addEventListener("keydown",this._keydownListener),this._isAttached=!0)}detach(){this._isAttached&&(this._document.body.removeEventListener("keydown",this._keydownListener),this._isAttached=!1)}}return n.\u0275fac=function(e){return new(e||n)(v(ne),v(ie,8))},n.\u0275prov=S({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),Tk=(()=>{class n extends iE{constructor(e,i,r){super(e),this._platform=i,this._ngZone=r,this._cursorStyleIsSet=!1,this._pointerDownListener=s=>{this._pointerDownEventTarget=Vr(s)},this._clickListener=s=>{const o=Vr(s),a="click"===s.type&&this._pointerDownEventTarget?this._pointerDownEventTarget:o;this._pointerDownEventTarget=null;const l=this._attachedOverlays.slice();for(let c=l.length-1;c>-1;c--){const u=l[c];if(u._outsidePointerEvents.observers.length<1||!u.hasAttached())continue;if(u.overlayElement.contains(o)||u.overlayElement.contains(a))break;const d=u._outsidePointerEvents;this._ngZone?this._ngZone.run(()=>d.next(s)):d.next(s)}}}add(e){if(super.add(e),!this._isAttached){const i=this._document.body;this._ngZone?this._ngZone.runOutsideAngular(()=>this._addEventListeners(i)):this._addEventListeners(i),this._platform.IOS&&!this._cursorStyleIsSet&&(this._cursorOriginalValue=i.style.cursor,i.style.cursor="pointer",this._cursorStyleIsSet=!0),this._isAttached=!0}}detach(){if(this._isAttached){const e=this._document.body;e.removeEventListener("pointerdown",this._pointerDownListener,!0),e.removeEventListener("click",this._clickListener,!0),e.removeEventListener("auxclick",this._clickListener,!0),e.removeEventListener("contextmenu",this._clickListener,!0),this._platform.IOS&&this._cursorStyleIsSet&&(e.style.cursor=this._cursorOriginalValue,this._cursorStyleIsSet=!1),this._isAttached=!1}}_addEventListeners(e){e.addEventListener("pointerdown",this._pointerDownListener,!0),e.addEventListener("click",this._clickListener,!0),e.addEventListener("auxclick",this._clickListener,!0),e.addEventListener("contextmenu",this._clickListener,!0)}}return n.\u0275fac=function(e){return new(e||n)(v(ne),v(pn),v(ie,8))},n.\u0275prov=S({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),rE=(()=>{class n{constructor(e,i){this._platform=i,this._document=e}ngOnDestroy(){this._containerElement?.remove()}getContainerElement(){return this._containerElement||this._createContainer(),this._containerElement}_createContainer(){const e="cdk-overlay-container";if(this._platform.isBrowser||T0()){const r=this._document.querySelectorAll(`.${e}[platform="server"], .${e}[platform="test"]`);for(let s=0;s<r.length;s++)r[s].remove()}const i=this._document.createElement("div");i.classList.add(e),T0()?i.setAttribute("platform","test"):this._platform.isBrowser||i.setAttribute("platform","server"),this._document.body.appendChild(i),this._containerElement=i}}return n.\u0275fac=function(e){return new(e||n)(v(ne),v(pn))},n.\u0275prov=S({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();class Ik{constructor(t,e,i,r,s,o,a,l,c,u=!1){this._portalOutlet=t,this._host=e,this._pane=i,this._config=r,this._ngZone=s,this._keyboardDispatcher=o,this._document=a,this._location=l,this._outsideClickDispatcher=c,this._animationsDisabled=u,this._backdropElement=null,this._backdropClick=new le,this._attachments=new le,this._detachments=new le,this._locationChanges=Ge.EMPTY,this._backdropClickHandler=d=>this._backdropClick.next(d),this._backdropTransitionendHandler=d=>{this._disposeBackdrop(d.target)},this._keydownEvents=new le,this._outsidePointerEvents=new le,r.scrollStrategy&&(this._scrollStrategy=r.scrollStrategy,this._scrollStrategy.attach(this)),this._positionStrategy=r.positionStrategy}get overlayElement(){return this._pane}get backdropElement(){return this._backdropElement}get hostElement(){return this._host}attach(t){!this._host.parentElement&&this._previousHostParent&&this._previousHostParent.appendChild(this._host);const e=this._portalOutlet.attach(t);return this._positionStrategy&&this._positionStrategy.attach(this),this._updateStackingOrder(),this._updateElementSize(),this._updateElementDirection(),this._scrollStrategy&&this._scrollStrategy.enable(),this._ngZone.onStable.pipe(Yt(1)).subscribe(()=>{this.hasAttached()&&this.updatePosition()}),this._togglePointerEvents(!0),this._config.hasBackdrop&&this._attachBackdrop(),this._config.panelClass&&this._toggleClasses(this._pane,this._config.panelClass,!0),this._attachments.next(),this._keyboardDispatcher.add(this),this._config.disposeOnNavigation&&(this._locationChanges=this._location.subscribe(()=>this.dispose())),this._outsideClickDispatcher.add(this),e}detach(){if(!this.hasAttached())return;this.detachBackdrop(),this._togglePointerEvents(!1),this._positionStrategy&&this._positionStrategy.detach&&this._positionStrategy.detach(),this._scrollStrategy&&this._scrollStrategy.disable();const t=this._portalOutlet.detach();return this._detachments.next(),this._keyboardDispatcher.remove(this),this._detachContentWhenStable(),this._locationChanges.unsubscribe(),this._outsideClickDispatcher.remove(this),t}dispose(){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),this._host?.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(t){t!==this._positionStrategy&&(this._positionStrategy&&this._positionStrategy.dispose(),this._positionStrategy=t,this.hasAttached()&&(t.attach(this),this.updatePosition()))}updateSize(t){this._config={...this._config,...t},this._updateElementSize()}setDirection(t){this._config={...this._config,direction:t},this._updateElementDirection()}addPanelClass(t){this._pane&&this._toggleClasses(this._pane,t,!0)}removePanelClass(t){this._pane&&this._toggleClasses(this._pane,t,!1)}getDirection(){const t=this._config.direction;return t?"string"==typeof t?t:t.value:"ltr"}updateScrollStrategy(t){t!==this._scrollStrategy&&(this._disposeScrollStrategy(),this._scrollStrategy=t,this.hasAttached()&&(t.attach(this),t.enable()))}_updateElementDirection(){this._host.setAttribute("dir",this.getDirection())}_updateElementSize(){if(!this._pane)return;const t=this._pane.style;t.width=lt(this._config.width),t.height=lt(this._config.height),t.minWidth=lt(this._config.minWidth),t.minHeight=lt(this._config.minHeight),t.maxWidth=lt(this._config.maxWidth),t.maxHeight=lt(this._config.maxHeight)}_togglePointerEvents(t){this._pane.style.pointerEvents=t?"":"none"}_attachBackdrop(){const t="cdk-overlay-backdrop-showing";this._backdropElement=this._document.createElement("div"),this._backdropElement.classList.add("cdk-overlay-backdrop"),this._animationsDisabled&&this._backdropElement.classList.add("cdk-overlay-backdrop-noop-animation"),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),!this._animationsDisabled&&typeof requestAnimationFrame<"u"?this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>{this._backdropElement&&this._backdropElement.classList.add(t)})}):this._backdropElement.classList.add(t)}_updateStackingOrder(){this._host.nextSibling&&this._host.parentNode.appendChild(this._host)}detachBackdrop(){const t=this._backdropElement;if(t){if(this._animationsDisabled)return void this._disposeBackdrop(t);t.classList.remove("cdk-overlay-backdrop-showing"),this._ngZone.runOutsideAngular(()=>{t.addEventListener("transitionend",this._backdropTransitionendHandler)}),t.style.pointerEvents="none",this._backdropTimeout=this._ngZone.runOutsideAngular(()=>setTimeout(()=>{this._disposeBackdrop(t)},500))}}_toggleClasses(t,e,i){const r=au(e||[]).filter(s=>!!s);r.length&&(i?t.classList.add(...r):t.classList.remove(...r))}_detachContentWhenStable(){this._ngZone.runOutsideAngular(()=>{const t=this._ngZone.onStable.pipe(Zt(ur(this._attachments,this._detachments))).subscribe(()=>{(!this._pane||!this._host||0===this._pane.children.length)&&(this._pane&&this._config.panelClass&&this._toggleClasses(this._pane,this._config.panelClass,!1),this._host&&this._host.parentElement&&(this._previousHostParent=this._host.parentElement,this._host.remove()),t.unsubscribe())})})}_disposeScrollStrategy(){const t=this._scrollStrategy;t&&(t.disable(),t.detach&&t.detach())}_disposeBackdrop(t){t&&(t.removeEventListener("click",this._backdropClickHandler),t.removeEventListener("transitionend",this._backdropTransitionendHandler),t.remove(),this._backdropElement===t&&(this._backdropElement=null)),this._backdropTimeout&&(clearTimeout(this._backdropTimeout),this._backdropTimeout=void 0)}}const sE="cdk-overlay-connected-position-bounding-box",xk=/([A-Za-z%]+)$/;class Ak{constructor(t,e,i,r,s){this._viewportRuler=e,this._document=i,this._platform=r,this._overlayContainer=s,this._lastBoundingBoxSize={width:0,height:0},this._isPushed=!1,this._canPush=!0,this._growAfterOpen=!1,this._hasFlexibleDimensions=!0,this._positionLocked=!1,this._viewportMargin=0,this._scrollables=[],this._preferredPositions=[],this._positionChanges=new le,this._resizeSubscription=Ge.EMPTY,this._offsetX=0,this._offsetY=0,this._appliedPanelClasses=[],this.positionChanges=this._positionChanges,this.setOrigin(t)}get positions(){return this._preferredPositions}attach(t){this._validatePositions(),t.hostElement.classList.add(sE),this._overlayRef=t,this._boundingBox=t.hostElement,this._pane=t.overlayElement,this._isDisposed=!1,this._isInitialRender=!0,this._lastPosition=null,this._resizeSubscription.unsubscribe(),this._resizeSubscription=this._viewportRuler.change().subscribe(()=>{this._isInitialRender=!0,this.apply()})}apply(){if(this._isDisposed||!this._platform.isBrowser)return;if(!this._isInitialRender&&this._positionLocked&&this._lastPosition)return void this.reapplyLastPosition();this._clearPanelClasses(),this._resetOverlayElementStyles(),this._resetBoundingBoxStyles(),this._viewportRect=this._getNarrowedViewportRect(),this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._containerRect=this._overlayContainer.getContainerElement().getBoundingClientRect();const t=this._originRect,e=this._overlayRect,i=this._viewportRect,r=this._containerRect,s=[];let o;for(let a of this._preferredPositions){let l=this._getOriginPoint(t,r,a),c=this._getOverlayPoint(l,e,a),u=this._getOverlayFit(c,e,i,a);if(u.isCompletelyWithinViewport)return this._isPushed=!1,void this._applyPosition(a,l);this._canFitWithFlexibleDimensions(u,c,i)?s.push({position:a,origin:l,overlayRect:e,boundingBoxRect:this._calculateBoundingBoxRect(l,a)}):(!o||o.overlayFit.visibleArea<u.visibleArea)&&(o={overlayFit:u,overlayPoint:c,originPoint:l,position:a,overlayRect:e})}if(s.length){let a=null,l=-1;for(const c of s){const u=c.boundingBoxRect.width*c.boundingBoxRect.height*(c.position.weight||1);u>l&&(l=u,a=c)}return this._isPushed=!1,void this._applyPosition(a.position,a.origin)}if(this._canPush)return this._isPushed=!0,void this._applyPosition(o.position,o.originPoint);this._applyPosition(o.position,o.originPoint)}detach(){this._clearPanelClasses(),this._lastPosition=null,this._previousPushAmount=null,this._resizeSubscription.unsubscribe()}dispose(){this._isDisposed||(this._boundingBox&&Br(this._boundingBox.style,{top:"",left:"",right:"",bottom:"",height:"",width:"",alignItems:"",justifyContent:""}),this._pane&&this._resetOverlayElementStyles(),this._overlayRef&&this._overlayRef.hostElement.classList.remove(sE),this.detach(),this._positionChanges.complete(),this._overlayRef=this._boundingBox=null,this._isDisposed=!0)}reapplyLastPosition(){if(this._isDisposed||!this._platform.isBrowser)return;const t=this._lastPosition;if(t){this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._viewportRect=this._getNarrowedViewportRect(),this._containerRect=this._overlayContainer.getContainerElement().getBoundingClientRect();const e=this._getOriginPoint(this._originRect,this._containerRect,t);this._applyPosition(t,e)}else this.apply()}withScrollableContainers(t){return this._scrollables=t,this}withPositions(t){return this._preferredPositions=t,-1===t.indexOf(this._lastPosition)&&(this._lastPosition=null),this._validatePositions(),this}withViewportMargin(t){return this._viewportMargin=t,this}withFlexibleDimensions(t=!0){return this._hasFlexibleDimensions=t,this}withGrowAfterOpen(t=!0){return this._growAfterOpen=t,this}withPush(t=!0){return this._canPush=t,this}withLockedPosition(t=!0){return this._positionLocked=t,this}setOrigin(t){return this._origin=t,this}withDefaultOffsetX(t){return this._offsetX=t,this}withDefaultOffsetY(t){return this._offsetY=t,this}withTransformOriginOn(t){return this._transformOriginSelector=t,this}_getOriginPoint(t,e,i){let r,s;if("center"==i.originX)r=t.left+t.width/2;else{const o=this._isRtl()?t.right:t.left,a=this._isRtl()?t.left:t.right;r="start"==i.originX?o:a}return e.left<0&&(r-=e.left),s="center"==i.originY?t.top+t.height/2:"top"==i.originY?t.top:t.bottom,e.top<0&&(s-=e.top),{x:r,y:s}}_getOverlayPoint(t,e,i){let r,s;return r="center"==i.overlayX?-e.width/2:"start"===i.overlayX?this._isRtl()?-e.width:0:this._isRtl()?0:-e.width,s="center"==i.overlayY?-e.height/2:"top"==i.overlayY?0:-e.height,{x:t.x+r,y:t.y+s}}_getOverlayFit(t,e,i,r){const s=aE(e);let{x:o,y:a}=t,l=this._getOffset(r,"x"),c=this._getOffset(r,"y");l&&(o+=l),c&&(a+=c);let h=0-a,p=a+s.height-i.height,g=this._subtractOverflows(s.width,0-o,o+s.width-i.width),m=this._subtractOverflows(s.height,h,p),y=g*m;return{visibleArea:y,isCompletelyWithinViewport:s.width*s.height===y,fitsInViewportVertically:m===s.height,fitsInViewportHorizontally:g==s.width}}_canFitWithFlexibleDimensions(t,e,i){if(this._hasFlexibleDimensions){const r=i.bottom-e.y,s=i.right-e.x,o=oE(this._overlayRef.getConfig().minHeight),a=oE(this._overlayRef.getConfig().minWidth),c=t.fitsInViewportHorizontally||null!=a&&a<=s;return(t.fitsInViewportVertically||null!=o&&o<=r)&&c}return!1}_pushOverlayOnScreen(t,e,i){if(this._previousPushAmount&&this._positionLocked)return{x:t.x+this._previousPushAmount.x,y:t.y+this._previousPushAmount.y};const r=aE(e),s=this._viewportRect,o=Math.max(t.x+r.width-s.width,0),a=Math.max(t.y+r.height-s.height,0),l=Math.max(s.top-i.top-t.y,0),c=Math.max(s.left-i.left-t.x,0);let u=0,d=0;return u=r.width<=s.width?c||-o:t.x<this._viewportMargin?s.left-i.left-t.x:0,d=r.height<=s.height?l||-a:t.y<this._viewportMargin?s.top-i.top-t.y:0,this._previousPushAmount={x:u,y:d},{x:t.x+u,y:t.y+d}}_applyPosition(t,e){if(this._setTransformOrigin(t),this._setOverlayElementStyles(e,t),this._setBoundingBoxStyles(e,t),t.panelClass&&this._addPanelClasses(t.panelClass),this._lastPosition=t,this._positionChanges.observers.length){const i=this._getScrollVisibility(),r=new Mk(t,i);this._positionChanges.next(r)}this._isInitialRender=!1}_setTransformOrigin(t){if(!this._transformOriginSelector)return;const e=this._boundingBox.querySelectorAll(this._transformOriginSelector);let i,r=t.overlayY;i="center"===t.overlayX?"center":this._isRtl()?"start"===t.overlayX?"right":"left":"start"===t.overlayX?"left":"right";for(let s=0;s<e.length;s++)e[s].style.transformOrigin=`${i} ${r}`}_calculateBoundingBoxRect(t,e){const i=this._viewportRect,r=this._isRtl();let s,o,a,u,d,h;if("top"===e.overlayY)o=t.y,s=i.height-o+this._viewportMargin;else if("bottom"===e.overlayY)a=i.height-t.y+2*this._viewportMargin,s=i.height-a+this._viewportMargin;else{const p=Math.min(i.bottom-t.y+i.top,t.y),g=this._lastBoundingBoxSize.height;s=2*p,o=t.y-p,s>g&&!this._isInitialRender&&!this._growAfterOpen&&(o=t.y-g/2)}if("end"===e.overlayX&&!r||"start"===e.overlayX&&r)h=i.width-t.x+this._viewportMargin,u=t.x-this._viewportMargin;else if("start"===e.overlayX&&!r||"end"===e.overlayX&&r)d=t.x,u=i.right-t.x;else{const p=Math.min(i.right-t.x+i.left,t.x),g=this._lastBoundingBoxSize.width;u=2*p,d=t.x-p,u>g&&!this._isInitialRender&&!this._growAfterOpen&&(d=t.x-g/2)}return{top:o,left:d,bottom:a,right:h,width:u,height:s}}_setBoundingBoxStyles(t,e){const i=this._calculateBoundingBoxRect(t,e);!this._isInitialRender&&!this._growAfterOpen&&(i.height=Math.min(i.height,this._lastBoundingBoxSize.height),i.width=Math.min(i.width,this._lastBoundingBoxSize.width));const r={};if(this._hasExactPosition())r.top=r.left="0",r.bottom=r.right=r.maxHeight=r.maxWidth="",r.width=r.height="100%";else{const s=this._overlayRef.getConfig().maxHeight,o=this._overlayRef.getConfig().maxWidth;r.height=lt(i.height),r.top=lt(i.top),r.bottom=lt(i.bottom),r.width=lt(i.width),r.left=lt(i.left),r.right=lt(i.right),r.alignItems="center"===e.overlayX?"center":"end"===e.overlayX?"flex-end":"flex-start",r.justifyContent="center"===e.overlayY?"center":"bottom"===e.overlayY?"flex-end":"flex-start",s&&(r.maxHeight=lt(s)),o&&(r.maxWidth=lt(o))}this._lastBoundingBoxSize=i,Br(this._boundingBox.style,r)}_resetBoundingBoxStyles(){Br(this._boundingBox.style,{top:"0",left:"0",right:"0",bottom:"0",height:"",width:"",alignItems:"",justifyContent:""})}_resetOverlayElementStyles(){Br(this._pane.style,{top:"",left:"",bottom:"",right:"",position:"",transform:""})}_setOverlayElementStyles(t,e){const i={},r=this._hasExactPosition(),s=this._hasFlexibleDimensions,o=this._overlayRef.getConfig();if(r){const u=this._viewportRuler.getViewportScrollPosition();Br(i,this._getExactOverlayY(e,t,u)),Br(i,this._getExactOverlayX(e,t,u))}else i.position="static";let a="",l=this._getOffset(e,"x"),c=this._getOffset(e,"y");l&&(a+=`translateX(${l}px) `),c&&(a+=`translateY(${c}px)`),i.transform=a.trim(),o.maxHeight&&(r?i.maxHeight=lt(o.maxHeight):s&&(i.maxHeight="")),o.maxWidth&&(r?i.maxWidth=lt(o.maxWidth):s&&(i.maxWidth="")),Br(this._pane.style,i)}_getExactOverlayY(t,e,i){let r={top:"",bottom:""},s=this._getOverlayPoint(e,this._overlayRect,t);return this._isPushed&&(s=this._pushOverlayOnScreen(s,this._overlayRect,i)),"bottom"===t.overlayY?r.bottom=this._document.documentElement.clientHeight-(s.y+this._overlayRect.height)+"px":r.top=lt(s.y),r}_getExactOverlayX(t,e,i){let o,r={left:"",right:""},s=this._getOverlayPoint(e,this._overlayRect,t);return this._isPushed&&(s=this._pushOverlayOnScreen(s,this._overlayRect,i)),o=this._isRtl()?"end"===t.overlayX?"left":"right":"end"===t.overlayX?"right":"left","right"===o?r.right=this._document.documentElement.clientWidth-(s.x+this._overlayRect.width)+"px":r.left=lt(s.x),r}_getScrollVisibility(){const t=this._getOriginRect(),e=this._pane.getBoundingClientRect(),i=this._scrollables.map(r=>r.getElementRef().nativeElement.getBoundingClientRect());return{isOriginClipped:tE(t,i),isOriginOutsideView:L0(t,i),isOverlayClipped:tE(e,i),isOverlayOutsideView:L0(e,i)}}_subtractOverflows(t,...e){return e.reduce((i,r)=>i-Math.max(r,0),t)}_getNarrowedViewportRect(){const t=this._document.documentElement.clientWidth,e=this._document.documentElement.clientHeight,i=this._viewportRuler.getViewportScrollPosition();return{top:i.top+this._viewportMargin,left:i.left+this._viewportMargin,right:i.left+t-this._viewportMargin,bottom:i.top+e-this._viewportMargin,width:t-2*this._viewportMargin,height:e-2*this._viewportMargin}}_isRtl(){return"rtl"===this._overlayRef.getDirection()}_hasExactPosition(){return!this._hasFlexibleDimensions||this._isPushed}_getOffset(t,e){return"x"===e?t.offsetX??this._offsetX:t.offsetY??this._offsetY}_validatePositions(){}_addPanelClasses(t){this._pane&&au(t).forEach(e=>{""!==e&&-1===this._appliedPanelClasses.indexOf(e)&&(this._appliedPanelClasses.push(e),this._pane.classList.add(e))})}_clearPanelClasses(){this._pane&&(this._appliedPanelClasses.forEach(t=>{this._pane.classList.remove(t)}),this._appliedPanelClasses=[])}_getOriginRect(){const t=this._origin;if(t instanceof se)return t.nativeElement.getBoundingClientRect();if(t instanceof Element)return t.getBoundingClientRect();const e=t.width||0,i=t.height||0;return{top:t.y,bottom:t.y+i,left:t.x,right:t.x+e,height:i,width:e}}}function Br(n,t){for(let e in t)t.hasOwnProperty(e)&&(n[e]=t[e]);return n}function oE(n){if("number"!=typeof n&&null!=n){const[t,e]=n.split(xk);return e&&"px"!==e?null:parseFloat(t)}return n||null}function aE(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 lE="cdk-global-overlay-wrapper";class Rk{constructor(){this._cssPosition="static",this._topOffset="",this._bottomOffset="",this._alignItems="",this._xPosition="",this._xOffset="",this._width="",this._height="",this._isDisposed=!1}attach(t){const e=t.getConfig();this._overlayRef=t,this._width&&!e.width&&t.updateSize({width:this._width}),this._height&&!e.height&&t.updateSize({height:this._height}),t.hostElement.classList.add(lE),this._isDisposed=!1}top(t=""){return this._bottomOffset="",this._topOffset=t,this._alignItems="flex-start",this}left(t=""){return this._xOffset=t,this._xPosition="left",this}bottom(t=""){return this._topOffset="",this._bottomOffset=t,this._alignItems="flex-end",this}right(t=""){return this._xOffset=t,this._xPosition="right",this}start(t=""){return this._xOffset=t,this._xPosition="start",this}end(t=""){return this._xOffset=t,this._xPosition="end",this}width(t=""){return this._overlayRef?this._overlayRef.updateSize({width:t}):this._width=t,this}height(t=""){return this._overlayRef?this._overlayRef.updateSize({height:t}):this._height=t,this}centerHorizontally(t=""){return this.left(t),this._xPosition="center",this}centerVertically(t=""){return this.top(t),this._alignItems="center",this}apply(){if(!this._overlayRef||!this._overlayRef.hasAttached())return;const t=this._overlayRef.overlayElement.style,e=this._overlayRef.hostElement.style,i=this._overlayRef.getConfig(),{width:r,height:s,maxWidth:o,maxHeight:a}=i,l=!("100%"!==r&&"100vw"!==r||o&&"100%"!==o&&"100vw"!==o),c=!("100%"!==s&&"100vh"!==s||a&&"100%"!==a&&"100vh"!==a),u=this._xPosition,d=this._xOffset,h="rtl"===this._overlayRef.getConfig().direction;let p="",g="",m="";l?m="flex-start":"center"===u?(m="center",h?g=d:p=d):h?"left"===u||"end"===u?(m="flex-end",p=d):("right"===u||"start"===u)&&(m="flex-start",g=d):"left"===u||"start"===u?(m="flex-start",p=d):("right"===u||"end"===u)&&(m="flex-end",g=d),t.position=this._cssPosition,t.marginLeft=l?"0":p,t.marginTop=c?"0":this._topOffset,t.marginBottom=this._bottomOffset,t.marginRight=l?"0":g,e.justifyContent=m,e.alignItems=c?"flex-start":this._alignItems}dispose(){if(this._isDisposed||!this._overlayRef)return;const t=this._overlayRef.overlayElement.style,e=this._overlayRef.hostElement,i=e.style;e.classList.remove(lE),i.justifyContent=i.alignItems=t.marginTop=t.marginBottom=t.marginLeft=t.marginRight=t.position="",this._overlayRef=null,this._isDisposed=!0}}let Ok=(()=>{class n{constructor(e,i,r,s){this._viewportRuler=e,this._document=i,this._platform=r,this._overlayContainer=s}global(){return new Rk}flexibleConnectedTo(e){return new Ak(e,this._viewportRuler,this._document,this._platform,this._overlayContainer)}}return n.\u0275fac=function(e){return new(e||n)(v(I0),v(ne),v(pn),v(rE))},n.\u0275prov=S({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),Fk=0,pu=(()=>{class n{constructor(e,i,r,s,o,a,l,c,u,d,h,p){this.scrollStrategies=e,this._overlayContainer=i,this._componentFactoryResolver=r,this._positionBuilder=s,this._keyboardDispatcher=o,this._injector=a,this._ngZone=l,this._document=c,this._directionality=u,this._location=d,this._outsideClickDispatcher=h,this._animationsModuleType=p}create(e){const i=this._createHostElement(),r=this._createPaneElement(i),s=this._createPortalOutlet(r),o=new nE(e);return o.direction=o.direction||this._directionality.value,new Ik(s,i,r,o,this._ngZone,this._keyboardDispatcher,this._document,this._location,this._outsideClickDispatcher,"NoopAnimations"===this._animationsModuleType)}position(){return this._positionBuilder}_createPaneElement(e){const i=this._document.createElement("div");return i.id="cdk-overlay-"+Fk++,i.classList.add("cdk-overlay-pane"),e.appendChild(i),i}_createHostElement(){const e=this._document.createElement("div");return this._overlayContainer.getContainerElement().appendChild(e),e}_createPortalOutlet(e){return this._appRef||(this._appRef=this._injector.get(Qo)),new ok(e,this._componentFactoryResolver,this._appRef,this._injector,this._document)}}return n.\u0275fac=function(e){return new(e||n)(v(Dk),v(rE),v(Yi),v(Ok),v(Sk),v(it),v(ie),v(ne),v(Ca),v(sc),v(Tk),v(Mr,8))},n.\u0275prov=S({token:n,factory:n.\u0275fac}),n})();const kk=[{originX:"start",originY:"bottom",overlayX:"start",overlayY:"top"},{originX:"start",originY:"top",overlayX:"start",overlayY:"bottom"},{originX:"end",originY:"top",overlayX:"end",overlayY:"bottom"},{originX:"end",originY:"bottom",overlayX:"end",overlayY:"top"}],cE=new R("cdk-connected-overlay-scroll-strategy");let uE=(()=>{class n{constructor(e){this.elementRef=e}}return n.\u0275fac=function(e){return new(e||n)(_(se))},n.\u0275dir=O({type:n,selectors:[["","cdk-overlay-origin",""],["","overlay-origin",""],["","cdkOverlayOrigin",""]],exportAs:["cdkOverlayOrigin"]}),n})(),dE=(()=>{class n{constructor(e,i,r,s,o){this._overlay=e,this._dir=o,this._hasBackdrop=!1,this._lockPosition=!1,this._growAfterOpen=!1,this._flexibleDimensions=!1,this._push=!1,this._backdropSubscription=Ge.EMPTY,this._attachSubscription=Ge.EMPTY,this._detachSubscription=Ge.EMPTY,this._positionSubscription=Ge.EMPTY,this.viewportMargin=0,this.open=!1,this.disableClose=!1,this.backdropClick=new Y,this.positionChange=new Y,this.attach=new Y,this.detach=new Y,this.overlayKeydown=new Y,this.overlayOutsideClick=new Y,this._templatePortal=new q3(i,r),this._scrollStrategyFactory=s,this.scrollStrategy=this._scrollStrategyFactory()}get offsetX(){return this._offsetX}set offsetX(e){this._offsetX=e,this._position&&this._updatePositionStrategy(this._position)}get offsetY(){return this._offsetY}set offsetY(e){this._offsetY=e,this._position&&this._updatePositionStrategy(this._position)}get hasBackdrop(){return this._hasBackdrop}set hasBackdrop(e){this._hasBackdrop=Dt(e)}get lockPosition(){return this._lockPosition}set lockPosition(e){this._lockPosition=Dt(e)}get flexibleDimensions(){return this._flexibleDimensions}set flexibleDimensions(e){this._flexibleDimensions=Dt(e)}get growAfterOpen(){return this._growAfterOpen}set growAfterOpen(e){this._growAfterOpen=Dt(e)}get push(){return this._push}set push(e){this._push=Dt(e)}get overlayRef(){return this._overlayRef}get dir(){return this._dir?this._dir.value:"ltr"}ngOnDestroy(){this._attachSubscription.unsubscribe(),this._detachSubscription.unsubscribe(),this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe(),this._overlayRef&&this._overlayRef.dispose()}ngOnChanges(e){this._position&&(this._updatePositionStrategy(this._position),this._overlayRef.updateSize({width:this.width,minWidth:this.minWidth,height:this.height,minHeight:this.minHeight}),e.origin&&this.open&&this._position.apply()),e.open&&(this.open?this._attachOverlay():this._detachOverlay())}_createOverlay(){(!this.positions||!this.positions.length)&&(this.positions=kk);const e=this._overlayRef=this._overlay.create(this._buildConfig());this._attachSubscription=e.attachments().subscribe(()=>this.attach.emit()),this._detachSubscription=e.detachments().subscribe(()=>this.detach.emit()),e.keydownEvents().subscribe(i=>{this.overlayKeydown.next(i),27===i.keyCode&&!this.disableClose&&!Ma(i)&&(i.preventDefault(),this._detachOverlay())}),this._overlayRef.outsidePointerEvents().subscribe(i=>{this.overlayOutsideClick.next(i)})}_buildConfig(){const e=this._position=this.positionStrategy||this._createPositionStrategy(),i=new nE({direction:this._dir,positionStrategy:e,scrollStrategy:this.scrollStrategy,hasBackdrop:this.hasBackdrop});return(this.width||0===this.width)&&(i.width=this.width),(this.height||0===this.height)&&(i.height=this.height),(this.minWidth||0===this.minWidth)&&(i.minWidth=this.minWidth),(this.minHeight||0===this.minHeight)&&(i.minHeight=this.minHeight),this.backdropClass&&(i.backdropClass=this.backdropClass),this.panelClass&&(i.panelClass=this.panelClass),i}_updatePositionStrategy(e){const i=this.positions.map(r=>({originX:r.originX,originY:r.originY,overlayX:r.overlayX,overlayY:r.overlayY,offsetX:r.offsetX||this.offsetX,offsetY:r.offsetY||this.offsetY,panelClass:r.panelClass||void 0}));return e.setOrigin(this._getFlexibleConnectedPositionStrategyOrigin()).withPositions(i).withFlexibleDimensions(this.flexibleDimensions).withPush(this.push).withGrowAfterOpen(this.growAfterOpen).withViewportMargin(this.viewportMargin).withLockedPosition(this.lockPosition).withTransformOriginOn(this.transformOriginSelector)}_createPositionStrategy(){const e=this._overlay.position().flexibleConnectedTo(this._getFlexibleConnectedPositionStrategyOrigin());return this._updatePositionStrategy(e),e}_getFlexibleConnectedPositionStrategyOrigin(){return this.origin instanceof uE?this.origin.elementRef:this.origin}_attachOverlay(){this._overlayRef?this._overlayRef.getConfig().hasBackdrop=this.hasBackdrop:this._createOverlay(),this._overlayRef.hasAttached()||this._overlayRef.attach(this._templatePortal),this.hasBackdrop?this._backdropSubscription=this._overlayRef.backdropClick().subscribe(e=>{this.backdropClick.emit(e)}):this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe(),this.positionChange.observers.length>0&&(this._positionSubscription=this._position.positionChanges.pipe(function lk(n,t=!1){return We((e,i)=>{let r=0;e.subscribe(Pe(i,s=>{const o=n(s,r++);(o||t)&&i.next(s),!o&&i.complete()}))})}(()=>this.positionChange.observers.length>0)).subscribe(e=>{this.positionChange.emit(e),0===this.positionChange.observers.length&&this._positionSubscription.unsubscribe()}))}_detachOverlay(){this._overlayRef&&this._overlayRef.detach(),this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe()}}return n.\u0275fac=function(e){return new(e||n)(_(pu),_(zn),_(un),_(cE),_(Ca,8))},n.\u0275dir=O({type:n,selectors:[["","cdk-connected-overlay",""],["","connected-overlay",""],["","cdkConnectedOverlay",""]],inputs:{origin:["cdkConnectedOverlayOrigin","origin"],positions:["cdkConnectedOverlayPositions","positions"],positionStrategy:["cdkConnectedOverlayPositionStrategy","positionStrategy"],offsetX:["cdkConnectedOverlayOffsetX","offsetX"],offsetY:["cdkConnectedOverlayOffsetY","offsetY"],width:["cdkConnectedOverlayWidth","width"],height:["cdkConnectedOverlayHeight","height"],minWidth:["cdkConnectedOverlayMinWidth","minWidth"],minHeight:["cdkConnectedOverlayMinHeight","minHeight"],backdropClass:["cdkConnectedOverlayBackdropClass","backdropClass"],panelClass:["cdkConnectedOverlayPanelClass","panelClass"],viewportMargin:["cdkConnectedOverlayViewportMargin","viewportMargin"],scrollStrategy:["cdkConnectedOverlayScrollStrategy","scrollStrategy"],open:["cdkConnectedOverlayOpen","open"],disableClose:["cdkConnectedOverlayDisableClose","disableClose"],transformOriginSelector:["cdkConnectedOverlayTransformOriginOn","transformOriginSelector"],hasBackdrop:["cdkConnectedOverlayHasBackdrop","hasBackdrop"],lockPosition:["cdkConnectedOverlayLockPosition","lockPosition"],flexibleDimensions:["cdkConnectedOverlayFlexibleDimensions","flexibleDimensions"],growAfterOpen:["cdkConnectedOverlayGrowAfterOpen","growAfterOpen"],push:["cdkConnectedOverlayPush","push"]},outputs:{backdropClick:"backdropClick",positionChange:"positionChange",attach:"attach",detach:"detach",overlayKeydown:"overlayKeydown",overlayOutsideClick:"overlayOutsideClick"},exportAs:["cdkConnectedOverlay"],features:[Ct]}),n})();const Nk={provide:cE,deps:[pu],useFactory:function Lk(n){return()=>n.scrollStrategies.reposition()}};let Pk=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=me({type:n}),n.\u0275inj=pe({providers:[pu,Nk],imports:[Da,ak,K3,K3]}),n})();class wt extends le{constructor(t){super(),this._value=t}get value(){return this.getValue()}_subscribe(t){const e=super._subscribe(t);return!e.closed&&t.next(this._value),e}getValue(){const{hasError:t,thrownError:e,_value:i}=this;if(t)throw e;return this._throwIfClosed(),i}next(t){super.next(this._value=t)}}function et(n,t,e){const i=fe(n)||t||e?{next:n,error:t,complete:e}:n;return i?We((r,s)=>{var o;null===(o=i.subscribe)||void 0===o||o.call(i);let a=!0;r.subscribe(Pe(s,l=>{var c;null===(c=i.next)||void 0===c||c.call(i,l),s.next(l)},()=>{var l;a=!1,null===(l=i.complete)||void 0===l||l.call(i),s.complete()},l=>{var c;a=!1,null===(c=i.error)||void 0===c||c.call(i,l),s.error(l)},()=>{var l,c;a&&(null===(l=i.unsubscribe)||void 0===l||l.call(i)),null===(c=i.finalize)||void 0===c||c.call(i)}))}):Ni}function gu(n,t=D0){return We((e,i)=>{let r=null,s=null,o=null;const a=()=>{if(r){r.unsubscribe(),r=null;const c=s;s=null,i.next(c)}};function l(){const c=o+n,u=t.now();if(u<c)return r=this.schedule(void 0,c-u),void i.add(r);a()}e.subscribe(Pe(i,c=>{s=c,o=t.now(),r||(r=t.schedule(l,n),i.add(r))},()=>{a(),i.complete()},void 0,()=>{s=r=null}))})}function hE(n){return fn((t,e)=>n<=e)}function Gs(n,t=Ni){return n=n??Vk,We((e,i)=>{let r,s=!0;e.subscribe(Pe(i,o=>{const a=t(o);(s||!n(r,a))&&(s=!1,r=a,i.next(o))}))})}function Vk(n,t){return n===t}function N0(...n){const t=oo(n),e=$1(n),{args:i,keys:r}=gw(n);if(0===i.length)return gt([],t);const s=new Te(function Bk(n,t,e=Ni){return i=>{fE(t,()=>{const{length:r}=n,s=new Array(r);let o=r,a=r;for(let l=0;l<r;l++)fE(t,()=>{const c=gt(n[l],t);let u=!1;c.subscribe(Pe(i,d=>{s[l]=d,u||(u=!0,a--),a||i.next(e(s.slice()))},()=>{--o||i.complete()}))},i)},i)}}(i,t,r?o=>mw(r,o):Ni));return e?s.pipe(Bp(e)):s}function fE(n,t,e){n?mi(e,n,t):t()}function Hr(...n){const t=oo(n);return We((e,i)=>{(t?Us(n,e,t):Us(n,e)).subscribe(i)})}const pE=new Set;let Ws,Hk=(()=>{class n{constructor(e){this._platform=e,this._matchMedia=this._platform.isBrowser&&window.matchMedia?window.matchMedia.bind(window):jk}matchMedia(e){return(this._platform.WEBKIT||this._platform.BLINK)&&function zk(n){if(!pE.has(n))try{Ws||(Ws=document.createElement("style"),Ws.setAttribute("type","text/css"),document.head.appendChild(Ws)),Ws.sheet&&(Ws.sheet.insertRule(`@media ${n} {body{ }}`,0),pE.add(n))}catch(t){console.error(t)}}(e),this._matchMedia(e)}}return n.\u0275fac=function(e){return new(e||n)(v(pn))},n.\u0275prov=S({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();function jk(n){return{matches:"all"===n||""===n,media:n,addListener:()=>{},removeListener:()=>{}}}let Uk=(()=>{class n{constructor(e,i){this._mediaMatcher=e,this._zone=i,this._queries=new Map,this._destroySubject=new le}ngOnDestroy(){this._destroySubject.next(),this._destroySubject.complete()}isMatched(e){return gE(au(e)).some(r=>this._registerQuery(r).mql.matches)}observe(e){let s=N0(gE(au(e)).map(o=>this._registerQuery(o).observable));return s=Us(s.pipe(Yt(1)),s.pipe(hE(1),gu(0))),s.pipe(K(o=>{const a={matches:!1,breakpoints:{}};return o.forEach(({matches:l,query:c})=>{a.matches=a.matches||l,a.breakpoints[c]=l}),a}))}_registerQuery(e){if(this._queries.has(e))return this._queries.get(e);const i=this._mediaMatcher.matchMedia(e),s={observable:new Te(o=>{const a=l=>this._zone.run(()=>o.next(l));return i.addListener(a),()=>{i.removeListener(a)}}).pipe(Hr(i),K(({matches:o})=>({query:e,matches:o})),Zt(this._destroySubject)),mql:i};return this._queries.set(e,s),s}}return n.\u0275fac=function(e){return new(e||n)(v(Hk),v(ie))},n.\u0275prov=S({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();function gE(n){return n.map(t=>t.split(",")).reduce((t,e)=>t.concat(e)).map(t=>t.trim())}class Wk extends class Gk{constructor(t){this._items=t,this._activeItemIndex=-1,this._activeItem=null,this._wrap=!1,this._letterKeyStream=new le,this._typeaheadSubscription=Ge.EMPTY,this._vertical=!0,this._allowedModifierKeys=[],this._homeAndEnd=!1,this._skipPredicateFn=e=>e.disabled,this._pressedLetters=[],this.tabOut=new le,this.change=new le,t instanceof Ko&&t.changes.subscribe(e=>{if(this._activeItem){const r=e.toArray().indexOf(this._activeItem);r>-1&&r!==this._activeItemIndex&&(this._activeItemIndex=r)}})}skipPredicate(t){return this._skipPredicateFn=t,this}withWrap(t=!0){return this._wrap=t,this}withVerticalOrientation(t=!0){return this._vertical=t,this}withHorizontalOrientation(t){return this._horizontal=t,this}withAllowedModifierKeys(t){return this._allowedModifierKeys=t,this}withTypeAhead(t=200){return this._typeaheadSubscription.unsubscribe(),this._typeaheadSubscription=this._letterKeyStream.pipe(et(e=>this._pressedLetters.push(e)),gu(t),fn(()=>this._pressedLetters.length>0),K(()=>this._pressedLetters.join(""))).subscribe(e=>{const i=this._getItemsArray();for(let r=1;r<i.length+1;r++){const s=(this._activeItemIndex+r)%i.length,o=i[s];if(!this._skipPredicateFn(o)&&0===o.getLabel().toUpperCase().trim().indexOf(e)){this.setActiveItem(s);break}}this._pressedLetters=[]}),this}withHomeAndEnd(t=!0){return this._homeAndEnd=t,this}setActiveItem(t){const e=this._activeItem;this.updateActiveItem(t),this._activeItem!==e&&this.change.next(this._activeItemIndex)}onKeydown(t){const e=t.keyCode,r=["altKey","ctrlKey","metaKey","shiftKey"].every(s=>!t[s]||this._allowedModifierKeys.indexOf(s)>-1);switch(e){case 9:return void this.tabOut.next();case 40:if(this._vertical&&r){this.setNextItemActive();break}return;case 38:if(this._vertical&&r){this.setPreviousItemActive();break}return;case 39:if(this._horizontal&&r){"rtl"===this._horizontal?this.setPreviousItemActive():this.setNextItemActive();break}return;case 37:if(this._horizontal&&r){"rtl"===this._horizontal?this.setNextItemActive():this.setPreviousItemActive();break}return;case 36:if(this._homeAndEnd&&r){this.setFirstItemActive();break}return;case 35:if(this._homeAndEnd&&r){this.setLastItemActive();break}return;default:return void((r||Ma(t,"shiftKey"))&&(t.key&&1===t.key.length?this._letterKeyStream.next(t.key.toLocaleUpperCase()):(e>=65&&e<=90||e>=48&&e<=57)&&this._letterKeyStream.next(String.fromCharCode(e))))}this._pressedLetters=[],t.preventDefault()}get activeItemIndex(){return this._activeItemIndex}get activeItem(){return this._activeItem}isTyping(){return this._pressedLetters.length>0}setFirstItemActive(){this._setActiveItemByIndex(0,1)}setLastItemActive(){this._setActiveItemByIndex(this._items.length-1,-1)}setNextItemActive(){this._activeItemIndex<0?this.setFirstItemActive():this._setActiveItemByDelta(1)}setPreviousItemActive(){this._activeItemIndex<0&&this._wrap?this.setLastItemActive():this._setActiveItemByDelta(-1)}updateActiveItem(t){const e=this._getItemsArray(),i="number"==typeof t?t:e.indexOf(t);this._activeItem=e[i]??null,this._activeItemIndex=i}_setActiveItemByDelta(t){this._wrap?this._setActiveInWrapMode(t):this._setActiveInDefaultMode(t)}_setActiveInWrapMode(t){const e=this._getItemsArray();for(let i=1;i<=e.length;i++){const r=(this._activeItemIndex+t*i+e.length)%e.length;if(!this._skipPredicateFn(e[r]))return void this.setActiveItem(r)}}_setActiveInDefaultMode(t){this._setActiveItemByIndex(this._activeItemIndex+t,t)}_setActiveItemByIndex(t,e){const i=this._getItemsArray();if(i[t]){for(;this._skipPredicateFn(i[t]);)if(!i[t+=e])return;this.setActiveItem(t)}}_getItemsArray(){return this._items instanceof Ko?this._items.toArray():this._items}}{setActiveItem(t){this.activeItem&&this.activeItem.setInactiveStyles(),super.setActiveItem(t),this.activeItem&&this.activeItem.setActiveStyles()}}function yE(n){return 0===n.buttons||0===n.offsetX&&0===n.offsetY}function bE(n){const t=n.touches&&n.touches[0]||n.changedTouches&&n.changedTouches[0];return!(!t||-1!==t.identifier||null!=t.radiusX&&1!==t.radiusX||null!=t.radiusY&&1!==t.radiusY)}const Jk=new R("cdk-input-modality-detector-options"),eL={ignoreKeys:[18,17,224,91,16]},Ks=hu({passive:!0,capture:!0});let tL=(()=>{class n{constructor(e,i,r,s){this._platform=e,this._mostRecentTarget=null,this._modality=new wt(null),this._lastTouchMs=0,this._onKeydown=o=>{this._options?.ignoreKeys?.some(a=>a===o.keyCode)||(this._modality.next("keyboard"),this._mostRecentTarget=Vr(o))},this._onMousedown=o=>{Date.now()-this._lastTouchMs<650||(this._modality.next(yE(o)?"keyboard":"mouse"),this._mostRecentTarget=Vr(o))},this._onTouchstart=o=>{bE(o)?this._modality.next("keyboard"):(this._lastTouchMs=Date.now(),this._modality.next("touch"),this._mostRecentTarget=Vr(o))},this._options={...eL,...s},this.modalityDetected=this._modality.pipe(hE(1)),this.modalityChanged=this.modalityDetected.pipe(Gs()),e.isBrowser&&i.runOutsideAngular(()=>{r.addEventListener("keydown",this._onKeydown,Ks),r.addEventListener("mousedown",this._onMousedown,Ks),r.addEventListener("touchstart",this._onTouchstart,Ks)})}get mostRecentModality(){return this._modality.value}ngOnDestroy(){this._modality.complete(),this._platform.isBrowser&&(document.removeEventListener("keydown",this._onKeydown,Ks),document.removeEventListener("mousedown",this._onMousedown,Ks),document.removeEventListener("touchstart",this._onTouchstart,Ks))}}return n.\u0275fac=function(e){return new(e||n)(v(pn),v(ie),v(ne),v(Jk,8))},n.\u0275prov=S({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const nL=new R("liveAnnouncerElement",{providedIn:"root",factory:function iL(){return null}}),rL=new R("LIVE_ANNOUNCER_DEFAULT_OPTIONS");let sL=(()=>{class n{constructor(e,i,r,s){this._ngZone=i,this._defaultOptions=s,this._document=r,this._liveElement=e||this._createLiveElement()}announce(e,...i){const r=this._defaultOptions;let s,o;return 1===i.length&&"number"==typeof i[0]?o=i[0]:[s,o]=i,this.clear(),clearTimeout(this._previousTimeout),s||(s=r&&r.politeness?r.politeness:"polite"),null==o&&r&&(o=r.duration),this._liveElement.setAttribute("aria-live",s),this._ngZone.runOutsideAngular(()=>(this._currentPromise||(this._currentPromise=new Promise(a=>this._currentResolve=a)),clearTimeout(this._previousTimeout),this._previousTimeout=setTimeout(()=>{this._liveElement.textContent=e,"number"==typeof o&&(this._previousTimeout=setTimeout(()=>this.clear(),o)),this._currentResolve(),this._currentPromise=this._currentResolve=void 0},100),this._currentPromise))}clear(){this._liveElement&&(this._liveElement.textContent="")}ngOnDestroy(){clearTimeout(this._previousTimeout),this._liveElement?.remove(),this._liveElement=null,this._currentResolve?.(),this._currentPromise=this._currentResolve=void 0}_createLiveElement(){const e="cdk-live-announcer-element",i=this._document.getElementsByClassName(e),r=this._document.createElement("div");for(let s=0;s<i.length;s++)i[s].remove();return r.classList.add(e),r.classList.add("cdk-visually-hidden"),r.setAttribute("aria-atomic","true"),r.setAttribute("aria-live","polite"),this._document.body.appendChild(r),r}}return n.\u0275fac=function(e){return new(e||n)(v(nL,8),v(ie),v(ne),v(rL,8))},n.\u0275prov=S({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const oL=new R("cdk-focus-monitor-default-options"),mu=hu({passive:!0,capture:!0});let aL=(()=>{class n{constructor(e,i,r,s,o){this._ngZone=e,this._platform=i,this._inputModalityDetector=r,this._origin=null,this._windowFocused=!1,this._originFromTouchInteraction=!1,this._elementInfo=new Map,this._monitoredElementCount=0,this._rootNodeFocusListenerCount=new Map,this._windowFocusListener=()=>{this._windowFocused=!0,this._windowFocusTimeoutId=window.setTimeout(()=>this._windowFocused=!1)},this._stopInputModalityDetector=new le,this._rootNodeFocusAndBlurListener=a=>{const l=Vr(a),c="focus"===a.type?this._onFocus:this._onBlur;for(let u=l;u;u=u.parentElement)c.call(this,a,u)},this._document=s,this._detectionMode=o?.detectionMode||0}monitor(e,i=!1){const r=Ri(e);if(!this._platform.isBrowser||1!==r.nodeType)return V(null);const s=function qF(n){if(function KF(){if(null==S0){const n=typeof document<"u"?document.head:null;S0=!(!n||!n.createShadowRoot&&!n.attachShadow)}return S0}()){const t=n.getRootNode?n.getRootNode():null;if(typeof ShadowRoot<"u"&&ShadowRoot&&t instanceof ShadowRoot)return t}return null}(r)||this._getDocument(),o=this._elementInfo.get(r);if(o)return i&&(o.checkChildren=!0),o.subject;const a={checkChildren:i,subject:new le,rootNode:s};return this._elementInfo.set(r,a),this._registerGlobalListeners(a),a.subject}stopMonitoring(e){const i=Ri(e),r=this._elementInfo.get(i);r&&(r.subject.complete(),this._setClasses(i),this._elementInfo.delete(i),this._removeGlobalListeners(r))}focusVia(e,i,r){const s=Ri(e);s===this._getDocument().activeElement?this._getClosestElementsInfo(s).forEach(([a,l])=>this._originChanged(a,i,l)):(this._setOrigin(i),"function"==typeof s.focus&&s.focus(r))}ngOnDestroy(){this._elementInfo.forEach((e,i)=>this.stopMonitoring(i))}_getDocument(){return this._document||document}_getWindow(){return this._getDocument().defaultView||window}_getFocusOrigin(e){return this._origin?this._originFromTouchInteraction?this._shouldBeAttributedToTouch(e)?"touch":"program":this._origin:this._windowFocused&&this._lastFocusOrigin?this._lastFocusOrigin:"program"}_shouldBeAttributedToTouch(e){return 1===this._detectionMode||!!e?.contains(this._inputModalityDetector._mostRecentTarget)}_setClasses(e,i){e.classList.toggle("cdk-focused",!!i),e.classList.toggle("cdk-touch-focused","touch"===i),e.classList.toggle("cdk-keyboard-focused","keyboard"===i),e.classList.toggle("cdk-mouse-focused","mouse"===i),e.classList.toggle("cdk-program-focused","program"===i)}_setOrigin(e,i=!1){this._ngZone.runOutsideAngular(()=>{this._origin=e,this._originFromTouchInteraction="touch"===e&&i,0===this._detectionMode&&(clearTimeout(this._originTimeoutId),this._originTimeoutId=setTimeout(()=>this._origin=null,this._originFromTouchInteraction?650:1))})}_onFocus(e,i){const r=this._elementInfo.get(i),s=Vr(e);!r||!r.checkChildren&&i!==s||this._originChanged(i,this._getFocusOrigin(s),r)}_onBlur(e,i){const r=this._elementInfo.get(i);!r||r.checkChildren&&e.relatedTarget instanceof Node&&i.contains(e.relatedTarget)||(this._setClasses(i),this._emitOrigin(r,null))}_emitOrigin(e,i){e.subject.observers.length&&this._ngZone.run(()=>e.subject.next(i))}_registerGlobalListeners(e){if(!this._platform.isBrowser)return;const i=e.rootNode,r=this._rootNodeFocusListenerCount.get(i)||0;r||this._ngZone.runOutsideAngular(()=>{i.addEventListener("focus",this._rootNodeFocusAndBlurListener,mu),i.addEventListener("blur",this._rootNodeFocusAndBlurListener,mu)}),this._rootNodeFocusListenerCount.set(i,r+1),1==++this._monitoredElementCount&&(this._ngZone.runOutsideAngular(()=>{this._getWindow().addEventListener("focus",this._windowFocusListener)}),this._inputModalityDetector.modalityDetected.pipe(Zt(this._stopInputModalityDetector)).subscribe(s=>{this._setOrigin(s,!0)}))}_removeGlobalListeners(e){const i=e.rootNode;if(this._rootNodeFocusListenerCount.has(i)){const r=this._rootNodeFocusListenerCount.get(i);r>1?this._rootNodeFocusListenerCount.set(i,r-1):(i.removeEventListener("focus",this._rootNodeFocusAndBlurListener,mu),i.removeEventListener("blur",this._rootNodeFocusAndBlurListener,mu),this._rootNodeFocusListenerCount.delete(i))}--this._monitoredElementCount||(this._getWindow().removeEventListener("focus",this._windowFocusListener),this._stopInputModalityDetector.next(),clearTimeout(this._windowFocusTimeoutId),clearTimeout(this._originTimeoutId))}_originChanged(e,i,r){this._setClasses(e,i),this._emitOrigin(r,i),this._lastFocusOrigin=i}_getClosestElementsInfo(e){const i=[];return this._elementInfo.forEach((r,s)=>{(s===e||r.checkChildren&&s.contains(e))&&i.push([s,r])}),i}}return n.\u0275fac=function(e){return new(e||n)(v(ie),v(pn),v(tL),v(ne,8),v(oL,8))},n.\u0275prov=S({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const EE="cdk-high-contrast-black-on-white",CE="cdk-high-contrast-white-on-black",P0="cdk-high-contrast-active";let lL=(()=>{class n{constructor(e,i){this._platform=e,this._document=i,this._breakpointSubscription=Eo(Uk).observe("(forced-colors: active)").subscribe(()=>{this._hasCheckedHighContrastMode&&(this._hasCheckedHighContrastMode=!1,this._applyBodyHighContrastModeCssClasses())})}getHighContrastMode(){if(!this._platform.isBrowser)return 0;const e=this._document.createElement("div");e.style.backgroundColor="rgb(1,2,3)",e.style.position="absolute",this._document.body.appendChild(e);const i=this._document.defaultView||window,r=i&&i.getComputedStyle?i.getComputedStyle(e):null,s=(r&&r.backgroundColor||"").replace(/ /g,"");switch(e.remove(),s){case"rgb(0,0,0)":return 2;case"rgb(255,255,255)":return 1}return 0}ngOnDestroy(){this._breakpointSubscription.unsubscribe()}_applyBodyHighContrastModeCssClasses(){if(!this._hasCheckedHighContrastMode&&this._platform.isBrowser&&this._document.body){const e=this._document.body.classList;e.remove(P0,EE,CE),this._hasCheckedHighContrastMode=!0;const i=this.getHighContrastMode();1===i?e.add(P0,EE):2===i&&e.add(P0,CE)}}}return n.\u0275fac=function(e){return new(e||n)(v(pn),v(ne))},n.\u0275prov=S({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();function cL(n,t){if(1&n&&oe(0,"mat-pseudo-checkbox",4),2&n){const e=T();w("state",e.selected?"checked":"unchecked")("disabled",e.disabled)}}function uL(n,t){if(1&n&&(x(0,"span",5),Be(1),L()),2&n){const e=T();M(1),Hn("(",e.group.label,")")}}const dL=["*"],fL=new R("mat-sanity-checks",{providedIn:"root",factory:function hL(){return!0}});let Rt=(()=>{class n{constructor(e,i,r){this._sanityChecks=i,this._document=r,this._hasDoneGlobalChecks=!1,e._applyBodyHighContrastModeCssClasses(),this._hasDoneGlobalChecks||(this._hasDoneGlobalChecks=!0)}_checkIsEnabled(e){return!T0()&&("boolean"==typeof this._sanityChecks?this._sanityChecks:!!this._sanityChecks[e])}}return n.\u0275fac=function(e){return new(e||n)(v(lL),v(fL,8),v(ne))},n.\u0275mod=me({type:n}),n.\u0275inj=pe({imports:[Da,Da]}),n})();function SE(n){return class extends n{constructor(...t){super(...t),this._disabled=!1}get disabled(){return this._disabled}set disabled(t){this._disabled=Dt(t)}}}function V0(n,t){return class extends n{constructor(...e){super(...e),this.defaultColor=t,this.color=t}get color(){return this._color}set color(e){const i=e||this.defaultColor;i!==this._color&&(this._color&&this._elementRef.nativeElement.classList.remove(`mat-${this._color}`),i&&this._elementRef.nativeElement.classList.add(`mat-${i}`),this._color=i)}}}function TE(n){return class extends n{constructor(...t){super(...t),this._disableRipple=!1}get disableRipple(){return this._disableRipple}set disableRipple(t){this._disableRipple=Dt(t)}}}function pL(n,t=0){return class extends n{constructor(...e){super(...e),this._tabIndex=t,this.defaultTabIndex=t}get tabIndex(){return this.disabled?-1:this._tabIndex}set tabIndex(e){this._tabIndex=null!=e?bt(e):this.defaultTabIndex}}}function IE(n){return class extends n{constructor(...t){super(...t),this.errorState=!1}updateErrorState(){const t=this.errorState,s=(this.errorStateMatcher||this._defaultErrorStateMatcher).isErrorState(this.ngControl?this.ngControl.control:null,this._parentFormGroup||this._parentForm);s!==t&&(this.errorState=s,this.stateChanges.next())}}}let B0=(()=>{class n{isErrorState(e,i){return!!(e&&e.invalid&&(e.touched||i&&i.submitted))}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=S({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();class mL{constructor(t,e,i,r=!1){this._renderer=t,this.element=e,this.config=i,this._animationForciblyDisabledThroughCss=r,this.state=3}fadeOut(){this._renderer.fadeOutRipple(this)}}const xE={enterDuration:225,exitDuration:150},H0=hu({passive:!0}),AE=["mousedown","touchstart"],RE=["mouseup","mouseleave","touchend","touchcancel"];class vL{constructor(t,e,i,r){this._target=t,this._ngZone=e,this._isPointerDown=!1,this._activeRipples=new Map,this._pointerUpEventsRegistered=!1,r.isBrowser&&(this._containerElement=Ri(i))}fadeInRipple(t,e,i={}){const r=this._containerRect=this._containerRect||this._containerElement.getBoundingClientRect(),s={...xE,...i.animation};i.centered&&(t=r.left+r.width/2,e=r.top+r.height/2);const o=i.radius||function yL(n,t,e){const i=Math.max(Math.abs(n-e.left),Math.abs(n-e.right)),r=Math.max(Math.abs(t-e.top),Math.abs(t-e.bottom));return Math.sqrt(i*i+r*r)}(t,e,r),a=t-r.left,l=e-r.top,c=s.enterDuration,u=document.createElement("div");u.classList.add("mat-ripple-element"),u.style.left=a-o+"px",u.style.top=l-o+"px",u.style.height=2*o+"px",u.style.width=2*o+"px",null!=i.color&&(u.style.backgroundColor=i.color),u.style.transitionDuration=`${c}ms`,this._containerElement.appendChild(u);const d=window.getComputedStyle(u),p=d.transitionDuration,g="none"===d.transitionProperty||"0s"===p||"0s, 0s"===p,m=new mL(this,u,i,g);u.style.transform="scale3d(1, 1, 1)",m.state=0,i.persistent||(this._mostRecentTransientRipple=m);let y=null;return!g&&(c||s.exitDuration)&&this._ngZone.runOutsideAngular(()=>{const b=()=>this._finishRippleTransition(m),I=()=>this._destroyRipple(m);u.addEventListener("transitionend",b),u.addEventListener("transitioncancel",I),y={onTransitionEnd:b,onTransitionCancel:I}}),this._activeRipples.set(m,y),(g||!c)&&this._finishRippleTransition(m),m}fadeOutRipple(t){if(2===t.state||3===t.state)return;const e=t.element,i={...xE,...t.config.animation};e.style.transitionDuration=`${i.exitDuration}ms`,e.style.opacity="0",t.state=2,(t._animationForciblyDisabledThroughCss||!i.exitDuration)&&this._finishRippleTransition(t)}fadeOutAll(){this._getActiveRipples().forEach(t=>t.fadeOut())}fadeOutAllNonPersistent(){this._getActiveRipples().forEach(t=>{t.config.persistent||t.fadeOut()})}setupTriggerEvents(t){const e=Ri(t);!e||e===this._triggerElement||(this._removeTriggerEvents(),this._triggerElement=e,this._registerEvents(AE))}handleEvent(t){"mousedown"===t.type?this._onMousedown(t):"touchstart"===t.type?this._onTouchStart(t):this._onPointerUp(),this._pointerUpEventsRegistered||(this._registerEvents(RE),this._pointerUpEventsRegistered=!0)}_finishRippleTransition(t){0===t.state?this._startFadeOutTransition(t):2===t.state&&this._destroyRipple(t)}_startFadeOutTransition(t){const e=t===this._mostRecentTransientRipple,{persistent:i}=t.config;t.state=1,!i&&(!e||!this._isPointerDown)&&t.fadeOut()}_destroyRipple(t){const e=this._activeRipples.get(t)??null;this._activeRipples.delete(t),this._activeRipples.size||(this._containerRect=null),t===this._mostRecentTransientRipple&&(this._mostRecentTransientRipple=null),t.state=3,null!==e&&(t.element.removeEventListener("transitionend",e.onTransitionEnd),t.element.removeEventListener("transitioncancel",e.onTransitionCancel)),t.element.remove()}_onMousedown(t){const e=yE(t),i=this._lastTouchStartEvent&&Date.now()<this._lastTouchStartEvent+800;!this._target.rippleDisabled&&!e&&!i&&(this._isPointerDown=!0,this.fadeInRipple(t.clientX,t.clientY,this._target.rippleConfig))}_onTouchStart(t){if(!this._target.rippleDisabled&&!bE(t)){this._lastTouchStartEvent=Date.now(),this._isPointerDown=!0;const e=t.changedTouches;for(let i=0;i<e.length;i++)this.fadeInRipple(e[i].clientX,e[i].clientY,this._target.rippleConfig)}}_onPointerUp(){!this._isPointerDown||(this._isPointerDown=!1,this._getActiveRipples().forEach(t=>{!t.config.persistent&&(1===t.state||t.config.terminateOnPointerUp&&0===t.state)&&t.fadeOut()}))}_registerEvents(t){this._ngZone.runOutsideAngular(()=>{t.forEach(e=>{this._triggerElement.addEventListener(e,this,H0)})})}_getActiveRipples(){return Array.from(this._activeRipples.keys())}_removeTriggerEvents(){this._triggerElement&&(AE.forEach(t=>{this._triggerElement.removeEventListener(t,this,H0)}),this._pointerUpEventsRegistered&&RE.forEach(t=>{this._triggerElement.removeEventListener(t,this,H0)}))}}const bL=new R("mat-ripple-global-options");let z0=(()=>{class n{constructor(e,i,r,s,o){this._elementRef=e,this._animationMode=o,this.radius=0,this._disabled=!1,this._isInitialized=!1,this._globalOptions=s||{},this._rippleRenderer=new vL(this,i,e,r)}get disabled(){return this._disabled}set disabled(e){e&&this.fadeOutAllNonPersistent(),this._disabled=e,this._setupTriggerEventsIfEnabled()}get trigger(){return this._trigger||this._elementRef.nativeElement}set trigger(e){this._trigger=e,this._setupTriggerEventsIfEnabled()}ngOnInit(){this._isInitialized=!0,this._setupTriggerEventsIfEnabled()}ngOnDestroy(){this._rippleRenderer._removeTriggerEvents()}fadeOutAll(){this._rippleRenderer.fadeOutAll()}fadeOutAllNonPersistent(){this._rippleRenderer.fadeOutAllNonPersistent()}get rippleConfig(){return{centered:this.centered,radius:this.radius,color:this.color,animation:{...this._globalOptions.animation,..."NoopAnimations"===this._animationMode?{enterDuration:0,exitDuration:0}:{},...this.animation},terminateOnPointerUp:this._globalOptions.terminateOnPointerUp}}get rippleDisabled(){return this.disabled||!!this._globalOptions.disabled}_setupTriggerEventsIfEnabled(){!this.disabled&&this._isInitialized&&this._rippleRenderer.setupTriggerEvents(this.trigger)}launch(e,i=0,r){return"number"==typeof e?this._rippleRenderer.fadeInRipple(e,i,{...this.rippleConfig,...r}):this._rippleRenderer.fadeInRipple(0,0,{...this.rippleConfig,...e})}}return n.\u0275fac=function(e){return new(e||n)(_(se),_(ie),_(pn),_(bL,8),_(Mr,8))},n.\u0275dir=O({type:n,selectors:[["","mat-ripple",""],["","matRipple",""]],hostAttrs:[1,"mat-ripple"],hostVars:2,hostBindings:function(e,i){2&e&&Ht("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})(),OE=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=me({type:n}),n.\u0275inj=pe({imports:[Rt,Rt]}),n})(),wL=(()=>{class n{constructor(e){this._animationMode=e,this.state="unchecked",this.disabled=!1}}return n.\u0275fac=function(e){return new(e||n)(_(Mr,8))},n.\u0275cmp=Ft({type:n,selectors:[["mat-pseudo-checkbox"]],hostAttrs:[1,"mat-pseudo-checkbox"],hostVars:8,hostBindings:function(e,i){2&e&&Ht("mat-pseudo-checkbox-indeterminate","indeterminate"===i.state)("mat-pseudo-checkbox-checked","checked"===i.state)("mat-pseudo-checkbox-disabled",i.disabled)("_mat-animation-noopable","NoopAnimations"===i._animationMode)},inputs:{state:"state",disabled:"disabled"},decls:0,vars:0,template:function(e,i){},styles:['.mat-pseudo-checkbox{width:16px;height:16px;border:2px solid;border-radius:2px;cursor:pointer;display:inline-block;vertical-align:middle;box-sizing:border-box;position:relative;flex-shrink:0;transition:border-color 90ms cubic-bezier(0, 0, 0.2, 0.1),background-color 90ms cubic-bezier(0, 0, 0.2, 0.1)}.mat-pseudo-checkbox::after{position:absolute;opacity:0;content:"";border-bottom:2px solid currentColor;transition:opacity 90ms cubic-bezier(0, 0, 0.2, 0.1)}.mat-pseudo-checkbox.mat-pseudo-checkbox-checked,.mat-pseudo-checkbox.mat-pseudo-checkbox-indeterminate{border-color:rgba(0,0,0,0)}.mat-pseudo-checkbox._mat-animation-noopable{transition:none !important;animation:none !important}.mat-pseudo-checkbox._mat-animation-noopable::after{transition:none}.mat-pseudo-checkbox-disabled{cursor:default}.mat-pseudo-checkbox-indeterminate::after{top:5px;left:1px;width:10px;opacity:1;border-radius:2px}.mat-pseudo-checkbox-checked::after{top:2.4px;left:1px;width:8px;height:3px;border-left:2px solid currentColor;transform:rotate(-45deg);opacity:1;box-sizing:content-box}'],encapsulation:2,changeDetection:0}),n})(),EL=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=me({type:n}),n.\u0275inj=pe({imports:[Rt]}),n})();const FE=new R("MAT_OPTION_PARENT_COMPONENT"),kE=new R("MatOptgroup");let CL=0;class DL{constructor(t,e=!1){this.source=t,this.isUserInput=e}}let ML=(()=>{class n{constructor(e,i,r,s){this._element=e,this._changeDetectorRef=i,this._parent=r,this.group=s,this._selected=!1,this._active=!1,this._disabled=!1,this._mostRecentViewValue="",this.id="mat-option-"+CL++,this.onSelectionChange=new Y,this._stateChanges=new le}get multiple(){return this._parent&&this._parent.multiple}get selected(){return this._selected}get disabled(){return this.group&&this.group.disabled||this._disabled}set disabled(e){this._disabled=Dt(e)}get disableRipple(){return!(!this._parent||!this._parent.disableRipple)}get active(){return this._active}get viewValue(){return(this._getHostElement().textContent||"").trim()}select(){this._selected||(this._selected=!0,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent())}deselect(){this._selected&&(this._selected=!1,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent())}focus(e,i){const r=this._getHostElement();"function"==typeof r.focus&&r.focus(i)}setActiveStyles(){this._active||(this._active=!0,this._changeDetectorRef.markForCheck())}setInactiveStyles(){this._active&&(this._active=!1,this._changeDetectorRef.markForCheck())}getLabel(){return this.viewValue}_handleKeydown(e){(13===e.keyCode||32===e.keyCode)&&!Ma(e)&&(this._selectViaInteraction(),e.preventDefault())}_selectViaInteraction(){this.disabled||(this._selected=!this.multiple||!this._selected,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent(!0))}_getAriaSelected(){return this.selected||!this.multiple&&null}_getTabIndex(){return this.disabled?"-1":"0"}_getHostElement(){return this._element.nativeElement}ngAfterViewChecked(){if(this._selected){const e=this.viewValue;e!==this._mostRecentViewValue&&(this._mostRecentViewValue=e,this._stateChanges.next())}}ngOnDestroy(){this._stateChanges.complete()}_emitSelectionChangeEvent(e=!1){this.onSelectionChange.emit(new DL(this,e))}}return n.\u0275fac=function(e){Mh()},n.\u0275dir=O({type:n,inputs:{value:"value",id:"id",disabled:"disabled"},outputs:{onSelectionChange:"onSelectionChange"}}),n})(),LE=(()=>{class n extends ML{constructor(e,i,r,s){super(e,i,r,s)}}return n.\u0275fac=function(e){return new(e||n)(_(se),_(Si),_(FE,8),_(kE,8))},n.\u0275cmp=Ft({type:n,selectors:[["mat-option"]],hostAttrs:["role","option",1,"mat-option","mat-focus-indicator"],hostVars:12,hostBindings:function(e,i){1&e&&W("click",function(){return i._selectViaInteraction()})("keydown",function(s){return i._handleKeydown(s)}),2&e&&(Hl("id",i.id),Ze("tabindex",i._getTabIndex())("aria-selected",i._getAriaSelected())("aria-disabled",i.disabled.toString()),Ht("mat-selected",i.selected)("mat-option-multiple",i.multiple)("mat-active",i.active)("mat-option-disabled",i.disabled))},exportAs:["matOption"],features:[ce],ngContentSelectors:dL,decls:5,vars:4,consts:[["class","mat-option-pseudo-checkbox",3,"state","disabled",4,"ngIf"],[1,"mat-option-text"],["class","cdk-visually-hidden",4,"ngIf"],["mat-ripple","",1,"mat-option-ripple",3,"matRippleTrigger","matRippleDisabled"],[1,"mat-option-pseudo-checkbox",3,"state","disabled"],[1,"cdk-visually-hidden"]],template:function(e,i){1&e&&(Er(),C(0,cL,1,2,"mat-pseudo-checkbox",0),x(1,"span",1),Bt(2),L(),C(3,uL,2,1,"span",2),oe(4,"div",3)),2&e&&(w("ngIf",i.multiple),M(3),w("ngIf",i.group&&i.group._inert),M(1),w("matRippleTrigger",i._getHostElement())("matRippleDisabled",i.disabled||i.disableRipple))},dependencies:[z0,qi,wL],styles:['.mat-option{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;line-height:48px;height:48px;padding:0 16px;text-align:left;text-decoration:none;max-width:100%;position:relative;cursor:pointer;outline:none;display:flex;flex-direction:row;max-width:100%;box-sizing:border-box;align-items:center;-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-option[disabled]{cursor:default}[dir=rtl] .mat-option{text-align:right}.mat-option .mat-icon{margin-right:16px;vertical-align:middle}.mat-option .mat-icon svg{vertical-align:top}[dir=rtl] .mat-option .mat-icon{margin-left:16px;margin-right:0}.mat-option[aria-disabled=true]{-webkit-user-select:none;user-select:none;cursor:default}.mat-optgroup .mat-option:not(.mat-option-multiple){padding-left:32px}[dir=rtl] .mat-optgroup .mat-option:not(.mat-option-multiple){padding-left:16px;padding-right:32px}.mat-option.mat-active::before{content:""}.cdk-high-contrast-active .mat-option[aria-disabled=true]{opacity:.5}.cdk-high-contrast-active .mat-option.mat-selected:not(.mat-option-multiple)::after{content:"";position:absolute;top:50%;right:16px;transform:translateY(-50%);width:10px;height:0;border-bottom:solid 10px;border-radius:10px}[dir=rtl] .cdk-high-contrast-active .mat-option.mat-selected:not(.mat-option-multiple)::after{right:auto;left:16px}.mat-option-text{display:inline-block;flex-grow:1;overflow:hidden;text-overflow:ellipsis}.mat-option .mat-option-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-option-pseudo-checkbox{margin-right:8px}[dir=rtl] .mat-option-pseudo-checkbox{margin-left:8px;margin-right:0}'],encapsulation:2,changeDetection:0}),n})();function NE(n,t,e){if(e.length){let i=t.toArray(),r=e.toArray(),s=0;for(let o=0;o<n+1;o++)i[o].group&&i[o].group===r[s]&&s++;return s}return 0}let PE=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=me({type:n}),n.\u0275inj=pe({imports:[OE,Zi,Rt,EL]}),n})(),VE=(()=>{class n{create(e){return typeof MutationObserver>"u"?null:new MutationObserver(e)}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=S({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),TL=(()=>{class n{constructor(e){this._mutationObserverFactory=e,this._observedElements=new Map}ngOnDestroy(){this._observedElements.forEach((e,i)=>this._cleanupObserver(i))}observe(e){const i=Ri(e);return new Te(r=>{const o=this._observeElement(i).subscribe(r);return()=>{o.unsubscribe(),this._unobserveElement(i)}})}_observeElement(e){if(this._observedElements.has(e))this._observedElements.get(e).count++;else{const i=new le,r=this._mutationObserverFactory.create(s=>i.next(s));r&&r.observe(e,{characterData:!0,childList:!0,subtree:!0}),this._observedElements.set(e,{observer:r,stream:i,count:1})}return this._observedElements.get(e).stream}_unobserveElement(e){this._observedElements.has(e)&&(this._observedElements.get(e).count--,this._observedElements.get(e).count||this._cleanupObserver(e))}_cleanupObserver(e){if(this._observedElements.has(e)){const{observer:i,stream:r}=this._observedElements.get(e);i&&i.disconnect(),r.complete(),this._observedElements.delete(e)}}}return n.\u0275fac=function(e){return new(e||n)(v(VE))},n.\u0275prov=S({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),IL=(()=>{class n{constructor(e,i,r){this._contentObserver=e,this._elementRef=i,this._ngZone=r,this.event=new Y,this._disabled=!1,this._currentSubscription=null}get disabled(){return this._disabled}set disabled(e){this._disabled=Dt(e),this._disabled?this._unsubscribe():this._subscribe()}get debounce(){return this._debounce}set debounce(e){this._debounce=bt(e),this._subscribe()}ngAfterContentInit(){!this._currentSubscription&&!this.disabled&&this._subscribe()}ngOnDestroy(){this._unsubscribe()}_subscribe(){this._unsubscribe();const e=this._contentObserver.observe(this._elementRef);this._ngZone.runOutsideAngular(()=>{this._currentSubscription=(this.debounce?e.pipe(gu(this.debounce)):e).subscribe(this.event)})}_unsubscribe(){this._currentSubscription?.unsubscribe()}}return n.\u0275fac=function(e){return new(e||n)(_(TL),_(se),_(ie))},n.\u0275dir=O({type:n,selectors:[["","cdkObserveContent",""]],inputs:{disabled:["cdkObserveContentDisabled","disabled"],debounce:"debounce"},outputs:{event:"cdkObserveContent"},exportAs:["cdkObserveContent"]}),n})(),xL=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=me({type:n}),n.\u0275inj=pe({providers:[VE]}),n})();const AL=["connectionContainer"],RL=["inputContainer"],OL=["label"];function FL(n,t){1&n&&(_t(0),x(1,"div",14),oe(2,"div",15)(3,"div",16)(4,"div",17),L(),x(5,"div",18),oe(6,"div",15)(7,"div",16)(8,"div",17),L(),vt())}function kL(n,t){if(1&n){const e=yt();x(0,"div",19),W("cdkObserveContent",function(){return Ce(e),De(T().updateOutlineGap())}),Bt(1,1),L()}2&n&&w("cdkObserveContentDisabled","outline"!=T().appearance)}function LL(n,t){if(1&n&&(_t(0),Bt(1,2),x(2,"span"),Be(3),L(),vt()),2&n){const e=T(2);M(3),Kt(e._control.placeholder)}}function NL(n,t){1&n&&Bt(0,3,["*ngSwitchCase","true"])}function PL(n,t){1&n&&(x(0,"span",23),Be(1," *"),L())}function VL(n,t){if(1&n){const e=yt();x(0,"label",20,21),W("cdkObserveContent",function(){return Ce(e),De(T().updateOutlineGap())}),C(2,LL,4,1,"ng-container",12),C(3,NL,1,0,"ng-content",12),C(4,PL,2,0,"span",22),L()}if(2&n){const e=T();Ht("mat-empty",e._control.empty&&!e._shouldAlwaysFloat())("mat-form-field-empty",e._control.empty&&!e._shouldAlwaysFloat())("mat-accent","accent"==e.color)("mat-warn","warn"==e.color),w("cdkObserveContentDisabled","outline"!=e.appearance)("id",e._labelId)("ngSwitch",e._hasLabel()),Ze("for",e._control.id)("aria-owns",e._control.id),M(2),w("ngSwitchCase",!1),M(1),w("ngSwitchCase",!0),M(1),w("ngIf",!e.hideRequiredMarker&&e._control.required&&!e._control.disabled)}}function BL(n,t){1&n&&(x(0,"div",24),Bt(1,4),L())}function HL(n,t){if(1&n&&(x(0,"div",25),oe(1,"span",26),L()),2&n){const e=T();M(1),Ht("mat-accent","accent"==e.color)("mat-warn","warn"==e.color)}}function zL(n,t){1&n&&(x(0,"div"),Bt(1,5),L()),2&n&&w("@transitionMessages",T()._subscriptAnimationState)}function jL(n,t){if(1&n&&(x(0,"div",30),Be(1),L()),2&n){const e=T(2);w("id",e._hintLabelId),M(1),Kt(e.hintLabel)}}function UL(n,t){if(1&n&&(x(0,"div",27),C(1,jL,2,2,"div",28),Bt(2,6),oe(3,"div",29),Bt(4,7),L()),2&n){const e=T();w("@transitionMessages",e._subscriptAnimationState),M(1),w("ngIf",e.hintLabel)}}const $L=["*",[["","matPrefix",""]],[["mat-placeholder"]],[["mat-label"]],[["","matSuffix",""]],[["mat-error"]],[["mat-hint",3,"align","end"]],[["mat-hint","align","end"]]],YL=["*","[matPrefix]","mat-placeholder","mat-label","[matSuffix]","mat-error","mat-hint:not([align='end'])","mat-hint[align='end']"];let GL=0;const BE=new R("MatError");let HE=(()=>{class n{constructor(e,i){this.id="mat-error-"+GL++,e||i.nativeElement.setAttribute("aria-live","polite")}}return n.\u0275fac=function(e){return new(e||n)(ji("aria-live"),_(se))},n.\u0275dir=O({type:n,selectors:[["mat-error"]],hostAttrs:["aria-atomic","true",1,"mat-error"],hostVars:1,hostBindings:function(e,i){2&e&&Ze("id",i.id)},inputs:{id:"id"},features:[we([{provide:BE,useExisting:n}])]}),n})();const WL={transitionMessages:up("transitionMessages",[wc("enter",Qi({opacity:1,transform:"translateY(0%)"})),Ec("void => enter",[Qi({opacity:0,transform:"translateY(-5px)"}),dp("300ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])};let _u=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=O({type:n}),n})();const KL=new R("MatHint");let j0=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=O({type:n,selectors:[["mat-label"]]}),n})(),qL=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=O({type:n,selectors:[["mat-placeholder"]]}),n})();const zE=new R("MatPrefix");let ZL=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=O({type:n,selectors:[["","matPrefix",""]],features:[we([{provide:zE,useExisting:n}])]}),n})();const jE=new R("MatSuffix");let XL=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=O({type:n,selectors:[["","matSuffix",""]],features:[we([{provide:jE,useExisting:n}])]}),n})(),UE=0;const JL=V0(class{constructor(n){this._elementRef=n}},"primary"),eN=new R("MAT_FORM_FIELD_DEFAULT_OPTIONS"),U0=new R("MatFormField");let YE=(()=>{class n extends JL{constructor(e,i,r,s,o,a,l){super(e),this._changeDetectorRef=i,this._dir=r,this._defaults=s,this._platform=o,this._ngZone=a,this._outlineGapCalculationNeededImmediately=!1,this._outlineGapCalculationNeededOnStable=!1,this._destroyed=new le,this._hideRequiredMarker=!1,this._showAlwaysAnimate=!1,this._subscriptAnimationState="",this._hintLabel="",this._hintLabelId="mat-hint-"+UE++,this._labelId="mat-form-field-label-"+UE++,this.floatLabel=this._getDefaultFloatLabelState(),this._animationsEnabled="NoopAnimations"!==l,this.appearance=s?.appearance||"legacy",s&&(this._hideRequiredMarker=Boolean(s.hideRequiredMarker),s.color&&(this.color=this.defaultColor=s.color))}get appearance(){return this._appearance}set appearance(e){const i=this._appearance;this._appearance=e||this._defaults?.appearance||"legacy","outline"===this._appearance&&i!==e&&(this._outlineGapCalculationNeededOnStable=!0)}get hideRequiredMarker(){return this._hideRequiredMarker}set hideRequiredMarker(e){this._hideRequiredMarker=Dt(e)}_shouldAlwaysFloat(){return"always"===this.floatLabel&&!this._showAlwaysAnimate}_canLabelFloat(){return"never"!==this.floatLabel}get hintLabel(){return this._hintLabel}set hintLabel(e){this._hintLabel=e,this._processHints()}get floatLabel(){return"legacy"!==this.appearance&&"never"===this._floatLabel?"auto":this._floatLabel}set floatLabel(e){e!==this._floatLabel&&(this._floatLabel=e||this._getDefaultFloatLabelState(),this._changeDetectorRef.markForCheck())}get _control(){return this._explicitFormFieldControl||this._controlNonStatic||this._controlStatic}set _control(e){this._explicitFormFieldControl=e}getLabelId(){return this._hasFloatingLabel()?this._labelId:null}getConnectedOverlayOrigin(){return this._connectionContainerRef||this._elementRef}ngAfterContentInit(){this._validateControlChild();const e=this._control;e.controlType&&this._elementRef.nativeElement.classList.add(`mat-form-field-type-${e.controlType}`),e.stateChanges.pipe(Hr(null)).subscribe(()=>{this._validatePlaceholders(),this._syncDescribedByIds(),this._changeDetectorRef.markForCheck()}),e.ngControl&&e.ngControl.valueChanges&&e.ngControl.valueChanges.pipe(Zt(this._destroyed)).subscribe(()=>this._changeDetectorRef.markForCheck()),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.pipe(Zt(this._destroyed)).subscribe(()=>{this._outlineGapCalculationNeededOnStable&&this.updateOutlineGap()})}),ur(this._prefixChildren.changes,this._suffixChildren.changes).subscribe(()=>{this._outlineGapCalculationNeededOnStable=!0,this._changeDetectorRef.markForCheck()}),this._hintChildren.changes.pipe(Hr(null)).subscribe(()=>{this._processHints(),this._changeDetectorRef.markForCheck()}),this._errorChildren.changes.pipe(Hr(null)).subscribe(()=>{this._syncDescribedByIds(),this._changeDetectorRef.markForCheck()}),this._dir&&this._dir.change.pipe(Zt(this._destroyed)).subscribe(()=>{"function"==typeof requestAnimationFrame?this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>this.updateOutlineGap())}):this.updateOutlineGap()})}ngAfterContentChecked(){this._validateControlChild(),this._outlineGapCalculationNeededImmediately&&this.updateOutlineGap()}ngAfterViewInit(){this._subscriptAnimationState="enter",this._changeDetectorRef.detectChanges()}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete()}_shouldForward(e){const i=this._control?this._control.ngControl:null;return i&&i[e]}_hasPlaceholder(){return!!(this._control&&this._control.placeholder||this._placeholderChild)}_hasLabel(){return!(!this._labelChildNonStatic&&!this._labelChildStatic)}_shouldLabelFloat(){return this._canLabelFloat()&&(this._control&&this._control.shouldLabelFloat||this._shouldAlwaysFloat())}_hideControlPlaceholder(){return"legacy"===this.appearance&&!this._hasLabel()||this._hasLabel()&&!this._shouldLabelFloat()}_hasFloatingLabel(){return this._hasLabel()||"legacy"===this.appearance&&this._hasPlaceholder()}_getDisplayedMessages(){return this._errorChildren&&this._errorChildren.length>0&&this._control.errorState?"error":"hint"}_animateAndLockLabel(){this._hasFloatingLabel()&&this._canLabelFloat()&&(this._animationsEnabled&&this._label&&(this._showAlwaysAnimate=!0,lu(this._label.nativeElement,"transitionend").pipe(Yt(1)).subscribe(()=>{this._showAlwaysAnimate=!1})),this.floatLabel="always",this._changeDetectorRef.markForCheck())}_validatePlaceholders(){}_processHints(){this._validateHints(),this._syncDescribedByIds()}_validateHints(){}_getDefaultFloatLabelState(){return this._defaults&&this._defaults.floatLabel||"auto"}_syncDescribedByIds(){if(this._control){let e=[];if(this._control.userAriaDescribedBy&&"string"==typeof this._control.userAriaDescribedBy&&e.push(...this._control.userAriaDescribedBy.split(" ")),"hint"===this._getDisplayedMessages()){const i=this._hintChildren?this._hintChildren.find(s=>"start"===s.align):null,r=this._hintChildren?this._hintChildren.find(s=>"end"===s.align):null;i?e.push(i.id):this._hintLabel&&e.push(this._hintLabelId),r&&e.push(r.id)}else this._errorChildren&&e.push(...this._errorChildren.map(i=>i.id));this._control.setDescribedByIds(e)}}_validateControlChild(){}updateOutlineGap(){const e=this._label?this._label.nativeElement:null,i=this._connectionContainerRef.nativeElement,r=".mat-form-field-outline-start",s=".mat-form-field-outline-gap";if("outline"!==this.appearance||!this._platform.isBrowser)return;if(!e||!e.children.length||!e.textContent.trim()){const u=i.querySelectorAll(`${r}, ${s}`);for(let d=0;d<u.length;d++)u[d].style.width="0";return}if(!this._isAttachedToDOM())return void(this._outlineGapCalculationNeededImmediately=!0);let o=0,a=0;const l=i.querySelectorAll(r),c=i.querySelectorAll(s);if(this._label&&this._label.nativeElement.children.length){const u=i.getBoundingClientRect();if(0===u.width&&0===u.height)return this._outlineGapCalculationNeededOnStable=!0,void(this._outlineGapCalculationNeededImmediately=!1);const d=this._getStartEnd(u),h=e.children,p=this._getStartEnd(h[0].getBoundingClientRect());let g=0;for(let m=0;m<h.length;m++)g+=h[m].offsetWidth;o=Math.abs(p-d)-5,a=g>0?.75*g+10:0}for(let u=0;u<l.length;u++)l[u].style.width=`${o}px`;for(let u=0;u<c.length;u++)c[u].style.width=`${a}px`;this._outlineGapCalculationNeededOnStable=this._outlineGapCalculationNeededImmediately=!1}_getStartEnd(e){return this._dir&&"rtl"===this._dir.value?e.right:e.left}_isAttachedToDOM(){const e=this._elementRef.nativeElement;if(e.getRootNode){const i=e.getRootNode();return i&&i!==e}return document.documentElement.contains(e)}}return n.\u0275fac=function(e){return new(e||n)(_(se),_(Si),_(Ca,8),_(eN,8),_(pn),_(ie),_(Mr,8))},n.\u0275cmp=Ft({type:n,selectors:[["mat-form-field"]],contentQueries:function(e,i,r){if(1&e&&(jt(r,_u,5),jt(r,_u,7),jt(r,j0,5),jt(r,j0,7),jt(r,qL,5),jt(r,BE,5),jt(r,KL,5),jt(r,zE,5),jt(r,jE,5)),2&e){let s;He(s=ze())&&(i._controlNonStatic=s.first),He(s=ze())&&(i._controlStatic=s.first),He(s=ze())&&(i._labelChildNonStatic=s.first),He(s=ze())&&(i._labelChildStatic=s.first),He(s=ze())&&(i._placeholderChild=s.first),He(s=ze())&&(i._errorChildren=s),He(s=ze())&&(i._hintChildren=s),He(s=ze())&&(i._prefixChildren=s),He(s=ze())&&(i._suffixChildren=s)}},viewQuery:function(e,i){if(1&e&&(ri(AL,7),ri(RL,5),ri(OL,5)),2&e){let r;He(r=ze())&&(i._connectionContainerRef=r.first),He(r=ze())&&(i._inputContainerRef=r.first),He(r=ze())&&(i._label=r.first)}},hostAttrs:[1,"mat-form-field"],hostVars:40,hostBindings:function(e,i){2&e&&Ht("mat-form-field-appearance-standard","standard"==i.appearance)("mat-form-field-appearance-fill","fill"==i.appearance)("mat-form-field-appearance-outline","outline"==i.appearance)("mat-form-field-appearance-legacy","legacy"==i.appearance)("mat-form-field-invalid",i._control.errorState)("mat-form-field-can-float",i._canLabelFloat())("mat-form-field-should-float",i._shouldLabelFloat())("mat-form-field-has-label",i._hasFloatingLabel())("mat-form-field-hide-placeholder",i._hideControlPlaceholder())("mat-form-field-disabled",i._control.disabled)("mat-form-field-autofilled",i._control.autofilled)("mat-focused",i._control.focused)("ng-untouched",i._shouldForward("untouched"))("ng-touched",i._shouldForward("touched"))("ng-pristine",i._shouldForward("pristine"))("ng-dirty",i._shouldForward("dirty"))("ng-valid",i._shouldForward("valid"))("ng-invalid",i._shouldForward("invalid"))("ng-pending",i._shouldForward("pending"))("_mat-animation-noopable",!i._animationsEnabled)},inputs:{color:"color",appearance:"appearance",hideRequiredMarker:"hideRequiredMarker",hintLabel:"hintLabel",floatLabel:"floatLabel"},exportAs:["matFormField"],features:[we([{provide:U0,useExisting:n}]),ce],ngContentSelectors:YL,decls:15,vars:8,consts:[[1,"mat-form-field-wrapper"],[1,"mat-form-field-flex",3,"click"],["connectionContainer",""],[4,"ngIf"],["class","mat-form-field-prefix",3,"cdkObserveContentDisabled","cdkObserveContent",4,"ngIf"],[1,"mat-form-field-infix"],["inputContainer",""],[1,"mat-form-field-label-wrapper"],["class","mat-form-field-label",3,"cdkObserveContentDisabled","id","mat-empty","mat-form-field-empty","mat-accent","mat-warn","ngSwitch","cdkObserveContent",4,"ngIf"],["class","mat-form-field-suffix",4,"ngIf"],["class","mat-form-field-underline",4,"ngIf"],[1,"mat-form-field-subscript-wrapper",3,"ngSwitch"],[4,"ngSwitchCase"],["class","mat-form-field-hint-wrapper",4,"ngSwitchCase"],[1,"mat-form-field-outline"],[1,"mat-form-field-outline-start"],[1,"mat-form-field-outline-gap"],[1,"mat-form-field-outline-end"],[1,"mat-form-field-outline","mat-form-field-outline-thick"],[1,"mat-form-field-prefix",3,"cdkObserveContentDisabled","cdkObserveContent"],[1,"mat-form-field-label",3,"cdkObserveContentDisabled","id","ngSwitch","cdkObserveContent"],["label",""],["class","mat-placeholder-required mat-form-field-required-marker","aria-hidden","true",4,"ngIf"],["aria-hidden","true",1,"mat-placeholder-required","mat-form-field-required-marker"],[1,"mat-form-field-suffix"],[1,"mat-form-field-underline"],[1,"mat-form-field-ripple"],[1,"mat-form-field-hint-wrapper"],["class","mat-hint",3,"id",4,"ngIf"],[1,"mat-form-field-hint-spacer"],[1,"mat-hint",3,"id"]],template:function(e,i){1&e&&(Er($L),x(0,"div",0)(1,"div",1,2),W("click",function(s){return i._control.onContainerClick&&i._control.onContainerClick(s)}),C(3,FL,9,0,"ng-container",3),C(4,kL,2,1,"div",4),x(5,"div",5,6),Bt(7),x(8,"span",7),C(9,VL,5,16,"label",8),L()(),C(10,BL,2,0,"div",9),L(),C(11,HL,2,4,"div",10),x(12,"div",11),C(13,zL,2,1,"div",12),C(14,UL,5,2,"div",13),L()()),2&e&&(M(3),w("ngIf","outline"==i.appearance),M(1),w("ngIf",i._prefixChildren.length),M(5),w("ngIf",i._hasFloatingLabel()),M(1),w("ngIf",i._suffixChildren.length),M(1),w("ngIf","outline"!=i.appearance),M(1),w("ngSwitch",i._getDisplayedMessages()),M(1),w("ngSwitchCase","error"),M(1),w("ngSwitchCase","hint"))},dependencies:[qi,Bs,gc,IL],styles:[".mat-form-field{display:inline-block;position:relative;text-align:left}[dir=rtl] .mat-form-field{text-align:right}.mat-form-field-wrapper{position:relative}.mat-form-field-flex{display:inline-flex;align-items:baseline;box-sizing:border-box;width:100%}.mat-form-field-prefix,.mat-form-field-suffix{white-space:nowrap;flex:none;position:relative}.mat-form-field-infix{display:block;position:relative;flex:auto;min-width:0;width:180px}.cdk-high-contrast-active .mat-form-field-infix{border-image:linear-gradient(transparent, transparent)}.mat-form-field-label-wrapper{position:absolute;left:0;box-sizing:content-box;width:100%;height:100%;overflow:hidden;pointer-events:none}[dir=rtl] .mat-form-field-label-wrapper{left:auto;right:0}.mat-form-field-label{position:absolute;left:0;font:inherit;pointer-events:none;width:100%;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;transform-origin:0 0;transition:transform 400ms cubic-bezier(0.25, 0.8, 0.25, 1),color 400ms cubic-bezier(0.25, 0.8, 0.25, 1),width 400ms cubic-bezier(0.25, 0.8, 0.25, 1);display:none}[dir=rtl] .mat-form-field-label{transform-origin:100% 0;left:auto;right:0}.cdk-high-contrast-active .mat-form-field-disabled .mat-form-field-label{color:GrayText}.mat-form-field-empty.mat-form-field-label,.mat-form-field-can-float.mat-form-field-should-float .mat-form-field-label{display:block}.mat-form-field-autofill-control:-webkit-autofill+.mat-form-field-label-wrapper .mat-form-field-label{display:none}.mat-form-field-can-float .mat-form-field-autofill-control:-webkit-autofill+.mat-form-field-label-wrapper .mat-form-field-label{display:block;transition:none}.mat-input-server:focus+.mat-form-field-label-wrapper .mat-form-field-label,.mat-input-server[placeholder]:not(:placeholder-shown)+.mat-form-field-label-wrapper .mat-form-field-label{display:none}.mat-form-field-can-float .mat-input-server:focus+.mat-form-field-label-wrapper .mat-form-field-label,.mat-form-field-can-float .mat-input-server[placeholder]:not(:placeholder-shown)+.mat-form-field-label-wrapper .mat-form-field-label{display:block}.mat-form-field-label:not(.mat-form-field-empty){transition:none}.mat-form-field-underline{position:absolute;width:100%;pointer-events:none;transform:scale3d(1, 1.0001, 1)}.mat-form-field-ripple{position:absolute;left:0;width:100%;transform-origin:50%;transform:scaleX(0.5);opacity:0;transition:background-color 300ms cubic-bezier(0.55, 0, 0.55, 0.2)}.mat-form-field.mat-focused .mat-form-field-ripple,.mat-form-field.mat-form-field-invalid .mat-form-field-ripple{opacity:1;transform:none;transition:transform 300ms cubic-bezier(0.25, 0.8, 0.25, 1),opacity 100ms cubic-bezier(0.25, 0.8, 0.25, 1),background-color 300ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-form-field-subscript-wrapper{position:absolute;box-sizing:border-box;width:100%;overflow:hidden}.mat-form-field-subscript-wrapper .mat-icon,.mat-form-field-label-wrapper .mat-icon{width:1em;height:1em;font-size:inherit;vertical-align:baseline}.mat-form-field-hint-wrapper{display:flex}.mat-form-field-hint-spacer{flex:1 0 1em}.mat-error{display:block}.mat-form-field-control-wrapper{position:relative}.mat-form-field-hint-end{order:1}.mat-form-field._mat-animation-noopable .mat-form-field-label,.mat-form-field._mat-animation-noopable .mat-form-field-ripple{transition:none}",'.mat-form-field-appearance-fill .mat-form-field-flex{border-radius:4px 4px 0 0;padding:.75em .75em 0 .75em}.cdk-high-contrast-active .mat-form-field-appearance-fill .mat-form-field-flex{outline:solid 1px}.cdk-high-contrast-active .mat-form-field-appearance-fill.mat-form-field-disabled .mat-form-field-flex{outline-color:GrayText}.cdk-high-contrast-active .mat-form-field-appearance-fill.mat-focused .mat-form-field-flex{outline:dashed 3px}.mat-form-field-appearance-fill .mat-form-field-underline::before{content:"";display:block;position:absolute;bottom:0;height:1px;width:100%}.mat-form-field-appearance-fill .mat-form-field-ripple{bottom:0;height:2px}.cdk-high-contrast-active .mat-form-field-appearance-fill .mat-form-field-ripple{height:0}.mat-form-field-appearance-fill:not(.mat-form-field-disabled) .mat-form-field-flex:hover~.mat-form-field-underline .mat-form-field-ripple{opacity:1;transform:none;transition:opacity 600ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-form-field-appearance-fill._mat-animation-noopable:not(.mat-form-field-disabled) .mat-form-field-flex:hover~.mat-form-field-underline .mat-form-field-ripple{transition:none}.mat-form-field-appearance-fill .mat-form-field-subscript-wrapper{padding:0 1em}','.mat-input-element{font:inherit;background:rgba(0,0,0,0);color:currentColor;border:none;outline:none;padding:0;margin:0;width:100%;max-width:100%;vertical-align:bottom;text-align:inherit;box-sizing:content-box}.mat-input-element:-moz-ui-invalid{box-shadow:none}.mat-input-element,.mat-input-element::-webkit-search-cancel-button,.mat-input-element::-webkit-search-decoration,.mat-input-element::-webkit-search-results-button,.mat-input-element::-webkit-search-results-decoration{-webkit-appearance:none}.mat-input-element::-webkit-contacts-auto-fill-button,.mat-input-element::-webkit-caps-lock-indicator,.mat-input-element:not([type=password])::-webkit-credentials-auto-fill-button{visibility:hidden}.mat-input-element[type=date],.mat-input-element[type=datetime],.mat-input-element[type=datetime-local],.mat-input-element[type=month],.mat-input-element[type=week],.mat-input-element[type=time]{line-height:1}.mat-input-element[type=date]::after,.mat-input-element[type=datetime]::after,.mat-input-element[type=datetime-local]::after,.mat-input-element[type=month]::after,.mat-input-element[type=week]::after,.mat-input-element[type=time]::after{content:" ";white-space:pre;width:1px}.mat-input-element::-webkit-inner-spin-button,.mat-input-element::-webkit-calendar-picker-indicator,.mat-input-element::-webkit-clear-button{font-size:.75em}.mat-input-element::placeholder{-webkit-user-select:none;user-select:none;transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-input-element::-moz-placeholder{-webkit-user-select:none;user-select:none;transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-input-element::-webkit-input-placeholder{-webkit-user-select:none;user-select:none;transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-input-element:-ms-input-placeholder{-webkit-user-select:none;user-select:none;transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-form-field-hide-placeholder .mat-input-element::placeholder{color:rgba(0,0,0,0) !important;-webkit-text-fill-color:rgba(0,0,0,0);transition:none}.cdk-high-contrast-active .mat-form-field-hide-placeholder .mat-input-element::placeholder{opacity:0}.mat-form-field-hide-placeholder .mat-input-element::-moz-placeholder{color:rgba(0,0,0,0) !important;-webkit-text-fill-color:rgba(0,0,0,0);transition:none}.cdk-high-contrast-active .mat-form-field-hide-placeholder .mat-input-element::-moz-placeholder{opacity:0}.mat-form-field-hide-placeholder .mat-input-element::-webkit-input-placeholder{color:rgba(0,0,0,0) !important;-webkit-text-fill-color:rgba(0,0,0,0);transition:none}.cdk-high-contrast-active .mat-form-field-hide-placeholder .mat-input-element::-webkit-input-placeholder{opacity:0}.mat-form-field-hide-placeholder .mat-input-element:-ms-input-placeholder{color:rgba(0,0,0,0) !important;-webkit-text-fill-color:rgba(0,0,0,0);transition:none}.cdk-high-contrast-active .mat-form-field-hide-placeholder .mat-input-element:-ms-input-placeholder{opacity:0}._mat-animation-noopable .mat-input-element::placeholder{transition:none}._mat-animation-noopable .mat-input-element::-moz-placeholder{transition:none}._mat-animation-noopable .mat-input-element::-webkit-input-placeholder{transition:none}._mat-animation-noopable .mat-input-element:-ms-input-placeholder{transition:none}textarea.mat-input-element{resize:vertical;overflow:auto}textarea.mat-input-element.cdk-textarea-autosize{resize:none}textarea.mat-input-element{padding:2px 0;margin:-2px 0}select.mat-input-element{-moz-appearance:none;-webkit-appearance:none;position:relative;background-color:rgba(0,0,0,0);display:inline-flex;box-sizing:border-box;padding-top:1em;top:-1em;margin-bottom:-1em}select.mat-input-element::-moz-focus-inner{border:0}select.mat-input-element:not(:disabled){cursor:pointer}.mat-form-field-type-mat-native-select .mat-form-field-infix::after{content:"";width:0;height:0;border-left:5px solid rgba(0,0,0,0);border-right:5px solid rgba(0,0,0,0);border-top:5px solid;position:absolute;top:50%;right:0;margin-top:-2.5px;pointer-events:none}[dir=rtl] .mat-form-field-type-mat-native-select .mat-form-field-infix::after{right:auto;left:0}.mat-form-field-type-mat-native-select .mat-input-element{padding-right:15px}[dir=rtl] .mat-form-field-type-mat-native-select .mat-input-element{padding-right:0;padding-left:15px}.mat-form-field-type-mat-native-select .mat-form-field-label-wrapper{max-width:calc(100% - 10px)}.mat-form-field-type-mat-native-select.mat-form-field-appearance-outline .mat-form-field-infix::after{margin-top:-5px}.mat-form-field-type-mat-native-select.mat-form-field-appearance-fill .mat-form-field-infix::after{margin-top:-10px}',".mat-form-field-appearance-legacy .mat-form-field-label{transform:perspective(100px)}.mat-form-field-appearance-legacy .mat-form-field-prefix .mat-icon,.mat-form-field-appearance-legacy .mat-form-field-suffix .mat-icon{width:1em}.mat-form-field-appearance-legacy .mat-form-field-prefix .mat-icon-button,.mat-form-field-appearance-legacy .mat-form-field-suffix .mat-icon-button{font:inherit;vertical-align:baseline}.mat-form-field-appearance-legacy .mat-form-field-prefix .mat-icon-button .mat-icon,.mat-form-field-appearance-legacy .mat-form-field-suffix .mat-icon-button .mat-icon{font-size:inherit}.mat-form-field-appearance-legacy .mat-form-field-underline{height:1px}.cdk-high-contrast-active .mat-form-field-appearance-legacy .mat-form-field-underline{height:0;border-top:solid 1px}.mat-form-field-appearance-legacy .mat-form-field-ripple{top:0;height:2px;overflow:hidden}.cdk-high-contrast-active .mat-form-field-appearance-legacy .mat-form-field-ripple{height:0;border-top:solid 2px}.mat-form-field-appearance-legacy.mat-form-field-disabled .mat-form-field-underline{background-position:0;background-color:rgba(0,0,0,0)}.cdk-high-contrast-active .mat-form-field-appearance-legacy.mat-form-field-disabled .mat-form-field-underline{border-top-style:dotted;border-top-width:2px;border-top-color:GrayText}.mat-form-field-appearance-legacy.mat-form-field-invalid:not(.mat-focused) .mat-form-field-ripple{height:1px}",".mat-form-field-appearance-outline .mat-form-field-wrapper{margin:.25em 0}.mat-form-field-appearance-outline .mat-form-field-flex{padding:0 .75em 0 .75em;margin-top:-0.25em;position:relative}.mat-form-field-appearance-outline .mat-form-field-prefix,.mat-form-field-appearance-outline .mat-form-field-suffix{top:.25em}.mat-form-field-appearance-outline .mat-form-field-outline{display:flex;position:absolute;top:.25em;left:0;right:0;bottom:0;pointer-events:none}.mat-form-field-appearance-outline .mat-form-field-outline-start,.mat-form-field-appearance-outline .mat-form-field-outline-end{border:1px solid currentColor;min-width:5px}.mat-form-field-appearance-outline .mat-form-field-outline-start{border-radius:5px 0 0 5px;border-right-style:none}[dir=rtl] .mat-form-field-appearance-outline .mat-form-field-outline-start{border-right-style:solid;border-left-style:none;border-radius:0 5px 5px 0}.mat-form-field-appearance-outline .mat-form-field-outline-end{border-radius:0 5px 5px 0;border-left-style:none;flex-grow:1}[dir=rtl] .mat-form-field-appearance-outline .mat-form-field-outline-end{border-left-style:solid;border-right-style:none;border-radius:5px 0 0 5px}.mat-form-field-appearance-outline .mat-form-field-outline-gap{border-radius:.000001px;border:1px solid currentColor;border-left-style:none;border-right-style:none}.mat-form-field-appearance-outline.mat-form-field-can-float.mat-form-field-should-float .mat-form-field-outline-gap{border-top-color:rgba(0,0,0,0)}.mat-form-field-appearance-outline .mat-form-field-outline-thick{opacity:0}.mat-form-field-appearance-outline .mat-form-field-outline-thick .mat-form-field-outline-start,.mat-form-field-appearance-outline .mat-form-field-outline-thick .mat-form-field-outline-end,.mat-form-field-appearance-outline .mat-form-field-outline-thick .mat-form-field-outline-gap{border-width:2px}.mat-form-field-appearance-outline.mat-focused .mat-form-field-outline,.mat-form-field-appearance-outline.mat-form-field-invalid .mat-form-field-outline{opacity:0;transition:opacity 100ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-form-field-appearance-outline.mat-focused .mat-form-field-outline-thick,.mat-form-field-appearance-outline.mat-form-field-invalid .mat-form-field-outline-thick{opacity:1}.cdk-high-contrast-active .mat-form-field-appearance-outline.mat-focused .mat-form-field-outline-thick{border:3px dashed}.mat-form-field-appearance-outline:not(.mat-form-field-disabled) .mat-form-field-flex:hover .mat-form-field-outline{opacity:0;transition:opacity 600ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-form-field-appearance-outline:not(.mat-form-field-disabled) .mat-form-field-flex:hover .mat-form-field-outline-thick{opacity:1}.mat-form-field-appearance-outline .mat-form-field-subscript-wrapper{padding:0 1em}.cdk-high-contrast-active .mat-form-field-appearance-outline.mat-form-field-disabled .mat-form-field-outline{color:GrayText}.mat-form-field-appearance-outline._mat-animation-noopable:not(.mat-form-field-disabled) .mat-form-field-flex:hover~.mat-form-field-outline,.mat-form-field-appearance-outline._mat-animation-noopable .mat-form-field-outline,.mat-form-field-appearance-outline._mat-animation-noopable .mat-form-field-outline-start,.mat-form-field-appearance-outline._mat-animation-noopable .mat-form-field-outline-end,.mat-form-field-appearance-outline._mat-animation-noopable .mat-form-field-outline-gap{transition:none}",".mat-form-field-appearance-standard .mat-form-field-flex{padding-top:.75em}.mat-form-field-appearance-standard .mat-form-field-underline{height:1px}.cdk-high-contrast-active .mat-form-field-appearance-standard .mat-form-field-underline{height:0;border-top:solid 1px}.mat-form-field-appearance-standard .mat-form-field-ripple{bottom:0;height:2px}.cdk-high-contrast-active .mat-form-field-appearance-standard .mat-form-field-ripple{height:0;border-top:solid 2px}.mat-form-field-appearance-standard.mat-form-field-disabled .mat-form-field-underline{background-position:0;background-color:rgba(0,0,0,0)}.cdk-high-contrast-active .mat-form-field-appearance-standard.mat-form-field-disabled .mat-form-field-underline{border-top-style:dotted;border-top-width:2px}.mat-form-field-appearance-standard:not(.mat-form-field-disabled) .mat-form-field-flex:hover~.mat-form-field-underline .mat-form-field-ripple{opacity:1;transform:none;transition:opacity 600ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-form-field-appearance-standard._mat-animation-noopable:not(.mat-form-field-disabled) .mat-form-field-flex:hover~.mat-form-field-underline .mat-form-field-ripple{transition:none}"],encapsulation:2,data:{animation:[WL.transitionMessages]},changeDetection:0}),n})(),qs=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=me({type:n}),n.\u0275inj=pe({imports:[Zi,Rt,xL,Rt]}),n})();class tN{constructor(t=!1,e,i=!0){this._multiple=t,this._emitChanges=i,this._selection=new Set,this._deselectedToEmit=[],this._selectedToEmit=[],this.changed=new le,e&&e.length&&(t?e.forEach(r=>this._markSelected(r)):this._markSelected(e[0]),this._selectedToEmit.length=0)}get selected(){return this._selected||(this._selected=Array.from(this._selection.values())),this._selected}select(...t){this._verifyValueAssignment(t),t.forEach(e=>this._markSelected(e)),this._emitChangeEvent()}deselect(...t){this._verifyValueAssignment(t),t.forEach(e=>this._unmarkSelected(e)),this._emitChangeEvent()}toggle(t){this.isSelected(t)?this.deselect(t):this.select(t)}clear(){this._unmarkAll(),this._emitChangeEvent()}isSelected(t){return this._selection.has(t)}isEmpty(){return 0===this._selection.size}hasValue(){return!this.isEmpty()}sort(t){this._multiple&&this.selected&&this._selected.sort(t)}isMultipleSelection(){return this._multiple}_emitChangeEvent(){this._selected=null,(this._selectedToEmit.length||this._deselectedToEmit.length)&&(this.changed.next({source:this,added:this._selectedToEmit,removed:this._deselectedToEmit}),this._deselectedToEmit=[],this._selectedToEmit=[])}_markSelected(t){this.isSelected(t)||(this._multiple||this._unmarkAll(),this._selection.add(t),this._emitChanges&&this._selectedToEmit.push(t))}_unmarkSelected(t){this.isSelected(t)&&(this._selection.delete(t),this._emitChanges&&this._deselectedToEmit.push(t))}_unmarkAll(){this.isEmpty()||this._selection.forEach(t=>this._unmarkSelected(t))}_verifyValueAssignment(t){}}const nN=["trigger"],iN=["panel"];function rN(n,t){if(1&n&&(x(0,"span",8),Be(1),L()),2&n){const e=T();M(1),Kt(e.placeholder)}}function sN(n,t){if(1&n&&(x(0,"span",12),Be(1),L()),2&n){const e=T(2);M(1),Kt(e.triggerValue)}}function oN(n,t){1&n&&Bt(0,0,["*ngSwitchCase","true"])}function aN(n,t){1&n&&(x(0,"span",9),C(1,sN,2,1,"span",10),C(2,oN,1,0,"ng-content",11),L()),2&n&&(w("ngSwitch",!!T().customTrigger),M(2),w("ngSwitchCase",!0))}function lN(n,t){if(1&n){const e=yt();x(0,"div",13)(1,"div",14,15),W("@transformPanel.done",function(r){return Ce(e),De(T()._panelDoneAnimatingStream.next(r.toState))})("keydown",function(r){return Ce(e),De(T()._handleKeydown(r))}),Bt(3,1),L()()}if(2&n){const e=T();w("@transformPanelWrap",void 0),M(1),As("mat-select-panel ",e._getPanelTheme(),""),rf("transform-origin",e._transformOrigin)("font-size",e._triggerFontSize,"px"),w("ngClass",e.panelClass)("@transformPanel",e.multiple?"showing-multiple":"showing"),Ze("id",e.id+"-panel")("aria-multiselectable",e.multiple)("aria-label",e.ariaLabel||null)("aria-labelledby",e._getPanelAriaLabelledby())}}const cN=[[["mat-select-trigger"]],"*"],uN=["mat-select-trigger","*"],GE={transformPanelWrap:up("transformPanelWrap",[Ec("* => void",W9("@transformPanel",[G9()],{optional:!0}))]),transformPanel:up("transformPanel",[wc("void",Qi({transform:"scaleY(0.8)",minWidth:"100%",opacity:0})),wc("showing",Qi({opacity:1,minWidth:"calc(100% + 32px)",transform:"scaleY(1)"})),wc("showing-multiple",Qi({opacity:1,minWidth:"calc(100% + 64px)",transform:"scaleY(1)"})),Ec("void => *",dp("120ms cubic-bezier(0, 0, 0.2, 1)")),Ec("* => void",dp("100ms 25ms linear",Qi({opacity:0})))])};let WE=0;const qE=new R("mat-select-scroll-strategy"),pN=new R("MAT_SELECT_CONFIG"),gN={provide:qE,deps:[pu],useFactory:function fN(n){return()=>n.scrollStrategies.reposition()}};class mN{constructor(t,e){this.source=t,this.value=e}}const _N=TE(pL(SE(IE(class{constructor(n,t,e,i,r){this._elementRef=n,this._defaultErrorStateMatcher=t,this._parentForm=e,this._parentFormGroup=i,this.ngControl=r,this.stateChanges=new le}})))),vN=new R("MatSelectTrigger");let yN=(()=>{class n extends _N{constructor(e,i,r,s,o,a,l,c,u,d,h,p,g,m){super(o,s,l,c,d),this._viewportRuler=e,this._changeDetectorRef=i,this._ngZone=r,this._dir=a,this._parentFormField=u,this._liveAnnouncer=g,this._defaultOptions=m,this._panelOpen=!1,this._compareWith=(y,b)=>y===b,this._uid="mat-select-"+WE++,this._triggerAriaLabelledBy=null,this._destroy=new le,this._onChange=()=>{},this._onTouched=()=>{},this._valueId="mat-select-value-"+WE++,this._panelDoneAnimatingStream=new le,this._overlayPanelClass=this._defaultOptions?.overlayPanelClass||"",this._focused=!1,this.controlType="mat-select",this._multiple=!1,this._disableOptionCentering=this._defaultOptions?.disableOptionCentering??!1,this.ariaLabel="",this.optionSelectionChanges=ga(()=>{const y=this.options;return y?y.changes.pipe(Hr(y),Tn(()=>ur(...y.map(b=>b.onSelectionChange)))):this._ngZone.onStable.pipe(Yt(1),Tn(()=>this.optionSelectionChanges))}),this.openedChange=new Y,this._openedStream=this.openedChange.pipe(fn(y=>y),K(()=>{})),this._closedStream=this.openedChange.pipe(fn(y=>!y),K(()=>{})),this.selectionChange=new Y,this.valueChange=new Y,this.ngControl&&(this.ngControl.valueAccessor=this),null!=m?.typeaheadDebounceInterval&&(this._typeaheadDebounceInterval=m.typeaheadDebounceInterval),this._scrollStrategyFactory=p,this._scrollStrategy=this._scrollStrategyFactory(),this.tabIndex=parseInt(h)||0,this.id=this.id}get focused(){return this._focused||this._panelOpen}get placeholder(){return this._placeholder}set placeholder(e){this._placeholder=e,this.stateChanges.next()}get required(){return this._required??this.ngControl?.control?.hasValidator(Qe.required)??!1}set required(e){this._required=Dt(e),this.stateChanges.next()}get multiple(){return this._multiple}set multiple(e){this._multiple=Dt(e)}get disableOptionCentering(){return this._disableOptionCentering}set disableOptionCentering(e){this._disableOptionCentering=Dt(e)}get compareWith(){return this._compareWith}set compareWith(e){this._compareWith=e,this._selectionModel&&this._initializeSelection()}get value(){return this._value}set value(e){this._assignValue(e)&&this._onChange(e)}get typeaheadDebounceInterval(){return this._typeaheadDebounceInterval}set typeaheadDebounceInterval(e){this._typeaheadDebounceInterval=bt(e)}get id(){return this._id}set id(e){this._id=e||this._uid,this.stateChanges.next()}ngOnInit(){this._selectionModel=new tN(this.multiple),this.stateChanges.next(),this._panelDoneAnimatingStream.pipe(Gs(),Zt(this._destroy)).subscribe(()=>this._panelDoneAnimating(this.panelOpen))}ngAfterContentInit(){this._initKeyManager(),this._selectionModel.changed.pipe(Zt(this._destroy)).subscribe(e=>{e.added.forEach(i=>i.select()),e.removed.forEach(i=>i.deselect())}),this.options.changes.pipe(Hr(null),Zt(this._destroy)).subscribe(()=>{this._resetOptions(),this._initializeSelection()})}ngDoCheck(){const e=this._getTriggerAriaLabelledby(),i=this.ngControl;if(e!==this._triggerAriaLabelledBy){const r=this._elementRef.nativeElement;this._triggerAriaLabelledBy=e,e?r.setAttribute("aria-labelledby",e):r.removeAttribute("aria-labelledby")}i&&(this._previousControl!==i.control&&(void 0!==this._previousControl&&null!==i.disabled&&i.disabled!==this.disabled&&(this.disabled=i.disabled),this._previousControl=i.control),this.updateErrorState())}ngOnChanges(e){(e.disabled||e.userAriaDescribedBy)&&this.stateChanges.next(),e.typeaheadDebounceInterval&&this._keyManager&&this._keyManager.withTypeAhead(this._typeaheadDebounceInterval)}ngOnDestroy(){this._destroy.next(),this._destroy.complete(),this.stateChanges.complete()}toggle(){this.panelOpen?this.close():this.open()}open(){this._canOpen()&&(this._panelOpen=!0,this._keyManager.withHorizontalOrientation(null),this._highlightCorrectOption(),this._changeDetectorRef.markForCheck())}close(){this._panelOpen&&(this._panelOpen=!1,this._keyManager.withHorizontalOrientation(this._isRtl()?"rtl":"ltr"),this._changeDetectorRef.markForCheck(),this._onTouched())}writeValue(e){this._assignValue(e)}registerOnChange(e){this._onChange=e}registerOnTouched(e){this._onTouched=e}setDisabledState(e){this.disabled=e,this._changeDetectorRef.markForCheck(),this.stateChanges.next()}get panelOpen(){return this._panelOpen}get selected(){return this.multiple?this._selectionModel?.selected||[]:this._selectionModel?.selected[0]}get triggerValue(){if(this.empty)return"";if(this._multiple){const e=this._selectionModel.selected.map(i=>i.viewValue);return this._isRtl()&&e.reverse(),e.join(", ")}return this._selectionModel.selected[0].viewValue}_isRtl(){return!!this._dir&&"rtl"===this._dir.value}_handleKeydown(e){this.disabled||(this.panelOpen?this._handleOpenKeydown(e):this._handleClosedKeydown(e))}_handleClosedKeydown(e){const i=e.keyCode,r=40===i||38===i||37===i||39===i,s=13===i||32===i,o=this._keyManager;if(!o.isTyping()&&s&&!Ma(e)||(this.multiple||e.altKey)&&r)e.preventDefault(),this.open();else if(!this.multiple){const a=this.selected;o.onKeydown(e);const l=this.selected;l&&a!==l&&this._liveAnnouncer.announce(l.viewValue,1e4)}}_handleOpenKeydown(e){const i=this._keyManager,r=e.keyCode,s=40===r||38===r,o=i.isTyping();if(s&&e.altKey)e.preventDefault(),this.close();else if(o||13!==r&&32!==r||!i.activeItem||Ma(e))if(!o&&this._multiple&&65===r&&e.ctrlKey){e.preventDefault();const a=this.options.some(l=>!l.disabled&&!l.selected);this.options.forEach(l=>{l.disabled||(a?l.select():l.deselect())})}else{const a=i.activeItemIndex;i.onKeydown(e),this._multiple&&s&&e.shiftKey&&i.activeItem&&i.activeItemIndex!==a&&i.activeItem._selectViaInteraction()}else e.preventDefault(),i.activeItem._selectViaInteraction()}_onFocus(){this.disabled||(this._focused=!0,this.stateChanges.next())}_onBlur(){this._focused=!1,!this.disabled&&!this.panelOpen&&(this._onTouched(),this._changeDetectorRef.markForCheck(),this.stateChanges.next())}_onAttached(){this._overlayDir.positionChange.pipe(Yt(1)).subscribe(()=>{this._changeDetectorRef.detectChanges(),this._positioningSettled()})}_getPanelTheme(){return this._parentFormField?`mat-${this._parentFormField.color}`:""}get empty(){return!this._selectionModel||this._selectionModel.isEmpty()}_initializeSelection(){Promise.resolve().then(()=>{this.ngControl&&(this._value=this.ngControl.value),this._setSelectionByValue(this._value),this.stateChanges.next()})}_setSelectionByValue(e){if(this._selectionModel.selected.forEach(i=>i.setInactiveStyles()),this._selectionModel.clear(),this.multiple&&e)Array.isArray(e),e.forEach(i=>this._selectOptionByValue(i)),this._sortValues();else{const i=this._selectOptionByValue(e);i?this._keyManager.updateActiveItem(i):this.panelOpen||this._keyManager.updateActiveItem(-1)}this._changeDetectorRef.markForCheck()}_selectOptionByValue(e){const i=this.options.find(r=>{if(this._selectionModel.isSelected(r))return!1;try{return null!=r.value&&this._compareWith(r.value,e)}catch{return!1}});return i&&this._selectionModel.select(i),i}_assignValue(e){return!!(e!==this._value||this._multiple&&Array.isArray(e))&&(this.options&&this._setSelectionByValue(e),this._value=e,!0)}_initKeyManager(){this._keyManager=new Wk(this.options).withTypeAhead(this._typeaheadDebounceInterval).withVerticalOrientation().withHorizontalOrientation(this._isRtl()?"rtl":"ltr").withHomeAndEnd().withAllowedModifierKeys(["shiftKey"]),this._keyManager.tabOut.pipe(Zt(this._destroy)).subscribe(()=>{this.panelOpen&&(!this.multiple&&this._keyManager.activeItem&&this._keyManager.activeItem._selectViaInteraction(),this.focus(),this.close())}),this._keyManager.change.pipe(Zt(this._destroy)).subscribe(()=>{this._panelOpen&&this.panel?this._scrollOptionIntoView(this._keyManager.activeItemIndex||0):!this._panelOpen&&!this.multiple&&this._keyManager.activeItem&&this._keyManager.activeItem._selectViaInteraction()})}_resetOptions(){const e=ur(this.options.changes,this._destroy);this.optionSelectionChanges.pipe(Zt(e)).subscribe(i=>{this._onSelect(i.source,i.isUserInput),i.isUserInput&&!this.multiple&&this._panelOpen&&(this.close(),this.focus())}),ur(...this.options.map(i=>i._stateChanges)).pipe(Zt(e)).subscribe(()=>{this._changeDetectorRef.markForCheck(),this.stateChanges.next()})}_onSelect(e,i){const r=this._selectionModel.isSelected(e);null!=e.value||this._multiple?(r!==e.selected&&(e.selected?this._selectionModel.select(e):this._selectionModel.deselect(e)),i&&this._keyManager.setActiveItem(e),this.multiple&&(this._sortValues(),i&&this.focus())):(e.deselect(),this._selectionModel.clear(),null!=this.value&&this._propagateChanges(e.value)),r!==this._selectionModel.isSelected(e)&&this._propagateChanges(),this.stateChanges.next()}_sortValues(){if(this.multiple){const e=this.options.toArray();this._selectionModel.sort((i,r)=>this.sortComparator?this.sortComparator(i,r,e):e.indexOf(i)-e.indexOf(r)),this.stateChanges.next()}}_propagateChanges(e){let i=null;i=this.multiple?this.selected.map(r=>r.value):this.selected?this.selected.value:e,this._value=i,this.valueChange.emit(i),this._onChange(i),this.selectionChange.emit(this._getChangeEvent(i)),this._changeDetectorRef.markForCheck()}_highlightCorrectOption(){this._keyManager&&(this.empty?this._keyManager.setFirstItemActive():this._keyManager.setActiveItem(this._selectionModel.selected[0]))}_canOpen(){return!this._panelOpen&&!this.disabled&&this.options?.length>0}focus(e){this._elementRef.nativeElement.focus(e)}_getPanelAriaLabelledby(){if(this.ariaLabel)return null;const e=this._parentFormField?.getLabelId();return this.ariaLabelledby?(e?e+" ":"")+this.ariaLabelledby:e}_getAriaActiveDescendant(){return this.panelOpen&&this._keyManager&&this._keyManager.activeItem?this._keyManager.activeItem.id:null}_getTriggerAriaLabelledby(){if(this.ariaLabel)return null;const e=this._parentFormField?.getLabelId();let i=(e?e+" ":"")+this._valueId;return this.ariaLabelledby&&(i+=" "+this.ariaLabelledby),i}_panelDoneAnimating(e){this.openedChange.emit(e)}setDescribedByIds(e){e.length?this._elementRef.nativeElement.setAttribute("aria-describedby",e.join(" ")):this._elementRef.nativeElement.removeAttribute("aria-describedby")}onContainerClick(){this.focus(),this.open()}get shouldLabelFloat(){return this._panelOpen||!this.empty||this._focused&&!!this._placeholder}}return n.\u0275fac=function(e){return new(e||n)(_(I0),_(Si),_(ie),_(B0),_(se),_(Ca,8),_(pa,8),_(Fr,8),_(U0,8),_(ui,10),ji("tabindex"),_(qE),_(sL),_(pN,8))},n.\u0275dir=O({type:n,viewQuery:function(e,i){if(1&e&&(ri(nN,5),ri(iN,5),ri(dE,5)),2&e){let r;He(r=ze())&&(i.trigger=r.first),He(r=ze())&&(i.panel=r.first),He(r=ze())&&(i._overlayDir=r.first)}},inputs:{userAriaDescribedBy:["aria-describedby","userAriaDescribedBy"],panelClass:"panelClass",placeholder:"placeholder",required:"required",multiple:"multiple",disableOptionCentering:"disableOptionCentering",compareWith:"compareWith",value:"value",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],errorStateMatcher:"errorStateMatcher",typeaheadDebounceInterval:"typeaheadDebounceInterval",sortComparator:"sortComparator",id:"id"},outputs:{openedChange:"openedChange",_openedStream:"opened",_closedStream:"closed",selectionChange:"selectionChange",valueChange:"valueChange"},features:[ce,Ct]}),n})(),bN=(()=>{class n extends yN{constructor(){super(...arguments),this._scrollTop=0,this._triggerFontSize=0,this._transformOrigin="top",this._offsetY=0,this._positions=[{originX:"start",originY:"top",overlayX:"start",overlayY:"top"},{originX:"start",originY:"bottom",overlayX:"start",overlayY:"bottom"}]}_calculateOverlayScroll(e,i,r){const s=this._getItemHeight();return Math.min(Math.max(0,s*e-i+s/2),r)}ngOnInit(){super.ngOnInit(),this._viewportRuler.change().pipe(Zt(this._destroy)).subscribe(()=>{this.panelOpen&&(this._triggerRect=this.trigger.nativeElement.getBoundingClientRect(),this._changeDetectorRef.markForCheck())})}open(){super._canOpen()&&(super.open(),this._triggerRect=this.trigger.nativeElement.getBoundingClientRect(),this._triggerFontSize=parseInt(getComputedStyle(this.trigger.nativeElement).fontSize||"0"),this._calculateOverlayPosition(),this._ngZone.onStable.pipe(Yt(1)).subscribe(()=>{this._triggerFontSize&&this._overlayDir.overlayRef&&this._overlayDir.overlayRef.overlayElement&&(this._overlayDir.overlayRef.overlayElement.style.fontSize=`${this._triggerFontSize}px`)}))}_scrollOptionIntoView(e){const i=NE(e,this.options,this.optionGroups),r=this._getItemHeight();this.panel.nativeElement.scrollTop=0===e&&1===i?0:function SL(n,t,e,i){return n<e?n:n+t>e+i?Math.max(0,n-i+t):e}((e+i)*r,r,this.panel.nativeElement.scrollTop,256)}_positioningSettled(){this._calculateOverlayOffsetX(),this.panel.nativeElement.scrollTop=this._scrollTop}_panelDoneAnimating(e){this.panelOpen?this._scrollTop=0:(this._overlayDir.offsetX=0,this._changeDetectorRef.markForCheck()),super._panelDoneAnimating(e)}_getChangeEvent(e){return new mN(this,e)}_calculateOverlayOffsetX(){const e=this._overlayDir.overlayRef.overlayElement.getBoundingClientRect(),i=this._viewportRuler.getViewportSize(),r=this._isRtl(),s=this.multiple?56:32;let o;if(this.multiple)o=40;else if(this.disableOptionCentering)o=16;else{let c=this._selectionModel.selected[0]||this.options.first;o=c&&c.group?32:16}r||(o*=-1);const a=0-(e.left+o-(r?s:0)),l=e.right+o-i.width+(r?0:s);a>0?o+=a+8:l>0&&(o-=l+8),this._overlayDir.offsetX=Math.round(o),this._overlayDir.overlayRef.updatePosition()}_calculateOverlayOffsetY(e,i,r){const s=this._getItemHeight(),o=(s-this._triggerRect.height)/2,a=Math.floor(256/s);let l;return this.disableOptionCentering?0:(l=0===this._scrollTop?e*s:this._scrollTop===r?(e-(this._getItemCount()-a))*s+(s-(this._getItemCount()*s-256)%s):i-s/2,Math.round(-1*l-o))}_checkOverlayWithinViewport(e){const i=this._getItemHeight(),r=this._viewportRuler.getViewportSize(),s=this._triggerRect.top-8,o=r.height-this._triggerRect.bottom-8,a=Math.abs(this._offsetY),c=Math.min(this._getItemCount()*i,256)-a-this._triggerRect.height;c>o?this._adjustPanelUp(c,o):a>s?this._adjustPanelDown(a,s,e):this._transformOrigin=this._getOriginBasedOnOption()}_adjustPanelUp(e,i){const r=Math.round(e-i);this._scrollTop-=r,this._offsetY-=r,this._transformOrigin=this._getOriginBasedOnOption(),this._scrollTop<=0&&(this._scrollTop=0,this._offsetY=0,this._transformOrigin="50% bottom 0px")}_adjustPanelDown(e,i,r){const s=Math.round(e-i);if(this._scrollTop+=s,this._offsetY+=s,this._transformOrigin=this._getOriginBasedOnOption(),this._scrollTop>=r)return this._scrollTop=r,this._offsetY=0,void(this._transformOrigin="50% top 0px")}_calculateOverlayPosition(){const e=this._getItemHeight(),i=this._getItemCount(),r=Math.min(i*e,256),o=i*e-r;let a;a=this.empty?0:Math.max(this.options.toArray().indexOf(this._selectionModel.selected[0]),0),a+=NE(a,this.options,this.optionGroups);const l=r/2;this._scrollTop=this._calculateOverlayScroll(a,l,o),this._offsetY=this._calculateOverlayOffsetY(a,l,o),this._checkOverlayWithinViewport(o)}_getOriginBasedOnOption(){const e=this._getItemHeight(),i=(e-this._triggerRect.height)/2;return`50% ${Math.abs(this._offsetY)-i+e/2}px 0px`}_getItemHeight(){return 3*this._triggerFontSize}_getItemCount(){return this.options.length+this.optionGroups.length}}return n.\u0275fac=function(){let t;return function(i){return(t||(t=nt(n)))(i||n)}}(),n.\u0275cmp=Ft({type:n,selectors:[["mat-select"]],contentQueries:function(e,i,r){if(1&e&&(jt(r,vN,5),jt(r,LE,5),jt(r,kE,5)),2&e){let s;He(s=ze())&&(i.customTrigger=s.first),He(s=ze())&&(i.options=s),He(s=ze())&&(i.optionGroups=s)}},hostAttrs:["role","combobox","aria-autocomplete","none","aria-haspopup","true",1,"mat-select"],hostVars:19,hostBindings:function(e,i){1&e&&W("keydown",function(s){return i._handleKeydown(s)})("focus",function(){return i._onFocus()})("blur",function(){return i._onBlur()}),2&e&&(Ze("id",i.id)("tabindex",i.tabIndex)("aria-controls",i.panelOpen?i.id+"-panel":null)("aria-expanded",i.panelOpen)("aria-label",i.ariaLabel||null)("aria-required",i.required.toString())("aria-disabled",i.disabled.toString())("aria-invalid",i.errorState)("aria-activedescendant",i._getAriaActiveDescendant()),Ht("mat-select-disabled",i.disabled)("mat-select-invalid",i.errorState)("mat-select-required",i.required)("mat-select-empty",i.empty)("mat-select-multiple",i.multiple))},inputs:{disabled:"disabled",disableRipple:"disableRipple",tabIndex:"tabIndex"},exportAs:["matSelect"],features:[we([{provide:_u,useExisting:n},{provide:FE,useExisting:n}]),ce],ngContentSelectors:uN,decls:9,vars:12,consts:[["cdk-overlay-origin","",1,"mat-select-trigger",3,"click"],["origin","cdkOverlayOrigin","trigger",""],[1,"mat-select-value",3,"ngSwitch"],["class","mat-select-placeholder mat-select-min-line",4,"ngSwitchCase"],["class","mat-select-value-text",3,"ngSwitch",4,"ngSwitchCase"],[1,"mat-select-arrow-wrapper"],[1,"mat-select-arrow"],["cdk-connected-overlay","","cdkConnectedOverlayLockPosition","","cdkConnectedOverlayHasBackdrop","","cdkConnectedOverlayBackdropClass","cdk-overlay-transparent-backdrop",3,"cdkConnectedOverlayPanelClass","cdkConnectedOverlayScrollStrategy","cdkConnectedOverlayOrigin","cdkConnectedOverlayOpen","cdkConnectedOverlayPositions","cdkConnectedOverlayMinWidth","cdkConnectedOverlayOffsetY","backdropClick","attach","detach"],[1,"mat-select-placeholder","mat-select-min-line"],[1,"mat-select-value-text",3,"ngSwitch"],["class","mat-select-min-line",4,"ngSwitchDefault"],[4,"ngSwitchCase"],[1,"mat-select-min-line"],[1,"mat-select-panel-wrap"],["role","listbox","tabindex","-1",3,"ngClass","keydown"],["panel",""]],template:function(e,i){if(1&e&&(Er(cN),x(0,"div",0,1),W("click",function(){return i.toggle()}),x(3,"div",2),C(4,rN,2,1,"span",3),C(5,aN,3,2,"span",4),L(),x(6,"div",5),oe(7,"div",6),L()(),C(8,lN,4,14,"ng-template",7),W("backdropClick",function(){return i.close()})("attach",function(){return i._onAttached()})("detach",function(){return i.close()})),2&e){const r=Q(1);Ze("aria-owns",i.panelOpen?i.id+"-panel":null),M(3),w("ngSwitch",i.empty),Ze("id",i._valueId),M(1),w("ngSwitchCase",!0),M(1),w("ngSwitchCase",!1),M(3),w("cdkConnectedOverlayPanelClass",i._overlayPanelClass)("cdkConnectedOverlayScrollStrategy",i._scrollStrategy)("cdkConnectedOverlayOrigin",r)("cdkConnectedOverlayOpen",i.panelOpen)("cdkConnectedOverlayPositions",i._positions)("cdkConnectedOverlayMinWidth",null==i._triggerRect?null:i._triggerRect.width)("cdkConnectedOverlayOffsetY",i._offsetY)}},dependencies:[Ir,Bs,gc,ep,dE,uE],styles:['.mat-select{display:inline-block;width:100%;outline:none}.mat-select-trigger{display:inline-flex;align-items:center;cursor:pointer;position:relative;box-sizing:border-box;width:100%}.mat-select-disabled .mat-select-trigger{-webkit-user-select:none;user-select:none;cursor:default}.mat-select-value{width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.mat-select-value-text{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mat-select-arrow-wrapper{height:16px;flex-shrink:0;display:inline-flex;align-items:center}.mat-form-field-appearance-fill .mat-select-arrow-wrapper{transform:translateY(-50%)}.mat-form-field-appearance-outline .mat-select-arrow-wrapper{transform:translateY(-25%)}.mat-form-field-appearance-standard.mat-form-field-has-label .mat-select:not(.mat-select-empty) .mat-select-arrow-wrapper{transform:translateY(-50%)}.mat-form-field-appearance-standard .mat-select.mat-select-empty .mat-select-arrow-wrapper{transition:transform 400ms cubic-bezier(0.25, 0.8, 0.25, 1)}._mat-animation-noopable.mat-form-field-appearance-standard .mat-select.mat-select-empty .mat-select-arrow-wrapper{transition:none}.mat-select-arrow{width:0;height:0;border-left:5px solid rgba(0,0,0,0);border-right:5px solid rgba(0,0,0,0);border-top:5px solid;margin:0 4px}.mat-form-field.mat-focused .mat-select-arrow{transform:translateX(0)}.mat-select-panel-wrap{flex-basis:100%}.mat-select-panel{min-width:112px;max-width:280px;overflow:auto;-webkit-overflow-scrolling:touch;padding-top:0;padding-bottom:0;max-height:256px;min-width:100%;border-radius:4px;outline:0}.cdk-high-contrast-active .mat-select-panel{outline:solid 1px}.mat-select-panel .mat-optgroup-label,.mat-select-panel .mat-option{font-size:inherit;line-height:3em;height:3em}.mat-form-field-type-mat-select:not(.mat-form-field-disabled) .mat-form-field-flex{cursor:pointer}.mat-form-field-type-mat-select .mat-form-field-label{width:calc(100% - 18px)}.mat-select-placeholder{transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}._mat-animation-noopable .mat-select-placeholder{transition:none}.mat-form-field-hide-placeholder .mat-select-placeholder{color:rgba(0,0,0,0);-webkit-text-fill-color:rgba(0,0,0,0);transition:none;display:block}.mat-select-min-line:empty::before{content:" ";white-space:pre;width:1px;display:inline-block;visibility:hidden}'],encapsulation:2,data:{animation:[GE.transformPanelWrap,GE.transformPanel]},changeDetection:0}),n})(),wN=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=me({type:n}),n.\u0275inj=pe({providers:[gN],imports:[Zi,Pk,PE,Rt,x0,qs,PE,Rt]}),n})();const EN=["mat-button",""],CN=["*"],MN=["mat-button","mat-flat-button","mat-icon-button","mat-raised-button","mat-stroked-button","mat-mini-fab","mat-fab"],SN=V0(SE(TE(class{constructor(n){this._elementRef=n}})));let yu=(()=>{class n extends SN{constructor(e,i,r){super(e),this._focusMonitor=i,this._animationMode=r,this.isRoundButton=this._hasHostAttributes("mat-fab","mat-mini-fab"),this.isIconButton=this._hasHostAttributes("mat-icon-button");for(const s of MN)this._hasHostAttributes(s)&&this._getHostElement().classList.add(s);e.nativeElement.classList.add("mat-button-base"),this.isRoundButton&&(this.color="accent")}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0)}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef)}focus(e,i){e?this._focusMonitor.focusVia(this._getHostElement(),e,i):this._getHostElement().focus(i)}_getHostElement(){return this._elementRef.nativeElement}_isRippleDisabled(){return this.disableRipple||this.disabled}_hasHostAttributes(...e){return e.some(i=>this._getHostElement().hasAttribute(i))}}return n.\u0275fac=function(e){return new(e||n)(_(se),_(aL),_(Mr,8))},n.\u0275cmp=Ft({type:n,selectors:[["button","mat-button",""],["button","mat-raised-button",""],["button","mat-icon-button",""],["button","mat-fab",""],["button","mat-mini-fab",""],["button","mat-stroked-button",""],["button","mat-flat-button",""]],viewQuery:function(e,i){if(1&e&&ri(z0,5),2&e){let r;He(r=ze())&&(i.ripple=r.first)}},hostAttrs:[1,"mat-focus-indicator"],hostVars:5,hostBindings:function(e,i){2&e&&(Ze("disabled",i.disabled||null),Ht("_mat-animation-noopable","NoopAnimations"===i._animationMode)("mat-button-disabled",i.disabled))},inputs:{disabled:"disabled",disableRipple:"disableRipple",color:"color"},exportAs:["matButton"],features:[ce],attrs:EN,ngContentSelectors:CN,decls:4,vars:5,consts:[[1,"mat-button-wrapper"],["matRipple","",1,"mat-button-ripple",3,"matRippleDisabled","matRippleCentered","matRippleTrigger"],[1,"mat-button-focus-overlay"]],template:function(e,i){1&e&&(Er(),x(0,"span",0),Bt(1),L(),oe(2,"span",1)(3,"span",2)),2&e&&(M(2),Ht("mat-button-ripple-round",i.isRoundButton||i.isIconButton),w("matRippleDisabled",i._isRippleDisabled())("matRippleCentered",i.isIconButton)("matRippleTrigger",i._getHostElement()))},dependencies:[z0],styles:[".mat-button .mat-button-focus-overlay,.mat-icon-button .mat-button-focus-overlay{opacity:0}.mat-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay,.mat-stroked-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay{opacity:.04}@media(hover: none){.mat-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay,.mat-stroked-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay{opacity:0}}.mat-button,.mat-icon-button,.mat-stroked-button,.mat-flat-button{box-sizing:border-box;position:relative;-webkit-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:rgba(0,0,0,0);display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible}.mat-button::-moz-focus-inner,.mat-icon-button::-moz-focus-inner,.mat-stroked-button::-moz-focus-inner,.mat-flat-button::-moz-focus-inner{border:0}.mat-button.mat-button-disabled,.mat-icon-button.mat-button-disabled,.mat-stroked-button.mat-button-disabled,.mat-flat-button.mat-button-disabled{cursor:default}.mat-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-button.cdk-program-focused .mat-button-focus-overlay,.mat-icon-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-icon-button.cdk-program-focused .mat-button-focus-overlay,.mat-stroked-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-stroked-button.cdk-program-focused .mat-button-focus-overlay,.mat-flat-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-flat-button.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-button::-moz-focus-inner,.mat-icon-button::-moz-focus-inner,.mat-stroked-button::-moz-focus-inner,.mat-flat-button::-moz-focus-inner{border:0}.mat-raised-button{box-sizing:border-box;position:relative;-webkit-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:rgba(0,0,0,0);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-raised-button._mat-animation-noopable{transition:none !important;animation:none !important}.mat-stroked-button{border:1px solid currentColor;padding:0 15px;line-height:34px}.mat-stroked-button .mat-button-ripple.mat-ripple,.mat-stroked-button .mat-button-focus-overlay{top:-1px;left:-1px;right:-1px;bottom:-1px}.mat-fab{box-sizing:border-box;position:relative;-webkit-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:rgba(0,0,0,0);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-fab._mat-animation-noopable{transition:none !important;animation:none !important}.mat-fab .mat-button-wrapper{padding:16px 0;display:inline-block;line-height:24px}.mat-mini-fab{box-sizing:border-box;position:relative;-webkit-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:rgba(0,0,0,0);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-mini-fab._mat-animation-noopable{transition:none !important;animation:none !important}.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}.mat-flat-button::before,.mat-raised-button::before,.mat-fab::before,.mat-mini-fab::before{margin:calc(calc(var(--mat-focus-indicator-border-width, 3px) + 2px) * -1)}.mat-stroked-button::before{margin:calc(calc(var(--mat-focus-indicator-border-width, 3px) + 3px) * -1)}.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}"],encapsulation:2,changeDetection:0}),n})(),ZE=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=me({type:n}),n.\u0275inj=pe({imports:[OE,Rt,Rt]}),n})();function Oi(n,t){const e=fe(n)?n:()=>n,i=r=>r.error(e());return new Te(t?r=>t.schedule(i,0,r):i)}function Xt(n){return We((t,e)=>{let s,i=null,r=!1;i=t.subscribe(Pe(e,void 0,void 0,o=>{s=Gt(n(o,Xt(n)(t))),i?(i.unsubscribe(),i=null,s.subscribe(e)):r=!0})),r&&(i.unsubscribe(),i=null,s.subscribe(e))})}function Xs(n){return We((t,e)=>{try{t.subscribe(e)}finally{e.add(n)}})}const TN=["*"];let bu;function Ia(n){return function IN(){if(void 0===bu&&(bu=null,typeof window<"u")){const n=window;void 0!==n.trustedTypes&&(bu=n.trustedTypes.createPolicy("angular#components",{createHTML:t=>t}))}return bu}()?.createHTML(n)||n}function XE(n){return Error(`Unable to find icon with the name "${n}"`)}function QE(n){return Error(`The URL provided to MatIconRegistry was not trusted as a resource URL via Angular's DomSanitizer. Attempted URL was "${n}".`)}function JE(n){return Error(`The literal provided to MatIconRegistry was not trusted as safe HTML by Angular's DomSanitizer. Attempted literal was "${n}".`)}class zr{constructor(t,e,i){this.url=t,this.svgText=e,this.options=i}}let wu=(()=>{class n{constructor(e,i,r,s){this._httpClient=e,this._sanitizer=i,this._errorHandler=s,this._svgIconConfigs=new Map,this._iconSetConfigs=new Map,this._cachedIconsByUrl=new Map,this._inProgressUrlFetches=new Map,this._fontCssClassesByAlias=new Map,this._resolvers=[],this._defaultFontSetClass=["material-icons","mat-ligature-font"],this._document=r}addSvgIcon(e,i,r){return this.addSvgIconInNamespace("",e,i,r)}addSvgIconLiteral(e,i,r){return this.addSvgIconLiteralInNamespace("",e,i,r)}addSvgIconInNamespace(e,i,r,s){return this._addSvgIconConfig(e,i,new zr(r,null,s))}addSvgIconResolver(e){return this._resolvers.push(e),this}addSvgIconLiteralInNamespace(e,i,r,s){const o=this._sanitizer.sanitize(be.HTML,r);if(!o)throw JE(r);const a=Ia(o);return this._addSvgIconConfig(e,i,new zr("",a,s))}addSvgIconSet(e,i){return this.addSvgIconSetInNamespace("",e,i)}addSvgIconSetLiteral(e,i){return this.addSvgIconSetLiteralInNamespace("",e,i)}addSvgIconSetInNamespace(e,i,r){return this._addSvgIconSetConfig(e,new zr(i,null,r))}addSvgIconSetLiteralInNamespace(e,i,r){const s=this._sanitizer.sanitize(be.HTML,i);if(!s)throw JE(i);const o=Ia(s);return this._addSvgIconSetConfig(e,new zr("",o,r))}registerFontClassAlias(e,i=e){return this._fontCssClassesByAlias.set(e,i),this}classNameForFontAlias(e){return this._fontCssClassesByAlias.get(e)||e}setDefaultFontSetClass(...e){return this._defaultFontSetClass=e,this}getDefaultFontSetClass(){return this._defaultFontSetClass}getSvgIconFromUrl(e){const i=this._sanitizer.sanitize(be.RESOURCE_URL,e);if(!i)throw QE(e);const r=this._cachedIconsByUrl.get(i);return r?V(Eu(r)):this._loadSvgIconFromConfig(new zr(e,null)).pipe(et(s=>this._cachedIconsByUrl.set(i,s)),K(s=>Eu(s)))}getNamedSvgIcon(e,i=""){const r=e4(i,e);let s=this._svgIconConfigs.get(r);if(s)return this._getSvgFromConfig(s);if(s=this._getIconConfigFromResolvers(i,e),s)return this._svgIconConfigs.set(r,s),this._getSvgFromConfig(s);const o=this._iconSetConfigs.get(i);return o?this._getSvgFromIconSetConfigs(e,o):Oi(XE(r))}ngOnDestroy(){this._resolvers=[],this._svgIconConfigs.clear(),this._iconSetConfigs.clear(),this._cachedIconsByUrl.clear()}_getSvgFromConfig(e){return e.svgText?V(Eu(this._svgElementFromConfig(e))):this._loadSvgIconFromConfig(e).pipe(K(i=>Eu(i)))}_getSvgFromIconSetConfigs(e,i){const r=this._extractIconWithNameFromAnySet(e,i);return r?V(r):jc(i.filter(o=>!o.svgText).map(o=>this._loadSvgIconSetFromConfig(o).pipe(Xt(a=>{const c=`Loading icon set URL: ${this._sanitizer.sanitize(be.RESOURCE_URL,o.url)} failed: ${a.message}`;return this._errorHandler.handleError(new Error(c)),V(null)})))).pipe(K(()=>{const o=this._extractIconWithNameFromAnySet(e,i);if(!o)throw XE(e);return o}))}_extractIconWithNameFromAnySet(e,i){for(let r=i.length-1;r>=0;r--){const s=i[r];if(s.svgText&&s.svgText.toString().indexOf(e)>-1){const o=this._svgElementFromConfig(s),a=this._extractSvgIconFromSet(o,e,s.options);if(a)return a}}return null}_loadSvgIconFromConfig(e){return this._fetchIcon(e).pipe(et(i=>e.svgText=i),K(()=>this._svgElementFromConfig(e)))}_loadSvgIconSetFromConfig(e){return e.svgText?V(null):this._fetchIcon(e).pipe(et(i=>e.svgText=i))}_extractSvgIconFromSet(e,i,r){const s=e.querySelector(`[id="${i}"]`);if(!s)return null;const o=s.cloneNode(!0);if(o.removeAttribute("id"),"svg"===o.nodeName.toLowerCase())return this._setSvgAttributes(o,r);if("symbol"===o.nodeName.toLowerCase())return this._setSvgAttributes(this._toSvgElement(o),r);const a=this._svgElementFromString(Ia("<svg></svg>"));return a.appendChild(o),this._setSvgAttributes(a,r)}_svgElementFromString(e){const i=this._document.createElement("DIV");i.innerHTML=e;const r=i.querySelector("svg");if(!r)throw Error("<svg> tag not found");return r}_toSvgElement(e){const i=this._svgElementFromString(Ia("<svg></svg>")),r=e.attributes;for(let s=0;s<r.length;s++){const{name:o,value:a}=r[s];"id"!==o&&i.setAttribute(o,a)}for(let s=0;s<e.childNodes.length;s++)e.childNodes[s].nodeType===this._document.ELEMENT_NODE&&i.appendChild(e.childNodes[s].cloneNode(!0));return i}_setSvgAttributes(e,i){return e.setAttribute("fit",""),e.setAttribute("height","100%"),e.setAttribute("width","100%"),e.setAttribute("preserveAspectRatio","xMidYMid meet"),e.setAttribute("focusable","false"),i&&i.viewBox&&e.setAttribute("viewBox",i.viewBox),e}_fetchIcon(e){const{url:i,options:r}=e,s=r?.withCredentials??!1;if(!this._httpClient)throw function xN(){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==i)throw Error(`Cannot fetch icon from URL "${i}".`);const o=this._sanitizer.sanitize(be.RESOURCE_URL,i);if(!o)throw QE(i);const a=this._inProgressUrlFetches.get(o);if(a)return a;const l=this._httpClient.get(o,{responseType:"text",withCredentials:s}).pipe(K(c=>Ia(c)),Xs(()=>this._inProgressUrlFetches.delete(o)),nd());return this._inProgressUrlFetches.set(o,l),l}_addSvgIconConfig(e,i,r){return this._svgIconConfigs.set(e4(e,i),r),this}_addSvgIconSetConfig(e,i){const r=this._iconSetConfigs.get(e);return r?r.push(i):this._iconSetConfigs.set(e,[i]),this}_svgElementFromConfig(e){if(!e.svgElement){const i=this._svgElementFromString(e.svgText);this._setSvgAttributes(i,e.options),e.svgElement=i}return e.svgElement}_getIconConfigFromResolvers(e,i){for(let r=0;r<this._resolvers.length;r++){const s=this._resolvers[r](i,e);if(s)return RN(s)?new zr(s.url,null,s.options):new zr(s,null)}}}return n.\u0275fac=function(e){return new(e||n)(v($s,8),v(sa),v(ne,8),v(Ei))},n.\u0275prov=S({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();function Eu(n){return n.cloneNode(!0)}function e4(n,t){return n+":"+t}function RN(n){return!(!n.url||!n.options)}const ON=V0(class{constructor(n){this._elementRef=n}}),FN=new R("MAT_ICON_DEFAULT_OPTIONS"),kN=new R("mat-icon-location",{providedIn:"root",factory:function LN(){const n=Eo(ne),t=n?n.location:null;return{getPathname:()=>t?t.pathname+t.search:""}}}),t4=["clip-path","color-profile","src","cursor","fill","filter","marker","marker-start","marker-mid","marker-end","mask","stroke"],NN=t4.map(n=>`[${n}]`).join(", "),PN=/^url\(['"]?#(.*?)['"]?\)$/;let xa=(()=>{class n extends ON{constructor(e,i,r,s,o,a){super(e),this._iconRegistry=i,this._location=s,this._errorHandler=o,this._inline=!1,this._previousFontSetClass=[],this._currentIconFetch=Ge.EMPTY,a&&(a.color&&(this.color=this.defaultColor=a.color),a.fontSet&&(this.fontSet=a.fontSet)),r||e.nativeElement.setAttribute("aria-hidden","true")}get inline(){return this._inline}set inline(e){this._inline=Dt(e)}get svgIcon(){return this._svgIcon}set svgIcon(e){e!==this._svgIcon&&(e?this._updateSvgIcon(e):this._svgIcon&&this._clearSvgElement(),this._svgIcon=e)}get fontSet(){return this._fontSet}set fontSet(e){const i=this._cleanupFontValue(e);i!==this._fontSet&&(this._fontSet=i,this._updateFontIconClasses())}get fontIcon(){return this._fontIcon}set fontIcon(e){const i=this._cleanupFontValue(e);i!==this._fontIcon&&(this._fontIcon=i,this._updateFontIconClasses())}_splitIconName(e){if(!e)return["",""];const i=e.split(":");switch(i.length){case 1:return["",i[0]];case 2:return i;default:throw Error(`Invalid icon name: "${e}"`)}}ngOnInit(){this._updateFontIconClasses()}ngAfterViewChecked(){const e=this._elementsWithExternalReferences;if(e&&e.size){const i=this._location.getPathname();i!==this._previousPath&&(this._previousPath=i,this._prependPathToReferences(i))}}ngOnDestroy(){this._currentIconFetch.unsubscribe(),this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear()}_usingFontIcon(){return!this.svgIcon}_setSvgElement(e){this._clearSvgElement();const i=this._location.getPathname();this._previousPath=i,this._cacheChildrenWithExternalReferences(e),this._prependPathToReferences(i),this._elementRef.nativeElement.appendChild(e)}_clearSvgElement(){const e=this._elementRef.nativeElement;let i=e.childNodes.length;for(this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear();i--;){const r=e.childNodes[i];(1!==r.nodeType||"svg"===r.nodeName.toLowerCase())&&r.remove()}}_updateFontIconClasses(){if(!this._usingFontIcon())return;const e=this._elementRef.nativeElement,i=(this.fontSet?this._iconRegistry.classNameForFontAlias(this.fontSet).split(/ +/):this._iconRegistry.getDefaultFontSetClass()).filter(r=>r.length>0);this._previousFontSetClass.forEach(r=>e.classList.remove(r)),i.forEach(r=>e.classList.add(r)),this._previousFontSetClass=i,this.fontIcon!==this._previousFontIconClass&&!i.includes("mat-ligature-font")&&(this._previousFontIconClass&&e.classList.remove(this._previousFontIconClass),this.fontIcon&&e.classList.add(this.fontIcon),this._previousFontIconClass=this.fontIcon)}_cleanupFontValue(e){return"string"==typeof e?e.trim().split(" ")[0]:e}_prependPathToReferences(e){const i=this._elementsWithExternalReferences;i&&i.forEach((r,s)=>{r.forEach(o=>{s.setAttribute(o.name,`url('${e}#${o.value}')`)})})}_cacheChildrenWithExternalReferences(e){const i=e.querySelectorAll(NN),r=this._elementsWithExternalReferences=this._elementsWithExternalReferences||new Map;for(let s=0;s<i.length;s++)t4.forEach(o=>{const a=i[s],l=a.getAttribute(o),c=l?l.match(PN):null;if(c){let u=r.get(a);u||(u=[],r.set(a,u)),u.push({name:o,value:c[1]})}})}_updateSvgIcon(e){if(this._svgNamespace=null,this._svgName=null,this._currentIconFetch.unsubscribe(),e){const[i,r]=this._splitIconName(e);i&&(this._svgNamespace=i),r&&(this._svgName=r),this._currentIconFetch=this._iconRegistry.getNamedSvgIcon(r,i).pipe(Yt(1)).subscribe(s=>this._setSvgElement(s),s=>{this._errorHandler.handleError(new Error(`Error retrieving icon ${i}:${r}! ${s.message}`))})}}}return n.\u0275fac=function(e){return new(e||n)(_(se),_(wu),ji("aria-hidden"),_(kN),_(Ei),_(FN,8))},n.\u0275cmp=Ft({type:n,selectors:[["mat-icon"]],hostAttrs:["role","img",1,"mat-icon","notranslate"],hostVars:8,hostBindings:function(e,i){2&e&&(Ze("data-mat-icon-type",i._usingFontIcon()?"font":"svg")("data-mat-icon-name",i._svgName||i.fontIcon)("data-mat-icon-namespace",i._svgNamespace||i.fontSet)("fontIcon",i._usingFontIcon()?i.fontIcon:null),Ht("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:[ce],ngContentSelectors:TN,decls:1,vars:0,template:function(e,i){1&e&&(Er(),Bt(0))},styles:[".mat-icon{-webkit-user-select:none;user-select:none;background-repeat:no-repeat;display:inline-block;fill:currentColor;height:24px;width:24px;overflow:hidden}.mat-icon.mat-icon-inline{font-size:inherit;height:inherit;line-height:inherit;width:inherit}.mat-icon.mat-ligature-font[fontIcon]::before{content:attr(fontIcon)}[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}"],encapsulation:2,changeDetection:0}),n})(),$0=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=me({type:n}),n.\u0275inj=pe({imports:[Rt,Rt]}),n})();const n4=hu({passive:!0});let VN=(()=>{class n{constructor(e,i){this._platform=e,this._ngZone=i,this._monitoredElements=new Map}monitor(e){if(!this._platform.isBrowser)return Gn;const i=Ri(e),r=this._monitoredElements.get(i);if(r)return r.subject;const s=new le,o="cdk-text-field-autofilled",a=l=>{"cdk-text-field-autofill-start"!==l.animationName||i.classList.contains(o)?"cdk-text-field-autofill-end"===l.animationName&&i.classList.contains(o)&&(i.classList.remove(o),this._ngZone.run(()=>s.next({target:l.target,isAutofilled:!1}))):(i.classList.add(o),this._ngZone.run(()=>s.next({target:l.target,isAutofilled:!0})))};return this._ngZone.runOutsideAngular(()=>{i.addEventListener("animationstart",a,n4),i.classList.add("cdk-text-field-autofill-monitored")}),this._monitoredElements.set(i,{subject:s,unlisten:()=>{i.removeEventListener("animationstart",a,n4)}}),s}stopMonitoring(e){const i=Ri(e),r=this._monitoredElements.get(i);r&&(r.unlisten(),r.subject.complete(),i.classList.remove("cdk-text-field-autofill-monitored"),i.classList.remove("cdk-text-field-autofilled"),this._monitoredElements.delete(i))}ngOnDestroy(){this._monitoredElements.forEach((e,i)=>this.stopMonitoring(i))}}return n.\u0275fac=function(e){return new(e||n)(v(pn),v(ie))},n.\u0275prov=S({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),i4=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=me({type:n}),n.\u0275inj=pe({}),n})();const BN=new R("MAT_INPUT_VALUE_ACCESSOR"),HN=["button","checkbox","file","hidden","image","radio","range","reset","submit"];let zN=0;const jN=IE(class{constructor(n,t,e,i){this._defaultErrorStateMatcher=n,this._parentForm=t,this._parentFormGroup=e,this.ngControl=i,this.stateChanges=new le}});let UN=(()=>{class n extends jN{constructor(e,i,r,s,o,a,l,c,u,d){super(a,s,o,r),this._elementRef=e,this._platform=i,this._autofillMonitor=c,this._formField=d,this._uid="mat-input-"+zN++,this.focused=!1,this.stateChanges=new le,this.controlType="mat-input",this.autofilled=!1,this._disabled=!1,this._type="text",this._readonly=!1,this._neverEmptyInputTypes=["date","datetime","datetime-local","month","time","week"].filter(g=>G3().has(g)),this._iOSKeyupListener=g=>{const m=g.target;!m.value&&0===m.selectionStart&&0===m.selectionEnd&&(m.setSelectionRange(1,1),m.setSelectionRange(0,0))};const h=this._elementRef.nativeElement,p=h.nodeName.toLowerCase();this._inputValueAccessor=l||h,this._previousNativeValue=this.value,this.id=this.id,i.IOS&&u.runOutsideAngular(()=>{e.nativeElement.addEventListener("keyup",this._iOSKeyupListener)}),this._isServer=!this._platform.isBrowser,this._isNativeSelect="select"===p,this._isTextarea="textarea"===p,this._isInFormField=!!d,this._isNativeSelect&&(this.controlType=h.multiple?"mat-native-select-multiple":"mat-native-select")}get disabled(){return this.ngControl&&null!==this.ngControl.disabled?this.ngControl.disabled:this._disabled}set disabled(e){this._disabled=Dt(e),this.focused&&(this.focused=!1,this.stateChanges.next())}get id(){return this._id}set id(e){this._id=e||this._uid}get required(){return this._required??this.ngControl?.control?.hasValidator(Qe.required)??!1}set required(e){this._required=Dt(e)}get type(){return this._type}set type(e){this._type=e||"text",this._validateType(),!this._isTextarea&&G3().has(this._type)&&(this._elementRef.nativeElement.type=this._type)}get value(){return this._inputValueAccessor.value}set value(e){e!==this.value&&(this._inputValueAccessor.value=e,this.stateChanges.next())}get readonly(){return this._readonly}set readonly(e){this._readonly=Dt(e)}ngAfterViewInit(){this._platform.isBrowser&&this._autofillMonitor.monitor(this._elementRef.nativeElement).subscribe(e=>{this.autofilled=e.isAutofilled,this.stateChanges.next()})}ngOnChanges(){this.stateChanges.next()}ngOnDestroy(){this.stateChanges.complete(),this._platform.isBrowser&&this._autofillMonitor.stopMonitoring(this._elementRef.nativeElement),this._platform.IOS&&this._elementRef.nativeElement.removeEventListener("keyup",this._iOSKeyupListener)}ngDoCheck(){this.ngControl&&this.updateErrorState(),this._dirtyCheckNativeValue(),this._dirtyCheckPlaceholder()}focus(e){this._elementRef.nativeElement.focus(e)}_focusChanged(e){e!==this.focused&&(this.focused=e,this.stateChanges.next())}_onInput(){}_dirtyCheckPlaceholder(){const e=this._formField,i=e&&"legacy"===e.appearance&&!e._hasLabel?.()?null:this.placeholder;if(i!==this._previousPlaceholder){const r=this._elementRef.nativeElement;this._previousPlaceholder=i,i?r.setAttribute("placeholder",i):r.removeAttribute("placeholder")}}_dirtyCheckNativeValue(){const e=this._elementRef.nativeElement.value;this._previousNativeValue!==e&&(this._previousNativeValue=e,this.stateChanges.next())}_validateType(){HN.indexOf(this._type)}_isNeverEmpty(){return this._neverEmptyInputTypes.indexOf(this._type)>-1}_isBadInput(){let e=this._elementRef.nativeElement.validity;return e&&e.badInput}get empty(){return!(this._isNeverEmpty()||this._elementRef.nativeElement.value||this._isBadInput()||this.autofilled)}get shouldLabelFloat(){if(this._isNativeSelect){const e=this._elementRef.nativeElement,i=e.options[0];return this.focused||e.multiple||!this.empty||!!(e.selectedIndex>-1&&i&&i.label)}return this.focused||!this.empty}setDescribedByIds(e){e.length?this._elementRef.nativeElement.setAttribute("aria-describedby",e.join(" ")):this._elementRef.nativeElement.removeAttribute("aria-describedby")}onContainerClick(){this.focused||this.focus()}_isInlineSelect(){const e=this._elementRef.nativeElement;return this._isNativeSelect&&(e.multiple||e.size>1)}}return n.\u0275fac=function(e){return new(e||n)(_(se),_(pn),_(ui,10),_(pa,8),_(Fr,8),_(B0),_(BN,10),_(VN),_(ie),_(U0,8))},n.\u0275dir=O({type:n,selectors:[["input","matInput",""],["textarea","matInput",""],["select","matNativeControl",""],["input","matNativeControl",""],["textarea","matNativeControl",""]],hostAttrs:[1,"mat-input-element","mat-form-field-autofill-control"],hostVars:12,hostBindings:function(e,i){1&e&&W("focus",function(){return i._focusChanged(!0)})("blur",function(){return i._focusChanged(!1)})("input",function(){return i._onInput()}),2&e&&(Hl("disabled",i.disabled)("required",i.required),Ze("id",i.id)("data-placeholder",i.placeholder)("name",i.name||null)("readonly",i.readonly&&!i._isNativeSelect||null)("aria-invalid",i.empty&&i.required?null:i.errorState)("aria-required",i.required),Ht("mat-input-server",i._isServer)("mat-native-select-inline",i._isInlineSelect()))},inputs:{disabled:"disabled",id:"id",placeholder:"placeholder",name:"name",required:"required",type:"type",errorStateMatcher:"errorStateMatcher",userAriaDescribedBy:["aria-describedby","userAriaDescribedBy"],value:"value",readonly:"readonly"},exportAs:["matInput"],features:[we([{provide:_u,useExisting:n}]),ce,Ct]}),n})(),$N=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=me({type:n}),n.\u0275inj=pe({providers:[B0],imports:[i4,qs,Rt,i4,qs]}),n})();function r4(n,t,e,i,r,s,o){try{var a=n[s](o),l=a.value}catch(c){return void e(c)}a.done?t(l):Promise.resolve(l).then(i,r)}function s4(n){return function(){var t=this,e=arguments;return new Promise(function(i,r){var s=n.apply(t,e);function o(l){r4(s,i,r,o,a,"next",l)}function a(l){r4(s,i,r,o,a,"throw",l)}o(void 0)})}}const Aa=ro(n=>function(){n(this),this.name="EmptyError",this.message="no elements in sequence"});function Y0(){return We((n,t)=>{let e=null;n._refCount++;const i=Pe(t,void 0,void 0,void 0,()=>{if(!n||n._refCount<=0||0<--n._refCount)return void(e=null);const r=n._connection,s=e;e=null,r&&(!s||r===s)&&r.unsubscribe(),t.unsubscribe()});n.subscribe(i),i.closed||(e=n.connect())})}class o4 extends Te{constructor(t,e){super(),this.source=t,this.subjectFactory=e,this._subject=null,this._refCount=0,this._connection=null,x1(t)&&(this.lift=t.lift)}_subscribe(t){return this.getSubject().subscribe(t)}getSubject(){const t=this._subject;return(!t||t.isStopped)&&(this._subject=this.subjectFactory()),this._subject}_teardown(){this._refCount=0;const{_connection:t}=this;this._subject=this._connection=null,t?.unsubscribe()}connect(){let t=this._connection;if(!t){t=this._connection=new Ge;const e=this.getSubject();t.add(this.source.subscribe(Pe(e,void 0,()=>{this._teardown(),e.complete()},i=>{this._teardown(),e.error(i)},()=>this._teardown()))),t.closed&&(this._connection=null,t=Ge.EMPTY)}return t}refCount(){return Y0()(this)}}function YN(n,t,e,i,r){return(s,o)=>{let a=e,l=t,c=0;s.subscribe(Pe(o,u=>{const d=c++;l=a?n(l,u,d):(a=!0,u),i&&o.next(l)},r&&(()=>{a&&o.next(l),o.complete()})))}}function a4(n,t){return We(YN(n,t,arguments.length>=2,!0))}function G0(n){return n<=0?()=>Gn:We((t,e)=>{let i=[];t.subscribe(Pe(e,r=>{i.push(r),n<i.length&&i.shift()},()=>{for(const r of i)e.next(r);e.complete()},void 0,()=>{i=null}))})}function l4(n=GN){return We((t,e)=>{let i=!1;t.subscribe(Pe(e,r=>{i=!0,e.next(r)},()=>i?e.complete():e.error(n())))})}function GN(){return new Aa}function W0(n){return We((t,e)=>{let i=!1;t.subscribe(Pe(e,r=>{i=!0,e.next(r)},()=>{i||e.next(n),e.complete()}))})}function jr(n,t){const e=arguments.length>=2;return i=>i.pipe(n?fn((r,s)=>n(r,s,i)):Ni,Yt(1),e?W0(t):l4(()=>new Aa))}class Fi{constructor(t,e){this.id=t,this.url=e}}class c4 extends Fi{constructor(t,e,i="imperative",r=null){super(t,e),this.type=0,this.navigationTrigger=i,this.restoredState=r}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}}class Cu extends Fi{constructor(t,e,i){super(t,e),this.urlAfterRedirects=i,this.type=1}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}}class u4 extends Fi{constructor(t,e,i){super(t,e),this.reason=i,this.type=2}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}}class qN extends Fi{constructor(t,e,i){super(t,e),this.error=i,this.type=3}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}}class ZN extends Fi{constructor(t,e,i,r){super(t,e),this.urlAfterRedirects=i,this.state=r,this.type=4}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class XN extends Fi{constructor(t,e,i,r){super(t,e),this.urlAfterRedirects=i,this.state=r,this.type=7}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class QN extends Fi{constructor(t,e,i,r,s){super(t,e),this.urlAfterRedirects=i,this.state=r,this.shouldActivate=s,this.type=8}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}}class JN extends Fi{constructor(t,e,i,r){super(t,e),this.urlAfterRedirects=i,this.state=r,this.type=5}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class eP extends Fi{constructor(t,e,i,r){super(t,e),this.urlAfterRedirects=i,this.state=r,this.type=6}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class tP{constructor(t){this.route=t,this.type=9}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}}class nP{constructor(t){this.route=t,this.type=10}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}}class iP{constructor(t){this.snapshot=t,this.type=11}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class rP{constructor(t){this.snapshot=t,this.type=12}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class sP{constructor(t){this.snapshot=t,this.type=13}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class oP{constructor(t){this.snapshot=t,this.type=14}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}const re="primary";class aP{constructor(t){this.params=t||{}}has(t){return Object.prototype.hasOwnProperty.call(this.params,t)}get(t){if(this.has(t)){const e=this.params[t];return Array.isArray(e)?e[0]:e}return null}getAll(t){if(this.has(t)){const e=this.params[t];return Array.isArray(e)?e:[e]}return[]}get keys(){return Object.keys(this.params)}}function Qs(n){return new aP(n)}const d4="ngNavigationCancelingError";function K0(n){const t=Error("NavigationCancelingError: "+n);return t[d4]=!0,t}function cP(n,t,e){const i=e.path.split("/");if(i.length>n.length||"full"===e.pathMatch&&(t.hasChildren()||i.length<n.length))return null;const r={};for(let s=0;s<i.length;s++){const o=i[s],a=n[s];if(o.startsWith(":"))r[o.substring(1)]=a;else if(o!==a.path)return null}return{consumed:n.slice(0,i.length),posParams:r}}function hi(n,t){const e=n?Object.keys(n):void 0,i=t?Object.keys(t):void 0;if(!e||!i||e.length!=i.length)return!1;let r;for(let s=0;s<e.length;s++)if(r=e[s],!h4(n[r],t[r]))return!1;return!0}function h4(n,t){if(Array.isArray(n)&&Array.isArray(t)){if(n.length!==t.length)return!1;const e=[...n].sort(),i=[...t].sort();return e.every((r,s)=>i[s]===r)}return n===t}function p4(n){return n.length>0?n[n.length-1]:null}function Mt(n,t){for(const e in n)n.hasOwnProperty(e)&&t(n[e],e)}function $n(n){return ef(n)?n:Po(n)?gt(Promise.resolve(n)):V(n)}const hP={exact:function _4(n,t,e){if(!$r(n.segments,t.segments)||!Du(n.segments,t.segments,e)||n.numberOfChildren!==t.numberOfChildren)return!1;for(const i in t.children)if(!n.children[i]||!_4(n.children[i],t.children[i],e))return!1;return!0},subset:v4},g4={exact:function fP(n,t){return hi(n,t)},subset:function pP(n,t){return Object.keys(t).length<=Object.keys(n).length&&Object.keys(t).every(e=>h4(n[e],t[e]))},ignored:()=>!0};function m4(n,t,e){return hP[e.paths](n.root,t.root,e.matrixParams)&&g4[e.queryParams](n.queryParams,t.queryParams)&&!("exact"===e.fragment&&n.fragment!==t.fragment)}function v4(n,t,e){return y4(n,t,t.segments,e)}function y4(n,t,e,i){if(n.segments.length>e.length){const r=n.segments.slice(0,e.length);return!(!$r(r,e)||t.hasChildren()||!Du(r,e,i))}if(n.segments.length===e.length){if(!$r(n.segments,e)||!Du(n.segments,e,i))return!1;for(const r in t.children)if(!n.children[r]||!v4(n.children[r],t.children[r],i))return!1;return!0}{const r=e.slice(0,n.segments.length),s=e.slice(n.segments.length);return!!($r(n.segments,r)&&Du(n.segments,r,i)&&n.children[re])&&y4(n.children[re],t,s,i)}}function Du(n,t,e){return t.every((i,r)=>g4[e](n[r].parameters,i.parameters))}class Ur{constructor(t,e,i){this.root=t,this.queryParams=e,this.fragment=i}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=Qs(this.queryParams)),this._queryParamMap}toString(){return _P.serialize(this)}}class de{constructor(t,e){this.segments=t,this.children=e,this.parent=null,Mt(e,(i,r)=>i.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return Mu(this)}}class Ra{constructor(t,e){this.path=t,this.parameters=e}get parameterMap(){return this._parameterMap||(this._parameterMap=Qs(this.parameters)),this._parameterMap}toString(){return D4(this)}}function $r(n,t){return n.length===t.length&&n.every((e,i)=>e.path===t[i].path)}class w4{parse(t){const e=new SP(t);return new Ur(e.parseRootSegment(),e.parseQueryParams(),e.parseFragment())}serialize(t){const e=`/${Oa(t.root,!0)}`,i=function bP(n){const t=Object.keys(n).map(e=>{const i=n[e];return Array.isArray(i)?i.map(r=>`${Su(e)}=${Su(r)}`).join("&"):`${Su(e)}=${Su(i)}`}).filter(e=>!!e);return t.length?`?${t.join("&")}`:""}(t.queryParams);return`${e}${i}${"string"==typeof t.fragment?`#${function vP(n){return encodeURI(n)}(t.fragment)}`:""}`}}const _P=new w4;function Mu(n){return n.segments.map(t=>D4(t)).join("/")}function Oa(n,t){if(!n.hasChildren())return Mu(n);if(t){const e=n.children[re]?Oa(n.children[re],!1):"",i=[];return Mt(n.children,(r,s)=>{s!==re&&i.push(`${s}:${Oa(r,!1)}`)}),i.length>0?`${e}(${i.join("//")})`:e}{const e=function mP(n,t){let e=[];return Mt(n.children,(i,r)=>{r===re&&(e=e.concat(t(i,r)))}),Mt(n.children,(i,r)=>{r!==re&&(e=e.concat(t(i,r)))}),e}(n,(i,r)=>r===re?[Oa(n.children[re],!1)]:[`${r}:${Oa(i,!1)}`]);return 1===Object.keys(n.children).length&&null!=n.children[re]?`${Mu(n)}/${e[0]}`:`${Mu(n)}/(${e.join("//")})`}}function E4(n){return encodeURIComponent(n).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function Su(n){return E4(n).replace(/%3B/gi,";")}function q0(n){return E4(n).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function Tu(n){return decodeURIComponent(n)}function C4(n){return Tu(n.replace(/\+/g,"%20"))}function D4(n){return`${q0(n.path)}${function yP(n){return Object.keys(n).map(t=>`;${q0(t)}=${q0(n[t])}`).join("")}(n.parameters)}`}const wP=/^[^\/()?;=#]+/;function Iu(n){const t=n.match(wP);return t?t[0]:""}const EP=/^[^=?&#]+/,DP=/^[^&#]+/;class SP{constructor(t){this.url=t,this.remaining=t}parseRootSegment(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new de([],{}):new de([],this.parseChildren())}parseQueryParams(){const t={};if(this.consumeOptional("?"))do{this.parseQueryParam(t)}while(this.consumeOptional("&"));return t}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(""===this.remaining)return{};this.consumeOptional("/");const t=[];for(this.peekStartsWith("(")||t.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),t.push(this.parseSegment());let e={};this.peekStartsWith("/(")&&(this.capture("/"),e=this.parseParens(!0));let i={};return this.peekStartsWith("(")&&(i=this.parseParens(!1)),(t.length>0||Object.keys(e).length>0)&&(i[re]=new de(t,e)),i}parseSegment(){const t=Iu(this.remaining);if(""===t&&this.peekStartsWith(";"))throw new Error(`Empty path url segment cannot have parameters: '${this.remaining}'.`);return this.capture(t),new Ra(Tu(t),this.parseMatrixParams())}parseMatrixParams(){const t={};for(;this.consumeOptional(";");)this.parseParam(t);return t}parseParam(t){const e=Iu(this.remaining);if(!e)return;this.capture(e);let i="";if(this.consumeOptional("=")){const r=Iu(this.remaining);r&&(i=r,this.capture(i))}t[Tu(e)]=Tu(i)}parseQueryParam(t){const e=function CP(n){const t=n.match(EP);return t?t[0]:""}(this.remaining);if(!e)return;this.capture(e);let i="";if(this.consumeOptional("=")){const o=function MP(n){const t=n.match(DP);return t?t[0]:""}(this.remaining);o&&(i=o,this.capture(i))}const r=C4(e),s=C4(i);if(t.hasOwnProperty(r)){let o=t[r];Array.isArray(o)||(o=[o],t[r]=o),o.push(s)}else t[r]=s}parseParens(t){const e={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){const i=Iu(this.remaining),r=this.remaining[i.length];if("/"!==r&&")"!==r&&";"!==r)throw new Error(`Cannot parse url '${this.url}'`);let s;i.indexOf(":")>-1?(s=i.slice(0,i.indexOf(":")),this.capture(s),this.capture(":")):t&&(s=re);const o=this.parseChildren();e[s]=1===Object.keys(o).length?o[re]:new de([],o),this.consumeOptional("//")}return e}peekStartsWith(t){return this.remaining.startsWith(t)}consumeOptional(t){return!!this.peekStartsWith(t)&&(this.remaining=this.remaining.substring(t.length),!0)}capture(t){if(!this.consumeOptional(t))throw new Error(`Expected "${t}".`)}}class M4{constructor(t){this._root=t}get root(){return this._root.value}parent(t){const e=this.pathFromRoot(t);return e.length>1?e[e.length-2]:null}children(t){const e=Z0(t,this._root);return e?e.children.map(i=>i.value):[]}firstChild(t){const e=Z0(t,this._root);return e&&e.children.length>0?e.children[0].value:null}siblings(t){const e=X0(t,this._root);return e.length<2?[]:e[e.length-2].children.map(r=>r.value).filter(r=>r!==t)}pathFromRoot(t){return X0(t,this._root).map(e=>e.value)}}function Z0(n,t){if(n===t.value)return t;for(const e of t.children){const i=Z0(n,e);if(i)return i}return null}function X0(n,t){if(n===t.value)return[t];for(const e of t.children){const i=X0(n,e);if(i.length)return i.unshift(t),i}return[]}class ki{constructor(t,e){this.value=t,this.children=e}toString(){return`TreeNode(${this.value})`}}function Js(n){const t={};return n&&n.children.forEach(e=>t[e.value.outlet]=e),t}class S4 extends M4{constructor(t,e){super(t),this.snapshot=e,Q0(this,t)}toString(){return this.snapshot.toString()}}function T4(n,t){const e=function TP(n,t){const o=new xu([],{},{},"",{},re,t,null,n.root,-1,{});return new x4("",new ki(o,[]))}(n,t),i=new wt([new Ra("",{})]),r=new wt({}),s=new wt({}),o=new wt({}),a=new wt(""),l=new Yr(i,r,o,a,s,re,t,e.root);return l.snapshot=e.root,new S4(new ki(l,[]),e)}class Yr{constructor(t,e,i,r,s,o,a,l){this.url=t,this.params=e,this.queryParams=i,this.fragment=r,this.data=s,this.outlet=o,this.component=a,this._futureSnapshot=l}get routeConfig(){return this._futureSnapshot.routeConfig}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap||(this._paramMap=this.params.pipe(K(t=>Qs(t)))),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe(K(t=>Qs(t)))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}}function I4(n,t="emptyOnly"){const e=n.pathFromRoot;let i=0;if("always"!==t)for(i=e.length-1;i>=1;){const r=e[i],s=e[i-1];if(r.routeConfig&&""===r.routeConfig.path)i--;else{if(s.component)break;i--}}return function IP(n){return n.reduce((t,e)=>({params:{...t.params,...e.params},data:{...t.data,...e.data},resolve:{...e.data,...t.resolve,...e.routeConfig?.data,...e._resolvedData}}),{params:{},data:{},resolve:{}})}(e.slice(i))}class xu{constructor(t,e,i,r,s,o,a,l,c,u,d,h){this.url=t,this.params=e,this.queryParams=i,this.fragment=r,this.data=s,this.outlet=o,this.component=a,this.routeConfig=l,this._urlSegment=c,this._lastPathIndex=u,this._correctedLastPathIndex=h??u,this._resolve=d}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap||(this._paramMap=Qs(this.params)),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=Qs(this.queryParams)),this._queryParamMap}toString(){return`Route(url:'${this.url.map(i=>i.toString()).join("/")}', path:'${this.routeConfig?this.routeConfig.path:""}')`}}class x4 extends M4{constructor(t,e){super(e),this.url=t,Q0(this,e)}toString(){return A4(this._root)}}function Q0(n,t){t.value._routerState=n,t.children.forEach(e=>Q0(n,e))}function A4(n){const t=n.children.length>0?` { ${n.children.map(A4).join(", ")} } `:"";return`${n.value}${t}`}function J0(n){if(n.snapshot){const t=n.snapshot,e=n._futureSnapshot;n.snapshot=e,hi(t.queryParams,e.queryParams)||n.queryParams.next(e.queryParams),t.fragment!==e.fragment&&n.fragment.next(e.fragment),hi(t.params,e.params)||n.params.next(e.params),function uP(n,t){if(n.length!==t.length)return!1;for(let e=0;e<n.length;++e)if(!hi(n[e],t[e]))return!1;return!0}(t.url,e.url)||n.url.next(e.url),hi(t.data,e.data)||n.data.next(e.data)}else n.snapshot=n._futureSnapshot,n.data.next(n._futureSnapshot.data)}function e1(n,t){const e=hi(n.params,t.params)&&function gP(n,t){return $r(n,t)&&n.every((e,i)=>hi(e.parameters,t[i].parameters))}(n.url,t.url);return e&&!(!n.parent!=!t.parent)&&(!n.parent||e1(n.parent,t.parent))}function Fa(n,t,e){if(e&&n.shouldReuseRoute(t.value,e.value.snapshot)){const i=e.value;i._futureSnapshot=t.value;const r=function AP(n,t,e){return t.children.map(i=>{for(const r of e.children)if(n.shouldReuseRoute(i.value,r.value.snapshot))return Fa(n,i,r);return Fa(n,i)})}(n,t,e);return new ki(i,r)}{if(n.shouldAttach(t.value)){const s=n.retrieve(t.value);if(null!==s){const o=s.route;return o.value._futureSnapshot=t.value,o.children=t.children.map(a=>Fa(n,a)),o}}const i=function RP(n){return new Yr(new wt(n.url),new wt(n.params),new wt(n.queryParams),new wt(n.fragment),new wt(n.data),n.outlet,n.component,n)}(t.value),r=t.children.map(s=>Fa(n,s));return new ki(i,r)}}function Au(n){return"object"==typeof n&&null!=n&&!n.outlets&&!n.segmentPath}function ka(n){return"object"==typeof n&&null!=n&&n.outlets}function t1(n,t,e,i,r){let s={};if(i&&Mt(i,(a,l)=>{s[l]=Array.isArray(a)?a.map(c=>`${c}`):`${a}`}),n===t)return new Ur(e,s,r);const o=R4(n,t,e);return new Ur(o,s,r)}function R4(n,t,e){const i={};return Mt(n.children,(r,s)=>{i[s]=r===t?e:R4(r,t,e)}),new de(n.segments,i)}class O4{constructor(t,e,i){if(this.isAbsolute=t,this.numberOfDoubleDots=e,this.commands=i,t&&i.length>0&&Au(i[0]))throw new Error("Root segment cannot have matrix parameters");const r=i.find(ka);if(r&&r!==p4(i))throw new Error("{outlets:{}} has to be the last command")}toRoot(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}class n1{constructor(t,e,i){this.segmentGroup=t,this.processChildren=e,this.index=i}}function F4(n,t,e){if(n||(n=new de([],{})),0===n.segments.length&&n.hasChildren())return Ru(n,t,e);const i=function PP(n,t,e){let i=0,r=t;const s={match:!1,pathIndex:0,commandIndex:0};for(;r<n.segments.length;){if(i>=e.length)return s;const o=n.segments[r],a=e[i];if(ka(a))break;const l=`${a}`,c=i<e.length-1?e[i+1]:null;if(r>0&&void 0===l)break;if(l&&c&&"object"==typeof c&&void 0===c.outlets){if(!L4(l,c,o))return s;i+=2}else{if(!L4(l,{},o))return s;i++}r++}return{match:!0,pathIndex:r,commandIndex:i}}(n,t,e),r=e.slice(i.commandIndex);if(i.match&&i.pathIndex<n.segments.length){const s=new de(n.segments.slice(0,i.pathIndex),{});return s.children[re]=new de(n.segments.slice(i.pathIndex),n.children),Ru(s,0,r)}return i.match&&0===r.length?new de(n.segments,{}):i.match&&!n.hasChildren()?r1(n,t,e):i.match?Ru(n,0,r):r1(n,t,e)}function Ru(n,t,e){if(0===e.length)return new de(n.segments,{});{const i=function NP(n){return ka(n[0])?n[0].outlets:{[re]:n}}(e),r={};return Mt(i,(s,o)=>{"string"==typeof s&&(s=[s]),null!==s&&(r[o]=F4(n.children[o],t,s))}),Mt(n.children,(s,o)=>{void 0===i[o]&&(r[o]=s)}),new de(n.segments,r)}}function r1(n,t,e){const i=n.segments.slice(0,t);let r=0;for(;r<e.length;){const s=e[r];if(ka(s)){const l=VP(s.outlets);return new de(i,l)}if(0===r&&Au(e[0])){i.push(new Ra(n.segments[t].path,k4(e[0]))),r++;continue}const o=ka(s)?s.outlets[re]:`${s}`,a=r<e.length-1?e[r+1]:null;o&&a&&Au(a)?(i.push(new Ra(o,k4(a))),r+=2):(i.push(new Ra(o,{})),r++)}return new de(i,{})}function VP(n){const t={};return Mt(n,(e,i)=>{"string"==typeof e&&(e=[e]),null!==e&&(t[i]=r1(new de([],{}),0,e))}),t}function k4(n){const t={};return Mt(n,(e,i)=>t[i]=`${e}`),t}function L4(n,t,e){return n==e.path&&hi(t,e.parameters)}class BP{constructor(){this.outlet=null,this.route=null,this.resolver=null,this.injector=null,this.children=new La,this.attachRef=null}}class La{constructor(){this.contexts=new Map}onChildOutletCreated(t,e){const i=this.getOrCreateContext(t);i.outlet=e,this.contexts.set(t,i)}onChildOutletDestroyed(t){const e=this.getContext(t);e&&(e.outlet=null,e.attachRef=null)}onOutletDeactivated(){const t=this.contexts;return this.contexts=new Map,t}onOutletReAttached(t){this.contexts=t}getOrCreateContext(t){let e=this.getContext(t);return e||(e=new BP,this.contexts.set(t,e)),e}getContext(t){return this.contexts.get(t)||null}}let N4=(()=>{class n{constructor(e,i,r,s,o){this.parentContexts=e,this.location=i,this.changeDetector=s,this.environmentInjector=o,this.activated=null,this._activatedRoute=null,this.activateEvents=new Y,this.deactivateEvents=new Y,this.attachEvents=new Y,this.detachEvents=new Y,this.name=r||re,e.onChildOutletCreated(this.name,this)}ngOnDestroy(){this.parentContexts.onChildOutletDestroyed(this.name)}ngOnInit(){if(!this.activated){const e=this.parentContexts.getContext(this.name);e&&e.route&&(e.attachRef?this.attach(e.attachRef,e.route):this.activateWith(e.route,e.injector))}}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new Error("Outlet is not activated");return this.activated.instance}get activatedRoute(){if(!this.activated)throw new Error("Outlet is not activated");return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new Error("Outlet is not activated");this.location.detach();const e=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(e.instance),e}attach(e,i){this.activated=e,this._activatedRoute=i,this.location.insert(e.hostView),this.attachEvents.emit(e.instance)}deactivate(){if(this.activated){const e=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(e)}}activateWith(e,i){if(this.isActivated)throw new Error("Cannot activate an already activated outlet");this._activatedRoute=e;const r=this.location,o=e._futureSnapshot.component,a=this.parentContexts.getOrCreateContext(this.name).children,l=new HP(e,a,r.injector);if(i&&function zP(n){return!!n.resolveComponentFactory}(i)){const c=i.resolveComponentFactory(o);this.activated=r.createComponent(c,r.length,l)}else this.activated=r.createComponent(o,{index:r.length,injector:l,environmentInjector:i??this.environmentInjector});this.changeDetector.markForCheck(),this.activateEvents.emit(this.activated.instance)}}return n.\u0275fac=function(e){return new(e||n)(_(La),_(un),ji("name"),_(Si),_(yr))},n.\u0275dir=O({type:n,selectors:[["router-outlet"]],outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"]}),n})();class HP{constructor(t,e,i){this.route=t,this.childContexts=e,this.parent=i}get(t,e){return t===Yr?this.route:t===La?this.childContexts:this.parent.get(t,e)}}let P4=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=Ft({type:n,selectors:[["ng-component"]],decls:1,vars:0,template:function(e,i){1&e&&oe(0,"router-outlet")},dependencies:[N4],encapsulation:2}),n})();function V4(n,t){return n.providers&&!n._injector&&(n._injector=function Gl(n,t=null,e=null){return new pI(n,t,e).injector}(n.providers,t,`Route: ${n.path}`)),n._injector??t}function o1(n){const t=n.children&&n.children.map(o1),e=t?{...n,children:t}:{...n};return!e.component&&!e.loadComponent&&(t||e.loadChildren)&&e.outlet&&e.outlet!==re&&(e.component=P4),e}function In(n){return n.outlet||re}function B4(n,t){const e=n.filter(i=>In(i)===t);return e.push(...n.filter(i=>In(i)!==t)),e}function H4(n){if(!n)return null;if(n.routeConfig?._injector)return n.routeConfig._injector;for(let t=n.parent;t;t=t.parent){const e=t.routeConfig;if(e?._loadedInjector)return e._loadedInjector;if(e?._injector)return e._injector}return null}class GP{constructor(t,e,i,r){this.routeReuseStrategy=t,this.futureState=e,this.currState=i,this.forwardEvent=r}activate(t){const e=this.futureState._root,i=this.currState?this.currState._root:null;this.deactivateChildRoutes(e,i,t),J0(this.futureState.root),this.activateChildRoutes(e,i,t)}deactivateChildRoutes(t,e,i){const r=Js(e);t.children.forEach(s=>{const o=s.value.outlet;this.deactivateRoutes(s,r[o],i),delete r[o]}),Mt(r,(s,o)=>{this.deactivateRouteAndItsChildren(s,i)})}deactivateRoutes(t,e,i){const r=t.value,s=e?e.value:null;if(r===s)if(r.component){const o=i.getContext(r.outlet);o&&this.deactivateChildRoutes(t,e,o.children)}else this.deactivateChildRoutes(t,e,i);else s&&this.deactivateRouteAndItsChildren(e,i)}deactivateRouteAndItsChildren(t,e){t.value.component&&this.routeReuseStrategy.shouldDetach(t.value.snapshot)?this.detachAndStoreRouteSubtree(t,e):this.deactivateRouteAndOutlet(t,e)}detachAndStoreRouteSubtree(t,e){const i=e.getContext(t.value.outlet),r=i&&t.value.component?i.children:e,s=Js(t);for(const o of Object.keys(s))this.deactivateRouteAndItsChildren(s[o],r);if(i&&i.outlet){const o=i.outlet.detach(),a=i.children.onOutletDeactivated();this.routeReuseStrategy.store(t.value.snapshot,{componentRef:o,route:t,contexts:a})}}deactivateRouteAndOutlet(t,e){const i=e.getContext(t.value.outlet),r=i&&t.value.component?i.children:e,s=Js(t);for(const o of Object.keys(s))this.deactivateRouteAndItsChildren(s[o],r);i&&i.outlet&&(i.outlet.deactivate(),i.children.onOutletDeactivated(),i.attachRef=null,i.resolver=null,i.route=null)}activateChildRoutes(t,e,i){const r=Js(e);t.children.forEach(s=>{this.activateRoutes(s,r[s.value.outlet],i),this.forwardEvent(new oP(s.value.snapshot))}),t.children.length&&this.forwardEvent(new rP(t.value.snapshot))}activateRoutes(t,e,i){const r=t.value,s=e?e.value:null;if(J0(r),r===s)if(r.component){const o=i.getOrCreateContext(r.outlet);this.activateChildRoutes(t,e,o.children)}else this.activateChildRoutes(t,e,i);else if(r.component){const o=i.getOrCreateContext(r.outlet);if(this.routeReuseStrategy.shouldAttach(r.snapshot)){const a=this.routeReuseStrategy.retrieve(r.snapshot);this.routeReuseStrategy.store(r.snapshot,null),o.children.onOutletReAttached(a.contexts),o.attachRef=a.componentRef,o.route=a.route.value,o.outlet&&o.outlet.attach(a.componentRef,a.route.value),J0(a.route.value),this.activateChildRoutes(t,null,o.children)}else{const a=H4(r.snapshot),l=a?.get(Yi)??null;o.attachRef=null,o.route=r,o.resolver=l,o.injector=a,o.outlet&&o.outlet.activateWith(r,o.injector),this.activateChildRoutes(t,null,o.children)}}else this.activateChildRoutes(t,null,i)}}function or(n){return"function"==typeof n}function Gr(n){return n instanceof Ur}const Na=Symbol("INITIAL_VALUE");function Pa(){return Tn(n=>N0(n.map(t=>t.pipe(Yt(1),Hr(Na)))).pipe(a4((t,e)=>{let i=!1;return e.reduce((r,s,o)=>r!==Na?r:(s===Na&&(i=!0),i||!1!==s&&o!==e.length-1&&!Gr(s)?r:s),t)},Na),fn(t=>t!==Na),K(t=>Gr(t)?t:!0===t),Yt(1)))}const z4={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function Ou(n,t,e){if(""===t.path)return"full"===t.pathMatch&&(n.hasChildren()||e.length>0)?{...z4}:{matched:!0,consumedSegments:[],remainingSegments:e,parameters:{},positionalParamSegments:{}};const r=(t.matcher||cP)(e,n,t);if(!r)return{...z4};const s={};Mt(r.posParams,(a,l)=>{s[l]=a.path});const o=r.consumed.length>0?{...s,...r.consumed[r.consumed.length-1].parameters}:s;return{matched:!0,consumedSegments:r.consumed,remainingSegments:e.slice(r.consumed.length),parameters:o,positionalParamSegments:r.posParams??{}}}function Fu(n,t,e,i,r="corrected"){if(e.length>0&&function eV(n,t,e){return e.some(i=>ku(n,t,i)&&In(i)!==re)}(n,e,i)){const o=new de(t,function JP(n,t,e,i){const r={};r[re]=i,i._sourceSegment=n,i._segmentIndexShift=t.length;for(const s of e)if(""===s.path&&In(s)!==re){const o=new de([],{});o._sourceSegment=n,o._segmentIndexShift=t.length,r[In(s)]=o}return r}(n,t,i,new de(e,n.children)));return o._sourceSegment=n,o._segmentIndexShift=t.length,{segmentGroup:o,slicedSegments:[]}}if(0===e.length&&function tV(n,t,e){return e.some(i=>ku(n,t,i))}(n,e,i)){const o=new de(n.segments,function QP(n,t,e,i,r,s){const o={};for(const a of i)if(ku(n,e,a)&&!r[In(a)]){const l=new de([],{});l._sourceSegment=n,l._segmentIndexShift="legacy"===s?n.segments.length:t.length,o[In(a)]=l}return{...r,...o}}(n,t,e,i,n.children,r));return o._sourceSegment=n,o._segmentIndexShift=t.length,{segmentGroup:o,slicedSegments:e}}const s=new de(n.segments,n.children);return s._sourceSegment=n,s._segmentIndexShift=t.length,{segmentGroup:s,slicedSegments:e}}function ku(n,t,e){return(!(n.hasChildren()||t.length>0)||"full"!==e.pathMatch)&&""===e.path}function j4(n,t,e,i){return!!(In(n)===i||i!==re&&ku(t,e,n))&&("**"===n.path||Ou(t,n,e).matched)}function U4(n,t,e){return 0===t.length&&!n.children[e]}class Lu{constructor(t){this.segmentGroup=t||null}}class $4{constructor(t){this.urlTree=t}}function Va(n){return Oi(new Lu(n))}function Y4(n){return Oi(new $4(n))}class sV{constructor(t,e,i,r,s){this.injector=t,this.configLoader=e,this.urlSerializer=i,this.urlTree=r,this.config=s,this.allowRedirects=!0}apply(){const t=Fu(this.urlTree.root,[],[],this.config).segmentGroup,e=new de(t.segments,t.children);return this.expandSegmentGroup(this.injector,this.config,e,re).pipe(K(s=>this.createUrlTree(a1(s),this.urlTree.queryParams,this.urlTree.fragment))).pipe(Xt(s=>{if(s instanceof $4)return this.allowRedirects=!1,this.match(s.urlTree);throw s instanceof Lu?this.noMatchError(s):s}))}match(t){return this.expandSegmentGroup(this.injector,this.config,t.root,re).pipe(K(r=>this.createUrlTree(a1(r),t.queryParams,t.fragment))).pipe(Xt(r=>{throw r instanceof Lu?this.noMatchError(r):r}))}noMatchError(t){return new Error(`Cannot match any routes. URL Segment: '${t.segmentGroup}'`)}createUrlTree(t,e,i){const r=t.segments.length>0?new de([],{[re]:t}):t;return new Ur(r,e,i)}expandSegmentGroup(t,e,i,r){return 0===i.segments.length&&i.hasChildren()?this.expandChildren(t,e,i).pipe(K(s=>new de([],s))):this.expandSegment(t,i,e,i.segments,r,!0)}expandChildren(t,e,i){const r=[];for(const s of Object.keys(i.children))"primary"===s?r.unshift(s):r.push(s);return gt(r).pipe(Nr(s=>{const o=i.children[s],a=B4(e,s);return this.expandSegmentGroup(t,a,o,s).pipe(K(l=>({segment:l,outlet:s})))}),a4((s,o)=>(s[o.outlet]=o.segment,s),{}),function WN(n,t){const e=arguments.length>=2;return i=>i.pipe(n?fn((r,s)=>n(r,s,i)):Ni,G0(1),e?W0(t):l4(()=>new Aa))}())}expandSegment(t,e,i,r,s,o){return gt(i).pipe(Nr(a=>this.expandSegmentAgainstRoute(t,e,i,a,r,s,o).pipe(Xt(c=>{if(c instanceof Lu)return V(null);throw c}))),jr(a=>!!a),Xt((a,l)=>{if(a instanceof Aa||"EmptyError"===a.name)return U4(e,r,s)?V(new de([],{})):Va(e);throw a}))}expandSegmentAgainstRoute(t,e,i,r,s,o,a){return j4(r,e,s,o)?void 0===r.redirectTo?this.matchSegmentAgainstRoute(t,e,r,s,o):a&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(t,e,i,r,s,o):Va(e):Va(e)}expandSegmentAgainstRouteUsingRedirect(t,e,i,r,s,o){return"**"===r.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(t,i,r,o):this.expandRegularSegmentAgainstRouteUsingRedirect(t,e,i,r,s,o)}expandWildCardWithParamsAgainstRouteUsingRedirect(t,e,i,r){const s=this.applyRedirectCommands([],i.redirectTo,{});return i.redirectTo.startsWith("/")?Y4(s):this.lineralizeSegments(i,s).pipe(pt(o=>{const a=new de(o,{});return this.expandSegment(t,a,e,o,r,!1)}))}expandRegularSegmentAgainstRouteUsingRedirect(t,e,i,r,s,o){const{matched:a,consumedSegments:l,remainingSegments:c,positionalParamSegments:u}=Ou(e,r,s);if(!a)return Va(e);const d=this.applyRedirectCommands(l,r.redirectTo,u);return r.redirectTo.startsWith("/")?Y4(d):this.lineralizeSegments(r,d).pipe(pt(h=>this.expandSegment(t,e,i,h.concat(c),o,!1)))}matchSegmentAgainstRoute(t,e,i,r,s){if("**"===i.path)return t=V4(i,t),i.loadChildren?(i._loadedRoutes?V({routes:i._loadedRoutes,injector:i._loadedInjector}):this.configLoader.loadChildren(t,i)).pipe(K(d=>(i._loadedRoutes=d.routes,i._loadedInjector=d.injector,new de(r,{})))):V(new de(r,{}));const{matched:o,consumedSegments:a,remainingSegments:l}=Ou(e,i,r);return o?(t=V4(i,t),this.getChildConfig(t,i,r).pipe(pt(u=>{const d=u.injector??t,h=u.routes,{segmentGroup:p,slicedSegments:g}=Fu(e,a,l,h),m=new de(p.segments,p.children);if(0===g.length&&m.hasChildren())return this.expandChildren(d,h,m).pipe(K(E=>new de(a,E)));if(0===h.length&&0===g.length)return V(new de(a,{}));const y=In(i)===s;return this.expandSegment(d,m,h,g,y?re:s,!0).pipe(K(I=>new de(a.concat(I.segments),I.children)))}))):Va(e)}getChildConfig(t,e,i){return e.children?V({routes:e.children,injector:t}):e.loadChildren?void 0!==e._loadedRoutes?V({routes:e._loadedRoutes,injector:e._loadedInjector}):this.runCanLoadGuards(t,e,i).pipe(pt(r=>r?this.configLoader.loadChildren(t,e).pipe(et(s=>{e._loadedRoutes=s.routes,e._loadedInjector=s.injector})):function iV(n){return Oi(K0(`Cannot load children because the guard of the route "path: '${n.path}'" returned false`))}(e))):V({routes:[],injector:t})}runCanLoadGuards(t,e,i){const r=e.canLoad;return r&&0!==r.length?V(r.map(o=>{const a=t.get(o);let l;if(function KP(n){return n&&or(n.canLoad)}(a))l=a.canLoad(e,i);else{if(!or(a))throw new Error("Invalid CanLoad guard");l=a(e,i)}return $n(l)})).pipe(Pa(),et(o=>{if(!Gr(o))return;const a=K0(`Redirecting to "${this.urlSerializer.serialize(o)}"`);throw a.url=o,a}),K(o=>!0===o)):V(!0)}lineralizeSegments(t,e){let i=[],r=e.root;for(;;){if(i=i.concat(r.segments),0===r.numberOfChildren)return V(i);if(r.numberOfChildren>1||!r.children[re])return Oi(new Error(`Only absolute redirects can have named outlets. redirectTo: '${t.redirectTo}'`));r=r.children[re]}}applyRedirectCommands(t,e,i){return this.applyRedirectCreatreUrlTree(e,this.urlSerializer.parse(e),t,i)}applyRedirectCreatreUrlTree(t,e,i,r){const s=this.createSegmentGroup(t,e.root,i,r);return new Ur(s,this.createQueryParams(e.queryParams,this.urlTree.queryParams),e.fragment)}createQueryParams(t,e){const i={};return Mt(t,(r,s)=>{if("string"==typeof r&&r.startsWith(":")){const a=r.substring(1);i[s]=e[a]}else i[s]=r}),i}createSegmentGroup(t,e,i,r){const s=this.createSegments(t,e.segments,i,r);let o={};return Mt(e.children,(a,l)=>{o[l]=this.createSegmentGroup(t,a,i,r)}),new de(s,o)}createSegments(t,e,i,r){return e.map(s=>s.path.startsWith(":")?this.findPosParam(t,s,r):this.findOrReturn(s,i))}findPosParam(t,e,i){const r=i[e.path.substring(1)];if(!r)throw new Error(`Cannot redirect to '${t}'. Cannot find '${e.path}'.`);return r}findOrReturn(t,e){let i=0;for(const r of e){if(r.path===t.path)return e.splice(i),r;i++}return t}}function a1(n){const t={};for(const i of Object.keys(n.children)){const s=a1(n.children[i]);(s.segments.length>0||s.hasChildren())&&(t[i]=s)}return function oV(n){if(1===n.numberOfChildren&&n.children[re]){const t=n.children[re];return new de(n.segments.concat(t.segments),t.children)}return n}(new de(n.segments,t))}class G4{constructor(t){this.path=t,this.route=this.path[this.path.length-1]}}class Nu{constructor(t,e){this.component=t,this.route=e}}function lV(n,t,e){const i=n._root;return Ba(i,t?t._root:null,e,[i.value])}function Pu(n,t,e){return(H4(t)??e).get(n)}function Ba(n,t,e,i,r={canDeactivateChecks:[],canActivateChecks:[]}){const s=Js(t);return n.children.forEach(o=>{(function uV(n,t,e,i,r={canDeactivateChecks:[],canActivateChecks:[]}){const s=n.value,o=t?t.value:null,a=e?e.getContext(n.value.outlet):null;if(o&&s.routeConfig===o.routeConfig){const l=function dV(n,t,e){if("function"==typeof e)return e(n,t);switch(e){case"pathParamsChange":return!$r(n.url,t.url);case"pathParamsOrQueryParamsChange":return!$r(n.url,t.url)||!hi(n.queryParams,t.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!e1(n,t)||!hi(n.queryParams,t.queryParams);default:return!e1(n,t)}}(o,s,s.routeConfig.runGuardsAndResolvers);l?r.canActivateChecks.push(new G4(i)):(s.data=o.data,s._resolvedData=o._resolvedData),Ba(n,t,s.component?a?a.children:null:e,i,r),l&&a&&a.outlet&&a.outlet.isActivated&&r.canDeactivateChecks.push(new Nu(a.outlet.component,o))}else o&&Ha(t,a,r),r.canActivateChecks.push(new G4(i)),Ba(n,null,s.component?a?a.children:null:e,i,r)})(o,s[o.value.outlet],e,i.concat([o.value]),r),delete s[o.value.outlet]}),Mt(s,(o,a)=>Ha(o,e.getContext(a),r)),r}function Ha(n,t,e){const i=Js(n),r=n.value;Mt(i,(s,o)=>{Ha(s,r.component?t?t.children.getContext(o):null:t,e)}),e.canDeactivateChecks.push(new Nu(r.component&&t&&t.outlet&&t.outlet.isActivated?t.outlet.component:null,r))}class bV{}function K4(n){return new Te(t=>t.error(n))}class EV{constructor(t,e,i,r,s,o){this.rootComponentType=t,this.config=e,this.urlTree=i,this.url=r,this.paramsInheritanceStrategy=s,this.relativeLinkResolution=o}recognize(){const t=Fu(this.urlTree.root,[],[],this.config.filter(o=>void 0===o.redirectTo),this.relativeLinkResolution).segmentGroup,e=this.processSegmentGroup(this.config,t,re);if(null===e)return null;const i=new xu([],Object.freeze({}),Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,{},re,this.rootComponentType,null,this.urlTree.root,-1,{}),r=new ki(i,e),s=new x4(this.url,r);return this.inheritParamsAndData(s._root),s}inheritParamsAndData(t){const e=t.value,i=I4(e,this.paramsInheritanceStrategy);e.params=Object.freeze(i.params),e.data=Object.freeze(i.data),t.children.forEach(r=>this.inheritParamsAndData(r))}processSegmentGroup(t,e,i){return 0===e.segments.length&&e.hasChildren()?this.processChildren(t,e):this.processSegment(t,e,e.segments,i)}processChildren(t,e){const i=[];for(const s of Object.keys(e.children)){const o=e.children[s],a=B4(t,s),l=this.processSegmentGroup(a,o,s);if(null===l)return null;i.push(...l)}const r=q4(i);return function CV(n){n.sort((t,e)=>t.value.outlet===re?-1:e.value.outlet===re?1:t.value.outlet.localeCompare(e.value.outlet))}(r),r}processSegment(t,e,i,r){for(const s of t){const o=this.processSegmentAgainstRoute(s,e,i,r);if(null!==o)return o}return U4(e,i,r)?[]:null}processSegmentAgainstRoute(t,e,i,r){if(t.redirectTo||!j4(t,e,i,r))return null;let s,o=[],a=[];if("**"===t.path){const p=i.length>0?p4(i).parameters:{},g=X4(e)+i.length;s=new xu(i,p,Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,J4(t),In(t),t.component??t._loadedComponent??null,t,Z4(e),g,eC(t),g)}else{const p=Ou(e,t,i);if(!p.matched)return null;o=p.consumedSegments,a=p.remainingSegments;const g=X4(e)+o.length;s=new xu(o,p.parameters,Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,J4(t),In(t),t.component??t._loadedComponent??null,t,Z4(e),g,eC(t),g)}const l=function DV(n){return n.children?n.children:n.loadChildren?n._loadedRoutes:[]}(t),{segmentGroup:c,slicedSegments:u}=Fu(e,o,a,l.filter(p=>void 0===p.redirectTo),this.relativeLinkResolution);if(0===u.length&&c.hasChildren()){const p=this.processChildren(l,c);return null===p?null:[new ki(s,p)]}if(0===l.length&&0===u.length)return[new ki(s,[])];const d=In(t)===r,h=this.processSegment(l,c,u,d?re:r);return null===h?null:[new ki(s,h)]}}function MV(n){const t=n.value.routeConfig;return t&&""===t.path&&void 0===t.redirectTo}function q4(n){const t=[],e=new Set;for(const i of n){if(!MV(i)){t.push(i);continue}const r=t.find(s=>i.value.routeConfig===s.value.routeConfig);void 0!==r?(r.children.push(...i.children),e.add(r)):t.push(i)}for(const i of e){const r=q4(i.children);t.push(new ki(i.value,r))}return t.filter(i=>!e.has(i))}function Z4(n){let t=n;for(;t._sourceSegment;)t=t._sourceSegment;return t}function X4(n){let t=n,e=t._segmentIndexShift??0;for(;t._sourceSegment;)t=t._sourceSegment,e+=t._segmentIndexShift??0;return e-1}function J4(n){return n.data||{}}function eC(n){return n.resolve||{}}const l1=Symbol("RouteTitle");function tC(n){return"string"==typeof n.title||null===n.title}function c1(n){return Tn(t=>{const e=n(t);return e?gt(e).pipe(K(()=>t)):V(t)})}class kV extends class FV{shouldDetach(t){return!1}store(t,e){}shouldAttach(t){return!1}retrieve(t){return null}shouldReuseRoute(t,e){return t.routeConfig===e.routeConfig}}{}const u1=new R("ROUTES");let d1=(()=>{class n{constructor(e,i){this.injector=e,this.compiler=i,this.componentLoaders=new WeakMap,this.childrenLoaders=new WeakMap}loadComponent(e){if(this.componentLoaders.get(e))return this.componentLoaders.get(e);if(e._loadedComponent)return V(e._loadedComponent);this.onLoadStartListener&&this.onLoadStartListener(e);const i=$n(e.loadComponent()).pipe(et(s=>{this.onLoadEndListener&&this.onLoadEndListener(e),e._loadedComponent=s}),Xs(()=>{this.componentLoaders.delete(e)})),r=new o4(i,()=>new le).pipe(Y0());return this.componentLoaders.set(e,r),r}loadChildren(e,i){if(this.childrenLoaders.get(i))return this.childrenLoaders.get(i);if(i._loadedRoutes)return V({routes:i._loadedRoutes,injector:i._loadedInjector});this.onLoadStartListener&&this.onLoadStartListener(i);const s=this.loadModuleFactoryOrRoutes(i.loadChildren).pipe(K(a=>{this.onLoadEndListener&&this.onLoadEndListener(i);let l,c,u=!1;Array.isArray(a)?c=a:(l=a.create(e).injector,c=function f4(n){return Array.prototype.concat.apply([],n)}(l.get(u1,[],z.Self|z.Optional)));return{routes:c.map(o1),injector:l}}),Xs(()=>{this.childrenLoaders.delete(i)})),o=new o4(s,()=>new le).pipe(Y0());return this.childrenLoaders.set(i,o),o}loadModuleFactoryOrRoutes(e){return $n(e()).pipe(pt(i=>i instanceof My||Array.isArray(i)?V(i):gt(this.compiler.compileModuleAsync(i))))}}return n.\u0275fac=function(e){return new(e||n)(v(it),v(Rf))},n.\u0275prov=S({token:n,factory:n.\u0275fac}),n})();class NV{shouldProcessUrl(t){return!0}extract(t){return t}merge(t,e){return t}}function VV(n){throw n}function BV(n,t,e){return t.parse("/")}const HV={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},zV={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"};let fi=(()=>{class n{constructor(e,i,r,s,o,a,l){this.rootComponentType=e,this.urlSerializer=i,this.rootContexts=r,this.location=s,this.config=l,this.lastSuccessfulNavigation=null,this.currentNavigation=null,this.disposed=!1,this.navigationId=0,this.currentPageId=0,this.isNgZoneEnabled=!1,this.events=new le,this.errorHandler=VV,this.malformedUriErrorHandler=BV,this.navigated=!1,this.lastSuccessfulId=-1,this.afterPreactivation=()=>V(void 0),this.urlHandlingStrategy=new NV,this.routeReuseStrategy=new kV,this.onSameUrlNavigation="ignore",this.paramsInheritanceStrategy="emptyOnly",this.urlUpdateStrategy="deferred",this.relativeLinkResolution="corrected",this.canceledNavigationResolution="replace",this.configLoader=o.get(d1),this.configLoader.onLoadEndListener=h=>this.triggerEvent(new nP(h)),this.configLoader.onLoadStartListener=h=>this.triggerEvent(new tP(h)),this.ngModule=o.get(Gi),this.console=o.get(cx);const d=o.get(ie);this.isNgZoneEnabled=d instanceof ie&&ie.isInAngularZone(),this.resetConfig(l),this.currentUrlTree=function dP(){return new Ur(new de([],{}),{},null)}(),this.rawUrlTree=this.currentUrlTree,this.browserUrlTree=this.currentUrlTree,this.routerState=T4(this.currentUrlTree,this.rootComponentType),this.transitions=new wt({id:0,targetPageId:0,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,extractedUrl:this.urlHandlingStrategy.extract(this.currentUrlTree),urlAfterRedirects:this.urlHandlingStrategy.extract(this.currentUrlTree),rawUrl:this.currentUrlTree,extras:{},resolve:null,reject:null,promise:Promise.resolve(!0),source:"imperative",restoredState:null,currentSnapshot:this.routerState.snapshot,targetSnapshot:null,currentRouterState:this.routerState,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.navigations=this.setupNavigations(this.transitions),this.processNavigations()}get browserPageId(){return this.location.getState()?.\u0275routerPageId}setupNavigations(e){const i=this.events;return e.pipe(fn(r=>0!==r.id),K(r=>({...r,extractedUrl:this.urlHandlingStrategy.extract(r.rawUrl)})),Tn(r=>{let s=!1,o=!1;return V(r).pipe(et(a=>{this.currentNavigation={id:a.id,initialUrl:a.rawUrl,extractedUrl:a.extractedUrl,trigger:a.source,extras:a.extras,previousNavigation:this.lastSuccessfulNavigation?{...this.lastSuccessfulNavigation,previousNavigation:null}:null}}),Tn(a=>{const l=this.browserUrlTree.toString(),c=!this.navigated||a.extractedUrl.toString()!==l||l!==this.currentUrlTree.toString();if(("reload"===this.onSameUrlNavigation||c)&&this.urlHandlingStrategy.shouldProcessUrl(a.rawUrl))return iC(a.source)&&(this.browserUrlTree=a.extractedUrl),V(a).pipe(Tn(d=>{const h=this.transitions.getValue();return i.next(new c4(d.id,this.serializeUrl(d.extractedUrl),d.source,d.restoredState)),h!==this.transitions.getValue()?Gn:Promise.resolve(d)}),function aV(n,t,e,i){return Tn(r=>function rV(n,t,e,i,r){return new sV(n,t,e,i,r).apply()}(n,t,e,r.extractedUrl,i).pipe(K(s=>({...r,urlAfterRedirects:s}))))}(this.ngModule.injector,this.configLoader,this.urlSerializer,this.config),et(d=>{this.currentNavigation={...this.currentNavigation,finalUrl:d.urlAfterRedirects}}),function SV(n,t,e,i,r){return pt(s=>function wV(n,t,e,i,r="emptyOnly",s="legacy"){try{const o=new EV(n,t,e,i,r,s).recognize();return null===o?K4(new bV):V(o)}catch(o){return K4(o)}}(n,t,s.urlAfterRedirects,e(s.urlAfterRedirects),i,r).pipe(K(o=>({...s,targetSnapshot:o}))))}(this.rootComponentType,this.config,d=>this.serializeUrl(d),this.paramsInheritanceStrategy,this.relativeLinkResolution),et(d=>{if("eager"===this.urlUpdateStrategy){if(!d.extras.skipLocationChange){const p=this.urlHandlingStrategy.merge(d.urlAfterRedirects,d.rawUrl);this.setBrowserUrl(p,d)}this.browserUrlTree=d.urlAfterRedirects}const h=new ZN(d.id,this.serializeUrl(d.extractedUrl),this.serializeUrl(d.urlAfterRedirects),d.targetSnapshot);i.next(h)}));if(c&&this.rawUrlTree&&this.urlHandlingStrategy.shouldProcessUrl(this.rawUrlTree)){const{id:h,extractedUrl:p,source:g,restoredState:m,extras:y}=a,b=new c4(h,this.serializeUrl(p),g,m);i.next(b);const I=T4(p,this.rootComponentType).snapshot;return V({...a,targetSnapshot:I,urlAfterRedirects:p,extras:{...y,skipLocationChange:!1,replaceUrl:!1}})}return this.rawUrlTree=a.rawUrl,a.resolve(null),Gn}),et(a=>{const l=new XN(a.id,this.serializeUrl(a.extractedUrl),this.serializeUrl(a.urlAfterRedirects),a.targetSnapshot);this.triggerEvent(l)}),K(a=>({...a,guards:lV(a.targetSnapshot,a.currentSnapshot,this.rootContexts)})),function hV(n,t){return pt(e=>{const{targetSnapshot:i,currentSnapshot:r,guards:{canActivateChecks:s,canDeactivateChecks:o}}=e;return 0===o.length&&0===s.length?V({...e,guardsResult:!0}):function fV(n,t,e,i){return gt(n).pipe(pt(r=>function yV(n,t,e,i,r){const s=t&&t.routeConfig?t.routeConfig.canDeactivate:null;return s&&0!==s.length?V(s.map(a=>{const l=Pu(a,t,r);let c;if(function XP(n){return n&&or(n.canDeactivate)}(l))c=$n(l.canDeactivate(n,t,e,i));else{if(!or(l))throw new Error("Invalid CanDeactivate guard");c=$n(l(n,t,e,i))}return c.pipe(jr())})).pipe(Pa()):V(!0)}(r.component,r.route,e,t,i)),jr(r=>!0!==r,!0))}(o,i,r,n).pipe(pt(a=>a&&function WP(n){return"boolean"==typeof n}(a)?function pV(n,t,e,i){return gt(t).pipe(Nr(r=>Us(function mV(n,t){return null!==n&&t&&t(new iP(n)),V(!0)}(r.route.parent,i),function gV(n,t){return null!==n&&t&&t(new sP(n)),V(!0)}(r.route,i),function vV(n,t,e){const i=t[t.length-1],s=t.slice(0,t.length-1).reverse().map(o=>function cV(n){const t=n.routeConfig?n.routeConfig.canActivateChild:null;return t&&0!==t.length?{node:n,guards:t}:null}(o)).filter(o=>null!==o).map(o=>ga(()=>V(o.guards.map(l=>{const c=Pu(l,o.node,e);let u;if(function ZP(n){return n&&or(n.canActivateChild)}(c))u=$n(c.canActivateChild(i,n));else{if(!or(c))throw new Error("Invalid CanActivateChild guard");u=$n(c(i,n))}return u.pipe(jr())})).pipe(Pa())));return V(s).pipe(Pa())}(n,r.path,e),function _V(n,t,e){const i=t.routeConfig?t.routeConfig.canActivate:null;if(!i||0===i.length)return V(!0);const r=i.map(s=>ga(()=>{const o=Pu(s,t,e);let a;if(function qP(n){return n&&or(n.canActivate)}(o))a=$n(o.canActivate(t,n));else{if(!or(o))throw new Error("Invalid CanActivate guard");a=$n(o(t,n))}return a.pipe(jr())}));return V(r).pipe(Pa())}(n,r.route,e))),jr(r=>!0!==r,!0))}(i,s,n,t):V(a)),K(a=>({...e,guardsResult:a})))})}(this.ngModule.injector,a=>this.triggerEvent(a)),et(a=>{if(Gr(a.guardsResult)){const c=K0(`Redirecting to "${this.serializeUrl(a.guardsResult)}"`);throw c.url=a.guardsResult,c}const l=new QN(a.id,this.serializeUrl(a.extractedUrl),this.serializeUrl(a.urlAfterRedirects),a.targetSnapshot,!!a.guardsResult);this.triggerEvent(l)}),fn(a=>!!a.guardsResult||(this.restoreHistory(a),this.cancelNavigationTransition(a,""),!1)),c1(a=>{if(a.guards.canActivateChecks.length)return V(a).pipe(et(l=>{const c=new JN(l.id,this.serializeUrl(l.extractedUrl),this.serializeUrl(l.urlAfterRedirects),l.targetSnapshot);this.triggerEvent(c)}),Tn(l=>{let c=!1;return V(l).pipe(function TV(n,t){return pt(e=>{const{targetSnapshot:i,guards:{canActivateChecks:r}}=e;if(!r.length)return V(e);let s=0;return gt(r).pipe(Nr(o=>function IV(n,t,e,i){const r=n.routeConfig,s=n._resolve;return void 0!==r?.title&&!tC(r)&&(s[l1]=r.title),function xV(n,t,e,i){const r=function AV(n){return[...Object.keys(n),...Object.getOwnPropertySymbols(n)]}(n);if(0===r.length)return V({});const s={};return gt(r).pipe(pt(o=>function RV(n,t,e,i){const r=Pu(n,t,i);return $n(r.resolve?r.resolve(t,e):r(t,e))}(n[o],t,e,i).pipe(jr(),et(a=>{s[o]=a}))),G0(1),function KN(n){return K(()=>n)}(s),Xt(o=>o instanceof Aa?Gn:Oi(o)))}(s,n,t,i).pipe(K(o=>(n._resolvedData=o,n.data=I4(n,e).resolve,r&&tC(r)&&(n.data[l1]=r.title),null)))}(o.route,i,n,t)),et(()=>s++),G0(1),pt(o=>s===r.length?V(e):Gn))})}(this.paramsInheritanceStrategy,this.ngModule.injector),et({next:()=>c=!0,complete:()=>{c||(this.restoreHistory(l),this.cancelNavigationTransition(l,"At least one route resolver didn't emit any value."))}}))}),et(l=>{const c=new eP(l.id,this.serializeUrl(l.extractedUrl),this.serializeUrl(l.urlAfterRedirects),l.targetSnapshot);this.triggerEvent(c)}))}),c1(()=>this.afterPreactivation()),c1(a=>{const l=c=>{const u=[];c.routeConfig?.loadComponent&&!c.routeConfig._loadedComponent&&u.push(this.configLoader.loadComponent(c.routeConfig).pipe(et(d=>{c.component=d}),K(()=>{})));for(const d of c.children)u.push(...l(d));return u};return N0(l(a.targetSnapshot.root)).pipe(W0(),Yt(1))}),K(a=>{const l=function xP(n,t,e){const i=Fa(n,t._root,e?e._root:void 0);return new S4(i,t)}(this.routeReuseStrategy,a.targetSnapshot,a.currentRouterState);return{...a,targetRouterState:l}}),et(a=>{this.currentUrlTree=a.urlAfterRedirects,this.rawUrlTree=this.urlHandlingStrategy.merge(a.urlAfterRedirects,a.rawUrl),this.routerState=a.targetRouterState,"deferred"===this.urlUpdateStrategy&&(a.extras.skipLocationChange||this.setBrowserUrl(this.rawUrlTree,a),this.browserUrlTree=a.urlAfterRedirects)}),((n,t,e)=>K(i=>(new GP(t,i.targetRouterState,i.currentRouterState,e).activate(n),i)))(this.rootContexts,this.routeReuseStrategy,a=>this.triggerEvent(a)),et({next(){s=!0},complete(){s=!0}}),Xs(()=>{s||o||this.cancelNavigationTransition(r,`Navigation ID ${r.id} is not equal to the current navigation id ${this.navigationId}`),this.currentNavigation?.id===r.id&&(this.currentNavigation=null)}),Xt(a=>{if(o=!0,function lP(n){return n&&n[d4]}(a)){const l=Gr(a.url);l||(this.navigated=!0,this.restoreHistory(r,!0));const c=new u4(r.id,this.serializeUrl(r.extractedUrl),a.message);if(i.next(c),l){const u=this.urlHandlingStrategy.merge(a.url,this.rawUrlTree),d={skipLocationChange:r.extras.skipLocationChange,replaceUrl:"eager"===this.urlUpdateStrategy||iC(r.source)};this.scheduleNavigation(u,"imperative",null,d,{resolve:r.resolve,reject:r.reject,promise:r.promise})}else r.resolve(!1)}else{this.restoreHistory(r,!0);const l=new qN(r.id,this.serializeUrl(r.extractedUrl),a);i.next(l);try{r.resolve(this.errorHandler(a))}catch(c){r.reject(c)}}return Gn}))}))}resetRootComponentType(e){this.rootComponentType=e,this.routerState.root.component=this.rootComponentType}setTransition(e){this.transitions.next({...this.transitions.value,...e})}initialNavigation(){this.setUpLocationChangeListener(),0===this.navigationId&&this.navigateByUrl(this.location.path(!0),{replaceUrl:!0})}setUpLocationChangeListener(){this.locationSubscription||(this.locationSubscription=this.location.subscribe(e=>{const i="popstate"===e.type?"popstate":"hashchange";"popstate"===i&&setTimeout(()=>{const r={replaceUrl:!0},s=e.state?.navigationId?e.state:null;if(s){const a={...s};delete a.navigationId,delete a.\u0275routerPageId,0!==Object.keys(a).length&&(r.state=a)}const o=this.parseUrl(e.url);this.scheduleNavigation(o,i,s,r)},0)}))}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.currentNavigation}triggerEvent(e){this.events.next(e)}resetConfig(e){this.config=e.map(o1),this.navigated=!1,this.lastSuccessfulId=-1}ngOnDestroy(){this.dispose()}dispose(){this.transitions.complete(),this.locationSubscription&&(this.locationSubscription.unsubscribe(),this.locationSubscription=void 0),this.disposed=!0}createUrlTree(e,i={}){const{relativeTo:r,queryParams:s,fragment:o,queryParamsHandling:a,preserveFragment:l}=i,c=r||this.routerState.root,u=l?this.currentUrlTree.fragment:o;let d=null;switch(a){case"merge":d={...this.currentUrlTree.queryParams,...s};break;case"preserve":d=this.currentUrlTree.queryParams;break;default:d=s||null}return null!==d&&(d=this.removeEmptyProps(d)),function OP(n,t,e,i,r){if(0===e.length)return t1(t.root,t.root,t.root,i,r);const s=function FP(n){if("string"==typeof n[0]&&1===n.length&&"/"===n[0])return new O4(!0,0,n);let t=0,e=!1;const i=n.reduce((r,s,o)=>{if("object"==typeof s&&null!=s){if(s.outlets){const a={};return Mt(s.outlets,(l,c)=>{a[c]="string"==typeof l?l.split("/"):l}),[...r,{outlets:a}]}if(s.segmentPath)return[...r,s.segmentPath]}return"string"!=typeof s?[...r,s]:0===o?(s.split("/").forEach((a,l)=>{0==l&&"."===a||(0==l&&""===a?e=!0:".."===a?t++:""!=a&&r.push(a))}),r):[...r,s]},[]);return new O4(e,t,i)}(e);return s.toRoot()?t1(t.root,t.root,new de([],{}),i,r):function o(l){const c=function kP(n,t,e,i){return n.isAbsolute?new n1(t.root,!0,0):-1===i?new n1(e,e===t.root,0):function LP(n,t,e){let i=n,r=t,s=e;for(;s>r;){if(s-=r,i=i.parent,!i)throw new Error("Invalid number of '../'");r=i.segments.length}return new n1(i,!1,r-s)}(e,i+(Au(n.commands[0])?0:1),n.numberOfDoubleDots)}(s,t,n.snapshot?._urlSegment,l),u=c.processChildren?Ru(c.segmentGroup,c.index,s.commands):F4(c.segmentGroup,c.index,s.commands);return t1(t.root,c.segmentGroup,u,i,r)}(n.snapshot?._lastPathIndex)}(c,this.currentUrlTree,e,d,u??null)}navigateByUrl(e,i={skipLocationChange:!1}){const r=Gr(e)?e:this.parseUrl(e),s=this.urlHandlingStrategy.merge(r,this.rawUrlTree);return this.scheduleNavigation(s,"imperative",null,i)}navigate(e,i={skipLocationChange:!1}){return function jV(n){for(let t=0;t<n.length;t++){const e=n[t];if(null==e)throw new Error(`The requested path contains ${e} segment at index ${t}`)}}(e),this.navigateByUrl(this.createUrlTree(e,i),i)}serializeUrl(e){return this.urlSerializer.serialize(e)}parseUrl(e){let i;try{i=this.urlSerializer.parse(e)}catch(r){i=this.malformedUriErrorHandler(r,this.urlSerializer,e)}return i}isActive(e,i){let r;if(r=!0===i?{...HV}:!1===i?{...zV}:i,Gr(e))return m4(this.currentUrlTree,e,r);const s=this.parseUrl(e);return m4(this.currentUrlTree,s,r)}removeEmptyProps(e){return Object.keys(e).reduce((i,r)=>{const s=e[r];return null!=s&&(i[r]=s),i},{})}processNavigations(){this.navigations.subscribe(e=>{this.navigated=!0,this.lastSuccessfulId=e.id,this.currentPageId=e.targetPageId,this.events.next(new Cu(e.id,this.serializeUrl(e.extractedUrl),this.serializeUrl(this.currentUrlTree))),this.lastSuccessfulNavigation=this.currentNavigation,this.titleStrategy?.updateTitle(this.routerState.snapshot),e.resolve(!0)},e=>{this.console.warn(`Unhandled Navigation Error: ${e}`)})}scheduleNavigation(e,i,r,s,o){if(this.disposed)return Promise.resolve(!1);let a,l,c;o?(a=o.resolve,l=o.reject,c=o.promise):c=new Promise((h,p)=>{a=h,l=p});const u=++this.navigationId;let d;return"computed"===this.canceledNavigationResolution?(0===this.currentPageId&&(r=this.location.getState()),d=r&&r.\u0275routerPageId?r.\u0275routerPageId:s.replaceUrl||s.skipLocationChange?this.browserPageId??0:(this.browserPageId??0)+1):d=0,this.setTransition({id:u,targetPageId:d,source:i,restoredState:r,currentUrlTree:this.currentUrlTree,currentRawUrl:this.rawUrlTree,rawUrl:e,extras:s,resolve:a,reject:l,promise:c,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),c.catch(h=>Promise.reject(h))}setBrowserUrl(e,i){const r=this.urlSerializer.serialize(e),s={...i.extras.state,...this.generateNgRouterState(i.id,i.targetPageId)};this.location.isCurrentPathEqualTo(r)||i.extras.replaceUrl?this.location.replaceState(r,"",s):this.location.go(r,"",s)}restoreHistory(e,i=!1){if("computed"===this.canceledNavigationResolution){const r=this.currentPageId-e.targetPageId;"popstate"!==e.source&&"eager"!==this.urlUpdateStrategy&&this.currentUrlTree!==this.currentNavigation?.finalUrl||0===r?this.currentUrlTree===this.currentNavigation?.finalUrl&&0===r&&(this.resetState(e),this.browserUrlTree=e.currentUrlTree,this.resetUrlToCurrentUrlTree()):this.location.historyGo(r)}else"replace"===this.canceledNavigationResolution&&(i&&this.resetState(e),this.resetUrlToCurrentUrlTree())}resetState(e){this.routerState=e.currentRouterState,this.currentUrlTree=e.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,e.rawUrl)}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}cancelNavigationTransition(e,i){const r=new u4(e.id,this.serializeUrl(e.extractedUrl),i);this.triggerEvent(r),e.resolve(!1)}generateNgRouterState(e,i){return"computed"===this.canceledNavigationResolution?{navigationId:e,\u0275routerPageId:i}:{navigationId:e}}}return n.\u0275fac=function(e){Mh()},n.\u0275prov=S({token:n,factory:n.\u0275fac}),n})();function iC(n){return"imperative"!==n}var nB=function(t){return function iB(n){return!!n&&"object"==typeof n}(t)&&!function rB(n){var t=Object.prototype.toString.call(n);return"[object RegExp]"===t||"[object Date]"===t||function aB(n){return n.$$typeof===oB}(n)}(t)},oB="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function Vu(n,t){return!1!==t.clone&&t.isMergeableObject(n)?za(function lB(n){return Array.isArray(n)?[]:{}}(n),n,t):n}function cB(n,t,e){return n.concat(t).map(function(i){return Vu(i,e)})}function za(n,t,e){(e=e||{}).arrayMerge=e.arrayMerge||cB,e.isMergeableObject=e.isMergeableObject||nB;var i=Array.isArray(t);return i===Array.isArray(n)?i?e.arrayMerge(n,t,e):function uB(n,t,e){var i={};return e.isMergeableObject(n)&&Object.keys(n).forEach(function(r){i[r]=Vu(n[r],e)}),Object.keys(t).forEach(function(r){i[r]=e.isMergeableObject(t[r])&&n[r]?za(n[r],t[r],e):Vu(t[r],e)}),i}(n,t,e):Vu(t,e)}za.all=function(t,e){if(!Array.isArray(t))throw new Error("first argument should be an array");return t.reduce(function(i,r){return za(i,r,e)},{})};const hB=za;class fB{constructor(t,e){this.http=t,this.resources=e}getTranslation(t){return jc(this.resources.map(i=>{const r=i.prefix+t+i.suffix;return this.http.get(r).pipe(Xt(s=>(console.error("Could not find translation file:",r),V({}))))})).pipe(K(i=>hB.all(i)))}}let pB=(()=>{class n{intercept(e,i){return i.handle(e).pipe(Xt(r=>Oi(r)))}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=S({token:n,factory:n.\u0275fac}),n})(),g1=(()=>{class n{constructor(){this.counter=0,this.showLoaderSubject=new wt(void 0),this.onChanged$.subscribe(e=>{this.showLoaderChanged(e)})}get onChanged$(){return this.showLoaderSubject.asObservable().pipe(gu(500),fn(e=>void 0!==e),Gs())}showLoaderChanged(e){const r=new CustomEvent("toggleLoader",{detail:{showLoader:e}});window.dispatchEvent(r)}show(){this.counter++,this.showLoaderSubject.next(!0)}hide(){this.counter--,this.counter<0&&(this.counter=0),0===this.counter&&this.showLoaderSubject.next(!1)}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=S({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const gB=[{provide:ya,useClass:pB,multi:!0},{provide:ya,useClass:(()=>{class n{constructor(e){this.injector=e}intercept(e,i){const s=this.injector.get(g1);return s.show(),i.handle(e).pipe(Xt(o=>Oi(o)),Xs(()=>s.hide()))}}return n.\u0275fac=function(e){return new(e||n)(v(it))},n.\u0275prov=S({token:n,factory:n.\u0275fac}),n})(),multi:!0},{provide:ya,useClass:(()=>{class n{intercept(e,i){const r=Date.now();let s;return i.handle(e).pipe(et(o=>{o instanceof va&&(s="succeeded")},o=>s="failed"),Xs(()=>{const o=Date.now()-r;console.log(`${e.method} "${e.urlWithParams}" ${s} in ${o} ms.`)}))}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=S({token:n,factory:n.\u0275fac}),n})(),multi:!0}],_B=["ae","ar","arc","bcc","bqi","ckb","dv","fa","glk","he","ku","mzn","nqo","pnb","ps","sd","ug","ur","yi"];var Qt=(()=>{return(n=Qt||(Qt={}))[n.XL=0]="XL",n[n.LG=1]="LG",n[n.MD=2]="MD",n[n.SM=3]="SM",n[n.XS=4]="XS",Qt;var n})();let m1=(()=>{class n{constructor(e=null){this.translate=e,this.documentMouseoverListener=i=>{this.deviceHasMouseSubject.next(!0),this.deviceHasMouseSubject.complete(),document.removeEventListener("mouseover",this.documentMouseoverListener,!1)},this.resizeSubject=new wt(Qt.LG),this.deviceHasMouseSubject=new wt(!1),document.addEventListener("mouseover",this.documentMouseoverListener,!1)}get onResize$(){return this.resizeSubject.asObservable().pipe(Gs())}get onMouseOver$(){return this.deviceHasMouseSubject.asObservable().pipe(Gs())}onResize(e){this.resizeSubject.next(e)}getDeviceHasMouse(){return this.deviceHasMouseSubject.getValue()}getOrintation(){return window.innerHeight>window.innerWidth?"portrait":"landscape"}getScreenWidth(){let e=250;switch(this.resizeSubject.getValue()){case Qt.XS:e="landscape"===this.getOrintation()?130:65;break;case Qt.SM:case Qt.MD:e="landscape"===this.getOrintation()?220:140;break;case Qt.LG:case Qt.XL:e="landscape"===this.getOrintation()?400:250}return e}getScreenHeight(){let e=250;switch(this.resizeSubject.getValue()){case Qt.XS:e="landscape"===this.getOrintation()?65:130;break;case Qt.SM:case Qt.MD:e="landscape"===this.getOrintation()?140:220;break;case Qt.LG:case Qt.XL:e="landscape"===this.getOrintation()?250:400}return e}getScreenHeightPx(){return window.innerHeight||document.documentElement.clientHeight||document.body.clientHeight}getScreenWidthPx(){return window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth}getScrollbarWidth(){const e=document.createElement("div");e.style.visibility="hidden",e.style.overflow="scroll",document.body.appendChild(e);const i=document.createElement("div");e.appendChild(i);const r=e.offsetWidth-i.offsetWidth;return e.parentNode.removeChild(e),r}getCurrentLanguage(){return this.translate?.getBrowserCultureLang()||navigator.language}isRtl(){const e=this.getCurrentLanguage();return _B.indexOf(e)>=0}}return n.\u0275fac=function(e){return new(e||n)(v(Ai,8))},n.\u0275prov=S({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),eo=(()=>{class n{constructor(e=null){this.translate=e,this.culture="en-US",this.culture=this.translate?.getBrowserCultureLang()||"en-US"}prepareNumberToFormat(e,i=0){return e?.length>0&&(e=this.changeDecimalSeparatorWhenItsComma(e)),bt(e,i)}parseMs(e){if("number"!=typeof e)throw new TypeError("Expected a number");return{days:Math.trunc(e/864e5),hours:Math.trunc(e/36e5)%24,minutes:Math.trunc(e/6e4)%60,seconds:Math.trunc(e/1e3)%60,milliseconds:Math.trunc(e)%1e3}}addZero(e,i=2){i=i||2;let r=e.toString(),s=0;return s=i-r.length+1,r=new Array(s).join("0").concat(r),r}isCurrencyShouldBeOnRight(e){let i=!1;return("\u20ac"==e||"\u20aa"==e||"Ft"==e||"K\u010d"==e||"\u0440\u0443\u0431"==e||"z\u0142"==e||"kr."==e)&&(i=!0),i}cutValueByFractionDigits(e,i){let r=e;i=i||2;const s=this.getDecimalSeparator();if(e.includes(s)){const o=e.split(s);o[1]=o[1].padEnd(i,"0"),r=`${o[0]}${s}${o[1].slice(0,i)}`}return r}parseDate(e,i=!1){let r=null;if(""!==e)if(r=new Date(e),i)r=new Date(r.getFullYear(),r.getMonth(),r.getDate(),r.getHours(),r.getMinutes()+-1*r.getTimezoneOffset(),r.getSeconds());else{const s=e.indexOf("T");s>0&&(e=e.substring(0,s));const o=e.split("-");if(3===o.length){const a=Number(o[0]),l=Number(o[1])-1,c=Number(o[2]);r=new Date(a,l,c,0,-1*r.getTimezoneOffset())}}return r&&isNaN(r.getTime())&&(r=null),r}stringifyDate(e,i=!1){if(e){if(i)return e.toISOString();{const r=[];return r.push(e.getFullYear(),"-",e.getMonth()+1,"-",e.getDate()),r.join("")}}return""}isValueHtml(e){let i=!1;return i=/<\/?[a-z][\s\S]*>/i.test(e),i}isJsonString(e){try{JSON.parse(e)}catch{return!1}return!0}getSvgElementFromString(e,i){const r=e.createElement("DIV");return i?.length>0&&(r.innerHTML=i.replace("<svg ",'<svg class="svg-icon" ')),r.querySelector("svg")||e.createElementNS("http://www.w3.org/2000/svg","path")}formatPercent(e,i=0,r=2){i=bt(i,null),r=bt(r,null),e=this.cutValueByFractionDigits(e?.toString(),Math.max(i,r));const s=this.prepareNumberToFormat(e);return 0===s?"0%":new Intl.NumberFormat(this.culture,{style:"percent",minimumFractionDigits:i||0,maximumFractionDigits:r||Math.max(2,i)}).format(s/100)}formatCurrency(e,i="",r=2,s=2,o=!0){r=bt(r,null),s=bt(s,null);let a="";e=this.cutValueByFractionDigits(e?.toString(),Math.max(r,s));const l=this.prepareNumberToFormat(e),c={useGrouping:o,minimumFractionDigits:r||Math.min(2,s||2),maximumFractionDigits:s||Math.max(2,r)};return a=0===l?new Intl.NumberFormat(this.culture,c).format(0):new Intl.NumberFormat(this.culture,c).format(l),i.length>0&&(a=this.isCurrencyShouldBeOnRight(i)?`${a} ${i}`:`${i} ${a}`),a}formatDecimal(e,i=2,r=2,s=!0){i=bt(i,null),r=bt(r,null),e=this.cutValueByFractionDigits(e?.toString(),Math.max(i,r));const o=this.prepareNumberToFormat(e);return 0===o?"0":new Intl.NumberFormat(this.culture,{useGrouping:s,minimumFractionDigits:i||Math.min(2,r||2),maximumFractionDigits:r||Math.max(2,i)}).format(o)}formatNumber(e,i=!0){const r=this.prepareNumberToFormat(e);return 0===r?"0":new Intl.NumberFormat(this.culture,{useGrouping:i,minimumFractionDigits:0,maximumFractionDigits:0}).format(r)}formatDuration(e,i={}){if(z3(e)){let s=this.prepareNumberToFormat(e);const o=i?.leading||!0;"seconds"===(i?.duration||"milliseconds")&&(s*=1e3);const c=s<=-1e3?"-":"",u=this.parseMs(s<0?-s:s),d=this.addZero(u.seconds);return u.days?c+u.days+":"+this.addZero(u.hours)+":"+this.addZero(u.minutes)+":"+d:u.hours?c+(o?this.addZero(u.hours):u.hours)+":"+this.addZero(u.minutes)+":"+d:c+(o?this.addZero(u.minutes):u.minutes)+":"+d}return e}incrementNumber(e){let i=bt(e,0);return(++i).toString()}decrementNumber(e){let i=bt(e,0);return(--i).toString()}getDecimalSeparator(){return 1.1.toLocaleString(this.culture).substring(1,2)}changeDecimalSeparatorWhenItsComma(e,i=!1){return","===this.getDecimalSeparator()&&(e=e?.toString()||"",e=i?e.replace(".",","):e.replace(",",".")),e}isEqualNumber(e,i){return this.prepareNumberToFormat(e)===this.prepareNumberToFormat(i)}}return n.\u0275fac=function(e){return new(e||n)(v(Ai,8))},n.\u0275prov=S({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),aC=(()=>{class n{constructor(e){this.utilitiesService=e}transform(e){return bt(e="."===this.utilitiesService.getDecimalSeparator()?e.replace(/,/g,""):e.replace(/./g,""))}}return n.\u0275fac=function(e){return new(e||n)(_(eo,16))},n.\u0275pipe=Oe({name:"pepToNumber",type:n,pure:!0}),n})(),lC=(()=>{class n{constructor(e,i){this.renderer=e,this.element=i}ngOnInit(){this.renderer.setAttribute(this.element.nativeElement,"data-qa",this.dataQa)}}return n.\u0275fac=function(e){return new(e||n)(_(ht),_(se))},n.\u0275dir=O({type:n,selectors:[["","pepDataQa",""]],inputs:{dataQa:["pepDataQa","dataQa"]}}),n})(),cC=(()=>{class n{urlBase64Decode(e){let i=e.replace(/-/g,"+").replace(/_/g,"/");switch(i.length%4){case 0:break;case 2:i+="==";break;case 3:i+="=";break;default:throw new Error("Illegal base64url string!")}return this.b64DecodeUnicode(i)}b64decode(e){let r="";if((e=String(e).replace(/=+$/,"")).length%4==1)throw new Error("'atob' failed: The string to be decoded is not correctly encoded.");for(let o,a,s=0,l=0;a=e.charAt(l++);~a&&(o=s%4?64*o+a:a,s++%4)?r+=String.fromCharCode(255&o>>(-2*s&6)):0)a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".indexOf(a);return r}b64DecodeUnicode(e){return decodeURIComponent(Array.prototype.map.call(this.b64decode(e),i=>"%"+("00"+i.charCodeAt(0).toString(16)).slice(-2)).join(""))}decodeToken(e){if(!e||""===e)return null;const i=e.split(".");if(3!==i.length)throw new Error("The inspected token doesn't appear to be a JWT. Check to make sure it has three parts and see https://jwt.io for more.");const r=this.urlBase64Decode(i[1]);if(!r)throw new Error("Cannot decode the token.");return JSON.parse(r)}getTokenExpirationDate(e){const i=this.decodeToken(e);if(!i||!i.hasOwnProperty("exp"))return null;const r=new Date(0);return r.setUTCSeconds(i.exp),r}isTokenExpired(e,i){if(!e||""===e)return!0;const r=this.getTokenExpirationDate(e);return i=i||0,null!==r&&!(r.valueOf()>(new Date).valueOf()+1e3*i)}getAuthScheme(e,i){return"function"==typeof e?e(i):e}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=S({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),Bu=(()=>{class n{constructor(e){this.jwtHelper=e,this.IDP_TOKEN_KEY="idp_token",this.PAPI_BASE_URL_KEY="pepperi.baseurl",this.WAPI_BASE_URL_KEY="serverHostURL"}getParseToken(){const e=this.getIdpToken();return this.jwtHelper.decodeToken(e)}setObject(e,i){const r="string"==typeof i||i instanceof String?i:JSON.stringify(i);sessionStorage.setItem(e,r.toString())}getObject(e){let i=null;const r=sessionStorage.getItem(e);try{i=r&&JSON.parse(r)}catch{i=r}return i}removeObject(e){sessionStorage.removeItem(e)}getWapiBaseUrl(){return this.getObject(this.WAPI_BASE_URL_KEY)}getIdpToken(){return this.getObject(this.IDP_TOKEN_KEY)}getPapiBaseUrl(){const e=this.getParseToken();return e?e[this.PAPI_BASE_URL_KEY]:null}}return n.\u0275fac=function(e){return new(e||n)(v(cC))},n.\u0275prov=S({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),_1=(()=>{class n{constructor(){this.scripts=new Map,this.styles=new Map}loadFiles(e){const i=[];return e.forEach(r=>{"style"===r.type?i.push(this.loadStyle(r.path)):"script"===r.type&&i.push(this.loadScript(r.path))}),Promise.all(i)}removeFiles(e){for(let i=0;i<e.length&&e[i].path&&""!==e[i].path.trim();i++){const r=this.getFileName(e[i].path,!0),s=document.getElementById(r);s.parentNode.removeChild(s),"script"===e[i].type&&this.scripts.has(r)?this.scripts.delete(r):"style"===e[i].type&&this.styles.has(r)&&this.styles.delete(r)}}loadScript(e){return new Promise((i,r)=>{const s=this.getFileName(e,!0);this.scripts.has(s)||this.scripts.set(s,{loaded:!1,src:e});const o=this.scripts.get(s);if(o.loaded)i({script:s,loaded:!0,status:"Already Loaded"});else{const a=document.createElement("script");a.type="text/javascript",a.src=o.src,a.setAttribute("id",s),a.async=!1,a.readyState?a.onreadystatechange=()=>{("loaded"===a.readyState||"complete"===a.readyState)&&(a.onreadystatechange=null,o.loaded=!0,i({path:e,type:"script",loaded:!0,status:"Loaded"}))}:a.onload=()=>{o.loaded=!0,i({path:e,type:"script",loaded:!0,status:"Loaded"})},a.onerror=l=>i({path:e,type:"script",loaded:!1,status:"Loaded"}),document.getElementsByTagName("head")[0].appendChild(a)}})}loadStyle(e){return new Promise((i,r)=>{const s=this.getFileName(e,!0);this.styles.has(s)||this.styles.set(s,{loaded:!1,src:e});const o=this.styles.get(s);if(o.loaded)i({path:e,type:"style",loaded:!0,status:"Already Loaded"});else{const a=document.createElement("link");a.type="text/css",a.rel="stylesheet",a.href=o.src,a.media="all",a.setAttribute("id",s),o.loaded=!0,i({path:e,type:"style",loaded:!0,status:"Loaded"}),document.getElementsByTagName("head")[0].appendChild(a)}})}loadFontStyle(e,i){const r=document.getElementsByTagName("head")[0],s=document.getElementById(e);if(s)s.href=i;else{const o=document.createElement("link");o.id=e,o.rel="stylesheet",o.href=`${i}`,r.appendChild(o)}}getFileName(e,i=!1){const r=i?e.length-1:e.lastIndexOf(".");return e.substr(e.lastIndexOf("/")+1,r)}getFileExtension(e){return e.substring(e.lastIndexOf(".")+1,e.length)}isValidUrl(e){try{return new URL(e),!0}catch{return!1}}convertFromb64toArrayBuffer(e){const i=e.slice(e.indexOf(",")+1),r=window.atob(i),s=r.length,o=new Uint8Array(s);for(let a=0;a<s;a++)o[a]=r.charCodeAt(a);return o.buffer}convertFromb64toBlob(e){const i=this.convertFromb64toArrayBuffer(e),s=e.split(";")[0].split(":")[1];return new Blob([i],{type:s})}getBase64FileSize(e){let i;try{e=e.slice(e.indexOf(",")+1),i=window.atob(e).length}catch{i=-1}return i}fileToBase64(e){return new Promise((i,r)=>{const s=new FileReader;s.readAsDataURL(e),s.onload=()=>i(s.result),s.onerror=o=>r(o)})}isValidFileExtension(e,i){return""===i||-1!==i.indexOf(e.toLowerCase())}isValidFileSize(e,i=5){const r=e;let s=0;return s="string"==typeof e&&e.indexOf("data:")>-1?this.getBase64FileSize(e):r.size,-1!==s&&null!=r&&s<1048576*i}getAssetsPath(e="",i="ngx-lib"){const r=""===e||e.endsWith("/")?"":"/";return`${e}${r}assets/${i}/`}getAssetsTranslationsSuffix(e="ngx-lib"){return`.${e}.json`}getAssetsTranslationsPath(e="",i="ngx-lib"){return`${this.getAssetsPath(e,i)}i18n/`}getAssetsImagesPath(e="",i="",r="ngx-lib"){return`${this.getAssetsPath(e,r)}images/${i}`}getSvgAsImageSrc(e){const i=new Blob([e],{type:"image/svg+xml"});return URL.createObjectURL(i)}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=S({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();class f{constructor(t,e,i){this.sessionService=t,this.fileService=e,this.fb=i,this.hasCustomHomepage=null,this.hasCustomHeader=null,this.customHeaderHeight=f.DEFAULT_HEADER_HEIGHT,this.mainContHeight=0,this.footerHeight=new wt(0),this.settingsWidth=new wt(0),this.hideFooter()}getDefaultFromGroup(t,e=!0){const i=e?t.getValidators():[],r={};return r[t.key]=[{value:t.value,disabled:t.disabled},i],this.fb.group(r)}getFormControl(t,e,i=null){let r=null;return t&&t.controls&&(r=null===i?t.controls[e]:t.controls[i]?.get(e)),r}updateFormFieldValue(t,e,i="",r=null){const s=this.getFormControl(t,e,r);s&&s.setValue(i)}updateFormField(t,e,i="",r=null){const s=this.getFormControl(t,e.key,r?.key);if(s&&(s.setValue(i),s.disabled!==e.disabled)){e.disabled?s.disable():s.enable();const o=e.getValidators();s.setValidators(o),s.updateValueAndValidity()}}calculateFormFieldHeight(t=!0,e=1,i=!1){const r=this.getThemeVariables(),s=this.getNumberThemeVariable(r,f.FORM_FIELD_HEIGHT_KEY),o=this.getNumberThemeVariable(r,f.FORM_FIELD_TITLE_HEIGHT_KEY),a=this.getNumberThemeVariable(r,f.FORM_SPACEING_KEY);let l=0;if(1===e)l=(t?o:0)+s;else{const c=t?e:e-1;l=e*s+c*o+(i?0:c*a)}return l}calculateCardRowsHeight(t=1,e=!0){const i=this.getThemeVariables(),r=this.getNumberThemeVariable(i,f.CARD_FIELD_HEIGHT_KEY),s=this.getNumberThemeVariable(i,f.CARD_SPACEING_KEY);return t*r+(t-1)*(e?s:0)}calculateTableRowsHeight(t=1,e=!0){const i=this.getThemeVariables(),r=this.getNumberThemeVariable(i,f.TABLE_FIELD_HEIGHT_KEY),s=this.getNumberThemeVariable(i,f.TABLE_SPACEING_KEY);return t*(r+(e?2*s:0))}calculateFieldHeight(t="form",e,i){let r="inherit";return r="table"===t?this.getThemeVariable(f.TABLE_FIELD_HEIGHT_KEY):"card"===t?this.calculateCardRowsHeight(e,!i)+f.REM_STRING:this.calculateFormFieldHeight(!1,e,i)+f.REM_STRING,r}getBrandingTheme(){const t=this.sessionService.getObject(f.USER_THEME);return t&&t.Theme||"default-theme"}getDefaultThemeLayoutVariables(t){t["--pep-screen-max-size-2xs"]="460"+f.PX_STRING,t["--pep-screen-max-size-xs"]="767"+f.PX_STRING,t["--pep-screen-max-size-sm"]="991"+f.PX_STRING,t["--pep-screen-max-size-md"]="1199"+f.PX_STRING,t["--pep-screen-max-size-lg"]="1366"+f.PX_STRING,t["--pep-screen-max-size-xl"]="1920"+f.PX_STRING,t[f.SIDE_BAR_WIDTH_KEY]="16"+f.REM_STRING,t[f.TOP_BAR_SPACING_TOP_KEY]="1.5"+f.REM_STRING,t[f.TOP_BAR_SPACING_BOTTOM_KEY]="0.5"+f.REM_STRING,t[f.TOP_BAR_FIELD_HEIGHT_KEY]="2.5"+f.REM_STRING,t[f.FOOTER_BAR_SPACING_TOP_KEY]="0.75"+f.REM_STRING,t[f.FOOTER_BAR_SPACING_BOTTOM_KEY]="1.25"+f.REM_STRING}getDefaultThemeBorderRadiusVariables(t){t[f.BORDER_RADIUS_SM_KEY]="0.125"+f.REM_STRING,t[f.BORDER_RADIUS_MD_KEY]="0.25"+f.REM_STRING,t[f.BORDER_RADIUS_LG_KEY]="0.5"+f.REM_STRING,t[f.BORDER_RADIUS_XL_KEY]="1"+f.REM_STRING}getDefaultThemeSpacingVariables(t){t[f.SPACING_SIZE_2XS_KEY]="0.125"+f.REM_STRING,t[f.SPACING_SIZE_XS_KEY]="0.25"+f.REM_STRING,t[f.SPACING_SIZE_SM_KEY]="0.5"+f.REM_STRING,t[f.SPACING_SIZE_MD_KEY]="0.75"+f.REM_STRING,t[f.SPACING_SIZE_LG_KEY]="1"+f.REM_STRING,t[f.SPACING_SIZE_XL_KEY]="1.5"+f.REM_STRING,t[f.SPACING_SIZE_2XL_KEY]="2"+f.REM_STRING,t[f.SPACING_SIZE_3XL_KEY]="2.5"+f.REM_STRING,t[f.SPACING_SIZE_4XL_KEY]="3"+f.REM_STRING,t[f.SPACING_SIZE_5XL_KEY]="3.5"+f.REM_STRING,t[f.SPACING_SIZE_6XL_KEY]="5"+f.REM_STRING,t[f.SPACING_SIZE_7XL_KEY]="6"+f.REM_STRING,t[f.SPACING_SIZE_8XL_KEY]="8"+f.REM_STRING,t[f.SPACING_SIZE_9XL_KEY]="16"+f.REM_STRING}getDefaultThemeFontsVariables(t){t[f.FONT_FAMILY_TITLE_KEY]="Nexa",t[f.FONT_FAMILY_BODY_KEY]="Inter",t[f.FONT_SIZE_2XS_KEY]="0.625"+f.REM_STRING,t[f.FONT_SIZE_XS_KEY]="0.75"+f.REM_STRING,t[f.FONT_SIZE_SM_KEY]="0.875"+f.REM_STRING,t[f.FONT_SIZE_MD_KEY]="1"+f.REM_STRING,t[f.FONT_SIZE_LG_KEY]="1.125"+f.REM_STRING,t[f.FONT_SIZE_XL_KEY]="1.25"+f.REM_STRING,t[f.FONT_SIZE_2XL_KEY]="1.5"+f.REM_STRING,t[f.LINE_HEIGHT_2XS_KEY]="0.75"+f.REM_STRING,t[f.LINE_HEIGHT_XS_KEY]="1"+f.REM_STRING,t[f.LINE_HEIGHT_SM_KEY]="1.25"+f.REM_STRING,t[f.LINE_HEIGHT_MD_KEY]="1.5"+f.REM_STRING,t[f.LINE_HEIGHT_LG_KEY]="1.75"+f.REM_STRING,t[f.LINE_HEIGHT_XL_KEY]="2"+f.REM_STRING,t[f.LINE_HEIGHT_2XL_KEY]="2.25"+f.REM_STRING,t["--pep-font-weight-normal"]=400,t["--pep-font-weight-bold"]=600,t["--pep-font-weight-bolder"]=800}getDefaultThemeButtonsVariables(t){t["--pep-button-2xs-horizontal-spacing"]="0.25"+f.REM_STRING,t["--pep-button-2xs-min-width"]="1"+f.REM_STRING,t["--pep-button-2xs-height"]="1"+f.REM_STRING,t["--pep-button-2xs-font-size"]="var("+f.FONT_SIZE_2XS_KEY+")",t["--pep-button-xs-horizontal-spacing"]="0.5"+f.REM_STRING,t["--pep-button-xs-min-width"]="1.5"+f.REM_STRING,t["--pep-button-xs-height"]="1.5"+f.REM_STRING,t["--pep-button-xs-font-size"]="var("+f.FONT_SIZE_XS_KEY+")",t["--pep-button-sm-horizontal-spacing"]="0.75"+f.REM_STRING,t["--pep-button-sm-min-width"]="2"+f.REM_STRING,t["--pep-button-sm-height"]="2"+f.REM_STRING,t["--pep-button-sm-font-size"]="var("+f.FONT_SIZE_SM_KEY+")",t["--pep-button-md-horizontal-spacing"]="1"+f.REM_STRING,t["--pep-button-md-min-width"]="2.5"+f.REM_STRING,t["--pep-button-md-height"]="2.5"+f.REM_STRING,t["--pep-button-md-font-size"]="var("+f.FONT_SIZE_MD_KEY+")",t["--pep-button-lg-horizontal-spacing"]="1"+f.REM_STRING,t["--pep-button-lg-min-width"]="3"+f.REM_STRING,t["--pep-button-lg-height"]="3"+f.REM_STRING,t["--pep-button-lg-font-size"]="var("+f.FONT_SIZE_LG_KEY+")",t["--pep-button-xl-horizontal-spacing"]="1.5"+f.REM_STRING,t["--pep-button-xl-min-width"]="4"+f.REM_STRING,t["--pep-button-xl-height"]="4"+f.REM_STRING,t["--pep-button-xl-font-size"]="var("+f.FONT_SIZE_XL_KEY+")"}getSystemPrimaryInvertColorsVariables(t){t[f.COLOR_SYSTEM_PRIMARY_INVERT_KEY+"-h"]="255",t[f.COLOR_SYSTEM_PRIMARY_INVERT_KEY+"-s"]="100%",t[f.COLOR_SYSTEM_PRIMARY_INVERT_KEY+"-l"]="100%"}getSystemPrimaryColorsVariables(t){t[f.COLOR_SYSTEM_PRIMARY_KEY+"-h"]="0",t[f.COLOR_SYSTEM_PRIMARY_KEY+"-s"]="0%",t[f.COLOR_SYSTEM_PRIMARY_KEY+"-l"]="10%"}getSystemSuccessColorsVariables(t){t[f.COLOR_SYSTEM_SUCCESS_KEY+"-h"]="100",t[f.COLOR_SYSTEM_SUCCESS_KEY+"-s"]="100%",t[f.COLOR_SYSTEM_SUCCESS_KEY+"-l"]="25%"}getSystemCautionColorsVariables(t){t[f.COLOR_SYSTEM_CAUTION_KEY+"-h"]="360",t[f.COLOR_SYSTEM_CAUTION_KEY+"-s"]="100%",t[f.COLOR_SYSTEM_CAUTION_KEY+"-l"]="40%"}getUserPrimaryColorsVariables(t){t[f.COLOR_USER_PRIMARY_KEY+"-h"]="78",t[f.COLOR_USER_PRIMARY_KEY+"-s"]="87%",t[f.COLOR_USER_PRIMARY_KEY+"-l"]="27%"}getUserSecondaryColorsVariables(t){t[f.COLOR_USER_SECONDARY_KEY+"-h"]="36",t[f.COLOR_USER_SECONDARY_KEY+"-s"]="100%",t[f.COLOR_USER_SECONDARY_KEY+"-l"]="50%"}getWeakColorsVariables(t){t[f.COLOR_WEAK_KEY+"-h"]="var("+f.COLOR_SYSTEM_PRIMARY_KEY+"-h)",t[f.COLOR_WEAK_KEY+"-s"]="var("+f.COLOR_SYSTEM_PRIMARY_KEY+"-s)",t[f.COLOR_WEAK_KEY+"-l"]="var("+f.COLOR_SYSTEM_PRIMARY_KEY+"-l)"}getRegularColorsVariables(t){t[f.COLOR_REGULAR_KEY+"-h"]="var("+f.COLOR_SYSTEM_PRIMARY_KEY+"-h)",t[f.COLOR_REGULAR_KEY+"-s"]="var("+f.COLOR_SYSTEM_PRIMARY_KEY+"-s)",t[f.COLOR_REGULAR_KEY+"-l"]="var("+f.COLOR_SYSTEM_PRIMARY_KEY+"-l)"}getStrongColorsVariables(t){t[f.COLOR_STRONG_KEY+"-h"]="var("+f.COLOR_USER_PRIMARY_KEY+"-h)",t[f.COLOR_STRONG_KEY+"-s"]="var("+f.COLOR_USER_PRIMARY_KEY+"-s)",t[f.COLOR_STRONG_KEY+"-l"]="var("+f.COLOR_USER_PRIMARY_KEY+"-l)"}getTextColorsVariables(t){t[f.COLOR_TEXT_LINK_KEY+"-h"]="207",t[f.COLOR_TEXT_LINK_KEY+"-s"]="76%",t[f.COLOR_TEXT_LINK_KEY+"-l"]="37%"}getDefaultThemeColorsVariables(t){this.getSystemPrimaryInvertColorsVariables(t),this.getSystemPrimaryColorsVariables(t),this.getSystemSuccessColorsVariables(t),this.getSystemCautionColorsVariables(t),this.getUserPrimaryColorsVariables(t),this.getUserSecondaryColorsVariables(t),this.getWeakColorsVariables(t),this.getRegularColorsVariables(t),this.getStrongColorsVariables(t),this.getTextColorsVariables(t)}getDefaultThemeShadowsVariables(t){t[f.SHADOW_NONE_OFFSET_KEY]="0",t[f.SHADOW_XS_OFFSET_KEY]="0 0.125rem 0.25rem 0",t[f.SHADOW_SM_OFFSET_KEY]="0 0.25rem 0.5rem 0",t[f.SHADOW_MD_OFFSET_KEY]="0 0.5rem 1rem 0",t[f.SHADOW_LG_OFFSET_KEY]="0 1rem 2rem 0",t[f.SHADOW_XL_OFFSET_KEY]="0 2rem 4rem 0"}getDefaultThemeFormCustomizationVariables(t){t[f.FORM_FIELD_HEIGHT_KEY]="2.5"+f.REM_STRING,t[f.FORM_FIELD_TITLE_HEIGHT_KEY]="1.5"+f.REM_STRING,t[f.FORM_SPACEING_KEY]=1+f.REM_STRING,t[f.FORM_FIELD_SPACEING_KEY]=1+f.REM_STRING}getDefaultThemeCardCustomizationVariables(t){t[f.CARD_FIELD_HEIGHT_KEY]="1.5"+f.REM_STRING,t[f.CARD_SPACEING_KEY]="var("+f.SPACING_SIZE_XS_KEY+")",t[f.CARD_BORDER_RADIUS_KEY]="var("+f.BORDER_RADIUS_MD_KEY+")",t[f.CARD_SHADOW_OFFSET_KEY]="var("+f.SHADOW_MD_OFFSET_KEY+")"}getDefaultThemeTableCustomizationVariables(t){t[f.TABLE_FIELD_HEIGHT_KEY]="2"+f.REM_STRING,t[f.TABLE_SPACEING_KEY]="0.5"+f.REM_STRING,t[f.TABLE_BORDER_RADIUS_KEY]="var("+f.BORDER_RADIUS_MD_KEY+")"}getDefaultThemeQSCustomizationVariables(t){t[f.STYLE_QS_KEY]="regular",t[f.COLOR_QS_KEY+"-h"]="var("+f.COLOR_SYSTEM_PRIMARY_KEY+"-h)",t[f.COLOR_QS_KEY+"-s"]="var("+f.COLOR_SYSTEM_PRIMARY_KEY+"-s)",t[f.COLOR_QS_KEY+"-l"]="var("+f.COLOR_SYSTEM_PRIMARY_KEY+"-l)"}getDefaultThemeLoaderCustomizationVariables(t){t[f.COLOR_LOADER_KEY+"-h"]="var("+f.COLOR_SYSTEM_CAUTION_KEY+"-h)",t[f.COLOR_LOADER_KEY+"-s"]="var("+f.COLOR_SYSTEM_CAUTION_KEY+"-s)",t[f.COLOR_LOADER_KEY+"-l"]="var("+f.COLOR_SYSTEM_CAUTION_KEY+"-l)"}getDefaultThemeTopHeaderCustomizationVariables(t){t[f.STYLE_TOP_HEADER_KEY]="strong",t[f.COLOR_TOP_HEADER_KEY+"-h"]="",t[f.COLOR_TOP_HEADER_KEY+"-s"]="",t[f.COLOR_TOP_HEADER_KEY+"-l"]=""}getDefaultThemeTopLegacyCustomizationVariables(t){t[f.COLOR_TOP_LEGACY_KEY+"-h"]="",t[f.COLOR_TOP_LEGACY_KEY+"-s"]="",t[f.COLOR_TOP_LEGACY_KEY+"-l"]=""}getDefaultThemeVariables(){const t={};return this.getDefaultThemeLayoutVariables(t),this.getDefaultThemeBorderRadiusVariables(t),this.getDefaultThemeSpacingVariables(t),this.getDefaultThemeFontsVariables(t),this.getDefaultThemeButtonsVariables(t),this.getDefaultThemeColorsVariables(t),this.getDefaultThemeShadowsVariables(t),this.getDefaultThemeFormCustomizationVariables(t),this.getDefaultThemeCardCustomizationVariables(t),this.getDefaultThemeTableCustomizationVariables(t),this.getDefaultThemeQSCustomizationVariables(t),this.getDefaultThemeTopHeaderCustomizationVariables(t),this.getDefaultThemeTopLegacyCustomizationVariables(t),t}getThemeVariables(){const t=this.getDefaultThemeVariables(),e=this.sessionService.getObject(f.USER_THEME_VARIABLES);if(e)for(const i in e)t[i]=e[i];return t}setThemeVariables(t=null){const e=this.getThemeVariables();if(t)for(const i in t)e[i]=t[i];this.sessionService.setObject(f.USER_THEME_VARIABLES,JSON.stringify(e));for(const i in e)this.isFontUrlKey(i)?this.fileService.loadFontStyle(i,e[i]):document.documentElement.style.setProperty(i,e[i])}isFontUrlKey(t){let e=!1;return(t===f.FONT_FAMILY_TITLE_NORMAL_URL_KEY||t===f.FONT_FAMILY_TITLE_BOLD_URL_KEY||t===f.FONT_FAMILY_BODY_NORMAL_URL_KEY||t===f.FONT_FAMILY_BODY_BOLD_URL_KEY)&&(e=!0),e}getThemeVariable(t){const e=this.getThemeVariables();return e.hasOwnProperty(t)?e[t]:""}getNumberThemeVariable(t,e){return t&&t.hasOwnProperty(e)?(0===t[e].indexOf("var(")&&(e=t[e].substr(4).split(")")[0]),Number(t[e].replace(f.REM_STRING,""))):0}setFooterHeight(t){this.footerHeight.getValue()!==t&&setTimeout(()=>{this.footerHeight.next(t)},0),document.documentElement.style.setProperty(f.FOOTER_HEIGHT_KEY,t+f.REM_STRING)}hideFooter(){this.setFooterHeight(0)}showFooter(){const t=this.getThemeVariables(),e=this.getNumberThemeVariable(t,f.FOOTER_BAR_SPACING_TOP_KEY)+this.getNumberThemeVariable(t,f.FOOTER_BAR_SPACING_BOTTOM_KEY)+this.getNumberThemeVariable(t,f.TOP_BAR_FIELD_HEIGHT_KEY);this.setFooterHeight(e)}setSettingsWidth(t){this.settingsWidth.getValue()!==t&&setTimeout(()=>{this.settingsWidth.next(t)},0),document.documentElement.style.setProperty(f.SETTINGS_WIDTH_KEY,t+f.REM_STRING)}hideSettings(){this.setSettingsWidth(0)}showSettings(){const t=this.getThemeVariables(),e=this.getNumberThemeVariable(t,f.SIDE_BAR_WIDTH_KEY);this.setSettingsWidth(e)}getTopBarHeight(){const t=this.getThemeVariables();return this.getNumberThemeVariable(t,f.TOP_BAR_SPACING_TOP_KEY)+this.getNumberThemeVariable(t,f.TOP_BAR_SPACING_BOTTOM_KEY)+this.getNumberThemeVariable(t,f.TOP_BAR_FIELD_HEIGHT_KEY)}setOldUserTheme(t){let i,r;this.sessionService.setObject(f.USER_THEME,JSON.stringify({Theme:t.Theme||"default-theme"})),this.isLightColor(t.BrandingMainColor)?(i=f.DEFAULT_SPINNER_COLOR,r="#222"):(i=t.BrandingMainColor,r=f.DEFAULT_BRANDING_COLOR),this.sessionService.setObject(f.USER_COLOR,JSON.stringify({BrandingSecondaryColor:t.BrandingSecondaryColor,BrandingMainColor:t.BrandingMainColor,BrandingFontColor:r,SpinnerColor:i})),this.hasCustomHeader=!!(t.TopHeaderFiles&&t.TopHeaderFiles.length>0&&""!==t.TopHeaderFiles[0]),this.hasCustomHomepage="Buyer"===t.UserRole&&t.TopHeaderFiles&&t.TopHeaderFiles.length>1&&""!==t.TopHeaderFiles[1]}isLegacyColor(){const t=document.documentElement.style.getPropertyValue(f.COLOR_TOP_HEADER_KEY+"-h"),e=document.documentElement.style.getPropertyValue(f.COLOR_TOP_HEADER_KEY+"-s"),i=document.documentElement.style.getPropertyValue(f.COLOR_TOP_HEADER_KEY+"-l");return!(t&&e&&i)}getLoadingSpinnerColor(){let t="";if(this.isLegacyColor()){const e=this.sessionService.getObject(f.USER_COLOR);t=e&&e.SpinnerColor?e.SpinnerColor:f.DEFAULT_SPINNER_COLOR}return t}getBrandingMainColor(){let t="";if(this.isLegacyColor()){const e=this.sessionService.getObject(f.USER_COLOR);t=e&&e.BrandingMainColor?e.BrandingMainColor:f.DEFAULT_BRANDING_COLOR}return t}isLightColor(t){if(!t)return;let e=!1,i=0;const r=t.replace(/^#/,"");return i=parseInt(r[0]+r[1],16),i+=parseInt(r[2]+r[3],16),i+=parseInt(r[4]+r[5],16),i>382.6&&(e=!0),e}}f.STAND_ALONE_FIELD_CLASS_NAME="pep-field",f.STAND_ALONE_FIELD_NO_SPACING_CLASS_NAME="pep-field-no-spacing",f.REM_STRING="rem",f.PX_STRING="px",f.USER_THEME="user_theme",f.USER_COLOR="user_color",f.USER_THEME_VARIABLES="user_theme_variables",f.HEADER_HEIGHT_KEY="--pep-header-height",f.SIDE_BAR_WIDTH_KEY="--pep-side-bar-width",f.SETTINGS_WIDTH_KEY="--pep-settings-bar-width",f.TOP_BAR_SPACING_TOP_KEY="--pep-top-bar-spacing-top",f.TOP_BAR_SPACING_BOTTOM_KEY="--pep-top-bar-spacing-bottom",f.TOP_BAR_FIELD_HEIGHT_KEY="--pep-top-bar-field-height",f.FOOTER_HEIGHT_KEY="--pep-footer-bar-height",f.FOOTER_BAR_SPACING_TOP_KEY="--pep-footer-bar-spacing-top",f.FOOTER_BAR_SPACING_BOTTOM_KEY="--pep-footer-bar-spacing-bottom",f.MAIN_HEIGHT_KEY="--pep-main-height",f.COLOR_USER_PRIMARY_KEY="--pep-color-user-primary",f.COLOR_USER_SECONDARY_KEY="--pep-color-user-secondary",f.COLOR_SYSTEM_PRIMARY_INVERT_KEY="--pep-color-system-primary-invert",f.COLOR_SYSTEM_PRIMARY_KEY="--pep-color-system-primary",f.COLOR_TEXT_LINK_KEY="--pep-color-text-link",f.COLOR_SYSTEM_CAUTION_KEY="--pep-color-system-caution",f.COLOR_SYSTEM_SUCCESS_KEY="--pep-color-system-success",f.COLOR_STRONG_KEY="--pep-color-strong",f.COLOR_REGULAR_KEY="--pep-color-regular",f.COLOR_WEAK_KEY="--pep-color-weak",f.COLOR_TOP_LEGACY_KEY="--pep-color-legacy",f.COLOR_TOP_HEADER_KEY="--pep-color-top-header",f.STYLE_TOP_HEADER_KEY="--pep-style-top-header",f.COLOR_LOADER_KEY="--pep-color-loader",f.COLOR_QS_KEY="--pep-color-qs",f.STYLE_QS_KEY="--pep-style-qs",f.FONT_FAMILY_TITLE_KEY="--pep-font-family-title",f.FONT_FAMILY_TITLE_NORMAL_URL_KEY="--pep-font-family-title-normal-url",f.FONT_FAMILY_TITLE_BOLD_URL_KEY="--pep-font-family-title-bold-url",f.FONT_FAMILY_BODY_KEY="--pep-font-family-body",f.FONT_FAMILY_BODY_NORMAL_URL_KEY="--pep-font-family-body-normal-url",f.FONT_FAMILY_BODY_BOLD_URL_KEY="--pep-font-family-body-bold-url",f.BORDER_RADIUS_KEY="--pep-border-radius",f.BORDER_RADIUS_SM_KEY=f.BORDER_RADIUS_KEY+"-sm",f.BORDER_RADIUS_MD_KEY=f.BORDER_RADIUS_KEY+"-md",f.BORDER_RADIUS_LG_KEY=f.BORDER_RADIUS_KEY+"-lg",f.BORDER_RADIUS_XL_KEY=f.BORDER_RADIUS_KEY+"-xl",f.FONT_SIZE_2XS_KEY="--pep-font-size-2xs",f.FONT_SIZE_XS_KEY="--pep-font-size-xs",f.FONT_SIZE_SM_KEY="--pep-font-size-sm",f.FONT_SIZE_MD_KEY="--pep-font-size-md",f.FONT_SIZE_LG_KEY="--pep-font-size-lg",f.FONT_SIZE_XL_KEY="--pep-font-size-xl",f.FONT_SIZE_2XL_KEY="--pep-font-size-2xl",f.LINE_HEIGHT_2XS_KEY="--pep-line-height-2xs",f.LINE_HEIGHT_XS_KEY="--pep-line-height-xs",f.LINE_HEIGHT_SM_KEY="--pep-line-height-sm",f.LINE_HEIGHT_MD_KEY="--pep-line-height-md",f.LINE_HEIGHT_LG_KEY="--pep-line-height-lg",f.LINE_HEIGHT_XL_KEY="--pep-line-height-xl",f.LINE_HEIGHT_2XL_KEY="--pep-line-height-2xl",f.SHADOW_NONE_OFFSET_KEY="--pep-shadow-none-offset",f.SHADOW_XS_OFFSET_KEY="--pep-shadow-xs-offset",f.SHADOW_SM_OFFSET_KEY="--pep-shadow-sm-offset",f.SHADOW_MD_OFFSET_KEY="--pep-shadow-md-offset",f.SHADOW_LG_OFFSET_KEY="--pep-shadow-lg-offset",f.SHADOW_XL_OFFSET_KEY="--pep-shadow-xl-offset",f.SPACING_SIZE_2XS_KEY="--pep-spacing-2xs",f.SPACING_SIZE_XS_KEY="--pep-spacing-xs",f.SPACING_SIZE_SM_KEY="--pep-spacing-sm",f.SPACING_SIZE_MD_KEY="--pep-spacing-md",f.SPACING_SIZE_LG_KEY="--pep-spacing-lg",f.SPACING_SIZE_XL_KEY="--pep-spacing-xl",f.SPACING_SIZE_2XL_KEY="--pep-spacing-2xl",f.SPACING_SIZE_3XL_KEY="--pep-spacing-3xl",f.SPACING_SIZE_4XL_KEY="--pep-spacing-4xl",f.SPACING_SIZE_5XL_KEY="--pep-spacing-5xl",f.SPACING_SIZE_6XL_KEY="--pep-spacing-6xl",f.SPACING_SIZE_7XL_KEY="--pep-spacing-7xl",f.SPACING_SIZE_8XL_KEY="--pep-spacing-8xl",f.SPACING_SIZE_9XL_KEY="--pep-spacing-9xl",f.FORM_FIELD_HEIGHT_KEY="--pep-form-field-height",f.FORM_FIELD_TITLE_HEIGHT_KEY="--pep-form-field-title-height",f.FORM_FIELD_SPACEING_KEY="--pep-form-field-spacing",f.FORM_SPACEING_KEY="--pep-form-spacing",f.CARD_FIELD_HEIGHT_KEY="--pep-card-field-height",f.CARD_SPACEING_KEY="--pep-card-spacing",f.CARD_SHADOW_OFFSET_KEY="--pep-shadow-card-offset",f.CARD_BORDER_RADIUS_KEY="--pep-card-border-radius",f.TABLE_FIELD_HEIGHT_KEY="--pep-table-field-height",f.TABLE_SPACEING_KEY="--pep-table-spacing",f.TABLE_BORDER_RADIUS_KEY="--pep-table-border-radius",f.DEFAULT_HEADER_HEIGHT=64,f.DEFAULT_SPINNER_COLOR="#78aa00",f.DEFAULT_BRANDING_COLOR="#fff",f.\u0275fac=function(t){return new(t||f)(v(Bu),v(_1),v(b3))},f.\u0275prov=S({token:f,factory:f.\u0275fac,providedIn:"root"});let v1=(()=>{class n{constructor(){this.targets=new Map}addTarget(e,i){this.targets.set(e,i)}attach(e,i){const r=this.getTarget(e);r&&r.createEmbeddedView(i)}clear(e){const i=this.getTarget(e);i&&i.clear()}getTarget(e){return this.targets.has(e)?this.targets.get(e):null}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=S({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();class uC{static pad4(t){let e=t.toString(16);for(;e.length<4;)e="0"+e;return e}static random4(){return Math.floor(65536*(1+Math.random())).toString(16).substring(1)}static newGuid(){if(typeof window<"u"&&typeof window.crypto<"u"&&typeof window.crypto.getRandomValues<"u"){const t=new Uint16Array(8);return window.crypto.getRandomValues(t),this.pad4(t[0])+this.pad4(t[1])+"-"+this.pad4(t[2])+"-"+this.pad4(t[3])+"-"+this.pad4(t[4])+"-"+this.pad4(t[5])+this.pad4(t[6])+this.pad4(t[7])}return this.random4()+this.random4()+"-"+this.random4()+"-"+this.random4()+"-"+this.random4()+"-"+this.random4()+this.random4()+this.random4()}}class dC{constructor(t){Object.assign(this,t)}}class HB{constructor(){this.MandatoryField=!1,this.Mandatory=!1,this.minFieldWidth=45,this.calcColumnWidth=10,this.calcTitleColumnWidthString="100%",this.calcColumnWidthString="100%"}}class zB{}class jB{}class hC{constructor(){this.IsEditable=!0,this.IsSelected=!1,this.IsSelectableForActions=!0}}let fC=(()=>{class n{constructor(e,i){this.document=e,this.platformId=i,this.documentIsAccessible=ib(this.platformId)}check(e){return!!this.documentIsAccessible&&(e=encodeURIComponent(e),this.getCookieRegExp(e).test(this.document.cookie))}get(e){if(this.documentIsAccessible&&this.check(e)){e=encodeURIComponent(e);const r=this.getCookieRegExp(e).exec(this.document.cookie);return this.safeDecodeURIComponent(r[1])}return""}getAll(){if(!this.documentIsAccessible)return{};const e={},i=this.document;return i.cookie&&""!==i.cookie&&i.cookie.split(";").forEach(r=>{const[s,o]=r.split("=");e[this.safeDecodeURIComponent(s.replace(/^ /,""))]=this.safeDecodeURIComponent(o)}),e}set(e,i,r,s,o,a,l="Lax"){if(!this.documentIsAccessible)return;let c=encodeURIComponent(e)+"="+encodeURIComponent(i)+";";r&&(c+="number"==typeof r?"expires="+new Date((new Date).getTime()+1e3*r*60*60*24).toUTCString()+";":"expires="+r.toUTCString()+";"),s&&(c+="path="+s+";"),o&&(c+="domain="+o+";"),!1===a&&"None"===l&&(a=!0),a&&(c+="secure;"),c+="sameSite="+l+";",this.document.cookie=c}delete(e,i,r,s,o="Lax"){!this.documentIsAccessible||this.set(e,"",new Date("Thu, 01 Jan 1970 00:00:01 GMT"),i,r,s,o)}deleteAll(e,i,r,s="Lax"){if(!this.documentIsAccessible)return;const o=this.getAll();for(const a in o)o.hasOwnProperty(a)&&this.delete(a,e,i,r,s)}getCookieRegExp(e){const i=e.replace(/([\[\]\{\}\(\)\|\=\;\+\?\,\.\*\^\$])/gi,"\\$1");return new RegExp("(?:^"+i+"|;\\s*"+i+")=(.*?)(?:;|$)","g")}safeDecodeURIComponent(e){try{return decodeURIComponent(e)}catch{return e}}}return n.\u0275fac=function(e){return new(e||n)(v(ne,8),v(Xo))},n.\u0275prov=S({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),pC=(()=>{class n{constructor(e,i,r){this.sessionService=e,this.cookieService=i,this.http=r,this.AUTH_HEADER="Authorization",this.PEPPERI_TOKEN_HEADER="PepperiSessionToken",this.WAPI_TOKEN_KEY="auth_token",this.PEPPERI_TOKEN_COOKIE="PepperiUserSettings"}handleError(e){let i="Unknown error!";return i=e.error instanceof ErrorEvent?`Error: ${e.error.message}`:this.getServerErrorMessage(e),Oi(i)}getServerErrorMessage(e){if(e?.error?.fault?.faultstring)return`${e.error.fault.faultstring}`;switch(e.status){case 404:return`Not Found: ${e.message}`;case 403:return`Access Denied: ${e.message}`;case 500:return`Internal Server Error: ${e.message}`;default:return`Unknown Server Error\nError Code: ${e.status}\nMessage: ${e.message}`}}addAuthorizationToken(e={}){if(!e.headers.has(this.AUTH_HEADER)){const i=this.sessionService.getIdpToken();i&&(e.headers=e.headers.set(this.AUTH_HEADER,`Bearer ${i}`))}return e}addWebApiToken(e,i={}){if(!i.headers.has(this.PEPPERI_TOKEN_HEADER)){const r=this.sessionService.getWapiBaseUrl();if(r&&e.match(new RegExp(r,"g")))try{const s=this.cookieService.get(this.PEPPERI_TOKEN_COOKIE),o=JSON.parse(s).values.items[this.WAPI_TOKEN_KEY];o&&(i.headers=i.headers.set(this.PEPPERI_TOKEN_HEADER,o))}catch{}}return i}setDefaultHeaderOptions(e,i={}){return i.headers||(i.headers=new di),i.headers.has("Content-Type")||(i.headers=i.headers.set("Content-Type","application/json")),i=this.addAuthorizationToken(i),this.addWebApiToken(e,i)}getHttpCall(e,i={}){return i=this.setDefaultHeaderOptions(e,i),this.http.get(e,i).pipe(Xt(this.handleError.bind(this)))}postHttpCall(e,i,r={}){return r=this.setDefaultHeaderOptions(e,r),this.http.post(e,i,r).pipe(Xt(this.handleError.bind(this)))}getWapiApiCall(e,i={}){const r=this.sessionService.getWapiBaseUrl();return this.getHttpCall(`${r}${e}`,i)}postWapiApiCall(e,i,r={}){const s=this.sessionService.getWapiBaseUrl();return this.postHttpCall(`${s}${e}`,i,r)}getPapiApiCall(e,i={}){const r=this.sessionService.getPapiBaseUrl();return this.getHttpCall(`${r}${e}`,i)}postPapiApiCall(e,i,r={}){const s=this.sessionService.getPapiBaseUrl();return this.postHttpCall(`${s}${e}`,i,r)}}return n.\u0275fac=function(e){return new(e||n)(v(Bu),v(fC),v($s))},n.\u0275prov=S({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),gC=(()=>{class n{constructor(e){this.http=e}createMultiTranslateLoader(e){return new fB(this.http,e)}setDefaultTranslateLang(e,i="userLang"){let r="en";if(e.setDefaultLang(r),r=e.getBrowserLang().split("-")[0],i.length>0){const s=location.href.indexOf(i);if(s>-1){const o=s+i.length+1;r=location.href.substring(o,o+2)}}e.use(r).subscribe(s=>{})}}return n.\u0275fac=function(e){return new(e||n)(v($s))},n.\u0275prov=S({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();class pi{constructor(t,e,i,r,s,o,a){this.sessionService=t,this.httpService=e,this.loaderService=i,this.translateService=r,this.fileService=s,this.router=o,this.route=a,this.PAGES_ADDON_UUID="50062e0c-9967-4ed4-9102-f2bc50602d41",this.ADDONS_DICTIONARY_ASSETS_PATH_KEY="AddonsDictionaryAssetsPath",this.ADDON_API_RELATIVE_PATH="/addons/api",this.ADDON_API_ASYNC_RELATIVE_PATH=`${this.ADDON_API_RELATIVE_PATH}/async`}get devServer(){return!!this.route&&"true"===this.route.snapshot.queryParamMap.get("devServer")}getAddonBaseRelativePath(t=!1){return t?this.ADDON_API_ASYNC_RELATIVE_PATH:this.ADDON_API_RELATIVE_PATH}getAddonStaticFolder(t){const e=this.sessionService.getObject(this.ADDONS_DICTIONARY_ASSETS_PATH_KEY);return e&&e[t]?e[t]:""}setAddonStaticFolder(t,e){const i=this.sessionService.getObject(this.ADDONS_DICTIONARY_ASSETS_PATH_KEY)??{};i[e]=t,this.sessionService.setObject(this.ADDONS_DICTIONARY_ASSETS_PATH_KEY,i)}getServerBaseUrl(t,e="",i=!1,r=4500){const s=e.length>0?`/${e}`:"";return this.devServer?`http://localhost:${r}${s}`:`${this.sessionService.getPapiBaseUrl()}${this.getAddonBaseRelativePath(i)}/${t}${s}`}getAddonApiCall(t,e,i,r={},s=!1){const o=this.getServerBaseUrl(t,e,s);return this.httpService.getHttpCall(`${o}/${i}`,r)}postAddonApiCall(t,e,i,r={},s={},o=!1){const a=this.getServerBaseUrl(t,e,o);return this.httpService.postHttpCall(`${a}/${i}`,r,s)}getAddonCPICall(t,e){var i=this;return s4(function*(){const r=yield i.emitEvent("AddonAPI",{AddonUUID:t,RelativeURL:e});if(r.Success)return JSON.parse(r.Value);throw new Error(r.Value)})()}postAddonCPICall(t,e,i){var r=this;return s4(function*(){const s=yield r.emitEvent("AddonAPI",{AddonUUID:t,RelativeURL:e,Method:"POST",Body:i});if(s.Success)return JSON.parse(s.Value);throw new Error(s.Value)})()}emitEvent(t,e){return new Promise(i=>{window.dispatchEvent(new CustomEvent("emit-event",{detail:{eventKey:t,eventData:e,completion:i}}))})}fetch(t,e){return this.loaderService.show(),window.fetch(t,e).finally(()=>{this.loaderService.hide()})}getNgxLibTranslationResource(t,e="ngx-lib"){const i=this.getAddonStaticFolder(t);return{prefix:this.fileService.getAssetsTranslationsPath(i,e),suffix:this.fileService.getAssetsTranslationsSuffix(e)}}getAddonTranslationResource(t){const e=this.getAddonStaticFolder(t),i="assets/i18n/";return{prefix:e.length>0?`${e}${i}`:`/${i}`,suffix:".json"}}setDefaultTranslateLang(t,e="userLang"){this.translateService.setDefaultTranslateLang(t,e)}getPagesAddonUUID(){return this.PAGES_ADDON_UUID}setShellRouterData(t){const i=new CustomEvent("set-router-data",{detail:t});window.dispatchEvent(i)}defineCustomElement(t,e,i){customElements.get(t)||(customElements.define(t,pw(e,{injector:i})),pi._customElementsMap.set(t,{injector:i}))}connectInternalRouter(t){let i=pi._customElementsMap.get(t)?.injector.get(fi);if(i||(i=this.router),i){const r=location.href.includes("#");this.connectRouter(i,r)}}connectRouter(t,e=!1){let i;e?(i=`${location.hash.substr(1)}${location.search}`,t.navigateByUrl(i),window.addEventListener("hashchange",()=>{t.navigateByUrl(i)})):(i=`${location.pathname.substr(1)}${location.search}`,t.navigateByUrl(i),window.addEventListener("popstate",()=>{t.navigateByUrl(i)}))}static createMultiTranslateLoader(t,e,i=["ngx-lib"]){const r=[];if(i?.length>0)for(let o=0;o<i.length;o++)r.push(e.getNgxLibTranslationResource(t,i[o]));const s=e.getAddonTranslationResource(t);return e.translateService.createMultiTranslateLoader([...r,s])}}pi._customElementsMap=new Map,pi.\u0275fac=function(t){return new(t||pi)(v(Bu),v(pC),v(g1),v(gC),v(_1),v(fi,8),v(Yr,8))},pi.\u0275prov=S({token:pi,factory:pi.\u0275fac,providedIn:"root"});let UB=(()=>{class n{constructor(){this.FLOAT_REGEX=/^\d+(\.\d+)?$/,this.THREE_DIGIT_HEX_COLOR_REGEX=/^[0-9a-fA-F]{3}$/,this.THREE_DIGIT_HEX_COLOR_WITH_HASH_REGEX=/^#[0-9a-fA-F]{3}$/,this.SIX_DIGIT_HEX_COLOR_REGEX=/^[0-9a-fA-F]{6}$/,this.SIX_DIGIT_HEX_COLOR_WITH_HASH_REGEX=/^#[0-9a-fA-F]{6}$/}contrast(e,i){const r=this.relativeLuminance(this.hex2rgb(e)),s=this.relativeLuminance(this.hex2rgb(i));return r<s?(s+.05)/(r+.05):(r+.05)/(s+.05)}findClosestAccessibleDarkerColor(e,i,r){const{h:s,s:o,l:a}=this.hex2hsl(e);if(this.contrast(e,i)>=r)return{color:e,lightness:a};let l=this.hsl2hex({h:s,s:o,l:0});if(this.contrast(l,i)<r)return null;let h,p,g,c=0,u=a,d=this.hsl2hex({h:s,s:o,l:a});for(;l!==h||d!==p;)h=l,p=d,g=(c+u)/2,e=this.hsl2hex({h:s,s:o,l:g}),this.contrast(e,i)<r?(u=g,d=this.hsl2hex({h:s,s:o,l:g})):(c=g,l=this.hsl2hex({h:s,s:o,l:g}));return{color:l,lightness:c}}findClosestAccessibleLighterColor(e,i,r){const{h:s,s:o,l:a}=this.hex2hsl(e);if(this.contrast(e,i)>=r)return{color:e,lightness:a};let l=this.hsl2hex({h:s,s:o,l:100});if(this.contrast(l,i)<r)return null;let h,p,g,c=a,u=100,d=this.hsl2hex({h:s,s:o,l:a});for(;d!==h||l!==p;)h=d,p=l,g=(c+u)/2,e=this.hsl2hex({h:s,s:o,l:g}),this.contrast(e,i)<r?(c=g,d=this.hsl2hex({h:s,s:o,l:g})):(u=g,l=this.hsl2hex({h:s,s:o,l:g}));return{color:l,lightness:u}}hex2sixDigitHex(e){return e?(e=e.trim(),this.SIX_DIGIT_HEX_COLOR_WITH_HASH_REGEX.test(e)?e:this.SIX_DIGIT_HEX_COLOR_REGEX.test(e)?"#"+e:this.THREE_DIGIT_HEX_COLOR_WITH_HASH_REGEX.test(e)?"#"+e[1]+e[1]+e[2]+e[2]+e[3]+e[3]:this.THREE_DIGIT_HEX_COLOR_REGEX.test(e)?"#"+e[0]+e[0]+e[1]+e[1]+e[2]+e[2]:null):null}rgb2sixDigitHex(e){return e?(e.r=e.r.toString(16),e.g=e.g.toString(16),e.b=e.b.toString(16),1===e.r.length&&(e.r="0"+e.r),1===e.g.length&&(e.g="0"+e.g),1===e.b.length&&(e.b="0"+e.b),"#"+e.r+e.g+e.b):null}hex2rgb(e){if(!e)return null;const i=this.hex2sixDigitHex(e);return null===i?null:{r:parseInt(i.slice(1,3),16),g:parseInt(i.slice(3,5),16),b:parseInt(i.slice(5,7),16)}}rgbString2hsl(e){if(!e)return null;const i=e.indexOf(",")>-1?",":" ",r=e.substr(4).split(")")[0].split(i),s=r[0],o=r[1].substr(0,r[1].length).trim(),a=r[2].substr(0,r[2].length).trim();return this.rgb2hsl({r:s,g:o,b:a})}rgb2hsl({r:e,g:i,b:r}){e/=255,i/=255,r/=255;const s=Math.min(e,i,r),o=Math.max(e,i,r),a=o-s;let l=0,c=0,u=0;return l=0===a?0:o===e?(i-r)/a%6:o===i?(r-e)/a+2:(e-i)/a+4,l=Math.round(60*l),l<0&&(l+=360),u=(o+s)/2,c=0===a?0:a/(1-Math.abs(2*u-1)),c=+(100*c).toFixed(1),u=+(100*u).toFixed(1),{h:l,s:c,l:u}}hslString2hsl(e){if(!e)return null;const i=e.indexOf(",")>-1?",":" ",r=e.substr(4).split(")")[0].split(i);let s=r[0],o=r[1].substr(0,r[1].length).trim(),a=r[2].substr(0,r[2].length).trim();return s.indexOf("deg")>-1?s=s.substr(0,s.length-3):s.indexOf("rad")>-1?s=Math.round(s.substr(0,s.length-3)*(180/Math.PI)):s.indexOf("turn")>-1&&(s=Math.round(360*s.substr(0,s.length-4))),s>=360&&(s%=360),o.indexOf("%")>-1&&(o=o.replace(/%/g,"")),a.indexOf("%")>-1&&(a=a.replace(/%/g,"")),{h:s,s:o,l:a}}hsl2rgb({h:e,s:i,l:r}){let s,o,a;isFinite(e)||(e=0),isFinite(i)||(i=0),isFinite(r)||(r=0),(e/=60)<0&&(e=6- -e%6),e%=6,i=Math.max(0,Math.min(1,i/100)),r=Math.max(0,Math.min(1,r/100));const l=(1-Math.abs(2*r-1))*i,c=l*(1-Math.abs(e%2-1));e<1?(s=l,o=c,a=0):e<2?(s=c,o=l,a=0):e<3?(s=0,o=l,a=c):e<4?(s=0,o=c,a=l):e<5?(s=c,o=0,a=l):(s=l,o=0,a=c);const u=r-l/2;return s=Math.round(255*(s+u)),o=Math.round(255*(o+u)),a=Math.round(255*(a+u)),{r:s,g:o,b:a}}hex2hsl(e){if(!e)return null;const i=this.hex2sixDigitHex(e);if(null===i)return null;const r=this.hex2rgb(i);return null===r?null:this.rgb2hsl(r)}hsl2hex(e){if(!e)return null;const i=this.hsl2rgb(e);return this.rgb2sixDigitHex(i)}relativeLuminance({r:e,g:i,b:r}){return[e,i,r]=[e,i,r].map(s=>(s/=255)<=.03928?s/12.92:Math.pow((s+.055)/1.055,2.4)),.2126*e+.7152*i+.0722*r}findClosestAccessibleColor(e,i,r){const s=this.findClosestAccessibleDarkerColor(e,i,r),o=this.findClosestAccessibleLighterColor(e,i,r);if(null===s)return null===o?null:o.color;if(null===o)return s.color;const{l:a}=this.hex2hsl(e);return o.lightness-a<a-s.lightness?o.color:s.color}convertHslToStringHsl(e){return"hsl("+(e.h<0?e.h+360:e.h)+", "+e.s+"%, "+e.l+"%)"}lightOrDark(e){let i,r,s;return e.match(/^rgb/)?(i=(e=e.match(/^rgba?\((\d+),\s*(\d+),\s*(\d+)(?:,\s*(\d+(?:\.\d+)?))?\)$/))[1],r=e[2],s=e[3]):(i=(e=+("0x"+e.slice(1).replace(e.length<5&&/./g,"$&$&")))>>16,r=e>>8&255,s=255&e),Math.sqrt(i*i*.299+r*r*.587+s*s*.114)>127.5?"light":"dark"}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=S({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),$B=(()=>{class n{getUiControl(e){const i=new zB;if(e?.Fields?.length>0){const r=e.Fields;i.ControlFields=[],r.forEach(s=>i.ControlFields.push(this.setUIControlField(s)))}return i}convertFormData(e){const i=new hC;return i.Fields=[],i.Type=0,i.UID=uC.newGuid(),e.Fields.forEach(r=>i.Fields.push(this.setDataField(r))),i}convertListData(e,i=""){const r=new Array;return e.length>0&&e.forEach(s=>{const o=new hC;o.Fields=[],o.Type=0,o.UID=i||(s.UUID?s.UUID:uC.newGuid()),!1===s.IsEditable&&(o.IsEditable=!1),!1===s.IsSelectableForActions&&(o.IsSelectableForActions=!1),s.IsSelected&&(o.IsSelected=!0),s.Fields.forEach(a=>o.Fields.push(this.setDataField(a))),r.push(o)}),r}setUIControlField(e){const i=new HB;return i.ApiName=e.ApiName,i.FieldType=e.FieldType,i.Layout=new dC({X:1,Width:1,XAlignment:e.XAlignment,Y:1,Height:1,YAlignment:1}),i.Title=e.Title,i.ReadOnly=!0===e.ReadOnly,i.ColumnWidth=e.ColumnWidth,i.ColumnWidthType=e.ColumnWidthType||1,i}setDataField(e){const i=new jB;return i.AdditionalValue=e.AdditionalValue,i.ApiName=e.ApiName,i.Enabled=!1!==e.Enabled,i.FieldType=e.FieldType,i.FormattedValue=e.FormattedValue||e.Value,i.GroupFields=null,i.NotificationInfo="",i.OptionalValues=e.OptionalValues,i.ReferenceObjectSubType="",i.TextColor="",i.Value=e.Value,i.Visible=!0,i}setFieldLayout(e,i,r,s,o,a,l){return new dC({X:e,Width:i,XAlignment:r,Y:s,Height:o,YAlignment:a,LineNumber:l})}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=S({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),YB=(()=>{class n{constructor(e=null){this.translate=e,this.integerUnsigned="^[0-9]*$",this.integerSigned="^-?[0-9]+$",this.decimalUnsigned="^[0-9]+(.[0-9]+)?$",this.decimalSigned="^-?[0-9]+(.[0-9]+)?$",this.phone="^[+]*[(]{0,1}[0-9]{1,4}[)]{0,1}[-s./0-9]*$",this.decimalSeparator=".";const i=this.translate?.currentLang||navigator.language,r=new Intl.NumberFormat(i,{maximumSignificantDigits:2}).format(1e3);this.decimalSeparator=1===r.indexOf(",")?".":",",this.decimalUnsigned=`^[0-9]+(${this.decimalSeparator}[0-9]+)?$`,this.decimalSigned=`^-?[0-9]+(${this.decimalSeparator}[0-9]+)?$`}isEqual(e){return i=>i.value&&e.value!==i.value?{equal:{value:!0}}:null}isGreaterThan(e){return i=>{if(i.value&&"number"==typeof e.value)return e.value>i.value?{greater:{value:!0}}:null;if(i.value&&"string"==typeof e.value){const r=bt(i.value);return bt(e.value)>r?{greater:{value:!0}}:null}return null}}isLessThan(e){return i=>{if(i.value&&"number"==typeof e.value)return e.value<i.value?{less:{value:!0}}:null;if(i.value&&"string"==typeof e.value){const r=bt(i.value);return bt(e.value)<r?{less:{value:!0}}:null}return null}}checkEmails(e){return i=>{if(i.value){const r=i.value.split(e||","),s=new js("",[Qe.required,Qe.email]);return r.every(a=>(s.setValue(a),s.valid))?null:{emails:{value:!0}}}return null}}zipCodeValidator(){return Qe.pattern(/^(\d{5}(-\d{4})?|[A-Z]\d[A-Z] *\d[A-Z]\d)$/)}allowableCharactersValidator(){return Qe.pattern(/^[a-zA-Z0-9`~!@#$%^&*()_+}{|":?><,./;'\\\]\[=\- ]+$/)}allowableCharactersWithoutNumberValidator(){return Qe.pattern(/^[a-zA-Z`~!@#$%^&*()_+}{|":?><,./;'\\\]\[=\- ]+$/)}allowableCharactersWithoutSpecialValidator(){return Qe.pattern(/^[a-zA-Z0-9 ]+$/)}dateValidator(){return Qe.pattern(/^(?:(0[1-9]|1[012])[\/.](0[1-9]|[12][0-9]|3[01])[\/.](19|20)[0-9]{2})$/)}numberValidator(){return Qe.pattern(/^[0-9]*$/)}validateNumber(e,i){let r;return r=i?this.decimalSigned:this.integerSigned,e.charAt(0)==this.decimalSeparator&&(e=0+e),e.charAt(e.length-1)==this.decimalSeparator&&(e+=0),new RegExp(r).test(e)?e:null}validatePhone(e){return new RegExp(this.phone).test(e)}getName(e){if(e.key)return e.key;if(e.keyCode&&String.fromCharCode)switch(e.keyCode){case 8:return"Backspace";case 9:return"Tab";case 27:return"Escape";case 37:return"ArrowLeft";case 39:return"ArrowRight";case 188:return",";case 190:return".";case 109:case 173:case 189:return"-";default:return String.fromCharCode(e.keyCode)}}allowKeyboardNonNumericCharacters(e,i,r){return!!(-1!=["Backspace","ArrowLeft","ArrowRight","Escape","Tab","Home","End","Delete"].indexOf(i)||-1!=e.indexOf(i)||"a"==i&&r||"c"==i&&r||"v"==i&&r||"x"==i&&r||i.startsWith("F"))}isPhone(e){const i=this.getName(e);return!!this.allowKeyboardNonNumericCharacters([".","-","+","(",")","*","#"],i,!0===e.ctrlKey||!0===e.metaKey)||new RegExp(this.phone).test(i)}isNumber(e,i){const r=e.target.selectionStart,s=e.target.value,o=this.getName(e),a=!0===e.ctrlKey||!0===e.metaKey,l=s.includes("-"),c=s.includes(this.decimalSeparator),u=[];i&&!(l&&r<=1)&&!c&&u.push("."==this.decimalSeparator?".":",");const h=s.charAt(0)!=this.decimalSeparator;return!l&&h&&0==r&&u.push("-"),!!this.allowKeyboardNonNumericCharacters(u,o,a)||new RegExp(this.integerUnsigned).test(o)}}return n.\u0275fac=function(e){return new(e||n)(v(Ai,8))},n.\u0275prov=S({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),GB=(()=>{class n{constructor(){this.styleTag=this.buildStyleElement()}disable(){document.body.appendChild(this.styleTag)}enable(){document.body.removeChild(this.styleTag)}buildStyleElement(){const e=document.createElement("style");return e.type="text/css",e.setAttribute("data-debug","Injected by WindowScrolling service."),e.textContent="\n body {\n overflow: hidden !important ;\n }\n ",e}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=S({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const Hu="left";class mC{constructor(t={}){this.key=t.key||"",this.label=t.label||"",this.accessory=t.accessory||"",this.mandatory=!!t.mandatory,this.order=t.order??1,this.controlType=t.controlType||"",this.placeholder=t.placeholder||"",this.hidden=!!t.hidden,this.row=t.row??1,this.rowSpan=t.rowSpan??1,this.col=t.col??1,this.colSpan=t.colSpan??1,this.xAlignment=t.xAlignment??Hu,this.yAlignment=t.yAlignment??"top",this.maxFieldCharacters=t.maxFieldCharacters??0,this.minValue=t.minValue??void 0,this.maxValue=t.maxValue??void 0,this.update(t)}getBaseValidators(t=!1){const e=[];return e.push(!this.mandatory||this.readonly||this.disabled?Qe.nullValidator:t?Qe.requiredTrue:Qe.required),this.maxFieldCharacters>0&&e.push(Qe.maxLength(this.maxFieldCharacters)),e}getValidators(){return this.getBaseValidators()}update(t){this.value=t.value,this.formattedValue=t.formattedValue,this.additionalValue=t.additionalValue,this.readonly=!!t.readonly,this.disabled=!!t.disabled,this.visible=!!t.visible,this.textColor=t.textColor||""}}class KB extends mC{constructor(t={}){super(t),this.controlType="textbox",this.type="text",this.digitsNumberAfterDecimalPoint=NaN,this.type=t.type||"text",this.regex=t.regex??null,this.update(t)}update(t){super.update(t),this.digitsNumberAfterDecimalPoint=t.digitsNumberAfterDecimalPoint??NaN,"link"===this.type&&(this.formattedValue=this.disabled&&this.formattedValue&&this.value?this.formattedValue:this.value)}getValidators(){const t=super.getBaseValidators();return"email"===this.type?t.push(Qe.pattern(/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/)):"phone"===this.type?t.push(Qe.pattern(/^[\d\.\-\+\(\)\*\#]+$/)):"int"===this.type||"real"===this.type?(t.push(Qe.pattern(/^[\.,\-\+\d]+$/)),this.minValue&&!isNaN(this.minValue)&&t.push(Qe.min(this.minValue)),this.maxValue&&!isNaN(this.maxValue)&&t.push(Qe.max(this.maxValue))):("currency"===this.type||"percentage"===this.type)&&(this.minValue&&!isNaN(this.minValue)&&t.push(Qe.min(this.minValue)),this.maxValue&&!isNaN(this.maxValue)&&t.push(Qe.max(this.maxValue))),"text"===this.type&&this.regex&&t.push(Qe.pattern(this.regex)),t}}class qB extends mC{constructor(t={}){super(t),this.controlType="select",this.options=[],this.autoSortOptions=!0,this.type=t.type||"select",this.emptyOption=t.emptyOption,this.autoSortOptions=t.autoSortOptions??!0,this.update(t)}update(t){super.update(t),this.options=t.options||[]}}let ZB=(()=>{class n{scrollElementTo(e,i=500,r=0){const s=new le;return e instanceof Element||e instanceof Window?this._scrollElementTo(e,i,r,s):s.error("I don't find element"),s}_scrollElementTo(e,i,r,s){if(e){let o;o=e instanceof Window?window.pageYOffset:e.getBoundingClientRect().top,this.doScrolling(e,o,r,i,s)}else s.error("I don't find element");return s}scrollWindowToElement(e,i=500,r=0){const s=new le;if("string"==typeof e){const o=document.querySelector(e);this._scrollWindowToElement(o,i,r,s)}else e instanceof HTMLElement?this._scrollWindowToElement(e,i,r,s):s.error("I don't find element");return s}_scrollWindowToElement(e,i,r,s){if(e){const o=e.getBoundingClientRect(),a=window.pageYOffset;this.doScrolling(window,a,o.top+a+r,i,s)}else s.error("I don't find element");return s}doScrolling(e,i,r,s,o){const a=r-i;let l;requestAnimationFrame(function c(u){l=l||u;const d=u-l,h=Math.min(d/s,1);e.scrollTo(0,i+a*h),d<s?(requestAnimationFrame(c),o.next({})):o.complete()})}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=S({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),XB=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=me({type:n}),n.\u0275inj=pe({providers:[gB,pi,UB,fC,$B,_1,cC,Bu,gC,eo,YB,GB,f,pC,g1,m1,v1,ZB,b3],imports:[Zi,H3,a0,x3]}),n})();const QB=["*"],JB={name:"number_coins",data:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path fill-rule="evenodd" d="M5.5 14.244c.355.562.885 1.04 1.547 1.432-.659.27-1.047.576-1.047.824 0 .589 2.186 1.5 5 1.5 2.44 0 4.409-.685 4.888-1.251.754-.14 1.457-.338 2.085-.592.018.112.027.226.027.343 0 2.172-3.186 3.5-7 3.5s-7-1.328-7-3.5c0-.914.563-1.678 1.5-2.256zm13.64-3.523c.547.5.86 1.098.86 1.779 0 2.172-3.186 3.5-7 3.5s-7-1.328-7-3.5c0-.27.049-.526.142-.769.543.309 1.17.562 1.858.759v.01c0 .589 2.186 1.5 5 1.5s5-.911 5-1.5c0-.172-.187-.372-.522-.568.672-.33 1.238-.733 1.662-1.21zM12 5c3.814 0 7 1.328 7 3.5 0 2.172-3.186 3.5-7 3.5s-7-1.328-7-3.5C5 6.328 8.186 5 12 5zm0 2c-2.814 0-5 .911-5 1.5S9.186 10 12 10s5-.911 5-1.5S14.814 7 12 7z"/></svg>'},eH={name:"number_decimal",data:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path fill-rule="evenodd" d="M16.141 4.01a1 1 0 01.849 1.132L16.55 8h2.583c.48 0 .867.448.867 1s-.387 1-.867 1h-2.891l-.308 2h2.2c.479 0 .866.447.866 1 0 .553-.387 1-.867 1h-2.506l-.637 4.142a.999.999 0 01-.989.858l-.143-.01a1 1 0 01-.849-1.132L13.603 14h-1.976l-.637 4.142a1 1 0 01-.989.858l-.143-.01a1 1 0 01-.848-1.132L9.604 14H6.867C6.388 14 6 13.553 6 13c0-.553.388-1 .867-1H9.91l.308-2H7.867C7.388 10 7 9.552 7 9s.388-1 .867-1h2.66l.483-3.142a1 1 0 011.98.284L12.55 8h1.976l.483-3.142a1.002 1.002 0 011.132-.848zM5.5 16a1.5 1.5 0 110 3 1.5 1.5 0 010-3zm8.718-6h-1.975l-.308 2h1.975l.308-2z"/></svg>'},tH={name:"number_number",data:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path fill-rule="evenodd" d="M16.141 4.01a1 1 0 01.849 1.132L16.582 8H19a1 1 0 110 2h-2.704l-.571 4H18a.999.999 0 110 2h-2.561l-.449 3.142a.999.999 0 01-.989.858l-.143-.01a1 1 0 01-.849-1.132L13.417 16H9.439l-.449 3.142a1 1 0 01-.989.858l-.143-.01a1 1 0 01-.848-1.132L7.418 16H5a1 1 0 110-2h2.704l.571-4H6a1 1 0 010-2h2.561l.449-3.142a1 1 0 011.98.284L10.582 8h3.978l.45-3.142a1.002 1.002 0 011.131-.848zM14.274 10h-3.978l-.571 4h3.978l.571-4z"/></svg>'},nH={name:"number_percent",data:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path fill-rule="evenodd" d="M17 13a4 4 0 110 8 4 4 0 010-8zm0 2a2 2 0 100 4 2 2 0 000-4zm1.364-9.364a1 1 0 010 1.414L7.05 18.364a1 1 0 01-1.414-1.414L16.95 5.636a1 1 0 011.414 0zM7 3a4 4 0 110 8 4 4 0 010-8zm0 2a2 2 0 100 4 2 2 0 000-4z"/></svg>'},_C={name:"system_edit",data:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path fill-rule="evenodd" d="M18.435 4.879l1.414 1.414a3 3 0 010 4.243l-9.9 9.899a1 1 0 01-.706.293H5a1 1 0 01-1-1v-4.243a1 1 0 01.293-.707l9.9-9.9a3 3 0 014.242 0zM7.191 14.707L6 15.898v2.83h2.828l1.191-1.193-2.828-2.828zm6.364-6.364l-4.95 4.95 2.828 2.828 4.951-4.949-2.829-2.829zm2.052-2.05l-.638.636 2.829 2.829.637-.637a1 1 0 00.078-1.327l-.078-.087-1.414-1.414a1 1 0 00-1.414 0z"/></svg>'},iH={name:"system_email",data:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path fill-rule="evenodd" d="M12 4c4.411 0 8 3.589 8 8 0 .543-.055 1.086-.163 1.612-.344 1.64-1.939 2.685-3.555 2.345a2.973 2.973 0 01-1.64-.955A3.984 3.984 0 0112 16c-2.206 0-4-1.794-4-4s1.794-4 4-4a4.004 4.004 0 013.923 4.782l-.008.033a.994.994 0 00.143.752.998.998 0 00.632.432 1.008 1.008 0 001.184-.775A6.006 6.006 0 0012 6C8.691 6 6 8.69 6 12a6.006 6.006 0 008.064 5.636 1 1 0 11.685 1.88 7.983 7.983 0 01-2.75.484L12 20c-4.411 0-8-3.589-8-8s3.589-8 8-8zm0 6c-1.103 0-2 .897-2 2s.897 2 2 2 2-.897 2-2-.897-2-2-2z"/></svg>'},rH={name:"system_full_screen",data:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path fill-rule="evenodd" d="M10.597 13.403a.961.961 0 010 1.36L7.36 18H9a1 1 0 010 2H5a1 1 0 01-1-1v-4a1 1 0 012 0v1.64l3.238-3.237a.961.961 0 011.36 0zM19 4a1 1 0 011 1v4a1 1 0 01-2 0V7.36l-3.238 3.237a.961.961 0 11-1.36-1.36L16.642 6H15a1 1 0 010-2h4z"/></svg>'},sH={name:"system_link",data:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path fill-rule="evenodd" d="M9.254 10.627a.97.97 0 010 1.373L6.51 14.745a1.941 1.941 0 002.744 2.745L12 14.745a.97.97 0 111.373 1.372l-2.746 2.746a3.882 3.882 0 01-5.49-5.49l2.745-2.746a.97.97 0 011.372 0zm5.491-1.373a.972.972 0 010 1.373l-4.117 4.118a.97.97 0 01-1.373-1.373l4.118-4.118a.97.97 0 011.372 0zm4.118-4.117a3.882 3.882 0 010 5.49l-2.746 2.745A.97.97 0 1114.745 12l2.745-2.746a1.942 1.942 0 00-2.745-2.744L12 9.255a.97.97 0 01-1.373-1.373l2.746-2.745a3.883 3.883 0 015.49 0z"/></svg>'},oH={name:"system_must",data:'<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 0 24 24"><defs><filter id="a" width="187.5%" height="187.5%" x="-43.7%" y="-31.2%" filterUnits="objectBoundingBox"><feOffset dy="2" in="SourceAlpha" result="shadowOffsetOuter1"/><feGaussianBlur in="shadowOffsetOuter1" result="shadowBlurOuter1" stdDeviation="2"/><feColorMatrix in="shadowBlurOuter1" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.12 0"/></filter><path id="b" d="M13.487 4l-.403 6.767 5.997-2.493.919 2.973-6.246 1.689 4.11 5.226L15.457 20 12 14.276 8.542 20l-2.405-1.838 4.109-5.226L4 11.247l.919-2.973 5.996 2.493L10.513 4h2.974z"/></defs><g fill="none" fill-rule="evenodd"><use fill="#000" filter="url(#a)" xlink:href="#b"/><use fill="#FE0000" xlink:href="#b"/></g></svg>'},aH={name:"system_phone",data:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path fill-rule="evenodd" d="M4.814 8.88c1.362-1.39 2.043-1.022 2.98.328.85 1.228.595 2.046 0 2.578-.384.327-1.363.9-.852 1.76.724 1.227 2.129 2.7 3.363 3.478.851.531 1.532-.369 1.915-.696.596-.573 1.447-.736 2.64.164 1.32.982 1.66 1.677.127 2.905C9.88 22.384 1.323 13.546 4.814 8.88zM11 4a9 9 0 019 9 1 1 0 01-2 0 7 7 0 00-7-7 1 1 0 010-2zm0 4a5 5 0 015 5 1 1 0 01-2 0 3 3 0 00-3-3 1 1 0 010-2z"/></svg>'},lH={name:"time_cal",data:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path fill-rule="evenodd" d="M16 3a1 1 0 011 1v1h1a2 2 0 012 2v11a2 2 0 01-2 2H6a2 2 0 01-2-2V7a2 2 0 012-2h1V4a1 1 0 01.883-.993L8 3a1 1 0 011 1v1h2V4a1 1 0 01.883-.993L12 3a1 1 0 011 1v1h2V4a1 1 0 01.883-.993zm2 8H6v6a1 1 0 001 1h10a1 1 0 001-1v-6zM7.983 7H7a1 1 0 00-1 1v1h12V8a1 1 0 00-1-1l-.983-.001L16 7h-.017l-3.966-.001L12 7h-.017l-3.966-.001L8 7h-.017z"/></svg>'},cH={name:"time_datetime",data:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path fill-rule="evenodd" d="M16 3a1 1 0 011 1v1h1a2 2 0 012 2v11a2 2 0 01-2 2H6a2 2 0 01-2-2V7a2 2 0 012-2h1V4a1 1 0 01.883-.993L8 3a1 1 0 011 1v1h2V4a1 1 0 01.883-.993L12 3a1 1 0 011 1v1h2V4a1 1 0 01.883-.993zm1 4H7a1 1 0 00-1 1v9a1 1 0 001 1h10a1 1 0 001-1V8a1 1 0 00-1-1zm-5 1a1 1 0 011 1v3.585l1.828 1.83a1 1 0 11-1.414 1.413l-2.121-2.12-.073-.083a1.003 1.003 0 01-.007-.008l.08.09A1.008 1.008 0 0111 13.02 1 1 0 0111 13V9a1 1 0 011-1z"/></svg>'};let ja=(()=>{class n{constructor(){this.registry=new Map}registerIcons(e){e.forEach(i=>this.registry.set(i.name,i.data))}getIcon(e){return this.registry.has(e)||console.warn(`We could not find the Icon with the name ${e},\n did you add it to the Icon registry?`),this.registry.get(e)}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=S({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),vC=(()=>{class n{constructor(e,i,r){this.utilitiesService=e,this.iconRegistry=i,this.document=r}getSvgIcon(e){const i=this.iconRegistry.getIcon(e);return this.utilitiesService.getSvgElementFromString(this.document,i)}}return n.\u0275fac=function(e){return new(e||n)(v(eo),v(ja),v(ne,8))},n.\u0275prov=S({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),Ua=(()=>{class n{constructor(e,i,r){this.renderer=e,this.element=i,this.pepIconService=r,this._spin=!1,this._fill=null}set spin(e){this._spin=e,this.setSpin()}set name(e){this.svgIcon&&this.element.nativeElement.removeChild(this.svgIcon),this.svgIcon=this.pepIconService.getSvgIcon(e),this.svgIcon&&(this.element.nativeElement.appendChild(this.svgIcon),this.setFill(),this.setSpin())}set fill(e){this._fill=e,this.setFill()}setFill(){if(this.svgIcon&&this._fill){const e=this.svgIcon.classList.contains("stroke")?"stroke":"fill";this.renderer.setStyle(this.svgIcon,e,this._fill)}}setSpin(){this.svgIcon&&(this._spin?this.renderer.addClass(this.svgIcon,"spin"):this.renderer.removeClass(this.svgIcon,"spin"))}}return n.\u0275fac=function(e){return new(e||n)(_(ht),_(se),_(vC))},n.\u0275cmp=Ft({type:n,selectors:[["pep-icon"]],inputs:{spin:"spin",name:"name",fill:"fill"},ngContentSelectors:QB,decls:1,vars:0,template:function(e,i){1&e&&(Er(),Bt(0))},styles:["[_nghost-%COMP%]{display:flex;align-items:center;justify-items:center;width:inherit;height:inherit;align-content:center;justify-content:center}[_nghost-%COMP%] svg{width:inherit;height:inherit}[_nghost-%COMP%] svg.spin{animation:rotation 2s infinite linear}@keyframes rotation{0%{transform:rotate(0)}to{transform:rotate(359deg)}}"],changeDetection:0}),n})(),y1=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=me({type:n}),n.\u0275inj=pe({providers:[ja,vC]}),n})();function uH(n,t){1&n&&Ne(0)}function dH(n,t){1&n&&Ne(0)}function hH(n,t){1&n&&Ne(0)}function fH(n,t){1&n&&Ne(0)}function pH(n,t){if(1&n&&(C(0,dH,1,0,"ng-container",7),C(1,hH,1,0,"ng-container",7),C(2,fH,1,0,"ng-container",7)),2&n){T();const e=Q(11),i=Q(9),r=Q(7);w("ngTemplateOutlet",e),M(1),w("ngTemplateOutlet",i),M(1),w("ngTemplateOutlet",r)}}function gH(n,t){1&n&&Ne(0)}function mH(n,t){1&n&&Ne(0)}function _H(n,t){1&n&&Ne(0)}function vH(n,t){if(1&n&&(C(0,gH,1,0,"ng-container",7),C(1,mH,1,0,"ng-container",7),C(2,_H,1,0,"ng-container",7)),2&n){T();const e=Q(7),i=Q(9),r=Q(11);w("ngTemplateOutlet",e),M(1),w("ngTemplateOutlet",i),M(1),w("ngTemplateOutlet",r)}}function yH(n,t){1&n&&(x(0,"mat-icon",10),oe(1,"pep-icon",11),L())}function bH(n,t){1&n&&oe(0,"span")}function wH(n,t){if(1&n&&(C(0,yH,2,0,"mat-icon",8),C(1,bH,1,0,"span",9)),2&n){const e=T();w("ngIf",e.mandatory),M(1),w("ngIf",!e.mandatory)}}function EH(n,t){if(1&n&&(x(0,"mat-label",13),Be(1),L()),2&n){const e=T(2);As("body-",e.fontBodyType,""),w("title",e.label),M(1),Hn(" ",e.label," ")}}function CH(n,t){1&n&&oe(0,"span")}function DH(n,t){if(1&n&&(C(0,EH,2,5,"mat-label",12),C(1,CH,1,0,"span",9)),2&n){const e=T();w("ngIf",e.showTitle),M(1),w("ngIf",!e.showTitle)}}function MH(n,t){1&n&&Ne(0)}function SH(n,t){1&n&&Be(0),2&n&&Hn(" \xa0",T(2).hint," ")}function TH(n,t){if(1&n&&(_t(0),Be(1),vt()),2&n){const e=T(3);M(1),lf(" \xa0",e.inputLength||0,"/",e.maxFieldCharacters," ")}}function IH(n,t){1&n&&C(0,TH,2,2,"ng-container",9),2&n&&w("ngIf",T(2).maxFieldCharacters>0)}function xH(n,t){if(1&n&&(x(0,"span"),C(1,MH,1,0,"ng-container",1),C(2,SH,1,1,"ng-template",null,14,Me),C(4,IH,1,1,"ng-template",null,15,Me),L()),2&n){const e=Q(3),i=Q(5),r=T();As("body-",r.fontBodyType," color-dimmed"),M(1),w("ngIf",(null==r.hint?null:r.hint.length)>0)("ngIfThen",e)("ngIfElse",i)}}const AH=function(n,t){return{disable:n,"multi-line":t}},RH=function(n){return{"text-align":n}};let yC=(()=>{class n{constructor(){this.label="",this.mandatory=!1,this.disabled=!1,this.maxFieldCharacters=0,this.hint="",this.xAlignment=Hu,this.showTitle=!0,this.inputLength=0,this.fontBodyType="xs",this.multiLine=!1}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=Ft({type:n,selectors:[["pep-field-title"]],inputs:{label:"label",mandatory:"mandatory",disabled:"disabled",maxFieldCharacters:"maxFieldCharacters",hint:"hint",xAlignment:"xAlignment",showTitle:"showTitle",inputLength:"inputLength",fontBodyType:"fontBodyType",multiLine:"multiLine"},decls:12,vars:10,consts:[[1,"mat-form-title",3,"ngClass","ngStyle"],[4,"ngIf","ngIfThen","ngIfElse"],["rightTemplate",""],["leftTemplate",""],["requiredTemplate",""],["titleTemplate",""],["hintTemplate",""],[4,"ngTemplateOutlet"],["class","pep-spacing-element",4,"ngIf"],[4,"ngIf"],[1,"pep-spacing-element"],["name","system_must"],[3,"title","class",4,"ngIf"],[3,"title"],["hintTextTemplate",""],["maxCharactersTemplate",""]],template:function(e,i){if(1&e&&(x(0,"div",0),C(1,uH,1,0,"ng-container",1),C(2,pH,3,3,"ng-template",null,2,Me),C(4,vH,3,3,"ng-template",null,3,Me),C(6,wH,2,2,"ng-template",null,4,Me),C(8,DH,2,2,"ng-template",null,5,Me),C(10,xH,6,6,"ng-template",null,6,Me),L()),2&e){const r=Q(3),s=Q(5);w("ngClass",Yo(5,AH,i.disabled,i.multiLine))("ngStyle",ke(8,RH,i.xAlignment)),M(1),w("ngIf","right"==i.xAlignment)("ngIfThen",r)("ngIfElse",s)}},dependencies:[Ir,qi,na,tp,xa,j0,Ua],styles:["[_nghost-%COMP%]{display:grid;width:inherit}.mat-form-title[_ngcontent-%COMP%]:not(.multi-line) .mat-icon{height:100%!important}"]}),n})(),OH=(()=>{class n{constructor(e){this.pepIconRegistry=e,this.pepIconRegistry.registerIcons([oH])}}return n.\u0275fac=function(e){return new(e||n)(v(ja))},n.\u0275mod=me({type:n}),n.\u0275inj=pe({imports:[Zi,Rt,$0,qs,y1]}),n})();const FH=["select"];function kH(n,t){1&n&&Ne(0)}function LH(n,t){1&n&&(x(0,"mat-option",12),ii(1,"translate"),Be(2),ii(3,"translate"),L()),2&n&&(w("title",Wl(1,2,"LIST.NONE")),M(2),Kt(Wl(3,4,"LIST.NONE")))}function NH(n,t){if(1&n&&(x(0,"mat-option",13),Be(1),L()),2&n){const e=t.$implicit;w("value",e.key)("title",e.value),M(1),Kt(e.value)}}const bC=function(n){return{"right-alignment":n}},wC=function(){return{standalone:!0}},zu=function(n){return{field:n}};function PH(n,t){if(1&n){const e=yt();x(0,"mat-form-field",6),W("click",function(){return Ce(e),De(Q(2).open())}),x(1,"mat-select",7,8),W("ngModelChange",function(r){return Ce(e),De(T(2).selectedValueModel=r)})("selectionChange",function(r){return Ce(e),De(T(2).selectionChange(r))})("openedChange",function(r){return Ce(e),De(T(2).openedChange(r))}),C(3,LH,4,6,"mat-option",9),C(4,NH,2,3,"mat-option",10),L(),x(5,"mat-error"),oe(6,"span",11),ii(7,"translate"),ii(8,"translate"),L()()}if(2&n){const e=T(2);rt("dir","right"===e.xAlignment?"rtl":"ltr"),M(1),As("body-sm text-align-",e.xAlignment,""),rt("title",e.fieldFormattedValue),w("required",e.mandatory?e.mandatory:void 0)("id",e.key)("typeaheadDebounceInterval",e.typeaheadDebounceInterval)("ngClass",ke(23,bC,"right"===e.xAlignment))("placeholder",e.disabled||e.readonly?e.placeholderWhenDisabled:e.placeholder)("ngModel",e.selectedValueModel)("ngModelOptions",Ls(25,wC))("disabled",e.disabled),M(2),w("ngIf",e.emptyOption),M(1),w("ngForOf",e.options),M(2),w("title",Dr(7,17,"MESSAGES.ERROR_IS_REQUIRED",ke(26,zu,e.label)))("innerText",Dr(8,20,"MESSAGES.ERROR_IS_REQUIRED",ke(28,zu,e.label)))}}function VH(n,t){if(1&n&&(x(0,"mat-option",13),Be(1),L()),2&n){const e=t.$implicit;w("value",e.key)("title",e.value),M(1),Kt(e.value)}}function BH(n,t){if(1&n){const e=yt();x(0,"mat-form-field",6),W("click",function(){return Ce(e),De(Q(2).open())}),x(1,"mat-select",14,8),W("ngModelChange",function(r){return Ce(e),De(T(2).selectedValuesModel=r)})("openedChange",function(r){return Ce(e),De(T(2).openedChange(r))}),C(3,VH,2,3,"mat-option",10),L(),x(4,"mat-error"),oe(5,"span",11),ii(6,"translate"),ii(7,"translate"),L()()}if(2&n){const e=T(2);rt("dir","right"===e.xAlignment?"rtl":"ltr"),M(1),As("body-sm text-align-",e.xAlignment,""),rt("title",e.fieldFormattedValue),w("required",e.mandatory?e.mandatory:void 0)("id",e.key)("typeaheadDebounceInterval",e.typeaheadDebounceInterval)("ngClass",ke(22,bC,"right"===e.xAlignment))("placeholder",e.disabled||e.readonly?e.placeholderWhenDisabled:e.placeholder)("ngModel",e.selectedValuesModel)("ngModelOptions",Ls(24,wC))("disabled",e.disabled||e.readonly),M(2),w("ngForOf",e.options),M(2),w("title",Dr(6,16,"MESSAGES.ERROR_IS_REQUIRED",ke(25,zu,e.label)))("innerText",Dr(7,19,"MESSAGES.ERROR_IS_REQUIRED",ke(27,zu,e.label)))}}function HH(n,t){if(1&n&&(C(0,kH,1,0,"ng-container",3),C(1,PH,9,30,"ng-template",null,4,Me),C(3,BH,8,29,"ng-template",null,5,Me)),2&n){const e=Q(2),i=Q(4);w("ngIf","multi"==T().type)("ngIfThen",i)("ngIfElse",e)}}function zH(n,t){if(1&n&&oe(0,"pep-field-title",17),2&n){const e=T(2);w("label",e.label)("mandatory",e.mandatory)("disabled",e.disabled)("xAlignment",e.xAlignment)("showTitle",e.showTitle)}}function jH(n,t){1&n&&Ne(0)}function UH(n,t){if(1&n&&(_t(0),C(1,zH,1,5,"pep-field-title",15),C(2,jH,1,0,"ng-container",16),vt()),2&n){const e=T(),i=Q(2);M(1),w("ngIf",!e.parentFieldKey&&e.renderTitle),M(1),w("ngTemplateOutlet",i)}}function $H(n,t){1&n&&Ne(0)}function YH(n,t){1&n&&Ne(0)}const GH=function(n){return{"one-row":n}};function WH(n,t){if(1&n&&(x(0,"div",20),C(1,YH,1,0,"ng-container",16),L()),2&n){const e=T(2),i=Q(2);w("ngClass",ke(2,GH,1===e.rowSpan)),M(1),w("ngTemplateOutlet",i)}}function KH(n,t){if(1&n&&(x(0,"span",25),Be(1),L()),2&n){const e=T(3);rt("title",e.label),M(1),Hn("",e.label,"\xa0")}}function qH(n,t){1&n&&(x(0,"button",26)(1,"mat-icon"),oe(2,"pep-icon",27),L()())}const ZH=function(n,t){return{"one-row":n,"pep-button weak":t}};function XH(n,t){if(1&n){const e=yt();x(0,"div",21),W("click",function(r){Ce(e);const s=T(2);return De(s.disabled?"":s.cardTemplateClicked(r))}),C(1,KH,2,2,"span",22),x(2,"span",23),Be(3),L(),C(4,qH,3,0,"button",24),L()}if(2&n){const e=T(2);sf("text-align-"+e.xAlignment),w("ngClass",Yo(8,ZH,1===e.rowSpan,e.isActive&&!e.disabled)),M(1),w("ngIf",e.showTitle&&""!=e.label),M(1),rt("title",e.fieldFormattedValue),w("id",e.key),M(1),Kt(e.fieldFormattedValue),M(1),w("ngIf",e.isActive&&!e.disabled)}}function QH(n,t){if(1&n&&(_t(0),C(1,$H,1,0,"ng-container",3),C(2,WH,2,4,"ng-template",null,18,Me),C(4,XH,5,11,"ng-template",null,19,Me),vt()),2&n){const e=Q(3),i=Q(5),r=T();M(1),w("ngIf",r.isInEditMode)("ngIfThen",e)("ngIfElse",i)}}function JH(n,t){1&n&&Ne(0)}function ez(n,t){1&n&&Ne(0)}function tz(n,t){1&n&&C(0,ez,1,0,"ng-container",16),2&n&&(T(2),w("ngTemplateOutlet",Q(2)))}const nz=function(n){return{readonly:n}};function iz(n,t){if(1&n&&(x(0,"span",30),Be(1),L()),2&n){const e=T(2);rt("title",e.fieldFormattedValue),w("id",e.key)("ngClass",ke(4,nz,e.disabled)),M(1),Kt(e.fieldFormattedValue)}}function rz(n,t){if(1&n&&(_t(0),C(1,JH,1,0,"ng-container",3),C(2,tz,1,1,"ng-template",null,28,Me),C(4,iz,2,6,"ng-template",null,29,Me),vt()),2&n){const e=Q(3),i=Q(5),r=T();M(1),w("ngIf",r.isActive&&!r.disabled)("ngIfThen",e)("ngIfElse",i)}}let sz=(()=>{class n{constructor(e,i,r,s){this.translate=e,this.customizationService=i,this.renderer=r,this.element=s,this.key="",this._value="",this.label="",this.type="select",this.mandatory=!1,this.disabled=!1,this.readonly=!1,this.xAlignment=Hu,this.rowSpan=1,this._placeholder="",this._placeholderSet=!1,this.placeholderWhenDisabled="",this._autoSortOptions=!0,this._originalOptions=[],this._options=[],this._visible=!0,this._emptyOption=!0,this.controlType="select",this.form=null,this.layoutType="form",this.parentFieldKey=null,this.isActive=!1,this.showTitle=!0,this.renderTitle=!0,this.typeaheadDebounceInterval=1e3,this.addValueToOptionsIfNotExist=!0,this.valueChange=new Y,this.validationChange=new Y,this.standAlone=!1,this.isInEditMode=!1,this.isMulti=!1,this.fieldFormattedValue=""}set value(e){e||(e=""),this._value=e}get value(){return this._value}set placeholder(e){this._placeholder=e,this._placeholderSet=!0}get placeholder(){return this._placeholder}set autoSortOptions(e){void 0!==e&&(this._autoSortOptions=e,this.setOptions())}get autoSortOptions(){return this._autoSortOptions}set options(e){e||(e=[]),this._originalOptions=e,this.setOptions()}get options(){return this._options}set visible(e){this._visible=e,e?this.renderer.removeClass(this.element.nativeElement,"hidden-element"):this.renderer.addClass(this.element.nativeElement,"hidden-element")}get visible(){return this._visible}set emptyOption(e){void 0!==e&&(this._emptyOption=e)}get emptyOption(){return this._emptyOption}setOptions(){this._options=this.autoSortOptions?this.sortOptionsByValue(this._originalOptions):this._originalOptions}sortOptionsByValue(e){return e?.length>0?e.sort((i,r)=>i.value>r.value?1:i.value<r.value?-1:0):[]}addOptionsIfNeeded(){if(this.addValueToOptionsIfNotExist)if(this.isMulti)for(const e of this.selectedValuesModel){let i=!1;this.options&&!this.options.find(r=>r.key===e)&&(i=!0),i&&this.options.push({key:e,value:e})}else this.value&&""!==this.value&&this.options&&!this.options.find(e=>e.key===this.value)&&this.options.push({key:this.value,value:this.value})}setFieldFormattedValue(e){if(this.isMulti)this.fieldFormattedValue=this.selectedValuesModel.length>0?this.selectedValuesModel.map(i=>this.options.find(r=>r.key===i)?.value).join(", "):"";else{const i=this.options.find(r=>r.key===e);this.fieldFormattedValue=i?i.value:""}this.updateFormFieldValue(e)}setDefaultForm(){const e=new qB({key:this.key,value:this.value,mandatory:this.mandatory,readonly:this.readonly,disabled:this.disabled});this.form=this.customizationService.getDefaultFromGroup(e)}ngOnInit(){null===this.form&&(this.standAlone=!0,this.setDefaultForm(),this.renderer.addClass(this.element.nativeElement,f.STAND_ALONE_FIELD_CLASS_NAME),this.renderTitle||this.renderer.addClass(this.element.nativeElement,f.STAND_ALONE_FIELD_NO_SPACING_CLASS_NAME)),this._placeholderSet||this.translate.get("SELECT.HINT").subscribe(e=>{this.placeholder=e}),this.setFieldFormattedValue(this.value)}ngOnChanges(e){this.standAlone&&this.setDefaultForm(),this.isMulti="multi"===this.type,this.isMulti?this.selectedValuesModel=this.value.length>0?this.value.split(";"):[]:this.selectedValueModel=this.value,this.addOptionsIfNeeded(),this.setFieldFormattedValue(this.value)}ngOnDestroy(){}selectionChange(e){this.isMulti||this.changeValue(this.selectedValueModel)}openedChange(e){e||(this.isMulti&&this.changeValue(this.selectedValuesModel.join(";")),this.isInEditMode&&(this.isInEditMode=!1))}updateFormFieldValue(e){if(this.form){if(this.customizationService.updateFormFieldValue(this.form,this.key,this.fieldFormattedValue,this.parentFieldKey),this.mandatory){this.form.controls[this.key].setErrors(e?null:{serverError:"Required"})}this.standAlone&&this.validationChange.emit(!(!this.disabled&&!this.readonly)||this.form.valid)}}changeValue(e){this.setFieldFormattedValue(e),this.valueChange.emit(e)}cardTemplateClicked(e){this.isInEditMode=!0,setTimeout(()=>{this.select.open()},0)}}return n.\u0275fac=function(e){return new(e||n)(_(Ai),_(f),_(ht),_(se))},n.\u0275cmp=Ft({type:n,selectors:[["pep-select"]],viewQuery:function(e,i){if(1&e&&ri(FH,5),2&e){let r;He(r=ze())&&(i.select=r.first)}},inputs:{key:"key",value:"value",label:"label",type:"type",mandatory:"mandatory",disabled:"disabled",readonly:"readonly",xAlignment:"xAlignment",rowSpan:"rowSpan",placeholder:"placeholder",placeholderWhenDisabled:"placeholderWhenDisabled",autoSortOptions:"autoSortOptions",options:"options",visible:"visible",emptyOption:"emptyOption",form:"form",layoutType:"layoutType",parentFieldKey:"parentFieldKey",isActive:"isActive",showTitle:"showTitle",renderTitle:"renderTitle",typeaheadDebounceInterval:"typeaheadDebounceInterval",addValueToOptionsIfNotExist:"addValueToOptionsIfNotExist"},outputs:{valueChange:"valueChange",validationChange:"validationChange"},features:[Ct],decls:6,vars:4,consts:[[3,"formGroup"],["pepTemplate",""],[4,"ngIf"],[4,"ngIf","ngIfThen","ngIfElse"],["regularSelectBlock",""],["multiSelectBlock",""],["appearance","outline",3,"dir","click"],["disableOptionCentering","",3,"required","id","typeaheadDebounceInterval","ngClass","placeholder","ngModel","ngModelOptions","disabled","title","ngModelChange","selectionChange","openedChange"],["select",""],["value","",3,"title",4,"ngIf"],[3,"value","title",4,"ngFor","ngForOf"],[1,"body-xs",3,"title","innerText"],["value","",3,"title"],[3,"value","title"],["multiple","","disableOptionCentering","",3,"required","id","typeaheadDebounceInterval","ngClass","placeholder","ngModel","ngModelOptions","disabled","title","ngModelChange","openedChange"],[3,"label","mandatory","disabled","xAlignment","showTitle",4,"ngIf"],[4,"ngTemplateOutlet"],[3,"label","mandatory","disabled","xAlignment","showTitle"],["editBlock",""],["readOnlyBlock",""],[3,"ngClass"],[1,"pep-card-input","card-flex-container",3,"ngClass","click"],["class","body-xs title",3,"title",4,"ngIf"],[1,"body-sm","value",3,"id","title"],["class","pep-button weak card-edit-button","mat-button","",4,"ngIf"],[1,"body-xs","title",3,"title"],["mat-button","",1,"pep-button","weak","card-edit-button"],["name","system_edit"],["selectedBlock",""],["notSelectedBlock",""],[1,"body-sm","pep-report-input",3,"id","ngClass","title"]],template:function(e,i){1&e&&(_t(0,0),C(1,HH,5,3,"ng-template",null,1,Me),C(3,UH,3,2,"ng-container",2),C(4,QH,6,3,"ng-container",2),C(5,rz,6,3,"ng-container",2),vt()),2&e&&(w("formGroup",i.form),M(3),w("ngIf","form"===i.layoutType),M(1),w("ngIf","card"===i.layoutType),M(1),w("ngIf","table"===i.layoutType))},dependencies:[Ir,Z2,qi,na,Up,$p,nu,Jp,Fr,JF,yu,HE,YE,bN,LE,xa,Ua,yC,I3],styles:["[_nghost-%COMP%]{height:inherit;display:grid}[_nghost-%COMP%] > *[_ngcontent-%COMP%]{align-self:center} .mat-select-trigger{display:flex;align-content:center;height:inherit} .mat-select-trigger .mat-select-placeholder{text-overflow:ellipsis;overflow:hidden;white-space:nowrap} .mat-select-trigger .mat-select-arrow-wrapper{margin-inline-start:var(--pep-spacing-sm, .5rem)} .mat-select-value{max-width:inherit;display:grid;align-self:center} .mat-select-arrow{width:1.5rem;height:1.5rem;margin:0;display:flex;align-items:center;justify-content:center} .mat-select-arrow:after{content:url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiIHN0YW5kYWxvbmU9Im5vIj8+CjxzdmcKICAgeG1sbnM6ZGM9Imh0dHA6Ly9wdXJsLm9yZy9kYy9lbGVtZW50cy8xLjEvIgogICB4bWxuczpjYz0iaHR0cDovL2NyZWF0aXZlY29tbW9ucy5vcmcvbnMjIgogICB4bWxuczpyZGY9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkvMDIvMjItcmRmLXN5bnRheC1ucyMiCiAgIHhtbG5zOnN2Zz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciCiAgIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIKICAgaWQ9InN2ZzQiCiAgIHZlcnNpb249IjEuMSIKICAgdmlld0JveD0iMCAwIDI0IDI0IgogICBoZWlnaHQ9IjE2IgogICB3aWR0aD0iMTYiPgogIDxtZXRhZGF0YQogICAgIGlkPSJtZXRhZGF0YTEwIj4KICAgIDxyZGY6UkRGPgogICAgICA8Y2M6V29yawogICAgICAgICByZGY6YWJvdXQ9IiI+CiAgICAgICAgPGRjOmZvcm1hdD5pbWFnZS9zdmcreG1sPC9kYzpmb3JtYXQ+CiAgICAgICAgPGRjOnR5cGUKICAgICAgICAgICByZGY6cmVzb3VyY2U9Imh0dHA6Ly9wdXJsLm9yZy9kYy9kY21pdHlwZS9TdGlsbEltYWdlIiAvPgogICAgICA8L2NjOldvcms+CiAgICA8L3JkZjpSREY+CiAgPC9tZXRhZGF0YT4KICA8ZGVmcwogICAgIGlkPSJkZWZzOCIgLz4KICA8cGF0aAogICAgIGlkPSJwYXRoMiIKICAgICBkPSJNNS44MDAzMjE0OCw5LjI4Njc0MzU0IEwxMS4yNTQyODI0LDEzLjIwMjc1ODMgQzExLjY2NjEzMDksMTMuNTg1MDgzIDEyLjMzMzg2OTEsMTMuNTg1MDgzIDEyLjc0NTcxNzYsMTMuMjAyNzU4MyBMMTguMTk5Njc4NSw5LjI4Njc0MzU0IEMxOC42MTE1MjcsOC45MDQ0MTg4MiAxOS4yNzkyNjUyLDguOTA0NDE4ODIgMTkuNjkxMTEzNyw5LjI4Njc0MzU0IEMyMC4xMDI5NjIxLDkuNjY5MDY4MjYgMjAuMTAyOTYyMSwxMC4yODg5MzkxIDE5LjY5MTExMzcsMTAuNjcxMjYzOCBMMTMuNDkxNDM1MSwxNi40MjY1MTI5IEMxMi42Njc3MzgzLDE3LjE5MTE2MjQgMTEuMzMyMjYxNywxNy4xOTExNjI0IDEwLjUwODU2NDksMTYuNDI2NTEyOSBMNC4zMDg4ODYzMywxMC42NzEyNjM4IEMzLjg5NzAzNzg5LDEwLjI4ODkzOTEgMy44OTcwMzc4OSw5LjY2OTA2ODI2IDQuMzA4ODg2MzMsOS4yODY3NDM1NCBDNC43MjA3MzQ3OCw4LjkwNDQxODgyIDUuMzg4NDczMDMsOC45MDQ0MTg4MiA1LjgwMDMyMTQ4LDkuMjg2NzQzNTQgWiIKICAgICBmaWxsLXJ1bGU9ImV2ZW5vZGQiCiAgICAgZmlsbC1vcGFjaXR5PSIuNSIgLz4KPC9zdmc+Cg==);cursor:pointer;width:1rem;height:1rem;display:flex;flex-direction:column;justify-content:center;padding-top:4px} .mat-select-disabled{pointer-events:none} .mat-select-disabled .mat-select-arrow:after{content:none} .mat-select-panel .mat-pseudo-checkbox{width:1rem;height:1rem;border-radius:.25rem} .mat-select-panel .mat-pseudo-checkbox:after{width:0;height:0} .mat-select-panel .mat-pseudo-checkbox.mat-pseudo-checkbox-checked{content:url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyNCAyNCI+CiAgICA8cGF0aCBmaWxsLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik0xNy41MTExNjM5LDcuMDAwNjI5NjggQzE3LjEzNTI3Myw3LjAxMDk5Mjg1IDE2Ljc3OTE1ODIsNy4xNjgzMTkwOSAxNi41MTYzMjg4LDcuNDM3NzU0MjEgQzE0LjIyNjEzMzksOS43MzI2NTE5MiAxMi4xMzU2Nzc4LDExLjk4MjQwMjIgOS45MzY5MTEzNSwxNC4yMjgxOTczIEw3LjM1MTc4NzA4LDEyLjE1NTYxMiBDNy4wNTIyMDMwMywxMS45MTUzODI5IDYuNjY5NzI4MTIsMTEuODA0MjI0MiA2LjI4ODE2OTY2LDExLjg0NjYyMjMgQzUuOTA1Njk0NzUsMTEuODg5MDE1NSA1LjU1NzEyODY0LDEyLjA4MTIwMDggNS4zMTY4OTcwNiwxMi4zODE3MzUxIEM1LjA3NzYwODQ2LDEyLjY4MTMxOTEgNC45NjY0NDk4MSwxMy4wNjM3OTQgNS4wMDg4NDc4NywxMy40NDUzNTI1IEM1LjA1MTI0MTExLDEzLjgyNzgyNzQgNS4yNDM0MjYzOCwxNC4xNzYzOTM1IDUuNTQyOTk1OTUsMTQuNDE2NjI1MSBMOS4xNjA1NzgyLDE3LjMxMDY5MDkgQzkuNzM5MDA1NDksMTcuNzcwNDEzMiAxMC41Njk5NCwxNy43MjIzNzE3IDExLjA4OTk1NTQsMTcuMTk3NjQxNCBDMTMuNjkxOTYxNywxNC41OTAwODgxIDE2LjAyMzYxNDEsMTIuMDI4MzU3NiAxOC41NjYyOTIxLDkuNDgwMTMyNjIgQzE4Ljk5MTE2NSw5LjA2Mjc4NDIxIDE5LjExNzQxODcsOC40Mjc4MjYxOCAxOC44ODQ3MTE2LDcuODgwNDg1OTggQzE4LjY1MTA3NjEsNy4zMzIyMDUyMSAxOC4xMDY1NDU2LDYuOTgzNjE0OTkgMTcuNTExMTYzOSw3LjAwMDU5MzUxIEwxNy41MTExNjM5LDcuMDAwNjI5NjggWiIvPgogIDwvc3ZnPg==)}.right-alignment[_ngcontent-%COMP%]{direction:rtl}","mat-select[_ngcontent-%COMP%]{outline:none} .mat-select-disabled .mat-select-value{color:hsla(var(--pep-color-system-primary-h, 0),var(--pep-color-system-primary-s, 0%),var(--pep-color-system-primary-l, 10%),.7)} .mat-select-arrow-wrapper{transform:unset!important;vertical-align:middle} .mat-select-arrow-wrapper .mat-select-arrow{border:0} .mat-select-arrow-wrapper .mat-select-arrow:after{color:hsl(var(--pep-color-system-primary-h, 0),var(--pep-color-system-primary-s, 0%),var(--pep-color-system-primary-l, 10%))} .mat-select-panel .mat-option{background:hsl(var(--pep-color-system-primary-invert-h, 255),var(--pep-color-system-primary-invert-s, 100%),var(--pep-color-system-primary-invert-l, 100%))} .mat-select-panel .mat-option:hover{background:hsla(var(--pep-color-weak-h, 0),var(--pep-color-weak-s, 0%),var(--pep-color-weak-l, 10%),.16)} .mat-select-panel .mat-option:active{box-shadow:var(--pep-shadow-xs-offset, 0 .125rem .25rem 0) hsla(var(--pep-color-system-primary-h, 0),var(--pep-color-system-primary-s, 0%),var(--pep-color-system-primary-l, 10%),.08);background:hsla(var(--pep-color-weak-h, 0),var(--pep-color-weak-s, 0%),var(--pep-color-weak-l, 10%),.24)!important} .mat-select-panel .mat-option:active:not(.keep-background-on-focus){background:hsl(var(--pep-color-system-primary-invert-h, 255),var(--pep-color-system-primary-invert-s, 100%),var(--pep-color-system-primary-invert-l, 100%))} .mat-select-panel .mat-option:disabled{box-shadow:unset;border:unset} .mat-select-panel .mat-option:disabled:after{border:unset} .mat-select-panel .mat-option:disabled .svg-icon{fill:hsla(var(--pep-color-system-primary-h, 0),var(--pep-color-system-primary-s, 0%),var(--pep-color-system-primary-l, 10%),.35)} .mat-select-panel .mat-option:disabled .svg-icon.stroke{fill:unset;stroke:hsla(var(--pep-color-system-primary-h, 0),var(--pep-color-system-primary-s, 0%),var(--pep-color-system-primary-l, 10%),.35)} .mat-select-panel .mat-option:disabled:not(.disabled-no-background-no-color){color:hsla(var(--pep-color-system-primary-h, 0),var(--pep-color-system-primary-s, 0%),var(--pep-color-system-primary-l, 10%),.35)!important;background:hsla(var(--pep-color-weak-h, 0),var(--pep-color-weak-s, 0%),var(--pep-color-weak-l, 10%),.04)!important} .mat-select-panel .mat-option.mat-selected{background:hsla(var(--pep-color-weak-h, 0),var(--pep-color-weak-s, 0%),var(--pep-color-weak-l, 10%),.08)} .mat-select-panel .mat-option.mat-selected:hover{background:hsla(var(--pep-color-weak-h, 0),var(--pep-color-weak-s, 0%),var(--pep-color-weak-l, 10%),.16)} .mat-select-panel .mat-option.mat-selected:active{box-shadow:var(--pep-shadow-xs-offset, 0 .125rem .25rem 0) hsla(var(--pep-color-system-primary-h, 0),var(--pep-color-system-primary-s, 0%),var(--pep-color-system-primary-l, 10%),.08);background:hsla(var(--pep-color-weak-h, 0),var(--pep-color-weak-s, 0%),var(--pep-color-weak-l, 10%),.24)!important} .mat-select-panel .mat-option.mat-selected:active:not(.keep-background-on-focus){background:hsl(var(--pep-color-system-primary-invert-h, 255),var(--pep-color-system-primary-invert-s, 100%),var(--pep-color-system-primary-invert-l, 100%))} .mat-select-panel .mat-option.mat-selected:disabled{box-shadow:unset;border:unset} .mat-select-panel .mat-option.mat-selected:disabled:after{border:unset} .mat-select-panel .mat-option.mat-selected:disabled .svg-icon{fill:hsla(var(--pep-color-system-primary-h, 0),var(--pep-color-system-primary-s, 0%),var(--pep-color-system-primary-l, 10%),.35)} .mat-select-panel .mat-option.mat-selected:disabled .svg-icon.stroke{fill:unset;stroke:hsla(var(--pep-color-system-primary-h, 0),var(--pep-color-system-primary-s, 0%),var(--pep-color-system-primary-l, 10%),.35)} .mat-select-panel .mat-option.mat-selected:disabled:not(.disabled-no-background-no-color){color:hsla(var(--pep-color-system-primary-h, 0),var(--pep-color-system-primary-s, 0%),var(--pep-color-system-primary-l, 10%),.35)!important;background:hsla(var(--pep-color-weak-h, 0),var(--pep-color-weak-s, 0%),var(--pep-color-weak-l, 10%),.04)!important} .mat-select-panel .mat-pseudo-checkbox{background:hsl(var(--pep-color-regular-h, 0),var(--pep-color-regular-s, 0%),98%);box-shadow:var(--pep-shadow-xs-offset, 0 .125rem .25rem 0) hsla(var(--pep-color-system-primary-h, 0),var(--pep-color-system-primary-s, 0%),var(--pep-color-system-primary-l, 10%),.08);border:1px solid hsl(var(--pep-color-regular-h, 0),var(--pep-color-regular-s, 0%),calc(var(--pep-color-regular-l, 10%) + 30%))} .mat-select-panel .mat-pseudo-checkbox:hover{background:hsl(var(--pep-color-regular-h, 0),var(--pep-color-regular-s, 0%),98%);box-shadow:var(--pep-shadow-xs-offset, 0 .125rem .25rem 0) hsla(var(--pep-color-system-primary-h, 0),var(--pep-color-system-primary-s, 0%),var(--pep-color-system-primary-l, 10%),.16);border:1px solid hsl(var(--pep-color-regular-h, 0),var(--pep-color-regular-s, 0%),calc(var(--pep-color-regular-l, 10%) + 20%))} .mat-select-panel .mat-pseudo-checkbox:active{background:hsl(var(--pep-color-regular-h, 0),var(--pep-color-regular-s, 0%),88%);box-shadow:var(--pep-shadow-xs-offset, 0 .125rem .25rem 0) hsla(var(--pep-color-system-primary-h, 0),var(--pep-color-system-primary-s, 0%),var(--pep-color-system-primary-l, 10%),.32);border:1px solid hsl(var(--pep-color-regular-h, 0),var(--pep-color-regular-s, 0%),var(--pep-color-regular-l, 10%))} .mat-select-panel .mat-pseudo-checkbox:disabled{box-shadow:unset;border:unset;box-shadow:var(--pep-shadow-xs-offset, 0 .125rem .25rem 0) hsla(var(--pep-color-system-primary-h, 0),var(--pep-color-system-primary-s, 0%),var(--pep-color-system-primary-l, 10%),.04)!important;border:1px solid hsla(var(--pep-color-regular-h, 0),var(--pep-color-regular-s, 0%),var(--pep-color-regular-l, 10%),.08)} .mat-select-panel .mat-pseudo-checkbox:disabled:after{border:unset} .mat-select-panel .mat-pseudo-checkbox:disabled .svg-icon{fill:hsla(var(--pep-color-system-primary-h, 0),var(--pep-color-system-primary-s, 0%),var(--pep-color-system-primary-l, 10%),.35)} .mat-select-panel .mat-pseudo-checkbox:disabled .svg-icon.stroke{fill:unset;stroke:hsla(var(--pep-color-system-primary-h, 0),var(--pep-color-system-primary-s, 0%),var(--pep-color-system-primary-l, 10%),.35)} .mat-select-panel .mat-pseudo-checkbox:disabled:not(.disabled-no-background-no-color){color:hsla(var(--pep-color-system-primary-h, 0),var(--pep-color-system-primary-s, 0%),var(--pep-color-system-primary-l, 10%),.35)!important;background:hsl(var(--pep-color-regular-h, 0),var(--pep-color-regular-s, 0%),88%)!important} .mat-select-panel .mat-pseudo-checkbox.mat-pseudo-checkbox-checked, .mat-select-panel .mat-pseudo-checkbox.mat-pseudo-checkbox-indeterminate{background:hsl(var(--pep-color-regular-h, 0),var(--pep-color-regular-s, 0%),98%);box-shadow:var(--pep-shadow-xs-offset, 0 .125rem .25rem 0) hsla(var(--pep-color-system-primary-h, 0),var(--pep-color-system-primary-s, 0%),var(--pep-color-system-primary-l, 10%),.08);border:1px solid hsl(var(--pep-color-regular-h, 0),var(--pep-color-regular-s, 0%),calc(var(--pep-color-regular-l, 10%) + 30%));border:1px solid hsl(var(--pep-color-system-primary-h, 0),var(--pep-color-system-primary-s, 0%),calc(var(--pep-color-system-primary-l, 10%) + 20%))} .mat-select-panel .mat-pseudo-checkbox.mat-pseudo-checkbox-checked:hover, .mat-select-panel .mat-pseudo-checkbox.mat-pseudo-checkbox-indeterminate:hover{background:hsl(var(--pep-color-regular-h, 0),var(--pep-color-regular-s, 0%),98%);box-shadow:var(--pep-shadow-xs-offset, 0 .125rem .25rem 0) hsla(var(--pep-color-system-primary-h, 0),var(--pep-color-system-primary-s, 0%),var(--pep-color-system-primary-l, 10%),.16);border:1px solid hsl(var(--pep-color-regular-h, 0),var(--pep-color-regular-s, 0%),calc(var(--pep-color-regular-l, 10%) + 20%))} .mat-select-panel .mat-pseudo-checkbox.mat-pseudo-checkbox-checked:active, .mat-select-panel .mat-pseudo-checkbox.mat-pseudo-checkbox-indeterminate:active{background:hsl(var(--pep-color-regular-h, 0),var(--pep-color-regular-s, 0%),88%);box-shadow:var(--pep-shadow-xs-offset, 0 .125rem .25rem 0) hsla(var(--pep-color-system-primary-h, 0),var(--pep-color-system-primary-s, 0%),var(--pep-color-system-primary-l, 10%),.32);border:1px solid hsl(var(--pep-color-regular-h, 0),var(--pep-color-regular-s, 0%),var(--pep-color-regular-l, 10%))} .mat-select-panel .mat-pseudo-checkbox.mat-pseudo-checkbox-checked:disabled, .mat-select-panel .mat-pseudo-checkbox.mat-pseudo-checkbox-indeterminate:disabled{box-shadow:unset;border:unset;box-shadow:var(--pep-shadow-xs-offset, 0 .125rem .25rem 0) hsla(var(--pep-color-system-primary-h, 0),var(--pep-color-system-primary-s, 0%),var(--pep-color-system-primary-l, 10%),.04)!important;border:1px solid hsla(var(--pep-color-regular-h, 0),var(--pep-color-regular-s, 0%),var(--pep-color-regular-l, 10%),.08)} .mat-select-panel .mat-pseudo-checkbox.mat-pseudo-checkbox-checked:disabled:after, .mat-select-panel .mat-pseudo-checkbox.mat-pseudo-checkbox-indeterminate:disabled:after{border:unset} .mat-select-panel .mat-pseudo-checkbox.mat-pseudo-checkbox-checked:disabled .svg-icon, .mat-select-panel .mat-pseudo-checkbox.mat-pseudo-checkbox-indeterminate:disabled .svg-icon{fill:hsla(var(--pep-color-system-primary-h, 0),var(--pep-color-system-primary-s, 0%),var(--pep-color-system-primary-l, 10%),.35)} .mat-select-panel .mat-pseudo-checkbox.mat-pseudo-checkbox-checked:disabled .svg-icon.stroke, .mat-select-panel .mat-pseudo-checkbox.mat-pseudo-checkbox-indeterminate:disabled .svg-icon.stroke{fill:unset;stroke:hsla(var(--pep-color-system-primary-h, 0),var(--pep-color-system-primary-s, 0%),var(--pep-color-system-primary-l, 10%),.35)} .mat-select-panel .mat-pseudo-checkbox.mat-pseudo-checkbox-checked:disabled:not(.disabled-no-background-no-color), .mat-select-panel .mat-pseudo-checkbox.mat-pseudo-checkbox-indeterminate:disabled:not(.disabled-no-background-no-color){color:hsla(var(--pep-color-system-primary-h, 0),var(--pep-color-system-primary-s, 0%),var(--pep-color-system-primary-l, 10%),.35)!important;background:hsl(var(--pep-color-regular-h, 0),var(--pep-color-regular-s, 0%),88%)!important} .mat-select-panel .mat-pseudo-checkbox:after{color:hsl(var(--pep-color-system-primary-h, 0),var(--pep-color-system-primary-s, 0%),var(--pep-color-system-primary-l, 10%))!important}"],changeDetection:0}),n})();class oz{constructor(t){Object.assign(this,t)}}function az(n,t){1&n&&Ne(0)}const EC=function(n){return{"pull-left flip":n}};function lz(n,t){if(1&n&&(x(0,"mat-icon",5),oe(1,"pep-icon",6),L()),2&n){const e=T(2);w("ngClass",ke(2,EC,e.value)),M(1),rt("name",e.iconName)}}const cz=function(n,t){return{"button-title-with-icon":n,"icon-before":t}};function uz(n,t){if(1&n&&(x(0,"span",7),Be(1),L()),2&n){const e=T(2);w("ngClass",Yo(3,cz,e.iconName,"start"===e.iconPosition))("title",e.value),M(1),Hn(" ",e.value," ")}}function dz(n,t){if(1&n&&(x(0,"mat-icon",5),oe(1,"pep-icon",6),L()),2&n){const e=T(2);w("ngClass",ke(2,EC,e.value)),M(1),rt("name",e.iconName)}}function hz(n,t){if(1&n&&(C(0,lz,2,4,"mat-icon",3),C(1,uz,2,6,"span",4),C(2,dz,2,4,"mat-icon",3)),2&n){const e=T();w("ngIf",e.iconName&&"start"===e.iconPosition),M(1),w("ngIf",e.value),M(1),w("ngIf",e.iconName&&"end"===e.iconPosition)}}const fz=function(n){return{"icon-button":n}};let pz=(()=>{class n{constructor(e,i){this.renderer=e,this.element=i,this.styleType="weak",this.styleStateType="system",this.sizeType="md",this.classNames="",this.disabled=!1,this.iconPosition="end",this._visible=!0,this.buttonClick=new Y}set visible(e){void 0!==e&&(this._visible=!!e,e?this.renderer.removeClass(this.element.nativeElement,"hidden-element"):this.renderer.addClass(this.element.nativeElement,"hidden-element"))}get visible(){return this._visible}ngOnDestroy(){}onButtonClicked(e){const r={source:new oz({key:this.key,value:this.value}),event:e};this.buttonClick.emit(r)}}return n.\u0275fac=function(e){return new(e||n)(_(ht),_(se))},n.\u0275cmp=Ft({type:n,selectors:[["pep-button"]],inputs:{key:"key",value:"value",styleType:"styleType",styleStateType:"styleStateType",sizeType:"sizeType",classNames:"classNames",disabled:"disabled",iconName:"iconName",iconPosition:"iconPosition",visible:"visible"},outputs:{buttonClick:"buttonClick"},decls:4,vars:12,consts:[["mat-button","",3,"pepDataQa","ngClass","disabled","click"],[4,"ngTemplateOutlet"],["contentTemplate",""],[3,"ngClass",4,"ngIf"],["class","ellipsis pull-left flip",3,"ngClass","title",4,"ngIf"],[3,"ngClass"],[3,"name"],[1,"ellipsis","pull-left","flip",3,"ngClass","title"]],template:function(e,i){if(1&e&&(x(0,"button",0),W("click",function(s){return i.onButtonClicked(s)}),C(1,az,1,0,"ng-container",1),L(),C(2,hz,3,3,"ng-template",null,2,Me)),2&e){const r=Q(3);(function Bv(n,t,e,i,r,s,o,a,l){Bn(on,ni,Ds(D(),n,t,e,i,r,s,o,a,l),!0)})("pep-button ",i.sizeType," ",i.styleType," ",i.styleStateType," ",i.classNames,""),w("pepDataQa",i.key?i.key:i.value)("ngClass",ke(10,fz,i.iconName&&!i.value))("disabled",i.disabled),M(1),w("ngTemplateOutlet",r)}},dependencies:[Ir,qi,na,yu,xa,lC,Ua],styles:["[_nghost-%COMP%]{display:grid}"]}),n})();function gz(n,t){1&n&&(x(0,"mat-icon",3),oe(1,"pep-icon",4),L())}function mz(n,t){1&n&&(x(0,"mat-icon",3),oe(1,"pep-icon",5),L())}function _z(n,t){1&n&&(x(0,"mat-icon",3),oe(1,"pep-icon",6),L())}function vz(n,t){1&n&&(x(0,"mat-icon",3),oe(1,"pep-icon",7),L())}const b1=function(n){return{disabled:n}};function yz(n,t){if(1&n){const e=yt();x(0,"button",8),W("click",function(){return Ce(e),De(T().iconButtonClicked())}),x(1,"mat-icon"),oe(2,"pep-icon",9),L()()}if(2&n){const e=T();w("disabled",0===e.value.length)("ngClass",ke(2,b1,0===e.value.length))}}function bz(n,t){if(1&n){const e=yt();x(0,"button",8),W("click",function(){return Ce(e),De(T().iconButtonClicked())}),x(1,"mat-icon"),oe(2,"pep-icon",10),L()()}if(2&n){const e=T();w("disabled",0===e.value.length)("ngClass",ke(2,b1,0===e.value.length))}}function wz(n,t){if(1&n){const e=yt();x(0,"button",8),W("click",function(){return Ce(e),De(T().iconButtonClicked())}),x(1,"mat-icon"),oe(2,"pep-icon",11),L()()}if(2&n){const e=T();w("disabled",0===e.value.length)("ngClass",ke(2,b1,0===e.value.length))}}function Ez(n,t){if(1&n){const e=yt();x(0,"button",12),W("click",function(){return Ce(e),De(T().iconButtonClicked())}),x(1,"mat-icon"),oe(2,"pep-icon",13),L()()}}function Cz(n,t){if(1&n){const e=yt();x(0,"button",12),W("click",function(){return Ce(e),De(T().iconButtonClicked())}),x(1,"mat-icon"),oe(2,"pep-icon",14),L()()}if(2&n){const e=T();M(2),rt("name",e.disabled?"system_full_screen":"system_edit")}}function Dz(n,t){if(1&n){const e=yt();x(0,"button",12),W("click",function(){return Ce(e),De(T().iconButtonClicked())}),x(1,"mat-icon"),oe(2,"pep-icon",15),L()()}}function Mz(n,t){if(1&n){const e=yt();x(0,"button",12),W("click",function(){return Ce(e),De(T().iconButtonClicked())}),x(1,"mat-icon"),oe(2,"pep-icon",16),L()()}}let Sz=(()=>{class n{constructor(){this.test=!0,this.iconClick=new Y}iconButtonClicked(){const e=this.value;if(e&&e.toString().trim().length>0)switch(this.type){case"email":window.open("mailto:"+e,"email");break;case"phone":window.open("tel:"+e,"tel");break;case"link":window.open(e)}this.iconClick.emit()}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=Ft({type:n,selectors:[["pep-textbox-icon"]],inputs:{value:"value",label:"label",type:"type",disabled:"disabled"},outputs:{iconClick:"iconClick"},decls:11,vars:11,consts:[["class","pep-text-icon",4,"ngIf"],["class","pep-button md regular","mat-button","",3,"disabled","ngClass","click",4,"ngIf"],["class","pep-button md regular","mat-button","",3,"click",4,"ngIf"],[1,"pep-text-icon"],["name","number_coins"],["name","number_percent"],["name","number_number"],["name","number_decimal"],["mat-button","",1,"pep-button","md","regular",3,"disabled","ngClass","click"],["name","system_phone"],["name","system_email"],["name","system_link"],["mat-button","",1,"pep-button","md","regular",3,"click"],["name","system_full_screen"],[3,"name"],["name","time_datetime"],["name","time_cal"]],template:function(e,i){1&e&&(C(0,gz,2,0,"mat-icon",0),C(1,mz,2,0,"mat-icon",0),C(2,_z,2,0,"mat-icon",0),C(3,vz,2,0,"mat-icon",0),C(4,yz,3,4,"button",1),C(5,bz,3,4,"button",1),C(6,wz,3,4,"button",1),C(7,Ez,3,0,"button",2),C(8,Cz,3,1,"button",2),C(9,Dz,3,0,"button",2),C(10,Mz,3,0,"button",2)),2&e&&(w("ngIf","currency"===i.type),M(1),w("ngIf","percentage"===i.type),M(1),w("ngIf","int"===i.type),M(1),w("ngIf","real"===i.type),M(1),w("ngIf","phone"===i.type),M(1),w("ngIf","email"===i.type),M(1),w("ngIf","link"===i.type),M(1),w("ngIf","textarea"===i.type),M(1),w("ngIf","richhtmltextarea"===i.type),M(1),w("ngIf",!i.disabled&&"datetime"===i.type),M(1),w("ngIf",!i.disabled&&"date"===i.type))},dependencies:[Ir,qi,yu,xa,Ua],styles:["[_nghost-%COMP%]{display:flex}"]}),n})(),Tz=(()=>{class n{constructor(e){this.pepIconRegistry=e,this.pepIconRegistry.registerIcons([JB,nH,tH,eH,aH,iH,sH,rH,_C,cH,lH])}}return n.\u0275fac=function(e){return new(e||n)(v(ja))},n.\u0275mod=me({type:n}),n.\u0275inj=pe({imports:[Zi,Rt,ZE,qs,$0,y1]}),n})();const Iz=["input"];function xz(n,t){if(1&n&&oe(0,"pep-field-title",10),2&n){T();const e=Q(3),i=T();w("label",i.label)("mandatory",i.mandatory)("disabled",i.disabled)("maxFieldCharacters",i.maxFieldCharacters)("hint",i.hint)("xAlignment",i.xAlignment)("showTitle",i.showTitle)("inputLength",null==e.value?null:e.value.length)}}function Az(n,t){if(1&n){const e=yt();x(0,"span",11)(1,"a",12),W("click",function(){return Ce(e),De(T(2).anchorClicked())}),Be(2),L()()}if(2&n){const e=T(2);M(1),w("id",e.key)("name",e.key),M(1),Hn(" ",e.formattedValue,"")}}function Rz(n,t){1&n&&Ne(0)}const CC=function(n){return{field:n}};function Oz(n,t){if(1&n&&(oe(0,"span",16),ii(1,"translate"),ii(2,"translate")),2&n){const e=T(3);w("title",Dr(1,2,"MESSAGES.ERROR_IS_REQUIRED",ke(8,CC,e.label)))("innerText",Dr(2,5,"MESSAGES.ERROR_IS_REQUIRED",ke(10,CC,e.label)))}}function Fz(n,t){}function kz(n,t){1&n&&C(0,Fz,0,0,"ng-template")}function Lz(n,t){if(1&n&&(x(0,"span",19),Be(1),L()),2&n){const e=T(4);M(1),Hn(" ",e.regexError," ")}}function Nz(n,t){if(1&n&&oe(0,"span",20,21),2&n){const e=Q(1);T(3);const i=Q(3);w("innerText",T().getOtherErrorMessage(i.value))("title",e.innerText)}}function Pz(n,t){if(1&n&&(C(0,kz,1,0,null,13),C(1,Lz,2,1,"ng-template",null,17,Me),C(3,Nz,2,2,"ng-template",null,18,Me)),2&n){const e=Q(2),i=Q(4),r=T(3);let s;w("ngIf",r.regex&&(null==r.form||null==(s=r.form.get(r.key))||null==s.errors?null:s.errors.pattern))("ngIfThen",e)("ngIfElse",i)}}function Vz(n,t){if(1&n&&(x(0,"mat-error"),C(1,Rz,1,0,"ng-container",13),C(2,Oz,3,12,"ng-template",null,14,Me),C(4,Pz,5,3,"ng-template",null,15,Me),L()),2&n){const e=Q(3),i=Q(5);T();const r=Q(3),s=T();M(1),w("ngIf",s.mandatory&&0==r.value.length)("ngIfThen",e)("ngIfElse",i)}}function Bz(n,t){if(1&n&&oe(0,"pep-textbox-icon",22),2&n){const e=T(2);w("value",e.value)("label",e.label)("type",e.type)("disabled",e.disabled)}}function Hz(n,t){if(1&n&&oe(0,"pep-textbox-icon",23),2&n){const e=T(2);w("value",e.value)("label",e.label)("type",e.type)("disabled",e.disabled)}}const zz=function(n,t){return{color:n,"text-align":t}},jz=function(n){return{"disable-hidden":n}};function Uz(n,t){if(1&n){const e=yt();C(0,xz,1,8,"pep-field-title",3),x(1,"mat-form-field",4)(2,"input",5,6),W("keyup.enter",function(r){return null==r||null==r.currentTarget?null:r.currentTarget.blur()})("focus",function(r){return Ce(e),De(T().onFocus(r))})("blur",function(r){return Ce(e),De(T().onBlur(r))})("change",function(r){return Ce(e),De(T().onChange(r))})("keyup",function(r){return Ce(e),De(T().onKeyup(r))}),ii(4,"async"),L(),C(5,Az,3,3,"span",7),C(6,Vz,6,3,"mat-error",2),C(7,Bz,1,4,"pep-textbox-icon",8),C(8,Hz,1,4,"pep-textbox-icon",9),L()}if(2&n){const e=t.isFormView,i=t.hasParent,r=T();w("ngIf",r.renderTitle&&e&&!i),M(2),rt("maxlength",r.maxFieldCharacters>0?r.maxFieldCharacters:99999),rt("title",r.formattedValue),w("formControlName",r.key)("id",r.key)("name",r.key)("placeholder",i&&!r.disabled?r.placeholder:"")("ngStyle",Yo(17,zz,r.textColor,"center"==r.xAlignment?"center":"right"==r.xAlignment?"right":"left"))("type",r.type)("value",Wl(4,15,r.displayValue$))("ngClass",ke(20,jz,r.disabled&&(null==r.formattedValue?null:r.formattedValue.length)>0&&("phone"===r.type||"email"===r.type||"link"===r.type))),M(3),w("ngIf",r.disabled&&(null==r.formattedValue?null:r.formattedValue.length)>0&&("phone"===r.type||"email"===r.type||"link"===r.type)),M(1),w("ngIf",r.renderError),M(1),w("ngIf",r.renderSymbol&&e&&"right"==r.xAlignment),M(1),w("ngIf",r.renderSymbol&&e&&"left"==r.xAlignment)}}function $z(n,t){1&n&&Ne(0)}function Yz(n,t){1&n&&Ne(0)}const Gz=function(){return{isFormView:!0,hasParent:!1}};function Wz(n,t){1&n&&C(0,Yz,1,0,"ng-container",26),2&n&&(T(2),w("ngTemplateOutlet",Q(2))("ngTemplateOutletContext",Ls(2,Gz)))}function Kz(n,t){if(1&n){const e=yt();_t(0,27),x(1,"mat-form-field",4)(2,"input",28),W("blur",function(r){return Ce(e),De(T(2).onBlur(r))})("change",function(r){return Ce(e),De(T(2).onChange(r))})("keyup",function(r){return Ce(e),De(T(2).onKeyup(r))})("keyup.enter",function(r){return null==r||null==r.currentTarget?null:r.currentTarget.blur()})("focus",function(r){return Ce(e),De(T(2).onFocus(r))}),L()(),vt()}if(2&n){const e=T(2);w("formGroupName",e.parentFieldKey),M(2),rt("title",e.formattedValue),w("id",e.key)("name",e.key)("placeholder",e.disabled?"":e.placeholder)("formControlName",e.key)("value",e.value)}}function qz(n,t){if(1&n&&(_t(0),C(1,$z,1,0,"ng-container",13),C(2,Wz,1,3,"ng-template",null,24,Me),C(4,Kz,3,7,"ng-template",null,25,Me),vt()),2&n){const e=Q(3),i=Q(5),r=T();M(1),w("ngIf",r.parentFieldKey)("ngIfThen",i)("ngIfElse",e)}}function Zz(n,t){1&n&&Ne(0)}function Xz(n,t){1&n&&Ne(0)}const Qz=function(n){return{"one-row":n}},DC=function(){return{isFormView:!1,hasParent:!1}};function Jz(n,t){if(1&n&&(x(0,"div",31),C(1,Xz,1,0,"ng-container",26),L()),2&n){const e=T(2),i=Q(2);w("ngClass",ke(3,Qz,1===e.rowSpan)),M(1),w("ngTemplateOutlet",i)("ngTemplateOutletContext",Ls(5,DC))}}function ej(n,t){if(1&n&&(x(0,"span",36),Be(1),L()),2&n){const e=T(3);rt("title",e.label),M(1),Hn("",e.label,"\xa0")}}function tj(n,t){1&n&&(x(0,"button",37)(1,"mat-icon"),oe(2,"pep-icon",38),L()())}const MC=function(n){return{color:n}},nj=function(n,t,e){return{"one-row":n,"multi-rows":t,"pep-button weak":e}},ij=function(n){return{"multi-rows-text":n}},rj=function(n){return{"-webkit-line-clamp":n}};function sj(n,t){if(1&n){const e=yt();x(0,"div",32),W("click",function(r){Ce(e);const s=T(2);return De(s.disabled?"":s.cardTemplateClicked(r))}),C(1,ej,2,2,"span",33),x(2,"span",34),Be(3),L(),C(4,tj,3,0,"button",35),L()}if(2&n){const e=T(2);sf("text-align-"+e.xAlignment),w("ngStyle",ke(11,MC,e.textColor))("ngClass",xy(13,nj,1===e.rowSpan,e.rowSpan>1,e.isActive&&!e.disabled)),M(1),w("ngIf",e.showTitle&&""!=e.label),M(1),rt("title",e.formattedValue),w("id",e.key)("ngClass",ke(17,ij,e.rowSpan>1))("ngStyle",ke(19,rj,e.rowSpan)),M(1),Kt(e.formattedValue),M(1),w("ngIf",e.isActive&&!e.disabled)}}function oj(n,t){if(1&n&&(_t(0),C(1,Zz,1,0,"ng-container",13),C(2,Jz,2,6,"ng-template",null,29,Me),C(4,sj,5,21,"ng-template",null,30,Me),vt()),2&n){const e=Q(3),i=Q(5),r=T();M(1),w("ngIf",r.isInEditMode)("ngIfThen",e)("ngIfElse",i)}}function aj(n,t){1&n&&Ne(0)}function lj(n,t){1&n&&Ne(0)}function cj(n,t){1&n&&C(0,lj,1,0,"ng-container",26),2&n&&(T(2),w("ngTemplateOutlet",Q(2))("ngTemplateOutletContext",Ls(2,DC)))}function uj(n,t){1&n&&Ne(0)}const dj=function(n){return{disable:n}};function hj(n,t){if(1&n&&(x(0,"a",47),Be(1),L()),2&n){const e=T(5);rt("title",e.formattedValue),rt("href",e.value?e.value:e.formattedValue,Ml),w("id",e.key)("ngClass",ke(5,dj,e.disabled&&""===e.value)),M(1),Kt(e.formattedValue)}}function fj(n,t){if(1&n&&(_t(0),C(1,hj,2,7,"a",46),vt()),2&n){const e=T(4);M(1),w("ngIf",null!=e.formattedValue)}}const pj=function(n){return{readonly:n}};function gj(n,t){if(1&n&&(_t(0),x(1,"span",48),Be(2),L(),vt()),2&n){const e=T(4);M(1),rt("title",e.formattedValue),w("id",e.key)("ngClass",ke(5,pj,e.disabled))("ngStyle",ke(7,MC,e.textColor)),M(1),Kt(e.formattedValue)}}function mj(n,t){1&n&&(_t(0,43),C(1,fj,2,1,"ng-container",44),C(2,gj,3,9,"ng-container",45),vt()),2&n&&(w("ngSwitch",T(3).type),M(1),w("ngSwitchCase","link"))}function _j(n,t){1&n&&(x(0,"span",49),Be(1,"\xa0"),L()),2&n&&w("id",T(3).key)}function vj(n,t){if(1&n&&(C(0,uj,1,0,"ng-container",13),C(1,mj,3,2,"ng-template",null,41,Me),C(3,_j,2,1,"ng-template",null,42,Me)),2&n){const e=Q(2),i=Q(4),r=T(2);w("ngIf",(null==r.formattedValue?null:r.formattedValue.length)>0)("ngIfThen",e)("ngIfElse",i)}}function yj(n,t){if(1&n&&(_t(0),C(1,aj,1,0,"ng-container",13),C(2,cj,1,3,"ng-template",null,39,Me),C(4,vj,5,3,"ng-template",null,40,Me),vt()),2&n){const e=Q(3),i=Q(5),r=T();M(1),w("ngIf",r.isActive&&!r.disabled)("ngIfThen",e)("ngIfElse",i)}}let bj=(()=>{class n{constructor(e,i,r,s,o){this.customizationService=e,this.renderer=i,this.element=r,this.translate=s,this.utilitiesService=o,this.dataQa="",this._key="",this._value="",this.formattedValue="",this._minFractionDigits=NaN,this._maxFractionDigits=NaN,this.accessory="",this.label="",this.placeholder="",this._type="text",this.inputMode="text",this._mandatory=!1,this.disabled=!1,this.readonly=!1,this.textColor="",this.xAlignment=Hu,this.rowSpan=1,this.minValue=NaN,this.maxValue=NaN,this._visible=!0,this.form=null,this.isActive=!1,this.showTitle=!0,this.renderTitle=!0,this.renderError=!0,this.renderSymbol=!0,this.layoutType="form",this.parentFieldKey=null,this.regex=null,this.regexError="",this.valueChange=new Y,this.keyup=new Y,this.validationChange=new Y,this._calculateFormattedValue=!0,this.controlType="textbox",this.standAlone=!1,this.isInEditMode=!1,this._isInFocus=!1,this._displayValueSubject=new wt(""),this.isInFocus=!1}set key(e){this._key=e,this.dataQa=e}get key(){return this._key}set value(e){e||(e=""),this.isDifferentValue(e)&&(this._value=e),this.setFormattedValue(this.value),this.changeDisplayValue()}get value(){return this._value}get valueAsCurrentCulture(){return this.utilitiesService.changeDecimalSeparatorWhenItsComma(this.value,!0)}set minFractionDigits(e){this._minFractionDigits=e,this.setFormattedValue(this.value),this.changeDisplayValue()}get minFractionDigits(){return this._minFractionDigits}set maxFractionDigits(e){this._maxFractionDigits=e,this.setFormattedValue(this.value),this.changeDisplayValue()}get maxFractionDigits(){return this._maxFractionDigits}set type(e){this._type=e,this.value&&(this.setFormattedValue(this.value),this.changeDisplayValue(),this.setInputModeAttribute())}get type(){return this._type}set mandatory(e){this._mandatory=e}get mandatory(){return this._mandatory}set visible(e){this._visible=e,e?this.renderer.removeClass(this.element.nativeElement,"hidden-element"):this.renderer.addClass(this.element.nativeElement,"hidden-element")}get visible(){return this._visible}get calculateFormattedValue(){return this._calculateFormattedValue}set isInFocus(e){this._isInFocus=e,this.setFormattedValue(this.value),this.changeDisplayValue()}get isInFocus(){return this._isInFocus}get displayValue$(){return this._displayValueSubject.asObservable().pipe(Gs())}setInputModeAttribute(){this.inputMode="currency"===this.type||"percentage"===this.type||"real"===this.type?"decimal":"int"===this.type?"numeric":"phone"===this.type?"tel":"email"===this.type?"email":"text",this.input&&this.renderer.setAttribute(this.input.nativeElement,"inputmode",this.inputMode)}notifyDisplayValueChange(e){this._displayValueSubject.next(e)}setFormattedValue(e){this.isInFocus||(this.formattedValue=this._calculateFormattedValue&&this.value?.length>0?"currency"===this.type?this.utilitiesService.formatCurrency(e,this.accessory,this.minFractionDigits,this.maxFractionDigits):"percentage"===this.type?this.utilitiesService.formatPercent(e,this.minFractionDigits,this.maxFractionDigits):"real"===this.type?this.utilitiesService.formatDecimal(e,this.minFractionDigits,this.maxFractionDigits):"int"===this.type?this.utilitiesService.formatNumber(e):"duration"===this.type?this.utilitiesService.formatDuration(e,{duration:"seconds"}):e:e,this.updateFormFieldValue())}updateFormFieldValue(e=!1){this.customizationService.updateFormFieldValue(this.form,this.key,this.value||this.formattedValue,this.parentFieldKey),this.standAlone&&this.validationChange.emit(!(!this.disabled&&!this.readonly)||this.form.valid)}changeDisplayValue(){let e="";e="link"==this.type?this.formattedValue:this.isDecimal()?this.isInFocus?this.valueAsCurrentCulture:this.formattedValue:(this.isNumberType(),this.isInFocus?this.value:this.formattedValue),this.notifyDisplayValueChange(e)}setDefaultForm(){const e=new KB({key:this.key,value:this.valueAsCurrentCulture,mandatory:this.mandatory,readonly:this.readonly,disabled:this.disabled,maxFieldCharacters:this.maxFieldCharacters,type:this.type,minValue:this.minValue,maxValue:this.maxValue,regex:this.regex});this.form=this.customizationService.getDefaultFromGroup(e,!1)}ngOnInit(){null===this.form&&(this.standAlone=!0,this.minValue=isNaN(this.minValue)&&!isNaN(this.maxValue)?0:this.minValue,this.maxValue=isNaN(this.maxValue)&&!isNaN(this.minValue)?99999:this.maxValue,this.setDefaultForm(),this.renderer.addClass(this.element.nativeElement,f.STAND_ALONE_FIELD_CLASS_NAME),this.renderTitle||this.renderer.addClass(this.element.nativeElement,f.STAND_ALONE_FIELD_NO_SPACING_CLASS_NAME)),this.readonly="duration"===this.type||this.readonly,"text"===this.type&&this.regex&&(!this.regexError||0===this.regexError.length)&&this.translate.get("MESSAGES.ERROR_INVALID_PATTERN").subscribe(e=>this.regexError=e),this.updateFormFieldValue(!0)}ngAfterViewInit(){this.setInputModeAttribute()}ngOnChanges(e){this.standAlone&&this.setDefaultForm(),this.readonly="duration"===this.type||this.readonly}ngOnDestroy(){}onFocus(e){this.isInFocus=!0,setTimeout(()=>{if(this.isInFocus){const i=e.target||e.srcElement;i&&i.select()}},0)}getGeneralError(){return this.translate.instant("MESSAGES.ERROR_IS_NOT_VALID",{field:this.label})}getOtherErrorMessage(e){if(this.isNumberType()){"percentage"===this.type?e=e.replace("%",""):this.accessory?.length>0&&(e=e.replace(this.accessory,""));const i=new aC(this.utilitiesService).transform(e),r=null!=this.minValue&&!isNaN(this.minValue),s=null!=this.maxValue&&!isNaN(this.maxValue);return r&&!s&&i<this.minValue?this.translate.instant("MESSAGES.ERROR_GREATER_THAN_MIN",{min:this.minValue}):!r&&s&&i>this.maxValue?this.translate.instant("MESSAGES.ERROR_LESS_THAN_MAX",{max:this.maxValue}):r&&s&&(i<this.minValue||i>this.maxValue)?this.translate.instant("MESSAGES.ERROR_BETWEEN_MIN_MAX",{min:this.minValue,max:this.maxValue}):isNaN(i)?this.getGeneralError():""}return this.getGeneralError()}isDecimal(){let e=!1;return this.isNumberType()&&("currency"===this.type||"real"===this.type)&&(e=!0),e}isNumberType(){return"percentage"===this.type||"int"===this.type||"currency"===this.type||"real"===this.type}isValueValid(e){let i=!1;if(this.isNumberType())if(""===e)i=!this.mandatory;else{const r=bt(e=this.utilitiesService.changeDecimalSeparatorWhenItsComma(e));i=isNaN(this.minValue)||isNaN(this.maxValue)?isNaN(this.minValue)?!!isNaN(this.maxValue)||r<=this.maxValue:r>=this.minValue:r>=this.minValue&&r<=this.maxValue}else i=!0;return i}isDifferentValue(e){let i=!1;return i=!this.isNumberType()||""===this.value||""===e||!1===this.utilitiesService.isEqualNumber(this.valueAsCurrentCulture,e),i}onChange(e){this.valueChange.emit(e.target?e.target.value:e)}onKeyup(e){this.keyup.emit(e)}onBlur(e){const i=e.target?e.target.value:e;if(this.renderError||this.isValueValid(i)){const r=this.isDecimal()?this.utilitiesService.changeDecimalSeparatorWhenItsComma(i):i;r!==this.valueAsCurrentCulture&&this.isDifferentValue(i)&&(this.value=r,this.valueChange.emit(this.value))}else this.renderer.setProperty(this.input.nativeElement,"value",this.valueAsCurrentCulture);this.isInEditMode&&(this.isInEditMode=!1),this.isInFocus=!1}anchorClicked(){const e=this.value;if(e.trim().length>0)switch(this.type){case"email":window.open("mailto:"+e,"email");break;case"phone":window.open("tel:"+e,"tel");break;case"link":window.open(e)}}cardTemplateClicked(e){this.isInEditMode=!0,setTimeout(()=>{this.input.nativeElement.focus()},0)}}return n.\u0275fac=function(e){return new(e||n)(_(f),_(ht),_(se),_(Ai),_(eo))},n.\u0275cmp=Ft({type:n,selectors:[["pep-textbox"]],viewQuery:function(e,i){if(1&e&&ri(Iz,5),2&e){let r;He(r=ze())&&(i.input=r.first)}},hostVars:1,hostBindings:function(e,i){2&e&&Ze("data-qa",i.dataQa)},inputs:{key:"key",value:"value",minFractionDigits:"minFractionDigits",maxFractionDigits:"maxFractionDigits",accessory:"accessory",label:"label",placeholder:"placeholder",type:"type",mandatory:"mandatory",disabled:"disabled",readonly:"readonly",maxFieldCharacters:"maxFieldCharacters",hint:"hint",textColor:"textColor",xAlignment:"xAlignment",rowSpan:"rowSpan",minValue:"minValue",maxValue:"maxValue",visible:"visible",form:"form",isActive:"isActive",showTitle:"showTitle",renderTitle:"renderTitle",renderError:"renderError",renderSymbol:"renderSymbol",layoutType:"layoutType",parentFieldKey:"parentFieldKey",regex:"regex",regexError:"regexError",isInFocus:"isInFocus"},outputs:{valueChange:"valueChange",keyup:"keyup",validationChange:"validationChange"},features:[Ct],decls:6,vars:4,consts:[[3,"formGroup"],["pepTemplate",""],[4,"ngIf"],[3,"label","mandatory","disabled","maxFieldCharacters","hint","xAlignment","showTitle","inputLength",4,"ngIf"],["appearance","outline"],["matInput","","pepTextboxValidation","","autocomplete","off",1,"body-sm",3,"formControlName","id","name","maxlength","placeholder","ngStyle","title","type","value","ngClass","keyup.enter","focus","blur","change","keyup"],["input",""],["class","dis-grid",4,"ngIf"],["matPrefix","",3,"value","label","type","disabled",4,"ngIf"],["matSuffix","",3,"value","label","type","disabled",4,"ngIf"],[3,"label","mandatory","disabled","maxFieldCharacters","hint","xAlignment","showTitle","inputLength"],[1,"dis-grid"],["href","javascript:void(0)",1,"color-link","body-sm",3,"id","name","click"],[4,"ngIf","ngIfThen","ngIfElse"],["requiredError",""],["otherErrorContainer",""],[1,"body-xs",3,"title","innerText"],["patternError",""],["otherError",""],[1,"body-xs"],[1,"body-xs",3,"innerText","title"],["errSpan",""],["matPrefix","",3,"value","label","type","disabled"],["matSuffix","",3,"value","label","type","disabled"],["regularBlock",""],["groupedBlock",""],[4,"ngTemplateOutlet","ngTemplateOutletContext"],[3,"formGroupName"],["pepTextboxValidation","","matInput","","autocomplete","off",1,"body-sm",3,"id","name","placeholder","title","formControlName","value","blur","change","keyup","keyup.enter","focus"],["editBlock",""],["readOnlyBlock",""],[3,"ngClass"],[1,"pep-card-input","card-flex-container",3,"ngStyle","ngClass","click"],["class","body-xs title",3,"title",4,"ngIf"],[1,"body-sm","value",3,"id","title","ngClass","ngStyle"],["class","pep-button weak card-edit-button","mat-button","",4,"ngIf"],[1,"body-xs","title",3,"title"],["mat-button","",1,"pep-button","weak","card-edit-button"],["name","system_edit"],["selectedBlock",""],["notSelectedBlock",""],["notEmptyBlock",""],["emptyBlock",""],[3,"ngSwitch"],[4,"ngSwitchCase"],[4,"ngSwitchDefault"],["class","color-link body-sm pep-report-input","target","_blank",3,"id","ngClass","title","href",4,"ngIf"],["target","_blank",1,"color-link","body-sm","pep-report-input",3,"id","ngClass","title","href"],[1,"body-sm","pep-report-input",3,"id","ngClass","title","ngStyle"],[3,"id"]],template:function(e,i){1&e&&(_t(0,0),C(1,Uz,9,22,"ng-template",null,1,Me),C(3,qz,6,3,"ng-container",2),C(4,oj,6,3,"ng-container",2),C(5,yj,6,3,"ng-container",2),vt()),2&e&&(w("formGroup",i.form),M(3),w("ngIf","form"===i.layoutType),M(1),w("ngIf","card"===i.layoutType),M(1),w("ngIf","table"===i.layoutType))},dependencies:[Ir,qi,na,tp,Bs,gc,ep,Uc,Up,$p,o0,Fr,n0,tu,yu,HE,YE,ZL,XL,xa,UN,Ua,yC,Sz,eb,I3],styles:["[_nghost-%COMP%]{height:inherit;display:grid}[_nghost-%COMP%] > *[_ngcontent-%COMP%]{align-self:center;align-items:baseline}.disable-hidden[_ngcontent-%COMP%]{display:none}.dis-grid[_ngcontent-%COMP%]{display:grid}.multi-rows-text[_ngcontent-%COMP%]{display:-webkit-box;-webkit-box-orient:vertical;overflow:hidden;text-overflow:ellipsis;white-space:normal!important}"],changeDetection:0}),n})();function wj(n){return new DF(n)}let Ej=(()=>{class n{constructor(e,i){this.injector=e,this.pepIconRegistry=i,this.pepIconRegistry.registerIcons([_C])}ngDoBootstrap(){this.defineElement("pep-select",sz),this.defineElement("pep-button",pz),this.defineElement("pep-textbox",bj)}defineElement(e,i){if(!customElements.get(e)){const r=pw(i,{injector:this.injector});customElements.define(e,r)}}}return n.\u0275fac=function(e){return new(e||n)(v(it),v(ja))},n.\u0275mod=me({type:n}),n.\u0275inj=pe({imports:[wb,WR,Zi,cF,a0,H3,x3.forRoot({loader:{provide:ma,useFactory:wj,deps:[$s]},isolate:!0}),Rt,ZE,qs,wN,$0,$N,XB,y1,OH,Tz]}),n})();typeof process<"u"&&process.env&&function Ix(){D2=!1}(),k9().bootstrapModule(Ej).catch(n=>console.error(n))}},fe=>{fe(fe.s=67)}]);