From e0fbdef0e30aa2e76924ef036a42393950b06e82 Mon Sep 17 00:00:00 2001 From: sirrganggi Date: Tue, 21 Jan 2025 09:04:11 +0100 Subject: [PATCH] alpha 4.0.2 build for test gi 8.16 --- assets/i18n/de.json | 4 +++- assets/i18n/en.json | 4 +++- index.html | 4 ++-- main.12deb263e6204c19.js => main.8a22da4af49d73ca.js | 2 +- 4 files changed, 9 insertions(+), 5 deletions(-) rename main.12deb263e6204c19.js => main.8a22da4af49d73ca.js (56%) diff --git a/assets/i18n/de.json b/assets/i18n/de.json index 62079d4..1dcaa2b 100644 --- a/assets/i18n/de.json +++ b/assets/i18n/de.json @@ -224,5 +224,7 @@ "NewContactCreatedAndConnected": "Es wurde ein neuer Kontakt erstellt und zu der gewählten Firma hinzugefügt.", "refreshLogin": "Bitte Login erneut ausführen.", "loaded": "Geladen: ", - "noFooterInfoAvailableManualDataNeeded": "Keine Adressdaten aus E-Mail Footer erhalten. Bitte Daten manuell eingeben." + "noFooterInfoAvailableManualDataNeeded": "Keine Adressdaten aus E-Mail Footer erhalten. Bitte Daten manuell eingeben.", + "dismissMessage": "OK", + "notConnected": "getrennt" } \ No newline at end of file diff --git a/assets/i18n/en.json b/assets/i18n/en.json index 1d37a48..dc0f9b1 100644 --- a/assets/i18n/en.json +++ b/assets/i18n/en.json @@ -224,5 +224,7 @@ "NewContactCreatedAndConnected": "New contact created and added to selected company", "refreshLogin": "Please retry login.", "loaded": "Loaded: ", - "noFooterInfoAvailableManualDataNeeded": "No address data received from mail footer, please insert data manually." + "noFooterInfoAvailableManualDataNeeded": "No address data received from mail footer, please insert data manually.", + "dismissMessage": "OK", + "notConnected": "disconnected" } \ No newline at end of file diff --git a/index.html b/index.html index 6d82054..f86df3b 100644 --- a/index.html +++ b/index.html @@ -3,7 +3,7 @@ - Business Mail - Alpha + Business Mail - Aplha @@ -180,7 +180,7 @@ - + diff --git a/main.12deb263e6204c19.js b/main.8a22da4af49d73ca.js similarity index 56% rename from main.12deb263e6204c19.js rename to main.8a22da4af49d73ca.js index 2d6ad92..aa53e6c 100644 --- a/main.12deb263e6204c19.js +++ b/main.8a22da4af49d73ca.js @@ -1 +1 @@ -(self.webpackChunkBM=self.webpackChunkBM||[]).push([[179],{9153:(Le,w,G)=>{"use strict";function le(n){return"function"==typeof n}let de=!1;const Y={Promise:void 0,set useDeprecatedSynchronousErrorHandling(n){if(n){const t=new Error;console.warn("DEPRECATED! RxJS was set to use deprecated synchronous error handling behavior by code at: \n"+t.stack)}else de&&console.log("RxJS: Back to a better error behavior. Thank you. <3");de=n},get useDeprecatedSynchronousErrorHandling(){return de}};function Q(n){setTimeout(()=>{throw n},0)}const q={closed:!0,next(n){},error(n){if(Y.useDeprecatedSynchronousErrorHandling)throw n;Q(n)},complete(){}},F=Array.isArray||(n=>n&&"number"==typeof n.length);function I(n){return null!==n&&"object"==typeof n}const T=(()=>{function n(t){return Error.call(this),this.message=t?`${t.length} errors occurred during unsubscription:\n${t.map((e,i)=>`${i+1}) ${e.toString()}`).join("\n ")}`:"",this.name="UnsubscriptionError",this.errors=t,this}return n.prototype=Object.create(Error.prototype),n})();class E{constructor(t){this.closed=!1,this._parentOrParents=null,this._subscriptions=null,t&&(this._ctorUnsubscribe=!0,this._unsubscribe=t)}unsubscribe(){let t;if(this.closed)return;let{_parentOrParents:e,_ctorUnsubscribe:i,_unsubscribe:r,_subscriptions:o}=this;if(this.closed=!0,this._parentOrParents=null,this._subscriptions=null,e instanceof E)e.remove(this);else if(null!==e)for(let s=0;st.concat(e instanceof T?e.errors:e),[])}E.EMPTY=((n=new E).closed=!0,n);const D="function"==typeof Symbol?Symbol("rxSubscriber"):"@@rxSubscriber_"+Math.random();class S extends E{constructor(t,e,i){switch(super(),this.syncErrorValue=null,this.syncErrorThrown=!1,this.syncErrorThrowable=!1,this.isStopped=!1,arguments.length){case 0:this.destination=q;break;case 1:if(!t){this.destination=q;break}if("object"==typeof t){t instanceof S?(this.syncErrorThrowable=t.syncErrorThrowable,this.destination=t,t.add(this)):(this.syncErrorThrowable=!0,this.destination=new x(this,t));break}default:this.syncErrorThrowable=!0,this.destination=new x(this,t,e,i)}}[D](){return this}static create(t,e,i){const r=new S(t,e,i);return r.syncErrorThrowable=!1,r}next(t){this.isStopped||this._next(t)}error(t){this.isStopped||(this.isStopped=!0,this._error(t))}complete(){this.isStopped||(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe())}_next(t){this.destination.next(t)}_error(t){this.destination.error(t),this.unsubscribe()}_complete(){this.destination.complete(),this.unsubscribe()}_unsubscribeAndRecycle(){const{_parentOrParents:t}=this;return this._parentOrParents=null,this.unsubscribe(),this.closed=!1,this.isStopped=!1,this._parentOrParents=t,this}}class x extends S{constructor(t,e,i,r){super(),this._parentSubscriber=t;let o,s=this;le(e)?o=e:e&&(o=e.next,i=e.error,r=e.complete,e!==q&&(s=Object.create(e),le(s.unsubscribe)&&this.add(s.unsubscribe.bind(s)),s.unsubscribe=this.unsubscribe.bind(this))),this._context=s,this._next=o,this._error=i,this._complete=r}next(t){if(!this.isStopped&&this._next){const{_parentSubscriber:e}=this;Y.useDeprecatedSynchronousErrorHandling&&e.syncErrorThrowable?this.__tryOrSetError(e,this._next,t)&&this.unsubscribe():this.__tryOrUnsub(this._next,t)}}error(t){if(!this.isStopped){const{_parentSubscriber:e}=this,{useDeprecatedSynchronousErrorHandling:i}=Y;if(this._error)i&&e.syncErrorThrowable?(this.__tryOrSetError(e,this._error,t),this.unsubscribe()):(this.__tryOrUnsub(this._error,t),this.unsubscribe());else if(e.syncErrorThrowable)i?(e.syncErrorValue=t,e.syncErrorThrown=!0):Q(t),this.unsubscribe();else{if(this.unsubscribe(),i)throw t;Q(t)}}}complete(){if(!this.isStopped){const{_parentSubscriber:t}=this;if(this._complete){const e=()=>this._complete.call(this._context);Y.useDeprecatedSynchronousErrorHandling&&t.syncErrorThrowable?(this.__tryOrSetError(t,e),this.unsubscribe()):(this.__tryOrUnsub(e),this.unsubscribe())}else this.unsubscribe()}}__tryOrUnsub(t,e){try{t.call(this._context,e)}catch(i){if(this.unsubscribe(),Y.useDeprecatedSynchronousErrorHandling)throw i;Q(i)}}__tryOrSetError(t,e,i){if(!Y.useDeprecatedSynchronousErrorHandling)throw new Error("bad call");try{e.call(this._context,i)}catch(r){return Y.useDeprecatedSynchronousErrorHandling?(t.syncErrorValue=r,t.syncErrorThrown=!0,!0):(Q(r),!0)}return!1}_unsubscribe(){const{_parentSubscriber:t}=this;this._context=null,this._parentSubscriber=null,t.unsubscribe()}}const re="function"==typeof Symbol&&Symbol.observable||"@@observable";function we(n){return n}function ie(n){return 0===n.length?we:1===n.length?n[0]:function(e){return n.reduce((i,r)=>r(i),e)}}let b=(()=>{class n{constructor(e){this._isScalar=!1,e&&(this._subscribe=e)}lift(e){const i=new n;return i.source=this,i.operator=e,i}subscribe(e,i,r){const{operator:o}=this,s=function z(n,t,e){if(n){if(n instanceof S)return n;if(n[D])return n[D]()}return n||t||e?new S(n,t,e):new S(q)}(e,i,r);if(s.add(o?o.call(s,this.source):this.source||Y.useDeprecatedSynchronousErrorHandling&&!s.syncErrorThrowable?this._subscribe(s):this._trySubscribe(s)),Y.useDeprecatedSynchronousErrorHandling&&s.syncErrorThrowable&&(s.syncErrorThrowable=!1,s.syncErrorThrown))throw s.syncErrorValue;return s}_trySubscribe(e){try{return this._subscribe(e)}catch(i){Y.useDeprecatedSynchronousErrorHandling&&(e.syncErrorThrown=!0,e.syncErrorValue=i),function B(n){for(;n;){const{closed:t,destination:e,isStopped:i}=n;if(t||i)return!1;n=e&&e instanceof S?e:null}return!0}(e)?e.error(i):console.warn(i)}}forEach(e,i){return new(i=K(i))((r,o)=>{let s;s=this.subscribe(a=>{try{e(a)}catch(l){o(l),s&&s.unsubscribe()}},o,r)})}_subscribe(e){const{source:i}=this;return i&&i.subscribe(e)}[re](){return this}pipe(...e){return 0===e.length?this:ie(e)(this)}toPromise(e){return new(e=K(e))((i,r)=>{let o;this.subscribe(s=>o=s,s=>r(s),()=>i(o))})}}return n.create=t=>new n(t),n})();function K(n){if(n||(n=Y.Promise||Promise),!n)throw new Error("no Promise impl found");return n}const oe=(()=>{function n(){return Error.call(this),this.message="object unsubscribed",this.name="ObjectUnsubscribedError",this}return n.prototype=Object.create(Error.prototype),n})();class _e extends E{constructor(t,e){super(),this.subject=t,this.subscriber=e,this.closed=!1}unsubscribe(){if(this.closed)return;this.closed=!0;const t=this.subject,e=t.observers;if(this.subject=null,!e||0===e.length||t.isStopped||t.closed)return;const i=e.indexOf(this.subscriber);-1!==i&&e.splice(i,1)}}class V extends S{constructor(t){super(t),this.destination=t}}let N=(()=>{class n extends b{constructor(){super(),this.observers=[],this.closed=!1,this.isStopped=!1,this.hasError=!1,this.thrownError=null}[D](){return new V(this)}lift(e){const i=new X(this,this);return i.operator=e,i}next(e){if(this.closed)throw new oe;if(!this.isStopped){const{observers:i}=this,r=i.length,o=i.slice();for(let s=0;snew X(t,e),n})();class X extends N{constructor(t,e){super(),this.destination=t,this.source=e}next(t){const{destination:e}=this;e&&e.next&&e.next(t)}error(t){const{destination:e}=this;e&&e.error&&this.destination.error(t)}complete(){const{destination:t}=this;t&&t.complete&&this.destination.complete()}_subscribe(t){const{source:e}=this;return e?this.source.subscribe(t):E.EMPTY}}function pe(n){return n&&"function"==typeof n.schedule}function he(n,t){return function(i){if("function"!=typeof n)throw new TypeError("argument is not a function. Are you looking for `mapTo()`?");return i.lift(new Be(n,t))}}class Be{constructor(t,e){this.project=t,this.thisArg=e}call(t,e){return e.subscribe(new je(t,this.project,this.thisArg))}}class je extends S{constructor(t,e,i){super(t),this.project=e,this.count=0,this.thisArg=i||this}_next(t){let e;try{e=this.project.call(this.thisArg,t,this.count++)}catch(i){return void this.destination.error(i)}this.destination.next(e)}}const xt=n=>t=>{for(let e=0,i=n.length;en&&"number"==typeof n.length&&"function"!=typeof n;function We(n){return!!n&&"function"!=typeof n.subscribe&&"function"==typeof n.then}const Ge=n=>{if(n&&"function"==typeof n[re])return(n=>t=>{const e=n[re]();if("function"!=typeof e.subscribe)throw new TypeError("Provided object does not correctly implement Symbol.observable");return e.subscribe(t)})(n);if(R(n))return xt(n);if(We(n))return(n=>t=>(n.then(e=>{t.closed||(t.next(e),t.complete())},e=>t.error(e)).then(null,Q),t))(n);if(n&&"function"==typeof n[se])return(n=>t=>{const e=n[se]();for(;;){let i;try{i=e.next()}catch(r){return t.error(r),t}if(i.done){t.complete();break}if(t.next(i.value),t.closed)break}return"function"==typeof e.return&&t.add(()=>{e.return&&e.return()}),t})(n);{const e=`You provided ${I(n)?"an invalid object":`'${n}'`} where a stream was expected. You can provide an Observable, Promise, Array, or Iterable.`;throw new TypeError(e)}};function ui(n,t){return new b(e=>{const i=new E;let r=0;return i.add(t.schedule(function(){r!==n.length?(e.next(n[r++]),e.closed||i.add(this.schedule())):e.complete()})),i})}function vt(n,t){return t?function wh(n,t){if(null!=n){if(function Qs(n){return n&&"function"==typeof n[re]}(n))return function Nt(n,t){return new b(e=>{const i=new E;return i.add(t.schedule(()=>{const r=n[re]();i.add(r.subscribe({next(o){i.add(t.schedule(()=>e.next(o)))},error(o){i.add(t.schedule(()=>e.error(o)))},complete(){i.add(t.schedule(()=>e.complete()))}}))})),i})}(n,t);if(We(n))return function ln(n,t){return new b(e=>{const i=new E;return i.add(t.schedule(()=>n.then(r=>{i.add(t.schedule(()=>{e.next(r),i.add(t.schedule(()=>e.complete()))}))},r=>{i.add(t.schedule(()=>e.error(r)))}))),i})}(n,t);if(R(n))return ui(n,t);if(function Ch(n){return n&&"function"==typeof n[se]}(n)||"string"==typeof n)return function Hi(n,t){if(!n)throw new Error("Iterable cannot be null");return new b(e=>{const i=new E;let r;return i.add(()=>{r&&"function"==typeof r.return&&r.return()}),i.add(t.schedule(()=>{r=n[se](),i.add(t.schedule(function(){if(e.closed)return;let o,s;try{const a=r.next();o=a.value,s=a.done}catch(a){return void e.error(a)}s?e.complete():(e.next(o),this.schedule())}))})),i})}(n,t)}throw new TypeError((null!==n&&typeof n||n)+" is not observable")}(n,t):n instanceof b?n:new b(Ge(n))}class ko extends S{constructor(t){super(),this.parent=t}_next(t){this.parent.notifyNext(t)}_error(t){this.parent.notifyError(t),this.unsubscribe()}_complete(){this.parent.notifyComplete(),this.unsubscribe()}}class cu extends S{notifyNext(t){this.destination.next(t)}notifyError(t){this.destination.error(t)}notifyComplete(){this.destination.complete()}}function uu(n,t){if(t.closed)return;if(n instanceof b)return n.subscribe(t);let e;try{e=Ge(n)(t)}catch(i){t.error(i)}return e}function Vi(n,t,e=Number.POSITIVE_INFINITY){return"function"==typeof t?i=>i.pipe(Vi((r,o)=>vt(n(r,o)).pipe(he((s,a)=>t(r,s,o,a))),e)):("number"==typeof t&&(e=t),i=>i.lift(new aO(n,e)))}class aO{constructor(t,e=Number.POSITIVE_INFINITY){this.project=t,this.concurrent=e}call(t,e){return e.subscribe(new lO(t,this.project,this.concurrent))}}class lO extends cu{constructor(t,e,i=Number.POSITIVE_INFINITY){super(t),this.project=e,this.concurrent=i,this.hasCompleted=!1,this.buffer=[],this.active=0,this.index=0}_next(t){this.active0?this._next(t.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()}}function Eh(n=Number.POSITIVE_INFINITY){return Vi(we,n)}function yg(n,t){return t?ui(n,t):new b(xt(n))}function On(...n){let t=Number.POSITIVE_INFINITY,e=null,i=n[n.length-1];return pe(i)?(e=n.pop(),n.length>1&&"number"==typeof n[n.length-1]&&(t=n.pop())):"number"==typeof i&&(t=n.pop()),null===e&&1===n.length&&n[0]instanceof b?n[0]:Eh(t)(yg(n,e))}function Dh(){return function(t){return t.lift(new cO(t))}}class cO{constructor(t){this.connectable=t}call(t,e){const{connectable:i}=this;i._refCount++;const r=new uO(t,i),o=e.subscribe(r);return r.closed||(r.connection=i.connect()),o}}class uO extends S{constructor(t,e){super(t),this.connectable=e}_unsubscribe(){const{connectable:t}=this;if(!t)return void(this.connection=null);this.connectable=null;const e=t._refCount;if(e<=0)return void(this.connection=null);if(t._refCount=e-1,e>1)return void(this.connection=null);const{connection:i}=this,r=t._connection;this.connection=null,r&&(!i||r===i)&&r.unsubscribe()}}class Sh extends b{constructor(t,e){super(),this.source=t,this.subjectFactory=e,this._refCount=0,this._isComplete=!1}_subscribe(t){return this.getSubject().subscribe(t)}getSubject(){const t=this._subject;return(!t||t.isStopped)&&(this._subject=this.subjectFactory()),this._subject}connect(){let t=this._connection;return t||(this._isComplete=!1,t=this._connection=new E,t.add(this.source.subscribe(new hO(this.getSubject(),this))),t.closed&&(this._connection=null,t=E.EMPTY)),t}refCount(){return Dh()(this)}}const dO=(()=>{const n=Sh.prototype;return{operator:{value:null},_refCount:{value:0,writable:!0},_subject:{value:null,writable:!0},_connection:{value:null,writable:!0},_subscribe:{value:n._subscribe},_isComplete:{value:n._isComplete,writable:!0},getSubject:{value:n.getSubject},connect:{value:n.connect},refCount:{value:n.refCount}}})();class hO extends V{constructor(t,e){super(t),this.connectable=e}_error(t){this._unsubscribe(),super._error(t)}_complete(){this.connectable._isComplete=!0,this._unsubscribe(),super._complete()}_unsubscribe(){const t=this.connectable;if(t){this.connectable=null;const e=t._connection;t._refCount=0,t._subject=null,t._connection=null,e&&e.unsubscribe()}}}class mO{constructor(t,e){this.subjectFactory=t,this.selector=e}call(t,e){const{selector:i}=this,r=this.subjectFactory(),o=i(r).subscribe(t);return o.add(e.subscribe(r)),o}}function gO(){return new N}function Dw(){return n=>Dh()(function fO(n,t){return function(i){let r;if(r="function"==typeof n?n:function(){return n},"function"==typeof t)return i.lift(new mO(r,t));const o=Object.create(i,dO);return o.source=i,o.subjectFactory=r,o}}(gO)(n))}function _n(n){for(let t in n)if(n[t]===_n)return t;throw Error("Could not find renamed property on target object.")}function bg(n,t){for(const e in t)t.hasOwnProperty(e)&&!n.hasOwnProperty(e)&&(n[e]=t[e])}function vn(n){if("string"==typeof n)return n;if(Array.isArray(n))return"["+n.map(vn).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 Cg(n,t){return null==n||""===n?null===t?"":t:null==t||""===t?n:n+" "+t}const _O=_n({__forward_ref__:_n});function Xt(n){return n.__forward_ref__=Xt,n.toString=function(){return vn(this())},n}function Et(n){return wg(n)?n():n}function wg(n){return"function"==typeof n&&n.hasOwnProperty(_O)&&n.__forward_ref__===Xt}class Te extends Error{constructor(t,e){super(function Ah(n,t){return`NG0${Math.abs(n)}${t?": "+t.trim():""}`}(t,e)),this.code=t}}function kt(n){return"string"==typeof n?n:null==n?"":String(n)}function Th(n,t){throw new Te(-201,!1)}function vr(n,t){null==n&&function hn(n,t,e,i){throw new Error(`ASSERTION ERROR: ${n}`+(null==i?"":` [Expected=> ${e} ${i} ${t} <=Actual]`))}(t,n,null,"!=")}function ge(n){return{token:n.token,providedIn:n.providedIn||null,factory:n.factory,value:void 0}}function dt(n){return{providers:n.providers||[],imports:n.imports||[]}}function Eg(n){return Sw(n,xh)||Sw(n,Tw)}function Sw(n,t){return n.hasOwnProperty(t)?n[t]:null}function Aw(n){return n&&(n.hasOwnProperty(Dg)||n.hasOwnProperty(SO))?n[Dg]:null}const xh=_n({\u0275prov:_n}),Dg=_n({\u0275inj:_n}),Tw=_n({ngInjectableDef:_n}),SO=_n({ngInjectorDef:_n});var yt=(()=>((yt=yt||{})[yt.Default=0]="Default",yt[yt.Host=1]="Host",yt[yt.Self=2]="Self",yt[yt.SkipSelf=4]="SkipSelf",yt[yt.Optional=8]="Optional",yt))();let Sg;function Fr(n){const t=Sg;return Sg=n,t}function xw(n,t,e){const i=Eg(n);return i&&"root"==i.providedIn?void 0===i.value?i.value=i.factory():i.value:e&yt.Optional?null:void 0!==t?t:void Th(vn(n))}function Js(n){return{toString:n}.toString()}var so=(()=>((so=so||{})[so.OnPush=0]="OnPush",so[so.Default=1]="Default",so))(),ao=(()=>(function(n){n[n.Emulated=0]="Emulated",n[n.None=2]="None",n[n.ShadowDom=3]="ShadowDom"}(ao||(ao={})),ao))();const gn=(()=>typeof globalThis<"u"&&globalThis||typeof global<"u"&&global||typeof window<"u"&&window||typeof self<"u"&&typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&self)(),Sl={},un=[],Ih=_n({\u0275cmp:_n}),Ag=_n({\u0275dir:_n}),Tg=_n({\u0275pipe:_n}),Iw=_n({\u0275mod:_n}),as=_n({\u0275fac:_n}),du=_n({__NG_ELEMENT_ID__:_n});let TO=0;function Ue(n){return Js(()=>{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===so.OnPush,directiveDefs:null,pipeDefs:null,standalone:e,dependencies:e&&n.dependencies||null,getStandaloneInjector:null,selectors:n.selectors||un,viewQuery:n.viewQuery||null,features:n.features||null,data:n.data||{},encapsulation:n.encapsulation||ao.Emulated,id:"c"+TO++,styles:n.styles||un,_:null,setInput:null,schemas:n.schemas||null,tView:null},o=n.dependencies,s=n.features;return r.inputs=Ow(n.inputs,i),r.outputs=Ow(n.outputs),s&&s.forEach(a=>a(r)),r.directiveDefs=o?()=>("function"==typeof o?o():o).map(kw).filter(Rw):null,r.pipeDefs=o?()=>("function"==typeof o?o():o).map(zi).filter(Rw):null,r})}function kw(n){return mn(n)||qi(n)}function Rw(n){return null!==n}const xO={};function ht(n){return Js(()=>{const t={type:n.type,bootstrap:n.bootstrap||un,declarations:n.declarations||un,imports:n.imports||un,exports:n.exports||un,transitiveCompileScopes:null,schemas:n.schemas||null,id:n.id||null};return null!=n.id&&(xO[n.id]=n.type),t})}function Ow(n,t){if(null==n)return Sl;const e={};for(const i in n)if(n.hasOwnProperty(i)){let r=n[i],o=r;Array.isArray(r)&&(o=r[1],r=r[0]),e[r]=i,t&&(t[r]=o)}return e}const fe=Ue;function Ui(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 mn(n){return n[Ih]||null}function qi(n){return n[Ag]||null}function zi(n){return n[Tg]||null}function yr(n,t){const e=n[Iw]||null;if(!e&&!0===t)throw new Error(`Type ${vn(n)} does not have '\u0275mod' property.`);return e}function nr(n){return Array.isArray(n)&&"object"==typeof n[1]}function co(n){return Array.isArray(n)&&!0===n[1]}function Mg(n){return 0!=(8&n.flags)}function Oh(n){return 2==(2&n.flags)}function Ph(n){return 1==(1&n.flags)}function uo(n){return null!==n.template}function OO(n){return 0!=(256&n[2])}function Ra(n,t){return n.hasOwnProperty(as)?n[as]:null}class NO{constructor(t,e,i){this.previousValue=t,this.currentValue=e,this.firstChange=i}isFirstChange(){return this.firstChange}}function Rn(){return Nw}function Nw(n){return n.type.prototype.ngOnChanges&&(n.setInput=BO),FO}function FO(){const n=Bw(this),t=n?.current;if(t){const e=n.previous;if(e===Sl)n.previous=t;else for(let i in t)e[i]=t[i];n.current=null,this.ngOnChanges(t)}}function BO(n,t,e,i){const r=Bw(n)||function jO(n,t){return n[Fw]=t}(n,{previous:Sl,current:null}),o=r.current||(r.current={}),s=r.previous,a=this.declaredInputs[e],l=s[a];o[a]=new NO(l&&l.currentValue,t,s===Sl),n[i]=t}Rn.ngInherit=!0;const Fw="__ngSimpleChanges__";function Bw(n){return n[Fw]||null}function Jn(n){for(;Array.isArray(n);)n=n[0];return n}function Lh(n,t){return Jn(t[n])}function Hr(n,t){return Jn(t[n.index])}function Lg(n,t){return n.data[t]}function Ml(n,t){return n[t]}function Cr(n,t){const e=t[n];return nr(e)?e:e[0]}function jw(n){return 4==(4&n[2])}function Ng(n){return 64==(64&n[2])}function Zs(n,t){return null==t?null:n[t]}function Hw(n){n[18]=0}function Fg(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 It={lFrame:Yw(null),bindingsEnabled:!0};function Uw(){return It.bindingsEnabled}function xe(){return It.lFrame.lView}function en(){return It.lFrame.tView}function J(n){return It.lFrame.contextLView=n,n[8]}function Z(n){return It.lFrame.contextLView=null,n}function ri(){let n=qw();for(;null!==n&&64===n.type;)n=n.parent;return n}function qw(){return It.lFrame.currentTNode}function Ro(n,t){const e=It.lFrame;e.currentTNode=n,e.isParent=t}function Bg(){return It.lFrame.isParent}function jg(){It.lFrame.isParent=!1}function Gi(){const n=It.lFrame;let t=n.bindingRootIndex;return-1===t&&(t=n.bindingRootIndex=n.tView.bindingStartIndex),t}function kl(){return It.lFrame.bindingIndex++}function cs(n){const t=It.lFrame,e=t.bindingIndex;return t.bindingIndex=t.bindingIndex+n,e}function XO(n,t){const e=It.lFrame;e.bindingIndex=e.bindingRootIndex=n,Hg(t)}function Hg(n){It.lFrame.currentDirectiveIndex=n}function Vg(n){const t=It.lFrame.currentDirectiveIndex;return-1===t?null:n[t]}function Ww(){return It.lFrame.currentQueryIndex}function Ug(n){It.lFrame.currentQueryIndex=n}function tP(n){const t=n[1];return 2===t.type?t.declTNode:1===t.type?n[6]:null}function $w(n,t,e){if(e&yt.SkipSelf){let r=t,o=n;for(;!(r=r.parent,null!==r||e&yt.Host||(r=tP(o),null===r||(o=o[15],10&r.type))););if(null===r)return!1;t=r,n=o}const i=It.lFrame=Kw();return i.currentTNode=t,i.lView=n,!0}function qg(n){const t=Kw(),e=n[1];It.lFrame=t,t.currentTNode=e.firstChild,t.lView=n,t.tView=e,t.contextLView=n,t.bindingIndex=e.bindingStartIndex,t.inI18n=!1}function Kw(){const n=It.lFrame,t=null===n?null:n.child;return null===t?Yw(n):t}function Yw(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 Qw(){const n=It.lFrame;return It.lFrame=n.parent,n.currentTNode=null,n.lView=null,n}const Jw=Qw;function zg(){const n=Qw();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 Wi(){return It.lFrame.selectedIndex}function Xs(n){It.lFrame.selectedIndex=n}function Hn(){const n=It.lFrame;return Lg(n.tView,n.selectedIndex)}function Rl(){It.lFrame.currentNamespace="svg"}function Fh(n,t){for(let e=t.directiveStart,i=t.directiveEnd;e=i)break}else t[l]<0&&(n[18]+=65536),(a>11>16&&(3&n[2])===t){n[2]+=2048;try{o.call(a)}finally{}}}else try{o.call(a)}finally{}}class gu{constructor(t,e,i){this.factory=t,this.resolving=!1,this.canSeeViewProviders=e,this.injectImpl=i}}function Hh(n,t,e){let i=0;for(;it){s=o-1;break}}}for(;o>16}(n),i=t;for(;e>0;)i=i[15],e--;return i}let $g=!0;function Uh(n){const t=$g;return $g=n,t}let fP=0;const Oo={};function vu(n,t){const e=Yg(n,t);if(-1!==e)return e;const i=t[1];i.firstCreatePass&&(n.injectorIndex=t.length,Kg(i.data,n),Kg(t,null),Kg(i.blueprint,null));const r=qh(n,t),o=n.injectorIndex;if(r0(r)){const s=Ol(r),a=Pl(r,t),l=a[1].data;for(let c=0;c<8;c++)t[o+c]=a[s+c]|l[s+c]}return t[o+8]=r,o}function Kg(n,t){n.push(0,0,0,0,0,0,0,0,t)}function Yg(n,t){return-1===n.injectorIndex||n.parent&&n.parent.injectorIndex===n.injectorIndex||null===t[n.injectorIndex+8]?-1:n.injectorIndex}function qh(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=p0(r),null===i)return-1;if(e++,r=r[15],-1!==i.injectorIndex)return i.injectorIndex|e<<16}return-1}function zh(n,t,e){!function mP(n,t,e){let i;"string"==typeof e?i=e.charCodeAt(0)||0:e.hasOwnProperty(du)&&(i=e[du]),null==i&&(i=e[du]=fP++);const r=255&i;t.data[n+(r>>5)]|=1<=0?255&t:yP:t}(e);if("function"==typeof o){if(!$w(t,n,i))return i&yt.Host?a0(r,0,i):l0(t,e,i,r);try{const s=o(i);if(null!=s||i&yt.Optional)return s;Th()}finally{Jw()}}else if("number"==typeof o){let s=null,a=Yg(n,t),l=-1,c=i&yt.Host?t[16][6]:null;for((-1===a||i&yt.SkipSelf)&&(l=-1===a?qh(n,t):t[a+8],-1!==l&&h0(i,!1)?(s=t[1],a=Ol(l),t=Pl(l,t)):a=-1);-1!==a;){const u=t[1];if(d0(o,a,u.data)){const d=_P(a,t,e,s,i,c);if(d!==Oo)return d}l=t[a+8],-1!==l&&h0(i,t[1].data[a+8]===c)&&d0(o,a,t)?(s=u,a=Ol(l),t=Pl(l,t)):a=-1}}return r}function _P(n,t,e,i,r,o){const s=t[1],a=s.data[n+8],u=Gh(a,s,e,null==i?Oh(a)&&$g:i!=s&&0!=(3&a.type),r&yt.Host&&o===a);return null!==u?yu(t,s,u,a):Oo}function Gh(n,t,e,i,r){const o=n.providerIndexes,s=t.data,a=1048575&o,l=n.directiveStart,u=o>>20,h=r?a+u:n.directiveEnd;for(let m=i?a:a+u;m=l&&y.type===e)return m}if(r){const m=s[l];if(m&&uo(m)&&m.type===e)return l}return null}function yu(n,t,e,i){let r=n[e];const o=t.data;if(function cP(n){return n instanceof gu}(r)){const s=r;s.resolving&&function vO(n,t){const e=t?`. Dependency path: ${t.join(" > ")} > ${n}`:"";throw new Te(-200,`Circular dependency in DI detected for ${n}${e}`)}(function cn(n){return"function"==typeof n?n.name||n.toString():"object"==typeof n&&null!=n&&"function"==typeof n.type?n.type.name||n.type.toString():kt(n)}(o[e]));const a=Uh(s.canSeeViewProviders);s.resolving=!0;const l=s.injectImpl?Fr(s.injectImpl):null;$w(n,i,yt.Default);try{r=n[e]=s.factory(void 0,o,n,i),t.firstCreatePass&&e>=i.directiveStart&&function aP(n,t,e){const{ngOnChanges:i,ngOnInit:r,ngDoCheck:o}=t.type.prototype;if(i){const s=Nw(t);(e.preOrderHooks||(e.preOrderHooks=[])).push(n,s),(e.preOrderCheckHooks||(e.preOrderCheckHooks=[])).push(n,s)}r&&(e.preOrderHooks||(e.preOrderHooks=[])).push(0-n,r),o&&((e.preOrderHooks||(e.preOrderHooks=[])).push(n,o),(e.preOrderCheckHooks||(e.preOrderCheckHooks=[])).push(n,o))}(e,o[e],t)}finally{null!==l&&Fr(l),Uh(a),s.resolving=!1,Jw()}}return r}function d0(n,t,e){return!!(e[t+(n>>5)]&1<{const t=n.prototype.constructor,e=t[as]||Qg(t),i=Object.prototype;let r=Object.getPrototypeOf(n.prototype).constructor;for(;r&&r!==i;){const o=r[as]||Qg(r);if(o&&o!==e)return o;r=Object.getPrototypeOf(r)}return o=>new o})}function Qg(n){return wg(n)?()=>{const t=Qg(Et(n));return t&&t()}:Ra(n)}function p0(n){const t=n[1],e=t.type;return 2===e?t.declTNode:1===e?n[6]:null}function Vr(n){return function gP(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{const i=function Jg(n){return function(...e){if(n){const i=n(...e);for(const r in i)this[r]=i[r]}}}(t);function r(...o){if(this instanceof r)return i.apply(this,o),this;const s=new r(...o);return a.annotation=s,a;function a(l,c,u){const d=l.hasOwnProperty(Fl)?l[Fl]:Object.defineProperty(l,Fl,{value:[]})[Fl];for(;d.length<=u;)d.push(null);return(d[u]=d[u]||[]).push(s),l}}return e&&(r.prototype=Object.create(e.prototype)),r.prototype.ngMetadataName=n,r.annotationCls=r,r})}class me{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=ge({token:this,providedIn:e.providedIn||"root",factory:e.factory}))}get multi(){return this}toString(){return`InjectionToken ${this._desc}`}}function wr(n,t){void 0===t&&(t=n);for(let e=0;eArray.isArray(e)?us(e,t):t(e))}function m0(n,t,e){t>=n.length?n.push(e):n.splice(t,0,e)}function Wh(n,t){return t>=n.length-1?n.pop():n.splice(t,1)[0]}function wu(n,t){const e=[];for(let i=0;i=0?n[1|i]=e:(i=~i,function DP(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 Xg(n,t){const e=Hl(n,t);if(e>=0)return n[1|e]}function Hl(n,t){return function v0(n,t,e){let i=0,r=n.length>>e;for(;r!==i;){const o=i+(r-i>>1),s=n[o<t?r=o:i=o+1}return~(r<n,createScript:n=>n,createScriptURL:n=>n})}catch{}return Jh}()?.createHTML(n)||n}class Pa{constructor(t){this.changingThisBreaksApplicationSecurity=t}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see https://g.co/ng/security#xss)`}}class QP extends Pa{getTypeName(){return"HTML"}}class JP extends Pa{getTypeName(){return"Style"}}class ZP extends Pa{getTypeName(){return"Script"}}class XP extends Pa{getTypeName(){return"URL"}}class eL extends Pa{getTypeName(){return"ResourceURL"}}function Dr(n){return n instanceof Pa?n.changingThisBreaksApplicationSecurity:n}function Po(n,t){const e=function tL(n){return n instanceof Pa&&n.getTypeName()||null}(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}class aL{constructor(t){this.inertDocumentHelper=t}getInertBodyElement(t){t=""+t;try{const e=(new window.DOMParser).parseFromString(ql(t),"text/html").body;return null===e?this.inertDocumentHelper.getInertBodyElement(t):(e.removeChild(e.firstChild),e)}catch{return null}}}class lL{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=ql(t),e;const i=this.inertDocument.createElement("body");return i.innerHTML=ql(t),this.defaultDoc.documentMode&&this.stripCustomNsAttrs(i),i}stripCustomNsAttrs(t){const e=t.attributes;for(let r=e.length-1;0Iu(t.trim())).join(", ")}function Lo(n){const t={};for(const e of n.split(","))t[e]=!0;return t}function Mu(...n){const t={};for(const e of n)for(const i in e)e.hasOwnProperty(i)&&(t[i]=!0);return t}const P0=Lo("area,br,col,hr,img,wbr"),L0=Lo("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),N0=Lo("rp,rt"),a_=Mu(P0,Mu(L0,Lo("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")),Mu(N0,Lo("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")),Mu(N0,L0)),l_=Lo("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),c_=Lo("srcset"),F0=Mu(l_,c_,Lo("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"),Lo("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")),hL=Lo("script,style,template");class pL{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(!a_.hasOwnProperty(e))return this.sanitizedSomething=!0,!hL.hasOwnProperty(e);this.buf.push("<"),this.buf.push(e);const i=t.attributes;for(let r=0;r"),!0}endElement(t){const e=t.nodeName.toLowerCase();a_.hasOwnProperty(e)&&!P0.hasOwnProperty(e)&&(this.buf.push(""))}chars(t){this.buf.push(B0(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 fL=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,mL=/([^\#-~ |!])/g;function B0(n){return n.replace(/&/g,"&").replace(fL,function(t){return"&#"+(1024*(t.charCodeAt(0)-55296)+(t.charCodeAt(1)-56320)+65536)+";"}).replace(mL,function(t){return"&#"+t.charCodeAt(0)+";"}).replace(//g,">")}let Xh;function j0(n,t){let e=null;try{Xh=Xh||function R0(n){const t=new lL(n);return function cL(){try{return!!(new window.DOMParser).parseFromString(ql(""),"text/html")}catch{return!1}}()?new aL(t):t}(n);let i=t?String(t):"";e=Xh.getInertBodyElement(i);let r=5,o=i;do{if(0===r)throw new Error("Failed to sanitize html because the input is unstable");r--,i=o,o=e.innerHTML,e=Xh.getInertBodyElement(i)}while(i!==o);return ql((new pL).sanitizeChildren(u_(e)||e))}finally{if(e){const i=u_(e)||e;for(;i.firstChild;)i.removeChild(i.firstChild)}}}function u_(n){return"content"in n&&function gL(n){return n.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===n.nodeName}(n)?n.content:null}var dn=(()=>((dn=dn||{})[dn.NONE=0]="NONE",dn[dn.HTML=1]="HTML",dn[dn.STYLE=2]="STYLE",dn[dn.SCRIPT=3]="SCRIPT",dn[dn.URL=4]="URL",dn[dn.RESOURCE_URL=5]="RESOURCE_URL",dn))();function En(n){const t=function ku(){const n=xe();return n&&n[12]}();return t?t.sanitize(dn.URL,n)||"":Po(n,"URL")?Dr(n):Iu(kt(n))}const V0=new me("ENVIRONMENT_INITIALIZER"),U0=new me("INJECTOR",-1),q0=new me("INJECTOR_DEF_TYPES");class z0{get(t,e=Eu){if(e===Eu){const i=new Error(`NullInjectorError: No provider for ${vn(t)}!`);throw i.name="NullInjectorError",i}return e}}function DL(...n){return{\u0275providers:G0(0,n)}}function G0(n,...t){const e=[],i=new Set;let r;return us(t,o=>{const s=o;d_(s,e,[],i)&&(r||(r=[]),r.push(s))}),void 0!==r&&W0(r,e),e}function W0(n,t){for(let e=0;e{t.push(o)})}}function d_(n,t,e,i){if(!(n=Et(n)))return!1;let r=null,o=Aw(n);const s=!o&&mn(n);if(o||s){if(s&&!s.standalone)return!1;r=n}else{const l=n.ngModule;if(o=Aw(l),!o)return!1;r=l}const a=i.has(r);if(s){if(a)return!1;if(i.add(r),s.dependencies){const l="function"==typeof s.dependencies?s.dependencies():s.dependencies;for(const c of l)d_(c,t,e,i)}}else{if(!o)return!1;{if(null!=o.imports&&!a){let c;i.add(r);try{us(o.imports,u=>{d_(u,t,e,i)&&(c||(c=[]),c.push(u))})}finally{}void 0!==c&&W0(c,t)}if(!a){const c=Ra(r)||(()=>new r);t.push({provide:r,useFactory:c,deps:un},{provide:q0,useValue:r,multi:!0},{provide:V0,useValue:()=>M(r),multi:!0})}const l=o.providers;null==l||a||us(l,u=>{t.push(u)})}}return r!==n&&void 0!==n.providers}const SL=_n({provide:String,useValue:_n});function h_(n){return null!==n&&"object"==typeof n&&SL in n}function La(n){return"function"==typeof n}const p_=new me("Set Injector scope."),ep={},TL={};let f_;function tp(){return void 0===f_&&(f_=new z0),f_}class Na{}class Y0 extends Na{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,g_(t,s=>this.processProvider(s)),this.records.set(U0,zl(void 0,this)),r.has("environment")&&this.records.set(Na,zl(void 0,this));const o=this.records.get(p_);null!=o&&"string"==typeof o.value&&this.scopes.add(o.value),this.injectorDefTypes=new Set(this.get(q0.multi,un,yt.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)}runInContext(t){this.assertNotDestroyed();const e=Vl(this),i=Fr(void 0);try{return t()}finally{Vl(e),Fr(i)}}get(t,e=Eu,i=yt.Default){this.assertNotDestroyed();const r=Vl(this),o=Fr(void 0);try{if(!(i&yt.SkipSelf)){let a=this.records.get(t);if(void 0===a){const l=function RL(n){return"function"==typeof n||"object"==typeof n&&n instanceof me}(t)&&Eg(t);a=l&&this.injectableDefInScope(l)?zl(m_(t),ep):null,this.records.set(t,a)}if(null!=a)return this.hydrate(t,a)}return(i&yt.Self?tp():this.parent).get(t,e=i&yt.Optional&&e===Eu?null:e)}catch(s){if("NullInjectorError"===s.name){if((s[Kh]=s[Kh]||[]).unshift(vn(t)),r)throw s;return function NP(n,t,e,i){const r=n[Kh];throw t[y0]&&r.unshift(t[y0]),n.message=function FP(n,t,e,i=null){n=n&&"\n"===n.charAt(0)&&"\u0275"==n.charAt(1)?n.slice(2):n;let r=vn(t);if(Array.isArray(t))r=t.map(vn).join(" -> ");else if("object"==typeof t){let o=[];for(let s in t)if(t.hasOwnProperty(s)){let a=t[s];o.push(s+":"+("string"==typeof a?JSON.stringify(a):vn(a)))}r=`{${o.join(", ")}}`}return`${e}${i?"("+i+")":""}[${r}]: ${n.replace(RP,"\n ")}`}("\n"+n.message,r,e,i),n.ngTokenPath=r,n[Kh]=null,n}(s,t,"R3InjectorError",this.source)}throw s}finally{Fr(o),Vl(r)}}resolveInjectorInitializers(){const t=Vl(this),e=Fr(void 0);try{const i=this.get(V0.multi,un,yt.Self);for(const r of i)r()}finally{Vl(t),Fr(e)}}toString(){const t=[],e=this.records;for(const i of e.keys())t.push(vn(i));return`R3Injector[${t.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new Te(205,!1)}processProvider(t){let e=La(t=Et(t))?t:Et(t&&t.provide);const i=function IL(n){return h_(n)?zl(void 0,n.useValue):zl(Q0(n),ep)}(t);if(La(t)||!0!==t.multi)this.records.get(e);else{let r=this.records.get(e);r||(r=zl(void 0,ep,!0),r.factory=()=>n_(r.multi),this.records.set(e,r)),e=t,r.multi.push(t)}this.records.set(e,i)}hydrate(t,e){return e.value===ep&&(e.value=TL,e.value=e.factory()),"object"==typeof e.value&&e.value&&function kL(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=Et(t.providedIn);return"string"==typeof e?"any"===e||this.scopes.has(e):this.injectorDefTypes.has(e)}}function m_(n){const t=Eg(n),e=null!==t?t.factory:Ra(n);if(null!==e)return e;if(n instanceof me)throw new Te(204,!1);if(n instanceof Function)return function xL(n){const t=n.length;if(t>0)throw wu(t,"?"),new Te(204,!1);const e=function EO(n){const t=n&&(n[xh]||n[Tw]);if(t){const e=function DO(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 Te(204,!1)}function Q0(n,t,e){let i;if(La(n)){const r=Et(n);return Ra(r)||m_(r)}if(h_(n))i=()=>Et(n.useValue);else if(function K0(n){return!(!n||!n.useFactory)}(n))i=()=>n.useFactory(...n_(n.deps||[]));else if(function $0(n){return!(!n||!n.useExisting)}(n))i=()=>M(Et(n.useExisting));else{const r=Et(n&&(n.useClass||n.provide));if(!function ML(n){return!!n.deps}(n))return Ra(r)||m_(r);i=()=>new r(...n_(n.deps))}return i}function zl(n,t,e=!1){return{factory:n,value:t,multi:e?[]:void 0}}function OL(n){return!!n.\u0275providers}function g_(n,t){for(const e of n)Array.isArray(e)?g_(e,t):OL(e)?g_(e.\u0275providers,t):t(e)}class J0{}class NL{resolveComponentFactory(t){throw function LL(n){const t=Error(`No component factory found for ${vn(n)}. Did you add it to @NgModule.entryComponents?`);return t.ngComponent=n,t}(t)}}let hs=(()=>{class n{}return n.NULL=new NL,n})();function FL(){return Gl(ri(),xe())}function Gl(n,t){return new Je(Hr(n,t))}let Je=(()=>{class n{constructor(e){this.nativeElement=e}}return n.__NG_ELEMENT_ID__=FL,n})();function BL(n){return n instanceof Je?n.nativeElement:n}class Ru{}let ho=(()=>{class n{}return n.__NG_ELEMENT_ID__=()=>function jL(){const n=xe(),e=Cr(ri().index,n);return(nr(e)?e:n)[11]}(),n})(),HL=(()=>{class n{}return n.\u0275prov=ge({token:n,providedIn:"root",factory:()=>null}),n})();class Fa{constructor(t){this.full=t,this.major=t.split(".")[0],this.minor=t.split(".")[1],this.patch=t.split(".").slice(2).join(".")}}const X0=new Fa("14.1.0"),__={};function w_(n){return n.ngOriginalError}class ps{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&&w_(t);for(;e&&w_(e);)e=w_(e);return e||null}}const E_=new Map;let XL=0;const S_="__ngContext__";function Ai(n,t){nr(t)?(n[S_]=t[20],function tN(n){E_.set(n[20],n)}(t)):n[S_]=t}function Ou(n){const t=n[S_];return"number"==typeof t?function rE(n){return E_.get(n)||null}(t):t||null}function A_(n){const t=Ou(n);return t?nr(t)?t:t.lView:null}const uN=(()=>(typeof requestAnimationFrame<"u"&&requestAnimationFrame||setTimeout).bind(gn))();function fs(n){return n instanceof Function?n():n}var ir=(()=>((ir=ir||{})[ir.Important=1]="Important",ir[ir.DashCase=2]="DashCase",ir))();function x_(n,t){return undefined(n,t)}function Pu(n){const t=n[3];return co(t)?t[3]:t}function I_(n){return hE(n[13])}function M_(n){return hE(n[4])}function hE(n){for(;null!==n&&!co(n);)n=n[4];return n}function $l(n,t,e,i,r){if(null!=i){let o,s=!1;co(i)?o=i:nr(i)&&(s=!0,i=i[0]);const a=Jn(i);0===n&&null!==e?null==r?vE(t,e,a):Ba(t,e,a,r||null,!0):1===n&&null!==e?Ba(t,e,a,r||null,!0):2===n?function SE(n,t,e){const i=np(n,t);i&&function xN(n,t,e,i){n.removeChild(t,e,i)}(n,i,t,e)}(t,a,s):3===n&&t.destroyNode(a),null!=o&&function kN(n,t,e,i,r){const o=e[7];o!==Jn(e)&&$l(t,n,i,o,r);for(let a=10;a0&&(n[e-1][4]=i[4]);const o=Wh(n,10+t);!function bN(n,t){Lu(n,t,t[11],2,null,null),t[0]=null,t[6]=null}(i[1],i);const s=o[19];null!==s&&s.detachView(o[1]),i[3]=null,i[4]=null,i[2]&=-65}return i}function mE(n,t){if(!(128&t[2])){const e=t[11];e.destroyNode&&Lu(n,t,e,3,null,null),function EN(n){let t=n[13];if(!t)return P_(n[1],n);for(;t;){let e=null;if(nr(t))e=t[13];else{const i=t[10];i&&(e=i)}if(!e){for(;t&&!t[4]&&t!==n;)nr(t)&&P_(t[1],t),t=t[3];null===t&&(t=n),nr(t)&&P_(t[1],t),e=t&&t[4]}t=e}}(t)}}function P_(n,t){if(!(128&t[2])){t[2]&=-65,t[2]|=128,function TN(n,t){let e;if(null!=n&&null!=(e=n.destroyHooks))for(let i=0;i=0?i[r=c]():i[r=-c].unsubscribe(),o+=2}else{const s=i[r=e[o+1]];e[o].call(s)}if(null!==i){for(let o=r+1;oo?"":r[d+1].toLowerCase();const m=8&i?h:null;if(m&&-1!==xE(m,c,0)||2&i&&c!==h){if(po(i))return!1;s=!0}}}}else{if(!s&&!po(i)&&!po(l))return!1;if(s&&po(l))continue;s=!1,i=l|1&i}}return po(i)||s}function po(n){return 0==(1&n)}function NN(n,t,e,i){if(null===t)return-1;let r=0;if(i||!e){let o=!1;for(;r-1)for(e++;e0?'="'+a+'"':"")+"]"}else 8&i?r+="."+s:4&i&&(r+=" "+s);else""!==r&&!po(s)&&(t+=RE(o,r),r=""),i=s,o=o||!po(i);e++}return""!==r&&(t+=RE(o,r)),t}const Rt={};function f(n){OE(en(),xe(),Wi()+n,!1)}function OE(n,t,e,i){if(!i)if(3==(3&t[2])){const o=n.preOrderCheckHooks;null!==o&&Bh(t,o,e)}else{const o=n.preOrderHooks;null!==o&&jh(t,o,0,e)}Xs(e)}function FE(n,t=null,e=null,i){const r=BE(n,t,e,i);return r.resolveInjectorInitializers(),r}function BE(n,t=null,e=null,i,r=new Set){const o=[e||un,DL(n)];return i=i||("object"==typeof n?void 0:vn(n)),new Y0(o,t||tp(),i||null,r)}let Vn=(()=>{class n{static create(e,i){if(Array.isArray(e))return FE({name:""},i,e,"");{const r=e.name??"";return FE({name:r},e.parent,e.providers,r)}}}return n.THROW_IF_NOT_FOUND=Eu,n.NULL=new z0,n.\u0275prov=ge({token:n,providedIn:"any",factory:()=>M(U0)}),n.__NG_ELEMENT_ID__=-1,n})();function p(n,t=yt.Default){const e=xe();return null===e?M(n,t):c0(ri(),e,Et(n),t)}function Yl(){throw new Error("invalid")}function sp(n,t){return n<<17|t<<2}function fo(n){return n>>17&32767}function q_(n){return 2|n}function ms(n){return(131068&n)>>2}function z_(n,t){return-131069&n|t<<2}function G_(n){return 1|n}function tD(n,t){const e=n.contentQueries;if(null!==e)for(let i=0;i22&&OE(n,t,22,!1),e(i,r)}finally{Xs(o)}}function iD(n,t,e){if(Mg(t)){const r=t.directiveEnd;for(let o=t.directiveStart;o0;){const e=n[--t];if("number"==typeof e&&e<0)return e}return 0})(a)!=l&&a.push(l),a.push(i,r,s)}}function uD(n,t){null!==n.hostBindings&&n.hostBindings(1,t)}function dD(n,t){t.flags|=2,(n.components||(n.components=[])).push(t.index)}function OF(n,t,e){if(e){if(t.exportAs)for(let i=0;i0&&sv(e)}}function sv(n){for(let i=I_(n);null!==i;i=M_(i))for(let r=10;r0&&sv(o)}const e=n[1].components;if(null!==e)for(let i=0;i0&&sv(r)}}function HF(n,t){const e=Cr(t,n),i=e[1];(function VF(n,t){for(let e=t.length;ePromise.resolve(null))();function _D(n){return n[7]||(n[7]=[])}function vD(n){return n.cleanup||(n.cleanup=[])}function yD(n,t,e){return(null===n||uo(n))&&(e=function qO(n){for(;Array.isArray(n);){if("object"==typeof n[1])return n;n=n[0]}return null}(e[t.index])),e[11]}function bD(n,t){const e=n[9],i=e?e.get(ps,null):null;i&&i.handleError(t)}function uv(n,t,e,i,r){for(let o=0;o-1&&(O_(t,i),Wh(e,i))}this._attachedToViewContainer=!1}mE(this._lView[1],this._lView)}onDestroy(t){oD(this._lView[1],this._lView,null,t)}markForCheck(){av(this._cdRefInjectingView||this._lView)}detach(){this._lView[2]&=-65}reattach(){this._lView[2]|=64}detectChanges(){!function lv(n,t,e){const i=t[10];i.begin&&i.begin();try{Nu(n,t,n.template,e)}catch(r){throw bD(t,r),r}finally{i.end&&i.end()}}(this._lView[1],this._lView,this.context)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new Te(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null,function wN(n,t){Lu(n,t,t[11],2,null,null)}(this._lView[1],this._lView)}attachToAppRef(t){if(this._attachedToViewContainer)throw new Te(902,!1);this._appRef=t}}class zF extends Fu{constructor(t){super(t),this._view=t}detectChanges(){gD(this._view)}checkNoChanges(){}get context(){return null}}class dv extends hs{constructor(t){super(),this.ngModule=t}resolveComponentFactory(t){const e=mn(t);return new Bu(e,this.ngModule)}}function CD(n){const t=[];for(let e in n)n.hasOwnProperty(e)&&t.push({propName:n[e],templateName:e});return t}class WF{constructor(t,e){this.injector=t,this.parentInjector=e}get(t,e,i){const r=this.injector.get(t,__,i);return r!==__||e===__?r:this.parentInjector.get(t,e,i)}}class Bu extends J0{constructor(t,e){super(),this.componentDef=t,this.ngModule=e,this.componentType=t.type,this.selector=function UN(n){return n.map(VN).join(",")}(t.selectors),this.ngContentSelectors=t.ngContentSelectors?t.ngContentSelectors:[],this.isBoundToModule=!!e}get inputs(){return CD(this.componentDef.inputs)}get outputs(){return CD(this.componentDef.outputs)}create(t,e,i,r){let o=(r=r||this.ngModule)instanceof Na?r:r?.injector;o&&null!==this.componentDef.getStandaloneInjector&&(o=this.componentDef.getStandaloneInjector(o)||o);const s=o?new WF(t,o):t,a=s.get(Ru,null);if(null===a)throw new Te(407,!1);const l=s.get(HL,null),c=a.createRenderer(null,this.componentDef),u=this.componentDef.selectors[0][0]||"div",d=i?function EF(n,t,e){return n.selectRootElement(t,e===ao.ShadowDom)}(c,i,this.componentDef.encapsulation):R_(a.createRenderer(null,this.componentDef),u,function GF(n){const t=n.toLowerCase();return"svg"===t?"svg":"math"===t?"math":null}(u)),h=this.componentDef.onPush?288:272,m=function JF(n,t){return{components:[],scheduler:n||uN,clean:qF,playerHandler:t||null,flags:0}}(),y=iv(0,null,null,1,0,null,null,null,null,null),A=cp(null,y,m,h,null,null,a,c,l,s,null);let U,te;qg(A);try{const Ee=function YF(n,t,e,i,r,o){const s=e[1];e[22]=n;const l=Ql(s,22,2,"#host",null),c=l.mergedAttrs=t.hostAttrs;null!==c&&(hp(l,c,!0),null!==n&&(Hh(r,n,c),null!==l.classes&&B_(r,n,l.classes),null!==l.styles&&TE(r,n,l.styles)));const u=i.createRenderer(n,t),d=cp(e,rD(t),null,t.onPush?32:16,e[22],l,i,u,o||null,null,null);return s.firstCreatePass&&(zh(vu(l,e),s,t.type),dD(s,l),hD(l,e.length,1)),dp(e,d),e[22]=d}(d,this.componentDef,A,a,c);if(d)if(i)Hh(c,d,["ng-version",X0.full]);else{const{attrs:ne,classes:Me}=function qN(n){const t=[],e=[];let i=1,r=2;for(;i0&&B_(c,d,Me.join(" "))}if(te=Lg(y,22),void 0!==e){const ne=te.projection=[];for(let Me=0;Me=0;i--){const r=n[i];r.hostVars=t+=r.hostVars,r.hostAttrs=Vh(r.hostAttrs,e=Vh(e,r.hostAttrs))}}(i)}function hv(n){return n===Sl?{}:n===un?[]:n}function e3(n,t){const e=n.viewQuery;n.viewQuery=e?(i,r)=>{t(i,r),e(i,r)}:t}function t3(n,t){const e=n.contentQueries;n.contentQueries=e?(i,r,o)=>{t(i,r,o),e(i,r,o)}:t}function n3(n,t){const e=n.hostBindings;n.hostBindings=e?(i,r)=>{t(i,r),e(i,r)}:t}let fp=null;function ja(){if(!fp){const n=gn.Symbol;if(n&&n.iterator)fp=n.iterator;else{const t=Object.getOwnPropertyNames(Map.prototype);for(let e=0;ea(Jn(at[i.index])):i.index;let Me=null;if(!a&&l&&(Me=function g3(n,t,e,i){const r=n.cleanup;if(null!=r)for(let o=0;ol?a[l]:null}"string"==typeof s&&(o+=2)}return null}(n,t,r,i.index)),null!==Me)(Me.__ngLastListenerFn__||Me).__ngNextListenerFn__=o,Me.__ngLastListenerFn__=o,m=!1;else{o=LD(i,t,d,o,!1);const at=e.listen(te,r,o);h.push(o,at),u&&u.push(r,ne,Ee,Ee+1)}}else o=LD(i,t,d,o,!1);const y=i.outputs;let A;if(m&&null!==y&&(A=y[r])){const U=A.length;if(U)for(let te=0;te0;)t=t[15],n--;return t}(n,It.lFrame.contextLView))[8]}(n)}function _3(n,t){let e=null;const i=function FN(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=0}const si={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function GD(n){return n.substring(si.key,si.keyEnd)}function WD(n,t){const e=si.textEnd;return e===t?-1:(t=si.keyEnd=function D3(n,t,e){for(;t32;)t++;return t}(n,si.key=t,e),ac(n,t,e))}function ac(n,t,e){for(;t=0;e=WD(t,e))Er(n,GD(t),!0)}function mo(n,t,e,i){const r=xe(),o=en(),s=cs(2);o.firstUpdatePass&&ZD(o,n,s,i),t!==Rt&&Ti(r,s,t)&&eS(o,o.data[Wi()],r,r[11],n,r[s+1]=function P3(n,t){return null==n||("string"==typeof t?n+=t:"object"==typeof n&&(n=vn(Dr(n)))),n}(t,e),i,s)}function go(n,t,e,i){const r=en(),o=cs(2);r.firstUpdatePass&&ZD(r,null,o,i);const s=xe();if(e!==Rt&&Ti(s,o,e)){const a=r.data[Wi()];if(nS(a,i)&&!JD(r,o)){let l=i?a.classesWithoutHost:a.stylesWithoutHost;null!==l&&(e=Cg(l,e||"")),fv(r,a,s,e,i)}else!function O3(n,t,e,i,r,o,s,a){r===Rt&&(r=un);let l=0,c=0,u=0=n.expandoStartIndex}function ZD(n,t,e,i){const r=n.data;if(null===r[e+1]){const o=r[Wi()],s=JD(n,e);nS(o,i)&&null===t&&!s&&(t=!1),t=function x3(n,t,e,i){const r=Vg(n);let o=i?t.residualClasses:t.residualStyles;if(null===r)0===(i?t.classBindings:t.styleBindings)&&(e=Uu(e=_v(null,n,t,e,i),t.attrs,i),o=null);else{const s=t.directiveStylingLast;if(-1===s||n[s]!==r)if(e=_v(r,n,t,e,i),null===o){let l=function I3(n,t,e){const i=e?t.classBindings:t.styleBindings;if(0!==ms(i))return n[fo(i)]}(n,t,i);void 0!==l&&Array.isArray(l)&&(l=_v(null,n,t,l[1],i),l=Uu(l,t.attrs,i),function M3(n,t,e,i){n[fo(e?t.classBindings:t.styleBindings)]=i}(n,t,i,l))}else o=function k3(n,t,e){let i;const r=t.directiveEnd;for(let o=1+t.directiveStylingLast;o0)&&(c=!0)}else u=e;if(r)if(0!==l){const h=fo(n[a+1]);n[i+1]=sp(h,a),0!==h&&(n[h+1]=z_(n[h+1],i)),n[a+1]=function lF(n,t){return 131071&n|t<<17}(n[a+1],i)}else n[i+1]=sp(a,0),0!==a&&(n[a+1]=z_(n[a+1],i)),a=i;else n[i+1]=sp(l,0),0===a?a=i:n[l+1]=z_(n[l+1],i),l=i;c&&(n[i+1]=q_(n[i+1])),zD(n,u,i,!0),zD(n,u,i,!1),function y3(n,t,e,i,r){const o=r?n.residualClasses:n.residualStyles;null!=o&&"string"==typeof t&&Hl(o,t)>=0&&(e[i+1]=G_(e[i+1]))}(t,u,n,i,o),s=sp(a,l),o?t.classBindings=s:t.styleBindings=s}(r,o,t,e,s,i)}}function _v(n,t,e,i,r){let o=null;const s=e.directiveEnd;let a=e.directiveStylingLast;for(-1===a?a=e.directiveStart:a++;a0;){const l=n[r],c=Array.isArray(l),u=c?l[1]:l,d=null===u;let h=e[r+1];h===Rt&&(h=d?un:void 0);let m=d?Xg(h,i):u===i?h:void 0;if(c&&!_p(m)&&(m=Xg(l,i)),_p(m)&&(a=m,s))return a;const y=n[r+1];r=s?fo(y):ms(y)}if(null!==t){let l=o?t.residualClasses:t.residualStyles;null!=l&&(a=Xg(l,i))}return a}function _p(n){return void 0!==n}function nS(n,t){return 0!=(n.flags&(t?16:32))}function j(n,t=""){const e=xe(),i=en(),r=n+22,o=i.firstCreatePass?Ql(i,r,1,t,null):i.data[r],s=e[r]=function k_(n,t){return n.createText(t)}(e[11],t);ip(i,e,s,o),Ro(o,!1)}function ve(n){return qe("",n,""),ve}function qe(n,t,e){const i=xe(),r=Xl(i,n,t,e);return r!==Rt&&gs(i,Wi(),r),qe}function zr(n,t,e,i,r){const o=xe(),s=ec(o,n,t,e,i,r);return s!==Rt&&gs(o,Wi(),s),zr}function Ho(n,t,e){const i=xe();return Ti(i,kl(),t)&&Sr(en(),Hn(),i,n,t,i[11],e,!0),Ho}function vp(n,t,e){const i=xe();if(Ti(i,kl(),t)){const o=en(),s=Hn();Sr(o,s,i,n,t,yD(Vg(o.data),s,i),e,!0)}return vp}const Va=void 0;var X3=["en",[["a","p"],["AM","PM"],Va],[["AM","PM"],Va,Va],[["S","M","T","W","T","F","S"],["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],["Su","Mo","Tu","We","Th","Fr","Sa"]],Va,[["J","F","M","A","M","J","J","A","S","O","N","D"],["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],["January","February","March","April","May","June","July","August","September","October","November","December"]],Va,[["B","A"],["BC","AD"],["Before Christ","Anno Domini"]],0,[6,0],["M/d/yy","MMM d, y","MMMM d, y","EEEE, MMMM d, y"],["h:mm a","h:mm:ss a","h:mm:ss a z","h:mm:ss a zzzz"],["{1}, {0}",Va,"{1} 'at' {0}",Va],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",function Z3(n){const e=Math.floor(Math.abs(n)),i=n.toString().replace(/^[^.]*\.?/,"").length;return 1===e&&0===i?1:5}];let lc={};function Ki(n){const t=function eB(n){return n.toLowerCase().replace(/_/g,"-")}(n);let e=CS(t);if(e)return e;const i=t.split("-")[0];if(e=CS(i),e)return e;if("en"===i)return X3;throw new Te(701,!1)}function CS(n){return n in lc||(lc[n]=gn.ng&&gn.ng.common&&gn.ng.common.locales&&gn.ng.common.locales[n]),lc[n]}var Qe=(()=>((Qe=Qe||{})[Qe.LocaleId=0]="LocaleId",Qe[Qe.DayPeriodsFormat=1]="DayPeriodsFormat",Qe[Qe.DayPeriodsStandalone=2]="DayPeriodsStandalone",Qe[Qe.DaysFormat=3]="DaysFormat",Qe[Qe.DaysStandalone=4]="DaysStandalone",Qe[Qe.MonthsFormat=5]="MonthsFormat",Qe[Qe.MonthsStandalone=6]="MonthsStandalone",Qe[Qe.Eras=7]="Eras",Qe[Qe.FirstDayOfWeek=8]="FirstDayOfWeek",Qe[Qe.WeekendRange=9]="WeekendRange",Qe[Qe.DateFormat=10]="DateFormat",Qe[Qe.TimeFormat=11]="TimeFormat",Qe[Qe.DateTimeFormat=12]="DateTimeFormat",Qe[Qe.NumberSymbols=13]="NumberSymbols",Qe[Qe.NumberFormats=14]="NumberFormats",Qe[Qe.CurrencyCode=15]="CurrencyCode",Qe[Qe.CurrencySymbol=16]="CurrencySymbol",Qe[Qe.CurrencyName=17]="CurrencyName",Qe[Qe.Currencies=18]="Currencies",Qe[Qe.Directionality=19]="Directionality",Qe[Qe.PluralCase=20]="PluralCase",Qe[Qe.ExtraData=21]="ExtraData",Qe))();const cc="en-US";let wS=cc;function bv(n,t,e,i,r){if(n=Et(n),Array.isArray(n))for(let o=0;o>20;if(La(n)||!n.multi){const m=new gu(l,r,p),y=wv(a,t,r?u:u+h,d);-1===y?(zh(vu(c,s),o,a),Cv(o,n,t.length),t.push(a),c.directiveStart++,c.directiveEnd++,r&&(c.providerIndexes+=1048576),e.push(m),s.push(m)):(e[y]=m,s[y]=m)}else{const m=wv(a,t,u+h,d),y=wv(a,t,u,u+h),A=m>=0&&e[m],U=y>=0&&e[y];if(r&&!U||!r&&!A){zh(vu(c,s),o,a);const te=function JB(n,t,e,i,r){const o=new gu(n,e,p);return o.multi=[],o.index=t,o.componentProviders=0,$S(o,r,i&&!e),o}(r?QB:YB,e.length,r,i,l);!r&&U&&(e[y].providerFactory=te),Cv(o,n,t.length,0),t.push(a),c.directiveStart++,c.directiveEnd++,r&&(c.providerIndexes+=1048576),e.push(te),s.push(te)}else Cv(o,n,m>-1?m:y,$S(e[r?y:m],l,!r&&i));!r&&i&&U&&e[y].componentProviders++}}}function Cv(n,t,e,i){const r=La(t),o=function AL(n){return!!n.useClass}(t);if(r||o){const l=(o?Et(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 $S(n,t,e){return e&&n.componentProviders++,n.multi.push(t)-1}function wv(n,t,e,i){for(let r=e;r{e.providersResolver=(i,r)=>function KB(n,t,e){const i=en();if(i.firstCreatePass){const r=uo(n);bv(e,i.data,i.blueprint,r,!0),bv(t,i.data,i.blueprint,r,!1)}}(i,r?r(n):n,t)}}class Ua{}class KS{}class YS extends Ua{constructor(t,e){super(),this._parent=e,this._bootstrapComponents=[],this.destroyCbs=[],this.componentFactoryResolver=new dv(this);const i=yr(t);this._bootstrapComponents=fs(i.bootstrap),this._r3Injector=BE(t,e,[{provide:Ua,useValue:this},{provide:hs,useValue:this.componentFactoryResolver}],vn(t),new Set(["environment"])),this._r3Injector.resolveInjectorInitializers(),this.instance=this._r3Injector.get(t)}get injector(){return this._r3Injector}destroy(){const t=this._r3Injector;!t.destroyed&&t.destroy(),this.destroyCbs.forEach(e=>e()),this.destroyCbs=null}onDestroy(t){this.destroyCbs.push(t)}}class Dv extends KS{constructor(t){super(),this.moduleType=t}create(t){return new YS(this.moduleType,t)}}class XB extends Ua{constructor(t,e,i){super(),this.componentFactoryResolver=new dv(this),this.instance=null;const r=new Y0([...t,{provide:Ua,useValue:this},{provide:hs,useValue:this.componentFactoryResolver}],e||tp(),i,new Set(["environment"]));this.injector=r,r.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(t){this.injector.onDestroy(t)}}function Tv(n,t,e){const i=Gi()+n,r=xe();return r[i]===Rt?Fo(r,i,e?t.call(e):t()):function Hu(n,t){return n[t]}(r,i)}function Wn(n,t,e,i){return iA(xe(),Gi(),n,t,e,i)}function nA(n,t,e,i,r){return function rA(n,t,e,i,r,o,s){const a=t+e;return Ha(n,a,r,o)?Fo(n,a+2,s?i.call(s,r,o):i(r,o)):$u(n,a+2)}(xe(),Gi(),n,t,e,i,r)}function Yi(n,t,e,i,r,o,s){return function sA(n,t,e,i,r,o,s,a,l){const c=t+e;return function Ur(n,t,e,i,r,o){const s=Ha(n,t,e,i);return Ha(n,t+2,r,o)||s}(n,c,r,o,s,a)?Fo(n,c+4,l?i.call(l,r,o,s,a):i(r,o,s,a)):$u(n,c+4)}(xe(),Gi(),n,t,e,i,r,o,s)}function $u(n,t){const e=n[t];return e===Rt?void 0:e}function iA(n,t,e,i,r,o){const s=t+e;return Ti(n,s,r)?Fo(n,s+1,o?i.call(o,r):i(r)):$u(n,s+1)}function Ze(n,t){const e=en();let i;const r=n+22;e.firstCreatePass?(i=function _5(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 o=i.factory||(i.factory=Ra(i.type)),s=Fr(p);try{const a=Uh(!1),l=o();return Uh(a),function p3(n,t,e,i){e>=n.data.length&&(n.data[e]=null,n.blueprint[e]=null),t[e]=i}(e,xe(),r,l),l}finally{Fr(s)}}function Xe(n,t,e){const i=n+22,r=xe(),o=Ml(r,i);return function Ku(n,t){return n[1].data[t].pure}(r,i)?iA(r,Gi(),t,o.transform,e,o):o.transform(e)}function xv(n){return t=>{setTimeout(n,void 0,t)}}const He=class w5 extends N{constructor(t=!1){super(),this.__isAsync=t}emit(t){super.next(t)}subscribe(t,e,i){let r=t,o=e||(()=>null),s=i;if(t&&"object"==typeof t){const l=t;r=l.next?.bind(l),o=l.error?.bind(l),s=l.complete?.bind(l)}this.__isAsync&&(o=xv(o),r&&(r=xv(r)),s&&(s=xv(s)));const a=super.subscribe({next:r,error:o,complete:s});return t instanceof E&&t.add(a),a}};function E5(){return this._results[ja()]()}class qa{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=ja(),i=qa.prototype;i[e]||(i[e]=E5)}get changes(){return this._changes||(this._changes=new He)}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=wr(t);(this._changesDetected=!function wP(n,t,e){if(n.length!==t.length)return!1;for(let i=0;i{class n{}return n.__NG_ELEMENT_ID__=A5,n})();const D5=yn,S5=class extends D5{constructor(t,e,i){super(),this._declarationLView=t,this._declarationTContainer=e,this.elementRef=i}createEmbeddedView(t,e){const i=this._declarationTContainer.tViews,r=cp(this._declarationLView,i,t,16,null,i.declTNode,null,null,null,null,e||null);r[17]=this._declarationLView[this._declarationTContainer.index];const s=this._declarationLView[19];return null!==s&&(r[19]=s.createEmbeddedView(i)),up(i,r,t),new Fu(r)}};function A5(){return Ep(ri(),xe())}function Ep(n,t){return 4&n.type?new S5(t,n,Gl(n,t)):null}let Dn=(()=>{class n{}return n.__NG_ELEMENT_ID__=T5,n})();function T5(){return uA(ri(),xe())}const x5=Dn,lA=class extends x5{constructor(t,e,i){super(),this._lContainer=t,this._hostTNode=e,this._hostLView=i}get element(){return Gl(this._hostTNode,this._hostLView)}get injector(){return new Ll(this._hostTNode,this._hostLView)}get parentInjector(){const t=qh(this._hostTNode,this._hostLView);if(r0(t)){const e=Pl(t,this._hostLView),i=Ol(t);return new Ll(e[1].data[i+8],e)}return new Ll(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(t){const e=cA(this._lContainer);return null!==e&&e[t]||null}get length(){return this._lContainer.length-10}createEmbeddedView(t,e,i){let r,o;"number"==typeof i?r=i:null!=i&&(r=i.index,o=i.injector);const s=t.createEmbeddedView(e||{},o);return this.insert(s,r),s}createComponent(t,e,i,r,o){const s=t&&!function Cu(n){return"function"==typeof n}(t);let a;if(s)a=e;else{const d=e||{};a=d.index,i=d.injector,r=d.projectableNodes,o=d.environmentInjector||d.ngModuleRef}const l=s?t:new Bu(mn(t)),c=i||this.parentInjector;if(!o&&null==l.ngModule){const h=(s?c:this.parentInjector).get(Na,null);h&&(o=h)}const u=l.create(c,r,void 0,o);return this.insert(u.hostView,a),u}insert(t,e){const i=t._lView,r=i[1];if(function GO(n){return co(n[3])}(i)){const u=this.indexOf(t);if(-1!==u)this.detach(u);else{const d=i[3],h=new lA(d,d[6],d[3]);h.detach(h.indexOf(t))}}const o=this._adjustIndex(e),s=this._lContainer;!function DN(n,t,e,i){const r=10+i,o=e.length;i>0&&(e[r-1][4]=t),i0)i.push(s[a/2]);else{const c=o[a+1],u=t[-l];for(let d=10;d{class n{constructor(e){this.appInits=e,this.resolve=Sp,this.reject=Sp,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{o.subscribe({complete:a,error:l})});e.push(s)}}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)(M(PA,8))},n.\u0275prov=ge({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const fc=new me("AppId",{providedIn:"root",factory:function LA(){return`${jv()}${jv()}${jv()}`}});function jv(){return String.fromCharCode(97+Math.floor(25*Math.random()))}const NA=new me("Platform Initializer"),Tp=new me("Platform ID",{providedIn:"platform",factory:()=>"unknown"}),n4=new me("appBootstrapListener"),qn=new me("AnimationModuleType");let r4=(()=>{class n{log(e){console.log(e)}warn(e){console.warn(e)}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=ge({token:n,factory:n.\u0275fac,providedIn:"platform"}),n})();const Vo=new me("LocaleId",{providedIn:"root",factory:()=>Oa(Vo,yt.Optional|yt.SkipSelf)||function o4(){return typeof $localize<"u"&&$localize.locale||cc}()});class a4{constructor(t,e){this.ngModuleFactory=t,this.componentFactories=e}}let FA=(()=>{class n{compileModuleSync(e){return new Dv(e)}compileModuleAsync(e){return Promise.resolve(this.compileModuleSync(e))}compileModuleAndAllComponentsSync(e){const i=this.compileModuleSync(e),o=fs(yr(e).declarations).reduce((s,a)=>{const l=mn(a);return l&&s.push(new Bu(l)),s},[]);return new a4(i,o)}compileModuleAndAllComponentsAsync(e){return Promise.resolve(this.compileModuleAndAllComponentsSync(e))}clearCache(){}clearCacheFor(e){}getModuleId(e){}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=ge({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const u4=(()=>Promise.resolve(0))();function Hv(n){typeof Zone>"u"?u4.then(()=>{n&&n.apply(null,null)}):Zone.current.scheduleMicroTask("scheduleMicrotask",n)}class et{constructor({enableLongStackTrace:t=!1,shouldCoalesceEventChangeDetection:e=!1,shouldCoalesceRunChangeDetection:i=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new He(!1),this.onMicrotaskEmpty=new He(!1),this.onStable=new He(!1),this.onError=new He(!1),typeof Zone>"u")throw new Te(908,!1);Zone.assertZonePatched();const r=this;if(r._nesting=0,r._outer=r._inner=Zone.current,Zone.AsyncStackTaggingZoneSpec){const o=Zone.AsyncStackTaggingZoneSpec;r._inner=r._inner.fork(new o("Angular"))}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 d4(){let n=gn.requestAnimationFrame,t=gn.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 f4(n){const t=()=>{!function p4(n){n.isCheckStableRunning||-1!==n.lastRequestAnimationFrameId||(n.lastRequestAnimationFrameId=n.nativeRequestAnimationFrame.call(gn,()=>{n.fakeTopEventTask||(n.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{n.lastRequestAnimationFrameId=-1,Uv(n),n.isCheckStableRunning=!0,Vv(n),n.isCheckStableRunning=!1},void 0,()=>{},()=>{})),n.fakeTopEventTask.invoke()}),Uv(n))}(n)};n._inner=n._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(e,i,r,o,s,a)=>{try{return HA(n),e.invokeTask(r,o,s,a)}finally{(n.shouldCoalesceEventChangeDetection&&"eventTask"===o.type||n.shouldCoalesceRunChangeDetection)&&t(),VA(n)}},onInvoke:(e,i,r,o,s,a,l)=>{try{return HA(n),e.invoke(r,o,s,a,l)}finally{n.shouldCoalesceRunChangeDetection&&t(),VA(n)}},onHasTask:(e,i,r,o)=>{e.hasTask(r,o),i===r&&("microTask"==o.change?(n._hasPendingMicrotasks=o.microTask,Uv(n),Vv(n)):"macroTask"==o.change&&(n.hasPendingMacrotasks=o.macroTask))},onHandleError:(e,i,r,o)=>(e.handleError(r,o),n.runOutsideAngular(()=>n.onError.emit(o)),!1)})}(r)}static isInAngularZone(){return typeof Zone<"u"&&!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!et.isInAngularZone())throw new Te(909,!1)}static assertNotInAngularZone(){if(et.isInAngularZone())throw new Te(909,!1)}run(t,e,i){return this._inner.run(t,e,i)}runTask(t,e,i,r){const o=this._inner,s=o.scheduleEventTask("NgZoneEvent: "+r,t,h4,Sp,Sp);try{return o.runTask(s,e,i)}finally{o.cancelTask(s)}}runGuarded(t,e,i){return this._inner.runGuarded(t,e,i)}runOutsideAngular(t){return this._outer.run(t)}}const h4={};function Vv(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 Uv(n){n.hasPendingMicrotasks=!!(n._hasPendingMicrotasks||(n.shouldCoalesceEventChangeDetection||n.shouldCoalesceRunChangeDetection)&&-1!==n.lastRequestAnimationFrameId)}function HA(n){n._nesting++,n.isStable&&(n.isStable=!1,n.onUnstable.emit(null))}function VA(n){n._nesting--,Vv(n)}class m4{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new He,this.onMicrotaskEmpty=new He,this.onStable=new He,this.onError=new He}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 UA=new me(""),xp=new me("");let Gv,qv=(()=>{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,Gv||(function g4(n){Gv=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:()=>{et.assertNotInAngularZone(),Hv(()=>{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())Hv(()=>{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 o=-1;i&&i>0&&(o=setTimeout(()=>{this._callbacks=this._callbacks.filter(s=>s.timeoutId!==o),e(this._didWork,this.getPendingTasks())},i)),this._callbacks.push({doneCb:e,timeoutId:o,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)(M(et),M(zv),M(xp))},n.\u0275prov=ge({token:n,factory:n.\u0275fac}),n})(),zv=(()=>{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 Gv?.findTestabilityInTree(this,e,i)??null}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=ge({token:n,factory:n.\u0275fac,providedIn:"platform"}),n})(),ia=null;const qA=new me("AllowMultipleToken"),Wv=new me("PlatformDestroyListeners");function GA(n,t,e=[]){const i=`Platform: ${t}`,r=new me(i);return(o=[])=>{let s=$v();if(!s||s.injector.get(qA,!1)){const a=[...e,...o,{provide:r,useValue:!0}];n?n(a):function y4(n){if(ia&&!ia.get(qA,!1))throw new Te(400,!1);ia=n;const t=n.get($A);(function zA(n){const t=n.get(NA,null);t&&t.forEach(e=>e())})(n)}(function WA(n=[],t){return Vn.create({name:t,providers:[{provide:p_,useValue:"platform"},{provide:Wv,useValue:new Set([()=>ia=null])},...n]})}(a,i))}return function C4(n){const t=$v();if(!t)throw new Te(401,!1);return t}()}}function $v(){return ia?.get($A)??null}let $A=(()=>{class n{constructor(e){this._injector=e,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(e,i){const r=function w4(n,t){let e;return e="noop"===n?new m4:("zone.js"===n?void 0:n)||new et(t),e}(i?.ngZone,function KA(n){return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:!(!n||!n.ngZoneEventCoalescing)||!1,shouldCoalesceRunChangeDetection:!(!n||!n.ngZoneRunCoalescing)||!1}}(i)),o=[{provide:et,useValue:r}];return r.run(()=>{const s=Vn.create({providers:o,parent:this.injector,name:e.moduleType.name}),a=e.create(s),l=a.injector.get(ps,null);if(!l)throw new Te(402,!1);return r.runOutsideAngular(()=>{const c=r.onError.subscribe({next:u=>{l.handleError(u)}});a.onDestroy(()=>{Ip(this._modules,a),c.unsubscribe()})}),function YA(n,t,e){try{const i=e();return Vu(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(Ap);return c.runInitializers(),c.donePromise.then(()=>(function ES(n){vr(n,"Expected localeId to be defined"),"string"==typeof n&&(wS=n.toLowerCase().replace(/_/g,"-"))}(a.injector.get(Vo,cc)||cc),this._moduleDoBootstrap(a),a))})})}bootstrapModule(e,i=[]){const r=QA({},i);return function _4(n,t,e){const i=new Dv(e);return Promise.resolve(i)}(0,0,e).then(o=>this.bootstrapModuleFactory(o,r))}_moduleDoBootstrap(e){const i=e.injector.get(Qu);if(e._bootstrapComponents.length>0)e._bootstrapComponents.forEach(r=>i.bootstrap(r));else{if(!e.instance.ngDoBootstrap)throw new Te(403,!1);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 Te(404,!1);this._modules.slice().forEach(i=>i.destroy()),this._destroyListeners.forEach(i=>i());const e=this._injector.get(Wv,null);e&&(e.forEach(i=>i()),e.clear()),this._destroyed=!0}get destroyed(){return this._destroyed}}return n.\u0275fac=function(e){return new(e||n)(M(Vn))},n.\u0275prov=ge({token:n,factory:n.\u0275fac,providedIn:"platform"}),n})();function QA(n,t){return Array.isArray(t)?t.reduce(QA,n):{...n,...t}}let Qu=(()=>{class n{constructor(e,i,r){this._zone=e,this._injector=i,this._exceptionHandler=r,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 b(a=>{this._stable=this._zone.isStable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks,this._zone.runOutsideAngular(()=>{a.next(this._stable),a.complete()})}),s=new b(a=>{let l;this._zone.runOutsideAngular(()=>{l=this._zone.onStable.subscribe(()=>{et.assertNotInAngularZone(),Hv(()=>{!this._stable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks&&(this._stable=!0,a.next(!0))})})});const c=this._zone.onUnstable.subscribe(()=>{et.assertInAngularZone(),this._stable&&(this._stable=!1,this._zone.runOutsideAngular(()=>{a.next(!1)}))});return()=>{l.unsubscribe(),c.unsubscribe()}});this.isStable=On(o,s.pipe(Dw()))}get destroyed(){return this._destroyed}get injector(){return this._injector}bootstrap(e,i){const r=e instanceof J0;if(!this._injector.get(Ap).done)throw!r&&function hc(n){const t=mn(n)||qi(n)||zi(n);return null!==t&&t.standalone}(e),new Te(405,false);let s;s=r?e:this._injector.get(hs).resolveComponentFactory(e),this.componentTypes.push(s.componentType);const a=function v4(n){return n.isBoundToModule}(s)?void 0:this._injector.get(Ua),c=s.create(Vn.NULL,[],i||s.selector,a),u=c.location.nativeElement,d=c.injector.get(UA,null);return d?.registerApplication(u),c.onDestroy(()=>{this.detachView(c.hostView),Ip(this.components,c),d?.unregisterApplication(u)}),this._loadComponent(c),c}tick(){if(this._runningTick)throw new Te(101,!1);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;Ip(this._views,i),i.detachFromAppRef()}_loadComponent(e){this.attachView(e.hostView),this.tick(),this.components.push(e),this._injector.get(n4,[]).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),()=>Ip(this._destroyListeners,e)}destroy(){if(this._destroyed)throw new Te(406,!1);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)(M(et),M(Na),M(ps))},n.\u0275prov=ge({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();function Ip(n,t){const e=n.indexOf(t);e>-1&&n.splice(e,1)}let ZA=!0,St=(()=>{class n{}return n.__NG_ELEMENT_ID__=S4,n})();function S4(n){return function A4(n,t,e){if(Oh(n)&&!e){const i=Cr(n.index,t);return new Fu(i,i)}return 47&n.type?new Fu(t[16],t):null}(ri(),xe(),16==(16&n))}class iT{constructor(){}supports(t){return ju(t)}create(t){return new R4(t)}}const k4=(n,t)=>t;class R4{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||k4}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,o=null;for(;e||i;){const s=!i||e&&e.currentIndex{s=this._trackByFn(r,a),null!==e&&Object.is(e.trackById,s)?(i&&(e=this._verifyReinsertion(e,a,s,r)),Object.is(e.item,a)||this._addIdentityChange(e,a)):(e=this._mismatch(e,a,s,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 o;return null===t?o=this._itTail:(o=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,o,r)):null!==(t=null===this._linkedRecords?null:this._linkedRecords.get(i,r))?(Object.is(t.item,e)||this._addIdentityChange(t,e),this._moveAfter(t,o,r)):t=this._addAfter(new O4(e,i),o,r),t}_verifyReinsertion(t,e,i,r){let o=null===this._unlinkedRecords?null:this._unlinkedRecords.get(i,null);return null!==o?t=this._reinsertAfter(o,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,o=t._nextRemoved;return null===r?this._removalsHead=o:r._nextRemoved=o,null===o?this._removalsTail=r:o._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 rT),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 rT),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 O4{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 P4{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 rT{constructor(){this.map=new Map}put(t){const e=t.trackById;let i=this.map.get(e);i||(i=new P4,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 oT(n,t,e){const i=n.previousIndex;if(null===i)return i;let r=0;return e&&i{if(e&&e.key===r)this._maybeAddToChanges(e,i),this._appendAfter=e,e=e._next;else{const o=this._getOrCreateRecordForKey(r,i);e=this._insertBeforeOrAppend(e,o)}}),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 o=r._prev,s=r._next;return o&&(o._next=s),s&&(s._prev=o),r._next=null,r._prev=null,r}const i=new N4(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 N4{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 aT(){return new ys([new iT])}let ys=(()=>{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||aT()),deps:[[n,new Au,new ds]]}}find(e){const i=this.factories.find(r=>r.supports(e));if(null!=i)return i;throw new Te(901,!1)}}return n.\u0275prov=ge({token:n,providedIn:"root",factory:aT}),n})();function lT(){return new Ju([new sT])}let Ju=(()=>{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||lT()),deps:[[n,new Au,new ds]]}}find(e){const i=this.factories.find(r=>r.supports(e));if(i)return i;throw new Te(901,!1)}}return n.\u0275prov=ge({token:n,providedIn:"root",factory:lT}),n})();const j4=GA(null,"core",[]);let H4=(()=>{class n{constructor(e){}}return n.\u0275fac=function(e){return new(e||n)(M(Qu))},n.\u0275mod=ht({type:n}),n.\u0275inj=dt({}),n})();let Rp=null;function Uo(){return Rp}const ft=new me("DocumentToken");let Zv=(()=>{class n{historyGo(e){throw new Error("Not implemented")}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=ge({token:n,factory:function(){return function z4(){return M(cT)}()},providedIn:"platform"}),n})(),cT=(()=>{class n extends Zv{constructor(e){super(),this._doc=e,this._init()}_init(){this.location=window.location,this._history=window.history}getBaseHrefFromDOM(){return Uo().getBaseHref(this._doc)}onPopState(e){const i=Uo().getGlobalEventTarget(this._doc,"window");return i.addEventListener("popstate",e,!1),()=>i.removeEventListener("popstate",e)}onHashChange(e){const i=Uo().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){uT()?this._history.pushState(e,i,r):this.location.hash=r}replaceState(e,i,r){uT()?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)(M(ft))},n.\u0275prov=ge({token:n,factory:function(){return function G4(){return new cT(M(ft))}()},providedIn:"platform"}),n})();function uT(){return!!window.history.pushState}function dT(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 hT(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 Ga(n){return n&&"?"!==n[0]?"?"+n:n}let Op=(()=>{class n{historyGo(e){throw new Error("Not implemented")}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=ge({token:n,factory:function(){return function W4(){const n=M(ft).location;return new K4(M(Zv),n&&n.origin||"")}()},providedIn:"root"}),n})();const $4=new me("appBaseHref");let K4=(()=>{class n extends Op{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 dT(this._baseHref,e)}path(e=!1){const i=this._platformLocation.pathname+Ga(this._platformLocation.search),r=this._platformLocation.hash;return r&&e?`${i}${r}`:i}pushState(e,i,r,o){const s=this.prepareExternalUrl(r+Ga(o));this._platformLocation.pushState(e,i,s)}replaceState(e,i,r,o){const s=this.prepareExternalUrl(r+Ga(o));this._platformLocation.replaceState(e,i,s)}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)(M(Zv),M($4,8))},n.\u0275prov=ge({token:n,factory:n.\u0275fac}),n})(),Wa=(()=>{class n{constructor(e){this._subject=new He,this._urlChangeListeners=[],this._urlChangeSubscription=null,this._locationStrategy=e;const i=this._locationStrategy.getBaseHref();this._baseHref=hT(pT(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+Ga(i))}normalize(e){return n.stripTrailingSlash(function Q4(n,t){return n&&t.startsWith(n)?t.substring(n.length):t}(this._baseHref,pT(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+Ga(i)),r)}replaceState(e,i="",r=null){this._locationStrategy.replaceState(r,"",e,i),this._notifyUrlChangeListeners(this.prepareExternalUrl(e+Ga(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=Ga,n.joinWithSlash=dT,n.stripTrailingSlash=hT,n.\u0275fac=function(e){return new(e||n)(M(Op))},n.\u0275prov=ge({token:n,factory:function(){return function Y4(){return new Wa(M(Op))}()},providedIn:"root"}),n})();function pT(n){return n.replace(/\/index.html$/,"")}var $n=(()=>(($n=$n||{})[$n.Format=0]="Format",$n[$n.Standalone=1]="Standalone",$n))(),Qt=(()=>((Qt=Qt||{})[Qt.Narrow=0]="Narrow",Qt[Qt.Abbreviated=1]="Abbreviated",Qt[Qt.Wide=2]="Wide",Qt[Qt.Short=3]="Short",Qt))(),Ln=(()=>((Ln=Ln||{})[Ln.Short=0]="Short",Ln[Ln.Medium=1]="Medium",Ln[Ln.Long=2]="Long",Ln[Ln.Full=3]="Full",Ln))(),mt=(()=>((mt=mt||{})[mt.Decimal=0]="Decimal",mt[mt.Group=1]="Group",mt[mt.List=2]="List",mt[mt.PercentSign=3]="PercentSign",mt[mt.PlusSign=4]="PlusSign",mt[mt.MinusSign=5]="MinusSign",mt[mt.Exponential=6]="Exponential",mt[mt.SuperscriptingExponent=7]="SuperscriptingExponent",mt[mt.PerMille=8]="PerMille",mt[mt.Infinity=9]="Infinity",mt[mt.NaN=10]="NaN",mt[mt.TimeSeparator=11]="TimeSeparator",mt[mt.CurrencyDecimal=12]="CurrencyDecimal",mt[mt.CurrencyGroup=13]="CurrencyGroup",mt))();function Pp(n,t){return Wr(Ki(n)[Qe.DateFormat],t)}function Lp(n,t){return Wr(Ki(n)[Qe.TimeFormat],t)}function Np(n,t){return Wr(Ki(n)[Qe.DateTimeFormat],t)}function Gr(n,t){const e=Ki(n),i=e[Qe.NumberSymbols][t];if(typeof i>"u"){if(t===mt.CurrencyDecimal)return e[Qe.NumberSymbols][mt.Decimal];if(t===mt.CurrencyGroup)return e[Qe.NumberSymbols][mt.Group]}return i}function mT(n){if(!n[Qe.ExtraData])throw new Error(`Missing extra locale data for the locale "${n[Qe.LocaleId]}". Use "registerLocaleData" to load new data. See the "I18n guide" on angular.io to know more.`)}function Wr(n,t){for(let e=t;e>-1;e--)if(typeof n[e]<"u")return n[e];throw new Error("Locale data API: locale data undefined")}function ey(n){const[t,e]=n.split(":");return{hours:+t,minutes:+e}}const cj=/^(\d{4,})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/,Zu={},uj=/((?:[^BEGHLMOSWYZabcdhmswyz']+)|(?:'(?:[^']|'')*')|(?:G{1,5}|y{1,4}|Y{1,4}|M{1,5}|L{1,5}|w{1,2}|W{1}|d{1,2}|E{1,6}|c{1,6}|a{1,5}|b{1,5}|B{1,5}|h{1,2}|H{1,2}|m{1,2}|s{1,2}|S{1,3}|z{1,4}|Z{1,5}|O{1,4}))([\s\S]*)/;var ai=(()=>((ai=ai||{})[ai.Short=0]="Short",ai[ai.ShortGMT=1]="ShortGMT",ai[ai.Long=2]="Long",ai[ai.Extended=3]="Extended",ai))(),Ct=(()=>((Ct=Ct||{})[Ct.FullYear=0]="FullYear",Ct[Ct.Month=1]="Month",Ct[Ct.Date=2]="Date",Ct[Ct.Hours=3]="Hours",Ct[Ct.Minutes=4]="Minutes",Ct[Ct.Seconds=5]="Seconds",Ct[Ct.FractionalSeconds=6]="FractionalSeconds",Ct[Ct.Day=7]="Day",Ct))(),Ht=(()=>((Ht=Ht||{})[Ht.DayPeriods=0]="DayPeriods",Ht[Ht.Days=1]="Days",Ht[Ht.Months=2]="Months",Ht[Ht.Eras=3]="Eras",Ht))();function gT(n,t,e,i){let r=function yj(n){if(yT(n))return n;if("number"==typeof n&&!isNaN(n))return new Date(n);if("string"==typeof n){if(n=n.trim(),/^(\d{4}(-\d{1,2}(-\d{1,2})?)?)$/.test(n)){const[r,o=1,s=1]=n.split("-").map(a=>+a);return Fp(r,o-1,s)}const e=parseFloat(n);if(!isNaN(n-e))return new Date(e);let i;if(i=n.match(cj))return function bj(n){const t=new Date(0);let e=0,i=0;const r=n[8]?t.setUTCFullYear:t.setFullYear,o=n[8]?t.setUTCHours:t.setHours;n[9]&&(e=Number(n[9]+n[10]),i=Number(n[9]+n[11])),r.call(t,Number(n[1]),Number(n[2])-1,Number(n[3]));const s=Number(n[4]||0)-e,a=Number(n[5]||0)-i,l=Number(n[6]||0),c=Math.floor(1e3*parseFloat("0."+(n[7]||0)));return o.call(t,s,a,l,c),t}(i)}const t=new Date(n);if(!yT(t))throw new Error(`Unable to convert "${n}" into a date`);return t}(n);t=Cs(e,t)||t;let a,s=[];for(;t;){if(a=uj.exec(t),!a){s.push(t);break}{s=s.concat(a.slice(1));const u=s.pop();if(!u)break;t=u}}let l=r.getTimezoneOffset();i&&(l=vT(i,l),r=function vj(n,t,e){const i=e?-1:1,r=n.getTimezoneOffset();return function _j(n,t){return(n=new Date(n.getTime())).setMinutes(n.getMinutes()+t),n}(n,i*(vT(t,r)-r))}(r,i,!0));let c="";return s.forEach(u=>{const d=function gj(n){if(ny[n])return ny[n];let t;switch(n){case"G":case"GG":case"GGG":t=An(Ht.Eras,Qt.Abbreviated);break;case"GGGG":t=An(Ht.Eras,Qt.Wide);break;case"GGGGG":t=An(Ht.Eras,Qt.Narrow);break;case"y":t=Xn(Ct.FullYear,1,0,!1,!0);break;case"yy":t=Xn(Ct.FullYear,2,0,!0,!0);break;case"yyy":t=Xn(Ct.FullYear,3,0,!1,!0);break;case"yyyy":t=Xn(Ct.FullYear,4,0,!1,!0);break;case"Y":t=Vp(1);break;case"YY":t=Vp(2,!0);break;case"YYY":t=Vp(3);break;case"YYYY":t=Vp(4);break;case"M":case"L":t=Xn(Ct.Month,1,1);break;case"MM":case"LL":t=Xn(Ct.Month,2,1);break;case"MMM":t=An(Ht.Months,Qt.Abbreviated);break;case"MMMM":t=An(Ht.Months,Qt.Wide);break;case"MMMMM":t=An(Ht.Months,Qt.Narrow);break;case"LLL":t=An(Ht.Months,Qt.Abbreviated,$n.Standalone);break;case"LLLL":t=An(Ht.Months,Qt.Wide,$n.Standalone);break;case"LLLLL":t=An(Ht.Months,Qt.Narrow,$n.Standalone);break;case"w":t=ty(1);break;case"ww":t=ty(2);break;case"W":t=ty(1,!0);break;case"d":t=Xn(Ct.Date,1);break;case"dd":t=Xn(Ct.Date,2);break;case"c":case"cc":t=Xn(Ct.Day,1);break;case"ccc":t=An(Ht.Days,Qt.Abbreviated,$n.Standalone);break;case"cccc":t=An(Ht.Days,Qt.Wide,$n.Standalone);break;case"ccccc":t=An(Ht.Days,Qt.Narrow,$n.Standalone);break;case"cccccc":t=An(Ht.Days,Qt.Short,$n.Standalone);break;case"E":case"EE":case"EEE":t=An(Ht.Days,Qt.Abbreviated);break;case"EEEE":t=An(Ht.Days,Qt.Wide);break;case"EEEEE":t=An(Ht.Days,Qt.Narrow);break;case"EEEEEE":t=An(Ht.Days,Qt.Short);break;case"a":case"aa":case"aaa":t=An(Ht.DayPeriods,Qt.Abbreviated);break;case"aaaa":t=An(Ht.DayPeriods,Qt.Wide);break;case"aaaaa":t=An(Ht.DayPeriods,Qt.Narrow);break;case"b":case"bb":case"bbb":t=An(Ht.DayPeriods,Qt.Abbreviated,$n.Standalone,!0);break;case"bbbb":t=An(Ht.DayPeriods,Qt.Wide,$n.Standalone,!0);break;case"bbbbb":t=An(Ht.DayPeriods,Qt.Narrow,$n.Standalone,!0);break;case"B":case"BB":case"BBB":t=An(Ht.DayPeriods,Qt.Abbreviated,$n.Format,!0);break;case"BBBB":t=An(Ht.DayPeriods,Qt.Wide,$n.Format,!0);break;case"BBBBB":t=An(Ht.DayPeriods,Qt.Narrow,$n.Format,!0);break;case"h":t=Xn(Ct.Hours,1,-12);break;case"hh":t=Xn(Ct.Hours,2,-12);break;case"H":t=Xn(Ct.Hours,1);break;case"HH":t=Xn(Ct.Hours,2);break;case"m":t=Xn(Ct.Minutes,1);break;case"mm":t=Xn(Ct.Minutes,2);break;case"s":t=Xn(Ct.Seconds,1);break;case"ss":t=Xn(Ct.Seconds,2);break;case"S":t=Xn(Ct.FractionalSeconds,1);break;case"SS":t=Xn(Ct.FractionalSeconds,2);break;case"SSS":t=Xn(Ct.FractionalSeconds,3);break;case"Z":case"ZZ":case"ZZZ":t=jp(ai.Short);break;case"ZZZZZ":t=jp(ai.Extended);break;case"O":case"OO":case"OOO":case"z":case"zz":case"zzz":t=jp(ai.ShortGMT);break;case"OOOO":case"ZZZZ":case"zzzz":t=jp(ai.Long);break;default:return null}return ny[n]=t,t}(u);c+=d?d(r,e,l):"''"===u?"'":u.replace(/(^'|'$)/g,"").replace(/''/g,"'")}),c}function Fp(n,t,e){const i=new Date(0);return i.setFullYear(n,t,e),i.setHours(0,0,0),i}function Cs(n,t){const e=function J4(n){return Ki(n)[Qe.LocaleId]}(n);if(Zu[e]=Zu[e]||{},Zu[e][t])return Zu[e][t];let i="";switch(t){case"shortDate":i=Pp(n,Ln.Short);break;case"mediumDate":i=Pp(n,Ln.Medium);break;case"longDate":i=Pp(n,Ln.Long);break;case"fullDate":i=Pp(n,Ln.Full);break;case"shortTime":i=Lp(n,Ln.Short);break;case"mediumTime":i=Lp(n,Ln.Medium);break;case"longTime":i=Lp(n,Ln.Long);break;case"fullTime":i=Lp(n,Ln.Full);break;case"short":const r=Cs(n,"shortTime"),o=Cs(n,"shortDate");i=Bp(Np(n,Ln.Short),[r,o]);break;case"medium":const s=Cs(n,"mediumTime"),a=Cs(n,"mediumDate");i=Bp(Np(n,Ln.Medium),[s,a]);break;case"long":const l=Cs(n,"longTime"),c=Cs(n,"longDate");i=Bp(Np(n,Ln.Long),[l,c]);break;case"full":const u=Cs(n,"fullTime"),d=Cs(n,"fullDate");i=Bp(Np(n,Ln.Full),[u,d])}return i&&(Zu[e][t]=i),i}function Bp(n,t){return t&&(n=n.replace(/\{([^}]+)}/g,function(e,i){return null!=t&&i in t?t[i]:e})),n}function vo(n,t,e="-",i,r){let o="";(n<0||r&&n<=0)&&(r?n=1-n:(n=-n,o=e));let s=String(n);for(;s.length0||a>-e)&&(a+=e),n===Ct.Hours)0===a&&-12===e&&(a=12);else if(n===Ct.FractionalSeconds)return function dj(n,t){return vo(n,3).substring(0,t)}(a,t);const l=Gr(s,mt.MinusSign);return vo(a,t,l,i,r)}}function An(n,t,e=$n.Format,i=!1){return function(r,o){return function pj(n,t,e,i,r,o){switch(e){case Ht.Months:return function ej(n,t,e){const i=Ki(n),o=Wr([i[Qe.MonthsFormat],i[Qe.MonthsStandalone]],t);return Wr(o,e)}(t,r,i)[n.getMonth()];case Ht.Days:return function X4(n,t,e){const i=Ki(n),o=Wr([i[Qe.DaysFormat],i[Qe.DaysStandalone]],t);return Wr(o,e)}(t,r,i)[n.getDay()];case Ht.DayPeriods:const s=n.getHours(),a=n.getMinutes();if(o){const c=function rj(n){const t=Ki(n);return mT(t),(t[Qe.ExtraData][2]||[]).map(i=>"string"==typeof i?ey(i):[ey(i[0]),ey(i[1])])}(t),u=function oj(n,t,e){const i=Ki(n);mT(i);const o=Wr([i[Qe.ExtraData][0],i[Qe.ExtraData][1]],t)||[];return Wr(o,e)||[]}(t,r,i),d=c.findIndex(h=>{if(Array.isArray(h)){const[m,y]=h,A=s>=m.hours&&a>=m.minutes,U=s0?Math.floor(r/60):Math.ceil(r/60);switch(n){case ai.Short:return(r>=0?"+":"")+vo(s,2,o)+vo(Math.abs(r%60),2,o);case ai.ShortGMT:return"GMT"+(r>=0?"+":"")+vo(s,1,o);case ai.Long:return"GMT"+(r>=0?"+":"")+vo(s,2,o)+":"+vo(Math.abs(r%60),2,o);case ai.Extended:return 0===i?"Z":(r>=0?"+":"")+vo(s,2,o)+":"+vo(Math.abs(r%60),2,o);default:throw new Error(`Unknown zone width "${n}"`)}}}function _T(n){return Fp(n.getFullYear(),n.getMonth(),n.getDate()+(4-n.getDay()))}function ty(n,t=!1){return function(e,i){let r;if(t){const o=new Date(e.getFullYear(),e.getMonth(),1).getDay()-1,s=e.getDate();r=1+Math.floor((s+o)/7)}else{const o=_T(e),s=function mj(n){const t=Fp(n,0,1).getDay();return Fp(n,0,1+(t<=4?4:11)-t)}(o.getFullYear()),a=o.getTime()-s.getTime();r=1+Math.round(a/6048e5)}return vo(r,n,Gr(i,mt.MinusSign))}}function Vp(n,t=!1){return function(e,i){return vo(_T(e).getFullYear(),n,Gr(i,mt.MinusSign),t)}}const ny={};function vT(n,t){n=n.replace(/:/g,"");const e=Date.parse("Jan 01, 1970 00:00:00 "+n)/6e4;return isNaN(e)?t:e}function yT(n){return n instanceof Date&&!isNaN(n.valueOf())}function ET(n,t){t=encodeURIComponent(t);for(const e of n.split(";")){const i=e.indexOf("="),[r,o]=-1==i?[e,""]:[e.slice(0,i),e.slice(i+1)];if(r.trim()===t)return decodeURIComponent(o)}return null}let $a=(()=>{class n{constructor(e,i,r,o){this._iterableDiffers=e,this._keyValueDiffers=i,this._ngEl=r,this._renderer=o,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&&(ju(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 ${vn(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)(p(ys),p(Ju),p(Je),p(ho))},n.\u0275dir=fe({type:n,selectors:[["","ngClass",""]],inputs:{klass:["class","klass"],ngClass:"ngClass"},standalone:!0}),n})();class Oj{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 zn=(()=>{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,o,s)=>{if(null==r.previousIndex)i.createEmbeddedView(this._template,new Oj(r.item,this._ngForOf,-1,-1),null===s?void 0:s);else if(null==s)i.remove(null===o?void 0:o);else if(null!==o){const a=i.get(o);i.move(a,s),AT(a,r)}});for(let r=0,o=i.length;r{AT(i.get(r.currentIndex),r)})}static ngTemplateContextGuard(e,i){return!0}}return n.\u0275fac=function(e){return new(e||n)(p(Dn),p(yn),p(ys))},n.\u0275dir=fe({type:n,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"},standalone:!0}),n})();function AT(n,t){n.context.$implicit=t.item}let pn=(()=>{class n{constructor(e,i){this._viewContainer=e,this._context=new Lj,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){TT("ngIfThen",e),this._thenTemplateRef=e,this._thenViewRef=null,this._updateView()}set ngIfElse(e){TT("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)(p(Dn),p(yn))},n.\u0275dir=fe({type:n,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"},standalone:!0}),n})();class Lj{constructor(){this.$implicit=null,this.ngIf=null}}function TT(n,t){if(t&&!t.createEmbeddedView)throw new Error(`${n} must be a TemplateRef, but received '${vn(t)}'.`)}class ly{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 mc=(()=>{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{class n{constructor(e,i,r){this.ngSwitch=r,r._addCase(),this._view=new ly(e,i)}ngDoCheck(){this._view.enforceState(this.ngSwitch._matchCase(this.ngSwitchCase))}}return n.\u0275fac=function(e){return new(e||n)(p(Dn),p(yn),p(mc,9))},n.\u0275dir=fe({type:n,selectors:[["","ngSwitchCase",""]],inputs:{ngSwitchCase:"ngSwitchCase"},standalone:!0}),n})(),xT=(()=>{class n{constructor(e,i,r){r._addDefault(new ly(e,i))}}return n.\u0275fac=function(e){return new(e||n)(p(Dn),p(yn),p(mc,9))},n.\u0275dir=fe({type:n,selectors:[["","ngSwitchDefault",""]],standalone:!0}),n})(),ra=(()=>{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,o]=e.split("."),s=-1===r.indexOf("-")?void 0:ir.DashCase;null!=i?this._renderer.setStyle(this._ngEl.nativeElement,r,o?`${i}${o}`:i,s):this._renderer.removeStyle(this._ngEl.nativeElement,r,s)}_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)(p(Je),p(Ju),p(ho))},n.\u0275dir=fe({type:n,selectors:[["","ngStyle",""]],inputs:{ngStyle:"ngStyle"},standalone:!0}),n})(),Ji=(()=>{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:o,ngTemplateOutletInjector:s}=this;this._viewRef=i.createEmbeddedView(r,o,s?{injector:s}: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)(p(Dn))},n.\u0275dir=fe({type:n,selectors:[["","ngTemplateOutlet",""]],inputs:{ngTemplateOutletContext:"ngTemplateOutletContext",ngTemplateOutlet:"ngTemplateOutlet",ngTemplateOutletInjector:"ngTemplateOutletInjector"},standalone:!0,features:[Rn]}),n})(),$r=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=ht({type:n}),n.\u0275inj=dt({}),n})();const kT="browser";class OT{}class dy extends class cH extends class q4{}{constructor(){super(...arguments),this.supportsDOMEvents=!0}}{static makeCurrent(){!function U4(n){Rp||(Rp=n)}(new dy)}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 uH(){return ed=ed||document.querySelector("base"),ed?ed.getAttribute("href"):null}();return null==e?null:function dH(n){zp=zp||document.createElement("a"),zp.setAttribute("href",n);const t=zp.pathname;return"/"===t.charAt(0)?t:`/${t}`}(e)}resetBaseElement(){ed=null}getUserAgent(){return window.navigator.userAgent}getCookie(t){return ET(document.cookie,t)}}let zp,ed=null;const PT=new me("TRANSITION_ID"),pH=[{provide:PA,useFactory:function hH(n,t,e){return()=>{e.get(Ap).donePromise.then(()=>{const i=Uo(),r=t.querySelectorAll(`style[ng-transition="${n}"]`);for(let o=0;o{class n{build(){return new XMLHttpRequest}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=ge({token:n,factory:n.\u0275fac}),n})();const Gp=new me("EventManagerPlugins");let Wp=(()=>{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 o=0;o{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=ge({token:n,factory:n.\u0275fac}),n})(),td=(()=>{class n extends NT{constructor(e){super(),this._doc=e,this._hostNodes=new Map,this._hostNodes.set(e.head,[])}_addStylesToHost(e,i,r){e.forEach(o=>{const s=this._doc.createElement("style");s.textContent=o,r.push(i.appendChild(s))})}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(FT),this._hostNodes.delete(e)}onStylesAdded(e){this._hostNodes.forEach((i,r)=>{this._addStylesToHost(e,r,i)})}ngOnDestroy(){this._hostNodes.forEach(e=>e.forEach(FT))}}return n.\u0275fac=function(e){return new(e||n)(M(ft))},n.\u0275prov=ge({token:n,factory:n.\u0275fac}),n})();function FT(n){Uo().remove(n)}const hy={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/"},py=/%COMP%/g;function $p(n,t,e){for(let i=0;i{if("__ngUnwrap__"===t)return n;!1===n(t)&&(t.preventDefault(),t.returnValue=!1)}}let Kp=(()=>{class n{constructor(e,i,r){this.eventManager=e,this.sharedStylesHost=i,this.appId=r,this.rendererByCompId=new Map,this.defaultRenderer=new fy(e)}createRenderer(e,i){if(!e||!i)return this.defaultRenderer;switch(i.encapsulation){case ao.Emulated:{let r=this.rendererByCompId.get(i.id);return r||(r=new CH(this.eventManager,this.sharedStylesHost,i,this.appId),this.rendererByCompId.set(i.id,r)),r.applyToHost(e),r}case 1:case ao.ShadowDom:return new wH(this.eventManager,this.sharedStylesHost,e,i);default:if(!this.rendererByCompId.has(i.id)){const r=$p(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)(M(Wp),M(td),M(fc))},n.\u0275prov=ge({token:n,factory:n.\u0275fac}),n})();class fy{constructor(t){this.eventManager=t,this.data=Object.create(null),this.destroyNode=null}destroy(){}createElement(t,e){return e?document.createElementNS(hy[e]||e,t):document.createElement(t)}createComment(t){return document.createComment(t)}createText(t){return document.createTextNode(t)}appendChild(t,e){(UT(t)?t.content:t).appendChild(e)}insertBefore(t,e,i){t&&(UT(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 o=hy[r];o?t.setAttributeNS(o,e,i):t.setAttribute(e,i)}else t.setAttribute(e,i)}removeAttribute(t,e,i){if(i){const r=hy[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&(ir.DashCase|ir.Important)?t.style.setProperty(e,i,r&ir.Important?"important":""):t.style[e]=i}removeStyle(t,e,i){i&ir.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,HT(i)):this.eventManager.addEventListener(t,e,HT(i))}}function UT(n){return"TEMPLATE"===n.tagName&&void 0!==n.content}class CH extends fy{constructor(t,e,i,r){super(t),this.component=i;const o=$p(r+"-"+i.id,i.styles,[]);e.addStyles(o),this.contentAttr=function vH(n){return"_ngcontent-%COMP%".replace(py,n)}(r+"-"+i.id),this.hostAttr=function yH(n){return"_nghost-%COMP%".replace(py,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 wH extends fy{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 o=$p(r.id,r.styles,[]);for(let s=0;s{class n extends LT{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)(M(ft))},n.\u0275prov=ge({token:n,factory:n.\u0275fac}),n})();const qT=["alt","control","meta","shift"],SH={"\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"},zT={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"},AH={alt:n=>n.altKey,control:n=>n.ctrlKey,meta:n=>n.metaKey,shift:n=>n.shiftKey};let TH=(()=>{class n extends LT{constructor(e){super(e)}supports(e){return null!=n.parseEventName(e)}addEventListener(e,i,r){const o=n.parseEventName(i),s=n.eventCallback(o.fullKey,r,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>Uo().onAndCancel(e,o.domEventName,s))}static parseEventName(e){const i=e.toLowerCase().split("."),r=i.shift();if(0===i.length||"keydown"!==r&&"keyup"!==r)return null;const o=n._normalizeKey(i.pop());let s="";if(qT.forEach(l=>{const c=i.indexOf(l);c>-1&&(i.splice(c,1),s+=l+".")}),s+=o,0!=i.length||0===o.length)return null;const a={};return a.domEventName=r,a.fullKey=s,a}static getEventFullKey(e){let i="",r=function xH(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&&zT.hasOwnProperty(t)&&(t=zT[t]))}return SH[t]||t}(e);return r=r.toLowerCase()," "===r?r="space":"."===r&&(r="dot"),qT.forEach(o=>{o!=r&&(0,AH[o])(e)&&(i+=o+".")}),i+=r,i}static eventCallback(e,i,r){return o=>{n.getEventFullKey(o)===e&&r.runGuarded(()=>i(o))}}static _normalizeKey(e){return"esc"===e?"escape":e}}return n.\u0275fac=function(e){return new(e||n)(M(ft))},n.\u0275prov=ge({token:n,factory:n.\u0275fac}),n})();const GT=[{provide:Tp,useValue:kT},{provide:NA,useValue:function IH(){dy.makeCurrent()},multi:!0},{provide:ft,useFactory:function kH(){return function $P(n){r_=n}(document),document},deps:[]}],WT=GA(j4,"browser",GT),$T=new me(""),KT=[{provide:xp,useClass:class fH{addToWindow(t){gn.getAngularTestability=(i,r=!0)=>{const o=t.findTestabilityInTree(i,r);if(null==o)throw new Error("Could not find testability for element.");return o},gn.getAllAngularTestabilities=()=>t.getAllTestabilities(),gn.getAllAngularRootElements=()=>t.getAllRootElements(),gn.frameworkStabilizers||(gn.frameworkStabilizers=[]),gn.frameworkStabilizers.push(i=>{const r=gn.getAllAngularTestabilities();let o=r.length,s=!1;const a=function(l){s=s||l,o--,0==o&&i(s)};r.forEach(function(l){l.whenStable(a)})})}findTestabilityInTree(t,e,i){return null==e?null:t.getTestability(e)??(i?Uo().isShadowRoot(e)?this.findTestabilityInTree(t,e.host,!0):this.findTestabilityInTree(t,e.parentElement,!0):null)}},deps:[]},{provide:UA,useClass:qv,deps:[et,zv,xp]},{provide:qv,useClass:qv,deps:[et,zv,xp]}],YT=[{provide:p_,useValue:"root"},{provide:ps,useFactory:function MH(){return new ps},deps:[]},{provide:Gp,useClass:EH,multi:!0,deps:[ft,et,Tp]},{provide:Gp,useClass:TH,multi:!0,deps:[ft]},{provide:Kp,useClass:Kp,deps:[Wp,td,fc]},{provide:Ru,useExisting:Kp},{provide:NT,useExisting:td},{provide:td,useClass:td,deps:[ft]},{provide:Wp,useClass:Wp,deps:[Gp,et]},{provide:OT,useClass:mH,deps:[]},[]];let QT=(()=>{class n{constructor(e){}static withServerTransition(e){return{ngModule:n,providers:[{provide:fc,useValue:e.appId},{provide:PT,useExisting:fc},pH]}}}return n.\u0275fac=function(e){return new(e||n)(M($T,12))},n.\u0275mod=ht({type:n}),n.\u0275inj=dt({providers:[...YT,...KT],imports:[$r,H4]}),n})();typeof window<"u"&&window;let nd=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=ge({token:n,factory:function(e){let i=null;return i=e?new(e||n):M(ex),i},providedIn:"root"}),n})(),ex=(()=>{class n extends nd{constructor(e){super(),this._doc=e}sanitize(e,i){if(null==i)return null;switch(e){case dn.NONE:return i;case dn.HTML:return Po(i,"HTML")?Dr(i):j0(this._doc,String(i)).toString();case dn.STYLE:return Po(i,"Style")?Dr(i):i;case dn.SCRIPT:if(Po(i,"Script"))return Dr(i);throw new Error("unsafe value used in a script context");case dn.URL:return Po(i,"URL")?Dr(i):Iu(String(i));case dn.RESOURCE_URL:if(Po(i,"ResourceURL"))return Dr(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 nL(n){return new QP(n)}(e)}bypassSecurityTrustStyle(e){return function iL(n){return new JP(n)}(e)}bypassSecurityTrustScript(e){return function rL(n){return new ZP(n)}(e)}bypassSecurityTrustUrl(e){return function oL(n){return new XP(n)}(e)}bypassSecurityTrustResourceUrl(e){return function sL(n){return new eL(n)}(e)}}return n.\u0275fac=function(e){return new(e||n)(M(ft))},n.\u0275prov=ge({token:n,factory:function(e){let i=null;return i=e?new e:function VH(n){return new ex(n.get(ft))}(M(Vn)),i},providedIn:"root"}),n})();function _y(...n){if(1===n.length){const t=n[0];if(F(t))return Yp(t,null);if(I(t)&&Object.getPrototypeOf(t)===Object.prototype){const e=Object.keys(t);return Yp(e.map(i=>t[i]),e)}}if("function"==typeof n[n.length-1]){const t=n.pop();return Yp(n=1===n.length&&F(n[0])?n[0]:n,null).pipe(he(e=>t(...e)))}return Yp(n,null)}function Yp(n,t){return new b(e=>{const i=n.length;if(0===i)return void e.complete();const r=new Array(i);let o=0,s=0;for(let a=0;a{c||(c=!0,s++),r[a]=u},error:u=>e.error(u),complete:()=>{o++,(o===i||!c)&&(s===i&&e.next(t?t.reduce((u,d,h)=>(u[d]=r[h],u),{}):r),e.complete())}}))}})}let tx=(()=>{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)(p(ho),p(Je))},n.\u0275dir=fe({type:n}),n})(),Ka=(()=>{class n extends tx{}return n.\u0275fac=function(){let t;return function(i){return(t||(t=Pt(n)))(i||n)}}(),n.\u0275dir=fe({type:n,features:[Se]}),n})();const or=new me("NgValueAccessor"),qH={provide:or,useExisting:Xt(()=>Ar),multi:!0},GH=new me("CompositionEventMode");let Ar=(()=>{class n extends tx{constructor(e,i,r){super(e,i),this._compositionMode=r,this._composing=!1,null==this._compositionMode&&(this._compositionMode=!function zH(){const n=Uo()?Uo().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)(p(ho),p(Je),p(GH,8))},n.\u0275dir=fe({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(o){return i._handleInput(o.target.value)})("blur",function(){return i.onTouched()})("compositionstart",function(){return i._compositionStart()})("compositionend",function(o){return i._compositionEnd(o.target.value)})},features:[it([qH]),Se]}),n})();function sa(n){return null==n||("string"==typeof n||Array.isArray(n))&&0===n.length}function ix(n){return null!=n&&"number"==typeof n.length}const hi=new me("NgValidators"),aa=new me("NgAsyncValidators"),$H=/^(?=.{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 vy{static min(t){return function rx(n){return t=>{if(sa(t.value)||sa(n))return null;const e=parseFloat(t.value);return!isNaN(e)&&e{if(sa(t.value)||sa(n))return null;const e=parseFloat(t.value);return!isNaN(e)&&e>n?{max:{max:n,actual:t.value}}:null}}(t)}static required(t){return function sx(n){return sa(n.value)?{required:!0}:null}(t)}static requiredTrue(t){return function ax(n){return!0===n.value?null:{required:!0}}(t)}static email(t){return function lx(n){return sa(n.value)||$H.test(n.value)?null:{email:!0}}(t)}static minLength(t){return function cx(n){return t=>sa(t.value)||!ix(t.value)?null:t.value.lengthix(t.value)&&t.value.length>n?{maxlength:{requiredLength:n,actualLength:t.value.length}}:null}(t)}static pattern(t){return function dx(n){if(!n)return Qp;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(sa(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 _x(t)}static composeAsync(t){return vx(t)}}function Qp(n){return null}function hx(n){return null!=n}function px(n){return Vu(n)?vt(n):n}function fx(n){let t={};return n.forEach(e=>{t=null!=e?{...t,...e}:t}),0===Object.keys(t).length?null:t}function mx(n,t){return t.map(e=>e(n))}function gx(n){return n.map(t=>function KH(n){return!n.validate}(t)?t:e=>t.validate(e))}function _x(n){if(!n)return null;const t=n.filter(hx);return 0==t.length?null:function(e){return fx(mx(e,t))}}function yy(n){return null!=n?_x(gx(n)):null}function vx(n){if(!n)return null;const t=n.filter(hx);return 0==t.length?null:function(e){return _y(mx(e,t).map(px)).pipe(he(fx))}}function by(n){return null!=n?vx(gx(n)):null}function yx(n,t){return null===n?[t]:Array.isArray(n)?[...n,t]:[n,t]}function bx(n){return n._rawValidators}function Cx(n){return n._rawAsyncValidators}function Cy(n){return n?Array.isArray(n)?n:[n]:[]}function Jp(n,t){return Array.isArray(n)?n.includes(t):n===t}function wx(n,t){const e=Cy(t);return Cy(n).forEach(r=>{Jp(e,r)||e.push(r)}),e}function Ex(n,t){return Cy(t).filter(e=>!Jp(n,e))}class Dx{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=yy(this._rawValidators)}_setAsyncValidators(t){this._rawAsyncValidators=t||[],this._composedAsyncValidatorFn=by(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 Zi extends Dx{get formDirective(){return null}get path(){return null}}class bo extends Dx{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}}let Kr=(()=>{class n extends class Sx{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}}{constructor(e){super(e)}}return n.\u0275fac=function(e){return new(e||n)(p(bo,2))},n.\u0275dir=fe({type:n,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(e,i){2&e&&bt("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:[Se]}),n})();const id="VALID",Xp="INVALID",gc="PENDING",rd="DISABLED";function Sy(n){return(ef(n)?n.validators:n)||null}function Tx(n){return Array.isArray(n)?yy(n):n||null}function Ay(n,t){return(ef(t)?t.asyncValidators:n)||null}function xx(n){return Array.isArray(n)?by(n):n||null}function ef(n){return null!=n&&!Array.isArray(n)&&"object"==typeof n}class kx{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=Tx(this._rawValidators),this._composedAsyncValidatorFn=xx(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===id}get invalid(){return this.status===Xp}get pending(){return this.status==gc}get disabled(){return this.status===rd}get enabled(){return this.status!==rd}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=Tx(t)}setAsyncValidators(t){this._rawAsyncValidators=t,this._composedAsyncValidatorFn=xx(t)}addValidators(t){this.setValidators(wx(t,this._rawValidators))}addAsyncValidators(t){this.setAsyncValidators(wx(t,this._rawAsyncValidators))}removeValidators(t){this.setValidators(Ex(t,this._rawValidators))}removeAsyncValidators(t){this.setAsyncValidators(Ex(t,this._rawAsyncValidators))}hasValidator(t){return Jp(this._rawValidators,t)}hasAsyncValidator(t){return Jp(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=gc,!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=rd,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=id,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===id||this.status===gc)&&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()?rd:id}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(t){if(this.asyncValidator){this.status=gc,this._hasOwnPendingAsyncValidator=!0;const e=px(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 He,this.statusChanges=new He}_calculateStatus(){return this._allControlsDisabled()?rd:this.errors?Xp:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(gc)?gc:this._anyControlsHaveStatus(Xp)?Xp:id}_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){ef(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 Ty extends kx{constructor(t,e,i){super(Sy(e),Ay(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={}){(function Mx(n,t,e){n._forEachChild((i,r)=>{if(void 0===e[r])throw new Te(1002,"")})})(this,0,t),Object.keys(t).forEach(i=>{(function Ix(n,t,e){const i=n.controls;if(!(t?Object.keys(i):i).length)throw new Te(1e3,"");if(!i[e])throw new Te(1001,"")})(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,o)=>{i=e(i,r,o)}),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 od(n,t){xy(n,t),t.valueAccessor.writeValue(n.value),n.disabled&&t.valueAccessor.setDisabledState?.(!0),function rV(n,t){t.valueAccessor.registerOnChange(e=>{n._pendingValue=e,n._pendingChange=!0,n._pendingDirty=!0,"change"===n.updateOn&&Rx(n,t)})}(n,t),function sV(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 oV(n,t){t.valueAccessor.registerOnTouched(()=>{n._pendingTouched=!0,"blur"===n.updateOn&&n._pendingChange&&Rx(n,t),"submit"!==n.updateOn&&n.markAsTouched()})}(n,t),function iV(n,t){if(t.valueAccessor.setDisabledState){const e=i=>{t.valueAccessor.setDisabledState(i)};n.registerOnDisabledChange(e),t._registerOnDestroy(()=>{n._unregisterOnDisabledChange(e)})}}(n,t)}function nf(n,t,e=!0){const i=()=>{};t.valueAccessor&&(t.valueAccessor.registerOnChange(i),t.valueAccessor.registerOnTouched(i)),sf(n,t),n&&(t._invokeOnDestroyCallbacks(),n._registerOnCollectionChange(()=>{}))}function rf(n,t){n.forEach(e=>{e.registerOnValidatorChange&&e.registerOnValidatorChange(t)})}function xy(n,t){const e=bx(n);null!==t.validator?n.setValidators(yx(e,t.validator)):"function"==typeof e&&n.setValidators([e]);const i=Cx(n);null!==t.asyncValidator?n.setAsyncValidators(yx(i,t.asyncValidator)):"function"==typeof i&&n.setAsyncValidators([i]);const r=()=>n.updateValueAndValidity();rf(t._rawValidators,r),rf(t._rawAsyncValidators,r)}function sf(n,t){let e=!1;if(null!==n){if(null!==t.validator){const r=bx(n);if(Array.isArray(r)&&r.length>0){const o=r.filter(s=>s!==t.validator);o.length!==r.length&&(e=!0,n.setValidators(o))}}if(null!==t.asyncValidator){const r=Cx(n);if(Array.isArray(r)&&r.length>0){const o=r.filter(s=>s!==t.asyncValidator);o.length!==r.length&&(e=!0,n.setAsyncValidators(o))}}}const i=()=>{};return rf(t._rawValidators,i),rf(t._rawAsyncValidators,i),e}function Rx(n,t){n._pendingDirty&&n.markAsDirty(),n.setValue(n._pendingValue,{emitModelToViewChange:!1}),t.viewToModelUpdate(n._pendingValue),n._pendingChange=!1}function Ox(n,t){xy(n,t)}function Iy(n,t){if(!n.hasOwnProperty("model"))return!1;const e=n.model;return!!e.isFirstChange()||!Object.is(t,e.currentValue)}function Lx(n,t){n._syncPendingControls(),t.forEach(e=>{const i=e.control;"submit"===i.updateOn&&i._pendingChange&&(e.viewToModelUpdate(i._pendingValue),i._pendingChange=!1)})}function My(n,t){if(!t)return null;let e,i,r;return Array.isArray(t),t.forEach(o=>{o.constructor===Ar?e=o:function cV(n){return Object.getPrototypeOf(n.constructor)===Ka}(o)?i=o:r=o}),r||i||e||null}const dV={provide:Zi,useExisting:Xt(()=>_c)},sd=(()=>Promise.resolve(null))();let _c=(()=>{class n extends Zi{constructor(e,i){super(),this.submitted=!1,this._directives=new Set,this.ngSubmit=new He,this.form=new Ty({},yy(e),by(i))}ngAfterViewInit(){this._setUpdateStrategy()}get formDirective(){return this}get control(){return this.form}get path(){return[]}get controls(){return this.form.controls}addControl(e){sd.then(()=>{const i=this._findContainer(e.path);e.control=i.registerControl(e.name,e.control),od(e.control,e),e.control.updateValueAndValidity({emitEvent:!1}),this._directives.add(e)})}getControl(e){return this.form.get(e.path)}removeControl(e){sd.then(()=>{const i=this._findContainer(e.path);i&&i.removeControl(e.name),this._directives.delete(e)})}addFormGroup(e){sd.then(()=>{const i=this._findContainer(e.path),r=new Ty({});Ox(r,e),i.registerControl(e.name,r),r.updateValueAndValidity({emitEvent:!1})})}removeFormGroup(e){sd.then(()=>{const i=this._findContainer(e.path);i&&i.removeControl(e.name)})}getFormGroup(e){return this.form.get(e.path)}updateModel(e,i){sd.then(()=>{this.form.get(e.path).setValue(i)})}setValue(e){this.control.setValue(e)}onSubmit(e){return this.submitted=!0,Lx(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)(p(hi,10),p(aa,10))},n.\u0275dir=fe({type:n,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(e,i){1&e&&W("submit",function(o){return i.onSubmit(o)})("reset",function(){return i.onReset()})},inputs:{options:["ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[it([dV]),Se]}),n})();function Nx(n,t){const e=n.indexOf(t);e>-1&&n.splice(e,1)}function Fx(n){return"object"==typeof n&&null!==n&&2===Object.keys(n).length&&"value"in n&&"disabled"in n}const Co=class extends kx{constructor(t=null,e,i){super(Sy(e),Ay(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}),ef(e)&&(e.nonNullable||e.initialValueIsDefault)&&(this.defaultValue=Fx(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){Nx(this._onChange,t)}registerOnDisabledChange(t){this._onDisabledChange.push(t)}_unregisterOnDisabledChange(t){Nx(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){Fx(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}},fV={provide:bo,useExisting:Xt(()=>wo)},Hx=(()=>Promise.resolve(null))();let wo=(()=>{class n extends bo{constructor(e,i,r,o,s){super(),this._changeDetectorRef=s,this.control=new Co,this._registered=!1,this.update=new He,this._parent=e,this._setValidators(i),this._setAsyncValidators(r),this.valueAccessor=My(0,o)}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),Iy(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(){od(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){Hx.then(()=>{this.control.setValue(e,{emitViewToModelChange:!1}),this._changeDetectorRef?.markForCheck()})}_updateDisabled(e){const i=e.isDisabled.currentValue,r=0!==i&&function bs(n){return"boolean"==typeof n?n:null!=n&&"false"!==n}(i);Hx.then(()=>{r&&!this.control.disabled?this.control.disable():!r&&this.control.disabled&&this.control.enable(),this._changeDetectorRef?.markForCheck()})}_getPath(e){return this._parent?function tf(n,t){return[...t.path,n]}(e,this._parent):[e]}}return n.\u0275fac=function(e){return new(e||n)(p(Zi,9),p(hi,10),p(aa,10),p(or,10),p(St,8))},n.\u0275dir=fe({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:[it([fV]),Se,Rn]}),n})(),Ux=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=ht({type:n}),n.\u0275inj=dt({}),n})();const ky=new me("NgModelWithFormControlWarning"),bV={provide:bo,useExisting:Xt(()=>af)};let af=(()=>{class n extends bo{constructor(e,i,r,o){super(),this._ngModelWarningConfig=o,this.update=new He,this._ngModelWarningSent=!1,this._setValidators(e),this._setAsyncValidators(i),this.valueAccessor=My(0,r)}set isDisabled(e){}ngOnChanges(e){if(this._isControlChanged(e)){const i=e.form.previousValue;i&&nf(i,this,!1),od(this.form,this),this.form.updateValueAndValidity({emitEvent:!1})}Iy(e,this.viewModel)&&(this.form.setValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.form&&nf(this.form,this,!1)}get path(){return[]}get control(){return this.form}viewToModelUpdate(e){this.viewModel=e,this.update.emit(e)}_isControlChanged(e){return e.hasOwnProperty("form")}}return n._ngModelWarningSentOnce=!1,n.\u0275fac=function(e){return new(e||n)(p(hi,10),p(aa,10),p(or,10),p(ky,8))},n.\u0275dir=fe({type:n,selectors:[["","formControl",""]],inputs:{form:["formControl","form"],isDisabled:["disabled","isDisabled"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},exportAs:["ngForm"],features:[it([bV]),Se,Rn]}),n})();const CV={provide:Zi,useExisting:Xt(()=>vc)};let vc=(()=>{class n extends Zi{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 He,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&&(sf(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 od(i,e),i.updateValueAndValidity({emitEvent:!1}),this.directives.push(e),i}getControl(e){return this.form.get(e.path)}removeControl(e){nf(e.control||null,e,!1),function uV(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,Lx(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&&(nf(i||null,e),(n=>n instanceof Co)(r)&&(od(r,e),e.control=r))}),this.form._updateTreeValidity({emitEvent:!1})}_setUpFormContainer(e){const i=this.form.get(e.path);Ox(i,e),i.updateValueAndValidity({emitEvent:!1})}_cleanUpFormContainer(e){if(this.form){const i=this.form.get(e.path);i&&function aV(n,t){return sf(n,t)}(i,e)&&i.updateValueAndValidity({emitEvent:!1})}}_updateRegistrations(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm&&this._oldForm._registerOnCollectionChange(()=>{})}_updateValidators(){xy(this.form,this),this._oldForm&&sf(this._oldForm,this)}_checkFormPresent(){}}return n.\u0275fac=function(e){return new(e||n)(p(hi,10),p(aa,10))},n.\u0275dir=fe({type:n,selectors:[["","formGroup",""]],hostBindings:function(e,i){1&e&&W("submit",function(o){return i.onSubmit(o)})("reset",function(){return i.onReset()})},inputs:{form:["formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[it([CV]),Se,Rn]}),n})(),r2=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=ht({type:n}),n.\u0275inj=dt({imports:[Ux]}),n})(),jV=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=ht({type:n}),n.\u0275inj=dt({imports:[r2]}),n})(),HV=(()=>{class n{static withConfig(e){return{ngModule:n,providers:[{provide:ky,useValue:e.warnOnNgModelWithFormControl}]}}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=ht({type:n}),n.\u0275inj=dt({imports:[r2]}),n})();function Ne(...n){let t=n[n.length-1];return pe(t)?(n.pop(),ui(n,t)):yg(n)}function qo(n,t){return Vi(n,t,1)}function Tn(n,t){return function(i){return i.lift(new UV(n,t))}}class UV{constructor(t,e){this.predicate=t,this.thisArg=e}call(t,e){return e.subscribe(new qV(t,this.predicate,this.thisArg))}}class qV extends S{constructor(t,e,i){super(t),this.predicate=e,this.thisArg=i,this.count=0}_next(t){let e;try{e=this.predicate.call(this.thisArg,t,this.count++)}catch(i){return void this.destination.error(i)}e&&this.destination.next(t)}}class o2{}class s2{}class Es{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),o=r.toLowerCase(),s=e.slice(i+1).trim();this.maybeSetNormalizedName(r,o),this.headers.has(o)?this.headers.get(o).push(s):this.headers.set(o,[s])}})}:()=>{this.headers=new Map,Object.keys(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 Es?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 Es;return e.lazyInit=this.lazyInit&&this.lazyInit instanceof Es?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 o=t.value;if(o){let s=this.headers.get(e);if(!s)return;s=s.filter(a=>-1===o.indexOf(a)),0===s.length?(this.headers.delete(e),this.normalizedNames.delete(e)):this.headers.set(e,s)}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 zV{encodeKey(t){return a2(t)}encodeValue(t){return a2(t)}decodeKey(t){return decodeURIComponent(t)}decodeValue(t){return decodeURIComponent(t)}}const WV=/%(\d[a-f0-9])/gi,$V={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function a2(n){return encodeURIComponent(n).replace(WV,(t,e)=>$V[e]??t)}function cf(n){return`${n}`}class $t{constructor(t={}){if(this.updates=null,this.cloneFrom=null,this.encoder=t.encoder||new zV,t.fromString){if(t.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=function GV(n,t){const e=new Map;return n.length>0&&n.replace(/^\?/,"").split("&").forEach(r=>{const o=r.indexOf("="),[s,a]=-1==o?[t.decodeKey(r),""]:[t.decodeKey(r.slice(0,o)),t.decodeValue(r.slice(o+1))],l=e.get(s)||[];l.push(a),e.set(s,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(cf):[cf(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(o=>{e.push({param:i,value:o,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 $t({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(cf(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(cf(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 KV{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 l2(n){return typeof ArrayBuffer<"u"&&n instanceof ArrayBuffer}function c2(n){return typeof Blob<"u"&&n instanceof Blob}function u2(n){return typeof FormData<"u"&&n instanceof FormData}class ad{constructor(t,e,i,r){let o;if(this.url=e,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=t.toUpperCase(),function YV(n){switch(n){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||r?(this.body=void 0!==i?i:null,o=r):o=i,o&&(this.reportProgress=!!o.reportProgress,this.withCredentials=!!o.withCredentials,o.responseType&&(this.responseType=o.responseType),o.headers&&(this.headers=o.headers),o.context&&(this.context=o.context),o.params&&(this.params=o.params)),this.headers||(this.headers=new Es),this.context||(this.context=new KV),this.params){const s=this.params.toString();if(0===s.length)this.urlWithParams=e;else{const a=e.indexOf("?");this.urlWithParams=e+(-1===a?"?":ad.set(h,t.setHeaders[h]),l)),t.setParams&&(c=Object.keys(t.setParams).reduce((d,h)=>d.set(h,t.setParams[h]),c)),new ad(e,i,o,{params:c,headers:l,context:u,reportProgress:a,responseType:r,withCredentials:s})}}var ei=(()=>((ei=ei||{})[ei.Sent=0]="Sent",ei[ei.UploadProgress=1]="UploadProgress",ei[ei.ResponseHeader=2]="ResponseHeader",ei[ei.DownloadProgress=3]="DownloadProgress",ei[ei.Response=4]="Response",ei[ei.User=5]="User",ei))();class Fy{constructor(t,e=200,i="OK"){this.headers=t.headers||new Es,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 By extends Fy{constructor(t={}){super(t),this.type=ei.ResponseHeader}clone(t={}){return new By({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 uf extends Fy{constructor(t={}){super(t),this.type=ei.Response,this.body=void 0!==t.body?t.body:null}clone(t={}){return new uf({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 d2 extends Fy{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 jy(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 yc=(()=>{class n{constructor(e){this.handler=e}request(e,i,r={}){let o;if(e instanceof ad)o=e;else{let l,c;l=r.headers instanceof Es?r.headers:new Es(r.headers),r.params&&(c=r.params instanceof $t?r.params:new $t({fromObject:r.params})),o=new ad(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 s=Ne(o).pipe(qo(l=>this.handler.handle(l)));if(e instanceof ad||"events"===r.observe)return s;const a=s.pipe(Tn(l=>l instanceof uf));switch(r.observe||"body"){case"body":switch(o.responseType){case"arraybuffer":return a.pipe(he(l=>{if(null!==l.body&&!(l.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return l.body}));case"blob":return a.pipe(he(l=>{if(null!==l.body&&!(l.body instanceof Blob))throw new Error("Response is not a Blob.");return l.body}));case"text":return a.pipe(he(l=>{if(null!==l.body&&"string"!=typeof l.body)throw new Error("Response is not a string.");return l.body}));default:return a.pipe(he(l=>l.body))}case"response":return a;default:throw new Error(`Unreachable: unhandled observe type ${r.observe}}`)}}delete(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 $t).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,jy(r,i))}post(e,i,r={}){return this.request("POST",e,jy(r,i))}put(e,i,r={}){return this.request("PUT",e,jy(r,i))}}return n.\u0275fac=function(e){return new(e||n)(M(o2))},n.\u0275prov=ge({token:n,factory:n.\u0275fac}),n})();class h2{constructor(t,e){this.next=t,this.interceptor=e}handle(t){return this.interceptor.intercept(t,this.next)}}const Hy=new me("HTTP_INTERCEPTORS");let JV=(()=>{class n{intercept(e,i){return i.handle(e)}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=ge({token:n,factory:n.\u0275fac}),n})();const ZV=/^\)\]\}',?\n/;let p2=(()=>{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 b(i=>{const r=this.xhrFactory.build();if(r.open(e.method,e.urlWithParams),e.withCredentials&&(r.withCredentials=!0),e.headers.forEach((m,y)=>r.setRequestHeader(m,y.join(","))),e.headers.has("Accept")||r.setRequestHeader("Accept","application/json, text/plain, */*"),!e.headers.has("Content-Type")){const m=e.detectContentTypeHeader();null!==m&&r.setRequestHeader("Content-Type",m)}if(e.responseType){const m=e.responseType.toLowerCase();r.responseType="json"!==m?m:"text"}const o=e.serializeBody();let s=null;const a=()=>{if(null!==s)return s;const m=r.statusText||"OK",y=new Es(r.getAllResponseHeaders()),A=function XV(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 s=new By({headers:y,status:r.status,statusText:m,url:A}),s},l=()=>{let{headers:m,status:y,statusText:A,url:U}=a(),te=null;204!==y&&(te=typeof r.response>"u"?r.responseText:r.response),0===y&&(y=te?200:0);let Ee=y>=200&&y<300;if("json"===e.responseType&&"string"==typeof te){const ne=te;te=te.replace(ZV,"");try{te=""!==te?JSON.parse(te):null}catch(Me){te=ne,Ee&&(Ee=!1,te={error:Me,text:te})}}Ee?(i.next(new uf({body:te,headers:m,status:y,statusText:A,url:U||void 0})),i.complete()):i.error(new d2({error:te,headers:m,status:y,statusText:A,url:U||void 0}))},c=m=>{const{url:y}=a(),A=new d2({error:m,status:r.status||0,statusText:r.statusText||"Unknown Error",url:y||void 0});i.error(A)};let u=!1;const d=m=>{u||(i.next(a()),u=!0);let y={type:ei.DownloadProgress,loaded:m.loaded};m.lengthComputable&&(y.total=m.total),"text"===e.responseType&&!!r.responseText&&(y.partialText=r.responseText),i.next(y)},h=m=>{let y={type:ei.UploadProgress,loaded:m.loaded};m.lengthComputable&&(y.total=m.total),i.next(y)};return r.addEventListener("load",l),r.addEventListener("error",c),r.addEventListener("timeout",c),r.addEventListener("abort",c),e.reportProgress&&(r.addEventListener("progress",d),null!==o&&r.upload&&r.upload.addEventListener("progress",h)),r.send(o),i.next({type:ei.Sent}),()=>{r.removeEventListener("error",c),r.removeEventListener("abort",c),r.removeEventListener("load",l),r.removeEventListener("timeout",c),e.reportProgress&&(r.removeEventListener("progress",d),null!==o&&r.upload&&r.upload.removeEventListener("progress",h)),r.readyState!==r.DONE&&r.abort()}})}}return n.\u0275fac=function(e){return new(e||n)(M(OT))},n.\u0275prov=ge({token:n,factory:n.\u0275fac}),n})();const Vy=new me("XSRF_COOKIE_NAME"),Uy=new me("XSRF_HEADER_NAME");class f2{}let eU=(()=>{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=ET(e,this.cookieName),this.lastCookieString=e),this.lastToken}}return n.\u0275fac=function(e){return new(e||n)(M(ft),M(Tp),M(Vy))},n.\u0275prov=ge({token:n,factory:n.\u0275fac}),n})(),qy=(()=>{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 o=this.tokenService.getToken();return null!==o&&!e.headers.has(this.headerName)&&(e=e.clone({headers:e.headers.set(this.headerName,o)})),i.handle(e)}}return n.\u0275fac=function(e){return new(e||n)(M(f2),M(Uy))},n.\u0275prov=ge({token:n,factory:n.\u0275fac}),n})(),tU=(()=>{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(Hy,[]);this.chain=i.reduceRight((r,o)=>new h2(r,o),this.backend)}return this.chain.handle(e)}}return n.\u0275fac=function(e){return new(e||n)(M(s2),M(Vn))},n.\u0275prov=ge({token:n,factory:n.\u0275fac}),n})(),nU=(()=>{class n{static disable(){return{ngModule:n,providers:[{provide:qy,useClass:JV}]}}static withOptions(e={}){return{ngModule:n,providers:[e.cookieName?{provide:Vy,useValue:e.cookieName}:[],e.headerName?{provide:Uy,useValue:e.headerName}:[]]}}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=ht({type:n}),n.\u0275inj=dt({providers:[qy,{provide:Hy,useExisting:qy,multi:!0},{provide:f2,useClass:eU},{provide:Vy,useValue:"XSRF-TOKEN"},{provide:Uy,useValue:"X-XSRF-TOKEN"}]}),n})(),iU=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=ht({type:n}),n.\u0275inj=dt({providers:[yc,{provide:o2,useClass:tU},p2,{provide:s2,useExisting:p2}],imports:[nU.withOptions({cookieName:"XSRF-TOKEN",headerName:"X-XSRF-TOKEN"})]}),n})(),rU=(()=>{class n{constructor(){}intercept(e,i){if(e.params.has("noCache")){const r=e.clone({setHeaders:{"Cache-Control":"no-cache, no-store, must-revalidate"},params:e.params.delete("noCache")});return i.handle(r)}return i.handle(e)}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=ge({token:n,factory:n.\u0275fac}),n})();function m2(n,t,e,i,r,o,s){try{var a=n[o](s),l=a.value}catch(c){return void e(c)}a.done?t(l):Promise.resolve(l).then(i,r)}function Ae(n){return function(){var t=this,e=arguments;return new Promise(function(i,r){var o=n.apply(t,e);function s(l){m2(o,i,r,s,a,"next",l)}function a(l){m2(o,i,r,s,a,"throw",l)}s(void 0)})}}let Mi=(()=>{class n{constructor(){}getValue(e){return localStorage.getItem(e.toString())}setValue(e,i){localStorage.setItem(e.toString(),i)}removeValue(e){localStorage.removeItem(e.toString())}clear(){Object.keys(Zt).forEach(i=>{i.toString().includes("PERSISTENT")||localStorage.removeItem(i.toString())})}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=ge({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();var Zt=(()=>(function(n){n.USopenAfterCreate="USopenAfterCreate PERSISTENT",n.USlinkOptionActive="USlinkOptionActive PERSISTENT",n.primaryTarget="primaryTarget",n.selectedProjects="selectedProjects",n.selectedTags="selectedTags",n.officeDB="officeDB",n.sendInProcess="sendInProcess",n.contactDB="contactDB PERSISTENT",n.taskpaneActive="taskpaneActive",n.documentedItemId="documentedItemId PERSISTENT",n.asyncMessage="asyncMessage PERSISTENT",n.selectedEmail="selectedEmail",n.appointmentIsNew="appointmentIsNew",n.documentSelectorDB="documentSelectorDB"}(Zt||(Zt={})),Zt))();class vi{constructor(t,e){this.component=t,this.data=e}}function Ds(n){return!!n&&(n instanceof b||"function"==typeof n.lift&&"function"==typeof n.subscribe)}function bc(...n){return function oU(){return Eh(1)}()(Ne(...n))}const Ss=new b(n=>n.complete());function df(n){return n?function sU(n){return new b(t=>n.schedule(()=>t.complete()))}(n):Ss}function la(n){return new b(t=>{let e;try{e=n()}catch(r){return void t.error(r)}return(e?vt(e):df()).subscribe(t)})}const g2=(()=>{function n(){return Error.call(this),this.message="argument out of range",this.name="ArgumentOutOfRangeError",this}return n.prototype=Object.create(Error.prototype),n})();function sn(n){return t=>0===n?df():t.lift(new aU(n))}class aU{constructor(t){if(this.total=t,this.total<0)throw new g2}call(t,e){return e.subscribe(new lU(t,this.total))}}class lU extends S{constructor(t,e){super(t),this.total=e,this.count=0}_next(t){const e=this.total,i=++this.count;i<=e&&(this.destination.next(t),i===e&&(this.destination.complete(),this.unsubscribe()))}}class cU extends E{constructor(t,e){super()}schedule(t,e=0){return this}}class hf extends cU{constructor(t,e){super(t,e),this.scheduler=t,this.work=e,this.pending=!1}schedule(t,e=0){if(this.closed)return this;this.state=t;const i=this.id,r=this.scheduler;return null!=i&&(this.id=this.recycleAsyncId(r,i,e)),this.pending=!0,this.delay=e,this.id=this.id||this.requestAsyncId(r,this.id,e),this}requestAsyncId(t,e,i=0){return setInterval(t.flush.bind(t,this),i)}recycleAsyncId(t,e,i=0){if(null!==i&&this.delay===i&&!1===this.pending)return e;clearInterval(e)}execute(t,e){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;const i=this._execute(t,e);if(i)return i;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(t,e){let r,i=!1;try{this.work(t)}catch(o){i=!0,r=!!o&&o||new Error(o)}if(i)return this.unsubscribe(),r}_unsubscribe(){const t=this.id,e=this.scheduler,i=e.actions,r=i.indexOf(this);this.work=null,this.state=null,this.pending=!1,this.scheduler=null,-1!==r&&i.splice(r,1),null!=t&&(this.id=this.recycleAsyncId(e,t,null)),this.delay=null}}let _2=(()=>{class n{constructor(e,i=n.now){this.SchedulerAction=e,this.now=i}schedule(e,i=0,r){return new this.SchedulerAction(this,e).schedule(r,i)}}return n.now=()=>Date.now(),n})();class Eo extends _2{constructor(t,e=_2.now){super(t,()=>Eo.delegate&&Eo.delegate!==this?Eo.delegate.now():e()),this.actions=[],this.active=!1,this.scheduled=void 0}schedule(t,e=0,i){return Eo.delegate&&Eo.delegate!==this?Eo.delegate.schedule(t,e,i):super.schedule(t,e,i)}flush(t){const{actions:e}=this;if(this.active)return void e.push(t);let i;this.active=!0;do{if(i=t.execute(t.state,t.delay))break}while(t=e.shift());if(this.active=!1,i){for(;t=e.shift();)t.unsubscribe();throw i}}}const hU=new class dU extends Eo{}(class uU extends hf{constructor(t,e){super(t,e),this.scheduler=t,this.work=e}schedule(t,e=0){return e>0?super.schedule(t,e):(this.delay=e,this.state=t,this.scheduler.flush(this),this)}execute(t,e){return e>0||this.closed?super.execute(t,e):this._execute(t,e)}requestAsyncId(t,e,i=0){return null!==i&&i>0||null===i&&this.delay>0?super.requestAsyncId(t,e,i):t.flush(this)}});function Qa(n,t){return new b(t?e=>t.schedule(pU,0,{error:n,subscriber:e}):e=>e.error(n))}function pU({error:n,subscriber:t}){t.error(n)}class sr{constructor(t,e,i){this.kind=t,this.value=e,this.error=i,this.hasValue="N"===t}observe(t){switch(this.kind){case"N":return t.next&&t.next(this.value);case"E":return t.error&&t.error(this.error);case"C":return t.complete&&t.complete()}}do(t,e,i){switch(this.kind){case"N":return t&&t(this.value);case"E":return e&&e(this.error);case"C":return i&&i()}}accept(t,e,i){return t&&"function"==typeof t.next?this.observe(t):this.do(t,e,i)}toObservable(){switch(this.kind){case"N":return Ne(this.value);case"E":return Qa(this.error);case"C":return df()}throw new Error("unexpected notification kind value")}static createNext(t){return typeof t<"u"?new sr("N",t):sr.undefinedValueNotification}static createError(t){return new sr("E",void 0,t)}static createComplete(){return sr.completeNotification}}sr.completeNotification=new sr("C"),sr.undefinedValueNotification=new sr("N",void 0);class pf extends S{constructor(t,e,i=0){super(t),this.scheduler=e,this.delay=i}static dispatch(t){const{notification:e,destination:i}=t;e.observe(i),this.unsubscribe()}scheduleMessage(t){this.destination.add(this.scheduler.schedule(pf.dispatch,this.delay,new mU(t,this.destination)))}_next(t){this.scheduleMessage(sr.createNext(t))}_error(t){this.scheduleMessage(sr.createError(t)),this.unsubscribe()}_complete(){this.scheduleMessage(sr.createComplete()),this.unsubscribe()}}class mU{constructor(t,e){this.notification=t,this.destination=e}}class v2 extends N{constructor(t=Number.POSITIVE_INFINITY,e=Number.POSITIVE_INFINITY,i){super(),this.scheduler=i,this._events=[],this._infiniteTimeWindow=!1,this._bufferSize=t<1?1:t,this._windowTime=e<1?1:e,e===Number.POSITIVE_INFINITY?(this._infiniteTimeWindow=!0,this.next=this.nextInfiniteTimeWindow):this.next=this.nextTimeWindow}nextInfiniteTimeWindow(t){if(!this.isStopped){const e=this._events;e.push(t),e.length>this._bufferSize&&e.shift()}super.next(t)}nextTimeWindow(t){this.isStopped||(this._events.push(new gU(this._getNow(),t)),this._trimBufferThenGetEvents()),super.next(t)}_subscribe(t){const e=this._infiniteTimeWindow,i=e?this._events:this._trimBufferThenGetEvents(),r=this.scheduler,o=i.length;let s;if(this.closed)throw new oe;if(this.isStopped||this.hasError?s=E.EMPTY:(this.observers.push(t),s=new _e(this,t)),r&&t.add(t=new pf(t,r)),e)for(let a=0;ae&&(s=Math.max(s,o-e)),s>0&&r.splice(0,s),r}}class gU{constructor(t,e){this.time=t,this.value=e}}function y2(n,t,e){let i;return i=n&&"object"==typeof n?n:{bufferSize:n,windowTime:t,refCount:!1,scheduler:e},r=>r.lift(function _U({bufferSize:n=Number.POSITIVE_INFINITY,windowTime:t=Number.POSITIVE_INFINITY,refCount:e,scheduler:i}){let r,s,o=0,a=!1,l=!1;return function(u){let d;o++,!r||a?(a=!1,r=new v2(n,t,i),d=r.subscribe(this),s=u.subscribe({next(h){r.next(h)},error(h){a=!0,r.error(h)},complete(){l=!0,s=void 0,r.complete()}}),l&&(s=void 0)):d=r.subscribe(this),this.add(()=>{o--,d.unsubscribe(),d=void 0,s&&!l&&e&&0===o&&(s.unsubscribe(),s=void 0,r=void 0)})}}(i))}function Kn(n,t){return"function"==typeof t?e=>e.pipe(Kn((i,r)=>vt(n(i,r)).pipe(he((o,s)=>t(i,o,r,s))))):e=>e.lift(new vU(n))}class vU{constructor(t){this.project=t}call(t,e){return e.subscribe(new yU(t,this.project))}}class yU extends cu{constructor(t,e){super(t),this.project=e,this.index=0}_next(t){let e;const i=this.index++;try{e=this.project(t,i)}catch(r){return void this.destination.error(r)}this._innerSub(e)}_innerSub(t){const e=this.innerSubscription;e&&e.unsubscribe();const i=new ko(this),r=this.destination;r.add(i),this.innerSubscription=uu(t,i),this.innerSubscription!==i&&r.add(this.innerSubscription)}_complete(){const{innerSubscription:t}=this;(!t||t.closed)&&super._complete(),this.unsubscribe()}_unsubscribe(){this.innerSubscription=void 0}notifyComplete(){this.innerSubscription=void 0,this.isStopped&&super._complete()}notifyNext(t){this.destination.next(t)}}class ld{}let b2=(()=>{class n extends ld{getTranslation(e){return Ne({})}}return n.\u0275fac=function(){let t;return function(i){return(t||(t=Pt(n)))(i||n)}}(),n.\u0275prov=ge({token:n,factory:n.\u0275fac}),n})();class zy{}let C2=(()=>{class n{handle(e){return e.key}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=ge({token:n,factory:n.\u0275fac}),n})();function cd(n,t){if(n===t)return!0;if(null===n||null===t)return!1;if(n!=n&&t!=t)return!0;let r,o,s,e=typeof n;if(e==typeof t&&"object"==e){if(!Array.isArray(n)){if(Array.isArray(t))return!1;for(o in s=Object.create(null),n){if(!cd(n[o],t[o]))return!1;s[o]=!0}for(o in t)if(!(o in s)&&typeof t[o]<"u")return!1;return!0}if(!Array.isArray(t))return!1;if((r=n.length)==t.length){for(o=0;o{Gy(t[i])?i in n?e[i]=w2(n[i],t[i]):Object.assign(e,{[i]:t[i]}):Object.assign(e,{[i]:t[i]})}),e}class ff{}let E2=(()=>{class n extends ff{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(),!Tr(e)||!Tr(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,o)=>{let s=this.getValue(i,o);return Tr(s)?s:r}):e}}return n.\u0275fac=function(){let t;return function(i){return(t||(t=Pt(n)))(i||n)}}(),n.\u0275prov=ge({token:n,factory:n.\u0275fac}),n})();class mf{}let D2=(()=>{class n extends mf{compile(e,i){return e}compileTranslations(e,i){return e}}return n.\u0275fac=function(){let t;return function(i){return(t||(t=Pt(n)))(i||n)}}(),n.\u0275prov=ge({token:n,factory:n.\u0275fac}),n})();class S2{constructor(){this.currentLang=this.defaultLang,this.translations={},this.langs=[],this.onTranslationChange=new He,this.onLangChange=new He,this.onDefaultLangChange=new He}}const Wy=new me("USE_STORE"),$y=new me("USE_DEFAULT_LANG"),Ky=new me("DEFAULT_LANGUAGE"),Yy=new me("USE_EXTEND");let Ut=(()=>{class n{constructor(e,i,r,o,s,a=!0,l=!1,c=!1,u){this.store=e,this.currentLoader=i,this.compiler=r,this.parser=o,this.missingTranslationHandler=s,this.useDefaultLang=a,this.isolate=l,this.extend=c,this.pending=!1,this._onTranslationChange=new He,this._onLangChange=new He,this._onDefaultLangChange=new He,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(sn(1)).subscribe(r=>{this.changeDefaultLang(e)})):this.changeDefaultLang(e)}getDefaultLang(){return this.defaultLang}use(e){if(e===this.currentLang)return Ne(this.translations[e]);let i=this.retrieveTranslations(e);return typeof i<"u"?(this.currentLang||(this.currentLang=e),i.pipe(sn(1)).subscribe(r=>{this.changeLang(e)}),i):(this.changeLang(e),Ne(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(y2(1),sn(1));return this.loadingTranslations=i.pipe(he(r=>this.compiler.compileTranslations(r,e)),y2(1),sn(1)),this.loadingTranslations.subscribe({next:r=>{this.translations[e]=this.extend&&this.translations[e]?Object.assign(Object.assign({},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]?w2(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 o;if(i instanceof Array){let s={},a=!1;for(let l of i)s[l]=this.getParsedResult(e,l,r),Ds(s[l])&&(a=!0);return a?_y(i.map(c=>Ds(s[c])?s[c]:Ne(s[c]))).pipe(he(c=>{let u={};return c.forEach((d,h)=>{u[i[h]]=d}),u})):s}if(e&&(o=this.parser.interpolate(this.parser.getValue(e,i),r)),typeof o>"u"&&null!=this.defaultLang&&this.defaultLang!==this.currentLang&&this.useDefaultLang&&(o=this.parser.interpolate(this.parser.getValue(this.translations[this.defaultLang],i),r)),typeof o>"u"){let s={key:i,translateService:this};typeof r<"u"&&(s.interpolateParams=r),o=this.missingTranslationHandler.handle(s)}return typeof o<"u"?o:i}get(e,i){if(!Tr(e)||!e.length)throw new Error('Parameter "key" required');if(this.pending)return this.loadingTranslations.pipe(qo(r=>Ds(r=this.getParsedResult(r,e,i))?r:Ne(r)));{let r=this.getParsedResult(this.translations[this.currentLang],e,i);return Ds(r)?r:Ne(r)}}getStreamOnTranslationChange(e,i){if(!Tr(e)||!e.length)throw new Error('Parameter "key" required');return bc(la(()=>this.get(e,i)),this.onTranslationChange.pipe(Kn(r=>{const o=this.getParsedResult(r.translations,e,i);return"function"==typeof o.subscribe?o:Ne(o)})))}stream(e,i){if(!Tr(e)||!e.length)throw new Error('Parameter "key" required');return bc(la(()=>this.get(e,i)),this.onLangChange.pipe(Kn(r=>{const o=this.getParsedResult(r.translations,e,i);return Ds(o)?o:Ne(o)})))}instant(e,i){if(!Tr(e)||!e.length)throw new Error('Parameter "key" required');let r=this.getParsedResult(this.translations[this.currentLang],e,i);if(Ds(r)){if(e instanceof Array){let o={};return e.forEach((s,a)=>{o[e[a]]=e[a]}),o}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)(M(S2),M(ld),M(mf),M(ff),M(zy),M($y),M(Wy),M(Yy),M(Ky))},n.\u0275prov=ge({token:n,factory:n.\u0275fac}),n})(),ki=(()=>{class n{constructor(e,i){this.translate=e,this._ref=i,this.value=""}updateValue(e,i,r){let o=s=>{this.value=void 0!==s?s:e,this.lastKey=e,this._ref.markForCheck()};if(r){let s=this.translate.getParsedResult(r,e,i);Ds(s.subscribe)?s.subscribe(o):o(s)}this.translate.get(e,i).subscribe(o)}transform(e,...i){if(!e||!e.length)return e;if(cd(e,this.lastKey)&&cd(i,this.lastParams))return this.value;let r;if(Tr(i[0])&&i.length)if("string"==typeof i[0]&&i[0].length){let o=i[0].replace(/(\')?([a-zA-Z0-9_]+)(\')?(\s)?:/g,'"$2":').replace(/:(\s)?(\')(.*?)(\')/g,':"$3"');try{r=JSON.parse(o)}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(o=>{this.lastKey&&o.lang===this.translate.currentLang&&(this.lastKey=null,this.updateValue(e,r,o.translations))})),this.onLangChange||(this.onLangChange=this.translate.onLangChange.subscribe(o=>{this.lastKey&&(this.lastKey=null,this.updateValue(e,r,o.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)(p(Ut,16),p(St,16))},n.\u0275pipe=Ui({name:"translate",type:n,pure:!1}),n.\u0275prov=ge({token:n,factory:n.\u0275fac}),n})(),bU=(()=>{class n{static forRoot(e={}){return{ngModule:n,providers:[e.loader||{provide:ld,useClass:b2},e.compiler||{provide:mf,useClass:D2},e.parser||{provide:ff,useClass:E2},e.missingTranslationHandler||{provide:zy,useClass:C2},S2,{provide:Wy,useValue:e.isolate},{provide:$y,useValue:e.useDefaultLang},{provide:Yy,useValue:e.extend},{provide:Ky,useValue:e.defaultLanguage},Ut]}}static forChild(e={}){return{ngModule:n,providers:[e.loader||{provide:ld,useClass:b2},e.compiler||{provide:mf,useClass:D2},e.parser||{provide:ff,useClass:E2},e.missingTranslationHandler||{provide:zy,useClass:C2},{provide:Wy,useValue:e.isolate},{provide:$y,useValue:e.useDefaultLang},{provide:Yy,useValue:e.extend},{provide:Ky,useValue:e.defaultLanguage},Ut]}}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=ht({type:n}),n.\u0275inj=dt({}),n})(),Yr=(()=>{class n{constructor(e){this.translate=e,this.messageEvent=new He,this.nextModal=null,this.previousModal=null,e.setDefaultLang("all"),e.use("all")}ngOnInit(){this.next=this.data.nextType}ngAfterViewInit(){this.messageEvent.emit(this.modalTemp),this.modalHeader=this.data.modalHeader,this.modalFooter=this.data.modalFooter}getTemplate(){return this.modalTemp}extractDBFromPointer(e){return e.substring(e.lastIndexOf("|")+1)}confirmAction(){}cancelAction(){this.data.closeAllModal()}closeAll(){this.data.closeAllModal()}get next(){return this.nextModal}set next(e){this.nextModal=e}get previous(){return this.previousModal}set previous(e){this.previousModal=e}set title(e){this.modalTitle=e}openAnotherModal(e,i){return null!=e?this.modalMain.loadComponent(e,i):null}}return n.\u0275fac=function(e){return new(e||n)(p(Ut))},n.\u0275dir=fe({type:n,inputs:{data:"data",modalMain:"modalMain"},outputs:{messageEvent:"messageEvent"}}),n})();const CU=["address","path","index","lc","localLC","modalDesign","init","webInt","webIntModal","login","mailAddr","addressChange","graphRequired","graphLoaded","attachmentsLoaded","deleteAttachments","documentIconReady","connector","platform","destinationChanged","documentDestinationCheckChanged","itemRecognized","updateBM4OData","activeWindowChanged"];let Qy,Ri=(()=>{class n{constructor(){this.waitListRecord={},this.waitListWithFunction={},CU.forEach(e=>{this.waitListRecord[e]=[],this.waitListWithFunction[e]=[]})}addToWaitList(e,i){this.waitListRecord[e].push(i)}addToWaitListFunc(e,i,r){this.waitListWithFunction[e].push({subscriber:i,function:r})}accessWaitList(e){return this.waitListRecord[e]}clearWaitList(e){this.waitListRecord[e].length=0}resolveFuncWaitList(e){for(const i of this.waitListWithFunction[e])i.function(i.subscriber);this.waitListWithFunction[e].length=0}notifyWaitList(e,i,r){for(const o of this.accessWaitList(e))o.next(i),r&&o.complete()}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=ge({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),ot=(()=>{class n{constructor(e){this.waitListService=e,this.loggedIn=!1,this.showSelectedDocuments=!1,this.configJson={projectSelection:!0},this.indexParamStart="index.xsp?",this.urlExtension=this.indexParamStart+"loadTabs=false",this.curSystem="gi";const i=window.localStorage.getItem("webInt");null!==i&&""!==i&&(this.curSystem="start"),this.currentWebInt="",null!=window.localStorage.getItem("webInt")&&(this.currentWebInt=window.localStorage.getItem("webInt"),this.currentWebInt=encodeURI(this.currentWebInt),this.setSystemFromURL(this.currentWebInt)),this.mailAddr="",this.mailUnid="",this.subject="",this.resetMailAddr="",this.cc=[],this.to=[],this.from={},this.mailAddrCount=0,this.currentWebInt&&(this.webIntUrl=new URL(this.currentWebInt)),this.lcs={},this.lcsLocal={},this.selectedContacts=null,this.modalSessionCache=!1,this.rippleColorRGBA="rgba(154, 169, 255, 0.1)",this.createAddressOpen=!1,this.ownMail="",this.showMailBody=!0,this.connectorType=null,this.allowActions=!1,this.allowCreate=!1,this.attachmentsLoaded=!0,this.hideBackground=!1,this.useClient=!1,this.redirect=!1,this.redirect=!!new URLSearchParams(window.location.search).has("redirect"),this.optionsObj={method:"GET",mode:"cors",cache:"no-cache",credentials:"include",headers:{"Content-Type":"application/x-www-form-urlencoded"},redirect:"follow",referrerPolicy:"no-referrer"}}get activeWindow(){return this._activeWindow}set activeWindow(e){let i=this._activeWindow;this._activeWindow=e;let r=new wU;r.currentWindow=i,r.newWindow=e,this.activeWindowChanged(r)}setSystemFromURL(e){return e.includes(".nsf")?(this.system="gi","gi"):(this.system="ba","ba")}get isRedirectPage(){return this.redirect}set hideForLogin(e){this.hideBackground=e}get hideForLogin(){return this.hideBackground}set isClient(e){this.useClient=e}get isClient(){return this.useClient}set attachmentsReady(e){this.attachmentsLoaded=e,this.waitListService.notifyWaitList("attachmentsLoaded",e,!0)}get attachmentsReady(){return this.attachmentsLoaded}set system(e){this.curSystem=e}get system(){return this.curSystem}set loginOpen(e){this.loginWindowOpen=e}get loginOpen(){return this.loginWindowOpen}set curOWAMessageID(e){this.messageID=e}get curOWAMessageID(){return this.messageID}set actionsAllowed(e){this.allowActions=e}get actionsAllowed(){return this.allowActions}set createAllowed(e){this.allowCreate=e}get createAllowed(){return this.allowCreate}set openMail(e){this.openEMail=e}get openMail(){return this.openEMail}set deleteAttachments(e){this.waitListService.notifyWaitList("deleteAttachments",e),this.deleteAttach=e}get deleteAttachments(){return this.deleteAttach}set curConnectorType(e){this.connectorType=e}get curConnectorType(){return this.connectorType}set curConnector(e){this.connector=e,this.waitListService.notifyWaitList("connector",!0)}get curConnector(){return this.connector}get isCreateBlockOpen(){return this.createAddressOpen}get rippleColor(){return this.rippleColorRGBA}set webInt(e){this.currentWebInt=e,this.webIntUrl=new URL(this.currentWebInt),null!=this.currentWebInt&&""!==this.currentWebInt&&this.notifyWaitList()}get webInt(){return this.currentWebInt}set displayMailBody(e){this.showMailBody=e}get displayMailBody(){return this.showMailBody}set curMailAddr(e){""===this.resetMailAddr&&(this.resetMailAddr=e),this.mailAddr=e,this.waitListService.resolveFuncWaitList("mailAddr")}get curMailAddr(){return this.mailAddr}get startMailAddr(){return this.resetMailAddr}set curSubject(e){this.subject=e}get curSubject(){return this.subject}set curCC(e){this.cc=e}get curCC(){return this.cc}set curTo(e){this.to=e}get curTo(){return this.to}set curFrom(e){this.from=e}get curFrom(){return this.from}set curMailAddrCount(e){this.mailAddrCount=e}get curMailAddrCount(){return this.mailAddrCount}set curMailUnid(e){this.mailUnid=e}get curMailUnid(){return this.mailUnid}get origin(){return this.webIntUrl.origin}get options(){return this.optionsObj}get languageConf(){return this.lcs}set languageConf(e){this.lcs=e}set ownMailAddr(e){this.ownMail=e}set languageConfLocal(e){this.lcsLocal=e}get languageConfLocal(){return this.lcsLocal}get currentContactsDB(){return this.selectedContacts}set currentContactsDB(e){this.selectedContacts=e}get modalCacheFlag(){return this.modalSessionCache}set modalCacheFlag(e){this.modalSessionCache=e}languageEntry(e){return this.lcs[e]}changeGlobalOptions(e){return this.changeOptionsObj(e,this.optionsObj)}changeOwnOptions(e){const i={};return Object.assign(i,this.optionsObj),this.changeOptionsObj(e,i)}objectWithParams(e){let i={};return i=Object.assign(i,this.options),i.params=e,i}clearTemps(){this.clearModalTemps()}clearModalTemps(){this.currentContactsDB=null}createAddressToggle(){this.createAddressOpen=!this.createAddressOpen}waitForWebInt(e){this.waitListService.addToWaitList("webInt",e)}notifyWaitList(){this.waitListService.notifyWaitList("webInt",this.webInt,!0),this.waitListService.clearWaitList("webInt")}changeOptionsObj(e,i){return new Map(Object.entries(e)).forEach((o,s)=>{i[s]=o}),i}showSpinner(){document.getElementById("loadingSpinner").style.display="block"}hideSpinner(){document.getElementById("loadingSpinner").style.display="none"}numericBackendVersion(){if("ba"===this.curSystem){if(!this.backendVersion)return 8e4;let e=this.backendVersion.split("."),i="";return e.forEach(r=>{i+=r.padStart(2,"0")}),Number.parseInt(i,10)}return 8}onActiveWindowChange(){return new b(e=>{this.waitListService.addToWaitList("activeWindowChanged",e)})}activeWindowChanged(e){for(const i of this.waitListService.accessWaitList("activeWindowChanged"))i.next(e)}convertToLink(e){return this.webInt+this.urlExtension+"&openDocument="+e}set graphRequired(e){this.graphReq=e,this.waitListService.notifyWaitList("graphRequired",e,!0)}get graphRequired(){return this.graphReq}set graphLoaded(e){this.graphLoad=e;for(const i of this.waitListService.accessWaitList("graphLoaded"))i.next(e),i.complete()}get graphLoaded(){return this.graphLoad}}return n.\u0275fac=function(e){return new(e||n)(M(Ri))},n.\u0275prov=ge({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();class wU{}try{Qy=typeof Intl<"u"&&Intl.v8BreakIterator}catch{Qy=!1}let Cc,Nn=(()=>{class n{constructor(e){this._platformId=e,this.isBrowser=this._platformId?function aH(n){return n===kT}(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&&!Qy)&&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)(M(Tp))},n.\u0275prov=ge({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const A2=["color","button","checkbox","date","datetime-local","email","file","hidden","image","month","number","password","radio","range","reset","search","submit","tel","text","time","url","week"];function T2(){if(Cc)return Cc;if("object"!=typeof document||!document)return Cc=new Set(A2),Cc;let n=document.createElement("input");return Cc=new Set(A2.filter(t=>(n.setAttribute("type",t),n.type===t))),Cc}let ud,Ja,Jy;function As(n){return function EU(){if(null==ud&&typeof window<"u")try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:()=>ud=!0}))}finally{ud=ud||!1}return ud}()?n:!!n.capture}function DU(){if(null==Ja){if("object"!=typeof document||!document||"function"!=typeof Element||!Element)return Ja=!1,Ja;if("scrollBehavior"in document.documentElement.style)Ja=!0;else{const n=Element.prototype.scrollTo;Ja=!!n&&!/\{\s*\[native code\]\s*\}/.test(n.toString())}}return Ja}function _f(n){if(function SU(){if(null==Jy){const n=typeof document<"u"?document.head:null;Jy=!(!n||!n.createShadowRoot&&!n.attachShadow)}return Jy}()){const t=n.getRootNode?n.getRootNode():null;if(typeof ShadowRoot<"u"&&ShadowRoot&&t instanceof ShadowRoot)return t}return null}function Zy(){let n=typeof document<"u"&&document?document.activeElement:null;for(;n&&n.shadowRoot;){const t=n.shadowRoot.activeElement;if(t===n)break;n=t}return n}function Qr(n){return n.composedPath?n.composedPath()[0]:n.target}function Xy(){return typeof __karma__<"u"&&!!__karma__||typeof jasmine<"u"&&!!jasmine||typeof jest<"u"&&!!jest||typeof Mocha<"u"&&!!Mocha}class ar extends N{constructor(t){super(),this._value=t}get value(){return this.getValue()}_subscribe(t){const e=super._subscribe(t);return e&&!e.closed&&t.next(this._value),e}getValue(){if(this.hasError)throw this.thrownError;if(this.closed)throw new oe;return this._value}next(t){super.next(this._value=t)}}function yi(n,...t){return t.length?t.some(e=>n[e]):n.altKey||n.shiftKey||n.ctrlKey||n.metaKey}function ua(){}function Yn(n,t,e){return function(r){return r.lift(new FU(n,t,e))}}class FU{constructor(t,e,i){this.nextOrObserver=t,this.error=e,this.complete=i}call(t,e){return e.subscribe(new BU(t,this.nextOrObserver,this.error,this.complete))}}class BU extends S{constructor(t,e,i,r){super(t),this._tapNext=ua,this._tapError=ua,this._tapComplete=ua,this._tapError=i||ua,this._tapComplete=r||ua,le(e)?(this._context=this,this._tapNext=e):e&&(this._context=e,this._tapNext=e.next||ua,this._tapError=e.error||ua,this._tapComplete=e.complete||ua)}_next(t){try{this._tapNext.call(this._context,t)}catch(e){return void this.destination.error(e)}this.destination.next(t)}_error(t){try{this._tapError.call(this._context,t)}catch(e){return void this.destination.error(e)}this.destination.error(t)}_complete(){try{this._tapComplete.call(this._context)}catch(t){return void this.destination.error(t)}return this.destination.complete()}}const Dc=new Eo(hf);function ib(n,t=Dc){return e=>e.lift(new jU(n,t))}class jU{constructor(t,e){this.dueTime=t,this.scheduler=e}call(t,e){return e.subscribe(new HU(t,this.dueTime,this.scheduler))}}class HU extends S{constructor(t,e,i){super(t),this.dueTime=e,this.scheduler=i,this.debouncedSubscription=null,this.lastValue=null,this.hasValue=!1}_next(t){this.clearDebounce(),this.lastValue=t,this.hasValue=!0,this.add(this.debouncedSubscription=this.scheduler.schedule(VU,this.dueTime,this))}_complete(){this.debouncedNext(),this.destination.complete()}debouncedNext(){if(this.clearDebounce(),this.hasValue){const{lastValue:t}=this;this.lastValue=null,this.hasValue=!1,this.destination.next(t)}}clearDebounce(){const t=this.debouncedSubscription;null!==t&&(this.remove(t),t.unsubscribe(),this.debouncedSubscription=null)}}function VU(n){n.debouncedNext()}function rb(n){return t=>t.lift(new UU(n))}class UU{constructor(t){this.total=t}call(t,e){return e.subscribe(new qU(t,this.total))}}class qU extends S{constructor(t,e){super(t),this.total=e,this.count=0}_next(t){++this.count>this.total&&this.destination.next(t)}}function bf(n,t){return e=>e.lift(new zU(n,t))}class zU{constructor(t,e){this.compare=t,this.keySelector=e}call(t,e){return e.subscribe(new GU(t,this.compare,this.keySelector))}}class GU extends S{constructor(t,e,i){super(t),this.keySelector=i,this.hasKey=!1,"function"==typeof e&&(this.compare=e)}compare(t,e){return t===e}_next(t){let e;try{const{keySelector:r}=this;e=r?r(t):t}catch(r){return this.destination.error(r)}let i=!1;if(this.hasKey)try{const{compare:r}=this;i=r(this.key,e)}catch(r){return this.destination.error(r)}else this.hasKey=!0;i||(this.key=e,this.destination.next(t))}}function Jt(n){return t=>t.lift(new WU(n))}class WU{constructor(t){this.notifier=t}call(t,e){const i=new $U(t),r=uu(this.notifier,new ko(i));return r&&!i.seenValue?(i.add(r),e.subscribe(i)):i}}class $U extends cu{constructor(t){super(t),this.seenValue=!1}notifyNext(){this.seenValue=!0,this.complete()}notifyComplete(){}}function lt(n){return null!=n&&"false"!=`${n}`}function xs(n,t=0){return function KU(n){return!isNaN(parseFloat(n))&&!isNaN(Number(n))}(n)?Number(n):t}function Cf(n){return Array.isArray(n)?n:[n]}function ti(n){return null==n?"":"string"==typeof n?n:`${n}px`}function Qn(n){return n instanceof Je?n.nativeElement:n}let x2=(()=>{class n{create(e){return typeof MutationObserver>"u"?null:new MutationObserver(e)}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=ge({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),QU=(()=>{class n{constructor(e){this._mutationObserverFactory=e,this._observedElements=new Map}ngOnDestroy(){this._observedElements.forEach((e,i)=>this._cleanupObserver(i))}observe(e){const i=Qn(e);return new b(r=>{const s=this._observeElement(i).subscribe(r);return()=>{s.unsubscribe(),this._unobserveElement(i)}})}_observeElement(e){if(this._observedElements.has(e))this._observedElements.get(e).count++;else{const i=new N,r=this._mutationObserverFactory.create(o=>i.next(o));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)(M(x2))},n.\u0275prov=ge({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),wf=(()=>{class n{constructor(e,i,r){this._contentObserver=e,this._elementRef=i,this._ngZone=r,this.event=new He,this._disabled=!1,this._currentSubscription=null}get disabled(){return this._disabled}set disabled(e){this._disabled=lt(e),this._disabled?this._unsubscribe():this._subscribe()}get debounce(){return this._debounce}set debounce(e){this._debounce=xs(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(ib(this.debounce)):e).subscribe(this.event)})}_unsubscribe(){this._currentSubscription?.unsubscribe()}}return n.\u0275fac=function(e){return new(e||n)(p(QU),p(Je),p(et))},n.\u0275dir=fe({type:n,selectors:[["","cdkObserveContent",""]],inputs:{disabled:["cdkObserveContentDisabled","disabled"],debounce:"debounce"},outputs:{event:"cdkObserveContent"},exportAs:["cdkObserveContent"]}),n})(),dd=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=ht({type:n}),n.\u0275inj=dt({providers:[x2]}),n})();class JU extends S{notifyNext(t,e,i,r,o){this.destination.next(e)}notifyError(t,e){this.destination.error(t)}notifyComplete(t){this.destination.complete()}}class ZU extends S{constructor(t,e,i){super(),this.parent=t,this.outerValue=e,this.outerIndex=i,this.index=0}_next(t){this.parent.notifyNext(this.outerValue,t,this.outerIndex,this.index++,this)}_error(t){this.parent.notifyError(t,this),this.unsubscribe()}_complete(){this.parent.notifyComplete(this),this.unsubscribe()}}function XU(n,t,e,i,r=new ZU(n,e,i)){if(!r.closed)return t instanceof b?t.subscribe(r):Ge(t)(r)}const I2={};function ob(...n){let t,e;return pe(n[n.length-1])&&(e=n.pop()),"function"==typeof n[n.length-1]&&(t=n.pop()),1===n.length&&F(n[0])&&(n=n[0]),yg(n,e).lift(new e8(t))}class e8{constructor(t){this.resultSelector=t}call(t,e){return e.subscribe(new t8(t,this.resultSelector))}}class t8 extends JU{constructor(t,e){super(t),this.resultSelector=e,this.active=0,this.values=[],this.observables=[]}_next(t){this.values.push(I2),this.observables.push(t)}_complete(){const t=this.observables,e=t.length;if(0===e)this.destination.complete();else{this.active=e,this.toRespond=e;for(let i=0;ibc(n,e,t)):e=>bc(n,e)}const M2=new Set;let Sc,n8=(()=>{class n{constructor(e){this._platform=e,this._matchMedia=this._platform.isBrowser&&window.matchMedia?window.matchMedia.bind(window):r8}matchMedia(e){return(this._platform.WEBKIT||this._platform.BLINK)&&function i8(n){if(!M2.has(n))try{Sc||(Sc=document.createElement("style"),Sc.setAttribute("type","text/css"),document.head.appendChild(Sc)),Sc.sheet&&(Sc.sheet.insertRule(`@media ${n} {body{ }}`,0),M2.add(n))}catch(t){console.error(t)}}(e),this._matchMedia(e)}}return n.\u0275fac=function(e){return new(e||n)(M(Nn))},n.\u0275prov=ge({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();function r8(n){return{matches:"all"===n||""===n,media:n,addListener:()=>{},removeListener:()=>{}}}let sb=(()=>{class n{constructor(e,i){this._mediaMatcher=e,this._zone=i,this._queries=new Map,this._destroySubject=new N}ngOnDestroy(){this._destroySubject.next(),this._destroySubject.complete()}isMatched(e){return k2(Cf(e)).some(r=>this._registerQuery(r).mql.matches)}observe(e){let o=ob(k2(Cf(e)).map(s=>this._registerQuery(s).observable));return o=bc(o.pipe(sn(1)),o.pipe(rb(1),ib(0))),o.pipe(he(s=>{const a={matches:!1,breakpoints:{}};return s.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),o={observable:new b(s=>{const a=l=>this._zone.run(()=>s.next(l));return i.addListener(a),()=>{i.removeListener(a)}}).pipe(ni(i),he(({matches:s})=>({query:e,matches:s})),Jt(this._destroySubject)),mql:i};return this._queries.set(e,o),o}}return n.\u0275fac=function(e){return new(e||n)(M(n8),M(et))},n.\u0275prov=ge({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();function k2(n){return n.map(t=>t.split(",")).reduce((t,e)=>t.concat(e)).map(t=>t.trim())}function Ef(n,t){return(n.getAttribute(t)||"").match(/\S+/g)||[]}const O2="cdk-describedby-message",Df="cdk-describedby-host";let ab=0,l8=(()=>{class n{constructor(e,i){this._platform=i,this._messageRegistry=new Map,this._messagesContainer=null,this._id=""+ab++,this._document=e,this._id=Oa(fc)+"-"+ab++}describe(e,i,r){if(!this._canBeDescribed(e,i))return;const o=lb(i,r);"string"!=typeof i?(P2(i,this._id),this._messageRegistry.set(o,{messageElement:i,referenceCount:0})):this._messageRegistry.has(o)||this._createMessageElement(i,r),this._isElementDescribedByMessage(e,o)||this._addMessageReference(e,o)}removeDescription(e,i,r){if(!i||!this._isElementNode(e))return;const o=lb(i,r);if(this._isElementDescribedByMessage(e,o)&&this._removeMessageReference(e,o),"string"==typeof i){const s=this._messageRegistry.get(o);s&&0===s.referenceCount&&this._deleteMessageElement(o)}0===this._messagesContainer?.childNodes.length&&(this._messagesContainer.remove(),this._messagesContainer=null)}ngOnDestroy(){const e=this._document.querySelectorAll(`[${Df}="${this._id}"]`);for(let i=0;i0!=r.indexOf(O2));e.setAttribute("aria-describedby",i.join(" "))}_addMessageReference(e,i){const r=this._messageRegistry.get(i);(function s8(n,t,e){const i=Ef(n,t);i.some(r=>r.trim()==e.trim())||(i.push(e.trim()),n.setAttribute(t,i.join(" ")))})(e,"aria-describedby",r.messageElement.id),e.setAttribute(Df,this._id),r.referenceCount++}_removeMessageReference(e,i){const r=this._messageRegistry.get(i);r.referenceCount--,function a8(n,t,e){const r=Ef(n,t).filter(o=>o!=e.trim());r.length?n.setAttribute(t,r.join(" ")):n.removeAttribute(t)}(e,"aria-describedby",r.messageElement.id),e.removeAttribute(Df)}_isElementDescribedByMessage(e,i){const r=Ef(e,"aria-describedby"),o=this._messageRegistry.get(i),s=o&&o.messageElement.id;return!!s&&-1!=r.indexOf(s)}_canBeDescribed(e,i){if(!this._isElementNode(e))return!1;if(i&&"object"==typeof i)return!0;const r=null==i?"":`${i}`.trim(),o=e.getAttribute("aria-label");return!(!r||o&&o.trim()===r)}_isElementNode(e){return e.nodeType===this._document.ELEMENT_NODE}}return n.\u0275fac=function(e){return new(e||n)(M(ft),M(Nn))},n.\u0275prov=ge({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();function lb(n,t){return"string"==typeof n?`${t||""}/${n}`:n}function P2(n,t){n.id||(n.id=`${O2}-${t}-${ab++}`)}class L2{constructor(t){this._items=t,this._activeItemIndex=-1,this._activeItem=null,this._wrap=!1,this._letterKeyStream=new N,this._typeaheadSubscription=E.EMPTY,this._vertical=!0,this._allowedModifierKeys=[],this._homeAndEnd=!1,this._skipPredicateFn=e=>e.disabled,this._pressedLetters=[],this.tabOut=new N,this.change=new N,t instanceof qa&&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(Yn(e=>this._pressedLetters.push(e)),ib(t),Tn(()=>this._pressedLetters.length>0),he(()=>this._pressedLetters.join(""))).subscribe(e=>{const i=this._getItemsArray();for(let r=1;r!t[o]||this._allowedModifierKeys.indexOf(o)>-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||yi(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 qa?this._items.toArray():this._items}}class N2 extends L2{setActiveItem(t){this.activeItem&&this.activeItem.setInactiveStyles(),super.setActiveItem(t),this.activeItem&&this.activeItem.setActiveStyles()}}class Sf extends L2{constructor(){super(...arguments),this._origin="program"}setFocusOrigin(t){return this._origin=t,this}setActiveItem(t){super.setActiveItem(t),this.activeItem&&this.activeItem.focus(this._origin)}}let Af=(()=>{class n{constructor(e){this._platform=e}isDisabled(e){return e.hasAttribute("disabled")}isVisible(e){return function u8(n){return!!(n.offsetWidth||n.offsetHeight||"function"==typeof n.getClientRects&&n.getClientRects().length)}(e)&&"visible"===getComputedStyle(e).visibility}isTabbable(e){if(!this._platform.isBrowser)return!1;const i=function c8(n){try{return n.frameElement}catch{return null}}(function v8(n){return n.ownerDocument&&n.ownerDocument.defaultView||window}(e));if(i&&(-1===B2(i)||!this.isVisible(i)))return!1;let r=e.nodeName.toLowerCase(),o=B2(e);return e.hasAttribute("contenteditable")?-1!==o:!("iframe"===r||"object"===r||this._platform.WEBKIT&&this._platform.IOS&&!function g8(n){let t=n.nodeName.toLowerCase(),e="input"===t&&n.type;return"text"===e||"password"===e||"select"===t||"textarea"===t}(e))&&("audio"===r?!!e.hasAttribute("controls")&&-1!==o:"video"===r?-1!==o&&(null!==o||this._platform.FIREFOX||e.hasAttribute("controls")):e.tabIndex>=0)}isFocusable(e,i){return function _8(n){return!function h8(n){return function f8(n){return"input"==n.nodeName.toLowerCase()}(n)&&"hidden"==n.type}(n)&&(function d8(n){let t=n.nodeName.toLowerCase();return"input"===t||"select"===t||"button"===t||"textarea"===t}(n)||function p8(n){return function m8(n){return"a"==n.nodeName.toLowerCase()}(n)&&n.hasAttribute("href")}(n)||n.hasAttribute("contenteditable")||F2(n))}(e)&&!this.isDisabled(e)&&(i?.ignoreVisibility||this.isVisible(e))}}return n.\u0275fac=function(e){return new(e||n)(M(Nn))},n.\u0275prov=ge({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();function F2(n){if(!n.hasAttribute("tabindex")||void 0===n.tabIndex)return!1;let t=n.getAttribute("tabindex");return!(!t||isNaN(parseInt(t,10)))}function B2(n){if(!F2(n))return null;const t=parseInt(n.getAttribute("tabindex")||"",10);return isNaN(t)?-1:t}class y8{constructor(t,e,i,r,o=!1){this._element=t,this._checker=e,this._ngZone=i,this._document=r,this._hasAttached=!1,this.startAnchorListener=()=>this.focusLastTabbableElement(),this.endAnchorListener=()=>this.focusFirstTabbableElement(),this._enabled=!0,o||this.attachAnchors()}get enabled(){return this._enabled}set enabled(t){this._enabled=t,this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(t,this._startAnchor),this._toggleAnchorTabIndex(t,this._endAnchor))}destroy(){const t=this._startAnchor,e=this._endAnchor;t&&(t.removeEventListener("focus",this.startAnchorListener),t.remove()),e&&(e.removeEventListener("focus",this.endAnchorListener),e.remove()),this._startAnchor=this._endAnchor=null,this._hasAttached=!1}attachAnchors(){return!!this._hasAttached||(this._ngZone.runOutsideAngular(()=>{this._startAnchor||(this._startAnchor=this._createAnchor(),this._startAnchor.addEventListener("focus",this.startAnchorListener)),this._endAnchor||(this._endAnchor=this._createAnchor(),this._endAnchor.addEventListener("focus",this.endAnchorListener))}),this._element.parentNode&&(this._element.parentNode.insertBefore(this._startAnchor,this._element),this._element.parentNode.insertBefore(this._endAnchor,this._element.nextSibling),this._hasAttached=!0),this._hasAttached)}focusInitialElementWhenReady(t){return new Promise(e=>{this._executeOnStable(()=>e(this.focusInitialElement(t)))})}focusFirstTabbableElementWhenReady(t){return new Promise(e=>{this._executeOnStable(()=>e(this.focusFirstTabbableElement(t)))})}focusLastTabbableElementWhenReady(t){return new Promise(e=>{this._executeOnStable(()=>e(this.focusLastTabbableElement(t)))})}_getRegionBoundary(t){const e=this._element.querySelectorAll(`[cdk-focus-region-${t}], [cdkFocusRegion${t}], [cdk-focus-${t}]`);return"start"==t?e.length?e[0]:this._getFirstTabbableElement(this._element):e.length?e[e.length-1]:this._getLastTabbableElement(this._element)}focusInitialElement(t){const e=this._element.querySelector("[cdk-focus-initial], [cdkFocusInitial]");if(e){if(!this._checker.isFocusable(e)){const i=this._getFirstTabbableElement(e);return i?.focus(t),!!i}return e.focus(t),!0}return this.focusFirstTabbableElement(t)}focusFirstTabbableElement(t){const e=this._getRegionBoundary("start");return e&&e.focus(t),!!e}focusLastTabbableElement(t){const e=this._getRegionBoundary("end");return e&&e.focus(t),!!e}hasAttached(){return this._hasAttached}_getFirstTabbableElement(t){if(this._checker.isFocusable(t)&&this._checker.isTabbable(t))return t;const e=t.children;for(let i=0;i=0;i--){const r=e[i].nodeType===this._document.ELEMENT_NODE?this._getLastTabbableElement(e[i]):null;if(r)return r}return null}_createAnchor(){const t=this._document.createElement("div");return this._toggleAnchorTabIndex(this._enabled,t),t.classList.add("cdk-visually-hidden"),t.classList.add("cdk-focus-trap-anchor"),t.setAttribute("aria-hidden","true"),t}_toggleAnchorTabIndex(t,e){t?e.setAttribute("tabindex","0"):e.removeAttribute("tabindex")}toggleAnchors(t){this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(t,this._startAnchor),this._toggleAnchorTabIndex(t,this._endAnchor))}_executeOnStable(t){this._ngZone.isStable?t():this._ngZone.onStable.pipe(sn(1)).subscribe(t)}}let cb=(()=>{class n{constructor(e,i,r){this._checker=e,this._ngZone=i,this._document=r}create(e,i=!1){return new y8(e,this._checker,this._ngZone,this._document,i)}}return n.\u0275fac=function(e){return new(e||n)(M(Af),M(et),M(ft))},n.\u0275prov=ge({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();function Tf(n){return 0===n.buttons||0===n.offsetX&&0===n.offsetY}function xf(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 b8=new me("cdk-input-modality-detector-options"),C8={ignoreKeys:[18,17,224,91,16]},Ac=As({passive:!0,capture:!0});let w8=(()=>{class n{constructor(e,i,r,o){this._platform=e,this._mostRecentTarget=null,this._modality=new ar(null),this._lastTouchMs=0,this._onKeydown=s=>{this._options?.ignoreKeys?.some(a=>a===s.keyCode)||(this._modality.next("keyboard"),this._mostRecentTarget=Qr(s))},this._onMousedown=s=>{Date.now()-this._lastTouchMs<650||(this._modality.next(Tf(s)?"keyboard":"mouse"),this._mostRecentTarget=Qr(s))},this._onTouchstart=s=>{xf(s)?this._modality.next("keyboard"):(this._lastTouchMs=Date.now(),this._modality.next("touch"),this._mostRecentTarget=Qr(s))},this._options={...C8,...o},this.modalityDetected=this._modality.pipe(rb(1)),this.modalityChanged=this.modalityDetected.pipe(bf()),e.isBrowser&&i.runOutsideAngular(()=>{r.addEventListener("keydown",this._onKeydown,Ac),r.addEventListener("mousedown",this._onMousedown,Ac),r.addEventListener("touchstart",this._onTouchstart,Ac)})}get mostRecentModality(){return this._modality.value}ngOnDestroy(){this._modality.complete(),this._platform.isBrowser&&(document.removeEventListener("keydown",this._onKeydown,Ac),document.removeEventListener("mousedown",this._onMousedown,Ac),document.removeEventListener("touchstart",this._onTouchstart,Ac))}}return n.\u0275fac=function(e){return new(e||n)(M(Nn),M(et),M(ft),M(b8,8))},n.\u0275prov=ge({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const E8=new me("liveAnnouncerElement",{providedIn:"root",factory:function D8(){return null}}),S8=new me("LIVE_ANNOUNCER_DEFAULT_OPTIONS");let ub=(()=>{class n{constructor(e,i,r,o){this._ngZone=i,this._defaultOptions=o,this._document=r,this._liveElement=e||this._createLiveElement()}announce(e,...i){const r=this._defaultOptions;let o,s;return 1===i.length&&"number"==typeof i[0]?s=i[0]:[o,s]=i,this.clear(),clearTimeout(this._previousTimeout),o||(o=r&&r.politeness?r.politeness:"polite"),null==s&&r&&(s=r.duration),this._liveElement.setAttribute("aria-live",o),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 s&&(this._previousTimeout=setTimeout(()=>this.clear(),s)),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 o=0;o{class n{constructor(e,i,r,o,s){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 N,this._rootNodeFocusAndBlurListener=a=>{for(let c=Qr(a);c;c=c.parentElement)"focus"===a.type?this._onFocus(a,c):this._onBlur(a,c)},this._document=o,this._detectionMode=s?.detectionMode||0}monitor(e,i=!1){const r=Qn(e);if(!this._platform.isBrowser||1!==r.nodeType)return Ne(null);const o=_f(r)||this._getDocument(),s=this._elementInfo.get(r);if(s)return i&&(s.checkChildren=!0),s.subject;const a={checkChildren:i,subject:new N,rootNode:o};return this._elementInfo.set(r,a),this._registerGlobalListeners(a),a.subject}stopMonitoring(e){const i=Qn(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 o=Qn(e);o===this._getDocument().activeElement?this._getClosestElementsInfo(o).forEach(([a,l])=>this._originChanged(a,i,l)):(this._setOrigin(i),"function"==typeof o.focus&&o.focus(r))}ngOnDestroy(){this._elementInfo.forEach((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:e&&this._isLastInteractionFromInputLabel(e)?"mouse":"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),o=Qr(e);!r||!r.checkChildren&&i!==o||this._originChanged(i,this._getFocusOrigin(o),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,If),i.addEventListener("blur",this._rootNodeFocusAndBlurListener,If)}),this._rootNodeFocusListenerCount.set(i,r+1),1==++this._monitoredElementCount&&(this._ngZone.runOutsideAngular(()=>{this._getWindow().addEventListener("focus",this._windowFocusListener)}),this._inputModalityDetector.modalityDetected.pipe(Jt(this._stopInputModalityDetector)).subscribe(o=>{this._setOrigin(o,!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,If),i.removeEventListener("blur",this._rootNodeFocusAndBlurListener,If),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,o)=>{(o===e||r.checkChildren&&o.contains(e))&&i.push([o,r])}),i}_isLastInteractionFromInputLabel(e){const{_mostRecentTarget:i,mostRecentModality:r}=this._inputModalityDetector;if("mouse"!==r||!i||i===e||"INPUT"!==e.nodeName&&"TEXTAREA"!==e.nodeName||e.disabled)return!1;const o=e.labels;if(o)for(let s=0;s{class n{constructor(e,i){this._elementRef=e,this._focusMonitor=i,this._focusOrigin=null,this.cdkFocusChange=new He}get focusOrigin(){return this._focusOrigin}ngAfterViewInit(){const e=this._elementRef.nativeElement;this._monitorSubscription=this._focusMonitor.monitor(e,1===e.nodeType&&e.hasAttribute("cdkMonitorSubtreeFocus")).subscribe(i=>{this._focusOrigin=i,this.cdkFocusChange.emit(i)})}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._monitorSubscription&&this._monitorSubscription.unsubscribe()}}return n.\u0275fac=function(e){return new(e||n)(p(Je),p(Do))},n.\u0275dir=fe({type:n,selectors:[["","cdkMonitorElementFocus",""],["","cdkMonitorSubtreeFocus",""]],outputs:{cdkFocusChange:"cdkFocusChange"},exportAs:["cdkMonitorFocus"]}),n})();const H2="cdk-high-contrast-black-on-white",V2="cdk-high-contrast-white-on-black",db="cdk-high-contrast-active";let U2=(()=>{class n{constructor(e,i){this._platform=e,this._document=i,this._breakpointSubscription=Oa(sb).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,o=(r&&r.backgroundColor||"").replace(/ /g,"");switch(e.remove(),o){case"rgb(0,0,0)":case"rgb(45,50,54)":case"rgb(32,32,32)":return 2;case"rgb(255,255,255)":case"rgb(255,250,239)":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(db,H2,V2),this._hasCheckedHighContrastMode=!0;const i=this.getHighContrastMode();1===i?e.add(db,H2):2===i&&e.add(db,V2)}}}return n.\u0275fac=function(e){return new(e||n)(M(Nn),M(ft))},n.\u0275prov=ge({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),hb=(()=>{class n{constructor(e){e._applyBodyHighContrastModeCssClasses()}}return n.\u0275fac=function(e){return new(e||n)(M(U2))},n.\u0275mod=ht({type:n}),n.\u0275inj=dt({imports:[dd]}),n})();function Is(n,t,e,i){return le(e)&&(i=e,e=void 0),i?Is(n,t,e).pipe(he(r=>F(r)?i(...r):i(r))):new b(r=>{q2(n,t,function o(s){r.next(arguments.length>1?Array.prototype.slice.call(arguments):s)},r,e)})}function q2(n,t,e,i,r){let o;if(function M8(n){return n&&"function"==typeof n.addEventListener&&"function"==typeof n.removeEventListener}(n)){const s=n;n.addEventListener(t,e,r),o=()=>s.removeEventListener(t,e,r)}else if(function I8(n){return n&&"function"==typeof n.on&&"function"==typeof n.off}(n)){const s=n;n.on(t,e),o=()=>s.off(t,e)}else if(function x8(n){return n&&"function"==typeof n.addListener&&"function"==typeof n.removeListener}(n)){const s=n;n.addListener(t,e),o=()=>s.removeListener(t,e)}else{if(!n||!n.length)throw new TypeError("Invalid event target");for(let s=0,a=n.length;s0?super.requestAsyncId(t,e,i):(t.actions.push(this),t.scheduled||(t.scheduled=requestAnimationFrame(()=>t.flush(null))))}recycleAsyncId(t,e,i=0){if(null!==i&&i>0||null===i&&this.delay>0)return super.recycleAsyncId(t,e,i);0===t.actions.length&&(cancelAnimationFrame(e),t.scheduled=void 0)}});let O8=1;const P8=Promise.resolve(),Mf={};function G2(n){return n in Mf&&(delete Mf[n],!0)}const W2={setImmediate(n){const t=O8++;return Mf[t]=!0,P8.then(()=>G2(t)&&n()),t},clearImmediate(n){G2(n)}},pb=new class N8 extends Eo{flush(t){this.active=!0,this.scheduled=void 0;const{actions:e}=this;let i,r=-1,o=e.length;t=t||e.shift();do{if(i=t.execute(t.state,t.delay))break}while(++r0?super.requestAsyncId(t,e,i):(t.actions.push(this),t.scheduled||(t.scheduled=W2.setImmediate(t.flush.bind(t,null))))}recycleAsyncId(t,e,i=0){if(null!==i&&i>0||null===i&&this.delay>0)return super.recycleAsyncId(t,e,i);0===t.actions.length&&(W2.clearImmediate(e),t.scheduled=void 0)}});class B8{constructor(t){this.durationSelector=t}call(t,e){return e.subscribe(new j8(t,this.durationSelector))}}class j8 extends cu{constructor(t,e){super(t),this.durationSelector=e,this.hasValue=!1}_next(t){if(this.value=t,this.hasValue=!0,!this.throttled){let e;try{const{durationSelector:r}=this;e=r(t)}catch(r){return this.destination.error(r)}const i=uu(e,new ko(this));!i||i.closed?this.clearThrottle():this.add(this.throttled=i)}}clearThrottle(){const{value:t,hasValue:e,throttled:i}=this;i&&(this.remove(i),this.throttled=void 0,i.unsubscribe()),e&&(this.value=void 0,this.hasValue=!1,this.destination.next(t))}notifyNext(){this.clearThrottle()}notifyComplete(){this.clearThrottle()}}function fb(n){return!F(n)&&n-parseFloat(n)+1>=0}function $2(n=0,t,e){let i=-1;return fb(t)?i=Number(t)<1?1:Number(t):pe(t)&&(e=t),pe(e)||(e=Dc),new b(r=>{const o=fb(n)?n:+n-e.now();return e.schedule(H8,o,{index:0,period:i,subscriber:r})})}function H8(n){const{index:t,period:e,subscriber:i}=n;if(i.next(t),!i.closed){if(-1===e)return i.complete();n.index=t+1,this.schedule(n,e)}}function K2(n,t=Dc){return function F8(n){return function(e){return e.lift(new B8(n))}}(()=>$2(n,t))}const V8=new me("cdk-dir-doc",{providedIn:"root",factory:function U8(){return Oa(ft)}}),q8=/^(ar|ckb|dv|he|iw|fa|nqo|ps|sd|ug|ur|yi|.*[-_](Adlm|Arab|Hebr|Nkoo|Rohg|Thaa))(?!.*[-_](Latn|Cyrl)($|-|_))($|-|_)/i;let Xi=(()=>{class n{constructor(e){if(this.value="ltr",this.change=new He,e){const r=e.documentElement?e.documentElement.dir:null;this.value=function z8(n){const t=n?.toLowerCase()||"";return"auto"===t&&typeof navigator<"u"&&navigator?.language?q8.test(navigator.language)?"rtl":"ltr":"rtl"===t?"rtl":"ltr"}((e.body?e.body.dir:null)||r||"ltr")}}ngOnDestroy(){this.change.complete()}}return n.\u0275fac=function(e){return new(e||n)(M(V8,8))},n.\u0275prov=ge({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),hd=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=ht({type:n}),n.\u0275inj=dt({}),n})(),W8=(()=>{class n{constructor(e,i,r){this._ngZone=e,this._platform=i,this._scrolled=new N,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 b(i=>{this._globalSubscription||this._addGlobalListener();const r=e>0?this._scrolled.pipe(K2(e)).subscribe(i):this._scrolled.subscribe(i);return this._scrolledCount++,()=>{r.unsubscribe(),this._scrolledCount--,this._scrolledCount||this._removeGlobalListener()}}):Ne()}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(Tn(o=>!o||r.indexOf(o)>-1))}getAncestorScrollContainers(e){const i=[];return this.scrollContainers.forEach((r,o)=>{this._scrollableContainsElement(o,e)&&i.push(o)}),i}_getWindow(){return this._document.defaultView||window}_scrollableContainsElement(e,i){let r=Qn(i),o=e.getElementRef().nativeElement;do{if(r==o)return!0}while(r=r.parentElement);return!1}_addGlobalListener(){this._globalSubscription=this._ngZone.runOutsideAngular(()=>Is(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)(M(et),M(Nn),M(ft,8))},n.\u0275prov=ge({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),zo=(()=>{class n{constructor(e,i,r){this._platform=e,this._change=new N,this._changeListener=o=>{this._change.next(o)},this._document=r,i.runOutsideAngular(()=>{if(e.isBrowser){const o=this._getWindow();o.addEventListener("resize",this._changeListener),o.addEventListener("orientationchange",this._changeListener)}this.change().subscribe(()=>this._viewportSize=null)})}ngOnDestroy(){if(this._platform.isBrowser){const 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,o=r.getBoundingClientRect();return{top:-o.top||e.body.scrollTop||i.scrollY||r.scrollTop||0,left:-o.left||e.body.scrollLeft||i.scrollX||r.scrollLeft||0}}change(e=20){return e>0?this._change.pipe(K2(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)(M(Nn),M(et),M(ft,8))},n.\u0275prov=ge({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),Tc=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=ht({type:n}),n.\u0275inj=dt({}),n})(),mb=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=ht({type:n}),n.\u0275inj=dt({imports:[hd,Tc,hd,Tc]}),n})();class gb{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 pd extends gb{constructor(t,e,i,r){super(),this.component=t,this.viewContainerRef=e,this.injector=i,this.componentFactoryResolver=r}}class Ms extends gb{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 K8 extends gb{constructor(t){super(),this.element=t instanceof Je?t.nativeElement:t}}class kf{constructor(){this._isDisposed=!1,this.attachDomPortal=null}hasAttached(){return!!this._attachedPortal}attach(t){return t instanceof pd?(this._attachedPortal=t,this.attachComponentPortal(t)):t instanceof Ms?(this._attachedPortal=t,this.attachTemplatePortal(t)):this.attachDomPortal&&t instanceof K8?(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)}}class Y8 extends kf{constructor(t,e,i,r,o){super(),this.outletElement=t,this._componentFactoryResolver=e,this._appRef=i,this._defaultInjector=r,this.attachDomPortal=s=>{const a=s.element,l=this._document.createComment("dom-portal");a.parentNode.insertBefore(l,a),this.outletElement.appendChild(a),this._attachedPortal=s,super.setDisposeFn(()=>{l.parentNode&&l.parentNode.replaceChild(a,l)})},this._document=o}attachComponentPortal(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||Vn.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 Q8=(()=>{class n extends Ms{constructor(e,i){super(e,i)}}return n.\u0275fac=function(e){return new(e||n)(p(yn),p(Dn))},n.\u0275dir=fe({type:n,selectors:[["","cdkPortal",""]],exportAs:["cdkPortal"],features:[Se]}),n})(),ks=(()=>{class n extends kf{constructor(e,i,r){super(),this._componentFactoryResolver=e,this._viewContainerRef=i,this._isInitialized=!1,this.attached=new He,this.attachDomPortal=o=>{const s=o.element,a=this._document.createComment("dom-portal");o.setAttachedHost(this),s.parentNode.insertBefore(a,s),this._getRootNode().appendChild(s),this._attachedPortal=o,super.setDisposeFn(()=>{a.parentNode&&a.parentNode.replaceChild(s,a)})},this._document=r}get portal(){return this._attachedPortal}set portal(e){this.hasAttached()&&!e&&!this._isInitialized||(this.hasAttached()&&super.detach(),e&&super.attach(e),this._attachedPortal=e||null)}get attachedRef(){return this._attachedRef}ngOnInit(){this._isInitialized=!0}ngOnDestroy(){super.dispose(),this._attachedPortal=null,this._attachedRef=null}attachComponentPortal(e){e.setAttachedHost(this);const i=null!=e.viewContainerRef?e.viewContainerRef:this._viewContainerRef,o=(e.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(e.component),s=i.createComponent(o,i.length,e.injector||i.injector);return i!==this._viewContainerRef&&this._getRootNode().appendChild(s.hostView.rootNodes[0]),super.setDisposeFn(()=>s.destroy()),this._attachedPortal=e,this._attachedRef=s,this.attached.emit(s),s}attachTemplatePortal(e){e.setAttachedHost(this);const i=this._viewContainerRef.createEmbeddedView(e.templateRef,e.context,{injector:e.injector});return super.setDisposeFn(()=>this._viewContainerRef.clear()),this._attachedPortal=e,this._attachedRef=i,this.attached.emit(i),i}_getRootNode(){const e=this._viewContainerRef.element.nativeElement;return e.nodeType===e.ELEMENT_NODE?e:e.parentNode}}return n.\u0275fac=function(e){return new(e||n)(p(hs),p(Dn),p(ft))},n.\u0275dir=fe({type:n,selectors:[["","cdkPortalOutlet",""]],inputs:{portal:["cdkPortalOutlet","portal"]},outputs:{attached:"attached"},exportAs:["cdkPortalOutlet"],features:[Se]}),n})(),Xa=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=ht({type:n}),n.\u0275inj=dt({}),n})();function Y2(n,t=!1){return e=>e.lift(new J8(n,t))}class J8{constructor(t,e){this.predicate=t,this.inclusive=e}call(t,e){return e.subscribe(new Z8(t,this.predicate,this.inclusive))}}class Z8 extends S{constructor(t,e,i){super(t),this.predicate=e,this.inclusive=i,this.index=0}_next(t){const e=this.destination;let i;try{i=this.predicate(t,this.index++)}catch(r){return void e.error(r)}this.nextOrComplete(t,i)}nextOrComplete(t,e){const i=this.destination;Boolean(e)?i.next(t):(this.inclusive&&i.next(t),i.complete())}}const Q2=DU();class X8{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=ti(-this._previousScrollPosition.left),t.style.top=ti(-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,o=i.scrollBehavior||"",s=r.scrollBehavior||"";this._isEnabled=!1,i.left=this._previousHTMLStyles.left,i.top=this._previousHTMLStyles.top,t.classList.remove("cdk-global-scrollblock"),Q2&&(i.scrollBehavior=r.scrollBehavior="auto"),window.scroll(this._previousScrollPosition.left,this._previousScrollPosition.top),Q2&&(i.scrollBehavior=o,r.scrollBehavior=s)}}_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 e6{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 J2{enable(){}disable(){}attach(){}}function _b(n,t){return t.some(e=>n.bottome.bottom||n.righte.right)}function Z2(n,t){return t.some(e=>n.tope.bottom||n.lefte.right)}class t6{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();_b(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 n6=(()=>{class n{constructor(e,i,r,o){this._scrollDispatcher=e,this._viewportRuler=i,this._ngZone=r,this.noop=()=>new J2,this.close=s=>new e6(this._scrollDispatcher,this._ngZone,this._viewportRuler,s),this.block=()=>new X8(this._viewportRuler,this._document),this.reposition=s=>new t6(this._scrollDispatcher,this._viewportRuler,this._ngZone,s),this._document=o}}return n.\u0275fac=function(e){return new(e||n)(M(W8),M(zo),M(et),M(ft))},n.\u0275prov=ge({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();class xc{constructor(t){if(this.scrollStrategy=new J2,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 i6{constructor(t,e){this.connectionPair=t,this.scrollableViewProperties=e}}let X2=(()=>{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)(M(ft))},n.\u0275prov=ge({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),r6=(()=>{class n extends X2{constructor(e,i){super(e),this._ngZone=i,this._keydownListener=r=>{const o=this._attachedOverlays;for(let s=o.length-1;s>-1;s--)if(o[s]._keydownEvents.observers.length>0){const a=o[s]._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)(M(ft),M(et,8))},n.\u0275prov=ge({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),o6=(()=>{class n extends X2{constructor(e,i,r){super(e),this._platform=i,this._ngZone=r,this._cursorStyleIsSet=!1,this._pointerDownListener=o=>{this._pointerDownEventTarget=Qr(o)},this._clickListener=o=>{const s=Qr(o),a="click"===o.type&&this._pointerDownEventTarget?this._pointerDownEventTarget:s;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(s)||u.overlayElement.contains(a))break;const d=u._outsidePointerEvents;this._ngZone?this._ngZone.run(()=>d.next(o)):d.next(o)}}}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)(M(ft),M(Nn),M(et,8))},n.\u0275prov=ge({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),Rf=(()=>{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||Xy()){const r=this._document.querySelectorAll(`.${e}[platform="server"], .${e}[platform="test"]`);for(let o=0;othis._backdropClick.next(d),this._backdropTransitionendHandler=d=>{this._disposeBackdrop(d.target)},this._keydownEvents=new N,this._outsidePointerEvents=new N,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(sn(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),"function"==typeof e?.onDestroy&&e.onDestroy(()=>{this.hasAttached()&&this._ngZone.runOutsideAngular(()=>Promise.resolve().then(()=>this.detach()))}),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=ti(this._config.width),t.height=ti(this._config.height),t.minWidth=ti(this._config.minWidth),t.minHeight=ti(this._config.minHeight),t.maxWidth=ti(this._config.maxWidth),t.maxHeight=ti(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=Cf(e||[]).filter(o=>!!o);r.length&&(i?t.classList.add(...r):t.classList.remove(...r))}_detachContentWhenStable(){this._ngZone.runOutsideAngular(()=>{const t=this._ngZone.onStable.pipe(Jt(On(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 e1="cdk-overlay-connected-position-bounding-box",s6=/([A-Za-z%]+)$/;class a6{constructor(t,e,i,r,o){this._viewportRuler=e,this._document=i,this._platform=r,this._overlayContainer=o,this._lastBoundingBoxSize={width:0,height:0},this._isPushed=!1,this._canPush=!0,this._growAfterOpen=!1,this._hasFlexibleDimensions=!0,this._positionLocked=!1,this._viewportMargin=0,this._scrollables=[],this._preferredPositions=[],this._positionChanges=new N,this._resizeSubscription=E.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(e1),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,o=[];let s;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)?o.push({position:a,origin:l,overlayRect:e,boundingBoxRect:this._calculateBoundingBoxRect(l,a)}):(!s||s.overlayFit.visibleAreal&&(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(s.position,s.originPoint);this._applyPosition(s.position,s.originPoint)}detach(){this._clearPanelClasses(),this._lastPosition=null,this._previousPushAmount=null,this._resizeSubscription.unsubscribe()}dispose(){this._isDisposed||(this._boundingBox&&el(this._boundingBox.style,{top:"",left:"",right:"",bottom:"",height:"",width:"",alignItems:"",justifyContent:""}),this._pane&&this._resetOverlayElementStyles(),this._overlayRef&&this._overlayRef.hostElement.classList.remove(e1),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,o;if("center"==i.originX)r=t.left+t.width/2;else{const s=this._isRtl()?t.right:t.left,a=this._isRtl()?t.left:t.right;r="start"==i.originX?s:a}return e.left<0&&(r-=e.left),o="center"==i.originY?t.top+t.height/2:"top"==i.originY?t.top:t.bottom,e.top<0&&(o-=e.top),{x:r,y:o}}_getOverlayPoint(t,e,i){let r,o;return r="center"==i.overlayX?-e.width/2:"start"===i.overlayX?this._isRtl()?-e.width:0:this._isRtl()?0:-e.width,o="center"==i.overlayY?-e.height/2:"top"==i.overlayY?0:-e.height,{x:t.x+r,y:t.y+o}}_getOverlayFit(t,e,i,r){const o=n1(e);let{x:s,y:a}=t,l=this._getOffset(r,"x"),c=this._getOffset(r,"y");l&&(s+=l),c&&(a+=c);let h=0-a,m=a+o.height-i.height,y=this._subtractOverflows(o.width,0-s,s+o.width-i.width),A=this._subtractOverflows(o.height,h,m),U=y*A;return{visibleArea:U,isCompletelyWithinViewport:o.width*o.height===U,fitsInViewportVertically:A===o.height,fitsInViewportHorizontally:y==o.width}}_canFitWithFlexibleDimensions(t,e,i){if(this._hasFlexibleDimensions){const r=i.bottom-e.y,o=i.right-e.x,s=t1(this._overlayRef.getConfig().minHeight),a=t1(this._overlayRef.getConfig().minWidth),c=t.fitsInViewportHorizontally||null!=a&&a<=o;return(t.fitsInViewportVertically||null!=s&&s<=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=n1(e),o=this._viewportRect,s=Math.max(t.x+r.width-o.width,0),a=Math.max(t.y+r.height-o.height,0),l=Math.max(o.top-i.top-t.y,0),c=Math.max(o.left-i.left-t.x,0);let u=0,d=0;return u=r.width<=o.width?c||-s:t.xy&&!this._isInitialRender&&!this._growAfterOpen&&(s=t.y-y/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 m=Math.min(i.right-t.x+i.left,t.x),y=this._lastBoundingBoxSize.width;u=2*m,d=t.x-m,u>y&&!this._isInitialRender&&!this._growAfterOpen&&(d=t.x-y/2)}return{top:s,left:d,bottom:a,right:h,width:u,height:o}}_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 o=this._overlayRef.getConfig().maxHeight,s=this._overlayRef.getConfig().maxWidth;r.height=ti(i.height),r.top=ti(i.top),r.bottom=ti(i.bottom),r.width=ti(i.width),r.left=ti(i.left),r.right=ti(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",o&&(r.maxHeight=ti(o)),s&&(r.maxWidth=ti(s))}this._lastBoundingBoxSize=i,el(this._boundingBox.style,r)}_resetBoundingBoxStyles(){el(this._boundingBox.style,{top:"0",left:"0",right:"0",bottom:"0",height:"",width:"",alignItems:"",justifyContent:""})}_resetOverlayElementStyles(){el(this._pane.style,{top:"",left:"",bottom:"",right:"",position:"",transform:""})}_setOverlayElementStyles(t,e){const i={},r=this._hasExactPosition(),o=this._hasFlexibleDimensions,s=this._overlayRef.getConfig();if(r){const u=this._viewportRuler.getViewportScrollPosition();el(i,this._getExactOverlayY(e,t,u)),el(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(),s.maxHeight&&(r?i.maxHeight=ti(s.maxHeight):o&&(i.maxHeight="")),s.maxWidth&&(r?i.maxWidth=ti(s.maxWidth):o&&(i.maxWidth="")),el(this._pane.style,i)}_getExactOverlayY(t,e,i){let r={top:"",bottom:""},o=this._getOverlayPoint(e,this._overlayRect,t);return this._isPushed&&(o=this._pushOverlayOnScreen(o,this._overlayRect,i)),"bottom"===t.overlayY?r.bottom=this._document.documentElement.clientHeight-(o.y+this._overlayRect.height)+"px":r.top=ti(o.y),r}_getExactOverlayX(t,e,i){let s,r={left:"",right:""},o=this._getOverlayPoint(e,this._overlayRect,t);return this._isPushed&&(o=this._pushOverlayOnScreen(o,this._overlayRect,i)),s=this._isRtl()?"end"===t.overlayX?"left":"right":"end"===t.overlayX?"right":"left","right"===s?r.right=this._document.documentElement.clientWidth-(o.x+this._overlayRect.width)+"px":r.left=ti(o.x),r}_getScrollVisibility(){const t=this._getOriginRect(),e=this._pane.getBoundingClientRect(),i=this._scrollables.map(r=>r.getElementRef().nativeElement.getBoundingClientRect());return{isOriginClipped:Z2(t,i),isOriginOutsideView:_b(t,i),isOverlayClipped:Z2(e,i),isOverlayOutsideView:_b(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&&Cf(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 Je)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 el(n,t){for(let e in t)t.hasOwnProperty(e)&&(n[e]=t[e]);return n}function t1(n){if("number"!=typeof n&&null!=n){const[t,e]=n.split(s6);return e&&"px"!==e?null:parseFloat(t)}return n||null}function n1(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 r1="cdk-global-overlay-wrapper";class l6{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(r1),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:o,maxWidth:s,maxHeight:a}=i,l=!("100%"!==r&&"100vw"!==r||s&&"100%"!==s&&"100vw"!==s),c=!("100%"!==o&&"100vh"!==o||a&&"100%"!==a&&"100vh"!==a),u=this._xPosition,d=this._xOffset,h="rtl"===this._overlayRef.getConfig().direction;let m="",y="",A="";l?A="flex-start":"center"===u?(A="center",h?y=d:m=d):h?"left"===u||"end"===u?(A="flex-end",m=d):("right"===u||"start"===u)&&(A="flex-start",y=d):"left"===u||"start"===u?(A="flex-start",m=d):("right"===u||"end"===u)&&(A="flex-end",y=d),t.position=this._cssPosition,t.marginLeft=l?"0":m,t.marginTop=c?"0":this._topOffset,t.marginBottom=this._bottomOffset,t.marginRight=l?"0":y,e.justifyContent=A,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(r1),i.justifyContent=i.alignItems=t.marginTop=t.marginBottom=t.marginLeft=t.marginRight=t.position="",this._overlayRef=null,this._isDisposed=!0}}let c6=(()=>{class n{constructor(e,i,r,o){this._viewportRuler=e,this._document=i,this._platform=r,this._overlayContainer=o}global(){return new l6}flexibleConnectedTo(e){return new a6(e,this._viewportRuler,this._document,this._platform,this._overlayContainer)}}return n.\u0275fac=function(e){return new(e||n)(M(zo),M(ft),M(Nn),M(Rf))},n.\u0275prov=ge({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),u6=0,lr=(()=>{class n{constructor(e,i,r,o,s,a,l,c,u,d,h,m){this.scrollStrategies=e,this._overlayContainer=i,this._componentFactoryResolver=r,this._positionBuilder=o,this._keyboardDispatcher=s,this._injector=a,this._ngZone=l,this._document=c,this._directionality=u,this._location=d,this._outsideClickDispatcher=h,this._animationsModuleType=m}create(e){const i=this._createHostElement(),r=this._createPaneElement(i),o=this._createPortalOutlet(r),s=new xc(e);return s.direction=s.direction||this._directionality.value,new fd(o,i,r,s,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-"+u6++,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(Qu)),new Y8(e,this._componentFactoryResolver,this._appRef,this._injector,this._document)}}return n.\u0275fac=function(e){return new(e||n)(M(n6),M(Rf),M(hs),M(c6),M(r6),M(Vn),M(et),M(ft),M(Xi),M(Wa),M(o6),M(qn,8))},n.\u0275prov=ge({token:n,factory:n.\u0275fac}),n})();const d6=[{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"}],o1=new me("cdk-connected-overlay-scroll-strategy");let s1=(()=>{class n{constructor(e){this.elementRef=e}}return n.\u0275fac=function(e){return new(e||n)(p(Je))},n.\u0275dir=fe({type:n,selectors:[["","cdk-overlay-origin",""],["","overlay-origin",""],["","cdkOverlayOrigin",""]],exportAs:["cdkOverlayOrigin"]}),n})(),a1=(()=>{class n{constructor(e,i,r,o,s){this._overlay=e,this._dir=s,this._hasBackdrop=!1,this._lockPosition=!1,this._growAfterOpen=!1,this._flexibleDimensions=!1,this._push=!1,this._backdropSubscription=E.EMPTY,this._attachSubscription=E.EMPTY,this._detachSubscription=E.EMPTY,this._positionSubscription=E.EMPTY,this.viewportMargin=0,this.open=!1,this.disableClose=!1,this.backdropClick=new He,this.positionChange=new He,this.attach=new He,this.detach=new He,this.overlayKeydown=new He,this.overlayOutsideClick=new He,this._templatePortal=new Ms(i,r),this._scrollStrategyFactory=o,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=lt(e)}get lockPosition(){return this._lockPosition}set lockPosition(e){this._lockPosition=lt(e)}get flexibleDimensions(){return this._flexibleDimensions}set flexibleDimensions(e){this._flexibleDimensions=lt(e)}get growAfterOpen(){return this._growAfterOpen}set growAfterOpen(e){this._growAfterOpen=lt(e)}get push(){return this._push}set push(e){this._push=lt(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=d6);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&&!yi(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 xc({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 s1?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(Y2(()=>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)(p(lr),p(yn),p(Dn),p(o1),p(Xi,8))},n.\u0275dir=fe({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:[Rn]}),n})();const p6={provide:o1,deps:[lr],useFactory:function h6(n){return()=>n.scrollStrategies.reposition()}};let Ic=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=ht({type:n}),n.\u0275inj=dt({providers:[lr,p6],imports:[hd,Xa,mb,mb]}),n})();function f6(n,t){}class Of{constructor(){this.role="dialog",this.panelClass="",this.hasBackdrop=!0,this.backdropClass="",this.disableClose=!1,this.width="",this.height="",this.data=null,this.ariaDescribedBy=null,this.ariaLabelledBy=null,this.ariaLabel=null,this.ariaModal=!0,this.autoFocus="first-tabbable",this.restoreFocus=!0,this.closeOnNavigation=!0,this.closeOnDestroy=!0}}let l1=(()=>{class n extends kf{constructor(e,i,r,o,s,a,l,c){super(),this._elementRef=e,this._focusTrapFactory=i,this._config=o,this._interactivityChecker=s,this._ngZone=a,this._overlayRef=l,this._focusMonitor=c,this._elementFocusedBeforeDialogWasOpened=null,this._closeInteractionType=null,this.attachDomPortal=u=>{this._portalOutlet.hasAttached();const d=this._portalOutlet.attachDomPortal(u);return this._contentAttached(),d},this._ariaLabelledBy=this._config.ariaLabelledBy||null,this._document=r}_contentAttached(){this._initializeFocusTrap(),this._handleBackdropClicks(),this._captureInitialFocus()}_captureInitialFocus(){this._trapFocus()}ngOnDestroy(){this._restoreFocus()}attachComponentPortal(e){this._portalOutlet.hasAttached();const i=this._portalOutlet.attachComponentPortal(e);return this._contentAttached(),i}attachTemplatePortal(e){this._portalOutlet.hasAttached();const i=this._portalOutlet.attachTemplatePortal(e);return this._contentAttached(),i}_recaptureFocus(){this._containsFocus()||this._trapFocus()}_forceFocus(e,i){this._interactivityChecker.isFocusable(e)||(e.tabIndex=-1,this._ngZone.runOutsideAngular(()=>{const r=()=>{e.removeEventListener("blur",r),e.removeEventListener("mousedown",r),e.removeAttribute("tabindex")};e.addEventListener("blur",r),e.addEventListener("mousedown",r)})),e.focus(i)}_focusByCssSelector(e,i){let r=this._elementRef.nativeElement.querySelector(e);r&&this._forceFocus(r,i)}_trapFocus(){const e=this._elementRef.nativeElement;switch(this._config.autoFocus){case!1:case"dialog":this._containsFocus()||e.focus();break;case!0:case"first-tabbable":this._focusTrap.focusInitialElementWhenReady().then(i=>{i||this._focusDialogContainer()});break;case"first-heading":this._focusByCssSelector('h1, h2, h3, h4, h5, h6, [role="heading"]');break;default:this._focusByCssSelector(this._config.autoFocus)}}_restoreFocus(){const e=this._config.restoreFocus;let i=null;if("string"==typeof e?i=this._document.querySelector(e):"boolean"==typeof e?i=e?this._elementFocusedBeforeDialogWasOpened:null:e&&(i=e),this._config.restoreFocus&&i&&"function"==typeof i.focus){const r=Zy(),o=this._elementRef.nativeElement;(!r||r===this._document.body||r===o||o.contains(r))&&(this._focusMonitor?(this._focusMonitor.focusVia(i,this._closeInteractionType),this._closeInteractionType=null):i.focus())}this._focusTrap&&this._focusTrap.destroy()}_focusDialogContainer(){this._elementRef.nativeElement.focus&&this._elementRef.nativeElement.focus()}_containsFocus(){const e=this._elementRef.nativeElement,i=Zy();return e===i||e.contains(i)}_initializeFocusTrap(){this._focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement),this._document&&(this._elementFocusedBeforeDialogWasOpened=Zy())}_handleBackdropClicks(){this._overlayRef.backdropClick().subscribe(()=>{this._config.disableClose&&this._recaptureFocus()})}}return n.\u0275fac=function(e){return new(e||n)(p(Je),p(cb),p(ft,8),p(Of),p(Af),p(et),p(fd),p(Do))},n.\u0275cmp=Ue({type:n,selectors:[["cdk-dialog-container"]],viewQuery:function(e,i){if(1&e&&De(ks,7),2&e){let r;ce(r=ue())&&(i._portalOutlet=r.first)}},hostAttrs:["tabindex","-1",1,"cdk-dialog-container"],hostVars:6,hostBindings:function(e,i){2&e&&rt("id",i._config.id||null)("role",i._config.role)("aria-modal",i._config.ariaModal)("aria-labelledby",i._config.ariaLabel?null:i._ariaLabelledBy)("aria-label",i._config.ariaLabel)("aria-describedby",i._config.ariaDescribedBy||null)},features:[Se],decls:1,vars:0,consts:[["cdkPortalOutlet",""]],template:function(e,i){1&e&&H(0,f6,0,0,"ng-template",0)},dependencies:[ks],styles:[".cdk-dialog-container{display:block;width:100%;height:100%;min-height:inherit;max-height:inherit}"],encapsulation:2}),n})();class vb{constructor(t,e){this.overlayRef=t,this.config=e,this.closed=new N,this.disableClose=e.disableClose,this.backdropClick=t.backdropClick(),this.keydownEvents=t.keydownEvents(),this.outsidePointerEvents=t.outsidePointerEvents(),this.id=e.id,this.keydownEvents.subscribe(i=>{27===i.keyCode&&!this.disableClose&&!yi(i)&&(i.preventDefault(),this.close(void 0,{focusOrigin:"keyboard"}))}),this.backdropClick.subscribe(()=>{this.disableClose||this.close(void 0,{focusOrigin:"mouse"})})}close(t,e){if(this.containerInstance){const i=this.closed;this.containerInstance._closeInteractionType=e?.focusOrigin||"program",this.overlayRef.dispose(),i.next(t),i.complete(),this.componentInstance=this.containerInstance=null}}updatePosition(){return this.overlayRef.updatePosition(),this}updateSize(t="",e=""){return this.overlayRef.updateSize({width:t,height:e}),this}addPanelClass(t){return this.overlayRef.addPanelClass(t),this}removePanelClass(t){return this.overlayRef.removePanelClass(t),this}}const c1=new me("DialogScrollStrategy"),m6=new me("DialogData"),g6=new me("DefaultDialogConfig"),v6={provide:c1,deps:[lr],useFactory:function _6(n){return()=>n.scrollStrategies.block()}};let y6=0,u1=(()=>{class n{constructor(e,i,r,o,s,a){this._overlay=e,this._injector=i,this._defaultOptions=r,this._parentDialog=o,this._overlayContainer=s,this._openDialogsAtThisLevel=[],this._afterAllClosedAtThisLevel=new N,this._afterOpenedAtThisLevel=new N,this._ariaHiddenElements=new Map,this.afterAllClosed=la(()=>this.openDialogs.length?this._getAfterAllClosed():this._getAfterAllClosed().pipe(ni(void 0))),this._scrollStrategy=a}get openDialogs(){return this._parentDialog?this._parentDialog.openDialogs:this._openDialogsAtThisLevel}get afterOpened(){return this._parentDialog?this._parentDialog.afterOpened:this._afterOpenedAtThisLevel}open(e,i){(i={...this._defaultOptions||new Of,...i}).id=i.id||"cdk-dialog-"+y6++,i.id&&this.getDialogById(i.id);const o=this._getOverlayConfig(i),s=this._overlay.create(o),a=new vb(s,i),l=this._attachContainer(s,a,i);return a.containerInstance=l,this._attachDialogContent(e,a,l,i),this.openDialogs.length||this._hideNonDialogContentFromAssistiveTechnology(),this.openDialogs.push(a),a.closed.subscribe(()=>this._removeOpenDialog(a,!0)),this.afterOpened.next(a),a}closeAll(){yb(this.openDialogs,e=>e.close())}getDialogById(e){return this.openDialogs.find(i=>i.id===e)}ngOnDestroy(){yb(this._openDialogsAtThisLevel,e=>{!1===e.config.closeOnDestroy&&this._removeOpenDialog(e,!1)}),yb(this._openDialogsAtThisLevel,e=>e.close()),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete(),this._openDialogsAtThisLevel=[]}_getOverlayConfig(e){const i=new xc({positionStrategy:e.positionStrategy||this._overlay.position().global().centerHorizontally().centerVertically(),scrollStrategy:e.scrollStrategy||this._scrollStrategy(),panelClass:e.panelClass,hasBackdrop:e.hasBackdrop,direction:e.direction,minWidth:e.minWidth,minHeight:e.minHeight,maxWidth:e.maxWidth,maxHeight:e.maxHeight,width:e.width,height:e.height,disposeOnNavigation:e.closeOnNavigation});return e.backdropClass&&(i.backdropClass=e.backdropClass),i}_attachContainer(e,i,r){const o=r.injector||r.viewContainerRef?.injector,s=[{provide:Of,useValue:r},{provide:vb,useValue:i},{provide:fd,useValue:e}];let a;r.container?"function"==typeof r.container?a=r.container:(a=r.container.type,s.push(...r.container.providers(r))):a=l1;const l=new pd(a,r.viewContainerRef,Vn.create({parent:o||this._injector,providers:s}),r.componentFactoryResolver);return e.attach(l).instance}_attachDialogContent(e,i,r,o){if(e instanceof yn){const s=this._createInjector(o,i,r,void 0);let a={$implicit:o.data,dialogRef:i};o.templateContext&&(a={...a,..."function"==typeof o.templateContext?o.templateContext():o.templateContext}),r.attachTemplatePortal(new Ms(e,null,a,s))}else{const s=this._createInjector(o,i,r,this._injector),a=r.attachComponentPortal(new pd(e,o.viewContainerRef,s,o.componentFactoryResolver));i.componentInstance=a.instance}}_createInjector(e,i,r,o){const s=e.injector||e.viewContainerRef?.injector,a=[{provide:m6,useValue:e.data},{provide:vb,useValue:i}];return e.providers&&("function"==typeof e.providers?a.push(...e.providers(i,e,r)):a.push(...e.providers)),e.direction&&(!s||!s.get(Xi,null,yt.Optional))&&a.push({provide:Xi,useValue:{value:e.direction,change:Ne()}}),Vn.create({parent:s||o,providers:a})}_removeOpenDialog(e,i){const r=this.openDialogs.indexOf(e);r>-1&&(this.openDialogs.splice(r,1),this.openDialogs.length||(this._ariaHiddenElements.forEach((o,s)=>{o?s.setAttribute("aria-hidden",o):s.removeAttribute("aria-hidden")}),this._ariaHiddenElements.clear(),i&&this._getAfterAllClosed().next()))}_hideNonDialogContentFromAssistiveTechnology(){const e=this._overlayContainer.getContainerElement();if(e.parentElement){const i=e.parentElement.children;for(let r=i.length-1;r>-1;r--){const o=i[r];o!==e&&"SCRIPT"!==o.nodeName&&"STYLE"!==o.nodeName&&!o.hasAttribute("aria-live")&&(this._ariaHiddenElements.set(o,o.getAttribute("aria-hidden")),o.setAttribute("aria-hidden","true"))}}}_getAfterAllClosed(){const e=this._parentDialog;return e?e._getAfterAllClosed():this._afterAllClosedAtThisLevel}}return n.\u0275fac=function(e){return new(e||n)(M(lr),M(Vn),M(g6,8),M(n,12),M(Rf),M(c1))},n.\u0275prov=ge({token:n,factory:n.\u0275fac}),n})();function yb(n,t){let e=n.length;for(;e--;)t(n[e])}let b6=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=ht({type:n}),n.\u0275inj=dt({providers:[u1,v6],imports:[Ic,Xa,hb,Xa]}),n})();const C6=["*",[["mat-option"],["ng-container"]]],w6=["*","mat-option, ng-container"];function E6(n,t){if(1&n&&be(0,"mat-pseudo-checkbox",4),2&n){const e=C();v("state",e.selected?"checked":"unchecked")("disabled",e.disabled)}}function D6(n,t){if(1&n&&(g(0,"span",5),j(1),_()),2&n){const e=C();f(1),qe("(",e.group.label,")")}}const S6=["*"],T6=new me("mat-sanity-checks",{providedIn:"root",factory:function A6(){return!0}});let Lt=(()=>{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!Xy()&&("boolean"==typeof this._sanityChecks?this._sanityChecks:!!this._sanityChecks[e])}}return n.\u0275fac=function(e){return new(e||n)(M(U2),M(T6,8),M(ft))},n.\u0275mod=ht({type:n}),n.\u0275inj=dt({imports:[hd,hd]}),n})();function Rs(n){return class extends n{constructor(...t){super(...t),this._disabled=!1}get disabled(){return this._disabled}set disabled(t){this._disabled=lt(t)}}}function da(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 Go(n){return class extends n{constructor(...t){super(...t),this._disableRipple=!1}get disableRipple(){return this._disableRipple}set disableRipple(t){this._disableRipple=lt(t)}}}function md(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?xs(e):this.defaultTabIndex}}}function bb(n){return class extends n{constructor(...t){super(...t),this.errorState=!1}updateErrorState(){const t=this.errorState,o=(this.errorStateMatcher||this._defaultErrorStateMatcher).isErrorState(this.ngControl?this.ngControl.control:null,this._parentFormGroup||this._parentForm);o!==t&&(this.errorState=o,this.stateChanges.next())}}}let gd=(()=>{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=ge({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),I6=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=fe({type:n,selectors:[["","mat-line",""],["","matLine",""]],hostAttrs:[1,"mat-line"]}),n})();function _d(n,t,e){n.nativeElement.classList.toggle(t,e)}let p1=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=ht({type:n}),n.\u0275inj=dt({imports:[Lt,Lt]}),n})();class k6{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 f1={enterDuration:225,exitDuration:150},Cb=As({passive:!0}),m1=["mousedown","touchstart"],g1=["mouseup","mouseleave","touchend","touchcancel"];class _1{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=Qn(i))}fadeInRipple(t,e,i={}){const r=this._containerRect=this._containerRect||this._containerElement.getBoundingClientRect(),o={...f1,...i.animation};i.centered&&(t=r.left+r.width/2,e=r.top+r.height/2);const s=i.radius||function O6(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=o.enterDuration,u=document.createElement("div");u.classList.add("mat-ripple-element"),u.style.left=a-s+"px",u.style.top=l-s+"px",u.style.height=2*s+"px",u.style.width=2*s+"px",null!=i.color&&(u.style.backgroundColor=i.color),u.style.transitionDuration=`${c}ms`,this._containerElement.appendChild(u);const d=window.getComputedStyle(u),m=d.transitionDuration,y="none"===d.transitionProperty||"0s"===m||"0s, 0s"===m,A=new k6(this,u,i,y);u.style.transform="scale3d(1, 1, 1)",A.state=0,i.persistent||(this._mostRecentTransientRipple=A);let U=null;return!y&&(c||o.exitDuration)&&this._ngZone.runOutsideAngular(()=>{const te=()=>this._finishRippleTransition(A),Ee=()=>this._destroyRipple(A);u.addEventListener("transitionend",te),u.addEventListener("transitioncancel",Ee),U={onTransitionEnd:te,onTransitionCancel:Ee}}),this._activeRipples.set(A,U),(y||!c)&&this._finishRippleTransition(A),A}fadeOutRipple(t){if(2===t.state||3===t.state)return;const e=t.element,i={...f1,...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=Qn(t);!e||e===this._triggerElement||(this._removeTriggerEvents(),this._triggerElement=e,this._registerEvents(m1))}handleEvent(t){"mousedown"===t.type?this._onMousedown(t):"touchstart"===t.type?this._onTouchStart(t):this._onPointerUp(),this._pointerUpEventsRegistered||(this._registerEvents(g1),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=Tf(t),i=this._lastTouchStartEvent&&Date.now(){!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,Cb)})})}_getActiveRipples(){return Array.from(this._activeRipples.keys())}_removeTriggerEvents(){this._triggerElement&&(m1.forEach(t=>{this._triggerElement.removeEventListener(t,this,Cb)}),this._pointerUpEventsRegistered&&g1.forEach(t=>{this._triggerElement.removeEventListener(t,this,Cb)}))}}const v1=new me("mat-ripple-global-options");let xr=(()=>{class n{constructor(e,i,r,o,s){this._elementRef=e,this._animationMode=s,this.radius=0,this._disabled=!1,this._isInitialized=!1,this._globalOptions=o||{},this._rippleRenderer=new _1(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)(p(Je),p(et),p(Nn),p(v1,8),p(qn,8))},n.\u0275dir=fe({type:n,selectors:[["","mat-ripple",""],["","matRipple",""]],hostAttrs:[1,"mat-ripple"],hostVars:2,hostBindings:function(e,i){2&e&&bt("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})(),ha=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=ht({type:n}),n.\u0275inj=dt({imports:[Lt,Lt]}),n})(),y1=(()=>{class n{constructor(e){this._animationMode=e,this.state="unchecked",this.disabled=!1}}return n.\u0275fac=function(e){return new(e||n)(p(qn,8))},n.\u0275cmp=Ue({type:n,selectors:[["mat-pseudo-checkbox"]],hostAttrs:[1,"mat-pseudo-checkbox"],hostVars:8,hostBindings:function(e,i){2&e&&bt("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})(),wb=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=ht({type:n}),n.\u0275inj=dt({imports:[Lt]}),n})();const Pf=new me("MAT_OPTION_PARENT_COMPONENT"),P6=Rs(class{});let L6=0,N6=(()=>{class n extends P6{constructor(e){super(),this._labelId="mat-optgroup-label-"+L6++,this._inert=e?.inertGroups??!1}}return n.\u0275fac=function(e){return new(e||n)(p(Pf,8))},n.\u0275dir=fe({type:n,inputs:{label:"label"},features:[Se]}),n})();const Lf=new me("MatOptgroup");let F6=(()=>{class n extends N6{}return n.\u0275fac=function(){let t;return function(i){return(t||(t=Pt(n)))(i||n)}}(),n.\u0275cmp=Ue({type:n,selectors:[["mat-optgroup"]],hostAttrs:[1,"mat-optgroup"],hostVars:5,hostBindings:function(e,i){2&e&&(rt("role",i._inert?null:"group")("aria-disabled",i._inert?null:i.disabled.toString())("aria-labelledby",i._inert?null:i._labelId),bt("mat-optgroup-disabled",i.disabled))},inputs:{disabled:"disabled"},exportAs:["matOptgroup"],features:[it([{provide:Lf,useExisting:n}]),Se],ngContentSelectors:w6,decls:4,vars:2,consts:[["aria-hidden","true",1,"mat-optgroup-label",3,"id"]],template:function(e,i){1&e&&(Pn(C6),g(0,"span",0),j(1),Bt(2),_(),Bt(3,1)),2&e&&(v("id",i._labelId),f(1),qe("",i.label," "))},styles:[".mat-optgroup-label{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%;-webkit-user-select:none;user-select:none;cursor:default}.mat-optgroup-label[disabled]{cursor:default}[dir=rtl] .mat-optgroup-label{text-align:right}.mat-optgroup-label .mat-icon{margin-right:16px;vertical-align:middle}.mat-optgroup-label .mat-icon svg{vertical-align:top}[dir=rtl] .mat-optgroup-label .mat-icon{margin-left:16px;margin-right:0}"],encapsulation:2,changeDetection:0}),n})(),B6=0;class b1{constructor(t,e=!1){this.source=t,this.isUserInput=e}}let j6=(()=>{class n{constructor(e,i,r,o){this._element=e,this._changeDetectorRef=i,this._parent=r,this.group=o,this._selected=!1,this._active=!1,this._disabled=!1,this._mostRecentViewValue="",this.id="mat-option-"+B6++,this.onSelectionChange=new He,this._stateChanges=new N}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=lt(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)&&!yi(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 b1(this,e))}}return n.\u0275fac=function(e){Yl()},n.\u0275dir=fe({type:n,inputs:{value:"value",id:"id",disabled:"disabled"},outputs:{onSelectionChange:"onSelectionChange"}}),n})(),cr=(()=>{class n extends j6{constructor(e,i,r,o){super(e,i,r,o)}}return n.\u0275fac=function(e){return new(e||n)(p(Je),p(St),p(Pf,8),p(Lf,8))},n.\u0275cmp=Ue({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(o){return i._handleKeydown(o)}),2&e&&(Ho("id",i.id),rt("tabindex",i._getTabIndex())("aria-selected",i._getAriaSelected())("aria-disabled",i.disabled.toString()),bt("mat-selected",i.selected)("mat-option-multiple",i.multiple)("mat-active",i.active)("mat-option-disabled",i.disabled))},exportAs:["matOption"],features:[Se],ngContentSelectors:S6,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&&(Pn(),H(0,E6,1,2,"mat-pseudo-checkbox",0),g(1,"span",1),Bt(2),_(),H(3,D6,2,1,"span",2),be(4,"div",3)),2&e&&(v("ngIf",i.multiple),f(3),v("ngIf",i.group&&i.group._inert),f(1),v("matRippleTrigger",i._getHostElement())("matRippleDisabled",i.disabled||i.disableRipple))},dependencies:[xr,pn,y1],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 Eb(n,t,e){if(e.length){let i=t.toArray(),r=e.toArray(),o=0;for(let s=0;se+i?Math.max(0,n-i+t):e}let Nf=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=ht({type:n}),n.\u0275inj=dt({imports:[ha,$r,Lt,wb]}),n})();class w1{}const Os="*";function So(n,t){return{type:7,name:n,definitions:t,options:{}}}function Oi(n,t=null){return{type:4,styles:t,timings:n}}function E1(n,t=null){return{type:3,steps:n,options:t}}function D1(n,t=null){return{type:2,steps:n,options:t}}function qt(n){return{type:6,styles:n,offset:null}}function li(n,t,e){return{type:0,name:n,styles:t,options:e}}function V6(n){return{type:5,steps:n}}function bi(n,t,e=null){return{type:1,expr:n,animation:t,options:e}}function Db(n=null){return{type:9,options:n}}function Sb(n,t,e=null){return{type:11,selector:n,animation:t,options:e}}function S1(n){Promise.resolve(null).then(n)}class vd{constructor(t=0,e=0){this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._originalOnDoneFns=[],this._originalOnStartFns=[],this._started=!1,this._destroyed=!1,this._finished=!1,this._position=0,this.parentPlayer=null,this.totalTime=t+e}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(t=>t()),this._onDoneFns=[])}onStart(t){this._originalOnStartFns.push(t),this._onStartFns.push(t)}onDone(t){this._originalOnDoneFns.push(t),this._onDoneFns.push(t)}onDestroy(t){this._onDestroyFns.push(t)}hasStarted(){return this._started}init(){}play(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}triggerMicrotask(){S1(()=>this._onFinish())}_onStart(){this._onStartFns.forEach(t=>t()),this._onStartFns=[]}pause(){}restart(){}finish(){this._onFinish()}destroy(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(t=>t()),this._onDestroyFns=[])}reset(){this._started=!1,this._finished=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}setPosition(t){this._position=this.totalTime?t*this.totalTime:1}getPosition(){return this.totalTime?this._position/this.totalTime:1}triggerCallback(t){const e="start"==t?this._onStartFns:this._onDoneFns;e.forEach(i=>i()),e.length=0}}class A1{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 o=this.players.length;0==o?S1(()=>this._onFinish()):this.players.forEach(s=>{s.onDone(()=>{++e==o&&this._onFinish()}),s.onDestroy(()=>{++i==o&&this._onDestroy()}),s.onStart(()=>{++r==o&&this._onStart()})}),this.totalTime=this.players.reduce((s,a)=>Math.max(s,a.totalTime),0)}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(t=>t()),this._onDoneFns=[])}init(){this.players.forEach(t=>t.init())}onStart(t){this._onStartFns.push(t)}_onStart(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(t=>t()),this._onStartFns=[])}onDone(t){this._onDoneFns.push(t)}onDestroy(t){this._onDestroyFns.push(t)}hasStarted(){return this._started}play(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(t=>t.play())}pause(){this.players.forEach(t=>t.pause())}restart(){this.players.forEach(t=>t.restart())}finish(){this._onFinish(),this.players.forEach(t=>t.finish())}destroy(){this._onDestroy()}_onDestroy(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(t=>t.destroy()),this._onDestroyFns.forEach(t=>t()),this._onDestroyFns=[])}reset(){this.players.forEach(t=>t.reset()),this._destroyed=!1,this._finished=!1,this._started=!1}setPosition(t){const 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}}function U6(n,t){}const Mc={params:{enterAnimationDuration:"150ms",exitAnimationDuration:"75ms"}},q6={dialogContainer:So("dialogContainer",[li("void, exit",qt({opacity:0,transform:"scale(0.7)"})),li("enter",qt({transform:"none"})),bi("* => enter",E1([Oi("{{enterAnimationDuration}} cubic-bezier(0, 0, 0.2, 1)",qt({transform:"none",opacity:1})),Sb("@*",Db(),{optional:!0})]),Mc),bi("* => void, * => exit",E1([Oi("{{exitAnimationDuration}} cubic-bezier(0.4, 0.0, 0.2, 1)",qt({opacity:0})),Sb("@*",Db(),{optional:!0})]),Mc)])};class kc{constructor(){this.role="dialog",this.panelClass="",this.hasBackdrop=!0,this.backdropClass="",this.disableClose=!1,this.width="",this.height="",this.maxWidth="80vw",this.data=null,this.ariaDescribedBy=null,this.ariaLabelledBy=null,this.ariaLabel=null,this.ariaModal=!0,this.autoFocus="first-tabbable",this.restoreFocus=!0,this.delayFocusTrap=!0,this.closeOnNavigation=!0,this.enterAnimationDuration=Mc.params.enterAnimationDuration,this.exitAnimationDuration=Mc.params.exitAnimationDuration}}let z6=(()=>{class n extends l1{constructor(e,i,r,o,s,a,l,c){super(e,i,r,o,s,a,l,c),this._animationStateChanged=new He}_captureInitialFocus(){this._config.delayFocusTrap||this._trapFocus()}_openAnimationDone(e){this._config.delayFocusTrap&&this._trapFocus(),this._animationStateChanged.next({state:"opened",totalTime:e})}}return n.\u0275fac=function(e){return new(e||n)(p(Je),p(cb),p(ft,8),p(kc),p(Af),p(et),p(fd),p(Do))},n.\u0275cmp=Ue({type:n,selectors:[["ng-component"]],features:[Se],decls:0,vars:0,template:function(e,i){},encapsulation:2}),n})(),G6=(()=>{class n extends z6{constructor(e,i,r,o,s,a,l,c,u){super(e,i,r,o,s,a,l,u),this._changeDetectorRef=c,this._state="enter"}_onAnimationDone({toState:e,totalTime:i}){"enter"===e?this._openAnimationDone(i):"exit"===e&&this._animationStateChanged.next({state:"closed",totalTime:i})}_onAnimationStart({toState:e,totalTime:i}){"enter"===e?this._animationStateChanged.next({state:"opening",totalTime:i}):("exit"===e||"void"===e)&&this._animationStateChanged.next({state:"closing",totalTime:i})}_startExitAnimation(){this._state="exit",this._changeDetectorRef.markForCheck()}_getAnimationState(){return{value:this._state,params:{enterAnimationDuration:this._config.enterAnimationDuration||Mc.params.enterAnimationDuration,exitAnimationDuration:this._config.exitAnimationDuration||Mc.params.exitAnimationDuration}}}}return n.\u0275fac=function(e){return new(e||n)(p(Je),p(cb),p(ft,8),p(kc),p(Af),p(et),p(fd),p(St),p(Do))},n.\u0275cmp=Ue({type:n,selectors:[["mat-dialog-container"]],hostAttrs:["tabindex","-1",1,"mat-dialog-container"],hostVars:7,hostBindings:function(e,i){1&e&&gp("@dialogContainer.start",function(o){return i._onAnimationStart(o)})("@dialogContainer.done",function(o){return i._onAnimationDone(o)}),2&e&&(Ho("id",i._config.id),rt("aria-modal",i._config.ariaModal)("role",i._config.role)("aria-labelledby",i._config.ariaLabel?null:i._ariaLabelledBy)("aria-label",i._config.ariaLabel)("aria-describedby",i._config.ariaDescribedBy||null),vp("@dialogContainer",i._getAnimationState()))},features:[Se],decls:1,vars:0,consts:[["cdkPortalOutlet",""]],template:function(e,i){1&e&&H(0,U6,0,0,"ng-template",0)},dependencies:[ks],styles:[".mat-dialog-container{display:block;padding:24px;border-radius:4px;box-sizing:border-box;overflow:auto;outline:0;width:100%;height:100%;min-height:inherit;max-height:inherit}.cdk-high-contrast-active .mat-dialog-container{outline:solid 1px}.mat-dialog-content{display:block;margin:0 -24px;padding:0 24px;max-height:65vh;overflow:auto;-webkit-overflow-scrolling:touch}.mat-dialog-title{margin:0 0 20px;display:block}.mat-dialog-actions{padding:8px 0;display:flex;flex-wrap:wrap;min-height:52px;align-items:center;box-sizing:content-box;margin-bottom:-24px}.mat-dialog-actions.mat-dialog-actions-align-center,.mat-dialog-actions[align=center]{justify-content:center}.mat-dialog-actions.mat-dialog-actions-align-end,.mat-dialog-actions[align=end]{justify-content:flex-end}.mat-dialog-actions .mat-button-base+.mat-button-base,.mat-dialog-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:8px}[dir=rtl] .mat-dialog-actions .mat-button-base+.mat-button-base,[dir=rtl] .mat-dialog-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:0;margin-right:8px}"],encapsulation:2,data:{animation:[q6.dialogContainer]}}),n})();class Rc{constructor(t,e,i){this._ref=t,this._containerInstance=i,this._afterOpened=new N,this._beforeClosed=new N,this._state=0,this.disableClose=e.disableClose,this.id=t.id,i._animationStateChanged.pipe(Tn(r=>"opened"===r.state),sn(1)).subscribe(()=>{this._afterOpened.next(),this._afterOpened.complete()}),i._animationStateChanged.pipe(Tn(r=>"closed"===r.state),sn(1)).subscribe(()=>{clearTimeout(this._closeFallbackTimeout),this._finishDialogClose()}),t.overlayRef.detachments().subscribe(()=>{this._beforeClosed.next(this._result),this._beforeClosed.complete(),this._finishDialogClose()}),On(this.backdropClick(),this.keydownEvents().pipe(Tn(r=>27===r.keyCode&&!this.disableClose&&!yi(r)))).subscribe(r=>{this.disableClose||(r.preventDefault(),T1(this,"keydown"===r.type?"keyboard":"mouse"))})}close(t){this._result=t,this._containerInstance._animationStateChanged.pipe(Tn(e=>"closing"===e.state),sn(1)).subscribe(e=>{this._beforeClosed.next(t),this._beforeClosed.complete(),this._ref.overlayRef.detachBackdrop(),this._closeFallbackTimeout=setTimeout(()=>this._finishDialogClose(),e.totalTime+100)}),this._state=1,this._containerInstance._startExitAnimation()}afterOpened(){return this._afterOpened}afterClosed(){return this._ref.closed}beforeClosed(){return this._beforeClosed}backdropClick(){return this._ref.backdropClick}keydownEvents(){return this._ref.keydownEvents}updatePosition(t){let e=this._ref.config.positionStrategy;return t&&(t.left||t.right)?t.left?e.left(t.left):e.right(t.right):e.centerHorizontally(),t&&(t.top||t.bottom)?t.top?e.top(t.top):e.bottom(t.bottom):e.centerVertically(),this._ref.updatePosition(),this}updateSize(t="",e=""){return this._ref.updateSize(t,e),this}addPanelClass(t){return this._ref.addPanelClass(t),this}removePanelClass(t){return this._ref.removePanelClass(t),this}getState(){return this._state}_finishDialogClose(){this._state=2,this._ref.close(this._result,{focusOrigin:this._closeInteractionType}),this.componentInstance=null}}function T1(n,t,e){return n._closeInteractionType=t,n.close(e)}const W6=new me("MatDialogData"),$6=new me("mat-dialog-default-options"),x1=new me("mat-dialog-scroll-strategy"),Y6={provide:x1,deps:[lr],useFactory:function K6(n){return()=>n.scrollStrategies.block()}};let Q6=0,J6=(()=>{class n{constructor(e,i,r,o,s,a,l,c,u,d){this._overlay=e,this._defaultOptions=r,this._parentDialog=o,this._dialogRefConstructor=l,this._dialogContainerType=c,this._dialogDataToken=u,this._openDialogsAtThisLevel=[],this._afterAllClosedAtThisLevel=new N,this._afterOpenedAtThisLevel=new N,this._idPrefix="mat-dialog-",this.afterAllClosed=la(()=>this.openDialogs.length?this._getAfterAllClosed():this._getAfterAllClosed().pipe(ni(void 0))),this._scrollStrategy=a,this._dialog=i.get(u1)}get openDialogs(){return this._parentDialog?this._parentDialog.openDialogs:this._openDialogsAtThisLevel}get afterOpened(){return this._parentDialog?this._parentDialog.afterOpened:this._afterOpenedAtThisLevel}_getAfterAllClosed(){const e=this._parentDialog;return e?e._getAfterAllClosed():this._afterAllClosedAtThisLevel}open(e,i){let r;(i={...this._defaultOptions||new kc,...i}).id=i.id||`${this._idPrefix}${Q6++}`,i.scrollStrategy=i.scrollStrategy||this._scrollStrategy();const o=this._dialog.open(e,{...i,positionStrategy:this._overlay.position().global().centerHorizontally().centerVertically(),disableClose:!0,closeOnDestroy:!1,container:{type:this._dialogContainerType,providers:()=>[{provide:kc,useValue:i},{provide:Of,useValue:i}]},templateContext:()=>({dialogRef:r}),providers:(s,a,l)=>(r=new this._dialogRefConstructor(s,i,l),r.updatePosition(i?.position),[{provide:this._dialogContainerType,useValue:l},{provide:this._dialogDataToken,useValue:a.data},{provide:this._dialogRefConstructor,useValue:r}])});return r.componentInstance=o.componentInstance,this.openDialogs.push(r),this.afterOpened.next(r),r.afterClosed().subscribe(()=>{const s=this.openDialogs.indexOf(r);s>-1&&(this.openDialogs.splice(s,1),this.openDialogs.length||this._getAfterAllClosed().next())}),r}closeAll(){this._closeDialogs(this.openDialogs)}getDialogById(e){return this.openDialogs.find(i=>i.id===e)}ngOnDestroy(){this._closeDialogs(this._openDialogsAtThisLevel),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete()}_closeDialogs(e){let i=e.length;for(;i--;)e[i].close()}}return n.\u0275fac=function(e){Yl()},n.\u0275prov=ge({token:n,factory:n.\u0275fac}),n})(),Wo=(()=>{class n extends J6{constructor(e,i,r,o,s,a,l,c){super(e,i,o,a,l,s,Rc,G6,W6,c)}}return n.\u0275fac=function(e){return new(e||n)(M(lr),M(Vn),M(Wa,8),M($6,8),M(x1),M(n,12),M(Rf),M(qn,8))},n.\u0275prov=ge({token:n,factory:n.\u0275fac}),n})(),Z6=0,X6=(()=>{class n{constructor(e,i,r){this.dialogRef=e,this._elementRef=i,this._dialog=r,this.type="button"}ngOnInit(){this.dialogRef||(this.dialogRef=M1(this._elementRef,this._dialog.openDialogs))}ngOnChanges(e){const i=e._matDialogClose||e._matDialogCloseResult;i&&(this.dialogResult=i.currentValue)}_onButtonClick(e){T1(this.dialogRef,0===e.screenX&&0===e.screenY?"keyboard":"mouse",this.dialogResult)}}return n.\u0275fac=function(e){return new(e||n)(p(Rc,8),p(Je),p(Wo))},n.\u0275dir=fe({type:n,selectors:[["","mat-dialog-close",""],["","matDialogClose",""]],hostVars:2,hostBindings:function(e,i){1&e&&W("click",function(o){return i._onButtonClick(o)}),2&e&&rt("aria-label",i.ariaLabel||null)("type",i.type)},inputs:{ariaLabel:["aria-label","ariaLabel"],type:"type",dialogResult:["mat-dialog-close","dialogResult"],_matDialogClose:["matDialogClose","_matDialogClose"]},exportAs:["matDialogClose"],features:[Rn]}),n})(),tq=(()=>{class n{constructor(e,i,r){this._dialogRef=e,this._elementRef=i,this._dialog=r,this.id="mat-dialog-title-"+Z6++}ngOnInit(){this._dialogRef||(this._dialogRef=M1(this._elementRef,this._dialog.openDialogs)),this._dialogRef&&Promise.resolve().then(()=>{const e=this._dialogRef._containerInstance;e&&!e._ariaLabelledBy&&(e._ariaLabelledBy=this.id)})}}return n.\u0275fac=function(e){return new(e||n)(p(Rc,8),p(Je),p(Wo))},n.\u0275dir=fe({type:n,selectors:[["","mat-dialog-title",""],["","matDialogTitle",""]],hostAttrs:[1,"mat-dialog-title"],hostVars:1,hostBindings:function(e,i){2&e&&Ho("id",i.id)},inputs:{id:"id"},exportAs:["matDialogTitle"]}),n})(),yd=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=fe({type:n,selectors:[["","mat-dialog-content",""],["mat-dialog-content"],["","matDialogContent",""]],hostAttrs:[1,"mat-dialog-content"]}),n})(),I1=(()=>{class n{constructor(){this.align="start"}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=fe({type:n,selectors:[["","mat-dialog-actions",""],["mat-dialog-actions"],["","matDialogActions",""]],hostAttrs:[1,"mat-dialog-actions"],hostVars:4,hostBindings:function(e,i){2&e&&bt("mat-dialog-actions-align-center","center"===i.align)("mat-dialog-actions-align-end","end"===i.align)},inputs:{align:"align"}}),n})();function M1(n,t){let e=n.nativeElement.parentElement;for(;e&&!e.classList.contains("mat-dialog-container");)e=e.parentElement;return e?t.find(i=>i.id===e.id):null}let k1=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=ht({type:n}),n.\u0275inj=dt({providers:[Wo,Y6],imports:[b6,Ic,Xa,Lt,Lt]}),n})();const nq=["mat-button",""],iq=["*"],oq=["mat-button","mat-flat-button","mat-icon-button","mat-raised-button","mat-stroked-button","mat-mini-fab","mat-fab"],sq=da(Rs(Go(class{constructor(n){this._elementRef=n}})));let tl=(()=>{class n extends sq{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 o of oq)this._hasHostAttributes(o)&&this._getHostElement().classList.add(o);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)(p(Je),p(Do),p(qn,8))},n.\u0275cmp=Ue({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&&De(xr,5),2&e){let r;ce(r=ue())&&(i.ripple=r.first)}},hostAttrs:[1,"mat-focus-indicator"],hostVars:5,hostBindings:function(e,i){2&e&&(rt("disabled",i.disabled||null),bt("_mat-animation-noopable","NoopAnimations"===i._animationMode)("mat-button-disabled",i.disabled))},inputs:{disabled:"disabled",disableRipple:"disableRipple",color:"color"},exportAs:["matButton"],features:[Se],attrs:nq,ngContentSelectors:iq,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&&(Pn(),g(0,"span",0),Bt(1),_(),be(2,"span",1)(3,"span",2)),2&e&&(f(2),bt("mat-button-ripple-round",i.isRoundButton||i.isIconButton),v("matRippleDisabled",i._isRippleDisabled())("matRippleCentered",i.isIconButton)("matRippleTrigger",i._getHostElement()))},dependencies:[xr],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})(),R1=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=ht({type:n}),n.\u0275inj=dt({imports:[ha,Lt,Lt]}),n})();function aq(n,t){if(1&n){const e=Ie();g(0,"div",2)(1,"button",3),W("click",function(){return J(e),Z(C().action())}),j(2),_()()}if(2&n){const e=C();f(2),ve(e.data.action)}}function lq(n,t){}const O1=new me("MatSnackBarData");class Ff{constructor(){this.politeness="assertive",this.announcementMessage="",this.duration=0,this.data=null,this.horizontalPosition="center",this.verticalPosition="bottom"}}const cq=Math.pow(2,31)-1;class Tb{constructor(t,e){this._overlayRef=e,this._afterDismissed=new N,this._afterOpened=new N,this._onAction=new N,this._dismissedByAction=!1,this.containerInstance=t,t._onExit.subscribe(()=>this._finishDismiss())}dismiss(){this._afterDismissed.closed||this.containerInstance.exit(),clearTimeout(this._durationTimeoutId)}dismissWithAction(){this._onAction.closed||(this._dismissedByAction=!0,this._onAction.next(),this._onAction.complete(),this.dismiss()),clearTimeout(this._durationTimeoutId)}closeWithAction(){this.dismissWithAction()}_dismissAfter(t){this._durationTimeoutId=setTimeout(()=>this.dismiss(),Math.min(t,cq))}_open(){this._afterOpened.closed||(this._afterOpened.next(),this._afterOpened.complete())}_finishDismiss(){this._overlayRef.dispose(),this._onAction.closed||this._onAction.complete(),this._afterDismissed.next({dismissedByAction:this._dismissedByAction}),this._afterDismissed.complete(),this._dismissedByAction=!1}afterDismissed(){return this._afterDismissed}afterOpened(){return this.containerInstance._onEnter}onAction(){return this._onAction}}let uq=(()=>{class n{constructor(e,i){this.snackBarRef=e,this.data=i}action(){this.snackBarRef.dismissWithAction()}get hasAction(){return!!this.data.action}}return n.\u0275fac=function(e){return new(e||n)(p(Tb),p(O1))},n.\u0275cmp=Ue({type:n,selectors:[["simple-snack-bar"]],hostAttrs:[1,"mat-simple-snackbar"],decls:3,vars:2,consts:[[1,"mat-simple-snack-bar-content"],["class","mat-simple-snackbar-action",4,"ngIf"],[1,"mat-simple-snackbar-action"],["mat-button","",3,"click"]],template:function(e,i){1&e&&(g(0,"span",0),j(1),_(),H(2,aq,3,1,"div",1)),2&e&&(f(1),ve(i.data.message),f(1),v("ngIf",i.hasAction))},dependencies:[pn,tl],styles:[".mat-simple-snackbar{display:flex;justify-content:space-between;align-items:center;line-height:20px;opacity:1}.mat-simple-snackbar-action{flex-shrink:0;margin:-8px -8px -8px 8px}.mat-simple-snackbar-action button{max-height:36px;min-width:0}[dir=rtl] .mat-simple-snackbar-action{margin-left:-8px;margin-right:8px}.mat-simple-snack-bar-content{overflow:hidden;text-overflow:ellipsis}"],encapsulation:2,changeDetection:0}),n})();const dq={snackBarState:So("state",[li("void, hidden",qt({transform:"scale(0.8)",opacity:0})),li("visible",qt({transform:"scale(1)",opacity:1})),bi("* => visible",Oi("150ms cubic-bezier(0, 0, 0.2, 1)")),bi("* => void, * => hidden",Oi("75ms cubic-bezier(0.4, 0.0, 1, 1)",qt({opacity:0})))])};let hq=(()=>{class n extends kf{constructor(e,i,r,o,s){super(),this._ngZone=e,this._elementRef=i,this._changeDetectorRef=r,this._platform=o,this.snackBarConfig=s,this._announceDelay=150,this._destroyed=!1,this._onAnnounce=new N,this._onExit=new N,this._onEnter=new N,this._animationState="void",this.attachDomPortal=a=>{this._assertNotAttached();const l=this._portalOutlet.attachDomPortal(a);return this._afterPortalAttached(),l},this._live="assertive"!==s.politeness||s.announcementMessage?"off"===s.politeness?"off":"polite":"assertive",this._platform.FIREFOX&&("polite"===this._live&&(this._role="status"),"assertive"===this._live&&(this._role="alert"))}attachComponentPortal(e){this._assertNotAttached();const i=this._portalOutlet.attachComponentPortal(e);return this._afterPortalAttached(),i}attachTemplatePortal(e){this._assertNotAttached();const i=this._portalOutlet.attachTemplatePortal(e);return this._afterPortalAttached(),i}onAnimationEnd(e){const{fromState:i,toState:r}=e;if(("void"===r&&"void"!==i||"hidden"===r)&&this._completeExit(),"visible"===r){const o=this._onEnter;this._ngZone.run(()=>{o.next(),o.complete()})}}enter(){this._destroyed||(this._animationState="visible",this._changeDetectorRef.detectChanges(),this._screenReaderAnnounce())}exit(){return this._ngZone.run(()=>{this._animationState="hidden",this._elementRef.nativeElement.setAttribute("mat-exit",""),clearTimeout(this._announceTimeoutId)}),this._onExit}ngOnDestroy(){this._destroyed=!0,this._completeExit()}_completeExit(){this._ngZone.onMicrotaskEmpty.pipe(sn(1)).subscribe(()=>{this._ngZone.run(()=>{this._onExit.next(),this._onExit.complete()})})}_afterPortalAttached(){const e=this._elementRef.nativeElement,i=this.snackBarConfig.panelClass;i&&(Array.isArray(i)?i.forEach(r=>e.classList.add(r)):e.classList.add(i))}_assertNotAttached(){this._portalOutlet.hasAttached()}_screenReaderAnnounce(){this._announceTimeoutId||this._ngZone.runOutsideAngular(()=>{this._announceTimeoutId=setTimeout(()=>{const e=this._elementRef.nativeElement.querySelector("[aria-hidden]"),i=this._elementRef.nativeElement.querySelector("[aria-live]");if(e&&i){let r=null;this._platform.isBrowser&&document.activeElement instanceof HTMLElement&&e.contains(document.activeElement)&&(r=document.activeElement),e.removeAttribute("aria-hidden"),i.appendChild(e),r?.focus(),this._onAnnounce.next(),this._onAnnounce.complete()}},this._announceDelay)})}}return n.\u0275fac=function(e){return new(e||n)(p(et),p(Je),p(St),p(Nn),p(Ff))},n.\u0275dir=fe({type:n,viewQuery:function(e,i){if(1&e&&De(ks,7),2&e){let r;ce(r=ue())&&(i._portalOutlet=r.first)}},features:[Se]}),n})(),pq=(()=>{class n extends hq{_afterPortalAttached(){super._afterPortalAttached(),"center"===this.snackBarConfig.horizontalPosition&&this._elementRef.nativeElement.classList.add("mat-snack-bar-center"),"top"===this.snackBarConfig.verticalPosition&&this._elementRef.nativeElement.classList.add("mat-snack-bar-top")}}return n.\u0275fac=function(){let t;return function(i){return(t||(t=Pt(n)))(i||n)}}(),n.\u0275cmp=Ue({type:n,selectors:[["snack-bar-container"]],hostAttrs:[1,"mat-snack-bar-container"],hostVars:1,hostBindings:function(e,i){1&e&&gp("@state.done",function(o){return i.onAnimationEnd(o)}),2&e&&vp("@state",i._animationState)},features:[Se],decls:3,vars:2,consts:[["aria-hidden","true"],["cdkPortalOutlet",""]],template:function(e,i){1&e&&(g(0,"div",0),H(1,lq,0,0,"ng-template",1),_(),be(2,"div")),2&e&&(f(2),rt("aria-live",i._live)("role",i._role))},dependencies:[ks],styles:[".mat-snack-bar-container{border-radius:4px;box-sizing:border-box;display:block;margin:24px;max-width:33vw;min-width:344px;padding:14px 16px;min-height:48px;transform-origin:center}.cdk-high-contrast-active .mat-snack-bar-container{border:solid 1px}.mat-snack-bar-handset{width:100%}.mat-snack-bar-handset .mat-snack-bar-container{margin:8px;max-width:100%;min-width:0;width:100%}"],encapsulation:2,data:{animation:[dq.snackBarState]}}),n})(),P1=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=ht({type:n}),n.\u0275inj=dt({imports:[Ic,Xa,$r,R1,Lt,Lt]}),n})();const L1=new me("mat-snack-bar-default-options",{providedIn:"root",factory:function fq(){return new Ff}});let mq=(()=>{class n{constructor(e,i,r,o,s,a){this._overlay=e,this._live=i,this._injector=r,this._breakpointObserver=o,this._parentSnackBar=s,this._defaultConfig=a,this._snackBarRefAtThisLevel=null}get _openedSnackBarRef(){const e=this._parentSnackBar;return e?e._openedSnackBarRef:this._snackBarRefAtThisLevel}set _openedSnackBarRef(e){this._parentSnackBar?this._parentSnackBar._openedSnackBarRef=e:this._snackBarRefAtThisLevel=e}openFromComponent(e,i){return this._attach(e,i)}openFromTemplate(e,i){return this._attach(e,i)}open(e,i="",r){const o={...this._defaultConfig,...r};return o.data={message:e,action:i},o.announcementMessage===e&&(o.announcementMessage=void 0),this.openFromComponent(this.simpleSnackBarComponent,o)}dismiss(){this._openedSnackBarRef&&this._openedSnackBarRef.dismiss()}ngOnDestroy(){this._snackBarRefAtThisLevel&&this._snackBarRefAtThisLevel.dismiss()}_attachSnackBarContainer(e,i){const o=Vn.create({parent:i&&i.viewContainerRef&&i.viewContainerRef.injector||this._injector,providers:[{provide:Ff,useValue:i}]}),s=new pd(this.snackBarContainerComponent,i.viewContainerRef,o),a=e.attach(s);return a.instance.snackBarConfig=i,a.instance}_attach(e,i){const r={...new Ff,...this._defaultConfig,...i},o=this._createOverlay(r),s=this._attachSnackBarContainer(o,r),a=new Tb(s,o);if(e instanceof yn){const l=new Ms(e,null,{$implicit:r.data,snackBarRef:a});a.instance=s.attachTemplatePortal(l)}else{const l=this._createInjector(r,a),c=new pd(e,void 0,l),u=s.attachComponentPortal(c);a.instance=u.instance}return this._breakpointObserver.observe("(max-width: 599.98px) and (orientation: portrait)").pipe(Jt(o.detachments())).subscribe(l=>{o.overlayElement.classList.toggle(this.handsetCssClass,l.matches)}),r.announcementMessage&&s._onAnnounce.subscribe(()=>{this._live.announce(r.announcementMessage,r.politeness)}),this._animateSnackBar(a,r),this._openedSnackBarRef=a,this._openedSnackBarRef}_animateSnackBar(e,i){e.afterDismissed().subscribe(()=>{this._openedSnackBarRef==e&&(this._openedSnackBarRef=null),i.announcementMessage&&this._live.clear()}),this._openedSnackBarRef?(this._openedSnackBarRef.afterDismissed().subscribe(()=>{e.containerInstance.enter()}),this._openedSnackBarRef.dismiss()):e.containerInstance.enter(),i.duration&&i.duration>0&&e.afterOpened().subscribe(()=>e._dismissAfter(i.duration))}_createOverlay(e){const i=new xc;i.direction=e.direction;let r=this._overlay.position().global();const o="rtl"===e.direction,s="left"===e.horizontalPosition||"start"===e.horizontalPosition&&!o||"end"===e.horizontalPosition&&o,a=!s&&"center"!==e.horizontalPosition;return s?r.left("0"):a?r.right("0"):r.centerHorizontally(),"top"===e.verticalPosition?r.top("0"):r.bottom("0"),i.positionStrategy=r,this._overlay.create(i)}_createInjector(e,i){return Vn.create({parent:e&&e.viewContainerRef&&e.viewContainerRef.injector||this._injector,providers:[{provide:Tb,useValue:i},{provide:O1,useValue:e.data}]})}}return n.\u0275fac=function(e){return new(e||n)(M(lr),M(ub),M(Vn),M(sb),M(n,12),M(L1))},n.\u0275prov=ge({token:n,factory:n.\u0275fac}),n})(),bd=(()=>{class n extends mq{constructor(e,i,r,o,s,a){super(e,i,r,o,s,a),this.simpleSnackBarComponent=uq,this.snackBarContainerComponent=pq,this.handsetCssClass="mat-snack-bar-handset"}}return n.\u0275fac=function(e){return new(e||n)(M(lr),M(ub),M(Vn),M(sb),M(n,12),M(L1))},n.\u0275prov=ge({token:n,factory:n.\u0275fac,providedIn:P1}),n})(),tn=(()=>{class n{constructor(e,i,r){this.snackBar=e,this.globals=i,this.lsm=r,this.snackBarConfig={duration:3500,horizontalPosition:"center",verticalPosition:"bottom",panelClass:""},this.defaultTitle="",this.connectionTimeout=null,this.waitForAsyncMessage()}showSnackBarWithDelay(e,i,r){const o=this.snackBar.open(e,i,r),s=document.querySelector(".mat-snack-bar-container");return s&&(s.classList.add("hidden"),setTimeout(()=>{s.classList.remove("hidden")},500)),o}showError(e,i=this.defaultTitle,r,o=3e3){(null===e||""===e?.trim())&&(e="An error occurred. Please try again.");const s={...this.snackBarConfig,duration:r?void 0:o,panelClass:"error-snackbar"};this.showSnackBarWithDelay(e,this.globals.languageConfLocal.dismissMessage,s)}waitForAsyncMessage(){setInterval(()=>{let e=this.lsm.getValue(Zt.asyncMessage);if(e){let i=JSON.parse(e);switch(i.type){case er.error:this.showError(i.message,"",void 0,1e4);break;case er.info:this.showInfo(i.message);break;case er.success:let o=(i.message.split(" ").length-1)/3*1e3;this.showSuccess(i.message,"",o);break;case er.warning:this.showWarning(i.message);break;default:this.showCommon(i.message)}}this.lsm.removeValue(Zt.asyncMessage)},1e3)}showMessageAsync(e,i){let r=JSON.stringify({message:e,type:i});this.lsm.setValue(Zt.asyncMessage,r)}showInfo(e,i=this.defaultTitle){const r={...this.snackBarConfig,panelClass:"info-snackbar"};this.showSnackBarWithDelay(e,"OK",r)}showSuccess(e,i=this.defaultTitle,r=3e3){const o={...this.snackBarConfig,duration:r,panelClass:"success-snackbar"};this.showSnackBarWithDelay(e,"OK",o)}showWarning(e,i=this.defaultTitle){const r={...this.snackBarConfig,panelClass:"warning-snackbar"};this.showSnackBarWithDelay(e,"OK",r)}showCommon(e,i=this.defaultTitle){const r={...this.snackBarConfig,panelClass:"common-snackbar"};this.showSnackBarWithDelay(e,"OK",r)}setConnectionTimeout(e,i=this.defaultTitle){this.clearConnectionTimeout(),this.connectionTimeout=setTimeout(()=>{this.globals.loginOpen||this.showError(e,i,!0)},5e3)}clearConnectionTimeout(){null!=this.connectionTimeout&&(clearTimeout(this.connectionTimeout),this.connectionTimeout=null)}clearSnacks(){this.snackBar.dismiss()}changeClass(e){this.snackBarConfig.panelClass=e}getTimeoutMS(){return this.snackBarConfig.duration}}return n.\u0275fac=function(e){return new(e||n)(M(bd),M(ot),M(Mi))},n.\u0275prov=ge({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();var er=(()=>(function(n){n.error="Error",n.info="Info",n.success="Success",n.warning="Warning"}(er||(er={})),er))();const xb="loginBM.xsp";let N1=(()=>{class n{constructor(e,i,r,o){this.globals=e,this.waitList=i,this.modal=r,this.messageService=o,this.apiOverviewPath="",this.pathFetchInProgress=!1,this.loggedIn=!1,this.loggingOut=!1,this.listenerSet=!1,this.dialog=null,this.options={},this.apiOverviewPath="restBM.xsp/verserest/"}connect(){return new b(e=>{this.createListenerLogin(e),this.loginWindow=this.popupWindow(this.globals.webInt+xb,"login",440,190),this.globals.loginOpen=!0,(!this.loginWindow||this.loginWindow.closed||typeof this.loginWindow.closed>"u")&&(this.loggingOut||this.messageService.showError(this.globals.languageConfLocal.popupBlocked,void 0,!0),"Verse"===this.globals.curConnectorType&&location.reload())})}objectToHttpParams(e){let i=new $t;for(const r in e)if(Object.prototype.hasOwnProperty.call(e,r)){const o=e[r];o&&(i=i.set(r,o))}return i}reload(){if("Owa"===this.globals.curConnectorType)window.location.reload();else if(sessionStorage.setItem("verseAppData",JSON.stringify(this.globals.curConnector.data)),window,!window.location.href.includes("index.html")){let i="index.html";window.location.href.endsWith("/")||(i="/"+i),window.location.href+=i}}getReqModal(e,i){return this.globals.modalCacheFlag?(null==i&&(i=new $t),this.getReq(e,i)):this.getReqNoCache(e,i)}getReqNoCache(e,i,r,o){return null==i&&(i=new $t),i=i.append("noCache","true"),this.getReq(e,i,r,o)}getReq(e,i,r,o){let s;return s=null!=r&&!1===r?this.globals.changeOwnOptions({responseType:"text"}):void 0,!e.includes("keepAlive")&&!o&&this.activateSpinner(),null==i&&(i=new $t),new b(a=>{this.getReqHandler(e,i,a,0,s,r)})}getReqHandler(e,i,r,o,s,a){var l=this;return Ae(function*(){if(null!=l.pathInfo){let u,c=l.globals.webInt+l.apiOverviewPath+l.pathInfo[e].relativePath;u=s?l.globals.changeOwnOptions(s):l.globals.objectWithParams(i),c+="?"+i.toString(),yield fetch(c,u).then(function(){var d=Ae(function*(h){let m;m=null==a||a?yield h.json():yield h.text(),r.next(m),r.complete(),l.globals.hideSpinner()});return function(h){return d.apply(this,arguments)}}()).catch(d=>{r.error(),l.globals.hideSpinner()})}else 10==++o?(null===window.localStorage.getItem("webInt")||l.globals.hideSpinner(),r.error()):setTimeout(()=>{l.getReqHandler(e,i,r,o)},500)})()}postReq(e,i,r=!0,o,s,a){var l=this;if((void 0===s||!s)&&this.activateSpinner(),i instanceof $t&&(i=i.toString()),r){if(!o){const c={method:"POST",body:i};"object"==typeof i&&(c.body=JSON.stringify(i),c.headers={"Content-Type":"application/json"}),o=this.globals.changeOwnOptions(c)}}else if(o)o.method="POST",o.responseType="text","object"==typeof i?(o.headers={"Content-Type":"application/json"},o.body=JSON.stringify(i)):o.body=i,o=this.globals.changeOwnOptions(o);else{const c={responseType:"text",method:"POST",body:i};"object"==typeof i&&(c.body=JSON.stringify(i),c.headers={"Content-Type":"application/json"}),o=this.globals.changeOwnOptions(c)}return o&&(o.method="POST","object"==typeof i?(o.headers={"Content-Type":"application/json"},o.body=JSON.stringify(i)):o.body=i,o=this.globals.changeOwnOptions(o)),new b(c=>{if(null!=this.pathInfo){let u=this.globals.webInt+this.apiOverviewPath+this.pathInfo[e].relativePath;a&&(u+=a),vt(fetch(u,o)).subscribe({next:(d=Ae(function*(h){if(200===h.status){let m;m=null==r||r?yield h.json():yield h.text(),c.next(m),l.globals.hideSpinner()}else c.error(h),l.globals.hideSpinner()}),function(m){return d.apply(this,arguments)}),error:d=>{c.error(d),this.globals.hideSpinner()},complete:()=>{}})}var d})}postSoap(e,i){var r=this;return Ae(function*(){r.activateSpinner();const o=yield fetch(e,{method:"POST",mode:"cors",cache:"no-cache",credentials:"include",headers:{"Content-Type":"text/xml",SOAPAction:"basicInvoke"},redirect:"follow",referrerPolicy:"no-referrer",body:i});return r.globals.hideSpinner(),o})()}processPath(){return new b(e=>{if(this.pathFetchInProgress)this.waitList.addToWaitList("path",e);else{this.pathFetchInProgress=!0;const i=vt(fetch(this.globals.webInt+this.apiOverviewPath,this.globals.options));null!=this.pathInfo?(this.processPathWaitingList(),this.pathFetchInProgress=!1,e.next(this.pathInfo),e.complete()):this.loginConnect(i,e)}})}processAddress(e){return e=e.set("filterImg","true"),new b(i=>{null!=this.pathInfo&&this.postReq("addresses",e,!0).subscribe({next:r=>{for(let o of r.data)o.url=this.createWebintLink(o.pointer),o.parentUrl=this.createWebintLink(o.companyPointer);i.next(r),i.complete()},error:r=>{},complete:()=>{}})})}waitForLC(){return new b(e=>{null==this.pathInfo?this.processPath().subscribe(()=>{this.processLCHandler(e)}):this.processLCHandler(e)})}processLCHandler(e){var o,i=this;null!=this.pathInfo&&(Object.keys(this.globals.languageConf).length>0?(e.next(!0),e.complete()):vt(fetch(this.globals.webInt+this.apiOverviewPath+this.pathInfo.translation.relativePath+"/businessmail",this.globals.options)).subscribe({next:(o=Ae(function*(s){200!==s.status?e.error(yield s.text()):(i.globals.languageConf=yield s.json(),e.next(!0),e.complete())}),function(a){return o.apply(this,arguments)}),error:o=>{},complete:()=>{}}))}checkWebInt(e){var i=this;return Ae(function*(){return i.activateSpinner(),yield fetch(e+xb,{method:"HEAD"}).then(r=>404===r.status?(i.messageService.showError(i.globals.languageConfLocal.webIntCertError+" "+e,void 0,!0),i.globals.hideSpinner(),!1):(window.localStorage.setItem("webInt",encodeURI(e)),i.globals.webInt=encodeURI(e),!0)).catch(()=>(i.messageService.showError(i.globals.languageConfLocal.webIntCertError+" "+e,void 0,!0),i.globals.hideSpinner(),!1))})()}resetListener(){this.listenerSet=!1}logout(e){var i=this;return Ae(function*(){if(i.activateSpinner(),"gi"===i.globals.system){let r=window.open(i.globals.webInt+"?logout","_blank","toolbar=no,status=no,menubar=no,scrollbars=no,resizable=no, 440, 190");setTimeout(()=>{r?.close()},1e3)}var r;vt(fetch(i.globals.webInt.substring(0,i.globals.webInt.length-1)+"?logout",i.globals.options)).subscribe({next:()=>{(void 0===e||!1===e)&&(i.reload(),"Verse"===i.globals.curConnectorType&&location.reload())},error:(r=Ae(function*(o){const s=yield fetch(i.globals.webInt+"restBM.xsp/verserest/",{method:"get",credentials:"include",cache:"no-cache",mode:"cors"});null!=s.status&&401===s.status?(void 0===e||!1===e)&&i.reload():(null!=s.type&&"cors"===s.type&&(void 0===e||!1===e)&&i.reload(),i.messageService.showError(i.globals.languageConfLocal.webIntLogoutFailed,void 0,!0))}),function(s){return r.apply(this,arguments)})})})()}waitForWebIntModal(){return new b(e=>{this.webIntModalOpen?(e.next(this.webIntModalOpen),e.complete()):this.waitList.addToWaitList("webIntModal",e)})}getUserName(){return new b(e=>{this.getReqNoCache("user",null).subscribe(i=>{e.next(i),e.complete()})})}waitForGraphRequired(){return new b(e=>{this.waitList.addToWaitList("graphRequired",e)})}login(e,i){return Ae(function*(){throw new Error("Method not implemented.")})()}get isLoggedIn(){return this.loggedIn}set webIntModalOpenRef(e){this.webIntModalOpen=e;for(const i of this.waitList.accessWaitList("webIntModal"))i.next(e),i.complete()}getPath(e,i=!0){return this.pathInfo?this.globals.webInt+(i?this.apiOverviewPath:"")+this.pathInfo[e].relativePath:""}activateSpinner(){this.globals.webInt&&""!==this.globals.webInt&&this.globals.showSpinner()}processPathWaitingList(){this.waitList.accessWaitList("path").forEach(e=>{null!=this.pathInfo?(e.next(this.pathInfo),e.complete()):e.error()})}loginConnect(e,i){this.globals.webInt&&this.loginConnectHandler(e,i)}loginConnectHandler(e,i){var o,r=this;e.subscribe({next:(o=Ae(function*(s){200!==s.status?r.loginConnectError(s,e,i):(r.pathInfo=yield s.clone().json(),r.loggedIn=!0,r.keepAlive(),r.checkIfLoggedIn(e,i))}),function(a){return o.apply(this,arguments)}),error:o=>{this.loginConnectError(o,e,i)},complete:()=>{}})}loginConnectError(e,i,r){var o=this;return Ae(function*(){o.loggedIn=!1,401===e.status||200===e.status?o.connect().subscribe(o.connectHandler(i,r)):(o.processPathWaitingList(),o.pathFetchInProgress=!1)})()}keepAlive(){var e=this;null!=this.keepAliveInterval&&clearInterval(this.keepAliveInterval),this.keepAliveInterval=setInterval(Ae(function*(){const i=e.getReqNoCache("keepAlive",null,!1).subscribe(()=>{i.unsubscribe()})}),55e3)}connectHandler(e,i){return{next:()=>{},error:r=>{},complete:()=>{const r=vt(fetch(this.globals.webInt+this.apiOverviewPath,this.globals.options));this.loginConnect(r,i)}}}waitForPlatformType(){return new b(e=>{this.waitList.addToWaitList("platform",e)})}processOutlookMessage(e){"message"in e&&null!=this.dialog&&"ready"===e.message.toLowerCase()&&this.dialog.messageChild(this.globals.webInt+xb)}onDialogClose(e,i){if(console.log(i),"error"in i&&12006===i.error){console.log("DIALOG CLOSED"),this.activateSpinner(),e.next("OK"),e.complete(),this.globals.loginOpen=!1;for(const r of this.waitList.accessWaitList("login"))r.next("OK"),r.next("complete")}}checkIfLoggedIn(e,i){var r=this;return Ae(function*(){if(null!=r.pathInfo){let o=new $t;o=o.set("noCache","true"),r.getReqNoCache("keepAlive",null,!1).subscribe({next:(s=Ae(function*(a){null==a||"OK"!==a?r.connect().subscribe(r.connectHandler(e,i)):(r.processPathWaitingList(),r.pathFetchInProgress=!1,i.next(a),i.complete())}),function(l){return s.apply(this,arguments)}),error:s=>{r.connect().subscribe(r.connectHandler(e,i))}})}var s})()}popupWindow(e,i,r,o){if(!this.loggingOut){const s=screen.width/2-r/2,a=screen.height/2-o/2;return window.open(e,i,"toolbar=no, location=no, directories=no, status=no, menubar=no, scrollbars=no, resizable=no, copyhistory=no, width="+r+", height="+o+", top="+a+", left="+s)}return null}createListenerLogin(e){var i=this;this.listenerSet||(setTimeout(()=>{this.globals.hideSpinner()},4e3),window.addEventListener("message",this.messageListener=function(){var r=Ae(function*(o){if(o.origin===i.globals.origin)if("OK"===o.data){null!=i.loginWindow&&i.loginWindow.close(),window.removeEventListener("message",i.messageListener,!1),i.activateSpinner(),e.next("OK"),e.complete(),i.globals.loginOpen=!1;for(const s of i.waitList.accessWaitList("login"))s.next("OK"),s.next("complete")}else"Close"===o.data&&(i.waitList.addToWaitList("login",e),i.globals.hideSpinner(),i.globals.loginOpen=!1)});return function(o){return r.apply(this,arguments)}}(),!1),this.listenerSet=!0)}createWebintLink(e){return this.globals.convertToLink(e)}getGraphConfiguration(){return new b(e=>{e.next({clientId:"85ff3995-8743-4f2d-8590-4f31016115e1",authority:"https://login.microsoftonline.com/1941e20a-ec2d-470a-b5aa-c6c281dc2137"})})}}return n.\u0275fac=function(e){return new(e||n)(M(ot),M(Ri),M(Wo),M(tn))},n.\u0275prov=ge({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const bq=new me("JWT_OPTIONS");let Cq=(()=>{class n{constructor(e=null){this.tokenGetter=e&&e.tokenGetter||function(){}}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 s,a,o=0,l=0;a=e.charAt(l++);~a&&(s=o%4?64*s+a:a,o++%4)?r+=String.fromCharCode(255&s>>(-2*o&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=this.tokenGetter()){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=this.tokenGetter()){let i;if(i=this.decodeToken(e),!i||!i.hasOwnProperty("exp"))return null;const r=new Date(0);return r.setUTCSeconds(i.exp),r}isTokenExpired(e=this.tokenGetter(),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)(M(bq))},n.\u0275prov=ge({token:n,factory:n.\u0275fac}),n})(),F1=(()=>{class n{constructor(){this.pathObj=null}get path(){return this.pathObj}isPathSet(){return null!=this.pathObj}waitForPath(){var e=this;return Ae(function*(){return e.pathObj=yield e.createPath(),e.pathObj})()}createPath(){return Ae(function*(){return{addresses:{relativePath:"bm4o/AddressesByMailAddress"},activities:{relativePath:"bm4o/ActivitiesByAddress"},document:{relativePath:"bm4o/DocumentMail"},renew:{relativePath:"auth/renewByToken"},search:{relativePath:"bm4o/SearchContacts"},searchProjects:{relativePath:"BM4OProjects/SearchProjects"},emailAlreadyDocumented:{relativePath:"BM4O/EmailAlreadyDocumented"},activityTypes:{relativePath:"bm4o/DocumentTypes"},addRecentlyUsed:{relativePath:"RecentlyUsed/AddRecentlyUsed"},openRecord:{relativePath:"OpenRecord"},baVersion:{relativePath:"bm4o/GetBAVersion"},getChips:{relativePath:"bm4o/GetChips"},readCRMData:{relativePath:"bm4o/GetCRMData"},extractContact:{relativePath:"RestAddressParser/Parse"},createRecord:{relativePath:"v1/record/"},getEnumValues:{relativePath:"v1/enum/"},checkAlive:{relativePath:"bm4o/CheckAlive"},searchDocuments:{relativePath:"BM4O/SearchDocuments"},graphConfiguration:{relativePath:"BM4O/GetGraphConfiguration"}}})()}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=ge({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const Eq=["alternativeAddresses"],Dq=["pointer","database","mail","imageURL","companyPointer","url","parentUrl","isCompany","gender","base64image"];let Ib=(()=>{class n{constructor(e){this.globals=e}convertAddress(e,i,r){var o=this;return Ae(function*(){const s={},a={},l=[];let c=0;if(i?.addresses)for(const d of i.addresses){const h={name:d.entityTitle,pointer:d.oid,companyName:null!=d.parent?d.parent.entityTitle:void 0,companyPointer:null!=d.parent?d.parent.oid:void 0,isCompany:"fe7eb8ae-71be-4220-8da5-dc04078e6b3c"===d.type.oid,url:d.frontEndUri,additional:{mail:r,homepage:d.homepage,birthdate:d.birthday?new Date(d.birthday).toLocaleDateString():null,skype:d.skypeName,imageURL:null,database:null,phone:d.phoneNumber,cellphone:d.mobileNumber,homephone:d.homePhoneNumber,alternativeAddresses:[],gender:d.gender,base64image:d.base64image,fallback:d.fallback,fullAddress:d.fullAddress}};s[d.oid]=d.frontEndUri,null!=d.parent&&(a.hasOwnProperty(d.parent.oid)?a[d.parent.oid].push(c):a[d.parent.oid]=[c]);const m=yield o.removeEmptyEntries(h);l.push(m),c++}yield o.assignParentUrls(l,s,a),e.next({data:l,ignoreInAddress:Eq,hide:Dq}),e.complete()})()}convertActivity(e,i,r,o){const s=[];let a=this.globals.numericBackendVersion()<9e4?"":this.globals.webInt;for(const c of i.activities){const u={date:c.date,dateInMS:new Date(c.date).getTime(),pointer:c.oid,subject:c.subject,viewIcon:a+c.imageName,viewIconUrl:a+c.imageName,lineTwoOverride:c.lineTwoOverride,url:c.frontEndUri};s.push(u)}e.next({activities:s,selectedType:r,maxEntries:10,type:"activities"})}convertActivityTypes(e){const i=[["Vorg\xe4nge","1"]];i.type="types",e.next(i)}get maxActivities(){return 10}assignParentUrls(e,i,r){return Ae(function*(){for(const o of Object.keys(r))for(const s of r[o])e[s].parentUrl=i[o]})()}removeEmptyEntries(e){return Ae(function*(){for(const[i,r]of Object.entries(e))void 0===r&&e.hasOwnProperty(i)&&delete e[i];return e})()}}return n.\u0275fac=function(e){return new(e||n)(M(ot))},n.\u0275prov=ge({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),Mb=(()=>{class n extends N1{constructor(e,i,r,o,s,a,l){super(e,i,r,o),this.globals=e,this.waitList=i,this.modal=r,this.messageService=o,this.pathBA=s,this.converter=a,this.modalService=l,this.apiOverviewPath="api/",this.jwt=new Cq}connect(){return new b(e=>{this.loginListener(e)})}objectToHttpParams(e){let i=new $t;for(const r in e)if(Object.prototype.hasOwnProperty.call(e,r)){const o=e[r];o&&(i=i.set(r,o))}return i}reload(){if("Owa"===this.globals.curConnectorType)window.location.reload();else if(sessionStorage.setItem("verseAppData",JSON.stringify(this.globals.curConnector.data)),window,!window.location.href.includes("index.html")){let i="index.html";window.location.href.endsWith("/")||(i="/"+i),window.location.href+=i}}getReqModal(e,i){return this.globals.modalCacheFlag?(null==i&&(i=new $t),this.getReq(e,i)):this.getReqNoCache(e,i)}getReqNoCache(e,i,r,o){return null==i&&(i=new $t),i=i.append("noCache","true"),this.getReq(e,i,r,o)}getReq(e,i,r=!0,o,s,a){let l;return l=null!=r&&!1===r?this.globals.changeOwnOptions({responseType:"text"}):void 0,!e.includes("renew")&&!o&&this.activateSpinner(),null==i&&(i=new $t),new b(c=>{this.getReqHandler(e,i,c,0,l,r,s,a)})}getReqHandler(e,i,r,o,s,a,l,c){var u=this;return Ae(function*(){u.processPath().subscribe(Ae(function*(){if(null!=u.pathInfo){let h,d=u.globals.webInt;d+=l?l+u.pathInfo[e].relativePath:u.apiOverviewPath+u.pathInfo[e].relativePath,h=s?u.globals.changeOwnOptions(s):u.globals.objectWithParams(i);const m=yield u.getValidToken();if(""===m)return;h.headers={"Content-Type":"application/json",Authorization:"Bearer "+m},c&&(d+=c),d+="?"+i.toString(),yield fetch(d,h).then(function(){var A=Ae(function*(U){let te;te=null==a||a?yield U.json():yield U.text(),r.next(te),r.complete(),u.globals.hideSpinner()});return function(U){return A.apply(this,arguments)}}()).catch(A=>{r.error(),u.globals.hideSpinner()})}else 3==++o?(null===window.localStorage.getItem("webInt")||u.messageService.setConnectionTimeout(u.globals.languageConfLocal.cantConnect),r.error()):setTimeout(()=>{u.getReqHandler(e,i,r,o)},300)}))})()}postReq(e,i,r=!0,o,s,a,l){if((void 0===s||!s)&&!e.includes("renew")&&this.activateSpinner(),i instanceof $t&&(i=i.toString()),r){if(!o){const c={method:"POST",body:i};"object"==typeof i&&(c.body=JSON.stringify(i),c.headers={"Content-Type":"application/json"}),o=this.globals.changeOwnOptions(c)}}else if(o)o.method="POST",o.responseType="text","object"==typeof i?(o.headers={"Content-Type":"application/json"},o.body=JSON.stringify(i)):o.body=i,o=this.globals.changeOwnOptions(o);else{const c={responseType:"text",method:"POST",body:i};"object"==typeof i&&(c.body=JSON.stringify(i),c.headers={"Content-Type":"application/json"}),o=this.globals.changeOwnOptions(c)}return o&&(o.method="POST","object"==typeof i?(o.headers={"Content-Type":"application/json"},o.body=JSON.stringify(i)):o.body=i,o=this.globals.changeOwnOptions(o)),new b(c=>{this.postReqHandler(c,e,o,r,a,l)})}postReqHandler(e,i,r,o=!0,s,a){var l=this;return Ae(function*(){const c=yield l.getValidToken();if(""!==c&&(r&&(r.headers={"Content-Type":"application/json",Authorization:"Bearer "+c}),null!=l.pathInfo)){let d=l.globals.webInt;d+=a?a+l.pathInfo[i].relativePath:l.apiOverviewPath+l.pathInfo[i].relativePath,s&&(d+=s),vt(fetch(d,r)).subscribe({next:(h=Ae(function*(m){if(200===m.status||201===m.status){let y;y=null==o||o?yield m.json():yield m.text(),e.next(y),l.globals.hideSpinner()}else e.error(m),l.globals.hideSpinner()}),function(y){return h.apply(this,arguments)}),error:h=>{e.error(h),l.globals.hideSpinner()},complete:()=>{}})}var h})()}postSoap(e,i){var r=this;return Ae(function*(){r.activateSpinner();const o=yield fetch(e,{method:"POST",mode:"cors",cache:"no-cache",credentials:"include",headers:{"Content-Type":"text/xml",SOAPAction:"basicInvoke"},redirect:"follow",referrerPolicy:"no-referrer",body:i});return r.globals.hideSpinner(),o})()}processPath(){return new b(e=>{this.pathFetchInProgress?this.waitList.addToWaitList("path",e):(this.pathFetchInProgress=!0,this.pathBA.isPathSet()&&(this.pathInfo=this.pathBA.path),null!=this.pathInfo?(this.processPathWaitingList(),this.pathFetchInProgress=!1,e.next(this.pathInfo),e.complete()):this.pathHandler(e))})}processAddress(e){return new b(i=>{null!=this.pathInfo&&this.getReq("addresses",e,!0).subscribe({next:r=>{this.converter.convertAddress(i,r,e.get("mail"))},error:r=>{},complete:()=>{}})})}waitForLC(){return new b(e=>{null==this.pathInfo?this.processPath().subscribe(()=>{this.processLCHandler(e)}):this.processLCHandler(e)})}processLCHandler(e){null!=this.pathInfo&&(Object.keys(this.globals.languageConf),e.next(!0),e.complete())}checkWebInt(e,i,r){var o=this;return Ae(function*(){i||(e=yield o.trimURL(e)),o.activateSpinner();const a=new Request(e+"api/bm4o/GetBAVersion",{method:"GET"});return yield fetch(a).then(function(){var l=Ae(function*(c){return 401===c.status?"8.0.0":404===c.status?"7.0.0":c.text()});return function(c){return l.apply(this,arguments)}}()).then(function(){var l=Ae(function*(c){o.globals.backendVersion=c});return function(c){return l.apply(this,arguments)}}()).catch(()=>o.globals.backendVersion="7.0.0"),o.globals.webInt===e||(window.localStorage.setItem("webInt",e),o.globals.webInt=e,o.logout(),!1)})()}resetListener(){this.listenerSet=!1}logout(e){var i=this;return Ae(function*(){window.localStorage.removeItem("token"),i.globals.loggedIn=!1,(void 0===e||!1===e)&&i.reload()})()}waitForWebIntModal(){return new b(e=>{this.webIntModalOpen?(e.next(this.webIntModalOpen),e.complete()):this.waitList.addToWaitList("webIntModal",e)})}getUserName(){return new b(e=>{this.userNameHandler(e)})}userNameHandler(e){var i=this;return Ae(function*(){const r=yield i.getValidToken();if(""!==r){const o=i.jwt.decodeToken(r);e.next(o.name),e.complete()}})()}waitForGraphRequired(){return new b(e=>{this.waitList.addToWaitList("graphRequired",e)})}login(e,i){var r=this;return Ae(function*(){if(!(yield r.checkWebInt(r.globals.webInt,void 0,!0)))return r.messageService.showError(r.globals.languageConfLocal.urlInvalidBase,void 0,!0),r.globals.hideSpinner(),!1;const s=new Request(r.globals.webInt+"api/auth/login",{method:"POST",body:JSON.stringify({username:e,password:i}),headers:new Headers({"Content-Type":"application/json"})});if(r.globals.numericBackendVersion()<9e4)return yield r.performLogin(s);{const a=new Request(r.globals.webInt+"api/bm4o/checkAlive",{method:"GET"});yield fetch(a).then(function(){var l=Ae(function*(c){return c.text()});return function(c){return l.apply(this,arguments)}}()).then(function(){var l=Ae(function*(c){if("true"===c)return yield r.performLogin(s);if(c.indexOf("The Application is just starting")>0){let d=c.substring(c.indexOf("The Application is just starting")+33).trim().match(/\d+\s*%/);if(d){let h=parseInt(d[0],10);console.log("Loaded value:",h),r.messageService.showWarning(`${r.globals.languageConfLocal.baInstanceStarting} ${r.globals.languageConfLocal.loaded} ${h}%`)}return r.globals.hideSpinner(),!1}return r.messageService.showError(r.globals.languageConfLocal.baInstanceNotAvailable),r.globals.hideSpinner(),!1});return function(c){return l.apply(this,arguments)}}()).catch(l=>(r.messageService.showError(r.globals.languageConfLocal.baInstanceNotAvailable),r.globals.hideSpinner(),!1))}return!1})()}performLogin(e){var i=this;return Ae(function*(){const r=yield fetch(e).then(o=>o.json()).then(o=>(null!=o.token&&void 0!==o.token?localStorage.setItem("token",o.token):(localStorage.removeItem("token"),i.globals.loggedIn=!1),i.messageService.showSuccess(i.globals.languageConfLocal.loginSuccess),i.globals.hideForLogin=!1,!0)).catch(o=>(localStorage.removeItem("token"),i.globals.loggedIn=!1,i.messageService.showError(i.globals.languageConfLocal.loginFailed),!1));return i.globals.hideSpinner(),r&&i.reload(),r})()}get isLoggedIn(){return this.loggedIn}set webIntModalOpenRef(e){this.webIntModalOpen=e;for(const i of this.waitList.accessWaitList("webIntModal"))i.next(e),i.complete()}activateSpinner(){this.globals.webInt&&""!==this.globals.webInt&&this.globals.showSpinner()}processPathWaitingList(){this.waitList.accessWaitList("path").forEach(e=>{null!=this.pathInfo?(e.next(this.pathInfo),e.complete()):e.error()})}pathHandler(e){var i=this;return Ae(function*(){i.pathInfo=yield i.pathBA.waitForPath(),i.loggedIn=!0,i.keepAlive(),i.checkIfLoggedInBA(i.pathInfo,e)})()}keepAlive(){var e=this;null!=this.keepAliveInterval&&clearInterval(this.keepAliveInterval),this.keepAliveInterval=setInterval(Ae(function*(){const i=window.localStorage.getItem("token");if(null!==i||"undefined"===i){const r=yield e.renewRequest(i);yield fetch(r).then(function(){var s=Ae(function*(a){return a.json()});return function(a){return s.apply(this,arguments)}}()).then(s=>{null!=s.token&&void 0!==s.token?localStorage.setItem("token",s.token):(localStorage.removeItem("token"),e.globals.loggedIn=!1)}).catch(s=>{localStorage.removeItem("token"),e.globals.loggedIn=!1,e.messageService.showError(e.globals.languageConfLocal.tokenFailed)})}else null===i&&(e.globals.loggedIn=!1)}),3e5)}trimURL(e){return Ae(function*(){const i=new URL(e),r=i.pathname;return r.includes("/_")&&(i.pathname=r.substring(0,r.indexOf("/_")+1)),i.toString()})()}renewRequest(e){var i=this;return Ae(function*(){const r=i.jwt.decodeToken(e);return new Request(i.globals.webInt+"api/auth/renewByToken",{method:"POST",body:JSON.stringify({username:encodeURIComponent(r.name)}),headers:new Headers({"Content-Type":"application/json",Authorization:"Bearer "+e})})})()}getValidToken(){var e=this;return Ae(function*(){let i=localStorage.getItem("token");(null===i||"undefined"===i)&&(i=void 0);const r=e.jwt.isTokenExpired(i);if(!r||void 0!==i&&null!=i){if(r){const o=yield e.renewRequest(i);yield fetch(o).then(function(){var a=Ae(function*(l){if(401!==l.status)return l.json();i="",yield e.openLoginModal()});return function(l){return a.apply(this,arguments)}}()).then(a=>{null!=a.token&&void 0!==a.token?localStorage.setItem("token",a.token):(localStorage.removeItem("token"),e.globals.loggedIn=!1)}).catch(a=>{console.log(a),localStorage.removeItem("token"),e.globals.loggedIn=!1,e.messageService.showError(e.globals.languageConfLocal.tokenFailed)})}}else yield e.openLoginModal(),i=localStorage.getItem("token");return null==i&&(i=""),i})()}isTokenValid(){var e=this;return Ae(function*(){let i=localStorage.getItem("token");return(null===i||"undefined"===i)&&(i=void 0),e.jwt.isTokenExpired})()}openLoginModal(){var e=this;return Ae(function*(){e.globals.hideForLogin=!0,e.modalService.changeType({newType:"login"}),e.globals.hideSpinner()})()}loginListener(e){var i=this;return Ae(function*(){if(""!==(yield i.getValidToken())){e.next("OK"),e.complete();for(const o of i.waitList.accessWaitList("login"))o.next("OK"),o.next("complete")}else i.waitList.addToWaitList("login",e),i.globals.hideSpinner()})()}checkIfLoggedInBA(e,i){var r=this;return Ae(function*(){if(null!=r.pathInfo){let o=new $t;o=o.set("noCache","true"),(yield r.isTokenValid())&&(r.processPathWaitingList(),r.pathFetchInProgress=!1,i.next(e),i.complete())}})()}getGraphConfiguration(){return new b(e=>{this.getReq("graphConfiguration",this.objectToHttpParams({}),void 0,!0).subscribe({next:i=>{e.next(i)},error:i=>{e.next({clientId:"85ff3995-8743-4f2d-8590-4f31016115e1",authority:"https://login.microsoftonline.com/1941e20a-ec2d-470a-b5aa-c6c281dc2137"})}})})}}return n.\u0275fac=function(e){return new(e||n)(M(ot),M(Ri),M(Wo),M(tn),M(F1),M(Ib),M(hl))},n.\u0275prov=ge({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),In=(()=>{class n{constructor(e,i,r,o,s,a,l){this.globals=e,this.waitList=i,this.modal=r,this.messageService=o,this.pathBA=s,this.converter=a,this.modalService=l,this.curConnectionSystem||this.setSystem(this.globals.system)}setSystem(e){var i=this;return Ae(function*(){switch(e){case"gi":i.globals.system="gi",i.curConnectionSystem=new N1(i.globals,i.waitList,i.modal,i.messageService);break;case"ba":i.globals.system="ba",i.curConnectionSystem=new Mb(i.globals,i.waitList,i.modal,i.messageService,i.pathBA,i.converter,i.modalService)}})()}get system(){return this.globals.system}connect(){return this.curConnectionSystem.connect()}objectToHttpParams(e){return this.curConnectionSystem.objectToHttpParams(e)}reload(){this.curConnectionSystem.reload()}getReqModal(e,i){return this.curConnectionSystem.getReqModal(e,i)}getReqNoCache(e,i,r,o){return this.curConnectionSystem.getReqNoCache(e,i,r,o)}getReq(e,i,r,o){return this.curConnectionSystem.getReq(e,i,r,o)}getReqHandler(e,i,r,o,s,a){var l=this;return Ae(function*(){return l.curConnectionSystem.getReqHandler(e,i,r,o,s,a)})()}postReq(e,i,r=!0,o,s,a){return this.curConnectionSystem.postReq(e,i,r,o,s,a)}postSoap(e,i){return new b(r=>{r.next(this.curConnectionSystem.postSoap(e,i))})}processPath(){return this.curConnectionSystem.processPath()}processAddress(e){return this.curConnectionSystem.processAddress(e)}waitForLC(){return this.curConnectionSystem.waitForLC()}processLCHandler(e){this.curConnectionSystem.processLCHandler(e)}checkWebInt(e){var i=this;return Ae(function*(){return i.curConnectionSystem.checkWebInt(e)})()}resetListener(){this.curConnectionSystem.resetListener()}logout(e){var i=this;return Ae(function*(){return i.curConnectionSystem.logout(e)})()}logoutOldSystem(e){return Ae(function*(){return e.logout()})()}waitForWebIntModal(){return this.curConnectionSystem.waitForWebIntModal()}getUserName(){return this.curConnectionSystem.getUserName()}waitForGraphRequired(){return this.curConnectionSystem.waitForGraphRequired()}login(e,i){var r=this;return Ae(function*(){return r.curConnectionSystem.login(e,i)})()}get isLoggedIn(){return this.curConnectionSystem.isLoggedIn}set webIntModalOpenRef(e){this.curConnectionSystem.webIntModalOpenRef=e}getGraphConfiguration(){return this.curConnectionSystem.getGraphConfiguration()}}return n.\u0275fac=function(e){return new(e||n)(M(ot),M(Ri),M(Wo),M(tn),M(F1),M(Ib),M(hl))},n.\u0275prov=ge({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();class xq{constructor(){this.primary=[],this.secondary=[]}}class kb{}let Rb=(()=>{class n{constructor(e){this.waitList=e,this.isInit=!1}set initComplete(e){this.isInit=e,e&&this.informWaitList()}get initComplete(){return this.isInit}waitForInit(){return new b(e=>{e.next(this.isInit),this.isInit?(e.complete(),this.informWaitList()):this.waitList.addToWaitList("init",e)})}informWaitList(){const e=this.waitList.accessWaitList("init");for(const i of e)i.next(this.initComplete),this.initComplete&&i.complete();this.waitList.clearWaitList("init")}}return n.\u0275fac=function(e){return new(e||n)(M(Ri))},n.\u0275prov=ge({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();class Iq{constructor(){this.items=[{name:"createAddressCompany",lc:"LC73000"},{name:"createAddressToCompany",lc:"LC73001"},{name:"createAddressPerson",lc:"LC73003"}]}addNewItem(t,e){this.items.push({name:t,lc:e})}}const j1=[new class Mq{constructor(){this.model={name:"deleteAttachments",value:"",classAssignment:{"":"bmAttachInclude",1:"bmAttachExclude"},titleLC:{"":"LC73172",1:"LC73173"}}}},new class kq{constructor(){this.model={name:"openMail",value:"",classAssignment:{"":"bmDocOFF",1:"bmDocON"},titleLC:{"":"LC73169",1:"LC73168"}}}},new class Rq{constructor(){this.model={name:"createAddress",value:"",classAssignment:{"":"bmPlus",1:"bmMinus"},titleLC:{"":"LC73197",1:"LC73197"}}}}];let H1=(()=>{class n{constructor(e){this.globals=e,this.configData=j1,this.subscribers=[],this.createInstance=new Iq,this.open=!1}connect(){return new b(e=>{this.subscribers.push(e),e.next(this.globals.isCreateBlockOpen)})}updateObservers(){const e=this.globals.isCreateBlockOpen;for(const i of this.subscribers)i.next(e)}toggleOpen(){this.open=!this.open,this.configData[2].model.value=this.isOpen?"1":"",this.globals.createAddressToggle(),this.updateObservers()}get items(){return this.createInstance.items}get isOpen(){return this.open}set config(e){this.configData=e}}return n.\u0275fac=function(e){return new(e||n)(M(ot))},n.\u0275prov=ge({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),Ps=(()=>{class n{constructor(e,i,r,o,s){this.connectionService=e,this.waitListService=i,this.globals=r,this.initService=o,this.createService=s,this.fetchInProgress=!1,this.addressObjectExtended=!1,this.indexToShow=0,this.addressResponseObject={},this.addresses=[]}get toHideList(){return this.addressResponseObject.hide}get currentPointer(){return this.addresses[this.addressIndex].pointer}get currentAddressData(){return this.addresses[this.addressIndex]}get hasAddress(){return this.addresses.length>0}get addressIndex(){return this.indexToShow}set addressIndex(e){this.indexToShow=e,this.notifyIndexSubscriber()}waitForAddresses(){return new b(e=>{this.addresses.length>0?(e.next(this.addresses),e.complete()):this.waitListService.addToWaitList("address",e)})}processAddresses(){return new b(e=>{this.addresses.length<1?this.fetchInProgress?this.waitListService.addToWaitList("address",e):(this.fetchInProgress=!0,this.processData().subscribe({next:i=>{i.forEach(r=>{let o=r;o=this.modifyAdditionalData(o),this.addresses.push(o)}),(i.length<1&&!this.createService.isOpen||i.length>=1&&this.createService.isOpen)&&this.createService.toggleOpen(),e.next(this.addresses),e.complete()},error:()=>{this.processWaitingList(),this.fetchInProgress=!1},complete:()=>{this.processWaitingList(),this.fetchInProgress=!1}})):(e.next(this.addresses),e.complete())})}newProcessAddress(){return new b(e=>{let i=Office.context.mailbox.item,r=new xq;if(i){let s="appointment"===i.itemType;void 0===i.getItemIdAsync||void 0===typeof i.getItemIdAsync?(s?(i?.organizer.emailAddress&&(r.fromEmail=i.organizer.emailAddress,r.fromName=i.organizer.displayName),i?.requiredAttendees.forEach(l=>{this.addIfNotExist(r.primary,l)}),i?.optionalAttendees.forEach(l=>{this.addIfNotExist(r.secondary,l)})):(i?.from.emailAddress&&(r.fromEmail=i.from.emailAddress,r.fromName=i.from.displayName),i?.to.forEach(l=>{this.addIfNotExist(r.primary,l)}),i?.cc.forEach(l=>{this.addIfNotExist(r.secondary,l)})),e.next(r)):s?i.requiredAttendees.getAsync(l=>{l.status===Office.AsyncResultStatus.Failed||i?.optionalAttendees.getAsync(c=>{c.status===Office.AsyncResultStatus.Failed||i?.organizer.getAsync(u=>{u.status===Office.AsyncResultStatus.Failed||(r.fromEmail=u.value.emailAddress,r.fromName=u.value.displayName,l.value.forEach(d=>{this.addIfNotExist(r.primary,d)}),c.value.forEach(d=>{this.addIfNotExist(r.secondary,d)}),e.next(r))})})}):i.to.getAsync(l=>{l.status===Office.AsyncResultStatus.Failed||i?.cc.getAsync(c=>{c.status===Office.AsyncResultStatus.Failed||i?.from.getAsync(u=>{u.status===Office.AsyncResultStatus.Failed||(l.value.forEach(d=>{this.addIfNotExist(r.primary,d)}),c.value.forEach(d=>{this.addIfNotExist(r.secondary,d)}),r.fromEmail=u.value.emailAddress,r.fromName=u.value.displayName,e.next(r))})})})}})}addIfNotExist(e,i){if(!e.some(r=>r.email===i.emailAddress)){let r=new kb;r.email=i.emailAddress,r.display=i.displayName,e.push(r)}}receiverAtendeeChanged(){this.fetchInProgress=!1}addToIndexListenerList(){return new b(e=>{this.waitListService.addToWaitList("index",e)})}resetAddr(){this.addresses=[]}addressChange(){for(const e of this.waitListService.accessWaitList("addressChange"))e.next(!0)}waitForAddressChange(){return new b(e=>{this.waitListService.addToWaitList("addressChange",e)})}modifyAdditionalData(e){const i=this.addressResponseObject.ignoreInAddress;return i&&i.forEach(r=>{e.additional&&delete e.additional[r]}),e}notifyIndexSubscriber(){this.waitListService.accessWaitList("index").forEach(e=>{e.next(this.addressIndex)})}processWaitingList(){this.waitListService.accessWaitList("address").forEach(e=>{this.addresses.length>0?(e.next(this.addresses),e.complete()):e.error("No address found.")}),this.waitListService.clearWaitList("address")}processData(){return new b(e=>{this.connectionService.processPath().subscribe(()=>{this.globals.curMailUnid&&""!==this.globals.curMailUnid?this.addressHandler(e):this.waitListService.addToWaitListFunc("mailAddr",e,this.addressHandler.bind(this))})})}addressHandler(e){let i=new $t;i=i.set("mail",this.globals.curMailAddr),this.connectionService.processAddress(i).subscribe(r=>{this.addressResponseObject=r,e.next(r.data),e.complete(),this.notifyIndexSubscriber(),this.initService.initComplete=!0})}getUrlOrigin(e){return new URL(e).origin}}return n.\u0275fac=function(e){return new(e||n)(M(In),M(Ri),M(ot),M(Rb),M(H1))},n.\u0275prov=ge({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();function Ob(n){return n&&"function"==typeof n.connect&&!(n instanceof Sh)}class V1{applyChanges(t,e,i,r,o){t.forEachOperation((s,a,l)=>{let c,u;if(null==s.previousIndex){const d=i(s,a,l);c=e.createEmbeddedView(d.templateRef,d.context,d.index),u=1}else null==l?(e.remove(a),u=3):(c=e.get(a),e.move(c,l),u=2);o&&o({context:c?.context,operation:u,record:s})})}detach(){}}class nl{constructor(t=!1,e,i=!0,r){this._multiple=t,this._emitChanges=i,this.compareWith=r,this._selection=new Set,this._deselectedToEmit=[],this._selectedToEmit=[],this.changed=new N,e&&e.length&&(t?e.forEach(o=>this._markSelected(o)):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(i=>this._markSelected(i));const e=this._hasQueuedChanges();return this._emitChangeEvent(),e}deselect(...t){this._verifyValueAssignment(t),t.forEach(i=>this._unmarkSelected(i));const e=this._hasQueuedChanges();return this._emitChangeEvent(),e}setSelection(...t){this._verifyValueAssignment(t);const e=this.selected,i=new Set(t);t.forEach(o=>this._markSelected(o)),e.filter(o=>!i.has(o)).forEach(o=>this._unmarkSelected(o));const r=this._hasQueuedChanges();return this._emitChangeEvent(),r}toggle(t){return this.isSelected(t)?this.deselect(t):this.select(t)}clear(t=!0){this._unmarkAll();const e=this._hasQueuedChanges();return t&&this._emitChangeEvent(),e}isSelected(t){if(this.compareWith){for(const e of this._selection)if(this.compareWith(e,t))return!0;return!1}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.isSelected(t)||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){}_hasQueuedChanges(){return!(!this._deselectedToEmit.length&&!this._selectedToEmit.length)}}let q1=(()=>{class n{constructor(){this._listeners=[]}notify(e,i){for(let r of this._listeners)r(e,i)}listen(e){return this._listeners.push(e),()=>{this._listeners=this._listeners.filter(i=>e!==i)}}ngOnDestroy(){this._listeners=[]}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=ge({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const Cd=new me("_ViewRepeater");let Bf=(()=>{class n{constructor(){this._vertical=!1,this._inset=!1}get vertical(){return this._vertical}set vertical(e){this._vertical=lt(e)}get inset(){return this._inset}set inset(e){this._inset=lt(e)}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=Ue({type:n,selectors:[["mat-divider"]],hostAttrs:["role","separator",1,"mat-divider"],hostVars:7,hostBindings:function(e,i){2&e&&(rt("aria-orientation",i.vertical?"vertical":"horizontal"),bt("mat-divider-vertical",i.vertical)("mat-divider-horizontal",!i.vertical)("mat-divider-inset",i.inset))},inputs:{vertical:"vertical",inset:"inset"},decls:0,vars:0,template:function(e,i){},styles:[".mat-divider{display:block;margin:0;border-top-width:1px;border-top-style:solid}.mat-divider.mat-divider-vertical{border-top:0;border-right-width:1px;border-right-style:solid}.mat-divider.mat-divider-inset{margin-left:80px}[dir=rtl] .mat-divider.mat-divider-inset{margin-left:auto;margin-right:80px}"],encapsulation:2,changeDetection:0}),n})(),Oq=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=ht({type:n}),n.\u0275inj=dt({imports:[Lt,Lt]}),n})();const Pq=["*"],Nq=["text"];function Fq(n,t){if(1&n&&be(0,"mat-pseudo-checkbox",5),2&n){const e=C();v("state",e.selected?"checked":"unchecked")("disabled",e.disabled)}}const Bq=["*",[["","mat-list-avatar",""],["","mat-list-icon",""],["","matListAvatar",""],["","matListIcon",""]]],jq=["*","[mat-list-avatar], [mat-list-icon], [matListAvatar], [matListIcon]"];let Hq=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=fe({type:n,selectors:[["","mat-list-avatar",""],["","matListAvatar",""]],hostAttrs:[1,"mat-list-avatar"]}),n})(),Vq=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=fe({type:n,selectors:[["","mat-list-icon",""],["","matListIcon",""]],hostAttrs:[1,"mat-list-icon"]}),n})();const Uq=Go(class{}),qq=Go(class{}),zq={provide:or,useExisting:Xt(()=>$o),multi:!0};class Gq{constructor(t,e){this.source=t,this.options=e}}let Ls=(()=>{class n extends qq{constructor(e,i,r){super(),this._element=e,this._changeDetector=i,this.selectionList=r,this._selected=!1,this._disabled=!1,this._hasFocus=!1,this.selectedChange=new He,this.checkboxPosition="after",this._inputsInitialized=!1}get color(){return this._color||this.selectionList.color}set color(e){this._color=e}get value(){return this._value}set value(e){this.selected&&!this.selectionList.compareWith(e,this.value)&&this._inputsInitialized&&(this.selected=!1),this._value=e}get disabled(){return this._disabled||this.selectionList&&this.selectionList.disabled}set disabled(e){const i=lt(e);i!==this._disabled&&(this._disabled=i,this._changeDetector.markForCheck())}get selected(){return this.selectionList.selectedOptions.isSelected(this)}set selected(e){const i=lt(e);i!==this._selected&&(this._setSelected(i),(i||this.selectionList.multiple)&&this.selectionList._reportValueChange())}ngOnInit(){const e=this.selectionList;e._value&&e._value.some(r=>e.compareWith(this._value,r))&&this._setSelected(!0);const i=this._selected;Promise.resolve().then(()=>{(this._selected||i)&&(this.selected=!0,this._changeDetector.markForCheck())}),this._inputsInitialized=!0}ngAfterContentInit(){!function M6(n,t,e="mat"){n.changes.pipe(ni(n)).subscribe(({length:i})=>{_d(t,`${e}-2-line`,!1),_d(t,`${e}-3-line`,!1),_d(t,`${e}-multi-line`,!1),2===i||3===i?_d(t,`${e}-${i}-line`,!0):i>3&&_d(t,`${e}-multi-line`,!0)})}(this._lines,this._element)}ngOnDestroy(){this.selected&&Promise.resolve().then(()=>{this.selected=!1});const e=this._hasFocus,i=this.selectionList._removeOptionFromList(this);e&&i&&i.focus()}toggle(){this.selected=!this.selected}focus(){this._element.nativeElement.focus()}getLabel(){return this._text&&this._text.nativeElement.textContent||""}_isRippleDisabled(){return this.disabled||this.disableRipple||this.selectionList.disableRipple}_handleClick(){!this.disabled&&(this.selectionList.multiple||!this.selected)&&(this.toggle(),this.selectionList._emitChangeEvent([this]))}_handleFocus(){this.selectionList._setFocusedOption(this),this._hasFocus=!0}_handleBlur(){this.selectionList._onTouched(),this._hasFocus=!1}_getHostElement(){return this._element.nativeElement}_setSelected(e){return e!==this._selected&&(this._selected=e,e?this.selectionList.selectedOptions.select(this):this.selectionList.selectedOptions.deselect(this),this.selectedChange.emit(e),this._changeDetector.markForCheck(),!0)}_markForCheck(){this._changeDetector.markForCheck()}}return n.\u0275fac=function(e){return new(e||n)(p(Je),p(St),p(Xt(()=>$o)))},n.\u0275cmp=Ue({type:n,selectors:[["mat-list-option"]],contentQueries:function(e,i,r){if(1&e&&(jt(r,Hq,5),jt(r,Vq,5),jt(r,I6,5)),2&e){let o;ce(o=ue())&&(i._avatar=o.first),ce(o=ue())&&(i._icon=o.first),ce(o=ue())&&(i._lines=o)}},viewQuery:function(e,i){if(1&e&&De(Nq,5),2&e){let r;ce(r=ue())&&(i._text=r.first)}},hostAttrs:["role","option",1,"mat-list-item","mat-list-option","mat-focus-indicator"],hostVars:15,hostBindings:function(e,i){1&e&&W("focus",function(){return i._handleFocus()})("blur",function(){return i._handleBlur()})("click",function(){return i._handleClick()}),2&e&&(rt("aria-selected",i.selected)("aria-disabled",i.disabled)("tabindex",-1),bt("mat-list-item-disabled",i.disabled)("mat-list-item-with-avatar",i._avatar||i._icon)("mat-primary","primary"===i.color)("mat-accent","primary"!==i.color&&"warn"!==i.color)("mat-warn","warn"===i.color)("mat-list-single-selected-option",i.selected&&!i.selectionList.multiple))},inputs:{disableRipple:"disableRipple",checkboxPosition:"checkboxPosition",color:"color",value:"value",disabled:"disabled",selected:"selected"},outputs:{selectedChange:"selectedChange"},exportAs:["matListOption"],features:[Se],ngContentSelectors:jq,decls:7,vars:5,consts:[[1,"mat-list-item-content"],["mat-ripple","",1,"mat-list-item-ripple",3,"matRippleTrigger","matRippleDisabled"],[3,"state","disabled",4,"ngIf"],[1,"mat-list-text"],["text",""],[3,"state","disabled"]],template:function(e,i){1&e&&(Pn(Bq),g(0,"div",0),be(1,"div",1),H(2,Fq,1,2,"mat-pseudo-checkbox",2),g(3,"div",3,4),Bt(5),_(),Bt(6,1),_()),2&e&&(bt("mat-list-item-content-reverse","after"==i.checkboxPosition),f(1),v("matRippleTrigger",i._getHostElement())("matRippleDisabled",i._isRippleDisabled()),f(1),v("ngIf",i.selectionList.multiple))},dependencies:[xr,y1,pn],encapsulation:2,changeDetection:0}),n})(),$o=(()=>{class n extends Uq{constructor(e,i,r){super(),this._element=e,this._changeDetector=i,this._focusMonitor=r,this._multiple=!0,this._contentInitialized=!1,this.selectionChange=new He,this.color="accent",this.compareWith=(o,s)=>o===s,this._disabled=!1,this.selectedOptions=new nl(this._multiple),this._tabIndex=-1,this._onChange=o=>{},this._destroyed=new N,this._onTouched=()=>{}}get disabled(){return this._disabled}set disabled(e){this._disabled=lt(e),this._markOptionsForCheck()}get multiple(){return this._multiple}set multiple(e){const i=lt(e);i!==this._multiple&&(this._multiple=i,this.selectedOptions=new nl(this._multiple,this.selectedOptions.selected))}ngAfterContentInit(){this._contentInitialized=!0,this._keyManager=new Sf(this.options).withWrap().withTypeAhead().withHomeAndEnd().skipPredicate(()=>!1).withAllowedModifierKeys(["shiftKey"]),this._value&&this._setOptionsFromValues(this._value),this._keyManager.tabOut.pipe(Jt(this._destroyed)).subscribe(()=>{this._allowFocusEscape()}),this.options.changes.pipe(ni(null),Jt(this._destroyed)).subscribe(()=>{this._updateTabIndex()}),this.selectedOptions.changed.pipe(Jt(this._destroyed)).subscribe(e=>{if(e.added)for(let i of e.added)i.selected=!0;if(e.removed)for(let i of e.removed)i.selected=!1}),this._focusMonitor.monitor(this._element).pipe(Jt(this._destroyed)).subscribe(e=>{if("keyboard"===e||"program"===e){let i=0;for(let r=0;r-1&&this._keyManager.activeItemIndex===i&&(i>0?this._keyManager.updateActiveItem(i-1):0===i&&this.options.length>1&&this._keyManager.updateActiveItem(Math.min(i+1,this.options.length-1))),this._keyManager.activeItem}_keydown(e){const i=e.keyCode,r=this._keyManager,o=r.activeItemIndex,s=yi(e);switch(i){case 32:case 13:!s&&!r.isTyping()&&(this._toggleFocusedOption(),e.preventDefault());break;default:if(65===i&&this.multiple&&yi(e,"ctrlKey")&&!r.isTyping()){const a=this.options.some(l=>!l.disabled&&!l.selected);this._setAllOptionsSelected(a,!0,!0),e.preventDefault()}else r.onKeydown(e)}this.multiple&&(38===i||40===i)&&e.shiftKey&&r.activeItemIndex!==o&&this._toggleFocusedOption()}_reportValueChange(){if(this.options&&!this._isDestroyed){const e=this._getSelectedOptionValues();this._onChange(e),this._value=e}}_emitChangeEvent(e){this.selectionChange.emit(new Gq(this,e))}writeValue(e){this._value=e,this.options&&this._setOptionsFromValues(e||[])}setDisabledState(e){this.disabled=e}registerOnChange(e){this._onChange=e}registerOnTouched(e){this._onTouched=e}_setOptionsFromValues(e){this.options.forEach(i=>i._setSelected(!1)),e.forEach(i=>{const r=this.options.find(o=>!o.selected&&this.compareWith(o.value,i));r&&r._setSelected(!0)})}_getSelectedOptionValues(){return this.options.filter(e=>e.selected).map(e=>e.value)}_toggleFocusedOption(){let e=this._keyManager.activeItemIndex;if(null!=e&&this._isValidIndex(e)){let i=this.options.toArray()[e];i&&!i.disabled&&(this._multiple||!i.selected)&&(i.toggle(),this._emitChangeEvent([i]))}}_setAllOptionsSelected(e,i,r){const o=[];return this.options.forEach(s=>{(!i||!s.disabled)&&s._setSelected(e)&&o.push(s)}),o.length&&(this._reportValueChange(),r&&this._emitChangeEvent(o)),o}_isValidIndex(e){return e>=0&&ee._markForCheck())}_allowFocusEscape(){this._tabIndex=-1,setTimeout(()=>{this._tabIndex=0,this._changeDetector.markForCheck()})}_updateTabIndex(){this._tabIndex=0===this.options.length?-1:0}}return n.\u0275fac=function(e){return new(e||n)(p(Je),p(St),p(Do))},n.\u0275cmp=Ue({type:n,selectors:[["mat-selection-list"]],contentQueries:function(e,i,r){if(1&e&&jt(r,Ls,5),2&e){let o;ce(o=ue())&&(i.options=o)}},hostAttrs:["role","listbox",1,"mat-selection-list","mat-list-base"],hostVars:3,hostBindings:function(e,i){1&e&&W("keydown",function(o){return i._keydown(o)}),2&e&&rt("aria-multiselectable",i.multiple)("aria-disabled",i.disabled.toString())("tabindex",i._tabIndex)},inputs:{disableRipple:"disableRipple",color:"color",compareWith:"compareWith",disabled:"disabled",multiple:"multiple"},outputs:{selectionChange:"selectionChange"},exportAs:["matSelectionList"],features:[it([zq]),Se,Rn],ngContentSelectors:Pq,decls:1,vars:0,template:function(e,i){1&e&&(Pn(),Bt(0))},styles:['.mat-subheader{display:flex;box-sizing:border-box;padding:16px;align-items:center}.mat-list-base .mat-subheader{margin:0}button.mat-list-item,button.mat-list-option{padding:0;width:100%;background:none;color:inherit;border:none;outline:inherit;-webkit-tap-highlight-color:rgba(0,0,0,0);text-align:left}[dir=rtl] button.mat-list-item,[dir=rtl] button.mat-list-option{text-align:right}button.mat-list-item::-moz-focus-inner,button.mat-list-option::-moz-focus-inner{border:0}.mat-list-base{padding-top:8px;display:block;-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-list-base .mat-subheader{height:48px;line-height:16px}.mat-list-base .mat-subheader:first-child{margin-top:-8px}.mat-list-base .mat-list-item,.mat-list-base .mat-list-option{display:block;height:48px;-webkit-tap-highlight-color:rgba(0,0,0,0);width:100%;padding:0}.mat-list-base .mat-list-item .mat-list-item-content,.mat-list-base .mat-list-option .mat-list-item-content{display:flex;flex-direction:row;align-items:center;box-sizing:border-box;padding:0 16px;position:relative;height:inherit}.mat-list-base .mat-list-item .mat-list-item-content-reverse,.mat-list-base .mat-list-option .mat-list-item-content-reverse{display:flex;align-items:center;padding:0 16px;flex-direction:row-reverse;justify-content:space-around}.mat-list-base .mat-list-item .mat-list-item-ripple,.mat-list-base .mat-list-option .mat-list-item-ripple{display:block;top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-list-base .mat-list-item.mat-list-item-with-avatar,.mat-list-base .mat-list-option.mat-list-item-with-avatar{height:56px}.mat-list-base .mat-list-item.mat-2-line,.mat-list-base .mat-list-option.mat-2-line{height:72px}.mat-list-base .mat-list-item.mat-3-line,.mat-list-base .mat-list-option.mat-3-line{height:88px}.mat-list-base .mat-list-item.mat-multi-line,.mat-list-base .mat-list-option.mat-multi-line{height:auto}.mat-list-base .mat-list-item.mat-multi-line .mat-list-item-content,.mat-list-base .mat-list-option.mat-multi-line .mat-list-item-content{padding-top:16px;padding-bottom:16px}.mat-list-base .mat-list-item .mat-list-text,.mat-list-base .mat-list-option .mat-list-text{display:flex;flex-direction:column;flex:auto;box-sizing:border-box;overflow:hidden;padding:0}.mat-list-base .mat-list-item .mat-list-text>*,.mat-list-base .mat-list-option .mat-list-text>*{margin:0;padding:0;font-weight:normal;font-size:inherit}.mat-list-base .mat-list-item .mat-list-text:empty,.mat-list-base .mat-list-option .mat-list-text:empty{display:none}.mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:0;padding-left:16px}[dir=rtl] .mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:0}.mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-left:0;padding-right:16px}[dir=rtl] .mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-right:0;padding-left:16px}.mat-list-base .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:16px}.mat-list-base .mat-list-item .mat-list-avatar,.mat-list-base .mat-list-option .mat-list-avatar{flex-shrink:0;width:40px;height:40px;border-radius:50%;object-fit:cover}.mat-list-base .mat-list-item .mat-list-avatar~.mat-divider-inset,.mat-list-base .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:72px;width:calc(100% - 72px)}[dir=rtl] .mat-list-base .mat-list-item .mat-list-avatar~.mat-divider-inset,[dir=rtl] .mat-list-base .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:auto;margin-right:72px}.mat-list-base .mat-list-item .mat-list-icon,.mat-list-base .mat-list-option .mat-list-icon{flex-shrink:0;width:24px;height:24px;font-size:24px;box-sizing:content-box;border-radius:50%;padding:4px}.mat-list-base .mat-list-item .mat-list-icon~.mat-divider-inset,.mat-list-base .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:64px;width:calc(100% - 64px)}[dir=rtl] .mat-list-base .mat-list-item .mat-list-icon~.mat-divider-inset,[dir=rtl] .mat-list-base .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:auto;margin-right:64px}.mat-list-base .mat-list-item .mat-divider,.mat-list-base .mat-list-option .mat-divider{position:absolute;bottom:0;left:0;width:100%;margin:0}[dir=rtl] .mat-list-base .mat-list-item .mat-divider,[dir=rtl] .mat-list-base .mat-list-option .mat-divider{margin-left:auto;margin-right:0}.mat-list-base .mat-list-item .mat-divider.mat-divider-inset,.mat-list-base .mat-list-option .mat-divider.mat-divider-inset{position:absolute}.mat-list-base[dense]{padding-top:4px;display:block}.mat-list-base[dense] .mat-subheader{height:40px;line-height:8px}.mat-list-base[dense] .mat-subheader:first-child{margin-top:-4px}.mat-list-base[dense] .mat-list-item,.mat-list-base[dense] .mat-list-option{display:block;height:40px;-webkit-tap-highlight-color:rgba(0,0,0,0);width:100%;padding:0}.mat-list-base[dense] .mat-list-item .mat-list-item-content,.mat-list-base[dense] .mat-list-option .mat-list-item-content{display:flex;flex-direction:row;align-items:center;box-sizing:border-box;padding:0 16px;position:relative;height:inherit}.mat-list-base[dense] .mat-list-item .mat-list-item-content-reverse,.mat-list-base[dense] .mat-list-option .mat-list-item-content-reverse{display:flex;align-items:center;padding:0 16px;flex-direction:row-reverse;justify-content:space-around}.mat-list-base[dense] .mat-list-item .mat-list-item-ripple,.mat-list-base[dense] .mat-list-option .mat-list-item-ripple{display:block;top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar{height:48px}.mat-list-base[dense] .mat-list-item.mat-2-line,.mat-list-base[dense] .mat-list-option.mat-2-line{height:60px}.mat-list-base[dense] .mat-list-item.mat-3-line,.mat-list-base[dense] .mat-list-option.mat-3-line{height:76px}.mat-list-base[dense] .mat-list-item.mat-multi-line,.mat-list-base[dense] .mat-list-option.mat-multi-line{height:auto}.mat-list-base[dense] .mat-list-item.mat-multi-line .mat-list-item-content,.mat-list-base[dense] .mat-list-option.mat-multi-line .mat-list-item-content{padding-top:16px;padding-bottom:16px}.mat-list-base[dense] .mat-list-item .mat-list-text,.mat-list-base[dense] .mat-list-option .mat-list-text{display:flex;flex-direction:column;flex:auto;box-sizing:border-box;overflow:hidden;padding:0}.mat-list-base[dense] .mat-list-item .mat-list-text>*,.mat-list-base[dense] .mat-list-option .mat-list-text>*{margin:0;padding:0;font-weight:normal;font-size:inherit}.mat-list-base[dense] .mat-list-item .mat-list-text:empty,.mat-list-base[dense] .mat-list-option .mat-list-text:empty{display:none}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:0;padding-left:16px}[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:0}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-left:0;padding-right:16px}[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-right:0;padding-left:16px}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:16px}.mat-list-base[dense] .mat-list-item .mat-list-avatar,.mat-list-base[dense] .mat-list-option .mat-list-avatar{flex-shrink:0;width:36px;height:36px;border-radius:50%;object-fit:cover}.mat-list-base[dense] .mat-list-item .mat-list-avatar~.mat-divider-inset,.mat-list-base[dense] .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:68px;width:calc(100% - 68px)}[dir=rtl] .mat-list-base[dense] .mat-list-item .mat-list-avatar~.mat-divider-inset,[dir=rtl] .mat-list-base[dense] .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:auto;margin-right:68px}.mat-list-base[dense] .mat-list-item .mat-list-icon,.mat-list-base[dense] .mat-list-option .mat-list-icon{flex-shrink:0;width:20px;height:20px;font-size:20px;box-sizing:content-box;border-radius:50%;padding:4px}.mat-list-base[dense] .mat-list-item .mat-list-icon~.mat-divider-inset,.mat-list-base[dense] .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:60px;width:calc(100% - 60px)}[dir=rtl] .mat-list-base[dense] .mat-list-item .mat-list-icon~.mat-divider-inset,[dir=rtl] .mat-list-base[dense] .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:auto;margin-right:60px}.mat-list-base[dense] .mat-list-item .mat-divider,.mat-list-base[dense] .mat-list-option .mat-divider{position:absolute;bottom:0;left:0;width:100%;margin:0}[dir=rtl] .mat-list-base[dense] .mat-list-item .mat-divider,[dir=rtl] .mat-list-base[dense] .mat-list-option .mat-divider{margin-left:auto;margin-right:0}.mat-list-base[dense] .mat-list-item .mat-divider.mat-divider-inset,.mat-list-base[dense] .mat-list-option .mat-divider.mat-divider-inset{position:absolute}.mat-nav-list a{text-decoration:none;color:inherit}.mat-nav-list .mat-list-item{cursor:pointer;outline:none}mat-action-list .mat-list-item{cursor:pointer;outline:inherit}.mat-list-option:not(.mat-list-item-disabled){cursor:pointer;outline:none}.mat-list-item-disabled{pointer-events:none}.cdk-high-contrast-active .mat-list-item-disabled{opacity:.5}.cdk-high-contrast-active :host .mat-list-item-disabled{opacity:.5}.cdk-high-contrast-active .mat-list-option:hover,.cdk-high-contrast-active .mat-nav-list .mat-list-item:hover,.cdk-high-contrast-active mat-action-list .mat-list-item:hover{outline:dotted 1px;z-index:1}.cdk-high-contrast-active .mat-list-single-selected-option::after{content:"";position:absolute;top:50%;right:16px;transform:translateY(-50%);width:10px;height:0;border-bottom:solid 10px;border-radius:10px}.cdk-high-contrast-active [dir=rtl] .mat-list-single-selected-option::after{right:auto;left:16px}@media(hover: none){.mat-list-option:not(.mat-list-single-selected-option):not(.mat-list-item-disabled):hover,.mat-nav-list .mat-list-item:not(.mat-list-item-disabled):hover,.mat-action-list .mat-list-item:not(.mat-list-item-disabled):hover{background:none}}'],encapsulation:2,changeDetection:0}),n})(),Wq=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=ht({type:n}),n.\u0275inj=dt({imports:[p1,ha,Lt,wb,$r,p1,Lt,wb,Oq]}),n})();const $q=["chOffice"],Kq=["dbs"];function Yq(n,t){1&n&&(g(0,"p"),j(1),Ze(2,"translate"),_()),2&n&&(f(1),ve(Xe(2,1,"LC53515")))}function Qq(n,t){if(1&n){const e=Ie();g(0,"mat-list-option",7),W("dblclick",function(){return J(e),Z(C(2).confirmAction())}),j(1),_()}if(2&n){const e=t.$implicit,i=C(2);_t("value",e.db),v("selected",1===i.officeDBs.length?e.db:null),f(1),qe(" ",e.alias," ")}}const Jq=function(n){return{title:n}},Zq=function(n,t,e,i){return{confirm:n,cancel:t,confirmAction:e,cancelAction:i}};function Xq(n,t){if(1&n&&(Wt(0,1),Ze(1,"translate"),g(2,"div",2)(3,"mat-selection-list",3,4),H(5,Yq,3,3,"p",5),H(6,Qq,2,3,"mat-list-option",6),_()(),Wt(7,1),Ze(8,"translate"),Ze(9,"translate")),2&n){const e=C();v("ngTemplateOutlet",e.modalHeader)("ngTemplateOutletContext",Wn(13,Jq,Xe(1,7,"LC53516"))),f(3),v("multiple",!1),f(2),v("ngIf",e.officeDBs.length<1),f(1),v("ngForOf",e.officeDBs),f(1),v("ngTemplateOutlet",e.modalFooter)("ngTemplateOutletContext",Yi(15,Zq,Xe(8,9,"LC73135"),Xe(9,11,"LC73136"),e.confirmAction.bind(e,e.selection),e.cancelAction.bind(e)))}}let e9=(()=>{class n extends Yr{constructor(e,i,r,o,s,a){super(e),this.translate=e,this.connection=i,this.addressService=r,this.messageService=o,this.globalsService=s,this.globals=a,this.indexParamStart="index.xsp?",this.urlExtension=this.indexParamStart+"loadTabs=false",this.officeDBs=[]}ngOnInit(){super.ngOnInit(),this.fetchContactsDBs()}confirmAction(e,i){try{let r=null;if(r=null!=i?i:this.selection.selectedOptions.selected[0].value,this.globals.currentContactsDB=r,this.data.passedData.ignoreNext){if(this.data.passedData.paramsData){const o=this.data.passedData.paramsData;o.paramsToAdd&&"crmDB"===o.paramsToAdd[0]&&(o.params=o.params.set("crmDB",r)),this.openWebIntWithParams(o.params)}}else this.data.passedData.officeDB=r,this.openAnotherModal(this.next,this.data.passedData)}catch{this.translate.get("LC53493").subscribe(o=>{this.messageService.showError(o)})}}fetchContactsDBs(){this.connection.getReqModal("dbConnections",null).subscribe(e=>{this.showOfficeList(e)})}showOfficeList(e){var i=this;return Ae(function*(){try{let r="";r=i.data.passedData.currentContactPointer?i.data.passedData.currentContactPointer:i.addressService.currentPointer,i.clearOfficeDBs(),i.extractOfficeDBsOfContact(r,e),1===i.officeDBs.length&&i.confirmAction(i.selection,i.officeDBs[0].db)}catch{i.translate.get("LC39396").subscribe(o=>{i.messageService.showError(o)})}})()}extractOfficeDBsOfContact(e,i){this.data.passedData.currentContactPointer&&(e=this.data.passedData.currentContactPointer);const o=i[this.extractDBFromPointer(e)].officeDBs;for(const s of o)this.officeDBs.push({db:s,alias:i.GeOfficeAliases[s]});this.officeDBs.length<1&&this.translate.get("LC39396").subscribe(s=>{this.messageService.showError(s),this.cancelAction()})}clearOfficeDBs(){this.officeDBs.length=0}openWebIntWithParams(e){e=e.set("loadTabs","false"),window.open(this.globalsService.webInt+this.indexParamStart+e.toString(),"_blank")}}return n.\u0275fac=function(e){return new(e||n)(p(Ut),p(In),p(Ps),p(tn),p(ot),p(ot))},n.\u0275cmp=Ue({type:n,selectors:[["app-choose-office"]],viewQuery:function(e,i){if(1&e&&(De($q,7),De(Kq,5)),2&e){let r;ce(r=ue())&&(i.modalTemp=r.first),ce(r=ue())&&(i.selection=r.first)}},features:[Se],decls:2,vars:0,consts:[["chOffice",""],[3,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"modalBody"],[3,"multiple"],["dbs",""],[4,"ngIf"],["checkboxPosition","after",3,"value","selected","dblclick",4,"ngFor","ngForOf"],["checkboxPosition","after",3,"value","selected","dblclick"]],template:function(e,i){1&e&&H(0,Xq,10,20,"ng-template",null,0,Sn)},dependencies:[zn,pn,Ji,$o,Ls,ki]}),n})(),wd=(()=>{class n{constructor(e){this.sanitizer=e}sanitizeInput(e,i){return this.sanitizer.sanitize(i,e)}}return n.\u0275fac=function(e){return new(e||n)(M(nd))},n.\u0275prov=ge({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),Pb=(()=>{class n extends Yr{constructor(e,i,r,o,s,a){super(e),this.translate=e,this.globals=i,this.connection=r,this.messageService=o,this.inputService=s,this.addressService=a,this.messageEvent=new He,this.selection=new nl(!1),this.centered=!1,this.disabled=!1,this.unbounded=!1,this.databases=[],this.searchValue="",this.viewIconBaseURL=i.webInt,this.searchClearImage={background:"no-repeat url(assets/images/widget_settings.png)"},this.displayedColumns=["icon","display"],this.prefix="",this.path=""}ngOnInit(){super.ngOnInit(),this.fetchDBs(),this.tableWrapperClassName="Owa"===this.globals.curConnectorType?"tableWrapper":"tableWrapperVerse"}getTemplate(){return this.modalTemp}get rippleColor(){return this.globals.rippleColor}fetchSearch(e,i){let r=this.searchValue;""===r&&(r="*"),this.selection.clear();const o={};o.searchKey=r,i?o.pointer=i:o.database=e,this.data.type&&(o.type=this.data.type),this.data.parentPointer&&(o.parentPointer=this.data.parentPointer),this.connection.getReqNoCache(this.path,this.connection.objectToHttpParams(o)).subscribe({next:s=>{this.handleResult(s)},error:s=>{},complete:()=>{}})}toggleSelection(e){this.selection.toggle(e)}search(e){let i=this.inputService.sanitizeInput(this.searchValue,4);null!==i?(""===i?i="*":this.searchValue=i,this.fetchSearch(this.selectedDB,e)):this.translate.get("LC53513").subscribe(r=>{this.messageService.showError(r)})}acceptEntryDblClick(e){this.selection.clear(),this.selection.select(e),this.confirmAction()}}return n.\u0275fac=function(e){return new(e||n)(p(Ut),p(ot),p(In),p(tn),p(wd),p(Ps))},n.\u0275dir=fe({type:n,inputs:{data:"data"},outputs:{messageEvent:"messageEvent"},features:[Se]}),n})();const t9=["connectionContainer"],n9=["inputContainer"],i9=["label"];function r9(n,t){1&n&&(xi(0),g(1,"div",14),be(2,"div",15)(3,"div",16)(4,"div",17),_(),g(5,"div",18),be(6,"div",15)(7,"div",16)(8,"div",17),_(),Ii())}function o9(n,t){if(1&n){const e=Ie();g(0,"div",19),W("cdkObserveContent",function(){return J(e),Z(C().updateOutlineGap())}),Bt(1,1),_()}2&n&&v("cdkObserveContentDisabled","outline"!=C().appearance)}function s9(n,t){if(1&n&&(xi(0),Bt(1,2),g(2,"span"),j(3),_(),Ii()),2&n){const e=C(2);f(3),ve(e._control.placeholder)}}function a9(n,t){1&n&&Bt(0,3,["*ngSwitchCase","true"])}function l9(n,t){1&n&&(g(0,"span",23),j(1," *"),_())}function c9(n,t){if(1&n){const e=Ie();g(0,"label",20,21),W("cdkObserveContent",function(){return J(e),Z(C().updateOutlineGap())}),H(2,s9,4,1,"ng-container",12),H(3,a9,1,0,"ng-content",12),H(4,l9,2,0,"span",22),_()}if(2&n){const e=C();bt("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),v("cdkObserveContentDisabled","outline"!=e.appearance)("id",e._labelId)("ngSwitch",e._hasLabel()),rt("for",e._control.id)("aria-owns",e._control.id),f(2),v("ngSwitchCase",!1),f(1),v("ngSwitchCase",!0),f(1),v("ngIf",!e.hideRequiredMarker&&e._control.required&&!e._control.disabled)}}function u9(n,t){1&n&&(g(0,"div",24),Bt(1,4),_())}function d9(n,t){if(1&n&&(g(0,"div",25),be(1,"span",26),_()),2&n){const e=C();f(1),bt("mat-accent","accent"==e.color)("mat-warn","warn"==e.color)}}function h9(n,t){1&n&&(g(0,"div"),Bt(1,5),_()),2&n&&v("@transitionMessages",C()._subscriptAnimationState)}function p9(n,t){if(1&n&&(g(0,"div",30),j(1),_()),2&n){const e=C(2);v("id",e._hintLabelId),f(1),ve(e.hintLabel)}}function f9(n,t){if(1&n&&(g(0,"div",27),H(1,p9,2,2,"div",28),Bt(2,6),be(3,"div",29),Bt(4,7),_()),2&n){const e=C();v("@transitionMessages",e._subscriptAnimationState),f(1),v("ngIf",e.hintLabel)}}const m9=["*",[["","matPrefix",""]],[["mat-placeholder"]],[["mat-label"]],[["","matSuffix",""]],[["mat-error"]],[["mat-hint",3,"align","end"]],[["mat-hint","align","end"]]],g9=["*","[matPrefix]","mat-placeholder","mat-label","[matSuffix]","mat-error","mat-hint:not([align='end'])","mat-hint[align='end']"],_9=new me("MatError"),v9={transitionMessages:So("transitionMessages",[li("enter",qt({opacity:1,transform:"translateY(0%)"})),bi("void => enter",[qt({opacity:0,transform:"translateY(-5px)"}),Oi("300ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])};let Ed=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=fe({type:n}),n})();const y9=new me("MatHint");let Pi=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=fe({type:n,selectors:[["mat-label"]]}),n})(),b9=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=fe({type:n,selectors:[["mat-placeholder"]]}),n})();const C9=new me("MatPrefix"),z1=new me("MatSuffix");let Lb=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=fe({type:n,selectors:[["","matSuffix",""]],features:[it([{provide:z1,useExisting:n}])]}),n})(),G1=0;const E9=da(class{constructor(n){this._elementRef=n}},"primary"),D9=new me("MAT_FORM_FIELD_DEFAULT_OPTIONS"),jf=new me("MatFormField");let Ir=(()=>{class n extends E9{constructor(e,i,r,o,s,a,l){super(e),this._changeDetectorRef=i,this._dir=r,this._defaults=o,this._platform=s,this._ngZone=a,this._outlineGapCalculationNeededImmediately=!1,this._outlineGapCalculationNeededOnStable=!1,this._destroyed=new N,this._hideRequiredMarker=!1,this._showAlwaysAnimate=!1,this._subscriptAnimationState="",this._hintLabel="",this._hintLabelId="mat-hint-"+G1++,this._labelId="mat-form-field-label-"+G1++,this.floatLabel=this._getDefaultFloatLabelState(),this._animationsEnabled="NoopAnimations"!==l,this.appearance=o?.appearance||"legacy",o&&(this._hideRequiredMarker=Boolean(o.hideRequiredMarker),o.color&&(this.color=this.defaultColor=o.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=lt(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(ni(null)).subscribe(()=>{this._validatePlaceholders(),this._syncDescribedByIds(),this._changeDetectorRef.markForCheck()}),e.ngControl&&e.ngControl.valueChanges&&e.ngControl.valueChanges.pipe(Jt(this._destroyed)).subscribe(()=>this._changeDetectorRef.markForCheck()),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.pipe(Jt(this._destroyed)).subscribe(()=>{this._outlineGapCalculationNeededOnStable&&this.updateOutlineGap()})}),On(this._prefixChildren.changes,this._suffixChildren.changes).subscribe(()=>{this._outlineGapCalculationNeededOnStable=!0,this._changeDetectorRef.markForCheck()}),this._hintChildren.changes.pipe(ni(null)).subscribe(()=>{this._processHints(),this._changeDetectorRef.markForCheck()}),this._errorChildren.changes.pipe(ni(null)).subscribe(()=>{this._syncDescribedByIds(),this._changeDetectorRef.markForCheck()}),this._dir&&this._dir.change.pipe(Jt(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,Is(this._label.nativeElement,"transitionend").pipe(sn(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(o=>"start"===o.align):null,r=this._hintChildren?this._hintChildren.find(o=>"end"===o.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",o=".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}, ${o}`);for(let d=0;d0?.75*y+10:0}for(let u=0;u{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=ht({type:n}),n.\u0275inj=dt({imports:[$r,Lt,dd,Lt]}),n})();const S9=["trigger"],A9=["panel"];function T9(n,t){if(1&n&&(g(0,"span",8),j(1),_()),2&n){const e=C();f(1),ve(e.placeholder)}}function x9(n,t){if(1&n&&(g(0,"span",12),j(1),_()),2&n){const e=C(2);f(1),ve(e.triggerValue)}}function I9(n,t){1&n&&Bt(0,0,["*ngSwitchCase","true"])}function M9(n,t){1&n&&(g(0,"span",9),H(1,x9,2,1,"span",10),H(2,I9,1,0,"ng-content",11),_()),2&n&&(v("ngSwitch",!!C().customTrigger),f(2),v("ngSwitchCase",!0))}function k9(n,t){if(1&n){const e=Ie();g(0,"div",13)(1,"div",14,15),W("@transformPanel.done",function(r){return J(e),Z(C()._panelDoneAnimatingStream.next(r.toState))})("keydown",function(r){return J(e),Z(C()._handleKeydown(r))}),Bt(3,1),_()()}if(2&n){const e=C();v("@transformPanelWrap",void 0),f(1),function uS(n,t,e){go(Er,jo,Xl(xe(),n,t,e),!0)}("mat-select-panel ",e._getPanelTheme(),""),qr("transform-origin",e._transformOrigin)("font-size",e._triggerFontSize,"px"),v("ngClass",e.panelClass)("@transformPanel",e.multiple?"showing-multiple":"showing"),rt("id",e.id+"-panel")("aria-multiselectable",e.multiple)("aria-label",e.ariaLabel||null)("aria-labelledby",e._getPanelAriaLabelledby())}}const R9=[[["mat-select-trigger"]],"*"],O9=["mat-select-trigger","*"],$1={transformPanelWrap:So("transformPanelWrap",[bi("* => void",Sb("@transformPanel",[Db()],{optional:!0}))]),transformPanel:So("transformPanel",[li("void",qt({transform:"scaleY(0.8)",minWidth:"100%",opacity:0})),li("showing",qt({opacity:1,minWidth:"calc(100% + 32px)",transform:"scaleY(1)"})),li("showing-multiple",qt({opacity:1,minWidth:"calc(100% + 64px)",transform:"scaleY(1)"})),bi("void => *",Oi("120ms cubic-bezier(0, 0, 0.2, 1)")),bi("* => void",Oi("100ms 25ms linear",qt({opacity:0})))])};let K1=0;const Q1=new me("mat-select-scroll-strategy"),F9=new me("MAT_SELECT_CONFIG"),B9={provide:Q1,deps:[lr],useFactory:function N9(n){return()=>n.scrollStrategies.reposition()}};class j9{constructor(t,e){this.source=t,this.value=e}}const H9=Go(md(Rs(bb(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 N}})))),J1=new me("MatSelectTrigger");let V9=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=fe({type:n,selectors:[["mat-select-trigger"]],features:[it([{provide:J1,useExisting:n}])]}),n})(),U9=(()=>{class n extends H9{constructor(e,i,r,o,s,a,l,c,u,d,h,m,y,A){super(s,o,l,c,d),this._viewportRuler=e,this._changeDetectorRef=i,this._ngZone=r,this._dir=a,this._parentFormField=u,this._liveAnnouncer=y,this._defaultOptions=A,this._panelOpen=!1,this._compareWith=(U,te)=>U===te,this._uid="mat-select-"+K1++,this._triggerAriaLabelledBy=null,this._destroy=new N,this._onChange=()=>{},this._onTouched=()=>{},this._valueId="mat-select-value-"+K1++,this._panelDoneAnimatingStream=new N,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=la(()=>{const U=this.options;return U?U.changes.pipe(ni(U),Kn(()=>On(...U.map(te=>te.onSelectionChange)))):this._ngZone.onStable.pipe(sn(1),Kn(()=>this.optionSelectionChanges))}),this.openedChange=new He,this._openedStream=this.openedChange.pipe(Tn(U=>U),he(()=>{})),this._closedStream=this.openedChange.pipe(Tn(U=>!U),he(()=>{})),this.selectionChange=new He,this.valueChange=new He,this.ngControl&&(this.ngControl.valueAccessor=this),null!=A?.typeaheadDebounceInterval&&(this._typeaheadDebounceInterval=A.typeaheadDebounceInterval),this._scrollStrategyFactory=m,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(vy.required)??!1}set required(e){this._required=lt(e),this.stateChanges.next()}get multiple(){return this._multiple}set multiple(e){this._multiple=lt(e)}get disableOptionCentering(){return this._disableOptionCentering}set disableOptionCentering(e){this._disableOptionCentering=lt(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=xs(e)}get id(){return this._id}set id(e){this._id=e||this._uid,this.stateChanges.next()}ngOnInit(){this._selectionModel=new nl(this.multiple),this.stateChanges.next(),this._panelDoneAnimatingStream.pipe(bf(),Jt(this._destroy)).subscribe(()=>this._panelDoneAnimating(this.panelOpen))}ngAfterContentInit(){this._initKeyManager(),this._selectionModel.changed.pipe(Jt(this._destroy)).subscribe(e=>{e.added.forEach(i=>i.select()),e.removed.forEach(i=>i.deselect())}),this.options.changes.pipe(ni(null),Jt(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,o=13===i||32===i,s=this._keyManager;if(!s.isTyping()&&o&&!yi(e)||(this.multiple||e.altKey)&&r)e.preventDefault(),this.open();else if(!this.multiple){const a=this.selected;s.onKeydown(e);const l=this.selected;l&&a!==l&&this._liveAnnouncer.announce(l.viewValue,1e4)}}_handleOpenKeydown(e){const i=this._keyManager,r=e.keyCode,o=40===r||38===r,s=i.isTyping();if(o&&e.altKey)e.preventDefault(),this.close();else if(s||13!==r&&32!==r||!i.activeItem||yi(e))if(!s&&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&&o&&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(sn(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 N2(this.options).withTypeAhead(this._typeaheadDebounceInterval).withVerticalOrientation().withHorizontalOrientation(this._isRtl()?"rtl":"ltr").withHomeAndEnd().withAllowedModifierKeys(["shiftKey"]),this._keyManager.tabOut.pipe(Jt(this._destroy)).subscribe(()=>{this.panelOpen&&(!this.multiple&&this._keyManager.activeItem&&this._keyManager.activeItem._selectViaInteraction(),this.focus(),this.close())}),this._keyManager.change.pipe(Jt(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=On(this.options.changes,this._destroy);this.optionSelectionChanges.pipe(Jt(e)).subscribe(i=>{this._onSelect(i.source,i.isUserInput),i.isUserInput&&!this.multiple&&this._panelOpen&&(this.close(),this.focus())}),On(...this.options.map(i=>i._stateChanges)).pipe(Jt(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)(p(zo),p(St),p(et),p(gd),p(Je),p(Xi,8),p(_c,8),p(vc,8),p(jf,8),p(bo,10),Vr("tabindex"),p(Q1),p(ub),p(F9,8))},n.\u0275dir=fe({type:n,viewQuery:function(e,i){if(1&e&&(De(S9,5),De(A9,5),De(a1,5)),2&e){let r;ce(r=ue())&&(i.trigger=r.first),ce(r=ue())&&(i.panel=r.first),ce(r=ue())&&(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:[Se,Rn]}),n})(),Ko=(()=>{class n extends U9{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 o=this._getItemHeight();return Math.min(Math.max(0,o*e-i+o/2),r)}ngOnInit(){super.ngOnInit(),this._viewportRuler.change().pipe(Jt(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(sn(1)).subscribe(()=>{this._triggerFontSize&&this._overlayDir.overlayRef&&this._overlayDir.overlayRef.overlayElement&&(this._overlayDir.overlayRef.overlayElement.style.fontSize=`${this._triggerFontSize}px`)}))}_scrollOptionIntoView(e){const i=Eb(e,this.options,this.optionGroups),r=this._getItemHeight();this.panel.nativeElement.scrollTop=0===e&&1===i?0:C1((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 j9(this,e)}_calculateOverlayOffsetX(){const e=this._overlayDir.overlayRef.overlayElement.getBoundingClientRect(),i=this._viewportRuler.getViewportSize(),r=this._isRtl(),o=this.multiple?56:32;let s;if(this.multiple)s=40;else if(this.disableOptionCentering)s=16;else{let c=this._selectionModel.selected[0]||this.options.first;s=c&&c.group?32:16}r||(s*=-1);const a=0-(e.left+s-(r?o:0)),l=e.right+s-i.width+(r?0:o);a>0?s+=a+8:l>0&&(s-=l+8),this._overlayDir.offsetX=Math.round(s),this._overlayDir.overlayRef.updatePosition()}_calculateOverlayOffsetY(e,i,r){const o=this._getItemHeight(),s=(o-this._triggerRect.height)/2,a=Math.floor(256/o);let l;return this.disableOptionCentering?0:(l=0===this._scrollTop?e*o:this._scrollTop===r?(e-(this._getItemCount()-a))*o+(o-(this._getItemCount()*o-256)%o):i-o/2,Math.round(-1*l-s))}_checkOverlayWithinViewport(e){const i=this._getItemHeight(),r=this._viewportRuler.getViewportSize(),o=this._triggerRect.top-8,s=r.height-this._triggerRect.bottom-8,a=Math.abs(this._offsetY),c=Math.min(this._getItemCount()*i,256)-a-this._triggerRect.height;c>s?this._adjustPanelUp(c,s):a>o?this._adjustPanelDown(a,o,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 o=Math.round(e-i);if(this._scrollTop+=o,this._offsetY+=o,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),s=i*e-r;let a;a=this.empty?0:Math.max(this.options.toArray().indexOf(this._selectionModel.selected[0]),0),a+=Eb(a,this.options,this.optionGroups);const l=r/2;this._scrollTop=this._calculateOverlayScroll(a,l,s),this._offsetY=this._calculateOverlayOffsetY(a,l,s),this._checkOverlayWithinViewport(s)}_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=Pt(n)))(i||n)}}(),n.\u0275cmp=Ue({type:n,selectors:[["mat-select"]],contentQueries:function(e,i,r){if(1&e&&(jt(r,J1,5),jt(r,cr,5),jt(r,Lf,5)),2&e){let o;ce(o=ue())&&(i.customTrigger=o.first),ce(o=ue())&&(i.options=o),ce(o=ue())&&(i.optionGroups=o)}},hostAttrs:["role","combobox","aria-autocomplete","none","aria-haspopup","true",1,"mat-select"],hostVars:19,hostBindings:function(e,i){1&e&&W("keydown",function(o){return i._handleKeydown(o)})("focus",function(){return i._onFocus()})("blur",function(){return i._onBlur()}),2&e&&(rt("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()),bt("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:[it([{provide:Ed,useExisting:n},{provide:Pf,useExisting:n}]),Se],ngContentSelectors:O9,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&&(Pn(R9),g(0,"div",0,1),W("click",function(){return i.toggle()}),g(3,"div",2),H(4,T9,2,1,"span",3),H(5,M9,3,2,"span",4),_(),g(6,"div",5),be(7,"div",6),_()(),H(8,k9,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=Yt(1);rt("aria-owns",i.panelOpen?i.id+"-panel":null),f(3),v("ngSwitch",i.empty),rt("id",i._valueId),f(1),v("ngSwitchCase",!0),f(1),v("ngSwitchCase",!1),f(3),v("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:[$a,mc,qp,xT,a1,s1],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:[$1.transformPanelWrap,$1.transformPanel]},changeDetection:0}),n})(),q9=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=ht({type:n}),n.\u0275inj=dt({providers:[B9],imports:[$r,Ic,Nf,Lt,Tc,Hf,Nf,Lt]}),n})();const Z1=As({passive:!0});let z9=(()=>{class n{constructor(e,i){this._platform=e,this._ngZone=i,this._monitoredElements=new Map}monitor(e){if(!this._platform.isBrowser)return Ss;const i=Qn(e),r=this._monitoredElements.get(i);if(r)return r.subject;const o=new N,s="cdk-text-field-autofilled",a=l=>{"cdk-text-field-autofill-start"!==l.animationName||i.classList.contains(s)?"cdk-text-field-autofill-end"===l.animationName&&i.classList.contains(s)&&(i.classList.remove(s),this._ngZone.run(()=>o.next({target:l.target,isAutofilled:!1}))):(i.classList.add(s),this._ngZone.run(()=>o.next({target:l.target,isAutofilled:!0})))};return this._ngZone.runOutsideAngular(()=>{i.addEventListener("animationstart",a,Z1),i.classList.add("cdk-text-field-autofill-monitored")}),this._monitoredElements.set(i,{subject:o,unlisten:()=>{i.removeEventListener("animationstart",a,Z1)}}),o}stopMonitoring(e){const i=Qn(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)(M(Nn),M(et))},n.\u0275prov=ge({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),X1=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=ht({type:n}),n.\u0275inj=dt({}),n})();const G9=new me("MAT_INPUT_VALUE_ACCESSOR"),W9=["button","checkbox","file","hidden","image","radio","range","reset","submit"];let $9=0;const K9=bb(class{constructor(n,t,e,i){this._defaultErrorStateMatcher=n,this._parentForm=t,this._parentFormGroup=e,this.ngControl=i,this.stateChanges=new N}});let Mr=(()=>{class n extends K9{constructor(e,i,r,o,s,a,l,c,u,d){super(a,o,s,r),this._elementRef=e,this._platform=i,this._autofillMonitor=c,this._formField=d,this._uid="mat-input-"+$9++,this.focused=!1,this.stateChanges=new N,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(y=>T2().has(y)),this._iOSKeyupListener=y=>{const A=y.target;!A.value&&0===A.selectionStart&&0===A.selectionEnd&&(A.setSelectionRange(1,1),A.setSelectionRange(0,0))};const h=this._elementRef.nativeElement,m=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"===m,this._isTextarea="textarea"===m,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=lt(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(vy.required)??!1}set required(e){this._required=lt(e)}get type(){return this._type}set type(e){this._type=e||"text",this._validateType(),!this._isTextarea&&T2().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=lt(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(){W9.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)(p(Je),p(Nn),p(bo,10),p(_c,8),p(vc,8),p(gd),p(G9,10),p(z9),p(et),p(jf,8))},n.\u0275dir=fe({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&&(Ho("disabled",i.disabled)("required",i.required),rt("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),bt("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:[it([{provide:Ed,useExisting:n}]),Se,Rn]}),n})(),Y9=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=ht({type:n}),n.\u0275inj=dt({providers:[gd],imports:[X1,Hf,Lt,X1,Hf]}),n})();const Q9=[[["caption"]],[["colgroup"],["col"]]],J9=["caption","colgroup, col"];function Nb(n){return class extends n{constructor(...t){super(...t),this._sticky=!1,this._hasStickyChanged=!1}get sticky(){return this._sticky}set sticky(t){const e=this._sticky;this._sticky=lt(t),this._hasStickyChanged=e!==this._sticky}hasStickyChanged(){const t=this._hasStickyChanged;return this._hasStickyChanged=!1,t}resetStickyChanged(){this._hasStickyChanged=!1}}}const Pc=new me("CDK_TABLE");let Lc=(()=>{class n{constructor(e){this.template=e}}return n.\u0275fac=function(e){return new(e||n)(p(yn))},n.\u0275dir=fe({type:n,selectors:[["","cdkCellDef",""]]}),n})(),Nc=(()=>{class n{constructor(e){this.template=e}}return n.\u0275fac=function(e){return new(e||n)(p(yn))},n.\u0275dir=fe({type:n,selectors:[["","cdkHeaderCellDef",""]]}),n})(),Uf=(()=>{class n{constructor(e){this.template=e}}return n.\u0275fac=function(e){return new(e||n)(p(yn))},n.\u0275dir=fe({type:n,selectors:[["","cdkFooterCellDef",""]]}),n})();class tz{}const nz=Nb(tz);let Ns=(()=>{class n extends nz{constructor(e){super(),this._table=e,this._stickyEnd=!1}get name(){return this._name}set name(e){this._setNameInput(e)}get stickyEnd(){return this._stickyEnd}set stickyEnd(e){const i=this._stickyEnd;this._stickyEnd=lt(e),this._hasStickyChanged=i!==this._stickyEnd}_updateColumnCssClassName(){this._columnCssClassName=[`cdk-column-${this.cssClassFriendlyName}`]}_setNameInput(e){e&&(this._name=e,this.cssClassFriendlyName=e.replace(/[^a-z0-9_-]/gi,"-"),this._updateColumnCssClassName())}}return n.\u0275fac=function(e){return new(e||n)(p(Pc,8))},n.\u0275dir=fe({type:n,selectors:[["","cdkColumnDef",""]],contentQueries:function(e,i,r){if(1&e&&(jt(r,Lc,5),jt(r,Nc,5),jt(r,Uf,5)),2&e){let o;ce(o=ue())&&(i.cell=o.first),ce(o=ue())&&(i.headerCell=o.first),ce(o=ue())&&(i.footerCell=o.first)}},inputs:{sticky:"sticky",name:["cdkColumnDef","name"],stickyEnd:"stickyEnd"},features:[it([{provide:"MAT_SORT_HEADER_COLUMN_DEF",useExisting:n}]),Se]}),n})();let jb=(()=>{class n extends class Fb{constructor(t,e){e.nativeElement.classList.add(...t._columnCssClassName)}}{constructor(e,i){if(super(e,i),1===e._table?._elementRef.nativeElement.nodeType){const r=e._table._elementRef.nativeElement.getAttribute("role");i.nativeElement.setAttribute("role","grid"===r||"treegrid"===r?"gridcell":"cell")}}}return n.\u0275fac=function(e){return new(e||n)(p(Ns),p(Je))},n.\u0275dir=fe({type:n,selectors:[["cdk-cell"],["td","cdk-cell",""]],hostAttrs:[1,"cdk-cell"],features:[Se]}),n})();class tI{constructor(){this.tasks=[],this.endTasks=[]}}const Hb=new me("_COALESCED_STYLE_SCHEDULER");let nI=(()=>{class n{constructor(e){this._ngZone=e,this._currentSchedule=null,this._destroyed=new N}schedule(e){this._createScheduleIfNeeded(),this._currentSchedule.tasks.push(e)}scheduleEnd(e){this._createScheduleIfNeeded(),this._currentSchedule.endTasks.push(e)}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete()}_createScheduleIfNeeded(){this._currentSchedule||(this._currentSchedule=new tI,this._getScheduleObservable().pipe(Jt(this._destroyed)).subscribe(()=>{for(;this._currentSchedule.tasks.length||this._currentSchedule.endTasks.length;){const e=this._currentSchedule;this._currentSchedule=new tI;for(const i of e.tasks)i();for(const i of e.endTasks)i()}this._currentSchedule=null}))}_getScheduleObservable(){return this._ngZone.isStable?vt(Promise.resolve(void 0)):this._ngZone.onStable.pipe(sn(1))}}return n.\u0275fac=function(e){return new(e||n)(M(et))},n.\u0275prov=ge({token:n,factory:n.\u0275fac}),n})(),Vb=(()=>{class n{constructor(e,i){this.template=e,this._differs=i}ngOnChanges(e){if(!this._columnsDiffer){const i=e.columns&&e.columns.currentValue||[];this._columnsDiffer=this._differs.find(i).create(),this._columnsDiffer.diff(i)}}getColumnsDiff(){return this._columnsDiffer.diff(this.columns)}extractCellTemplate(e){return this instanceof Sd?e.headerCell.template:this instanceof Ad?e.footerCell.template:e.cell.template}}return n.\u0275fac=function(e){return new(e||n)(p(yn),p(ys))},n.\u0275dir=fe({type:n,features:[Rn]}),n})();class iz extends Vb{}const rz=Nb(iz);let Sd=(()=>{class n extends rz{constructor(e,i,r){super(e,i),this._table=r}ngOnChanges(e){super.ngOnChanges(e)}}return n.\u0275fac=function(e){return new(e||n)(p(yn),p(ys),p(Pc,8))},n.\u0275dir=fe({type:n,selectors:[["","cdkHeaderRowDef",""]],inputs:{columns:["cdkHeaderRowDef","columns"],sticky:["cdkHeaderRowDefSticky","sticky"]},features:[Se,Rn]}),n})();class oz extends Vb{}const sz=Nb(oz);let Ad=(()=>{class n extends sz{constructor(e,i,r){super(e,i),this._table=r}ngOnChanges(e){super.ngOnChanges(e)}}return n.\u0275fac=function(e){return new(e||n)(p(yn),p(ys),p(Pc,8))},n.\u0275dir=fe({type:n,selectors:[["","cdkFooterRowDef",""]],inputs:{columns:["cdkFooterRowDef","columns"],sticky:["cdkFooterRowDefSticky","sticky"]},features:[Se,Rn]}),n})(),qf=(()=>{class n extends Vb{constructor(e,i,r){super(e,i),this._table=r}}return n.\u0275fac=function(e){return new(e||n)(p(yn),p(ys),p(Pc,8))},n.\u0275dir=fe({type:n,selectors:[["","cdkRowDef",""]],inputs:{columns:["cdkRowDefColumns","columns"],when:["cdkRowDefWhen","when"]},features:[Se]}),n})(),Fs=(()=>{class n{constructor(e){this._viewContainer=e,n.mostRecentCellOutlet=this}ngOnDestroy(){n.mostRecentCellOutlet===this&&(n.mostRecentCellOutlet=null)}}return n.mostRecentCellOutlet=null,n.\u0275fac=function(e){return new(e||n)(p(Dn))},n.\u0275dir=fe({type:n,selectors:[["","cdkCellOutlet",""]]}),n})(),zb=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=Ue({type:n,selectors:[["cdk-row"],["tr","cdk-row",""]],hostAttrs:["role","row",1,"cdk-row"],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(e,i){1&e&&Wt(0,0)},dependencies:[Fs],encapsulation:2}),n})(),zf=(()=>{class n{constructor(e){this.templateRef=e,this._contentClassName="cdk-no-data-row"}}return n.\u0275fac=function(e){return new(e||n)(p(yn))},n.\u0275dir=fe({type:n,selectors:[["ng-template","cdkNoDataRow",""]]}),n})();const iI=["top","bottom","left","right"];class az{constructor(t,e,i,r,o=!0,s=!0,a){this._isNativeHtmlTable=t,this._stickCellCss=e,this.direction=i,this._coalescedStyleScheduler=r,this._isBrowser=o,this._needsPositionStickyOnElement=s,this._positionListener=a,this._cachedCellWidths=[],this._borderCellCss={top:`${e}-border-elem-top`,bottom:`${e}-border-elem-bottom`,left:`${e}-border-elem-left`,right:`${e}-border-elem-right`}}clearStickyPositioning(t,e){const i=[];for(const r of t)if(r.nodeType===r.ELEMENT_NODE){i.push(r);for(let o=0;o{for(const r of i)this._removeStickyStyle(r,e)})}updateStickyColumns(t,e,i,r=!0){if(!t.length||!this._isBrowser||!e.some(h=>h)&&!i.some(h=>h))return void(this._positionListener&&(this._positionListener.stickyColumnsUpdated({sizes:[]}),this._positionListener.stickyEndColumnsUpdated({sizes:[]})));const o=t[0],s=o.children.length,a=this._getCellWidths(o,r),l=this._getStickyStartColumnPositions(a,e),c=this._getStickyEndColumnPositions(a,i),u=e.lastIndexOf(!0),d=i.indexOf(!0);this._coalescedStyleScheduler.schedule(()=>{const h="rtl"===this.direction,m=h?"right":"left",y=h?"left":"right";for(const A of t)for(let U=0;Ue[U]?A:null)}),this._positionListener.stickyEndColumnsUpdated({sizes:-1===d?[]:a.slice(d).map((A,U)=>i[U+d]?A:null).reverse()}))})}stickRows(t,e,i){if(!this._isBrowser)return;const r="bottom"===i?t.slice().reverse():t,o="bottom"===i?e.slice().reverse():e,s=[],a=[],l=[];for(let u=0,d=0;u{for(let u=0;u{e.some(r=>!r)?this._removeStickyStyle(i,["bottom"]):this._addStickyStyle(i,"bottom",0,!1)})}_removeStickyStyle(t,e){for(const r of e)t.style[r]="",t.classList.remove(this._borderCellCss[r]);iI.some(r=>-1===e.indexOf(r)&&t.style[r])?t.style.zIndex=this._getCalculatedZIndex(t):(t.style.zIndex="",this._needsPositionStickyOnElement&&(t.style.position=""),t.classList.remove(this._stickCellCss))}_addStickyStyle(t,e,i,r){t.classList.add(this._stickCellCss),r&&t.classList.add(this._borderCellCss[e]),t.style[e]=`${i}px`,t.style.zIndex=this._getCalculatedZIndex(t),this._needsPositionStickyOnElement&&(t.style.cssText+="position: -webkit-sticky; position: sticky; ")}_getCalculatedZIndex(t){const e={top:100,bottom:10,left:1,right:1};let i=0;for(const r of iI)t.style[r]&&(i+=e[r]);return i?`${i}`:""}_getCellWidths(t,e=!0){if(!e&&this._cachedCellWidths.length)return this._cachedCellWidths;const i=[],r=t.children;for(let o=0;o0;o--)e[o]&&(i[o]=r,r+=t[o]);return i}}const Gb=new me("CDK_SPL");let Gf=(()=>{class n{constructor(e,i){this.viewContainer=e,this.elementRef=i}}return n.\u0275fac=function(e){return new(e||n)(p(Dn),p(Je))},n.\u0275dir=fe({type:n,selectors:[["","rowOutlet",""]]}),n})(),Wf=(()=>{class n{constructor(e,i){this.viewContainer=e,this.elementRef=i}}return n.\u0275fac=function(e){return new(e||n)(p(Dn),p(Je))},n.\u0275dir=fe({type:n,selectors:[["","headerRowOutlet",""]]}),n})(),$f=(()=>{class n{constructor(e,i){this.viewContainer=e,this.elementRef=i}}return n.\u0275fac=function(e){return new(e||n)(p(Dn),p(Je))},n.\u0275dir=fe({type:n,selectors:[["","footerRowOutlet",""]]}),n})(),Kf=(()=>{class n{constructor(e,i){this.viewContainer=e,this.elementRef=i}}return n.\u0275fac=function(e){return new(e||n)(p(Dn),p(Je))},n.\u0275dir=fe({type:n,selectors:[["","noDataRowOutlet",""]]}),n})(),Yf=(()=>{class n{constructor(e,i,r,o,s,a,l,c,u,d,h,m){this._differs=e,this._changeDetectorRef=i,this._elementRef=r,this._dir=s,this._platform=l,this._viewRepeater=c,this._coalescedStyleScheduler=u,this._viewportRuler=d,this._stickyPositioningListener=h,this._ngZone=m,this._onDestroy=new N,this._columnDefsByName=new Map,this._customColumnDefs=new Set,this._customRowDefs=new Set,this._customHeaderRowDefs=new Set,this._customFooterRowDefs=new Set,this._headerRowDefChanged=!0,this._footerRowDefChanged=!0,this._stickyColumnStylesNeedReset=!0,this._forceRecalculateCellWidths=!0,this._cachedRenderRowsMap=new Map,this.stickyCssClass="cdk-table-sticky",this.needsPositionStickyOnElement=!0,this._isShowingNoDataRow=!1,this._multiTemplateDataRows=!1,this._fixedLayout=!1,this.contentChanged=new He,this.viewChange=new ar({start:0,end:Number.MAX_VALUE}),o||this._elementRef.nativeElement.setAttribute("role","table"),this._document=a,this._isNativeHtmlTable="TABLE"===this._elementRef.nativeElement.nodeName}get trackBy(){return this._trackByFn}set trackBy(e){this._trackByFn=e}get dataSource(){return this._dataSource}set dataSource(e){this._dataSource!==e&&this._switchDataSource(e)}get multiTemplateDataRows(){return this._multiTemplateDataRows}set multiTemplateDataRows(e){this._multiTemplateDataRows=lt(e),this._rowOutlet&&this._rowOutlet.viewContainer.length&&(this._forceRenderDataRows(),this.updateStickyColumnStyles())}get fixedLayout(){return this._fixedLayout}set fixedLayout(e){this._fixedLayout=lt(e),this._forceRecalculateCellWidths=!0,this._stickyColumnStylesNeedReset=!0}ngOnInit(){this._setupStickyStyler(),this._isNativeHtmlTable&&this._applyNativeTableSections(),this._dataDiffer=this._differs.find([]).create((e,i)=>this.trackBy?this.trackBy(i.dataIndex,i.data):i),this._viewportRuler.change().pipe(Jt(this._onDestroy)).subscribe(()=>{this._forceRecalculateCellWidths=!0})}ngAfterContentChecked(){this._cacheRowDefs(),this._cacheColumnDefs();const i=this._renderUpdatedColumns()||this._headerRowDefChanged||this._footerRowDefChanged;this._stickyColumnStylesNeedReset=this._stickyColumnStylesNeedReset||i,this._forceRecalculateCellWidths=i,this._headerRowDefChanged&&(this._forceRenderHeaderRows(),this._headerRowDefChanged=!1),this._footerRowDefChanged&&(this._forceRenderFooterRows(),this._footerRowDefChanged=!1),this.dataSource&&this._rowDefs.length>0&&!this._renderChangeSubscription?this._observeRenderChanges():this._stickyColumnStylesNeedReset&&this.updateStickyColumnStyles(),this._checkStickyStates()}ngOnDestroy(){[this._rowOutlet.viewContainer,this._headerRowOutlet.viewContainer,this._footerRowOutlet.viewContainer,this._cachedRenderRowsMap,this._customColumnDefs,this._customRowDefs,this._customHeaderRowDefs,this._customFooterRowDefs,this._columnDefsByName].forEach(e=>{e.clear()}),this._headerRowDefs=[],this._footerRowDefs=[],this._defaultRowDef=null,this._onDestroy.next(),this._onDestroy.complete(),Ob(this.dataSource)&&this.dataSource.disconnect(this)}renderRows(){this._renderRows=this._getAllRenderRows();const e=this._dataDiffer.diff(this._renderRows);if(!e)return this._updateNoDataRow(),void this.contentChanged.next();const i=this._rowOutlet.viewContainer;this._viewRepeater.applyChanges(e,i,(r,o,s)=>this._getEmbeddedViewArgs(r.item,s),r=>r.item.data,r=>{1===r.operation&&r.context&&this._renderCellTemplateForItem(r.record.item.rowDef,r.context)}),this._updateRowIndexContext(),e.forEachIdentityChange(r=>{i.get(r.currentIndex).context.$implicit=r.item.data}),this._updateNoDataRow(),this._ngZone&&et.isInAngularZone()?this._ngZone.onStable.pipe(sn(1),Jt(this._onDestroy)).subscribe(()=>{this.updateStickyColumnStyles()}):this.updateStickyColumnStyles(),this.contentChanged.next()}addColumnDef(e){this._customColumnDefs.add(e)}removeColumnDef(e){this._customColumnDefs.delete(e)}addRowDef(e){this._customRowDefs.add(e)}removeRowDef(e){this._customRowDefs.delete(e)}addHeaderRowDef(e){this._customHeaderRowDefs.add(e),this._headerRowDefChanged=!0}removeHeaderRowDef(e){this._customHeaderRowDefs.delete(e),this._headerRowDefChanged=!0}addFooterRowDef(e){this._customFooterRowDefs.add(e),this._footerRowDefChanged=!0}removeFooterRowDef(e){this._customFooterRowDefs.delete(e),this._footerRowDefChanged=!0}setNoDataRow(e){this._customNoDataRow=e}updateStickyHeaderRowStyles(){const e=this._getRenderedRows(this._headerRowOutlet),r=this._elementRef.nativeElement.querySelector("thead");r&&(r.style.display=e.length?"":"none");const o=this._headerRowDefs.map(s=>s.sticky);this._stickyStyler.clearStickyPositioning(e,["top"]),this._stickyStyler.stickRows(e,o,"top"),this._headerRowDefs.forEach(s=>s.resetStickyChanged())}updateStickyFooterRowStyles(){const e=this._getRenderedRows(this._footerRowOutlet),r=this._elementRef.nativeElement.querySelector("tfoot");r&&(r.style.display=e.length?"":"none");const o=this._footerRowDefs.map(s=>s.sticky);this._stickyStyler.clearStickyPositioning(e,["bottom"]),this._stickyStyler.stickRows(e,o,"bottom"),this._stickyStyler.updateStickyFooterContainer(this._elementRef.nativeElement,o),this._footerRowDefs.forEach(s=>s.resetStickyChanged())}updateStickyColumnStyles(){const e=this._getRenderedRows(this._headerRowOutlet),i=this._getRenderedRows(this._rowOutlet),r=this._getRenderedRows(this._footerRowOutlet);(this._isNativeHtmlTable&&!this._fixedLayout||this._stickyColumnStylesNeedReset)&&(this._stickyStyler.clearStickyPositioning([...e,...i,...r],["left","right"]),this._stickyColumnStylesNeedReset=!1),e.forEach((o,s)=>{this._addStickyColumnStyles([o],this._headerRowDefs[s])}),this._rowDefs.forEach(o=>{const s=[];for(let a=0;a{this._addStickyColumnStyles([o],this._footerRowDefs[s])}),Array.from(this._columnDefsByName.values()).forEach(o=>o.resetStickyChanged())}_getAllRenderRows(){const e=[],i=this._cachedRenderRowsMap;this._cachedRenderRowsMap=new Map;for(let r=0;r{const a=r&&r.has(s)?r.get(s):[];if(a.length){const l=a.shift();return l.dataIndex=i,l}return{data:e,rowDef:s,dataIndex:i}})}_cacheColumnDefs(){this._columnDefsByName.clear(),Qf(this._getOwnDefs(this._contentColumnDefs),this._customColumnDefs).forEach(i=>{this._columnDefsByName.has(i.name),this._columnDefsByName.set(i.name,i)})}_cacheRowDefs(){this._headerRowDefs=Qf(this._getOwnDefs(this._contentHeaderRowDefs),this._customHeaderRowDefs),this._footerRowDefs=Qf(this._getOwnDefs(this._contentFooterRowDefs),this._customFooterRowDefs),this._rowDefs=Qf(this._getOwnDefs(this._contentRowDefs),this._customRowDefs);const e=this._rowDefs.filter(i=>!i.when);this._defaultRowDef=e[0]}_renderUpdatedColumns(){const e=(s,a)=>s||!!a.getColumnsDiff(),i=this._rowDefs.reduce(e,!1);i&&this._forceRenderDataRows();const r=this._headerRowDefs.reduce(e,!1);r&&this._forceRenderHeaderRows();const o=this._footerRowDefs.reduce(e,!1);return o&&this._forceRenderFooterRows(),i||r||o}_switchDataSource(e){this._data=[],Ob(this.dataSource)&&this.dataSource.disconnect(this),this._renderChangeSubscription&&(this._renderChangeSubscription.unsubscribe(),this._renderChangeSubscription=null),e||(this._dataDiffer&&this._dataDiffer.diff([]),this._rowOutlet.viewContainer.clear()),this._dataSource=e}_observeRenderChanges(){if(!this.dataSource)return;let e;Ob(this.dataSource)?e=this.dataSource.connect(this):Ds(this.dataSource)?e=this.dataSource:Array.isArray(this.dataSource)&&(e=Ne(this.dataSource)),this._renderChangeSubscription=e.pipe(Jt(this._onDestroy)).subscribe(i=>{this._data=i||[],this.renderRows()})}_forceRenderHeaderRows(){this._headerRowOutlet.viewContainer.length>0&&this._headerRowOutlet.viewContainer.clear(),this._headerRowDefs.forEach((e,i)=>this._renderRow(this._headerRowOutlet,e,i)),this.updateStickyHeaderRowStyles()}_forceRenderFooterRows(){this._footerRowOutlet.viewContainer.length>0&&this._footerRowOutlet.viewContainer.clear(),this._footerRowDefs.forEach((e,i)=>this._renderRow(this._footerRowOutlet,e,i)),this.updateStickyFooterRowStyles()}_addStickyColumnStyles(e,i){const r=Array.from(i.columns||[]).map(a=>this._columnDefsByName.get(a)),o=r.map(a=>a.sticky),s=r.map(a=>a.stickyEnd);this._stickyStyler.updateStickyColumns(e,o,s,!this._fixedLayout||this._forceRecalculateCellWidths)}_getRenderedRows(e){const i=[];for(let r=0;r!o.when||o.when(i,e));else{let o=this._rowDefs.find(s=>s.when&&s.when(i,e))||this._defaultRowDef;o&&r.push(o)}return r}_getEmbeddedViewArgs(e,i){return{templateRef:e.rowDef.template,context:{$implicit:e.data},index:i}}_renderRow(e,i,r,o={}){const s=e.viewContainer.createEmbeddedView(i.template,o,r);return this._renderCellTemplateForItem(i,o),s}_renderCellTemplateForItem(e,i){for(let r of this._getCellTemplates(e))Fs.mostRecentCellOutlet&&Fs.mostRecentCellOutlet._viewContainer.createEmbeddedView(r,i);this._changeDetectorRef.markForCheck()}_updateRowIndexContext(){const e=this._rowOutlet.viewContainer;for(let i=0,r=e.length;i{const r=this._columnDefsByName.get(i);return e.extractCellTemplate(r)}):[]}_applyNativeTableSections(){const e=this._document.createDocumentFragment(),i=[{tag:"thead",outlets:[this._headerRowOutlet]},{tag:"tbody",outlets:[this._rowOutlet,this._noDataRowOutlet]},{tag:"tfoot",outlets:[this._footerRowOutlet]}];for(const r of i){const o=this._document.createElement(r.tag);o.setAttribute("role","rowgroup");for(const s of r.outlets)o.appendChild(s.elementRef.nativeElement);e.appendChild(o)}this._elementRef.nativeElement.appendChild(e)}_forceRenderDataRows(){this._dataDiffer.diff([]),this._rowOutlet.viewContainer.clear(),this.renderRows()}_checkStickyStates(){const e=(i,r)=>i||r.hasStickyChanged();this._headerRowDefs.reduce(e,!1)&&this.updateStickyHeaderRowStyles(),this._footerRowDefs.reduce(e,!1)&&this.updateStickyFooterRowStyles(),Array.from(this._columnDefsByName.values()).reduce(e,!1)&&(this._stickyColumnStylesNeedReset=!0,this.updateStickyColumnStyles())}_setupStickyStyler(){this._stickyStyler=new az(this._isNativeHtmlTable,this.stickyCssClass,this._dir?this._dir.value:"ltr",this._coalescedStyleScheduler,this._platform.isBrowser,this.needsPositionStickyOnElement,this._stickyPositioningListener),(this._dir?this._dir.change:Ne()).pipe(Jt(this._onDestroy)).subscribe(i=>{this._stickyStyler.direction=i,this.updateStickyColumnStyles()})}_getOwnDefs(e){return e.filter(i=>!i._table||i._table===this)}_updateNoDataRow(){const e=this._customNoDataRow||this._noDataRow;if(!e)return;const i=0===this._rowOutlet.viewContainer.length;if(i===this._isShowingNoDataRow)return;const r=this._noDataRowOutlet.viewContainer;if(i){const o=r.createEmbeddedView(e.templateRef),s=o.rootNodes[0];1===o.rootNodes.length&&s?.nodeType===this._document.ELEMENT_NODE&&(s.setAttribute("role","row"),s.classList.add(e._contentClassName))}else r.clear();this._isShowingNoDataRow=i}}return n.\u0275fac=function(e){return new(e||n)(p(ys),p(St),p(Je),Vr("role"),p(Xi,8),p(ft),p(Nn),p(Cd),p(Hb),p(zo),p(Gb,12),p(et,8))},n.\u0275cmp=Ue({type:n,selectors:[["cdk-table"],["table","cdk-table",""]],contentQueries:function(e,i,r){if(1&e&&(jt(r,zf,5),jt(r,Ns,5),jt(r,qf,5),jt(r,Sd,5),jt(r,Ad,5)),2&e){let o;ce(o=ue())&&(i._noDataRow=o.first),ce(o=ue())&&(i._contentColumnDefs=o),ce(o=ue())&&(i._contentRowDefs=o),ce(o=ue())&&(i._contentHeaderRowDefs=o),ce(o=ue())&&(i._contentFooterRowDefs=o)}},viewQuery:function(e,i){if(1&e&&(De(Gf,7),De(Wf,7),De($f,7),De(Kf,7)),2&e){let r;ce(r=ue())&&(i._rowOutlet=r.first),ce(r=ue())&&(i._headerRowOutlet=r.first),ce(r=ue())&&(i._footerRowOutlet=r.first),ce(r=ue())&&(i._noDataRowOutlet=r.first)}},hostAttrs:[1,"cdk-table"],hostVars:2,hostBindings:function(e,i){2&e&&bt("cdk-table-fixed-layout",i.fixedLayout)},inputs:{trackBy:"trackBy",dataSource:"dataSource",multiTemplateDataRows:"multiTemplateDataRows",fixedLayout:"fixedLayout"},outputs:{contentChanged:"contentChanged"},exportAs:["cdkTable"],features:[it([{provide:Pc,useExisting:n},{provide:Cd,useClass:V1},{provide:Hb,useClass:nI},{provide:Gb,useValue:null}])],ngContentSelectors:J9,decls:6,vars:0,consts:[["headerRowOutlet",""],["rowOutlet",""],["noDataRowOutlet",""],["footerRowOutlet",""]],template:function(e,i){1&e&&(Pn(Q9),Bt(0),Bt(1,1),Wt(2,0)(3,1)(4,2)(5,3))},dependencies:[Gf,Wf,$f,Kf],styles:[".cdk-table-fixed-layout{table-layout:fixed}"],encapsulation:2}),n})();function Qf(n,t){return n.concat(Array.from(t))}let cz=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=ht({type:n}),n.\u0275inj=dt({imports:[mb]}),n})();const uz=[[["caption"]],[["colgroup"],["col"]]],dz=["caption","colgroup, col"];let Jf=(()=>{class n extends Yf{constructor(){super(...arguments),this.stickyCssClass="mat-table-sticky",this.needsPositionStickyOnElement=!1}}return n.\u0275fac=function(){let t;return function(i){return(t||(t=Pt(n)))(i||n)}}(),n.\u0275cmp=Ue({type:n,selectors:[["mat-table"],["table","mat-table",""]],hostAttrs:[1,"mat-table"],hostVars:2,hostBindings:function(e,i){2&e&&bt("mat-table-fixed-layout",i.fixedLayout)},exportAs:["matTable"],features:[it([{provide:Cd,useClass:V1},{provide:Yf,useExisting:n},{provide:Pc,useExisting:n},{provide:Hb,useClass:nI},{provide:Gb,useValue:null}]),Se],ngContentSelectors:dz,decls:6,vars:0,consts:[["headerRowOutlet",""],["rowOutlet",""],["noDataRowOutlet",""],["footerRowOutlet",""]],template:function(e,i){1&e&&(Pn(uz),Bt(0),Bt(1,1),Wt(2,0)(3,1)(4,2)(5,3))},dependencies:[Gf,Wf,$f,Kf],styles:["mat-table{display:block}mat-header-row{min-height:56px}mat-row,mat-footer-row{min-height:48px}mat-row,mat-header-row,mat-footer-row{display:flex;border-width:0;border-bottom-width:1px;border-style:solid;align-items:center;box-sizing:border-box}mat-cell:first-of-type,mat-header-cell:first-of-type,mat-footer-cell:first-of-type{padding-left:24px}[dir=rtl] mat-cell:first-of-type:not(:only-of-type),[dir=rtl] mat-header-cell:first-of-type:not(:only-of-type),[dir=rtl] mat-footer-cell:first-of-type:not(:only-of-type){padding-left:0;padding-right:24px}mat-cell:last-of-type,mat-header-cell:last-of-type,mat-footer-cell:last-of-type{padding-right:24px}[dir=rtl] mat-cell:last-of-type:not(:only-of-type),[dir=rtl] mat-header-cell:last-of-type:not(:only-of-type),[dir=rtl] mat-footer-cell:last-of-type:not(:only-of-type){padding-right:0;padding-left:24px}mat-cell,mat-header-cell,mat-footer-cell{flex:1;display:flex;align-items:center;overflow:hidden;word-wrap:break-word;min-height:inherit}table.mat-table{border-spacing:0}tr.mat-header-row{height:56px}tr.mat-row,tr.mat-footer-row{height:48px}th.mat-header-cell{text-align:left}[dir=rtl] th.mat-header-cell{text-align:right}th.mat-header-cell,td.mat-cell,td.mat-footer-cell{padding:0;border-bottom-width:1px;border-bottom-style:solid}th.mat-header-cell:first-of-type,td.mat-cell:first-of-type,td.mat-footer-cell:first-of-type{padding-left:24px}[dir=rtl] th.mat-header-cell:first-of-type:not(:only-of-type),[dir=rtl] td.mat-cell:first-of-type:not(:only-of-type),[dir=rtl] td.mat-footer-cell:first-of-type:not(:only-of-type){padding-left:0;padding-right:24px}th.mat-header-cell:last-of-type,td.mat-cell:last-of-type,td.mat-footer-cell:last-of-type{padding-right:24px}[dir=rtl] th.mat-header-cell:last-of-type:not(:only-of-type),[dir=rtl] td.mat-cell:last-of-type:not(:only-of-type),[dir=rtl] td.mat-footer-cell:last-of-type:not(:only-of-type){padding-right:0;padding-left:24px}.mat-table-sticky{position:sticky !important}.mat-table-fixed-layout{table-layout:fixed}"],encapsulation:2}),n})(),Td=(()=>{class n extends Lc{}return n.\u0275fac=function(){let t;return function(i){return(t||(t=Pt(n)))(i||n)}}(),n.\u0275dir=fe({type:n,selectors:[["","matCellDef",""]],features:[it([{provide:Lc,useExisting:n}]),Se]}),n})(),xd=(()=>{class n extends Ns{get name(){return this._name}set name(e){this._setNameInput(e)}_updateColumnCssClassName(){super._updateColumnCssClassName(),this._columnCssClassName.push(`mat-column-${this.cssClassFriendlyName}`)}}return n.\u0275fac=function(){let t;return function(i){return(t||(t=Pt(n)))(i||n)}}(),n.\u0275dir=fe({type:n,selectors:[["","matColumnDef",""]],inputs:{sticky:"sticky",name:["matColumnDef","name"]},features:[it([{provide:Ns,useExisting:n},{provide:"MAT_SORT_HEADER_COLUMN_DEF",useExisting:n}]),Se]}),n})(),Id=(()=>{class n extends jb{}return n.\u0275fac=function(){let t;return function(i){return(t||(t=Pt(n)))(i||n)}}(),n.\u0275dir=fe({type:n,selectors:[["mat-cell"],["td","mat-cell",""]],hostAttrs:["role","gridcell",1,"mat-cell"],features:[Se]}),n})(),Zf=(()=>{class n extends qf{}return n.\u0275fac=function(){let t;return function(i){return(t||(t=Pt(n)))(i||n)}}(),n.\u0275dir=fe({type:n,selectors:[["","matRowDef",""]],inputs:{columns:["matRowDefColumns","columns"],when:["matRowDefWhen","when"]},features:[it([{provide:qf,useExisting:n}]),Se]}),n})(),Xf=(()=>{class n extends zb{}return n.\u0275fac=function(){let t;return function(i){return(t||(t=Pt(n)))(i||n)}}(),n.\u0275cmp=Ue({type:n,selectors:[["mat-row"],["tr","mat-row",""]],hostAttrs:["role","row",1,"mat-row"],exportAs:["matRow"],features:[it([{provide:zb,useExisting:n}]),Se],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(e,i){1&e&&Wt(0,0)},dependencies:[Fs],encapsulation:2}),n})(),Ez=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=ht({type:n}),n.\u0275inj=dt({imports:[cz,Lt,Lt]}),n})();const Sz=["searchContact"];function Az(n,t){if(1&n){const e=Ie();g(0,"button",13),W("click",function(){return J(e),Z(C(2).searchValue="")}),be(1,"div",14),_()}if(2&n){const e=C(2);f(1),v("ngStyle",e.searchClearImage)}}function Tz(n,t){if(1&n&&(g(0,"mat-option",15),j(1),_()),2&n){const e=t.$implicit;v("value",e.value),f(1),ve(e.viewValue)}}const xz=function(n){return{background:n}};function Iz(n,t){if(1&n&&be(0,"mat-cell",22),2&n){const e=t.$implicit,i=C(3);v("ngStyle",Wn(1,xz,"no-repeat url("+i.viewIconBaseURL+e.value.iconURL+")"))}}function Mz(n,t){if(1&n&&(g(0,"div"),j(1),_()),2&n){const e=C().$implicit;f(1),qe(" ",e.value.company," ")}}function kz(n,t){if(1&n&&(g(0,"div"),j(1),_()),2&n){const e=C().$implicit;f(1),qe(" ",e.value.postal," ")}}function Rz(n,t){if(1&n&&(g(0,"mat-cell",23)(1,"mat-dialog-content")(2,"span",24),j(3),_(),H(4,Mz,2,1,"div",25),H(5,kz,2,1,"div",25),_()()),2&n){const e=t.$implicit;f(3),qe(" ",e.display," "),f(1),v("ngIf",""!==e.value.company&&e.value.company!==e.display),f(1),v("ngIf",""!==e.value.postal)}}function Oz(n,t){if(1&n){const e=Ie();g(0,"mat-row",26),W("click",function(){const o=J(e).$implicit;return Z(C(3).toggleSelection(o))})("dblclick",function(){const o=J(e).$implicit;return Z(C(3).acceptEntryDblClick(o))}),_()}if(2&n){const e=t.$implicit,i=C(3);bt("isSelected",i.selection.isSelected(e)),v("matRippleColor",i.rippleColor)("matRippleCentered",i.centered)("matRippleDisabled",i.disabled)("matRippleUnbounded",i.unbounded)}}function Pz(n,t){if(1&n&&(g(0,"div")(1,"mat-table",16),xi(2,17),H(3,Iz,1,3,"mat-cell",18),Ii(),xi(4,19),H(5,Rz,6,3,"mat-cell",20),Ii(),H(6,Oz,1,6,"mat-row",21),_()()),2&n){const e=C(2);_s(e.tableWrapperClassName),f(1),v("dataSource",e.searchResults),f(5),v("matRowDefColumns",e.displayedColumns)}}function Lz(n,t){1&n&&(g(0,"div"),j(1),Ze(2,"translate"),_()),2&n&&(f(1),ve(Xe(2,1,"LC53482")))}const Nz=function(n){return{title:n}},Fz=function(n,t,e,i){return{confirm:n,cancel:t,confirmAction:e,cancelAction:i}};function Bz(n,t){if(1&n){const e=Ie();Wt(0,1),Ze(1,"translate"),g(2,"div",2)(3,"div",3)(4,"mat-form-field",4)(5,"mat-label"),j(6),Ze(7,"translate"),_(),g(8,"input",5),W("ngModelChange",function(r){return J(e),Z(C().searchValue=r)})("keyup.enter",function(){return J(e),Z(C().search())}),_(),H(9,Az,2,1,"button",6),_(),g(10,"input",7),W("click",function(){return J(e),Z(C().search())}),Ze(11,"translate"),_()(),g(12,"mat-form-field",8)(13,"mat-label"),j(14),Ze(15,"translate"),_(),g(16,"mat-select",9),W("valueChange",function(r){return J(e),Z(C().selectedDB=r)})("selectionChange",function(){J(e);const r=C();return Z(r.fetchSearch(r.selectedDB))}),H(17,Tz,2,2,"mat-option",10),_()(),H(18,Pz,7,5,"div",11),H(19,Lz,3,3,"ng-template",null,12,Sn),_(),Wt(21,1),Ze(22,"translate"),Ze(23,"translate")}if(2&n){const e=Yt(20),i=C();v("ngTemplateOutlet",i.modalHeader)("ngTemplateOutletContext",Wn(25,Nz,Xe(1,13,"LC53493"))),f(6),ve(Xe(7,15,"LC53489")),f(2),v("ngModel",i.searchValue),f(1),v("ngIf",i.searchValue),f(1),_t("value",Xe(11,17,"LC36251")),f(4),ve(Xe(15,19,"LC53516")),f(2),v("value",i.selectedDB),f(1),v("ngForOf",i.databases),f(1),v("ngIf",i.searchResults.length>=1)("ngIfElse",e),f(3),v("ngTemplateOutlet",i.modalFooter)("ngTemplateOutletContext",Yi(27,Fz,Xe(22,21,"LC73135"),Xe(23,23,"LC73136"),i.confirmAction.bind(i),i.cancelAction.bind(i)))}}let aI=(()=>{class n extends Pb{constructor(e,i,r,o,s,a){super(e,r,i,o,s,a),this.messageEvent=new He,this.prefix="Contacts: ",this.path="search",this.searchResults=[]}ngOnInit(){super.ngOnInit()}getTemplate(){return this.modalTemp}filterForContacts(e){const i={};for(const r in e)"GeOfficeAliases"!==r&&"Contact"===e[r].type&&(i[r]=e[r].title);this.generateSelectionArr(i)}generateSelectionArr(e){for(const i in e)Object.prototype.hasOwnProperty.call(e,i)&&this.databases.push({value:i,viewValue:this.prefix+e[i]});this.databases.length>0&&(this.selectedDB=this.databases[0].value,this.fetchSearch(this.selectedDB))}fetchDBs(){this.connection.getReqModal("dbConnections",null).subscribe(e=>{this.filterForContacts(e)})}handleResult(e){this.searchResults=null!=e.result&&Array.isArray(e.result)&&e.result.length>0?e.result:[]}confirmAction(){this.selection.isEmpty()?this.translate.get("LC53493").subscribe(e=>{this.messageService.showError(e)}):this.openAnotherModal(this.next,{currentContactPointer:this.selection.selected[0].value.fdMe,createType:this.data.createType,contactsDB:this.selectedDB})}}return n.\u0275fac=function(e){return new(e||n)(p(Ut),p(In),p(ot),p(tn),p(wd),p(Ps))},n.\u0275cmp=Ue({type:n,selectors:[["app-search-contact"]],viewQuery:function(e,i){if(1&e&&De(Sz,7),2&e){let r;ce(r=ue())&&(i.modalTemp=r.first)}},inputs:{data:"data"},outputs:{messageEvent:"messageEvent"},features:[Se],decls:2,vars:0,consts:[["searchContact",""],[3,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"modalBody"],[1,"searchInputWrapper"],[1,"searchInput"],["matInput","","type","text",3,"ngModel","ngModelChange","keyup.enter"],["matSuffix","","aria-label","Clear",3,"click",4,"ngIf"],["id","searchButton","type","button",1,"buttonSilverMiddle",3,"value","click"],["appearance","standard",1,"databaseSearchSelect"],[3,"value","valueChange","selectionChange"],[3,"value",4,"ngFor","ngForOf"],[3,"class",4,"ngIf","ngIfElse"],["noResult",""],["matSuffix","","aria-label","Clear",3,"click"],[1,"modalCloseIcon",3,"ngStyle"],[3,"value"],[1,"searchTable",3,"dataSource"],["matColumnDef","icon"],["class","searchIcon",3,"ngStyle",4,"matCellDef"],["matColumnDef","display"],["class","searchDisplay",4,"matCellDef"],["matRipple","","class","searchRow",3,"matRippleColor","matRippleCentered","matRippleDisabled","matRippleUnbounded","isSelected","click","dblclick",4,"matRowDef","matRowDefColumns"],[1,"searchIcon",3,"ngStyle"],[1,"searchDisplay"],[1,"bold"],[4,"ngIf"],["matRipple","",1,"searchRow",3,"matRippleColor","matRippleCentered","matRippleDisabled","matRippleUnbounded","click","dblclick"]],template:function(e,i){1&e&&H(0,Bz,24,32,"ng-template",null,0,Sn)},dependencies:[zn,pn,Ji,ra,Ar,Kr,wo,yd,Ir,Pi,Lb,Ko,cr,Mr,Jf,xd,Td,Zf,Id,Xf,xr,ki],styles:[".searchInputWrapper[_ngcontent-%COMP%]{display:flex;flex-direction:row;align-items:center;justify-content:space-between}.databaseSearchSelect[_ngcontent-%COMP%]{width:100%}.searchInput[_ngcontent-%COMP%]{width:calc(100% - 70px);display:block;padding-bottom:0!important}.searchIcon[_ngcontent-%COMP%]{width:30px;padding:0 10px 0 0!important;background-position:40% 50%!important}.searchRow[_ngcontent-%COMP%] .searchIcon[_ngcontent-%COMP%], .searchRow[_ngcontent-%COMP%] .searchDisplay[_ngcontent-%COMP%], .searchRow[_ngcontent-%COMP%]{border-bottom:0px}.searchRow[_ngcontent-%COMP%]:nth-child(2n){background:#f2f2f2}.isSelected[_ngcontent-%COMP%]{background:rgb(224,239,255)!important}.searchRow[_ngcontent-%COMP%]{cursor:pointer;overflow:hidden;padding-right:5px}.searchRow[_ngcontent-%COMP%]:hover{background:rgba(224,239,255,.4)}.searchDisplay[_ngcontent-%COMP%], .searchTable[_ngcontent-%COMP%]{width:100%}.tableWrapper[_ngcontent-%COMP%], .tableWrapperVerse[_ngcontent-%COMP%], .tableWrapperVerseTabs[_ngcontent-%COMP%]{overflow:auto}.tableWrapper[_ngcontent-%COMP%]{max-height:50vh}.tableWrapperVerse[_ngcontent-%COMP%]{max-height:45vh}.tableWrapperVerseTabs[_ngcontent-%COMP%]{max-height:calc(45vh - 48px)}.overlay-list[_ngcontent-%COMP%], .overlay-selected[_ngcontent-%COMP%]{position:absolute;bottom:0;left:100%;right:0;overflow:hidden;width:0;height:100%;transition:.5s ease;box-shadow:none}.overlay-list[_ngcontent-%COMP%]{background-color:#a1f79b}.overlay-selected[_ngcontent-%COMP%]{background-color:#ff6a6a}.projectButtonContainer[_ngcontent-%COMP%]:hover .overlay-list[_ngcontent-%COMP%], .projectButtonContainer[_ngcontent-%COMP%]:hover .overlay-selected[_ngcontent-%COMP%]{width:30px;left:calc(100% - 30px);box-shadow:0 0 10px #999}.projectButton[_ngcontent-%COMP%]{margin:0;position:absolute;top:50%;left:calc(50% - 9px);transform:translateY(-50%)}#searchButton[_ngcontent-%COMP%]{height:100%;padding:4px;margin:0 0 5px;float:right;font-weight:700;display:flex}"]}),n})();const em=["","FirstName","MiddleName","LastName","FirstName#LastName","FirstName#MiddleName#LastName","LastName#FirstName","fdSalutatoryAddress","fdContactTitle","Company","Address1","Address2","ZipCode","City","ZipCode#City","CountryToo","MainPhone","Fax","CellPhone","EMailAddress","HomePage","Title","Department","State"],jz=["EMailAddress","FirstName#LastName","Company","HomePage","Address1","ZipCode#City","State","CountryToo","MainPhone","Fax","CellPhone","Title","fdContactTitle","Department","","","","","","","","",""];let Fc=(()=>{class n{constructor(e,i,r){this.init=e,this.messageService=i,this.globals=r,this.isInit=!1,this.initServiceInit=!1,this.init.waitForInit().subscribe(o=>{this.initServiceInit=o,this.deactivateLoader()}),this.forceOpen=!1,this.loaderTimeout=null,this.isActive=!1}deactivateLoaderAfterTimeout(){this.isActive&&(this.loaderTimeout=setTimeout(()=>{this.forceDeactivateLoader()},5e3))}activateLoader(e,i){this.globals.loginOpen||(this.clearTimeout(),this.deactivateLoaderAfterTimeout()),i&&(this.isActive=!0,this.forceOpen=i),this.isInit&&(this.isActive=!0,this.loaderCompSubscriber.next({activate:!0,modal:e}))}clearTimeout(){this.messageService.clearConnectionTimeout(),this.loaderTimeout&&(clearTimeout(this.loaderTimeout),this.loaderTimeout=null)}deactivateLoader(){this.isInit&&this.initServiceInit&&!this.forceOpen&&(this.isActive=!1,this.globals.loginOpen||this.clearTimeout(),this.messageService.clearConnectionTimeout(),this.loaderCompSubscriber.next({activate:!1}))}forceDeactivateLoader(){this.isActive=!1,this.globals.loginOpen||this.clearTimeout(),this.forceOpen=!1,this.loaderCompSubscriber.next({activate:!1})}connectToService(){return new b(e=>{this.loaderCompSubscriber=e,this.isInit=!0})}}return n.\u0275fac=function(e){return new(e||n)(M(Rb),M(tn),M(ot))},n.\u0275prov=ge({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),Wb=(()=>{class n{constructor(e,i,r,o,s){this.translate=e,this.connection=i,this.globals=r,this.messageService=o,this.loaderService=s}invokeSoap(e,i,r){return new b(o=>{if(null!==i&&"object"==typeof i)try{let s='";for(const a in i)r?(s+="<"+a+' soapenc:arrayType="xsd:string[1]">",r=!1):s+="<"+a+">";s+="",this.connection.postSoap(this.globals.webInt+"/businessMailContacts",s).subscribe(a=>{a.then(l=>{200===l.status?l.text().then(c=>{const u=(new window.DOMParser).parseFromString(c,"text/xml"),d=u.getElementsByTagName(e+"Return")[0],h=[];let m;if(u.childNodes.length>0)for(let y=0;y{this.messageService.showError(a),this.loaderService.deactivateLoader(),o.error(Error(a))})}else this.translate.get("LC53487").subscribe(s=>{throw this.messageService.showError(s),Error(s)})})}arrayToObj(e,i){const r={};for(const o in e)if(Object.prototype.hasOwnProperty.call(e,o)){const s=e[o].split(i);s.length>=2?r[s[0]]=s[1]:1===s.length&&(r[s[0]]="")}return r}}return n.\u0275fac=function(e){return new(e||n)(M(Ut),M(In),M(ot),M(tn),M(Fc))},n.\u0275prov=ge({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const Jr=navigator.language;let Hz=(()=>{class n{constructor(e,i,r,o){this.translate=e,this.messageService=i,this.soapService=r,this.globals=o}create(e,i,r,o,s,a,l,c){switch(this.closeAll=l,a){case"company":this.handleCreateCompany(e,i,r,o,s);break;case"toCompany":this.handleCreateAddressToCompany(e,i,r,o,s,c);break;case"person":this.handleCreatePrivatePerson(e,i,r,o,s);break;default:this.translate.get("LC53496").subscribe(u=>{this.messageService.showError(u)})}}replaceWithCompanyData(e,i,r,o,s,a){var l=this;return Ae(function*(){const c=yield l.createResultObject(e,i,r,o);l.searchResultData=yield l.soapService.invokeSoap("GetAddressByID",{fdme:s});let u=l.searchResultData;if(u=Object.keys(u),u.length>0){const d=u[0].split("~*~");null!=d&&(c.Company=d[29],c.Address1=d[10],c.Address2=d[30],c.ZipCode=d[12],c.City=d[11],c.State=d[14],c.CountryToo=d[13],c.MainPhone=d[15],c.Fax=d[17])}return a.Company=c.Company,a.Address1=c.Address1,a.Address2=c.Address2,a["ZipCode#City"]=c.ZipCode+" "+c.City,a.State=c.State,a.CountryToo=c.CountryToo,a.MainPhone=c.MainPhone,a.Fax=c.Fax,a})()}createResultObject(e,i,r,o){var s=this;return Ae(function*(){const a={},l=e.split("\n");let c=null,u=null,d=null,h=null;l.length=o;let m="";s.translate.get("LC53497").subscribe(y=>{m=y});for(const y in i)if(c=i[y],null!=l[y]&&null!=c&&Number(y)0){u=c.split("#"),d=l[y].split(" ");for(const A in u)if(Number(A)0&&l[y].trim().length>0&&(h=l[y].trim(),i[y].length>0)){if(null!=a[i[y]]&&0!==a[i[y]].localeCompare(h))return m=m.replace("{DUPLICATE}",r.get(i[y])),void s.messageService.showError(m);a[i[y]]=h}return a})()}handleCreateCompany(e,i,r,o,s){var a=this;return Ae(function*(){const l=yield a.createResultObject(e,i,r,s);if(null==l.Company||""===l.Company)return void a.translate.get("LC73202").subscribe(m=>{m=m.replace("{FIELDNAME}",r.get("Company")),a.messageService.showError(m)});let c="";for(const m in l)c+="~*~"+m+"~#~"+l[m];c="~*~"+l.Company+c,c+="~*~fdCorreType~#~GeMain",c+="~*~fdIsNewDoc~#~0",c+="~*~AddressSynch~#~0";const u={};let d;u.addressData=c,u.contactsPath="$"+o,u.targetCompanyId="",u.languageCode=Array.isArray(Jr)&&Jr.length>0?Jr[0]:Jr;try{d=yield a.soapService.invokeSoap("CreateAddresses",u,!0)}catch(m){return void a.messageService.showError(m.message)}const h=Object.keys(d);1===h.length?(window.open(a.globals.convertToLink(h[0]),"_blank"),a.closeAll()):a.translate.get("LC53496").subscribe(m=>{a.messageService.showError(m)})})()}handleCreateAddressToCompany(e,i,r,o,s,a){var l=this;return Ae(function*(){if(!a)return void l.translate.get("LC53496").subscribe(A=>{l.messageService.showError(A)});const c=yield l.createResultObject(e,i,r,s);let u=l.searchResultData;if(u=Object.keys(u),u.length>0){const A=u[0].split("~*~");null!=A&&(c.Company=A[29],c.Address1=A[10],c.Address2=A[30],c.ZipCode=A[12],c.City=A[11],c.State=A[14],c.CountryToo=A[13],(null==c.MainPhone||0===c.MainPhone.localeCompare(""))&&(c.MainPhone=A[15]),(null==c.Fax||0===c.Fax.localeCompare(""))&&(c.Fax=A[17]))}if(null==c.LastName||0===c.LastName.localeCompare(""))return void l.translate.get("LC73202").subscribe(A=>{A=A.replace("{FIELDNAME}",r.get("LastName")),l.messageService.showError(A)});let d="";for(const A in c)d+="~*~"+A+"~#~"+c[A];d="~*~"+d,d+="~*~AddressSynch~#~1";const h={};let m;h.addressData=d,h.contactsPath="$"+o,h.targetCompanyId=a,h.languageCode=Array.isArray(Jr)&&Jr.length>0?Jr[0]:Jr;try{m=yield l.soapService.invokeSoap("CreateAddresses",h,!0)}catch(A){return void l.messageService.showError(A.message)}const y=Object.keys(m);1===y.length?window.open(l.globals.convertToLink(y[0]),"_blank"):l.translate.get("LC53496").subscribe(A=>{l.messageService.showError(A)}),l.closeAll()})()}handleCreatePrivatePerson(e,i,r,o,s){var a=this;return Ae(function*(){const l=yield a.createResultObject(e,i,r,s);if(delete l.Company,null==l.LastName||0===l.LastName.localeCompare(""))return void a.translate.get("LC73202").subscribe(m=>{m=m.replace("{FIELDNAME}",r.get("LastName")),a.messageService.showError(m)});let c="~*~";for(const m in l)c+="~*~"+m+"~#~"+l[m];c+="~*~fdCorreType~#~GeMain",c+="~*~fdIsNewDoc~#~0",c+="~*~AddressSynch~#~0";const u={};let d;u.addressData=c,u.contactsPath="$"+o,u.targetCompanyId="",u.languageCode=Array.isArray(Jr)&&Jr.length>0?Jr[0]:Jr;try{d=yield a.soapService.invokeSoap("CreateAddresses",u,!0)}catch(m){return void a.messageService.showError(m.message)}const h=Object.keys(d);1===h.length?window.open(a.globals.convertToLink(h[0]),"_blank"):a.translate.get("LC53496").subscribe(m=>{a.messageService.showError(m)}),a.closeAll()})()}}return n.\u0275fac=function(e){return new(e||n)(M(Ut),M(tn),M(Wb),M(ot))},n.\u0275prov=ge({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const Vz=["create"],Uz=["labels"],qz=["areaData"],zz=["previewData"];function Gz(n,t){if(1&n){const e=Ie();g(0,"mat-list-option",11),W("click",function(){const r=J(e),o=r.$implicit,s=r.index;return Z(C(2).changeLabel(o,s))}),j(1),_()}if(2&n){const e=t.$implicit,i=t.index,r=C(2);_t("value",r.currentKeyLabels[i]),f(1),qe(" ",r.fieldDisplayNameMap.get(e)," ")}}function Wz(n,t){1&n&&be(0,"textarea",12,13)}const $z=function(n){return{title:n}},Kz=function(n,t,e,i){return{confirm:n,cancel:t,confirmAction:e,cancelAction:i}};function Yz(n,t){if(1&n&&(Wt(0,1),Ze(1,"translate"),g(2,"div",2)(3,"div",3)(4,"div",4)(5,"mat-selection-list",5,6),H(7,Gz,2,2,"mat-list-option",7),_()(),be(8,"textarea",8,9),H(10,Wz,2,0,"textarea",10),_()(),Wt(11,1),Ze(12,"translate"),Ze(13,"translate")),2&n){const e=Yt(9),i=C();v("ngTemplateOutlet",i.modalHeader)("ngTemplateOutletContext",Wn(15,$z,Xe(1,9,"LC73005"))),f(4),v("ngClass",null!==i.globals.curConnectorType?"createAddressLabels"+i.globals.curConnectorType:""),f(1),v("multiple",!1),f(2),v("ngForOf",i.currentKeyLabels),f(1),v("ngClass",null!==i.globals.curConnectorType?"createAddressTextArea"+i.globals.curConnectorType:""),f(2),v("ngIf",i.globals.displayMailBody),f(1),v("ngTemplateOutlet",i.modalFooter)("ngTemplateOutletContext",Yi(17,Kz,Xe(12,11,"LC73135"),Xe(13,13,"LC73136"),i.confirmAction.bind(i,e),i.cancelAction.bind(i)))}}let Qz=(()=>{class n extends Yr{constructor(e,i,r,o,s){super(e),this.translate=e,this.globals=i,this.messageService=r,this.soapService=o,this.createHandler=s,this.fieldDisplayNameList=[],this.fieldDisplayNameMap=new Map,this.setTranslatedNameList(),this.keyLabels=em,this.currentKeyLabels=jz}ngOnInit(){super.ngOnInit(),this.processScanFooter().then(e=>{this.fillTextArea(e)})}getTemplate(){return this.modalTemp}changeLabel(e,i){const r=this.openAnotherModal("createLabel",{labelDisplayMap:this.fieldDisplayNameMap,createLabels:em,selected:e});r&&r.afterClosed().subscribe(o=>{o&&(this.currentKeyLabels[i]=o)})}processScanFooter(){var e=this;return Ae(function*(){const i=e.globals.curConnector.curPostData.preview;let r;try{r=yield e.soapService.invokeSoap("scanMailFooter",{mailContent:i})}catch{}return r})()}confirmAction(){let e="";e=Array.isArray(arguments[0])?arguments[0][0].value:arguments[0].value,this.createAddress(e)}fillPreviewDisplay(){this.globals.displayMailBody&&this.previewData&&(this.previewData.nativeElement.textContent=this.globals.curConnector.preview)}createAddress(e){this.createHandler.create(e,this.currentKeyLabels,this.fieldDisplayNameMap,this.data.passedData.contactsDB,23,this.data.passedData.createType,this.data.closeAllModal,this.data.passedData.currentContactPointer)}fillTextArea(e){var i=this;return Ae(function*(){let r="",o=!0;const s=i.globals.curMailAddr;i.data.passedData.currentContactPointer&&(e=yield i.createHandler.replaceWithCompanyData("",i.currentKeyLabels,i.fieldDisplayNameMap,23,i.data.passedData.currentContactPointer,e));for(const a in i.currentKeyLabels)if(Object.prototype.hasOwnProperty.call(i.currentKeyLabels,a)){o?o=!1:r+="\n";let l=e[i.currentKeyLabels[a]];"EMailAddress"===i.currentKeyLabels[a]&&null!=s&&(null==l||""===l)&&(l=Array.isArray(s)&&s.length>0?s[0]:s),null==l&&(l=""),r+=l.trim(),i.areaData.nativeElement.textContent=r}i.fillPreviewDisplay()})()}setTranslatedNameList(){this.translate.get("LC73020").subscribe(e=>{this.fieldDisplayNameList=e.split(";"),this.createDisplayMap(this.fieldDisplayNameList)})}createDisplayMap(e){if(em.length===e.length){let i=1;for(const r of em)""!==r&&(this.fieldDisplayNameMap.set(r,e[i]),i++);this.fieldDisplayNameMap.set("",this.fieldDisplayNameList[0])}else this.translate.get("LC53488").subscribe(i=>{this.messageService.showError(i)})}}return n.\u0275fac=function(e){return new(e||n)(p(Ut),p(ot),p(tn),p(Wb),p(Hz))},n.\u0275cmp=Ue({type:n,selectors:[["app-create-contact"]],viewQuery:function(e,i){if(1&e&&(De(Vz,7),De(Uz,5),De(qz,5),De(zz,5)),2&e){let r;ce(r=ue())&&(i.modalTemp=r.first),ce(r=ue())&&(i.selection=r.first),ce(r=ue())&&(i.areaData=r.first),ce(r=ue())&&(i.previewData=r.first)}},inputs:{data:"data"},features:[Se],decls:2,vars:0,consts:[["create",""],[3,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"modalBody"],["id","createWrapper"],["id","createAddressLabels",3,"ngClass"],[3,"multiple"],["labels",""],["checkboxPosition","after",3,"value","click",4,"ngFor","ngForOf"],["id","createAddressTextArea","rows","23",3,"ngClass"],["areaData",""],["id","createMailContentArea","rows","23","readonly","",4,"ngIf"],["checkboxPosition","after",3,"value","click"],["id","createMailContentArea","rows","23","readonly",""],["previewData",""]],template:function(e,i){1&e&&H(0,Yz,14,22,"ng-template",null,0,Sn)},dependencies:[$a,zn,pn,Ji,$o,Ls,ki],styles:[".createAddressLabelsOwa[_ngcontent-%COMP%]{width:110px!important}.createAddressTextAreaOwa[_ngcontent-%COMP%]{width:148px!important;white-space:pre!important;line-height:16px!important;padding-top:2px!important;overflow-y:hidden!important}textarea[_ngcontent-%COMP%], #createAddressLabels[_ngcontent-%COMP%]{overflow:auto;resize:none;font-size:12px;margin:0 2px;outline:none;display:inline-block;border:1px solid rgb(133,133,133)}#createWrapper[_ngcontent-%COMP%]{white-space:nowrap}#createAddressLabels[_ngcontent-%COMP%]{overflow:hidden}@supports (-moz-transform: none){#createAddressLabels[_ngcontent-%COMP%]{top:3px;position:relative}}#createAddressLabels[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]{padding-top:2px}#createAddressLabels[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]{overflow:auto;resize:none;font-size:12px;margin:0 2px;outline:none;height:auto}#createAddressLabels[_ngcontent-%COMP%], #createAddressTextArea[_ngcontent-%COMP%], #createMailContentArea[_ngcontent-%COMP%]{height:382px}#createAddressLabels[_ngcontent-%COMP%]{width:131px}#createAddressTextArea[_ngcontent-%COMP%]{width:230px;white-space:pre;line-height:16px;padding-top:2px}#createMailContentArea[_ngcontent-%COMP%]{width:600px}"]}),n})();const Jz=["crTicket"],Zz=["tiTypes"];function Xz(n,t){if(1&n){const e=Ie();g(0,"mat-list-option",6),W("dblclick",function(){return J(e),Z(C(2).confirmAction())}),j(1),_()}if(2&n){const e=t.$implicit,i=C(2);_t("value",e.value),v("selected",e.key===i.recent),f(1),qe(" ",e.key," ")}}const e7=function(n){return{title:n}},t7=function(n,t,e,i){return{confirm:n,cancel:t,confirmAction:e,cancelAction:i}};function n7(n,t){if(1&n&&(Wt(0,1),Ze(1,"translate"),g(2,"div",2)(3,"mat-selection-list",3,4),H(5,Xz,2,3,"mat-list-option",5),_()(),Wt(6,1),Ze(7,"translate"),Ze(8,"translate")),2&n){const e=C();v("ngTemplateOutlet",e.modalHeader)("ngTemplateOutletContext",Wn(12,e7,Xe(1,6,"LC53522"))),f(3),v("multiple",!1),f(2),v("ngForOf",e.ticketTypes),f(1),v("ngTemplateOutlet",e.modalFooter)("ngTemplateOutletContext",Yi(14,t7,Xe(7,8,"LC73135"),Xe(8,10,"LC73136"),e.confirmAction.bind(e),e.cancelAction.bind(e)))}}let r7=(()=>{class n extends Yr{constructor(e,i,r,o,s,a,l){super(e),this.translate=e,this.connection=i,this.messageService=r,this.addressService=o,this.globals=s,this.connectionService=a,this.loader=l,this.validTypes=[],this.ticketTypes=[],this.recent=sessionStorage.getItem("recentTicketType")}ngOnInit(){super.ngOnInit(),this.fetchTypes()}confirmAction(){try{this.createTicket()}catch{this.translate.get("LC53493").subscribe(i=>{this.messageService.showError(i)})}}createTicket(){this.loader.activateLoader(!0,!0);const i=this.selection.selectedOptions.selected[0].value.split("#");if(Array.isArray(i)&&i.length>1){let r="";this.addressService.currentAddressData&&(r=this.addressService.currentAddressData.pointer),this.createTicketHandler(this.globals.curMailUnid,i[0],i[1],r+"~#~"+this.globals.curMailAddr)}}createTicketHandler(e,i,r,o,s){const a=this.globals.curConnector.curPostData;this.loader.activateLoader(!0,!0),null!=a&&("Owa"===this.globals.curConnectorType?this.ticketHandlerOWA(a,e,i,r,o,s):this.ticketHandlerVerse(a,e,i,r,o,s))}ticketHandlerVerse(e,i,r,o,s,a){!0===a?this.ticketPost(i,r,o,s,a):this.handleDuplicate(i,r,o,s)}ticketHandlerOWA(e,i,r,o,s,a){this.connectionService.postReq("convert","data="+encodeURIComponent(JSON.stringify(e)),!1,{headers:{"content-type":"application/x-www-form-urlencoded"}}).subscribe({next:l=>{i=l,!0===a||!this.globals.curConnector.curPostData.officeAlreadyDoc&&!this.globals.curConnector.curPostData.ticketAlreadyDoc?this.ticketPost("OWA:"+i,r,o,s,a):this.handleDuplicate(i,r,o,s)},error:l=>{this.loader.forceDeactivateLoader(),this.messageService.showError(l.statusText)},complete:()=>{}})}ticketPost(e,i,r,o,s){const a={mailunid:e,dbalias:i,targetemail:r,addrpointer:o};!0===s&&(a["allow-duplicate"]=!0),this.connection.postReq("ticket",this.connection.objectToHttpParams(a)).subscribe({next:l=>{window.open(this.globals.convertToLink(l.result),"_blank"),this.globals.curConnector.alreadyDocumented={officeAlreadyDoc:this.globals.curConnector.curPostData.officeAlreadyDoc,ticketAlreadyDoc:!0},this.loader.forceDeactivateLoader(),this.translate.get("translationWait").subscribe(c=>{this.messageService.showSuccess(this.globals.languageConfLocal.emailDocumented)}),this.closeAll()},error:l=>{409===l.status?this.handleDuplicate(e,i,r,o):this.messageService.showError(l.statusText)},complete:()=>{}})}handleDuplicate(e,i,r,o){this.loader.forceDeactivateLoader();const s=this.openAnotherModal("duplicate");if(s){const a=s.afterClosed().subscribe(l=>{l?(this.loader.activateLoader(!0,!0),this.createTicketHandler(e,i,r,o,l)):a.unsubscribe()})}}fetchTypes(){this.connection.getReqModal("ticket",null).subscribe(e=>{this.filterTypes(e)})}filterTypes(e){const i={};if(Array.isArray(e))for(const o in e)if(Array.isArray(e[o])&&e[o].length>=2){const s=e[o][0],a=e[o][1];i[s]=a,"giRecentSelection"!==s&&this.ticketTypes.push({key:s,value:a})}if(0===Object.keys(i).length&&i.constructor===Object)return void this.translate.get("LC73225").subscribe(o=>{this.messageService.showError(o)});const r=Object.keys(i);this.validTypes=Object.values(i),window.sessionStorage.setItem("recentTicketType",r[this.validTypes.indexOf(i.giRecentSelection)])}}return n.\u0275fac=function(e){return new(e||n)(p(Ut),p(In),p(tn),p(Ps),p(ot),p(In),p(Fc))},n.\u0275cmp=Ue({type:n,selectors:[["app-create-ticket"]],viewQuery:function(e,i){if(1&e&&(De(Jz,7),De(Zz,5)),2&e){let r;ce(r=ue())&&(i.modalTemp=r.first),ce(r=ue())&&(i.selection=r.first)}},features:[Se],decls:2,vars:0,consts:[["crTicket",""],[3,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"modalBody"],[3,"multiple"],["tiTypes",""],["checkboxPosition","after",3,"value","selected","dblclick",4,"ngFor","ngForOf"],["checkboxPosition","after",3,"value","selected","dblclick"]],template:function(e,i){1&e&&H(0,n7,9,19,"ng-template",null,0,Sn)},dependencies:[zn,Ji,$o,Ls,ki]}),n})(),$b=(()=>{class n{constructor(e,i){this.addressService=e,this.globals=i}reload(e){e&&(this.globals.curMailAddr=this.globals.startMailAddr),this.addressService.resetAddr(),this.addressService.addressChange()}}return n.\u0275fac=function(e){return new(e||n)(M(Ps),M(ot))},n.\u0275prov=ge({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),o7=(()=>{class n{constructor(e,i,r,o,s,a,l){this.translate=e,this.globals=i,this.loader=r,this.connectionService=o,this.messageService=s,this.reloadService=a,this.modalService=l,this.allowDuplicate=!1}documentHandler(e,i,r,o,s){"Owa"===this.globals.curConnectorType?this.documentOWA(e,i,r,o,this.convertProjectsArrToString(s)):this.documentVerse(e,i,r,o,this.convertProjectsArrToString(s))}resetAllowDuplicate(){this.allowDuplicate=!1}convertProjectsArrToString(e){if(!(void 0===e||e.length<1))return e.join(";")}documentVerse(e,i,r,o,s){let a="store";this.globals.deleteAttachments&&(a="storedelattach");let l=new $t;l=l.set("unid",e.messageID),l=l.set("pointer",i),l=l.set("office",r),l=l.set("command",a),s&&(l=l.set("projects",s)),this.allowDuplicate&&(l=l.set("allow-duplicate","true")),this.connectionService.postReq("document",l,!1,{headers:{"content-type":"application/x-www-form-urlencoded"}}).subscribe({next:c=>{null!=c&&""!==c?(this.allowDuplicate=!1,this.loader.activateLoader(!0,!0),this.translate.get("translationWait").subscribe(u=>{this.messageService.showSuccess(this.globals.languageConfLocal.emailDocumented),o.closeAll()}),this.globals.openMail&&(l=new $t,l.set("openDocument",c),window.open(this.globals.convertToLink(c),"_blank")),this.resetAllowDuplicate(),this.reloadService.reload(),o.closeAll(),this.loader.forceDeactivateLoader()):this.translate.get("LC53488").subscribe(u=>{this.allowDuplicate=!1,this.loader.forceDeactivateLoader(),this.messageService.showError(u)})},error:c=>{if(this.allowDuplicate=!1,409===c.status)this.translate.get("LC73006").subscribe(u=>{this.messageService.showError(u),this.text=u,o.text=u,this.allowDuplicate=!0});else if(200!==c.status)return this.translate.get("LC73235").subscribe(u=>{this.messageService.showError(u)}),500===c.status?this.translate.get("LC53552").subscribe(u=>{this.messageService.showError(u,void 0,!0)}):this.messageService.showError(c.statusText),void this.resetAllowDuplicate();this.loader.forceDeactivateLoader()},complete:()=>{}})}documentOWA(e,i,r,o,s){var c,l,a=this;if("gi"===this.globals.system)this.connectionService.postReq("convert","data="+encodeURIComponent(JSON.stringify(e)),!1,{headers:{"content-type":"application/x-www-form-urlencoded"}}).subscribe({next:(l=Ae(function*(c){if(null!=c&&""!==c){a.loader.activateLoader(!0,!0);const u=c;let d="store";a.globals.deleteAttachments&&(d="storedelattach");let h=new $t;if(h=h.set("unid",u),h=h.set("pointer",i),h=h.set("office",r),h=h.set("command",d),h=h.set("origUnid",a.globals.curMailUnid),s&&(h=h.set("projects",s)),a.allowDuplicate&&(h=h.set("allow-duplicate","true"),a.allowDuplicate=!1),"Owa"===a.globals.curConnectorType&&!h.get("allow-duplicate")&&a.globals.curConnector.isMailAlreadyDoc)return a.loader.forceDeactivateLoader(),void a.translate.get("LC73006").subscribe(m=>{a.changeToDuplicateModal(m,o)});a.connectionService.postReq("convert",h,!1).subscribe({next:m=>{a.loader.activateLoader(!0,!0),a.translate.get("emailDocumented").subscribe(y=>{a.globals.curConnector.alreadyDocumented={officeAlreadyDoc:!0,ticketAlreadyDoc:a.globals.curConnector.curPostData.ticketAlreadyDoc},a.messageService.showSuccess(y)}),a.globals.openMail&&(h=new $t,h.set("openDocument",m),window.open(a.globals.convertToLink(m),"_blank")),a.reloadService.reload(),o.closeAll(),a.loader.forceDeactivateLoader()},error:m=>{if(a.loader.forceDeactivateLoader(),409===m.status)a.translate.get("LC73006").subscribe(y=>{a.changeToDuplicateModal(y,o)});else if(200!==m.status)return void(m.statusText.includes("CEGetMail")?(a.messageService.showInfo(a.globals.languageConfLocal.noUserAssignedTicket),setTimeout(()=>{a.modalService.closeAllModals(),a.reloadService.reload()},a.messageService.getTimeoutMS())):(a.translate.get("LC73235").subscribe(y=>{a.messageService.showError(y)}),a.messageService.showError(m.statusText)))},complete:()=>{}})}else a.translate.get("LC53488").subscribe(u=>{a.loader.forceDeactivateLoader(),a.messageService.showError(u)})}),function(u){return l.apply(this,arguments)}),error:l=>{this.messageService.showError(l.statusText),this.loader.forceDeactivateLoader(),o.closeAll()},complete:()=>{}});else{if(this.globals.curConnector.isMailAlreadyDoc&&!this.allowDuplicate)return this.loader.forceDeactivateLoader(),void this.translate.get("LC73006").subscribe(l=>{this.changeToDuplicateModal(l,o)});this.resetAllowDuplicate(),this.connectionService.postReq("document",e,!0,void 0,void 0,"?parentId="+i).subscribe({next:(c=Ae(function*(u){a.baNextHandler(u,o)}),function(d){return c.apply(this,arguments)}),error:function(){var c=Ae(function*(u){if(u.status>=200&&u.status<300)a.baNextHandler(u,o);else{const d=yield u.json();let h="Aktion konnte nicht durchgef\xfchrt werden. Versuchen Sie es sp\xe4ter erneut.";d.hasOwnProperty("ExceptionMessage")?h=d.ExceptionMessage:d.hasOwnProperty("Message")&&(h=d.Message),a.modalService.closeAllModals(),a.messageService.showError(h,"Error"),a.loader.forceDeactivateLoader()}});return function(d){return c.apply(this,arguments)}}(),complete:()=>{}})}}baNextHandler(e,i){var r=this;return Ae(function*(){const o=yield e.json();r.loader.activateLoader(!0,!0),r.translate.get("emailDocumented").subscribe(s=>{r.globals.curConnector.alreadyDocumented={officeAlreadyDoc:!0,ticketAlreadyDoc:r.globals.curConnector.curPostData.ticketAlreadyDoc},r.messageService.showSuccess(s)}),r.globals.openMail&&window.open(o.frontEndUri,"_blank"),r.reloadService.reload(),i.closeAll(),r.loader.forceDeactivateLoader()})()}changeToDuplicateModal(e,i){this.text=e,i.text=e,this.allowDuplicate=!0,this.globals.curConnector.alreadyDocumented={officeAlreadyDoc:!0,ticketAlreadyDoc:this.globals.curConnector.curPostData.ticketAlreadyDoc}}}return n.\u0275fac=function(e){return new(e||n)(M(Ut),M(ot),M(Fc),M(In),M(tn),M($b),M(hl))},n.\u0275prov=ge({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();class kr{}var Yo=(()=>(function(n){n[n.projects=0]="projects",n[n.contacts=1]="contacts",n[n.service=2]="service",n[n.opportunity=3]="opportunity",n[n.events=4]="events",n[n.organization=5]="organization",n[n.office=6]="office",n[n.leads=7]="leads"}(Yo||(Yo={})),Yo))();class s7{}var pa=(()=>(function(n){n[n.alreadyDocumented=0]="alreadyDocumented",n[n.notSupported=1]="notSupported"}(pa||(pa={})),pa))();class tm{}var Ao=(()=>(function(n){n.Contact="Contact",n.Service="Service",n.Opportunity="Opportunity",n.ProjectManagement="ProjectManagement",n.Event="Event",n.Organization="Organization",n.Office="Office",n.Leads="Leads",n.Projects="Projects",n.Events="Events",n.Activities="Activities"}(Ao||(Ao={})),Ao))(),Bc=(()=>(function(n){n.DocumentToAnything="DocumentToAnything|vBA9|vGI8.15|"}(Bc||(Bc={})),Bc))();let a7=(()=>{class n{constructor(e,i,r){this.dialogRef=e,this.translate=i,this.globals=r}ngOnInit(){}closeDialog(e){this.dialogRef.close(e)}}return n.\u0275fac=function(e){return new(e||n)(p(Rc),p(Ut),p(ot))},n.\u0275cmp=Ue({type:n,selectors:[["app-already-documented-component"]],decls:10,vars:7,consts:[["mat-dialog-title",""],[1,"mat-typography"],["align","end"],["mat-button","",3,"click"]],template:function(e,i){1&e&&(g(0,"h2",0),j(1),Ze(2,"translate"),_(),be(3,"mat-dialog-content",1),g(4,"mat-dialog-actions",2)(5,"button",3),W("click",function(){return i.closeDialog(!0)}),j(6),Ze(7,"translate"),_(),g(8,"button",3),W("click",function(){return i.closeDialog(!1)}),j(9),_()()),2&e&&(f(1),ve(Xe(2,3,"LC73006")),f(5),ve(Xe(7,5,"LC73057")),f(3),ve(i.globals.languageConfLocal.NO))},dependencies:[tq,yd,I1,tl,ki],encapsulation:2}),n})(),l7=(()=>{class n{constructor(e,i,r){this.dialogRef=e,this.translate=i,this.globals=r}ngOnInit(){}closeDialog(e){this.dialogRef.close(e)}}return n.\u0275fac=function(e){return new(e||n)(p(Rc),p(Ut),p(ot))},n.\u0275cmp=Ue({type:n,selectors:[["app-not-supported-component"]],decls:5,vars:0,consts:[["align","end"],["mat-button","","mat-dialog-close",""]],template:function(e,i){1&e&&(g(0,"mat-dialog-content"),j(1," Addin does not support read mode for appointments. "),_(),g(2,"mat-dialog-actions",0)(3,"button",1),j(4,"Close"),_()())},dependencies:[X6,yd,I1,tl],encapsulation:2}),n})(),nm=(()=>{class n{constructor(e){this.dialog=e}createDialogWithType(e,i){let r;switch(i||((i=new kc).disableClose=!0,i.autoFocus=!0),e){case pa.alreadyDocumented:r=a7;break;case pa.notSupported:r=l7}return new b(o=>{let s=document.createElement("button");document.body.appendChild(s),s.onclick=()=>{o.next(this.dialog.open(r,i))},s?.click(),s?.remove()})}createCustomDialog(){}}return n.\u0275fac=function(e){return new(e||n)(M(Wo))},n.\u0275prov=ge({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();function xn(n,t,e,i){return new(e||(e=Promise))(function(o,s){function a(u){try{c(i.next(u))}catch(d){s(d)}}function l(u){try{c(i.throw(u))}catch(d){s(d)}}function c(u){u.done?o(u.value):function r(o){return o instanceof e?o:new e(function(s){s(o)})}(u.value).then(a,l)}c((i=i.apply(n,t||[])).next())})}const dI=new Set(["graph.microsoft.com","graph.microsoft.us","dod-graph.microsoft.us","graph.microsoft.de","microsoftgraph.chinacloudapi.cn"]),h7=["$select","$expand","$orderby","$filter","$top","$skip","$skipToken","$count"],Yb=n=>{const t=n&&n.constructor&&n.constructor.name;if("Buffer"===t||"Blob"===t||"File"===t||"FormData"===t||"string"==typeof n)return n;if("ArrayBuffer"===t)n=Buffer.from(n);else if("Int8Array"===t||"Int16Array"===t||"Int32Array"===t||"Uint8Array"===t||"Uint16Array"===t||"Uint32Array"===t||"Uint8ClampedArray"===t||"Float32Array"===t||"Float64Array"===t||"DataView"===t)n=Buffer.from(n.buffer);else try{n=JSON.stringify(n)}catch{throw new Error("Unable to stringify the content")}return n};class il{constructor(t=[]){this.middlewareOptions=new Map;for(const e of t)this.middlewareOptions.set(e.constructor,e)}getMiddlewareOptions(t){return this.middlewareOptions.get(t)}setMiddlewareOptions(t,e){this.middlewareOptions.set(t,e)}}const hI=(n,t,e)=>{let i=null;if(typeof Request<"u"&&n instanceof Request)i=n.headers.get(e);else if(typeof t<"u"&&void 0!==t.headers)if(typeof Headers<"u"&&t.headers instanceof Headers)i=t.headers.get(e);else if(t.headers instanceof Array){const r=t.headers;for(let o=0,s=r.length;o{if(typeof Request<"u"&&n instanceof Request)n.headers.set(e,i);else if(typeof t<"u")if(void 0===t.headers)t.headers=new Headers({[e]:i});else if(typeof Headers<"u"&&t.headers instanceof Headers)t.headers.set(e,i);else if(t.headers instanceof Array){let r=0;const o=t.headers.length;for(;r{typeof Request<"u"&&n instanceof Request?n.headers.append(e,i):typeof t<"u"&&(void 0===t.headers?t.headers=new Headers({[e]:i}):typeof Headers<"u"&&t.headers instanceof Headers?t.headers.append(e,i):t.headers instanceof Array?t.headers.push([e,i]):void 0===t.headers?t.headers={[e]:i}:void 0===t.headers[e]?t.headers[e]=i:t.headers[e]+=`, ${i}`)};var rl=(()=>(function(n){n[n.NONE=0]="NONE",n[n.REDIRECT_HANDLER_ENABLED=1]="REDIRECT_HANDLER_ENABLED",n[n.RETRY_HANDLER_ENABLED=2]="RETRY_HANDLER_ENABLED",n[n.AUTHENTICATION_HANDLER_ENABLED=4]="AUTHENTICATION_HANDLER_ENABLED"}(rl||(rl={})),rl))();class fa{constructor(){this.featureUsage=rl.NONE}static updateFeatureUsageFlag(t,e){let i;t.middlewareControl instanceof il?i=t.middlewareControl.getMiddlewareOptions(fa):t.middlewareControl=new il,typeof i>"u"&&(i=new fa,t.middlewareControl.setMiddlewareOptions(fa,i)),i.setFeatureUsage(e)}setFeatureUsage(t){this.featureUsage=this.featureUsage|t}getFeatureUsage(){return this.featureUsage.toString(16)}}let v7=(()=>{class n{execute(e){return xn(this,void 0,void 0,function*(){try{if((n=>{if(-1!==(n=n.toLowerCase()).indexOf("https://")){const t=(n=n.replace("https://","")).indexOf(":"),e=n.indexOf("/");let i="";if(-1!==e)return-1!==t&&t{let n="";for(let t=0;t<32;t++)(8===t||12===t||16===t||20===t)&&(n+="-"),n+=Math.floor(16*Math.random()).toString(16);return n})(),pI(e.request,e.options,n.CLIENT_REQUEST_ID_HEADER,r));let s,o=`${n.PRODUCT_NAME}/2.2.1`;if(e.middlewareControl instanceof il&&(s=e.middlewareControl.getMiddlewareOptions(fa)),s){const a=s.getFeatureUsage();o+=` (${n.FEATURE_USAGE_STRING}=${a})`}fI(e.request,e.options,n.SDK_VERSION_HEADER,o)}else delete e.options.headers[n.CLIENT_REQUEST_ID_HEADER],delete e.options.headers[n.SDK_VERSION_HEADER];return yield this.nextMiddleware.execute(e)}catch(i){throw i}})}setNext(e){this.nextMiddleware=e}}return n.CLIENT_REQUEST_ID_HEADER="client-request-id",n.SDK_VERSION_HEADER="SdkVersion",n.PRODUCT_NAME="graph-js",n.FEATURE_USAGE_STRING="featureUsage",n})();class b7{constructor(t){this.provider=t}getAccessToken(){return xn(this,void 0,void 0,function*(){return new Promise((t,e)=>{this.provider((i,r)=>{r?t(r):e(i)})})})}}class Md extends Error{constructor(t=-1,e,i){super(e||i&&i.message),Object.setPrototypeOf(this,Md.prototype),this.statusCode=t,this.code=null,this.requestId=null,this.date=new Date,this.body=null,this.stack=i?i.stack:this.stack}}class rm{static constructError(t,e){const i=new Md(e,"",t);return void 0!==t.name&&(i.code=t.name),i.body=t.toString(),i.date=new Date,i}static constructErrorFromResponse(t,e){const i=new Md(e,(t=t.error).message);i.code=t.code,void 0!==t.innerError&&(i.requestId=t.innerError["request-id"],i.date=new Date(t.innerError.date));try{i.body=JSON.stringify(t)}catch{}return i}static getError(t=null,e=-1,i){return xn(this,void 0,void 0,function*(){let r;if(r=t&&t.error?rm.constructErrorFromResponse(t,e):typeof Error<"u"&&t instanceof Error?rm.constructError(t,e):new Md(e),"function"!=typeof i)return r;i(r,null)})}}var Rr=(()=>(function(n){n.ARRAYBUFFER="arraybuffer",n.BLOB="blob",n.DOCUMENT="document",n.JSON="json",n.RAW="raw",n.STREAM="stream",n.TEXT="text"}(Rr||(Rr={})),Rr))(),om=(()=>(function(n){n.TEXT_HTML="text/html",n.TEXT_XML="text/xml",n.APPLICATION_XML="application/xml",n.APPLICATION_XHTML="application/xhtml+xml"}(om||(om={})),om))(),kd=(()=>(function(n){n.TEXT_PLAIN="text/plain",n.APPLICATION_JSON="application/json"}(kd||(kd={})),kd))(),Rd=(()=>(function(n){n.DOCUMENT="^(text\\/(html|xml))|(application\\/(xml|xhtml\\+xml))$",n.IMAGE="^image\\/.+"}(Rd||(Rd={})),Rd))();class Od{static parseDocumentResponse(t,e){try{return typeof DOMParser<"u"?new Promise((i,r)=>{t.text().then(o=>{try{const a=(new DOMParser).parseFromString(o,e);i(a)}catch(s){r(s)}})}):Promise.resolve(t.body)}catch(i){throw i}}static convertResponse(t,e){return xn(this,void 0,void 0,function*(){if(204===t.status)return Promise.resolve();let i;try{switch(e){case Rr.ARRAYBUFFER:i=yield t.arrayBuffer();break;case Rr.BLOB:i=yield t.blob();break;case Rr.DOCUMENT:i=yield Od.parseDocumentResponse(t,om.TEXT_XML);break;case Rr.JSON:i=yield t.json();break;case Rr.STREAM:i=yield Promise.resolve(t.body);break;case Rr.TEXT:i=yield t.text();break;default:const r=t.headers.get("Content-type");if(null!==r){const o=r.split(";")[0];i=new RegExp(Rd.DOCUMENT).test(o)?yield Od.parseDocumentResponse(t,o):new RegExp(Rd.IMAGE).test(o)?t.blob():o===kd.TEXT_PLAIN?yield t.text():o===kd.APPLICATION_JSON?yield t.json():Promise.resolve(t.body)}else i=Promise.resolve(t.body)}}catch(r){throw r}return i})}static getResponse(t,e,i){return xn(this,void 0,void 0,function*(){try{if(e===Rr.RAW)return Promise.resolve(t);{const r=yield Od.convertResponse(t,e);if(!t.ok)throw r;if("function"!=typeof i)return r;i(null,r)}}catch(r){throw r}})}}var ur=(()=>(function(n){n.GET="GET",n.PATCH="PATCH",n.POST="POST",n.PUT="PUT",n.DELETE="DELETE"}(ur||(ur={})),ur))();class C7{constructor(t,e,i){this.parsePath=r=>{if(-1!==r.indexOf("https://")){const s=(r=r.replace("https://","")).indexOf("/");-1!==s&&(this.urlComponents.host="https://"+r.substring(0,s),r=r.substring(s+1,r.length));const a=r.indexOf("/");-1!==a&&(this.urlComponents.version=r.substring(0,a),r=r.substring(a+1,r.length))}"/"===r.charAt(0)&&(r=r.substr(1));const o=r.indexOf("?");if(-1===o)this.urlComponents.path=r;else{this.urlComponents.path=r.substr(0,o);const s=r.substring(o+1,r.length).split("&");for(const a of s)this.parseQueryParameter(a)}},this.httpClient=t,this.config=e,this.urlComponents={host:this.config.baseUrl,version:this.config.defaultVersion,oDataQueryParams:{},otherURLQueryParams:{},otherURLQueryOptions:[]},this._headers={},this._options={},this._middlewareOptions=[],this.parsePath(i)}addCsvQueryParameter(t,e,i){this.urlComponents.oDataQueryParams[t]=this.urlComponents.oDataQueryParams[t]?this.urlComponents.oDataQueryParams[t]+",":"";let r=[];i.length>1&&"string"==typeof e?r=Array.prototype.slice.call(i):"string"==typeof e?r.push(e):r=r.concat(e),this.urlComponents.oDataQueryParams[t]+=r.join(",")}buildFullUrl(){const t=(n=>{const t=o=>o.replace(/\/+$/,""),e=o=>o.replace(/^\/+/,"");return Array.prototype.slice.call([this.urlComponents.host,this.urlComponents.version,this.urlComponents.path]).reduce((o,s)=>[t(o),e(s)].join("/"))})()+this.createQueryString();return this.config.debugLogging&&console.log(t),t}createQueryString(){const t=this.urlComponents,e=[];if(0!==Object.keys(t.oDataQueryParams).length)for(const i in t.oDataQueryParams)t.oDataQueryParams.hasOwnProperty(i)&&e.push(i+"="+t.oDataQueryParams[i]);if(0!==Object.keys(t.otherURLQueryParams).length)for(const i in t.otherURLQueryParams)t.otherURLQueryParams.hasOwnProperty(i)&&e.push(i+"="+t.otherURLQueryParams[i]);if(0!==t.otherURLQueryOptions.length)for(const i of t.otherURLQueryOptions)e.push(i);return e.length>0?"?"+e.join("&"):""}parseQueryParameter(t){if("string"==typeof t)if("?"===t.charAt(0)&&(t=t.substring(1)),-1!==t.indexOf("&")){const e=t.split("&");for(const i of e)this.parseQueryParamenterString(i)}else this.parseQueryParamenterString(t);else if(t.constructor===Object)for(const e in t)t.hasOwnProperty(e)&&this.setURLComponentsQueryParamater(e,t[e]);return this}parseQueryParamenterString(t){if(this.isValidQueryKeyValuePair(t)){const e=t.indexOf("="),i=t.substring(0,e),r=t.substring(e+1);this.setURLComponentsQueryParamater(i,r)}else this.urlComponents.otherURLQueryOptions.push(t)}setURLComponentsQueryParamater(t,e){if(-1!==h7.indexOf(t)){const i=this.urlComponents.oDataQueryParams[t];this.urlComponents.oDataQueryParams[t]=!i||"$expand"!==t&&"$select"!==t&&"$orderby"!==t?e:i+","+e}else this.urlComponents.otherURLQueryParams[t]=e}isValidQueryKeyValuePair(t){const e=t.indexOf("=");return!(-1===e||-1!==t.indexOf("(")&&t.indexOf("(")1?this.parseMiddleWareArray(t):this.middleware=t[0]}parseMiddleWareArray(t){t.forEach((e,i)=>{i{class n{constructor(e){this.authenticationProvider=e}execute(e){return xn(this,void 0,void 0,function*(){try{let i,r,o;e.middlewareControl instanceof il&&(i=e.middlewareControl.getMiddlewareOptions(w7)),typeof i<"u"&&(r=i.authenticationProvider,o=i.authenticationProviderOptions),typeof r>"u"&&(r=this.authenticationProvider);const a=`Bearer ${yield r.getAccessToken(o)}`;return fI(e.request,e.options,n.AUTHORIZATION_HEADER,a),fa.updateFeatureUsageFlag(e,rl.AUTHENTICATION_HANDLER_ENABLED),yield this.nextMiddleware.execute(e)}catch(i){throw i}})}setNext(e){this.nextMiddleware=e}}return n.AUTHORIZATION_HEADER="Authorization",n})();class D7{execute(t){return xn(this,void 0,void 0,function*(){try{return void(t.response=yield fetch(t.request,t.options))}catch(e){throw e}})}}let sm=(()=>{class n{constructor(e=n.DEFAULT_MAX_REDIRECTS,i=n.DEFAULT_SHOULD_RETRY){if(e>n.MAX_MAX_REDIRECTS){const r=new Error(`MaxRedirects should not be more than ${n.MAX_MAX_REDIRECTS}`);throw r.name="MaxLimitExceeded",r}if(e<0){const r=new Error("MaxRedirects should not be negative");throw r.name="MinExpectationNotMet",r}this.maxRedirects=e,this.shouldRedirect=i}}return n.DEFAULT_MAX_REDIRECTS=5,n.MAX_MAX_REDIRECTS=20,n.DEFAULT_SHOULD_RETRY=()=>!0,n})(),Qb=(()=>{class n{constructor(e=n.DEFAULT_DELAY,i=n.DEFAULT_MAX_RETRIES,r=n.DEFAULT_SHOULD_RETRY){if(e>n.MAX_DELAY&&i>n.MAX_MAX_RETRIES){const o=new Error(`Delay and MaxRetries should not be more than ${n.MAX_DELAY} and ${n.MAX_MAX_RETRIES}`);throw o.name="MaxLimitExceeded",o}if(e>n.MAX_DELAY){const o=new Error(`Delay should not be more than ${n.MAX_DELAY}`);throw o.name="MaxLimitExceeded",o}if(i>n.MAX_MAX_RETRIES){const o=new Error(`MaxRetries should not be more than ${n.MAX_MAX_RETRIES}`);throw o.name="MaxLimitExceeded",o}if(e<0&&i<0){const o=new Error("Delay and MaxRetries should not be negative");throw o.name="MinExpectationNotMet",o}if(e<0){const o=new Error("Delay should not be negative");throw o.name="MinExpectationNotMet",o}if(i<0){const o=new Error("MaxRetries should not be negative");throw o.name="MinExpectationNotMet",o}this.delay=Math.min(e,n.MAX_DELAY),this.maxRetries=Math.min(i,n.MAX_MAX_RETRIES),this.shouldRetry=r}getMaxDelay(){return n.MAX_DELAY}}return n.DEFAULT_DELAY=3,n.DEFAULT_MAX_RETRIES=3,n.MAX_DELAY=180,n.MAX_MAX_RETRIES=10,n.DEFAULT_SHOULD_RETRY=()=>!0,n})(),S7=(()=>{class n{constructor(e=new sm){this.options=e}isRedirect(e){return-1!==n.REDIRECT_STATUS_CODES.indexOf(e.status)}hasLocationHeader(e){return e.headers.has(n.LOCATION_HEADER)}getLocationHeader(e){return e.headers.get(n.LOCATION_HEADER)}isRelativeURL(e){return-1===e.indexOf("://")}shouldDropAuthorizationHeader(e,i){const r=/^[A-Za-z].+?:\/\/.+?(?=\/|$)/,o=r.exec(e);let s,a;null!==o&&(s=o[0]);const l=r.exec(i);return null!==l&&(a=l[0]),typeof s<"u"&&typeof a<"u"&&s!==a}updateRequestUrl(e,i){return xn(this,void 0,void 0,function*(){i.request="string"==typeof i.request?e:yield((n,t)=>xn(void 0,void 0,void 0,function*(){const e=t.headers.get("Content-Type")?yield t.blob():yield Promise.resolve(void 0),{method:i,headers:r,referrer:o,referrerPolicy:s,mode:a,credentials:l,cache:c,redirect:u,integrity:d,keepalive:h,signal:m}=t;return new Request(n,{method:i,headers:r,body:e,referrer:o,referrerPolicy:s,mode:a,credentials:l,cache:c,redirect:u,integrity:d,keepalive:h,signal:m})}))(e,i.request)})}getOptions(e){let i;return e.middlewareControl instanceof il&&(i=e.middlewareControl.getMiddlewareOptions(sm)),typeof i>"u"&&(i=Object.assign(new sm,this.options)),i}executeWithRedirect(e,i,r){return xn(this,void 0,void 0,function*(){try{yield this.nextMiddleware.execute(e);const o=e.response;if(!(i{class n{constructor(e=new Qb){this.options=e}isRetry(e){return-1!==n.RETRY_STATUS_CODES.indexOf(e.status)}isBuffered(e,i){const r="string"==typeof e?i.method:e.method;return!((r===ur.PUT||r===ur.PATCH||r===ur.POST)&&"application/octet-stream"===hI(e,i,"Content-Type"))}getDelay(e,i,r){const o=()=>Number(Math.random().toFixed(3)),s=void 0!==e.headers?e.headers.get(n.RETRY_AFTER_HEADER):null;let a;return a=null!==s?Number.isNaN(Number(s))?Math.round((new Date(s).getTime()-Date.now())/1e3):Number(s):i>=2?this.getExponentialBackOffTime(i)+r+o():r+o(),Math.min(a,this.options.getMaxDelay()+o())}getExponentialBackOffTime(e){return Math.round(.5*(Math.pow(2,e)-1))}sleep(e){return xn(this,void 0,void 0,function*(){const i=1e3*e;return new Promise(r=>setTimeout(r,i))})}getOptions(e){let i;return e.middlewareControl instanceof il&&(i=e.middlewareControl.getMiddlewareOptions(this.options.constructor)),typeof i>"u"&&(i=Object.assign(new Qb,this.options)),i}executeWithRetry(e,i,r){return xn(this,void 0,void 0,function*(){try{if(yield this.nextMiddleware.execute(e),i{if(typeof Promise>"u"&&typeof fetch>"u"){const n=new Error("Library cannot function without Promise and fetch. So, please provide polyfill for them.");throw n.name="PolyFillNotAvailable",n}if(typeof Promise>"u"){const n=new Error("Library cannot function without Promise. So, please provide polyfill for it.");throw n.name="PolyFillNotAvailable",n}if(typeof fetch>"u"){const n=new Error("Library cannot function without fetch. So, please provide polyfill for it.");throw n.name="PolyFillNotAvailable",n}})()}catch(i){throw i}for(const i in t)t.hasOwnProperty(i)&&(this.config[i]=t[i]);let e;if(void 0!==t.authProvider&&void 0!==t.middleware){const i=new Error;throw i.name="AmbiguityInInitialization",i.message="Unable to Create Client, Please provide either authentication provider for default middleware chain or custom middleware chain not both",i}if(void 0!==t.authProvider)e=Jb.createWithAuthenticationProvider(t.authProvider);else{if(void 0===t.middleware){const i=new Error;throw i.name="InvalidMiddlewareChain",i.message="Unable to Create Client, Please provide either authentication provider for default middleware chain or custom middleware chain",i}e=new mI(...[].concat(t.middleware))}this.httpClient=e}static init(t){const e={};for(const i in t)t.hasOwnProperty(i)&&(e[i]="authProvider"===i?new b7(t[i]):t[i]);return Pd.initWithMiddleware(e)}static initWithMiddleware(t){try{return new Pd(t)}catch(e){throw e}}api(t){return new C7(this.httpClient,this.config,t)}}class jc{}const Zb={scopes:["user.read","Mail.Read","Mail.Read.Shared","Mail.ReadBasic","Mail.ReadBasic.shared","Mail.ReadWrite","Mail.ReadWrite.Shared","Calendars.ReadWrite","Calendars.ReadBasic","Calendars.Read"]};class I7{}var Xb=function(n,t){return(Xb=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,i){e.__proto__=i}||function(e,i){for(var r in i)Object.prototype.hasOwnProperty.call(i,r)&&(e[r]=i[r])})(n,t)};function Ci(n,t){function e(){this.constructor=n}Xb(n,t),n.prototype=null===t?Object.create(t):(e.prototype=t.prototype,new e)}var ct=function(){return ct=Object.assign||function(t){for(var e,i=1,r=arguments.length;i0&&o[o.length-1])&&(6===c[0]||2===c[0])){e=0;continue}if(3===c[0]&&(!o||c[1]>o[0]&&c[1]0)&&!(r=i.next()).done;)o.push(r.value)}catch(a){s={error:a}}finally{try{r&&!r.done&&(e=i.return)&&e.call(i)}finally{if(s)throw s.error}}return o}function gI(){for(var n=[],t=0;t(function(n){n.AcquireTokenByCode="acquireTokenByCode",n.AcquireTokenByRefreshToken="acquireTokenByRefreshToken",n.AcquireTokenSilent="acquireTokenSilent",n.AcquireTokenSilentAsync="acquireTokenSilentAsync",n.AcquireTokenPopup="acquireTokenPopup",n.CryptoOptsGetPublicKeyThumbprint="cryptoOptsGetPublicKeyThumbprint",n.CryptoOptsSignJwt="cryptoOptsSignJwt",n.SilentCacheClientAcquireToken="silentCacheClientAcquireToken",n.SilentIframeClientAcquireToken="silentIframeClientAcquireToken",n.SilentRefreshClientAcquireToken="silentRefreshClientAcquireToken",n.SsoSilent="ssoSilent",n.StandardInteractionClientGetDiscoveredAuthority="standardInteractionClientGetDiscoveredAuthority",n.FetchAccountIdWithNativeBroker="fetchAccountIdWithNativeBroker",n.NativeInteractionClientAcquireToken="nativeInteractionClientAcquireToken",n.RefreshTokenClientExecuteTokenRequest="refreshTokenClientExecuteTokenRequest",n.BaseClientCreateTokenRequestHeaders="baseClientCreateTokenRequestHeaders",n.BrokerHandhshake="brokerHandshake",n.AcquireTokenByRefreshTokenInBroker="acquireTokenByRefreshTokenInBroker",n.AcquireTokenByBroker="acquireTokenByBroker"}(ci||(ci={})),ci))(),ol=(()=>(function(n){n[n.NotStarted=0]="NotStarted",n[n.InProgress=1]="InProgress",n[n.Completed=2]="Completed"}(ol||(ol={})),ol))(),eC=function(n,t){return(eC=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,i){e.__proto__=i}||function(e,i){for(var r in i)Object.prototype.hasOwnProperty.call(i,r)&&(e[r]=i[r])})(n,t)};function dr(n,t){function e(){this.constructor=n}eC(n,t),n.prototype=null===t?Object.create(t):(e.prototype=t.prototype,new e)}var Gn=function(){return Gn=Object.assign||function(t){for(var e,i=1,r=arguments.length;i0&&o[o.length-1])&&(6===c[0]||2===c[0])){e=0;continue}if(3===c[0]&&(!o||c[1]>o[0]&&c[1](function(n){n.CONTENT_TYPE="Content-Type",n.RETRY_AFTER="Retry-After",n.CCS_HEADER="X-AnchorMailbox",n.WWWAuthenticate="WWW-Authenticate",n.AuthenticationInfo="Authentication-Info"}(Qo||(Qo={})),Qo))(),ii=(()=>(function(n){n.ID_TOKEN="idtoken",n.CLIENT_INFO="client.info",n.ADAL_ID_TOKEN="adal.idtoken",n.ERROR="error",n.ERROR_DESC="error.description",n.ACTIVE_ACCOUNT="active-account",n.ACTIVE_ACCOUNT_FILTERS="active-account-filters"}(ii||(ii={})),ii))(),Nd=(()=>(function(n){n.COMMON="common",n.ORGANIZATIONS="organizations",n.CONSUMERS="consumers"}(Nd||(Nd={})),Nd))(),Mt=(()=>(function(n){n.CLIENT_ID="client_id",n.REDIRECT_URI="redirect_uri",n.RESPONSE_TYPE="response_type",n.RESPONSE_MODE="response_mode",n.GRANT_TYPE="grant_type",n.CLAIMS="claims",n.SCOPE="scope",n.ERROR="error",n.ERROR_DESCRIPTION="error_description",n.ACCESS_TOKEN="access_token",n.ID_TOKEN="id_token",n.REFRESH_TOKEN="refresh_token",n.EXPIRES_IN="expires_in",n.STATE="state",n.NONCE="nonce",n.PROMPT="prompt",n.SESSION_STATE="session_state",n.CLIENT_INFO="client_info",n.CODE="code",n.CODE_CHALLENGE="code_challenge",n.CODE_CHALLENGE_METHOD="code_challenge_method",n.CODE_VERIFIER="code_verifier",n.CLIENT_REQUEST_ID="client-request-id",n.X_CLIENT_SKU="x-client-SKU",n.X_CLIENT_VER="x-client-VER",n.X_CLIENT_OS="x-client-OS",n.X_CLIENT_CPU="x-client-CPU",n.X_CLIENT_CURR_TELEM="x-client-current-telemetry",n.X_CLIENT_LAST_TELEM="x-client-last-telemetry",n.X_MS_LIB_CAPABILITY="x-ms-lib-capability",n.X_APP_NAME="x-app-name",n.X_APP_VER="x-app-ver",n.POST_LOGOUT_URI="post_logout_redirect_uri",n.ID_TOKEN_HINT="id_token_hint",n.DEVICE_CODE="device_code",n.CLIENT_SECRET="client_secret",n.CLIENT_ASSERTION="client_assertion",n.CLIENT_ASSERTION_TYPE="client_assertion_type",n.TOKEN_TYPE="token_type",n.REQ_CNF="req_cnf",n.OBO_ASSERTION="assertion",n.REQUESTED_TOKEN_USE="requested_token_use",n.ON_BEHALF_OF="on_behalf_of",n.FOCI="foci",n.CCS_HEADER="X-AnchorMailbox",n.RETURN_SPA_CODE="return_spa_code",n.NATIVE_BROKER="nativebroker",n.LOGOUT_HINT="logout_hint"}(Mt||(Mt={})),Mt))(),sl=(()=>(function(n){n.ACCESS_TOKEN="access_token",n.XMS_CC="xms_cc"}(sl||(sl={})),sl))(),Li={LOGIN:"login",SELECT_ACCOUNT:"select_account",CONSENT:"consent",NONE:"none",CREATE:"create"},Hc=(()=>(function(n){n.ACCOUNT="account",n.SID="sid",n.LOGIN_HINT="login_hint",n.ID_TOKEN="id_token",n.DOMAIN_HINT="domain_hint",n.ORGANIZATIONS="organizations",n.CONSUMERS="consumers",n.ACCOUNT_ID="accountIdentifier",n.HOMEACCOUNT_ID="homeAccountIdentifier"}(Hc||(Hc={})),Hc))(),vI={PLAIN:"plain",S256:"S256"},Fd=(()=>(function(n){n.QUERY="query",n.FRAGMENT="fragment",n.FORM_POST="form_post"}(Fd||(Fd={})),Fd))(),Bd=(()=>(function(n){n.IMPLICIT_GRANT="implicit",n.AUTHORIZATION_CODE_GRANT="authorization_code",n.CLIENT_CREDENTIALS_GRANT="client_credentials",n.RESOURCE_OWNER_PASSWORD_GRANT="password",n.REFRESH_TOKEN_GRANT="refresh_token",n.DEVICE_CODE_GRANT="device_code",n.JWT_BEARER="urn:ietf:params:oauth:grant-type:jwt-bearer"}(Bd||(Bd={})),Bd))(),Jo=(()=>(function(n){n.MSSTS_ACCOUNT_TYPE="MSSTS",n.ADFS_ACCOUNT_TYPE="ADFS",n.MSAV1_ACCOUNT_TYPE="MSA",n.GENERIC_ACCOUNT_TYPE="Generic"}(Jo||(Jo={})),Jo))(),hr=(()=>(function(n){n.CACHE_KEY_SEPARATOR="-",n.CLIENT_INFO_SEPARATOR="."}(hr||(hr={})),hr))(),zt=(()=>(function(n){n.ID_TOKEN="IdToken",n.ACCESS_TOKEN="AccessToken",n.ACCESS_TOKEN_WITH_AUTH_SCHEME="AccessToken_With_AuthScheme",n.REFRESH_TOKEN="RefreshToken"}(zt||(zt={})),zt))(),ma=(()=>(function(n){n.ACCOUNT="Account",n.CREDENTIAL="Credential",n.ID_TOKEN="IdToken",n.ACCESS_TOKEN="AccessToken",n.REFRESH_TOKEN="RefreshToken",n.APP_METADATA="AppMetadata",n.TEMPORARY="TempCache",n.TELEMETRY="Telemetry",n.UNDEFINED="Undefined",n.THROTTLING="Throttling"}(ma||(ma={})),ma))(),Zo=(()=>(function(n){n[n.ADFS=1001]="ADFS",n[n.MSA=1002]="MSA",n[n.MSSTS=1003]="MSSTS",n[n.GENERIC=1004]="GENERIC",n[n.ACCESS_TOKEN=2001]="ACCESS_TOKEN",n[n.REFRESH_TOKEN=2002]="REFRESH_TOKEN",n[n.ID_TOKEN=2003]="ID_TOKEN",n[n.APP_METADATA=3001]="APP_METADATA",n[n.UNDEFINED=9999]="UNDEFINED"}(Zo||(Zo={})),Zo))(),tC="appmetadata",Or=(()=>(function(n){n.CONFIG="config",n.CACHE="cache",n.NETWORK="network",n.HARDCODED_VALUES="hardcoded_values"}(Or||(Or={})),Or))(),wi={SCHEMA_VERSION:5,MAX_CUR_HEADER_BYTES:80,MAX_LAST_HEADER_BYTES:330,MAX_CACHED_ERRORS:50,CACHE_KEY:"server-telemetry",CATEGORY_SEPARATOR:"|",VALUE_SEPARATOR:",",OVERFLOW_TRUE:"1",OVERFLOW_FALSE:"0",UNKNOWN_ERROR:"unknown_error"},fn=(()=>(function(n){n.BEARER="Bearer",n.POP="pop",n.SSH="ssh-cert"}(fn||(fn={})),fn))(),Vd=(()=>(function(n){n.username="username",n.password="password"}(Vd||(Vd={})),Vd))(),al=(()=>(function(n){n[n.httpSuccess=200]="httpSuccess",n[n.httpBadRequest=400]="httpBadRequest"}(al||(al={})),al))(),Bs=(()=>(function(n){n.FAILED_AUTO_DETECTION="1",n.INTERNAL_CACHE="2",n.ENVIRONMENT_VARIABLE="3",n.IMDS="4"}(Bs||(Bs={})),Bs))(),ga=(()=>(function(n){n.CONFIGURED_MATCHES_DETECTED="1",n.CONFIGURED_NO_AUTO_DETECTION="2",n.CONFIGURED_NOT_DETECTED="3",n.AUTO_DETECTION_REQUESTED_SUCCESSFUL="4",n.AUTO_DETECTION_REQUESTED_FAILED="5"}(ga||(ga={})),ga))(),_a=(()=>(function(n){n.NO_CACHE_HIT="0",n.FORCE_REFRESH="1",n.NO_CACHED_ACCESS_TOKEN="2",n.CACHED_ACCESS_TOKEN_EXPIRED="3",n.REFRESH_CACHED_ACCESS_TOKEN="4"}(_a||(_a={})),_a))(),cm=(()=>(function(n){n.Jwt="JWT",n.Jwk="JWK"}(cm||(cm={})),cm))(),Ud_CHANNEL_ID="53ee284d-920a-4b59-9d30-a60315b26836",Xo=(()=>(function(n){n.HandshakeRequest="Handshake",n.HandshakeResponse="HandshakeResponse",n.GetToken="GetToken",n.Response="Response"}(Xo||(Xo={})),Xo))(),pi=(()=>(function(n){n.LocalStorage="localStorage",n.SessionStorage="sessionStorage",n.MemoryStorage="memoryStorage"}(pi||(pi={})),pi))(),To=(()=>(function(n){n.GET="GET",n.POST="POST"}(To||(To={})),To))(),an=(()=>(function(n){n.AUTHORITY="authority",n.ACQUIRE_TOKEN_ACCOUNT="acquireToken.account",n.SESSION_STATE="session.state",n.REQUEST_STATE="request.state",n.NONCE_IDTOKEN="nonce.id_token",n.ORIGIN_URI="request.origin",n.RENEW_STATUS="token.renew.status",n.URL_HASH="urlHash",n.REQUEST_PARAMS="request.params",n.SCOPES="scopes",n.INTERACTION_STATUS_KEY="interaction.status",n.CCS_CREDENTIAL="ccs.credential",n.CORRELATION_ID="request.correlationId",n.NATIVE_REQUEST="request.native"}(an||(an={})),an))(),ll=(()=>(function(n){n.WRAPPER_SKU="wrapper.sku",n.WRAPPER_VER="wrapper.version"}(ll||(ll={})),ll))(),bn=(()=>(function(n){n[n.acquireTokenRedirect=861]="acquireTokenRedirect",n[n.acquireTokenPopup=862]="acquireTokenPopup",n[n.ssoSilent=863]="ssoSilent",n[n.acquireTokenSilent_authCode=864]="acquireTokenSilent_authCode",n[n.handleRedirectPromise=865]="handleRedirectPromise",n[n.acquireTokenByCode=866]="acquireTokenByCode",n[n.acquireTokenSilent_silentFlow=61]="acquireTokenSilent_silentFlow",n[n.logout=961]="logout",n[n.logoutPopup=962]="logoutPopup"}(bn||(bn={})),bn))(),$e=(()=>(function(n){n.Redirect="redirect",n.Popup="popup",n.Silent="silent",n.None="none"}($e||($e={})),$e))(),fi=(()=>(function(n){n.Startup="startup",n.Login="login",n.Logout="logout",n.AcquireToken="acquireToken",n.SsoSilent="ssoSilent",n.HandleRedirect="handleRedirect",n.None="none"}(fi||(fi={})),fi))(),bI={scopes:Ld},um="jwk",dm=(()=>(function(n){n.React="@azure/msal-react",n.Angular="@azure/msal-angular"}(dm||(dm={})),dm))(),hm="msal.db",pm_unexpectedError_code="unexpected_error",pm_unexpectedError_desc="Unexpected error in authentication.",pm_postRequestFailed_code="post_request_failed",pm_postRequestFailed_desc="Post request failed from the network, could be a 4xx/5xx or a network unavailability. Please check the exact error code for details.",ut=function(n){function t(e,i,r){var o=this;return o=n.call(this,i?e+": "+i:e)||this,Object.setPrototypeOf(o,t.prototype),o.errorCode=e||ee.EMPTY_STRING,o.errorMessage=i||ee.EMPTY_STRING,o.subError=r||ee.EMPTY_STRING,o.name="AuthError",o}return dr(t,n),t.prototype.setCorrelationId=function(e){this.correlationId=e},t.createUnexpectedError=function(e){return new t(pm_unexpectedError_code,pm_unexpectedError_desc+": "+e)},t.createPostRequestFailed=function(e){return new t(pm_postRequestFailed_code,pm_postRequestFailed_desc+": "+e)},t}(Error),fm_missingKidError_code="missing_kid_error",fm_missingKidError_desc="The JOSE Header for the requested JWT, JWS or JWK object requires a keyId to be configured as the 'kid' header claim. No 'kid' value was provided.",fm_missingAlgError_code="missing_alg_error",fm_missingAlgError_desc="The JOSE Header for the requested JWT, JWS or JWK object requires an algorithm to be specified as the 'alg' header claim. No 'alg' value was provided.",CI=function(n){function t(e,i){var r=n.call(this,e,i)||this;return r.name="JoseHeaderError",Object.setPrototypeOf(r,t.prototype),r}return dr(t,n),t.createMissingKidError=function(){return new t(fm_missingKidError_code,fm_missingKidError_desc)},t.createMissingAlgError=function(){return new t(fm_missingAlgError_code,fm_missingAlgError_desc)},t}(ut),L7=function(){function n(t){this.typ=t.typ,this.alg=t.alg,this.kid=t.kid}return n.getShrHeaderString=function(t){if(!t.kid)throw CI.createMissingKidError();if(!t.alg)throw CI.createMissingAlgError();var e=new n({typ:t.typ||cm.Jwt,kid:t.kid,alg:t.alg});return JSON.stringify(e)},n}(),Ni=function(){function n(){}return n.decimalToHex=function(t){for(var e=t.toString(16);e.length<2;)e="0"+e;return e},n}(),wI=function(){function n(t){this.cryptoObj=t}return n.prototype.generateGuid=function(){try{var t=new Uint8Array(16);return this.cryptoObj.getRandomValues(t),t[6]|=64,t[6]&=79,t[8]|=128,t[8]&=191,Ni.decimalToHex(t[0])+Ni.decimalToHex(t[1])+Ni.decimalToHex(t[2])+Ni.decimalToHex(t[3])+"-"+Ni.decimalToHex(t[4])+Ni.decimalToHex(t[5])+"-"+Ni.decimalToHex(t[6])+Ni.decimalToHex(t[7])+"-"+Ni.decimalToHex(t[8])+Ni.decimalToHex(t[9])+"-"+Ni.decimalToHex(t[10])+Ni.decimalToHex(t[11])+Ni.decimalToHex(t[12])+Ni.decimalToHex(t[13])+Ni.decimalToHex(t[14])+Ni.decimalToHex(t[15])}catch{for(var e="xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx",i="0123456789abcdef",r=0,o=ee.EMPTY_STRING,s=0;s<36;s++)"-"!==e[s]&&"4"!==e[s]&&(r=16*Math.random()|0),"x"===e[s]?o+=i[r]:"y"===e[s]?(r&=3,o+=i[r|=8]):o+=e[s];return o}},n.prototype.isGuid=function(t){return/^[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/i.test(t)},n}(),Vc=function(){function n(){}return n.stringToUtf8Arr=function(t){for(var e,i=0,r=t.length,o=0;o>>6),s[a++]=128+(63&e)):e<65536?(s[a++]=224+(e>>>12),s[a++]=128+(e>>>6&63),s[a++]=128+(63&e)):e<2097152?(s[a++]=240+(e>>>18),s[a++]=128+(e>>>12&63),s[a++]=128+(e>>>6&63),s[a++]=128+(63&e)):e<67108864?(s[a++]=248+(e>>>24),s[a++]=128+(e>>>18&63),s[a++]=128+(e>>>12&63),s[a++]=128+(e>>>6&63),s[a++]=128+(63&e)):(s[a++]=252+(e>>>30),s[a++]=128+(e>>>24&63),s[a++]=128+(e>>>18&63),s[a++]=128+(e>>>12&63),s[a++]=128+(e>>>6&63),s[a++]=128+(63&e));return s},n.stringToArrayBuffer=function(t){for(var e=new ArrayBuffer(t.length),i=new Uint8Array(e),r=0;r251&&i<254&&o+5247&&i<252&&o+4239&&i<248&&o+3223&&i<240&&o+2191&&i<224&&o+1>>(r=a%3)&24),(2===r||t.length-a==1)&&(i+=String.fromCharCode(this.uint6ToB64(s>>>18&63),this.uint6ToB64(s>>>12&63),this.uint6ToB64(s>>>6&63),this.uint6ToB64(63&s)),s=0);return 0===e?i:i.substring(0,i.length-e)+(1===e?"=":"==")},n.prototype.uint6ToB64=function(t){return t<26?t+65:t<52?t+71:t<62?t-4:62===t?43:63===t?47:65},n}(),N7=function(){function n(){}return n.prototype.decode=function(t){var e=t.replace(/-/g,"+").replace(/_/g,"/");switch(e.length%4){case 0:break;case 2:e+="==";break;case 3:e+="=";break;default:throw new Error("Invalid base64 string")}var i=this.base64DecToArr(e);return Vc.utf8ArrToString(i)},n.prototype.base64DecToArr=function(t,e){for(var i=t.replace(/[^A-Za-z0-9\+\/]/g,ee.EMPTY_STRING),r=i.length,o=e?Math.ceil((3*r+1>>>2)/e)*e:3*r+1>>>2,s=new Uint8Array(o),a=void 0,l=void 0,c=0,u=0,d=0;d>>(16>>>a&24)&255;c=0}return s},n.prototype.b64ToUint6=function(t){return t>64&&t<91?t-65:t>96&&t<123?t-71:t>47&&t<58?t+4:43===t?62:47===t?63:0},n}(),Fe_clientInfoDecodingError_code="client_info_decoding_error",Fe_clientInfoDecodingError_desc="The client info could not be parsed/decoded correctly. Please review the trace to determine the root cause.",Fe_clientInfoEmptyError_code="client_info_empty_error",Fe_clientInfoEmptyError_desc="The client info was empty. Please review the trace to determine the root cause.",Fe_tokenParsingError_code="token_parsing_error",Fe_tokenParsingError_desc="Token cannot be parsed. Please review stack trace to determine root cause.",Fe_nullOrEmptyToken_code="null_or_empty_token",Fe_nullOrEmptyToken_desc="The token is null or empty. Please review the trace to determine the root cause.",Fe_endpointResolutionError_code="endpoints_resolution_error",Fe_endpointResolutionError_desc="Error: could not resolve endpoints. Please check network and try again.",Fe_networkError_code="network_error",Fe_networkError_desc="Network request failed. Please check network trace to determine root cause.",Fe_unableToGetOpenidConfigError_code="openid_config_error",Fe_unableToGetOpenidConfigError_desc="Could not retrieve endpoints. Check your authority and verify the .well-known/openid-configuration endpoint returns the required endpoints.",Fe_hashNotDeserialized_code="hash_not_deserialized",Fe_hashNotDeserialized_desc="The hash parameters could not be deserialized. Please review the trace to determine the root cause.",Fe_invalidStateError_code="invalid_state",Fe_invalidStateError_desc="State was not the expected format. Please check the logs to determine whether the request was sent using ProtocolUtils.setRequestState().",Fe_stateMismatchError_code="state_mismatch",Fe_stateMismatchError_desc="State mismatch error. Please check your network. Continued requests may cause cache overflow.",Fe_stateNotFoundError_code="state_not_found",Fe_stateNotFoundError_desc="State not found",Fe_nonceMismatchError_code="nonce_mismatch",Fe_nonceMismatchError_desc="Nonce mismatch error. This may be caused by a race condition in concurrent requests.",Fe_nonceNotFoundError_code="nonce_not_found",Fe_nonceNotFoundError_desc="nonce not found",Fe_multipleMatchingTokens_code="multiple_matching_tokens",Fe_multipleMatchingTokens_desc="The cache contains multiple tokens satisfying the requirements. Call AcquireToken again providing more requirements such as authority or account.",Fe_multipleMatchingAccounts_code="multiple_matching_accounts",Fe_multipleMatchingAccounts_desc="The cache contains multiple accounts satisfying the given parameters. Please pass more info to obtain the correct account",Fe_multipleMatchingAppMetadata_code="multiple_matching_appMetadata",Fe_multipleMatchingAppMetadata_desc="The cache contains multiple appMetadata satisfying the given parameters. Please pass more info to obtain the correct appMetadata",Fe_tokenRequestCannotBeMade_code="request_cannot_be_made",Fe_tokenRequestCannotBeMade_desc="Token request cannot be made without authorization code or refresh token.",Fe_appendEmptyScopeError_code="cannot_append_empty_scope",Fe_appendEmptyScopeError_desc="Cannot append null or empty scope to ScopeSet. Please check the stack trace for more info.",Fe_removeEmptyScopeError_code="cannot_remove_empty_scope",Fe_removeEmptyScopeError_desc="Cannot remove null or empty scope from ScopeSet. Please check the stack trace for more info.",Fe_appendScopeSetError_code="cannot_append_scopeset",Fe_appendScopeSetError_desc="Cannot append ScopeSet due to error.",Fe_emptyInputScopeSetError_code="empty_input_scopeset",Fe_emptyInputScopeSetError_desc="Empty input ScopeSet cannot be processed.",Fe_DeviceCodePollingCancelled_code="device_code_polling_cancelled",Fe_DeviceCodePollingCancelled_desc="Caller has cancelled token endpoint polling during device code flow by setting DeviceCodeRequest.cancel = true.",Fe_DeviceCodeExpired_code="device_code_expired",Fe_DeviceCodeExpired_desc="Device code is expired.",Fe_DeviceCodeUnknownError_code="device_code_unknown_error",Fe_DeviceCodeUnknownError_desc="Device code stopped polling for unknown reasons.",Fe_NoAccountInSilentRequest_code="no_account_in_silent_request",Fe_NoAccountInSilentRequest_desc="Please pass an account object, silent flow is not supported without account information",Fe_invalidCacheRecord_code="invalid_cache_record",Fe_invalidCacheRecord_desc="Cache record object was null or undefined.",Fe_invalidCacheEnvironment_code="invalid_cache_environment",Fe_invalidCacheEnvironment_desc="Invalid environment when attempting to create cache entry",Fe_noAccountFound_code="no_account_found",Fe_noAccountFound_desc="No account found in cache for given key.",Fe_CachePluginError_code="no cache plugin set on CacheManager",Fe_CachePluginError_desc="ICachePlugin needs to be set before using readFromStorage or writeFromStorage",Fe_noCryptoObj_code="no_crypto_object",Fe_noCryptoObj_desc="No crypto object detected. This is required for the following operation: ",Fe_invalidCacheType_code="invalid_cache_type",Fe_invalidCacheType_desc="Invalid cache type",Fe_unexpectedAccountType_code="unexpected_account_type",Fe_unexpectedAccountType_desc="Unexpected account type.",Fe_unexpectedCredentialType_code="unexpected_credential_type",Fe_unexpectedCredentialType_desc="Unexpected credential type.",Fe_invalidAssertion_code="invalid_assertion",Fe_invalidAssertion_desc="Client assertion must meet requirements described in https://tools.ietf.org/html/rfc7515",Fe_invalidClientCredential_code="invalid_client_credential",Fe_invalidClientCredential_desc="Client credential (secret, certificate, or assertion) must not be empty when creating a confidential client. An application should at most have one credential",Fe_tokenRefreshRequired_code="token_refresh_required",Fe_tokenRefreshRequired_desc="Cannot return token from cache because it must be refreshed. This may be due to one of the following reasons: forceRefresh parameter is set to true, claims have been requested, there is no cached access token or it is expired.",Fe_userTimeoutReached_code="user_timeout_reached",Fe_userTimeoutReached_desc="User defined timeout for device code polling reached",Fe_tokenClaimsRequired_code="token_claims_cnf_required_for_signedjwt",Fe_tokenClaimsRequired_desc="Cannot generate a POP jwt if the token_claims are not populated",Fe_noAuthorizationCodeFromServer_code="authorization_code_missing_from_server_response",Fe_noAuthorizationCodeFromServer_desc="Server response does not contain an authorization code to proceed",Fe_bindingKeyNotRemovedError_code="binding_key_not_removed",Fe_bindingKeyNotRemovedError_desc="Could not remove the credential's binding key from storage.",Fe_logoutNotSupported_code="end_session_endpoint_not_supported",Fe_logoutNotSupported_desc="Provided authority does not support logout.",Fe_keyIdMissing_code="key_id_missing",Fe_keyIdMissing_desc="A keyId value is missing from the requested bound token's cache record and is required to match the token to it's stored binding key.",nt=function(n){function t(e,i){var r=n.call(this,e,i)||this;return r.name="ClientAuthError",Object.setPrototypeOf(r,t.prototype),r}return dr(t,n),t.createClientInfoDecodingError=function(e){return new t(Fe_clientInfoDecodingError_code,Fe_clientInfoDecodingError_desc+" Failed with error: "+e)},t.createClientInfoEmptyError=function(){return new t(Fe_clientInfoEmptyError_code,""+Fe_clientInfoEmptyError_desc)},t.createTokenParsingError=function(e){return new t(Fe_tokenParsingError_code,Fe_tokenParsingError_desc+" Failed with error: "+e)},t.createTokenNullOrEmptyError=function(e){return new t(Fe_nullOrEmptyToken_code,Fe_nullOrEmptyToken_desc+" Raw Token Value: "+e)},t.createEndpointDiscoveryIncompleteError=function(e){return new t(Fe_endpointResolutionError_code,Fe_endpointResolutionError_desc+" Detail: "+e)},t.createNetworkError=function(e,i){return new t(Fe_networkError_code,Fe_networkError_desc+" | Fetch client threw: "+i+" | Attempted to reach: "+e.split("?")[0])},t.createUnableToGetOpenidConfigError=function(e){return new t(Fe_unableToGetOpenidConfigError_code,Fe_unableToGetOpenidConfigError_desc+" Attempted to retrieve endpoints from: "+e)},t.createHashNotDeserializedError=function(e){return new t(Fe_hashNotDeserialized_code,Fe_hashNotDeserialized_desc+" Given Object: "+e)},t.createInvalidStateError=function(e,i){return new t(Fe_invalidStateError_code,Fe_invalidStateError_desc+" Invalid State: "+e+", Root Err: "+i)},t.createStateMismatchError=function(){return new t(Fe_stateMismatchError_code,Fe_stateMismatchError_desc)},t.createStateNotFoundError=function(e){return new t(Fe_stateNotFoundError_code,Fe_stateNotFoundError_desc+": "+e)},t.createNonceMismatchError=function(){return new t(Fe_nonceMismatchError_code,Fe_nonceMismatchError_desc)},t.createNonceNotFoundError=function(e){return new t(Fe_nonceNotFoundError_code,Fe_nonceNotFoundError_desc+": "+e)},t.createMultipleMatchingTokensInCacheError=function(){return new t(Fe_multipleMatchingTokens_code,Fe_multipleMatchingTokens_desc+".")},t.createMultipleMatchingAccountsInCacheError=function(){return new t(Fe_multipleMatchingAccounts_code,Fe_multipleMatchingAccounts_desc)},t.createMultipleMatchingAppMetadataInCacheError=function(){return new t(Fe_multipleMatchingAppMetadata_code,Fe_multipleMatchingAppMetadata_desc)},t.createTokenRequestCannotBeMadeError=function(){return new t(Fe_tokenRequestCannotBeMade_code,Fe_tokenRequestCannotBeMade_desc)},t.createAppendEmptyScopeToSetError=function(e){return new t(Fe_appendEmptyScopeError_code,Fe_appendEmptyScopeError_desc+" Given Scope: "+e)},t.createRemoveEmptyScopeFromSetError=function(e){return new t(Fe_removeEmptyScopeError_code,Fe_removeEmptyScopeError_desc+" Given Scope: "+e)},t.createAppendScopeSetError=function(e){return new t(Fe_appendScopeSetError_code,Fe_appendScopeSetError_desc+" Detail Error: "+e)},t.createEmptyInputScopeSetError=function(){return new t(Fe_emptyInputScopeSetError_code,""+Fe_emptyInputScopeSetError_desc)},t.createDeviceCodeCancelledError=function(){return new t(Fe_DeviceCodePollingCancelled_code,""+Fe_DeviceCodePollingCancelled_desc)},t.createDeviceCodeExpiredError=function(){return new t(Fe_DeviceCodeExpired_code,""+Fe_DeviceCodeExpired_desc)},t.createDeviceCodeUnknownError=function(){return new t(Fe_DeviceCodeUnknownError_code,""+Fe_DeviceCodeUnknownError_desc)},t.createNoAccountInSilentRequestError=function(){return new t(Fe_NoAccountInSilentRequest_code,""+Fe_NoAccountInSilentRequest_desc)},t.createNullOrUndefinedCacheRecord=function(){return new t(Fe_invalidCacheRecord_code,Fe_invalidCacheRecord_desc)},t.createInvalidCacheEnvironmentError=function(){return new t(Fe_invalidCacheEnvironment_code,Fe_invalidCacheEnvironment_desc)},t.createNoAccountFoundError=function(){return new t(Fe_noAccountFound_code,Fe_noAccountFound_desc)},t.createCachePluginError=function(){return new t(Fe_CachePluginError_code,""+Fe_CachePluginError_desc)},t.createNoCryptoObjectError=function(e){return new t(Fe_noCryptoObj_code,""+Fe_noCryptoObj_desc+e)},t.createInvalidCacheTypeError=function(){return new t(Fe_invalidCacheType_code,""+Fe_invalidCacheType_desc)},t.createUnexpectedAccountTypeError=function(){return new t(Fe_unexpectedAccountType_code,""+Fe_unexpectedAccountType_desc)},t.createUnexpectedCredentialTypeError=function(){return new t(Fe_unexpectedCredentialType_code,""+Fe_unexpectedCredentialType_desc)},t.createInvalidAssertionError=function(){return new t(Fe_invalidAssertion_code,""+Fe_invalidAssertion_desc)},t.createInvalidCredentialError=function(){return new t(Fe_invalidClientCredential_code,""+Fe_invalidClientCredential_desc)},t.createRefreshRequiredError=function(){return new t(Fe_tokenRefreshRequired_code,Fe_tokenRefreshRequired_desc)},t.createUserTimeoutReachedError=function(){return new t(Fe_userTimeoutReached_code,Fe_userTimeoutReached_desc)},t.createTokenClaimsRequiredError=function(){return new t(Fe_tokenClaimsRequired_code,Fe_tokenClaimsRequired_desc)},t.createNoAuthCodeInServerResponseError=function(){return new t(Fe_noAuthorizationCodeFromServer_code,Fe_noAuthorizationCodeFromServer_desc)},t.createBindingKeyNotRemovedError=function(){return new t(Fe_bindingKeyNotRemovedError_code,Fe_bindingKeyNotRemovedError_desc)},t.createLogoutNotSupportedError=function(){return new t(Fe_logoutNotSupported_code,Fe_logoutNotSupported_desc)},t.createKeyIdMissingError=function(){return new t(Fe_keyIdMissing_code,Fe_keyIdMissing_desc)},t}(ut),Ke=function(){function n(){}return n.decodeAuthToken=function(t){if(n.isEmpty(t))throw nt.createTokenNullOrEmptyError(t);var i=/^([^\.\s]*)\.([^\.\s]+)\.([^\.\s]*)$/.exec(t);if(!i||i.length<4)throw nt.createTokenParsingError("Given token is malformed: "+JSON.stringify(t));return{header:i[1],JWSPayload:i[2],JWSSig:i[3]}},n.isEmpty=function(t){return typeof t>"u"||!t||0===t.length},n.isEmptyObj=function(t){if(t&&!n.isEmpty(t))try{var e=JSON.parse(t);return 0===Object.keys(e).length}catch{}return!0},n.startsWith=function(t,e){return 0===t.indexOf(e)},n.endsWith=function(t,e){return t.length>=e.length&&t.lastIndexOf(e)===t.length-e.length},n.queryStringToObject=function(t){var e={},i=t.split("&"),r=function(o){return decodeURIComponent(o.replace(/\+/g," "))};return i.forEach(function(o){if(o.trim()){var s=o.split(/=(.+)/g,2),a=s[0],l=s[1];a&&l&&(e[r(a)]=r(l))}}),e},n.trimArrayEntries=function(t){return t.map(function(e){return e.trim()})},n.removeEmptyStringsFromArray=function(t){return t.filter(function(e){return!n.isEmpty(e)})},n.jsonParseHelper=function(t){try{return JSON.parse(t)}catch{return null}},n.matchPattern=function(t,e){return new RegExp(t.replace(/\\/g,"\\\\").replace(/\*/g,"[^ ]*").replace(/\?/g,"\\?")).test(e)},n}(),Re_pkceNotGenerated_code="pkce_not_created",Re_pkceNotGenerated_desc="The PKCE code challenge and verifier could not be generated.",Re_cryptoDoesNotExist_code="crypto_nonexistent",Re_cryptoDoesNotExist_desc="The crypto object or function is not available.",Re_httpMethodNotImplementedError_code="http_method_not_implemented",Re_httpMethodNotImplementedError_desc="The HTTP method given has not been implemented in this library.",Re_emptyNavigateUriError_code="empty_navigate_uri",Re_emptyNavigateUriError_desc="Navigation URI is empty. Please check stack trace for more info.",Re_hashEmptyError_code="hash_empty_error",Re_hashEmptyError_desc="Hash value cannot be processed because it is empty. Please verify that your redirectUri is not clearing the hash. For more visit: aka.ms/msaljs/browser-errors.",Re_hashDoesNotContainStateError_code="no_state_in_hash",Re_hashDoesNotContainStateError_desc="Hash does not contain state. Please verify that the request originated from msal.",Re_hashDoesNotContainKnownPropertiesError_code="hash_does_not_contain_known_properties",Re_hashDoesNotContainKnownPropertiesError_desc="Hash does not contain known properites. Please verify that your redirectUri is not changing the hash. For more visit: aka.ms/msaljs/browser-errors.",Re_unableToParseStateError_code="unable_to_parse_state",Re_unableToParseStateError_desc="Unable to parse state. Please verify that the request originated from msal.",Re_stateInteractionTypeMismatchError_code="state_interaction_type_mismatch",Re_stateInteractionTypeMismatchError_desc="Hash contains state but the interaction type does not match the caller.",Re_interactionInProgress_code="interaction_in_progress",Re_interactionInProgress_desc="Interaction is currently in progress. Please ensure that this interaction has been completed before calling an interactive API. For more visit: aka.ms/msaljs/browser-errors.",Re_popupWindowError_code="popup_window_error",Re_popupWindowError_desc="Error opening popup window. This can happen if you are using IE or if popups are blocked in the browser.",Re_emptyWindowError_code="empty_window_error",Re_emptyWindowError_desc="window.open returned null or undefined window object.",Re_userCancelledError_code="user_cancelled",Re_userCancelledError_desc="User cancelled the flow.",Re_monitorPopupTimeoutError_code="monitor_window_timeout",Re_monitorPopupTimeoutError_desc="Token acquisition in popup failed due to timeout. For more visit: aka.ms/msaljs/browser-errors.",Re_monitorIframeTimeoutError_code="monitor_window_timeout",Re_monitorIframeTimeoutError_desc="Token acquisition in iframe failed due to timeout. For more visit: aka.ms/msaljs/browser-errors.",Re_redirectInIframeError_code="redirect_in_iframe",Re_redirectInIframeError_desc="Redirects are not supported for iframed or brokered applications. Please ensure you are using MSAL.js in a top frame of the window if using the redirect APIs, or use the popup APIs.",Re_blockTokenRequestsInHiddenIframeError_code="block_iframe_reload",Re_blockTokenRequestsInHiddenIframeError_desc="Request was blocked inside an iframe because MSAL detected an authentication response. For more visit: aka.ms/msaljs/browser-errors",Re_blockAcquireTokenInPopupsError_code="block_nested_popups",Re_blockAcquireTokenInPopupsError_desc="Request was blocked inside a popup because MSAL detected it was running in a popup.",Re_iframeClosedPrematurelyError_code="iframe_closed_prematurely",Re_iframeClosedPrematurelyError_desc="The iframe being monitored was closed prematurely.",Re_silentLogoutUnsupportedError_code="silent_logout_unsupported",Re_silentLogoutUnsupportedError_desc="Silent logout not supported. Please call logoutRedirect or logoutPopup instead.",Re_noAccountError_code="no_account_error",Re_noAccountError_desc="No account object provided to acquireTokenSilent and no active account has been set. Please call setActiveAccount or provide an account on the request.",Re_silentPromptValueError_code="silent_prompt_value_error",Re_silentPromptValueError_desc="The value given for the prompt value is not valid for silent requests - must be set to 'none'.",Re_noTokenRequestCacheError_code="no_token_request_cache_error",Re_noTokenRequestCacheError_desc="No token request found in cache.",Re_unableToParseTokenRequestCacheError_code="unable_to_parse_token_request_cache_error",Re_unableToParseTokenRequestCacheError_desc="The cached token request could not be parsed.",Re_noCachedAuthorityError_code="no_cached_authority_error",Re_noCachedAuthorityError_desc="No cached authority found.",Re_authRequestNotSet_code="auth_request_not_set_error",Re_authRequestNotSet_desc="Auth Request not set. Please ensure initiateAuthRequest was called from the InteractionHandler",Re_invalidCacheType_code="invalid_cache_type",Re_invalidCacheType_desc="Invalid cache type",Re_notInBrowserEnvironment_code="non_browser_environment",Re_notInBrowserEnvironment_desc="Login and token requests are not supported in non-browser environments.",Re_databaseNotOpen_code="database_not_open",Re_databaseNotOpen_desc="Database is not open!",Re_noNetworkConnectivity_code="no_network_connectivity",Re_noNetworkConnectivity_desc="No network connectivity. Check your internet connection.",Re_postRequestFailed_code="post_request_failed",Re_postRequestFailed_desc="Network request failed: If the browser threw a CORS error, check that the redirectUri is registered in the Azure App Portal as type 'SPA'",Re_getRequestFailed_code="get_request_failed",Re_getRequestFailed_desc="Network request failed. Please check the network trace to determine root cause.",Re_failedToParseNetworkResponse_code="failed_to_parse_response",Re_failedToParseNetworkResponse_desc="Failed to parse network response. Check network trace.",Re_unableToLoadTokenError_code="unable_to_load_token",Re_unableToLoadTokenError_desc="Error loading token to cache.",Re_signingKeyNotFoundInStorage_code="crypto_key_not_found",Re_signingKeyNotFoundInStorage_desc="Cryptographic Key or Keypair not found in browser storage.",Re_authCodeRequired_code="auth_code_required",Re_authCodeRequired_desc="An authorization code must be provided (as the `code` property on the request) to this flow.",Re_authCodeOrNativeAccountRequired_code="auth_code_or_nativeAccountId_required",Re_authCodeOrNativeAccountRequired_desc="An authorization code or nativeAccountId must be provided to this flow.",Re_databaseUnavailable_code="database_unavailable",Re_databaseUnavailable_desc="IndexedDB, which is required for persistent cryptographic key storage, is unavailable. This may be caused by browser privacy features which block persistent storage in third-party contexts.",Re_unableToAcquireTokenFromNativePlatform_code="unable_to_acquire_token_from_native_platform",Re_unableToAcquireTokenFromNativePlatform_desc="Unable to acquire token from native platform. For a list of possible reasons visit aka.ms/msaljs/browser-errors.",Re_nativeHandshakeTimeout_code="native_handshake_timeout",Re_nativeHandshakeTimeout_desc="Timed out while attempting to establish connection to browser extension",Re_nativeExtensionNotInstalled_code="native_extension_not_installed",Re_nativeExtensionNotInstalled_desc="Native extension is not installed. If you think this is a mistake call the initialize function.",Re_nativeConnectionNotEstablished_code="native_connection_not_established",Re_nativeConnectionNotEstablished_desc="Connection to native platform has not been established. Please install a compatible browser extension and run initialize(). For more please visit aka.ms/msaljs/browser-errors.",Re_nativeBrokerCalledBeforeInitialize_code="native_broker_called_before_initialize",Re_nativeBrokerCalledBeforeInitialize_desc="You must call and await the initialize function before attempting to call any other MSAL API when native brokering is enabled. For more please visit aka.ms/msaljs/browser-errors.",Re_nativePromptNotSupported_code="native_prompt_not_supported",Re_nativePromptNotSupported_desc="The provided prompt is not supported by the native platform. This request should be routed to the web based flow.",ze=function(n){function t(e,i){var r=n.call(this,e,i)||this;return Object.setPrototypeOf(r,t.prototype),r.name="BrowserAuthError",r}return Ci(t,n),t.createPkceNotGeneratedError=function(e){return new t(Re_pkceNotGenerated_code,Re_pkceNotGenerated_desc+" Detail:"+e)},t.createCryptoNotAvailableError=function(e){return new t(Re_cryptoDoesNotExist_code,Re_cryptoDoesNotExist_desc+" Detail:"+e)},t.createHttpMethodNotImplementedError=function(e){return new t(Re_httpMethodNotImplementedError_code,Re_httpMethodNotImplementedError_desc+" Given Method: "+e)},t.createEmptyNavigationUriError=function(){return new t(Re_emptyNavigateUriError_code,Re_emptyNavigateUriError_desc)},t.createEmptyHashError=function(e){return new t(Re_hashEmptyError_code,Re_hashEmptyError_desc+" Given Url: "+e)},t.createHashDoesNotContainStateError=function(){return new t(Re_hashDoesNotContainStateError_code,Re_hashDoesNotContainStateError_desc)},t.createHashDoesNotContainKnownPropertiesError=function(){return new t(Re_hashDoesNotContainKnownPropertiesError_code,Re_hashDoesNotContainKnownPropertiesError_desc)},t.createUnableToParseStateError=function(){return new t(Re_unableToParseStateError_code,Re_unableToParseStateError_desc)},t.createStateInteractionTypeMismatchError=function(){return new t(Re_stateInteractionTypeMismatchError_code,Re_stateInteractionTypeMismatchError_desc)},t.createInteractionInProgressError=function(){return new t(Re_interactionInProgress_code,Re_interactionInProgress_desc)},t.createPopupWindowError=function(e){var i=Re_popupWindowError_desc;return i=Ke.isEmpty(e)?i:i+" Details: "+e,new t(Re_popupWindowError_code,i)},t.createEmptyWindowCreatedError=function(){return new t(Re_emptyWindowError_code,Re_emptyWindowError_desc)},t.createUserCancelledError=function(){return new t(Re_userCancelledError_code,Re_userCancelledError_desc)},t.createMonitorPopupTimeoutError=function(){return new t(Re_monitorPopupTimeoutError_code,Re_monitorPopupTimeoutError_desc)},t.createMonitorIframeTimeoutError=function(){return new t(Re_monitorIframeTimeoutError_code,Re_monitorIframeTimeoutError_desc)},t.createRedirectInIframeError=function(e){return new t(Re_redirectInIframeError_code,Re_redirectInIframeError_desc+" (window.parent !== window) => "+e)},t.createBlockReloadInHiddenIframeError=function(){return new t(Re_blockTokenRequestsInHiddenIframeError_code,Re_blockTokenRequestsInHiddenIframeError_desc)},t.createBlockAcquireTokenInPopupsError=function(){return new t(Re_blockAcquireTokenInPopupsError_code,Re_blockAcquireTokenInPopupsError_desc)},t.createIframeClosedPrematurelyError=function(){return new t(Re_iframeClosedPrematurelyError_code,Re_iframeClosedPrematurelyError_desc)},t.createSilentLogoutUnsupportedError=function(){return new t(Re_silentLogoutUnsupportedError_code,Re_silentLogoutUnsupportedError_desc)},t.createNoAccountError=function(){return new t(Re_noAccountError_code,Re_noAccountError_desc)},t.createSilentPromptValueError=function(e){return new t(Re_silentPromptValueError_code,Re_silentPromptValueError_desc+" Given value: "+e)},t.createUnableToParseTokenRequestCacheError=function(){return new t(Re_unableToParseTokenRequestCacheError_code,Re_unableToParseTokenRequestCacheError_desc)},t.createNoTokenRequestCacheError=function(){return new t(Re_noTokenRequestCacheError_code,Re_noTokenRequestCacheError_desc)},t.createAuthRequestNotSetError=function(){return new t(Re_authRequestNotSet_code,Re_authRequestNotSet_desc)},t.createNoCachedAuthorityError=function(){return new t(Re_noCachedAuthorityError_code,Re_noCachedAuthorityError_desc)},t.createInvalidCacheTypeError=function(){return new t(Re_invalidCacheType_code,""+Re_invalidCacheType_desc)},t.createNonBrowserEnvironmentError=function(){return new t(Re_notInBrowserEnvironment_code,Re_notInBrowserEnvironment_desc)},t.createDatabaseNotOpenError=function(){return new t(Re_databaseNotOpen_code,Re_databaseNotOpen_desc)},t.createNoNetworkConnectivityError=function(){return new t(Re_noNetworkConnectivity_code,Re_noNetworkConnectivity_desc)},t.createPostRequestFailedError=function(e,i){return new t(Re_postRequestFailed_code,Re_postRequestFailed_desc+" | Network client threw: "+e+" | Attempted to reach: "+i.split("?")[0])},t.createGetRequestFailedError=function(e,i){return new t(Re_getRequestFailed_code,Re_getRequestFailed_desc+" | Network client threw: "+e+" | Attempted to reach: "+i.split("?")[0])},t.createFailedToParseNetworkResponseError=function(e){return new t(Re_failedToParseNetworkResponse_code,Re_failedToParseNetworkResponse_desc+" | Attempted to reach: "+e.split("?")[0])},t.createUnableToLoadTokenError=function(e){return new t(Re_unableToLoadTokenError_code,Re_unableToLoadTokenError_desc+" | "+e)},t.createSigningKeyNotFoundInStorageError=function(e){return new t(Re_signingKeyNotFoundInStorage_code,Re_signingKeyNotFoundInStorage_desc+" | No match found for KeyId: "+e)},t.createAuthCodeRequiredError=function(){return new t(Re_authCodeRequired_code,Re_authCodeRequired_desc)},t.createAuthCodeOrNativeAccountIdRequiredError=function(){return new t(Re_authCodeOrNativeAccountRequired_code,Re_authCodeOrNativeAccountRequired_desc)},t.createDatabaseUnavailableError=function(){return new t(Re_databaseUnavailable_code,Re_databaseUnavailable_desc)},t.createUnableToAcquireTokenFromNativePlatformError=function(){return new t(Re_unableToAcquireTokenFromNativePlatform_code,Re_unableToAcquireTokenFromNativePlatform_desc)},t.createNativeHandshakeTimeoutError=function(){return new t(Re_nativeHandshakeTimeout_code,Re_nativeHandshakeTimeout_desc)},t.createNativeExtensionNotInstalledError=function(){return new t(Re_nativeExtensionNotInstalled_code,Re_nativeExtensionNotInstalled_desc)},t.createNativeConnectionNotEstablishedError=function(){return new t(Re_nativeConnectionNotEstablished_code,Re_nativeConnectionNotEstablished_desc)},t.createNativeBrokerCalledBeforeInitialize=function(){return new t(Re_nativeBrokerCalledBeforeInitialize_code,Re_nativeBrokerCalledBeforeInitialize_desc)},t.createNativePromptParameterNotSupportedError=function(){return new t(Re_nativePromptNotSupported_code,Re_nativePromptNotSupported_desc)},t}(ut),B7=function(){function n(t){this.base64Encode=new EI,this.cryptoObj=t}return n.prototype.generateCodes=function(){return Oe(this,void 0,void 0,function(){var t,e;return Pe(this,function(i){switch(i.label){case 0:return t=this.generateCodeVerifier(),[4,this.generateCodeChallengeFromVerifier(t)];case 1:return e=i.sent(),[2,{verifier:t,challenge:e}]}})})},n.prototype.generateCodeVerifier=function(){try{var t=new Uint8Array(32);return this.cryptoObj.getRandomValues(t),this.base64Encode.urlEncodeArr(t)}catch(i){throw ze.createPkceNotGeneratedError(i)}},n.prototype.generateCodeChallengeFromVerifier=function(t){return Oe(this,void 0,void 0,function(){var e,i;return Pe(this,function(r){switch(r.label){case 0:return r.trys.push([0,2,,3]),[4,this.cryptoObj.sha256Digest(t)];case 1:return e=r.sent(),[2,this.base64Encode.urlEncodeArr(new Uint8Array(e))];case 2:throw i=r.sent(),ze.createPkceNotGeneratedError(i);case 3:return[2]}})})},n}(),nC="SHA-256",V7=new Uint8Array([1,0,1]),mm=function(){function n(t){if(this.logger=t,!this.hasCryptoAPI())throw ze.createCryptoNotAvailableError("Browser crypto or msCrypto object not available.");this._keygenAlgorithmOptions={name:"RSASSA-PKCS1-v1_5",hash:nC,modulusLength:2048,publicExponent:V7}}return n.prototype.sha256Digest=function(t){return Oe(this,void 0,void 0,function(){var e;return Pe(this,function(i){return e=Vc.stringToUtf8Arr(t),[2,this.hasIECrypto()?this.getMSCryptoDigest(nC,e):this.getSubtleCryptoDigest(nC,e)]})})},n.prototype.getRandomValues=function(t){var e=window.msCrypto||window.crypto;if(!e.getRandomValues)throw ze.createCryptoNotAvailableError("getRandomValues does not exist.");e.getRandomValues(t)},n.prototype.generateKeyPair=function(t,e){return Oe(this,void 0,void 0,function(){return Pe(this,function(i){return[2,this.hasIECrypto()?this.msCryptoGenerateKey(t,e):window.crypto.subtle.generateKey(this._keygenAlgorithmOptions,t,e)]})})},n.prototype.exportJwk=function(t){return Oe(this,void 0,void 0,function(){return Pe(this,function(e){return[2,this.hasIECrypto()?this.msCryptoExportJwk(t):window.crypto.subtle.exportKey(um,t)]})})},n.prototype.importJwk=function(t,e,i){return Oe(this,void 0,void 0,function(){var r,o;return Pe(this,function(s){return r=n.getJwkString(t),o=Vc.stringToArrayBuffer(r),[2,this.hasIECrypto()?this.msCryptoImportKey(o,e,i):window.crypto.subtle.importKey(um,t,this._keygenAlgorithmOptions,e,i)]})})},n.prototype.sign=function(t,e){return Oe(this,void 0,void 0,function(){return Pe(this,function(i){return[2,this.hasIECrypto()?this.msCryptoSign(t,e):window.crypto.subtle.sign(this._keygenAlgorithmOptions,t,e)]})})},n.prototype.hasCryptoAPI=function(){return this.hasIECrypto()||this.hasBrowserCrypto()},n.prototype.hasIECrypto=function(){return"msCrypto"in window},n.prototype.hasBrowserCrypto=function(){return"crypto"in window},n.prototype.getSubtleCryptoDigest=function(t,e){return Oe(this,void 0,void 0,function(){return Pe(this,function(i){return[2,window.crypto.subtle.digest(t,e)]})})},n.prototype.getMSCryptoDigest=function(t,e){return Oe(this,void 0,void 0,function(){return Pe(this,function(i){return[2,new Promise(function(r,o){var s=window.msCrypto.subtle.digest(t,e.buffer);s.addEventListener("complete",function(a){r(a.target.result)}),s.addEventListener("error",function(a){o(a)})})]})})},n.prototype.msCryptoGenerateKey=function(t,e){return Oe(this,void 0,void 0,function(){var i=this;return Pe(this,function(r){return[2,new Promise(function(o,s){var a=window.msCrypto.subtle.generateKey(i._keygenAlgorithmOptions,t,e);a.addEventListener("complete",function(l){o(l.target.result)}),a.addEventListener("error",function(l){s(l)})})]})})},n.prototype.msCryptoExportJwk=function(t){return Oe(this,void 0,void 0,function(){return Pe(this,function(e){return[2,new Promise(function(i,r){var o=window.msCrypto.subtle.exportKey(um,t);o.addEventListener("complete",function(s){var l=Vc.utf8ArrToString(new Uint8Array(s.target.result)).replace(/\r/g,ee.EMPTY_STRING).replace(/\n/g,ee.EMPTY_STRING).replace(/\t/g,ee.EMPTY_STRING).split(" ").join(ee.EMPTY_STRING).replace("\0",ee.EMPTY_STRING);try{i(JSON.parse(l))}catch(c){r(c)}}),o.addEventListener("error",function(s){r(s)})})]})})},n.prototype.msCryptoImportKey=function(t,e,i){return Oe(this,void 0,void 0,function(){var r=this;return Pe(this,function(o){return[2,new Promise(function(s,a){var l=window.msCrypto.subtle.importKey(um,t,r._keygenAlgorithmOptions,e,i);l.addEventListener("complete",function(c){s(c.target.result)}),l.addEventListener("error",function(c){a(c)})})]})})},n.prototype.msCryptoSign=function(t,e){return Oe(this,void 0,void 0,function(){var i=this;return Pe(this,function(r){return[2,new Promise(function(o,s){var a=window.msCrypto.subtle.sign(i._keygenAlgorithmOptions,t,e);a.addEventListener("complete",function(l){o(l.target.result)}),a.addEventListener("error",function(l){s(l)})})]})})},n.getJwkString=function(t){return JSON.stringify(t,Object.keys(t).sort())},n}(),U7=function(){function n(){this.dbName=hm,this.version=1,this.tableName="msal.db.keys",this.dbOpen=!1}return n.prototype.open=function(){return Oe(this,void 0,void 0,function(){var t=this;return Pe(this,function(e){return[2,new Promise(function(i,r){var o=window.indexedDB.open(t.dbName,t.version);o.addEventListener("upgradeneeded",function(s){s.target.result.createObjectStore(t.tableName)}),o.addEventListener("success",function(s){t.db=s.target.result,t.dbOpen=!0,i()}),o.addEventListener("error",function(){return r(ze.createDatabaseUnavailableError())})})]})})},n.prototype.closeConnection=function(){var t=this.db;t&&this.dbOpen&&(t.close(),this.dbOpen=!1)},n.prototype.validateDbIsOpen=function(){return Oe(this,void 0,void 0,function(){return Pe(this,function(t){switch(t.label){case 0:return this.dbOpen?[3,2]:[4,this.open()];case 1:return[2,t.sent()];case 2:return[2]}})})},n.prototype.getItem=function(t){return Oe(this,void 0,void 0,function(){var e=this;return Pe(this,function(i){switch(i.label){case 0:return[4,this.validateDbIsOpen()];case 1:return i.sent(),[2,new Promise(function(r,o){if(!e.db)return o(ze.createDatabaseNotOpenError());var l=e.db.transaction([e.tableName],"readonly").objectStore(e.tableName).get(t);l.addEventListener("success",function(c){var u=c;e.closeConnection(),r(u.target.result)}),l.addEventListener("error",function(c){e.closeConnection(),o(c)})})]}})})},n.prototype.setItem=function(t,e){return Oe(this,void 0,void 0,function(){var i=this;return Pe(this,function(r){switch(r.label){case 0:return[4,this.validateDbIsOpen()];case 1:return r.sent(),[2,new Promise(function(o,s){if(!i.db)return s(ze.createDatabaseNotOpenError());var c=i.db.transaction([i.tableName],"readwrite").objectStore(i.tableName).put(e,t);c.addEventListener("success",function(){i.closeConnection(),o()}),c.addEventListener("error",function(u){i.closeConnection(),s(u)})})]}})})},n.prototype.removeItem=function(t){return Oe(this,void 0,void 0,function(){var e=this;return Pe(this,function(i){switch(i.label){case 0:return[4,this.validateDbIsOpen()];case 1:return i.sent(),[2,new Promise(function(r,o){if(!e.db)return o(ze.createDatabaseNotOpenError());var l=e.db.transaction([e.tableName],"readwrite").objectStore(e.tableName).delete(t);l.addEventListener("success",function(){e.closeConnection(),r()}),l.addEventListener("error",function(c){e.closeConnection(),o(c)})})]}})})},n.prototype.getKeys=function(){return Oe(this,void 0,void 0,function(){var t=this;return Pe(this,function(e){switch(e.label){case 0:return[4,this.validateDbIsOpen()];case 1:return e.sent(),[2,new Promise(function(i,r){if(!t.db)return r(ze.createDatabaseNotOpenError());var a=t.db.transaction([t.tableName],"readonly").objectStore(t.tableName).getAllKeys();a.addEventListener("success",function(l){var c=l;t.closeConnection(),i(c.target.result)}),a.addEventListener("error",function(l){t.closeConnection(),r(l)})})]}})})},n.prototype.containsKey=function(t){return Oe(this,void 0,void 0,function(){var e=this;return Pe(this,function(i){switch(i.label){case 0:return[4,this.validateDbIsOpen()];case 1:return i.sent(),[2,new Promise(function(r,o){if(!e.db)return o(ze.createDatabaseNotOpenError());var l=e.db.transaction([e.tableName],"readonly").objectStore(e.tableName).count(t);l.addEventListener("success",function(c){var u=c;e.closeConnection(),r(1===u.target.result)}),l.addEventListener("error",function(c){e.closeConnection(),o(c)})})]}})})},n.prototype.deleteDatabase=function(){return Oe(this,void 0,void 0,function(){return Pe(this,function(i){switch(i.label){case 0:return this.db&&this.dbOpen&&this.closeConnection(),[4,window.indexedDB.databases()];case 1:return i.sent().find(function(r){return r.name===hm})?[2,new Promise(function(r,o){var s=window.indexedDB.deleteDatabase(hm);s.addEventListener("success",function(){return r(!0)}),s.addEventListener("error",function(){return o(!1)})})]:[2,!0]}})})},n}(),iC=function(){function n(){this.cache=new Map}return n.prototype.getItem=function(t){return this.cache.get(t)||null},n.prototype.setItem=function(t,e){this.cache.set(t,e)},n.prototype.removeItem=function(t){this.cache.delete(t)},n.prototype.getKeys=function(){var t=[];return this.cache.forEach(function(e,i){t.push(i)}),t},n.prototype.containsKey=function(t){return this.cache.has(t)},n.prototype.clear=function(){this.cache.clear()},n}(),DI=function(){function n(t,e){this.inMemoryCache=new iC,this.indexedDBCache=new U7,this.logger=t,this.storeName=e}return n.prototype.handleDatabaseAccessError=function(t){if(!(t instanceof ze&&t.errorCode===Re_databaseUnavailable_code))throw t;this.logger.error("Could not access persistent storage. This may be caused by browser privacy features which block persistent storage in third-party contexts.")},n.prototype.getItem=function(t){return Oe(this,void 0,void 0,function(){var e,i;return Pe(this,function(r){switch(r.label){case 0:if(e=this.inMemoryCache.getItem(t))return[3,4];r.label=1;case 1:return r.trys.push([1,3,,4]),this.logger.verbose("Queried item not found in in-memory cache, now querying persistent storage."),[4,this.indexedDBCache.getItem(t)];case 2:return[2,r.sent()];case 3:return i=r.sent(),this.handleDatabaseAccessError(i),[3,4];case 4:return[2,e]}})})},n.prototype.setItem=function(t,e){return Oe(this,void 0,void 0,function(){var i;return Pe(this,function(r){switch(r.label){case 0:this.inMemoryCache.setItem(t,e),r.label=1;case 1:return r.trys.push([1,3,,4]),[4,this.indexedDBCache.setItem(t,e)];case 2:return r.sent(),[3,4];case 3:return i=r.sent(),this.handleDatabaseAccessError(i),[3,4];case 4:return[2]}})})},n.prototype.removeItem=function(t){return Oe(this,void 0,void 0,function(){var e;return Pe(this,function(i){switch(i.label){case 0:this.inMemoryCache.removeItem(t),i.label=1;case 1:return i.trys.push([1,3,,4]),[4,this.indexedDBCache.removeItem(t)];case 2:return i.sent(),[3,4];case 3:return e=i.sent(),this.handleDatabaseAccessError(e),[3,4];case 4:return[2]}})})},n.prototype.getKeys=function(){return Oe(this,void 0,void 0,function(){var t,e;return Pe(this,function(i){switch(i.label){case 0:if(0!==(t=this.inMemoryCache.getKeys()).length)return[3,4];i.label=1;case 1:return i.trys.push([1,3,,4]),this.logger.verbose("In-memory cache is empty, now querying persistent storage."),[4,this.indexedDBCache.getKeys()];case 2:return[2,i.sent()];case 3:return e=i.sent(),this.handleDatabaseAccessError(e),[3,4];case 4:return[2,t]}})})},n.prototype.containsKey=function(t){return Oe(this,void 0,void 0,function(){var e,i;return Pe(this,function(r){switch(r.label){case 0:if(e=this.inMemoryCache.containsKey(t))return[3,4];r.label=1;case 1:return r.trys.push([1,3,,4]),this.logger.verbose("Key not found in in-memory cache, now querying persistent storage."),[4,this.indexedDBCache.containsKey(t)];case 2:return[2,r.sent()];case 3:return i=r.sent(),this.handleDatabaseAccessError(i),[3,4];case 4:return[2,e]}})})},n.prototype.clear=function(){return Oe(this,void 0,void 0,function(){var t,e;return Pe(this,function(i){switch(i.label){case 0:this.logger.verbose("Deleting in-memory keystore "+this.storeName),this.inMemoryCache.clear(),this.logger.verbose("In-memory keystore "+this.storeName+" deleted"),this.logger.verbose("Deleting persistent keystore "+this.storeName),i.label=1;case 1:return i.trys.push([1,3,,4]),[4,this.indexedDBCache.deleteDatabase()];case 2:return(t=i.sent())&&this.logger.verbose("Persistent keystore "+this.storeName+" deleted"),[2,t];case 3:return e=i.sent(),this.handleDatabaseAccessError(e),[2,!1];case 4:return[2]}})})},n}(),qd=(()=>(function(n){n.asymmetricKeys="asymmetricKeys",n.symmetricKeys="symmetricKeys"}(qd||(qd={})),qd))(),q7=function(){function n(t,e){this.logger=t,this.browserCrypto=new mm(this.logger),this.b64Encode=new EI,this.b64Decode=new N7,this.guidGenerator=new wI(this.browserCrypto),this.pkceGenerator=new B7(this.browserCrypto),this.cache={asymmetricKeys:new DI(this.logger,qd.asymmetricKeys),symmetricKeys:new DI(this.logger,qd.symmetricKeys)},this.performanceClient=e}return n.prototype.createNewGuid=function(){return this.guidGenerator.generateGuid()},n.prototype.base64Encode=function(t){return this.b64Encode.encode(t)},n.prototype.base64Decode=function(t){return this.b64Decode.decode(t)},n.prototype.generatePkceCodes=function(){return Oe(this,void 0,void 0,function(){return Pe(this,function(t){return[2,this.pkceGenerator.generateCodes()]})})},n.prototype.getPublicKeyThumbprint=function(t){var e;return Oe(this,void 0,void 0,function(){var i,r,o,a,l,c,u;return Pe(this,function(d){switch(d.label){case 0:return i=null===(e=this.performanceClient)||void 0===e?void 0:e.startMeasurement(ci.CryptoOptsGetPublicKeyThumbprint,t.correlationId),[4,this.browserCrypto.generateKeyPair(n.EXTRACTABLE,n.POP_KEY_USAGES)];case 1:return r=d.sent(),[4,this.browserCrypto.exportJwk(r.publicKey)];case 2:return o=d.sent(),a=mm.getJwkString({e:o.e,kty:o.kty,n:o.n}),[4,this.hashString(a)];case 3:return l=d.sent(),[4,this.browserCrypto.exportJwk(r.privateKey)];case 4:return c=d.sent(),[4,this.browserCrypto.importJwk(c,!1,["sign"])];case 5:return u=d.sent(),[4,this.cache.asymmetricKeys.setItem(l,{privateKey:u,publicKey:r.publicKey,requestMethod:t.resourceRequestMethod,requestUri:t.resourceRequestUri})];case 6:return d.sent(),i&&i.endMeasurement({success:!0}),[2,l]}})})},n.prototype.removeTokenBindingKey=function(t){return Oe(this,void 0,void 0,function(){return Pe(this,function(i){switch(i.label){case 0:return[4,this.cache.asymmetricKeys.removeItem(t)];case 1:return i.sent(),[4,this.cache.asymmetricKeys.containsKey(t)];case 2:return[2,!i.sent()]}})})},n.prototype.clearKeystore=function(){return Oe(this,void 0,void 0,function(){var t;return Pe(this,function(e){switch(e.label){case 0:return e.trys.push([0,3,,4]),this.logger.verbose("Deleting in-memory and persistent asymmetric key stores"),[4,this.cache.asymmetricKeys.clear()];case 1:return e.sent(),this.logger.verbose("Successfully deleted asymmetric key stores"),this.logger.verbose("Deleting in-memory and persistent symmetric key stores"),[4,this.cache.symmetricKeys.clear()];case 2:return e.sent(),this.logger.verbose("Successfully deleted symmetric key stores"),[2,!0];case 3:return(t=e.sent())instanceof Error?this.logger.error("Clearing keystore failed with error: "+t.message):this.logger.error("Clearing keystore failed with unknown error"),[2,!1];case 4:return[2]}})})},n.prototype.signJwt=function(t,e,i){var r;return Oe(this,void 0,void 0,function(){var o,s,a,l,c,u,d,h,m,y,A,U,te;return Pe(this,function(Ee){switch(Ee.label){case 0:return o=null===(r=this.performanceClient)||void 0===r?void 0:r.startMeasurement(ci.CryptoOptsSignJwt,i),[4,this.cache.asymmetricKeys.getItem(e)];case 1:if(!(s=Ee.sent()))throw ze.createSigningKeyNotFoundInStorageError(e);return[4,this.browserCrypto.exportJwk(s.publicKey)];case 2:return a=Ee.sent(),l=mm.getJwkString(a),c=this.b64Encode.urlEncode(JSON.stringify({kid:e})),u=L7.getShrHeaderString({kid:c,alg:a.alg}),d=this.b64Encode.urlEncode(u),t.cnf={jwk:JSON.parse(l)},h=this.b64Encode.urlEncode(JSON.stringify(t)),y=Vc.stringToArrayBuffer(m=d+"."+h),[4,this.browserCrypto.sign(s.privateKey,y)];case 3:return A=Ee.sent(),U=this.b64Encode.urlEncodeArr(new Uint8Array(A)),te=m+"."+U,o&&o.endMeasurement({success:!0}),[2,te]}})})},n.prototype.hashString=function(t){return Oe(this,void 0,void 0,function(){var e,i;return Pe(this,function(r){switch(r.label){case 0:return[4,this.browserCrypto.sha256Digest(t)];case 1:return e=r.sent(),i=new Uint8Array(e),[2,this.b64Encode.urlEncodeArr(i)]}})})},n.POP_KEY_USAGES=["sign","verify"],n.EXTRACTABLE=!0,n}(),mi=(()=>(function(n){n[n.Error=0]="Error",n[n.Warning=1]="Warning",n[n.Info=2]="Info",n[n.Verbose=3]="Verbose",n[n.Trace=4]="Trace"}(mi||(mi={})),mi))(),SI=function(){function n(t,e,i){this.level=mi.Info,this.localCallback=t.loggerCallback||function(){},this.piiLoggingEnabled=t.piiLoggingEnabled||!1,this.level="number"==typeof t.logLevel?t.logLevel:mi.Info,this.correlationId=t.correlationId||ee.EMPTY_STRING,this.packageName=e||ee.EMPTY_STRING,this.packageVersion=i||ee.EMPTY_STRING}return n.prototype.clone=function(t,e,i){return new n({loggerCallback:this.localCallback,piiLoggingEnabled:this.piiLoggingEnabled,logLevel:this.level,correlationId:i||this.correlationId},t,e)},n.prototype.logMessage=function(t,e){if(!(e.logLevel>this.level||!this.piiLoggingEnabled&&e.containsPii)){var r,i=(new Date).toUTCString();r=Ke.isEmpty(e.correlationId)?Ke.isEmpty(this.correlationId)?"["+i+"]":"["+i+"] : ["+this.correlationId+"]":"["+i+"] : ["+e.correlationId+"]",this.executeCallback(e.logLevel,r+" : "+this.packageName+"@"+this.packageVersion+" : "+mi[e.logLevel]+" - "+t,e.containsPii||!1)}},n.prototype.executeCallback=function(t,e,i){this.localCallback&&this.localCallback(t,e,i)},n.prototype.error=function(t,e){this.logMessage(t,{logLevel:mi.Error,containsPii:!1,correlationId:e||ee.EMPTY_STRING})},n.prototype.errorPii=function(t,e){this.logMessage(t,{logLevel:mi.Error,containsPii:!0,correlationId:e||ee.EMPTY_STRING})},n.prototype.warning=function(t,e){this.logMessage(t,{logLevel:mi.Warning,containsPii:!1,correlationId:e||ee.EMPTY_STRING})},n.prototype.warningPii=function(t,e){this.logMessage(t,{logLevel:mi.Warning,containsPii:!0,correlationId:e||ee.EMPTY_STRING})},n.prototype.info=function(t,e){this.logMessage(t,{logLevel:mi.Info,containsPii:!1,correlationId:e||ee.EMPTY_STRING})},n.prototype.infoPii=function(t,e){this.logMessage(t,{logLevel:mi.Info,containsPii:!0,correlationId:e||ee.EMPTY_STRING})},n.prototype.verbose=function(t,e){this.logMessage(t,{logLevel:mi.Verbose,containsPii:!1,correlationId:e||ee.EMPTY_STRING})},n.prototype.verbosePii=function(t,e){this.logMessage(t,{logLevel:mi.Verbose,containsPii:!0,correlationId:e||ee.EMPTY_STRING})},n.prototype.trace=function(t,e){this.logMessage(t,{logLevel:mi.Trace,containsPii:!1,correlationId:e||ee.EMPTY_STRING})},n.prototype.tracePii=function(t,e){this.logMessage(t,{logLevel:mi.Trace,containsPii:!0,correlationId:e||ee.EMPTY_STRING})},n.prototype.isPiiLoggingEnabled=function(){return this.piiLoggingEnabled||!1},n}(),AI=function(){function n(t,e,i,r,o,s){this.authority=e,this.libraryName=r,this.libraryVersion=o,this.applicationTelemetry=s,this.clientId=t,this.logger=i,this.callbacks=new Map,this.eventsByCorrelationId=new Map,this.measurementsById=new Map}return n.prototype.startMeasurement=function(t,e){var r,o,i=this,s=e||this.generateId();e||this.logger.info("PerformanceClient: No correlation id provided for "+t+", generating",s),this.logger.trace("PerformanceClient: Performance measurement started for "+t,s);var a=this.startPerformanceMeasuremeant(t,s);a.startMeasurement();var l={eventId:this.generateId(),status:ol.InProgress,authority:this.authority,libraryName:this.libraryName,libraryVersion:this.libraryVersion,appName:null===(r=this.applicationTelemetry)||void 0===r?void 0:r.appName,appVersion:null===(o=this.applicationTelemetry)||void 0===o?void 0:o.appVersion,clientId:this.clientId,name:t,startTimeMs:Date.now(),correlationId:s};return this.cacheEventByCorrelationId(l),this.cacheMeasurement(l,a),{endMeasurement:function(c){var u=i.endMeasurement(Gn(Gn({},l),c));return u&&i.cacheEventByCorrelationId(u),u},flushMeasurement:function(){return i.flushMeasurements(l.name,l.correlationId)},discardMeasurement:function(){return i.discardMeasurements(l.correlationId)},measurement:a,event:l}},n.prototype.endMeasurement=function(t){var e=this.measurementsById.get(t.eventId);if(e){this.measurementsById.delete(t.eventId),e.endMeasurement();var i=e.flushMeasurement();if(null!==i)return this.logger.trace("PerformanceClient: Performance measurement ended for "+t.name+": "+i+" ms",t.correlationId),Gn(Gn({durationMs:Math.round(i)},t),{status:ol.Completed});this.logger.trace("PerformanceClient: Performance measurement not taken",t.correlationId)}else this.logger.trace("PerformanceClient: Measurement not found for "+t.eventId,t.correlationId);return null},n.prototype.cacheEventByCorrelationId=function(t){var e=this.eventsByCorrelationId.get(t.correlationId);e?(this.logger.trace("PerformanceClient: Performance measurement for "+t.name+" added/updated",t.correlationId),e.set(t.eventId,t)):(this.logger.trace("PerformanceClient: Performance measurement for "+t.name+" started",t.correlationId),this.eventsByCorrelationId.set(t.correlationId,(new Map).set(t.eventId,t)))},n.prototype.cacheMeasurement=function(t,e){this.measurementsById.set(t.eventId,e)},n.prototype.flushMeasurements=function(t,e){var i=this;this.logger.trace("PerformanceClient: Performance measurements flushed for "+t,e);var r=this.eventsByCorrelationId.get(e);if(r){this.discardMeasurements(e);var o=[];r.forEach(function(u){if(u.name!==t&&u.status!==ol.Completed){i.logger.trace("PerformanceClient: Incomplete submeasurement "+u.name+" found for "+t,e);var d=i.endMeasurement(u);d&&o.push(d)}o.push(u)});var s=o.sort(function(u,d){return u.startTimeMs-d.startTimeMs}),a=s.filter(function(u){return u.name===t&&u.status===ol.Completed});if(a.length>0){a.length>1&&this.logger.verbose("PerformanceClient: Multiple distinct top-level performance events found, using the first",e);var l=a[0];this.logger.verbose("PerformanceClient: Measurement found for "+t,e);var c=s.reduce(function(u,d){if(d.name!==t){i.logger.trace("PerformanceClient: Complete submeasurement found for "+d.name,e);var h=d.name+"DurationMs";u[h]?i.logger.verbose("PerformanceClient: Submeasurement for "+t+" already exists for "+d.name+", ignoring",e):u[h]=d.durationMs,d.accessTokenSize&&(u.accessTokenSize=d.accessTokenSize),d.idTokenSize&&(u.idTokenSize=d.idTokenSize)}return u},l);this.emitEvents([c],c.correlationId)}else this.logger.verbose("PerformanceClient: No completed top-level measurements found for "+t,e)}else this.logger.verbose("PerformanceClient: No measurements found",e)},n.prototype.discardMeasurements=function(t){this.logger.trace("PerformanceClient: Performance measurements discarded",t),this.eventsByCorrelationId.delete(t)},n.prototype.addPerformanceCallback=function(t){var e=this.generateId();return this.callbacks.set(e,t),this.logger.verbose("PerformanceClient: Performance callback registered with id: "+e),e},n.prototype.removePerformanceCallback=function(t){var e=this.callbacks.delete(t);return this.logger.verbose(e?"PerformanceClient: Performance callback "+t+" removed.":"PerformanceClient: Performance callback "+t+" not removed."),e},n.prototype.emitEvents=function(t,e){var i=this;this.logger.verbose("PerformanceClient: Emitting performance events",e),this.callbacks.forEach(function(r,o){i.logger.trace("PerformanceClient: Emitting event to callback "+o,e),r.apply(null,[t])})},n}(),z7=function(){function n(){}return n.prototype.startMeasurement=function(){},n.prototype.endMeasurement=function(){},n.prototype.flushMeasurement=function(){return null},n}(),G7=function(n){function t(){return null!==n&&n.apply(this,arguments)||this}return dr(t,n),t.prototype.generateId=function(){return"callback-id"},t.prototype.startPerformanceMeasuremeant=function(){return new z7},t}(AI),gm={createNewGuid:function(){throw ut.createUnexpectedError("Crypto interface - createNewGuid() has not been implemented")},base64Decode:function(){throw ut.createUnexpectedError("Crypto interface - base64Decode() has not been implemented")},base64Encode:function(){throw ut.createUnexpectedError("Crypto interface - base64Encode() has not been implemented")},generatePkceCodes:function(){return At(this,void 0,void 0,function(){return Tt(this,function(t){throw ut.createUnexpectedError("Crypto interface - generatePkceCodes() has not been implemented")})})},getPublicKeyThumbprint:function(){return At(this,void 0,void 0,function(){return Tt(this,function(t){throw ut.createUnexpectedError("Crypto interface - getPublicKeyThumbprint() has not been implemented")})})},removeTokenBindingKey:function(){return At(this,void 0,void 0,function(){return Tt(this,function(t){throw ut.createUnexpectedError("Crypto interface - removeTokenBindingKey() has not been implemented")})})},clearKeystore:function(){return At(this,void 0,void 0,function(){return Tt(this,function(t){throw ut.createUnexpectedError("Crypto interface - clearKeystore() has not been implemented")})})},signJwt:function(){return At(this,void 0,void 0,function(){return Tt(this,function(t){throw ut.createUnexpectedError("Crypto interface - signJwt() has not been implemented")})})},hashString:function(){return At(this,void 0,void 0,function(){return Tt(this,function(t){throw ut.createUnexpectedError("Crypto interface - hashString() has not been implemented")})})}},TI=["interaction_required","consent_required","login_required"],W7=["message_only","additional_action","basic_action","user_password_expired","consent_required"],zd_noTokensFoundError_code="no_tokens_found",zd_noTokensFoundError_desc="No refresh token found in the cache. Please sign-in.",zd_native_account_unavailable_code="native_account_unavailable",zd_native_account_unavailable_desc="The requested account is not available in the native broker. It may have been deleted or logged out. Please sign-in again using an interactive API.",xo=function(n){function t(e,i,r){var o=n.call(this,e,i,r)||this;return o.name="InteractionRequiredAuthError",Object.setPrototypeOf(o,t.prototype),o}return dr(t,n),t.isInteractionRequiredError=function(e,i,r){var o=!!e&&TI.indexOf(e)>-1,s=!!r&&W7.indexOf(r)>-1,a=!!i&&TI.some(function(l){return i.indexOf(l)>-1});return o||a||s},t.createNoTokensFoundError=function(){return new t(zd_noTokensFoundError_code,zd_noTokensFoundError_desc)},t.createNativeAccountUnavailableError=function(){return new t(zd_native_account_unavailable_code,zd_native_account_unavailable_desc)},t}(ut),cl=function(n){function t(e,i,r){var o=n.call(this,e,i,r)||this;return o.name="ServerError",Object.setPrototypeOf(o,t.prototype),o}return dr(t,n),t}(ut);function _m(n,t){if(Ke.isEmpty(n))throw nt.createClientInfoEmptyError();try{var e=t.base64Decode(n);return JSON.parse(e)}catch(i){throw nt.createClientInfoDecodingError(i)}}function Uc(n){if(Ke.isEmpty(n))throw nt.createClientInfoDecodingError("Home account ID was empty.");var t=n.split(hr.CLIENT_INFO_SEPARATOR,2);return{uid:t[0],utid:t.length<2?ee.EMPTY_STRING:t[1]}}var es=(()=>(function(n){n[n.Default=0]="Default",n[n.Adfs=1]="Adfs"}(es||(es={})),es))(),Fi=function(){function n(){}return n.prototype.generateAccountId=function(){return[this.homeAccountId,this.environment].join(hr.CACHE_KEY_SEPARATOR).toLowerCase()},n.prototype.generateAccountKey=function(){return n.generateAccountCacheKey({homeAccountId:this.homeAccountId,environment:this.environment,tenantId:this.realm,username:this.username,localAccountId:this.localAccountId})},n.prototype.generateType=function(){switch(this.authorityType){case Jo.ADFS_ACCOUNT_TYPE:return Zo.ADFS;case Jo.MSAV1_ACCOUNT_TYPE:return Zo.MSA;case Jo.MSSTS_ACCOUNT_TYPE:return Zo.MSSTS;case Jo.GENERIC_ACCOUNT_TYPE:return Zo.GENERIC;default:throw nt.createUnexpectedAccountTypeError()}},n.prototype.getAccountInfo=function(){return{homeAccountId:this.homeAccountId,environment:this.environment,tenantId:this.realm,username:this.username,localAccountId:this.localAccountId,name:this.name,idTokenClaims:this.idTokenClaims,nativeAccountId:this.nativeAccountId}},n.generateAccountCacheKey=function(t){return[t.homeAccountId,t.environment||ee.EMPTY_STRING,t.tenantId||ee.EMPTY_STRING].join(hr.CACHE_KEY_SEPARATOR).toLowerCase()},n.createAccount=function(t,e,i,r,o,s,a,l){var c,u,d,h,m,y,A=new n;A.authorityType=Jo.MSSTS_ACCOUNT_TYPE,A.clientInfo=t,A.homeAccountId=e,A.nativeAccountId=l;var U=a||r&&r.getPreferredCache();if(!U)throw nt.createInvalidCacheEnvironmentError();return A.environment=U,A.realm=(null===(c=i?.claims)||void 0===c?void 0:c.tid)||ee.EMPTY_STRING,i&&(A.idTokenClaims=i.claims,A.localAccountId=(null===(u=i?.claims)||void 0===u?void 0:u.oid)||(null===(d=i?.claims)||void 0===d?void 0:d.sub)||ee.EMPTY_STRING,A.username=(null===(h=i?.claims)||void 0===h?void 0:h.preferred_username)||(null!==(m=i?.claims)&&void 0!==m&&m.emails?i.claims.emails[0]:ee.EMPTY_STRING),A.name=null===(y=i?.claims)||void 0===y?void 0:y.name),A.cloudGraphHostName=o,A.msGraphHost=s,A},n.createGenericAccount=function(t,e,i,r,o,s){var a,l,c,u,d=new n;d.authorityType=i&&i.authorityType===es.Adfs?Jo.ADFS_ACCOUNT_TYPE:Jo.GENERIC_ACCOUNT_TYPE,d.homeAccountId=t,d.realm=ee.EMPTY_STRING;var h=s||i&&i.getPreferredCache();if(!h)throw nt.createInvalidCacheEnvironmentError();return e&&(d.localAccountId=(null===(a=e?.claims)||void 0===a?void 0:a.oid)||(null===(l=e?.claims)||void 0===l?void 0:l.sub)||ee.EMPTY_STRING,d.username=(null===(c=e?.claims)||void 0===c?void 0:c.upn)||ee.EMPTY_STRING,d.name=(null===(u=e?.claims)||void 0===u?void 0:u.name)||ee.EMPTY_STRING,d.idTokenClaims=e?.claims),d.environment=h,d.cloudGraphHostName=r,d.msGraphHost=o,d},n.generateHomeAccountId=function(t,e,i,r,o){var s,a=null!==(s=o?.claims)&&void 0!==s&&s.sub?o.claims.sub:ee.EMPTY_STRING;if(e===es.Adfs)return a;if(t)try{var l=_m(t,r);if(!Ke.isEmpty(l.uid)&&!Ke.isEmpty(l.utid))return""+l.uid+hr.CLIENT_INFO_SEPARATOR+l.utid}catch{}return i.verbose("No client info in response"),a},n.isAccountEntity=function(t){return!!t&&t.hasOwnProperty("homeAccountId")&&t.hasOwnProperty("environment")&&t.hasOwnProperty("realm")&&t.hasOwnProperty("localAccountId")&&t.hasOwnProperty("username")&&t.hasOwnProperty("authorityType")},n.accountInfoIsEqual=function(t,e,i){if(!t||!e)return!1;var r=!0;if(i){var o=t.idTokenClaims||{},s=e.idTokenClaims||{};r=o.iat===s.iat&&o.nonce===s.nonce}return t.homeAccountId===e.homeAccountId&&t.localAccountId===e.localAccountId&&t.username===e.username&&t.tenantId===e.tenantId&&t.environment===e.environment&&t.nativeAccountId===e.nativeAccountId&&r},n}(),Gd=function(){function n(){}return n.prototype.generateAccountId=function(){return n.generateAccountIdForCacheKey(this.homeAccountId,this.environment)},n.prototype.generateCredentialId=function(){return n.generateCredentialIdForCacheKey(this.credentialType,this.clientId,this.realm,this.familyId)},n.prototype.generateTarget=function(){return n.generateTargetForCacheKey(this.target)},n.prototype.generateCredentialKey=function(){return n.generateCredentialCacheKey(this.homeAccountId,this.environment,this.credentialType,this.clientId,this.realm,this.target,this.familyId,this.tokenType,this.requestedClaimsHash)},n.prototype.generateType=function(){switch(this.credentialType){case zt.ID_TOKEN:return Zo.ID_TOKEN;case zt.ACCESS_TOKEN:case zt.ACCESS_TOKEN_WITH_AUTH_SCHEME:return Zo.ACCESS_TOKEN;case zt.REFRESH_TOKEN:return Zo.REFRESH_TOKEN;default:throw nt.createUnexpectedCredentialTypeError()}},n.getCredentialType=function(t){return-1!==t.indexOf(zt.ACCESS_TOKEN.toLowerCase())?-1!==t.indexOf(zt.ACCESS_TOKEN_WITH_AUTH_SCHEME.toLowerCase())?zt.ACCESS_TOKEN_WITH_AUTH_SCHEME:zt.ACCESS_TOKEN:-1!==t.indexOf(zt.ID_TOKEN.toLowerCase())?zt.ID_TOKEN:-1!==t.indexOf(zt.REFRESH_TOKEN.toLowerCase())?zt.REFRESH_TOKEN:ee.NOT_DEFINED},n.generateCredentialCacheKey=function(t,e,i,r,o,s,a,l,c){return[this.generateAccountIdForCacheKey(t,e),this.generateCredentialIdForCacheKey(i,r,o,a),this.generateTargetForCacheKey(s),this.generateClaimsHashForCacheKey(c),this.generateSchemeForCacheKey(l)].join(hr.CACHE_KEY_SEPARATOR).toLowerCase()},n.generateAccountIdForCacheKey=function(t,e){return[t,e].join(hr.CACHE_KEY_SEPARATOR).toLowerCase()},n.generateCredentialIdForCacheKey=function(t,e,i,r){return[t,t===zt.REFRESH_TOKEN&&r||e,i||ee.EMPTY_STRING].join(hr.CACHE_KEY_SEPARATOR).toLowerCase()},n.generateTargetForCacheKey=function(t){return(t||ee.EMPTY_STRING).toLowerCase()},n.generateClaimsHashForCacheKey=function(t){return(t||ee.EMPTY_STRING).toLowerCase()},n.generateSchemeForCacheKey=function(t){return t&&t.toLowerCase()!==fn.BEARER.toLowerCase()?t.toLowerCase():ee.EMPTY_STRING},n}(),Ot_redirectUriNotSet_code="redirect_uri_empty",Ot_redirectUriNotSet_desc="A redirect URI is required for all calls, and none has been set.",Ot_postLogoutUriNotSet_code="post_logout_uri_empty",Ot_postLogoutUriNotSet_desc="A post logout redirect has not been set.",Ot_claimsRequestParsingError_code="claims_request_parsing_error",Ot_claimsRequestParsingError_desc="Could not parse the given claims request object.",Ot_authorityUriInsecure_code="authority_uri_insecure",Ot_authorityUriInsecure_desc="Authority URIs must use https. Please see here for valid authority configuration options: https://docs.microsoft.com/en-us/azure/active-directory/develop/msal-js-initializing-client-applications#configuration-options",Ot_urlParseError_code="url_parse_error",Ot_urlParseError_desc="URL could not be parsed into appropriate segments.",Ot_urlEmptyError_code="empty_url_error",Ot_urlEmptyError_desc="URL was empty or null.",Ot_emptyScopesError_code="empty_input_scopes_error",Ot_emptyScopesError_desc="Scopes cannot be passed as null, undefined or empty array because they are required to obtain an access token.",Ot_clientIdSingleScopeError_code="clientid_input_scopes_error",Ot_clientIdSingleScopeError_desc="Client ID can only be provided as a single scope.",Ot_invalidPrompt_code="invalid_prompt_value",Ot_invalidPrompt_desc="Supported prompt values are 'login', 'select_account', 'consent', 'create' and 'none'. Please see here for valid configuration options: https://azuread.github.io/microsoft-authentication-library-for-js/ref/modules/_azure_msal_common.html#commonauthorizationurlrequest",Ot_invalidClaimsRequest_code="invalid_claims",Ot_invalidClaimsRequest_desc="Given claims parameter must be a stringified JSON object.",Ot_tokenRequestEmptyError_code="token_request_empty",Ot_tokenRequestEmptyError_desc="Token request was empty and not found in cache.",Ot_logoutRequestEmptyError_code="logout_request_empty",Ot_logoutRequestEmptyError_desc="The logout request was null or undefined.",Ot_invalidCodeChallengeMethod_code="invalid_code_challenge_method",Ot_invalidCodeChallengeMethod_desc='code_challenge_method passed is invalid. Valid values are "plain" and "S256".',Ot_invalidCodeChallengeParams_code="pkce_params_missing",Ot_invalidCodeChallengeParams_desc="Both params: code_challenge and code_challenge_method are to be passed if to be sent in the request",Ot_invalidCloudDiscoveryMetadata_code="invalid_cloud_discovery_metadata",Ot_invalidCloudDiscoveryMetadata_desc="Invalid cloudDiscoveryMetadata provided. Must be a stringified JSON object containing tenant_discovery_endpoint and metadata fields",Ot_invalidAuthorityMetadata_code="invalid_authority_metadata",Ot_invalidAuthorityMetadata_desc="Invalid authorityMetadata provided. Must by a stringified JSON object containing authorization_endpoint, token_endpoint, issuer fields.",Ot_untrustedAuthority_code="untrusted_authority",Ot_untrustedAuthority_desc="The provided authority is not a trusted authority. Please include this authority in the knownAuthorities config parameter.",Ot_invalidAzureCloudInstance_code="invalid_azure_cloud_instance",Ot_invalidAzureCloudInstance_desc="Invalid AzureCloudInstance provided. Please refer MSAL JS docs: aks.ms/msaljs/azure_cloud_instance for valid values",Ot_missingSshJwk_code="missing_ssh_jwk",Ot_missingSshJwk_desc="Missing sshJwk in SSH certificate request. A stringified JSON Web Key is required when using the SSH authentication scheme.",Ot_missingSshKid_code="missing_ssh_kid",Ot_missingSshKid_desc="Missing sshKid in SSH certificate request. A string that uniquely identifies the public SSH key is required when using the SSH authentication scheme.",Ot_missingNonceAuthenticationHeader_code="missing_nonce_authentication_header",Ot_missingNonceAuthenticationHeader_desc="Unable to find an authentication header containing server nonce. Either the Authentication-Info or WWW-Authenticate headers must be present in order to obtain a server nonce.",Ot_invalidAuthenticationHeader_code="invalid_authentication_header",Ot_invalidAuthenticationHeader_desc="Invalid authentication header provided",Mn=function(n){function t(e,i){var r=n.call(this,e,i)||this;return r.name="ClientConfigurationError",Object.setPrototypeOf(r,t.prototype),r}return dr(t,n),t.createRedirectUriEmptyError=function(){return new t(Ot_redirectUriNotSet_code,Ot_redirectUriNotSet_desc)},t.createPostLogoutRedirectUriEmptyError=function(){return new t(Ot_postLogoutUriNotSet_code,Ot_postLogoutUriNotSet_desc)},t.createClaimsRequestParsingError=function(e){return new t(Ot_claimsRequestParsingError_code,Ot_claimsRequestParsingError_desc+" Given value: "+e)},t.createInsecureAuthorityUriError=function(e){return new t(Ot_authorityUriInsecure_code,Ot_authorityUriInsecure_desc+" Given URI: "+e)},t.createUrlParseError=function(e){return new t(Ot_urlParseError_code,Ot_urlParseError_desc+" Given Error: "+e)},t.createUrlEmptyError=function(){return new t(Ot_urlEmptyError_code,Ot_urlEmptyError_desc)},t.createEmptyScopesArrayError=function(){return new t(Ot_emptyScopesError_code,""+Ot_emptyScopesError_desc)},t.createClientIdSingleScopeError=function(e){return new t(Ot_clientIdSingleScopeError_code,Ot_clientIdSingleScopeError_desc+" Given Scopes: "+e)},t.createInvalidPromptError=function(e){return new t(Ot_invalidPrompt_code,Ot_invalidPrompt_desc+" Given value: "+e)},t.createInvalidClaimsRequestError=function(){return new t(Ot_invalidClaimsRequest_code,Ot_invalidClaimsRequest_desc)},t.createEmptyLogoutRequestError=function(){return new t(Ot_logoutRequestEmptyError_code,Ot_logoutRequestEmptyError_desc)},t.createEmptyTokenRequestError=function(){return new t(Ot_tokenRequestEmptyError_code,Ot_tokenRequestEmptyError_desc)},t.createInvalidCodeChallengeMethodError=function(){return new t(Ot_invalidCodeChallengeMethod_code,Ot_invalidCodeChallengeMethod_desc)},t.createInvalidCodeChallengeParamsError=function(){return new t(Ot_invalidCodeChallengeParams_code,Ot_invalidCodeChallengeParams_desc)},t.createInvalidCloudDiscoveryMetadataError=function(){return new t(Ot_invalidCloudDiscoveryMetadata_code,Ot_invalidCloudDiscoveryMetadata_desc)},t.createInvalidAuthorityMetadataError=function(){return new t(Ot_invalidAuthorityMetadata_code,Ot_invalidAuthorityMetadata_desc)},t.createUntrustedAuthorityError=function(){return new t(Ot_untrustedAuthority_code,Ot_untrustedAuthority_desc)},t.createInvalidAzureCloudInstanceError=function(){return new t(Ot_invalidAzureCloudInstance_code,Ot_invalidAzureCloudInstance_desc)},t.createMissingSshJwkError=function(){return new t(Ot_missingSshJwk_code,Ot_missingSshJwk_desc)},t.createMissingSshKidError=function(){return new t(Ot_missingSshKid_code,Ot_missingSshKid_desc)},t.createMissingNonceAuthenticationHeadersError=function(){return new t(Ot_missingNonceAuthenticationHeader_code,Ot_missingNonceAuthenticationHeader_desc)},t.createInvalidAuthenticationHeaderError=function(e,i){return new t(Ot_invalidAuthenticationHeader_code,Ot_invalidAuthenticationHeader_desc+". Invalid header: "+e+". Details: "+i)},t}(nt),fr=function(){function n(t){var e=this,i=t?Ke.trimArrayEntries(am(t)):[],r=i?Ke.removeEmptyStringsFromArray(i):[];this.validateInputScopes(r),this.scopes=new Set,r.forEach(function(o){return e.scopes.add(o)})}return n.fromString=function(t){return new n((t||ee.EMPTY_STRING).split(" "))},n.prototype.validateInputScopes=function(t){if(!t||t.length<1)throw Mn.createEmptyScopesArrayError()},n.prototype.containsScope=function(t){var i=new n(this.printScopesLowerCase().split(" "));return!Ke.isEmpty(t)&&i.scopes.has(t.toLowerCase())},n.prototype.containsScopeSet=function(t){var e=this;return!(!t||t.scopes.size<=0)&&this.scopes.size>=t.scopes.size&&t.asArray().every(function(i){return e.containsScope(i)})},n.prototype.containsOnlyOIDCScopes=function(){var t=this,e=0;return _I.forEach(function(i){t.containsScope(i)&&(e+=1)}),this.scopes.size===e},n.prototype.appendScope=function(t){Ke.isEmpty(t)||this.scopes.add(t.trim())},n.prototype.appendScopes=function(t){var e=this;try{t.forEach(function(i){return e.appendScope(i)})}catch(i){throw nt.createAppendScopeSetError(i)}},n.prototype.removeScope=function(t){if(Ke.isEmpty(t))throw nt.createRemoveEmptyScopeFromSetError(t);this.scopes.delete(t.trim())},n.prototype.removeOIDCScopes=function(){var t=this;_I.forEach(function(e){t.scopes.delete(e)})},n.prototype.unionScopeSets=function(t){if(!t)throw nt.createEmptyInputScopeSetError();var e=new Set;return t.scopes.forEach(function(i){return e.add(i.toLowerCase())}),this.scopes.forEach(function(i){return e.add(i.toLowerCase())}),e},n.prototype.intersectingScopeSets=function(t){if(!t)throw nt.createEmptyInputScopeSetError();t.containsOnlyOIDCScopes()||t.removeOIDCScopes();var e=this.unionScopeSets(t),i=t.getScopeCount(),r=this.getScopeCount();return e.size1)throw nt.createMultipleMatchingAccountsInCacheError();return i[0]},n.prototype.readIdTokenFromCache=function(t,e){var r=this.getCredentialsFilteredBy({homeAccountId:e.homeAccountId,environment:e.environment,credentialType:zt.ID_TOKEN,clientId:t,realm:e.tenantId}),o=Object.keys(r.idTokens).map(function(a){return r.idTokens[a]}),s=o.length;if(s<1)return null;if(s>1)throw nt.createMultipleMatchingTokensInCacheError();return o[0]},n.prototype.readAccessTokenFromCache=function(t,e,i){var r=new fr(i.scopes||[]),o=i.authenticationScheme||fn.BEARER,s=o&&o.toLowerCase()!==fn.BEARER.toLowerCase()?zt.ACCESS_TOKEN_WITH_AUTH_SCHEME:zt.ACCESS_TOKEN,a={homeAccountId:e.homeAccountId,environment:e.environment,credentialType:s,clientId:t,realm:e.tenantId,target:r.printScopesLowerCase(),tokenType:o,keyId:i.sshKid,requestedClaimsHash:i.requestedClaimsHash},l=this.getCredentialsFilteredBy(a),c=Object.keys(l.accessTokens).map(function(d){return l.accessTokens[d]}),u=c.length;if(u<1)return null;if(u>1)throw nt.createMultipleMatchingTokensInCacheError();return c[0]},n.prototype.readRefreshTokenFromCache=function(t,e,i){var s=this.getCredentialsFilteredBy({homeAccountId:e.homeAccountId,environment:e.environment,credentialType:zt.REFRESH_TOKEN,clientId:t,familyId:i?"1":void 0}),a=Object.keys(s.refreshTokens).map(function(c){return s.refreshTokens[c]});return a.length<1?null:a[0]},n.prototype.readAppMetadataFromCache=function(t,e){var r=this.getAppMetadataFilteredBy({environment:t,clientId:e}),o=Object.keys(r).map(function(a){return r[a]}),s=o.length;if(s<1)return null;if(s>1)throw nt.createMultipleMatchingAppMetadataInCacheError();return o[0]},n.prototype.isAppMetadataFOCI=function(t,e){var i=this.readAppMetadataFromCache(t,e);return!(!i||"1"!==i.familyId)},n.prototype.matchHomeAccountId=function(t,e){return!(!t.homeAccountId||e!==t.homeAccountId)},n.prototype.matchUserAssertionHash=function(t,e){return!(!t.userAssertionHash||e!==t.userAssertionHash)},n.prototype.matchEnvironment=function(t,e){var i=this.getAuthorityMetadataByAlias(e);return!!(i&&i.aliases.indexOf(t.environment)>-1)},n.prototype.matchCredentialType=function(t,e){return t.credentialType&&e.toLowerCase()===t.credentialType.toLowerCase()},n.prototype.matchClientId=function(t,e){return!(!t.clientId||e!==t.clientId)},n.prototype.matchFamilyId=function(t,e){return!(!t.familyId||e!==t.familyId)},n.prototype.matchRealm=function(t,e){return!(!t.realm||e!==t.realm)},n.prototype.matchNativeAccountId=function(t,e){return!(!t.nativeAccountId||e!==t.nativeAccountId)},n.prototype.matchTarget=function(t,e){if(t.credentialType!==zt.ACCESS_TOKEN&&t.credentialType!==zt.ACCESS_TOKEN_WITH_AUTH_SCHEME||!t.target)return!1;var r=fr.fromString(t.target),o=fr.fromString(e);return o.containsOnlyOIDCScopes()?o.removeScope(ee.OFFLINE_ACCESS_SCOPE):o.removeOIDCScopes(),r.containsScopeSet(o)},n.prototype.matchTokenType=function(t,e){return!(!t.tokenType||t.tokenType!==e)},n.prototype.matchKeyId=function(t,e){return!(!t.keyId||t.keyId!==e)},n.prototype.isAppMetadata=function(t){return-1!==t.indexOf(tC)},n.prototype.isAuthorityMetadata=function(t){return-1!==t.indexOf("authority-metadata")},n.prototype.generateAuthorityMetadataCacheKey=function(t){return"authority-metadata-"+this.clientId+"-"+t},n.prototype.getSpecificCredential=function(t,e){switch(e){case zt.ID_TOKEN:return this.getIdTokenCredential(t);case zt.ACCESS_TOKEN:case zt.ACCESS_TOKEN_WITH_AUTH_SCHEME:return this.getAccessTokenCredential(t);case zt.REFRESH_TOKEN:return this.getRefreshTokenCredential(t);default:return null}},n.toObject=function(t,e){for(var i in e)t[i]=e[i];return t},n}(),$7=function(n){function t(){return null!==n&&n.apply(this,arguments)||this}return dr(t,n),t.prototype.setAccount=function(){throw ut.createUnexpectedError("Storage interface - setAccount() has not been implemented for the cacheStorage interface.")},t.prototype.getAccount=function(){throw ut.createUnexpectedError("Storage interface - getAccount() has not been implemented for the cacheStorage interface.")},t.prototype.setIdTokenCredential=function(){throw ut.createUnexpectedError("Storage interface - setIdTokenCredential() has not been implemented for the cacheStorage interface.")},t.prototype.getIdTokenCredential=function(){throw ut.createUnexpectedError("Storage interface - getIdTokenCredential() has not been implemented for the cacheStorage interface.")},t.prototype.setAccessTokenCredential=function(){throw ut.createUnexpectedError("Storage interface - setAccessTokenCredential() has not been implemented for the cacheStorage interface.")},t.prototype.getAccessTokenCredential=function(){throw ut.createUnexpectedError("Storage interface - getAccessTokenCredential() has not been implemented for the cacheStorage interface.")},t.prototype.setRefreshTokenCredential=function(){throw ut.createUnexpectedError("Storage interface - setRefreshTokenCredential() has not been implemented for the cacheStorage interface.")},t.prototype.getRefreshTokenCredential=function(){throw ut.createUnexpectedError("Storage interface - getRefreshTokenCredential() has not been implemented for the cacheStorage interface.")},t.prototype.setAppMetadata=function(){throw ut.createUnexpectedError("Storage interface - setAppMetadata() has not been implemented for the cacheStorage interface.")},t.prototype.getAppMetadata=function(){throw ut.createUnexpectedError("Storage interface - getAppMetadata() has not been implemented for the cacheStorage interface.")},t.prototype.setServerTelemetry=function(){throw ut.createUnexpectedError("Storage interface - setServerTelemetry() has not been implemented for the cacheStorage interface.")},t.prototype.getServerTelemetry=function(){throw ut.createUnexpectedError("Storage interface - getServerTelemetry() has not been implemented for the cacheStorage interface.")},t.prototype.setAuthorityMetadata=function(){throw ut.createUnexpectedError("Storage interface - setAuthorityMetadata() has not been implemented for the cacheStorage interface.")},t.prototype.getAuthorityMetadata=function(){throw ut.createUnexpectedError("Storage interface - getAuthorityMetadata() has not been implemented for the cacheStorage interface.")},t.prototype.getAuthorityMetadataKeys=function(){throw ut.createUnexpectedError("Storage interface - getAuthorityMetadataKeys() has not been implemented for the cacheStorage interface.")},t.prototype.setThrottlingCache=function(){throw ut.createUnexpectedError("Storage interface - setThrottlingCache() has not been implemented for the cacheStorage interface.")},t.prototype.getThrottlingCache=function(){throw ut.createUnexpectedError("Storage interface - getThrottlingCache() has not been implemented for the cacheStorage interface.")},t.prototype.removeItem=function(){throw ut.createUnexpectedError("Storage interface - removeItem() has not been implemented for the cacheStorage interface.")},t.prototype.containsKey=function(){throw ut.createUnexpectedError("Storage interface - containsKey() has not been implemented for the cacheStorage interface.")},t.prototype.getKeys=function(){throw ut.createUnexpectedError("Storage interface - getKeys() has not been implemented for the cacheStorage interface.")},t.prototype.clear=function(){return At(this,void 0,void 0,function(){return Tt(this,function(i){throw ut.createUnexpectedError("Storage interface - clear() has not been implemented for the cacheStorage interface.")})})},t.prototype.updateCredentialCacheKey=function(){throw ut.createUnexpectedError("Storage interface - updateCredentialCacheKey() has not been implemented for the cacheStorage interface.")},t}(Io),Wd=function(n){function t(){return null!==n&&n.apply(this,arguments)||this}return dr(t,n),t.createIdTokenEntity=function(e,i,r,o,s){var a=new t;return a.credentialType=zt.ID_TOKEN,a.homeAccountId=e,a.environment=i,a.clientId=o,a.secret=r,a.realm=s,a},t.isIdTokenEntity=function(e){return!!e&&e.hasOwnProperty("homeAccountId")&&e.hasOwnProperty("environment")&&e.hasOwnProperty("credentialType")&&e.hasOwnProperty("realm")&&e.hasOwnProperty("clientId")&&e.hasOwnProperty("secret")&&e.credentialType===zt.ID_TOKEN},t}(Gd),Zr=function(){function n(){}return n.nowSeconds=function(){return Math.round((new Date).getTime()/1e3)},n.isTokenExpired=function(t,e){var i=Number(t)||0;return n.nowSeconds()+e>i},n.wasClockTurnedBack=function(t){return Number(t)>n.nowSeconds()},n.delay=function(t,e){return new Promise(function(i){return setTimeout(function(){return i(e)},t)})},n}(),$d=function(n){function t(){return null!==n&&n.apply(this,arguments)||this}return dr(t,n),t.createAccessTokenEntity=function(e,i,r,o,s,a,l,c,u,d,h,m,y,A,U){var te,Ee,ne=new t;ne.homeAccountId=e,ne.credentialType=zt.ACCESS_TOKEN,ne.secret=r;var Me=Zr.nowSeconds();if(ne.cachedAt=Me.toString(),ne.expiresOn=l.toString(),ne.extendedExpiresOn=c.toString(),d&&(ne.refreshOn=d.toString()),ne.environment=i,ne.clientId=o,ne.realm=s,ne.target=a,ne.userAssertionHash=m,ne.tokenType=Ke.isEmpty(h)?fn.BEARER:h,A&&(ne.requestedClaims=A,ne.requestedClaimsHash=U),(null===(te=ne.tokenType)||void 0===te?void 0:te.toLowerCase())!==fn.BEARER.toLowerCase())switch(ne.credentialType=zt.ACCESS_TOKEN_WITH_AUTH_SCHEME,ne.tokenType){case fn.POP:var at=va.extractTokenClaims(r,u);if(null===(Ee=at?.cnf)||void 0===Ee||!Ee.kid)throw nt.createTokenClaimsRequiredError();ne.keyId=at.cnf.kid;break;case fn.SSH:ne.keyId=y}return ne},t.isAccessTokenEntity=function(e){return!!e&&e.hasOwnProperty("homeAccountId")&&e.hasOwnProperty("environment")&&e.hasOwnProperty("credentialType")&&e.hasOwnProperty("realm")&&e.hasOwnProperty("clientId")&&e.hasOwnProperty("secret")&&e.hasOwnProperty("target")&&(e.credentialType===zt.ACCESS_TOKEN||e.credentialType===zt.ACCESS_TOKEN_WITH_AUTH_SCHEME)},t}(Gd),rC=function(n){function t(){return null!==n&&n.apply(this,arguments)||this}return dr(t,n),t.createRefreshTokenEntity=function(e,i,r,o,s,a){var l=new t;return l.clientId=o,l.credentialType=zt.REFRESH_TOKEN,l.environment=i,l.homeAccountId=e,l.secret=r,l.userAssertionHash=a,s&&(l.familyId=s),l},t.isRefreshTokenEntity=function(e){return!!e&&e.hasOwnProperty("homeAccountId")&&e.hasOwnProperty("environment")&&e.hasOwnProperty("credentialType")&&e.hasOwnProperty("clientId")&&e.hasOwnProperty("secret")&&e.credentialType===zt.REFRESH_TOKEN},t}(Gd),oC=function(){function n(){}return n.prototype.generateAppMetadataKey=function(){return n.generateAppMetadataCacheKey(this.environment,this.clientId)},n.generateAppMetadataCacheKey=function(t,e){return[tC,t,e].join(hr.CACHE_KEY_SEPARATOR).toLowerCase()},n.createAppMetadataEntity=function(t,e,i){var r=new n;return r.clientId=t,r.environment=e,i&&(r.familyId=i),r},n.isAppMetadataEntity=function(t,e){return!!e&&0===t.indexOf(tC)&&e.hasOwnProperty("clientId")&&e.hasOwnProperty("environment")},n}(),vm=function(){function n(){this.failedRequests=[],this.errors=[],this.cacheHits=0}return n.isServerTelemetryEntity=function(t,e){var i=0===t.indexOf(wi.CACHE_KEY),r=!0;return e&&(r=e.hasOwnProperty("failedRequests")&&e.hasOwnProperty("errors")&&e.hasOwnProperty("cacheHits")),i&&r},n}(),sC=function(){function n(){this.expiresAt=Zr.nowSeconds()+86400}return n.prototype.updateCloudDiscoveryMetadata=function(t,e){this.aliases=t.aliases,this.preferred_cache=t.preferred_cache,this.preferred_network=t.preferred_network,this.aliasesFromNetwork=e},n.prototype.updateEndpointMetadata=function(t,e){this.authorization_endpoint=t.authorization_endpoint,this.token_endpoint=t.token_endpoint,this.end_session_endpoint=t.end_session_endpoint,this.issuer=t.issuer,this.endpointsFromNetwork=e,this.jwks_uri=t.jwks_uri},n.prototype.updateCanonicalAuthority=function(t){this.canonical_authority=t},n.prototype.resetExpiresAt=function(){this.expiresAt=Zr.nowSeconds()+86400},n.prototype.isExpired=function(){return this.expiresAt<=Zr.nowSeconds()},n.isAuthorityMetadataEntity=function(t,e){return!!e&&0===t.indexOf("authority-metadata")&&e.hasOwnProperty("aliases")&&e.hasOwnProperty("preferred_cache")&&e.hasOwnProperty("preferred_network")&&e.hasOwnProperty("canonical_authority")&&e.hasOwnProperty("authorization_endpoint")&&e.hasOwnProperty("token_endpoint")&&e.hasOwnProperty("issuer")&&e.hasOwnProperty("aliasesFromNetwork")&&e.hasOwnProperty("endpointsFromNetwork")&&e.hasOwnProperty("expiresAt")&&e.hasOwnProperty("jwks_uri")},n}(),xI=function(){function n(){}return n.isThrottlingEntity=function(t,e){var i=!1;t&&(i=0===t.indexOf("throttling"));var r=!0;return e&&(r=e.hasOwnProperty("throttleTime")),i&&r},n}(),js=function(){function n(){}return n.setRequestState=function(t,e,i){var r=n.generateLibraryState(t,i);return Ke.isEmpty(e)?r:""+r+ee.RESOURCE_DELIM+e},n.generateLibraryState=function(t,e){if(!t)throw nt.createNoCryptoObjectError("generateLibraryState");var i={id:t.createNewGuid()};e&&(i.meta=e);var r=JSON.stringify(i);return t.base64Encode(r)},n.parseRequestState=function(t,e){if(!t)throw nt.createNoCryptoObjectError("parseRequestState");if(Ke.isEmpty(e))throw nt.createInvalidStateError(e,"Null, undefined or empty state");try{var i=e.split(ee.RESOURCE_DELIM),r=i[0],o=i.length>1?i.slice(1).join(ee.RESOURCE_DELIM):ee.EMPTY_STRING,s=t.base64Decode(r),a=JSON.parse(s);return{userRequestState:Ke.isEmpty(o)?ee.EMPTY_STRING:o,libraryState:a}}catch(l){throw nt.createInvalidStateError(e,l)}},n}(),mr=(()=>(function(n){n.HOME_ACCOUNT_ID="home_account_id",n.UPN="UPN"}(mr||(mr={})),mr))(),Xr_redirectUriNotSet_code="redirect_uri_empty",Xr_redirectUriNotSet_desc="A redirect URI is required for all calls, and none has been set.",Xr_postLogoutUriNotSet_code="post_logout_uri_empty",Xr_postLogoutUriNotSet_desc="A post logout redirect has not been set.",Xr_storageNotSupportedError_code="storage_not_supported",Xr_storageNotSupportedError_desc="Given storage configuration option was not supported.",Xr_noRedirectCallbacksSet_code="no_redirect_callbacks",Xr_noRedirectCallbacksSet_desc="No redirect callbacks have been set. Please call setRedirectCallbacks() with the appropriate function arguments before continuing. More information is available here: https://github.com/AzureAD/microsoft-authentication-library-for-js/wiki/MSAL-basics.",Xr_stubPcaInstanceCalled_code="stubbed_public_client_application_called",Xr_stubPcaInstanceCalled_desc="Stub instance of Public Client Application was called. If using msal-react, please ensure context is not used without a provider. For more visit: aka.ms/msaljs/browser-errors",Xr_inMemRedirectUnavailable_code="in_mem_redirect_unavailable",Xr_inMemRedirectUnavailable_desc="Redirect cannot be supported. In-memory storage was selected and storeAuthStateInCookie=false, which would cause the library to be unable to handle the incoming hash. If you would like to use the redirect API, please use session/localStorage or set storeAuthStateInCookie=true.",ym=function(n){function t(e,i){var r=n.call(this,e,i)||this;return r.name="BrowserConfigurationAuthError",Object.setPrototypeOf(r,t.prototype),r}return Ci(t,n),t.createRedirectUriEmptyError=function(){return new t(Xr_redirectUriNotSet_code,Xr_redirectUriNotSet_desc)},t.createPostLogoutRedirectUriEmptyError=function(){return new t(Xr_postLogoutUriNotSet_code,Xr_postLogoutUriNotSet_desc)},t.createStorageNotSupportedError=function(e){return new t(Xr_storageNotSupportedError_code,Xr_storageNotSupportedError_desc+" Given Location: "+e)},t.createRedirectCallbacksNotSetError=function(){return new t(Xr_noRedirectCallbacksSet_code,Xr_noRedirectCallbacksSet_desc)},t.createStubPcaInstanceCalledError=function(){return new t(Xr_stubPcaInstanceCalled_code,Xr_stubPcaInstanceCalled_desc)},t.createInMemoryRedirectUnavailableError=function(){return new t(Xr_inMemRedirectUnavailable_code,Xr_inMemRedirectUnavailable_desc)},t}(ut),II=function(){function n(t){this.validateWindowStorage(t),this.windowStorage=window[t]}return n.prototype.validateWindowStorage=function(t){if(t!==pi.LocalStorage&&t!==pi.SessionStorage)throw ym.createStorageNotSupportedError(t);if(!window[t])throw ym.createStorageNotSupportedError(t)},n.prototype.getItem=function(t){return this.windowStorage.getItem(t)},n.prototype.setItem=function(t,e){this.windowStorage.setItem(t,e)},n.prototype.removeItem=function(t){this.windowStorage.removeItem(t)},n.prototype.getKeys=function(){return Object.keys(this.windowStorage)},n.prototype.containsKey=function(t){return this.windowStorage.hasOwnProperty(t)},n}(),nn=function(){function n(t){if(this._urlString=t,Ke.isEmpty(this._urlString))throw Mn.createUrlEmptyError();Ke.isEmpty(this.getHash())&&(this._urlString=n.canonicalizeUri(t))}return Object.defineProperty(n.prototype,"urlString",{get:function(){return this._urlString},enumerable:!1,configurable:!0}),n.canonicalizeUri=function(t){if(t){var e=t.toLowerCase();return Ke.endsWith(e,"?")?e=e.slice(0,-1):Ke.endsWith(e,"?/")&&(e=e.slice(0,-2)),Ke.endsWith(e,"/")||(e+="/"),e}return t},n.prototype.validateAsUri=function(){var t;try{t=this.getUrlComponents()}catch(e){throw Mn.createUrlParseError(e)}if(!t.HostNameAndPort||!t.PathSegments)throw Mn.createUrlParseError("Given url string: "+this.urlString);if(!t.Protocol||"https:"!==t.Protocol.toLowerCase())throw Mn.createInsecureAuthorityUriError(this.urlString)},n.appendQueryString=function(t,e){return Ke.isEmpty(e)?t:t.indexOf("?")<0?t+"?"+e:t+"&"+e},n.removeHashFromUrl=function(t){return n.canonicalizeUri(t.split("#")[0])},n.prototype.replaceTenantPath=function(t){var e=this.getUrlComponents(),i=e.PathSegments;return t&&0!==i.length&&(i[0]===Nd.COMMON||i[0]===Nd.ORGANIZATIONS)&&(i[0]=t),n.constructAuthorityUriFromObject(e)},n.prototype.getHash=function(){return n.parseHash(this.urlString)},n.prototype.getUrlComponents=function(){var t=RegExp("^(([^:/?#]+):)?(//([^/?#]*))?([^?#]*)(\\?([^#]*))?(#(.*))?"),e=this.urlString.match(t);if(!e)throw Mn.createUrlParseError("Given url string: "+this.urlString);var i={Protocol:e[1],HostNameAndPort:e[4],AbsolutePath:e[5],QueryString:e[7]},r=i.AbsolutePath.split("/");return r=r.filter(function(o){return o&&o.length>0}),i.PathSegments=r,!Ke.isEmpty(i.QueryString)&&i.QueryString.endsWith("/")&&(i.QueryString=i.QueryString.substring(0,i.QueryString.length-1)),i},n.getDomainFromUrl=function(t){var e=RegExp("^([^:/?#]+://)?([^/?#]*)"),i=t.match(e);if(!i)throw Mn.createUrlParseError("Given url string: "+t);return i[2]},n.getAbsoluteUrl=function(t,e){if(t[0]===ee.FORWARD_SLASH){var r=new n(e).getUrlComponents();return r.Protocol+"//"+r.HostNameAndPort+t}return t},n.parseHash=function(t){var e=t.indexOf("#"),i=t.indexOf("#/");return i>-1?t.substring(i+2):e>-1?t.substring(e+1):ee.EMPTY_STRING},n.constructAuthorityUriFromObject=function(t){return new n(t.Protocol+"//"+t.HostNameAndPort+"/"+t.PathSegments.join("/"))},n.getDeserializedHash=function(t){if(Ke.isEmpty(t))return{};var e=n.parseHash(t),i=Ke.queryStringToObject(Ke.isEmpty(e)?t:e);if(!i)throw nt.createHashNotDeserializedError(JSON.stringify(i));return i},n.hashContainsKnownProperties=function(t){if(Ke.isEmpty(t)||t.indexOf("=")<0)return!1;var e=n.getDeserializedHash(t);return!!(e.code||e.error_description||e.error||e.state)},n}(),MI=function(){function n(){}return n.extractBrowserRequestState=function(t,e){if(Ke.isEmpty(e))return null;try{return js.parseRequestState(t,e).libraryState.meta}catch(r){throw nt.createInvalidStateError(e,r)}},n.parseServerResponseFromHash=function(t){if(!t)return{};var e=new nn(t);return nn.getDeserializedHash(e.getHash())},n}(),aC=function(n){function t(e,i,r,o){var s=n.call(this,e,r)||this;return s.COOKIE_LIFE_MULTIPLIER=864e5,s.cacheConfig=i,s.logger=o,s.internalStorage=new iC,s.browserStorage=s.setupBrowserStorage(s.cacheConfig.cacheLocation),s.temporaryCacheStorage=s.setupTemporaryCacheStorage(s.cacheConfig.cacheLocation),s.migrateCacheEntries(),s}return Ci(t,n),t.prototype.setupBrowserStorage=function(e){switch(e){case pi.LocalStorage:case pi.SessionStorage:try{return new II(e)}catch(i){this.logger.verbose(i);break}}return this.cacheConfig.cacheLocation=pi.MemoryStorage,new iC},t.prototype.setupTemporaryCacheStorage=function(e){switch(e){case pi.LocalStorage:case pi.SessionStorage:try{return new II(pi.SessionStorage)}catch(i){return this.logger.verbose(i),this.internalStorage}default:return this.internalStorage}},t.prototype.migrateCacheEntries=function(){var e=this,r=ee.CACHE_PREFIX+"."+ii.CLIENT_INFO,o=ee.CACHE_PREFIX+"."+ii.ERROR,s=ee.CACHE_PREFIX+"."+ii.ERROR_DESC,d=[this.browserStorage.getItem(ee.CACHE_PREFIX+"."+ii.ID_TOKEN),this.browserStorage.getItem(r),this.browserStorage.getItem(o),this.browserStorage.getItem(s)];[ii.ID_TOKEN,ii.CLIENT_INFO,ii.ERROR,ii.ERROR_DESC].forEach(function(m,y){return e.migrateCacheEntry(m,d[y])})},t.prototype.migrateCacheEntry=function(e,i){i&&this.setTemporaryCache(e,i,!0)},t.prototype.validateAndParseJson=function(e){try{var i=JSON.parse(e);return i&&"object"==typeof i?i:null}catch{return null}},t.prototype.getItem=function(e){return this.browserStorage.getItem(e)},t.prototype.setItem=function(e,i){this.browserStorage.setItem(e,i)},t.prototype.getAccount=function(e){var i=this.getItem(e);if(!i)return null;var r=this.validateAndParseJson(i);return r&&Fi.isAccountEntity(r)?Io.toObject(new Fi,r):null},t.prototype.setAccount=function(e){this.logger.trace("BrowserCacheManager.setAccount called");var i=e.generateAccountKey();this.setItem(i,JSON.stringify(e))},t.prototype.getIdTokenCredential=function(e){var i=this.getItem(e);if(!i)return this.logger.trace("BrowserCacheManager.getIdTokenCredential: called, no cache hit"),null;var r=this.validateAndParseJson(i);return r&&Wd.isIdTokenEntity(r)?(this.logger.trace("BrowserCacheManager.getIdTokenCredential: cache hit"),Io.toObject(new Wd,r)):(this.logger.trace("BrowserCacheManager.getIdTokenCredential: called, no cache hit"),null)},t.prototype.setIdTokenCredential=function(e){this.logger.trace("BrowserCacheManager.setIdTokenCredential called");var i=e.generateCredentialKey();this.setItem(i,JSON.stringify(e))},t.prototype.getAccessTokenCredential=function(e){var i=this.getItem(e);if(!i)return this.logger.trace("BrowserCacheManager.getAccessTokenCredential: called, no cache hit"),null;var r=this.validateAndParseJson(i);return r&&$d.isAccessTokenEntity(r)?(this.logger.trace("BrowserCacheManager.getAccessTokenCredential: cache hit"),Io.toObject(new $d,r)):(this.logger.trace("BrowserCacheManager.getAccessTokenCredential: called, no cache hit"),null)},t.prototype.setAccessTokenCredential=function(e){this.logger.trace("BrowserCacheManager.setAccessTokenCredential called");var i=e.generateCredentialKey();this.setItem(i,JSON.stringify(e))},t.prototype.getRefreshTokenCredential=function(e){var i=this.getItem(e);if(!i)return this.logger.trace("BrowserCacheManager.getRefreshTokenCredential: called, no cache hit"),null;var r=this.validateAndParseJson(i);return r&&rC.isRefreshTokenEntity(r)?(this.logger.trace("BrowserCacheManager.getRefreshTokenCredential: cache hit"),Io.toObject(new rC,r)):(this.logger.trace("BrowserCacheManager.getRefreshTokenCredential: called, no cache hit"),null)},t.prototype.setRefreshTokenCredential=function(e){this.logger.trace("BrowserCacheManager.setRefreshTokenCredential called");var i=e.generateCredentialKey();this.setItem(i,JSON.stringify(e))},t.prototype.getAppMetadata=function(e){var i=this.getItem(e);if(!i)return this.logger.trace("BrowserCacheManager.getAppMetadata: called, no cache hit"),null;var r=this.validateAndParseJson(i);return r&&oC.isAppMetadataEntity(e,r)?(this.logger.trace("BrowserCacheManager.getAppMetadata: cache hit"),Io.toObject(new oC,r)):(this.logger.trace("BrowserCacheManager.getAppMetadata: called, no cache hit"),null)},t.prototype.setAppMetadata=function(e){this.logger.trace("BrowserCacheManager.setAppMetadata called");var i=e.generateAppMetadataKey();this.setItem(i,JSON.stringify(e))},t.prototype.getServerTelemetry=function(e){var i=this.getItem(e);if(!i)return this.logger.trace("BrowserCacheManager.getServerTelemetry: called, no cache hit"),null;var r=this.validateAndParseJson(i);return r&&vm.isServerTelemetryEntity(e,r)?(this.logger.trace("BrowserCacheManager.getServerTelemetry: cache hit"),Io.toObject(new vm,r)):(this.logger.trace("BrowserCacheManager.getServerTelemetry: called, no cache hit"),null)},t.prototype.setServerTelemetry=function(e,i){this.logger.trace("BrowserCacheManager.setServerTelemetry called"),this.setItem(e,JSON.stringify(i))},t.prototype.getAuthorityMetadata=function(e){var i=this.internalStorage.getItem(e);if(!i)return this.logger.trace("BrowserCacheManager.getAuthorityMetadata: called, no cache hit"),null;var r=this.validateAndParseJson(i);return r&&sC.isAuthorityMetadataEntity(e,r)?(this.logger.trace("BrowserCacheManager.getAuthorityMetadata: cache hit"),Io.toObject(new sC,r)):null},t.prototype.getAuthorityMetadataKeys=function(){var e=this;return this.internalStorage.getKeys().filter(function(r){return e.isAuthorityMetadata(r)})},t.prototype.setWrapperMetadata=function(e,i){this.internalStorage.setItem(ll.WRAPPER_SKU,e),this.internalStorage.setItem(ll.WRAPPER_VER,i)},t.prototype.getWrapperMetadata=function(){return[this.internalStorage.getItem(ll.WRAPPER_SKU)||ee.EMPTY_STRING,this.internalStorage.getItem(ll.WRAPPER_VER)||ee.EMPTY_STRING]},t.prototype.setAuthorityMetadata=function(e,i){this.logger.trace("BrowserCacheManager.setAuthorityMetadata called"),this.internalStorage.setItem(e,JSON.stringify(i))},t.prototype.getActiveAccount=function(){var e=this.generateCacheKey(ii.ACTIVE_ACCOUNT_FILTERS),i=this.getItem(e);if(!i){this.logger.trace("No active account filters cache schema found, looking for legacy schema");var r=this.generateCacheKey(ii.ACTIVE_ACCOUNT),o=this.getItem(r);if(!o)return this.logger.trace("No active account found"),null;var s=this.getAccountInfoByFilter({localAccountId:o})[0]||null;return s?(this.logger.trace("Legacy active account cache schema found"),this.logger.trace("Adding active account filters cache schema"),this.setActiveAccount(s),s):null}var a=this.validateAndParseJson(i);return a?(this.logger.trace("Active account filters schema found"),this.getAccountInfoByFilter({homeAccountId:a.homeAccountId,localAccountId:a.localAccountId})[0]||null):(this.logger.trace("No active account found"),null)},t.prototype.setActiveAccount=function(e){var i=this.generateCacheKey(ii.ACTIVE_ACCOUNT_FILTERS),r=this.generateCacheKey(ii.ACTIVE_ACCOUNT);e?(this.logger.verbose("setActiveAccount: Active account set"),this.browserStorage.setItem(i,JSON.stringify({homeAccountId:e.homeAccountId,localAccountId:e.localAccountId})),this.browserStorage.setItem(r,e.localAccountId)):(this.logger.verbose("setActiveAccount: No account passed, active account not set"),this.browserStorage.removeItem(i),this.browserStorage.removeItem(r))},t.prototype.getAccountInfoByFilter=function(e){return this.getAllAccounts().filter(function(r){return!(e.username&&e.username.toLowerCase()!==r.username.toLowerCase()||e.homeAccountId&&e.homeAccountId!==r.homeAccountId||e.localAccountId&&e.localAccountId!==r.localAccountId||e.tenantId&&e.tenantId!==r.tenantId||e.environment&&e.environment!==r.environment)})},t.prototype.getAccountInfoByHints=function(e,i){var r=this.getAllAccounts().filter(function(o){return i?i===(o.idTokenClaims&&o.idTokenClaims.sid):!!e&&e===o.username});if(1===r.length)return r[0];if(r.length>1)throw nt.createMultipleMatchingAccountsInCacheError();return null},t.prototype.getThrottlingCache=function(e){var i=this.getItem(e);if(!i)return this.logger.trace("BrowserCacheManager.getThrottlingCache: called, no cache hit"),null;var r=this.validateAndParseJson(i);return r&&xI.isThrottlingEntity(e,r)?(this.logger.trace("BrowserCacheManager.getThrottlingCache: cache hit"),Io.toObject(new xI,r)):(this.logger.trace("BrowserCacheManager.getThrottlingCache: called, no cache hit"),null)},t.prototype.setThrottlingCache=function(e,i){this.logger.trace("BrowserCacheManager.setThrottlingCache called"),this.setItem(e,JSON.stringify(i))},t.prototype.getTemporaryCache=function(e,i){var r=i?this.generateCacheKey(e):e;if(this.cacheConfig.storeAuthStateInCookie){var o=this.getItemCookie(r);if(o)return this.logger.trace("BrowserCacheManager.getTemporaryCache: storeAuthStateInCookies set to true, retrieving from cookies"),o}var s=this.temporaryCacheStorage.getItem(r);if(!s){if(this.cacheConfig.cacheLocation===pi.LocalStorage){var a=this.browserStorage.getItem(r);if(a)return this.logger.trace("BrowserCacheManager.getTemporaryCache: Temporary cache item found in local storage"),a}return this.logger.trace("BrowserCacheManager.getTemporaryCache: No cache item found in local storage"),null}return this.logger.trace("BrowserCacheManager.getTemporaryCache: Temporary cache item returned"),s},t.prototype.setTemporaryCache=function(e,i,r){var o=r?this.generateCacheKey(e):e;this.temporaryCacheStorage.setItem(o,i),this.cacheConfig.storeAuthStateInCookie&&(this.logger.trace("BrowserCacheManager.setTemporaryCache: storeAuthStateInCookie set to true, setting item cookie"),this.setItemCookie(o,i))},t.prototype.removeItem=function(e){return this.browserStorage.removeItem(e),this.temporaryCacheStorage.removeItem(e),this.cacheConfig.storeAuthStateInCookie&&(this.logger.trace("BrowserCacheManager.removeItem: storeAuthStateInCookie is true, clearing item cookie"),this.clearItemCookie(e)),!0},t.prototype.containsKey=function(e){return this.browserStorage.containsKey(e)||this.temporaryCacheStorage.containsKey(e)},t.prototype.getKeys=function(){return gI(this.browserStorage.getKeys(),this.temporaryCacheStorage.getKeys())},t.prototype.clear=function(){return Oe(this,void 0,void 0,function(){var e=this;return Pe(this,function(i){switch(i.label){case 0:return[4,this.removeAllAccounts()];case 1:return i.sent(),this.removeAppMetadata(),this.getKeys().forEach(function(r){(e.browserStorage.containsKey(r)||e.temporaryCacheStorage.containsKey(r))&&(-1!==r.indexOf(ee.CACHE_PREFIX)||-1!==r.indexOf(e.clientId))&&e.removeItem(r)}),this.internalStorage.clear(),[2]}})})},t.prototype.setItemCookie=function(e,i,r){var o=encodeURIComponent(e)+"="+encodeURIComponent(i)+";path=/;SameSite=Lax;";r&&(o+="expires="+this.getCookieExpirationTime(r)+";"),this.cacheConfig.secureCookies&&(o+="Secure;"),document.cookie=o},t.prototype.getItemCookie=function(e){for(var i=encodeURIComponent(e)+"=",r=document.cookie.split(";"),o=0;o(function(n){n.AAD="AAD",n.OIDC="OIDC"}(Kd||(Kd={})),Kd))(),qc=(()=>(function(n){n[n.None=0]="None",n.AzurePublic="https://login.microsoftonline.com",n.AzurePpe="https://login.windows-ppe.net",n.AzureChina="https://login.chinacloudapi.cn",n.AzureGermany="https://login.microsoftonline.de",n.AzureUsGovernment="https://login.microsoftonline.us"}(qc||(qc={})),qc))(),RI={tokenRenewalOffsetSeconds:300,preventCorsPreflight:!1,proxyUrl:ee.EMPTY_STRING},J7={loggerCallback:function(){},piiLoggingEnabled:!1,logLevel:mi.Info,correlationId:ee.EMPTY_STRING},Z7={sendGetRequestAsync:function(){return At(this,void 0,void 0,function(){return Tt(this,function(t){throw ut.createUnexpectedError("Network interface - sendGetRequestAsync() has not been implemented")})})},sendPostRequestAsync:function(){return At(this,void 0,void 0,function(){return Tt(this,function(t){throw ut.createUnexpectedError("Network interface - sendPostRequestAsync() has not been implemented")})})}},X7={sku:ee.SKU,version:"7.3.0",cpu:ee.EMPTY_STRING,os:ee.EMPTY_STRING},eG={clientSecret:ee.EMPTY_STRING,clientAssertion:void 0},tG={azureCloudInstance:qc.None,tenant:""+ee.DEFAULT_COMMON_TENANT},nG={application:{appName:"",appVersion:""}};function rG(n){return Gn({clientCapabilities:[],azureCloudOptions:tG,skipAuthorityMetadataCache:!1},n)}var oG={sendGetRequestAsync:function(){return Promise.reject(ut.createUnexpectedError("Network interface - sendGetRequestAsync() has not been implemented for the Network interface."))},sendPostRequestAsync:function(){return Promise.reject(ut.createUnexpectedError("Network interface - sendPostRequestAsync() has not been implemented for the Network interface."))}},sG=function(){function n(){}return n.prototype.sendGetRequestAsync=function(t,e){return Oe(this,void 0,void 0,function(){var i,r,o;return Pe(this,function(s){switch(s.label){case 0:return s.trys.push([0,2,,3]),[4,fetch(t,{method:To.GET,headers:this.getFetchHeaders(e)})];case 1:return i=s.sent(),[3,3];case 2:throw r=s.sent(),window.navigator.onLine?ze.createGetRequestFailedError(r,t):ze.createNoNetworkConnectivityError();case 3:return s.trys.push([3,5,,6]),o={headers:this.getHeaderDict(i.headers)},[4,i.json()];case 4:return[2,(o.body=s.sent(),o.status=i.status,o)];case 5:throw s.sent(),ze.createFailedToParseNetworkResponseError(t);case 6:return[2]}})})},n.prototype.sendPostRequestAsync=function(t,e){return Oe(this,void 0,void 0,function(){var i,r,o,s;return Pe(this,function(a){switch(a.label){case 0:i=e&&e.body||ee.EMPTY_STRING,a.label=1;case 1:return a.trys.push([1,3,,4]),[4,fetch(t,{method:To.POST,headers:this.getFetchHeaders(e),body:i})];case 2:return r=a.sent(),[3,4];case 3:throw o=a.sent(),window.navigator.onLine?ze.createPostRequestFailedError(o,t):ze.createNoNetworkConnectivityError();case 4:return a.trys.push([4,6,,7]),s={headers:this.getHeaderDict(r.headers)},[4,r.json()];case 5:return[2,(s.body=a.sent(),s.status=r.status,s)];case 6:throw a.sent(),ze.createFailedToParseNetworkResponseError(t);case 7:return[2]}})})},n.prototype.getFetchHeaders=function(t){var e=new Headers;if(!t||!t.headers)return e;var i=t.headers;return Object.keys(i).forEach(function(r){e.append(r,i[r])}),e},n.prototype.getHeaderDict=function(t){var e={};return t.forEach(function(i,r){e[r]=i}),e},n}(),aG=function(){function n(){}return n.prototype.sendGetRequestAsync=function(t,e){return Oe(this,void 0,void 0,function(){return Pe(this,function(i){return[2,this.sendRequestAsync(t,To.GET,e)]})})},n.prototype.sendPostRequestAsync=function(t,e){return Oe(this,void 0,void 0,function(){return Pe(this,function(i){return[2,this.sendRequestAsync(t,To.POST,e)]})})},n.prototype.sendRequestAsync=function(t,e,i){var r=this;return new Promise(function(o,s){var a=new XMLHttpRequest;if(a.open(e,t,!0),r.setXhrHeaders(a,i),a.onload=function(){(a.status<200||a.status>=300)&&s(e===To.POST?ze.createPostRequestFailedError("Failed with status "+a.status,t):ze.createGetRequestFailedError("Failed with status "+a.status,t));try{var l=JSON.parse(a.responseText),c={headers:r.getHeaderDict(a),body:l,status:a.status};o(c)}catch{s(ze.createFailedToParseNetworkResponseError(t))}},a.onerror=function(){window.navigator.onLine?s(e===To.POST?ze.createPostRequestFailedError("Failed with status "+a.status,t):ze.createGetRequestFailedError("Failed with status "+a.status,t)):s(ze.createNoNetworkConnectivityError())},e===To.POST&&i&&i.body)a.send(i.body);else{if(e!==To.GET)throw ze.createHttpMethodNotImplementedError(e);a.send()}})},n.prototype.setXhrHeaders=function(t,e){if(e&&e.headers){var i=e.headers;Object.keys(i).forEach(function(r){t.setRequestHeader(r,i[r])})}},n.prototype.getHeaderDict=function(t){var i=t.getAllResponseHeaders().trim().split(/[\r\n]+/),r={};return i.forEach(function(o){var s=o.split(": "),a=s.shift(),l=s.join(": ");a&&l&&(r[a]=l)}),r},n}(),Fn=function(){function n(){}return n.clearHash=function(t){t.location.hash=ee.EMPTY_STRING,"function"==typeof t.history.replaceState&&t.history.replaceState(null,ee.EMPTY_STRING,""+t.location.origin+t.location.pathname+t.location.search)},n.replaceHash=function(t){var e=t.split("#");e.shift(),window.location.hash=e.length>0?e.join("#"):ee.EMPTY_STRING},n.isInIframe=function(){return window.parent!==window},n.isInPopup=function(){return typeof window<"u"&&!!window.opener&&window.opener!==window&&"string"==typeof window.name&&0===window.name.indexOf("msal.")},n.getCurrentUri=function(){return window.location.href.split("?")[0].split("#")[0]},n.getHomepage=function(){var e=new nn(window.location.href).getUrlComponents();return e.Protocol+"//"+e.HostNameAndPort+"/"},n.getBrowserNetworkClient=function(){return window.fetch&&window.Headers?new sG:new aG},n.blockReloadInHiddenIframes=function(){if(nn.hashContainsKnownProperties(window.location.hash)&&n.isInIframe())throw ze.createBlockReloadInHiddenIframeError()},n.blockRedirectInIframe=function(t,e){var i=n.isInIframe();if(t===$e.Redirect&&i&&!e)throw ze.createRedirectInIframeError(i)},n.blockAcquireTokenInPopups=function(){if(n.isInPopup())throw ze.createBlockAcquireTokenInPopupsError()},n.blockNonBrowserEnvironment=function(t){if(!t)throw ze.createNonBrowserEnvironmentError()},n.blockNativeBrokerCalledBeforeInitialized=function(t,e){if(t&&!e)throw ze.createNativeBrokerCalledBeforeInitialize()},n.detectIEOrEdge=function(){var t=window.navigator.userAgent,e=t.indexOf("MSIE "),i=t.indexOf("Trident/"),r=t.indexOf("Edge/");return e>0||i>0||r>0},n}(),lG=function(){function n(){}return n.prototype.navigateInternal=function(t,e){return n.defaultNavigateWindow(t,e)},n.prototype.navigateExternal=function(t,e){return n.defaultNavigateWindow(t,e)},n.defaultNavigateWindow=function(t,e){return e.noHistory?window.location.replace(t):window.location.assign(t),new Promise(function(i){setTimeout(function(){i(!0)},e.timeout)})},n}(),cC="@azure/msal-browser",Yd="2.28.1",st=(()=>(function(n){n.INITIALIZE_START="msal:initializeStart",n.INITIALIZE_END="msal:initializeEnd",n.ACCOUNT_ADDED="msal:accountAdded",n.ACCOUNT_REMOVED="msal:accountRemoved",n.LOGIN_START="msal:loginStart",n.LOGIN_SUCCESS="msal:loginSuccess",n.LOGIN_FAILURE="msal:loginFailure",n.ACQUIRE_TOKEN_START="msal:acquireTokenStart",n.ACQUIRE_TOKEN_SUCCESS="msal:acquireTokenSuccess",n.ACQUIRE_TOKEN_FAILURE="msal:acquireTokenFailure",n.ACQUIRE_TOKEN_NETWORK_START="msal:acquireTokenFromNetworkStart",n.SSO_SILENT_START="msal:ssoSilentStart",n.SSO_SILENT_SUCCESS="msal:ssoSilentSuccess",n.SSO_SILENT_FAILURE="msal:ssoSilentFailure",n.ACQUIRE_TOKEN_BY_CODE_START="msal:acquireTokenByCodeStart",n.ACQUIRE_TOKEN_BY_CODE_SUCCESS="msal:acquireTokenByCodeSuccess",n.ACQUIRE_TOKEN_BY_CODE_FAILURE="msal:acquireTokenByCodeFailure",n.HANDLE_REDIRECT_START="msal:handleRedirectStart",n.HANDLE_REDIRECT_END="msal:handleRedirectEnd",n.POPUP_OPENED="msal:popupOpened",n.LOGOUT_START="msal:logoutStart",n.LOGOUT_SUCCESS="msal:logoutSuccess",n.LOGOUT_FAILURE="msal:logoutFailure",n.LOGOUT_END="msal:logoutEnd"}(st||(st={})),st))(),pG=function(){function n(t,e){this.eventCallbacks=new Map,this.logger=t,this.browserCrypto=e,this.listeningToStorageEvents=!1,this.handleAccountCacheChange=this.handleAccountCacheChange.bind(this)}return n.prototype.addEventCallback=function(t){if(typeof window<"u"){var e=this.browserCrypto.createNewGuid();return this.eventCallbacks.set(e,t),this.logger.verbose("Event callback registered with id: "+e),e}return null},n.prototype.removeEventCallback=function(t){this.eventCallbacks.delete(t),this.logger.verbose("Event callback "+t+" removed.")},n.prototype.enableAccountStorageEvents=function(){typeof window>"u"||(this.listeningToStorageEvents?this.logger.verbose("Account storage listener already registered."):(this.logger.verbose("Adding account storage listener."),this.listeningToStorageEvents=!0,window.addEventListener("storage",this.handleAccountCacheChange)))},n.prototype.disableAccountStorageEvents=function(){typeof window>"u"||(this.listeningToStorageEvents?(this.logger.verbose("Removing account storage listener."),window.removeEventListener("storage",this.handleAccountCacheChange),this.listeningToStorageEvents=!1):this.logger.verbose("No account storage listener registered."))},n.prototype.emitEvent=function(t,e,i,r){var o=this;if(typeof window<"u"){var s={eventType:t,interactionType:e||null,payload:i||null,error:r||null,timestamp:Date.now()};this.logger.info("Emitting event: "+t),this.eventCallbacks.forEach(function(a,l){o.logger.verbose("Emitting event to callback "+l+": "+t),a.apply(null,[s])})}},n.prototype.handleAccountCacheChange=function(t){try{var e=t.newValue||t.oldValue;if(!e)return;var i=JSON.parse(e);if("object"!=typeof i||!Fi.isAccountEntity(i))return;var o=Io.toObject(new Fi,i).getAccountInfo();!t.oldValue&&t.newValue?(this.logger.info("Account was added to cache in a different window"),this.emitEvent(st.ACCOUNT_ADDED,void 0,o)):!t.newValue&&t.oldValue&&(this.logger.info("Account was removed from cache in a different window"),this.emitEvent(st.ACCOUNT_REMOVED,void 0,o))}catch{return}},n}(),bm=function(){function n(){}return n.generateThrottlingStorageKey=function(t){return"throttling."+JSON.stringify(t)},n.preProcess=function(t,e){var i,r=n.generateThrottlingStorageKey(e),o=t.getThrottlingCache(r);if(o){if(o.throttleTime=500&&t.status<600},n.checkResponseForRetryAfter=function(t){return!!t.headers&&t.headers.hasOwnProperty(Qo.RETRY_AFTER)&&(t.status<200||t.status>=300)},n.calculateThrottleTime=function(t){var e=t<=0?0:t,i=Date.now()/1e3;return Math.floor(1e3*Math.min(i+(e||60),i+3600))},n.removeThrottle=function(t,e,i,r){var s=this.generateThrottlingStorageKey({clientId:e,authority:i.authority,scopes:i.scopes,homeAccountIdentifier:r,claims:i.claims,authenticationScheme:i.authenticationScheme,resourceRequestMethod:i.resourceRequestMethod,resourceRequestUri:i.resourceRequestUri,shrClaims:i.shrClaims,sshKid:i.sshKid});return t.removeItem(s,ma.THROTTLING)},n}(),fG=function(){function n(t,e){this.networkClient=t,this.cacheManager=e}return n.prototype.sendPostRequest=function(t,e,i){return At(this,void 0,void 0,function(){var r,o;return Tt(this,function(s){switch(s.label){case 0:bm.preProcess(this.cacheManager,t),s.label=1;case 1:return s.trys.push([1,3,,4]),[4,this.networkClient.sendPostRequestAsync(e,i)];case 2:return r=s.sent(),[3,4];case 3:throw(o=s.sent())instanceof ut?o:nt.createNetworkError(e,o);case 4:return bm.postProcess(this.cacheManager,t,r),[2,r]}})})},n}(),uC=function(){function n(t,e){this.config=function iG(n){var t=n.authOptions,e=n.systemOptions,i=n.loggerOptions,r=n.storageInterface,o=n.networkInterface,s=n.cryptoInterface,a=n.clientCredentials,l=n.libraryInfo,c=n.telemetry,u=n.serverTelemetryManager,d=n.persistencePlugin,h=n.serializableCache,m=Gn(Gn({},J7),i);return{authOptions:rG(t),systemOptions:Gn(Gn({},RI),e),loggerOptions:m,storageInterface:r||new $7(t.clientId,gm),networkInterface:o||Z7,cryptoInterface:s||gm,clientCredentials:a||eG,libraryInfo:Gn(Gn({},X7),l),telemetry:Gn(Gn({},nG),c),serverTelemetryManager:u||null,persistencePlugin:d||null,serializableCache:h||null}}(t),this.logger=new SI(this.config.loggerOptions,"@azure/msal-common","7.3.0"),this.cryptoUtils=this.config.cryptoInterface,this.cacheManager=this.config.storageInterface,this.networkClient=this.config.networkInterface,this.networkManager=new fG(this.networkClient,this.cacheManager),this.serverTelemetryManager=this.config.serverTelemetryManager,this.authority=this.config.authOptions.authority,this.performanceClient=e}return n.prototype.createTokenRequestHeaders=function(t){var e={};if(e[Qo.CONTENT_TYPE]=ee.URL_FORM_CONTENT_TYPE,!this.config.systemOptions.preventCorsPreflight&&t)switch(t.type){case mr.HOME_ACCOUNT_ID:try{var i=Uc(t.credential);e[Qo.CCS_HEADER]="Oid:"+i.uid+"@"+i.utid}catch(r){this.logger.verbose("Could not parse home account ID for CCS Header: "+r)}break;case mr.UPN:e[Qo.CCS_HEADER]="UPN: "+t.credential}return e},n.prototype.executePostToTokenEndpoint=function(t,e,i,r){return At(this,void 0,void 0,function(){var o;return Tt(this,function(s){switch(s.label){case 0:return[4,this.networkManager.sendPostRequest(r,t,{body:e,headers:i,proxyUrl:this.config.systemOptions.proxyUrl})];case 1:return o=s.sent(),this.config.serverTelemetryManager&&o.status<500&&429!==o.status&&this.config.serverTelemetryManager.clearTelemetryCache(),[2,o]}})})},n.prototype.updateAuthority=function(t){if(!t.discoveryComplete())throw nt.createEndpointDiscoveryIncompleteError("Updated authority has not completed endpoint discovery.");this.authority=t},n}(),ul=function(){function n(){}return n.validateRedirectUri=function(t){if(Ke.isEmpty(t))throw Mn.createRedirectUriEmptyError()},n.validatePrompt=function(t){var e=[];for(var i in Li)e.push(Li[i]);if(e.indexOf(t)<0)throw Mn.createInvalidPromptError(t)},n.validateClaims=function(t){try{JSON.parse(t)}catch{throw Mn.createInvalidClaimsRequestError()}},n.validateCodeChallengeParams=function(t,e){if(Ke.isEmpty(t)||Ke.isEmpty(e))throw Mn.createInvalidCodeChallengeParamsError();this.validateCodeChallengeMethod(e)},n.validateCodeChallengeMethod=function(t){if([vI.PLAIN,vI.S256].indexOf(t)<0)throw Mn.createInvalidCodeChallengeMethodError()},n.sanitizeEQParams=function(t,e){return t?(e.forEach(function(i,r){t[r]&&delete t[r]}),t):{}},n}(),zc=function(){function n(){this.parameters=new Map}return n.prototype.addResponseTypeCode=function(){this.parameters.set(Mt.RESPONSE_TYPE,encodeURIComponent(ee.CODE_RESPONSE_TYPE))},n.prototype.addResponseTypeForTokenAndIdToken=function(){this.parameters.set(Mt.RESPONSE_TYPE,encodeURIComponent(ee.TOKEN_RESPONSE_TYPE+" "+ee.ID_TOKEN_RESPONSE_TYPE))},n.prototype.addResponseMode=function(t){this.parameters.set(Mt.RESPONSE_MODE,encodeURIComponent(t||Fd.QUERY))},n.prototype.addNativeBroker=function(){this.parameters.set(Mt.NATIVE_BROKER,encodeURIComponent("1"))},n.prototype.addScopes=function(t,e){void 0===e&&(e=!0);var i=e?am(t||[],Ld):t||[],r=new fr(i);this.parameters.set(Mt.SCOPE,encodeURIComponent(r.printScopes()))},n.prototype.addClientId=function(t){this.parameters.set(Mt.CLIENT_ID,encodeURIComponent(t))},n.prototype.addRedirectUri=function(t){ul.validateRedirectUri(t),this.parameters.set(Mt.REDIRECT_URI,encodeURIComponent(t))},n.prototype.addPostLogoutRedirectUri=function(t){ul.validateRedirectUri(t),this.parameters.set(Mt.POST_LOGOUT_URI,encodeURIComponent(t))},n.prototype.addIdTokenHint=function(t){this.parameters.set(Mt.ID_TOKEN_HINT,encodeURIComponent(t))},n.prototype.addDomainHint=function(t){this.parameters.set(Hc.DOMAIN_HINT,encodeURIComponent(t))},n.prototype.addLoginHint=function(t){this.parameters.set(Hc.LOGIN_HINT,encodeURIComponent(t))},n.prototype.addCcsUpn=function(t){this.parameters.set(Qo.CCS_HEADER,encodeURIComponent("UPN:"+t))},n.prototype.addCcsOid=function(t){this.parameters.set(Qo.CCS_HEADER,encodeURIComponent("Oid:"+t.uid+"@"+t.utid))},n.prototype.addSid=function(t){this.parameters.set(Hc.SID,encodeURIComponent(t))},n.prototype.addClaims=function(t,e){var i=this.addClientCapabilitiesToClaims(t,e);ul.validateClaims(i),this.parameters.set(Mt.CLAIMS,encodeURIComponent(i))},n.prototype.addCorrelationId=function(t){this.parameters.set(Mt.CLIENT_REQUEST_ID,encodeURIComponent(t))},n.prototype.addLibraryInfo=function(t){this.parameters.set(Mt.X_CLIENT_SKU,t.sku),this.parameters.set(Mt.X_CLIENT_VER,t.version),t.os&&this.parameters.set(Mt.X_CLIENT_OS,t.os),t.cpu&&this.parameters.set(Mt.X_CLIENT_CPU,t.cpu)},n.prototype.addApplicationTelemetry=function(t){t?.appName&&this.parameters.set(Mt.X_APP_NAME,t.appName),t?.appVersion&&this.parameters.set(Mt.X_APP_VER,t.appVersion)},n.prototype.addPrompt=function(t){ul.validatePrompt(t),this.parameters.set(""+Mt.PROMPT,encodeURIComponent(t))},n.prototype.addState=function(t){Ke.isEmpty(t)||this.parameters.set(Mt.STATE,encodeURIComponent(t))},n.prototype.addNonce=function(t){this.parameters.set(Mt.NONCE,encodeURIComponent(t))},n.prototype.addCodeChallengeParams=function(t,e){if(ul.validateCodeChallengeParams(t,e),!t||!e)throw Mn.createInvalidCodeChallengeParamsError();this.parameters.set(Mt.CODE_CHALLENGE,encodeURIComponent(t)),this.parameters.set(Mt.CODE_CHALLENGE_METHOD,encodeURIComponent(e))},n.prototype.addAuthorizationCode=function(t){this.parameters.set(Mt.CODE,encodeURIComponent(t))},n.prototype.addDeviceCode=function(t){this.parameters.set(Mt.DEVICE_CODE,encodeURIComponent(t))},n.prototype.addRefreshToken=function(t){this.parameters.set(Mt.REFRESH_TOKEN,encodeURIComponent(t))},n.prototype.addCodeVerifier=function(t){this.parameters.set(Mt.CODE_VERIFIER,encodeURIComponent(t))},n.prototype.addClientSecret=function(t){this.parameters.set(Mt.CLIENT_SECRET,encodeURIComponent(t))},n.prototype.addClientAssertion=function(t){Ke.isEmpty(t)||this.parameters.set(Mt.CLIENT_ASSERTION,encodeURIComponent(t))},n.prototype.addClientAssertionType=function(t){Ke.isEmpty(t)||this.parameters.set(Mt.CLIENT_ASSERTION_TYPE,encodeURIComponent(t))},n.prototype.addOboAssertion=function(t){this.parameters.set(Mt.OBO_ASSERTION,encodeURIComponent(t))},n.prototype.addRequestTokenUse=function(t){this.parameters.set(Mt.REQUESTED_TOKEN_USE,encodeURIComponent(t))},n.prototype.addGrantType=function(t){this.parameters.set(Mt.GRANT_TYPE,encodeURIComponent(t))},n.prototype.addClientInfo=function(){this.parameters.set("client_info","1")},n.prototype.addExtraQueryParameters=function(t){var e=this;ul.sanitizeEQParams(t,this.parameters),Object.keys(t).forEach(function(i){e.parameters.set(i,t[i])})},n.prototype.addClientCapabilitiesToClaims=function(t,e){var i;if(t)try{i=JSON.parse(t)}catch{throw Mn.createInvalidClaimsRequestError()}else i={};return e&&e.length>0&&(i.hasOwnProperty(sl.ACCESS_TOKEN)||(i[sl.ACCESS_TOKEN]={}),i[sl.ACCESS_TOKEN][sl.XMS_CC]={values:e}),JSON.stringify(i)},n.prototype.addUsername=function(t){this.parameters.set(Vd.username,encodeURIComponent(t))},n.prototype.addPassword=function(t){this.parameters.set(Vd.password,encodeURIComponent(t))},n.prototype.addPopToken=function(t){Ke.isEmpty(t)||(this.parameters.set(Mt.TOKEN_TYPE,fn.POP),this.parameters.set(Mt.REQ_CNF,encodeURIComponent(t)))},n.prototype.addSshJwk=function(t){Ke.isEmpty(t)||(this.parameters.set(Mt.TOKEN_TYPE,fn.SSH),this.parameters.set(Mt.REQ_CNF,encodeURIComponent(t)))},n.prototype.addServerTelemetry=function(t){this.parameters.set(Mt.X_CLIENT_CURR_TELEM,t.generateCurrentRequestHeaderValue()),this.parameters.set(Mt.X_CLIENT_LAST_TELEM,t.generateLastRequestHeaderValue())},n.prototype.addThrottling=function(){this.parameters.set(Mt.X_MS_LIB_CAPABILITY,"retry-after, h429")},n.prototype.addLogoutHint=function(t){this.parameters.set(Mt.LOGOUT_HINT,encodeURIComponent(t))},n.prototype.createQueryString=function(){var t=new Array;return this.parameters.forEach(function(e,i){t.push(i+"="+e)}),t.join("&")},n}(),mG=function n(t,e,i,r,o){this.account=t||null,this.idToken=e||null,this.accessToken=i||null,this.refreshToken=r||null,this.appMetadata=o||null},Cm=(()=>(function(n){n.SW="sw",n.UHW="uhw"}(Cm||(Cm={})),Cm))(),Gc=function(){function n(t){this.cryptoUtils=t}return n.prototype.generateCnf=function(t){return At(this,void 0,void 0,function(){var e,i,r;return Tt(this,function(o){switch(o.label){case 0:return[4,this.generateKid(t)];case 1:return e=o.sent(),i=this.cryptoUtils.base64Encode(JSON.stringify(e)),r={kid:e.kid,reqCnfString:i},[4,this.cryptoUtils.hashString(i)];case 2:return[2,(r.reqCnfHash=o.sent(),r)]}})})},n.prototype.generateKid=function(t){return At(this,void 0,void 0,function(){return Tt(this,function(i){switch(i.label){case 0:return[4,this.cryptoUtils.getPublicKeyThumbprint(t)];case 1:return[2,{kid:i.sent(),xms_ksl:Cm.SW}]}})})},n.prototype.signPopToken=function(t,e,i){return At(this,void 0,void 0,function(){return Tt(this,function(r){return[2,this.signPayload(t,e,i)]})})},n.prototype.signPayload=function(t,e,i,r){return At(this,void 0,void 0,function(){var o,s,a,l,c,u;return Tt(this,function(d){switch(d.label){case 0:return o=i.resourceRequestMethod,a=i.shrClaims,l=i.shrNonce,c=(s=i.resourceRequestUri)?new nn(s):void 0,u=c?.getUrlComponents(),[4,this.cryptoUtils.signJwt(Gn({at:t,ts:Zr.nowSeconds(),m:o?.toUpperCase(),u:u?.HostNameAndPort,nonce:l||this.cryptoUtils.createNewGuid(),p:u?.AbsolutePath,q:u?.QueryString?[[],u.QueryString]:void 0,client_claims:a||void 0},r),e,i.correlationId)];case 1:return[2,d.sent()]}})})},n}(),gG=function(){function n(t,e){this.cache=t,this.hasChanged=e}return Object.defineProperty(n.prototype,"cacheHasChanged",{get:function(){return this.hasChanged},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"tokenCache",{get:function(){return this.cache},enumerable:!1,configurable:!0}),n}(),wm=function(){function n(t,e,i,r,o,s){this.clientId=t,this.cacheStorage=e,this.cryptoObj=i,this.logger=r,this.serializableCache=o,this.persistencePlugin=s}return n.prototype.validateServerAuthorizationCodeResponse=function(t,e,i){if(!t.state||!e)throw nt.createStateNotFoundError(t.state?"Cached State":"Server State");if(decodeURIComponent(t.state)!==decodeURIComponent(e))throw nt.createStateMismatchError();if(t.error||t.error_description||t.suberror)throw xo.isInteractionRequiredError(t.error,t.error_description,t.suberror)?new xo(t.error||ee.EMPTY_STRING,t.error_description,t.suberror):new cl(t.error||ee.EMPTY_STRING,t.error_description,t.suberror);t.client_info&&_m(t.client_info,i)},n.prototype.validateTokenResponse=function(t){if(t.error||t.error_description||t.suberror){if(xo.isInteractionRequiredError(t.error,t.error_description,t.suberror))throw new xo(t.error,t.error_description,t.suberror);throw new cl(t.error,t.error_codes+" - ["+t.timestamp+"]: "+t.error_description+" - Correlation ID: "+t.correlation_id+" - Trace ID: "+t.trace_id,t.suberror)}},n.prototype.handleServerTokenResponse=function(t,e,i,r,o,s,a,l){return At(this,void 0,void 0,function(){var c,u,d,h,m;return Tt(this,function(A){switch(A.label){case 0:if(t.id_token&&(c=new va(t.id_token||ee.EMPTY_STRING,this.cryptoObj),o&&!Ke.isEmpty(o.nonce)&&c.claims.nonce!==o.nonce))throw nt.createNonceMismatchError();this.homeAccountIdentifier=Fi.generateHomeAccountId(t.client_info||ee.EMPTY_STRING,e.authorityType,this.logger,this.cryptoObj,c),!!o&&!!o.state&&(u=js.parseRequestState(this.cryptoObj,o.state)),t.key_id=t.key_id||r.sshKid||void 0,d=this.generateCacheRecord(t,e,i,r,c,s,o),A.label=1;case 1:return A.trys.push([1,,5,8]),this.persistencePlugin&&this.serializableCache?(this.logger.verbose("Persistence enabled, calling beforeCacheAccess"),h=new gG(this.serializableCache,!0),[4,this.persistencePlugin.beforeCacheAccess(h)]):[3,3];case 2:A.sent(),A.label=3;case 3:return a&&!l&&d.account&&(m=d.account.generateAccountKey(),!this.cacheStorage.getAccount(m))?(this.logger.warning("Account used to refresh tokens not in persistence, refreshed tokens will not be stored in the cache"),[2,n.generateAuthenticationResult(this.cryptoObj,e,d,!1,r,c,u,void 0)]):[4,this.cacheStorage.saveCacheRecord(d)];case 4:return A.sent(),[3,8];case 5:return this.persistencePlugin&&this.serializableCache&&h?(this.logger.verbose("Persistence enabled, calling afterCacheAccess"),[4,this.persistencePlugin.afterCacheAccess(h)]):[3,7];case 6:A.sent(),A.label=7;case 7:return[7];case 8:return[2,n.generateAuthenticationResult(this.cryptoObj,e,d,!1,r,c,u,t.spa_code)]}})})},n.prototype.generateCacheRecord=function(t,e,i,r,o,s,a){var c,u,l=e.getPreferredCache();if(Ke.isEmpty(l))throw nt.createInvalidCacheEnvironmentError();!Ke.isEmpty(t.id_token)&&o&&(c=Wd.createIdTokenEntity(this.homeAccountIdentifier,l,t.id_token||ee.EMPTY_STRING,this.clientId,o.claims.tid||ee.EMPTY_STRING),u=this.generateAccountEntity(t,o,e,a));var d=null;if(!Ke.isEmpty(t.access_token)){var h=t.scope?fr.fromString(t.scope):new fr(r.scopes||[]),m=("string"==typeof t.expires_in?parseInt(t.expires_in,10):t.expires_in)||0,y=("string"==typeof t.ext_expires_in?parseInt(t.ext_expires_in,10):t.ext_expires_in)||0,A=("string"==typeof t.refresh_in?parseInt(t.refresh_in,10):t.refresh_in)||void 0,U=i+m,te=U+y,Ee=A&&A>0?i+A:void 0;d=$d.createAccessTokenEntity(this.homeAccountIdentifier,l,t.access_token||ee.EMPTY_STRING,this.clientId,o?o.claims.tid||ee.EMPTY_STRING:e.tenant,h.printScopes(),U,te,this.cryptoObj,Ee,t.token_type,s,t.key_id,r.claims,r.requestedClaimsHash)}var ne=null;Ke.isEmpty(t.refresh_token)||(ne=rC.createRefreshTokenEntity(this.homeAccountIdentifier,l,t.refresh_token||ee.EMPTY_STRING,this.clientId,t.foci,s));var Me=null;return Ke.isEmpty(t.foci)||(Me=oC.createAppMetadataEntity(this.clientId,l,t.foci)),new mG(u,c,d,ne,Me)},n.prototype.generateAccountEntity=function(t,e,i,r){var s=r?r.cloud_graph_host_name:ee.EMPTY_STRING,a=r?r.msgraph_host:ee.EMPTY_STRING;if(i.authorityType===es.Adfs)return this.logger.verbose("Authority type is ADFS, creating ADFS account"),Fi.createGenericAccount(this.homeAccountIdentifier,e,i,s,a);if(Ke.isEmpty(t.client_info)&&"AAD"===i.protocolMode)throw nt.createClientInfoEmptyError();return t.client_info?Fi.createAccount(t.client_info,this.homeAccountIdentifier,e,i,s,a):Fi.createGenericAccount(this.homeAccountIdentifier,e,i,s,a)},n.generateAuthenticationResult=function(t,e,i,r,o,s,a,l){var c,u,d;return At(this,void 0,void 0,function(){var h,m,y,A,U,te,Ee,ne,Me;return Tt(this,function(rn){switch(rn.label){case 0:if(h=ee.EMPTY_STRING,m=[],y=null,U=ee.EMPTY_STRING,!i.accessToken)return[3,4];if(i.accessToken.tokenType!==fn.POP)return[3,2];if(te=new Gc(t),ne=(Ee=i.accessToken).secret,!(Me=Ee.keyId))throw nt.createKeyIdMissingError();return[4,te.signPopToken(ne,Me,o)];case 1:return h=rn.sent(),[3,3];case 2:h=i.accessToken.secret,rn.label=3;case 3:m=fr.fromString(i.accessToken.target).asArray(),y=new Date(1e3*Number(i.accessToken.expiresOn)),A=new Date(1e3*Number(i.accessToken.extendedExpiresOn)),rn.label=4;case 4:return i.appMetadata&&(U="1"===i.appMetadata.familyId?"1":ee.EMPTY_STRING),[2,{authority:e.canonicalAuthority,uniqueId:s?.claims.oid||s?.claims.sub||ee.EMPTY_STRING,tenantId:s?.claims.tid||ee.EMPTY_STRING,scopes:m,account:i.account?i.account.getAccountInfo():null,idToken:s?s.rawToken:ee.EMPTY_STRING,idTokenClaims:s?s.claims:{},accessToken:h,fromCache:r,expiresOn:y,correlationId:o.correlationId,extExpiresOn:A,familyId:U,tokenType:(null===(c=i.accessToken)||void 0===c?void 0:c.tokenType)||ee.EMPTY_STRING,state:a?a.userRequestState:ee.EMPTY_STRING,cloudGraphHostName:(null===(u=i.account)||void 0===u?void 0:u.cloudGraphHostName)||ee.EMPTY_STRING,msGraphHost:(null===(d=i.account)||void 0===d?void 0:d.msGraphHost)||ee.EMPTY_STRING,code:l,fromNativeBroker:!1}]}})})},n}(),OI=function(n){function t(e){var i=n.call(this,e)||this;return i.includeRedirectUri=!0,i}return dr(t,n),t.prototype.getAuthCodeUrl=function(e){return At(this,void 0,void 0,function(){var i;return Tt(this,function(r){switch(r.label){case 0:return[4,this.createAuthCodeUrlQueryString(e)];case 1:return i=r.sent(),[2,nn.appendQueryString(this.authority.authorizationEndpoint,i)]}})})},t.prototype.acquireToken=function(e,i){return At(this,void 0,void 0,function(){var r,o,s;return Tt(this,function(a){switch(a.label){case 0:if(this.logger.info("in acquireToken call"),!e||Ke.isEmpty(e.code))throw nt.createTokenRequestCannotBeMadeError();return r=Zr.nowSeconds(),[4,this.executeTokenRequest(this.authority,e)];case 1:return o=a.sent(),(s=new wm(this.config.authOptions.clientId,this.cacheManager,this.cryptoUtils,this.logger,this.config.serializableCache,this.config.persistencePlugin)).validateTokenResponse(o.body),[4,s.handleServerTokenResponse(o.body,this.authority,r,e,i)];case 2:return[2,a.sent()]}})})},t.prototype.handleFragmentResponse=function(e,i){var r=new wm(this.config.authOptions.clientId,this.cacheManager,this.cryptoUtils,this.logger,null,null),o=new nn(e),s=nn.getDeserializedHash(o.getHash());if(r.validateServerAuthorizationCodeResponse(s,i,this.cryptoUtils),!s.code)throw nt.createNoAuthCodeInServerResponseError();return Gn(Gn({},s),{code:s.code})},t.prototype.getLogoutUri=function(e){if(!e)throw Mn.createEmptyLogoutRequestError();var i=this.createLogoutUrlQueryString(e);return nn.appendQueryString(this.authority.endSessionEndpoint,i)},t.prototype.executeTokenRequest=function(e,i){return At(this,void 0,void 0,function(){var r,o,s,a,l,c,u;return Tt(this,function(d){switch(d.label){case 0:return r={clientId:this.config.authOptions.clientId,authority:e.canonicalAuthority,scopes:i.scopes,claims:i.claims,authenticationScheme:i.authenticationScheme,resourceRequestMethod:i.resourceRequestMethod,resourceRequestUri:i.resourceRequestUri,shrClaims:i.shrClaims,sshKid:i.sshKid},[4,this.createTokenRequestBody(i)];case 1:if(o=d.sent(),s=this.createTokenQueryParameters(i),a=void 0,i.clientInfo)try{l=_m(i.clientInfo,this.cryptoUtils),a={credential:""+l.uid+hr.CLIENT_INFO_SEPARATOR+l.utid,type:mr.HOME_ACCOUNT_ID}}catch(h){this.logger.verbose("Could not parse client info for CCS Header: "+h)}return c=this.createTokenRequestHeaders(a||i.ccsCredential),u=Ke.isEmpty(s)?e.tokenEndpoint:e.tokenEndpoint+"?"+s,[2,this.executePostToTokenEndpoint(u,o,c,r)]}})})},t.prototype.createTokenQueryParameters=function(e){var i=new zc;return e.tokenQueryParameters&&i.addExtraQueryParameters(e.tokenQueryParameters),i.createQueryString()},t.prototype.createTokenRequestBody=function(e){return At(this,void 0,void 0,function(){var i,r,s,a,l,c,u;return Tt(this,function(d){switch(d.label){case 0:return(i=new zc).addClientId(this.config.authOptions.clientId),this.includeRedirectUri?i.addRedirectUri(e.redirectUri):ul.validateRedirectUri(e.redirectUri),i.addScopes(e.scopes),i.addAuthorizationCode(e.code),i.addLibraryInfo(this.config.libraryInfo),i.addApplicationTelemetry(this.config.telemetry.application),i.addThrottling(),this.serverTelemetryManager&&i.addServerTelemetry(this.serverTelemetryManager),e.codeVerifier&&i.addCodeVerifier(e.codeVerifier),this.config.clientCredentials.clientSecret&&i.addClientSecret(this.config.clientCredentials.clientSecret),this.config.clientCredentials.clientAssertion&&(i.addClientAssertion((r=this.config.clientCredentials.clientAssertion).assertion),i.addClientAssertionType(r.assertionType)),i.addGrantType(Bd.AUTHORIZATION_CODE_GRANT),i.addClientInfo(),e.authenticationScheme!==fn.POP?[3,2]:[4,new Gc(this.cryptoUtils).generateCnf(e)];case 1:return s=d.sent(),i.addPopToken(s.reqCnfString),[3,3];case 2:if(e.authenticationScheme===fn.SSH){if(!e.sshJwk)throw Mn.createMissingSshJwkError();i.addSshJwk(e.sshJwk)}d.label=3;case 3:if(a=e.correlationId||this.config.cryptoInterface.createNewGuid(),i.addCorrelationId(a),(!Ke.isEmptyObj(e.claims)||this.config.authOptions.clientCapabilities&&this.config.authOptions.clientCapabilities.length>0)&&i.addClaims(e.claims,this.config.authOptions.clientCapabilities),l=void 0,e.clientInfo)try{c=_m(e.clientInfo,this.cryptoUtils),l={credential:""+c.uid+hr.CLIENT_INFO_SEPARATOR+c.utid,type:mr.HOME_ACCOUNT_ID}}catch(h){this.logger.verbose("Could not parse client info for CCS Header: "+h)}else l=e.ccsCredential;if(this.config.systemOptions.preventCorsPreflight&&l)switch(l.type){case mr.HOME_ACCOUNT_ID:try{c=Uc(l.credential),i.addCcsOid(c)}catch(h){this.logger.verbose("Could not parse home account ID for CCS Header: "+h)}break;case mr.UPN:i.addCcsUpn(l.credential)}return e.tokenBodyParameters&&i.addExtraQueryParameters(e.tokenBodyParameters),e.enableSpaAuthorizationCode&&(!e.tokenBodyParameters||!e.tokenBodyParameters[Mt.RETURN_SPA_CODE])&&i.addExtraQueryParameters(((u={})[Mt.RETURN_SPA_CODE]="1",u)),[2,i.createQueryString()]}})})},t.prototype.createAuthCodeUrlQueryString=function(e){return At(this,void 0,void 0,function(){var i,r,o,s,a,l,u;return Tt(this,function(d){switch(d.label){case 0:if((i=new zc).addClientId(this.config.authOptions.clientId),r=am(e.scopes||[],e.extraScopesToConsent||[]),i.addScopes(r),i.addRedirectUri(e.redirectUri),o=e.correlationId||this.config.cryptoInterface.createNewGuid(),i.addCorrelationId(o),i.addResponseMode(e.responseMode),i.addResponseTypeCode(),i.addLibraryInfo(this.config.libraryInfo),i.addApplicationTelemetry(this.config.telemetry.application),i.addClientInfo(),e.codeChallenge&&e.codeChallengeMethod&&i.addCodeChallengeParams(e.codeChallenge,e.codeChallengeMethod),e.prompt&&i.addPrompt(e.prompt),e.domainHint&&i.addDomainHint(e.domainHint),e.prompt!==Li.SELECT_ACCOUNT)if(e.sid&&e.prompt===Li.NONE)this.logger.verbose("createAuthCodeUrlQueryString: Prompt is none, adding sid from request"),i.addSid(e.sid);else if(e.account){if(s=this.extractAccountSid(e.account),a=this.extractLoginHint(e.account)){this.logger.verbose("createAuthCodeUrlQueryString: login_hint claim present on account"),i.addLoginHint(a);try{l=Uc(e.account.homeAccountId),i.addCcsOid(l)}catch{this.logger.verbose("createAuthCodeUrlQueryString: Could not parse home account ID for CCS Header")}}else if(s&&e.prompt===Li.NONE){this.logger.verbose("createAuthCodeUrlQueryString: Prompt is none, adding sid from account"),i.addSid(s);try{l=Uc(e.account.homeAccountId),i.addCcsOid(l)}catch{this.logger.verbose("createAuthCodeUrlQueryString: Could not parse home account ID for CCS Header")}}else if(e.loginHint)this.logger.verbose("createAuthCodeUrlQueryString: Adding login_hint from request"),i.addLoginHint(e.loginHint),i.addCcsUpn(e.loginHint);else if(e.account.username){this.logger.verbose("createAuthCodeUrlQueryString: Adding login_hint from account"),i.addLoginHint(e.account.username);try{l=Uc(e.account.homeAccountId),i.addCcsOid(l)}catch{this.logger.verbose("createAuthCodeUrlQueryString: Could not parse home account ID for CCS Header")}}}else e.loginHint&&(this.logger.verbose("createAuthCodeUrlQueryString: No account, adding login_hint from request"),i.addLoginHint(e.loginHint),i.addCcsUpn(e.loginHint));else this.logger.verbose("createAuthCodeUrlQueryString: Prompt is select_account, ignoring account hints");return e.nonce&&i.addNonce(e.nonce),e.state&&i.addState(e.state),(!Ke.isEmpty(e.claims)||this.config.authOptions.clientCapabilities&&this.config.authOptions.clientCapabilities.length>0)&&i.addClaims(e.claims,this.config.authOptions.clientCapabilities),e.extraQueryParameters&&i.addExtraQueryParameters(e.extraQueryParameters),e.nativeBroker?(i.addNativeBroker(),e.authenticationScheme!==fn.POP?[3,2]:[4,new Gc(this.cryptoUtils).generateCnf(e)]):[3,2];case 1:u=d.sent(),i.addPopToken(u.reqCnfHash),d.label=2;case 2:return[2,i.createQueryString()]}})})},t.prototype.createLogoutUrlQueryString=function(e){var i=new zc;return e.postLogoutRedirectUri&&i.addPostLogoutRedirectUri(e.postLogoutRedirectUri),e.correlationId&&i.addCorrelationId(e.correlationId),e.idTokenHint&&i.addIdTokenHint(e.idTokenHint),e.state&&i.addState(e.state),e.logoutHint&&i.addLogoutHint(e.logoutHint),e.extraQueryParameters&&i.addExtraQueryParameters(e.extraQueryParameters),i.createQueryString()},t.prototype.extractAccountSid=function(e){var i;return(null===(i=e.idTokenClaims)||void 0===i?void 0:i.sid)||null},t.prototype.extractLoginHint=function(e){var i;return(null===(i=e.idTokenClaims)||void 0===i?void 0:i.login_hint)||null},t}(uC);function _G(n){return n.hasOwnProperty("authorization_endpoint")&&n.hasOwnProperty("token_endpoint")&&n.hasOwnProperty("issuer")&&n.hasOwnProperty("jwks_uri")}var LI={"https://login.microsoftonline.com/common/":{token_endpoint:"https://login.microsoftonline.com/common/oauth2/v2.0/token",token_endpoint_auth_methods_supported:["client_secret_post","private_key_jwt","client_secret_basic"],jwks_uri:"https://login.microsoftonline.com/common/discovery/v2.0/keys",response_modes_supported:["query","fragment","form_post"],subject_types_supported:["pairwise"],id_token_signing_alg_values_supported:["RS256"],response_types_supported:["code","id_token","code id_token","id_token token"],scopes_supported:["openid","profile","email","offline_access"],issuer:"https://login.microsoftonline.com/{tenantid}/v2.0",request_uri_parameter_supported:!1,userinfo_endpoint:"https://graph.microsoft.com/oidc/userinfo",authorization_endpoint:"https://login.microsoftonline.com/common/oauth2/v2.0/authorize",device_authorization_endpoint:"https://login.microsoftonline.com/common/oauth2/v2.0/devicecode",http_logout_supported:!0,frontchannel_logout_supported:!0,end_session_endpoint:"https://login.microsoftonline.com/common/oauth2/v2.0/logout",claims_supported:["sub","iss","cloud_instance_name","cloud_instance_host_name","cloud_graph_host_name","msgraph_host","aud","exp","iat","auth_time","acr","nonce","preferred_username","name","tid","ver","at_hash","c_hash","email"],kerberos_endpoint:"https://login.microsoftonline.com/common/kerberos",tenant_region_scope:null,cloud_instance_name:"microsoftonline.com",cloud_graph_host_name:"graph.windows.net",msgraph_host:"graph.microsoft.com",rbac_url:"https://pas.windows.net"},"https://login.chinacloudapi.cn/common/":{token_endpoint:"https://login.chinacloudapi.cn/common/oauth2/v2.0/token",token_endpoint_auth_methods_supported:["client_secret_post","private_key_jwt","client_secret_basic"],jwks_uri:"https://login.chinacloudapi.cn/common/discovery/v2.0/keys",response_modes_supported:["query","fragment","form_post"],subject_types_supported:["pairwise"],id_token_signing_alg_values_supported:["RS256"],response_types_supported:["code","id_token","code id_token","id_token token"],scopes_supported:["openid","profile","email","offline_access"],issuer:"https://login.partner.microsoftonline.cn/{tenantid}/v2.0",request_uri_parameter_supported:!1,userinfo_endpoint:"https://microsoftgraph.chinacloudapi.cn/oidc/userinfo",authorization_endpoint:"https://login.chinacloudapi.cn/common/oauth2/v2.0/authorize",device_authorization_endpoint:"https://login.chinacloudapi.cn/common/oauth2/v2.0/devicecode",http_logout_supported:!0,frontchannel_logout_supported:!0,end_session_endpoint:"https://login.chinacloudapi.cn/common/oauth2/v2.0/logout",claims_supported:["sub","iss","cloud_instance_name","cloud_instance_host_name","cloud_graph_host_name","msgraph_host","aud","exp","iat","auth_time","acr","nonce","preferred_username","name","tid","ver","at_hash","c_hash","email"],kerberos_endpoint:"https://login.chinacloudapi.cn/common/kerberos",tenant_region_scope:null,cloud_instance_name:"partner.microsoftonline.cn",cloud_graph_host_name:"graph.chinacloudapi.cn",msgraph_host:"microsoftgraph.chinacloudapi.cn",rbac_url:"https://pas.chinacloudapi.cn"},"https://login.microsoftonline.us/common/":{token_endpoint:"https://login.microsoftonline.us/common/oauth2/v2.0/token",token_endpoint_auth_methods_supported:["client_secret_post","private_key_jwt","client_secret_basic"],jwks_uri:"https://login.microsoftonline.us/common/discovery/v2.0/keys",response_modes_supported:["query","fragment","form_post"],subject_types_supported:["pairwise"],id_token_signing_alg_values_supported:["RS256"],response_types_supported:["code","id_token","code id_token","id_token token"],scopes_supported:["openid","profile","email","offline_access"],issuer:"https://login.microsoftonline.us/{tenantid}/v2.0",request_uri_parameter_supported:!1,userinfo_endpoint:"https://graph.microsoft.com/oidc/userinfo",authorization_endpoint:"https://login.microsoftonline.us/common/oauth2/v2.0/authorize",device_authorization_endpoint:"https://login.microsoftonline.us/common/oauth2/v2.0/devicecode",http_logout_supported:!0,frontchannel_logout_supported:!0,end_session_endpoint:"https://login.microsoftonline.us/common/oauth2/v2.0/logout",claims_supported:["sub","iss","cloud_instance_name","cloud_instance_host_name","cloud_graph_host_name","msgraph_host","aud","exp","iat","auth_time","acr","nonce","preferred_username","name","tid","ver","at_hash","c_hash","email"],kerberos_endpoint:"https://login.microsoftonline.us/common/kerberos",tenant_region_scope:null,cloud_instance_name:"microsoftonline.us",cloud_graph_host_name:"graph.windows.net",msgraph_host:"graph.microsoft.com",rbac_url:"https://pasff.usgovcloudapi.net"},"https://login.microsoftonline.com/consumers/":{token_endpoint:"https://login.microsoftonline.com/consumers/oauth2/v2.0/token",token_endpoint_auth_methods_supported:["client_secret_post","private_key_jwt","client_secret_basic"],jwks_uri:"https://login.microsoftonline.com/consumers/discovery/v2.0/keys",response_modes_supported:["query","fragment","form_post"],subject_types_supported:["pairwise"],id_token_signing_alg_values_supported:["RS256"],response_types_supported:["code","id_token","code id_token","id_token token"],scopes_supported:["openid","profile","email","offline_access"],issuer:"https://login.microsoftonline.com/9188040d-6c67-4c5b-b112-36a304b66dad/v2.0",request_uri_parameter_supported:!1,userinfo_endpoint:"https://graph.microsoft.com/oidc/userinfo",authorization_endpoint:"https://login.microsoftonline.com/consumers/oauth2/v2.0/authorize",device_authorization_endpoint:"https://login.microsoftonline.com/consumers/oauth2/v2.0/devicecode",http_logout_supported:!0,frontchannel_logout_supported:!0,end_session_endpoint:"https://login.microsoftonline.com/consumers/oauth2/v2.0/logout",claims_supported:["sub","iss","cloud_instance_name","cloud_instance_host_name","cloud_graph_host_name","msgraph_host","aud","exp","iat","auth_time","acr","nonce","preferred_username","name","tid","ver","at_hash","c_hash","email"],kerberos_endpoint:"https://login.microsoftonline.com/consumers/kerberos",tenant_region_scope:null,cloud_instance_name:"microsoftonline.com",cloud_graph_host_name:"graph.windows.net",msgraph_host:"graph.microsoft.com",rbac_url:"https://pas.windows.net"},"https://login.chinacloudapi.cn/consumers/":{token_endpoint:"https://login.chinacloudapi.cn/consumers/oauth2/v2.0/token",token_endpoint_auth_methods_supported:["client_secret_post","private_key_jwt","client_secret_basic"],jwks_uri:"https://login.chinacloudapi.cn/consumers/discovery/v2.0/keys",response_modes_supported:["query","fragment","form_post"],subject_types_supported:["pairwise"],id_token_signing_alg_values_supported:["RS256"],response_types_supported:["code","id_token","code id_token","id_token token"],scopes_supported:["openid","profile","email","offline_access"],issuer:"https://login.partner.microsoftonline.cn/9188040d-6c67-4c5b-b112-36a304b66dad/v2.0",request_uri_parameter_supported:!1,userinfo_endpoint:"https://microsoftgraph.chinacloudapi.cn/oidc/userinfo",authorization_endpoint:"https://login.chinacloudapi.cn/consumers/oauth2/v2.0/authorize",device_authorization_endpoint:"https://login.chinacloudapi.cn/consumers/oauth2/v2.0/devicecode",http_logout_supported:!0,frontchannel_logout_supported:!0,end_session_endpoint:"https://login.chinacloudapi.cn/consumers/oauth2/v2.0/logout",claims_supported:["sub","iss","cloud_instance_name","cloud_instance_host_name","cloud_graph_host_name","msgraph_host","aud","exp","iat","auth_time","acr","nonce","preferred_username","name","tid","ver","at_hash","c_hash","email"],kerberos_endpoint:"https://login.chinacloudapi.cn/consumers/kerberos",tenant_region_scope:null,cloud_instance_name:"partner.microsoftonline.cn",cloud_graph_host_name:"graph.chinacloudapi.cn",msgraph_host:"microsoftgraph.chinacloudapi.cn",rbac_url:"https://pas.chinacloudapi.cn"},"https://login.microsoftonline.us/consumers/":{token_endpoint:"https://login.microsoftonline.us/consumers/oauth2/v2.0/token",token_endpoint_auth_methods_supported:["client_secret_post","private_key_jwt","client_secret_basic"],jwks_uri:"https://login.microsoftonline.us/consumers/discovery/v2.0/keys",response_modes_supported:["query","fragment","form_post"],subject_types_supported:["pairwise"],id_token_signing_alg_values_supported:["RS256"],response_types_supported:["code","id_token","code id_token","id_token token"],scopes_supported:["openid","profile","email","offline_access"],issuer:"https://login.microsoftonline.us/9188040d-6c67-4c5b-b112-36a304b66dad/v2.0",request_uri_parameter_supported:!1,userinfo_endpoint:"https://graph.microsoft.com/oidc/userinfo",authorization_endpoint:"https://login.microsoftonline.us/consumers/oauth2/v2.0/authorize",device_authorization_endpoint:"https://login.microsoftonline.us/consumers/oauth2/v2.0/devicecode",http_logout_supported:!0,frontchannel_logout_supported:!0,end_session_endpoint:"https://login.microsoftonline.us/consumers/oauth2/v2.0/logout",claims_supported:["sub","iss","cloud_instance_name","cloud_instance_host_name","cloud_graph_host_name","msgraph_host","aud","exp","iat","auth_time","acr","nonce","preferred_username","name","tid","ver","at_hash","c_hash","email"],kerberos_endpoint:"https://login.microsoftonline.us/consumers/kerberos",tenant_region_scope:null,cloud_instance_name:"microsoftonline.us",cloud_graph_host_name:"graph.windows.net",msgraph_host:"graph.microsoft.com",rbac_url:"https://pasff.usgovcloudapi.net"},"https://login.microsoftonline.com/organizations/":{token_endpoint:"https://login.microsoftonline.com/organizations/oauth2/v2.0/token",token_endpoint_auth_methods_supported:["client_secret_post","private_key_jwt","client_secret_basic"],jwks_uri:"https://login.microsoftonline.com/organizations/discovery/v2.0/keys",response_modes_supported:["query","fragment","form_post"],subject_types_supported:["pairwise"],id_token_signing_alg_values_supported:["RS256"],response_types_supported:["code","id_token","code id_token","id_token token"],scopes_supported:["openid","profile","email","offline_access"],issuer:"https://login.microsoftonline.com/{tenantid}/v2.0",request_uri_parameter_supported:!1,userinfo_endpoint:"https://graph.microsoft.com/oidc/userinfo",authorization_endpoint:"https://login.microsoftonline.com/organizations/oauth2/v2.0/authorize",device_authorization_endpoint:"https://login.microsoftonline.com/organizations/oauth2/v2.0/devicecode",http_logout_supported:!0,frontchannel_logout_supported:!0,end_session_endpoint:"https://login.microsoftonline.com/organizations/oauth2/v2.0/logout",claims_supported:["sub","iss","cloud_instance_name","cloud_instance_host_name","cloud_graph_host_name","msgraph_host","aud","exp","iat","auth_time","acr","nonce","preferred_username","name","tid","ver","at_hash","c_hash","email"],kerberos_endpoint:"https://login.microsoftonline.com/organizations/kerberos",tenant_region_scope:null,cloud_instance_name:"microsoftonline.com",cloud_graph_host_name:"graph.windows.net",msgraph_host:"graph.microsoft.com",rbac_url:"https://pas.windows.net"},"https://login.chinacloudapi.cn/organizations/":{token_endpoint:"https://login.chinacloudapi.cn/organizations/oauth2/v2.0/token",token_endpoint_auth_methods_supported:["client_secret_post","private_key_jwt","client_secret_basic"],jwks_uri:"https://login.chinacloudapi.cn/organizations/discovery/v2.0/keys",response_modes_supported:["query","fragment","form_post"],subject_types_supported:["pairwise"],id_token_signing_alg_values_supported:["RS256"],response_types_supported:["code","id_token","code id_token","id_token token"],scopes_supported:["openid","profile","email","offline_access"],issuer:"https://login.partner.microsoftonline.cn/{tenantid}/v2.0",request_uri_parameter_supported:!1,userinfo_endpoint:"https://microsoftgraph.chinacloudapi.cn/oidc/userinfo",authorization_endpoint:"https://login.chinacloudapi.cn/organizations/oauth2/v2.0/authorize",device_authorization_endpoint:"https://login.chinacloudapi.cn/organizations/oauth2/v2.0/devicecode",http_logout_supported:!0,frontchannel_logout_supported:!0,end_session_endpoint:"https://login.chinacloudapi.cn/organizations/oauth2/v2.0/logout",claims_supported:["sub","iss","cloud_instance_name","cloud_instance_host_name","cloud_graph_host_name","msgraph_host","aud","exp","iat","auth_time","acr","nonce","preferred_username","name","tid","ver","at_hash","c_hash","email"],kerberos_endpoint:"https://login.chinacloudapi.cn/organizations/kerberos",tenant_region_scope:null,cloud_instance_name:"partner.microsoftonline.cn",cloud_graph_host_name:"graph.chinacloudapi.cn",msgraph_host:"microsoftgraph.chinacloudapi.cn",rbac_url:"https://pas.chinacloudapi.cn"},"https://login.microsoftonline.us/organizations/":{token_endpoint:"https://login.microsoftonline.us/organizations/oauth2/v2.0/token",token_endpoint_auth_methods_supported:["client_secret_post","private_key_jwt","client_secret_basic"],jwks_uri:"https://login.microsoftonline.us/organizations/discovery/v2.0/keys",response_modes_supported:["query","fragment","form_post"],subject_types_supported:["pairwise"],id_token_signing_alg_values_supported:["RS256"],response_types_supported:["code","id_token","code id_token","id_token token"],scopes_supported:["openid","profile","email","offline_access"],issuer:"https://login.microsoftonline.us/{tenantid}/v2.0",request_uri_parameter_supported:!1,userinfo_endpoint:"https://graph.microsoft.com/oidc/userinfo",authorization_endpoint:"https://login.microsoftonline.us/organizations/oauth2/v2.0/authorize",device_authorization_endpoint:"https://login.microsoftonline.us/organizations/oauth2/v2.0/devicecode",http_logout_supported:!0,frontchannel_logout_supported:!0,end_session_endpoint:"https://login.microsoftonline.us/organizations/oauth2/v2.0/logout",claims_supported:["sub","iss","cloud_instance_name","cloud_instance_host_name","cloud_graph_host_name","msgraph_host","aud","exp","iat","auth_time","acr","nonce","preferred_username","name","tid","ver","at_hash","c_hash","email"],kerberos_endpoint:"https://login.microsoftonline.us/organizations/kerberos",tenant_region_scope:null,cloud_instance_name:"microsoftonline.us",cloud_graph_host_name:"graph.windows.net",msgraph_host:"graph.microsoft.com",rbac_url:"https://pasff.usgovcloudapi.net"}},NI={"https://login.microsoftonline.com/common/":{tenant_discovery_endpoint:"https://login.microsoftonline.com/common/v2.0/.well-known/openid-configuration","api-version":"1.1",metadata:[{preferred_network:"login.microsoftonline.com",preferred_cache:"login.windows.net",aliases:["login.microsoftonline.com","login.windows.net","login.microsoft.com","sts.windows.net"]},{preferred_network:"login.partner.microsoftonline.cn",preferred_cache:"login.partner.microsoftonline.cn",aliases:["login.partner.microsoftonline.cn","login.chinacloudapi.cn"]},{preferred_network:"login.microsoftonline.de",preferred_cache:"login.microsoftonline.de",aliases:["login.microsoftonline.de"]},{preferred_network:"login.microsoftonline.us",preferred_cache:"login.microsoftonline.us",aliases:["login.microsoftonline.us","login.usgovcloudapi.net"]},{preferred_network:"login-us.microsoftonline.com",preferred_cache:"login-us.microsoftonline.com",aliases:["login-us.microsoftonline.com"]}]},"https://login.chinacloudapi.cn/common/":{tenant_discovery_endpoint:"https://login.chinacloudapi.cn/common/v2.0/.well-known/openid-configuration","api-version":"1.1",metadata:[{preferred_network:"login.microsoftonline.com",preferred_cache:"login.windows.net",aliases:["login.microsoftonline.com","login.windows.net","login.microsoft.com","sts.windows.net"]},{preferred_network:"login.partner.microsoftonline.cn",preferred_cache:"login.partner.microsoftonline.cn",aliases:["login.partner.microsoftonline.cn","login.chinacloudapi.cn"]},{preferred_network:"login.microsoftonline.de",preferred_cache:"login.microsoftonline.de",aliases:["login.microsoftonline.de"]},{preferred_network:"login.microsoftonline.us",preferred_cache:"login.microsoftonline.us",aliases:["login.microsoftonline.us","login.usgovcloudapi.net"]},{preferred_network:"login-us.microsoftonline.com",preferred_cache:"login-us.microsoftonline.com",aliases:["login-us.microsoftonline.com"]}]},"https://login.microsoftonline.us/common/":{tenant_discovery_endpoint:"https://login.microsoftonline.us/common/v2.0/.well-known/openid-configuration","api-version":"1.1",metadata:[{preferred_network:"login.microsoftonline.com",preferred_cache:"login.windows.net",aliases:["login.microsoftonline.com","login.windows.net","login.microsoft.com","sts.windows.net"]},{preferred_network:"login.partner.microsoftonline.cn",preferred_cache:"login.partner.microsoftonline.cn",aliases:["login.partner.microsoftonline.cn","login.chinacloudapi.cn"]},{preferred_network:"login.microsoftonline.de",preferred_cache:"login.microsoftonline.de",aliases:["login.microsoftonline.de"]},{preferred_network:"login.microsoftonline.us",preferred_cache:"login.microsoftonline.us",aliases:["login.microsoftonline.us","login.usgovcloudapi.net"]},{preferred_network:"login-us.microsoftonline.com",preferred_cache:"login-us.microsoftonline.com",aliases:["login-us.microsoftonline.com"]}]},"https://login.microsoftonline.com/consumers/":{tenant_discovery_endpoint:"https://login.microsoftonline.com/consumers/v2.0/.well-known/openid-configuration","api-version":"1.1",metadata:[{preferred_network:"login.microsoftonline.com",preferred_cache:"login.windows.net",aliases:["login.microsoftonline.com","login.windows.net","login.microsoft.com","sts.windows.net"]},{preferred_network:"login.partner.microsoftonline.cn",preferred_cache:"login.partner.microsoftonline.cn",aliases:["login.partner.microsoftonline.cn","login.chinacloudapi.cn"]},{preferred_network:"login.microsoftonline.de",preferred_cache:"login.microsoftonline.de",aliases:["login.microsoftonline.de"]},{preferred_network:"login.microsoftonline.us",preferred_cache:"login.microsoftonline.us",aliases:["login.microsoftonline.us","login.usgovcloudapi.net"]},{preferred_network:"login-us.microsoftonline.com",preferred_cache:"login-us.microsoftonline.com",aliases:["login-us.microsoftonline.com"]}]},"https://login.chinacloudapi.cn/consumers/":{tenant_discovery_endpoint:"https://login.chinacloudapi.cn/consumers/v2.0/.well-known/openid-configuration","api-version":"1.1",metadata:[{preferred_network:"login.microsoftonline.com",preferred_cache:"login.windows.net",aliases:["login.microsoftonline.com","login.windows.net","login.microsoft.com","sts.windows.net"]},{preferred_network:"login.partner.microsoftonline.cn",preferred_cache:"login.partner.microsoftonline.cn",aliases:["login.partner.microsoftonline.cn","login.chinacloudapi.cn"]},{preferred_network:"login.microsoftonline.de",preferred_cache:"login.microsoftonline.de",aliases:["login.microsoftonline.de"]},{preferred_network:"login.microsoftonline.us",preferred_cache:"login.microsoftonline.us",aliases:["login.microsoftonline.us","login.usgovcloudapi.net"]},{preferred_network:"login-us.microsoftonline.com",preferred_cache:"login-us.microsoftonline.com",aliases:["login-us.microsoftonline.com"]}]},"https://login.microsoftonline.us/consumers/":{tenant_discovery_endpoint:"https://login.microsoftonline.us/consumers/v2.0/.well-known/openid-configuration","api-version":"1.1",metadata:[{preferred_network:"login.microsoftonline.com",preferred_cache:"login.windows.net",aliases:["login.microsoftonline.com","login.windows.net","login.microsoft.com","sts.windows.net"]},{preferred_network:"login.partner.microsoftonline.cn",preferred_cache:"login.partner.microsoftonline.cn",aliases:["login.partner.microsoftonline.cn","login.chinacloudapi.cn"]},{preferred_network:"login.microsoftonline.de",preferred_cache:"login.microsoftonline.de",aliases:["login.microsoftonline.de"]},{preferred_network:"login.microsoftonline.us",preferred_cache:"login.microsoftonline.us",aliases:["login.microsoftonline.us","login.usgovcloudapi.net"]},{preferred_network:"login-us.microsoftonline.com",preferred_cache:"login-us.microsoftonline.com",aliases:["login-us.microsoftonline.com"]}]},"https://login.microsoftonline.com/organizations/":{tenant_discovery_endpoint:"https://login.microsoftonline.com/organizations/v2.0/.well-known/openid-configuration","api-version":"1.1",metadata:[{preferred_network:"login.microsoftonline.com",preferred_cache:"login.windows.net",aliases:["login.microsoftonline.com","login.windows.net","login.microsoft.com","sts.windows.net"]},{preferred_network:"login.partner.microsoftonline.cn",preferred_cache:"login.partner.microsoftonline.cn",aliases:["login.partner.microsoftonline.cn","login.chinacloudapi.cn"]},{preferred_network:"login.microsoftonline.de",preferred_cache:"login.microsoftonline.de",aliases:["login.microsoftonline.de"]},{preferred_network:"login.microsoftonline.us",preferred_cache:"login.microsoftonline.us",aliases:["login.microsoftonline.us","login.usgovcloudapi.net"]},{preferred_network:"login-us.microsoftonline.com",preferred_cache:"login-us.microsoftonline.com",aliases:["login-us.microsoftonline.com"]}]},"https://login.chinacloudapi.cn/organizations/":{tenant_discovery_endpoint:"https://login.chinacloudapi.cn/organizations/v2.0/.well-known/openid-configuration","api-version":"1.1",metadata:[{preferred_network:"login.microsoftonline.com",preferred_cache:"login.windows.net",aliases:["login.microsoftonline.com","login.windows.net","login.microsoft.com","sts.windows.net"]},{preferred_network:"login.partner.microsoftonline.cn",preferred_cache:"login.partner.microsoftonline.cn",aliases:["login.partner.microsoftonline.cn","login.chinacloudapi.cn"]},{preferred_network:"login.microsoftonline.de",preferred_cache:"login.microsoftonline.de",aliases:["login.microsoftonline.de"]},{preferred_network:"login.microsoftonline.us",preferred_cache:"login.microsoftonline.us",aliases:["login.microsoftonline.us","login.usgovcloudapi.net"]},{preferred_network:"login-us.microsoftonline.com",preferred_cache:"login-us.microsoftonline.com",aliases:["login-us.microsoftonline.com"]}]},"https://login.microsoftonline.us/organizations/":{tenant_discovery_endpoint:"https://login.microsoftonline.us/organizations/v2.0/.well-known/openid-configuration","api-version":"1.1",metadata:[{preferred_network:"login.microsoftonline.com",preferred_cache:"login.windows.net",aliases:["login.microsoftonline.com","login.windows.net","login.microsoft.com","sts.windows.net"]},{preferred_network:"login.partner.microsoftonline.cn",preferred_cache:"login.partner.microsoftonline.cn",aliases:["login.partner.microsoftonline.cn","login.chinacloudapi.cn"]},{preferred_network:"login.microsoftonline.de",preferred_cache:"login.microsoftonline.de",aliases:["login.microsoftonline.de"]},{preferred_network:"login.microsoftonline.us",preferred_cache:"login.microsoftonline.us",aliases:["login.microsoftonline.us","login.usgovcloudapi.net"]},{preferred_network:"login-us.microsoftonline.com",preferred_cache:"login-us.microsoftonline.com",aliases:["login-us.microsoftonline.com"]}]}},yG=function(){function n(t){this.networkInterface=t}return n.prototype.detectRegion=function(t,e,i){return At(this,void 0,void 0,function(){var r,o,s,a,l;return Tt(this,function(c){switch(c.label){case 0:if(r=t)return[3,8];o=n.IMDS_OPTIONS,i&&(o.proxyUrl=i),c.label=1;case 1:return c.trys.push([1,6,,7]),[4,this.getRegionFromIMDS(ee.IMDS_VERSION,o)];case 2:return(s=c.sent()).status===al.httpSuccess&&(r=s.body,e.region_source=Bs.IMDS),s.status!==al.httpBadRequest?[3,5]:[4,this.getCurrentVersion(o)];case 3:return(a=c.sent())?[4,this.getRegionFromIMDS(a,o)]:(e.region_source=Bs.FAILED_AUTO_DETECTION,[2,null]);case 4:(l=c.sent()).status===al.httpSuccess&&(r=l.body,e.region_source=Bs.IMDS),c.label=5;case 5:return[3,7];case 6:return c.sent(),e.region_source=Bs.FAILED_AUTO_DETECTION,[2,null];case 7:return[3,9];case 8:e.region_source=Bs.ENVIRONMENT_VARIABLE,c.label=9;case 9:return r||(e.region_source=Bs.FAILED_AUTO_DETECTION),[2,r||null]}})})},n.prototype.getRegionFromIMDS=function(t,e){return At(this,void 0,void 0,function(){return Tt(this,function(i){return[2,this.networkInterface.sendGetRequestAsync(ee.IMDS_ENDPOINT+"?api-version="+t+"&format=text",e,ee.IMDS_TIMEOUT)]})})},n.prototype.getCurrentVersion=function(t){return At(this,void 0,void 0,function(){var e;return Tt(this,function(i){switch(i.label){case 0:return i.trys.push([0,2,,3]),[4,this.networkInterface.sendGetRequestAsync(ee.IMDS_ENDPOINT+"?format=json",t)];case 1:return(e=i.sent()).status===al.httpBadRequest&&e.body&&e.body["newest-versions"]&&e.body["newest-versions"].length>0?[2,e.body["newest-versions"][0]]:[2,null];case 2:return i.sent(),[2,null];case 3:return[2]}})})},n.IMDS_OPTIONS={headers:{Metadata:"true"}},n}(),Em=function(){function n(t,e,i,r,o){this.canonicalAuthority=t,this._canonicalAuthority.validateAsUri(),this.networkInterface=e,this.cacheManager=i,this.authorityOptions=r,this.regionDiscovery=new yG(e),this.regionDiscoveryMetadata={region_used:void 0,region_source:void 0,region_outcome:void 0},this.proxyUrl=o||ee.EMPTY_STRING}return Object.defineProperty(n.prototype,"authorityType",{get:function(){var t=this.canonicalAuthorityUrlComponents.PathSegments;return t.length&&t[0].toLowerCase()===ee.ADFS?es.Adfs:es.Default},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"protocolMode",{get:function(){return this.authorityOptions.protocolMode},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"options",{get:function(){return this.authorityOptions},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"canonicalAuthority",{get:function(){return this._canonicalAuthority.urlString},set:function(t){this._canonicalAuthority=new nn(t),this._canonicalAuthority.validateAsUri(),this._canonicalAuthorityUrlComponents=null},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"canonicalAuthorityUrlComponents",{get:function(){return this._canonicalAuthorityUrlComponents||(this._canonicalAuthorityUrlComponents=this._canonicalAuthority.getUrlComponents()),this._canonicalAuthorityUrlComponents},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"hostnameAndPort",{get:function(){return this.canonicalAuthorityUrlComponents.HostNameAndPort.toLowerCase()},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"tenant",{get:function(){return this.canonicalAuthorityUrlComponents.PathSegments[0]},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"authorizationEndpoint",{get:function(){if(this.discoveryComplete()){var t=this.replacePath(this.metadata.authorization_endpoint);return this.replaceTenant(t)}throw nt.createEndpointDiscoveryIncompleteError("Discovery incomplete.")},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"tokenEndpoint",{get:function(){if(this.discoveryComplete()){var t=this.replacePath(this.metadata.token_endpoint);return this.replaceTenant(t)}throw nt.createEndpointDiscoveryIncompleteError("Discovery incomplete.")},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"deviceCodeEndpoint",{get:function(){if(this.discoveryComplete()){var t=this.replacePath(this.metadata.token_endpoint.replace("/token","/devicecode"));return this.replaceTenant(t)}throw nt.createEndpointDiscoveryIncompleteError("Discovery incomplete.")},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"endSessionEndpoint",{get:function(){if(this.discoveryComplete()){if(!this.metadata.end_session_endpoint)throw nt.createLogoutNotSupportedError();var t=this.replacePath(this.metadata.end_session_endpoint);return this.replaceTenant(t)}throw nt.createEndpointDiscoveryIncompleteError("Discovery incomplete.")},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"selfSignedJwtAudience",{get:function(){if(this.discoveryComplete()){var t=this.replacePath(this.metadata.issuer);return this.replaceTenant(t)}throw nt.createEndpointDiscoveryIncompleteError("Discovery incomplete.")},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"jwksUri",{get:function(){if(this.discoveryComplete()){var t=this.replacePath(this.metadata.jwks_uri);return this.replaceTenant(t)}throw nt.createEndpointDiscoveryIncompleteError("Discovery incomplete.")},enumerable:!1,configurable:!0}),n.prototype.replaceTenant=function(t){return t.replace(/{tenant}|{tenantid}/g,this.tenant)},n.prototype.replacePath=function(t){var e=t,r=new nn(this.metadata.canonical_authority).getUrlComponents().PathSegments;return this.canonicalAuthorityUrlComponents.PathSegments.forEach(function(s,a){var l=r[a];s!==l&&(e=e.replace("/"+l+"/","/"+s+"/"))}),e},Object.defineProperty(n.prototype,"defaultOpenIdConfigurationEndpoint",{get:function(){return this.authorityType===es.Adfs||this.protocolMode===Kd.OIDC?this.canonicalAuthority+".well-known/openid-configuration":this.canonicalAuthority+"v2.0/.well-known/openid-configuration"},enumerable:!1,configurable:!0}),n.prototype.discoveryComplete=function(){return!!this.metadata},n.prototype.resolveEndpointsAsync=function(){return At(this,void 0,void 0,function(){var t,e,i,r;return Tt(this,function(o){switch(o.label){case 0:return(t=this.cacheManager.getAuthorityMetadataByAlias(this.hostnameAndPort))||(t=new sC).updateCanonicalAuthority(this.canonicalAuthority),[4,this.updateCloudDiscoveryMetadata(t)];case 1:return e=o.sent(),this.canonicalAuthority=this.canonicalAuthority.replace(this.hostnameAndPort,t.preferred_network),[4,this.updateEndpointMetadata(t)];case 2:return i=o.sent(),e!==Or.CACHE&&i!==Or.CACHE&&(t.resetExpiresAt(),t.updateCanonicalAuthority(this.canonicalAuthority)),r=this.cacheManager.generateAuthorityMetadataCacheKey(t.preferred_cache),this.cacheManager.setAuthorityMetadata(r,t),this.metadata=t,[2]}})})},n.prototype.updateEndpointMetadata=function(t){var e,i;return At(this,void 0,void 0,function(){var r,o;return Tt(this,function(s){switch(s.label){case 0:return(r=this.getEndpointMetadataFromConfig())?(t.updateEndpointMetadata(r,!1),[2,Or.CONFIG]):this.isAuthoritySameType(t)&&t.endpointsFromNetwork&&!t.isExpired()?[2,Or.CACHE]:(o=this.getEndpointMetadataFromHardcodedValues(),[4,this.getEndpointMetadataFromNetwork()]);case 1:return(r=s.sent())?null!==(e=this.authorityOptions.azureRegionConfiguration)&&void 0!==e&&e.azureRegion?[4,this.updateMetadataWithRegionalInformation(r)]:[3,3]:[3,4];case 2:r=s.sent(),s.label=3;case 3:return t.updateEndpointMetadata(r,!0),[2,Or.NETWORK];case 4:return o&&!this.authorityOptions.skipAuthorityMetadataCache?null!==(i=this.authorityOptions.azureRegionConfiguration)&&void 0!==i&&i.azureRegion?[4,this.updateMetadataWithRegionalInformation(o)]:[3,6]:[3,7];case 5:o=s.sent(),s.label=6;case 6:return t.updateEndpointMetadata(o,!1),[2,Or.HARDCODED_VALUES];case 7:throw nt.createUnableToGetOpenidConfigError(this.defaultOpenIdConfigurationEndpoint)}})})},n.prototype.isAuthoritySameType=function(t){return new nn(t.canonical_authority).getUrlComponents().PathSegments.length===this.canonicalAuthorityUrlComponents.PathSegments.length},n.prototype.getEndpointMetadataFromConfig=function(){if(this.authorityOptions.authorityMetadata)try{return JSON.parse(this.authorityOptions.authorityMetadata)}catch{throw Mn.createInvalidAuthorityMetadataError()}return null},n.prototype.getEndpointMetadataFromNetwork=function(){return At(this,void 0,void 0,function(){var t,e;return Tt(this,function(i){switch(i.label){case 0:t={},this.proxyUrl&&(t.proxyUrl=this.proxyUrl),i.label=1;case 1:return i.trys.push([1,3,,4]),[4,this.networkInterface.sendGetRequestAsync(this.defaultOpenIdConfigurationEndpoint,t)];case 2:return[2,_G((e=i.sent()).body)?e.body:null];case 3:return i.sent(),[2,null];case 4:return[2]}})})},n.prototype.getEndpointMetadataFromHardcodedValues=function(){return this.canonicalAuthority in LI?LI[this.canonicalAuthority]:null},n.prototype.updateMetadataWithRegionalInformation=function(t){var e,i,r,o,s;return At(this,void 0,void 0,function(){var a,l;return Tt(this,function(c){switch(c.label){case 0:return[4,this.regionDiscovery.detectRegion(null===(e=this.authorityOptions.azureRegionConfiguration)||void 0===e?void 0:e.environmentRegion,this.regionDiscoveryMetadata,this.proxyUrl)];case 1:return a=c.sent(),l=(null===(i=this.authorityOptions.azureRegionConfiguration)||void 0===i?void 0:i.azureRegion)===ee.AZURE_REGION_AUTO_DISCOVER_FLAG?a:null===(r=this.authorityOptions.azureRegionConfiguration)||void 0===r?void 0:r.azureRegion,this.regionDiscoveryMetadata.region_outcome=(null===(o=this.authorityOptions.azureRegionConfiguration)||void 0===o?void 0:o.azureRegion)===ee.AZURE_REGION_AUTO_DISCOVER_FLAG?a?ga.AUTO_DETECTION_REQUESTED_SUCCESSFUL:ga.AUTO_DETECTION_REQUESTED_FAILED:a?(null===(s=this.authorityOptions.azureRegionConfiguration)||void 0===s?void 0:s.azureRegion)===a?ga.CONFIGURED_MATCHES_DETECTED:ga.CONFIGURED_NOT_DETECTED:ga.CONFIGURED_NO_AUTO_DETECTION,l?(this.regionDiscoveryMetadata.region_used=l,[2,n.replaceWithRegionalInformation(t,l)]):[2,t]}})})},n.prototype.updateCloudDiscoveryMetadata=function(t){return At(this,void 0,void 0,function(){var e,i;return Tt(this,function(r){switch(r.label){case 0:return(e=this.getCloudDiscoveryMetadataFromConfig())?(t.updateCloudDiscoveryMetadata(e,!1),[2,Or.CONFIG]):this.isAuthoritySameType(t)&&t.aliasesFromNetwork&&!t.isExpired()?[2,Or.CACHE]:(i=this.getCloudDiscoveryMetadataFromHarcodedValues(),[4,this.getCloudDiscoveryMetadataFromNetwork()]);case 1:if(e=r.sent())return t.updateCloudDiscoveryMetadata(e,!0),[2,Or.NETWORK];if(i&&!this.options.skipAuthorityMetadataCache)return t.updateCloudDiscoveryMetadata(i,!1),[2,Or.HARDCODED_VALUES];throw Mn.createUntrustedAuthorityError()}})})},n.prototype.getCloudDiscoveryMetadataFromConfig=function(){if(this.authorityOptions.cloudDiscoveryMetadata)try{var t=JSON.parse(this.authorityOptions.cloudDiscoveryMetadata),e=n.getCloudDiscoveryMetadataFromNetworkResponse(t.metadata,this.hostnameAndPort);if(e)return e}catch{throw Mn.createInvalidCloudDiscoveryMetadataError()}return this.isInKnownAuthorities()?n.createCloudDiscoveryMetadataFromHost(this.hostnameAndPort):null},n.prototype.getCloudDiscoveryMetadataFromNetwork=function(){return At(this,void 0,void 0,function(){var t,e,i,r,o;return Tt(this,function(s){switch(s.label){case 0:t=""+ee.AAD_INSTANCE_DISCOVERY_ENDPT+this.canonicalAuthority+"oauth2/v2.0/authorize",e={},this.proxyUrl&&(e.proxyUrl=this.proxyUrl),i=null,s.label=1;case 1:return s.trys.push([1,3,,4]),[4,this.networkInterface.sendGetRequestAsync(t,e)];case 2:return r=s.sent(),o=function vG(n){return n.hasOwnProperty("tenant_discovery_endpoint")&&n.hasOwnProperty("metadata")}(r.body)?r.body.metadata:[],0===o.length?[2,null]:(i=n.getCloudDiscoveryMetadataFromNetworkResponse(o,this.hostnameAndPort),[3,4]);case 3:return s.sent(),[2,null];case 4:return i||(i=n.createCloudDiscoveryMetadataFromHost(this.hostnameAndPort)),[2,i]}})})},n.prototype.getCloudDiscoveryMetadataFromHarcodedValues=function(){return this.canonicalAuthority in NI?NI[this.canonicalAuthority]:null},n.prototype.isInKnownAuthorities=function(){var t=this;return this.authorityOptions.knownAuthorities.filter(function(i){return nn.getDomainFromUrl(i).toLowerCase()===t.hostnameAndPort}).length>0},n.generateAuthority=function(t,e){var i;return e&&e.azureCloudInstance!==qc.None&&(i=e.azureCloudInstance+"/"+(e.tenant?e.tenant:ee.DEFAULT_COMMON_TENANT)+"/"),i||t},n.createCloudDiscoveryMetadataFromHost=function(t){return{preferred_network:t,preferred_cache:t,aliases:[t]}},n.getCloudDiscoveryMetadataFromNetworkResponse=function(t,e){for(var i=0;i-1)return r}return null},n.prototype.getPreferredCache=function(){if(this.discoveryComplete())return this.metadata.preferred_cache;throw nt.createEndpointDiscoveryIncompleteError("Discovery incomplete.")},n.prototype.isAlias=function(t){return this.metadata.aliases.indexOf(t)>-1},n.isPublicCloudAuthority=function(t){return ee.KNOWN_PUBLIC_CLOUDS.indexOf(t)>=0},n.buildRegionalAuthorityString=function(t,e,i){var r=new nn(t);r.validateAsUri();var o=r.getUrlComponents(),s=e+"."+o.HostNameAndPort;this.isPublicCloudAuthority(o.HostNameAndPort)&&(s=e+"."+ee.REGIONAL_AUTH_PUBLIC_CLOUD_SUFFIX);var a=nn.constructAuthorityUriFromObject(Gn(Gn({},r.getUrlComponents()),{HostNameAndPort:s})).urlString;return i?a+"?"+i:a},n.replaceWithRegionalInformation=function(t,e){return t.authorization_endpoint=n.buildRegionalAuthorityString(t.authorization_endpoint,e),t.token_endpoint=n.buildRegionalAuthorityString(t.token_endpoint,e,"allowestsrnonmsi=true"),t.end_session_endpoint&&(t.end_session_endpoint=n.buildRegionalAuthorityString(t.end_session_endpoint,e)),t},n}(),Dm=function(){function n(){}return n.createDiscoveredInstance=function(t,e,i,r,o){return At(this,void 0,void 0,function(){var s,a;return Tt(this,function(l){switch(l.label){case 0:s=n.createInstance(t,e,i,r,o),l.label=1;case 1:return l.trys.push([1,3,,4]),[4,s.resolveEndpointsAsync()];case 2:return l.sent(),[2,s];case 3:throw a=l.sent(),nt.createEndpointDiscoveryIncompleteError(a);case 4:return[2]}})})},n.createInstance=function(t,e,i,r,o){if(Ke.isEmpty(t))throw Mn.createUrlEmptyError();return new Em(t,e,i,r,o)},n}(),bG=function(){function n(t,e){this.cacheOutcome=_a.NO_CACHE_HIT,this.cacheManager=e,this.apiId=t.apiId,this.correlationId=t.correlationId,this.wrapperSKU=t.wrapperSKU||ee.EMPTY_STRING,this.wrapperVer=t.wrapperVer||ee.EMPTY_STRING,this.telemetryCacheKey=wi.CACHE_KEY+hr.CACHE_KEY_SEPARATOR+t.clientId}return n.prototype.generateCurrentRequestHeaderValue=function(){var t=""+this.apiId+wi.VALUE_SEPARATOR+this.cacheOutcome,e=[this.wrapperSKU,this.wrapperVer].join(wi.VALUE_SEPARATOR),r=[t,this.getRegionDiscoveryFields()].join(wi.VALUE_SEPARATOR);return[wi.SCHEMA_VERSION,r,e].join(wi.CATEGORY_SEPARATOR)},n.prototype.generateLastRequestHeaderValue=function(){var t=this.getLastRequests(),e=n.maxErrorsToSend(t),i=t.failedRequests.slice(0,2*e).join(wi.VALUE_SEPARATOR),r=t.errors.slice(0,e).join(wi.VALUE_SEPARATOR),o=t.errors.length,a=[o,e=wi.MAX_CACHED_ERRORS&&(e.failedRequests.shift(),e.failedRequests.shift(),e.errors.shift()),e.failedRequests.push(this.apiId,this.correlationId),Ke.isEmpty(t.subError)?Ke.isEmpty(t.errorCode)?t&&t.toString()?e.errors.push(t.toString()):e.errors.push(wi.UNKNOWN_ERROR):e.errors.push(t.errorCode):e.errors.push(t.subError),this.cacheManager.setServerTelemetry(this.telemetryCacheKey,e)},n.prototype.incrementCacheHits=function(){var t=this.getLastRequests();return t.cacheHits+=1,this.cacheManager.setServerTelemetry(this.telemetryCacheKey,t),t.cacheHits},n.prototype.getLastRequests=function(){var t=new vm;return this.cacheManager.getServerTelemetry(this.telemetryCacheKey)||t},n.prototype.clearTelemetryCache=function(){var t=this.getLastRequests(),e=n.maxErrorsToSend(t);if(e===t.errors.length)this.cacheManager.removeItem(this.telemetryCacheKey);else{var r=new vm;r.failedRequests=t.failedRequests.slice(2*e),r.errors=t.errors.slice(e),this.cacheManager.setServerTelemetry(this.telemetryCacheKey,r)}},n.maxErrorsToSend=function(t){var e,i=0,r=0,o=t.errors.length;for(e=0;e(function(n){n.USER_INTERACTION_REQUIRED="USER_INTERACTION_REQUIRED",n.USER_CANCEL="USER_CANCEL",n.NO_NETWORK="NO_NETWORK",n.TRANSIENT_ERROR="TRANSIENT_ERROR",n.PERSISTENT_ERROR="PERSISTENT_ERROR",n.DISABLED="DISABLED",n.ACCOUNT_UNAVAILABLE="ACCOUNT_UNAVAILABLE"}(Hs||(Hs={})),Hs))(),Qd_extensionError_code="ContentError",Qd_userSwitch_code="user_switch",Qd_userSwitch_desc="User attempted to switch accounts in the native broker, which is not allowed. All new accounts must sign-in through the standard web flow first, please try again.",Qd_tokensNotFoundInCache_code="tokens_not_found_in_internal_memory_cache",Qd_tokensNotFoundInCache_desc="Tokens not cached in MSAL JS internal memory, please make the WAM request",ts=function(n){function t(e,i,r){var o=n.call(this,e,i)||this;return Object.setPrototypeOf(o,t.prototype),o.name="NativeAuthError",o.ext=r,o}return Ci(t,n),t.prototype.isFatal=function(){return!(!this.ext||!this.ext.status||this.ext.status!==Hs.PERSISTENT_ERROR&&this.ext.status!==Hs.DISABLED)||this.errorCode===Qd_extensionError_code},t.createError=function(e,i,r){if(r&&r.status)switch(r.status){case Hs.ACCOUNT_UNAVAILABLE:return xo.createNativeAccountUnavailableError();case Hs.USER_INTERACTION_REQUIRED:return new xo(e,i);case Hs.USER_CANCEL:return ze.createUserCancelledError();case Hs.NO_NETWORK:return ze.createNoNetworkConnectivityError()}return new t(e,i,r)},t.createUserSwitchError=function(){return new t(Qd_userSwitch_code,Qd_userSwitch_desc)},t.createTokensNotFoundInCacheError=function(){return new t(Qd_tokensNotFoundInCache_code,Qd_tokensNotFoundInCache_desc)},t}(ut),BI=function(n){function t(e,i){return n.call(this,e,i)||this}return dr(t,n),t.prototype.acquireToken=function(e){return At(this,void 0,void 0,function(){var i,r,o;return Tt(this,function(s){switch(s.label){case 0:return i=Zr.nowSeconds(),[4,this.executeTokenRequest(e,this.authority)];case 1:return r=s.sent(),(o=new wm(this.config.authOptions.clientId,this.cacheManager,this.cryptoUtils,this.logger,this.config.serializableCache,this.config.persistencePlugin)).validateTokenResponse(r.body),[2,o.handleServerTokenResponse(r.body,this.authority,i,e,void 0,void 0,!0,e.forceCache)]}})})},t.prototype.acquireTokenByRefreshToken=function(e){return At(this,void 0,void 0,function(){var o;return Tt(this,function(s){if(!e)throw Mn.createEmptyTokenRequestError();if(!e.account)throw nt.createNoAccountInSilentRequestError();if(this.cacheManager.isAppMetadataFOCI(e.account.environment,this.config.authOptions.clientId))try{return[2,this.acquireTokenWithCachedRefreshToken(e,!0)]}catch(a){if(o=a instanceof cl&&"invalid_grant"===a.errorCode&&"client_mismatch"===a.subError,a instanceof xo&&a.errorCode===zd_noTokensFoundError_code||o)return[2,this.acquireTokenWithCachedRefreshToken(e,!1)];throw a}return[2,this.acquireTokenWithCachedRefreshToken(e,!1)]})})},t.prototype.acquireTokenWithCachedRefreshToken=function(e,i){return At(this,void 0,void 0,function(){var r,o;return Tt(this,function(s){if(!(r=this.cacheManager.readRefreshTokenFromCache(this.config.authOptions.clientId,e.account,i)))throw xo.createNoTokensFoundError();return o=Gn(Gn({},e),{refreshToken:r.secret,authenticationScheme:e.authenticationScheme||fn.BEARER,ccsCredential:{credential:e.account.homeAccountId,type:mr.HOME_ACCOUNT_ID}}),[2,this.acquireToken(o)]})})},t.prototype.executeTokenRequest=function(e,i){var r;return At(this,void 0,void 0,function(){var o,s,a,l,c,u;return Tt(this,function(d){switch(d.label){case 0:return o=null===(r=this.performanceClient)||void 0===r?void 0:r.startMeasurement(ci.RefreshTokenClientExecuteTokenRequest,e.correlationId),[4,this.createTokenRequestBody(e)];case 1:return s=d.sent(),a=this.createTokenQueryParameters(e),l=this.createTokenRequestHeaders(e.ccsCredential),c={clientId:this.config.authOptions.clientId,authority:i.canonicalAuthority,scopes:e.scopes,claims:e.claims,authenticationScheme:e.authenticationScheme,resourceRequestMethod:e.resourceRequestMethod,resourceRequestUri:e.resourceRequestUri,shrClaims:e.shrClaims,sshKid:e.sshKid},u=nn.appendQueryString(i.tokenEndpoint,a),[2,this.executePostToTokenEndpoint(u,s,l,c).then(function(h){return o?.endMeasurement({success:!0}),h}).catch(function(h){throw o?.endMeasurement({success:!1}),h})]}})})},t.prototype.createTokenQueryParameters=function(e){var i=new zc;return e.tokenQueryParameters&&i.addExtraQueryParameters(e.tokenQueryParameters),i.createQueryString()},t.prototype.createTokenRequestBody=function(e){var i;return At(this,void 0,void 0,function(){var r,o,s,a,c,u;return Tt(this,function(d){switch(d.label){case 0:return r=e.correlationId,o=null===(i=this.performanceClient)||void 0===i?void 0:i.startMeasurement(ci.BaseClientCreateTokenRequestHeaders,r),(s=new zc).addClientId(this.config.authOptions.clientId),s.addScopes(e.scopes),s.addGrantType(Bd.REFRESH_TOKEN_GRANT),s.addClientInfo(),s.addLibraryInfo(this.config.libraryInfo),s.addApplicationTelemetry(this.config.telemetry.application),s.addThrottling(),this.serverTelemetryManager&&s.addServerTelemetry(this.serverTelemetryManager),s.addCorrelationId(r),s.addRefreshToken(e.refreshToken),this.config.clientCredentials.clientSecret&&s.addClientSecret(this.config.clientCredentials.clientSecret),this.config.clientCredentials.clientAssertion&&(s.addClientAssertion((a=this.config.clientCredentials.clientAssertion).assertion),s.addClientAssertionType(a.assertionType)),e.authenticationScheme!==fn.POP?[3,2]:[4,new Gc(this.cryptoUtils).generateCnf(e)];case 1:return c=d.sent(),s.addPopToken(c.reqCnfString),[3,3];case 2:if(e.authenticationScheme===fn.SSH){if(!e.sshJwk)throw o?.endMeasurement({success:!1}),Mn.createMissingSshJwkError();s.addSshJwk(e.sshJwk)}d.label=3;case 3:if((!Ke.isEmptyObj(e.claims)||this.config.authOptions.clientCapabilities&&this.config.authOptions.clientCapabilities.length>0)&&s.addClaims(e.claims,this.config.authOptions.clientCapabilities),this.config.systemOptions.preventCorsPreflight&&e.ccsCredential)switch(e.ccsCredential.type){case mr.HOME_ACCOUNT_ID:try{u=Uc(e.ccsCredential.credential),s.addCcsOid(u)}catch(h){this.logger.verbose("Could not parse home account ID for CCS Header: "+h)}break;case mr.UPN:s.addCcsUpn(e.ccsCredential.credential)}return o?.endMeasurement({success:!0}),[2,s.createQueryString()]}})})},t}(uC),CG=function(n){function t(e,i){return n.call(this,e,i)||this}return dr(t,n),t.prototype.acquireToken=function(e){return At(this,void 0,void 0,function(){var i;return Tt(this,function(o){switch(o.label){case 0:return o.trys.push([0,2,,3]),[4,this.acquireCachedToken(e)];case 1:return[2,o.sent()];case 2:if((i=o.sent())instanceof nt&&i.errorCode===Fe_tokenRefreshRequired_code)return[2,new BI(this.config,this.performanceClient).acquireTokenByRefreshToken(e)];throw i;case 3:return[2]}})})},t.prototype.acquireCachedToken=function(e){var i,r,o,s;return At(this,void 0,void 0,function(){var a,l;return Tt(this,function(c){switch(c.label){case 0:if(!e)throw Mn.createEmptyTokenRequestError();if(e.forceRefresh)throw null===(i=this.serverTelemetryManager)||void 0===i||i.setCacheOutcome(_a.FORCE_REFRESH),this.logger.info("SilentFlowClient:acquireCachedToken - Skipping cache because forceRefresh is true."),nt.createRefreshRequiredError();if(!e.account)throw nt.createNoAccountInSilentRequestError();if(a=e.authority||this.authority.getPreferredCache(),!(l=this.cacheManager.readCacheRecord(e.account,this.config.authOptions.clientId,e,a)).accessToken)throw null===(r=this.serverTelemetryManager)||void 0===r||r.setCacheOutcome(_a.NO_CACHED_ACCESS_TOKEN),this.logger.info("SilentFlowClient:acquireCachedToken - No access token found in cache for the given properties."),nt.createRefreshRequiredError();if(Zr.wasClockTurnedBack(l.accessToken.cachedAt)||Zr.isTokenExpired(l.accessToken.expiresOn,this.config.systemOptions.tokenRenewalOffsetSeconds))throw null===(o=this.serverTelemetryManager)||void 0===o||o.setCacheOutcome(_a.CACHED_ACCESS_TOKEN_EXPIRED),this.logger.info("SilentFlowClient:acquireCachedToken - Cached access token is expired or will expire within "+this.config.systemOptions.tokenRenewalOffsetSeconds+" seconds."),nt.createRefreshRequiredError();if(l.accessToken.refreshOn&&Zr.isTokenExpired(l.accessToken.refreshOn,0))throw null===(s=this.serverTelemetryManager)||void 0===s||s.setCacheOutcome(_a.REFRESH_CACHED_ACCESS_TOKEN),this.logger.info("SilentFlowClient:acquireCachedToken - Cached access token's refreshOn property has been exceeded'."),nt.createRefreshRequiredError();return this.config.serverTelemetryManager&&this.config.serverTelemetryManager.incrementCacheHits(),[4,this.generateResultFromCacheRecord(l,e)];case 1:return[2,c.sent()]}})})},t.prototype.generateResultFromCacheRecord=function(e,i){return At(this,void 0,void 0,function(){var r;return Tt(this,function(o){switch(o.label){case 0:return e.idToken&&(r=new va(e.idToken.secret,this.config.cryptoInterface)),[4,wm.generateAuthenticationResult(this.cryptoUtils,this.authority,e,!0,i,r)];case 1:return[2,o.sent()]}})})},t}(uC),jI=function(n){function t(){return null!==n&&n.apply(this,arguments)||this}return Ci(t,n),t.prototype.acquireToken=function(e){return Oe(this,void 0,void 0,function(){var i,r,o,s,a;return Pe(this,function(l){switch(l.label){case 0:return i=this.performanceClient.startMeasurement(ci.SilentCacheClientAcquireToken,e.correlationId),r=this.initializeServerTelemetryManager(bn.acquireTokenSilent_silentFlow),[4,this.createSilentFlowClient(r,e.authority,e.azureCloudOptions)];case 1:o=l.sent(),this.logger.verbose("Silent auth client created"),l.label=2;case 2:return l.trys.push([2,4,,5]),[4,o.acquireCachedToken(e)];case 3:return s=l.sent(),i.endMeasurement({success:!0,fromCache:!0}),[2,s];case 4:throw(a=l.sent())instanceof ze&&a.errorCode===Re_signingKeyNotFoundInStorage_code&&this.logger.verbose("Signing keypair for bound access token not found. Refreshing bound access token and generating a new crypto keypair."),i.endMeasurement({errorCode:a instanceof ut&&a.errorCode||void 0,subErrorCode:a instanceof ut&&a.subError||void 0,success:!1}),a;case 5:return[2]}})})},t.prototype.logout=function(){return Promise.reject(ze.createSilentLogoutUnsupportedError())},t.prototype.createSilentFlowClient=function(e,i,r){return Oe(this,void 0,void 0,function(){var o;return Pe(this,function(s){switch(s.label){case 0:return[4,this.getClientConfiguration(e,i,r)];case 1:return o=s.sent(),[2,new CG(o,this.performanceClient)]}})})},t.prototype.initializeSilentRequest=function(e,i){return Oe(this,void 0,void 0,function(){var r;return Pe(this,function(o){switch(o.label){case 0:return r=[ct({},e)],[4,this.initializeBaseRequest(e)];case 1:return[2,ct.apply(void 0,[ct.apply(void 0,r.concat([o.sent()])),{account:i,forceRefresh:e.forceRefresh||!1}])]}})})},t}(Wc),$c=function(n){function t(e,i,r,o,s,a,l,c,u,d,h,m){var y=n.call(this,e,i,r,o,s,a,c,u,m)||this;return y.apiId=l,y.accountId=d,y.nativeMessageHandler=u,y.nativeStorageManager=h,y.silentCacheClient=new jI(e,y.nativeStorageManager,r,o,s,a,c,u,m),y}return Ci(t,n),t.prototype.acquireToken=function(e){return Oe(this,void 0,void 0,function(){var i,r,o,s,l,c;return Pe(this,function(u){switch(u.label){case 0:return this.logger.trace("NativeInteractionClient - acquireToken called."),i=this.performanceClient.startMeasurement(ci.NativeInteractionClientAcquireToken,e.correlationId),r=Zr.nowSeconds(),[4,this.initializeNativeRequest(e)];case 1:o=u.sent(),u.label=2;case 2:return u.trys.push([2,4,,5]),[4,this.acquireTokensFromCache(this.accountId,o)];case 3:return s=u.sent(),i.endMeasurement({success:!0,isNativeBroker:!0,fromCache:!0}),[2,s];case 4:return u.sent(),this.logger.info("MSAL internal Cache does not contain tokens, proceed to make a native call"),[3,5];case 5:return[4,this.nativeMessageHandler.sendMessage({method:Xo.GetToken,request:o})];case 6:return l=u.sent(),c=this.validateNativeResponse(l),[2,this.handleNativeResponse(c,o,r).then(function(d){return i.endMeasurement({success:!0,isNativeBroker:!0}),d}).catch(function(d){throw i.endMeasurement({success:!1,errorCode:d.errorCode,subErrorCode:d.subError,isNativeBroker:!0}),d})]}})})},t.prototype.createSilentCacheRequest=function(e,i){return{authority:e.authority,correlationId:this.correlationId,scopes:fr.fromString(e.scope).asArray(),account:i,forceRefresh:!1}},t.prototype.acquireTokensFromCache=function(e,i){return Oe(this,void 0,void 0,function(){var r,o,s;return Pe(this,function(c){switch(c.label){case 0:if(!(r=this.browserStorage.readAccountFromCacheWithNativeAccountId(e)))throw nt.createNoAccountFoundError();o=r.getAccountInfo(),c.label=1;case 1:return c.trys.push([1,3,,4]),s=this.createSilentCacheRequest(i,o),[4,this.silentCacheClient.acquireToken(s)];case 2:return[2,c.sent()];case 3:throw c.sent();case 4:return[2]}})})},t.prototype.acquireTokenRedirect=function(e){return Oe(this,void 0,void 0,function(){var i,r,o,s,a,l;return Pe(this,function(c){switch(c.label){case 0:return this.logger.trace("NativeInteractionClient - acquireTokenRedirect called."),[4,this.initializeNativeRequest(e)];case 1:i=c.sent(),r={method:Xo.GetToken,request:i},c.label=2;case 2:return c.trys.push([2,4,,5]),[4,this.nativeMessageHandler.sendMessage(r)];case 3:return o=c.sent(),this.validateNativeResponse(o),[3,5];case 4:if((s=c.sent())instanceof ts&&s.isFatal())throw s;return[3,5];case 5:return this.browserStorage.setTemporaryCache(an.NATIVE_REQUEST,JSON.stringify(i),!0),a={apiId:bn.acquireTokenRedirect,timeout:this.config.system.redirectNavigationTimeout,noHistory:!1},l=this.config.auth.navigateToLoginRequestUrl?window.location.href:this.getRedirectUri(e.redirectUri),[4,this.navigationClient.navigateExternal(l,a)];case 6:return c.sent(),[2]}})})},t.prototype.handleRedirectPromise=function(){return Oe(this,void 0,void 0,function(){var e,i,r,o,s,a;return Pe(this,function(l){switch(l.label){case 0:if(this.logger.trace("NativeInteractionClient - handleRedirectPromise called."),!this.browserStorage.isInteractionInProgress(!0))return this.logger.info("handleRedirectPromise called but there is no interaction in progress, returning null."),[2,null];if(!(e=this.browserStorage.getCachedNativeRequest()))return this.logger.verbose("NativeInteractionClient - handleRedirectPromise called but there is no cached request, returning null."),[2,null];this.browserStorage.removeItem(this.browserStorage.generateCacheKey(an.NATIVE_REQUEST)),i={method:Xo.GetToken,request:e},r=Zr.nowSeconds(),l.label=1;case 1:return l.trys.push([1,3,,4]),this.logger.verbose("NativeInteractionClient - handleRedirectPromise sending message to native broker."),[4,this.nativeMessageHandler.sendMessage(i)];case 2:return o=l.sent(),this.validateNativeResponse(o),s=this.handleNativeResponse(o,e,r),this.browserStorage.setInteractionInProgress(!1),[2,s];case 3:throw a=l.sent(),this.browserStorage.setInteractionInProgress(!1),a;case 4:return[2]}})})},t.prototype.logout=function(){return this.logger.trace("NativeInteractionClient - logout called."),Promise.reject("Logout not implemented yet")},t.prototype.handleNativeResponse=function(e,i,r){return Oe(this,void 0,void 0,function(){var o,s,a,l,c,u,d,h,m,y,A,te,Ee,ne,Me,at,Dt,rn,Cn,tr=this;return Pe(this,function(gi){switch(gi.label){case 0:if(this.logger.trace("NativeInteractionClient - handleNativeResponse called."),e.account.id!==i.accountId)throw ts.createUserSwitchError();return o=new va(e.id_token||ee.EMPTY_STRING,this.browserCrypto),[4,this.getDiscoveredAuthority(i.authority)];case 1:return s=gi.sent(),a=s.getPreferredCache(),l=Fi.generateHomeAccountId(e.client_info||ee.EMPTY_STRING,es.Default,this.logger,this.browserCrypto,o),c=Fi.createAccount(e.client_info,l,o,void 0,void 0,void 0,a,e.account.id),this.browserStorage.setAccount(c),u=fr.fromString(e.scope?e.scope:i.scope),h=(d=e.account.properties||{}).UID||o.claims.oid||o.claims.sub||ee.EMPTY_STRING,m=d.TenantId||o.claims.tid||ee.EMPTY_STRING,A=fn.BEARER,i.tokenType===fn.POP?[3,2]:[3,4];case 2:if(A=fn.POP,e.shr)return this.logger.trace("handleNativeServerResponse: SHR is enabled in native layer"),y=e.shr,[3,5];if(te=new Gc(this.browserCrypto),Ee={resourceRequestMethod:i.resourceRequestMethod,resourceRequestUri:i.resourceRequestUri,shrClaims:i.shrClaims,shrNonce:i.shrNonce},!i.keyId)throw nt.createKeyIdMissingError();return[4,te.signPopToken(e.access_token,i.keyId,Ee)];case 3:return y=gi.sent(),[3,5];case 4:y=e.access_token,gi.label=5;case 5:return ne=this.getMATSFromResponse(e),Me={authority:s.canonicalAuthority,uniqueId:h,tenantId:m,scopes:u.asArray(),account:c.getAccountInfo(),idToken:e.id_token,idTokenClaims:o.claims,accessToken:y,fromCache:!!ne&&this.isResponseFromCache(ne),expiresOn:new Date(1e3*Number(r+e.expires_in)),tokenType:A,correlationId:this.correlationId,state:e.state,fromNativeBroker:!0},at=Wd.createIdTokenEntity(l,i.authority,e.id_token||ee.EMPTY_STRING,i.clientId,o.claims.tid||ee.EMPTY_STRING),this.nativeStorageManager.setIdTokenCredential(at),Dt=A===fn.POP?ee.SHR_NONCE_VALIDITY:("string"==typeof e.expires_in?parseInt(e.expires_in,10):e.expires_in)||0,rn=r+Dt,Cn=$d.createAccessTokenEntity(l,i.authority,y,i.clientId,m,u.printScopes(),rn,0,this.browserCrypto),this.nativeStorageManager.setAccessTokenCredential(Cn),this.browserStorage.removeAccountContext(c).catch(function(Aa){tr.logger.error("Error occurred while removing account context from browser storage. "+Aa)}),[2,Me]}})})},t.prototype.validateNativeResponse=function(e){if(e.hasOwnProperty("access_token")&&e.hasOwnProperty("id_token")&&e.hasOwnProperty("client_info")&&e.hasOwnProperty("account")&&e.hasOwnProperty("scope")&&e.hasOwnProperty("expires_in"))return e;throw ts.createUnexpectedError("Response missing expected properties.")},t.prototype.getMATSFromResponse=function(e){if(e.properties.MATS)try{return JSON.parse(e.properties.MATS)}catch{this.logger.error("NativeInteractionClient - Error parsing MATS telemetry, returning null instead")}return null},t.prototype.isResponseFromCache=function(e){return typeof e.is_cached>"u"?(this.logger.verbose("NativeInteractionClient - MATS telemetry does not contain field indicating if response was served from cache. Returning false."),!1):!!e.is_cached},t.prototype.initializeNativeRequest=function(e){return Oe(this,void 0,void 0,function(){var r,o,s,a,l,c,u,h,m=this;return Pe(this,function(y){switch(y.label){case 0:return this.logger.trace("NativeInteractionClient - initializeNativeRequest called"),(r=new nn(e.authority||this.config.auth.authority)).validateAsUri(),o=e.scopes,s=function M7(n,t){var e={};for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&t.indexOf(i)<0&&(e[i]=n[i]);if(null!=n&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(n);rs&&(i.logger.error("PopupHandler.monitorPopupForHash - unable to find hash in url, timing out"),clearInterval(l),o(ze.createMonitorPopupTimeoutError())))},50)})},t.prototype.waitForLogoutPopup=function(e){var i=this;return new Promise(function(r){i.logger.verbose("PopupHandler.waitForLogoutPopup - polling started");var o=setInterval(function(){e.closed&&(i.logger.error("PopupHandler.waitForLogoutPopup - window closed"),i.cleanPopup(),clearInterval(o),r());var s=ee.EMPTY_STRING;try{s=e.location.href}catch{}Ke.isEmpty(s)||"about:blank"===s||(i.logger.verbose("PopupHandler.waitForLogoutPopup - popup window is on same origin as caller, closing."),clearInterval(o),i.cleanPopup(e),r())},50)})},t.prototype.openPopup=function(e,i){try{var r=void 0;if(i.popup?(r=i.popup,this.logger.verbosePii("Navigating popup window to: "+e),r.location.assign(e)):typeof i.popup>"u"&&(this.logger.verbosePii("Opening popup window to: "+e),r=this.openSizedPopup(e,i.popupName,i.popupWindowAttributes)),!r)throw ze.createEmptyWindowCreatedError();return r.focus&&r.focus(),this.currentWindow=r,window.addEventListener("beforeunload",this.unloadWindow),r}catch(o){throw this.logger.error("error opening popup "+o.message),this.browserStorage.setInteractionInProgress(!1),ze.createPopupWindowError(o.toString())}},t.prototype.openSizedPopup=function(e,i,r){var o,s,a,l,c=window.screenLeft?window.screenLeft:window.screenX,u=window.screenTop?window.screenTop:window.screenY,d=window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth,h=window.innerHeight||document.documentElement.clientHeight||document.body.clientHeight,m=null===(o=r.popupSize)||void 0===o?void 0:o.width,y=null===(s=r.popupSize)||void 0===s?void 0:s.height,A=null===(a=r.popupPosition)||void 0===a?void 0:a.top,U=null===(l=r.popupPosition)||void 0===l?void 0:l.left;return(!m||m<0||m>d)&&(this.logger.verbose("Default popup window width used. Window width not configured or invalid."),m=483),(!y||y<0||y>h)&&(this.logger.verbose("Default popup window height used. Window height not configured or invalid."),y=600),(!A||A<0||A>h)&&(this.logger.verbose("Default popup window top position used. Window top not configured or invalid."),A=Math.max(0,h/2-300+u)),(!U||U<0||U>d)&&(this.logger.verbose("Default popup window left position used. Window left not configured or invalid."),U=Math.max(0,d/2-241.5+c)),window.open(e,i,"width="+m+", height="+y+", top="+A+", left="+U+", scrollbars=yes")},t.prototype.unloadWindow=function(e){this.browserStorage.cleanRequestByInteractionType($e.Popup),this.currentWindow&&this.currentWindow.close(),e.preventDefault()},t.prototype.cleanPopup=function(e){e&&e.close(),window.removeEventListener("beforeunload",this.unloadWindow),this.browserStorage.setInteractionInProgress(!1)},t.prototype.generatePopupName=function(e,i){return"msal."+this.config.auth.clientId+"."+e.join("-")+"."+i+"."+this.correlationId},t.prototype.generateLogoutPopupName=function(e){return"msal."+this.config.auth.clientId+"."+(e.account&&e.account.homeAccountId)+"."+this.correlationId},t}(Wc),HI=function(n){function t(e,i,r,o,s){var a=n.call(this,e,i,r,o)||this;return a.browserCrypto=s,a}return Ci(t,n),t.prototype.initiateAuthRequest=function(e,i){return Oe(this,void 0,void 0,function(){var r;return Pe(this,function(s){switch(s.label){case 0:return this.logger.verbose("RedirectHandler.initiateAuthRequest called"),Ke.isEmpty(e)?[3,7]:(i.redirectStartPage&&(this.logger.verbose("RedirectHandler.initiateAuthRequest: redirectStartPage set, caching start page"),this.browserStorage.setTemporaryCache(an.ORIGIN_URI,i.redirectStartPage,!0)),this.browserStorage.setTemporaryCache(an.CORRELATION_ID,this.authCodeRequest.correlationId,!0),this.browserStorage.cacheCodeRequest(this.authCodeRequest,this.browserCrypto),this.logger.infoPii("RedirectHandler.initiateAuthRequest: Navigate to: "+e),r={apiId:bn.acquireTokenRedirect,timeout:i.redirectTimeout,noHistory:!1},"function"!=typeof i.onRedirectNavigate?[3,4]:(this.logger.verbose("RedirectHandler.initiateAuthRequest: Invoking onRedirectNavigate callback"),!1===i.onRedirectNavigate(e)?[3,2]:(this.logger.verbose("RedirectHandler.initiateAuthRequest: onRedirectNavigate did not return false, navigating"),[4,i.navigationClient.navigateExternal(e,r)])));case 1:case 5:return s.sent(),[2];case 2:return this.logger.verbose("RedirectHandler.initiateAuthRequest: onRedirectNavigate returned false, stopping navigation"),[2];case 3:return[3,6];case 4:return this.logger.verbose("RedirectHandler.initiateAuthRequest: Navigating window to navigate url"),[4,i.navigationClient.navigateExternal(e,r)];case 6:return[3,8];case 7:throw this.logger.info("RedirectHandler.initiateAuthRequest: Navigate url is empty"),ze.createEmptyNavigationUriError();case 8:return[2]}})})},t.prototype.handleCodeResponseFromHash=function(e,i,r,o){return Oe(this,void 0,void 0,function(){var s,a,l,c,u,d,h;return Pe(this,function(m){switch(m.label){case 0:if(this.logger.verbose("RedirectHandler.handleCodeResponse called"),Ke.isEmpty(e))throw ze.createEmptyHashError(e);if(this.browserStorage.setInteractionInProgress(!1),s=this.browserStorage.generateStateKey(i),!(a=this.browserStorage.getTemporaryCache(s)))throw nt.createStateNotFoundError("Cached State");try{l=this.authModule.handleFragmentResponse(e,a)}catch(y){throw y instanceof cl&&y.subError===Re_userCancelledError_code?ze.createUserCancelledError():y}return c=this.browserStorage.generateNonceKey(a),u=this.browserStorage.getTemporaryCache(c),this.authCodeRequest.code=l.code,l.cloud_instance_host_name?[4,this.updateTokenEndpointAuthority(l.cloud_instance_host_name,r,o)]:[3,2];case 1:m.sent(),m.label=2;case 2:return l.nonce=u||void 0,l.state=a,l.client_info?this.authCodeRequest.clientInfo=l.client_info:(d=this.checkCcsCredentials())&&(this.authCodeRequest.ccsCredential=d),[4,this.authModule.acquireToken(this.authCodeRequest,l)];case 3:return h=m.sent(),this.browserStorage.cleanRequestByState(i),[2,h]}})})},t}(dC),EG=function(n){function t(e,i,r,o,s,a,l,c,u,d){var h=n.call(this,e,i,r,o,s,a,l,u,d)||this;return h.nativeStorage=c,h}return Ci(t,n),t.prototype.acquireToken=function(e){return Oe(this,void 0,void 0,function(){var i,r,o,s,a,l,c,u,d,h=this;return Pe(this,function(m){switch(m.label){case 0:return[4,this.initializeAuthorizationRequest(e,$e.Redirect)];case 1:i=m.sent(),this.browserStorage.updateCacheEntries(i.state,i.nonce,i.authority,i.loginHint||ee.EMPTY_STRING,i.account||null),r=this.initializeServerTelemetryManager(bn.acquireTokenRedirect),o=function(y){y.persisted&&(h.logger.verbose("Page was restored from back/forward cache. Clearing temporary cache."),h.browserStorage.cleanRequestByState(i.state))},m.label=2;case 2:return m.trys.push([2,7,,8]),[4,this.initializeAuthorizationCodeRequest(i)];case 3:return s=m.sent(),[4,this.createAuthCodeClient(r,i.authority,i.azureCloudOptions)];case 4:return a=m.sent(),this.logger.verbose("Auth code client created"),l=new HI(a,this.browserStorage,s,this.logger,this.browserCrypto),[4,a.getAuthCodeUrl(ct(ct({},i),{nativeBroker:dl.isNativeAvailable(this.config,this.logger,this.nativeMessageHandler,e.authenticationScheme)}))];case 5:return c=m.sent(),u=this.getRedirectStartPage(e.redirectStartPage),this.logger.verbosePii("Redirect start page: "+u),window.addEventListener("pageshow",o),[4,l.initiateAuthRequest(c,{navigationClient:this.navigationClient,redirectTimeout:this.config.system.redirectNavigationTimeout,redirectStartPage:u,onRedirectNavigate:e.onRedirectNavigate})];case 6:return[2,m.sent()];case 7:throw(d=m.sent())instanceof ut&&d.setCorrelationId(this.correlationId),window.removeEventListener("pageshow",o),r.cacheFailedRequest(d),this.browserStorage.cleanRequestByState(i.state),d;case 8:return[2]}})})},t.prototype.handleRedirectPromise=function(e){return Oe(this,void 0,void 0,function(){var i,r,o,s,a,l,c,u,d,h,m,y;return Pe(this,function(A){switch(A.label){case 0:i=this.initializeServerTelemetryManager(bn.handleRedirectPromise),A.label=1;case 1:if(A.trys.push([1,10,,11]),!this.browserStorage.isInteractionInProgress(!0))return this.logger.info("handleRedirectPromise called but there is no interaction in progress, returning null."),[2,null];if(!(r=this.getRedirectResponseHash(e||window.location.hash)))return this.logger.info("handleRedirectPromise did not detect a response hash as a result of a redirect. Cleaning temporary cache."),this.browserStorage.cleanRequestByInteractionType($e.Redirect),[2,null];o=void 0;try{s=nn.getDeserializedHash(r),o=this.validateAndExtractStateFromHash(s,$e.Redirect),this.logger.verbose("State extracted from hash")}catch(U){return this.logger.info("handleRedirectPromise was unable to extract state due to: "+U),this.browserStorage.cleanRequestByInteractionType($e.Redirect),[2,null]}return a=this.browserStorage.getTemporaryCache(an.ORIGIN_URI,!0)||ee.EMPTY_STRING,l=nn.removeHashFromUrl(a),c=nn.removeHashFromUrl(window.location.href),l===c&&this.config.auth.navigateToLoginRequestUrl?(this.logger.verbose("Current page is loginRequestUrl, handling hash"),[4,this.handleHash(r,o,i)]):[3,3];case 2:return u=A.sent(),a.indexOf("#")>-1&&Fn.replaceHash(a),[2,u];case 3:return this.config.auth.navigateToLoginRequestUrl?[3,4]:(this.logger.verbose("NavigateToLoginRequestUrl set to false, handling hash"),[2,this.handleHash(r,o,i)]);case 4:return!Fn.isInIframe()||this.config.system.allowRedirectInIframe?(this.browserStorage.setTemporaryCache(an.URL_HASH,r,!0),d={apiId:bn.handleRedirectPromise,timeout:this.config.system.redirectNavigationTimeout,noHistory:!0},h=!0,a&&"null"!==a?[3,6]:(m=Fn.getHomepage(),this.browserStorage.setTemporaryCache(an.ORIGIN_URI,m,!0),this.logger.warning("Unable to get valid login request url from cache, redirecting to home page"),[4,this.navigationClient.navigateInternal(m,d)])):[3,9];case 5:return h=A.sent(),[3,8];case 6:return this.logger.verbose("Navigating to loginRequestUrl: "+a),[4,this.navigationClient.navigateInternal(a,d)];case 7:h=A.sent(),A.label=8;case 8:if(!h)return[2,this.handleHash(r,o,i)];A.label=9;case 9:return[2,null];case 10:throw(y=A.sent())instanceof ut&&y.setCorrelationId(this.correlationId),i.cacheFailedRequest(y),this.browserStorage.cleanRequestByInteractionType($e.Redirect),y;case 11:return[2]}})})},t.prototype.getRedirectResponseHash=function(e){if(this.logger.verbose("getRedirectResponseHash called"),nn.hashContainsKnownProperties(e))return Fn.clearHash(window),this.logger.verbose("Hash contains known properties, returning response hash"),e;var r=this.browserStorage.getTemporaryCache(an.URL_HASH,!0);return this.browserStorage.removeItem(this.browserStorage.generateCacheKey(an.URL_HASH)),this.logger.verbose("Hash does not contain known properties, returning cached hash"),r},t.prototype.handleHash=function(e,i,r){return Oe(this,void 0,void 0,function(){var o,s,a,l,c,u,h=this;return Pe(this,function(m){switch(m.label){case 0:if(o=this.browserStorage.getCachedRequest(i,this.browserCrypto),this.logger.verbose("handleHash called, retrieved cached request"),(s=nn.getDeserializedHash(e)).accountId){if(this.logger.verbose("Account id found in hash, calling WAM for token"),!this.nativeMessageHandler)throw ze.createNativeConnectionNotEstablishedError();return a=new $c(this.config,this.browserStorage,this.browserCrypto,this.logger,this.eventHandler,this.navigationClient,bn.acquireTokenPopup,this.performanceClient,this.nativeMessageHandler,s.accountId,this.browserStorage,o.correlationId),l=js.parseRequestState(this.browserCrypto,i).userRequestState,[2,a.acquireToken(ct(ct({},o),{state:l,prompt:void 0})).finally(function(){h.browserStorage.cleanRequestByState(i)})]}if(!(c=this.browserStorage.getCachedAuthority(i)))throw ze.createNoCachedAuthorityError();return[4,this.createAuthCodeClient(r,c)];case 1:return u=m.sent(),this.logger.verbose("Auth code client created"),bm.removeThrottle(this.browserStorage,this.config.auth.clientId,o),[4,new HI(u,this.browserStorage,o,this.logger,this.browserCrypto).handleCodeResponseFromHash(e,i,u.authority,this.networkClient)];case 2:return[2,m.sent()]}})})},t.prototype.logout=function(e){return Oe(this,void 0,void 0,function(){var i,r,o,s,a,c;return Pe(this,function(u){switch(u.label){case 0:this.logger.verbose("logoutRedirect called"),i=this.initializeLogoutRequest(e),r=this.initializeServerTelemetryManager(bn.logout),u.label=1;case 1:return u.trys.push([1,10,,11]),this.eventHandler.emitEvent(st.LOGOUT_START,$e.Redirect,e),[4,this.clearCacheOnLogout(i.account)];case 2:return u.sent(),o={apiId:bn.logout,timeout:this.config.system.redirectNavigationTimeout,noHistory:!1},[4,this.createAuthCodeClient(r,e&&e.authority)];case 3:return s=u.sent(),this.logger.verbose("Auth code client created"),a=s.getLogoutUri(i),this.eventHandler.emitEvent(st.LOGOUT_SUCCESS,$e.Redirect,i),e&&"function"==typeof e.onRedirectNavigate?!1===e.onRedirectNavigate(a)?[3,5]:(this.logger.verbose("Logout onRedirectNavigate did not return false, navigating"),this.browserStorage.getInteractionInProgress()||this.browserStorage.setInteractionInProgress(!0),[4,this.navigationClient.navigateExternal(a,o)]):[3,7];case 4:return u.sent(),[2];case 5:this.browserStorage.setInteractionInProgress(!1),this.logger.verbose("Logout onRedirectNavigate returned false, stopping navigation"),u.label=6;case 6:return[3,9];case 7:return this.browserStorage.getInteractionInProgress()||this.browserStorage.setInteractionInProgress(!0),[4,this.navigationClient.navigateExternal(a,o)];case 8:return u.sent(),[2];case 9:return[3,11];case 10:throw(c=u.sent())instanceof ut&&c.setCorrelationId(this.correlationId),r.cacheFailedRequest(c),this.eventHandler.emitEvent(st.LOGOUT_FAILURE,$e.Redirect,null,c),this.eventHandler.emitEvent(st.LOGOUT_END,$e.Redirect),c;case 11:return this.eventHandler.emitEvent(st.LOGOUT_END,$e.Redirect),[2]}})})},t.prototype.getRedirectStartPage=function(e){var i=e||window.location.href;return nn.getAbsoluteUrl(i,Fn.getCurrentUri())},t}(Wc),VI=function(n){function t(e,i,r,o,s){var a=n.call(this,e,i,r,o)||this;return a.navigateFrameWait=s,a}return Ci(t,n),t.prototype.initiateAuthRequest=function(e){return Oe(this,void 0,void 0,function(){var i;return Pe(this,function(r){switch(r.label){case 0:if(Ke.isEmpty(e))throw this.logger.info("Navigate url is empty"),ze.createEmptyNavigationUriError();return this.navigateFrameWait?[4,this.loadFrame(e)]:[3,2];case 1:return i=r.sent(),[3,3];case 2:i=this.loadFrameSync(e),r.label=3;case 3:return[2,i]}})})},t.prototype.monitorIframeForHash=function(e,i){var r=this;return new Promise(function(o,s){i<6e3&&r.logger.warning("system.loadFrameTimeout or system.iframeHashTimeout set to lower ("+i+"ms) than the default (6000ms). This may result in timeouts.");var l=window.performance.now()+i,c=setInterval(function(){if(window.performance.now()>l)return r.removeHiddenIframe(e),clearInterval(c),void s(ze.createMonitorIframeTimeoutError());var u=ee.EMPTY_STRING,d=e.contentWindow;try{u=d?d.location.href:ee.EMPTY_STRING}catch{}if(!Ke.isEmpty(u)){var h=d?d.location.hash:ee.EMPTY_STRING;if(nn.hashContainsKnownProperties(h))return r.removeHiddenIframe(e),clearInterval(c),void o(h)}},50)})},t.prototype.loadFrame=function(e){var i=this;return new Promise(function(r,o){var s=i.createHiddenIframe();setTimeout(function(){s?(s.src=e,r(s)):o("Unable to load iframe")},i.navigateFrameWait)})},t.prototype.loadFrameSync=function(e){var i=this.createHiddenIframe();return i.src=e,i},t.prototype.createHiddenIframe=function(){var e=document.createElement("iframe");return e.style.visibility="hidden",e.style.position="absolute",e.style.width=e.style.height="0",e.style.border="0",e.setAttribute("sandbox","allow-scripts allow-same-origin allow-forms"),document.getElementsByTagName("body")[0].appendChild(e),e},t.prototype.removeHiddenIframe=function(e){document.body===e.parentNode&&document.body.removeChild(e)},t}(dC),DG=function(n){function t(e,i,r,o,s,a,l,c,u,d,h){var m=n.call(this,e,i,r,o,s,a,c,d,h)||this;return m.apiId=l,m.nativeStorage=u,m}return Ci(t,n),t.prototype.acquireToken=function(e){return Oe(this,void 0,void 0,function(){var i,r,o,s,a;return Pe(this,function(l){switch(l.label){case 0:if(this.logger.verbose("acquireTokenByIframe called"),i=this.performanceClient.startMeasurement(ci.SilentIframeClientAcquireToken,e.correlationId),Ke.isEmpty(e.loginHint)&&Ke.isEmpty(e.sid)&&(!e.account||Ke.isEmpty(e.account.username))&&this.logger.warning("No user hint provided. The authorization server may need more information to complete this request."),e.prompt&&e.prompt!==Li.NONE)throw i.endMeasurement({success:!1}),ze.createSilentPromptValueError(e.prompt);return[4,this.initializeAuthorizationRequest(ct(ct({},e),{prompt:Li.NONE}),$e.Silent)];case 1:r=l.sent(),this.browserStorage.updateCacheEntries(r.state,r.nonce,r.authority,r.loginHint||ee.EMPTY_STRING,r.account||null),o=this.initializeServerTelemetryManager(this.apiId),l.label=2;case 2:return l.trys.push([2,5,,6]),[4,this.createAuthCodeClient(o,r.authority,r.azureCloudOptions)];case 3:return s=l.sent(),this.logger.verbose("Auth code client created"),[4,this.silentTokenHelper(s,r).then(function(c){return i.endMeasurement({success:!0,fromCache:!1}),c})];case 4:return[2,l.sent()];case 5:throw(a=l.sent())instanceof ut&&a.setCorrelationId(this.correlationId),o.cacheFailedRequest(a),this.browserStorage.cleanRequestByState(r.state),i.endMeasurement({errorCode:a instanceof ut&&a.errorCode||void 0,subErrorCode:a instanceof ut&&a.subError||void 0,success:!1}),a;case 6:return[2]}})})},t.prototype.logout=function(){return Promise.reject(ze.createSilentLogoutUnsupportedError())},t.prototype.silentTokenHelper=function(e,i){return Oe(this,void 0,void 0,function(){var r,o,s,a,l,c,u,d,h,m=this;return Pe(this,function(y){switch(y.label){case 0:return[4,this.initializeAuthorizationCodeRequest(i)];case 1:return r=y.sent(),[4,e.getAuthCodeUrl(ct(ct({},i),{nativeBroker:dl.isNativeAvailable(this.config,this.logger,this.nativeMessageHandler,i.authenticationScheme)}))];case 2:return o=y.sent(),[4,(s=new VI(e,this.browserStorage,r,this.logger,this.config.system.navigateFrameWait)).initiateAuthRequest(o)];case 3:return a=y.sent(),[4,s.monitorIframeForHash(a,this.config.system.iframeHashTimeout)];case 4:if(l=y.sent(),c=nn.getDeserializedHash(l),u=this.validateAndExtractStateFromHash(c,$e.Silent,r.correlationId),c.accountId){if(this.logger.verbose("Account id found in hash, calling WAM for token"),!this.nativeMessageHandler)throw ze.createNativeConnectionNotEstablishedError();return d=new $c(this.config,this.browserStorage,this.browserCrypto,this.logger,this.eventHandler,this.navigationClient,this.apiId,this.performanceClient,this.nativeMessageHandler,c.accountId,this.browserStorage,this.correlationId),h=js.parseRequestState(this.browserCrypto,u).userRequestState,[2,d.acquireToken(ct(ct({},i),{state:h,prompt:Li.NONE})).finally(function(){m.browserStorage.cleanRequestByState(u)})]}return[2,s.handleCodeResponseFromHash(l,u,e.authority,this.networkClient)]}})})},t}(Wc),SG=function(n){function t(){return null!==n&&n.apply(this,arguments)||this}return Ci(t,n),t.prototype.acquireToken=function(e){return Oe(this,void 0,void 0,function(){var i,r,o,s,a,l=this;return Pe(this,function(c){switch(c.label){case 0:return r=[ct({},e)],[4,this.initializeBaseRequest(e)];case 1:return i=ct.apply(void 0,r.concat([c.sent()])),o=this.performanceClient.startMeasurement(ci.SilentRefreshClientAcquireToken,i.correlationId),s=this.initializeServerTelemetryManager(bn.acquireTokenSilent_silentFlow),[4,this.createRefreshTokenClient(s,i.authority,i.azureCloudOptions)];case 2:return a=c.sent(),this.logger.verbose("Refresh token client created"),[2,a.acquireTokenByRefreshToken(i).then(function(u){return o.endMeasurement({success:!0,fromCache:u.fromCache}),u}).catch(function(u){throw u instanceof ut&&u.setCorrelationId(l.correlationId),s.cacheFailedRequest(u),o.endMeasurement({errorCode:u.errorCode,subErrorCode:u.subError,success:!1}),u})]}})})},t.prototype.logout=function(){return Promise.reject(ze.createSilentLogoutUnsupportedError())},t.prototype.createRefreshTokenClient=function(e,i,r){return Oe(this,void 0,void 0,function(){var o;return Pe(this,function(s){switch(s.label){case 0:return[4,this.getClientConfiguration(e,i,r)];case 1:return o=s.sent(),[2,new BI(o,this.performanceClient)]}})})},t}(Wc),AG=function(){function n(t,e,i,r){this.isBrowserEnvironment=typeof window<"u",this.config=t,this.storage=e,this.logger=i,this.cryptoObj=r}return n.prototype.loadExternalTokens=function(t,e,i){if(this.logger.info("TokenCache - loadExternalTokens called"),!e.id_token)throw ze.createUnableToLoadTokenError("Please ensure server response includes id token.");if(t.account)this.loadIdToken(e.id_token,t.account.homeAccountId,t.account.environment,t.account.tenantId,i),this.loadAccessToken(t,e,t.account.homeAccountId,t.account.environment,t.account.tenantId,i);else{if(!t.authority)throw ze.createUnableToLoadTokenError("Please provide a request with an account or a request with authority.");var r=Em.generateAuthority(t.authority,t.azureCloudOptions),s=new Em(r,this.config.system.networkClient,this.storage,{protocolMode:this.config.auth.protocolMode,knownAuthorities:this.config.auth.knownAuthorities,cloudDiscoveryMetadata:this.config.auth.cloudDiscoveryMetadata,authorityMetadata:this.config.auth.authorityMetadata,skipAuthorityMetadataCache:this.config.auth.skipAuthorityMetadataCache});if(i.clientInfo)this.logger.trace("TokenCache - homeAccountId from options"),this.loadIdToken(e.id_token,i.clientInfo,s.hostnameAndPort,s.tenant,i),this.loadAccessToken(t,e,i.clientInfo,s.hostnameAndPort,s.tenant,i);else{if(!e.client_info)throw ze.createUnableToLoadTokenError("Please provide clientInfo in the response or options.");this.logger.trace("TokenCache - homeAccountId from response"),this.loadIdToken(e.id_token,e.client_info,s.hostnameAndPort,s.tenant,i),this.loadAccessToken(t,e,e.client_info,s.hostnameAndPort,s.tenant,i)}}},n.prototype.loadIdToken=function(t,e,i,r,o){var s=Wd.createIdTokenEntity(e,i,t,this.config.auth.clientId,r),a=new va(t,this.cryptoObj),l=o.clientInfo?Fi.createAccount(o.clientInfo,e,a,void 0,void 0,void 0,i):Fi.createGenericAccount(e,a,void 0,void 0,void 0,i);if(!this.isBrowserEnvironment)throw ze.createUnableToLoadTokenError("loadExternalTokens is designed to work in browser environments only.");this.logger.verbose("TokenCache - loading id token"),this.storage.setAccount(l),this.storage.setIdTokenCredential(s)},n.prototype.loadAccessToken=function(t,e,i,r,o,s){if(e.access_token){if(!e.expires_in)throw ze.createUnableToLoadTokenError("Please ensure server response includes expires_in value.");if(!s.extendedExpiresOn)throw ze.createUnableToLoadTokenError("Please provide an extendedExpiresOn value in the options.");var a=new fr(t.scopes).printScopes(),l=s.expiresOn||e.expires_in+(new Date).getTime()/1e3,u=$d.createAccessTokenEntity(i,r,e.access_token,this.config.auth.clientId,o,a,l,s.extendedExpiresOn,this.cryptoObj);if(!this.isBrowserEnvironment)throw ze.createUnableToLoadTokenError("loadExternalTokens is designed to work in browser environments only.");this.logger.verbose("TokenCache - loading access token"),this.storage.setAccessTokenCredential(u)}else this.logger.verbose("TokenCache - No access token provided for caching")},n}(),TG=function(n){function t(e){var i=n.call(this,e)||this;return i.includeRedirectUri=!1,i}return Ci(t,n),t}(OI),xG=function(n){function t(e,i,r,o,s,a,l,c,u,d){var h=n.call(this,e,i,r,o,s,a,c,u,d)||this;return h.apiId=l,h}return Ci(t,n),t.prototype.acquireToken=function(e){return Oe(this,void 0,void 0,function(){var i,r,o,s,a,c;return Pe(this,function(u){switch(u.label){case 0:if(this.logger.trace("SilentAuthCodeClient.acquireToken called"),!e.code)throw ze.createAuthCodeRequiredError();return[4,this.initializeAuthorizationRequest(e,$e.Silent)];case 1:i=u.sent(),this.browserStorage.updateCacheEntries(i.state,i.nonce,i.authority,i.loginHint||ee.EMPTY_STRING,i.account||null),r=this.initializeServerTelemetryManager(this.apiId),u.label=2;case 2:return u.trys.push([2,4,,5]),o=ct(ct({},i),{code:e.code}),[4,this.getClientConfiguration(r,i.authority)];case 3:return s=u.sent(),a=new TG(s),this.logger.verbose("Auth code client created"),[2,new VI(a,this.browserStorage,o,this.logger,this.config.system.navigateFrameWait).handleCodeResponseFromServer({code:e.code,msgraph_host:e.msGraphHost,cloud_graph_host_name:e.cloudGraphHostName,cloud_instance_host_name:e.cloudInstanceHostName},i.state,a.authority,this.networkClient,!1)];case 4:throw(c=u.sent())instanceof ut&&c.setCorrelationId(this.correlationId),r.cacheFailedRequest(c),this.browserStorage.cleanRequestByState(i.state),c;case 5:return[2]}})})},t.prototype.logout=function(){return Promise.reject(ze.createSilentLogoutUnsupportedError())},t}(Wc),IG=function(){function n(t,e){this.correlationId=e,this.measureName="msal.measure."+t+"."+this.correlationId,this.startMark="msal.start."+t+"."+this.correlationId,this.endMark="msal.end."+t+"."+this.correlationId}return n.supportsBrowserPerformance=function(){return typeof window<"u"&&typeof window.performance<"u"&&"function"==typeof window.performance.mark&&"function"==typeof window.performance.measure&&"function"==typeof window.performance.clearMarks&&"function"==typeof window.performance.clearMeasures&&"function"==typeof window.performance.getEntriesByName},n.prototype.startMeasurement=function(){if(n.supportsBrowserPerformance())try{window.performance.mark(this.startMark)}catch{}},n.prototype.endMeasurement=function(){if(n.supportsBrowserPerformance())try{window.performance.mark(this.endMark),window.performance.measure(this.measureName,this.startMark,this.endMark)}catch{}},n.prototype.flushMeasurement=function(){if(n.supportsBrowserPerformance())try{var t=window.performance.getEntriesByName(this.measureName,"measure");if(t.length>0){var e=t[0].duration;return window.performance.clearMeasures(this.measureName),window.performance.clearMarks(this.startMark),window.performance.clearMarks(this.endMark),e}}catch{}return null},n}(),MG=function(n){function t(e,i,r,o,s,a){var l=n.call(this,e,i,r,o,s,a)||this;return l.browserCrypto=new mm(l.logger),l.guidGenerator=new wI(l.browserCrypto),l}return Ci(t,n),t.prototype.startPerformanceMeasuremeant=function(e,i){return new IG(e,i)},t.prototype.generateId=function(){return this.guidGenerator.generateGuid()},t.prototype.getPageVisibility=function(){var e;return(null===(e=document.visibilityState)||void 0===e?void 0:e.toString())||null},t.prototype.startMeasurement=function(e,i){var r=this,o=this.getPageVisibility(),s=n.prototype.startMeasurement.call(this,e,i);return ct(ct({},s),{endMeasurement:function(a){return s.endMeasurement(ct({startPageVisibility:o,endPageVisibility:r.getPageVisibility()},a))}})},t}(AI),kG=function(){function n(t){this.isBrowserEnvironment=typeof window<"u",this.config=function hG(n,t){var e=n.auth,i=n.cache,r=n.system,o=n.telemetry,s={clientId:ee.EMPTY_STRING,authority:""+ee.DEFAULT_AUTHORITY,knownAuthorities:[],cloudDiscoveryMetadata:ee.EMPTY_STRING,authorityMetadata:ee.EMPTY_STRING,redirectUri:ee.EMPTY_STRING,postLogoutRedirectUri:ee.EMPTY_STRING,navigateToLoginRequestUrl:!0,clientCapabilities:[],protocolMode:Kd.AAD,azureCloudOptions:{azureCloudInstance:qc.None,tenant:ee.EMPTY_STRING},skipAuthorityMetadataCache:!1},a={cacheLocation:pi.SessionStorage,storeAuthStateInCookie:!1,secureCookies:!1},l={loggerCallback:function(){},logLevel:mi.Info,piiLoggingEnabled:!1},c=ct(ct({},RI),{loggerOptions:l,networkClient:t?Fn.getBrowserNetworkClient():oG,navigationClient:new lG,loadFrameTimeout:0,windowHashTimeout:r?.loadFrameTimeout||6e4,iframeHashTimeout:r?.loadFrameTimeout||6e3,navigateFrameWait:t&&Fn.detectIEOrEdge()?500:0,redirectNavigationTimeout:3e4,asyncPopups:!1,allowRedirectInIframe:!1,allowNativeBroker:!1,nativeBrokerHandshakeTimeout:r?.nativeBrokerHandshakeTimeout||2e3}),u={application:{appName:ee.EMPTY_STRING,appVersion:ee.EMPTY_STRING}};return{auth:ct(ct({},s),e),cache:ct(ct({},a),i),system:ct(ct({},c),r),telemetry:ct(ct({},u),o)}}(t,this.isBrowserEnvironment),this.initialized=!1,this.logger=new SI(this.config.system.loggerOptions,cC,Yd),this.networkClient=this.config.system.networkClient,this.navigationClient=this.config.system.navigationClient,this.redirectResponse=new Map,this.hybridAuthCodeResponses=new Map,this.performanceClient=this.isBrowserEnvironment?new MG(this.config.auth.clientId,this.config.auth.authority,this.logger,cC,Yd,this.config.telemetry.application):new G7(this.config.auth.clientId,this.config.auth.authority,this.logger,cC,Yd,this.config.telemetry.application),this.browserCrypto=this.isBrowserEnvironment?new q7(this.logger,this.performanceClient):gm,this.eventHandler=new pG(this.logger,this.browserCrypto),this.browserStorage=this.isBrowserEnvironment?new aC(this.config.auth.clientId,this.config.cache,this.browserCrypto,this.logger):function(n,t){return new aC(n,{cacheLocation:pi.MemoryStorage,storeAuthStateInCookie:!1,secureCookies:!1},gm,t)}(this.config.auth.clientId,this.logger),this.nativeInternalStorage=new aC(this.config.auth.clientId,{cacheLocation:pi.MemoryStorage,storeAuthStateInCookie:!1,secureCookies:!1},this.browserCrypto,this.logger),this.tokenCache=new AG(this.config,this.browserStorage,this.logger,this.browserCrypto)}return n.prototype.initialize=function(){return Oe(this,void 0,void 0,function(){var t,e;return Pe(this,function(i){switch(i.label){case 0:if(this.logger.trace("initialize called"),this.initialized)return this.logger.info("initialize has already been called, exiting early."),[2];if(this.eventHandler.emitEvent(st.INITIALIZE_START),!this.config.system.allowNativeBroker)return[3,4];i.label=1;case 1:return i.trys.push([1,3,,4]),t=this,[4,dl.createProvider(this.logger,this.config.system.nativeBrokerHandshakeTimeout)];case 2:return t.nativeExtensionProvider=i.sent(),[3,4];case 3:return e=i.sent(),this.logger.verbose(e),[3,4];case 4:return this.initialized=!0,this.eventHandler.emitEvent(st.INITIALIZE_END),[2]}})})},n.prototype.handleRedirectPromise=function(t){return Oe(this,void 0,void 0,function(){var e,i,r,o,s,a,l,c,u=this;return Pe(this,function(d){return this.logger.verbose("handleRedirectPromise called"),Fn.blockNativeBrokerCalledBeforeInitialized(this.config.system.allowNativeBroker,this.initialized),e=this.getAllAccounts(),this.isBrowserEnvironment?(typeof(r=this.redirectResponse.get(i=t||ee.EMPTY_STRING))>"u"?(this.eventHandler.emitEvent(st.HANDLE_REDIRECT_START,$e.Redirect),this.logger.verbose("handleRedirectPromise has been called for the first time, storing the promise"),o=this.browserStorage.getCachedNativeRequest(),s=void 0,o&&dl.isNativeAvailable(this.config,this.logger,this.nativeExtensionProvider)&&this.nativeExtensionProvider&&!t?(this.logger.trace("handleRedirectPromise - acquiring token from native platform"),a=new $c(this.config,this.browserStorage,this.browserCrypto,this.logger,this.eventHandler,this.navigationClient,bn.handleRedirectPromise,this.performanceClient,this.nativeExtensionProvider,o.accountId,this.nativeInternalStorage,o.correlationId),s=a.handleRedirectPromise()):(this.logger.trace("handleRedirectPromise - acquiring token from web flow"),l=this.browserStorage.getTemporaryCache(an.CORRELATION_ID,!0)||ee.EMPTY_STRING,c=this.createRedirectClient(l),s=c.handleRedirectPromise(t)),r=s.then(function(h){return h&&(e.length0?st.ACQUIRE_TOKEN_FAILURE:st.LOGIN_FAILURE,$e.Redirect,null,h),u.eventHandler.emitEvent(st.HANDLE_REDIRECT_END,$e.Redirect),h}),this.redirectResponse.set(i,r)):this.logger.verbose("handleRedirectPromise has been called previously, returning the result from the first call"),[2,r]):(this.logger.verbose("handleRedirectPromise returns null, not browser environment"),[2,null])})})},n.prototype.acquireTokenRedirect=function(t){return Oe(this,void 0,void 0,function(){var e,i,r,o,s,a=this;return Pe(this,function(l){return e=this.getRequestCorrelationId(t),this.logger.verbose("acquireTokenRedirect called",e),this.preflightBrowserEnvironmentCheck($e.Redirect),i=this.getAllAccounts().length>0,this.eventHandler.emitEvent(i?st.ACQUIRE_TOKEN_START:st.LOGIN_START,$e.Redirect,t),this.nativeExtensionProvider&&this.canUseNative(t)?(o=new $c(this.config,this.browserStorage,this.browserCrypto,this.logger,this.eventHandler,this.navigationClient,bn.acquireTokenRedirect,this.performanceClient,this.nativeExtensionProvider,this.getNativeAccountId(t),this.nativeInternalStorage,t.correlationId),r=o.acquireTokenRedirect(t).catch(function(c){if(c instanceof ts&&c.isFatal())return a.nativeExtensionProvider=void 0,a.createRedirectClient(t.correlationId).acquireToken(t);if(c instanceof xo)return a.logger.verbose("acquireTokenRedirect - Resolving interaction required error thrown by native broker by falling back to web flow"),a.createRedirectClient(t.correlationId).acquireToken(t);throw a.browserStorage.setInteractionInProgress(!1),c})):(s=this.createRedirectClient(t.correlationId),r=s.acquireToken(t)),[2,r.catch(function(c){throw a.eventHandler.emitEvent(i?st.ACQUIRE_TOKEN_FAILURE:st.LOGIN_FAILURE,$e.Redirect,null,c),c})]})})},n.prototype.acquireTokenPopup=function(t){var e=this,i=this.getRequestCorrelationId(t),r=this.performanceClient.startMeasurement(ci.AcquireTokenPopup,i);try{this.logger.verbose("acquireTokenPopup called",i),this.preflightBrowserEnvironmentCheck($e.Popup)}catch(l){return Promise.reject(l)}var o=this.getAllAccounts();return this.eventHandler.emitEvent(o.length>0?st.ACQUIRE_TOKEN_START:st.LOGIN_START,$e.Popup,t),(this.canUseNative(t)?this.acquireTokenNative(t,bn.acquireTokenPopup).then(function(l){return e.browserStorage.setInteractionInProgress(!1),r.endMeasurement({success:!0,isNativeBroker:!0,accessTokenSize:l.accessToken.length,idTokenSize:l.idToken.length}),r.flushMeasurement(),l}).catch(function(l){if(l instanceof ts&&l.isFatal())return e.nativeExtensionProvider=void 0,e.createPopupClient(t.correlationId).acquireToken(t);if(l instanceof xo)return e.logger.verbose("acquireTokenPopup - Resolving interaction required error thrown by native broker by falling back to web flow"),e.createPopupClient(t.correlationId).acquireToken(t);throw e.browserStorage.setInteractionInProgress(!1),l}):this.createPopupClient(t.correlationId).acquireToken(t)).then(function(l){var c=o.length0?st.ACQUIRE_TOKEN_FAILURE:st.LOGIN_FAILURE,$e.Popup,null,l),r.endMeasurement({errorCode:l.errorCode,subErrorCode:l.subError,success:!1}),r.flushMeasurement(),Promise.reject(l)})},n.prototype.ssoSilent=function(t){return Oe(this,void 0,void 0,function(){var e,i,r,o,s,a=this;return Pe(this,function(l){return e=this.getRequestCorrelationId(t),i=ct(ct({},t),{prompt:Li.NONE,correlationId:e}),this.preflightBrowserEnvironmentCheck($e.Silent),r=this.performanceClient.startMeasurement(ci.SsoSilent,e),this.logger.verbose("ssoSilent called",e),this.eventHandler.emitEvent(st.SSO_SILENT_START,$e.Silent,i),this.canUseNative(i)?o=this.acquireTokenNative(i,bn.ssoSilent).catch(function(c){if(c instanceof ts&&c.isFatal())return a.nativeExtensionProvider=void 0,a.createSilentIframeClient(i.correlationId).acquireToken(i);throw c}):(s=this.createSilentIframeClient(i.correlationId),o=s.acquireToken(i)),[2,o.then(function(c){return a.eventHandler.emitEvent(st.SSO_SILENT_SUCCESS,$e.Silent,c),r.endMeasurement({success:!0,isNativeBroker:c.fromNativeBroker,accessTokenSize:c.accessToken.length,idTokenSize:c.idToken.length}),r.flushMeasurement(),c}).catch(function(c){throw a.eventHandler.emitEvent(st.SSO_SILENT_FAILURE,$e.Silent,null,c),r.endMeasurement({errorCode:c.errorCode,subErrorCode:c.subError,success:!1}),r.flushMeasurement(),c})]})})},n.prototype.acquireTokenByCode=function(t){return Oe(this,void 0,void 0,function(){var e,i,r,o,s=this;return Pe(this,function(a){e=this.getRequestCorrelationId(t),this.preflightBrowserEnvironmentCheck($e.Silent),this.logger.trace("acquireTokenByCode called",e),this.eventHandler.emitEvent(st.ACQUIRE_TOKEN_BY_CODE_START,$e.Silent,t),i=this.performanceClient.startMeasurement(ci.AcquireTokenByCode,t.correlationId);try{if(t.code)return(o=this.hybridAuthCodeResponses.get(r=t.code))?(this.logger.verbose("Existing acquireTokenByCode request found",t.correlationId),i.endMeasurement({success:!0}),i.discardMeasurement()):(this.logger.verbose("Initiating new acquireTokenByCode request",e),o=this.acquireTokenByCodeAsync(ct(ct({},t),{correlationId:e})).then(function(l){return s.eventHandler.emitEvent(st.ACQUIRE_TOKEN_BY_CODE_SUCCESS,$e.Silent,l),s.hybridAuthCodeResponses.delete(r),i.endMeasurement({success:!0,accessTokenSize:l.accessToken.length,idTokenSize:l.idToken.length,isNativeBroker:l.fromNativeBroker}),i.flushMeasurement(),l}).catch(function(l){throw s.hybridAuthCodeResponses.delete(r),s.eventHandler.emitEvent(st.ACQUIRE_TOKEN_BY_CODE_FAILURE,$e.Silent,null,l),i.endMeasurement({errorCode:l.errorCode,subErrorCode:l.subError,success:!1}),i.flushMeasurement(),l}),this.hybridAuthCodeResponses.set(r,o)),[2,o];if(t.nativeAccountId){if(this.canUseNative(t,t.nativeAccountId))return[2,this.acquireTokenNative(t,bn.acquireTokenByCode,t.nativeAccountId).catch(function(l){throw l instanceof ts&&l.isFatal()&&(s.nativeExtensionProvider=void 0),l})];throw ze.createUnableToAcquireTokenFromNativePlatformError()}throw ze.createAuthCodeOrNativeAccountIdRequiredError()}catch(l){throw this.eventHandler.emitEvent(st.ACQUIRE_TOKEN_BY_CODE_FAILURE,$e.Silent,null,l),i.endMeasurement({errorCode:l instanceof ut&&l.errorCode||void 0,subErrorCode:l instanceof ut&&l.subError||void 0,success:!1}),l}return[2]})})},n.prototype.acquireTokenByCodeAsync=function(t){return Oe(this,void 0,void 0,function(){return Pe(this,function(r){switch(r.label){case 0:return this.logger.trace("acquireTokenByCodeAsync called",t.correlationId),[4,this.createSilentAuthCodeClient(t.correlationId).acquireToken(t)];case 1:return[2,r.sent()]}})})},n.prototype.acquireTokenByRefreshToken=function(t){return Oe(this,void 0,void 0,function(){var e,r=this;return Pe(this,function(o){return Fn.blockReloadInHiddenIframes(),e=this.performanceClient.startMeasurement(ci.AcquireTokenByRefreshToken,t.correlationId),this.eventHandler.emitEvent(st.ACQUIRE_TOKEN_NETWORK_START,$e.Silent,t),[2,this.createSilentRefreshClient(t.correlationId).acquireToken(t).then(function(s){return e.endMeasurement({success:!0,fromCache:s.fromCache,accessTokenSize:s.accessToken.length,idTokenSize:s.idToken.length}),s}).catch(function(s){if(s instanceof cl&&"invalid_grant"===s.errorCode&&!(s instanceof xo))return r.logger.verbose("Refresh token expired or invalid, attempting acquire token by iframe",t.correlationId),r.createSilentIframeClient(t.correlationId).acquireToken(t).then(function(d){return e.endMeasurement({success:!0,fromCache:d.fromCache,accessTokenSize:d.accessToken.length,idTokenSize:d.idToken.length}),d}).catch(function(d){throw e.endMeasurement({errorCode:d.errorCode,subErrorCode:d.subError,success:!1}),d});throw e.endMeasurement({success:!1}),s})]})})},n.prototype.logout=function(t){return Oe(this,void 0,void 0,function(){var e;return Pe(this,function(i){return e=this.getRequestCorrelationId(t),this.logger.warning("logout API is deprecated and will be removed in msal-browser v3.0.0. Use logoutRedirect instead.",e),[2,this.logoutRedirect(ct({correlationId:e},t))]})})},n.prototype.logoutRedirect=function(t){return Oe(this,void 0,void 0,function(){var e;return Pe(this,function(r){return e=this.getRequestCorrelationId(t),this.preflightBrowserEnvironmentCheck($e.Redirect),[2,this.createRedirectClient(e).logout(t)]})})},n.prototype.logoutPopup=function(t){try{var e=this.getRequestCorrelationId(t);return this.preflightBrowserEnvironmentCheck($e.Popup),this.createPopupClient(e).logout(t)}catch(r){return Promise.reject(r)}},n.prototype.getAllAccounts=function(){return this.logger.verbose("getAllAccounts called"),this.isBrowserEnvironment?this.browserStorage.getAllAccounts():[]},n.prototype.getAccountByUsername=function(t){var e=this.getAllAccounts();return!Ke.isEmpty(t)&&e&&e.length?(this.logger.verbose("Account matching username found, returning"),this.logger.verbosePii("Returning signed-in accounts matching username: "+t),e.filter(function(i){return i.username.toLowerCase()===t.toLowerCase()})[0]||null):(this.logger.verbose("getAccountByUsername: No matching account found, returning null"),null)},n.prototype.getAccountByHomeId=function(t){var e=this.getAllAccounts();return!Ke.isEmpty(t)&&e&&e.length?(this.logger.verbose("Account matching homeAccountId found, returning"),this.logger.verbosePii("Returning signed-in accounts matching homeAccountId: "+t),e.filter(function(i){return i.homeAccountId===t})[0]||null):(this.logger.verbose("getAccountByHomeId: No matching account found, returning null"),null)},n.prototype.getAccountByLocalId=function(t){var e=this.getAllAccounts();return!Ke.isEmpty(t)&&e&&e.length?(this.logger.verbose("Account matching localAccountId found, returning"),this.logger.verbosePii("Returning signed-in accounts matching localAccountId: "+t),e.filter(function(i){return i.localAccountId===t})[0]||null):(this.logger.verbose("getAccountByLocalId: No matching account found, returning null"),null)},n.prototype.setActiveAccount=function(t){this.browserStorage.setActiveAccount(t)},n.prototype.getActiveAccount=function(){return this.browserStorage.getActiveAccount()},n.prototype.preflightBrowserEnvironmentCheck=function(t,e){if(void 0===e&&(e=!0),this.logger.verbose("preflightBrowserEnvironmentCheck started"),Fn.blockNonBrowserEnvironment(this.isBrowserEnvironment),Fn.blockRedirectInIframe(t,this.config.system.allowRedirectInIframe),Fn.blockReloadInHiddenIframes(),Fn.blockAcquireTokenInPopups(),Fn.blockNativeBrokerCalledBeforeInitialized(this.config.system.allowNativeBroker,this.initialized),t===$e.Redirect&&this.config.cache.cacheLocation===pi.MemoryStorage&&!this.config.cache.storeAuthStateInCookie)throw ym.createInMemoryRedirectUnavailableError();(t===$e.Redirect||t===$e.Popup)&&this.preflightInteractiveRequest(e)},n.prototype.preflightInteractiveRequest=function(t){this.logger.verbose("preflightInteractiveRequest called, validating app environment"),Fn.blockReloadInHiddenIframes(),t&&this.browserStorage.setInteractionInProgress(!0)},n.prototype.acquireTokenNative=function(t,e,i){return Oe(this,void 0,void 0,function(){return Pe(this,function(o){if(this.logger.trace("acquireTokenNative called"),!this.nativeExtensionProvider)throw ze.createNativeConnectionNotEstablishedError();return[2,new $c(this.config,this.browserStorage,this.browserCrypto,this.logger,this.eventHandler,this.navigationClient,e,this.performanceClient,this.nativeExtensionProvider,i||this.getNativeAccountId(t),this.nativeInternalStorage,t.correlationId).acquireToken(t)]})})},n.prototype.canUseNative=function(t,e){if(this.logger.trace("canUseNative called"),!dl.isNativeAvailable(this.config,this.logger,this.nativeExtensionProvider,t.authenticationScheme))return this.logger.trace("canUseNative: isNativeAvailable returned false, returning false"),!1;if(t.prompt)switch(t.prompt){case Li.NONE:case Li.CONSENT:case Li.LOGIN:this.logger.trace("canUseNative: prompt is compatible with native flow");break;default:return this.logger.trace("canUseNative: prompt = "+t.prompt+" is not compatible with native flow, returning false"),!1}return!(!e&&!this.getNativeAccountId(t)&&(this.logger.trace("canUseNative: nativeAccountId is not available, returning false"),1))},n.prototype.getNativeAccountId=function(t){var e=t.account||this.browserStorage.getAccountInfoByHints(t.loginHint,t.sid)||this.getActiveAccount();return e&&e.nativeAccountId||""},n.prototype.createPopupClient=function(t){return new wG(this.config,this.browserStorage,this.browserCrypto,this.logger,this.eventHandler,this.navigationClient,this.performanceClient,this.nativeInternalStorage,this.nativeExtensionProvider,t)},n.prototype.createRedirectClient=function(t){return new EG(this.config,this.browserStorage,this.browserCrypto,this.logger,this.eventHandler,this.navigationClient,this.performanceClient,this.nativeInternalStorage,this.nativeExtensionProvider,t)},n.prototype.createSilentIframeClient=function(t){return new DG(this.config,this.browserStorage,this.browserCrypto,this.logger,this.eventHandler,this.navigationClient,bn.ssoSilent,this.performanceClient,this.nativeInternalStorage,this.nativeExtensionProvider,t)},n.prototype.createSilentCacheClient=function(t){return new jI(this.config,this.browserStorage,this.browserCrypto,this.logger,this.eventHandler,this.navigationClient,this.performanceClient,this.nativeExtensionProvider,t)},n.prototype.createSilentRefreshClient=function(t){return new SG(this.config,this.browserStorage,this.browserCrypto,this.logger,this.eventHandler,this.navigationClient,this.performanceClient,this.nativeExtensionProvider,t)},n.prototype.createSilentAuthCodeClient=function(t){return new xG(this.config,this.browserStorage,this.browserCrypto,this.logger,this.eventHandler,this.navigationClient,bn.acquireTokenByCode,this.performanceClient,this.nativeExtensionProvider,t)},n.prototype.addEventCallback=function(t){return this.eventHandler.addEventCallback(t)},n.prototype.removeEventCallback=function(t){this.eventHandler.removeEventCallback(t)},n.prototype.addPerformanceCallback=function(t){return this.performanceClient.addPerformanceCallback(t)},n.prototype.removePerformanceCallback=function(t){return this.performanceClient.removePerformanceCallback(t)},n.prototype.enableAccountStorageEvents=function(){this.eventHandler.enableAccountStorageEvents()},n.prototype.disableAccountStorageEvents=function(){this.eventHandler.disableAccountStorageEvents()},n.prototype.getTokenCache=function(){return this.tokenCache},n.prototype.getLogger=function(){return this.logger},n.prototype.setLogger=function(t){this.logger=t},n.prototype.initializeWrapperLibrary=function(t,e){this.browserStorage.setWrapperMetadata(t,e)},n.prototype.setNavigationClient=function(t){this.navigationClient=t},n.prototype.getConfiguration=function(){return this.config},n.prototype.getRequestCorrelationId=function(t){return t?.correlationId?t.correlationId:this.isBrowserEnvironment?this.browserCrypto.createNewGuid():ee.EMPTY_STRING},n}(),UI=function(n){function t(e){var i=n.call(this,e)||this;return i.activeSilentTokenRequests=new Map,i}return Ci(t,n),t.prototype.loginRedirect=function(e){return Oe(this,void 0,void 0,function(){var i;return Pe(this,function(r){return i=this.getRequestCorrelationId(e),this.logger.verbose("loginRedirect called",i),[2,this.acquireTokenRedirect(ct({correlationId:i},e||bI))]})})},t.prototype.loginPopup=function(e){var i=this.getRequestCorrelationId(e);return this.logger.verbose("loginPopup called",i),this.acquireTokenPopup(ct({correlationId:i},e||bI))},t.prototype.acquireTokenSilent=function(e){return Oe(this,void 0,void 0,function(){var i,r,o,a,l,c,u=this;return Pe(this,function(d){if(i=this.getRequestCorrelationId(e),r=this.performanceClient.startMeasurement(ci.AcquireTokenSilent,i),this.preflightBrowserEnvironmentCheck($e.Silent),this.logger.verbose("acquireTokenSilent called",i),!(o=e.account||this.getActiveAccount()))throw ze.createNoAccountError();return a=JSON.stringify({clientId:this.config.auth.clientId,authority:e.authority||ee.EMPTY_STRING,scopes:e.scopes,homeAccountIdentifier:o.homeAccountId,claims:e.claims,authenticationScheme:e.authenticationScheme,resourceRequestMethod:e.resourceRequestMethod,resourceRequestUri:e.resourceRequestUri,shrClaims:e.shrClaims,sshKid:e.sshKid}),typeof(l=this.activeSilentTokenRequests.get(a))>"u"?(this.logger.verbose("acquireTokenSilent called for the first time, storing active request",i),c=this.acquireTokenSilentAsync(ct(ct({},e),{correlationId:i}),o).then(function(h){return u.activeSilentTokenRequests.delete(a),r.endMeasurement({success:!0,fromCache:h.fromCache,accessTokenSize:h.accessToken.length,idTokenSize:h.idToken.length,isNativeBroker:h.fromNativeBroker}),r.flushMeasurement(),h}).catch(function(h){throw u.activeSilentTokenRequests.delete(a),r.endMeasurement({success:!1}),r.flushMeasurement(),h}),this.activeSilentTokenRequests.set(a,c),[2,c]):(this.logger.verbose("acquireTokenSilent has been called previously, returning the result from the first call",i),r.endMeasurement({success:!0}),r.discardMeasurement(),[2,l])})})},t.prototype.acquireTokenSilentAsync=function(e,i){return Oe(this,void 0,void 0,function(){var r,o,s,a,l,c=this;return Pe(this,function(u){switch(u.label){case 0:return this.eventHandler.emitEvent(st.ACQUIRE_TOKEN_START,$e.Silent,e),r=this.performanceClient.startMeasurement(ci.AcquireTokenSilentAsync,e.correlationId),dl.isNativeAvailable(this.config,this.logger,this.nativeExtensionProvider,e.authenticationScheme)&&i.nativeAccountId?(this.logger.verbose("acquireTokenSilent - attempting to acquire token from native platform"),s=ct(ct({},e),{account:i}),o=this.acquireTokenNative(s,bn.acquireTokenSilent_silentFlow).catch(function(d){return Oe(c,void 0,void 0,function(){return Pe(this,function(m){if(d instanceof ts&&d.isFatal())return this.logger.verbose("acquireTokenSilent - native platform unavailable, falling back to web flow"),this.nativeExtensionProvider=void 0,[2,this.createSilentIframeClient(e.correlationId).acquireToken(e)];throw d})})}),[3,3]):[3,1];case 1:return this.logger.verbose("acquireTokenSilent - attempting to acquire token from web flow"),[4,(a=this.createSilentCacheClient(e.correlationId)).initializeSilentRequest(e,i)];case 2:l=u.sent(),o=a.acquireToken(l).catch(function(){return Oe(c,void 0,void 0,function(){return Pe(this,function(d){return[2,this.acquireTokenByRefreshToken(l)]})})}),u.label=3;case 3:return[2,o.then(function(d){return c.eventHandler.emitEvent(st.ACQUIRE_TOKEN_SUCCESS,$e.Silent,d),r.endMeasurement({success:!0,fromCache:d.fromCache,accessTokenSize:d.accessToken.length,idTokenSize:d.idToken.length,isNativeBroker:d.fromNativeBroker}),d}).catch(function(d){throw c.eventHandler.emitEvent(st.ACQUIRE_TOKEN_FAILURE,$e.Silent,null,d),r.endMeasurement({errorCode:d.errorCode,subErrorCode:d.subError,success:!1}),d})]}})})},t}(kG);let hC=(()=>{class n{constructor(e,i){this.globals=e,this.connectionService=i,this.connectionService.getGraphConfiguration().subscribe(r=>{r.redirectUri=location.origin+""+location.pathname,r.postLogoutRedirectUri=location.origin+""+location.pathname,this.msalInstance=new UI({auth:r,cache:{cacheLocation:pi.LocalStorage}})})}setLoginDisplay(){console.log(this.msalInstance.getAllAccounts().length>0)}isDesktopClient(){return Office.context.platform!==Office.PlatformType.OfficeOnline}signIn(e){var i=this;return Ae(function*(){if(!e){const o=yield i.getAccessToken();if(o&&""!==o)return}let r;Office.context.platform!==Office.PlatformType.OfficeOnline?(console.log("IS CLIENT"),i.msalInstance.loginRedirect(),i.msalInstance.handleRedirectPromise().then(o=>{o&&i.msalInstance.setActiveAccount(o.account),i.setLoginDisplay()},o=>{console.log("Error:"),console.log(o)}),i.msalInstance.handleRedirectPromise().then(o=>{console.log(o)},o=>console.log(o)),r=yield i.msalInstance.loginRedirect(Zb).catch(o=>{i.globals.actionsAllowed=!1})):(console.log("IS NOT CLIENT"),r=yield i.msalInstance.loginPopup(Zb).catch(o=>{i.globals.actionsAllowed=!1})),r&&(i.globals.actionsAllowed=!0,i.globals.graphLoaded=!0,i.authenticated=!0,i.user=yield i.getUser())})()}clientSignIn(){var e=this;return Ae(function*(){console.log("Client Login"),e.signIn()})()}signOut(){return new b(e=>{this.msalInstance.logout().then(()=>{this.globals.graphLoaded=!1,this.user=void 0,this.authenticated=!1,e.next("Logged out")})})}signOutPopup(){return new b(e=>{this.msalInstance.logoutPopup().then(()=>{this.user=void 0,this.authenticated=!1,e.next("Logged out")})})}getAccessToken(){var e=this;return Ae(function*(){const i=e.msalInstance.getAllAccounts()[0],r=yield e.msalInstance.acquireTokenSilent({account:i??void 0,scopes:Zb.scopes}).catch(o=>{e.globals.actionsAllowed=!1,e.signIn(!0)});return r?(e.globals.graphLoaded=!0,e.globals.actionsAllowed=!0,r.accessToken):(e.authenticated=!1,"")})()}getUser(){var e=this;return Ae(function*(){if(!e.authenticated)return;const r=yield Pd.init({authProvider:(s=Ae(function*(a){const l=yield e.getAccessToken().catch(c=>{a(c,null)});l?a(null,l):a("Could not get an access token",null)}),function(l){return s.apply(this,arguments)})}).api("/me").select("displayName,mail,mailboxSettings,userPrincipalName").get(),o=new I7;var s;return o.displayName=r.displayName??"",o.email=r.mail??r.userPrincipalName??"",o.timeZone=r.mailboxSettings?.timeZone??"UTC",o.avatar="/assets/no-profile-photo.png",o})()}}return n.\u0275fac=function(e){return new(e||n)(M(ot),M(In))},n.\u0275prov=ge({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),ya=(()=>{class n{constructor(e,i){this.globals=e,this.authService=i,this.initGraph()}initGraph(){var i,e=this;this.graphClient=Pd.init({authProvider:(i=Ae(function*(r){const o=yield e.authService.getAccessToken().catch(s=>{r(s,null)});o?r(null,o):r("Could not get an access token",null)}),function(o){return i.apply(this,arguments)})})}getAttachments(e,i){return e=e.replaceAll("/","-"),new b(r=>{i&&(void 0===i.getSharedPropertiesAsync||void 0===typeof i.getSharedPropertiesAsync?this.doGetAttachments(`/me/messages/${e}/attachments`,e,r):i.getSharedPropertiesAsync(o=>{this.doGetAttachments(`/users/${o.value.owner}/messages/${e}/attachments`,e,r)}))})}doGetAttachments(e,i,r){this.graphClient.api(e).get().then(o=>{this.prepareAttachments(o).subscribe(s=>{r.next(s)})}).catch(o=>{r.error(o.code)})}prepareAttachments(e,i){let r=[];return new b(o=>{for(const s of e.value)if(!i||-1!==i.indexOf(s.id))if("gi"===this.globals.system)r.push({data:s.contentBytes,name:s.name,type:s.contentType,cid:s.contentId,inline:s.isInline});else{if(this.globals.deleteAttachments&&!s.isInline)continue;r.push({name:s.name,mimeType:s.contentType,contentID:s.contentId,data:s.contentBytes,isInline:s.isInline,inline:s.isInline})}o.next(r)})}isAppointment(){return"appointment"===Office.context.mailbox.item?.itemType}saveExtendedData(e,i){let r=Office.context.mailbox.item;if(r){let o=void 0===r.getItemIdAsync||void 0===typeof r.getItemIdAsync;if(e&&null!=e){if(o)return this.performSaveExtendedData(i,r.itemId);r.getItemIdAsync(s=>this.performSaveExtendedData(i,s.value))}else if("function"==typeof r.saveAsync){let s=r;if(o)return this.globals.infoShower.currentItemId=s.itemId,this.performSaveExtendedData(i,this.globals.infoShower.currentItemId);r.saveAsync(a=>{s.getItemIdAsync(l=>(this.globals.infoShower.currentItemId=l.value,this.performSaveExtendedData(i,this.globals.infoShower.currentItemId)))})}else this.globals.infoShower.currentItemId=r.itemId,e=r.itemId}return this.performSaveExtendedData(i,e)}performSaveExtendedData(e,i){return new b(r=>{if(i){i=i.replaceAll("/","-");const o={singleValueExtendedProperties:[{id:"String {00020329-0000-0000-C000-000000000046} Name BM4OAExPro",value:JSON.stringify(e)}]};let s="messages";this.isAppointment()&&(s="calendar/events");let a=Office.context.mailbox.item;a&&(void 0===a.getSharedPropertiesAsync||void 0===typeof a.getSharedPropertiesAsync?this.doSaveExtendedData(`/me/${s}/${i}`,o,e,r):a.getSharedPropertiesAsync(l=>{this.doSaveExtendedData(`/users/${l.value.owner}/${s}/${i}`,o,e,r)}))}})}doSaveExtendedData(e,i,r,o){this.graphClient.api(e).update(i).then(s=>{console.log("Setting data:"),console.log(r),o.next(s)}).catch(s=>{console.log("Error while setting data: "+s)})}getExtendedData(e){let i=Office.context.mailbox.item;if(i){let r=void 0===i.getItemIdAsync||void 0===typeof i.getItemIdAsync;if(e&&null!=e){if(r)return this.performGetExtendedData(i.itemId);i.getItemIdAsync(o=>this.performGetExtendedData(o.value))}else if("function"==typeof i.saveAsync){let o=i;if(r)return this.globals.infoShower.currentItemId=o.itemId,this.performGetExtendedData(this.globals.infoShower.currentItemId);i.saveAsync(s=>{o.getItemIdAsync(a=>(this.globals.infoShower.currentItemId=a.value,this.performGetExtendedData(a.value)))})}else this.globals.infoShower.currentItemId=i.itemId,e=i.itemId}return this.performGetExtendedData(e)}performGetExtendedData(e){return new b(i=>{if(e){e=e.replaceAll("/","-");let r="messages";this.isAppointment()&&(r="calendar/events");let o=Office.context.mailbox.item;o&&(void 0===o.getSharedPropertiesAsync||void 0===typeof o.getSharedPropertiesAsync?this.doGetExtendedData(`/me/${r}/${e}`,i):o.getSharedPropertiesAsync(s=>{this.doGetExtendedData(`/users/${s.value.owner}/${r}/${e}`,i)}))}})}doGetExtendedData(e,i){this.graphClient.api(e).responseType(Rr.RAW).expand("singleValueExtendedProperties($filter=id eq 'String {00020329-0000-0000-C000-000000000046} Name BM4OAExPro')").get().then(function(){var r=Ae(function*(o){if(200===o.status){let s=yield o.json();if(s&&s.singleValueExtendedProperties&&s.singleValueExtendedProperties.length>0){let a=JSON.parse(s.singleValueExtendedProperties[0].value);console.log("Getting data:",a),i.next(a)}else i.next(new jc)}else i.next(new jc)});return function(o){return r.apply(this,arguments)}}()).catch(()=>{i.next(new jc)})}}return n.\u0275fac=function(e){return new(e||n)(M(ot),M(hC))},n.\u0275prov=ge({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),Vs=(()=>{class n{constructor(){this.imgTag=//g,this.srcAtt=/(?:\bsrc=)("?)([^>"]+)\1/,this.htmlRegEx=/<\/?[a-z][\s\S]*>/i}fixImgTags(e){return e.replace(this.imgTag,i=>(i=i.replace(this.srcAtt,"")).replace(/\boriginalsrc=/,"src="))}isHtml(e){return this.htmlRegEx.test(e)}parseHtmlEntities(e){return e&&e.replace(/&#([0-9]{1,3});/gi,(i,r)=>{let o=parseInt(r,10);return String.fromCharCode(o)}).replace(/"/gi,(i,r)=>'"').replace(/&/gi,(i,r)=>"&")}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=ge({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();var RG=G(5742);let Kc=(()=>{class n{constructor(e){this.local=e}set(e,i){Office.context.roamingSettings.set(e,i);let r=this.getLocalKey(e);this.local.setValue(r,i)}get(e){let i=this.getLocalKey(e),r=this.local.getValue(i);return null!=r?r:Office.context.roamingSettings.get(e)??OG[e].toString()}save(){return new RG.y(e=>{Office.context.roamingSettings.saveAsync(i=>{e.next(i)})})}getLocalKey(e){let i=e.toString();return Zt[i]}get OpenAfterCreate(){return"true"===this.get(Us.USopenAfterCreate)}get LinkOptionActive(){return"true"===this.get(Us.USlinkOptionActive)}}return n.\u0275fac=function(e){return new(e||n)(M(Mi))},n.\u0275prov=ge({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();var Us=(()=>(function(n){n.USopenAfterCreate="USopenAfterCreate",n.USlinkOptionActive="USlinkOptionActive"}(Us||(Us={})),Us))();let OG=(()=>{class n{}return n.USopenAfterCreate=!0,n.USlinkOptionActive=!1,n})();const eo=navigator.language;let PG=(()=>{class n{constructor(e,i,r,o,s,a,l,c,u,d,h,m){this.connection=e,this.modalService=i,this.globals=r,this.globalsService=o,this.connectionService=s,this.translate=a,this.messageService=l,this.dialogService=c,this.graph=u,this.htmlHelper=d,this.soapService=h,this.settings=m}getContacts(){return Ae(function*(){})()}fetchDBs(e,i){return vt(this.connection.getReqNoCache(e,i,void 0,!0))}fetchActivityTypes(e){return new b(i=>{let r={};r.pointer=e,this.connectionService.getReqNoCache("activityTypes",this.connectionService.objectToHttpParams(r),void 0,!0).subscribe({next:o=>{let s=[];for(let a of o)s.push({name:a[0],alias:a[1]});i.next(s)},error:o=>{i.error(o)},complete:()=>{}})})}fetchActivities(e){return new b(i=>{let r=new $t;e&&(r=r.append("pointer",e.pointer),void 0!==e.companyPointer&&(r=r.append("companypointer",e.companyPointer)),this.connectionService.getReqNoCache("activities",r,void 0,!0).subscribe({next:o=>{o.type="activities",i.next(o)},error:o=>{i.error(o)},complete:()=>{}})),this.connectionService.getReqNoCache("activityTypes",r,void 0,!0).subscribe({next:o=>{o.type="types",i.next(o)},error:o=>{i.error(o)},complete:()=>{}})})}getContactDBs(){return vt(this.fetchDBs("dbConnections",null))}fetchSearch(e,i,r){let s=r;s||(s="*");const a={};return a.searchKey=s,i?a.pointer=i:a.database=e,vt(this.connection.getReqNoCache("search",this.connection.objectToHttpParams(a),void 0,!0))}searchProjects(e,i,r){let s=r;s||(s="*");const a={};return a.searchKey=s,i&&(a.pointer=i),e&&(a.database=e),vt(this.connection.getReqNoCache("projects",this.connection.objectToHttpParams(a),void 0,!0))}searchDocuments(e,i,r){console.log("database is before: ",e),console.log("searchResultType is before: ",e.type);let s=r;s||(s="*");const a={};return a.searchKey=s,i&&(a.pointer=i),e&&(a.database=e.alias),"ProjectManagement"===e.type?e.type="Projects":"Event"===e.type?e.type="Events":"Office"===e.type&&(e.type="Activities"),a.type=e.type,console.log("searchResultType is after: ",e.type),vt(this.connection.getReqNoCache("documents",this.connection.objectToHttpParams(a),void 0,!0))}handleSearchResult(e,i,r){let o=Array();if(i===Ao.Contact)console.log("ContactResult:",e),console.log("activeWindow is: ",this.globals.activeWindow),Array.isArray(e)&&(e.forEach(s=>{let a=new kr,l=JSON.parse(s.displayJSON);l.value?(l.value.firstname?(a.lineOne=l.value.lastname+", "+l.value.firstname,a.lineTwo=l.value.company||l.display||"",a.lineThree=l.value.zipandcity+l.value.branchtype||""):(a.lineOne=l.value.company||l.display||"",a.lineTwo=l.value.branchtype||"",a.lineThree=l.value.zipandcity||""),a.image=l.value.viewicon||"",a.fdMe=s.value):(a.lineTwo="",a.lineThree="",a.fdMe="",a.image=""),o.push(a)}),"companyPage"===this.globals.activeWindow&&(o=o.filter(s=>s.fdMe.includes("|Company|")))),console.log("searchResultsArray: ",o);else if(i===Yo.contacts){if(console.log("Contact_Lead_Orga_Result:",e),null!=e.result&&Array.isArray(e.result)&&e.result.length>0){let s=e.result;for(let a=0;a0)for(let a of e.assignedProjectsWithDisplay){let l=new kr;l.fdMe=a.pointer,l.lineOne=a.name,l.image="025",l.lineTwo=this.globals.infoShower.displayedDestination.name,l.lineThree=a.projectNumber,o.push(l)}else for(let a of e.assignedProjects){let l=s.find(u=>u.pointer===a),c=new kr;l&&(c.fdMe=l.pointer,c.image=l.icon,c.lineOne=l.name,c.lineTwo=l.owner,c.lineThree=l.number,o.push(c))}else if(!r.participantProjects)for(let a=0;a{let a=new kr,l=JSON.parse(s.displayJSON);a.lineOne=l.display,l.value?(a.lineTwo=l.value.projectnumber||"",a.lineThree=l.value.owner||"",a.fdMe=s.value,a.image=l.value.viewicon||""):(a.lineTwo="",a.lineThree="",a.fdMe="",a.image=""),o.push(a)})):i===Ao.Service?(console.log("ServiceResult:",e),Array.isArray(e)&&e.forEach(s=>{let a=new kr,l=JSON.parse(s.displayJSON);a.lineOne=l.display,l.value?(a.lineOne=l.value.ticketnumber+" "+l.display,a.lineTwo=l.value.companyrel+" "+l.value.company+" "+l.value.contact||"",a.lineThree=l.value.category+" "+l.value.subcategory||"",a.fdMe=s.value,a.image=l.value.viewicon||""):(a.lineTwo="",a.lineThree="",a.fdMe="",a.image=""),o.push(a)})):i===Ao.Opportunity?(console.log("OpportunityResult:",e),Array.isArray(e)&&e.forEach(s=>{let a=new kr,l=JSON.parse(s.displayJSON);a.lineOne=l.display,l.value?(a.lineTwo=l.value.opportunityno||"",a.lineThree="",a.image=l.value.viewicon||"",a.fdMe=s.value):(a.lineTwo="",a.lineThree="",a.fdMe="",a.image=""),o.push(a)})):i===Ao.Events?(console.log("EventsResult:",e),Array.isArray(e)&&e.forEach(s=>{let a=new kr,l=JSON.parse(s.displayJSON);a.lineOne=l.display,l.value?(a.lineTwo=l.value.eventname||"",a.lineThree=l.value.startdate||"",a.image=l.value.viewicon||"",a.fdMe=s.value):(a.lineTwo="",a.lineThree="",a.fdMe="",a.image=""),o.push(a)})):i===Ao.Organization?(console.log("OrganizationResult:",e),Array.isArray(e)&&e.forEach(s=>{let a=new kr,l=JSON.parse(s.displayJSON);a.lineOne=l.value.company||"",l.value?(a.lineTwo=l.value.lastname+l.value.firstname||"",a.lineThree=l.value.specialtext+l.value.zipandcity||"",a.image=l.value.viewicon||"",a.fdMe=s.value):(a.lineTwo="",a.lineThree="",a.fdMe="",a.image=""),o.push(a)})):i===Ao.Activities?(console.log("OfficeResult:",e),Array.isArray(e)&&e.forEach(s=>{let a=new kr,l=JSON.parse(s.displayJSON);a.lineOne=l.display||"",l.value?(a.lineTwo=l.value.company||"",a.lineThree=l.value.contact||"",a.image=l.value.viewicon?l.value.viewicon||"":"058",a.fdMe=s.value):(a.lineTwo="",a.lineThree="",a.fdMe="",a.image="058"),o.push(a)})):i===Ao.Leads&&(console.log("LeadsResult:",e),Array.isArray(e)&&e.forEach(s=>{let a=new kr,l=JSON.parse(s.displayJSON);l.value?(l.value.firstname?(a.lineOne=l.value.lastname+", "+l.value.firstname||"",a.lineTwo=l.value.company||"",a.lineThree=l.value.zipandcity+l.value.specialtext+l.value.branchtype||""):(a.lineOne=l.value.company||"",a.lineTwo=l.value.zipandcity||"",a.lineThree=l.value.specialtext+l.value.branchtype||""),a.image=l.value.viewicon||"",a.fdMe=s.value):(a.lineOne=l.value.company||l.display||"",a.lineTwo="",a.lineThree="",a.fdMe="",a.image=""),o.push(a)}));return o}getImageSrc(e){if(e.includes("assets/images/vwicn"))return e;{let i=Number(e);return"assets/images/vwicn"+this.leadingZeros(i)+".svg"}}leadingZeros(e){return e<10?"00"+e:e<100?"0"+e:e.toString()}retrieveDataForItem(e){return new b(i=>{if(Office.context.mailbox.item){let r=Office.context.mailbox.item;const o=void 0===r.getItemIdAsync||void 0===typeof r.getItemIdAsync;console.log(r),r.body.getAsync(Office.CoercionType.Html,e,s=>{if(s.status!==Office.AsyncResultStatus.Failed){if("appointment"===r.itemType)throw new Error("Appointment direct sync not supported.");o?this.retrieveDataForEmailRead(r,s).subscribe({next:a=>{i.next(a)},error:a=>{i.error(a)}}):this.retrieveDataForEmailEdit(r,s).subscribe({next:a=>{i.next(a)},error:a=>{i.error(a)}})}})}else i.next(null)})}retrieveDataForAppointmentRead(e,i){return new b(r=>{this.graph.getAttachments(e.itemId,e).subscribe(o=>{r.next({body:i.value,subject:e.subject,optionalAttendees:e.optionalAttendees,requiredAttendees:e.requiredAttendees,start:new Date(e.start).toISOString(),end:new Date(e.end).toISOString(),attachments:o})},o=>r.error(o))})}retrieveDataForAppointmentEdit(e,i){return new b(r=>{e.subject.getAsync({},o=>{o.status!==Office.AsyncResultStatus.Failed&&e.optionalAttendees.getAsync(s=>{s.status!==Office.AsyncResultStatus.Failed&&e.requiredAttendees.getAsync(a=>{a.status!==Office.AsyncResultStatus.Failed&&e.start.getAsync(l=>{l.status!==Office.AsyncResultStatus.Failed&&e.end.getAsync(c=>{c.status!==Office.AsyncResultStatus.Failed&&this.graph.getAttachments(e.itemId,e).subscribe(u=>{r.next({body:i.value,subject:o.value,optionalAttendees:s.value,requiredAttendees:a.value,start:new Date(l.value).toISOString(),end:new Date(c.value).toISOString(),attachments:u})},u=>r.error(u))})})})})})})}retrieveDataForEmailRead(e,i){return new b(r=>{this.graph.getAttachments(e.itemId,e).subscribe(o=>{r.next({to:e.to,from:e.from,cc:e.cc,subject:e.subject,sender:e.sender,contentType:"html",body:i.value,date:new Date(e.dateTimeCreated).getTime(),messageID:e.internetMessageId,preview:"",isIncoming:this.globals.incomingMail,attachments:o,officeAlreadyDoc:!1,ticketAlreadyDoc:!1,graphMailID:""})},o=>r.error(o))})}retrieveDataForEmailEdit(e,i){return new b(r=>{e.saveAsync(o=>{o.status!==Office.AsyncResultStatus.Failed&&e.to.getAsync(s=>{s.status!==Office.AsyncResultStatus.Failed&&e.from.getAsync(a=>{a.status!==Office.AsyncResultStatus.Failed&&e.cc.getAsync(l=>{l.status!==Office.AsyncResultStatus.Failed&&e.subject.getAsync(c=>{c.status!==Office.AsyncResultStatus.Failed&&this.graph.getAttachments(o.value,e).subscribe(u=>{let d=[];u.forEach(h=>{h.inline&&!i.value.includes(h.cid)||d.push(h)}),r.next({to:s.value,from:a.value,cc:l.value,subject:c.value,sender:e.sender,contentType:"html",body:this.htmlHelper.fixImgTags(i.value),date:(new Date).getTime(),messageID:o.value,preview:"",isIncoming:!1,attachments:d,officeAlreadyDoc:!1,ticketAlreadyDoc:!1,graphMailID:""})},u=>r.error(u))})})})})})})}documentItemWithoutUI(e){var i=this;return new b(r=>{"doNotDocument"!==this.globals.infoShower.selectedEmailAddress?this.retrieveDataForItem({}).subscribe({next:o=>{e.replyTo&&(o.replyTo=e.replyTo),console.log("Documenting new item:",o);let s=new $t;var a;s=s.set("data",JSON.stringify(o)),s=s.set("isNewItem","true"),this.connectionService.postReq("convert",s,!1,{headers:{"content-type":"application/x-www-form-urlencoded"}}).subscribe({next:(a=Ae(function*(l){if(null!=l&&""!==l){const c=l;let u="store";i.globals.deleteAttachments&&(u="storedelattach");let d=new $t;if(d=d.set("unid",c),d=d.set("pointer",e.documentTarget),e.officeDB&&(d=d.set("office",e.officeDB)),d=d.set("command",u),d=d.set("origUnid",o.messageID),d=d.set("isNewItem","true"),e.selectedProjects){let h=e.selectedProjects;if(h&&h.length>0){let m=JSON.parse(h),y=[];for(let A=0;AA.pointer).join(";"))}}i.allowDuplicate&&(d=d.set("allow-duplicate","true"),i.allowDuplicate=!1),i.connectionService.postReq("convert",d,!1).subscribe({next:h=>{r.next(!0)},error:h=>{i.globals.hideSpinner(),200!==h.status&&(409===h.status?r.next():r.next(h)),r.error(h)},complete:()=>{}})}}),function(c){return a.apply(this,arguments)}),error:a=>{r.next(a),this.globals.hideSpinner()},complete:()=>{}})},error:o=>{this.translate.get(o).subscribe(s=>{r.error(this.globals.languageConfLocal[o])})}}):r.next()})}documentItemWithUI(e){console.log("description is in gi service",e),this.globals.showSpinner(),this.retrieveDataForItem({}).subscribe({next:i=>{console.log("Documenting new item:",i);let o,r=e.selectedProjects;if(e.replyTo&&(i.replyTo=e.replyTo),r&&r.length>0){o=JSON.parse(r);let a=[];for(let l=0;ll.pointer).join(";")}let s="";e.officeDB&&(s=e.officeDB),this.document(i,e.documentTarget,s,"",o),console.log("itemData is in gi service",i)},error:i=>{this.translate.get(i).subscribe(r=>{this.globals.hideSpinner(),this.messageService.showError(this.globals.languageConfLocal[i],"",void 0,1e4)})}})}document(e,i,r,o,s){var l,a=this;console.log("documnent/retrieve Data: ",e),this.connectionService.postReq("convert","data="+encodeURIComponent(JSON.stringify(e)),!1,{headers:{"content-type":"application/x-www-form-urlencoded"}}).subscribe({next:(l=Ae(function*(c){if(null!=c&&""!==c){a.globals.showSpinner();const u=c;let d="store";a.globals.deleteAttachments&&(d="storedelattach");let h=new $t;h=h.set("unid",u),h=h.set("pointer",i),h=h.set("office",r),h=h.set("command",d),h=h.set("origUnid",e.messageID),s&&(h=h.set("projects",s)),a.allowDuplicate&&(h=h.set("allow-duplicate","true"),a.allowDuplicate=!1),a.connectionService.postReq("convert",h,!1).subscribe({next:m=>{a.translate.get("translationWait").subscribe(y=>{a.globals.hideSpinner(),a.messageService.showSuccess(a.globals.languageConfLocal.emailDocumented)}),a.globals.projectSelector.projects=[],a.globals.tagSelector.enums=[],a.globals.addressActivities.removeDocumentDestination(null),a.globals.openMail&&(h=new $t,h.set("openDocument",m),window.open(a.globals.convertToLink(m),"_blank")),a.globals.addressActivities.refresh(),a.globals.hideSpinner(),a.graph.getExtendedData(a.globals.infoShower.currentItemId).subscribe(y=>{y.selectedProjects="",a.graph.saveExtendedData(a.globals.infoShower.currentItemId,y).subscribe(A=>{})}),a.globals.projectSelector.projectPhaseResultArray=[],a.globals.projectSelector.projectPhases=[],a.globals.infoShower.documentDestinationCheckChanged()},error:m=>{if(a.globals.hideSpinner(),409===m.status){const y=new kc;y.disableClose=!0,y.autoFocus=!0,a.dialogService.createDialogWithType(pa.alreadyDocumented,y).subscribe(A=>{A.afterClosed().subscribe(U=>{console.log("Dialog result:",U),!0===U&&(a.globals.showSpinner(),a.allowDuplicate=!0,a.document(e,i,r,o,s))})})}else if(200!==m.status)return void(m.statusText.includes("CEGetMail")?(a.messageService.showInfo(a.globals.languageConfLocal.noUserAssignedTicket),setTimeout(()=>{a.globals.hideSpinner()},a.messageService.getTimeoutMS())):(a.translate.get("LC73235").subscribe(y=>{a.messageService.showError(y)}),a.messageService.showError(m.statusText),a.globals.hideSpinner()))},complete:()=>{}})}else a.translate.get("LC53488").subscribe(u=>{a.globals.hideSpinner(),a.messageService.showError(u)})}),function(u){return l.apply(this,arguments)}),error:l=>{this.messageService.showError(l.statusText),this.globals.hideSpinner()},complete:()=>{}})}resetAllowDuplicate(){this.allowDuplicate=!1}setCRMdata(e,i){return new b(r=>{r.next(null)})}retrieveItemIdForItem(){return new b(e=>{e.next("never called")})}getPhasesOfPointer(e){return new b(i=>{this.connection.postReq("phases",e,!0).subscribe(r=>{let o=[];for(let s=0;ss.lineTwo.localeCompare(a.lineTwo)||s.lineOne.localeCompare(a.lineOne)),i.next(o)})})}changeActivityListType(e){return new b(i=>{this.connectionService.postReq("activityTypes","displaydocumentstype="+e,!1).subscribe(r=>{i.next(r)})})}addToRecentlyUsed(e){}getProductVersion(){return new b(e=>{void 0!==this.globals.configJson.giVersionNumber&&this.globals.configJson.giVersionNumber?(this.globals.configJson.giVersionNumber.majorVersion>=8&&this.globals.configJson.giVersionNumber.maintenanceVersion>=16&&this.globals.configJson.giVersionNumber.serviceVersion>0?e.next(this.globals.configJson.giVersionNumber.majorVersion+"."+this.globals.configJson.giVersionNumber.maintenanceVersion+"."+this.globals.configJson.giVersionNumber.serviceVersion):this.globals.configJson.giVersionNumber.majorVersion>=8&&this.globals.configJson.giVersionNumber.maintenanceVersion>=16?e.next(this.globals.configJson.giVersionNumber.majorVersion+"."+this.globals.configJson.giVersionNumber.maintenanceVersion):15===this.globals.configJson.giVersionNumber.maintenanceVersion?e.next("8.15"):this.globals.configJson.giVersionNumber.maintenanceVersion<=14&&e.next("8.14"),e.complete()):(this.globals.configJson.webUrl&&""!==this.globals.configJson.webUrl?this.globals.configJson.webUrl.length>=5?e.next("8.15"):(0===this.globals.configJson.webUrl.length||!this.globals.configJson.webUrl.length)&&e.next("8.14"):e.next("8.14"),e.complete())})}getDocumentsChips(e){return new b(i=>{i.next([])})}readCRMDataForItem(e){return new b(i=>{this.graph.getExtendedData(e).subscribe(r=>{i.next(r)})})}extractContactData(e){return new b(i=>{try{this.soapService.invokeSoap("scanMailFooter",{mailContent:e}).subscribe(r=>{if(console.log("Soapresponse:",r),r){let o=new tm;o.City=r.City,o.Company=r.Company,o.CompanyAddress=r.Address1,o.CompanyEmail="",o.Department=r.Department,o.Email=r.EMailAddress,o.Fax=r.Fax,o.FirstName=r.FirstName,o.LastName=r.LastName,o.MiddleName=r.MiddleName,o.Mobile=r.CellPhone,o.Phone=r.MainPhone,o.Street=r.Address2,o.Url=r.HomePage,o.Zip=r.ZipCode,o.ZipCity=r["ZipCode#City"],i.next(o)}else i.next(new tm)})}catch{}})}quickCreateContact(e,i,r,o){return new b(s=>{let a={Address1:e.CompanyAddress??"",Address2:e.Street??"",CellPhone:e.Mobile,City:e.City??"",Company:e.Company??"",Department:e.Department??"",EMailAddress:e.Email??"",Fax:e.Fax,FirstName:e.FirstName??"","FirstName#LastName":e.FirstName+"#"+e.LastName,HomePage:e.Url,LastName:e.LastName??"",MainPhone:e.Phone,MiddleName:e.MiddleName??"",State:"",Title:"",ZipCode:e.Zip??"","ZipCode#City":e.Zip??"#"+e.City??""};this.globals.showSpinner();let l="toCompany";"compExist"===r?(l="toCompany",this.create(a,o,l,e.CompanyPointer).subscribe(c=>{s.next(c)})):("contNo"===i?l="company":"contNew"===i&&"compNew"===r?l="toCompany":"contNew"===i&&"compNo"===r&&(l="person"),this.create(a,o,l).subscribe(c=>{s.next(c)}))})}create(e,i,r,o){return new b(s=>{switch(r){case"company":this.handleCreateCompany(e,i).subscribe(a=>{s.next(a)});break;case"toCompany":o?this.handleCreateAddressToCompany(e,i,o).subscribe(a=>{s.next(a)}):this.handleCreateCompany(e,i).subscribe(a=>{s.next(a)});break;case"person":this.handleCreatePrivatePerson(e,i).subscribe(a=>{s.next(a)});break;default:this.translate.get("LC53496").subscribe(a=>{this.messageService.showError(a),s.error(a)})}})}replaceWithCompanyData(e,i){return new b(r=>{this.soapService.invokeSoap("GetAddressByID",{fdme:i}).subscribe(o=>{if((o=Object.keys(o)).length>0){const s=o[0].split("~*~");null!=s&&(e.Company=s[29],e.Address1=s[10],e.Address2=s[30],e.ZipCode=s[12],e.City=s[11],e.State=s[14],e.CountryToo=s[13])}r.next(e)})})}handleCreateCompany(e,i){return new b(r=>{if(null==e.Company||""===e.Company){let o=this.globals.languageConfLocal.CompanyNameRequired;this.messageService.showError(o),r.error(o)}else{let o="";for(const a in e)e.hasOwnProperty(a)&&(o+="~*~"+a+"~#~"+e[a]);o="~*~"+e.Company+o,o+="~*~fdCorreType~#~GeMain",o+="~*~fdIsNewDoc~#~0",o+="~*~AddressSynch~#~0";const s={};s.addressData=o,s.contactsPath="$"+i,s.targetCompanyId="",s.languageCode=Array.isArray(eo)&&eo.length>0?eo[0]:eo;try{this.soapService.invokeSoap("CreateAddresses",s,!0).subscribe(a=>{console.log(a),1===Object.keys(a).length?r.next(a):this.translate.get("LC53496").subscribe(c=>{this.messageService.showError(c)})})}catch(a){this.messageService.showError(a.message)}}})}handleCreateAddressToCompany(e,i,r){return new b(o=>{r?this.replaceWithCompanyData(e,r).subscribe(s=>{if(e.Company=s.Company,e.Address1=s.Address1,e.Address2=s.Address2,e.ZipCode=s.ZipCode,e.City=s.City,e.State=s.State,e.CountryToo=s.CountryToo,(null==e.MainPhone||0===e.MainPhone.localeCompare(""))&&(e.MainPhone=s.MainPhone),(null==e.Fax||0===e.Fax.localeCompare(""))&&(e.Fax=s.Fax),null==e.LastName||0===e.LastName.localeCompare("")){let c=this.globals.languageConfLocal.LastNameRequired;c=c.replace("{FIELDNAME}",e.get("LastName")),this.messageService.showError(c)}let a="";for(const c in e)e.hasOwnProperty(c)&&(a+="~*~"+c+"~#~"+e[c]);a="~*~"+a,a+="~*~AddressSynch~#~1";const l={};l.addressData=a,l.contactsPath="$"+i,l.targetCompanyId=r,l.languageCode=Array.isArray(eo)&&eo.length>0?eo[0]:eo;try{this.soapService.invokeSoap("CreateAddresses",l,!0).subscribe(c=>{const u=Object.keys(c);1===u.length?(o.next(c),this.settings.OpenAfterCreate&&window.open(this.globals.convertToLink(u[0]),"_blank")):this.translate.get("LC53496").subscribe(d=>{this.messageService.showError(d)})})}catch(c){this.messageService.showError(c.message),o.error(c.message)}}):this.translate.get("LC53496").subscribe(s=>{this.messageService.showError(s),o.error(s)})})}handleCreatePrivatePerson(e,i){return new b(r=>{if(delete e.Company,null==e.LastName||0===e.LastName.localeCompare("")){let o=this.globals.languageConfLocal.LastNameRequired;o=o.replace("{FIELDNAME}",e.get("LastName")),this.messageService.showError(o),r.error(o)}else{let o="~*~";for(const a in e)e.hasOwnProperty(a)&&(o+="~*~"+a+"~#~"+e[a]);o+="~*~fdCorreType~#~GeMain",o+="~*~fdIsNewDoc~#~0",o+="~*~AddressSynch~#~0";const s={};s.addressData=o,s.contactsPath="$"+i,s.targetCompanyId="",s.languageCode=Array.isArray(eo)&&eo.length>0?eo[0]:eo;try{this.soapService.invokeSoap("CreateAddresses",s,!0).subscribe(a=>{const l=Object.keys(a);1===l.length?(r.next(a),this.settings.OpenAfterCreate&&window.open(this.globals.convertToLink(l[0]),"_blank")):this.translate.get("LC53496").subscribe(c=>{this.messageService.showError(c)})})}catch(a){this.messageService.showError(a.message),r.error(a.message)}}})}validateDataInBackend(){return new b(e=>{e.next({Validation:"PASS"})})}getEnumValues(){return new b(e=>{e.next([])})}getDocumentDBs(){return new b(e=>{this.fetchDBs("dbConnections",null).subscribe(i=>{const r=Object.values(i).filter(a=>a.alias);console.log("objectDBlist: ",r);const s=this.bubbleSort(r).filter(a=>"Organization"!==a.type);e.next(s),console.log("sortedDBlist: ",s),e.complete()})})}getCompanies(){return new b(e=>{this.getDocumentDBs().subscribe(i=>{i=i.filter(r=>"Contact"===r.type),e.next(i),e.complete()})})}bubbleSort(e){const i={Contact:1,Leads:2,Service:3,Opportunity:4,Office:5,ProjectManagement:6,Event:7,Organization:8};let r;do{r=!1;for(let o=0;o0||0===s&&e[o].title.localeCompare(e[o+1].title)>0){const a=e[o];e[o]=e[o+1],e[o+1]=a,r=!0}}}while(r);return e}getDisplayedType(e){switch(e){case"Opportunity":return"Business";case"Office":return"Activities";case"ProjectManagement":return"Projects";case"Event":return"Events";default:return e}}createLink(e){return this.globalsService.configJson.webUrl+"?loadTabs=false&openDocument="+e}getConfig(){return new b(e=>{this.connectionService.getReqNoCache("config",null).subscribe(i=>{e.next(i),e.complete()},i=>{console.log("Fehler beim Laden der ConfigUrl",i),e.error(i)})})}initFeatures(){return new b(e=>{this.getProductVersion().subscribe({next:i=>{const r=Object.values(Bc);let o=[];r.forEach((s,a)=>{s.toString().split("|").find(h=>h.startsWith("vGI"))?.substring(3).split("."),i.split("."),o.push({key:s,value:!0})}),e.next(o)},error:i=>{e.next([])}})})}}return n.\u0275fac=function(e){return new(e||n)(M(In),M(hl),M(ot),M(ot),M(In),M(Ut),M(tn),M(nm),M(ya),M(Vs),M(Wb),M(Kc))},n.\u0275prov=ge({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),pC=(()=>{class n{constructor(e,i,r,o,s){this.global=e,this.waitList=i,this.http=r,this.globals=o,this.connectionService=s,this.loaded=!1,"gi"===this.globals.system?(s.waitForLC().subscribe(()=>{this.loaded=!0,this.processLCWaitingList()}),this.setLCSLocal()):s.waitForLC().subscribe(()=>{this.setLCSLocal()})}waitForInit(){return new b(e=>{this.loaded?(e.next(!0),e.complete(),this.processLCWaitingList()):this.waitList.addToWaitList("lc",e)})}getLCEntry(e,i,r){return this.replacePlaceholder(this.global.languageEntry("LC"+e),i,r)}passLCObj(){return this.global.languageConf}getLang(){return navigator.language.toLowerCase().startsWith("de")?"de":"en"}setLCSLocal(){this.http.get("assets/i18n/"+this.getLang()+".json").subscribe(e=>{this.globals.languageConfLocal=e,this.localLCReady()})}localLCReady(){for(const e of this.waitList.accessWaitList("localLC"))e.next(this.globals.languageConfLocal),e.complete();"gi"!==this.globals.system&&(this.globals.languageConf=this.globals.languageConfLocal,this.loaded=!0,this.processLCWaitingList())}processLCWaitingList(){this.waitList.accessWaitList("lc").forEach(e=>{e.next(),e.complete()})}replacePlaceholder(e,i,r){return i&&r&&(e=e.replace(i,r)),e}}return n.\u0275fac=function(e){return new(e||n)(M(ot),M(Ri),M(yc),M(ot),M(In))},n.\u0275prov=ge({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),LG=(()=>{class n{constructor(e,i,r,o,s,a,l,c,u,d,h,m,y){this.connection=e,this.modalService=i,this.globals=r,this.lsm=o,this.graph=s,this.translate=a,this.messageService=l,this.dialogService=c,this.htmlHelper=u,this.connectionService=d,this.converter=h,this.lang=m,this.settings=y}fetchDBs(e,i){return Ne(null)}fetchSearch(e,i,r){const s={};return s.searchTerm=r,i&&(s.pointer=i),vt(this.connection.getReq("search",this.connection.objectToHttpParams(s),void 0,!0))}getDocumentDBs(){return Ne(null)}getCompanies(){return Ne(null)}getSelDB(){return Ne(null)}createLink(e){return this.globals.webInt+"openrecord/"+e}getDisplayedType(){return Ne(null)}getConfig(){return Ne(null)}fetchActivityTypes(e){const r={};return e&&(r.pointer=e),new b(o=>{this.connection.getReq("activityTypes",this.connection.objectToHttpParams(r),void 0,!0).subscribe({next:s=>{s.type="types",o.next(s)},error:s=>{o.error(s)}})})}fetchActivities(e){return new b(i=>{let r=new $t;e&&(r=r.append("addressOid",e.pointer),r=r.append("maxCount",this.converter.maxActivities),r=r.append("activitiesType",this.globals.addressActivities.selectedType),this.connectionService.getReqNoCache("activities",r,void 0,!0).subscribe({next:o=>{try{this.converter.convertActivity(i,o,this.globals.addressActivities.selectedType,this)}catch{i.error(this.globals.languageConfLocal.cantLoadData)}},error:o=>{i.error(o)},complete:()=>{}})),this.converter.convertActivityTypes(i)})}searchDocuments(e,i,r){const s={};return s.searchTerm=r,i&&(s.pointer=i),vt(this.connection.getReq("searchDocuments",this.connection.objectToHttpParams(s),void 0,!0))}searchProjects(e,i,r){const s={};return s.searchTerm=r,i&&(s.pointer=i),vt(this.connection.getReq("searchProjects",this.connection.objectToHttpParams(s),void 0,!0))}handleSearchResult(e,i){return e}getImageSrc(e){if(e&&(e.toLowerCase().startsWith("http")||e.startsWith("assets/images/ba")))return e;if(e&&e.toLowerCase().startsWith("icon/get")){let i=e.substring(9);return i=i.substring(0,i.indexOf("?")),"assets/images/ba/"+i+".svg"}return"assets/images/ba/"+e+".svg"}retrieveItemIdForItem(){return new b(e=>{e.next("never called")})}retrieveDataForItem(e){return new b(i=>{const r=Office.CoercionType.Html;if(Office.context.mailbox.item){let o=Office.context.mailbox.item;const s=void 0===o.getItemIdAsync||void 0===typeof o.getItemIdAsync;console.log(o),o.body.getAsync(Office.CoercionType.Html,e,a=>{if(a.status!==Office.AsyncResultStatus.Failed){if("appointment"===o.itemType)throw new Error("Appointment direct sync not supported.");s?this.retrieveDataForEmailRead(o,a,r).subscribe({next:l=>{i.next(l)},error:l=>{i.error(l)}}):this.retrieveDataForEmailEdit(o,a,r).subscribe({next:l=>{i.next(l)},error:l=>{i.error(l)}})}})}else i.next(null)})}retrieveDataForAppointmentRead(e,i){return new b(r=>{this.graph.getAttachments(e.itemId,e).subscribe(o=>{r.next({body:i.value,subject:e.subject,optionalAttendees:e.optionalAttendees,requiredAttendees:e.requiredAttendees,start:new Date(e.start).toISOString(),end:new Date(e.end).toISOString(),attachments:o})},o=>r.error(o))})}retrieveDataForAppointmentEdit(e,i){return new b(r=>{e.subject.getAsync({},o=>{o.status!==Office.AsyncResultStatus.Failed&&e.optionalAttendees.getAsync(s=>{s.status!==Office.AsyncResultStatus.Failed&&e.requiredAttendees.getAsync(a=>{a.status!==Office.AsyncResultStatus.Failed&&e.start.getAsync(l=>{l.status!==Office.AsyncResultStatus.Failed&&e.end.getAsync(c=>{c.status!==Office.AsyncResultStatus.Failed&&this.graph.getAttachments(e.itemId,e).subscribe(u=>{r.next({body:i.value,subject:o.value,optionalAttendees:s.value,requiredAttendees:a.value,start:new Date(l.value).toISOString(),end:new Date(c.value).toISOString(),attachments:u})},u=>r.error(u))})})})})})})}retrieveDataForEmailRead(e,i,r){return new b(o=>{this.graph.getAttachments(e.itemId,e).subscribe(s=>{o.next({fromMail:e.from.emailAddress,toMail:this.filterObjectEntryOfArr(e.to),ccMail:this.filterObjectEntryOfArr(e.cc),messageID:e.itemId,subject:e.subject?e.subject:this.globals.languageConfLocal.noSubject,body:{htmlBody:!!r.toString().toLowerCase().includes("html"),text:Buffer.from(i.value).toString("base64")},type:r.toString(),date:new Date(e.dateTimeCreated).toISOString(),creationDate:new Date(e.dateTimeCreated).getTime(),changingDate:new Date(e.dateTimeCreated).getTime(),attachments:s,officeAlreadyDoc:!1,ticketAlreadyDoc:!1,graphMailID:"",mailType:this.globals.incomingMail?"Incoming":"Outgoing"})},s=>o.error(s))})}retrieveDataForEmailEdit(e,i,r){return new b(o=>{e.saveAsync(s=>{e.to.getAsync(a=>{a.status!==Office.AsyncResultStatus.Failed&&e.from.getAsync(l=>{l.status!==Office.AsyncResultStatus.Failed&&e.cc.getAsync(c=>{c.status!==Office.AsyncResultStatus.Failed&&e.subject.getAsync(u=>{u.status!==Office.AsyncResultStatus.Failed&&this.graph.getAttachments(s.value,e).subscribe(d=>{o.next({toMail:a.value.map(h=>h.emailAddress),fromMail:l.value.emailAddress,ccMail:c.value.map(h=>h.emailAddress),bccMail:[],subject:u.value,body:{htmlBody:!!r.toString().toLowerCase().includes("html"),text:Buffer.from(this.htmlHelper.fixImgTags(i.value)).toString("base64")},type:r.toString(),date:(new Date).toISOString(),creationDate:(new Date).getTime(),changingDate:(new Date).getTime(),messageID:s.value,mailType:"Outgoing",attachments:d,officeAlreadyDoc:!1,ticketAlreadyDoc:!1,graphMailID:""})},d=>o.error(d))})})})})})})}documentItemWithUI(e){this.globals.showSpinner(),this.retrieveDataForItem({}).subscribe({next:i=>{const o={};o.messageId=i.messageID,vt(this.connection.getReq("emailAlreadyDocumented",this.connection.objectToHttpParams(o),void 0,!0)).subscribe(s=>{s?(this.globals.hideSpinner(),this.dialogService.createDialogWithType(pa.alreadyDocumented).subscribe(a=>{a.afterClosed().subscribe(l=>{!0===l&&(this.globals.showSpinner(),this.document(i,e))})})):this.document(i,e)})},error:i=>{this.translate.get(i).subscribe(r=>{this.globals.hideSpinner(),this.messageService.showError(r,"",void 0,1e4)})}})}document(e,i){var r=this;let o="?parentId="+i.documentTarget;var s;o=this.processCRMData(i,o),this.connection.postReq("document",e,!0,void 0,void 0,o).subscribe({next:(s=Ae(function*(a){r.baNextHandler(a),r.graph.getExtendedData(r.globals.infoShower.currentItemId).subscribe(l=>{l.selectedProjects="",l.tags="",r.graph.saveExtendedData(r.globals.infoShower.currentItemId,l).subscribe(c=>{})})}),function(l){return s.apply(this,arguments)}),error:function(){var s=Ae(function*(a){if(a.status>=200&&a.status<300)r.baNextHandler(a);else{const l=yield a.json();let c="Aktion konnte nicht durchgef\xfchrt werden. Versuchen Sie es sp\xe4ter erneut.";l.hasOwnProperty("ExceptionMessage")?c=l.ExceptionMessage:l.hasOwnProperty("Message")&&(c=l.Message),r.modalService.closeAllModals(),r.messageService.showError(c,"Error")}});return function(l){return s.apply(this,arguments)}}(),complete:()=>{}})}baNextHandler(e){var i=this;return Ae(function*(){const r=e.oid;if(i.translate.get("translationWait").subscribe(o=>{i.messageService.showSuccess(i.globals.languageConfLocal.emailDocumented)}),r&&(i.globals.projectSelector.projects=[],i.globals.tagSelector.enums=[],i.globals.addressActivities.removeDocumentDestination(null)),i.globals.openMail){let o=i.connection.getPath("openRecord",!1)+"/"+r;window.open(o,"_blank")}i.globals.addressActivities.refresh(),i.globals.hideSpinner()})()}documentItemWithoutUI(e){return"appointment"===e.type?new b(i=>{i.next(null)}):this.documentItem(e)}documentItem(e){var i=this;return new b(r=>{this.retrieveDataForItem({}).subscribe({next:o=>{let s="?parentId="+e.documentTarget,a=this.lsm.getValue(Zt.documentedItemId);var l;a&&(s+="&existingEmailId="+a),this.lsm.setValue(Zt.documentedItemId,""),s=this.processCRMData(e,s),this.connection.postReq("document",o,!0,void 0,void 0,s).subscribe({next:(l=Ae(function*(c){c&&c.oid&&i.lsm.setValue(Zt.documentedItemId,c.oid),r.next(c)}),function(u){return l.apply(this,arguments)}),error:function(){var l=Ae(function*(c){r.error(c)});return function(u){return l.apply(this,arguments)}}(),complete:()=>{}})},error:o=>{this.translate.get(o).subscribe(s=>{r.error(s)})}})})}processCRMData(e,i){if(e.selectedProjects){let r=JSON.parse(e.selectedProjects);r&&r.length>0&&(i+="&projectIds="+r.map(o=>{if(null!=o)return o.pointer}).join(","))}if(e.tags){let r=JSON.parse(e.tags);r&&r.length>0&&(i+="&tags="+r.map(o=>o[0]).join(","))}return i}filterObjectEntryOfArr(e){const i=[];for(const r of e)i.push(r.emailAddress);return i}setCRMdata(e,i){return new b(r=>{var s;this.connection.postReq("setCRMdata",e,!0,void 0,void 0,"?messageId="+i).subscribe({next:(s=Ae(function*(a){r.next(a)}),function(l){return s.apply(this,arguments)}),error:function(){var s=Ae(function*(a){r.error(a)});return function(l){return s.apply(this,arguments)}}(),complete:()=>{}})})}getPhasesOfPointer(e){return new b(i=>{i.next([])})}changeActivityListType(e){return new b(i=>{i.next(e)})}addToRecentlyUsed(e){this.connection.postReq("addRecentlyUsed","",!0,void 0,void 0,"?recordOid="+e).subscribe(r=>{})}getProductVersion(){return new b(e=>{this.connection.getReq("baVersion",this.connection.objectToHttpParams({}),void 0,!0).subscribe({next:i=>{e.next(i)},error:i=>{e.next("7.0.0.")}})})}getDocumentsChips(e){return new b(i=>{this.connection.getReq("getChips",this.connection.objectToHttpParams({oids:JSON.stringify(e)}),void 0,!0).subscribe({next:r=>{const o=[];for(const s of r)o.push({name:s.subject,image:s.imageName,fdMe:s.oid});i.next(o)},error:r=>{i.error(r)},complete:()=>{}})})}readCRMDataForItem(e){return new b(i=>{this.graph.getExtendedData(e).subscribe(r=>{i.next(r)})})}extractContactData(e){return new b(i=>{this.connection.getReq("extractContact",this.connection.objectToHttpParams({textBlock:Buffer.from(e).toString("base64")}),void 0,!0).subscribe({next:r=>{i.next(r||new tm)},error:r=>{i.error(r)}})})}getEnumValues(e){return new b(i=>{this.connection.getReq("getEnumValues",null,!0,!0,"rest/",e).subscribe({next:r=>{let o=[],s=this.lang.getLang();r.Values.forEach(a=>{o.push([a.Oid,a["Language_"+s]])}),i.next(o)},error:r=>{i.error(r)}})})}quickCreateContact(e,i,r){return this.postCompanyContactData(e,r,i,!1)}postCompanyContactData(e,i,r,o){var s=this;return new b(a=>{let c=new NG,u=new FG,d=o?"/?validateOnly=true":"";var h;e.MainEmailAddressType||(e.MainEmailAddressType="27AF1E88-6BAA-4ACA-AF2A-339E345CFB4D"),e.MainAddressType||(e.MainAddressType="EB7852EF-9BA5-47F6-AB68-82FB891A2943"),c.Name=e.Company,c.Phone=e.CompanyPhone,c.Fax=e.CompanyFax,e.Street&&(c.Addresses=[{Address:e.Street,AddressType:e.MainAddressType,City:e.City,PostalCode:e.Zip}]),e.CompanyEmail&&(c.EmailAddresses=[{EmailAddress:e.CompanyEmail,EmailAddressType:e.MainEmailAddressType}]),u.FirstName=e.FirstName,u.LastName=e.LastName,u.Department=e.Department,u.CellPhone=e.Mobile,u.Phone=e.Phone,u.Fax=e.Fax,u.EmailAddresses=[{EmailAddress:e.Email,EmailAddressType:e.MainEmailAddressType}],"compNew"===i?this.connection.postReq("createRecord",JSON.stringify(c),!0,void 0,void 0,"FE7EB8AE-71BE-4220-8DA5-DC04078E6B3C"+d,"rest/").subscribe({next:(h=Ae(function*(m){if("contNew"===r)s.createContact(u,m.Oid,a,d,!0);else{if(!d&&(s.addToRecentlyUsed(m.Oid),s.settings.OpenAfterCreate)){let y=s.connection.getPath("openRecord",!1)+"/"+m.Oid+"?openInEditMode=true";window.open(y,"_blank")}a.next(m)}}),function(y){return h.apply(this,arguments)}),error:function(){var h=Ae(function*(m){m.json().then(y=>{let A="";y.forEach(U=>{A+=U.ErrorMessage+" "}),s.messageService.showMessageAsync(s.globals.languageConfLocal.companyCreationError+A,er.error)}),a.error(m)});return function(y){return h.apply(this,arguments)}}()}):this.createContact(u,"compExist"===i?e.CompanyPointer:null,a,d)})}createContact(e,i,r,o,s=!1){var c,a=this;e.RelatedCompany=i,this.connection.postReq("createRecord",JSON.stringify(e),!0,void 0,void 0,"44FCB6FB-9230-48CF-A406-8F1F8C4D0B8C"+o,"rest/").subscribe({next:(c=Ae(function*(u){if(!o&&(a.addToRecentlyUsed(u.Oid),a.settings.OpenAfterCreate)){let d=a.connection.getPath("openRecord",!1)+"/"+u.Oid+"?openInEditMode=true";window.open(d,"_blank"),i&&s&&(d=a.connection.getPath("openRecord",!1)+"/"+i+"?openInEditMode=true",window.open(d,"_blank"))}r.next(u)}),function(d){return c.apply(this,arguments)}),error:function(){var c=Ae(function*(u){u.json().then(d=>{let h="";d.forEach(m=>{h+=m.ErrorMessage+" "}),a.messageService.showMessageAsync(a.globals.languageConfLocal.contactCreationError+h,er.error)}),r.error(u)});return function(d){return c.apply(this,arguments)}}()})}validateDataInBackend(e,i,r){return this.postCompanyContactData(e,r,i,!0)}initFeatures(){return new b(e=>{this.getProductVersion().subscribe({next:i=>{const r=Object.values(Bc);let o=[];r.forEach((s,a)=>{let l=s.toString().split("|").find(h=>h.startsWith("vBA"))?.substring(3).split("."),c=i.split("."),u=0,d=0;for(let h=0;h<3;h++)l&&l[h]&&(u+=10*parseInt(l[h])^6-2*h),c&&c[h]&&(d+=10*parseInt(c[h])^6-2*h);o.push({key:s,value:d>=u})}),e.next(o)},error:i=>{e.next([])}})})}}return n.\u0275fac=function(e){return new(e||n)(M(Mb),M(hl),M(ot),M(Mi),M(ya),M(Ut),M(tn),M(nm),M(Vs),M(Mb),M(Ib),M(pC),M(Kc))},n.\u0275prov=ge({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();class NG{}class FG{}let Bi=(()=>{class n{constructor(e,i,r,o){switch(this.gi=e,this.ba=i,this.lsm=r,this.globals=o,this.dateSourceConfig={},this.datasource=this.gi,this.globals.system){case"gi":this.datasource=this.gi;break;case"ba":this.datasource=this.ba;break;default:throw new Error("Not implemented")}}fetchDBs(e,i){return this.datasource.fetchDBs(e,i)}getDocumentDBs(){return this.datasource.getDocumentDBs()}getCompanies(){return this.datasource.getCompanies()}getDisplayedType(e){return this.datasource.getDisplayedType(e)}fetchSearch(e,i,r){return this.datasource.fetchSearch(e,i,r)}fetchActivityTypes(e){return this.datasource.fetchActivityTypes(e)}searchProjects(e,i,r){return this.datasource.searchProjects(e,i,r)}searchDocuments(e,i,r){return this.datasource.searchDocuments(e,i,r)}handleSearchResult(e,i,r=new s7){return this.datasource.handleSearchResult(e,i,r)}getImageSrc(e){return this.datasource.getImageSrc(e)}documentItemWithUI(e){return this.datasource.documentItemWithUI(e)}documentItemWithoutUI(e){return this.datasource.documentItemWithoutUI(e)}retrieveDataForItem(e){return this.datasource.retrieveDataForItem(e)}setCRMdata(e,i){return this.datasource.setCRMdata(e,i)}retrieveItemIdForItem(){return new b(e=>{if(Office.context.mailbox.item){let i=Office.context.mailbox.item;void 0===i.getItemIdAsync||void 0===typeof i.getItemIdAsync?e.next(i.itemId):i.getItemIdAsync(o=>{e.next(o.value)})}else e.next("")})}IsTaskpaneActive(){let e=this.lsm.getValue(Zt.taskpaneActive);if(!e)return!1;{let i=new Date(e);if("Invalid Date"===i.toString())return!1;if(((new Date).getTime()-i.getTime())/1e3>20)return!1}return!0}doNotDocumentSelected(){return"doNotDocument"===this.lsm.getValue(Zt.selectedEmail)}getPhasesOfPointer(e){return new b(i=>{this.datasource.getPhasesOfPointer(e).subscribe(r=>{i.next(r)})})}changeActivityListType(e){return this.datasource.changeActivityListType(e)}addToRecentlyUsed(e){this.datasource.addToRecentlyUsed(e)}getProductVersion(){return this.datasource.getProductVersion()}getDocumentsChips(e){return this.datasource.getDocumentsChips(e)}fetchActivities(e){return this.datasource.fetchActivities(e)}readCRMDataForItem(e){return this.datasource.readCRMDataForItem(e)}extractContactData(e){return this.datasource.extractContactData(e)}quickCreateContact(e,i,r,o=""){return this.datasource.quickCreateContact(e,i,r,o)}validateDataInBackend(e,i,r,o=""){return this.datasource.validateDataInBackend(e,i,r,o)}getEnumValues(e){return this.datasource.getEnumValues(e)}createLink(e){return this.datasource.createLink(e)}addDocumentLinkToMail(e,i){const r=Office.context.mailbox.item;if(console.log("doc is: ",e),!r)return void console.error("Office.context.mailbox.item ist undefined.");let a,o=e.pointer||e.fdMe,s=e.name||e.subject;r.body.getAsync("text",l=>{l.status===Office.AsyncResultStatus.Succeeded?r.getSelectedDataAsync("text",c=>{if(c.status===Office.AsyncResultStatus.Succeeded){const y=c.value;console.log("Markierter Text:",y.data),a=y.data}else console.error("Fehler beim Abrufen des markierten Textes: "+c.error.message);if(i)switch(i){case e.companyName:s=e.companyName,o=e.companyPointer;break;case e.additional.phone:case e.additional.cellphone:s=i}let u=s;""!==a&&(s=a),console.log("pointer is: ",o),console.log("docName is: ",s);const d=this.createLink(o);r.body.setSelectedDataAsync(`${a===s?s:`${s}`}`,{coercionType:Office.CoercionType.Html},y=>{y.status===Office.AsyncResultStatus.Failed?console.error("Fehler beim Hinzuf\xfcgen des Links",y.error.message):console.log("Link erfolgreich hinzugef\xfcgt:",d)})}):console.error("Fehler beim Abrufen des E-Mail-Body: "+l.error.message)})}getConfig(){return this.datasource.getConfig()}isFeatureAvailable(e){return new b(i=>{this.features&&this.features.length>0?i.next(this.features.find(r=>r.key===e)?.value??!1):this.datasource.initFeatures().subscribe(r=>{this.features=r,i.next(this.features.find(o=>o.key===e)?.value??!1)})})}}return n.\u0275fac=function(e){return new(e||n)(M(PG),M(LG),M(Mi),M(ot))},n.\u0275prov=ge({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const BG=["docFile"],jG=function(n){return{title:n}},HG=function(n,t,e,i){return{confirm:n,cancel:t,confirmAction:e,cancelAction:i}};function VG(n,t){if(1&n&&(Wt(0,1),Ze(1,"translate"),g(2,"div",2),j(3),_(),Wt(4,1),Ze(5,"translate"),Ze(6,"translate")),2&n){const e=C();v("ngTemplateOutlet",e.modalHeader)("ngTemplateOutletContext",Wn(11,jG,Xe(1,5,"LC73005"))),f(3),ve(e.text),f(1),v("ngTemplateOutlet",e.modalFooter)("ngTemplateOutletContext",Yi(13,HG,Xe(5,7,"LC73135"),Xe(6,9,"LC73136"),e.confirmAction.bind(e),e.cancelAction.bind(e)))}}let UG=(()=>{class n extends Yr{constructor(e,i,r,o,s){super(e),this.translate=e,this.globals=i,this.loader=r,this.documentService=o,this.datasourceService=s}ngOnInit(){"gi"===this.globals.system?this.data.passedData.docPointer&&this.data.passedData.docPointer.includes("faActivities")?(this.pointer=this.data.passedData.docPointer,this.officeDB=this.pointer.substring(this.pointer.lastIndexOf("|")+1)):(this.officeDB=this.data.passedData.officeDB,this.pointer=this.data.passedData.currentContactPointer?this.data.passedData.currentContactPointer:this.data.passedData.docPointer):this.pointer=this.data.passedData.docPointer,this.translate.get("LC73019").subscribe(e=>{this.text=e+"..."}),this.confirmAction()}confirmAction(){var e=this;return Ae(function*(){let i=Office.context.mailbox.item,s=!0;i&&(s=void 0!==i.itemClass),e.loader.activateLoader(!0,!0);let a=e.globals.curConnector.curPostData;s?null!==a&&(console.log("Documenting existing mail:",a),e.documentService.documentHandler(a,e.pointer,e.officeDB,e,e.data.passedData.projectPointers?e.data.passedData.projectPointers:void 0)):e.datasourceService.retrieveDataForItem({}).subscribe({next:l=>{console.log("Documenting new item:",l),e.documentService.documentHandler(l,e.pointer,e.officeDB,e,e.data.passedData.projectPointers?e.data.passedData.projectPointers:void 0)}})})()}cancelAction(){this.documentService.resetAllowDuplicate(),this.data.closeAllModal()}}return n.\u0275fac=function(e){return new(e||n)(p(Ut),p(ot),p(Fc),p(o7),p(Bi))},n.\u0275cmp=Ue({type:n,selectors:[["app-document-file"]],viewQuery:function(e,i){if(1&e&&De(BG,7),2&e){let r;ce(r=ue())&&(i.modalTemp=r.first)}},features:[Se],decls:2,vars:0,consts:[["docFile",""],[3,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"modalBody"]],template:function(e,i){1&e&&H(0,VG,7,18,"ng-template",null,0,Sn)},dependencies:[Ji,ki]}),n})();const qG=["selContact"],zG=["dbs"];function GG(n,t){1&n&&(g(0,"p"),j(1),Ze(2,"translate"),_()),2&n&&(f(1),ve(Xe(2,1,"LC53515")))}function WG(n,t){if(1&n){const e=Ie();g(0,"mat-list-option",7),W("dblclick",function(){return J(e),Z(C(2).confirmAction())}),j(1),_()}if(2&n){const e=t.$implicit,i=C(2);_t("value",e.db),v("selected",1===i.contactDBs.length?e.db:null),f(1),qe(" ",e.title," ")}}const $G=function(n){return{title:n}},KG=function(n,t,e,i){return{confirm:n,cancel:t,confirmAction:e,cancelAction:i}};function YG(n,t){if(1&n&&(Wt(0,1),Ze(1,"translate"),g(2,"div",2)(3,"mat-selection-list",3,4),H(5,GG,3,3,"p",5),H(6,WG,2,3,"mat-list-option",6),_()(),Wt(7,1),Ze(8,"translate"),Ze(9,"translate")),2&n){const e=C();v("ngTemplateOutlet",e.modalHeader)("ngTemplateOutletContext",Wn(13,$G,Xe(1,7,"LC53516"))),f(3),v("multiple",!1),f(2),v("ngIf",e.contactDBs.length<1),f(1),v("ngForOf",e.contactDBs),f(1),v("ngTemplateOutlet",e.modalFooter)("ngTemplateOutletContext",Yi(15,KG,Xe(8,9,"LC73135"),Xe(9,11,"LC73136"),e.confirmAction.bind(e,e.selection),e.cancelAction.bind(e)))}}let fC=(()=>{class n extends Yr{constructor(e,i,r){super(e),this.translate=e,this.connection=i,this.messageService=r,this.contactDBs=[]}ngOnInit(){super.ngOnInit(),this.fetchContactsDBs()}confirmAction(e,i){try{let r;r=null!=i?i:this.selection.selectedOptions.selected[0].value,this.openAnotherModal(this.next,{contactsDB:r,createType:this.data.createType})}catch{this.translate.get("LC53493").subscribe(o=>{this.messageService.showError(o)})}}fetchContactsDBs(){this.connection.getReqModal("dbConnections",null).subscribe(e=>{this.clearOfficeDBs(),this.extractContacts(e)})}extractContacts(e){var i=this;return Ae(function*(){for(const r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if("GeOfficeAliases"===r)continue;"Contact"===e[r].type&&i.contactDBs.push({title:e[r].title,db:r})}i.contactDBs.length<1&&i.translate.get("LC73225").subscribe(r=>{i.messageService.showError(r),i.cancelAction()}),1===i.contactDBs.length&&i.confirmAction(i.selection,i.contactDBs[0].db)})()}clearOfficeDBs(){this.contactDBs.length=0}}return n.\u0275fac=function(e){return new(e||n)(p(Ut),p(In),p(tn))},n.\u0275cmp=Ue({type:n,selectors:[["app-select-contact"]],viewQuery:function(e,i){if(1&e&&(De(qG,7),De(zG,5)),2&e){let r;ce(r=ue())&&(i.modalTemp=r.first),ce(r=ue())&&(i.selection=r.first)}},features:[Se],decls:2,vars:0,consts:[["selContact",""],[3,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"modalBody"],[3,"multiple"],["dbs",""],[4,"ngIf"],["checkboxPosition","after",3,"value","selected","dblclick",4,"ngFor","ngForOf"],["checkboxPosition","after",3,"value","selected","dblclick"]],template:function(e,i){1&e&&H(0,YG,10,20,"ng-template",null,0,Sn)},dependencies:[zn,pn,Ji,$o,Ls,ki]}),n})();const QG=["selLabelCreate"],JG=["selection"];function ZG(n,t){if(1&n){const e=Ie();g(0,"mat-list-option",6),W("dblclick",function(){return J(e),Z(C(2).confirmAction())}),j(1),_()}if(2&n){const e=t.$implicit,i=C(2);_t("value",e),v("selected",e===i.selectedEntry),f(1),qe(" ",i.data.passedData.labelDisplayMap.get(e)," ")}}const XG=function(n){return{title:n}},eW=function(n,t,e,i){return{confirm:n,cancel:t,confirmAction:e,cancelAction:i}};function tW(n,t){if(1&n&&(Wt(0,1),Ze(1,"translate"),g(2,"div",2)(3,"mat-selection-list",3,4),H(5,ZG,2,3,"mat-list-option",5),_()(),Wt(6,1),Ze(7,"translate"),Ze(8,"translate")),2&n){const e=C();v("ngTemplateOutlet",e.modalHeader)("ngTemplateOutletContext",Wn(12,XG,Xe(1,6,"LC53516"))),f(3),v("multiple",!1),f(2),v("ngForOf",e.data.passedData.createLabels),f(1),v("ngTemplateOutlet",e.modalFooter)("ngTemplateOutletContext",Yi(14,eW,Xe(7,8,"LC73135"),Xe(8,10,"LC73136"),e.confirmAction.bind(e),e.cancelAction.bind(e)))}}let nW=(()=>{class n extends Yr{constructor(e,i,r){super(e),this.translate=e,this.messageService=i,this.globals=r,this.selectedEntry=""}ngOnInit(){super.ngOnInit(),-1===this.data.passedData.createLabels.indexOf("")&&this.data.passedData.createLabels.unshift(""),this.selectedEntry=this.data.passedData.selected}confirmAction(){this.data.closeModal(this.selection.selectedOptions.selected[0].value)}}return n.\u0275fac=function(e){return new(e||n)(p(Ut),p(tn),p(ot))},n.\u0275cmp=Ue({type:n,selectors:[["app-select-create-label"]],viewQuery:function(e,i){if(1&e&&(De(QG,7),De(JG,5)),2&e){let r;ce(r=ue())&&(i.modalTemp=r.first),ce(r=ue())&&(i.selection=r.first)}},features:[Se],decls:2,vars:0,consts:[["selLabelCreate",""],[3,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"modalBody"],[3,"multiple"],["selection",""],["checkboxPosition","after",3,"value","selected","dblclick",4,"ngFor","ngForOf"],["checkboxPosition","after",3,"value","selected","dblclick"]],template:function(e,i){1&e&&H(0,tW,9,19,"ng-template",null,0,Sn)},dependencies:[zn,Ji,$o,Ls,ki]}),n})();const iW=["dupl"],rW=function(n){return{title:n}},oW=function(n,t,e,i){return{confirm:n,cancel:t,confirmAction:e,cancelAction:i}};function sW(n,t){if(1&n&&(Wt(0,1),Ze(1,"translate"),g(2,"div",2),j(3),Ze(4,"translate"),_(),Wt(5,1),Ze(6,"translate"),Ze(7,"translate")),2&n){const e=C();v("ngTemplateOutlet",e.modalHeader)("ngTemplateOutletContext",Wn(13,rW,Xe(1,5,"LC53516"))),f(3),ve(Xe(4,7,"LC73006")),f(2),v("ngTemplateOutlet",e.modalFooter)("ngTemplateOutletContext",Yi(15,oW,Xe(6,9,"LC73057"),Xe(7,11,"NO"),e.confirmAction.bind(e),e.cancelAction.bind(e)))}}let aW=(()=>{class n extends Yr{constructor(e){super(e),this.translate=e}ngOnInit(){super.ngOnInit()}confirmAction(){this.data.closeModal(!0)}}return n.\u0275fac=function(e){return new(e||n)(p(Ut))},n.\u0275cmp=Ue({type:n,selectors:[["app-duplicate"]],viewQuery:function(e,i){if(1&e&&De(iW,7),2&e){let r;ce(r=ue())&&(i.modalTemp=r.first)}},features:[Se],decls:2,vars:0,consts:[["dupl",""],[3,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"modalBody"]],template:function(e,i){1&e&&H(0,sW,8,20,"ng-template",null,0,Sn)},dependencies:[Ji,ki]}),n})();const lW=["searchTemplate"];function cW(n,t){if(1&n){const e=Ie();g(0,"button",13),W("click",function(){return J(e),Z(C(2).searchValue="")}),be(1,"div",14),_()}if(2&n){const e=C(2);f(1),v("ngStyle",e.searchClearImage)}}function uW(n,t){if(1&n&&(g(0,"mat-option",15),j(1),_()),2&n){const e=t.$implicit;v("value",e.value),f(1),ve(e.viewValue)}}const dW=function(n){return{background:n}};function hW(n,t){if(1&n&&be(0,"mat-cell",22),2&n){const e=t.$implicit,i=C(3);v("ngStyle",Wn(1,dW,"no-repeat url("+i.viewIconBaseURL+e.iconURL+")"))}}function pW(n,t){if(1&n&&(g(0,"div"),j(1),_()),2&n){const e=C().$implicit;f(1),zr(" ",e.name,", ",e.type," ")}}function fW(n,t){if(1&n&&(g(0,"div"),j(1),_()),2&n){const e=C().$implicit;f(1),qe(" ",e.purpose," ")}}function mW(n,t){if(1&n&&(g(0,"div"),j(1),_()),2&n){const e=C().$implicit;f(1),qe(" ",e.category," ")}}function gW(n,t){if(1&n&&(g(0,"mat-cell",23)(1,"mat-dialog-content")(2,"span",24),j(3),_(),H(4,pW,2,2,"div",25),H(5,fW,2,1,"div",25),H(6,mW,2,1,"div",25),_()()),2&n){const e=t.$implicit;f(3),qe(" ",e.display," "),f(1),v("ngIf",""!==e.name),f(1),v("ngIf",""!==e.purpose),f(1),v("ngIf",""!==e.category)}}function _W(n,t){if(1&n){const e=Ie();g(0,"mat-row",26),W("click",function(){const o=J(e).$implicit;return Z(C(3).toggleSelection(o))})("dblclick",function(){const o=J(e).$implicit;return Z(C(3).acceptEntryDblClick(o))}),_()}if(2&n){const e=t.$implicit,i=C(3);bt("isSelected",i.selection.isSelected(e)),v("matRippleColor",i.rippleColor)("matRippleCentered",i.centered)("matRippleDisabled",i.disabled)("matRippleUnbounded",i.unbounded)}}function vW(n,t){if(1&n&&(g(0,"div")(1,"mat-table",16),xi(2,17),H(3,hW,1,3,"mat-cell",18),Ii(),xi(4,19),H(5,gW,7,4,"mat-cell",20),Ii(),H(6,_W,1,6,"mat-row",21),_()()),2&n){const e=C(2);_s(e.tableWrapperClassName),f(1),v("dataSource",e.searchResults),f(5),v("matRowDefColumns",e.displayedColumns)}}function yW(n,t){1&n&&(g(0,"div"),j(1),Ze(2,"translate"),_()),2&n&&(f(1),ve(Xe(2,1,"LC53482")))}const bW=function(n){return{title:n}},CW=function(n,t,e,i){return{confirm:n,cancel:t,confirmAction:e,cancelAction:i}};function wW(n,t){if(1&n){const e=Ie();Wt(0,1),Ze(1,"translate"),g(2,"div",2)(3,"div",3)(4,"mat-form-field",4)(5,"mat-label"),j(6),Ze(7,"translate"),_(),g(8,"input",5),W("ngModelChange",function(r){return J(e),Z(C().searchValue=r)})("keyup.enter",function(){return J(e),Z(C().search())}),_(),H(9,cW,2,1,"button",6),_(),g(10,"input",7),W("click",function(){return J(e),Z(C().search())}),Ze(11,"translate"),_()(),g(12,"mat-form-field",8)(13,"mat-label"),j(14),Ze(15,"translate"),_(),g(16,"mat-select",9),W("valueChange",function(r){return J(e),Z(C().selectedDB=r)})("selectionChange",function(){J(e);const r=C();return Z(r.fetchSearch(r.selectedDB))}),H(17,uW,2,2,"mat-option",10),_()(),H(18,vW,7,5,"div",11),H(19,yW,3,3,"ng-template",null,12,Sn),_(),Wt(21,1),Ze(22,"translate"),Ze(23,"translate")}if(2&n){const e=Yt(20),i=C();v("ngTemplateOutlet",i.modalHeader)("ngTemplateOutletContext",Wn(25,bW,Xe(1,13,"LC53493"))),f(6),ve(Xe(7,15,"LC53489")),f(2),v("ngModel",i.searchValue),f(1),v("ngIf",i.searchValue),f(1),_t("value",Xe(11,17,"LC36251")),f(4),ve(Xe(15,19,"LC53516")),f(2),v("value",i.selectedDB),f(1),v("ngForOf",i.databases),f(1),v("ngIf",i.searchResults.length>=1)("ngIfElse",e),f(3),v("ngTemplateOutlet",i.modalFooter)("ngTemplateOutletContext",Yi(27,CW,Xe(22,21,"LC73135"),Xe(23,23,"LC73136"),i.confirmAction.bind(i),i.cancelAction.bind(i)))}}let EW=(()=>{class n extends Pb{constructor(e,i,r,o,s,a){super(e,r,i,o,s,a),this.messageEvent=new He,this.prefix="Template: ",this.path="templates",this.searchResults=[]}ngOnInit(){super.ngOnInit()}getTemplate(){return this.modalTemp}createPhoneCallHttpParams(e){let o=new $t;return o=o.appendAll({createDocument:"faActivities",parentPointer:this.addressService.currentPointer,templatePointer:e,templateType:"PhoneCall"}),null!=this.globals.curSubject&&(o=o.set("cval-Subject",this.globals.curSubject)),{paramsToAdd:["crmDB"],params:o}}convertToArr(e){const i={};for(const r in e)"Template"===e[r].type&&(i[e[r].alias]=e[r].title);this.generateSelectionArr(i)}generateSelectionArr(e){for(const i in e)Object.prototype.hasOwnProperty.call(e,i)&&this.databases.push({value:i,viewValue:this.prefix+e[i]});this.data.parentPointer=this.addressService.currentPointer,this.databases.length>0&&(this.selectedDB=this.databases[0].value,this.fetchSearch(this.selectedDB))}fetchDBs(){this.connection.getReqModal("templates",this.connection.objectToHttpParams({templateDBs:"true"})).subscribe(e=>{this.convertToArr(e)})}handleResult(e){this.searchResults=null!=e&&Array.isArray(e)&&e.length>0?e:[]}confirmAction(){this.selection.isEmpty()?this.translate.get("LC53493").subscribe(e=>{this.messageService.showError(e)}):this.openAnotherModal(this.next,{paramsData:this.createPhoneCallHttpParams(this.selection.selected[0].pointer),ignoreNext:!0})}}return n.\u0275fac=function(e){return new(e||n)(p(Ut),p(In),p(ot),p(tn),p(wd),p(Ps))},n.\u0275cmp=Ue({type:n,selectors:[["app-search-template"]],viewQuery:function(e,i){if(1&e&&De(lW,7),2&e){let r;ce(r=ue())&&(i.modalTemp=r.first)}},inputs:{data:"data"},outputs:{messageEvent:"messageEvent"},features:[Se],decls:2,vars:0,consts:[["searchTemplate",""],[3,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"modalBody"],[1,"searchInputWrapper"],[1,"searchInput"],["matInput","","type","text",3,"ngModel","ngModelChange","keyup.enter"],["matSuffix","","aria-label","Clear",3,"click",4,"ngIf"],["id","searchButton","type","button",1,"buttonSilverMiddle",3,"value","click"],["appearance","standard",1,"databaseSearchSelect"],[3,"value","valueChange","selectionChange"],[3,"value",4,"ngFor","ngForOf"],[3,"class",4,"ngIf","ngIfElse"],["noResult",""],["matSuffix","","aria-label","Clear",3,"click"],[1,"modalCloseIcon",3,"ngStyle"],[3,"value"],[1,"searchTable",3,"dataSource"],["matColumnDef","icon"],["class","searchIcon",3,"ngStyle",4,"matCellDef"],["matColumnDef","display"],["class","searchDisplay",4,"matCellDef"],["matRipple","","class","searchRow",3,"matRippleColor","matRippleCentered","matRippleDisabled","matRippleUnbounded","isSelected","click","dblclick",4,"matRowDef","matRowDefColumns"],[1,"searchIcon",3,"ngStyle"],[1,"searchDisplay"],[1,"bold"],[4,"ngIf"],["matRipple","",1,"searchRow",3,"matRippleColor","matRippleCentered","matRippleDisabled","matRippleUnbounded","click","dblclick"]],template:function(e,i){1&e&&H(0,wW,24,32,"ng-template",null,0,Sn)},dependencies:[zn,pn,Ji,ra,Ar,Kr,wo,yd,Ir,Pi,Lb,Ko,cr,Mr,Jf,xd,Td,Zf,Id,Xf,xr,ki],styles:[".searchInputWrapper[_ngcontent-%COMP%]{display:flex;flex-direction:row;align-items:center;justify-content:space-between}.databaseSearchSelect[_ngcontent-%COMP%]{width:100%}.searchInput[_ngcontent-%COMP%]{width:calc(100% - 70px);display:block;padding-bottom:0!important}.searchIcon[_ngcontent-%COMP%]{width:30px;padding:0 10px 0 0!important;background-position:40% 50%!important}.searchRow[_ngcontent-%COMP%] .searchIcon[_ngcontent-%COMP%], .searchRow[_ngcontent-%COMP%] .searchDisplay[_ngcontent-%COMP%], .searchRow[_ngcontent-%COMP%]{border-bottom:0px}.searchRow[_ngcontent-%COMP%]:nth-child(2n){background:#f2f2f2}.isSelected[_ngcontent-%COMP%]{background:rgb(224,239,255)!important}.searchRow[_ngcontent-%COMP%]{cursor:pointer;overflow:hidden;padding-right:5px}.searchRow[_ngcontent-%COMP%]:hover{background:rgba(224,239,255,.4)}.searchDisplay[_ngcontent-%COMP%], .searchTable[_ngcontent-%COMP%]{width:100%}.tableWrapper[_ngcontent-%COMP%], .tableWrapperVerse[_ngcontent-%COMP%], .tableWrapperVerseTabs[_ngcontent-%COMP%]{overflow:auto}.tableWrapper[_ngcontent-%COMP%]{max-height:50vh}.tableWrapperVerse[_ngcontent-%COMP%]{max-height:45vh}.tableWrapperVerseTabs[_ngcontent-%COMP%]{max-height:calc(45vh - 48px)}.overlay-list[_ngcontent-%COMP%], .overlay-selected[_ngcontent-%COMP%]{position:absolute;bottom:0;left:100%;right:0;overflow:hidden;width:0;height:100%;transition:.5s ease;box-shadow:none}.overlay-list[_ngcontent-%COMP%]{background-color:#a1f79b}.overlay-selected[_ngcontent-%COMP%]{background-color:#ff6a6a}.projectButtonContainer[_ngcontent-%COMP%]:hover .overlay-list[_ngcontent-%COMP%], .projectButtonContainer[_ngcontent-%COMP%]:hover .overlay-selected[_ngcontent-%COMP%]{width:30px;left:calc(100% - 30px);box-shadow:0 0 10px #999}.projectButton[_ngcontent-%COMP%]{margin:0;position:absolute;top:50%;left:calc(50% - 9px);transform:translateY(-50%)}#searchButton[_ngcontent-%COMP%]{height:100%;padding:4px;margin:0 0 5px;float:right;font-weight:700;display:flex}"]}),n})();const DW=["selMailAddr"],SW=["mailAddrs"];function AW(n,t){if(1&n){const e=Ie();g(0,"mat-list-option",7),W("dblclick",function(){return J(e),Z(C(2).confirmAction())}),j(1),Ze(2,"translate"),_()}if(2&n){const e=C(2);_t("value",e.globals.curFrom.emailAddress),f(1),zr(" ",Xe(2,3,"LC73126"),": ",e.globals.curFrom.emailAddress," ")}}function TW(n,t){if(1&n){const e=Ie();g(0,"mat-list-option",7),W("dblclick",function(){return J(e),Z(C(2).confirmAction())}),j(1),Ze(2,"translate"),_()}if(2&n){const e=t.$implicit;_t("value",e.emailAddress),f(1),zr(" ",Xe(2,3,"to"),": ",e.emailAddress," ")}}function xW(n,t){if(1&n){const e=Ie();g(0,"mat-list-option",7),W("dblclick",function(){return J(e),Z(C(2).confirmAction())}),j(1),Ze(2,"translate"),_()}if(2&n){const e=t.$implicit;_t("value",e.emailAddress),f(1),zr(" ",Xe(2,3,"LC73128"),": ",e.emailAddress," ")}}const IW=function(n){return{title:n}},MW=function(){return{}},kW=function(n,t,e,i){return{confirm:n,cancel:t,confirmAction:e,cancelAction:i}};function RW(n,t){if(1&n&&(Wt(0,1),Ze(1,"translate"),g(2,"div",2)(3,"mat-selection-list",3,4),H(5,AW,3,5,"mat-list-option",5),H(6,TW,3,5,"mat-list-option",6),H(7,xW,3,5,"mat-list-option",6),_()(),Wt(8,1),Ze(9,"translate"),Ze(10,"translate")),2&n){const e=C();v("ngTemplateOutlet",e.modalHeader)("ngTemplateOutletContext",Wn(14,IW,Xe(1,8,"LC53517"))),f(3),v("multiple",!1),f(2),v("ngIf",null!==e.globals.curFrom&&e.globals.curFrom!==Tv(16,MW)),f(1),v("ngForOf",e.globals.curTo),f(1),v("ngForOf",e.globals.curCC),f(1),v("ngTemplateOutlet",e.modalFooter)("ngTemplateOutletContext",Yi(17,kW,Xe(9,10,"LC73135"),Xe(10,12,"LC73136"),e.confirmAction.bind(e,e.selection),e.cancelAction.bind(e)))}}let OW=(()=>{class n extends Yr{constructor(e,i,r,o){super(i),this.globals=e,this.translate=i,this.messageService=r,this.reloadService=o}ngOnInit(){super.ngOnInit()}confirmAction(){try{this.globals.curMailAddr=this.selection.selectedOptions.selected[0].value,this.closeAll(),this.reloadService.reload()}catch{this.translate.get("LC53493").subscribe(i=>{this.messageService.showError(i)})}}}return n.\u0275fac=function(e){return new(e||n)(p(ot),p(Ut),p(tn),p($b))},n.\u0275cmp=Ue({type:n,selectors:[["app-select-mail-address"]],viewQuery:function(e,i){if(1&e&&(De(DW,7),De(SW,5)),2&e){let r;ce(r=ue())&&(i.modalTemp=r.first),ce(r=ue())&&(i.selection=r.first)}},features:[Se],decls:2,vars:0,consts:[["selMailAddr",""],[3,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"modalBody"],[3,"multiple"],["mailAddrs",""],["checkboxPosition","after",3,"value","dblclick",4,"ngIf"],["checkboxPosition","after",3,"value","dblclick",4,"ngFor","ngForOf"],["checkboxPosition","after",3,"value","dblclick"]],template:function(e,i){1&e&&H(0,RW,11,22,"ng-template",null,0,Sn)},dependencies:[zn,pn,Ji,$o,Ls,ki]}),n})(),PW=(()=>{class n{constructor(e){this.connection=e}getPhasesOfPointer(e){return new b(i=>{this.connection.postReq("phases",e,!0).subscribe(r=>{i.next(r),i.complete()})})}handlePhases(e){return new b(i=>{this.getPhasesOfPointer(e).subscribe(o=>{i.next(o),i.complete()})})}checkIfAllHidden(e,i){let r=!1,o=0;if(e.length>=i.length){for(const s of e)i.includes(s)&&o++;o>=i.length&&(r=!0)}return r}handleDocToDocPhases(e,i=!1){return new b(r=>{const o={},s=new Set,a=new Set,l=new Set;for(const c of e){const u=c.split("#");u.length>1?i?s.add(u[1]):(a.add(u[0]),o[u[0]]?o[u[0]].push(u[1]):o[u[0]]=[u[1]]):s.add(u[0])}this.handlePhases(Array.from(a)).subscribe(c=>{const u=new Set;for(const d of Array.from(a)){const h=c.find(m=>m.projectPointer===d);if(Array.isArray(o[d])&&o[d].length===h.projectphases.length)for(const m of h.projectphases)s.add(m.pointer);else{for(const m of o[d]){const y=h.projectphases.findIndex(A=>A.pointer===m);h.projectphases[y].selected=!0}l.add(h)}u.add(d)}for(const d of u)delete o[d],a.delete(d);r.next({projects:Array.from(s),parentPointersWithPhases:Array.from(a),phasesToCheck:Array.from(l)}),r.complete()})})}}return n.\u0275fac=function(e){return new(e||n)(M(In))},n.\u0275prov=ge({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();function LW(n,t){1&n&&Bt(0)}const qI=["*"];function NW(n,t){}const FW=function(n){return{animationDuration:n}},BW=function(n,t){return{value:n,params:t}},jW=["tabListContainer"],HW=["tabList"],VW=["tabListInner"],UW=["nextPaginator"],qW=["previousPaginator"],zW=["tabBodyWrapper"],GW=["tabHeader"];function WW(n,t){}function $W(n,t){1&n&&H(0,WW,0,0,"ng-template",10),2&n&&v("cdkPortalOutlet",C().$implicit.templateLabel)}function KW(n,t){1&n&&j(0),2&n&&ve(C().$implicit.textLabel)}function YW(n,t){if(1&n){const e=Ie();g(0,"div",6),W("click",function(){const r=J(e),o=r.$implicit,s=r.index,a=C(),l=Yt(1);return Z(a._handleClick(o,l,s))})("cdkFocusChange",function(r){const s=J(e).index;return Z(C()._tabFocusChanged(r,s))}),g(1,"div",7),H(2,$W,1,1,"ng-template",8),H(3,KW,1,1,"ng-template",null,9,Sn),_()()}if(2&n){const e=t.$implicit,i=t.index,r=Yt(4),o=C();bt("mat-tab-label-active",o.selectedIndex===i),v("id",o._getTabLabelId(i))("ngClass",e.labelClass)("disabled",e.disabled)("matRippleDisabled",e.disabled||o.disableRipple),rt("tabIndex",o._getTabIndex(e,i))("aria-posinset",i+1)("aria-setsize",o._tabs.length)("aria-controls",o._getTabContentId(i))("aria-selected",o.selectedIndex===i)("aria-label",e.ariaLabel||null)("aria-labelledby",!e.ariaLabel&&e.ariaLabelledby?e.ariaLabelledby:null),f(2),v("ngIf",e.templateLabel)("ngIfElse",r)}}function QW(n,t){if(1&n){const e=Ie();g(0,"mat-tab-body",11),W("_onCentered",function(){return J(e),Z(C()._removeTabBodyWrapperHeight())})("_onCentering",function(r){return J(e),Z(C()._setTabBodyWrapperHeight(r))}),_()}if(2&n){const e=t.$implicit,i=t.index,r=C();bt("mat-tab-body-active",r.selectedIndex===i),v("id",r._getTabContentId(i))("ngClass",e.bodyClass)("content",e.content)("position",e.position)("origin",e.origin)("animationDuration",r.animationDuration)("preserveContent",r.preserveContent),rt("tabindex",null!=r.contentTabIndex&&r.selectedIndex===i?r.contentTabIndex:null)("aria-labelledby",r._getTabLabelId(i))}}const JW=new me("MatInkBarPositioner",{providedIn:"root",factory:function ZW(){return t=>({left:t?(t.offsetLeft||0)+"px":"0",width:t?(t.offsetWidth||0)+"px":"0"})}});let zI=(()=>{class n{constructor(e,i,r,o){this._elementRef=e,this._ngZone=i,this._inkBarPositioner=r,this._animationMode=o}alignToElement(e){this.show(),this._ngZone.run(()=>{this._ngZone.onStable.pipe(sn(1)).subscribe(()=>{const i=this._inkBarPositioner(e),r=this._elementRef.nativeElement;r.style.left=i.left,r.style.width=i.width})})}show(){this._elementRef.nativeElement.style.visibility="visible"}hide(){this._elementRef.nativeElement.style.visibility="hidden"}}return n.\u0275fac=function(e){return new(e||n)(p(Je),p(et),p(JW),p(qn,8))},n.\u0275dir=fe({type:n,selectors:[["mat-ink-bar"]],hostAttrs:[1,"mat-ink-bar"],hostVars:2,hostBindings:function(e,i){2&e&&bt("_mat-animation-noopable","NoopAnimations"===i._animationMode)}}),n})();const XW=new me("MatTabContent"),GI=new me("MatTabLabel"),WI=new me("MAT_TAB");let e$=(()=>{class n extends Q8{constructor(e,i,r){super(e,i),this._closestTab=r}}return n.\u0275fac=function(e){return new(e||n)(p(yn),p(Dn),p(WI,8))},n.\u0275dir=fe({type:n,selectors:[["","mat-tab-label",""],["","matTabLabel",""]],features:[it([{provide:GI,useExisting:n}]),Se]}),n})();const t$=Rs(class{}),$I=new me("MAT_TAB_GROUP");let KI=(()=>{class n extends t${constructor(e,i){super(),this._viewContainerRef=e,this._closestTabGroup=i,this.textLabel="",this._contentPortal=null,this._stateChanges=new N,this.position=null,this.origin=null,this.isActive=!1}get templateLabel(){return this._templateLabel}set templateLabel(e){this._setTemplateLabelInput(e)}get content(){return this._contentPortal}ngOnChanges(e){(e.hasOwnProperty("textLabel")||e.hasOwnProperty("disabled"))&&this._stateChanges.next()}ngOnDestroy(){this._stateChanges.complete()}ngOnInit(){this._contentPortal=new Ms(this._explicitContent||this._implicitContent,this._viewContainerRef)}_setTemplateLabelInput(e){e&&e._closestTab===this&&(this._templateLabel=e)}}return n.\u0275fac=function(e){return new(e||n)(p(Dn),p($I,8))},n.\u0275cmp=Ue({type:n,selectors:[["mat-tab"]],contentQueries:function(e,i,r){if(1&e&&(jt(r,GI,5),jt(r,XW,7,yn)),2&e){let o;ce(o=ue())&&(i.templateLabel=o.first),ce(o=ue())&&(i._explicitContent=o.first)}},viewQuery:function(e,i){if(1&e&&De(yn,7),2&e){let r;ce(r=ue())&&(i._implicitContent=r.first)}},inputs:{disabled:"disabled",textLabel:["label","textLabel"],ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],labelClass:"labelClass",bodyClass:"bodyClass"},exportAs:["matTab"],features:[it([{provide:WI,useExisting:n}]),Se,Rn],ngContentSelectors:qI,decls:1,vars:0,template:function(e,i){1&e&&(Pn(),H(0,LW,1,0,"ng-template"))},encapsulation:2}),n})();const n$={translateTab:So("translateTab",[li("center, void, left-origin-center, right-origin-center",qt({transform:"none"})),li("left",qt({transform:"translate3d(-100%, 0, 0)",minHeight:"1px",visibility:"hidden"})),li("right",qt({transform:"translate3d(100%, 0, 0)",minHeight:"1px",visibility:"hidden"})),bi("* => left, * => right, left => center, right => center",Oi("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")),bi("void => left-origin-center",[qt({transform:"translate3d(-100%, 0, 0)",visibility:"hidden"}),Oi("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")]),bi("void => right-origin-center",[qt({transform:"translate3d(100%, 0, 0)",visibility:"hidden"}),Oi("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")])])};let i$=(()=>{class n extends ks{constructor(e,i,r,o){super(e,i,o),this._host=r,this._centeringSub=E.EMPTY,this._leavingSub=E.EMPTY}ngOnInit(){super.ngOnInit(),this._centeringSub=this._host._beforeCentering.pipe(ni(this._host._isCenterPosition(this._host._position))).subscribe(e=>{e&&!this.hasAttached()&&this.attach(this._host._content)}),this._leavingSub=this._host._afterLeavingCenter.subscribe(()=>{this._host.preserveContent||this.detach()})}ngOnDestroy(){super.ngOnDestroy(),this._centeringSub.unsubscribe(),this._leavingSub.unsubscribe()}}return n.\u0275fac=function(e){return new(e||n)(p(hs),p(Dn),p(Xt(()=>YI)),p(ft))},n.\u0275dir=fe({type:n,selectors:[["","matTabBodyHost",""]],features:[Se]}),n})(),r$=(()=>{class n{constructor(e,i,r){this._elementRef=e,this._dir=i,this._dirChangeSubscription=E.EMPTY,this._translateTabComplete=new N,this._onCentering=new He,this._beforeCentering=new He,this._afterLeavingCenter=new He,this._onCentered=new He(!0),this.animationDuration="500ms",this.preserveContent=!1,i&&(this._dirChangeSubscription=i.change.subscribe(o=>{this._computePositionAnimationState(o),r.markForCheck()})),this._translateTabComplete.pipe(bf((o,s)=>o.fromState===s.fromState&&o.toState===s.toState)).subscribe(o=>{this._isCenterPosition(o.toState)&&this._isCenterPosition(this._position)&&this._onCentered.emit(),this._isCenterPosition(o.fromState)&&!this._isCenterPosition(this._position)&&this._afterLeavingCenter.emit()})}set position(e){this._positionIndex=e,this._computePositionAnimationState()}ngOnInit(){"center"==this._position&&null!=this.origin&&(this._position=this._computePositionFromOrigin(this.origin))}ngOnDestroy(){this._dirChangeSubscription.unsubscribe(),this._translateTabComplete.complete()}_onTranslateTabStarted(e){const i=this._isCenterPosition(e.toState);this._beforeCentering.emit(i),i&&this._onCentering.emit(this._elementRef.nativeElement.clientHeight)}_getLayoutDirection(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}_isCenterPosition(e){return"center"==e||"left-origin-center"==e||"right-origin-center"==e}_computePositionAnimationState(e=this._getLayoutDirection()){this._position=this._positionIndex<0?"ltr"==e?"left":"right":this._positionIndex>0?"ltr"==e?"right":"left":"center"}_computePositionFromOrigin(e){const i=this._getLayoutDirection();return"ltr"==i&&e<=0||"rtl"==i&&e>0?"left-origin-center":"right-origin-center"}}return n.\u0275fac=function(e){return new(e||n)(p(Je),p(Xi,8),p(St))},n.\u0275dir=fe({type:n,inputs:{_content:["content","_content"],origin:"origin",animationDuration:"animationDuration",preserveContent:"preserveContent",position:"position"},outputs:{_onCentering:"_onCentering",_beforeCentering:"_beforeCentering",_afterLeavingCenter:"_afterLeavingCenter",_onCentered:"_onCentered"}}),n})(),YI=(()=>{class n extends r${constructor(e,i,r){super(e,i,r)}}return n.\u0275fac=function(e){return new(e||n)(p(Je),p(Xi,8),p(St))},n.\u0275cmp=Ue({type:n,selectors:[["mat-tab-body"]],viewQuery:function(e,i){if(1&e&&De(ks,5),2&e){let r;ce(r=ue())&&(i._portalHost=r.first)}},hostAttrs:[1,"mat-tab-body"],features:[Se],decls:3,vars:6,consts:[["cdkScrollable","",1,"mat-tab-body-content"],["content",""],["matTabBodyHost",""]],template:function(e,i){1&e&&(g(0,"div",0,1),W("@translateTab.start",function(o){return i._onTranslateTabStarted(o)})("@translateTab.done",function(o){return i._translateTabComplete.next(o)}),H(2,NW,0,0,"ng-template",2),_()),2&e&&v("@translateTab",nA(3,BW,i._position,Wn(1,FW,i.animationDuration)))},dependencies:[i$],styles:['.mat-tab-body-content{height:100%;overflow:auto}.mat-tab-group-dynamic-height .mat-tab-body-content{overflow:hidden}.mat-tab-body-content[style*="visibility: hidden"]{display:none}'],encapsulation:2,data:{animation:[n$.translateTab]}}),n})();const QI=new me("MAT_TABS_CONFIG"),o$=Rs(class{});let JI=(()=>{class n extends o${constructor(e){super(),this.elementRef=e}focus(){this.elementRef.nativeElement.focus()}getOffsetLeft(){return this.elementRef.nativeElement.offsetLeft}getOffsetWidth(){return this.elementRef.nativeElement.offsetWidth}}return n.\u0275fac=function(e){return new(e||n)(p(Je))},n.\u0275dir=fe({type:n,selectors:[["","matTabLabelWrapper",""]],hostVars:3,hostBindings:function(e,i){2&e&&(rt("aria-disabled",!!i.disabled),bt("mat-tab-disabled",i.disabled))},inputs:{disabled:"disabled"},features:[Se]}),n})();const ZI=As({passive:!0});let l$=(()=>{class n{constructor(e,i,r,o,s,a,l){this._elementRef=e,this._changeDetectorRef=i,this._viewportRuler=r,this._dir=o,this._ngZone=s,this._platform=a,this._animationMode=l,this._scrollDistance=0,this._selectedIndexChanged=!1,this._destroyed=new N,this._showPaginationControls=!1,this._disableScrollAfter=!0,this._disableScrollBefore=!0,this._stopScrolling=new N,this._disablePagination=!1,this._selectedIndex=0,this.selectFocusedIndex=new He,this.indexFocused=new He,s.runOutsideAngular(()=>{Is(e.nativeElement,"mouseleave").pipe(Jt(this._destroyed)).subscribe(()=>{this._stopInterval()})})}get disablePagination(){return this._disablePagination}set disablePagination(e){this._disablePagination=lt(e)}get selectedIndex(){return this._selectedIndex}set selectedIndex(e){e=xs(e),this._selectedIndex!=e&&(this._selectedIndexChanged=!0,this._selectedIndex=e,this._keyManager&&this._keyManager.updateActiveItem(e))}ngAfterViewInit(){Is(this._previousPaginator.nativeElement,"touchstart",ZI).pipe(Jt(this._destroyed)).subscribe(()=>{this._handlePaginatorPress("before")}),Is(this._nextPaginator.nativeElement,"touchstart",ZI).pipe(Jt(this._destroyed)).subscribe(()=>{this._handlePaginatorPress("after")})}ngAfterContentInit(){const e=this._dir?this._dir.change:Ne("ltr"),i=this._viewportRuler.change(150),r=()=>{this.updatePagination(),this._alignInkBarToSelectedTab()};this._keyManager=new Sf(this._items).withHorizontalOrientation(this._getLayoutDirection()).withHomeAndEnd().withWrap(),this._keyManager.updateActiveItem(this._selectedIndex),this._ngZone.onStable.pipe(sn(1)).subscribe(r),On(e,i,this._items.changes,this._itemsResized()).pipe(Jt(this._destroyed)).subscribe(()=>{this._ngZone.run(()=>{Promise.resolve().then(()=>{this._scrollDistance=Math.max(0,Math.min(this._getMaxScrollDistance(),this._scrollDistance)),r()})}),this._keyManager.withHorizontalOrientation(this._getLayoutDirection())}),this._keyManager.change.pipe(Jt(this._destroyed)).subscribe(o=>{this.indexFocused.emit(o),this._setTabFocus(o)})}_itemsResized(){return"function"!=typeof ResizeObserver?Ss:this._items.changes.pipe(ni(this._items),Kn(e=>new b(i=>this._ngZone.runOutsideAngular(()=>{const r=new ResizeObserver(o=>i.next(o));return e.forEach(o=>r.observe(o.elementRef.nativeElement)),()=>{r.disconnect()}}))),rb(1),Tn(e=>e.some(i=>i.contentRect.width>0&&i.contentRect.height>0)))}ngAfterContentChecked(){this._tabLabelCount!=this._items.length&&(this.updatePagination(),this._tabLabelCount=this._items.length,this._changeDetectorRef.markForCheck()),this._selectedIndexChanged&&(this._scrollToLabel(this._selectedIndex),this._checkScrollingControls(),this._alignInkBarToSelectedTab(),this._selectedIndexChanged=!1,this._changeDetectorRef.markForCheck()),this._scrollDistanceChanged&&(this._updateTabScrollPosition(),this._scrollDistanceChanged=!1,this._changeDetectorRef.markForCheck())}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete(),this._stopScrolling.complete()}_handleKeydown(e){if(!yi(e))switch(e.keyCode){case 13:case 32:this.focusIndex!==this.selectedIndex&&(this.selectFocusedIndex.emit(this.focusIndex),this._itemSelected(e));break;default:this._keyManager.onKeydown(e)}}_onContentChanges(){const e=this._elementRef.nativeElement.textContent;e!==this._currentTextContent&&(this._currentTextContent=e||"",this._ngZone.run(()=>{this.updatePagination(),this._alignInkBarToSelectedTab(),this._changeDetectorRef.markForCheck()}))}updatePagination(){this._checkPaginationEnabled(),this._checkScrollingControls(),this._updateTabScrollPosition()}get focusIndex(){return this._keyManager?this._keyManager.activeItemIndex:0}set focusIndex(e){!this._isValidIndex(e)||this.focusIndex===e||!this._keyManager||this._keyManager.setActiveItem(e)}_isValidIndex(e){if(!this._items)return!0;const i=this._items?this._items.toArray()[e]:null;return!!i&&!i.disabled}_setTabFocus(e){if(this._showPaginationControls&&this._scrollToLabel(e),this._items&&this._items.length){this._items.toArray()[e].focus();const i=this._tabListContainer.nativeElement;i.scrollLeft="ltr"==this._getLayoutDirection()?0:i.scrollWidth-i.offsetWidth}}_getLayoutDirection(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}_updateTabScrollPosition(){if(this.disablePagination)return;const e=this.scrollDistance,i="ltr"===this._getLayoutDirection()?-e:e;this._tabList.nativeElement.style.transform=`translateX(${Math.round(i)}px)`,(this._platform.TRIDENT||this._platform.EDGE)&&(this._tabListContainer.nativeElement.scrollLeft=0)}get scrollDistance(){return this._scrollDistance}set scrollDistance(e){this._scrollTo(e)}_scrollHeader(e){return this._scrollTo(this._scrollDistance+("before"==e?-1:1)*this._tabListContainer.nativeElement.offsetWidth/3)}_handlePaginatorClick(e){this._stopInterval(),this._scrollHeader(e)}_scrollToLabel(e){if(this.disablePagination)return;const i=this._items?this._items.toArray()[e]:null;if(!i)return;const r=this._tabListContainer.nativeElement.offsetWidth,{offsetLeft:o,offsetWidth:s}=i.elementRef.nativeElement;let a,l;"ltr"==this._getLayoutDirection()?(a=o,l=a+s):(l=this._tabListInner.nativeElement.offsetWidth-o,a=l-s);const c=this.scrollDistance,u=this.scrollDistance+r;au&&(this.scrollDistance+=l-u+60)}_checkPaginationEnabled(){if(this.disablePagination)this._showPaginationControls=!1;else{const e=this._tabListInner.nativeElement.scrollWidth>this._elementRef.nativeElement.offsetWidth;e||(this.scrollDistance=0),e!==this._showPaginationControls&&this._changeDetectorRef.markForCheck(),this._showPaginationControls=e}}_checkScrollingControls(){this.disablePagination?this._disableScrollAfter=this._disableScrollBefore=!0:(this._disableScrollBefore=0==this.scrollDistance,this._disableScrollAfter=this.scrollDistance==this._getMaxScrollDistance(),this._changeDetectorRef.markForCheck())}_getMaxScrollDistance(){return this._tabListInner.nativeElement.scrollWidth-this._tabListContainer.nativeElement.offsetWidth||0}_alignInkBarToSelectedTab(){const e=this._items&&this._items.length?this._items.toArray()[this.selectedIndex]:null,i=e?e.elementRef.nativeElement:null;i?this._inkBar.alignToElement(i):this._inkBar.hide()}_stopInterval(){this._stopScrolling.next()}_handlePaginatorPress(e,i){i&&null!=i.button&&0!==i.button||(this._stopInterval(),$2(650,100).pipe(Jt(On(this._stopScrolling,this._destroyed))).subscribe(()=>{const{maxScrollDistance:r,distance:o}=this._scrollHeader(e);(0===o||o>=r)&&this._stopInterval()}))}_scrollTo(e){if(this.disablePagination)return{maxScrollDistance:0,distance:0};const i=this._getMaxScrollDistance();return this._scrollDistance=Math.max(0,Math.min(i,e)),this._scrollDistanceChanged=!0,this._checkScrollingControls(),{maxScrollDistance:i,distance:this._scrollDistance}}}return n.\u0275fac=function(e){return new(e||n)(p(Je),p(St),p(zo),p(Xi,8),p(et),p(Nn),p(qn,8))},n.\u0275dir=fe({type:n,inputs:{disablePagination:"disablePagination"}}),n})(),c$=(()=>{class n extends l${constructor(e,i,r,o,s,a,l){super(e,i,r,o,s,a,l),this._disableRipple=!1}get disableRipple(){return this._disableRipple}set disableRipple(e){this._disableRipple=lt(e)}_itemSelected(e){e.preventDefault()}}return n.\u0275fac=function(e){return new(e||n)(p(Je),p(St),p(zo),p(Xi,8),p(et),p(Nn),p(qn,8))},n.\u0275dir=fe({type:n,inputs:{disableRipple:"disableRipple"},features:[Se]}),n})(),u$=(()=>{class n extends c${constructor(e,i,r,o,s,a,l){super(e,i,r,o,s,a,l)}}return n.\u0275fac=function(e){return new(e||n)(p(Je),p(St),p(zo),p(Xi,8),p(et),p(Nn),p(qn,8))},n.\u0275cmp=Ue({type:n,selectors:[["mat-tab-header"]],contentQueries:function(e,i,r){if(1&e&&jt(r,JI,4),2&e){let o;ce(o=ue())&&(i._items=o)}},viewQuery:function(e,i){if(1&e&&(De(zI,7),De(jW,7),De(HW,7),De(VW,7),De(UW,5),De(qW,5)),2&e){let r;ce(r=ue())&&(i._inkBar=r.first),ce(r=ue())&&(i._tabListContainer=r.first),ce(r=ue())&&(i._tabList=r.first),ce(r=ue())&&(i._tabListInner=r.first),ce(r=ue())&&(i._nextPaginator=r.first),ce(r=ue())&&(i._previousPaginator=r.first)}},hostAttrs:[1,"mat-tab-header"],hostVars:4,hostBindings:function(e,i){2&e&&bt("mat-tab-header-pagination-controls-enabled",i._showPaginationControls)("mat-tab-header-rtl","rtl"==i._getLayoutDirection())},inputs:{selectedIndex:"selectedIndex"},outputs:{selectFocusedIndex:"selectFocusedIndex",indexFocused:"indexFocused"},features:[Se],ngContentSelectors:qI,decls:14,vars:10,consts:[["aria-hidden","true","type","button","mat-ripple","","tabindex","-1",1,"mat-tab-header-pagination","mat-tab-header-pagination-before","mat-elevation-z4",3,"matRippleDisabled","disabled","click","mousedown","touchend"],["previousPaginator",""],[1,"mat-tab-header-pagination-chevron"],[1,"mat-tab-label-container",3,"keydown"],["tabListContainer",""],["role","tablist",1,"mat-tab-list",3,"cdkObserveContent"],["tabList",""],[1,"mat-tab-labels"],["tabListInner",""],["aria-hidden","true","type","button","mat-ripple","","tabindex","-1",1,"mat-tab-header-pagination","mat-tab-header-pagination-after","mat-elevation-z4",3,"matRippleDisabled","disabled","mousedown","click","touchend"],["nextPaginator",""]],template:function(e,i){1&e&&(Pn(),g(0,"button",0,1),W("click",function(){return i._handlePaginatorClick("before")})("mousedown",function(o){return i._handlePaginatorPress("before",o)})("touchend",function(){return i._stopInterval()}),be(2,"div",2),_(),g(3,"div",3,4),W("keydown",function(o){return i._handleKeydown(o)}),g(5,"div",5,6),W("cdkObserveContent",function(){return i._onContentChanges()}),g(7,"div",7,8),Bt(9),_(),be(10,"mat-ink-bar"),_()(),g(11,"button",9,10),W("mousedown",function(o){return i._handlePaginatorPress("after",o)})("click",function(){return i._handlePaginatorClick("after")})("touchend",function(){return i._stopInterval()}),be(13,"div",2),_()),2&e&&(bt("mat-tab-header-pagination-disabled",i._disableScrollBefore),v("matRippleDisabled",i._disableScrollBefore||i.disableRipple)("disabled",i._disableScrollBefore||null),f(5),bt("_mat-animation-noopable","NoopAnimations"===i._animationMode),f(6),bt("mat-tab-header-pagination-disabled",i._disableScrollAfter),v("matRippleDisabled",i._disableScrollAfter||i.disableRipple)("disabled",i._disableScrollAfter||null))},dependencies:[xr,wf,zI],styles:[".mat-tab-header{display:flex;overflow:hidden;position:relative;flex-shrink:0}.mat-tab-header-pagination{-webkit-user-select:none;user-select:none;position:relative;display:none;justify-content:center;align-items:center;min-width:32px;cursor:pointer;z-index:2;-webkit-tap-highlight-color:rgba(0,0,0,0);touch-action:none;box-sizing:content-box;background:none;border:none;outline:0;padding:0}.mat-tab-header-pagination::-moz-focus-inner{border:0}.mat-tab-header-pagination-controls-enabled .mat-tab-header-pagination{display:flex}.mat-tab-header-pagination-before,.mat-tab-header-rtl .mat-tab-header-pagination-after{padding-left:4px}.mat-tab-header-pagination-before .mat-tab-header-pagination-chevron,.mat-tab-header-rtl .mat-tab-header-pagination-after .mat-tab-header-pagination-chevron{transform:rotate(-135deg)}.mat-tab-header-rtl .mat-tab-header-pagination-before,.mat-tab-header-pagination-after{padding-right:4px}.mat-tab-header-rtl .mat-tab-header-pagination-before .mat-tab-header-pagination-chevron,.mat-tab-header-pagination-after .mat-tab-header-pagination-chevron{transform:rotate(45deg)}.mat-tab-header-pagination-chevron{border-style:solid;border-width:2px 2px 0 0;height:8px;width:8px}.mat-tab-header-pagination-disabled{box-shadow:none;cursor:default}.mat-tab-list{flex-grow:1;position:relative;transition:transform 500ms cubic-bezier(0.35, 0, 0.25, 1)}.mat-ink-bar{position:absolute;bottom:0;height:2px;transition:500ms cubic-bezier(0.35, 0, 0.25, 1)}.mat-ink-bar._mat-animation-noopable{transition:none !important;animation:none !important}.mat-tab-group-inverted-header .mat-ink-bar{bottom:auto;top:0}.cdk-high-contrast-active .mat-ink-bar{outline:solid 2px;height:0}.mat-tab-labels{display:flex}[mat-align-tabs=center]>.mat-tab-header .mat-tab-labels{justify-content:center}[mat-align-tabs=end]>.mat-tab-header .mat-tab-labels{justify-content:flex-end}.mat-tab-label-container{display:flex;flex-grow:1;overflow:hidden;z-index:1}.mat-tab-list._mat-animation-noopable{transition:none !important;animation:none !important}.mat-tab-label{height:48px;padding:0 24px;cursor:pointer;box-sizing:border-box;opacity:.6;min-width:160px;text-align:center;display:inline-flex;justify-content:center;align-items:center;white-space:nowrap;position:relative}.mat-tab-label:focus{outline:none}.mat-tab-label:focus:not(.mat-tab-disabled){opacity:1}.mat-tab-label.mat-tab-disabled{cursor:default}.cdk-high-contrast-active .mat-tab-label.mat-tab-disabled{opacity:.5}.mat-tab-label .mat-tab-label-content{display:inline-flex;justify-content:center;align-items:center;white-space:nowrap}.cdk-high-contrast-active .mat-tab-label{opacity:1}.mat-tab-label::before{margin:5px}@media(max-width: 599px){.mat-tab-label{min-width:72px}}"],encapsulation:2}),n})(),d$=0;class h${}const p$=da(Go(class{constructor(n){this._elementRef=n}}),"primary");let f$=(()=>{class n extends p${constructor(e,i,r,o){super(e),this._changeDetectorRef=i,this._animationMode=o,this._tabs=new qa,this._indexToSelect=0,this._lastFocusedTabIndex=null,this._tabBodyWrapperHeight=0,this._tabsSubscription=E.EMPTY,this._tabLabelSubscription=E.EMPTY,this._dynamicHeight=!1,this._selectedIndex=null,this.headerPosition="above",this._disablePagination=!1,this._preserveContent=!1,this.selectedIndexChange=new He,this.focusChange=new He,this.animationDone=new He,this.selectedTabChange=new He(!0),this._groupId=d$++,this.animationDuration=r&&r.animationDuration?r.animationDuration:"500ms",this.disablePagination=!(!r||null==r.disablePagination)&&r.disablePagination,this.dynamicHeight=!(!r||null==r.dynamicHeight)&&r.dynamicHeight,this.contentTabIndex=r?.contentTabIndex??null,this.preserveContent=!!r?.preserveContent}get dynamicHeight(){return this._dynamicHeight}set dynamicHeight(e){this._dynamicHeight=lt(e)}get selectedIndex(){return this._selectedIndex}set selectedIndex(e){this._indexToSelect=xs(e,null)}get animationDuration(){return this._animationDuration}set animationDuration(e){this._animationDuration=/^\d+$/.test(e+"")?e+"ms":e}get contentTabIndex(){return this._contentTabIndex}set contentTabIndex(e){this._contentTabIndex=xs(e,null)}get disablePagination(){return this._disablePagination}set disablePagination(e){this._disablePagination=lt(e)}get preserveContent(){return this._preserveContent}set preserveContent(e){this._preserveContent=lt(e)}get backgroundColor(){return this._backgroundColor}set backgroundColor(e){const i=this._elementRef.nativeElement;i.classList.remove(`mat-background-${this.backgroundColor}`),e&&i.classList.add(`mat-background-${e}`),this._backgroundColor=e}ngAfterContentChecked(){const e=this._indexToSelect=this._clampTabIndex(this._indexToSelect);if(this._selectedIndex!=e){const i=null==this._selectedIndex;if(!i){this.selectedTabChange.emit(this._createChangeEvent(e));const r=this._tabBodyWrapper.nativeElement;r.style.minHeight=r.clientHeight+"px"}Promise.resolve().then(()=>{this._tabs.forEach((r,o)=>r.isActive=o===e),i||(this.selectedIndexChange.emit(e),this._tabBodyWrapper.nativeElement.style.minHeight="")})}this._tabs.forEach((i,r)=>{i.position=r-e,null!=this._selectedIndex&&0==i.position&&!i.origin&&(i.origin=e-this._selectedIndex)}),this._selectedIndex!==e&&(this._selectedIndex=e,this._lastFocusedTabIndex=null,this._changeDetectorRef.markForCheck())}ngAfterContentInit(){this._subscribeToAllTabChanges(),this._subscribeToTabLabels(),this._tabsSubscription=this._tabs.changes.subscribe(()=>{const e=this._clampTabIndex(this._indexToSelect);if(e===this._selectedIndex){const i=this._tabs.toArray();let r;for(let o=0;o{i[e].isActive=!0,this.selectedTabChange.emit(this._createChangeEvent(e))})}this._changeDetectorRef.markForCheck()})}_subscribeToAllTabChanges(){this._allTabs.changes.pipe(ni(this._allTabs)).subscribe(e=>{this._tabs.reset(e.filter(i=>i._closestTabGroup===this||!i._closestTabGroup)),this._tabs.notifyOnChanges()})}ngOnDestroy(){this._tabs.destroy(),this._tabsSubscription.unsubscribe(),this._tabLabelSubscription.unsubscribe()}realignInkBar(){this._tabHeader&&this._tabHeader._alignInkBarToSelectedTab()}updatePagination(){this._tabHeader&&this._tabHeader.updatePagination()}focusTab(e){const i=this._tabHeader;i&&(i.focusIndex=e)}_focusChanged(e){this._lastFocusedTabIndex=e,this.focusChange.emit(this._createChangeEvent(e))}_createChangeEvent(e){const i=new h$;return i.index=e,this._tabs&&this._tabs.length&&(i.tab=this._tabs.toArray()[e]),i}_subscribeToTabLabels(){this._tabLabelSubscription&&this._tabLabelSubscription.unsubscribe(),this._tabLabelSubscription=On(...this._tabs.map(e=>e._stateChanges)).subscribe(()=>this._changeDetectorRef.markForCheck())}_clampTabIndex(e){return Math.min(this._tabs.length-1,Math.max(e||0,0))}_getTabLabelId(e){return`mat-tab-label-${this._groupId}-${e}`}_getTabContentId(e){return`mat-tab-content-${this._groupId}-${e}`}_setTabBodyWrapperHeight(e){if(!this._dynamicHeight||!this._tabBodyWrapperHeight)return;const i=this._tabBodyWrapper.nativeElement;i.style.height=this._tabBodyWrapperHeight+"px",this._tabBodyWrapper.nativeElement.offsetHeight&&(i.style.height=e+"px")}_removeTabBodyWrapperHeight(){const e=this._tabBodyWrapper.nativeElement;this._tabBodyWrapperHeight=e.clientHeight,e.style.height="",this.animationDone.emit()}_handleClick(e,i,r){e.disabled||(this.selectedIndex=i.focusIndex=r)}_getTabIndex(e,i){return e.disabled?null:i===(this._lastFocusedTabIndex??this.selectedIndex)?0:-1}_tabFocusChanged(e,i){e&&"mouse"!==e&&"touch"!==e&&(this._tabHeader.focusIndex=i)}}return n.\u0275fac=function(e){return new(e||n)(p(Je),p(St),p(QI,8),p(qn,8))},n.\u0275dir=fe({type:n,inputs:{dynamicHeight:"dynamicHeight",selectedIndex:"selectedIndex",headerPosition:"headerPosition",animationDuration:"animationDuration",contentTabIndex:"contentTabIndex",disablePagination:"disablePagination",preserveContent:"preserveContent",backgroundColor:"backgroundColor"},outputs:{selectedIndexChange:"selectedIndexChange",focusChange:"focusChange",animationDone:"animationDone",selectedTabChange:"selectedTabChange"},features:[Se]}),n})(),m$=(()=>{class n extends f${constructor(e,i,r,o){super(e,i,r,o)}}return n.\u0275fac=function(e){return new(e||n)(p(Je),p(St),p(QI,8),p(qn,8))},n.\u0275cmp=Ue({type:n,selectors:[["mat-tab-group"]],contentQueries:function(e,i,r){if(1&e&&jt(r,KI,5),2&e){let o;ce(o=ue())&&(i._allTabs=o)}},viewQuery:function(e,i){if(1&e&&(De(zW,5),De(GW,5)),2&e){let r;ce(r=ue())&&(i._tabBodyWrapper=r.first),ce(r=ue())&&(i._tabHeader=r.first)}},hostAttrs:[1,"mat-tab-group"],hostVars:4,hostBindings:function(e,i){2&e&&bt("mat-tab-group-dynamic-height",i.dynamicHeight)("mat-tab-group-inverted-header","below"===i.headerPosition)},inputs:{color:"color",disableRipple:"disableRipple"},exportAs:["matTabGroup"],features:[it([{provide:$I,useExisting:n}]),Se],decls:6,vars:7,consts:[[3,"selectedIndex","disableRipple","disablePagination","indexFocused","selectFocusedIndex"],["tabHeader",""],["class","mat-tab-label mat-focus-indicator","role","tab","matTabLabelWrapper","","mat-ripple","","cdkMonitorElementFocus","",3,"id","mat-tab-label-active","ngClass","disabled","matRippleDisabled","click","cdkFocusChange",4,"ngFor","ngForOf"],[1,"mat-tab-body-wrapper"],["tabBodyWrapper",""],["role","tabpanel",3,"id","mat-tab-body-active","ngClass","content","position","origin","animationDuration","preserveContent","_onCentered","_onCentering",4,"ngFor","ngForOf"],["role","tab","matTabLabelWrapper","","mat-ripple","","cdkMonitorElementFocus","",1,"mat-tab-label","mat-focus-indicator",3,"id","ngClass","disabled","matRippleDisabled","click","cdkFocusChange"],[1,"mat-tab-label-content"],[3,"ngIf","ngIfElse"],["tabTextLabel",""],[3,"cdkPortalOutlet"],["role","tabpanel",3,"id","ngClass","content","position","origin","animationDuration","preserveContent","_onCentered","_onCentering"]],template:function(e,i){1&e&&(g(0,"mat-tab-header",0,1),W("indexFocused",function(o){return i._focusChanged(o)})("selectFocusedIndex",function(o){return i.selectedIndex=o}),H(2,YW,5,15,"div",2),_(),g(3,"div",3,4),H(5,QW,1,11,"mat-tab-body",5),_()),2&e&&(v("selectedIndex",i.selectedIndex||0)("disableRipple",i.disableRipple)("disablePagination",i.disablePagination),f(2),v("ngForOf",i._tabs),f(1),bt("_mat-animation-noopable","NoopAnimations"===i._animationMode),f(2),v("ngForOf",i._tabs))},dependencies:[$a,zn,pn,ks,xr,T8,JI,YI,u$],styles:[".mat-tab-group{display:flex;flex-direction:column;max-width:100%}.mat-tab-group.mat-tab-group-inverted-header{flex-direction:column-reverse}.mat-tab-label{height:48px;padding:0 24px;cursor:pointer;box-sizing:border-box;opacity:.6;min-width:160px;text-align:center;display:inline-flex;justify-content:center;align-items:center;white-space:nowrap;position:relative}.mat-tab-label:focus{outline:none}.mat-tab-label:focus:not(.mat-tab-disabled){opacity:1}.mat-tab-label.mat-tab-disabled{cursor:default}.cdk-high-contrast-active .mat-tab-label.mat-tab-disabled{opacity:.5}.mat-tab-label .mat-tab-label-content{display:inline-flex;justify-content:center;align-items:center;white-space:nowrap}.cdk-high-contrast-active .mat-tab-label{opacity:1}@media(max-width: 599px){.mat-tab-label{padding:0 12px}}@media(max-width: 959px){.mat-tab-label{padding:0 12px}}.mat-tab-group[mat-stretch-tabs]>.mat-tab-header .mat-tab-label{flex-basis:0;flex-grow:1}.mat-tab-body-wrapper{position:relative;overflow:hidden;display:flex;transition:height 500ms cubic-bezier(0.35, 0, 0.25, 1)}.mat-tab-body-wrapper._mat-animation-noopable{transition:none !important;animation:none !important}.mat-tab-body{top:0;left:0;right:0;bottom:0;position:absolute;display:block;overflow:hidden;outline:0;flex-basis:100%}.mat-tab-body.mat-tab-body-active{position:relative;overflow-x:hidden;overflow-y:auto;z-index:1;flex-grow:1}.mat-tab-group.mat-tab-group-dynamic-height .mat-tab-body.mat-tab-body-active{overflow-y:hidden}"],encapsulation:2}),n})(),g$=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=ht({type:n}),n.\u0275inj=dt({imports:[$r,Lt,Xa,ha,dd,hb,Lt]}),n})();const _$=["searchProject"],v$=["searchTableSelected"];function y$(n,t){if(1&n){const e=Ie();g(0,"button",17),W("click",function(){return J(e),Z(C(3).searchValue="")}),be(1,"div",18),_()}if(2&n){const e=C(3);f(1),v("ngStyle",e.searchClearImage)}}function b$(n,t){if(1&n&&(g(0,"mat-option",19),j(1),_()),2&n){const e=t.$implicit;v("value",e.value),f(1),ve(e.viewValue)}}function C$(n,t){1&n&&j(0),2&n&&qe(" ",C(3).globals.languageConfLocal.list," ")}const eM=function(n){return{background:n}};function w$(n,t){if(1&n&&be(0,"mat-cell",27),2&n){const e=t.$implicit,i=C(4);v("ngStyle",Wn(1,eM,"no-repeat url("+i.viewIconBaseURL+e.iconURL+")"))}}function E$(n,t){if(1&n&&(g(0,"div",33),j(1),_()),2&n){const e=C().$implicit;f(1),qe(" ",e.name," ")}}function D$(n,t){if(1&n&&(g(0,"div"),j(1),_()),2&n){const e=C().$implicit;f(1),zr(" ",e.number," / ",e.owner," ")}}function S$(n,t){if(1&n){const e=Ie();g(0,"mat-cell",28)(1,"mat-dialog-content",29),H(2,E$,2,1,"div",30),H(3,D$,2,2,"div",1),g(4,"div",31),W("click",function(r){const s=J(e).index;return C(4).addProject(s),Z(r.stopPropagation())})("dblclick",function(r){return r.stopPropagation()}),be(5,"img",32),_()()()}if(2&n){const e=t.$implicit;f(2),v("ngIf",""!==e.name),f(1),v("ngIf",""!==e.number&&""!==e.owner)}}function A$(n,t){}function T$(n,t){if(1&n){const e=Ie();g(0,"mat-row",34),W("click",function(){const o=J(e).$implicit;return Z(C(4).toggleSelection(o))})("dblclick",function(){const o=J(e).$implicit;return Z(C(4).acceptEntryDblClick(o))}),H(1,A$,0,0,"ng-template"),_()}if(2&n){const e=t.$implicit,i=C(4);bt("isSelected",i.selection.isSelected(e)),v("matRippleColor",i.rippleColor)("matRippleCentered",i.centered)("matRippleDisabled",i.disabled)("matRippleUnbounded",i.unbounded)("hidden",!(e.show&&!i.pointerList.has(e.pointer)))}}function x$(n,t){if(1&n&&(g(0,"div")(1,"mat-table",20,21),xi(3,22),H(4,w$,1,3,"mat-cell",23),Ii(),xi(5,24),H(6,S$,6,2,"mat-cell",25),Ii(),H(7,T$,2,7,"mat-row",26),_()()),2&n){const e=C(3);_s(e.tableWrapperClassName),f(1),v("dataSource",e.searchResults),f(6),v("matRowDefColumns",e.displayedColumns)}}function I$(n,t){if(1&n){const e=Ie();g(0,"div"),W("@shake.done",function(){return J(e),Z(C(3).shakeEnd("selectedProdAnimation"))}),j(1),_()}if(2&n){const e=C(3);v("@shake",e.animationStates.selectedProdAnimation),f(1),qe(" ",e.globals.languageConfLocal.selected," ")}}function M$(n,t){if(1&n&&be(0,"mat-cell",27),2&n){const e=t.$implicit,i=C(4);v("ngStyle",Wn(1,eM,"no-repeat url("+i.viewIconBaseURL+e.iconURL+")"))}}function k$(n,t){if(1&n&&(g(0,"div",33),j(1),_()),2&n){const e=C().$implicit;f(1),qe(" ",e.name," ")}}function R$(n,t){if(1&n&&(g(0,"div"),j(1),_()),2&n){const e=C().$implicit;f(1),zr(" ",e.number," / ",e.owner," ")}}function O$(n,t){if(1&n){const e=Ie();g(0,"mat-cell",28)(1,"mat-dialog-content",29),H(2,k$,2,1,"div",30),H(3,R$,2,2,"div",1),g(4,"div",37),W("click",function(r){const s=J(e).index;return C(4).removeProject(s),Z(r.stopPropagation())})("dblclick",function(r){return r.stopPropagation()}),be(5,"img",38),_()()()}if(2&n){const e=t.$implicit;f(2),v("ngIf",""!==e.name),f(1),v("ngIf",""!==e.number&&""!==e.owner)}}function P$(n,t){if(1&n){const e=Ie();g(0,"mat-row",39),W("click",function(){const o=J(e).$implicit;return Z(C(4).toggleSelection(o))})("dblclick",function(){const o=J(e).$implicit;return Z(C(4).acceptEntryDblClick(o))}),_()}if(2&n){const e=t.$implicit,i=C(4);bt("isSelected",i.selection.isSelected(e)),v("matRippleColor",i.rippleColor)("matRippleCentered",i.centered)("matRippleDisabled",i.disabled)("matRippleUnbounded",i.unbounded)}}function L$(n,t){if(1&n&&(g(0,"div")(1,"mat-table",20,35),xi(3,22),H(4,M$,1,3,"mat-cell",23),Ii(),xi(5,24),H(6,O$,6,2,"mat-cell",25),Ii(),H(7,P$,1,6,"mat-row",36),_()()),2&n){const e=C(3);_s(e.tableWrapperClassName),f(1),v("dataSource",e.selectedProjects),f(6),v("matRowDefColumns",e.displayedColumns)}}function N$(n,t){1&n&&(g(0,"div"),j(1),Ze(2,"translate"),_()),2&n&&(f(1),ve(Xe(2,1,"LC53482")))}function F$(n,t){if(1&n&&(g(0,"div"),j(1),_()),2&n){const e=C(3);f(1),qe(" ",e.globals.languageConfLocal.noProjectSelected," ")}}const B$=function(n){return{title:n}},j$=function(n,t,e,i){return{confirm:n,cancel:t,confirmAction:e,cancelAction:i}};function H$(n,t){if(1&n){const e=Ie();g(0,"div"),Wt(1,2),g(2,"div",3)(3,"div",4)(4,"mat-form-field",5)(5,"mat-label"),j(6),Ze(7,"translate"),_(),g(8,"input",6),W("ngModelChange",function(r){return J(e),Z(C(2).searchValue=r)})("keyup.enter",function(){J(e);const r=C(2);return Z(r.search(r.curPointer))}),_(),H(9,y$,2,1,"button",7),_(),g(10,"input",8),W("click",function(){J(e);const r=C(2);return Z(r.search(r.curPointer))}),Ze(11,"translate"),_()(),g(12,"mat-form-field",9)(13,"mat-label"),j(14),Ze(15,"translate"),_(),g(16,"mat-select",10),W("valueChange",function(r){return J(e),Z(C(2).selectedDB=r)})("selectionChange",function(){J(e);const r=C(2);return Z(r.fetchSearch(r.selectedDB,r.curPointer))}),H(17,b$,2,2,"mat-option",11),_()(),g(18,"mat-tab-group",12),W("selectedIndexChange",function(r){return J(e),Z(C(2).curTabIndex=r)}),g(19,"mat-tab"),H(20,C$,1,1,"ng-template",13),H(21,x$,8,5,"div",14),_(),g(22,"mat-tab"),H(23,I$,2,2,"ng-template",13),H(24,L$,8,5,"div",14),_()(),H(25,N$,3,3,"ng-template",null,15,Sn),H(27,F$,2,1,"ng-template",null,16,Sn),_(),Wt(29,2),Ze(30,"translate"),Ze(31,"translate"),_()}if(2&n){const e=Yt(26),i=Yt(28),r=C(2);f(1),v("ngTemplateOutlet",r.modalHeader)("ngTemplateOutletContext",Wn(26,B$,r.globals.languageConfLocal.selectProject)),f(5),ve(Xe(7,16,"LC53489")),f(2),v("ngModel",r.searchValue),f(1),v("ngIf",r.searchValue),f(1),_t("value",Xe(11,18,"LC36251")),f(4),ve(Xe(15,20,"LC53516")),f(2),v("value",r.selectedDB),f(1),v("ngForOf",r.databases),f(1),v("selectedIndex",r.curTabIndex),f(3),v("ngIf",r.searchResults.length>=1&&!r.allHidden)("ngIfElse",e),f(3),v("ngIf",r.selectedProjects.length>=1)("ngIfElse",i),f(5),v("ngTemplateOutlet",r.modalFooter)("ngTemplateOutletContext",Yi(28,j$,Xe(30,22,"LC73135"),Xe(31,24,"LC73136"),r.confirmAction.bind(r),r.cancelAction.bind(r)))}}function V$(n,t){if(1&n&&H(0,H$,32,33,"div",1),2&n){const e=C();v("ngIf",e.projectStatus>0&&!e.docToDoc)}}let U$=(()=>{class n extends Pb{constructor(e,i,r,o,s,a,l){super(e,r,i,o,s,a),this.projectService=l,this.messageEvent=new He,this.animationStates={},this.prefix="Projects: ",this.path="projects",this.searchResults=[],this.selectedProjects=[],this.pointerList=new Set,this.searchResultPointers=[],this.addedContact=!1,this.allHidden=!1,this.docToDoc=!1,this.pointerToName={},this.selectionToPointer={},this.animationStates.selectedProdAnimation="",this.curTabIndex=0,this.projectStatus=-1}ngOnInit(){super.ngOnInit(),this.tableWrapperClassName="Owa"===this.globals.curConnectorType?"tableWrapper":"tableWrapperVerseTabs"}shakeEle(e){this.animationStates[e]="shakestart"===this.animationStates[e]?"shakeend":"shakestart"}shakeEnd(e){this.animationStates[e]="shakeend",this.animationStates[e+"inProg"]=!1}getTemplate(){return this.modalTemp}addProject(e){if(this.searchResults.length>=e){const i=this.searchResults[e];this.searchResults[e].show=!1,i.formerIndex=e,this.shakeEle("selectedProdAnimation"),this.selectedProjects.push(i),this.renderSelectedView()}this.updateSelectedPointer(),this.checkIfAllHidden()}removeProject(e){const i=this.selectedProjects.splice(e,1)[0];void 0!==i.formerIndex&&(this.searchResults[i.formerIndex].show=!0),this.renderSelectedView(),this.updateSelectedPointer(),this.checkIfAllHidden()}renderSelectedView(){this.selectedProjTable&&this.selectedProjTable.renderRows()}generateSelectionArr(e){const i=this.addressService.currentAddressData;if(!this.addedContact){const r={value:i.name,viewValue:i.name,pointer:i.pointer};this.curPointer=i.pointer,this.selectionToPointer[i.name]=this.curPointer,this.pointerToName[this.curPointer]=i.name,this.databases.push(r)}for(const r of e)this.databases.push({value:r.alias,viewValue:r.title});this.databases.length>0&&(this.selectedDB=this.databases[0].value,this.fetchSearch(null,i.pointer))}search(e){this.curTabIndex=0,super.search(e)}fetchDBs(){const e={};this.data.passedData.docPointer?e.pointer=this.data.passedData.docPointer:e.onlyOptions=!0;const i=new $t({fromObject:e});this.connection.getReqModal("projects",i).subscribe(r=>{"projectPointers"in r?(this.projectStatus=Number(r.projectStatus),0===this.projectStatus?this.openAnotherModal(this.next,this.data.passedData):Array.isArray(r.assignedProjects)&&r.assignedProjects.length>0?this.handleDocToDocPhases(r.assignedProjects,r.useOpportunityProjects):this.generateSelectionArr(r.databases)):this.openAnotherModal(this.next,this.data.passedData)})}fetchSearch(e,i){return i&&this.pointerToName[i]!==e&&(this.curPointer=void 0),e&&this.selectionToPointer[e]&&(i=this.selectionToPointer[e]),super.fetchSearch(e,i)}handleResult(e){this.updateSelectedPointer(),null!=e.projects&&Array.isArray(e.projects)&&e.projects.length>0?(this.searchResults=e.projects,this.searchResultPointers=e.projectPointers):this.searchResults=[],this.checkIfAllHidden()}updateSelectedPointer(){this.pointerList.clear();for(const e of this.selectedProjects)this.pointerList.add(e.pointer)}confirmAction(){this.selectedProjects.length<1&&2===this.projectStatus?this.translate.get("LC03593").subscribe(e=>{this.messageService.showError(e)}):this.projectService.handlePhases(Array.from(this.pointerList)).subscribe(e=>{Array.isArray(e)&&this.handlePhases(e).subscribe(()=>{this.data.passedData.projectPointers=Array.from(this.pointerList),this.openAnotherModal(this.next,this.data.passedData)})})}handleDocToDocPhases(e,i=!1){this.docToDoc=!0,this.projectService.handleDocToDocPhases(e,i).subscribe(r=>{r.projects.forEach(o=>this.pointerList.add(o)),this.handlePhases(r.phasesToCheck).subscribe(()=>{this.data.passedData.projectPointers=Array.from(this.pointerList),this.openAnotherModal(this.next,this.data.passedData)})})}handlePhases(e){return new b(i=>{if(Array.isArray(e)&&e.length>0){const r=e.splice(0,1)[0];r&&r.projectphases.length>0?this.openAnotherModal("projectPhase",{projectInfo:r})?.beforeClosed().subscribe(s=>{s?(s.phases&&Array.isArray(s.phases)&&s.phases.length>0&&(this.pointerList.has(s.parentPointer)&&this.pointerList.delete(s.parentPointer),s.phases.forEach(l=>this.pointerList.add(l))),this.handlePhases(e).subscribe(()=>{i.next(),i.complete()})):i.complete()}):(i.next(),i.complete())}else i.next(),i.complete()})}compareProject(e,i){return e.pointer===i.pointer}checkIfAllHidden(){this.allHidden=this.projectService.checkIfAllHidden(Array.from(this.pointerList),this.searchResultPointers)}}return n.\u0275fac=function(e){return new(e||n)(p(Ut),p(In),p(ot),p(tn),p(wd),p(Ps),p(PW))},n.\u0275cmp=Ue({type:n,selectors:[["app-search-project"]],viewQuery:function(e,i){if(1&e&&(De(_$,7),De(v$,5)),2&e){let r;ce(r=ue())&&(i.modalTemp=r.first),ce(r=ue())&&(i.selectedProjTable=r.first)}},inputs:{data:"data"},outputs:{messageEvent:"messageEvent"},features:[Se],decls:2,vars:0,consts:[["searchProject",""],[4,"ngIf"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"modalBody"],[1,"searchInputWrapper"],[1,"searchInput"],["matInput","","type","text",3,"ngModel","ngModelChange","keyup.enter"],["matSuffix","","aria-label","Clear",3,"click",4,"ngIf"],["id","searchButton","type","button",1,"buttonSilverMiddle",3,"value","click"],["appearance","standard",1,"databaseSearchSelect"],[3,"value","valueChange","selectionChange"],[3,"value",4,"ngFor","ngForOf"],["mat-stretch-tabs","",3,"selectedIndex","selectedIndexChange"],["mat-tab-label",""],[3,"class",4,"ngIf","ngIfElse"],["noResult",""],["noSelection",""],["matSuffix","","aria-label","Clear",3,"click"],[1,"modalCloseIcon",3,"ngStyle"],[3,"value"],[1,"searchTable",3,"dataSource"],["searchTableList",""],["matColumnDef","icon"],["class","searchIcon",3,"ngStyle",4,"matCellDef"],["matColumnDef","display"],["class","searchDisplay",4,"matCellDef"],["matRipple","","class","searchRow projectButtonContainer",3,"matRippleColor","matRippleCentered","matRippleDisabled","matRippleUnbounded","hidden","isSelected","click","dblclick",4,"matRowDef","matRowDefColumns"],[1,"searchIcon",3,"ngStyle"],[1,"searchDisplay"],[1,"no-select"],["class","bold",4,"ngIf"],[1,"overlay-list",3,"click","dblclick"],["src","assets/images/vwicn112.png",1,"projectButton"],[1,"bold"],["matRipple","",1,"searchRow","projectButtonContainer",3,"matRippleColor","matRippleCentered","matRippleDisabled","matRippleUnbounded","hidden","click","dblclick"],["searchTableSelected",""],["matRipple","","class","searchRow projectButtonContainer",3,"matRippleColor","matRippleCentered","matRippleDisabled","matRippleUnbounded","isSelected","click","dblclick",4,"matRowDef","matRowDefColumns"],[1,"overlay-selected",3,"click","dblclick"],["src","assets/images/vwicn081.png",1,"projectButton"],["matRipple","",1,"searchRow","projectButtonContainer",3,"matRippleColor","matRippleCentered","matRippleDisabled","matRippleUnbounded","click","dblclick"]],template:function(e,i){1&e&&H(0,V$,1,1,"ng-template",null,0,Sn)},dependencies:[zn,pn,Ji,ra,Ar,Kr,wo,yd,Ir,Pi,Lb,Ko,cr,Mr,Jf,xd,Td,Zf,Id,Xf,xr,m$,e$,KI,ki],styles:[".searchInputWrapper[_ngcontent-%COMP%]{display:flex;flex-direction:row;align-items:center;justify-content:space-between}.databaseSearchSelect[_ngcontent-%COMP%]{width:100%}.searchInput[_ngcontent-%COMP%]{width:calc(100% - 70px);display:block;padding-bottom:0!important}.searchIcon[_ngcontent-%COMP%]{width:30px;padding:0 10px 0 0!important;background-position:40% 50%!important}.searchRow[_ngcontent-%COMP%] .searchIcon[_ngcontent-%COMP%], .searchRow[_ngcontent-%COMP%] .searchDisplay[_ngcontent-%COMP%], .searchRow[_ngcontent-%COMP%]{border-bottom:0px}.searchRow[_ngcontent-%COMP%]:nth-child(2n){background:#f2f2f2}.isSelected[_ngcontent-%COMP%]{background:rgb(224,239,255)!important}.searchRow[_ngcontent-%COMP%]{cursor:pointer;overflow:hidden;padding-right:5px}.searchRow[_ngcontent-%COMP%]:hover{background:rgba(224,239,255,.4)}.searchDisplay[_ngcontent-%COMP%], .searchTable[_ngcontent-%COMP%]{width:100%}.tableWrapper[_ngcontent-%COMP%], .tableWrapperVerse[_ngcontent-%COMP%], .tableWrapperVerseTabs[_ngcontent-%COMP%]{overflow:auto}.tableWrapper[_ngcontent-%COMP%]{max-height:50vh}.tableWrapperVerse[_ngcontent-%COMP%]{max-height:45vh}.tableWrapperVerseTabs[_ngcontent-%COMP%]{max-height:calc(45vh - 48px)}.overlay-list[_ngcontent-%COMP%], .overlay-selected[_ngcontent-%COMP%]{position:absolute;bottom:0;left:100%;right:0;overflow:hidden;width:0;height:100%;transition:.5s ease;box-shadow:none}.overlay-list[_ngcontent-%COMP%]{background-color:#a1f79b}.overlay-selected[_ngcontent-%COMP%]{background-color:#ff6a6a}.projectButtonContainer[_ngcontent-%COMP%]:hover .overlay-list[_ngcontent-%COMP%], .projectButtonContainer[_ngcontent-%COMP%]:hover .overlay-selected[_ngcontent-%COMP%]{width:30px;left:calc(100% - 30px);box-shadow:0 0 10px #999}.projectButton[_ngcontent-%COMP%]{margin:0;position:absolute;top:50%;left:calc(50% - 9px);transform:translateY(-50%)}#searchButton[_ngcontent-%COMP%]{height:100%;padding:4px;margin:0 0 5px;float:right;font-weight:700;display:flex}"],data:{animation:[So("shake",[li("shakestart",qt({transform:"scale(1)"})),li("shakeend",qt({transform:"scale(1)"})),bi("shakestart => shakeend",Oi("1000ms ease-in",V6([qt({transform:"translate3d(-4px, 0, 0)",offset:.1}),qt({transform:"translate3d(4px, 0, 0)",offset:.2}),qt({transform:"translate3d(-4px, 0, 0)",offset:.3}),qt({transform:"translate3d(4px, 0, 0)",offset:.4}),qt({transform:"translate3d(-4px, 0, 0)",offset:.5}),qt({transform:"translate3d(4px, 0, 0)",offset:.6}),qt({transform:"translate3d(-4px, 0, 0)",offset:.7}),qt({transform:"translate3d(4px, 0, 0)",offset:.8}),qt({transform:"translate3d(-4px, 0, 0)",offset:.9})])))])]}}),n})();const q$=["projPhases"],z$=["selection"];function G$(n,t){if(1&n&&(g(0,"mat-list-option",5),j(1),_()),2&n){const e=t.$implicit;_t("value",e.pointer),_t("selected",e.selected),f(1),qe(" ",e.name," ")}}const W$=function(n){return{title:n}},$$=function(n,t,e,i){return{confirm:n,cancel:t,confirmAction:e,cancelAction:i}};function K$(n,t){if(1&n&&(Wt(0,1),Ze(1,"translate"),g(2,"div",2)(3,"p"),j(4),Ze(5,"translate"),_(),g(6,"p"),j(7),_(),g(8,"mat-selection-list",null,3),H(10,G$,2,3,"mat-list-option",4),_()(),Wt(11,1),Ze(12,"translate"),Ze(13,"translate")),2&n){const e=C();v("ngTemplateOutlet",e.modalHeader)("ngTemplateOutletContext",Wn(15,W$,Xe(1,7,"LC03411"))),f(4),ve(Xe(5,9,"LC03410")),f(3),ve(e.projectInfo.projectDisplay),f(3),v("ngForOf",e.projectInfo.projectphases),f(1),v("ngTemplateOutlet",e.modalFooter)("ngTemplateOutletContext",Yi(17,$$,Xe(12,11,"LC73135"),Xe(13,13,"LC73136"),e.confirmAction.bind(e),e.cancelAction.bind(e)))}}let Y$=(()=>{class n extends Yr{constructor(e,i,r){super(e),this.translate=e,this.messageService=i,this.globals=r}ngOnInit(){this.projectInfo=this.data.passedData.projectInfo}confirmAction(){const e=this.createResponse(this.convertToPointerArray(this.selection.selectedOptions));this.data.closeModal(e)}convertToPointerArray(e){const i=[];for(const r of e.selected)i.push(r.value);return i.length<1&&i.push(this.projectInfo.projectPointer),i}createResponse(e){const i={};return i.parentPointer=this.projectInfo.projectPointer,i.phases=e,i}}return n.\u0275fac=function(e){return new(e||n)(p(Ut),p(tn),p(ot))},n.\u0275cmp=Ue({type:n,selectors:[["app-select-create-label"]],viewQuery:function(e,i){if(1&e&&(De(q$,7),De(z$,5)),2&e){let r;ce(r=ue())&&(i.modalTemp=r.first),ce(r=ue())&&(i.selection=r.first)}},features:[Se],decls:2,vars:0,consts:[["projPhases",""],[3,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"modalBody","phaseSelection"],["selection",""],["checkboxPosition","before",3,"value","selected",4,"ngFor","ngForOf"],["checkboxPosition","before",3,"value","selected"]],template:function(e,i){1&e&&H(0,K$,14,22,"ng-template",null,0,Sn)},dependencies:[zn,Ji,$o,Ls,ki]}),n})();const Q$=["selMailAddr"],J$=["selAddr"];function Z$(n,t){if(1&n&&(g(0,"div"),j(1),_()),2&n){const e=C().$implicit;f(1),qe(" ",e.additional.database,": ")}}function X$(n,t){if(1&n&&(g(0,"div"),j(1),_()),2&n){const e=C().$implicit;f(1),qe("(",e.companyName,")")}}function eK(n,t){if(1&n){const e=Ie();g(0,"mat-list-option",6),W("dblclick",function(){const o=J(e).index;return Z(C(2).changeSelectedIndex(o))}),g(1,"div",7),H(2,Z$,2,1,"div",8),g(3,"div"),j(4),_(),H(5,X$,2,1,"div",8),_()()}if(2&n){const e=t.$implicit,i=t.index,r=C(2);_t("value",i),v("selected",i===r.addressService.addressIndex),f(2),v("ngIf",e.additional&&e.additional.database),f(2),ve(e.name),f(1),v("ngIf",e.companyName)}}const tK=function(n){return{title:n}},nK=function(n,t,e,i){return{confirm:n,cancel:t,confirmAction:e,cancelAction:i}};function iK(n,t){if(1&n&&(Wt(0,1),Ze(1,"translate"),g(2,"div",2)(3,"mat-selection-list",3,4),H(5,eK,6,5,"mat-list-option",5),_()(),Wt(6,1),Ze(7,"translate"),Ze(8,"translate")),2&n){const e=C();v("ngTemplateOutlet",e.modalHeader)("ngTemplateOutletContext",Wn(12,tK,Xe(1,6,"LC52163"))),f(3),v("multiple",!1),f(2),v("ngForOf",e.addresses),f(1),v("ngTemplateOutlet",e.modalFooter)("ngTemplateOutletContext",Yi(14,nK,Xe(7,8,"LC73135"),Xe(8,10,"LC73136"),e.confirmAction.bind(e),e.cancelAction.bind(e)))}}let rK=(()=>{class n extends Yr{constructor(e,i,r,o){super(i),this.globals=e,this.translate=i,this.addressService=r,this.reloadService=o}ngOnInit(){super.ngOnInit(),this.checkForAddressData()}checkForAddressData(){this.addressService.processAddresses().subscribe({next:e=>{this.addresses=e},error:()=>{},complete:()=>{}})}changeSelectedIndex(e){this.addressService.addressIndex=e,this.confirmAction(e)}confirmAction(e){e||null!=this.selection._value&&Array.isArray(this.selection._value)&&this.selection._value.length>0&&(this.addressService.addressIndex=parseInt(this.selection._value[0],10)),this.closeAll()}}return n.\u0275fac=function(e){return new(e||n)(p(ot),p(Ut),p(Ps),p($b))},n.\u0275cmp=Ue({type:n,selectors:[["app-select-address"]],viewQuery:function(e,i){if(1&e&&(De(Q$,7),De(J$,5)),2&e){let r;ce(r=ue())&&(i.modalTemp=r.first),ce(r=ue())&&(i.selection=r.first)}},features:[Se],decls:2,vars:0,consts:[["selMailAddr",""],[3,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"modalBody"],[3,"multiple"],["selAddr",""],["checkboxPosition","after","class","addrSel",3,"selected","value","dblclick",4,"ngFor","ngForOf"],["checkboxPosition","after",1,"addrSel",3,"selected","value","dblclick"],[1,"listWrapper"],[4,"ngIf"]],template:function(e,i){1&e&&H(0,iK,9,19,"ng-template",null,0,Sn)},dependencies:[zn,pn,Ji,$o,Ls,ki],styles:["mat-list-option[_ngcontent-%COMP%]:nth-child(2n){background:#f2f2f2}.modalBody[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]{overflow:auto;max-height:60vh}.modalBody[_ngcontent-%COMP%] > mat-selection-list[_ngcontent-%COMP%]{padding-top:0}"]}),n})();const oK=["login"],sK=function(){return{title:"Login"}},aK=function(n,t,e,i){return{confirm:n,cancel:t,confirmAction:e,cancelAction:i}};function lK(n,t){if(1&n){const e=Ie();Wt(0,1),g(1,"div",2)(2,"div",3)(3,"mat-form-field",4)(4,"mat-label"),j(5),Ze(6,"translate"),_(),g(7,"input",5,6),W("ngModelChange",function(r){return J(e),Z(C().uname=r)})("focus",function(){return J(e),Z(Yt(8).select())})("keyup.enter",function(){return J(e),Z(Yt(14).focus())}),_()(),g(9,"mat-form-field",4)(10,"mat-label"),j(11),Ze(12,"translate"),_(),g(13,"input",7,8),W("ngModelChange",function(r){return J(e),Z(C().pwd=r)})("focus",function(){return J(e),Z(Yt(14).select())})("keyup.enter",function(){return J(e),Z(C().confirmAction())}),_()()()(),Wt(15,1),Ze(16,"translate"),Ze(17,"translate")}if(2&n){const e=C();v("ngTemplateOutlet",e.modalHeader)("ngTemplateOutletContext",Tv(16,sK)),f(5),ve(Xe(6,8,"username")),f(2),v("ngModel",e.uname),f(4),ve(Xe(12,10,"password")),f(2),v("ngModel",e.pwd),f(2),v("ngTemplateOutlet",e.modalFooter)("ngTemplateOutletContext",Yi(17,aK,Xe(16,12,"LC73135"),Xe(17,14,"LC73136"),e.confirmAction.bind(e),e.cancelAction.bind(e)))}}let cK=(()=>{class n extends Yr{constructor(e,i,r,o){super(e),this.translate=e,this.connection=i,this.messageService=r,this.globals=o}ngOnInit(){}checkIfEmpty(e,i){return Ae(function*(){return!e||""===e||!i||""===i})()}confirmAction(){var e=this;return Ae(function*(){(yield e.checkIfEmpty(e.uname.trim(),e.pwd.trim()))?e.messageService.showError(e.globals.languageConfLocal.inputMissing):(yield e.connection.login(e.uname,e.pwd))&&e.closeAll()})()}}return n.\u0275fac=function(e){return new(e||n)(p(Ut),p(In),p(tn),p(ot))},n.\u0275cmp=Ue({type:n,selectors:[["app-login"]],viewQuery:function(e,i){if(1&e&&De(oK,7),2&e){let r;ce(r=ue())&&(i.modalTemp=r.first)}},features:[Se],decls:2,vars:0,consts:[["login",""],[3,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"modalBody"],[1,"inputWrapper"],[1,"loginInput"],["matInput","","type","text",3,"ngModel","ngModelChange","focus","keyup.enter"],["userInput",""],["matInput","","type","password",3,"ngModel","ngModelChange","focus","keyup.enter"],["passwordInput",""]],template:function(e,i){1&e&&H(0,lK,18,22,"ng-template",null,0,Sn)},dependencies:[Ji,Ar,Kr,wo,Ir,Pi,Mr,ki],styles:[".loginInput[_ngcontent-%COMP%]{width:100%;display:block;padding-bottom:0!important}"]}),n})(),hl=(()=>{class n{constructor(e,i,r){this.waitList=e,this.globals=i,this.matDialog=r,this.modalTypeSource=new N,this.currentType=this.modalTypeSource.asObservable(),this.activeModals=[]}changeType(e){this.modalTypeSource.next(e)}setModalHeader(e){this.modalHeader=e}setModalFooter(e){this.modalFooter=e,this.modalItems=this.getModalItems(),this.waitList.accessWaitList("modalDesign").forEach(i=>{i.next(this.modalItems),i.complete(),this.waitList.clearWaitList("modalDesign")})}waitForModalDesign(){return new b(e=>{this.waitList.addToWaitList("modalDesign",e)})}getModalItems(){return this.modalItems?this.modalItems:{chooseOfficeDB:new vi(e9,this.initModalData("searchProject")),selectContact:new vi(fC,this.initModalData()),searchContact:new vi(aI,this.initModalData("chooseOfficeDB")),searchTemplate:new vi(EW,this.initModalData("chooseOfficeDB")),searchProject:new vi(U$,this.initModalData("documentFile")),createContact:new vi(Qz,this.initModalData()),createTicket:new vi(r7,this.initModalData()),documentFile:new vi(UG,this.initModalData()),createAddressCompany:new vi(fC,this.initModalData("createContact",{createType:"company"})),createAddressToCompany:new vi(aI,this.initModalData("createContact",{type:"company",createType:"toCompany"})),createAddressPerson:new vi(fC,this.initModalData("createContact",{createType:"person"})),createLabel:new vi(nW,this.initModalData(null,{currentModal:this.newActive})),selectMailAddress:new vi(OW,this.initModalData()),duplicate:new vi(aW,this.initModalData()),projectPhase:new vi(Y$,this.initModalData(null,{currentModal:this.newActive})),addressSelection:new vi(rK,this.initModalData(null,{currentModal:this.newActive})),login:new vi(cK,this.initModalData())}}addActiveModal(e){this.globals.modalCacheFlag=!0,this.activeModals.push(e)}closeActiveModal(e){const i=this.activeModals.pop();i&&i.close(e),this.activeModals.length<1&&(this.globals.modalCacheFlag=!1,this.globals.clearModalTemps())}closeAllModals(){this.matDialog.closeAll(),this.activeModals=[]}initWebIntModal(){return this.modalHeader}get modalItemsPub(){return this.modalItems}get newActive(){return this.activeModals[this.activeModals.length-1]}initModalData(e=null,i,r=this.modalHeader,o=this.modalFooter){const s={nextType:e,modalHeader:r,modalFooter:o,closeModal:this.closeActiveModal.bind(this),closeAllModal:this.closeAllModals.bind(this),modalItems:this.modalItems};if(i)for(const a of Object.keys(i))s[a]=i[a];return s}}return n.\u0275fac=function(e){return new(e||n)(M(Ri),M(ot),M(Wo))},n.\u0275prov=ge({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),tM=(()=>{class n{constructor(e){this.globals=e}waitForConnectorType(){return new b(e=>{null!=this.globals.curConnectorType&&(e.next(this.globals.curConnectorType),e.complete())})}get preview(){return"preview"in this.postData?this.postData.preview:null}}return n.\u0275fac=function(e){return new(e||n)(M(ot))},n.\u0275prov=ge({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();var Jd=G(4856);let uK=(()=>{class n extends tM{constructor(e,i,r){super(e),this.messageService=i,this.waitList=r,this.globals.curConnectorType="Owa",this.globals.graphRequired=!0,this.savedAttachments={},Office.context.platform!==Office.PlatformType.OfficeOnline&&(this.globals.isClient=!0),this.waitList.notifyWaitList("platform",!0),Office.context.mailbox.addHandlerAsync(Office.EventType.ItemChanged,this.itemChangeHandler.bind(this))}get isMailAlreadyDoc(){return!(!this.postData.ticketAlreadyDoc&&!this.postData.officeAlreadyDoc)}get curPostData(){return this.postData}get data(){return this.appData}set data(e){this.appData=e,this.initGlobalValues()}set alreadyDocumented(e){e.ticketAlreadyDoc&&(this.postData.ticketAlreadyDoc=e.ticketAlreadyDoc),e.officeAlreadyDoc&&(this.postData.officeAlreadyDoc=e.officeAlreadyDoc),this.setOpenExtension(this.postData.graphMailID,this.postData.ticketAlreadyDoc,this.postData.officeAlreadyDoc)}waitForCSS(){return new b(e=>{e.complete()})}getData(){return this.initGlobalValues()}checkMailType(){throw new Error("Method not implemented.")}adjustAttachments(){this.setAttachments(this.globals.curOWAMessageID)}updateAddressInfo(e){this.updateViewFunc=e}getPostData(){var e=this;return Ae(function*(){if(e.globals.attachmentsReady=!1,Office.context.mailbox.item){const i=Office.CoercionType.Text;Office.context.mailbox.item&&Office.context.mailbox.item?.body.getAsync(i,function(){var r=Ae(function*(o){if(o.status===Office.AsyncResultStatus.Failed)e.messageService.showError(o.error.message,o.error.name,!0);else if("gi"===e.globals.system?yield e.setPostDataGI(o,i):yield e.setPostDataBA(o,i),e.globals.graphLoaded){const s=yield e.getMimeMessage();e.globals.curOWAMessageID=s.id,e.setAttachments(s.id)}else e.waitForGraph().subscribe(Ae(function*(){const s=yield e.getMimeMessage();e.globals.curOWAMessageID=s.id,e.setAttachments(s.id)}))});return function(o){return r.apply(this,arguments)}}())}return!0})()}adjustSnackPosition(){}filterObjectEntryOfArr(e){const i=[];for(const r of e)i.push(r.emailAddress);return i}setPostDataBA(e,i){var r=this;return Ae(function*(){""===r.appData.conversationId||(r.postData={fromMail:r.appData.from.emailAddress,toMail:r.filterObjectEntryOfArr(r.appData.to),ccMail:r.filterObjectEntryOfArr(r.appData.cc),bccMail:r.filterObjectEntryOfArr(r.appData.bcc),messageID:r.appData.internetMessageId,subject:r.appData.subject,body:{htmlBody:!!i.toString().toLowerCase().includes("html"),text:btoa(e.value)},type:i.toString(),date:new Date(r.appData.dateTimeModified).toISOString(),creationDate:new Date(r.appData.dateTimeModified).getTime(),changingDate:new Date(r.appData.dateTimeModified).getTime(),attachments:[],officeAlreadyDoc:!1,ticketAlreadyDoc:!1,graphMailID:"",mailType:"Incoming"})})()}setPostDataGI(e,i){var r=this;return Ae(function*(){r.postData={to:r.appData.to,from:r.appData.from,cc:r.appData.cc,subject:r.appData.subject,sender:r.appData.sender,contentType:i,body:e.value,date:new Date(r.appData.dateTimeModified).getTime(),messageID:r.appData.internetMessageId,preview:"",isIncoming:!0,attachments:[],officeAlreadyDoc:!1,ticketAlreadyDoc:!1,graphMailID:""}})()}itemChangeHandler(){return Ae(function*(){window.location.reload()})()}checkDocumentedFlag(e){var i=this;return Ae(function*(){void 0!==e&&null!=e&&(yield i.graphClient.api(`/me/messages/${e}/extensions/GI8.BM`).responseType(Rr.RAW).get().then(function(){var o=Ae(function*(s){404===s.status?i.setOpenExtension(e):200===s.status?(s=yield s.json(),i.postData.officeAlreadyDoc=s.officeAlreadyDoc,i.postData.ticketAlreadyDoc=s.ticketAlreadyDoc):(s=yield s.json(),i.messageService.showError(s.error.message+" "+i.globals.languageConfLocal.graphRelog,"GRAPH ERROR",!0))});return function(s){return o.apply(this,arguments)}}()))})()}setOpenExtension(e,i=!1,r=!1){return Ae(function*(){})()}getMimeMessage(){var e=this;return Ae(function*(){let i=null,r=yield e.graphClient.api("/me/messages").filter(`internetMessageId eq '${e.appData.internetMessageId}'`).get();r=r.value,i=Array.isArray(r)&&r.length>0&&r.length>=1?r[0]:r;try{e.checkDocumentedFlag(i.id),i.length>0&&("gi"===e.globals.system?yield e.setMimeMessageDataGI(i):yield e.setMimeMessageDataBA(i))}catch(o){console.error(o),i=""}return i})()}setMimeMessageDataGI(e){var i=this;return Ae(function*(){i.postData=i.postData,i.postData.graphMailID=e.id,i.postData.date=new Date(e.sentDateTime).getTime(),i.postData.body=e.body.content,i.postData.contentType=e.body.contentType,i.postData.preview=(0,Jd.convert)(e.body.content,{preserveNewlines:!1,wordwrap:null}).trim().replace(/^\xa0+/gm,"").replace(/(\r\n|\r|\n){2,}/gm,"\n\n"),i.setIncomingOutgoing(e)})()}setMimeMessageDataBA(e){var i=this;return Ae(function*(){i.postData=i.postData,i.postData.graphMailID=e.id,i.postData.date=new Date(e.sentDateTime).toISOString(),i.postData.creationDate=new Date(e.createdDateTime).getTime(),i.postData.changingDate=new Date(e.lastModifiedDateTime).getTime(),i.postData.body={htmlBody:!!e.body.contentType.toLowerCase().includes("html"),text:Buffer.from(e.body.content).toString("base64")},i.postData.type=e.body.contentType,i.setIncomingOutgoing(e)})()}setIncomingOutgoing(e){var i=this;return Ae(function*(){const o=Office.context.mailbox.userProfile.emailAddress;e.sender.emailAddress.address.toLowerCase()===o.toLowerCase()?"gi"===i.globals.system?(i.postData=i.postData,i.postData.isIncoming=!1):(i.postData=i.postData,i.postData.mailType="Outgoing"):"gi"===i.globals.system?(i.postData=i.postData,i.postData.isIncoming=!0):(i.postData=i.postData,i.postData.mailType="Incoming")})()}setAttachments(e){var i=this;return Ae(function*(){i.globals.attachmentsReady=!0})()}waitForGraph(){return new b(e=>{this.waitList.addToWaitList("graphLoaded",e)})}initGlobalValues(){this.appData=Office.context.mailbox.item}}return n.\u0275fac=function(e){return new(e||n)(M(ot),M(tn),M(Ri))},n.\u0275prov=ge({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),nM=(()=>{class n extends tM{constructor(e,i,r,o){super(i),this.translate=e,this.globals=i,this.messageService=r,this.connection=o,this.adjustSnackPosition(),this.globals.curConnectorType="Verse",this.globals.curConnector=this}waitForCSS(){return new b(e=>{e.next({main:{},overflowContainer:{}}),e.complete()})}getData(){throw new Error("Method not implemented.")}checkMailType(){throw new Error("Method not implemented.")}updateAddressInfo(e){throw new Error("Method not implemented.")}adjustAttachments(){throw new Error("Method not implemented.")}set data(e){this.appData=e,this.initGlobalValues()}get data(){return this.appData}set alreadyDocumented(e){}get isMailAlreadyDoc(){return!1}get curPostData(){return this.postData}adjustSnackPosition(){this.messageService.changeClass("snackbar-bottom-center-verse")}getPostData(){var e=this;return Ae(function*(){e.connection.getReq("user",null,!0).subscribe(i=>{const r=e.appData.context;let o="";return r.body&&(o=r.body),"com.ibm.verse.widget.action.mailRead"===e.appData.actionId?e.postData={to:r.recipientTo,from:r.sender,cc:r.recipientCC,subject:r.subject,sender:r.sender,contentType:"text/html",body:o,preview:(0,Jd.convert)(o,{preserveNewlines:!1,wordwrap:null}).trim().replace(/^\xa0+/gm,"").replace(/(\r\n|\r|\n){2,}/gm,"\n\n"),date:new Date(r.timeSent).getTime(),messageID:r.unid,isIncoming:!(i.mail.toLowerCase()===r.sender.emailAddress.toLowerCase()||void 0!==r.sender.notesAddress&&i.mail.toLowerCase()===r.sender.notesAddress.toLowerCase())}:"com.ibm.verse.ext.person.action"===e.appData.actionId?e.postData={to:[null],from:r.profile.primaryEmail,cc:[null],subject:"",sender:r.profile.primaryEmail,contentType:"text/html",body:o,preview:(0,Jd.convert)(o,{preserveNewlines:!1,wordwrap:null}).trim().replace(/^\xa0+/gm,"").replace(/(\r\n|\r|\n){2,}/gm,"\n\n"),date:Date.now(),messageID:"no-unid",isIncoming:!1}:"com.ibm.verse.widget.action.mailCompose"===e.appData.actionId&&(e.postData={to:r.recipientTo,from:r.sender,cc:r.recipientCC,subject:r.subject,sender:r.sender,contentType:"text/html",body:o,preview:(0,Jd.convert)(o,{preserveNewlines:!1,wordwrap:null}).trim().replace(/^\xa0+/gm,"").replace(/(\r\n|\r|\n){2,}/gm,"\n\n"),date:Date.now(),messageID:"no-unid",isIncoming:!1}),!0})})()}initGlobalValues(){const e=this.appData.context;return"com.ibm.verse.widget.action.mailRead"===this.appData.actionId?(this.globals.actionsAllowed=!0,this.globals.curSubject=e.subject,this.globals.curMailUnid=e.unid,this.globals.curMailAddr=this.globals.ownMailAddr===e.sender.emailAddress?e.recipientTo[0]:e.sender.emailAddress,this.globals.curTo=e.recipientTo,this.globals.curFrom=e.sender,this.globals.curCC=e.recipientCC,this.globals.curMailAddrCount=e.recipientTo.length+e.recipientCC.length):"com.ibm.verse.ext.person.action"===this.appData.actionId?(this.globals.actionsAllowed=!1,this.globals.curSubject="",this.globals.curMailUnid="no-unid",this.globals.curMailAddr=e.profile.primaryEmail,this.globals.curTo=[],this.globals.curFrom={emailAddress:e.profile.primaryEmail},this.globals.curCC=[],this.globals.curMailAddrCount=0):"com.ibm.verse.widget.action.mailCompose"===this.appData.actionId&&(this.globals.actionsAllowed=!1,this.globals.createAllowed=!0,this.globals.curSubject=e.subject,this.globals.curMailUnid="no-unid",this.globals.curFrom=e.sender[0],this.composeFilterMails(e.recipientTo,e.recipientCC,e.sender[0])),this.getPostData()}composeFilterMails(e,i,r){const o=e.length,s=i.length,a=o+s;if(o<1&&a>0)this.translate.get("LC53485").subscribe(l=>{this.translate.get("to").subscribe(c=>{l=l.replace("{FIELD}",c),this.messageService.showError(l)})});else if(o<1)this.translate.get("LC53484").subscribe(l=>{this.messageService.showError(l)});else if(1===a&&e[0].emailAddress.includes("@"))this.globals.curMailAddr=e[0].emailAddress,this.globals.curTo=[],this.globals.curCC=[],this.globals.curMailAddrCount=0;else{let c,l=!1;const u=[];for(let h=0;h0||d.length>0?e[0].emailAddress:r.emailAddress,this.globals.curMailAddrCount=u.length+d.length,l&&u.length+d.length===0&&this.translate.get("LC53486").subscribe(h=>{this.messageService.showError(h)})}}}return n.\u0275fac=function(e){return new(e||n)(M(Ut),M(ot),M(tn),M(In))},n.\u0275prov=ge({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),dK=(()=>{class n{constructor(e,i,r,o,s){this.translate=e,this.globals=i,this.message=r,this.waitlist=o,this.connection=s}checkForApp(){var e=this;return new b(i=>{try{Office.onReady(()=>{i.next(new uK(this.globals,this.message,this.waitlist)),i.complete()})}catch{if(null!=sessionStorage.getItem("verseAppData")){const o=new nM(this.translate,this.globals,this.message,this.connection);o.data=JSON.parse(sessionStorage.getItem("verseAppData")),sessionStorage.clear(),i.next(o),i.complete()}else window.addEventListener("message",function(){var o=Ae(function*(s){e.verseHandler(s,i)});return function(s){return o.apply(this,arguments)}}(),!1)}})}verseHandler(e,i){var r=this;return Ae(function*(){if(sessionStorage.clear(),"com.ibm.verse.ping.application.loaded"===e.data.verseApiType){const o={verseApiType:"com.ibm.verse.application.loaded"};null!=e.source&&!(e.source instanceof MessagePort)&&!(e.source instanceof ServiceWorker)&&e.source.postMessage(o,e.origin)}if("com.ibm.verse.action.clicked"===e.data.verseApiType){const o=new nM(r.translate,r.globals,r.message,r.connection);o.data=e.data.verseApiData,i.next(o),i.complete()}})()}}return n.\u0275fac=function(e){return new(e||n)(M(Ut),M(ot),M(tn),M(Ri),M(In))},n.\u0275prov=ge({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();var hK=function(){function n(){}return n.getInteractionStatusFromEvent=function(t,e){switch(t.eventType){case st.LOGIN_START:return fi.Login;case st.SSO_SILENT_START:return fi.SsoSilent;case st.ACQUIRE_TOKEN_START:if(t.interactionType===$e.Redirect||t.interactionType===$e.Popup)return fi.AcquireToken;break;case st.HANDLE_REDIRECT_START:return fi.HandleRedirect;case st.LOGOUT_START:return fi.Logout;case st.SSO_SILENT_SUCCESS:case st.SSO_SILENT_FAILURE:if(e&&e!==fi.SsoSilent)break;return fi.None;case st.LOGOUT_END:if(e&&e!==fi.Logout)break;return fi.None;case st.HANDLE_REDIRECT_END:if(e&&e!==fi.HandleRedirect)break;return fi.None;case st.LOGIN_SUCCESS:case st.LOGIN_FAILURE:case st.ACQUIRE_TOKEN_SUCCESS:case st.ACQUIRE_TOKEN_FAILURE:if(t.interactionType===$e.Redirect||t.interactionType===$e.Popup){if(e&&e!==fi.Login&&e!==fi.AcquireToken)break;return fi.None}}return null},n}();function qs(n){return function(e){const i=new pK(n),r=e.lift(i);return i.caught=r}}class pK{constructor(t){this.selector=t}call(t,e){return e.subscribe(new fK(t,this.selector,this.caught))}}class fK extends cu{constructor(t,e,i){super(t),this.selector=e,this.caught=i}error(t){if(!this.isStopped){let e;try{e=this.selector(t,this.caught)}catch(o){return void super.error(o)}this._unsubscribeAndRecycle();const i=new ko(this);this.add(i);const r=uu(e,i);r!==i&&this.add(r)}}}const Yc=(()=>{function n(){return Error.call(this),this.message="no elements in sequence",this.name="EmptyError",this}return n.prototype=Object.create(Error.prototype),n})();function Sm(n=null){return t=>t.lift(new mK(n))}class mK{constructor(t){this.defaultValue=t}call(t,e){return e.subscribe(new gK(t,this.defaultValue))}}class gK extends S{constructor(t,e){super(t),this.defaultValue=e,this.isEmpty=!0}_next(t){this.isEmpty=!1,this.destination.next(t)}_complete(){this.isEmpty&&this.destination.next(this.defaultValue),this.destination.complete()}}function iM(n=yK){return t=>t.lift(new _K(n))}class _K{constructor(t){this.errorFactory=t}call(t,e){return e.subscribe(new vK(t,this.errorFactory))}}class vK extends S{constructor(t,e){super(t),this.errorFactory=e,this.hasValue=!1}_next(t){this.hasValue=!0,this.destination.next(t)}_complete(){if(this.hasValue)return this.destination.complete();{let t;try{t=this.errorFactory()}catch(e){t=e}this.destination.error(t)}}}function yK(){return new Yc}function ba(n,t){const e=arguments.length>=2;return i=>i.pipe(n?Tn((r,o)=>n(r,o,i)):we,sn(1),e?Sm(t):iM(()=>new Yc))}function rM(n,t){let e=!1;return arguments.length>=2&&(e=!0),function(r){return r.lift(new bK(n,t,e))}}class bK{constructor(t,e,i=!1){this.accumulator=t,this.seed=e,this.hasSeed=i}call(t,e){return e.subscribe(new CK(t,this.accumulator,this.seed,this.hasSeed))}}class CK extends S{constructor(t,e,i,r){super(t),this.accumulator=e,this._seed=i,this.hasSeed=r,this.index=0}get seed(){return this._seed}set seed(t){this.hasSeed=!0,this._seed=t}_next(t){if(this.hasSeed)return this._tryNext(t);this.seed=t,this.destination.next(t)}_tryNext(t){const e=this.index++;let i;try{i=this.accumulator(this.seed,t,e)}catch(r){this.destination.error(r)}this.seed=i,this.destination.next(i)}}function mC(n){return function(e){return 0===n?df():e.lift(new wK(n))}}class wK{constructor(t){if(this.total=t,this.total<0)throw new g2}call(t,e){return e.subscribe(new EK(t,this.total))}}class EK extends S{constructor(t,e){super(t),this.total=e,this.ring=new Array,this.count=0}_next(t){const e=this.ring,i=this.total,r=this.count++;e.length0){const i=this.count>=this.total?this.total:this.count,r=this.ring;for(let o=0;o=2;return i=>i.pipe(n?Tn((r,o)=>n(r,o,i)):we,mC(1),e?Sm(t):iM(()=>new Yc))}class SK{constructor(t){this.value=t}call(t,e){return e.subscribe(new AK(t,this.value))}}class AK extends S{constructor(t,e){super(t),this.value=e}_next(t){this.destination.next(this.value)}}function Am(n){return t=>t.lift(new TK(n))}class TK{constructor(t){this.callback=t}call(t,e){return e.subscribe(new xK(t,this.callback))}}class xK extends S{constructor(t,e){super(t),this.add(new E(e))}}const Gt="primary";class IK{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 Qc(n){return new IK(n)}function MK(n,t,e){const i=e.path.split("/");if(i.length>n.length||"full"===e.pathMatch&&(t.hasChildren()||i.lengthi[o]===r)}return n===t}function lM(n){return n.length>0?n[n.length-1]:null}function Ei(n,t){for(const e in n)n.hasOwnProperty(e)&&t(n[e],e)}function zs(n){return mv(n)?n:Vu(n)?vt(Promise.resolve(n)):Ne(n)}const OK={exact:function dM(n,t,e){if(!fl(n.segments,t.segments)||!Tm(n.segments,t.segments,e)||n.numberOfChildren!==t.numberOfChildren)return!1;for(const i in t.children)if(!n.children[i]||!dM(n.children[i],t.children[i],e))return!1;return!0},subset:hM},cM={exact:function PK(n,t){return ns(n,t)},subset:function LK(n,t){return Object.keys(t).length<=Object.keys(n).length&&Object.keys(t).every(e=>sM(n[e],t[e]))},ignored:()=>!0};function uM(n,t,e){return OK[e.paths](n.root,t.root,e.matrixParams)&&cM[e.queryParams](n.queryParams,t.queryParams)&&!("exact"===e.fragment&&n.fragment!==t.fragment)}function hM(n,t,e){return pM(n,t,t.segments,e)}function pM(n,t,e,i){if(n.segments.length>e.length){const r=n.segments.slice(0,e.length);return!(!fl(r,e)||t.hasChildren()||!Tm(r,e,i))}if(n.segments.length===e.length){if(!fl(n.segments,e)||!Tm(n.segments,e,i))return!1;for(const r in t.children)if(!n.children[r]||!hM(n.children[r],t.children[r],i))return!1;return!0}{const r=e.slice(0,n.segments.length),o=e.slice(n.segments.length);return!!(fl(n.segments,r)&&Tm(n.segments,r,i)&&n.children[Gt])&&pM(n.children[Gt],t,o,i)}}function Tm(n,t,e){return t.every((i,r)=>cM[e](n[r].parameters,i.parameters))}class pl{constructor(t,e,i){this.root=t,this.queryParams=e,this.fragment=i}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=Qc(this.queryParams)),this._queryParamMap}toString(){return BK.serialize(this)}}class Kt{constructor(t,e){this.segments=t,this.children=e,this.parent=null,Ei(e,(i,r)=>i.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return xm(this)}}class Zd{constructor(t,e){this.path=t,this.parameters=e}get parameterMap(){return this._parameterMap||(this._parameterMap=Qc(this.parameters)),this._parameterMap}toString(){return vM(this)}}function fl(n,t){return n.length===t.length&&n.every((e,i)=>e.path===t[i].path)}class mM{parse(t){const e=new $K(t);return new pl(e.parseRootSegment(),e.parseQueryParams(),e.parseFragment())}serialize(t){const e=`/${Xd(t.root,!0)}`,i=function VK(n){const t=Object.keys(n).map(e=>{const i=n[e];return Array.isArray(i)?i.map(r=>`${Im(e)}=${Im(r)}`).join("&"):`${Im(e)}=${Im(i)}`}).filter(e=>!!e);return t.length?`?${t.join("&")}`:""}(t.queryParams),r="string"==typeof t.fragment?`#${function jK(n){return encodeURI(n)}(t.fragment)}`:"";return`${e}${i}${r}`}}const BK=new mM;function xm(n){return n.segments.map(t=>vM(t)).join("/")}function Xd(n,t){if(!n.hasChildren())return xm(n);if(t){const e=n.children[Gt]?Xd(n.children[Gt],!1):"",i=[];return Ei(n.children,(r,o)=>{o!==Gt&&i.push(`${o}:${Xd(r,!1)}`)}),i.length>0?`${e}(${i.join("//")})`:e}{const e=function FK(n,t){let e=[];return Ei(n.children,(i,r)=>{r===Gt&&(e=e.concat(t(i,r)))}),Ei(n.children,(i,r)=>{r!==Gt&&(e=e.concat(t(i,r)))}),e}(n,(i,r)=>r===Gt?[Xd(n.children[Gt],!1)]:[`${r}:${Xd(i,!1)}`]);return 1===Object.keys(n.children).length&&null!=n.children[Gt]?`${xm(n)}/${e[0]}`:`${xm(n)}/(${e.join("//")})`}}function gM(n){return encodeURIComponent(n).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function Im(n){return gM(n).replace(/%3B/gi,";")}function _C(n){return gM(n).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function Mm(n){return decodeURIComponent(n)}function _M(n){return Mm(n.replace(/\+/g,"%20"))}function vM(n){return`${_C(n.path)}${function HK(n){return Object.keys(n).map(t=>`;${_C(t)}=${_C(n[t])}`).join("")}(n.parameters)}`}const UK=/^[^\/()?;=#]+/;function km(n){const t=n.match(UK);return t?t[0]:""}const qK=/^[^=?&#]+/,GK=/^[^&#]+/;class $K{constructor(t){this.url=t,this.remaining=t}parseRootSegment(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new Kt([],{}):new Kt([],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[Gt]=new Kt(t,e)),i}parseSegment(){const t=km(this.remaining);if(""===t&&this.peekStartsWith(";"))throw new Te(4009,!1);return this.capture(t),new Zd(Mm(t),this.parseMatrixParams())}parseMatrixParams(){const t={};for(;this.consumeOptional(";");)this.parseParam(t);return t}parseParam(t){const e=km(this.remaining);if(!e)return;this.capture(e);let i="";if(this.consumeOptional("=")){const r=km(this.remaining);r&&(i=r,this.capture(i))}t[Mm(e)]=Mm(i)}parseQueryParam(t){const e=function zK(n){const t=n.match(qK);return t?t[0]:""}(this.remaining);if(!e)return;this.capture(e);let i="";if(this.consumeOptional("=")){const s=function WK(n){const t=n.match(GK);return t?t[0]:""}(this.remaining);s&&(i=s,this.capture(i))}const r=_M(e),o=_M(i);if(t.hasOwnProperty(r)){let s=t[r];Array.isArray(s)||(s=[s],t[r]=s),s.push(o)}else t[r]=o}parseParens(t){const e={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){const i=km(this.remaining),r=this.remaining[i.length];if("/"!==r&&")"!==r&&";"!==r)throw new Te(4010,!1);let o;i.indexOf(":")>-1?(o=i.slice(0,i.indexOf(":")),this.capture(o),this.capture(":")):t&&(o=Gt);const s=this.parseChildren();e[o]=1===Object.keys(s).length?s[Gt]:new Kt([],s),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 Te(4011,!1)}}function vC(n){return n.segments.length>0?new Kt([],{[Gt]:n}):n}function Rm(n){const t={};for(const i of Object.keys(n.children)){const o=Rm(n.children[i]);(o.segments.length>0||o.hasChildren())&&(t[i]=o)}return function KK(n){if(1===n.numberOfChildren&&n.children[Gt]){const t=n.children[Gt];return new Kt(n.segments.concat(t.segments),t.children)}return n}(new Kt(n.segments,t))}function ml(n){return n instanceof pl}function JK(n,t,e,i,r){if(0===e.length)return Jc(t.root,t.root,t.root,i,r);const o=function CM(n){if("string"==typeof n[0]&&1===n.length&&"/"===n[0])return new bM(!0,0,n);let t=0,e=!1;const i=n.reduce((r,o,s)=>{if("object"==typeof o&&null!=o){if(o.outlets){const a={};return Ei(o.outlets,(l,c)=>{a[c]="string"==typeof l?l.split("/"):l}),[...r,{outlets:a}]}if(o.segmentPath)return[...r,o.segmentPath]}return"string"!=typeof o?[...r,o]:0===s?(o.split("/").forEach((a,l)=>{0==l&&"."===a||(0==l&&""===a?e=!0:".."===a?t++:""!=a&&r.push(a))}),r):[...r,o]},[]);return new bM(e,t,i)}(e);return o.toRoot()?Jc(t.root,t.root,new Kt([],{}),i,r):function s(l){const c=function XK(n,t,e,i){if(n.isAbsolute)return new Zc(t.root,!0,0);if(-1===i)return new Zc(e,e===t.root,0);return function wM(n,t,e){let i=n,r=t,o=e;for(;o>r;){if(o-=r,i=i.parent,!i)throw new Te(4005,!1);r=i.segments.length}return new Zc(i,!1,r-o)}(e,i+(eh(n.commands[0])?0:1),n.numberOfDoubleDots)}(o,t,n.snapshot?._urlSegment,l),u=c.processChildren?nh(c.segmentGroup,c.index,o.commands):bC(c.segmentGroup,c.index,o.commands);return Jc(t.root,c.segmentGroup,u,i,r)}(n.snapshot?._lastPathIndex)}function eh(n){return"object"==typeof n&&null!=n&&!n.outlets&&!n.segmentPath}function th(n){return"object"==typeof n&&null!=n&&n.outlets}function Jc(n,t,e,i,r){let s,o={};i&&Ei(i,(l,c)=>{o[c]=Array.isArray(l)?l.map(u=>`${u}`):`${l}`}),s=n===t?e:yM(n,t,e);const a=vC(Rm(s));return new pl(a,o,r)}function yM(n,t,e){const i={};return Ei(n.children,(r,o)=>{i[o]=r===t?e:yM(r,t,e)}),new Kt(n.segments,i)}class bM{constructor(t,e,i){if(this.isAbsolute=t,this.numberOfDoubleDots=e,this.commands=i,t&&i.length>0&&eh(i[0]))throw new Te(4003,!1);const r=i.find(th);if(r&&r!==lM(i))throw new Te(4004,!1)}toRoot(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}class Zc{constructor(t,e,i){this.segmentGroup=t,this.processChildren=e,this.index=i}}function bC(n,t,e){if(n||(n=new Kt([],{})),0===n.segments.length&&n.hasChildren())return nh(n,t,e);const i=function tY(n,t,e){let i=0,r=t;const o={match:!1,pathIndex:0,commandIndex:0};for(;r=e.length)return o;const s=n.segments[r],a=e[i];if(th(a))break;const l=`${a}`,c=i0&&void 0===l)break;if(l&&c&&"object"==typeof c&&void 0===c.outlets){if(!DM(l,c,s))return o;i+=2}else{if(!DM(l,{},s))return o;i++}r++}return{match:!0,pathIndex:r,commandIndex:i}}(n,t,e),r=e.slice(i.commandIndex);if(i.match&&i.pathIndex{"string"==typeof o&&(o=[o]),null!==o&&(r[s]=bC(n.children[s],t,o))}),Ei(n.children,(o,s)=>{void 0===i[s]&&(r[s]=o)}),new Kt(n.segments,r)}}function CC(n,t,e){const i=n.segments.slice(0,t);let r=0;for(;r{"string"==typeof e&&(e=[e]),null!==e&&(t[i]=CC(new Kt([],{}),0,e))}),t}function EM(n){const t={};return Ei(n,(e,i)=>t[i]=`${e}`),t}function DM(n,t,e){return n==e.path&&ns(t,e.parameters)}class Gs{constructor(t,e){this.id=t,this.url=e}}class SM extends Gs{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 ih extends Gs{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 Om extends Gs{constructor(t,e,i,r){super(t,e),this.reason=i,this.code=r,this.type=2}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}}class AM extends Gs{constructor(t,e,i,r){super(t,e),this.error=i,this.target=r,this.type=3}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}}class iY extends Gs{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 rY extends Gs{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 oY extends Gs{constructor(t,e,i,r,o){super(t,e),this.urlAfterRedirects=i,this.state=r,this.shouldActivate=o,this.type=8}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}}class sY extends Gs{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 aY extends Gs{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 lY{constructor(t){this.route=t,this.type=9}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}}class cY{constructor(t){this.route=t,this.type=10}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}}class uY{constructor(t){this.snapshot=t,this.type=11}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class dY{constructor(t){this.snapshot=t,this.type=12}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class hY{constructor(t){this.snapshot=t,this.type=13}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class pY{constructor(t){this.snapshot=t,this.type=14}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class TM{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=wC(t,this._root);return e?e.children.map(i=>i.value):[]}firstChild(t){const e=wC(t,this._root);return e&&e.children.length>0?e.children[0].value:null}siblings(t){const e=EC(t,this._root);return e.length<2?[]:e[e.length-2].children.map(r=>r.value).filter(r=>r!==t)}pathFromRoot(t){return EC(t,this._root).map(e=>e.value)}}function wC(n,t){if(n===t.value)return t;for(const e of t.children){const i=wC(n,e);if(i)return i}return null}function EC(n,t){if(n===t.value)return[t];for(const e of t.children){const i=EC(n,e);if(i.length)return i.unshift(t),i}return[]}class Ws{constructor(t,e){this.value=t,this.children=e}toString(){return`TreeNode(${this.value})`}}function Xc(n){const t={};return n&&n.children.forEach(e=>t[e.value.outlet]=e),t}class xM extends TM{constructor(t,e){super(t),this.snapshot=e,DC(this,t)}toString(){return this.snapshot.toString()}}function IM(n,t){const e=function mY(n,t){const s=new Pm([],{},{},"",{},Gt,t,null,n.root,-1,{});return new kM("",new Ws(s,[]))}(n,t),i=new ar([new Zd("",{})]),r=new ar({}),o=new ar({}),s=new ar({}),a=new ar(""),l=new eu(i,r,s,a,o,Gt,t,e.root);return l.snapshot=e.root,new xM(new Ws(l,[]),e)}class eu{constructor(t,e,i,r,o,s,a,l){this.url=t,this.params=e,this.queryParams=i,this.fragment=r,this.data=o,this.outlet=s,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(he(t=>Qc(t)))),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe(he(t=>Qc(t)))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}}function MM(n,t="emptyOnly"){const e=n.pathFromRoot;let i=0;if("always"!==t)for(i=e.length-1;i>=1;){const r=e[i],o=e[i-1];if(r.routeConfig&&""===r.routeConfig.path)i--;else{if(o.component)break;i--}}return function gY(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 Pm{constructor(t,e,i,r,o,s,a,l,c,u,d,h){this.url=t,this.params=e,this.queryParams=i,this.fragment=r,this.data=o,this.outlet=s,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=Qc(this.params)),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=Qc(this.queryParams)),this._queryParamMap}toString(){return`Route(url:'${this.url.map(i=>i.toString()).join("/")}', path:'${this.routeConfig?this.routeConfig.path:""}')`}}class kM extends TM{constructor(t,e){super(e),this.url=t,DC(this,e)}toString(){return RM(this._root)}}function DC(n,t){t.value._routerState=n,t.children.forEach(e=>DC(n,e))}function RM(n){const t=n.children.length>0?` { ${n.children.map(RM).join(", ")} } `:"";return`${n.value}${t}`}function SC(n){if(n.snapshot){const t=n.snapshot,e=n._futureSnapshot;n.snapshot=e,ns(t.queryParams,e.queryParams)||n.queryParams.next(e.queryParams),t.fragment!==e.fragment&&n.fragment.next(e.fragment),ns(t.params,e.params)||n.params.next(e.params),function kK(n,t){if(n.length!==t.length)return!1;for(let e=0;ens(e.parameters,t[i].parameters))}(n.url,t.url);return e&&!(!n.parent!=!t.parent)&&(!n.parent||AC(n.parent,t.parent))}function rh(n,t,e){if(e&&n.shouldReuseRoute(t.value,e.value.snapshot)){const i=e.value;i._futureSnapshot=t.value;const r=function vY(n,t,e){return t.children.map(i=>{for(const r of e.children)if(n.shouldReuseRoute(i.value,r.value.snapshot))return rh(n,i,r);return rh(n,i)})}(n,t,e);return new Ws(i,r)}{if(n.shouldAttach(t.value)){const o=n.retrieve(t.value);if(null!==o){const s=o.route;return s.value._futureSnapshot=t.value,s.children=t.children.map(a=>rh(n,a)),s}}const i=function yY(n){return new eu(new ar(n.url),new ar(n.params),new ar(n.queryParams),new ar(n.fragment),new ar(n.data),n.outlet,n.component,n)}(t.value),r=t.children.map(o=>rh(n,o));return new Ws(i,r)}}const TC="ngNavigationCancelingError";function OM(n,t){const{redirectTo:e,navigationBehaviorOptions:i}=ml(t)?{redirectTo:t,navigationBehaviorOptions:void 0}:t,r=PM(!1,0,t);return r.url=e,r.navigationBehaviorOptions=i,r}function PM(n,t,e){const i=new Error("NavigationCancelingError: "+(n||""));return i[TC]=!0,i.cancellationCode=t,e&&(i.url=e),i}function LM(n){return NM(n)&&ml(n.url)}function NM(n){return n&&n[TC]}class bY{constructor(){this.outlet=null,this.route=null,this.resolver=null,this.injector=null,this.children=new oh,this.attachRef=null}}class oh{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 bY,this.contexts.set(t,e)),e}getContext(t){return this.contexts.get(t)||null}}const Lm=!1;let FM=(()=>{class n{constructor(e,i,r,o,s){this.parentContexts=e,this.location=i,this.changeDetector=o,this.environmentInjector=s,this.activated=null,this._activatedRoute=null,this.activateEvents=new He,this.deactivateEvents=new He,this.attachEvents=new He,this.detachEvents=new He,this.name=r||Gt,e.onChildOutletCreated(this.name,this)}ngOnDestroy(){this.parentContexts.getContext(this.name)?.outlet===this&&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 Te(4012,Lm);return this.activated.instance}get activatedRoute(){if(!this.activated)throw new Te(4012,Lm);return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new Te(4012,Lm);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 Te(4013,Lm);this._activatedRoute=e;const r=this.location,s=e._futureSnapshot.component,a=this.parentContexts.getOrCreateContext(this.name).children,l=new CY(e,a,r.injector);if(i&&function wY(n){return!!n.resolveComponentFactory}(i)){const c=i.resolveComponentFactory(s);this.activated=r.createComponent(c,r.length,l)}else this.activated=r.createComponent(s,{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)(p(oh),p(Dn),Vr("name"),p(St),p(Na))},n.\u0275dir=fe({type:n,selectors:[["router-outlet"]],outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"]}),n})();class CY{constructor(t,e,i){this.route=t,this.childContexts=e,this.parent=i}get(t,e){return t===eu?this.route:t===oh?this.childContexts:this.parent.get(t,e)}}let BM=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=Ue({type:n,selectors:[["ng-component"]],decls:1,vars:0,template:function(e,i){1&e&&be(0,"router-outlet")},dependencies:[FM],encapsulation:2}),n})();function jM(n,t){return n.providers&&!n._injector&&(n._injector=function Sv(n,t,e=null){return new XB(n,t,e).injector}(n.providers,t,`Route: ${n.path}`)),n._injector??t}function IC(n){const t=n.children&&n.children.map(IC),e=t?{...n,children:t}:{...n};return!e.component&&!e.loadComponent&&(t||e.loadChildren)&&e.outlet&&e.outlet!==Gt&&(e.component=BM),e}function to(n){return n.outlet||Gt}function HM(n,t){const e=n.filter(i=>to(i)===t);return e.push(...n.filter(i=>to(i)!==t)),e}function VM(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 TY{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),SC(this.futureState.root),this.activateChildRoutes(e,i,t)}deactivateChildRoutes(t,e,i){const r=Xc(e);t.children.forEach(o=>{const s=o.value.outlet;this.deactivateRoutes(o,r[s],i),delete r[s]}),Ei(r,(o,s)=>{this.deactivateRouteAndItsChildren(o,i)})}deactivateRoutes(t,e,i){const r=t.value,o=e?e.value:null;if(r===o)if(r.component){const s=i.getContext(r.outlet);s&&this.deactivateChildRoutes(t,e,s.children)}else this.deactivateChildRoutes(t,e,i);else o&&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,o=Xc(t);for(const s of Object.keys(o))this.deactivateRouteAndItsChildren(o[s],r);if(i&&i.outlet){const s=i.outlet.detach(),a=i.children.onOutletDeactivated();this.routeReuseStrategy.store(t.value.snapshot,{componentRef:s,route:t,contexts:a})}}deactivateRouteAndOutlet(t,e){const i=e.getContext(t.value.outlet),r=i&&t.value.component?i.children:e,o=Xc(t);for(const s of Object.keys(o))this.deactivateRouteAndItsChildren(o[s],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=Xc(e);t.children.forEach(o=>{this.activateRoutes(o,r[o.value.outlet],i),this.forwardEvent(new pY(o.value.snapshot))}),t.children.length&&this.forwardEvent(new dY(t.value.snapshot))}activateRoutes(t,e,i){const r=t.value,o=e?e.value:null;if(SC(r),r===o)if(r.component){const s=i.getOrCreateContext(r.outlet);this.activateChildRoutes(t,e,s.children)}else this.activateChildRoutes(t,e,i);else if(r.component){const s=i.getOrCreateContext(r.outlet);if(this.routeReuseStrategy.shouldAttach(r.snapshot)){const a=this.routeReuseStrategy.retrieve(r.snapshot);this.routeReuseStrategy.store(r.snapshot,null),s.children.onOutletReAttached(a.contexts),s.attachRef=a.componentRef,s.route=a.route.value,s.outlet&&s.outlet.attach(a.componentRef,a.route.value),SC(a.route.value),this.activateChildRoutes(t,null,s.children)}else{const a=VM(r.snapshot),l=a?.get(hs)??null;s.attachRef=null,s.route=r,s.resolver=l,s.injector=a,s.outlet&&s.outlet.activateWith(r,s.injector),this.activateChildRoutes(t,null,s.children)}}else this.activateChildRoutes(t,null,i)}}class UM{constructor(t){this.path=t,this.route=this.path[this.path.length-1]}}class Nm{constructor(t,e){this.component=t,this.route=e}}function xY(n,t,e){const i=n._root;return sh(i,t?t._root:null,e,[i.value])}function Fm(n,t,e){return(VM(t)??e).get(n)}function sh(n,t,e,i,r={canDeactivateChecks:[],canActivateChecks:[]}){const o=Xc(t);return n.children.forEach(s=>{(function MY(n,t,e,i,r={canDeactivateChecks:[],canActivateChecks:[]}){const o=n.value,s=t?t.value:null,a=e?e.getContext(n.value.outlet):null;if(s&&o.routeConfig===s.routeConfig){const l=function kY(n,t,e){if("function"==typeof e)return e(n,t);switch(e){case"pathParamsChange":return!fl(n.url,t.url);case"pathParamsOrQueryParamsChange":return!fl(n.url,t.url)||!ns(n.queryParams,t.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!AC(n,t)||!ns(n.queryParams,t.queryParams);default:return!AC(n,t)}}(s,o,o.routeConfig.runGuardsAndResolvers);l?r.canActivateChecks.push(new UM(i)):(o.data=s.data,o._resolvedData=s._resolvedData),sh(n,t,o.component?a?a.children:null:e,i,r),l&&a&&a.outlet&&a.outlet.isActivated&&r.canDeactivateChecks.push(new Nm(a.outlet.component,s))}else s&&ah(t,a,r),r.canActivateChecks.push(new UM(i)),sh(n,null,o.component?a?a.children:null:e,i,r)})(s,o[s.value.outlet],e,i.concat([s.value]),r),delete o[s.value.outlet]}),Ei(o,(s,a)=>ah(s,e.getContext(a),r)),r}function ah(n,t,e){const i=Xc(n),r=n.value;Ei(i,(o,s)=>{ah(o,r.component?t?t.children.getContext(s):null:t,e)}),e.canDeactivateChecks.push(new Nm(r.component&&t&&t.outlet&&t.outlet.isActivated?t.outlet.component:null,r))}function lh(n){return"function"==typeof n}const Bm=Symbol("INITIAL_VALUE");function tu(){return Kn(n=>ob(n.map(t=>t.pipe(sn(1),ni(Bm)))).pipe(he(t=>{for(const e of t)if(!0!==e){if(e===Bm)return Bm;if(!1===e||e instanceof pl)return e}return!0}),Tn(t=>t!==Bm),sn(1)))}function qM(n){return function $(...n){return ie(n)}(Yn(t=>{if(ml(t))throw OM(0,t)}),he(t=>!0===t))}const MC={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function zM(n,t,e,i,r){const o=kC(n,t,e);return o.matched?function KY(n,t,e,i){const r=t.canMatch;return r&&0!==r.length?Ne(r.map(s=>{const a=n.get(s),l=function FY(n){return n&&lh(n.canMatch)}(a)?a.canMatch(t,e):a(t,e);return zs(l)})).pipe(tu(),qM()):Ne(!0)}(i=jM(t,i),t,e).pipe(he(s=>!0===s?o:{...MC})):Ne(o)}function kC(n,t,e){if(""===t.path)return"full"===t.pathMatch&&(n.hasChildren()||e.length>0)?{...MC}:{matched:!0,consumedSegments:[],remainingSegments:e,parameters:{},positionalParamSegments:{}};const r=(t.matcher||MK)(e,n,t);if(!r)return{...MC};const o={};Ei(r.posParams,(a,l)=>{o[l]=a.path});const s=r.consumed.length>0?{...o,...r.consumed[r.consumed.length-1].parameters}:o;return{matched:!0,consumedSegments:r.consumed,remainingSegments:e.slice(r.consumed.length),parameters:s,positionalParamSegments:r.posParams??{}}}function jm(n,t,e,i,r="corrected"){if(e.length>0&&function JY(n,t,e){return e.some(i=>Hm(n,t,i)&&to(i)!==Gt)}(n,e,i)){const s=new Kt(t,function QY(n,t,e,i){const r={};r[Gt]=i,i._sourceSegment=n,i._segmentIndexShift=t.length;for(const o of e)if(""===o.path&&to(o)!==Gt){const s=new Kt([],{});s._sourceSegment=n,s._segmentIndexShift=t.length,r[to(o)]=s}return r}(n,t,i,new Kt(e,n.children)));return s._sourceSegment=n,s._segmentIndexShift=t.length,{segmentGroup:s,slicedSegments:[]}}if(0===e.length&&function ZY(n,t,e){return e.some(i=>Hm(n,t,i))}(n,e,i)){const s=new Kt(n.segments,function YY(n,t,e,i,r,o){const s={};for(const a of i)if(Hm(n,e,a)&&!r[to(a)]){const l=new Kt([],{});l._sourceSegment=n,l._segmentIndexShift="legacy"===o?n.segments.length:t.length,s[to(a)]=l}return{...r,...s}}(n,t,e,i,n.children,r));return s._sourceSegment=n,s._segmentIndexShift=t.length,{segmentGroup:s,slicedSegments:e}}const o=new Kt(n.segments,n.children);return o._sourceSegment=n,o._segmentIndexShift=t.length,{segmentGroup:o,slicedSegments:e}}function Hm(n,t,e){return(!(n.hasChildren()||t.length>0)||"full"!==e.pathMatch)&&""===e.path}function GM(n,t,e,i){return!!(to(n)===i||i!==Gt&&Hm(t,e,n))&&("**"===n.path||kC(t,n,e).matched)}function WM(n,t,e){return 0===t.length&&!n.children[e]}const Vm=!1;class Um{constructor(t){this.segmentGroup=t||null}}class $M{constructor(t){this.urlTree=t}}function ch(n){return Qa(new Um(n))}function KM(n){return Qa(new $M(n))}class nQ{constructor(t,e,i,r,o){this.injector=t,this.configLoader=e,this.urlSerializer=i,this.urlTree=r,this.config=o,this.allowRedirects=!0}apply(){const t=jm(this.urlTree.root,[],[],this.config).segmentGroup,e=new Kt(t.segments,t.children);return this.expandSegmentGroup(this.injector,this.config,e,Gt).pipe(he(o=>this.createUrlTree(Rm(o),this.urlTree.queryParams,this.urlTree.fragment))).pipe(qs(o=>{if(o instanceof $M)return this.allowRedirects=!1,this.match(o.urlTree);throw o instanceof Um?this.noMatchError(o):o}))}match(t){return this.expandSegmentGroup(this.injector,this.config,t.root,Gt).pipe(he(r=>this.createUrlTree(Rm(r),t.queryParams,t.fragment))).pipe(qs(r=>{throw r instanceof Um?this.noMatchError(r):r}))}noMatchError(t){return new Te(4002,Vm)}createUrlTree(t,e,i){const r=vC(t);return new pl(r,e,i)}expandSegmentGroup(t,e,i,r){return 0===i.segments.length&&i.hasChildren()?this.expandChildren(t,e,i).pipe(he(o=>new Kt([],o))):this.expandSegment(t,i,e,i.segments,r,!0)}expandChildren(t,e,i){const r=[];for(const o of Object.keys(i.children))"primary"===o?r.unshift(o):r.push(o);return vt(r).pipe(qo(o=>{const s=i.children[o],a=HM(e,o);return this.expandSegmentGroup(t,a,s,o).pipe(he(l=>({segment:l,outlet:o})))}),rM((o,s)=>(o[s.outlet]=s.segment,o),{}),oM())}expandSegment(t,e,i,r,o,s){return vt(i).pipe(qo(a=>this.expandSegmentAgainstRoute(t,e,i,a,r,o,s).pipe(qs(c=>{if(c instanceof Um)return Ne(null);throw c}))),ba(a=>!!a),qs((a,l)=>{if(a instanceof Yc||"EmptyError"===a.name)return WM(e,r,o)?Ne(new Kt([],{})):ch(e);throw a}))}expandSegmentAgainstRoute(t,e,i,r,o,s,a){return GM(r,e,o,s)?void 0===r.redirectTo?this.matchSegmentAgainstRoute(t,e,r,o,s):a&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(t,e,i,r,o,s):ch(e):ch(e)}expandSegmentAgainstRouteUsingRedirect(t,e,i,r,o,s){return"**"===r.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(t,i,r,s):this.expandRegularSegmentAgainstRouteUsingRedirect(t,e,i,r,o,s)}expandWildCardWithParamsAgainstRouteUsingRedirect(t,e,i,r){const o=this.applyRedirectCommands([],i.redirectTo,{});return i.redirectTo.startsWith("/")?KM(o):this.lineralizeSegments(i,o).pipe(Vi(s=>{const a=new Kt(s,{});return this.expandSegment(t,a,e,s,r,!1)}))}expandRegularSegmentAgainstRouteUsingRedirect(t,e,i,r,o,s){const{matched:a,consumedSegments:l,remainingSegments:c,positionalParamSegments:u}=kC(e,r,o);if(!a)return ch(e);const d=this.applyRedirectCommands(l,r.redirectTo,u);return r.redirectTo.startsWith("/")?KM(d):this.lineralizeSegments(r,d).pipe(Vi(h=>this.expandSegment(t,e,i,h.concat(c),s,!1)))}matchSegmentAgainstRoute(t,e,i,r,o){return"**"===i.path?(t=jM(i,t),i.loadChildren?(i._loadedRoutes?Ne({routes:i._loadedRoutes,injector:i._loadedInjector}):this.configLoader.loadChildren(t,i)).pipe(he(a=>(i._loadedRoutes=a.routes,i._loadedInjector=a.injector,new Kt(r,{})))):Ne(new Kt(r,{}))):zM(e,i,r,t).pipe(Kn(({matched:s,consumedSegments:a,remainingSegments:l})=>s?this.getChildConfig(t=i._injector??t,i,r).pipe(Vi(u=>{const d=u.injector??t,h=u.routes,{segmentGroup:m,slicedSegments:y}=jm(e,a,l,h),A=new Kt(m.segments,m.children);if(0===y.length&&A.hasChildren())return this.expandChildren(d,h,A).pipe(he(ne=>new Kt(a,ne)));if(0===h.length&&0===y.length)return Ne(new Kt(a,{}));const U=to(i)===o;return this.expandSegment(d,A,h,y,U?Gt:o,!0).pipe(he(Ee=>new Kt(a.concat(Ee.segments),Ee.children)))})):ch(e)))}getChildConfig(t,e,i){return e.children?Ne({routes:e.children,injector:t}):e.loadChildren?void 0!==e._loadedRoutes?Ne({routes:e._loadedRoutes,injector:e._loadedInjector}):function $Y(n,t,e,i){const r=t.canLoad;return void 0===r||0===r.length?Ne(!0):Ne(r.map(s=>{const a=n.get(s),l=function OY(n){return n&&lh(n.canLoad)}(a)?a.canLoad(t,e):a(t,e);return zs(l)})).pipe(tu(),qM())}(t,e,i).pipe(Vi(r=>r?this.configLoader.loadChildren(t,e).pipe(Yn(o=>{e._loadedRoutes=o.routes,e._loadedInjector=o.injector})):function eQ(n){return Qa(PM(Vm,3))}())):Ne({routes:[],injector:t})}lineralizeSegments(t,e){let i=[],r=e.root;for(;;){if(i=i.concat(r.segments),0===r.numberOfChildren)return Ne(i);if(r.numberOfChildren>1||!r.children[Gt])return Qa(new Te(4e3,Vm));r=r.children[Gt]}}applyRedirectCommands(t,e,i){return this.applyRedirectCreateUrlTree(e,this.urlSerializer.parse(e),t,i)}applyRedirectCreateUrlTree(t,e,i,r){const o=this.createSegmentGroup(t,e.root,i,r);return new pl(o,this.createQueryParams(e.queryParams,this.urlTree.queryParams),e.fragment)}createQueryParams(t,e){const i={};return Ei(t,(r,o)=>{if("string"==typeof r&&r.startsWith(":")){const a=r.substring(1);i[o]=e[a]}else i[o]=r}),i}createSegmentGroup(t,e,i,r){const o=this.createSegments(t,e.segments,i,r);let s={};return Ei(e.children,(a,l)=>{s[l]=this.createSegmentGroup(t,a,i,r)}),new Kt(o,s)}createSegments(t,e,i,r){return e.map(o=>o.path.startsWith(":")?this.findPosParam(t,o,r):this.findOrReturn(o,i))}findPosParam(t,e,i){const r=i[e.path.substring(1)];if(!r)throw new Te(4001,Vm);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}}class rQ{}class aQ{constructor(t,e,i,r,o,s,a,l){this.injector=t,this.rootComponentType=e,this.config=i,this.urlTree=r,this.url=o,this.paramsInheritanceStrategy=s,this.relativeLinkResolution=a,this.urlSerializer=l}recognize(){const t=jm(this.urlTree.root,[],[],this.config.filter(e=>void 0===e.redirectTo),this.relativeLinkResolution).segmentGroup;return this.processSegmentGroup(this.injector,this.config,t,Gt).pipe(he(e=>{if(null===e)return null;const i=new Pm([],Object.freeze({}),Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,{},Gt,this.rootComponentType,null,this.urlTree.root,-1,{}),r=new Ws(i,e),o=new kM(this.url,r);return this.inheritParamsAndData(o._root),o}))}inheritParamsAndData(t){const e=t.value,i=MM(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,r){return 0===i.segments.length&&i.hasChildren()?this.processChildren(t,e,i):this.processSegment(t,e,i,i.segments,r)}processChildren(t,e,i){return vt(Object.keys(i.children)).pipe(qo(r=>{const o=i.children[r],s=HM(e,r);return this.processSegmentGroup(t,s,o,r)}),rM((r,o)=>r&&o?(r.push(...o),r):null),Y2(r=>null!==r),Sm(null),oM(),he(r=>{if(null===r)return null;const o=YM(r);return function lQ(n){n.sort((t,e)=>t.value.outlet===Gt?-1:e.value.outlet===Gt?1:t.value.outlet.localeCompare(e.value.outlet))}(o),o}))}processSegment(t,e,i,r,o){return vt(e).pipe(qo(s=>this.processSegmentAgainstRoute(s._injector??t,s,i,r,o)),ba(s=>!!s),qs(s=>{if(s instanceof Yc)return WM(i,r,o)?Ne([]):Ne(null);throw s}))}processSegmentAgainstRoute(t,e,i,r,o){if(e.redirectTo||!GM(e,i,r,o))return Ne(null);let s;if("**"===e.path){const a=r.length>0?lM(r).parameters:{},l=JM(i)+r.length;s=Ne({snapshot:new Pm(r,a,Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,XM(e),to(e),e.component??e._loadedComponent??null,e,QM(i),l,ek(e),l),consumedSegments:[],remainingSegments:[]})}else s=zM(i,e,r,t).pipe(he(({matched:a,consumedSegments:l,remainingSegments:c,parameters:u})=>{if(!a)return null;const d=JM(i)+l.length;return{snapshot:new Pm(l,u,Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,XM(e),to(e),e.component??e._loadedComponent??null,e,QM(i),d,ek(e),d),consumedSegments:l,remainingSegments:c}}));return s.pipe(Kn(a=>{if(null===a)return Ne(null);const{snapshot:l,consumedSegments:c,remainingSegments:u}=a;t=e._injector??t;const d=e._loadedInjector??t,h=function cQ(n){return n.children?n.children:n.loadChildren?n._loadedRoutes:[]}(e),{segmentGroup:m,slicedSegments:y}=jm(i,c,u,h.filter(U=>void 0===U.redirectTo),this.relativeLinkResolution);if(0===y.length&&m.hasChildren())return this.processChildren(d,h,m).pipe(he(U=>null===U?null:[new Ws(l,U)]));if(0===h.length&&0===y.length)return Ne([new Ws(l,[])]);const A=to(e)===o;return this.processSegment(d,h,m,y,A?Gt:o).pipe(he(U=>null===U?null:[new Ws(l,U)]))}))}}function uQ(n){const t=n.value.routeConfig;return t&&""===t.path&&void 0===t.redirectTo}function YM(n){const t=[],e=new Set;for(const i of n){if(!uQ(i)){t.push(i);continue}const r=t.find(o=>i.value.routeConfig===o.value.routeConfig);void 0!==r?(r.children.push(...i.children),e.add(r)):t.push(i)}for(const i of e){const r=YM(i.children);t.push(new Ws(i.value,r))}return t.filter(i=>!e.has(i))}function QM(n){let t=n;for(;t._sourceSegment;)t=t._sourceSegment;return t}function JM(n){let t=n,e=t._segmentIndexShift??0;for(;t._sourceSegment;)t=t._sourceSegment,e+=t._segmentIndexShift??0;return e-1}function XM(n){return n.data||{}}function ek(n){return n.resolve||{}}const RC=Symbol("RouteTitle");function tk(n){return"string"==typeof n.title||null===n.title}function OC(n){return Kn(t=>{const e=n(t);return e?vt(e).pipe(he(()=>t)):Ne(t)})}class bQ extends class yQ{shouldDetach(t){return!1}store(t,e){}shouldAttach(t){return!1}retrieve(t){return null}shouldReuseRoute(t,e){return t.routeConfig===e.routeConfig}}{}const PC=new me("ROUTES");let ik=(()=>{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 Ne(e._loadedComponent);this.onLoadStartListener&&this.onLoadStartListener(e);const i=zs(e.loadComponent()).pipe(Yn(o=>{this.onLoadEndListener&&this.onLoadEndListener(e),e._loadedComponent=o}),Am(()=>{this.componentLoaders.delete(e)})),r=new Sh(i,()=>new N).pipe(Dh());return this.componentLoaders.set(e,r),r}loadChildren(e,i){if(this.childrenLoaders.get(i))return this.childrenLoaders.get(i);if(i._loadedRoutes)return Ne({routes:i._loadedRoutes,injector:i._loadedInjector});this.onLoadStartListener&&this.onLoadStartListener(i);const o=this.loadModuleFactoryOrRoutes(i.loadChildren).pipe(he(a=>{this.onLoadEndListener&&this.onLoadEndListener(i);let l,c,u=!1;Array.isArray(a)?c=a:(l=a.create(e).injector,c=function aM(n){return Array.prototype.concat.apply([],n)}(l.get(PC,[],yt.Self|yt.Optional)));return{routes:c.map(IC),injector:l}}),Am(()=>{this.childrenLoaders.delete(i)})),s=new Sh(o,()=>new N).pipe(Dh());return this.childrenLoaders.set(i,s),s}loadModuleFactoryOrRoutes(e){return zs(e()).pipe(Vi(i=>i instanceof KS||Array.isArray(i)?Ne(i):vt(this.compiler.compileModuleAsync(i))))}}return n.\u0275fac=function(e){return new(e||n)(M(Vn),M(FA))},n.\u0275prov=ge({token:n,factory:n.\u0275fac}),n})();class wQ{shouldProcessUrl(t){return!0}extract(t){return t}merge(t,e){return t}}function EQ(n){throw n}function DQ(n,t,e){return t.parse("/")}const SQ={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},AQ={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"};let gr=(()=>{class n{constructor(e,i,r,o,s,a,l){this.rootComponentType=e,this.urlSerializer=i,this.rootContexts=r,this.location=o,this.config=l,this.lastSuccessfulNavigation=null,this.currentNavigation=null,this.disposed=!1,this.navigationId=0,this.currentPageId=0,this.isNgZoneEnabled=!1,this.events=new N,this.errorHandler=EQ,this.malformedUriErrorHandler=DQ,this.navigated=!1,this.lastSuccessfulId=-1,this.afterPreactivation=()=>Ne(void 0),this.urlHandlingStrategy=new wQ,this.routeReuseStrategy=new bQ,this.onSameUrlNavigation="ignore",this.paramsInheritanceStrategy="emptyOnly",this.urlUpdateStrategy="deferred",this.relativeLinkResolution="corrected",this.canceledNavigationResolution="replace",this.configLoader=s.get(ik),this.configLoader.onLoadEndListener=h=>this.triggerEvent(new cY(h)),this.configLoader.onLoadStartListener=h=>this.triggerEvent(new lY(h)),this.ngModule=s.get(Ua),this.console=s.get(r4);const d=s.get(et);this.isNgZoneEnabled=d instanceof et&&et.isInAngularZone(),this.resetConfig(l),this.currentUrlTree=function RK(){return new pl(new Kt([],{}),{},null)}(),this.rawUrlTree=this.currentUrlTree,this.browserUrlTree=this.currentUrlTree,this.routerState=IM(this.currentUrlTree,this.rootComponentType),this.transitions=new ar({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(Tn(r=>0!==r.id),he(r=>({...r,extractedUrl:this.urlHandlingStrategy.extract(r.rawUrl)})),Kn(r=>{let o=!1,s=!1;return Ne(r).pipe(Yn(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}}),Kn(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 rk(a.source)&&(this.browserUrlTree=a.extractedUrl),Ne(a).pipe(Kn(d=>{const h=this.transitions.getValue();return i.next(new SM(d.id,this.serializeUrl(d.extractedUrl),d.source,d.restoredState)),h!==this.transitions.getValue()?Ss:Promise.resolve(d)}),function iQ(n,t,e,i){return Kn(r=>function tQ(n,t,e,i,r){return new nQ(n,t,e,i,r).apply()}(n,t,e,r.extractedUrl,i).pipe(he(o=>({...r,urlAfterRedirects:o}))))}(this.ngModule.injector,this.configLoader,this.urlSerializer,this.config),Yn(d=>{this.currentNavigation={...this.currentNavigation,finalUrl:d.urlAfterRedirects},r.urlAfterRedirects=d.urlAfterRedirects}),function hQ(n,t,e,i,r,o){return Vi(s=>function sQ(n,t,e,i,r,o,s="emptyOnly",a="legacy"){return new aQ(n,t,e,i,r,s,a,o).recognize().pipe(Kn(l=>null===l?function oQ(n){return new b(t=>t.error(n))}(new rQ):Ne(l)))}(n,t,e,s.urlAfterRedirects,i.serialize(s.urlAfterRedirects),i,r,o).pipe(he(a=>({...s,targetSnapshot:a}))))}(this.ngModule.injector,this.rootComponentType,this.config,this.urlSerializer,this.paramsInheritanceStrategy,this.relativeLinkResolution),Yn(d=>{if(r.targetSnapshot=d.targetSnapshot,"eager"===this.urlUpdateStrategy){if(!d.extras.skipLocationChange){const m=this.urlHandlingStrategy.merge(d.urlAfterRedirects,d.rawUrl);this.setBrowserUrl(m,d)}this.browserUrlTree=d.urlAfterRedirects}const h=new iY(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:m,source:y,restoredState:A,extras:U}=a,te=new SM(h,this.serializeUrl(m),y,A);i.next(te);const Ee=IM(m,this.rootComponentType).snapshot;return Ne(r={...a,targetSnapshot:Ee,urlAfterRedirects:m,extras:{...U,skipLocationChange:!1,replaceUrl:!1}})}return this.rawUrlTree=a.rawUrl,a.resolve(null),Ss}),Yn(a=>{const l=new rY(a.id,this.serializeUrl(a.extractedUrl),this.serializeUrl(a.urlAfterRedirects),a.targetSnapshot);this.triggerEvent(l)}),he(a=>r={...a,guards:xY(a.targetSnapshot,a.currentSnapshot,this.rootContexts)}),function jY(n,t){return Vi(e=>{const{targetSnapshot:i,currentSnapshot:r,guards:{canActivateChecks:o,canDeactivateChecks:s}}=e;return 0===s.length&&0===o.length?Ne({...e,guardsResult:!0}):function HY(n,t,e,i){return vt(n).pipe(Vi(r=>function WY(n,t,e,i,r){const o=t&&t.routeConfig?t.routeConfig.canDeactivate:null;return o&&0!==o.length?Ne(o.map(a=>{const l=Fm(a,t,r);return zs(function NY(n){return n&&lh(n.canDeactivate)}(l)?l.canDeactivate(n,t,e,i):l(n,t,e,i)).pipe(ba())})).pipe(tu()):Ne(!0)}(r.component,r.route,e,t,i)),ba(r=>!0!==r,!0))}(s,i,r,n).pipe(Vi(a=>a&&function RY(n){return"boolean"==typeof n}(a)?function VY(n,t,e,i){return vt(t).pipe(qo(r=>bc(function qY(n,t){return null!==n&&t&&t(new uY(n)),Ne(!0)}(r.route.parent,i),function UY(n,t){return null!==n&&t&&t(new hY(n)),Ne(!0)}(r.route,i),function GY(n,t,e){const i=t[t.length-1],o=t.slice(0,t.length-1).reverse().map(s=>function IY(n){const t=n.routeConfig?n.routeConfig.canActivateChild:null;return t&&0!==t.length?{node:n,guards:t}:null}(s)).filter(s=>null!==s).map(s=>la(()=>Ne(s.guards.map(l=>{const c=Fm(l,s.node,e);return zs(function LY(n){return n&&lh(n.canActivateChild)}(c)?c.canActivateChild(i,n):c(i,n)).pipe(ba())})).pipe(tu())));return Ne(o).pipe(tu())}(n,r.path,e),function zY(n,t,e){const i=t.routeConfig?t.routeConfig.canActivate:null;if(!i||0===i.length)return Ne(!0);const r=i.map(o=>la(()=>{const s=Fm(o,t,e);return zs(function PY(n){return n&&lh(n.canActivate)}(s)?s.canActivate(t,n):s(t,n)).pipe(ba())}));return Ne(r).pipe(tu())}(n,r.route,e))),ba(r=>!0!==r,!0))}(i,o,n,t):Ne(a)),he(a=>({...e,guardsResult:a})))})}(this.ngModule.injector,a=>this.triggerEvent(a)),Yn(a=>{if(r.guardsResult=a.guardsResult,ml(a.guardsResult))throw OM(0,a.guardsResult);const l=new oY(a.id,this.serializeUrl(a.extractedUrl),this.serializeUrl(a.urlAfterRedirects),a.targetSnapshot,!!a.guardsResult);this.triggerEvent(l)}),Tn(a=>!!a.guardsResult||(this.restoreHistory(a),this.cancelNavigationTransition(a,"",3),!1)),OC(a=>{if(a.guards.canActivateChecks.length)return Ne(a).pipe(Yn(l=>{const c=new sY(l.id,this.serializeUrl(l.extractedUrl),this.serializeUrl(l.urlAfterRedirects),l.targetSnapshot);this.triggerEvent(c)}),Kn(l=>{let c=!1;return Ne(l).pipe(function pQ(n,t){return Vi(e=>{const{targetSnapshot:i,guards:{canActivateChecks:r}}=e;if(!r.length)return Ne(e);let o=0;return vt(r).pipe(qo(s=>function fQ(n,t,e,i){const r=n.routeConfig,o=n._resolve;return void 0!==r?.title&&!tk(r)&&(o[RC]=r.title),function mQ(n,t,e,i){const r=function gQ(n){return[...Object.keys(n),...Object.getOwnPropertySymbols(n)]}(n);if(0===r.length)return Ne({});const o={};return vt(r).pipe(Vi(s=>function _Q(n,t,e,i){const r=Fm(n,t,i);return zs(r.resolve?r.resolve(t,e):r(t,e))}(n[s],t,e,i).pipe(ba(),Yn(a=>{o[s]=a}))),mC(1),function DK(n){return t=>t.lift(new SK(n))}(o),qs(s=>s instanceof Yc?Ss:Qa(s)))}(o,n,t,i).pipe(he(s=>(n._resolvedData=s,n.data=MM(n,e).resolve,r&&tk(r)&&(n.data[RC]=r.title),null)))}(s.route,i,n,t)),Yn(()=>o++),mC(1),Vi(s=>o===r.length?Ne(e):Ss))})}(this.paramsInheritanceStrategy,this.ngModule.injector),Yn({next:()=>c=!0,complete:()=>{c||(this.restoreHistory(l),this.cancelNavigationTransition(l,"",2))}}))}),Yn(l=>{const c=new aY(l.id,this.serializeUrl(l.extractedUrl),this.serializeUrl(l.urlAfterRedirects),l.targetSnapshot);this.triggerEvent(c)}))}),OC(a=>{const l=c=>{const u=[];c.routeConfig?.loadComponent&&!c.routeConfig._loadedComponent&&u.push(this.configLoader.loadComponent(c.routeConfig).pipe(Yn(d=>{c.component=d}),he(()=>{})));for(const d of c.children)u.push(...l(d));return u};return ob(l(a.targetSnapshot.root)).pipe(Sm(),sn(1))}),OC(()=>this.afterPreactivation()),he(a=>{const l=function _Y(n,t,e){const i=rh(n,t._root,e?e._root:void 0);return new xM(i,t)}(this.routeReuseStrategy,a.targetSnapshot,a.currentRouterState);return r={...a,targetRouterState:l}}),Yn(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)=>he(i=>(new TY(t,i.targetRouterState,i.currentRouterState,e).activate(n),i)))(this.rootContexts,this.routeReuseStrategy,a=>this.triggerEvent(a)),Yn({next(){o=!0},complete(){o=!0}}),Am(()=>{o||s||this.cancelNavigationTransition(r,"",1),this.currentNavigation?.id===r.id&&(this.currentNavigation=null)}),qs(a=>{if(s=!0,NM(a)){LM(a)||(this.navigated=!0,this.restoreHistory(r,!0));const l=new Om(r.id,this.serializeUrl(r.extractedUrl),a.message,a.cancellationCode);if(i.next(l),LM(a)){const c=this.urlHandlingStrategy.merge(a.url,this.rawUrlTree),u={skipLocationChange:r.extras.skipLocationChange,replaceUrl:"eager"===this.urlUpdateStrategy||rk(r.source)};this.scheduleNavigation(c,"imperative",null,u,{resolve:r.resolve,reject:r.reject,promise:r.promise})}else r.resolve(!1)}else{this.restoreHistory(r,!0);const l=new AM(r.id,this.serializeUrl(r.extractedUrl),a,r.targetSnapshot??void 0);i.next(l);try{r.resolve(this.errorHandler(a))}catch(c){r.reject(c)}}return Ss}))}))}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},o=e.state?.navigationId?e.state:null;if(o){const a={...o};delete a.navigationId,delete a.\u0275routerPageId,0!==Object.keys(a).length&&(r.state=a)}const s=this.parseUrl(e.url);this.scheduleNavigation(s,i,o,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(IC),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:o,fragment:s,queryParamsHandling:a,preserveFragment:l}=i,c=r||this.routerState.root,u=l?this.currentUrlTree.fragment:s;let d=null;switch(a){case"merge":d={...this.currentUrlTree.queryParams,...o};break;case"preserve":d=this.currentUrlTree.queryParams;break;default:d=o||null}return null!==d&&(d=this.removeEmptyProps(d)),JK(c,this.currentUrlTree,e,d,u??null)}navigateByUrl(e,i={skipLocationChange:!1}){const r=ml(e)?e:this.parseUrl(e),o=this.urlHandlingStrategy.merge(r,this.rawUrlTree);return this.scheduleNavigation(o,"imperative",null,i)}navigate(e,i={skipLocationChange:!1}){return function TQ(n){for(let t=0;t{const o=e[r];return null!=o&&(i[r]=o),i},{})}processNavigations(){this.navigations.subscribe(e=>{this.navigated=!0,this.lastSuccessfulId=e.id,this.currentPageId=e.targetPageId,this.events.next(new ih(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,o,s){if(this.disposed)return Promise.resolve(!1);let a,l,c;s?(a=s.resolve,l=s.reject,c=s.promise):c=new Promise((h,m)=>{a=h,l=m});const u=++this.navigationId;let d;return"computed"===this.canceledNavigationResolution?(0===this.currentPageId&&(r=this.location.getState()),d=r&&r.\u0275routerPageId?r.\u0275routerPageId:o.replaceUrl||o.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:o,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),o={...i.extras.state,...this.generateNgRouterState(i.id,i.targetPageId)};this.location.isCurrentPathEqualTo(r)||i.extras.replaceUrl?this.location.replaceState(r,"",o):this.location.go(r,"",o)}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,r){const o=new Om(e.id,this.serializeUrl(e.extractedUrl),i,r);this.triggerEvent(o),e.resolve(!1)}generateNgRouterState(e,i){return"computed"===this.canceledNavigationResolution?{navigationId:e,\u0275routerPageId:i}:{navigationId:e}}}return n.\u0275fac=function(e){Yl()},n.\u0275prov=ge({token:n,factory:n.\u0275fac}),n})();function rk(n){return"imperative"!==n}const BC=new me("MSAL_INSTANCE"),hk=new me("MSAL_GUARD_CONFIG"),jQ=new me("MSAL_INTERCEPTOR_CONFIG"),HQ=new me("MSAL_BROADCAST_CONFIG"),pk="@azure/msal-angular",jC="2.4.1";let nu=(()=>{class n{constructor(e,i){this.instance=e,this.location=i;const r=this.location.path(!0).split("#").pop();r&&(this.redirectHash=`#${r}`),this.instance.initializeWrapperLibrary(dm.Angular,jC)}initialize(){return vt(this.instance.initialize())}acquireTokenPopup(e){return vt(this.instance.acquireTokenPopup(e))}acquireTokenRedirect(e){return vt(this.instance.acquireTokenRedirect(e))}acquireTokenSilent(e){return vt(this.instance.acquireTokenSilent(e))}handleRedirectObservable(e){return vt(this.instance.handleRedirectPromise(e||this.redirectHash))}loginPopup(e){return vt(this.instance.loginPopup(e))}loginRedirect(e){return vt(this.instance.loginRedirect(e))}logout(e){return vt(this.instance.logout(e))}logoutRedirect(e){return vt(this.instance.logoutRedirect(e))}logoutPopup(e){return vt(this.instance.logoutPopup(e))}ssoSilent(e){return vt(this.instance.ssoSilent(e))}getLogger(){return this.logger||(this.logger=this.instance.getLogger().clone(pk,jC)),this.logger}setLogger(e){this.logger=e.clone(pk,jC),this.instance.setLogger(e)}}return n.\u0275fac=function(e){return new(e||n)(M(BC),M(Wa))},n.\u0275prov=ge({token:n,factory:n.\u0275fac}),n})(),fk=(()=>{class n{constructor(e,i,r){this.msalInstance=e,this.authService=i,this.msalBroadcastConfig=r,this.msalBroadcastConfig&&this.msalBroadcastConfig.eventsToReplay>0?(this.authService.getLogger().verbose(`BroadcastService - replayPastEvents set on BroadcastConfig, replaying the last ${this.msalBroadcastConfig.eventsToReplay} events`),this._msalSubject=new v2(this.msalBroadcastConfig.eventsToReplay)):this._msalSubject=new N,this.msalSubject$=this._msalSubject.asObservable(),this._inProgress=new ar(fi.Startup),this.inProgress$=this._inProgress.asObservable(),this.msalInstance.addEventCallback(o=>{this._msalSubject.next(o);const s=hK.getInteractionStatusFromEvent(o,this._inProgress.value);null!==s&&(this.authService.getLogger().verbose(`BroadcastService - ${o.eventType} results in setting inProgress from ${this._inProgress.value} to ${s}`),this._inProgress.next(s))})}}return n.\u0275fac=function(e){return new(e||n)(M(BC),M(nu),M(HQ,8))},n.\u0275prov=ge({token:n,factory:n.\u0275fac}),n})(),VQ=(()=>{class n{constructor(e,i,r,o,s){this.msalGuardConfig=e,this.msalBroadcastService=i,this.authService=r,this.location=o,this.router=s,this.msalBroadcastService.inProgress$.subscribe()}parseUrl(e){return this.router.parseUrl(e)}getDestinationUrl(e){this.authService.getLogger().verbose("Guard - getting destination url");const i=document.getElementsByTagName("base"),r=this.location.normalize(i.length?i[0].href:window.location.origin),o=this.location.prepareExternalUrl(e);return o.startsWith("#")?(this.authService.getLogger().verbose("Guard - destination by hash routing"),`${r}/${o}`):`${r}${e}`}loginInteractively(e){const i="function"==typeof this.msalGuardConfig.authRequest?this.msalGuardConfig.authRequest(this.authService,e):Object.assign({},this.msalGuardConfig.authRequest);if(this.msalGuardConfig.interactionType===$e.Popup)return this.authService.getLogger().verbose("Guard - logging in by popup"),this.authService.loginPopup(i).pipe(he(o=>(this.authService.getLogger().verbose("Guard - login by popup successful, can activate, setting active account"),this.authService.instance.setActiveAccount(o.account),!0)));this.authService.getLogger().verbose("Guard - logging in by redirect");const r=this.getDestinationUrl(e.url);return this.authService.loginRedirect(Object.assign({redirectStartPage:r},i)).pipe(he(()=>!1))}activateHelper(e){if(this.msalGuardConfig.interactionType!==$e.Popup&&this.msalGuardConfig.interactionType!==$e.Redirect)throw new ym("invalid_interaction_type","Invalid interaction type provided to MSAL Guard. InteractionType.Popup or InteractionType.Redirect must be provided in the MsalGuardConfiguration");if(this.authService.getLogger().verbose("MSAL Guard activated"),!(typeof window<"u"))return this.authService.getLogger().info("Guard - window is undefined, MSAL does not support server-side token acquisition"),Ne(!0);if(nn.hashContainsKnownProperties(window.location.hash)&&Fn.isInIframe()&&!this.authService.instance.getConfiguration().system.allowRedirectInIframe)return this.authService.getLogger().warning("Guard - redirectUri set to page with MSAL Guard. It is recommended to not set redirectUri to a page that requires authentication."),Ne(!1);this.msalGuardConfig.loginFailedRoute&&(this.loginFailedRoute=this.parseUrl(this.msalGuardConfig.loginFailedRoute));const i=this.location.path(!0);return this.authService.handleRedirectObservable().pipe(qo(()=>{if(!this.authService.instance.getAllAccounts().length)return e?(this.authService.getLogger().verbose("Guard - no accounts retrieved, log in required to activate"),this.loginInteractively(e)):(this.authService.getLogger().verbose("Guard - no accounts retrieved, no state, cannot load"),Ne(!1));if(this.authService.getLogger().verbose("Guard - at least 1 account exists, can activate or load"),e){const r=this.includesCode(e.url),o=!!e.root&&!!e.root.fragment&&this.includesCode(`#${e.root.fragment}`),s=0===this.location.prepareExternalUrl(e.url).indexOf("#");if(r&&(o||s))return this.authService.getLogger().info("Guard - Hash contains known code response, stopping navigation."),i.indexOf("#")>-1?Ne(this.parseUrl(this.location.path())):Ne(this.parseUrl(""))}return Ne(!0)}),qs(r=>(this.authService.getLogger().error("Guard - error while logging in, unable to activate"),this.authService.getLogger().errorPii(`Guard - error: ${r.message}`),this.loginFailedRoute&&parseInt(X0.major,10)>9&&e?(this.authService.getLogger().verbose("Guard - loginFailedRoute set, redirecting"),Ne(this.loginFailedRoute)):Ne(!1))))}includesCode(e){return e.lastIndexOf("/code")>-1&&e.lastIndexOf("/code")===e.length-5||e.indexOf("#code=")>-1||e.indexOf("&code=")>-1}canActivate(e,i){return this.authService.getLogger().verbose("Guard - canActivate"),this.activateHelper(i)}canActivateChild(e,i){return this.authService.getLogger().verbose("Guard - canActivateChild"),this.activateHelper(i)}canLoad(){return this.authService.getLogger().verbose("Guard - canLoad"),this.activateHelper()}}return n.\u0275fac=function(e){return new(e||n)(M(hk),M(fk),M(nu),M(Wa),M(gr))},n.\u0275prov=ge({token:n,factory:n.\u0275fac}),n})(),mk=(()=>{class n{static forRoot(e,i,r){return{ngModule:n,providers:[{provide:BC,useValue:e},{provide:hk,useValue:i},{provide:jQ,useValue:r},nu]}}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=ht({type:n}),n.\u0275inj=dt({providers:[VQ,fk],imports:[$r]}),n})(),is=(()=>{class n{constructor(){this.thingToClose=new Map}addThingToClose(e,i){this.thingToClose.has(e)||this.thingToClose.set(e,i)}closeAll(e){this.thingToClose.forEach((i,r)=>{e&&e===r||i()})}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=ge({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();function UQ(n,t){1&n&&(g(0,"div"),be(1,"app-redirect"),_())}function qQ(n,t){1&n&&be(0,"app-contact-selector")}function zQ(n,t){1&n&&be(0,"app-info-shower")}function GQ(n,t){1&n&&be(0,"app-project-selector")}function WQ(n,t){1&n&&be(0,"app-tags-selector")}function $Q(n,t){1&n&&be(0,"app-address-activities")}function KQ(n,t){if(1&n&&(g(0,"div",15),j(1),_()),2&n){const e=C(4);f(1),qe(" ",e.globals.languageConfLocal.giLoginText," ")}}function YQ(n,t){if(1&n){const e=Ie();g(0,"div",12),j(1),H(2,KQ,2,1,"div",13),be(3,"br"),g(4,"button",14),W("click",function(){return J(e),Z(C(3).crmLogin())}),j(5,"Login CRM"),_()()}if(2&n){const e=C(3);f(1),qe(" ",e.globals.languageConfLocal.pleaseLogIn," "),f(1),v("ngIf","gi"===e.globals.system)}}function QQ(n,t){if(1&n){const e=Ie();g(0,"div",12),j(1),be(2,"br"),g(3,"button",14),W("click",function(){return J(e),Z(C(3).openGraphLogin())}),j(4,"Login Microsoft Graph"),_()()}if(2&n){const e=C(3);f(1),qe(" ",e.globals.languageConfLocal.noGraph," ")}}function JQ(n,t){if(1&n&&(g(0,"div",10),be(1,"app-item-documentor")(2,"app-loader")(3,"app-site-actions"),H(4,qQ,1,0,"app-contact-selector",11),H(5,zQ,1,0,"app-info-shower",11),H(6,GQ,1,0,"app-project-selector",11),H(7,WQ,1,0,"app-tags-selector",11),H(8,$Q,1,0,"app-address-activities",11),H(9,YQ,6,2,"div",9),H(10,QQ,5,1,"div",9),be(11,"app-modal")(12,"app-webint-input"),_()),2&n){const e=C(2);v("ngStyle",e.newCSS.main)("hidden","main"!==e.globals.activeWindow),f(4),v("ngIf",e.globals.loggedIn&&e.globals.graphLoaded),f(1),v("ngIf",e.globals.loggedIn&&e.globals.graphLoaded),f(1),v("ngIf",e.globals.loggedIn&&e.globals.graphLoaded),f(1),v("ngIf",e.globals.loggedIn&&e.globals.graphLoaded),f(1),v("ngIf",e.globals.loggedIn&&e.globals.graphLoaded),f(1),v("ngIf",!e.globals.loggedIn),f(1),v("ngIf",!e.globals.graphLoaded&&e.waitedABit)}}function ZQ(n,t){1&n&&(g(0,"div",16),be(1,"app-contact-creator"),_()),2&n&&v("hidden","contactCreation"!==C(2).globals.activeWindow)}function XQ(n,t){1&n&&(g(0,"div",16),be(1,"app-about"),_()),2&n&&v("hidden","about"!==C(2).globals.activeWindow)}function eJ(n,t){1&n&&(g(0,"div",16),be(1,"app-license-information"),_()),2&n&&v("hidden","license"!==C(2).globals.activeWindow)}function tJ(n,t){1&n&&(g(0,"div",16),be(1,"app-project-selector-page"),_()),2&n&&v("hidden","projectPage"!==C(2).globals.activeWindow)}function nJ(n,t){1&n&&(g(0,"div",16),be(1,"app-document-selector-page"),_()),2&n&&v("hidden","documentationTargetSelector"!==C(2).globals.activeWindow)}function iJ(n,t){1&n&&(g(0,"div",16),be(1,"app-user-settings"),_()),2&n&&v("hidden","userSettings"!==C(2).globals.activeWindow)}function rJ(n,t){1&n&&(g(0,"div",16),be(1,"app-company-selector-page"),_()),2&n&&v("hidden","companyPage"!==C(2).globals.activeWindow)}function oJ(n,t){if(1&n&&(g(0,"div",12),j(1),_()),2&n){const e=C(2);f(1),qe(" ",e.globals.languageConfLocal.itemNotSupported," ")}}function sJ(n,t){if(1&n&&(be(0,"input",3),g(1,"div",4),H(2,JQ,13,9,"div",5),H(3,ZQ,2,1,"div",6),H(4,XQ,2,1,"div",6),H(5,eJ,2,1,"div",6),H(6,tJ,2,1,"div",6),H(7,nJ,2,1,"div",6),H(8,iJ,2,1,"div",6),H(9,rJ,2,1,"div",6),g(10,"div",7),be(11,"mat-progress-spinner",8),_(),H(12,oJ,2,1,"div",9),_()),2&n){const e=C();f(1),v("ngStyle",e.newCSS.overflowContainer),f(1),v("ngIf",!e.globals.itemNotSupported),f(1),v("ngIf",!e.globals.itemNotSupported),f(1),v("ngIf",!e.globals.itemNotSupported),f(1),v("ngIf",!e.globals.itemNotSupported),f(1),v("ngIf",!e.globals.itemNotSupported),f(1),v("ngIf",!e.globals.itemNotSupported),f(1),v("ngIf",!e.globals.itemNotSupported),f(1),v("ngIf",!e.globals.itemNotSupported),f(2),v("diameter",30),f(1),v("ngIf",e.globals.itemNotSupported)}}let HC=(()=>{class n{constructor(e,i,r,o,s,a,l,c,u,d,h){this.modalService=e,this.initService=i,this.connectorFactory=r,this.graphAuthService=o,this.globals=s,this.lsm=a,this.connectionService=l,this.dps=c,this.datasource=u,this.http=d,this.authService=h,this.title="Business Mail",this.waitedABit=!1,this.newCSS={main:{},overflowContainer:{}},this.isInit=!1}ngOnInit(){setTimeout(()=>{this.waitedABit=!0},1e3);let e=Office.context.mailbox.item;(!e||e.itemClass&&(e.itemClass.startsWith("IPM.Schedule.Meeting.Resp")||e.itemClass.startsWith("IPM.Schedule.Meeting.Canceled")))&&(this.globals.itemNotSupported=!0),this.graphAuthService.handleRedirectObservable().subscribe({next:i=>{console.log("REDIRECT SUCCESSFULL"),console.log(i),this.openGraphLogin()},error:i=>console.log(i)}),this.globals.isRedirectPage||(this.connectorFactory.checkForApp().subscribe(i=>{this.connector=i,this.initConnectorData()}),Office.context.mailbox.addHandlerAsync(Office.EventType.ItemChanged,this.itemChangeHandler.bind(this)),this.modalService.waitForModalDesign().subscribe(()=>{this.initModalItems()}),this.initService.waitForInit().subscribe(i=>{this.isInit=i}),window.addEventListener("keydown",this.ownReloadAndESC)),window.dps=this.dps,this.globals.activeWindow="main",window.innerHeight>0&&window.innerWidth>0&&setInterval(()=>{let i=(new Date).toString();this.lsm.setValue(Zt.taskpaneActive,i)},1e3)}ngAfterViewInit(){this.datasource.getConfig().subscribe(e=>{console.log("response: ",e),this.globals.configJson=e||{},null==this.globals.configJson.projectSelection&&(this.globals.configJson.projectSelection=!0)})}itemChangeHandler(){return Ae(function*(){window.location.reload()})()}initModalItems(){this.modalItems=this.modalService.getModalItems(),this.isInit=!0}initConnectorData(){this.connector.waitForCSS().subscribe(e=>{this.newCSS=e}),this.connector.getData()}ownReloadAndESC(e){if(116===(e.which||e.keyCode)){if("Owa"===this.globals.curConnectorType)window.location.reload();else if(sessionStorage.setItem("verseAppData",JSON.stringify(this.globals.curConnector.data)),!window.location.href.includes("index.html")){let i="index.html";window.location.href.endsWith("/")||(i="/"+i),window.location.href+=i}}else if(27===e.keyCode)return window.dps.closeAll(),setTimeout(()=>{document.getElementById("focusDiv")?.focus()},100),void(e.cancelBubble=!0)}get isInit(){return this.init}set isInit(e){this.init=e}get mItems(){return this.modalItems}openGraphLogin(){setTimeout(()=>{this.authService.signIn()},400)}crmLogin(){null===window.localStorage.getItem("webInt")?this.openWebIntModal():this.connectionService.connect().subscribe(()=>{})}openWebIntModal(){this.connectionService.waitForWebIntModal().subscribe(e=>{e()})}doAttachmentsRead(){let e=Office.context.mailbox.item;e?.getAttachmentContentAsync(e.attachments[0].id,i=>{})}doAttachmentsCompose(){let e=Office.context.mailbox.item;e?.getAttachmentsAsync(i=>{e?.getAttachmentContentAsync(i.value[0].id,r=>{})})}}return n.\u0275fac=function(e){return new(e||n)(p(hl),p(Rb),p(dK),p(nu),p(ot),p(Mi),p(In),p(is),p(Bi),p(yc),p(hC))},n.\u0275cmp=Ue({type:n,selectors:[["app-root"]],decls:4,vars:2,consts:[["rel","stylesheet","href","https://fonts.googleapis.com/css2?family=Material+Symbols+Rounded:opsz,wght,FILL,GRAD@24,100,0,-25"],[4,"ngIf","ngIfElse"],["app",""],["id","focusDiv",2,"position","absolute","width","0px","height","0px","overflow","hidden","opacity","0","filter","alpha(opacity=0)"],["id","overflowContainer",3,"ngStyle"],["id","main",3,"ngStyle","hidden",4,"ngIf"],[3,"hidden",4,"ngIf"],["id","loadingSpinner",2,"display","none","width","100%","height","100%","position","absolute","z-index","99999","top","0px","left","0px","background-color","rgba(255,255,255,0.5)"],["mode","indeterminate",2,"position","absolute","z-index","9999","top","calc(50vh - 15px)","left","calc(50vw - 15px)",3,"diameter"],["class","notSupported",4,"ngIf"],["id","main",3,"ngStyle","hidden"],[4,"ngIf"],[1,"notSupported"],["class","notSupportedInner",4,"ngIf"],["mat-flat-button","",2,"width","100%","margin-top","1em","margin-bottom","1em","background-color","#0F6CBD","color","white",3,"click"],[1,"notSupportedInner"],[3,"hidden"]],template:function(e,i){if(1&e&&(be(0,"link",0),H(1,UQ,2,0,"div",1),H(2,sJ,13,11,"ng-template",null,2,Sn)),2&e){const r=Yt(3);f(1),v("ngIf",i.globals.isRedirectPage)("ngIfElse",r)}},styles:['.notSupportedInner[_ngcontent-%COMP%], .notSupported[_ngcontent-%COMP%]{margin:auto;padding-top:30px;font-size:21px;font-weight:100;font-family:Segoe UI,"Segoe UI Web (West European)",Segoe UI,-apple-system,BlinkMacSystemFont,Roboto,Helvetica Neue,sans-serif}#overflowContainer[_ngcontent-%COMP%]{height:100%;overflow:auto}#overflowContainer[_ngcontent-%COMP%] > #main[_ngcontent-%COMP%]{height:100%;width:100%;padding:0 12px}.notSupported[_ngcontent-%COMP%]{width:90%}.notSupportedInner[_ngcontent-%COMP%]{width:100%}']}),n})();function VC(n,t=Dc){const i=function aJ(n){return n instanceof Date&&!isNaN(+n)}(n)?+n-t.now():Math.abs(n);return r=>r.lift(new lJ(i,t))}class lJ{constructor(t,e){this.delay=t,this.scheduler=e}call(t,e){return e.subscribe(new UC(t,this.delay,this.scheduler))}}class UC extends S{constructor(t,e,i){super(t),this.delay=e,this.scheduler=i,this.queue=[],this.active=!1,this.errored=!1}static dispatch(t){const e=t.source,i=e.queue,r=t.scheduler,o=t.destination;for(;i.length>0&&i[0].time-r.now()<=0;)i.shift().notification.observe(o);if(i.length>0){const s=Math.max(0,i[0].time-r.now());this.schedule(t,s)}else this.unsubscribe(),e.active=!1}_schedule(t){this.active=!0,this.destination.add(t.schedule(UC.dispatch,this.delay,{source:this,destination:this.destination,scheduler:t}))}scheduleNotification(t){if(!0===this.errored)return;const e=this.scheduler,i=new cJ(e.now()+this.delay,t);this.queue.push(i),!1===this.active&&this._schedule(e)}_next(t){this.scheduleNotification(sr.createNext(t))}_error(t){this.errored=!0,this.queue=[],this.destination.error(t),this.unsubscribe()}_complete(){this.scheduleNotification(sr.createComplete()),this.unsubscribe()}}class cJ{constructor(t,e){this.time=t,this.notification=e}}const uJ=["mat-menu-item",""];function dJ(n,t){1&n&&(Rl(),g(0,"svg",2),be(1,"polygon",3),_())}const gk=["*"];function hJ(n,t){if(1&n){const e=Ie();g(0,"div",0),W("keydown",function(r){return J(e),Z(C()._handleKeydown(r))})("click",function(){return J(e),Z(C().closed.emit("click"))})("@transformMenu.start",function(r){return J(e),Z(C()._onAnimationStart(r))})("@transformMenu.done",function(r){return J(e),Z(C()._onAnimationDone(r))}),g(1,"div",1),Bt(2),_()()}if(2&n){const e=C();v("id",e.panelId)("ngClass",e._classList)("@transformMenu",e._panelAnimationState),rt("aria-label",e.ariaLabel||null)("aria-labelledby",e.ariaLabelledby||null)("aria-describedby",e.ariaDescribedby||null)}}const Gm={transformMenu:So("transformMenu",[li("void",qt({opacity:0,transform:"scale(0.8)"})),bi("void => enter",Oi("120ms cubic-bezier(0, 0, 0.2, 1)",qt({opacity:1,transform:"scale(1)"}))),bi("* => void",Oi("100ms 25ms linear",qt({opacity:0})))]),fadeInItems:So("fadeInItems",[li("showing",qt({opacity:1})),bi("void => *",[qt({opacity:0}),Oi("400ms 100ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])},pJ=new me("MatMenuContent"),qC=new me("MAT_MENU_PANEL"),fJ=Go(Rs(class{}));let iu=(()=>{class n extends fJ{constructor(e,i,r,o,s){super(),this._elementRef=e,this._document=i,this._focusMonitor=r,this._parentMenu=o,this._changeDetectorRef=s,this.role="menuitem",this._hovered=new N,this._focused=new N,this._highlighted=!1,this._triggersSubmenu=!1,o?.addItem?.(this)}focus(e,i){this._focusMonitor&&e?this._focusMonitor.focusVia(this._getHostElement(),e,i):this._getHostElement().focus(i),this._focused.next(this)}ngAfterViewInit(){this._focusMonitor&&this._focusMonitor.monitor(this._elementRef,!1)}ngOnDestroy(){this._focusMonitor&&this._focusMonitor.stopMonitoring(this._elementRef),this._parentMenu&&this._parentMenu.removeItem&&this._parentMenu.removeItem(this),this._hovered.complete(),this._focused.complete()}_getTabIndex(){return this.disabled?"-1":"0"}_getHostElement(){return this._elementRef.nativeElement}_checkDisabled(e){this.disabled&&(e.preventDefault(),e.stopPropagation())}_handleMouseEnter(){this._hovered.next(this)}getLabel(){const e=this._elementRef.nativeElement.cloneNode(!0),i=e.querySelectorAll("mat-icon, .material-icons");for(let r=0;r{class n{constructor(e,i,r,o){this._elementRef=e,this._ngZone=i,this._defaultOptions=r,this._changeDetectorRef=o,this._xPosition=this._defaultOptions.xPosition,this._yPosition=this._defaultOptions.yPosition,this._directDescendantItems=new qa,this._tabSubscription=E.EMPTY,this._classList={},this._panelAnimationState="void",this._animationDone=new N,this.overlayPanelClass=this._defaultOptions.overlayPanelClass||"",this.backdropClass=this._defaultOptions.backdropClass,this._overlapTrigger=this._defaultOptions.overlapTrigger,this._hasBackdrop=this._defaultOptions.hasBackdrop,this.closed=new He,this.close=this.closed,this.panelId="mat-menu-panel-"+gJ++}get xPosition(){return this._xPosition}set xPosition(e){this._xPosition=e,this.setPositionClasses()}get yPosition(){return this._yPosition}set yPosition(e){this._yPosition=e,this.setPositionClasses()}get overlapTrigger(){return this._overlapTrigger}set overlapTrigger(e){this._overlapTrigger=lt(e)}get hasBackdrop(){return this._hasBackdrop}set hasBackdrop(e){this._hasBackdrop=lt(e)}set panelClass(e){const i=this._previousPanelClass;i&&i.length&&i.split(" ").forEach(r=>{this._classList[r]=!1}),this._previousPanelClass=e,e&&e.length&&(e.split(" ").forEach(r=>{this._classList[r]=!0}),this._elementRef.nativeElement.className="")}get classList(){return this.panelClass}set classList(e){this.panelClass=e}ngOnInit(){this.setPositionClasses()}ngAfterContentInit(){this._updateDirectDescendants(),this._keyManager=new Sf(this._directDescendantItems).withWrap().withTypeAhead().withHomeAndEnd(),this._tabSubscription=this._keyManager.tabOut.subscribe(()=>this.closed.emit("tab")),this._directDescendantItems.changes.pipe(ni(this._directDescendantItems),Kn(e=>On(...e.map(i=>i._focused)))).subscribe(e=>this._keyManager.updateActiveItem(e)),this._directDescendantItems.changes.subscribe(e=>{const i=this._keyManager;if("enter"===this._panelAnimationState&&i.activeItem?._hasFocus()){const r=e.toArray(),o=Math.max(0,Math.min(r.length-1,i.activeItemIndex||0));r[o]&&!r[o].disabled?i.setActiveItem(o):i.setNextItemActive()}})}ngOnDestroy(){this._directDescendantItems.destroy(),this._tabSubscription.unsubscribe(),this.closed.complete()}_hovered(){return this._directDescendantItems.changes.pipe(ni(this._directDescendantItems),Kn(i=>On(...i.map(r=>r._hovered))))}addItem(e){}removeItem(e){}_handleKeydown(e){const i=e.keyCode,r=this._keyManager;switch(i){case 27:yi(e)||(e.preventDefault(),this.closed.emit("keydown"));break;case 37:this.parentMenu&&"ltr"===this.direction&&this.closed.emit("keydown");break;case 39:this.parentMenu&&"rtl"===this.direction&&this.closed.emit("keydown");break;default:return(38===i||40===i)&&r.setFocusOrigin("keyboard"),void r.onKeydown(e)}e.stopPropagation()}focusFirstItem(e="program"){this._ngZone.onStable.pipe(sn(1)).subscribe(()=>{let i=null;if(this._directDescendantItems.length&&(i=this._directDescendantItems.first._getHostElement().closest('[role="menu"]')),!i||!i.contains(document.activeElement)){const r=this._keyManager;r.setFocusOrigin(e).setFirstItemActive(),!r.activeItem&&i&&i.focus()}})}resetActiveItem(){this._keyManager.setActiveItem(-1)}setElevation(e){const i=Math.min(this._baseElevation+e,24),r=`${this._elevationPrefix}${i}`,o=Object.keys(this._classList).find(s=>s.startsWith(this._elevationPrefix));(!o||o===this._previousElevation)&&(this._previousElevation&&(this._classList[this._previousElevation]=!1),this._classList[r]=!0,this._previousElevation=r)}setPositionClasses(e=this.xPosition,i=this.yPosition){const r=this._classList;r["mat-menu-before"]="before"===e,r["mat-menu-after"]="after"===e,r["mat-menu-above"]="above"===i,r["mat-menu-below"]="below"===i,this._changeDetectorRef?.markForCheck()}_startAnimation(){this._panelAnimationState="enter"}_resetAnimation(){this._panelAnimationState="void"}_onAnimationDone(e){this._animationDone.next(e),this._isAnimating=!1}_onAnimationStart(e){this._isAnimating=!0,"enter"===e.toState&&0===this._keyManager.activeItemIndex&&(e.element.scrollTop=0)}_updateDirectDescendants(){this._allItems.changes.pipe(ni(this._allItems)).subscribe(e=>{this._directDescendantItems.reset(e.filter(i=>i._parentMenu===this)),this._directDescendantItems.notifyOnChanges()})}}return n.\u0275fac=function(e){return new(e||n)(p(Je),p(et),p(_k),p(St))},n.\u0275dir=fe({type:n,contentQueries:function(e,i,r){if(1&e&&(jt(r,pJ,5),jt(r,iu,5),jt(r,iu,4)),2&e){let o;ce(o=ue())&&(i.lazyContent=o.first),ce(o=ue())&&(i._allItems=o),ce(o=ue())&&(i.items=o)}},viewQuery:function(e,i){if(1&e&&De(yn,5),2&e){let r;ce(r=ue())&&(i.templateRef=r.first)}},inputs:{backdropClass:"backdropClass",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],ariaDescribedby:["aria-describedby","ariaDescribedby"],xPosition:"xPosition",yPosition:"yPosition",overlapTrigger:"overlapTrigger",hasBackdrop:"hasBackdrop",panelClass:["class","panelClass"],classList:"classList"},outputs:{closed:"closed",close:"close"}}),n})(),vk=(()=>{class n extends uh{constructor(e,i,r,o){super(e,i,r,o),this._elevationPrefix="mat-elevation-z",this._baseElevation=4}}return n.\u0275fac=function(e){return new(e||n)(p(Je),p(et),p(_k),p(St))},n.\u0275cmp=Ue({type:n,selectors:[["mat-menu"]],hostVars:3,hostBindings:function(e,i){2&e&&rt("aria-label",null)("aria-labelledby",null)("aria-describedby",null)},exportAs:["matMenu"],features:[it([{provide:qC,useExisting:n}]),Se],ngContentSelectors:gk,decls:1,vars:0,consts:[["tabindex","-1","role","menu",1,"mat-menu-panel",3,"id","ngClass","keydown","click"],[1,"mat-menu-content"]],template:function(e,i){1&e&&(Pn(),H(0,hJ,3,6,"ng-template"))},dependencies:[$a],styles:['mat-menu{display:none}.mat-menu-panel{min-width:112px;max-width:280px;overflow:auto;-webkit-overflow-scrolling:touch;max-height:calc(100vh - 48px);border-radius:4px;outline:0;min-height:64px;position:relative}.mat-menu-panel.ng-animating{pointer-events:none}.cdk-high-contrast-active .mat-menu-panel{outline:solid 1px}.mat-menu-content:not(:empty){padding-top:8px;padding-bottom:8px}.mat-menu-item{-webkit-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:rgba(0,0,0,0);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}.mat-menu-item::-moz-focus-inner{border:0}.mat-menu-item[disabled]{cursor:default}[dir=rtl] .mat-menu-item{text-align:right}.mat-menu-item .mat-icon{margin-right:16px;vertical-align:middle}.mat-menu-item .mat-icon svg{vertical-align:top}[dir=rtl] .mat-menu-item .mat-icon{margin-left:16px;margin-right:0}.mat-menu-item[disabled]::after{display:block;position:absolute;content:"";top:0;left:0;bottom:0;right:0}.cdk-high-contrast-active .mat-menu-item{margin-top:1px}.mat-menu-item-submenu-trigger{padding-right:32px}[dir=rtl] .mat-menu-item-submenu-trigger{padding-right:16px;padding-left:32px}.mat-menu-submenu-icon{position:absolute;top:50%;right:16px;transform:translateY(-50%);width:5px;height:10px;fill:currentColor}[dir=rtl] .mat-menu-submenu-icon{right:auto;left:16px;transform:translateY(-50%) scaleX(-1)}.cdk-high-contrast-active .mat-menu-submenu-icon{fill:CanvasText}button.mat-menu-item{width:100%}.mat-menu-item .mat-menu-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}'],encapsulation:2,data:{animation:[Gm.transformMenu,Gm.fadeInItems]},changeDetection:0}),n})();const yk=new me("mat-menu-scroll-strategy"),vJ={provide:yk,deps:[lr],useFactory:function _J(n){return()=>n.scrollStrategies.reposition()}},bk=As({passive:!0});let yJ=(()=>{class n{constructor(e,i,r,o,s,a,l,c,u){this._overlay=e,this._element=i,this._viewContainerRef=r,this._menuItemInstance=a,this._dir=l,this._focusMonitor=c,this._ngZone=u,this._overlayRef=null,this._menuOpen=!1,this._closingActionsSubscription=E.EMPTY,this._hoverSubscription=E.EMPTY,this._menuCloseSubscription=E.EMPTY,this._handleTouchStart=d=>{xf(d)||(this._openedBy="touch")},this._openedBy=void 0,this.restoreFocus=!0,this.menuOpened=new He,this.onMenuOpen=this.menuOpened,this.menuClosed=new He,this.onMenuClose=this.menuClosed,this._scrollStrategy=o,this._parentMaterialMenu=s instanceof uh?s:void 0,i.nativeElement.addEventListener("touchstart",this._handleTouchStart,bk),a&&(a._triggersSubmenu=this.triggersSubmenu())}get _deprecatedMatMenuTriggerFor(){return this.menu}set _deprecatedMatMenuTriggerFor(e){this.menu=e}get menu(){return this._menu}set menu(e){e!==this._menu&&(this._menu=e,this._menuCloseSubscription.unsubscribe(),e&&(this._menuCloseSubscription=e.close.subscribe(i=>{this._destroyMenu(i),("click"===i||"tab"===i)&&this._parentMaterialMenu&&this._parentMaterialMenu.closed.emit(i)})))}ngAfterContentInit(){this._handleHover()}ngOnDestroy(){this._overlayRef&&(this._overlayRef.dispose(),this._overlayRef=null),this._element.nativeElement.removeEventListener("touchstart",this._handleTouchStart,bk),this._menuCloseSubscription.unsubscribe(),this._closingActionsSubscription.unsubscribe(),this._hoverSubscription.unsubscribe()}get menuOpen(){return this._menuOpen}get dir(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}triggersSubmenu(){return!(!this._menuItemInstance||!this._parentMaterialMenu)}toggleMenu(){return this._menuOpen?this.closeMenu():this.openMenu()}openMenu(){const e=this.menu;if(this._menuOpen||!e)return;const i=this._createOverlay(e),r=i.getConfig(),o=r.positionStrategy;this._setPosition(e,o),r.hasBackdrop=e.hasBackdrop??!this.triggersSubmenu(),i.attach(this._getPortal(e)),e.lazyContent&&e.lazyContent.attach(this.menuData),this._closingActionsSubscription=this._menuClosingActions().subscribe(()=>this.closeMenu()),this._initMenu(e),e instanceof uh&&(e._startAnimation(),e._directDescendantItems.changes.pipe(Jt(e.close)).subscribe(()=>{o.withLockedPosition(!1).reapplyLastPosition(),o.withLockedPosition(!0)}))}closeMenu(){this.menu?.close.emit()}focus(e,i){this._focusMonitor&&e?this._focusMonitor.focusVia(this._element,e,i):this._element.nativeElement.focus(i)}updatePosition(){this._overlayRef?.updatePosition()}_destroyMenu(e){if(!this._overlayRef||!this.menuOpen)return;const i=this.menu;this._closingActionsSubscription.unsubscribe(),this._overlayRef.detach(),this.restoreFocus&&("keydown"===e||!this._openedBy||!this.triggersSubmenu())&&this.focus(this._openedBy),this._openedBy=void 0,i instanceof uh?(i._resetAnimation(),i.lazyContent?i._animationDone.pipe(Tn(r=>"void"===r.toState),sn(1),Jt(i.lazyContent._attached)).subscribe({next:()=>i.lazyContent.detach(),complete:()=>this._setIsMenuOpen(!1)}):this._setIsMenuOpen(!1)):(this._setIsMenuOpen(!1),i?.lazyContent?.detach())}_initMenu(e){e.parentMenu=this.triggersSubmenu()?this._parentMaterialMenu:void 0,e.direction=this.dir,this._setMenuElevation(e),e.focusFirstItem(this._openedBy||"program"),this._setIsMenuOpen(!0)}_setMenuElevation(e){if(e.setElevation){let i=0,r=e.parentMenu;for(;r;)i++,r=r.parentMenu;e.setElevation(i)}}_setIsMenuOpen(e){this._menuOpen=e,this._menuOpen?this.menuOpened.emit():this.menuClosed.emit(),this.triggersSubmenu()&&this._menuItemInstance._setHighlighted(e)}_createOverlay(e){if(!this._overlayRef){const i=this._getOverlayConfig(e);this._subscribeToPositions(e,i.positionStrategy),this._overlayRef=this._overlay.create(i),this._overlayRef.keydownEvents().subscribe()}return this._overlayRef}_getOverlayConfig(e){return new xc({positionStrategy:this._overlay.position().flexibleConnectedTo(this._element).withLockedPosition().withGrowAfterOpen().withTransformOriginOn(".mat-menu-panel, .mat-mdc-menu-panel"),backdropClass:e.backdropClass||"cdk-overlay-transparent-backdrop",panelClass:e.overlayPanelClass,scrollStrategy:this._scrollStrategy(),direction:this._dir})}_subscribeToPositions(e,i){e.setPositionClasses&&i.positionChanges.subscribe(r=>{const o="start"===r.connectionPair.overlayX?"after":"before",s="top"===r.connectionPair.overlayY?"below":"above";this._ngZone?this._ngZone.run(()=>e.setPositionClasses(o,s)):e.setPositionClasses(o,s)})}_setPosition(e,i){let[r,o]="before"===e.xPosition?["end","start"]:["start","end"],[s,a]="above"===e.yPosition?["bottom","top"]:["top","bottom"],[l,c]=[s,a],[u,d]=[r,o],h=0;if(this.triggersSubmenu()){if(d=r="before"===e.xPosition?"start":"end",o=u="end"===r?"start":"end",this._parentMaterialMenu){if(null==this._parentInnerPadding){const m=this._parentMaterialMenu.items.first;this._parentInnerPadding=m?m._getHostElement().offsetTop:0}h="bottom"===s?this._parentInnerPadding:-this._parentInnerPadding}}else e.overlapTrigger||(l="top"===s?"bottom":"top",c="top"===a?"bottom":"top");i.withPositions([{originX:r,originY:l,overlayX:u,overlayY:s,offsetY:h},{originX:o,originY:l,overlayX:d,overlayY:s,offsetY:h},{originX:r,originY:c,overlayX:u,overlayY:a,offsetY:-h},{originX:o,originY:c,overlayX:d,overlayY:a,offsetY:-h}])}_menuClosingActions(){const e=this._overlayRef.backdropClick(),i=this._overlayRef.detachments();return On(e,this._parentMaterialMenu?this._parentMaterialMenu.closed:Ne(),this._parentMaterialMenu?this._parentMaterialMenu._hovered().pipe(Tn(s=>s!==this._menuItemInstance),Tn(()=>this._menuOpen)):Ne(),i)}_handleMousedown(e){Tf(e)||(this._openedBy=0===e.button?"mouse":void 0,this.triggersSubmenu()&&e.preventDefault())}_handleKeydown(e){const i=e.keyCode;(13===i||32===i)&&(this._openedBy="keyboard"),this.triggersSubmenu()&&(39===i&&"ltr"===this.dir||37===i&&"rtl"===this.dir)&&(this._openedBy="keyboard",this.openMenu())}_handleClick(e){this.triggersSubmenu()?(e.stopPropagation(),this.openMenu()):this.toggleMenu()}_handleHover(){!this.triggersSubmenu()||!this._parentMaterialMenu||(this._hoverSubscription=this._parentMaterialMenu._hovered().pipe(Tn(e=>e===this._menuItemInstance&&!e.disabled),VC(0,pb)).subscribe(()=>{this._openedBy="mouse",this.menu instanceof uh&&this.menu._isAnimating?this.menu._animationDone.pipe(sn(1),VC(0,pb),Jt(this._parentMaterialMenu._hovered())).subscribe(()=>this.openMenu()):this.openMenu()}))}_getPortal(e){return(!this._portal||this._portal.templateRef!==e.templateRef)&&(this._portal=new Ms(e.templateRef,this._viewContainerRef)),this._portal}}return n.\u0275fac=function(e){return new(e||n)(p(lr),p(Je),p(Dn),p(yk),p(qC,8),p(iu,10),p(Xi,8),p(Do),p(et))},n.\u0275dir=fe({type:n,hostVars:3,hostBindings:function(e,i){1&e&&W("click",function(o){return i._handleClick(o)})("mousedown",function(o){return i._handleMousedown(o)})("keydown",function(o){return i._handleKeydown(o)}),2&e&&rt("aria-haspopup",i.menu?"menu":null)("aria-expanded",i.menuOpen||null)("aria-controls",i.menuOpen?i.menu.panelId:null)},inputs:{_deprecatedMatMenuTriggerFor:["mat-menu-trigger-for","_deprecatedMatMenuTriggerFor"],menu:["matMenuTriggerFor","menu"],menuData:["matMenuTriggerData","menuData"],restoreFocus:["matMenuTriggerRestoreFocus","restoreFocus"]},outputs:{menuOpened:"menuOpened",onMenuOpen:"onMenuOpen",menuClosed:"menuClosed",onMenuClose:"onMenuClose"}}),n})(),Ck=(()=>{class n extends yJ{}return n.\u0275fac=function(){let t;return function(i){return(t||(t=Pt(n)))(i||n)}}(),n.\u0275dir=fe({type:n,selectors:[["","mat-menu-trigger-for",""],["","matMenuTriggerFor",""]],hostAttrs:[1,"mat-menu-trigger"],exportAs:["matMenuTrigger"],features:[Se]}),n})(),bJ=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=ht({type:n}),n.\u0275inj=dt({providers:[vJ],imports:[$r,Lt,ha,Ic,Tc,Lt]}),n})();const CJ=["*"];let Wm;function dh(n){return function wJ(){if(void 0===Wm&&(Wm=null,typeof window<"u")){const n=window;void 0!==n.trustedTypes&&(Wm=n.trustedTypes.createPolicy("angular#components",{createHTML:t=>t}))}return Wm}()?.createHTML(n)||n}function wk(n){return Error(`Unable to find icon with the name "${n}"`)}function Ek(n){return Error(`The URL provided to MatIconRegistry was not trusted as a resource URL via Angular's DomSanitizer. Attempted URL was "${n}".`)}function Dk(n){return Error(`The literal provided to MatIconRegistry was not trusted as safe HTML by Angular's DomSanitizer. Attempted literal was "${n}".`)}class gl{constructor(t,e,i){this.url=t,this.svgText=e,this.options=i}}let $m=(()=>{class n{constructor(e,i,r,o){this._httpClient=e,this._sanitizer=i,this._errorHandler=o,this._svgIconConfigs=new Map,this._iconSetConfigs=new Map,this._cachedIconsByUrl=new Map,this._inProgressUrlFetches=new Map,this._fontCssClassesByAlias=new Map,this._resolvers=[],this._defaultFontSetClass=["material-icons","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,o){return this._addSvgIconConfig(e,i,new gl(r,null,o))}addSvgIconResolver(e){return this._resolvers.push(e),this}addSvgIconLiteralInNamespace(e,i,r,o){const s=this._sanitizer.sanitize(dn.HTML,r);if(!s)throw Dk(r);const a=dh(s);return this._addSvgIconConfig(e,i,new gl("",a,o))}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 gl(i,null,r))}addSvgIconSetLiteralInNamespace(e,i,r){const o=this._sanitizer.sanitize(dn.HTML,i);if(!o)throw Dk(i);const s=dh(o);return this._addSvgIconSetConfig(e,new gl("",s,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(dn.RESOURCE_URL,e);if(!i)throw Ek(e);const r=this._cachedIconsByUrl.get(i);return r?Ne(Km(r)):this._loadSvgIconFromConfig(new gl(e,null)).pipe(Yn(o=>this._cachedIconsByUrl.set(i,o)),he(o=>Km(o)))}getNamedSvgIcon(e,i=""){const r=Sk(i,e);let o=this._svgIconConfigs.get(r);if(o)return this._getSvgFromConfig(o);if(o=this._getIconConfigFromResolvers(i,e),o)return this._svgIconConfigs.set(r,o),this._getSvgFromConfig(o);const s=this._iconSetConfigs.get(i);return s?this._getSvgFromIconSetConfigs(e,s):Qa(wk(r))}ngOnDestroy(){this._resolvers=[],this._svgIconConfigs.clear(),this._iconSetConfigs.clear(),this._cachedIconsByUrl.clear()}_getSvgFromConfig(e){return e.svgText?Ne(Km(this._svgElementFromConfig(e))):this._loadSvgIconFromConfig(e).pipe(he(i=>Km(i)))}_getSvgFromIconSetConfigs(e,i){const r=this._extractIconWithNameFromAnySet(e,i);return r?Ne(r):_y(i.filter(s=>!s.svgText).map(s=>this._loadSvgIconSetFromConfig(s).pipe(qs(a=>{const c=`Loading icon set URL: ${this._sanitizer.sanitize(dn.RESOURCE_URL,s.url)} failed: ${a.message}`;return this._errorHandler.handleError(new Error(c)),Ne(null)})))).pipe(he(()=>{const s=this._extractIconWithNameFromAnySet(e,i);if(!s)throw wk(e);return s}))}_extractIconWithNameFromAnySet(e,i){for(let r=i.length-1;r>=0;r--){const o=i[r];if(o.svgText&&o.svgText.toString().indexOf(e)>-1){const s=this._svgElementFromConfig(o),a=this._extractSvgIconFromSet(s,e,o.options);if(a)return a}}return null}_loadSvgIconFromConfig(e){return this._fetchIcon(e).pipe(Yn(i=>e.svgText=i),he(()=>this._svgElementFromConfig(e)))}_loadSvgIconSetFromConfig(e){return e.svgText?Ne(null):this._fetchIcon(e).pipe(Yn(i=>e.svgText=i))}_extractSvgIconFromSet(e,i,r){const o=e.querySelector(`[id="${i}"]`);if(!o)return null;const s=o.cloneNode(!0);if(s.removeAttribute("id"),"svg"===s.nodeName.toLowerCase())return this._setSvgAttributes(s,r);if("symbol"===s.nodeName.toLowerCase())return this._setSvgAttributes(this._toSvgElement(s),r);const a=this._svgElementFromString(dh(""));return a.appendChild(s),this._setSvgAttributes(a,r)}_svgElementFromString(e){const i=this._document.createElement("DIV");i.innerHTML=e;const r=i.querySelector("svg");if(!r)throw Error(" tag not found");return r}_toSvgElement(e){const i=this._svgElementFromString(dh("")),r=e.attributes;for(let o=0;odh(c)),Am(()=>this._inProgressUrlFetches.delete(s)),Dw());return this._inProgressUrlFetches.set(s,l),l}_addSvgIconConfig(e,i,r){return this._svgIconConfigs.set(Sk(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;rt?t.pathname+t.search:""}}}),Ak=["clip-path","color-profile","src","cursor","fill","filter","marker","marker-start","marker-mid","marker-end","mask","stroke"],MJ=Ak.map(n=>`[${n}]`).join(", "),kJ=/^url\(['"]?#(.*?)['"]?\)$/;let RJ=(()=>{class n extends AJ{constructor(e,i,r,o,s,a){super(e),this._iconRegistry=i,this._location=o,this._errorHandler=s,this._inline=!1,this._previousFontSetClass=[],this._currentIconFetch=E.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=lt(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,o)=>{r.forEach(s=>{o.setAttribute(s.name,`url('${e}#${s.value}')`)})})}_cacheChildrenWithExternalReferences(e){const i=e.querySelectorAll(MJ),r=this._elementsWithExternalReferences=this._elementsWithExternalReferences||new Map;for(let o=0;o{const a=i[o],l=a.getAttribute(s),c=l?l.match(kJ):null;if(c){let u=r.get(a);u||(u=[],r.set(a,u)),u.push({name:s,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(sn(1)).subscribe(o=>this._setSvgElement(o),o=>{this._errorHandler.handleError(new Error(`Error retrieving icon ${i}:${r}! ${o.message}`))})}}}return n.\u0275fac=function(e){return new(e||n)(p(Je),p($m),Vr("aria-hidden"),p(xJ),p(ps),p(TJ,8))},n.\u0275cmp=Ue({type:n,selectors:[["mat-icon"]],hostAttrs:["role","img",1,"mat-icon","notranslate"],hostVars:8,hostBindings:function(e,i){2&e&&(rt("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),bt("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:[Se],ngContentSelectors:CJ,decls:1,vars:0,template:function(e,i){1&e&&(Pn(),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})(),OJ=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=ht({type:n}),n.\u0275inj=dt({imports:[Lt,Lt]}),n})();function PJ(n,t){if(1&n){const e=Ie();g(0,"div",19),W("click",function(){return J(e),Z(C(2).toggleClass(2))}),Ze(1,"translate"),_()}if(2&n){const e=C(2);_s(e.iconConfigLocal[2].model.classAssignment[e.iconConfigLocal[2].model.value]),_t("title",Xe(1,5,e.iconConfigLocal[2].model.titleLC[e.iconConfigLocal[2].model.value])),v("ngStyle",e.configIcon)}}function LJ(n,t){1&n&&(g(0,"span"),be(1,"img",21),_())}function NJ(n,t){1&n&&(g(0,"span"),be(1,"img",22),_())}function FJ(n,t){if(1&n){const e=Ie();g(0,"div",20),W("click",function(){return J(e),Z(C(2).toggleClass(1))}),Ze(1,"translate"),H(2,LJ,2,0,"span",17),H(3,NJ,2,0,"span",17),_()}if(2&n){const e=C(2);_s(e.iconConfigLocal[1].model.classAssignment[e.iconConfigLocal[1].model.value]),_t("title",Xe(1,6,e.iconConfigLocal[1].model.titleLC[e.iconConfigLocal[1].model.value])),f(2),v("ngIf",!e.globals.openMail),f(1),v("ngIf",e.globals.openMail)}}function BJ(n,t){1&n&&(g(0,"span"),be(1,"img",23),_())}function jJ(n,t){1&n&&(g(0,"span"),be(1,"img",24),_())}function HJ(n,t){if(1&n){const e=Ie();g(0,"div",25)(1,"img",26),W("click",function(r){return J(e),Z(C(2).showDocumentSelector(r))}),_()()}if(2&n){const e=C(2);f(1),v("title","ba"===e.globals.system?e.globals.languageConfLocal.selectFromAllDocumentsBA:e.globals.languageConfLocal.selectFromAllDocuments)}}function VJ(n,t){if(1&n){const e=Ie();g(0,"div",11)(1,"div",12),W("click",function(){return J(e),Z(C().reload())}),g(2,"span"),be(3,"img",13),_()(),H(4,PJ,2,7,"div",14),H(5,FJ,4,8,"div",15),g(6,"div",16),W("click",function(){return J(e),Z(C().toggleClass(0))}),Ze(7,"translate"),H(8,BJ,2,0,"span",17),H(9,jJ,2,0,"span",17),_(),H(10,HJ,2,1,"div",18),_()}if(2&n){const e=C();f(1),_t("title",e.globals.languageConfLocal.reload),f(3),v("ngIf","gi"===e.globals.system&&(e.globals.actionsAllowed&&!e.globals.actionsAllowed||e.globals.createAllowed)),f(1),v("ngIf",e.isReadMode),f(1),_s(e.iconConfigLocal[0].model.classAssignment[e.iconConfigLocal[0].model.value]),_t("title",Xe(7,10,e.iconConfigLocal[0].model.titleLC[e.iconConfigLocal[0].model.value])),f(2),v("ngIf",!e.globals.deleteAttachments),f(1),v("ngIf",e.globals.deleteAttachments),f(1),v("ngIf",!e.globals.infoShower.isAppointment&&"doNotDocument"!==e.globals.infoShower.selectedEmailAddress&&(e.globals.configJson.webUrl&&(!e.globals.configJson.giVersionNumber||void 0===e.globals.configJson.giVersionNumber||e.globals.configJson.giVersionNumber.maintenanceVersion>=15)||"ba"===e.globals.system))}}function UJ(n,t){if(1&n){const e=Ie();g(0,"li",9),W("click",function(){return J(e),Z(C().connectionService.logout())}),j(1),_()}if(2&n){const e=C();f(1),qe(" ",e.globals.languageConfLocal.logout," ")}}function qJ(n,t){if(1&n){const e=Ie();g(0,"li",9),W("click",function(){return J(e),Z(C().openGraphLogin())}),j(1," Login Microsoft Graph "),_()}}function zJ(n,t){if(1&n){const e=Ie();g(0,"li",9),W("click",function(){return J(e),Z(C().logoutGraph())}),j(1," Logout Microsoft Graph "),_()}}let GJ=(()=>{class n{constructor(e,i,r,o,s,a){this.globals=e,this.connectionService=i,this.createService=r,this.ren=o,this.datasource=s,this.authService=a,this.enteredButton=!1,this.isMatMenuOpen=!1,this.isMatMenu2Open=!1,this.loggedIn=!1,this.iconConfigLocal=j1,this.path="config",this.userName="Login",this.reloadImg={background:"no-repeat url(assets/images/icon_refresh_no_background.png)"},this.configIcon={background:"transparent url(assets/images/icons_business_mail.png) no-repeat"},this.configRestObj={},this.createService.config=this.iconConfigLocal}ngOnInit(){this.waitForUserName(),null===window.localStorage.getItem("webInt")&&this.openWebIntModal();let e=Office.context.mailbox.item;console.log(e),e&&(this.isReadMode=void 0===e.getItemIdAsync||void 0===typeof e.getItemIdAsync),console.log(this.isReadMode),this.initConfig()}ngAfterViewInit(){this.datasource.isFeatureAvailable(Bc.DocumentToAnything).subscribe(e=>{this.documentToAnythingVisible=e&&typeof this.globals.infoShower<"u"&&!this.globals.infoShower.isAppointment&&"doNotDocument"!==this.globals.infoShower.selectedEmailAddress})}menuEnter(){this.isMatMenuOpen=!0,this.isMatMenu2Open&&(this.isMatMenu2Open=!1)}menuLeave(e,i){setTimeout(()=>{this.isMatMenu2Open||this.enteredButton?this.isMatMenuOpen=!1:(this.isMatMenuOpen=!1,e.closeMenu(),i&&(this.ren.removeClass(i._elementRef.nativeElement,"cdk-focused"),this.ren.removeClass(i._elementRef.nativeElement,"cdk-program-focused")))},80)}buttonEnter(e,i){setTimeout(()=>{this.prevButtonTrigger&&this.prevButtonTrigger!==e?(this.prevButtonTrigger.closeMenu(),this.prevButtonTrigger=e,this.isMatMenuOpen=!1,this.isMatMenu2Open=!1,e.openMenu()):this.isMatMenuOpen?(this.enteredButton=!0,this.prevButtonTrigger=e):(this.enteredButton=!0,this.prevButtonTrigger=e,e.openMenu(),i&&(this.ren.removeClass(i._elementRef.nativeElement,"cdk-focused"),this.ren.removeClass(i._elementRef.nativeElement,"cdk-program-focused")))})}buttonLeave(e){setTimeout(()=>{this.enteredButton&&!this.isMatMenuOpen&&e.closeMenu(),this.isMatMenuOpen?this.enteredButton=!1:e.closeMenu()},100)}reload(){this.connectionService.reload()}openWebIntModal(){this.connectionService.waitForWebIntModal().subscribe(e=>{e()})}openUserSettings(){this.globals.activeWindow="userSettings"}openConnectWindow(){"Login"===this.userName&&(null===window.localStorage.getItem("webInt")?this.openWebIntModal():this.connectionService.connect().subscribe(()=>{}))}openGraphLogin(){this.authService.signIn()}logoutGraph(){this.authService.signOutPopup().subscribe(e=>{console.log(e)})}openLicenses(){this.globals.activeWindow="about"}toggleClass(e,i=!0){if(e{},error:a=>{},complete:()=>{}})}else this.configData&&this.configData.createAddress&&i&&this.createService.toggleOpen();else localStorage.setItem(r.name,r.value),("openMail"===r.name||"deleteAttachments"===r.name)&&(this.globals[r.name]=Boolean(r.value),"deleteAttachments"===r.name&&"Owa"===this.globals.curConnectorType&&this.globals.curConnector.adjustAttachments())}}waitForUserName(){this.connectionService.processPath().subscribe(()=>{this.connectionService.getUserName().subscribe(e=>{"gi"===this.globals.system?(this.globals.ownMailAddr=e.mail,this.userName=e.name):this.userName=e,this.loggedIn=!0,this.globals.loggedIn=!0})})}changeIcon(e,i){return e.value=i[(i.indexOf(e.value)+1)%i.length],e}initConfig(){"gi"===this.globals.system?this.connectionService.getReqNoCache(this.path,null).subscribe({next:e=>{this.initConfigClasses(e)},error:e=>{this.connectionService.processPath().subscribe(()=>{})},complete:()=>{}}):this.initConfigClasses(null)}initConfigClasses(e){this.configRestObj=e;const i={};let r=0;for(const o of this.iconConfigLocal){const s=o.model.name;if("gi"===this.globals.system){let a;a=a?this.configData[s]:{inRest:!1,index:0},(e[s]||""===e[s])&&(o.model.value=e[s],a.inRest=!0,("deleteAttachments"===s||"openMail"===s)&&(this.globals[s]=Boolean(e[s]))),i[s]=a,a.index=r,r++}else if("deleteAttachments"===s||"openMail"===s){let a=localStorage.getItem(s);null==a?(a="",localStorage.setItem(s,a)):(this.globals[s]=Boolean(a),o.model.value="1"===a||""===a?a:"")}}this.configData=i}showDocumentSelector(e){this.globals.showSelectedDocuments=!0,this.globals.activeWindow="documentationTargetSelector"}}return n.\u0275fac=function(e){return new(e||n)(p(ot),p(In),p(H1),p(ho),p(Bi),p(hC))},n.\u0275cmp=Ue({type:n,selectors:[["app-site-actions"]],decls:22,vars:8,consts:[["id","actionsHeader"],["id","actionButtons"],["class","clearfix",4,"ngIf"],["id","userMenu"],["id","userName",1,"actionHeaderComponent",3,"click"],["id","userMenuIcon","mat-button","",1,"actionHeaderComponent","right","material-symbols-rounded",3,"matMenuTriggerFor"],["button","","userMenuTrigger","matMenuTrigger"],["direction","down","yPosition","below","xPosition","before",3,"hasBackdrop"],["userMenu","matMenu"],["mat-menu-item","",1,"",3,"click"],["class","","mat-menu-item","",3,"click",4,"ngIf"],[1,"clearfix"],["id","reload",1,"widgetReload",3,"title","click"],["src","./assets/images/vwicn216.svg","alt","refresh"],["id","openCreate",3,"class","title","ngStyle","click",4,"ngIf"],["id","openMail",3,"class","title","click",4,"ngIf"],["id","deleteAttachments",3,"title","click"],[4,"ngIf"],["id","addAllDocsListButton",4,"ngIf"],["id","openCreate",3,"title","ngStyle","click"],["id","openMail",3,"title","click"],["src","./assets/images/vwicn217.svg","alt","noMail"],["src","./assets/images/vwicn218.svg","alt","openMail"],["src","./assets/images/vwicn219.svg","alt","attachFile"],["src","./assets/images/vwicn220.svg","alt","attachFileOff"],["id","addAllDocsListButton"],["src","./assets/images/vwicn213.svg","alt","icon",3,"title","click"]],template:function(e,i){if(1&e&&(g(0,"div",0)(1,"div",1),H(2,VJ,11,12,"div",2),_(),g(3,"div",3)(4,"div",4),W("click",function(){return i.openConnectWindow()}),j(5),_(),g(6,"mat-icon")(7,"span",5,6),j(10,"keyboard_arrow_down"),_()()(),g(11,"mat-menu",7,8)(13,"span")(14,"li",9),W("click",function(){return i.openUserSettings()}),j(15),_(),be(16,"mat-divider"),H(17,UJ,2,1,"li",10),H(18,qJ,2,0,"li",10),H(19,zJ,2,0,"li",10),g(20,"li",9),W("click",function(){return i.openLicenses()}),j(21," Info "),_()()()()),2&e){const r=Yt(12);f(2),v("ngIf",i.globals.loggedIn&&i.globals.graphLoaded),f(3),qe(" ",i.userName," "),f(2),v("matMenuTriggerFor",r),f(4),v("hasBackdrop",!1),f(4),qe(" ",i.globals.languageConfLocal.userSettings," "),f(2),v("ngIf",i.loggedIn),f(1),v("ngIf",i.globals.graphRequired&&!i.globals.graphLoaded),f(1),v("ngIf",i.globals.graphRequired&&i.globals.graphLoaded)}},dependencies:[pn,ra,Bf,vk,iu,Ck,RJ,ki],styles:['.widgetReload[_ngcontent-%COMP%]{background-position:1px 2px!important;float:left;margin-right:2px}.widgetReload[_ngcontent-%COMP%], .widgetOptions[_ngcontent-%COMP%], .widgetLogin[_ngcontent-%COMP%]{display:inline-block;width:21px;height:22px;text-decoration:none;color:#4d4d4d;cursor:pointer}.actionHeaderComponent[_ngcontent-%COMP%]{display:inline-block}.mat-menu-item[_ngcontent-%COMP%]{font:400 12px/20px Arial,Verdana,Helvetica,sans-serif;height:100%;padding-top:10px;padding-bottom:10px}#userMenu[_ngcontent-%COMP%]{height:20px;display:flex}#userMenuIcon[_ngcontent-%COMP%]{margin-top:2px;margin-left:4px;cursor:pointer}#actionsHeader[_ngcontent-%COMP%]{display:flex;justify-content:space-between;padding-top:2px;padding-bottom:2px;background-color:#f28e001a;border-radius:3px}.bmPlus[_ngcontent-%COMP%], .bmMinus[_ngcontent-%COMP%], .bmDocOFF[_ngcontent-%COMP%], .bmDocON[_ngcontent-%COMP%], .bmAttachInclude[_ngcontent-%COMP%], .bmAttachExclude[_ngcontent-%COMP%]{float:left;width:22px;height:21px;margin-right:2px;cursor:pointer}.bmDocOFF[_ngcontent-%COMP%]{background-position:-88px 0px!important}.bmDocON[_ngcontent-%COMP%]{background-position:-110px 0px!important}.bmMinus[_ngcontent-%COMP%]{background-position:-66px -21px!important}.bmPlus[_ngcontent-%COMP%]{background-position:-44px -21px!important}.bmAttachInclude[_ngcontent-%COMP%]{background-position:-22px -21px!important}.bmAttachExclude[_ngcontent-%COMP%]{background-position:0px -21px!important}.clearfix[_ngcontent-%COMP%]{display:flex}#addAllDocsListButton[_ngcontent-%COMP%]{cursor:pointer;width:22px;height:21px;margin:0}.mat-icon[_ngcontent-%COMP%]{display:flex;align-items:center;padding-bottom:2px}.material-symbols-outlined[_ngcontent-%COMP%]{font-variation-settings:"FILL" 0,"wght" 200,"GRAD" 0,"opsz" 24}']}),n})();function WJ(n,t){1&n&&be(0,"div",11)}function $J(n,t){if(1&n&&(g(0,"div",1),H(1,WJ,1,0,"div",2),g(2,"div",3),be(3,"div",4),g(4,"div",5),be(5,"div",6)(6,"div",7),_(),g(7,"div",8),be(8,"div",9)(9,"div",10),_()()()),2&n){const e=C();f(1),v("ngIf",!e.isModal)}}let KJ=(()=>{class n{constructor(e){this.loader=e,this.loaderActive=!1,this.isModal=!1}ngOnInit(){this.loader.connectToService().subscribe(e=>{this.changeState(e.activate,e.modal)})}changeState(e,i=this.isModal){setTimeout(()=>{this.loaderActive=e,this.isModal=i},1)}}return n.\u0275fac=function(e){return new(e||n)(p(Fc))},n.\u0275cmp=Ue({type:n,selectors:[["app-loader"]],decls:1,vars:1,consts:[["class","loadingContainer",4,"ngIf"],[1,"loadingContainer"],["class","blank-background",4,"ngIf"],[1,"shadow-messagebox"],["id","loadingFiller"],[1,"loaderContainerLeft"],[1,"loader-left"],[1,"loader-bottom"],[1,"loaderContainerRight"],[1,"loader-right"],[1,"loader-top"],[1,"blank-background"]],template:function(e,i){1&e&&H(0,$J,10,1,"div",0),2&e&&v("ngIf",i.loaderActive)},dependencies:[pn],styles:['.shadow[_ngcontent-%COMP%]{position:absolute;top:0;left:0;z-index:99;background-color:#eee;opacity:.5;filter:alpha(opacity=50);color:#111;font-size:20px;font-weight:700;font-style:normal;text-align:center}.shadow-transparent[_ngcontent-%COMP%]{position:absolute;top:0;left:0;z-index:99;background-color:#fff;opacity:0;filter:alpha(opacity=0);color:#fff;font-size:20px;font-weight:700;font-style:normal;text-align:center}.shadow-messagebox[_ngcontent-%COMP%], .blank-background[_ngcontent-%COMP%]{height:100%;width:100%;position:absolute;top:0;left:0}.shadow-messagebox[_ngcontent-%COMP%]{z-index:9999;background-color:#000;opacity:.4;filter:alpha(opacity=50);color:#111;font-size:20px;font-weight:700;font-style:normal;text-align:center}.blank-background[_ngcontent-%COMP%]{z-index:9900;background-color:#fff}.loader-left[_ngcontent-%COMP%]{position:relative;top:0;left:0;height:41px;width:11px;box-shadow:inset 0 41px gray;animation:fillAnimationLeft 3s linear infinite normal}.loader-right[_ngcontent-%COMP%]{position:absolute;top:0;left:17px;height:41px;width:11px;box-shadow:inset 0 -41px gray;animation:fillAnimationRight 3s linear infinite normal}.loader-bottom[_ngcontent-%COMP%]{position:relative;top:-11px;left:0px;height:11px;width:28px;box-shadow:inset 28px 0 gray;animation:fillAnimationBottom 3s linear infinite normal}.loader-top[_ngcontent-%COMP%]{position:absolute;top:0px;left:0px;height:11px;width:28px;content:"";box-shadow:inset -28px 0 gray;animation:fillAnimationTop 3s linear infinite normal}.loaderContainerLeft[_ngcontent-%COMP%], .loaderContainerRight[_ngcontent-%COMP%]{height:41px;width:28px;overflow:hidden;position:absolute;display:inline-block}.loaderContainerLeft[_ngcontent-%COMP%]{left:calc(50% - 7px)}.loaderContainerRight[_ngcontent-%COMP%]{left:calc(50% + 7px)}#loadingFiller[_ngcontent-%COMP%]{height:calc(50% - 20.5px)}#shadowBox[_ngcontent-%COMP%]{display:none}@keyframes fillAnimationLeft{0%{box-shadow:inset 0 0 gray;top:0}20%{box-shadow:inset 0 41px gray;top:0}40%{box-shadow:inset 0 41px gray;top:0}60%{box-shadow:inset 0 28px gray;top:41px}80%{box-shadow:inset 0 28px gray;top:41px}to{box-shadow:inset 0 28px gray;top:41px}}@keyframes fillAnimationRight{0%{box-shadow:inset 0 0 gray;top:0}20%{box-shadow:inset 0 -41px gray;top:0}40%{box-shadow:inset 0 -41px gray;top:0}60%{box-shadow:inset 0 -28px gray;top:-41px}80%{box-shadow:inset 0 -28px gray;top:-41px}to{box-shadow:inset 0 -28px gray;top:-41px}}@keyframes fillAnimationBottom{0%{box-shadow:inset 0 0 gray;left:0px}20%{box-shadow:inset 0 0 gray;left:11px}40%{box-shadow:inset 28px 0 gray;left:11px}41%{box-shadow:inset 28px 0 gray;left:0px}59%{box-shadow:inset 28px 0 gray;left:0px}75%{box-shadow:inset 28px 0 gray;left:28px}to{box-shadow:inset 28px 0 gray;left:28px}}@keyframes fillAnimationTop{0%{box-shadow:inset 0 0 gray;left:0px}20%{box-shadow:inset 0 0 gray;left:-11px}40%{box-shadow:inset -28px 0 gray;left:-11px}41%{box-shadow:inset -28px 0 gray;left:0px}59%{box-shadow:inset -28px 0 gray;left:0px}75%{box-shadow:inset -28px 0 gray;left:-28px}to{box-shadow:inset -28px 0 gray;left:-28px}}']}),n})();function Tk(n){return new Te(3e3,!1)}function IZ(){return typeof window<"u"&&typeof window.document<"u"}function zC(){return typeof process<"u"&&"[object process]"==={}.toString.call(process)}function wa(n){switch(n.length){case 0:return new vd;case 1:return n[0];default:return new A1(n)}}function xk(n,t,e,i,r=new Map,o=new Map){const s=[],a=[];let l=-1,c=null;if(i.forEach(u=>{const d=u.get("offset"),h=d==l,m=h&&c||new Map;u.forEach((y,A)=>{let U=A,te=y;if("offset"!==A)switch(U=t.normalizePropertyName(U,s),te){case"!":te=r.get(A);break;case Os:te=o.get(A);break;default:te=t.normalizeStyleValue(A,U,te,s)}m.set(U,te)}),h||a.push(m),c=m,l=d}),s.length)throw function _Z(n){return new Te(3502,!1)}();return a}function GC(n,t,e,i){switch(t){case"start":n.onStart(()=>i(e&&WC(e,"start",n)));break;case"done":n.onDone(()=>i(e&&WC(e,"done",n)));break;case"destroy":n.onDestroy(()=>i(e&&WC(e,"destroy",n)))}}function WC(n,t,e){const o=$C(n.element,n.triggerName,n.fromState,n.toState,t||n.phaseName,e.totalTime??n.totalTime,!!e.disabled),s=n._data;return null!=s&&(o._data=s),o}function $C(n,t,e,i,r="",o=0,s){return{element:n,triggerName:t,fromState:e,toState:i,phaseName:r,totalTime:o,disabled:!!s}}function Pr(n,t,e){let i=n.get(t);return i||n.set(t,i=e),i}function Ik(n){const t=n.indexOf(":");return[n.substring(1,t),n.slice(t+1)]}let KC=(n,t)=>!1,Mk=(n,t,e)=>[],kk=null;function YC(n){const t=n.parentNode||n.host;return t===kk?null:t}(zC()||typeof Element<"u")&&(IZ()?(kk=(()=>document.documentElement)(),KC=(n,t)=>{for(;t;){if(t===n)return!0;t=YC(t)}return!1}):KC=(n,t)=>n.contains(t),Mk=(n,t,e)=>{if(e)return Array.from(n.querySelectorAll(t));const i=n.querySelector(t);return i?[i]:[]});let _l=null,Rk=!1;const Ok=KC,Pk=Mk;let Lk=(()=>{class n{validateStyleProperty(e){return function kZ(n){_l||(_l=function RZ(){return typeof document<"u"?document.body:null}()||{},Rk=!!_l.style&&"WebkitAppearance"in _l.style);let t=!0;return _l.style&&!function MZ(n){return"ebkit"==n.substring(1,6)}(n)&&(t=n in _l.style,!t&&Rk&&(t="Webkit"+n.charAt(0).toUpperCase()+n.slice(1)in _l.style)),t}(e)}matchesElement(e,i){return!1}containsElement(e,i){return Ok(e,i)}getParentElement(e){return YC(e)}query(e,i,r){return Pk(e,i,r)}computeStyle(e,i,r){return r||""}animate(e,i,r,o,s,a=[],l){return new vd(r,o)}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=ge({token:n,factory:n.\u0275fac}),n})(),QC=(()=>{class n{}return n.NOOP=new Lk,n})();const JC="ng-enter",Ym="ng-leave",Qm="ng-trigger",Jm=".ng-trigger",Fk="ng-animating",ZC=".ng-animating";function Ea(n){if("number"==typeof n)return n;const t=n.match(/^(-?[\.\d]+)(m?s)/);return!t||t.length<2?0:XC(parseFloat(t[1]),t[2])}function XC(n,t){return"s"===t?1e3*n:n}function Zm(n,t,e){return n.hasOwnProperty("duration")?n:function LZ(n,t,e){let r,o=0,s="";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(Tk()),{duration:0,delay:0,easing:""};r=XC(parseFloat(a[1]),a[2]);const l=a[3];null!=l&&(o=XC(parseFloat(l),a[4]));const c=a[5];c&&(s=c)}else r=n;if(!e){let a=!1,l=t.length;r<0&&(t.push(function YJ(){return new Te(3100,!1)}()),a=!0),o<0&&(t.push(function QJ(){return new Te(3101,!1)}()),a=!0),a&&t.splice(l,0,Tk())}return{duration:r,delay:o,easing:s}}(n,t,e)}function hh(n,t={}){return Object.keys(n).forEach(e=>{t[e]=n[e]}),t}function Bk(n){const t=new Map;return Object.keys(n).forEach(e=>{t.set(e,n[e])}),t}function Da(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 Hk(n,t,e){return e?t+":"+e+";":""}function Vk(n){let t="";for(let e=0;e{const o=tw(r);e&&!e.has(r)&&e.set(r,n.style[o]),n.style[o]=i}),zC()&&Vk(n))}function vl(n,t){n.style&&(t.forEach((e,i)=>{const r=tw(i);n.style[r]=""}),zC()&&Vk(n))}function ph(n){return Array.isArray(n)?1==n.length?n[0]:D1(n):n}const ew=new RegExp("{{\\s*(.+?)\\s*}}","g");function Uk(n){let t=[];if("string"==typeof n){let e;for(;e=ew.exec(n);)t.push(e[1]);ew.lastIndex=0}return t}function Xm(n,t,e){const i=n.toString(),r=i.replace(ew,(o,s)=>{let a=t[s];return null==a&&(e.push(function ZJ(n){return new Te(3003,!1)}()),a=""),a.toString()});return r==i?n:r}function eg(n){const t=[];let e=n.next();for(;!e.done;)t.push(e.value),e=n.next();return t}const BZ=/-+([a-z0-9])/g;function tw(n){return n.replace(BZ,(...t)=>t[1].toUpperCase())}function jZ(n){return n.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}function Lr(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 XJ(n){return new Te(3004,!1)}()}}function qk(n,t){return window.getComputedStyle(n)[t]}function GZ(n,t){const e=[];return"string"==typeof n?n.split(/\s*,\s*/).forEach(i=>function WZ(n,t,e){if(":"==n[0]){const l=function $Z(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) *"}}(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 hZ(n){return new Te(3015,!1)}()),t;const r=i[1],o=i[2],s=i[3];t.push(zk(r,s));"<"==o[0]&&!("*"==r&&"*"==s)&&t.push(zk(s,r))}(i,e,t)):e.push(n),e}const rg=new Set(["true","1"]),og=new Set(["false","0"]);function zk(n,t){const e=rg.has(n)||og.has(n),i=rg.has(t)||og.has(t);return(r,o)=>{let s="*"==n||n==r,a="*"==t||t==o;return!s&&e&&"boolean"==typeof r&&(s=r?rg.has(n):og.has(n)),!a&&i&&"boolean"==typeof o&&(a=o?rg.has(t):og.has(t)),s&&a}}const KZ=new RegExp("s*:selfs*,?","g");function nw(n,t,e,i){return new YZ(n).build(t,e,i)}class YZ{constructor(t){this._driver=t}build(t,e,i){const r=new ZZ(e);return this._resetContextStyleTimingState(r),Lr(this,ph(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 o=[],s=[];return"@"==t.name.charAt(0)&&e.errors.push(function tZ(){return new Te(3006,!1)}()),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,o.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,s.push(l)}else e.errors.push(function nZ(){return new Te(3007,!1)}())}),{type:7,name:t.name,states:o,transitions:s,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 o=new Set,s=r||{};i.styles.forEach(a=>{a instanceof Map&&a.forEach(l=>{Uk(l).forEach(c=>{s.hasOwnProperty(c)||o.add(c)})})}),o.size&&(eg(o.values()),e.errors.push(function iZ(n,t){return new Te(3008,!1)}()))}return{type:0,name:t.name,style:i,options:r?{params:r}:null}}visitTransition(t,e){e.queryCount=0,e.depCount=0;const i=Lr(this,ph(t.animation),e);return{type:1,matchers:GZ(t.expr,e.errors),animation:i,queryCount:e.queryCount,depCount:e.depCount,options:yl(t.options)}}visitSequence(t,e){return{type:2,steps:t.steps.map(i=>Lr(this,i,e)),options:yl(t.options)}}visitGroup(t,e){const i=e.currentTime;let r=0;const o=t.steps.map(s=>{e.currentTime=i;const a=Lr(this,s,e);return r=Math.max(r,e.currentTime),a});return e.currentTime=r,{type:3,steps:o,options:yl(t.options)}}visitAnimate(t,e){const i=function eX(n,t){if(n.hasOwnProperty("duration"))return n;if("number"==typeof n)return iw(Zm(n,t).duration,0,"");const e=n;if(e.split(/\s+/).some(o=>"{"==o.charAt(0)&&"{"==o.charAt(1))){const o=iw(0,0,"");return o.dynamic=!0,o.strValue=e,o}const r=Zm(e,t);return iw(r.duration,r.delay,r.easing)}(t.timings,e.errors);e.currentAnimateTimings=i;let r,o=t.styles?t.styles:qt({});if(5==o.type)r=this.visitKeyframes(o,e);else{let s=t.styles,a=!1;if(!s){a=!0;const c={};i.easing&&(c.easing=i.easing),s=qt(c)}e.currentTime+=i.duration+i.delay;const l=this.visitStyle(s,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===Os?i.push(a):e.errors.push(new Te(3002,!1)):i.push(Bk(a));let o=!1,s=null;return i.forEach(a=>{if(a instanceof Map&&(a.has("easing")&&(s=a.get("easing"),a.delete("easing")),!o))for(let l of a.values())if(l.toString().indexOf("{{")>=0){o=!0;break}}),{type:6,styles:i,easing:s,offset:t.offset,containsDynamicStyles:o,options:null}}_validateStyleAst(t,e){const i=e.currentAnimateTimings;let r=e.currentTime,o=e.currentTime;i&&o>0&&(o-=i.duration+i.delay),t.styles.forEach(s=>{"string"!=typeof s&&s.forEach((a,l)=>{const c=e.collectedStyles.get(e.currentQuerySelector),u=c.get(l);let d=!0;u&&(o!=r&&o>=u.startTime&&r<=u.endTime&&(e.errors.push(function oZ(n,t,e,i,r){return new Te(3010,!1)}()),d=!1),o=u.startTime),d&&c.set(l,{startTime:o,endTime:r}),e.options&&function FZ(n,t,e){const i=t.params||{},r=Uk(n);r.length&&r.forEach(o=>{i.hasOwnProperty(o)||e.push(function JJ(n){return new Te(3001,!1)}())})}(a,e.options,e.errors)})})}visitKeyframes(t,e){const i={type:5,styles:[],options:null};if(!e.currentAnimateTimings)return e.errors.push(function sZ(){return new Te(3011,!1)}()),i;let o=0;const s=[];let a=!1,l=!1,c=0;const u=t.steps.map(te=>{const Ee=this._makeStyleAst(te,e);let ne=null!=Ee.offset?Ee.offset:function XZ(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}(Ee.styles),Me=0;return null!=ne&&(o++,Me=Ee.offset=ne),l=l||Me<0||Me>1,a=a||Me0&&o{const ne=h>0?Ee==m?1:h*Ee:s[Ee],Me=ne*U;e.currentTime=y+A.delay+Me,A.duration=Me,this._validateStyleAst(te,e),te.offset=ne,i.styles.push(te)}),i}visitReference(t,e){return{type:8,animation:Lr(this,ph(t.animation),e),options:yl(t.options)}}visitAnimateChild(t,e){return e.depCount++,{type:9,options:yl(t.options)}}visitAnimateRef(t,e){return{type:10,animation:this.visitReference(t.animation,e),options:yl(t.options)}}visitQuery(t,e){const i=e.currentQuerySelector,r=t.options||{};e.queryCount++,e.currentQuery=t;const[o,s]=function QZ(n){const t=!!n.split(/\s*,\s*/).find(e=>":self"==e);return t&&(n=n.replace(KZ,"")),n=n.replace(/@\*/g,Jm).replace(/@\w+/g,e=>Jm+"-"+e.slice(1)).replace(/:animating/g,ZC),[n,t]}(t.selector);e.currentQuerySelector=i.length?i+" "+o:o,Pr(e.collectedStyles,e.currentQuerySelector,new Map);const a=Lr(this,ph(t.animation),e);return e.currentQuery=null,e.currentQuerySelector=i,{type:11,selector:o,limit:r.limit||0,optional:!!r.optional,includeSelf:s,animation:a,originalSelector:t.selector,options:yl(t.options)}}visitStagger(t,e){e.currentQuery||e.errors.push(function uZ(){return new Te(3013,!1)}());const i="full"===t.timings?{duration:0,delay:0,easing:"full"}:Zm(t.timings,e.errors,!0);return{type:12,animation:Lr(this,ph(t.animation),e),timings:i,options:null}}}class ZZ{constructor(t){this.errors=t,this.queryCount=0,this.depCount=0,this.currentTransition=null,this.currentQuery=null,this.currentQuerySelector=null,this.currentAnimateTimings=null,this.currentTime=0,this.collectedStyles=new Map,this.options=null,this.unsupportedCSSPropertiesFound=new Set}}function yl(n){return n?(n=hh(n)).params&&(n.params=function JZ(n){return n?hh(n):null}(n.params)):n={},n}function iw(n,t,e){return{duration:n,delay:t,easing:e}}function rw(n,t,e,i,r,o,s=null,a=!1){return{type:1,element:n,keyframes:t,preStyleProps:e,postStyleProps:i,duration:r,delay:o,totalTime:r+o,easing:s,subTimeline:a}}class sg{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 iX=new RegExp(":enter","g"),oX=new RegExp(":leave","g");function ow(n,t,e,i,r,o=new Map,s=new Map,a,l,c=[]){return(new sX).buildKeyframes(n,t,e,i,r,o,s,a,l,c)}class sX{buildKeyframes(t,e,i,r,o,s,a,l,c,u=[]){c=c||new sg;const d=new sw(t,e,c,r,o,u,[]);d.options=l;const h=l.delay?Ea(l.delay):0;d.currentTimeline.delayNextStep(h),d.currentTimeline.setStyles([s],null,d.errors,l),Lr(this,i,d);const m=d.timelines.filter(y=>y.containsAnimation());if(m.length&&a.size){let y;for(let A=m.length-1;A>=0;A--){const U=m[A];if(U.element===e){y=U;break}}y&&!y.allowOnlyTimelineStyles()&&y.setStyles([a],null,d.errors,l)}return m.length?m.map(y=>y.buildKeyframes()):[rw(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),o=e.currentTimeline.currentTime,s=this._visitSubInstructions(i,r,r.options);o!=s&&e.transformIntoNewTimeline(s)}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 o=e.currentTimeline.currentTime;const s=null!=i.duration?Ea(i.duration):null,a=null!=i.delay?Ea(i.delay):null;return 0!==s&&t.forEach(l=>{const c=e.appendInstructionToTimeline(l,s,a);o=Math.max(o,c.duration+c.delay)}),o}visitReference(t,e){e.updateOptions(t.options,!0),Lr(this,t.animation,e),e.previousNode=t}visitSequence(t,e){const i=e.subContextCount;let r=e;const o=t.options;if(o&&(o.params||o.delay)&&(r=e.createSubContext(o),r.transformIntoNewTimeline(),null!=o.delay)){6==r.previousNode.type&&(r.currentTimeline.snapshotCurrentStyles(),r.previousNode=ag);const s=Ea(o.delay);r.delayNextStep(s)}t.steps.length&&(t.steps.forEach(s=>Lr(this,s,r)),r.currentTimeline.applyStylesToKeyframe(),r.subContextCount>i&&r.transformIntoNewTimeline()),e.previousNode=t}visitGroup(t,e){const i=[];let r=e.currentTimeline.currentTime;const o=t.options&&t.options.delay?Ea(t.options.delay):0;t.steps.forEach(s=>{const a=e.createSubContext(t.options);o&&a.delayNextStep(o),Lr(this,s,a),r=Math.max(r,a.currentTimeline.currentTime),i.push(a.currentTimeline)}),i.forEach(s=>e.currentTimeline.mergeTimelineCollectedStyles(s)),e.transformIntoNewTimeline(r),e.previousNode=t}_visitTiming(t,e){if(t.dynamic){const i=t.strValue;return Zm(e.params?Xm(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 o=t.style;5==o.type?this.visitKeyframes(o,e):(e.incrementTime(i.duration),this.visitStyle(o,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 o=r&&r.easing||t.easing;t.isEmptyStep?i.applyEmptyStep(o):i.setStyles(t.styles,o,e.errors,e.options),e.previousNode=t}visitKeyframes(t,e){const i=e.currentAnimateTimings,r=e.currentTimeline.duration,o=i.duration,a=e.createSubContext().currentTimeline;a.easing=i.easing,t.styles.forEach(l=>{a.forwardTime((l.offset||0)*o),a.setStyles(l.styles,l.easing,e.errors,e.options),a.applyStylesToKeyframe()}),e.currentTimeline.mergeTimelineCollectedStyles(a),e.transformIntoNewTimeline(r+o),e.previousNode=t}visitQuery(t,e){const i=e.currentTimeline.currentTime,r=t.options||{},o=r.delay?Ea(r.delay):0;o&&(6===e.previousNode.type||0==i&&e.currentTimeline.hasCurrentStyleProperties())&&(e.currentTimeline.snapshotCurrentStyles(),e.previousNode=ag);let s=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);o&&d.delayNextStep(o),c===e.element&&(l=d.currentTimeline),Lr(this,t.animation,d),d.currentTimeline.applyStylesToKeyframe(),s=Math.max(s,d.currentTimeline.currentTime)}),e.currentQueryIndex=0,e.currentQueryTotal=0,e.transformIntoNewTimeline(s),l&&(e.currentTimeline.mergeTimelineCollectedStyles(l),e.currentTimeline.snapshotCurrentStyles()),e.previousNode=t}visitStagger(t,e){const i=e.parentContext,r=e.currentTimeline,o=t.timings,s=Math.abs(o.duration),a=s*(e.currentQueryTotal-1);let l=s*e.currentQueryIndex;switch(o.duration<0?"reverse":o.easing){case"reverse":l=a-l;break;case"full":l=i.currentStaggerTime}const u=e.currentTimeline;l&&u.delayNextStep(l);const d=u.currentTime;Lr(this,t.animation,e),e.previousNode=t,i.currentStaggerTime=r.currentTime-d+(r.startTime-i.currentTimeline.startTime)}}const ag={};class sw{constructor(t,e,i,r,o,s,a,l){this._driver=t,this.element=e,this.subInstructions=i,this._enterClassName=r,this._leaveClassName=o,this.errors=s,this.timelines=a,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=ag,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=l||new lg(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=Ea(i.duration)),null!=i.delay&&(r.delay=Ea(i.delay));const o=i.params;if(o){let s=r.params;s||(s=this.options.params={}),Object.keys(o).forEach(a=>{(!e||!s.hasOwnProperty(a))&&(s[a]=Xm(o[a],s,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,o=new sw(this._driver,r,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(r,i||0));return o.previousNode=this.previousNode,o.currentAnimateTimings=this.currentAnimateTimings,o.options=this._copyOptions(),o.updateOptions(t),o.currentQueryIndex=this.currentQueryIndex,o.currentQueryTotal=this.currentQueryTotal,o.parentContext=this,this.subContextCount++,o}transformIntoNewTimeline(t){return this.previousNode=ag,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:""},o=new aX(this._driver,t.element,t.keyframes,t.preStyleProps,t.postStyleProps,r,t.stretchStartingKeyframe);return this.timelines.push(o),r}incrementTime(t){this.currentTimeline.forwardTime(this.currentTimeline.duration+t)}delayNextStep(t){t>0&&this.currentTimeline.delayNextStep(t)}invokeQuery(t,e,i,r,o,s){let a=[];if(r&&a.push(this.element),t.length>0){t=(t=t.replace(iX,"."+this._enterClassName)).replace(oX,"."+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!o&&0==a.length&&s.push(function dZ(n){return new Te(3014,!1)}()),a}}class lg{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 lg(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||Os),this._currentKeyframe.set(e,Os);this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(t,e,i,r){e&&this._previousKeyframe.set("easing",e);const o=r&&r.params||{},s=function lX(n,t){const e=new Map;let i;return n.forEach(r=>{if("*"===r){i=i||t.keys();for(let o of i)e.set(o,Os)}else Da(r,e)}),e}(t,this._globalTimelineStyles);for(let[a,l]of s){const c=Xm(l,o,i);this._pendingStyles.set(a,c),this._localTimelineStyles.has(a)||this._backFill.set(a,this._globalTimelineStyles.get(a)??Os),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=Da(a,new Map,this._backFill);c.forEach((u,d)=>{"!"===u?t.add(d):u===Os&&e.add(d)}),i||c.set("offset",l/this.duration),r.push(c)});const o=t.size?eg(t.values()):[],s=e.size?eg(e.values()):[];if(i){const a=r[0],l=new Map(a);a.set("offset",0),l.set("offset",1),r=[a,l]}return rw(this.element,r,o,s,this.duration,this.startTime,this.easing,!1)}}class aX extends lg{constructor(t,e,i,r,o,s,a=!1){super(t,e,s.delay),this.keyframes=i,this.preStyleProps=r,this.postStyleProps=o,this._stretchStartingKeyframe=a,this.timings={duration:s.duration,delay:s.delay,easing:s.easing}}containsAnimation(){return this.keyframes.length>1}buildKeyframes(){let t=this.keyframes,{delay:e,duration:i,easing:r}=this.timings;if(this._stretchStartingKeyframe&&e){const o=[],s=i+e,a=e/s,l=Da(t[0]);l.set("offset",0),o.push(l);const c=Da(t[0]);c.set("offset",$k(a)),o.push(c);const u=t.length-1;for(let d=1;d<=u;d++){let h=Da(t[d]);const m=h.get("offset");h.set("offset",$k((e+m*i)/s)),o.push(h)}i=s,e=0,r="",t=o}return rw(this.element,t,this.preStyleProps,this.postStyleProps,i,e,r,!0)}}function $k(n,t=3){const e=Math.pow(10,t-1);return Math.round(n*e)/e}class aw{}const cX=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 uX extends aw{normalizePropertyName(t,e){return tw(t)}normalizeStyleValue(t,e,i,r){let o="";const s=i.toString().trim();if(cX.has(e)&&0!==i&&"0"!==i)if("number"==typeof i)o="px";else{const a=i.match(/^[+-]?[\d\.]+([a-z]*)$/);a&&0==a[1].length&&r.push(function eZ(n,t){return new Te(3005,!1)}())}return s+o}}function Kk(n,t,e,i,r,o,s,a,l,c,u,d,h){return{type:0,element:n,triggerName:t,isRemovalTransition:r,fromState:e,fromStyles:o,toState:i,toStyles:s,timelines:a,queriedElements:l,preStyleProps:c,postStyleProps:u,totalTime:d,errors:h}}const lw={};class Yk{constructor(t,e,i){this._triggerName=t,this.ast=e,this._stateStyles=i}match(t,e,i,r){return function dX(n,t,e,i,r){return n.some(o=>o(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,o,s,a,l,c,u){const d=[],h=this.ast.options&&this.ast.options.params||lw,y=this.buildStyles(i,a&&a.params||lw,d),A=l&&l.params||lw,U=this.buildStyles(r,A,d),te=new Set,Ee=new Map,ne=new Map,Me="void"===r,at={params:hX(A,h),delay:this.ast.options?.delay},Dt=u?[]:ow(t,e,this.ast.animation,o,s,y,U,at,c,d);let rn=0;if(Dt.forEach(tr=>{rn=Math.max(tr.duration+tr.delay,rn)}),d.length)return Kk(e,this._triggerName,i,r,Me,y,U,[],[],Ee,ne,rn,d);Dt.forEach(tr=>{const gi=tr.element,Aa=Pr(Ee,gi,new Set);tr.preStyleProps.forEach(Mo=>Aa.add(Mo));const Ys=Pr(ne,gi,new Set);tr.postStyleProps.forEach(Mo=>Ys.add(Mo)),gi!==e&&te.add(gi)});const Cn=eg(te.values());return Kk(e,this._triggerName,i,r,Me,y,U,Dt,Cn,Ee,ne,rn)}}function hX(n,t){const e=hh(t);for(const i in n)n.hasOwnProperty(i)&&null!=n[i]&&(e[i]=n[i]);return e}class pX{constructor(t,e,i){this.styles=t,this.defaultParams=e,this.normalizer=i}buildStyles(t,e){const i=new Map,r=hh(this.defaultParams);return Object.keys(t).forEach(o=>{const s=t[o];null!==s&&(r[o]=s)}),this.styles.styles.forEach(o=>{"string"!=typeof o&&o.forEach((s,a)=>{s&&(s=Xm(s,r,e));const l=this.normalizer.normalizePropertyName(a,e);s=this.normalizer.normalizeStyleValue(a,l,s,e),i.set(l,s)})}),i}}class mX{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 pX(r.style,r.options&&r.options.params||{},i))}),Qk(this.states,"true","1"),Qk(this.states,"false","0"),e.transitions.forEach(r=>{this.transitionFactories.push(new Yk(t,r,this.states))}),this.fallbackTransition=function gX(n,t,e){return new Yk(n,{type:1,animation:{type:2,steps:[],options:null},matchers:[(s,a)=>!0],options:null,queryCount:0,depCount:0},t)}(t,this.states)}get containsQueries(){return this.ast.queryCount>0}matchTransition(t,e,i,r){return this.transitionFactories.find(s=>s.match(t,e,i,r))||null}matchStyles(t,e,i){return this.fallbackTransition.buildStyles(t,e,i)}}function Qk(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 _X=new sg;class vX{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=[],o=nw(this._driver,e,i,[]);if(i.length)throw function vZ(n){return new Te(3503,!1)}();this._animations.set(t,o)}_buildPlayer(t,e,i){const r=t.element,o=xk(0,this._normalizer,0,t.keyframes,e,i);return this._driver.animate(r,o,t.duration,t.delay,t.easing,[],!0)}create(t,e,i={}){const r=[],o=this._animations.get(t);let s;const a=new Map;if(o?(s=ow(this._driver,e,o,JC,Ym,new Map,new Map,i,_X,r),s.forEach(u=>{const d=Pr(a,u.element,new Map);u.postStyleProps.forEach(h=>d.set(h,null))})):(r.push(function yZ(){return new Te(3300,!1)}()),s=[]),r.length)throw function bZ(n){return new Te(3504,!1)}();a.forEach((u,d)=>{u.forEach((h,m)=>{u.set(m,this._driver.computeStyle(d,m,Os))})});const c=wa(s.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 CZ(n){return new Te(3301,!1)}();return e}listen(t,e,i,r){const o=$C(e,"","","");return GC(this._getPlayer(t),i,o,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 o=this._getPlayer(t);switch(i){case"play":o.play();break;case"pause":o.pause();break;case"reset":o.reset();break;case"restart":o.restart();break;case"finish":o.finish();break;case"init":o.init();break;case"setPosition":o.setPosition(parseFloat(r[0]));break;case"destroy":this.destroy(t)}}}const Jk="ng-animate-queued",cw="ng-animate-disabled",EX=[],Zk={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},DX={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},no="__ng_removed";class uw{constructor(t,e=""){this.namespaceId=e;const i=t&&t.hasOwnProperty("value");if(this.value=function xX(n){return n??null}(i?t.value:t),i){const o=hh(t);delete o.value,this.options=o}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 fh="void",dw=new uw(fh);class SX{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,io(e,this._hostClassName)}listen(t,e,i,r){if(!this._triggers.has(e))throw function wZ(n,t){return new Te(3302,!1)}();if(null==i||0==i.length)throw function EZ(n){return new Te(3303,!1)}();if(!function IX(n){return"start"==n||"done"==n}(i))throw function DZ(n,t){return new Te(3400,!1)}();const o=Pr(this._elementListeners,t,[]),s={name:e,phase:i,callback:r};o.push(s);const a=Pr(this._engine.statesByElement,t,new Map);return a.has(e)||(io(t,Qm),io(t,Qm+"-"+e),a.set(e,dw)),()=>{this._engine.afterFlush(()=>{const l=o.indexOf(s);l>=0&&o.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 SZ(n){return new Te(3401,!1)}();return e}trigger(t,e,i,r=!0){const o=this._getTrigger(e),s=new hw(this.id,e,t);let a=this._engine.statesByElement.get(t);a||(io(t,Qm),io(t,Qm+"-"+e),this._engine.statesByElement.set(t,a=new Map));let l=a.get(e);const c=new uw(i,this.id);if(!(i&&i.hasOwnProperty("value"))&&l&&c.absorbOptions(l.options),a.set(e,c),l||(l=dw),c.value!==fh&&l.value===c.value){if(!function RX(n,t){const e=Object.keys(n),i=Object.keys(t);if(e.length!=i.length)return!1;for(let r=0;r{vl(t,U),rs(t,te)})}return}const h=Pr(this._engine.playersByElement,t,[]);h.forEach(A=>{A.namespaceId==this.id&&A.triggerName==e&&A.queued&&A.destroy()});let m=o.matchTransition(l.value,c.value,t,c.params),y=!1;if(!m){if(!r)return;m=o.fallbackTransition,y=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:t,triggerName:e,transition:m,fromState:l,toState:c,player:s,isFallbackTransition:y}),y||(io(t,Jk),s.onStart(()=>{ru(t,Jk)})),s.onDone(()=>{let A=this.players.indexOf(s);A>=0&&this.players.splice(A,1);const U=this._engine.playersByElement.get(t);if(U){let te=U.indexOf(s);te>=0&&U.splice(te,1)}}),this.players.push(s),h.push(s),s}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,Jm,!0);i.forEach(r=>{if(r[no])return;const o=this._engine.fetchNamespacesByElement(r);o.size?o.forEach(s=>s.triggerLeaveAnimation(r,e,!1,!0)):this.clearElementCache(r)}),this._engine.afterFlushAnimationsDone(()=>i.forEach(r=>this.clearElementCache(r)))}triggerLeaveAnimation(t,e,i,r){const o=this._engine.statesByElement.get(t),s=new Map;if(o){const a=[];if(o.forEach((l,c)=>{if(s.set(c,l.value),this._triggers.has(c)){const u=this.trigger(t,c,fh,r);u&&a.push(u)}}),a.length)return this._engine.markElementAsRemoved(this.id,t,!0,e,s),i&&wa(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(o=>{const s=o.name;if(r.has(s))return;r.add(s);const l=this._triggers.get(s).fallbackTransition,c=i.get(s)||dw,u=new uw(fh),d=new hw(this.id,s,t);this._engine.totalQueuedPlayers++,this._queue.push({element:t,triggerName:s,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 o=i.players.length?i.playersByQueriedElement.get(t):[];if(o&&o.length)r=!0;else{let s=t;for(;s=s.parentNode;)if(i.statesByElement.get(s)){r=!0;break}}}if(this.prepareLeaveAnimationListeners(t),r)i.markElementAsRemoved(this.id,t,!1,e);else{const o=t[no];(!o||o===Zk)&&(i.afterFlush(()=>this.clearElementCache(t)),i.destroyInnerAnimations(t),i._onRemovalComplete(t,e))}}insertNode(t,e){io(t,this._hostClassName)}drainQueuedTransitions(t){const e=[];return this._queue.forEach(i=>{const r=i.player;if(r.destroyed)return;const o=i.element,s=this._elementListeners.get(o);s&&s.forEach(a=>{if(a.name==i.triggerName){const l=$C(o,i.triggerName,i.fromState.value,i.toState.value);l._data=t,GC(i.player,a.phase,l,a.callback)}}),r.markedForDestroy?this._engine.afterFlush(()=>{r.destroy()}):e.push(i)}),this._queue=[],e.sort((i,r)=>{const o=i.transition.ast.depCount,s=r.transition.ast.depCount;return 0==o||0==s?o-s: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 AX{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,o)=>{}}_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 SX(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 s=!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),s=!0;break}a=this.driver.getParentElement(a)}s||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 o=this._fetchNamespace(r.namespaceId);o&&e.add(o)}return e}trigger(t,e,i,r){if(cg(e)){const o=this._fetchNamespace(t);if(o)return o.trigger(e,i,r),!0}return!1}insertNode(t,e,i,r){if(!cg(e))return;const o=e[no];if(o&&o.setForRemoval){o.setForRemoval=!1,o.setForMove=!0;const s=this.collectedLeaveElements.indexOf(e);s>=0&&this.collectedLeaveElements.splice(s,1)}if(t){const s=this._fetchNamespace(t);s&&s.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),io(t,cw)):this.disabledNodes.has(t)&&(this.disabledNodes.delete(t),ru(t,cw))}removeNode(t,e,i,r){if(cg(e)){const o=t?this._fetchNamespace(t):null;if(o?o.removeNode(e,r):this.markElementAsRemoved(t,e,!1,r),i){const s=this.namespacesByHostElement.get(e);s&&s.id!==t&&s.removeNode(e,r)}}else this._onRemovalComplete(e,r)}markElementAsRemoved(t,e,i,r,o){this.collectedLeaveElements.push(e),e[no]={namespaceId:t,setForRemoval:r,hasAnimation:i,removedBeforeQueried:!1,previousTriggersValues:o}}listen(t,e,i,r,o){return cg(e)?this._fetchNamespace(t).listen(e,i,r,o):()=>{}}_buildInstruction(t,e,i,r,o){return t.transition.build(this.driver,t.element,t.fromState.value,t.toState.value,i,r,t.fromState.options,t.toState.options,e,o)}destroyInnerAnimations(t){let e=this.driver.query(t,Jm,!0);e.forEach(i=>this.destroyActiveAnimationsForElement(i)),0!=this.playersByQueriedElement.size&&(e=this.driver.query(t,ZC,!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 wa(this.players).onDone(()=>t());t()})}processLeaveNode(t){const e=t[no];if(e&&e.setForRemoval){if(t[no]=Zk,e.namespaceId){this.destroyInnerAnimations(t);const i=this._fetchNamespace(e.namespaceId);i&&i.clearElementCache(t)}this._onRemovalComplete(t,e.setForRemoval)}t.classList?.contains(cw)&&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;ii()),this._flushFns=[],this._whenQuietFns.length){const i=this._whenQuietFns;this._whenQuietFns=[],e.length?wa(e).onDone(()=>{i.forEach(r=>r())}):i.forEach(r=>r())}}reportError(t){throw function AZ(n){return new Te(3402,!1)}()}_flushAnimations(t,e){const i=new sg,r=[],o=new Map,s=[],a=new Map,l=new Map,c=new Map,u=new Set;this.disabledNodes.forEach(tt=>{u.add(tt);const pt=this.driver.query(tt,".ng-animate-queued",!0);for(let wt=0;wt{const wt=JC+A++;y.set(pt,wt),tt.forEach(on=>io(on,wt))});const U=[],te=new Set,Ee=new Set;for(let tt=0;ttte.add(on)):Ee.add(pt))}const ne=new Map,Me=tR(h,Array.from(te));Me.forEach((tt,pt)=>{const wt=Ym+A++;ne.set(pt,wt),tt.forEach(on=>io(on,wt))}),t.push(()=>{m.forEach((tt,pt)=>{const wt=y.get(pt);tt.forEach(on=>ru(on,wt))}),Me.forEach((tt,pt)=>{const wt=ne.get(pt);tt.forEach(on=>ru(on,wt))}),U.forEach(tt=>{this.processLeaveNode(tt)})});const at=[],Dt=[];for(let tt=this._namespaceList.length-1;tt>=0;tt--)this._namespaceList[tt].drainQueuedTransitions(e).forEach(wt=>{const on=wt.player,_i=wt.element;if(at.push(on),this.collectedEnterElements.length){const ji=_i[no];if(ji&&ji.setForMove){if(ji.previousTriggersValues&&ji.previousTriggersValues.has(wt.triggerName)){const Dl=ji.previousTriggersValues.get(wt.triggerName),oo=this.statesByElement.get(wt.element);if(oo&&oo.has(wt.triggerName)){const vg=oo.get(wt.triggerName);vg.value=Dl,oo.set(wt.triggerName,vg)}}return void on.destroy()}}const os=!d||!this.driver.containsElement(d,_i),Nr=ne.get(_i),Ta=y.get(_i),Bn=this._buildInstruction(wt,i,Ta,Nr,os);if(Bn.errors&&Bn.errors.length)return void Dt.push(Bn);if(os)return on.onStart(()=>vl(_i,Bn.fromStyles)),on.onDestroy(()=>rs(_i,Bn.toStyles)),void r.push(on);if(wt.isFallbackTransition)return on.onStart(()=>vl(_i,Bn.fromStyles)),on.onDestroy(()=>rs(_i,Bn.toStyles)),void r.push(on);const sO=[];Bn.timelines.forEach(ji=>{ji.stretchStartingKeyframe=!0,this.disabledNodes.has(ji.element)||sO.push(ji)}),Bn.timelines=sO,i.append(_i,Bn.timelines),s.push({instruction:Bn,player:on,element:_i}),Bn.queriedElements.forEach(ji=>Pr(a,ji,[]).push(on)),Bn.preStyleProps.forEach((ji,Dl)=>{if(ji.size){let oo=l.get(Dl);oo||l.set(Dl,oo=new Set),ji.forEach((vg,Ew)=>oo.add(Ew))}}),Bn.postStyleProps.forEach((ji,Dl)=>{let oo=c.get(Dl);oo||c.set(Dl,oo=new Set),ji.forEach((vg,Ew)=>oo.add(Ew))})});if(Dt.length){const tt=[];Dt.forEach(pt=>{tt.push(function TZ(n,t){return new Te(3505,!1)}())}),at.forEach(pt=>pt.destroy()),this.reportError(tt)}const rn=new Map,Cn=new Map;s.forEach(tt=>{const pt=tt.element;i.has(pt)&&(Cn.set(pt,pt),this._beforeAnimationBuild(tt.player.namespaceId,tt.instruction,rn))}),r.forEach(tt=>{const pt=tt.element;this._getPreviousPlayers(pt,!1,tt.namespaceId,tt.triggerName,null).forEach(on=>{Pr(rn,pt,[]).push(on),on.destroy()})});const tr=U.filter(tt=>iR(tt,l,c)),gi=new Map;eR(gi,this.driver,Ee,c,Os).forEach(tt=>{iR(tt,l,c)&&tr.push(tt)});const Ys=new Map;m.forEach((tt,pt)=>{eR(Ys,this.driver,new Set(tt),l,"!")}),tr.forEach(tt=>{const pt=gi.get(tt),wt=Ys.get(tt);gi.set(tt,new Map([...Array.from(pt?.entries()??[]),...Array.from(wt?.entries()??[])]))});const Mo=[],au=[],lu={};s.forEach(tt=>{const{element:pt,player:wt,instruction:on}=tt;if(i.has(pt)){if(u.has(pt))return wt.onDestroy(()=>rs(pt,on.toStyles)),wt.disabled=!0,wt.overrideTotalTime(on.totalTime),void r.push(wt);let _i=lu;if(Cn.size>1){let Nr=pt;const Ta=[];for(;Nr=Nr.parentNode;){const Bn=Cn.get(Nr);if(Bn){_i=Bn;break}Ta.push(Nr)}Ta.forEach(Bn=>Cn.set(Bn,_i))}const os=this._buildAnimation(wt.namespaceId,on,rn,o,Ys,gi);if(wt.setRealPlayer(os),_i===lu)Mo.push(wt);else{const Nr=this.playersByElement.get(_i);Nr&&Nr.length&&(wt.parentPlayer=wa(Nr)),r.push(wt)}}else vl(pt,on.fromStyles),wt.onDestroy(()=>rs(pt,on.toStyles)),au.push(wt),u.has(pt)&&r.push(wt)}),au.forEach(tt=>{const pt=o.get(tt.element);if(pt&&pt.length){const wt=wa(pt);tt.setRealPlayer(wt)}}),r.forEach(tt=>{tt.parentPlayer?tt.syncPlayerEvents(tt.parentPlayer):tt.destroy()});for(let tt=0;tt!os.destroyed);_i.length?MX(this,pt,_i):this.processLeaveNode(pt)}return U.length=0,Mo.forEach(tt=>{this.players.push(tt),tt.onDone(()=>{tt.destroy();const pt=this.players.indexOf(tt);this.players.splice(pt,1)}),tt.play()}),Mo}elementContainsData(t,e){let i=!1;const r=e[no];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,o){let s=[];if(e){const a=this.playersByQueriedElement.get(t);a&&(s=a)}else{const a=this.playersByElement.get(t);if(a){const l=!o||o==fh;a.forEach(c=>{c.queued||!l&&c.triggerName!=r||s.push(c)})}}return(i||r)&&(s=s.filter(a=>!(i&&i!=a.namespaceId||r&&r!=a.triggerName))),s}_beforeAnimationBuild(t,e,i){const o=e.element,s=e.isRemovalTransition?void 0:t,a=e.isRemovalTransition?void 0:e.triggerName;for(const l of e.timelines){const c=l.element,u=c!==o,d=Pr(i,c,[]);this._getPreviousPlayers(c,u,s,a,e.toState).forEach(m=>{const y=m.getRealPlayer();y.beforeDestroy&&y.beforeDestroy(),m.destroy(),d.push(m)})}vl(o,e.fromStyles)}_buildAnimation(t,e,i,r,o,s){const a=e.triggerName,l=e.element,c=[],u=new Set,d=new Set,h=e.timelines.map(y=>{const A=y.element;u.add(A);const U=A[no];if(U&&U.removedBeforeQueried)return new vd(y.duration,y.delay);const te=A!==l,Ee=function kX(n){const t=[];return nR(n,t),t}((i.get(A)||EX).map(rn=>rn.getRealPlayer())).filter(rn=>!!rn.element&&rn.element===A),ne=o.get(A),Me=s.get(A),at=xk(0,this._normalizer,0,y.keyframes,ne,Me),Dt=this._buildPlayer(y,at,Ee);if(y.subTimeline&&r&&d.add(A),te){const rn=new hw(t,a,A);rn.setRealPlayer(Dt),c.push(rn)}return Dt});c.forEach(y=>{Pr(this.playersByQueriedElement,y.element,[]).push(y),y.onDone(()=>function TX(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,y.element,y))}),u.forEach(y=>io(y,Fk));const m=wa(h);return m.onDestroy(()=>{u.forEach(y=>ru(y,Fk)),rs(l,e.toStyles)}),d.forEach(y=>{Pr(r,y,[]).push(m)}),m}_buildPlayer(t,e,i){return e.length>0?this.driver.animate(t.element,e,t.duration,t.delay,t.easing,i):new vd(t.duration,t.delay)}}class hw{constructor(t,e,i){this.namespaceId=t,this.triggerName=e,this.element=i,this._player=new vd,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=>GC(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){Pr(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 cg(n){return n&&1===n.nodeType}function Xk(n,t){const e=n.style.display;return n.style.display=t??"none",e}function eR(n,t,e,i,r){const o=[];e.forEach(l=>o.push(Xk(l)));const s=[];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[no]=DX,s.push(c))}),n.set(c,u)});let a=0;return e.forEach(l=>Xk(l,o[a++])),s}function tR(n,t){const e=new Map;if(n.forEach(a=>e.set(a,[])),0==t.length)return e;const r=new Set(t),o=new Map;function s(a){if(!a)return 1;let l=o.get(a);if(l)return l;const c=a.parentNode;return l=e.has(c)?c:r.has(c)?1:s(c),o.set(a,l),l}return t.forEach(a=>{const l=s(a);1!==l&&e.get(l).push(a)}),e}function io(n,t){n.classList?.add(t)}function ru(n,t){n.classList?.remove(t)}function MX(n,t,e){wa(e).onDone(()=>n.processLeaveNode(t))}function nR(n,t){for(let e=0;er.add(o)):t.set(n,i),e.delete(n),!0}class ug{constructor(t,e,i){this.bodyNode=t,this._driver=e,this._normalizer=i,this._triggerCache={},this.onRemovalComplete=(r,o)=>{},this._transitionEngine=new AX(t,e,i),this._timelineEngine=new vX(t,e,i),this._transitionEngine.onRemovalComplete=(r,o)=>this.onRemovalComplete(r,o)}registerTrigger(t,e,i,r,o){const s=t+"-"+r;let a=this._triggerCache[s];if(!a){const l=[],u=nw(this._driver,o,l,[]);if(l.length)throw function gZ(n,t){return new Te(3404,!1)}();a=function fX(n,t,e){return new mX(n,t,e)}(r,u,this._normalizer),this._triggerCache[s]=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[o,s]=Ik(i);this._timelineEngine.command(o,e,s,r)}else this._transitionEngine.trigger(t,e,i,r)}listen(t,e,i,r,o){if("@"==i.charAt(0)){const[s,a]=Ik(i);return this._timelineEngine.listen(s,e,a,o)}return this._transitionEngine.listen(t,e,i,r,o)}flush(t=-1){this._transitionEngine.flush(t)}get players(){return this._transitionEngine.players.concat(this._timelineEngine.players)}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}}let PX=(()=>{class n{constructor(e,i,r){this._element=e,this._startStyles=i,this._endStyles=r,this._state=0;let o=n.initialStylesByElement.get(e);o||n.initialStylesByElement.set(e,o=new Map),this._initialStyles=o}start(){this._state<1&&(this._startStyles&&rs(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(rs(this._element,this._initialStyles),this._endStyles&&(rs(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(n.initialStylesByElement.delete(this._element),this._startStyles&&(vl(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(vl(this._element,this._endStyles),this._endStyles=null),rs(this._element,this._initialStyles),this._state=3)}}return n.initialStylesByElement=new WeakMap,n})();function pw(n){let t=null;return n.forEach((e,i)=>{(function LX(n){return"display"===n||"position"===n})(i)&&(t=t||new Map,t.set(i,e))}),t}class rR{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._originalOnDoneFns=[],this._originalOnStartFns=[],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._originalOnStartFns.push(t),this._onStartFns.push(t)}onDone(t){this._originalOnDoneFns.push(t),this._onDoneFns.push(t)}onDestroy(t){this._onDestroyFns.push(t)}play(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(t=>t()),this._onStartFns=[],this._started=!0,this._specialStyles&&this._specialStyles.start()),this.domPlayer.play()}pause(){this.init(),this.domPlayer.pause()}finish(){this.init(),this._specialStyles&&this._specialStyles.finish(),this._onFinish(),this.domPlayer.finish()}reset(){this._resetDomPlayerState(),this._destroyed=!1,this._finished=!1,this._started=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}_resetDomPlayerState(){this.domPlayer&&this.domPlayer.cancel()}restart(){this.reset(),this.play()}hasStarted(){return this._started}destroy(){this._destroyed||(this._destroyed=!0,this._resetDomPlayerState(),this._onFinish(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(t=>t()),this._onDestroyFns=[])}setPosition(t){void 0===this.domPlayer&&this.init(),this.domPlayer.currentTime=t*this.time}getPosition(){return this.domPlayer.currentTime/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:qk(this.element,r))}),this.currentSnapshot=t}triggerCallback(t){const e="start"===t?this._onStartFns:this._onDoneFns;e.forEach(i=>i()),e.length=0}}class NX{validateStyleProperty(t){return!0}validateAnimatableStyleProperty(t){return!0}matchesElement(t,e){return!1}containsElement(t,e){return Ok(t,e)}getParentElement(t){return YC(t)}query(t,e,i){return Pk(t,e,i)}computeStyle(t,e,i){return window.getComputedStyle(t)[e]}animate(t,e,i,r,o,s=[]){const l={duration:i,delay:r,fill:0==r?"both":"forwards"};o&&(l.easing=o);const c=new Map,u=s.filter(m=>m instanceof rR);(function HZ(n,t){return 0===n||0===t})(i,r)&&u.forEach(m=>{m.currentSnapshot.forEach((y,A)=>c.set(A,y))});let d=function NZ(n){return n.length?n[0]instanceof Map?n:n.map(t=>Bk(t)):[]}(e).map(m=>Da(m));d=function VZ(n,t,e){if(e.size&&t.length){let i=t[0],r=[];if(e.forEach((o,s)=>{i.has(s)||r.push(s),i.set(s,o)}),r.length)for(let o=1;os.set(a,qk(n,a)))}}return t}(t,d,c);const h=function OX(n,t){let e=null,i=null;return Array.isArray(t)&&t.length?(e=pw(t[0]),t.length>1&&(i=pw(t[t.length-1]))):t instanceof Map&&(e=pw(t)),e||i?new PX(n,e,i):null}(t,d);return new rR(t,d,l,h)}}let FX=(()=>{class n extends w1{constructor(e,i){super(),this._nextAnimationId=0,this._renderer=e.createRenderer(i.body,{id:"0",encapsulation:ao.None,styles:[],data:{animation:[]}})}build(e){const i=this._nextAnimationId.toString();this._nextAnimationId++;const r=Array.isArray(e)?D1(e):e;return oR(this._renderer,null,i,"register",[r]),new BX(i,this._renderer)}}return n.\u0275fac=function(e){return new(e||n)(M(Ru),M(ft))},n.\u0275prov=ge({token:n,factory:n.\u0275fac}),n})();class BX extends class H6{}{constructor(t,e){super(),this._id=t,this._renderer=e}create(t,e){return new jX(this._id,t,e||{},this._renderer)}}class jX{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 oR(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 oR(n,t,e,i,r){return n.setProperty(t,`@@${e}:${i}`,r)}const sR="@.disabled";let HX=(()=>{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=(o,s)=>{const a=s?.parentNode(o);a&&s.removeChild(a,o)}}createRenderer(e,i){const o=this.delegate.createRenderer(e,i);if(!(e&&i&&i.data&&i.data.animation)){let u=this._rendererCache.get(o);return u||(u=new aR("",o,this.engine),this._rendererCache.set(o,u)),u}const s=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(s,a,e,u.name,u)};return i.data.animation.forEach(l),new VX(this,a,o,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}_scheduleCountTask(){this.promise.then(()=>{this._microtaskId++})}scheduleListenerCallback(e,i,r){e>=0&&ei(r)):(0==this._animationCallbacksBuffer.length&&Promise.resolve(null).then(()=>{this._zone.run(()=>{this._animationCallbacksBuffer.forEach(o=>{const[s,a]=o;s(a)}),this._animationCallbacksBuffer=[]})}),this._animationCallbacksBuffer.push([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)(M(Ru),M(ug),M(et))},n.\u0275prov=ge({token:n,factory:n.\u0275fac}),n})();class aR{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==sR?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 VX extends aR{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==sR?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 UX(n){switch(n){case"body":return document.body;case"document":return document;case"window":return window;default:return n}}(t);let o=e.slice(1),s="";return"@"!=o.charAt(0)&&([o,s]=function qX(n){const t=n.indexOf(".");return[n.substring(0,t),n.slice(t+1)]}(o)),this.engine.listen(this.namespaceId,r,o,s,a=>{this.factory.scheduleListenerCallback(a._data||-1,i,a)})}return this.delegate.listen(t,e,i)}}let zX=(()=>{class n extends ug{constructor(e,i,r,o){super(e.body,i,r)}ngOnDestroy(){this.flush()}}return n.\u0275fac=function(e){return new(e||n)(M(ft),M(QC),M(aw),M(Qu))},n.\u0275prov=ge({token:n,factory:n.\u0275fac}),n})();const lR=[{provide:w1,useClass:FX},{provide:aw,useFactory:function GX(){return new uX}},{provide:ug,useClass:zX},{provide:Ru,useFactory:function WX(n,t,e){return new HX(n,t,e)},deps:[Kp,ug,et]}],fw=[{provide:QC,useFactory:()=>new NX},{provide:qn,useValue:"BrowserAnimations"},...lR],cR=[{provide:QC,useClass:Lk},{provide:qn,useValue:"NoopAnimations"},...lR];let $X=(()=>{class n{static withConfig(e){return{ngModule:n,providers:e.disableAnimations?cR:fw}}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=ht({type:n}),n.\u0275inj=dt({providers:fw,imports:[QT]}),n})(),uR=(()=>{class n{constructor(e){this.viewContainerRef=e}}return n.\u0275fac=function(e){return new(e||n)(p(Dn))},n.\u0275dir=fe({type:n,selectors:[["","appModal",""]]}),n})();const KX=["modal"],YX=["modalHeader"],QX=["modalFooter"],JX=["dbs"];function ZX(n,t){if(1&n){const e=Ie();g(0,"div",4)(1,"div",5)(2,"h1"),j(3),_()(),g(4,"div",6),W("click",function(){return J(e),Z(C().closeModal())}),be(5,"div",7),_()()}if(2&n){const e=t.title,i=C();f(3),ve(e),f(2),v("ngStyle",i.modCloseImage)}}function XX(n,t){if(1&n){const e=Ie();g(0,"div",8)(1,"button",9),W("click",function(){return Z((0,J(e).cancelAction)())}),j(2),_(),g(3,"button",10),W("click",function(){return Z((0,J(e).confirmAction)())}),j(4),_()()}if(2&n){const e=t.confirm,i=t.cancel;f(2),qe(" ",i," "),f(2),qe(" ",e," ")}}function eee(n,t){}function tee(n,t){}let nee=(()=>{class n{constructor(e,i,r,o,s){this.modal=e,this.modalService=i,this.componentFactoryResolver=r,this.app=o,this.globals=s,this.headerText="",this.modCloseImage={background:"no-repeat url(assets/images/widget_settings.png)"}}ngAfterViewInit(){}ngOnInit(){this.modalService.currentType.subscribe(e=>{this.modalService.setModalHeader(this.modalHeader),this.modalService.setModalFooter(this.modalFooter),this.chosenType=e.newType,this.loadComponent(this.chosenType,e.data)})}open(e){return this.modal.open(e,{panelClass:"modalOverlay",autoFocus:!1,maxHeight:"Owa"===this.globals.curConnectorType?"90%":"80%"})}loadComponent(e,i){this.modalItems=this.app.mItems;const r=this.modalItems[e],o=this.componentFactoryResolver.resolveComponentFactory(r.component),s=this.appModal.viewContainerRef;s.clear();const a=s.createComponent(o);return this.modalService.addActiveModal(this.open(a.instance.getTemplate())),a.instance.data=r.data,a.instance.modalMain=this,a.instance.data&&(a.instance.data.modalItems=this.modalService.modalItemsPub,i&&(a.instance.data.passedData=i)),this.modalService.newActive}closeModal(){this.modalService.closeAllModals()}}return n.\u0275fac=function(e){return new(e||n)(p(Wo),p(hl),p(hs),p(HC),p(ot))},n.\u0275cmp=Ue({type:n,selectors:[["app-modal"]],viewQuery:function(e,i){if(1&e&&(De(KX,7),De(YX,7),De(QX,7),De(uR,7),De(JX,5)),2&e){let r;ce(r=ue())&&(i.modalTempl=r.first),ce(r=ue())&&(i.modalHeader=r.first),ce(r=ue())&&(i.modalFooter=r.first),ce(r=ue())&&(i.appModal=r.first),ce(r=ue())&&(i.selection=r.first)}},decls:7,vars:0,consts:[["modalHeader",""],["modalFooter",""],["appModal",""],["modal",""],[1,"modalHeader"],[1,"modalHeaderText"],["ngbAutoFocus","",1,"modalHeaderClose",3,"click"],[1,"modalCloseIcon",3,"ngStyle"],[1,"modalFooter"],[1,"button-secondary","right",3,"click"],[1,"button-primary","right",3,"click"]],template:function(e,i){1&e&&(H(0,ZX,6,2,"ng-template",null,0,Sn),H(2,XX,5,2,"ng-template",null,1,Sn),H(4,eee,0,0,"ng-template",2),H(5,tee,0,0,"ng-template",null,3,Sn))},dependencies:[ra,uR]}),n})(),iee=(()=>{class n{constructor(e){this.language=e}getTranslation(e){return new b(i=>{this.language.waitForInit().subscribe(()=>{i.next(this.language.passLCObj()),i.complete()})})}}return n.\u0275fac=function(e){return new(e||n)(M(pC))},n.\u0275prov=ge({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();function ree(n,t){if(1&n&&(Rl(),be(0,"circle",4)),2&n){const e=C(),i=Yt(1);qr("animation-name","mat-progress-spinner-stroke-rotate-"+e._spinnerAnimationLabel)("stroke-dashoffset",e._getStrokeDashOffset(),"px")("stroke-dasharray",e._getStrokeCircumference(),"px")("stroke-width",e._getCircleStrokeWidth(),"%")("transform-origin",e._getCircleTransformOrigin(i)),rt("r",e._getCircleRadius())}}function oee(n,t){if(1&n&&(Rl(),be(0,"circle",4)),2&n){const e=C(),i=Yt(1);qr("stroke-dashoffset",e._getStrokeDashOffset(),"px")("stroke-dasharray",e._getStrokeCircumference(),"px")("stroke-width",e._getCircleStrokeWidth(),"%")("transform-origin",e._getCircleTransformOrigin(i)),rt("r",e._getCircleRadius())}}const aee=da(class{constructor(n){this._elementRef=n}},"primary"),lee=new me("mat-progress-spinner-default-options",{providedIn:"root",factory:function cee(){return{diameter:100}}});class $s extends aee{constructor(t,e,i,r,o,s,a,l){super(t),this._document=i,this._diameter=100,this._value=0,this._resizeSubscription=E.EMPTY,this.mode="determinate";const c=$s._diameters;this._spinnerAnimationLabel=this._getSpinnerAnimationLabel(),c.has(i.head)||c.set(i.head,new Set([100])),this._noopAnimations="NoopAnimations"===r&&!!o&&!o._forceAnimations,"mat-spinner"===t.nativeElement.nodeName.toLowerCase()&&(this.mode="indeterminate"),o&&(o.color&&(this.color=this.defaultColor=o.color),o.diameter&&(this.diameter=o.diameter),o.strokeWidth&&(this.strokeWidth=o.strokeWidth)),e.isBrowser&&e.SAFARI&&a&&s&&l&&(this._resizeSubscription=a.change(150).subscribe(()=>{"indeterminate"===this.mode&&l.run(()=>s.markForCheck())}))}get diameter(){return this._diameter}set diameter(t){this._diameter=xs(t),this._spinnerAnimationLabel=this._getSpinnerAnimationLabel(),this._styleRoot&&this._attachStyleNode()}get strokeWidth(){return this._strokeWidth||this.diameter/10}set strokeWidth(t){this._strokeWidth=xs(t)}get value(){return"determinate"===this.mode?this._value:0}set value(t){this._value=Math.max(0,Math.min(100,xs(t)))}ngOnInit(){const t=this._elementRef.nativeElement;this._styleRoot=_f(t)||this._document.head,this._attachStyleNode(),t.classList.add("mat-progress-spinner-indeterminate-animation")}ngOnDestroy(){this._resizeSubscription.unsubscribe()}_getCircleRadius(){return(this.diameter-10)/2}_getViewBox(){const t=2*this._getCircleRadius()+this.strokeWidth;return`0 0 ${t} ${t}`}_getStrokeCircumference(){return 2*Math.PI*this._getCircleRadius()}_getStrokeDashOffset(){return"determinate"===this.mode?this._getStrokeCircumference()*(100-this._value)/100:null}_getCircleStrokeWidth(){return this.strokeWidth/this.diameter*100}_getCircleTransformOrigin(t){const e=50*(t.currentScale??1);return`${e}% ${e}%`}_attachStyleNode(){const t=this._styleRoot,e=this._diameter,i=$s._diameters;let r=i.get(t);if(!r||!r.has(e)){const o=this._document.createElement("style");o.setAttribute("mat-spinner-animation",this._spinnerAnimationLabel),o.textContent=this._getAnimationText(),t.appendChild(o),r||(r=new Set,i.set(t,r)),r.add(e)}}_getAnimationText(){const t=this._getStrokeCircumference();return"\n @keyframes mat-progress-spinner-stroke-rotate-DIAMETER {\n 0% { stroke-dashoffset: START_VALUE; transform: rotate(0); }\n 12.5% { stroke-dashoffset: END_VALUE; transform: rotate(0); }\n 12.5001% { stroke-dashoffset: END_VALUE; transform: rotateX(180deg) rotate(72.5deg); }\n 25% { stroke-dashoffset: START_VALUE; transform: rotateX(180deg) rotate(72.5deg); }\n\n 25.0001% { stroke-dashoffset: START_VALUE; transform: rotate(270deg); }\n 37.5% { stroke-dashoffset: END_VALUE; transform: rotate(270deg); }\n 37.5001% { stroke-dashoffset: END_VALUE; transform: rotateX(180deg) rotate(161.5deg); }\n 50% { stroke-dashoffset: START_VALUE; transform: rotateX(180deg) rotate(161.5deg); }\n\n 50.0001% { stroke-dashoffset: START_VALUE; transform: rotate(180deg); }\n 62.5% { stroke-dashoffset: END_VALUE; transform: rotate(180deg); }\n 62.5001% { stroke-dashoffset: END_VALUE; transform: rotateX(180deg) rotate(251.5deg); }\n 75% { stroke-dashoffset: START_VALUE; transform: rotateX(180deg) rotate(251.5deg); }\n\n 75.0001% { stroke-dashoffset: START_VALUE; transform: rotate(90deg); }\n 87.5% { stroke-dashoffset: END_VALUE; transform: rotate(90deg); }\n 87.5001% { stroke-dashoffset: END_VALUE; transform: rotateX(180deg) rotate(341.5deg); }\n 100% { stroke-dashoffset: START_VALUE; transform: rotateX(180deg) rotate(341.5deg); }\n }\n".replace(/START_VALUE/g,""+.95*t).replace(/END_VALUE/g,""+.2*t).replace(/DIAMETER/g,`${this._spinnerAnimationLabel}`)}_getSpinnerAnimationLabel(){return this.diameter.toString().replace(".","_")}}$s._diameters=new WeakMap,$s.\u0275fac=function(t){return new(t||$s)(p(Je),p(Nn),p(ft,8),p(qn,8),p(lee),p(St),p(zo),p(et))},$s.\u0275cmp=Ue({type:$s,selectors:[["mat-progress-spinner"],["mat-spinner"]],hostAttrs:["role","progressbar","tabindex","-1",1,"mat-progress-spinner","mat-spinner"],hostVars:10,hostBindings:function(t,e){2&t&&(rt("aria-valuemin","determinate"===e.mode?0:null)("aria-valuemax","determinate"===e.mode?100:null)("aria-valuenow","determinate"===e.mode?e.value:null)("mode",e.mode),qr("width",e.diameter,"px")("height",e.diameter,"px"),bt("_mat-animation-noopable",e._noopAnimations))},inputs:{color:"color",diameter:"diameter",strokeWidth:"strokeWidth",mode:"mode",value:"value"},exportAs:["matProgressSpinner"],features:[Se],decls:4,vars:8,consts:[["preserveAspectRatio","xMidYMid meet","focusable","false","aria-hidden","true",3,"ngSwitch"],["svg",""],["cx","50%","cy","50%",3,"animation-name","stroke-dashoffset","stroke-dasharray","stroke-width","transform-origin",4,"ngSwitchCase"],["cx","50%","cy","50%",3,"stroke-dashoffset","stroke-dasharray","stroke-width","transform-origin",4,"ngSwitchCase"],["cx","50%","cy","50%"]],template:function(t,e){1&t&&(Rl(),g(0,"svg",0,1),H(2,ree,1,11,"circle",2),H(3,oee,1,9,"circle",3),_()),2&t&&(qr("width",e.diameter,"px")("height",e.diameter,"px"),v("ngSwitch","indeterminate"===e.mode),rt("viewBox",e._getViewBox()),f(2),v("ngSwitchCase",!0),f(1),v("ngSwitchCase",!1))},dependencies:[mc,qp],styles:[".mat-progress-spinner{display:block;position:relative;overflow:hidden}.mat-progress-spinner svg{position:absolute;transform:rotate(-90deg);top:0;left:0;transform-origin:center;overflow:visible}.mat-progress-spinner circle{fill:rgba(0,0,0,0);transition:stroke-dashoffset 225ms linear}.cdk-high-contrast-active .mat-progress-spinner circle{stroke:CanvasText}.mat-progress-spinner[mode=indeterminate] svg{animation:mat-progress-spinner-linear-rotate 2000ms linear infinite}.mat-progress-spinner[mode=indeterminate] circle{transition-property:stroke;animation-duration:4000ms;animation-timing-function:cubic-bezier(0.35, 0, 0.25, 1);animation-iteration-count:infinite}.mat-progress-spinner._mat-animation-noopable svg,.mat-progress-spinner._mat-animation-noopable circle{animation:none;transition:none}@keyframes mat-progress-spinner-linear-rotate{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}@keyframes mat-progress-spinner-stroke-rotate-100{0%{stroke-dashoffset:268.606171575px;transform:rotate(0)}12.5%{stroke-dashoffset:56.5486677px;transform:rotate(0)}12.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(72.5deg)}25%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(72.5deg)}25.0001%{stroke-dashoffset:268.606171575px;transform:rotate(270deg)}37.5%{stroke-dashoffset:56.5486677px;transform:rotate(270deg)}37.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(161.5deg)}50%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(161.5deg)}50.0001%{stroke-dashoffset:268.606171575px;transform:rotate(180deg)}62.5%{stroke-dashoffset:56.5486677px;transform:rotate(180deg)}62.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(251.5deg)}75%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(251.5deg)}75.0001%{stroke-dashoffset:268.606171575px;transform:rotate(90deg)}87.5%{stroke-dashoffset:56.5486677px;transform:rotate(90deg)}87.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(341.5deg)}100%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(341.5deg)}}"],encapsulation:2,changeDetection:0});let dee=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=ht({type:n}),n.\u0275inj=dt({imports:[Lt,$r,Lt]}),n})();const hee=["panel"];function pee(n,t){if(1&n&&(g(0,"div",0,1),Bt(2),_()),2&n){const e=t.id,i=C();v("id",i.id)("ngClass",i._classList),rt("aria-label",i.ariaLabel||null)("aria-labelledby",i._getPanelAriaLabelledby(e))}}const fee=["*"];let mee=0;class gee{constructor(t,e){this.source=t,this.option=e}}const _ee=Go(class{}),dR=new me("mat-autocomplete-default-options",{providedIn:"root",factory:function vee(){return{autoActiveFirstOption:!1,autoSelectActiveOption:!1}}});let yee=(()=>{class n extends _ee{constructor(e,i,r,o){super(),this._changeDetectorRef=e,this._elementRef=i,this._activeOptionChanges=E.EMPTY,this.showPanel=!1,this._isOpen=!1,this.displayWith=null,this.optionSelected=new He,this.opened=new He,this.closed=new He,this.optionActivated=new He,this._classList={},this.id="mat-autocomplete-"+mee++,this.inertGroups=o?.SAFARI||!1,this._autoActiveFirstOption=!!r.autoActiveFirstOption,this._autoSelectActiveOption=!!r.autoSelectActiveOption}get isOpen(){return this._isOpen&&this.showPanel}get autoActiveFirstOption(){return this._autoActiveFirstOption}set autoActiveFirstOption(e){this._autoActiveFirstOption=lt(e)}get autoSelectActiveOption(){return this._autoSelectActiveOption}set autoSelectActiveOption(e){this._autoSelectActiveOption=lt(e)}set classList(e){this._classList=e&&e.length?function YU(n,t=/\s+/){const e=[];if(null!=n){const i=Array.isArray(n)?n:`${n}`.split(t);for(const r of i){const o=`${r}`.trim();o&&e.push(o)}}return e}(e).reduce((i,r)=>(i[r]=!0,i),{}):{},this._setVisibilityClasses(this._classList),this._elementRef.nativeElement.className=""}ngAfterContentInit(){this._keyManager=new N2(this.options).withWrap(),this._activeOptionChanges=this._keyManager.change.subscribe(e=>{this.isOpen&&this.optionActivated.emit({source:this,option:this.options.toArray()[e]||null})}),this._setVisibility()}ngOnDestroy(){this._activeOptionChanges.unsubscribe()}_setScrollTop(e){this.panel&&(this.panel.nativeElement.scrollTop=e)}_getScrollTop(){return this.panel?this.panel.nativeElement.scrollTop:0}_setVisibility(){this.showPanel=!!this.options.length,this._setVisibilityClasses(this._classList),this._changeDetectorRef.markForCheck()}_emitSelectEvent(e){const i=new gee(this,e);this.optionSelected.emit(i)}_getPanelAriaLabelledby(e){return this.ariaLabel?null:this.ariaLabelledby?(e?e+" ":"")+this.ariaLabelledby:e}_setVisibilityClasses(e){e[this._visibleClass]=this.showPanel,e[this._hiddenClass]=!this.showPanel}}return n.\u0275fac=function(e){return new(e||n)(p(St),p(Je),p(dR),p(Nn))},n.\u0275dir=fe({type:n,viewQuery:function(e,i){if(1&e&&(De(yn,7),De(hee,5)),2&e){let r;ce(r=ue())&&(i.template=r.first),ce(r=ue())&&(i.panel=r.first)}},inputs:{ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],displayWith:"displayWith",autoActiveFirstOption:"autoActiveFirstOption",autoSelectActiveOption:"autoSelectActiveOption",panelWidth:"panelWidth",classList:["class","classList"]},outputs:{optionSelected:"optionSelected",opened:"opened",closed:"closed",optionActivated:"optionActivated"},features:[Se]}),n})(),hR=(()=>{class n extends yee{constructor(){super(...arguments),this._visibleClass="mat-autocomplete-visible",this._hiddenClass="mat-autocomplete-hidden"}}return n.\u0275fac=function(){let t;return function(i){return(t||(t=Pt(n)))(i||n)}}(),n.\u0275cmp=Ue({type:n,selectors:[["mat-autocomplete"]],contentQueries:function(e,i,r){if(1&e&&(jt(r,Lf,5),jt(r,cr,5)),2&e){let o;ce(o=ue())&&(i.optionGroups=o),ce(o=ue())&&(i.options=o)}},hostAttrs:[1,"mat-autocomplete"],inputs:{disableRipple:"disableRipple"},exportAs:["matAutocomplete"],features:[it([{provide:Pf,useExisting:n}]),Se],ngContentSelectors:fee,decls:1,vars:0,consts:[["role","listbox",1,"mat-autocomplete-panel",3,"id","ngClass"],["panel",""]],template:function(e,i){1&e&&(Pn(),H(0,pee,3,4,"ng-template"))},dependencies:[$a],styles:[".mat-autocomplete-panel{min-width:112px;max-width:280px;overflow:auto;-webkit-overflow-scrolling:touch;visibility:hidden;max-width:none;max-height:256px;position:relative;width:100%;border-bottom-left-radius:4px;border-bottom-right-radius:4px}.mat-autocomplete-panel.mat-autocomplete-visible{visibility:visible}.mat-autocomplete-panel.mat-autocomplete-hidden{visibility:hidden}.mat-autocomplete-panel-above .mat-autocomplete-panel{border-radius:0;border-top-left-radius:4px;border-top-right-radius:4px}.mat-autocomplete-panel .mat-divider-horizontal{margin-top:-1px}.cdk-high-contrast-active .mat-autocomplete-panel{outline:solid 1px}mat-autocomplete{display:none}"],encapsulation:2,changeDetection:0}),n})();const pR=new me("mat-autocomplete-scroll-strategy"),Cee={provide:pR,deps:[lr],useFactory:function bee(n){return()=>n.scrollStrategies.reposition()}},wee={provide:or,useExisting:Xt(()=>ro),multi:!0};let Eee=(()=>{class n{constructor(e,i,r,o,s,a,l,c,u,d,h){this._element=e,this._overlay=i,this._viewContainerRef=r,this._zone=o,this._changeDetectorRef=s,this._dir=l,this._formField=c,this._document=u,this._viewportRuler=d,this._defaults=h,this._componentDestroyed=!1,this._autocompleteDisabled=!1,this._manuallyFloatingLabel=!1,this._viewportSubscription=E.EMPTY,this._canOpenOnNextFocus=!0,this._closeKeyEventStream=new N,this._windowBlurHandler=()=>{this._canOpenOnNextFocus=this._document.activeElement!==this._element.nativeElement||this.panelOpen},this._onChange=()=>{},this._onTouched=()=>{},this.position="auto",this.autocompleteAttribute="off",this._overlayAttached=!1,this.optionSelections=la(()=>{const m=this.autocomplete?this.autocomplete.options:null;return m?m.changes.pipe(ni(m),Kn(()=>On(...m.map(y=>y.onSelectionChange)))):this._zone.onStable.pipe(sn(1),Kn(()=>this.optionSelections))}),this._scrollStrategy=a}get autocompleteDisabled(){return this._autocompleteDisabled}set autocompleteDisabled(e){this._autocompleteDisabled=lt(e)}ngAfterViewInit(){const e=this._getWindow();typeof e<"u"&&this._zone.runOutsideAngular(()=>e.addEventListener("blur",this._windowBlurHandler))}ngOnChanges(e){e.position&&this._positionStrategy&&(this._setStrategyPositions(this._positionStrategy),this.panelOpen&&this._overlayRef.updatePosition())}ngOnDestroy(){const e=this._getWindow();typeof e<"u"&&e.removeEventListener("blur",this._windowBlurHandler),this._viewportSubscription.unsubscribe(),this._componentDestroyed=!0,this._destroyPanel(),this._closeKeyEventStream.complete()}get panelOpen(){return this._overlayAttached&&this.autocomplete.showPanel}openPanel(){this._attachOverlay(),this._floatLabel()}closePanel(){this._resetLabel(),this._overlayAttached&&(this.panelOpen&&this._zone.run(()=>{this.autocomplete.closed.emit()}),this.autocomplete._isOpen=this._overlayAttached=!1,this._pendingAutoselectedOption=null,this._overlayRef&&this._overlayRef.hasAttached()&&(this._overlayRef.detach(),this._closingActionsSubscription.unsubscribe()),this._componentDestroyed||this._changeDetectorRef.detectChanges())}updatePosition(){this._overlayAttached&&this._overlayRef.updatePosition()}get panelClosingActions(){return On(this.optionSelections,this.autocomplete._keyManager.tabOut.pipe(Tn(()=>this._overlayAttached)),this._closeKeyEventStream,this._getOutsideClickStream(),this._overlayRef?this._overlayRef.detachments().pipe(Tn(()=>this._overlayAttached)):Ne()).pipe(he(e=>e instanceof b1?e:null))}get activeOption(){return this.autocomplete&&this.autocomplete._keyManager?this.autocomplete._keyManager.activeItem:null}_getOutsideClickStream(){return On(Is(this._document,"click"),Is(this._document,"auxclick"),Is(this._document,"touchend")).pipe(Tn(e=>{const i=Qr(e),r=this._formField?this._formField._elementRef.nativeElement:null,o=this.connectedTo?this.connectedTo.elementRef.nativeElement:null;return this._overlayAttached&&i!==this._element.nativeElement&&this._document.activeElement!==this._element.nativeElement&&(!r||!r.contains(i))&&(!o||!o.contains(i))&&!!this._overlayRef&&!this._overlayRef.overlayElement.contains(i)}))}writeValue(e){Promise.resolve(null).then(()=>this._assignOptionValue(e))}registerOnChange(e){this._onChange=e}registerOnTouched(e){this._onTouched=e}setDisabledState(e){this._element.nativeElement.disabled=e}_handleKeydown(e){const i=e.keyCode,r=yi(e);if(27===i&&!r&&e.preventDefault(),this.activeOption&&13===i&&this.panelOpen&&!r)this.activeOption._selectViaInteraction(),this._resetActiveItem(),e.preventDefault();else if(this.autocomplete){const o=this.autocomplete._keyManager.activeItem,s=38===i||40===i;9===i||s&&!r&&this.panelOpen?this.autocomplete._keyManager.onKeydown(e):s&&this._canOpen()&&this.openPanel(),(s||this.autocomplete._keyManager.activeItem!==o)&&(this._scrollToOption(this.autocomplete._keyManager.activeItemIndex||0),this.autocomplete.autoSelectActiveOption&&this.activeOption&&(this._pendingAutoselectedOption||(this._valueBeforeAutoSelection=this._element.nativeElement.value),this._pendingAutoselectedOption=this.activeOption,this._assignOptionValue(this.activeOption.value)))}}_handleInput(e){let i=e.target,r=i.value;"number"===i.type&&(r=""==r?null:parseFloat(r)),this._previousValue!==r&&(this._previousValue=r,this._pendingAutoselectedOption=null,this._onChange(r),this._canOpen()&&this._document.activeElement===e.target&&this.openPanel())}_handleFocus(){this._canOpenOnNextFocus?this._canOpen()&&(this._previousValue=this._element.nativeElement.value,this._attachOverlay(),this._floatLabel(!0)):this._canOpenOnNextFocus=!0}_handleClick(){this._canOpen()&&!this.panelOpen&&this.openPanel()}_floatLabel(e=!1){this._formField&&"auto"===this._formField.floatLabel&&(e?this._formField._animateAndLockLabel():this._formField.floatLabel="always",this._manuallyFloatingLabel=!0)}_resetLabel(){this._manuallyFloatingLabel&&(this._formField.floatLabel="auto",this._manuallyFloatingLabel=!1)}_subscribeToClosingActions(){return On(this._zone.onStable.pipe(sn(1)),this.autocomplete.options.changes.pipe(Yn(()=>this._positionStrategy.reapplyLastPosition()),VC(0))).pipe(Kn(()=>(this._zone.run(()=>{const r=this.panelOpen;this._resetActiveItem(),this.autocomplete._setVisibility(),this._changeDetectorRef.detectChanges(),this.panelOpen&&this._overlayRef.updatePosition(),r!==this.panelOpen&&(this.panelOpen?this.autocomplete.opened.emit():this.autocomplete.closed.emit())}),this.panelClosingActions)),sn(1)).subscribe(r=>this._setValueAndClose(r))}_destroyPanel(){this._overlayRef&&(this.closePanel(),this._overlayRef.dispose(),this._overlayRef=null)}_assignOptionValue(e){const i=this.autocomplete&&this.autocomplete.displayWith?this.autocomplete.displayWith(e):e;this._updateNativeInputValue(i??"")}_updateNativeInputValue(e){this._formField?this._formField._control.value=e:this._element.nativeElement.value=e,this._previousValue=e}_setValueAndClose(e){const i=e?e.source:this._pendingAutoselectedOption;i&&(this._clearPreviousSelectedOption(i),this._assignOptionValue(i.value),this._onChange(i.value),this.autocomplete._emitSelectEvent(i),this._element.nativeElement.focus()),this.closePanel()}_clearPreviousSelectedOption(e){this.autocomplete.options.forEach(i=>{i!==e&&i.selected&&i.deselect()})}_attachOverlay(){let e=this._overlayRef;e?(this._positionStrategy.setOrigin(this._getConnectedElement()),e.updateSize({width:this._getPanelWidth()})):(this._portal=new Ms(this.autocomplete.template,this._viewContainerRef,{id:this._formField?.getLabelId()}),e=this._overlay.create(this._getOverlayConfig()),this._overlayRef=e,this._handleOverlayEvents(e),this._viewportSubscription=this._viewportRuler.change().subscribe(()=>{this.panelOpen&&e&&e.updateSize({width:this._getPanelWidth()})})),e&&!e.hasAttached()&&(e.attach(this._portal),this._closingActionsSubscription=this._subscribeToClosingActions());const i=this.panelOpen;this.autocomplete._setVisibility(),this.autocomplete._isOpen=this._overlayAttached=!0,this.panelOpen&&i!==this.panelOpen&&this.autocomplete.opened.emit()}_getOverlayConfig(){return new xc({positionStrategy:this._getOverlayPosition(),scrollStrategy:this._scrollStrategy(),width:this._getPanelWidth(),direction:this._dir,panelClass:this._defaults?.overlayPanelClass})}_getOverlayPosition(){const e=this._overlay.position().flexibleConnectedTo(this._getConnectedElement()).withFlexibleDimensions(!1).withPush(!1);return this._setStrategyPositions(e),this._positionStrategy=e,e}_setStrategyPositions(e){const i=[{originX:"start",originY:"bottom",overlayX:"start",overlayY:"top"},{originX:"end",originY:"bottom",overlayX:"end",overlayY:"top"}],r=this._aboveClass,o=[{originX:"start",originY:"top",overlayX:"start",overlayY:"bottom",panelClass:r},{originX:"end",originY:"top",overlayX:"end",overlayY:"bottom",panelClass:r}];let s;s="above"===this.position?o:"below"===this.position?i:[...i,...o],e.withPositions(s)}_getConnectedElement(){return this.connectedTo?this.connectedTo.elementRef:this._formField?this._formField.getConnectedOverlayOrigin():this._element}_getPanelWidth(){return this.autocomplete.panelWidth||this._getHostWidth()}_getHostWidth(){return this._getConnectedElement().nativeElement.getBoundingClientRect().width}_resetActiveItem(){const e=this.autocomplete;e.autoActiveFirstOption?e._keyManager.setFirstItemActive():e._keyManager.setActiveItem(-1)}_canOpen(){const e=this._element.nativeElement;return!e.readOnly&&!e.disabled&&!this._autocompleteDisabled}_getWindow(){return this._document?.defaultView||window}_scrollToOption(e){const i=this.autocomplete,r=Eb(e,i.options,i.optionGroups);if(0===e&&1===r)i._setScrollTop(0);else if(i.panel){const o=i.options.toArray()[e];if(o){const s=o._getHostElement(),a=C1(s.offsetTop,s.offsetHeight,i._getScrollTop(),i.panel.nativeElement.offsetHeight);i._setScrollTop(a)}}}_handleOverlayEvents(e){e.keydownEvents().subscribe(i=>{(27===i.keyCode&&!yi(i)||38===i.keyCode&&yi(i,"altKey"))&&(this._pendingAutoselectedOption&&(this._updateNativeInputValue(this._valueBeforeAutoSelection??""),this._pendingAutoselectedOption=null),this._closeKeyEventStream.next(),this._resetActiveItem(),i.stopPropagation(),i.preventDefault())}),e.outsidePointerEvents().subscribe()}}return n.\u0275fac=function(e){return new(e||n)(p(Je),p(lr),p(Dn),p(et),p(St),p(pR),p(Xi,8),p(jf,9),p(ft,8),p(zo),p(dR,8))},n.\u0275dir=fe({type:n,inputs:{autocomplete:["matAutocomplete","autocomplete"],position:["matAutocompletePosition","position"],connectedTo:["matAutocompleteConnectedTo","connectedTo"],autocompleteAttribute:["autocomplete","autocompleteAttribute"],autocompleteDisabled:["matAutocompleteDisabled","autocompleteDisabled"]},features:[Rn]}),n})(),ro=(()=>{class n extends Eee{constructor(){super(...arguments),this._aboveClass="mat-autocomplete-panel-above"}}return n.\u0275fac=function(){let t;return function(i){return(t||(t=Pt(n)))(i||n)}}(),n.\u0275dir=fe({type:n,selectors:[["input","matAutocomplete",""],["textarea","matAutocomplete",""]],hostAttrs:[1,"mat-autocomplete-trigger"],hostVars:7,hostBindings:function(e,i){1&e&&W("focusin",function(){return i._handleFocus()})("blur",function(){return i._onTouched()})("input",function(o){return i._handleInput(o)})("keydown",function(o){return i._handleKeydown(o)})("click",function(){return i._handleClick()}),2&e&&rt("autocomplete",i.autocompleteAttribute)("role",i.autocompleteDisabled?null:"combobox")("aria-autocomplete",i.autocompleteDisabled?null:"list")("aria-activedescendant",i.panelOpen&&i.activeOption?i.activeOption.id:null)("aria-expanded",i.autocompleteDisabled?null:i.panelOpen.toString())("aria-owns",i.autocompleteDisabled||!i.panelOpen||null==i.autocomplete?null:i.autocomplete.id)("aria-haspopup",i.autocompleteDisabled?null:"listbox")},exportAs:["matAutocompleteTrigger"],features:[it([wee]),Se]}),n})(),Dee=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=ht({type:n}),n.\u0275inj=dt({providers:[Cee],imports:[Ic,Nf,Lt,$r,Tc,Nf,Lt]}),n})(),fR=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=ht({type:n}),n.\u0275inj=dt({}),n})(),Fee=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=ht({type:n}),n.\u0275inj=dt({imports:[fR,ha,Lt,dd,fR,Lt]}),n})();const mR=new me("CdkAccordion");let Bee=0,jee=(()=>{class n{constructor(e,i,r){this.accordion=e,this._changeDetectorRef=i,this._expansionDispatcher=r,this._openCloseAllSubscription=E.EMPTY,this.closed=new He,this.opened=new He,this.destroyed=new He,this.expandedChange=new He,this.id="cdk-accordion-child-"+Bee++,this._expanded=!1,this._disabled=!1,this._removeUniqueSelectionListener=()=>{},this._removeUniqueSelectionListener=r.listen((o,s)=>{this.accordion&&!this.accordion.multi&&this.accordion.id===s&&this.id!==o&&(this.expanded=!1)}),this.accordion&&(this._openCloseAllSubscription=this._subscribeToOpenCloseAllActions())}get expanded(){return this._expanded}set expanded(e){e=lt(e),this._expanded!==e&&(this._expanded=e,this.expandedChange.emit(e),e?(this.opened.emit(),this._expansionDispatcher.notify(this.id,this.accordion?this.accordion.id:this.id)):this.closed.emit(),this._changeDetectorRef.markForCheck())}get disabled(){return this._disabled}set disabled(e){this._disabled=lt(e)}ngOnDestroy(){this.opened.complete(),this.closed.complete(),this.destroyed.emit(),this.destroyed.complete(),this._removeUniqueSelectionListener(),this._openCloseAllSubscription.unsubscribe()}toggle(){this.disabled||(this.expanded=!this.expanded)}close(){this.disabled||(this.expanded=!1)}open(){this.disabled||(this.expanded=!0)}_subscribeToOpenCloseAllActions(){return this.accordion._openCloseAllActions.subscribe(e=>{this.disabled||(this.expanded=e)})}}return n.\u0275fac=function(e){return new(e||n)(p(mR,12),p(St),p(q1))},n.\u0275dir=fe({type:n,selectors:[["cdk-accordion-item"],["","cdkAccordionItem",""]],inputs:{expanded:"expanded",disabled:"disabled"},outputs:{closed:"closed",opened:"opened",destroyed:"destroyed",expandedChange:"expandedChange"},exportAs:["cdkAccordionItem"],features:[it([{provide:mR,useValue:void 0}])]}),n})(),Hee=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=ht({type:n}),n.\u0275inj=dt({}),n})();const Vee=["body"];function Uee(n,t){}const qee=[[["mat-expansion-panel-header"]],"*",[["mat-action-row"]]],zee=["mat-expansion-panel-header","*","mat-action-row"];function Gee(n,t){1&n&&be(0,"span",2),2&n&&v("@indicatorRotate",C()._getExpandedState())}const Wee=[[["mat-panel-title"]],[["mat-panel-description"]],"*"],$ee=["mat-panel-title","mat-panel-description","*"],gR=new me("MAT_ACCORDION"),_R="225ms cubic-bezier(0.4,0.0,0.2,1)",vR={indicatorRotate:So("indicatorRotate",[li("collapsed, void",qt({transform:"rotate(0deg)"})),li("expanded",qt({transform:"rotate(180deg)"})),bi("expanded <=> collapsed, void => collapsed",Oi(_R))]),bodyExpansion:So("bodyExpansion",[li("collapsed, void",qt({height:"0px",visibility:"hidden"})),li("expanded",qt({height:"*",visibility:"visible"})),bi("expanded <=> collapsed, void => collapsed",Oi(_R))])},yR=new me("MAT_EXPANSION_PANEL");let Kee=(()=>{class n{constructor(e,i){this._template=e,this._expansionPanel=i}}return n.\u0275fac=function(e){return new(e||n)(p(yn),p(yR,8))},n.\u0275dir=fe({type:n,selectors:[["ng-template","matExpansionPanelContent",""]]}),n})(),Yee=0;const bR=new me("MAT_EXPANSION_PANEL_DEFAULT_OPTIONS");let gw=(()=>{class n extends jee{constructor(e,i,r,o,s,a,l){super(e,i,r),this._viewContainerRef=o,this._animationMode=a,this._hideToggle=!1,this.afterExpand=new He,this.afterCollapse=new He,this._inputChanges=new N,this._headerId="mat-expansion-panel-header-"+Yee++,this._bodyAnimationDone=new N,this.accordion=e,this._document=s,this._bodyAnimationDone.pipe(bf((c,u)=>c.fromState===u.fromState&&c.toState===u.toState)).subscribe(c=>{"void"!==c.fromState&&("expanded"===c.toState?this.afterExpand.emit():"collapsed"===c.toState&&this.afterCollapse.emit())}),l&&(this.hideToggle=l.hideToggle)}get hideToggle(){return this._hideToggle||this.accordion&&this.accordion.hideToggle}set hideToggle(e){this._hideToggle=lt(e)}get togglePosition(){return this._togglePosition||this.accordion&&this.accordion.togglePosition}set togglePosition(e){this._togglePosition=e}_hasSpacing(){return!!this.accordion&&this.expanded&&"default"===this.accordion.displayMode}_getExpandedState(){return this.expanded?"expanded":"collapsed"}toggle(){this.expanded=!this.expanded}close(){this.expanded=!1}open(){this.expanded=!0}ngAfterContentInit(){this._lazyContent&&this._lazyContent._expansionPanel===this&&this.opened.pipe(ni(null),Tn(()=>this.expanded&&!this._portal),sn(1)).subscribe(()=>{this._portal=new Ms(this._lazyContent._template,this._viewContainerRef)})}ngOnChanges(e){this._inputChanges.next(e)}ngOnDestroy(){super.ngOnDestroy(),this._bodyAnimationDone.complete(),this._inputChanges.complete()}_containsFocus(){if(this._body){const e=this._document.activeElement,i=this._body.nativeElement;return e===i||i.contains(e)}return!1}}return n.\u0275fac=function(e){return new(e||n)(p(gR,12),p(St),p(q1),p(Dn),p(ft),p(qn,8),p(bR,8))},n.\u0275cmp=Ue({type:n,selectors:[["mat-expansion-panel"]],contentQueries:function(e,i,r){if(1&e&&jt(r,Kee,5),2&e){let o;ce(o=ue())&&(i._lazyContent=o.first)}},viewQuery:function(e,i){if(1&e&&De(Vee,5),2&e){let r;ce(r=ue())&&(i._body=r.first)}},hostAttrs:[1,"mat-expansion-panel"],hostVars:6,hostBindings:function(e,i){2&e&&bt("mat-expanded",i.expanded)("_mat-animation-noopable","NoopAnimations"===i._animationMode)("mat-expansion-panel-spacing",i._hasSpacing())},inputs:{disabled:"disabled",expanded:"expanded",hideToggle:"hideToggle",togglePosition:"togglePosition"},outputs:{opened:"opened",closed:"closed",expandedChange:"expandedChange",afterExpand:"afterExpand",afterCollapse:"afterCollapse"},exportAs:["matExpansionPanel"],features:[it([{provide:gR,useValue:void 0},{provide:yR,useExisting:n}]),Se,Rn],ngContentSelectors:zee,decls:7,vars:4,consts:[["role","region",1,"mat-expansion-panel-content",3,"id"],["body",""],[1,"mat-expansion-panel-body"],[3,"cdkPortalOutlet"]],template:function(e,i){1&e&&(Pn(qee),Bt(0),g(1,"div",0,1),W("@bodyExpansion.done",function(o){return i._bodyAnimationDone.next(o)}),g(3,"div",2),Bt(4,1),H(5,Uee,0,0,"ng-template",3),_(),Bt(6,2),_()),2&e&&(f(1),v("@bodyExpansion",i._getExpandedState())("id",i.id),rt("aria-labelledby",i._headerId),f(4),v("cdkPortalOutlet",i._portal))},dependencies:[ks],styles:['.mat-expansion-panel{box-sizing:content-box;display:block;margin:0;border-radius:4px;overflow:hidden;transition:margin 225ms cubic-bezier(0.4, 0, 0.2, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);position:relative}.mat-accordion .mat-expansion-panel:not(.mat-expanded),.mat-accordion .mat-expansion-panel:not(.mat-expansion-panel-spacing){border-radius:0}.mat-accordion .mat-expansion-panel:first-of-type{border-top-right-radius:4px;border-top-left-radius:4px}.mat-accordion .mat-expansion-panel:last-of-type{border-bottom-right-radius:4px;border-bottom-left-radius:4px}.cdk-high-contrast-active .mat-expansion-panel{outline:solid 1px}.mat-expansion-panel.ng-animate-disabled,.ng-animate-disabled .mat-expansion-panel,.mat-expansion-panel._mat-animation-noopable{transition:none}.mat-expansion-panel-content{display:flex;flex-direction:column;overflow:visible}.mat-expansion-panel-content[style*="visibility: hidden"] *{visibility:hidden !important}.mat-expansion-panel-body{padding:0 24px 16px}.mat-expansion-panel-spacing{margin:16px 0}.mat-accordion>.mat-expansion-panel-spacing:first-child,.mat-accordion>*:first-child:not(.mat-expansion-panel) .mat-expansion-panel-spacing{margin-top:0}.mat-accordion>.mat-expansion-panel-spacing:last-child,.mat-accordion>*:last-child:not(.mat-expansion-panel) .mat-expansion-panel-spacing{margin-bottom:0}.mat-action-row{border-top-style:solid;border-top-width:1px;display:flex;flex-direction:row;justify-content:flex-end;padding:16px 8px 16px 24px}.mat-action-row .mat-button-base,.mat-action-row .mat-mdc-button-base{margin-left:8px}[dir=rtl] .mat-action-row .mat-button-base,[dir=rtl] .mat-action-row .mat-mdc-button-base{margin-left:0;margin-right:8px}'],encapsulation:2,data:{animation:[vR.bodyExpansion]},changeDetection:0}),n})();class Qee{}const Jee=md(Qee);let CR=(()=>{class n extends Jee{constructor(e,i,r,o,s,a,l){super(),this.panel=e,this._element=i,this._focusMonitor=r,this._changeDetectorRef=o,this._animationMode=a,this._parentChangeSubscription=E.EMPTY;const c=e.accordion?e.accordion._stateChanges.pipe(Tn(u=>!(!u.hideToggle&&!u.togglePosition))):Ss;this.tabIndex=parseInt(l||"")||0,this._parentChangeSubscription=On(e.opened,e.closed,c,e._inputChanges.pipe(Tn(u=>!!(u.hideToggle||u.disabled||u.togglePosition)))).subscribe(()=>this._changeDetectorRef.markForCheck()),e.closed.pipe(Tn(()=>e._containsFocus())).subscribe(()=>r.focusVia(i,"program")),s&&(this.expandedHeight=s.expandedHeight,this.collapsedHeight=s.collapsedHeight)}get disabled(){return this.panel.disabled}_toggle(){this.disabled||this.panel.toggle()}_isExpanded(){return this.panel.expanded}_getExpandedState(){return this.panel._getExpandedState()}_getPanelId(){return this.panel.id}_getTogglePosition(){return this.panel.togglePosition}_showToggle(){return!this.panel.hideToggle&&!this.panel.disabled}_getHeaderHeight(){const e=this._isExpanded();return e&&this.expandedHeight?this.expandedHeight:!e&&this.collapsedHeight?this.collapsedHeight:null}_keydown(e){switch(e.keyCode){case 32:case 13:yi(e)||(e.preventDefault(),this._toggle());break;default:return void(this.panel.accordion&&this.panel.accordion._handleHeaderKeydown(e))}}focus(e,i){e?this._focusMonitor.focusVia(this._element,e,i):this._element.nativeElement.focus(i)}ngAfterViewInit(){this._focusMonitor.monitor(this._element).subscribe(e=>{e&&this.panel.accordion&&this.panel.accordion._handleHeaderFocus(this)})}ngOnDestroy(){this._parentChangeSubscription.unsubscribe(),this._focusMonitor.stopMonitoring(this._element)}}return n.\u0275fac=function(e){return new(e||n)(p(gw,1),p(Je),p(Do),p(St),p(bR,8),p(qn,8),Vr("tabindex"))},n.\u0275cmp=Ue({type:n,selectors:[["mat-expansion-panel-header"]],hostAttrs:["role","button",1,"mat-expansion-panel-header","mat-focus-indicator"],hostVars:15,hostBindings:function(e,i){1&e&&W("click",function(){return i._toggle()})("keydown",function(o){return i._keydown(o)}),2&e&&(rt("id",i.panel._headerId)("tabindex",i.tabIndex)("aria-controls",i._getPanelId())("aria-expanded",i._isExpanded())("aria-disabled",i.panel.disabled),qr("height",i._getHeaderHeight()),bt("mat-expanded",i._isExpanded())("mat-expansion-toggle-indicator-after","after"===i._getTogglePosition())("mat-expansion-toggle-indicator-before","before"===i._getTogglePosition())("_mat-animation-noopable","NoopAnimations"===i._animationMode))},inputs:{tabIndex:"tabIndex",expandedHeight:"expandedHeight",collapsedHeight:"collapsedHeight"},features:[Se],ngContentSelectors:$ee,decls:5,vars:3,consts:[[1,"mat-content"],["class","mat-expansion-indicator",4,"ngIf"],[1,"mat-expansion-indicator"]],template:function(e,i){1&e&&(Pn(Wee),g(0,"span",0),Bt(1),Bt(2,1),Bt(3,2),_(),H(4,Gee,1,1,"span",1)),2&e&&(bt("mat-content-hide-toggle",!i._showToggle()),f(4),v("ngIf",i._showToggle()))},dependencies:[pn],styles:['.mat-expansion-panel-header{display:flex;flex-direction:row;align-items:center;padding:0 24px;border-radius:inherit;transition:height 225ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-expansion-panel-header._mat-animation-noopable{transition:none}.mat-expansion-panel-header:focus,.mat-expansion-panel-header:hover{outline:none}.mat-expansion-panel-header.mat-expanded:focus,.mat-expansion-panel-header.mat-expanded:hover{background:inherit}.mat-expansion-panel-header:not([aria-disabled=true]){cursor:pointer}.mat-expansion-panel-header.mat-expansion-toggle-indicator-before{flex-direction:row-reverse}.mat-expansion-panel-header.mat-expansion-toggle-indicator-before .mat-expansion-indicator{margin:0 16px 0 0}[dir=rtl] .mat-expansion-panel-header.mat-expansion-toggle-indicator-before .mat-expansion-indicator{margin:0 0 0 16px}.mat-content{display:flex;flex:1;flex-direction:row;overflow:hidden}.mat-content.mat-content-hide-toggle{margin-right:8px}[dir=rtl] .mat-content.mat-content-hide-toggle{margin-right:0;margin-left:8px}.mat-expansion-toggle-indicator-before .mat-content.mat-content-hide-toggle{margin-left:24px;margin-right:0}[dir=rtl] .mat-expansion-toggle-indicator-before .mat-content.mat-content-hide-toggle{margin-right:24px;margin-left:0}.mat-expansion-panel-header-title,.mat-expansion-panel-header-description{display:flex;flex-grow:1;flex-basis:0;margin-right:16px;align-items:center}[dir=rtl] .mat-expansion-panel-header-title,[dir=rtl] .mat-expansion-panel-header-description{margin-right:0;margin-left:16px}.mat-expansion-panel-header-description{flex-grow:2}.mat-expansion-indicator::after{border-style:solid;border-width:0 2px 2px 0;content:"";display:inline-block;padding:3px;transform:rotate(45deg);vertical-align:middle}.cdk-high-contrast-active .mat-expansion-panel-content{border-top:1px solid;border-top-left-radius:0;border-top-right-radius:0}'],encapsulation:2,data:{animation:[vR.indicatorRotate]},changeDetection:0}),n})(),wR=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=fe({type:n,selectors:[["mat-panel-title"]],hostAttrs:[1,"mat-expansion-panel-header-title"]}),n})(),Zee=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=ht({type:n}),n.\u0275inj=dt({imports:[$r,Lt,Hee,Xa]}),n})();const Xee=["*",[["mat-card-footer"]]],ete=["*","mat-card-footer"],tte=[[["","mat-card-avatar",""],["","matCardAvatar",""]],[["mat-card-title"],["mat-card-subtitle"],["","mat-card-title",""],["","mat-card-subtitle",""],["","matCardTitle",""],["","matCardSubtitle",""]],"*"],nte=["[mat-card-avatar], [matCardAvatar]","mat-card-title, mat-card-subtitle,\n [mat-card-title], [mat-card-subtitle],\n [matCardTitle], [matCardSubtitle]","*"];let mh=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=fe({type:n,selectors:[["mat-card-content"],["","mat-card-content",""],["","matCardContent",""]],hostAttrs:[1,"mat-card-content"]}),n})(),gh=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=fe({type:n,selectors:[["mat-card-title"],["","mat-card-title",""],["","matCardTitle",""]],hostAttrs:[1,"mat-card-title"]}),n})(),hg=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=fe({type:n,selectors:[["mat-card-footer"]],hostAttrs:[1,"mat-card-footer"]}),n})(),_h=(()=>{class n{constructor(e){this._animationMode=e}}return n.\u0275fac=function(e){return new(e||n)(p(qn,8))},n.\u0275cmp=Ue({type:n,selectors:[["mat-card"]],hostAttrs:[1,"mat-card","mat-focus-indicator"],hostVars:2,hostBindings:function(e,i){2&e&&bt("_mat-animation-noopable","NoopAnimations"===i._animationMode)},exportAs:["matCard"],ngContentSelectors:ete,decls:2,vars:0,template:function(e,i){1&e&&(Pn(Xee),Bt(0),Bt(1,1))},styles:[".mat-card{transition:box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);display:block;position:relative;padding:16px;border-radius:4px}.mat-card._mat-animation-noopable{transition:none !important;animation:none !important}.mat-card>.mat-divider-horizontal{position:absolute;left:0;width:100%}[dir=rtl] .mat-card>.mat-divider-horizontal{left:auto;right:0}.mat-card>.mat-divider-horizontal.mat-divider-inset{position:static;margin:0}[dir=rtl] .mat-card>.mat-divider-horizontal.mat-divider-inset{margin-right:0}.cdk-high-contrast-active .mat-card{outline:solid 1px}.mat-card-actions,.mat-card-subtitle,.mat-card-content{display:block;margin-bottom:16px}.mat-card-title{display:block;margin-bottom:8px}.mat-card-actions{margin-left:-8px;margin-right:-8px;padding:8px 0}.mat-card-actions-align-end{display:flex;justify-content:flex-end}.mat-card-image{width:calc(100% + 32px);margin:0 -16px 16px -16px;display:block;overflow:hidden}.mat-card-image img{width:100%}.mat-card-footer{display:block;margin:0 -16px -16px -16px}.mat-card-actions .mat-button,.mat-card-actions .mat-raised-button,.mat-card-actions .mat-stroked-button{margin:0 8px}.mat-card-header{display:flex;flex-direction:row}.mat-card-header .mat-card-title{margin-bottom:12px}.mat-card-header-text{margin:0 16px}.mat-card-avatar{height:40px;width:40px;border-radius:50%;flex-shrink:0;object-fit:cover}.mat-card-title-group{display:flex;justify-content:space-between}.mat-card-sm-image{width:80px;height:80px}.mat-card-md-image{width:112px;height:112px}.mat-card-lg-image{width:152px;height:152px}.mat-card-xl-image{width:240px;height:240px;margin:-8px}.mat-card-title-group>.mat-card-xl-image{margin:-8px 0 8px}@media(max-width: 599px){.mat-card-title-group{margin:0}.mat-card-xl-image{margin-left:0;margin-right:0}}.mat-card>:first-child,.mat-card-content>:first-child{margin-top:0}.mat-card>:last-child:not(.mat-card-footer),.mat-card-content>:last-child:not(.mat-card-footer){margin-bottom:0}.mat-card-image:first-child{margin-top:-16px;border-top-left-radius:inherit;border-top-right-radius:inherit}.mat-card>.mat-card-actions:last-child{margin-bottom:-8px;padding-bottom:0}.mat-card-actions:not(.mat-card-actions-align-end) .mat-button:first-child,.mat-card-actions:not(.mat-card-actions-align-end) .mat-raised-button:first-child,.mat-card-actions:not(.mat-card-actions-align-end) .mat-stroked-button:first-child{margin-left:0;margin-right:0}.mat-card-actions-align-end .mat-button:last-child,.mat-card-actions-align-end .mat-raised-button:last-child,.mat-card-actions-align-end .mat-stroked-button:last-child{margin-left:0;margin-right:0}.mat-card-title:not(:first-child),.mat-card-subtitle:not(:first-child){margin-top:-4px}.mat-card-header .mat-card-subtitle:not(:first-child){margin-top:-8px}.mat-card>.mat-card-xl-image:first-child{margin-top:-8px}.mat-card>.mat-card-xl-image:last-child{margin-bottom:-8px}"],encapsulation:2,changeDetection:0}),n})(),ite=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=Ue({type:n,selectors:[["mat-card-header"]],hostAttrs:[1,"mat-card-header"],ngContentSelectors:nte,decls:4,vars:0,consts:[[1,"mat-card-header-text"]],template:function(e,i){1&e&&(Pn(tte),Bt(0),g(1,"div",0),Bt(2,1),_(),Bt(3,2))},encapsulation:2,changeDetection:0}),n})(),rte=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=ht({type:n}),n.\u0275inj=dt({imports:[Lt,Lt]}),n})(),ote=0;const ste=Rs(class{}),ER="mat-badge-content";let ate=(()=>{class n extends ste{constructor(e,i,r,o,s){super(),this._ngZone=e,this._elementRef=i,this._ariaDescriber=r,this._renderer=o,this._animationMode=s,this._color="primary",this._overlap=!0,this.position="above after",this.size="medium",this._id=ote++,this._isInitialized=!1}get color(){return this._color}set color(e){this._setColor(e),this._color=e}get overlap(){return this._overlap}set overlap(e){this._overlap=lt(e)}get content(){return this._content}set content(e){this._updateRenderedContent(e)}get description(){return this._description}set description(e){this._updateHostAriaDescription(e)}get hidden(){return this._hidden}set hidden(e){this._hidden=lt(e)}isAbove(){return-1===this.position.indexOf("below")}isAfter(){return-1===this.position.indexOf("before")}getBadgeElement(){return this._badgeElement}ngOnInit(){this._clearExistingBadges(),this.content&&!this._badgeElement&&(this._badgeElement=this._createBadgeElement(),this._updateRenderedContent(this.content)),this._isInitialized=!0}ngOnDestroy(){this._renderer.destroyNode&&this._renderer.destroyNode(this._badgeElement),this._ariaDescriber.removeDescription(this._elementRef.nativeElement,this.description)}_createBadgeElement(){const e=this._renderer.createElement("span"),i="mat-badge-active";return e.setAttribute("id",`mat-badge-content-${this._id}`),e.setAttribute("aria-hidden","true"),e.classList.add(ER),"NoopAnimations"===this._animationMode&&e.classList.add("_mat-animation-noopable"),this._elementRef.nativeElement.appendChild(e),"function"==typeof requestAnimationFrame&&"NoopAnimations"!==this._animationMode?this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>{e.classList.add(i)})}):e.classList.add(i),e}_updateRenderedContent(e){const i=`${e??""}`.trim();this._isInitialized&&i&&!this._badgeElement&&(this._badgeElement=this._createBadgeElement()),this._badgeElement&&(this._badgeElement.textContent=i),this._content=i}_updateHostAriaDescription(e){this._ariaDescriber.removeDescription(this._elementRef.nativeElement,this.description),e&&this._ariaDescriber.describe(this._elementRef.nativeElement,e),this._description=e}_setColor(e){const i=this._elementRef.nativeElement.classList;i.remove(`mat-badge-${this._color}`),e&&i.add(`mat-badge-${e}`)}_clearExistingBadges(){const e=this._elementRef.nativeElement.querySelectorAll(`:scope > .${ER}`);for(const i of Array.from(e))i!==this._badgeElement&&i.remove()}}return n.\u0275fac=function(e){return new(e||n)(p(et),p(Je),p(l8),p(ho),p(qn,8))},n.\u0275dir=fe({type:n,selectors:[["","matBadge",""]],hostAttrs:[1,"mat-badge"],hostVars:20,hostBindings:function(e,i){2&e&&bt("mat-badge-overlap",i.overlap)("mat-badge-above",i.isAbove())("mat-badge-below",!i.isAbove())("mat-badge-before",!i.isAfter())("mat-badge-after",i.isAfter())("mat-badge-small","small"===i.size)("mat-badge-medium","medium"===i.size)("mat-badge-large","large"===i.size)("mat-badge-hidden",i.hidden||!i.content)("mat-badge-disabled",i.disabled)},inputs:{disabled:["matBadgeDisabled","disabled"],color:["matBadgeColor","color"],overlap:["matBadgeOverlap","overlap"],position:["matBadgePosition","position"],content:["matBadge","content"],description:["matBadgeDescription","description"],size:["matBadgeSize","size"],hidden:["matBadgeHidden","hidden"]},features:[Se]}),n})(),lte=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=ht({type:n}),n.\u0275inj=dt({imports:[hb,Lt,Lt]}),n})();const cte=["input"],ute=["label"],dte=function(n){return{enterDuration:n}},hte=["*"],pte=new me("mat-checkbox-default-options",{providedIn:"root",factory:DR});function DR(){return{color:"accent",clickAction:"check-indeterminate"}}let fte=0;const SR=DR(),mte={provide:or,useExisting:Xt(()=>pg),multi:!0};class AR{}const gte=md(da(Go(Rs(class{constructor(n){this._elementRef=n}}))));let _te=(()=>{class n extends gte{constructor(e,i,r,o,s,a,l){super(i),this._changeDetectorRef=r,this._ngZone=o,this._animationMode=a,this._options=l,this.ariaLabel="",this.ariaLabelledby=null,this.labelPosition="after",this.name=null,this.change=new He,this.indeterminateChange=new He,this._onTouched=()=>{},this._currentAnimationClass="",this._currentCheckState=0,this._controlValueAccessorChangeFn=()=>{},this._checked=!1,this._disabled=!1,this._indeterminate=!1,this._options=this._options||SR,this.color=this.defaultColor=this._options.color||SR.color,this.tabIndex=parseInt(s)||0,this.id=this._uniqueId=`${e}${++fte}`}get inputId(){return`${this.id||this._uniqueId}-input`}get required(){return this._required}set required(e){this._required=lt(e)}ngAfterViewInit(){this._syncIndeterminate(this._indeterminate)}get checked(){return this._checked}set checked(e){const i=lt(e);i!=this.checked&&(this._checked=i,this._changeDetectorRef.markForCheck())}get disabled(){return this._disabled}set disabled(e){const i=lt(e);i!==this.disabled&&(this._disabled=i,this._changeDetectorRef.markForCheck())}get indeterminate(){return this._indeterminate}set indeterminate(e){const i=e!=this._indeterminate;this._indeterminate=lt(e),i&&(this._transitionCheckState(this._indeterminate?3:this.checked?1:2),this.indeterminateChange.emit(this._indeterminate)),this._syncIndeterminate(this._indeterminate)}_isRippleDisabled(){return this.disableRipple||this.disabled}_onLabelTextChange(){this._changeDetectorRef.detectChanges()}writeValue(e){this.checked=!!e}registerOnChange(e){this._controlValueAccessorChangeFn=e}registerOnTouched(e){this._onTouched=e}setDisabledState(e){this.disabled=e}_getAriaChecked(){return this.checked?"true":this.indeterminate?"mixed":"false"}_transitionCheckState(e){let i=this._currentCheckState,r=this._getAnimationTargetElement();if(i!==e&&r&&(this._currentAnimationClass&&r.classList.remove(this._currentAnimationClass),this._currentAnimationClass=this._getAnimationClassForCheckStateTransition(i,e),this._currentCheckState=e,this._currentAnimationClass.length>0)){r.classList.add(this._currentAnimationClass);const o=this._currentAnimationClass;this._ngZone.runOutsideAngular(()=>{setTimeout(()=>{r.classList.remove(o)},1e3)})}}_emitChangeEvent(){this._controlValueAccessorChangeFn(this.checked),this.change.emit(this._createChangeEvent(this.checked)),this._inputElement&&(this._inputElement.nativeElement.checked=this.checked)}toggle(){this.checked=!this.checked,this._controlValueAccessorChangeFn(this.checked)}_handleInputClick(){const e=this._options?.clickAction;this.disabled||"noop"===e?!this.disabled&&"noop"===e&&(this._inputElement.nativeElement.checked=this.checked,this._inputElement.nativeElement.indeterminate=this.indeterminate):(this.indeterminate&&"check"!==e&&Promise.resolve().then(()=>{this._indeterminate=!1,this.indeterminateChange.emit(this._indeterminate)}),this._checked=!this._checked,this._transitionCheckState(this._checked?1:2),this._emitChangeEvent())}_onInteractionEvent(e){e.stopPropagation()}_onBlur(){Promise.resolve().then(()=>{this._onTouched(),this._changeDetectorRef.markForCheck()})}_getAnimationClassForCheckStateTransition(e,i){if("NoopAnimations"===this._animationMode)return"";switch(e){case 0:if(1===i)return this._animationClasses.uncheckedToChecked;if(3==i)return this._checked?this._animationClasses.checkedToIndeterminate:this._animationClasses.uncheckedToIndeterminate;break;case 2:return 1===i?this._animationClasses.uncheckedToChecked:this._animationClasses.uncheckedToIndeterminate;case 1:return 2===i?this._animationClasses.checkedToUnchecked:this._animationClasses.checkedToIndeterminate;case 3:return 1===i?this._animationClasses.indeterminateToChecked:this._animationClasses.indeterminateToUnchecked}return""}_syncIndeterminate(e){const i=this._inputElement;i&&(i.nativeElement.indeterminate=e)}}return n.\u0275fac=function(e){Yl()},n.\u0275dir=fe({type:n,viewQuery:function(e,i){if(1&e&&(De(cte,5),De(ute,5),De(xr,5)),2&e){let r;ce(r=ue())&&(i._inputElement=r.first),ce(r=ue())&&(i._labelElement=r.first),ce(r=ue())&&(i.ripple=r.first)}},inputs:{ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],ariaDescribedby:["aria-describedby","ariaDescribedby"],id:"id",required:"required",labelPosition:"labelPosition",name:"name",value:"value",checked:"checked",disabled:"disabled",indeterminate:"indeterminate"},outputs:{change:"change",indeterminateChange:"indeterminateChange"},features:[Se]}),n})(),pg=(()=>{class n extends _te{constructor(e,i,r,o,s,a,l){super("mat-checkbox-",e,i,o,s,a,l),this._focusMonitor=r,this._animationClasses={uncheckedToChecked:"mat-checkbox-anim-unchecked-checked",uncheckedToIndeterminate:"mat-checkbox-anim-unchecked-indeterminate",checkedToUnchecked:"mat-checkbox-anim-checked-unchecked",checkedToIndeterminate:"mat-checkbox-anim-checked-indeterminate",indeterminateToChecked:"mat-checkbox-anim-indeterminate-checked",indeterminateToUnchecked:"mat-checkbox-anim-indeterminate-unchecked"}}_createChangeEvent(e){const i=new AR;return i.source=this,i.checked=e,i}_getAnimationTargetElement(){return this._elementRef.nativeElement}ngAfterViewInit(){super.ngAfterViewInit(),this._focusMonitor.monitor(this._elementRef,!0).subscribe(e=>{e||this._onBlur()})}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef)}_onInputClick(e){e.stopPropagation(),super._handleInputClick()}focus(e,i){e?this._focusMonitor.focusVia(this._inputElement,e,i):this._inputElement.nativeElement.focus(i)}}return n.\u0275fac=function(e){return new(e||n)(p(Je),p(St),p(Do),p(et),Vr("tabindex"),p(qn,8),p(pte,8))},n.\u0275cmp=Ue({type:n,selectors:[["mat-checkbox"]],hostAttrs:[1,"mat-checkbox"],hostVars:14,hostBindings:function(e,i){2&e&&(Ho("id",i.id),rt("tabindex",null)("aria-label",null)("aria-labelledby",null),bt("mat-checkbox-indeterminate",i.indeterminate)("mat-checkbox-checked",i.checked)("mat-checkbox-disabled",i.disabled)("mat-checkbox-label-before","before"==i.labelPosition)("_mat-animation-noopable","NoopAnimations"===i._animationMode))},inputs:{disableRipple:"disableRipple",color:"color",tabIndex:"tabIndex"},exportAs:["matCheckbox"],features:[it([mte]),Se],ngContentSelectors:hte,decls:17,vars:21,consts:[[1,"mat-checkbox-layout"],["label",""],[1,"mat-checkbox-inner-container"],["type","checkbox",1,"mat-checkbox-input","cdk-visually-hidden",3,"id","required","checked","disabled","tabIndex","change","click"],["input",""],["matRipple","",1,"mat-checkbox-ripple","mat-focus-indicator",3,"matRippleTrigger","matRippleDisabled","matRippleRadius","matRippleCentered","matRippleAnimation"],[1,"mat-ripple-element","mat-checkbox-persistent-ripple"],[1,"mat-checkbox-frame"],[1,"mat-checkbox-background"],["version","1.1","focusable","false","viewBox","0 0 24 24","aria-hidden","true",1,"mat-checkbox-checkmark"],["fill","none","stroke","white","d","M4.1,12.7 9,17.6 20.3,6.3",1,"mat-checkbox-checkmark-path"],[1,"mat-checkbox-mixedmark"],[1,"mat-checkbox-label",3,"cdkObserveContent"],["checkboxLabel",""],[2,"display","none"]],template:function(e,i){if(1&e&&(Pn(),g(0,"label",0,1)(2,"span",2)(3,"input",3,4),W("change",function(o){return i._onInteractionEvent(o)})("click",function(o){return i._onInputClick(o)}),_(),g(5,"span",5),be(6,"span",6),_(),be(7,"span",7),g(8,"span",8),Rl(),g(9,"svg",9),be(10,"path",10),_(),function Zw(){!function oP(){It.lFrame.currentNamespace=null}()}(),be(11,"span",11),_()(),g(12,"span",12,13),W("cdkObserveContent",function(){return i._onLabelTextChange()}),g(14,"span",14),j(15,"\xa0"),_(),Bt(16),_()()),2&e){const r=Yt(1),o=Yt(13);rt("for",i.inputId),f(2),bt("mat-checkbox-inner-container-no-side-margin",!o.textContent||!o.textContent.trim()),f(1),v("id",i.inputId)("required",i.required)("checked",i.checked)("disabled",i.disabled)("tabIndex",i.tabIndex),rt("value",i.value)("name",i.name)("aria-label",i.ariaLabel||null)("aria-labelledby",i.ariaLabelledby)("aria-checked",i._getAriaChecked())("aria-describedby",i.ariaDescribedby),f(2),v("matRippleTrigger",r)("matRippleDisabled",i._isRippleDisabled())("matRippleRadius",20)("matRippleCentered",!0)("matRippleAnimation",Wn(19,dte,"NoopAnimations"===i._animationMode?0:150))}},dependencies:[xr,wf],styles:['@keyframes mat-checkbox-fade-in-background{0%{opacity:0}50%{opacity:1}}@keyframes mat-checkbox-fade-out-background{0%,50%{opacity:1}100%{opacity:0}}@keyframes mat-checkbox-unchecked-checked-checkmark-path{0%,50%{stroke-dashoffset:22.910259}50%{animation-timing-function:cubic-bezier(0, 0, 0.2, 0.1)}100%{stroke-dashoffset:0}}@keyframes mat-checkbox-unchecked-indeterminate-mixedmark{0%,68.2%{transform:scaleX(0)}68.2%{animation-timing-function:cubic-bezier(0, 0, 0, 1)}100%{transform:scaleX(1)}}@keyframes mat-checkbox-checked-unchecked-checkmark-path{from{animation-timing-function:cubic-bezier(0.4, 0, 1, 1);stroke-dashoffset:0}to{stroke-dashoffset:-22.910259}}@keyframes mat-checkbox-checked-indeterminate-checkmark{from{animation-timing-function:cubic-bezier(0, 0, 0.2, 0.1);opacity:1;transform:rotate(0deg)}to{opacity:0;transform:rotate(45deg)}}@keyframes mat-checkbox-indeterminate-checked-checkmark{from{animation-timing-function:cubic-bezier(0.14, 0, 0, 1);opacity:0;transform:rotate(45deg)}to{opacity:1;transform:rotate(360deg)}}@keyframes mat-checkbox-checked-indeterminate-mixedmark{from{animation-timing-function:cubic-bezier(0, 0, 0.2, 0.1);opacity:0;transform:rotate(-45deg)}to{opacity:1;transform:rotate(0deg)}}@keyframes mat-checkbox-indeterminate-checked-mixedmark{from{animation-timing-function:cubic-bezier(0.14, 0, 0, 1);opacity:1;transform:rotate(0deg)}to{opacity:0;transform:rotate(315deg)}}@keyframes mat-checkbox-indeterminate-unchecked-mixedmark{0%{animation-timing-function:linear;opacity:1;transform:scaleX(1)}32.8%,100%{opacity:0;transform:scaleX(0)}}.mat-checkbox-background,.mat-checkbox-frame{top:0;left:0;right:0;bottom:0;position:absolute;border-radius:2px;box-sizing:border-box;pointer-events:none}.mat-checkbox{display:inline-block;transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);cursor:pointer;-webkit-tap-highlight-color:rgba(0,0,0,0);position:relative}.mat-checkbox._mat-animation-noopable{transition:none !important;animation:none !important}.mat-checkbox .mat-ripple-element:not(.mat-checkbox-persistent-ripple){opacity:.16}.mat-checkbox .mat-checkbox-ripple{position:absolute;left:calc(50% - 20px);top:calc(50% - 20px);height:40px;width:40px;z-index:1;pointer-events:none}.mat-checkbox-layout{-webkit-user-select:none;user-select:none;cursor:inherit;align-items:baseline;vertical-align:middle;display:inline-flex;white-space:nowrap}.mat-checkbox-label{-webkit-user-select:auto;user-select:auto}.mat-checkbox-inner-container{display:inline-block;height:16px;line-height:0;margin:auto;margin-right:8px;order:0;position:relative;vertical-align:middle;white-space:nowrap;width:16px;flex-shrink:0}[dir=rtl] .mat-checkbox-inner-container{margin-left:8px;margin-right:auto}.mat-checkbox-inner-container-no-side-margin{margin-left:0;margin-right:0}.mat-checkbox-frame{background-color:rgba(0,0,0,0);transition:border-color 90ms cubic-bezier(0, 0, 0.2, 0.1);border-width:2px;border-style:solid}._mat-animation-noopable .mat-checkbox-frame{transition:none}.mat-checkbox-background{align-items:center;display:inline-flex;justify-content:center;transition:background-color 90ms cubic-bezier(0, 0, 0.2, 0.1),opacity 90ms cubic-bezier(0, 0, 0.2, 0.1);-webkit-print-color-adjust:exact;color-adjust:exact}._mat-animation-noopable .mat-checkbox-background{transition:none}.cdk-high-contrast-active .mat-checkbox .mat-checkbox-background{background:none}.mat-checkbox-persistent-ripple{display:block;width:100%;height:100%;transform:none}.mat-checkbox-inner-container:hover .mat-checkbox-persistent-ripple{opacity:.04}.mat-checkbox.cdk-keyboard-focused .mat-checkbox-persistent-ripple{opacity:.12}.mat-checkbox-persistent-ripple,.mat-checkbox.mat-checkbox-disabled .mat-checkbox-inner-container:hover .mat-checkbox-persistent-ripple{opacity:0}@media(hover: none){.mat-checkbox-inner-container:hover .mat-checkbox-persistent-ripple{display:none}}.mat-checkbox-checkmark{top:0;left:0;right:0;bottom:0;position:absolute;width:100%}.mat-checkbox-checkmark-path{stroke-dashoffset:22.910259;stroke-dasharray:22.910259;stroke-width:2.1333333333px}.cdk-high-contrast-black-on-white .mat-checkbox-checkmark-path{stroke:#000 !important}.mat-checkbox-mixedmark{width:calc(100% - 6px);height:2px;opacity:0;transform:scaleX(0) rotate(0deg);border-radius:2px}.cdk-high-contrast-active .mat-checkbox-mixedmark{height:0;border-top:solid 2px;margin-top:2px}.mat-checkbox-label-before .mat-checkbox-inner-container{order:1;margin-left:8px;margin-right:auto}[dir=rtl] .mat-checkbox-label-before .mat-checkbox-inner-container{margin-left:auto;margin-right:8px}.mat-checkbox-checked .mat-checkbox-checkmark{opacity:1}.mat-checkbox-checked .mat-checkbox-checkmark-path{stroke-dashoffset:0}.mat-checkbox-checked .mat-checkbox-mixedmark{transform:scaleX(1) rotate(-45deg)}.mat-checkbox-indeterminate .mat-checkbox-checkmark{opacity:0;transform:rotate(45deg)}.mat-checkbox-indeterminate .mat-checkbox-checkmark-path{stroke-dashoffset:0}.mat-checkbox-indeterminate .mat-checkbox-mixedmark{opacity:1;transform:scaleX(1) rotate(0deg)}.mat-checkbox-unchecked .mat-checkbox-background{background-color:rgba(0,0,0,0)}.mat-checkbox-disabled{cursor:default}.cdk-high-contrast-active .mat-checkbox-disabled{opacity:.5}.mat-checkbox-anim-unchecked-checked .mat-checkbox-background{animation:180ms linear 0ms mat-checkbox-fade-in-background}.mat-checkbox-anim-unchecked-checked .mat-checkbox-checkmark-path{animation:180ms linear 0ms mat-checkbox-unchecked-checked-checkmark-path}.mat-checkbox-anim-unchecked-indeterminate .mat-checkbox-background{animation:180ms linear 0ms mat-checkbox-fade-in-background}.mat-checkbox-anim-unchecked-indeterminate .mat-checkbox-mixedmark{animation:90ms linear 0ms mat-checkbox-unchecked-indeterminate-mixedmark}.mat-checkbox-anim-checked-unchecked .mat-checkbox-background{animation:180ms linear 0ms mat-checkbox-fade-out-background}.mat-checkbox-anim-checked-unchecked .mat-checkbox-checkmark-path{animation:90ms linear 0ms mat-checkbox-checked-unchecked-checkmark-path}.mat-checkbox-anim-checked-indeterminate .mat-checkbox-checkmark{animation:90ms linear 0ms mat-checkbox-checked-indeterminate-checkmark}.mat-checkbox-anim-checked-indeterminate .mat-checkbox-mixedmark{animation:90ms linear 0ms mat-checkbox-checked-indeterminate-mixedmark}.mat-checkbox-anim-indeterminate-checked .mat-checkbox-checkmark{animation:500ms linear 0ms mat-checkbox-indeterminate-checked-checkmark}.mat-checkbox-anim-indeterminate-checked .mat-checkbox-mixedmark{animation:500ms linear 0ms mat-checkbox-indeterminate-checked-mixedmark}.mat-checkbox-anim-indeterminate-unchecked .mat-checkbox-background{animation:180ms linear 0ms mat-checkbox-fade-out-background}.mat-checkbox-anim-indeterminate-unchecked .mat-checkbox-mixedmark{animation:300ms linear 0ms mat-checkbox-indeterminate-unchecked-mixedmark}.mat-checkbox-input{bottom:0;left:50%}.mat-checkbox-input:focus~.mat-focus-indicator::before{content:""}'],encapsulation:2,changeDetection:0}),n})(),TR=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=ht({type:n}),n.\u0275inj=dt({}),n})(),bte=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=ht({type:n}),n.\u0275inj=dt({imports:[ha,Lt,dd,TR,Lt,TR]}),n})();const Cte=["*"],xR=new me("MatChipRemove"),IR=new me("MatChipAvatar"),MR=new me("MatChipTrailingIcon");class wte{constructor(t){this._elementRef=t}}const Ete=md(da(Go(wte),"primary"),-1);let Ks=(()=>{class n extends Ete{constructor(e,i,r,o,s,a,l,c){super(e),this._ngZone=i,this._changeDetectorRef=s,this._hasFocus=!1,this.chipListSelectable=!0,this._chipListMultiple=!1,this._chipListDisabled=!1,this.role="option",this._selected=!1,this._selectable=!0,this._disabled=!1,this._removable=!0,this._onFocus=new N,this._onBlur=new N,this.selectionChange=new He,this.destroyed=new He,this.removed=new He,this._addHostClassName(),this._chipRippleTarget=a.createElement("div"),this._chipRippleTarget.classList.add("mat-chip-ripple"),this._elementRef.nativeElement.appendChild(this._chipRippleTarget),this._chipRipple=new _1(this,i,this._chipRippleTarget,r),this._chipRipple.setupTriggerEvents(e),this.rippleConfig=o||{},this._animationsDisabled="NoopAnimations"===l,this.tabIndex=null!=c&&parseInt(c)||-1}get rippleDisabled(){return this.disabled||this.disableRipple||this._animationsDisabled||!!this.rippleConfig.disabled}get selected(){return this._selected}set selected(e){const i=lt(e);i!==this._selected&&(this._selected=i,this._dispatchSelectionChange())}get value(){return void 0!==this._value?this._value:this._elementRef.nativeElement.textContent}set value(e){this._value=e}get selectable(){return this._selectable&&this.chipListSelectable}set selectable(e){this._selectable=lt(e)}get disabled(){return this._chipListDisabled||this._disabled}set disabled(e){this._disabled=lt(e)}get removable(){return this._removable}set removable(e){this._removable=lt(e)}get ariaSelected(){return this.selectable&&(this._chipListMultiple||this.selected)?this.selected.toString():null}_addHostClassName(){const e="mat-basic-chip",i=this._elementRef.nativeElement;i.hasAttribute(e)||i.tagName.toLowerCase()===e?i.classList.add(e):i.classList.add("mat-standard-chip")}ngOnDestroy(){this.destroyed.emit({chip:this}),this._chipRipple._removeTriggerEvents()}select(){this._selected||(this._selected=!0,this._dispatchSelectionChange(),this._changeDetectorRef.markForCheck())}deselect(){this._selected&&(this._selected=!1,this._dispatchSelectionChange(),this._changeDetectorRef.markForCheck())}selectViaInteraction(){this._selected||(this._selected=!0,this._dispatchSelectionChange(!0),this._changeDetectorRef.markForCheck())}toggleSelected(e=!1){return this._selected=!this.selected,this._dispatchSelectionChange(e),this._changeDetectorRef.markForCheck(),this.selected}focus(){this._hasFocus||(this._elementRef.nativeElement.focus(),this._onFocus.next({chip:this})),this._hasFocus=!0}remove(){this.removable&&this.removed.emit({chip:this})}_handleClick(e){this.disabled&&e.preventDefault()}_handleKeydown(e){if(!this.disabled)switch(e.keyCode){case 46:case 8:this.remove(),e.preventDefault();break;case 32:this.selectable&&this.toggleSelected(!0),e.preventDefault()}}_blur(){this._ngZone.onStable.pipe(sn(1)).subscribe(()=>{this._ngZone.run(()=>{this._hasFocus=!1,this._onBlur.next({chip:this})})})}_dispatchSelectionChange(e=!1){this.selectionChange.emit({source:this,isUserInput:e,selected:this._selected})}}return n.\u0275fac=function(e){return new(e||n)(p(Je),p(et),p(Nn),p(v1,8),p(St),p(ft),p(qn,8),Vr("tabindex"))},n.\u0275dir=fe({type:n,selectors:[["mat-basic-chip"],["","mat-basic-chip",""],["mat-chip"],["","mat-chip",""]],contentQueries:function(e,i,r){if(1&e&&(jt(r,IR,5),jt(r,MR,5),jt(r,xR,5)),2&e){let o;ce(o=ue())&&(i.avatar=o.first),ce(o=ue())&&(i.trailingIcon=o.first),ce(o=ue())&&(i.removeIcon=o.first)}},hostAttrs:[1,"mat-chip","mat-focus-indicator"],hostVars:15,hostBindings:function(e,i){1&e&&W("click",function(o){return i._handleClick(o)})("keydown",function(o){return i._handleKeydown(o)})("focus",function(){return i.focus()})("blur",function(){return i._blur()}),2&e&&(rt("tabindex",i.disabled?null:i.tabIndex)("role",i.role)("disabled",i.disabled||null)("aria-disabled",i.disabled.toString())("aria-selected",i.ariaSelected),bt("mat-chip-selected",i.selected)("mat-chip-with-avatar",i.avatar)("mat-chip-with-trailing-icon",i.trailingIcon||i.removeIcon)("mat-chip-disabled",i.disabled)("_mat-animation-noopable",i._animationsDisabled))},inputs:{color:"color",disableRipple:"disableRipple",tabIndex:"tabIndex",role:"role",selected:"selected",value:"value",selectable:"selectable",disabled:"disabled",removable:"removable"},outputs:{selectionChange:"selectionChange",destroyed:"destroyed",removed:"removed"},exportAs:["matChip"],features:[Se]}),n})(),bl=(()=>{class n{constructor(e,i){this._parentChip=e,"BUTTON"===i.nativeElement.nodeName&&i.nativeElement.setAttribute("type","button")}_handleClick(e){const i=this._parentChip;i.removable&&!i.disabled&&i.remove(),e.stopPropagation(),e.preventDefault()}}return n.\u0275fac=function(e){return new(e||n)(p(Ks),p(Je))},n.\u0275dir=fe({type:n,selectors:[["","matChipRemove",""]],hostAttrs:[1,"mat-chip-remove","mat-chip-trailing-icon"],hostBindings:function(e,i){1&e&&W("click",function(o){return i._handleClick(o)})},features:[it([{provide:xR,useExisting:n}])]}),n})();const kR=new me("mat-chips-default-options"),Ate=bb(class{constructor(n,t,e,i){this._defaultErrorStateMatcher=n,this._parentForm=t,this._parentFormGroup=e,this.ngControl=i,this.stateChanges=new N}});let Tte=0;class xte{constructor(t,e){this.source=t,this.value=e}}let Cl=(()=>{class n extends Ate{constructor(e,i,r,o,s,a,l){super(a,o,s,l),this._elementRef=e,this._changeDetectorRef=i,this._dir=r,this.controlType="mat-chip-list",this._lastDestroyedChipIndex=null,this._destroyed=new N,this._uid="mat-chip-list-"+Tte++,this._tabIndex=0,this._userTabIndex=null,this._onTouched=()=>{},this._onChange=()=>{},this._multiple=!1,this._compareWith=(c,u)=>c===u,this._disabled=!1,this.ariaOrientation="horizontal",this._selectable=!0,this.change=new He,this.valueChange=new He,this.ngControl&&(this.ngControl.valueAccessor=this)}get selected(){return this.multiple?this._selectionModel?.selected||[]:this._selectionModel?.selected[0]}get role(){return this._explicitRole?this._explicitRole:this.empty?null:"listbox"}set role(e){this._explicitRole=e}get multiple(){return this._multiple}set multiple(e){this._multiple=lt(e),this._syncChipsState()}get compareWith(){return this._compareWith}set compareWith(e){this._compareWith=e,this._selectionModel&&this._initializeSelection()}get value(){return this._value}set value(e){this.writeValue(e),this._value=e}get id(){return this._chipInput?this._chipInput.id:this._uid}get required(){return this._required??this.ngControl?.control?.hasValidator(vy.required)??!1}set required(e){this._required=lt(e),this.stateChanges.next()}get placeholder(){return this._chipInput?this._chipInput.placeholder:this._placeholder}set placeholder(e){this._placeholder=e,this.stateChanges.next()}get focused(){return this._chipInput&&this._chipInput.focused||this._hasFocusedChip()}get empty(){return(!this._chipInput||this._chipInput.empty)&&(!this.chips||0===this.chips.length)}get shouldLabelFloat(){return!this.empty||this.focused}get disabled(){return this.ngControl?!!this.ngControl.disabled:this._disabled}set disabled(e){this._disabled=lt(e),this._syncChipsState()}get selectable(){return this._selectable}set selectable(e){this._selectable=lt(e),this._syncChipsState()}set tabIndex(e){this._userTabIndex=e,this._tabIndex=e}get chipSelectionChanges(){return On(...this.chips.map(e=>e.selectionChange))}get chipFocusChanges(){return On(...this.chips.map(e=>e._onFocus))}get chipBlurChanges(){return On(...this.chips.map(e=>e._onBlur))}get chipRemoveChanges(){return On(...this.chips.map(e=>e.destroyed))}ngAfterContentInit(){this._keyManager=new Sf(this.chips).withWrap().withVerticalOrientation().withHomeAndEnd().withHorizontalOrientation(this._dir?this._dir.value:"ltr"),this._dir&&this._dir.change.pipe(Jt(this._destroyed)).subscribe(e=>this._keyManager.withHorizontalOrientation(e)),this._keyManager.tabOut.pipe(Jt(this._destroyed)).subscribe(()=>{this._allowFocusEscape()}),this.chips.changes.pipe(ni(null),Jt(this._destroyed)).subscribe(()=>{(this.disabled||!this.selectable)&&Promise.resolve().then(()=>{this._syncChipsState()}),this._resetChips(),this._initializeSelection(),this._updateTabIndex(),this._updateFocusForDestroyedChips(),this.stateChanges.next()})}ngOnInit(){this._selectionModel=new nl(this.multiple,void 0,!1),this.stateChanges.next()}ngDoCheck(){this.ngControl&&(this.updateErrorState(),this.ngControl.disabled!==this._disabled&&(this.disabled=!!this.ngControl.disabled))}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete(),this.stateChanges.complete(),this._dropSubscriptions()}registerInput(e){this._chipInput=e,this._elementRef.nativeElement.setAttribute("data-mat-chip-input",e.id)}setDescribedByIds(e){e.length?this._elementRef.nativeElement.setAttribute("aria-describedby",e.join(" ")):this._elementRef.nativeElement.removeAttribute("aria-describedby")}writeValue(e){this.chips&&this._setSelectionByValue(e,!1)}registerOnChange(e){this._onChange=e}registerOnTouched(e){this._onTouched=e}setDisabledState(e){this.disabled=e,this.stateChanges.next()}onContainerClick(e){this._originatesFromChip(e)||this.focus()}focus(e){this.disabled||this._chipInput&&this._chipInput.focused||(this.chips.length>0?(this._keyManager.setFirstItemActive(),this.stateChanges.next()):(this._focusInput(e),this.stateChanges.next()))}_focusInput(e){this._chipInput&&this._chipInput.focus(e)}_keydown(e){const i=e.target;i&&i.classList.contains("mat-chip")&&(this._keyManager.onKeydown(e),this.stateChanges.next())}_updateTabIndex(){this._tabIndex=this._userTabIndex||(0===this.chips.length?-1:0)}_updateFocusForDestroyedChips(){if(null!=this._lastDestroyedChipIndex)if(this.chips.length){const e=Math.min(this._lastDestroyedChipIndex,this.chips.length-1);this._keyManager.setActiveItem(e)}else this.focus();this._lastDestroyedChipIndex=null}_isValidIndex(e){return e>=0&&er.deselect()),Array.isArray(e))e.forEach(r=>this._selectValue(r,i)),this._sortValues();else{const r=this._selectValue(e,i);r&&i&&this._keyManager.setActiveItem(r)}}_selectValue(e,i=!0){const r=this.chips.find(o=>null!=o.value&&this._compareWith(o.value,e));return r&&(i?r.selectViaInteraction():r.select(),this._selectionModel.select(r)),r}_initializeSelection(){Promise.resolve().then(()=>{(this.ngControl||this._value)&&(this._setSelectionByValue(this.ngControl?this.ngControl.value:this._value,!1),this.stateChanges.next())})}_clearSelection(e){this._selectionModel.clear(),this.chips.forEach(i=>{i!==e&&i.deselect()}),this.stateChanges.next()}_sortValues(){this._multiple&&(this._selectionModel.clear(),this.chips.forEach(e=>{e.selected&&this._selectionModel.select(e)}),this.stateChanges.next())}_propagateChanges(e){let i=null;i=Array.isArray(this.selected)?this.selected.map(r=>r.value):this.selected?this.selected.value:e,this._value=i,this.change.emit(new xte(this,i)),this.valueChange.emit(i),this._onChange(i),this._changeDetectorRef.markForCheck()}_blur(){this._hasFocusedChip()||this._keyManager.setActiveItem(-1),this.disabled||(this._chipInput?setTimeout(()=>{this.focused||this._markAsTouched()}):this._markAsTouched())}_markAsTouched(){this._onTouched(),this._changeDetectorRef.markForCheck(),this.stateChanges.next()}_allowFocusEscape(){-1!==this._tabIndex&&(this._tabIndex=-1,setTimeout(()=>{this._tabIndex=this._userTabIndex||0,this._changeDetectorRef.markForCheck()}))}_resetChips(){this._dropSubscriptions(),this._listenToChipsFocus(),this._listenToChipsSelection(),this._listenToChipsRemoved()}_dropSubscriptions(){this._chipFocusSubscription&&(this._chipFocusSubscription.unsubscribe(),this._chipFocusSubscription=null),this._chipBlurSubscription&&(this._chipBlurSubscription.unsubscribe(),this._chipBlurSubscription=null),this._chipSelectionSubscription&&(this._chipSelectionSubscription.unsubscribe(),this._chipSelectionSubscription=null),this._chipRemoveSubscription&&(this._chipRemoveSubscription.unsubscribe(),this._chipRemoveSubscription=null)}_listenToChipsSelection(){this._chipSelectionSubscription=this.chipSelectionChanges.subscribe(e=>{e.source.selected?this._selectionModel.select(e.source):this._selectionModel.deselect(e.source),this.multiple||this.chips.forEach(i=>{!this._selectionModel.isSelected(i)&&i.selected&&i.deselect()}),e.isUserInput&&this._propagateChanges()})}_listenToChipsFocus(){this._chipFocusSubscription=this.chipFocusChanges.subscribe(e=>{let i=this.chips.toArray().indexOf(e.chip);this._isValidIndex(i)&&this._keyManager.updateActiveItem(i),this.stateChanges.next()}),this._chipBlurSubscription=this.chipBlurChanges.subscribe(()=>{this._blur(),this.stateChanges.next()})}_listenToChipsRemoved(){this._chipRemoveSubscription=this.chipRemoveChanges.subscribe(e=>{const i=e.chip,r=this.chips.toArray().indexOf(e.chip);this._isValidIndex(r)&&i._hasFocus&&(this._lastDestroyedChipIndex=r)})}_originatesFromChip(e){let i=e.target;for(;i&&i!==this._elementRef.nativeElement;){if(i.classList.contains("mat-chip"))return!0;i=i.parentElement}return!1}_hasFocusedChip(){return this.chips&&this.chips.some(e=>e._hasFocus)}_syncChipsState(){this.chips&&this.chips.forEach(e=>{e._chipListDisabled=this._disabled,e._chipListMultiple=this.multiple,e.chipListSelectable=this._selectable})}}return n.\u0275fac=function(e){return new(e||n)(p(Je),p(St),p(Xi,8),p(_c,8),p(vc,8),p(gd),p(bo,10))},n.\u0275cmp=Ue({type:n,selectors:[["mat-chip-list"]],contentQueries:function(e,i,r){if(1&e&&jt(r,Ks,5),2&e){let o;ce(o=ue())&&(i.chips=o)}},hostAttrs:[1,"mat-chip-list"],hostVars:14,hostBindings:function(e,i){1&e&&W("focus",function(){return i.focus()})("blur",function(){return i._blur()})("keydown",function(o){return i._keydown(o)}),2&e&&(Ho("id",i._uid),rt("tabindex",i.disabled?null:i._tabIndex)("aria-required",i.role?i.required:null)("aria-disabled",i.disabled.toString())("aria-invalid",i.errorState)("aria-multiselectable",i.multiple)("role",i.role)("aria-orientation",i.ariaOrientation),bt("mat-chip-list-disabled",i.disabled)("mat-chip-list-invalid",i.errorState)("mat-chip-list-required",i.required))},inputs:{role:"role",userAriaDescribedBy:["aria-describedby","userAriaDescribedBy"],errorStateMatcher:"errorStateMatcher",multiple:"multiple",compareWith:"compareWith",value:"value",required:"required",placeholder:"placeholder",disabled:"disabled",ariaOrientation:["aria-orientation","ariaOrientation"],selectable:"selectable",tabIndex:"tabIndex"},outputs:{change:"change",valueChange:"valueChange"},exportAs:["matChipList"],features:[it([{provide:Ed,useExisting:n}]),Se],ngContentSelectors:Cte,decls:2,vars:0,consts:[[1,"mat-chip-list-wrapper"]],template:function(e,i){1&e&&(Pn(),g(0,"div",0),Bt(1),_())},styles:['.mat-chip{position:relative;box-sizing:border-box;-webkit-tap-highlight-color:rgba(0,0,0,0);border:none;-webkit-appearance:none;-moz-appearance:none}.mat-chip::before{margin:calc(calc(var(--mat-focus-indicator-border-width, 3px) + 2px) * -1)}.mat-standard-chip{transition:box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);display:inline-flex;padding:7px 12px;border-radius:16px;align-items:center;cursor:default;min-height:32px;height:1px}.mat-standard-chip._mat-animation-noopable{transition:none !important;animation:none !important}.mat-standard-chip .mat-chip-remove{border:none;-webkit-appearance:none;-moz-appearance:none;padding:0;background:none}.mat-standard-chip .mat-chip-remove.mat-icon,.mat-standard-chip .mat-chip-remove .mat-icon{width:18px;height:18px;font-size:18px}.mat-standard-chip::after{top:0;left:0;right:0;bottom:0;position:absolute;border-radius:inherit;opacity:0;content:"";pointer-events:none;transition:opacity 200ms cubic-bezier(0.35, 0, 0.25, 1)}.mat-standard-chip:hover::after{opacity:.12}.mat-standard-chip:focus{outline:none}.mat-standard-chip:focus::after{opacity:.16}.cdk-high-contrast-active .mat-standard-chip{outline:solid 1px}.cdk-high-contrast-active .mat-standard-chip.mat-chip-selected{outline-width:3px}.mat-standard-chip.mat-chip-disabled::after{opacity:0}.mat-standard-chip.mat-chip-disabled .mat-chip-remove,.mat-standard-chip.mat-chip-disabled .mat-chip-trailing-icon{cursor:default}.mat-standard-chip.mat-chip-with-trailing-icon.mat-chip-with-avatar,.mat-standard-chip.mat-chip-with-avatar{padding-top:0;padding-bottom:0}.mat-standard-chip.mat-chip-with-trailing-icon.mat-chip-with-avatar{padding-right:8px;padding-left:0}[dir=rtl] .mat-standard-chip.mat-chip-with-trailing-icon.mat-chip-with-avatar{padding-left:8px;padding-right:0}.mat-standard-chip.mat-chip-with-trailing-icon{padding-top:7px;padding-bottom:7px;padding-right:8px;padding-left:12px}[dir=rtl] .mat-standard-chip.mat-chip-with-trailing-icon{padding-left:8px;padding-right:12px}.mat-standard-chip.mat-chip-with-avatar{padding-left:0;padding-right:12px}[dir=rtl] .mat-standard-chip.mat-chip-with-avatar{padding-right:0;padding-left:12px}.mat-standard-chip .mat-chip-avatar{width:24px;height:24px;margin-right:8px;margin-left:4px}[dir=rtl] .mat-standard-chip .mat-chip-avatar{margin-left:8px;margin-right:4px}.mat-standard-chip .mat-chip-remove,.mat-standard-chip .mat-chip-trailing-icon{width:18px;height:18px;cursor:pointer}.mat-standard-chip .mat-chip-remove,.mat-standard-chip .mat-chip-trailing-icon{margin-left:8px;margin-right:0}[dir=rtl] .mat-standard-chip .mat-chip-remove,[dir=rtl] .mat-standard-chip .mat-chip-trailing-icon{margin-right:8px;margin-left:0}.mat-chip-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit;overflow:hidden;transform:translateZ(0)}.mat-chip-list-wrapper{display:flex;flex-direction:row;flex-wrap:wrap;align-items:center;margin:-4px}.mat-chip-list-wrapper input.mat-input-element,.mat-chip-list-wrapper .mat-standard-chip{margin:4px}.mat-chip-list-stacked .mat-chip-list-wrapper{flex-direction:column;align-items:flex-start}.mat-chip-list-stacked .mat-chip-list-wrapper .mat-standard-chip{width:100%}.mat-chip-avatar{border-radius:50%;justify-content:center;align-items:center;display:flex;overflow:hidden;object-fit:cover}input.mat-chip-input{width:150px;margin:4px;flex:1 0 150px}'],encapsulation:2,changeDetection:0}),n})(),Ite=0,wl=(()=>{class n{constructor(e,i){this._elementRef=e,this._defaultOptions=i,this.focused=!1,this._addOnBlur=!1,this.separatorKeyCodes=this._defaultOptions.separatorKeyCodes,this.chipEnd=new He,this.placeholder="",this.id="mat-chip-list-input-"+Ite++,this._disabled=!1,this.inputElement=this._elementRef.nativeElement}set chipList(e){e&&(this._chipList=e,this._chipList.registerInput(this))}get addOnBlur(){return this._addOnBlur}set addOnBlur(e){this._addOnBlur=lt(e)}get disabled(){return this._disabled||this._chipList&&this._chipList.disabled}set disabled(e){this._disabled=lt(e)}get empty(){return!this.inputElement.value}ngOnChanges(){this._chipList.stateChanges.next()}ngOnDestroy(){this.chipEnd.complete()}ngAfterContentInit(){this._focusLastChipOnBackspace=this.empty}_keydown(e){if(e){if(9===e.keyCode&&!yi(e,"shiftKey")&&this._chipList._allowFocusEscape(),8===e.keyCode&&this._focusLastChipOnBackspace)return this._chipList._keyManager.setLastItemActive(),void e.preventDefault();this._focusLastChipOnBackspace=!1}this._emitChipEnd(e)}_keyup(e){!this._focusLastChipOnBackspace&&8===e.keyCode&&this.empty&&(this._focusLastChipOnBackspace=!0,e.preventDefault())}_blur(){this.addOnBlur&&this._emitChipEnd(),this.focused=!1,this._chipList.focused||this._chipList._blur(),this._chipList.stateChanges.next()}_focus(){this.focused=!0,this._focusLastChipOnBackspace=this.empty,this._chipList.stateChanges.next()}_emitChipEnd(e){!this.inputElement.value&&!!e&&this._chipList._keydown(e),(!e||this._isSeparatorKey(e))&&(this.chipEnd.emit({input:this.inputElement,value:this.inputElement.value,chipInput:this}),e?.preventDefault())}_onInput(){this._chipList.stateChanges.next()}focus(e){this.inputElement.focus(e)}clear(){this.inputElement.value="",this._focusLastChipOnBackspace=!0}_isSeparatorKey(e){return!yi(e)&&new Set(this.separatorKeyCodes).has(e.keyCode)}}return n.\u0275fac=function(e){return new(e||n)(p(Je),p(kR))},n.\u0275dir=fe({type:n,selectors:[["input","matChipInputFor",""]],hostAttrs:[1,"mat-chip-input","mat-input-element"],hostVars:5,hostBindings:function(e,i){1&e&&W("keydown",function(o){return i._keydown(o)})("keyup",function(o){return i._keyup(o)})("blur",function(){return i._blur()})("focus",function(){return i._focus()})("input",function(){return i._onInput()}),2&e&&(Ho("id",i.id),rt("disabled",i.disabled||null)("placeholder",i.placeholder||null)("aria-invalid",i._chipList&&i._chipList.ngControl?i._chipList.ngControl.invalid:null)("aria-required",i._chipList&&i._chipList.required||null))},inputs:{chipList:["matChipInputFor","chipList"],addOnBlur:["matChipInputAddOnBlur","addOnBlur"],separatorKeyCodes:["matChipInputSeparatorKeyCodes","separatorKeyCodes"],placeholder:"placeholder",id:"id",disabled:"disabled"},outputs:{chipEnd:"matChipInputTokenEnd"},exportAs:["matChipInput","matChipInputFor"],features:[Rn]}),n})(),Mte=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=ht({type:n}),n.\u0275inj=dt({providers:[gd,{provide:kR,useValue:{separatorKeyCodes:[13]}}],imports:[Lt]}),n})();function Rte(n){const{subscriber:t,counter:e,period:i}=n;t.next(e),this.schedule({subscriber:t,counter:e+1,period:i},i)}function _w(n,t,e){for(let i in t)if(t.hasOwnProperty(i)){const r=t[i];r?n.setProperty(i,r,e?.has(i)?"important":""):n.removeProperty(i)}return n}function ou(n,t){const e=t?"":"none";_w(n.style,{"touch-action":t?"":"none","-webkit-user-drag":t?"":"none","-webkit-tap-highlight-color":t?"":"transparent","user-select":e,"-ms-user-select":e,"-webkit-user-select":e,"-moz-user-select":e})}function RR(n,t,e){_w(n.style,{position:t?"":"fixed",top:t?"":"0",opacity:t?"":"0",left:t?"":"-999em"},e)}function fg(n,t){return t&&"none"!=t?n+" "+t:n}function OR(n){const t=n.toLowerCase().indexOf("ms")>-1?1:1e3;return parseFloat(n)*t}function vw(n,t){return n.getPropertyValue(t).split(",").map(i=>i.trim())}function yw(n){const t=n.getBoundingClientRect();return{top:t.top,right:t.right,bottom:t.bottom,left:t.left,width:t.width,height:t.height,x:t.x,y:t.y}}function bw(n,t,e){const{top:i,bottom:r,left:o,right:s}=n;return e>=i&&e<=r&&t>=o&&t<=s}function vh(n,t,e){n.top+=t,n.bottom=n.top+n.height,n.left+=e,n.right=n.left+n.width}function PR(n,t,e,i){const{top:r,right:o,bottom:s,left:a,width:l,height:c}=n,u=l*t,d=c*t;return i>r-d&&ia-u&&e{this.positions.set(e,{scrollPosition:{top:e.scrollTop,left:e.scrollLeft},clientRect:yw(e)})})}handleScroll(t){const e=Qr(t),i=this.positions.get(e);if(!i)return null;const r=i.scrollPosition;let o,s;if(e===this._document){const c=this.getViewportScrollPosition();o=c.top,s=c.left}else o=e.scrollTop,s=e.scrollLeft;const a=r.top-o,l=r.left-s;return this.positions.forEach((c,u)=>{c.clientRect&&e!==u&&e.contains(u)&&vh(c.clientRect,a,l)}),r.top=o,r.left=s,{top:a,left:l}}getViewportScrollPosition(){return{top:window.scrollY,left:window.scrollX}}}function NR(n){const t=n.cloneNode(!0),e=t.querySelectorAll("[id]"),i=n.nodeName.toLowerCase();t.removeAttribute("id");for(let r=0;r{if(this.beforeStarted.next(),this._handles.length){const l=this._getTargetHandle(a);l&&!this._disabledHandles.has(l)&&!this.disabled&&this._initializeDragSequence(l,a)}else this.disabled||this._initializeDragSequence(this._rootElement,a)},this._pointerMove=a=>{const l=this._getPointerPositionOnPage(a);if(!this._hasStartedDragging){if(Math.abs(l.x-this._pickupPositionOnPage.x)+Math.abs(l.y-this._pickupPositionOnPage.y)>=this._config.dragStartThreshold){const m=Date.now()>=this._dragStartTime+this._getDragStartDelay(a),y=this._dropContainer;if(!m)return void this._endDragSequence(a);(!y||!y.isDragging()&&!y.isReceiving())&&(a.preventDefault(),this._hasStartedDragging=!0,this._ngZone.run(()=>this._startDragSequence(a)))}return}a.preventDefault();const c=this._getConstrainedPointerPosition(l);if(this._hasMoved=!0,this._lastKnownPointerPosition=l,this._updatePointerDirectionDelta(c),this._dropContainer)this._updateActiveDropContainer(c,l);else{const u=this.constrainPosition?this._initialClientRect:this._pickupPositionOnPage,d=this._activeTransform;d.x=c.x-u.x+this._passiveTransform.x,d.y=c.y-u.y+this._passiveTransform.y,this._applyRootElementTransform(d.x,d.y)}this._moveEvents.observers.length&&this._ngZone.run(()=>{this._moveEvents.next({source:this,pointerPosition:c,event:a,distance:this._getDragDistance(c),delta:this._pointerDirectionDelta})})},this._pointerUp=a=>{this._endDragSequence(a)},this._nativeDragStart=a=>{if(this._handles.length){const l=this._getTargetHandle(a);l&&!this._disabledHandles.has(l)&&!this.disabled&&a.preventDefault()}else this.disabled||a.preventDefault()},this.withRootElement(t).withParent(e.parentDragRef||null),this._parentPositions=new LR(i),s.registerDragItem(this)}get disabled(){return this._disabled||!(!this._dropContainer||!this._dropContainer.disabled)}set disabled(t){const e=lt(t);e!==this._disabled&&(this._disabled=e,this._toggleNativeDragInteractions(),this._handles.forEach(i=>ou(i,e)))}getPlaceholderElement(){return this._placeholder}getRootElement(){return this._rootElement}getVisibleElement(){return this.isDragging()?this.getPlaceholderElement():this.getRootElement()}withHandles(t){this._handles=t.map(i=>Qn(i)),this._handles.forEach(i=>ou(i,this.disabled)),this._toggleNativeDragInteractions();const e=new Set;return this._disabledHandles.forEach(i=>{this._handles.indexOf(i)>-1&&e.add(i)}),this._disabledHandles=e,this}withPreviewTemplate(t){return this._previewTemplate=t,this}withPlaceholderTemplate(t){return this._placeholderTemplate=t,this}withRootElement(t){const e=Qn(t);return e!==this._rootElement&&(this._rootElement&&this._removeRootElementListeners(this._rootElement),this._ngZone.runOutsideAngular(()=>{e.addEventListener("mousedown",this._pointerDown,mg),e.addEventListener("touchstart",this._pointerDown,HR),e.addEventListener("dragstart",this._nativeDragStart,mg)}),this._initialTransform=void 0,this._rootElement=e),typeof SVGElement<"u"&&this._rootElement instanceof SVGElement&&(this._ownerSVGElement=this._rootElement.ownerSVGElement),this}withBoundaryElement(t){return this._boundaryElement=t?Qn(t):null,this._resizeSubscription.unsubscribe(),t&&(this._resizeSubscription=this._viewportRuler.change(10).subscribe(()=>this._containInsideBoundaryOnResize())),this}withParent(t){return this._parentDragRef=t,this}dispose(){this._removeRootElementListeners(this._rootElement),this.isDragging()&&this._rootElement?.remove(),this._anchor?.remove(),this._destroyPreview(),this._destroyPlaceholder(),this._dragDropRegistry.removeDragItem(this),this._removeSubscriptions(),this.beforeStarted.complete(),this.started.complete(),this.released.complete(),this.ended.complete(),this.entered.complete(),this.exited.complete(),this.dropped.complete(),this._moveEvents.complete(),this._handles=[],this._disabledHandles.clear(),this._dropContainer=void 0,this._resizeSubscription.unsubscribe(),this._parentPositions.clear(),this._boundaryElement=this._rootElement=this._ownerSVGElement=this._placeholderTemplate=this._previewTemplate=this._anchor=this._parentDragRef=null}isDragging(){return this._hasStartedDragging&&this._dragDropRegistry.isDragging(this)}reset(){this._rootElement.style.transform=this._initialTransform||"",this._activeTransform={x:0,y:0},this._passiveTransform={x:0,y:0}}disableHandle(t){!this._disabledHandles.has(t)&&this._handles.indexOf(t)>-1&&(this._disabledHandles.add(t),ou(t,!0))}enableHandle(t){this._disabledHandles.has(t)&&(this._disabledHandles.delete(t),ou(t,this.disabled))}withDirection(t){return this._direction=t,this}_withDropContainer(t){this._dropContainer=t}getFreeDragPosition(){const t=this.isDragging()?this._activeTransform:this._passiveTransform;return{x:t.x,y:t.y}}setFreeDragPosition(t){return this._activeTransform={x:0,y:0},this._passiveTransform.x=t.x,this._passiveTransform.y=t.y,this._dropContainer||this._applyRootElementTransform(t.x,t.y),this}withPreviewContainer(t){return this._previewContainer=t,this}_sortFromLastPointerPosition(){const t=this._lastKnownPointerPosition;t&&this._dropContainer&&this._updateActiveDropContainer(this._getConstrainedPointerPosition(t),t)}_removeSubscriptions(){this._pointerMoveSubscription.unsubscribe(),this._pointerUpSubscription.unsubscribe(),this._scrollSubscription.unsubscribe()}_destroyPreview(){this._preview?.remove(),this._previewRef?.destroy(),this._preview=this._previewRef=null}_destroyPlaceholder(){this._placeholder?.remove(),this._placeholderRef?.destroy(),this._placeholder=this._placeholderRef=null}_endDragSequence(t){if(this._dragDropRegistry.isDragging(this)&&(this._removeSubscriptions(),this._dragDropRegistry.stopDragging(this),this._toggleNativeDragInteractions(),this._handles&&(this._rootElement.style.webkitTapHighlightColor=this._rootElementTapHighlight),this._hasStartedDragging))if(this.released.next({source:this,event:t}),this._dropContainer)this._dropContainer._stopScrolling(),this._animatePreviewToPlaceholder().then(()=>{this._cleanupDragArtifacts(t),this._cleanupCachedDimensions(),this._dragDropRegistry.stopDragging(this)});else{this._passiveTransform.x=this._activeTransform.x;const e=this._getPointerPositionOnPage(t);this._passiveTransform.y=this._activeTransform.y,this._ngZone.run(()=>{this.ended.next({source:this,distance:this._getDragDistance(e),dropPoint:e,event:t})}),this._cleanupCachedDimensions(),this._dragDropRegistry.stopDragging(this)}}_startDragSequence(t){yh(t)&&(this._lastTouchEventTime=Date.now()),this._toggleNativeDragInteractions();const e=this._dropContainer;if(e){const i=this._rootElement,r=i.parentNode,o=this._placeholder=this._createPlaceholderElement(),s=this._anchor=this._anchor||this._document.createComment(""),a=this._getShadowRoot();r.insertBefore(s,i),this._initialTransform=i.style.transform||"",this._preview=this._createPreviewElement(),RR(i,!1,Cw),this._document.body.appendChild(r.replaceChild(o,i)),this._getPreviewInsertionPoint(r,a).appendChild(this._preview),this.started.next({source:this,event:t}),e.start(),this._initialContainer=e,this._initialIndex=e.getItemIndex(this)}else this.started.next({source:this,event:t}),this._initialContainer=this._initialIndex=void 0;this._parentPositions.cache(e?e.getScrollableParents():[])}_initializeDragSequence(t,e){this._parentDragRef&&e.stopPropagation();const i=this.isDragging(),r=yh(e),o=!r&&0!==e.button,s=this._rootElement,a=Qr(e),l=!r&&this._lastTouchEventTime&&this._lastTouchEventTime+800>Date.now(),c=r?xf(e):Tf(e);if(a&&a.draggable&&"mousedown"===e.type&&e.preventDefault(),i||o||l||c)return;if(this._handles.length){const h=s.style;this._rootElementTapHighlight=h.webkitTapHighlightColor||"",h.webkitTapHighlightColor="transparent"}this._hasStartedDragging=this._hasMoved=!1,this._removeSubscriptions(),this._initialClientRect=this._rootElement.getBoundingClientRect(),this._pointerMoveSubscription=this._dragDropRegistry.pointerMove.subscribe(this._pointerMove),this._pointerUpSubscription=this._dragDropRegistry.pointerUp.subscribe(this._pointerUp),this._scrollSubscription=this._dragDropRegistry.scrolled(this._getShadowRoot()).subscribe(h=>this._updateOnScroll(h)),this._boundaryElement&&(this._boundaryRect=yw(this._boundaryElement));const u=this._previewTemplate;this._pickupPositionInElement=u&&u.template&&!u.matchSize?{x:0,y:0}:this._getPointerPositionInElement(this._initialClientRect,t,e);const d=this._pickupPositionOnPage=this._lastKnownPointerPosition=this._getPointerPositionOnPage(e);this._pointerDirectionDelta={x:0,y:0},this._pointerPositionAtLastDirectionChange={x:d.x,y:d.y},this._dragStartTime=Date.now(),this._dragDropRegistry.startDragging(this,e)}_cleanupDragArtifacts(t){RR(this._rootElement,!0,Cw),this._anchor.parentNode.replaceChild(this._rootElement,this._anchor),this._destroyPreview(),this._destroyPlaceholder(),this._initialClientRect=this._boundaryRect=this._previewRect=this._initialTransform=void 0,this._ngZone.run(()=>{const e=this._dropContainer,i=e.getItemIndex(this),r=this._getPointerPositionOnPage(t),o=this._getDragDistance(r),s=e._isOverContainer(r.x,r.y);this.ended.next({source:this,distance:o,dropPoint:r,event:t}),this.dropped.next({item:this,currentIndex:i,previousIndex:this._initialIndex,container:e,previousContainer:this._initialContainer,isPointerOverContainer:s,distance:o,dropPoint:r,event:t}),e.drop(this,i,this._initialIndex,this._initialContainer,s,o,r,t),this._dropContainer=this._initialContainer})}_updateActiveDropContainer({x:t,y:e},{x:i,y:r}){let o=this._initialContainer._getSiblingContainerFromPosition(this,t,e);!o&&this._dropContainer!==this._initialContainer&&this._initialContainer._isOverContainer(t,e)&&(o=this._initialContainer),o&&o!==this._dropContainer&&this._ngZone.run(()=>{this.exited.next({item:this,container:this._dropContainer}),this._dropContainer.exit(this),this._dropContainer=o,this._dropContainer.enter(this,t,e,o===this._initialContainer&&o.sortingDisabled?this._initialIndex:void 0),this.entered.next({item:this,container:o,currentIndex:o.getItemIndex(this)})}),this.isDragging()&&(this._dropContainer._startScrollingIfNecessary(i,r),this._dropContainer._sortItem(this,t,e,this._pointerDirectionDelta),this.constrainPosition?this._applyPreviewTransform(t,e):this._applyPreviewTransform(t-this._pickupPositionInElement.x,e-this._pickupPositionInElement.y))}_createPreviewElement(){const t=this._previewTemplate,e=this.previewClass,i=t?t.template:null;let r;if(i&&t){const o=t.matchSize?this._initialClientRect:null,s=t.viewContainer.createEmbeddedView(i,t.context);s.detectChanges(),r=UR(s,this._document),this._previewRef=s,t.matchSize?qR(r,o):r.style.transform=gg(this._pickupPositionOnPage.x,this._pickupPositionOnPage.y)}else r=NR(this._rootElement),qR(r,this._initialClientRect),this._initialTransform&&(r.style.transform=this._initialTransform);return _w(r.style,{"pointer-events":"none",margin:"0",position:"fixed",top:"0",left:"0","z-index":`${this._config.zIndex||1e3}`},Cw),ou(r,!1),r.classList.add("cdk-drag-preview"),r.setAttribute("dir",this._direction),e&&(Array.isArray(e)?e.forEach(o=>r.classList.add(o)):r.classList.add(e)),r}_animatePreviewToPlaceholder(){if(!this._hasMoved)return Promise.resolve();const t=this._placeholder.getBoundingClientRect();this._preview.classList.add("cdk-drag-animating"),this._applyPreviewTransform(t.left,t.top);const e=function Ote(n){const t=getComputedStyle(n),e=vw(t,"transition-property"),i=e.find(a=>"transform"===a||"all"===a);if(!i)return 0;const r=e.indexOf(i),o=vw(t,"transition-duration"),s=vw(t,"transition-delay");return OR(o[r])+OR(s[r])}(this._preview);return 0===e?Promise.resolve():this._ngZone.runOutsideAngular(()=>new Promise(i=>{const r=s=>{(!s||Qr(s)===this._preview&&"transform"===s.propertyName)&&(this._preview?.removeEventListener("transitionend",r),i(),clearTimeout(o))},o=setTimeout(r,1.5*e);this._preview.addEventListener("transitionend",r)}))}_createPlaceholderElement(){const t=this._placeholderTemplate,e=t?t.template:null;let i;return e?(this._placeholderRef=t.viewContainer.createEmbeddedView(e,t.context),this._placeholderRef.detectChanges(),i=UR(this._placeholderRef,this._document)):i=NR(this._rootElement),i.style.pointerEvents="none",i.classList.add("cdk-drag-placeholder"),i}_getPointerPositionInElement(t,e,i){const r=e===this._rootElement?null:e,o=r?r.getBoundingClientRect():t,s=yh(i)?i.targetTouches[0]:i,a=this._getViewportScrollPosition();return{x:o.left-t.left+(s.pageX-o.left-a.left),y:o.top-t.top+(s.pageY-o.top-a.top)}}_getPointerPositionOnPage(t){const e=this._getViewportScrollPosition(),i=yh(t)?t.touches[0]||t.changedTouches[0]||{pageX:0,pageY:0}:t,r=i.pageX-e.left,o=i.pageY-e.top;if(this._ownerSVGElement){const s=this._ownerSVGElement.getScreenCTM();if(s){const a=this._ownerSVGElement.createSVGPoint();return a.x=r,a.y=o,a.matrixTransform(s.inverse())}}return{x:r,y:o}}_getConstrainedPointerPosition(t){const e=this._dropContainer?this._dropContainer.lockAxis:null;let{x:i,y:r}=this.constrainPosition?this.constrainPosition(t,this,this._initialClientRect,this._pickupPositionInElement):t;if("x"===this.lockAxis||"x"===e?r=this._pickupPositionOnPage.y:("y"===this.lockAxis||"y"===e)&&(i=this._pickupPositionOnPage.x),this._boundaryRect){const{x:o,y:s}=this._pickupPositionInElement,a=this._boundaryRect,{width:l,height:c}=this._getPreviewRect(),u=a.top+s,d=a.bottom-(c-s);i=VR(i,a.left+o,a.right-(l-o)),r=VR(r,u,d)}return{x:i,y:r}}_updatePointerDirectionDelta(t){const{x:e,y:i}=t,r=this._pointerDirectionDelta,o=this._pointerPositionAtLastDirectionChange,s=Math.abs(e-o.x),a=Math.abs(i-o.y);return s>this._config.pointerDirectionChangeThreshold&&(r.x=e>o.x?1:-1,o.x=e),a>this._config.pointerDirectionChangeThreshold&&(r.y=i>o.y?1:-1,o.y=i),r}_toggleNativeDragInteractions(){if(!this._rootElement||!this._handles)return;const t=this._handles.length>0||!this.isDragging();t!==this._nativeInteractionsEnabled&&(this._nativeInteractionsEnabled=t,ou(this._rootElement,t))}_removeRootElementListeners(t){t.removeEventListener("mousedown",this._pointerDown,mg),t.removeEventListener("touchstart",this._pointerDown,HR),t.removeEventListener("dragstart",this._nativeDragStart,mg)}_applyRootElementTransform(t,e){const i=gg(t,e),r=this._rootElement.style;null==this._initialTransform&&(this._initialTransform=r.transform&&"none"!=r.transform?r.transform:""),r.transform=fg(i,this._initialTransform)}_applyPreviewTransform(t,e){const i=this._previewTemplate?.template?void 0:this._initialTransform,r=gg(t,e);this._preview.style.transform=fg(r,i)}_getDragDistance(t){const e=this._pickupPositionOnPage;return e?{x:t.x-e.x,y:t.y-e.y}:{x:0,y:0}}_cleanupCachedDimensions(){this._boundaryRect=this._previewRect=void 0,this._parentPositions.clear()}_containInsideBoundaryOnResize(){let{x:t,y:e}=this._passiveTransform;if(0===t&&0===e||this.isDragging()||!this._boundaryElement)return;const i=this._rootElement.getBoundingClientRect(),r=this._boundaryElement.getBoundingClientRect();if(0===r.width&&0===r.height||0===i.width&&0===i.height)return;const o=r.left-i.left,s=i.right-r.right,a=r.top-i.top,l=i.bottom-r.bottom;r.width>i.width?(o>0&&(t+=o),s>0&&(t-=s)):t=0,r.height>i.height?(a>0&&(e+=a),l>0&&(e-=l)):e=0,(t!==this._passiveTransform.x||e!==this._passiveTransform.y)&&this.setFreeDragPosition({y:e,x:t})}_getDragStartDelay(t){const e=this.dragStartDelay;return"number"==typeof e?e:yh(t)?e.touch:e?e.mouse:0}_updateOnScroll(t){const e=this._parentPositions.handleScroll(t);if(e){const i=Qr(t);this._boundaryRect&&i!==this._boundaryElement&&i.contains(this._boundaryElement)&&vh(this._boundaryRect,e.top,e.left),this._pickupPositionOnPage.x+=e.left,this._pickupPositionOnPage.y+=e.top,this._dropContainer||(this._activeTransform.x-=e.left,this._activeTransform.y-=e.top,this._applyRootElementTransform(this._activeTransform.x,this._activeTransform.y))}}_getViewportScrollPosition(){return this._parentPositions.positions.get(this._document)?.scrollPosition||this._parentPositions.getViewportScrollPosition()}_getShadowRoot(){return void 0===this._cachedShadowRoot&&(this._cachedShadowRoot=_f(this._rootElement)),this._cachedShadowRoot}_getPreviewInsertionPoint(t,e){const i=this._previewContainer||"global";if("parent"===i)return t;if("global"===i){const r=this._document;return e||r.fullscreenElement||r.webkitFullscreenElement||r.mozFullScreenElement||r.msFullscreenElement||r.body}return Qn(i)}_getPreviewRect(){return(!this._previewRect||!this._previewRect.width&&!this._previewRect.height)&&(this._previewRect=this._preview?this._preview.getBoundingClientRect():this._initialClientRect),this._previewRect}_getTargetHandle(t){return this._handles.find(e=>t.target&&(t.target===e||e.contains(t.target)))}}function gg(n,t){return`translate3d(${Math.round(n)}px, ${Math.round(t)}px, 0)`}function VR(n,t,e){return Math.max(t,Math.min(e,n))}function yh(n){return"t"===n.type[0]}function UR(n,t){const e=n.rootNodes;if(1===e.length&&e[0].nodeType===t.ELEMENT_NODE)return e[0];const i=t.createElement("div");return e.forEach(r=>i.appendChild(r)),i}function qR(n,t){n.style.width=`${t.width}px`,n.style.height=`${t.height}px`,n.style.transform=gg(t.left,t.top)}function bh(n,t){return Math.max(0,Math.min(t,n))}class Bte{constructor(t,e){this._element=t,this._dragDropRegistry=e,this._itemPositions=[],this.orientation="vertical",this._previousSwap={drag:null,delta:0,overlaps:!1}}start(t){this.withItems(t)}sort(t,e,i,r){const o=this._itemPositions,s=this._getItemIndexFromPointerPosition(t,e,i,r);if(-1===s&&o.length>0)return null;const a="horizontal"===this.orientation,l=o.findIndex(U=>U.drag===t),c=o[s],d=c.clientRect,h=l>s?1:-1,m=this._getItemOffsetPx(o[l].clientRect,d,h),y=this._getSiblingOffsetPx(l,o,h),A=o.slice();return function Fte(n,t,e){const i=bh(t,n.length-1),r=bh(e,n.length-1);if(i===r)return;const o=n[i],s=r{if(A[te]===U)return;const Ee=U.drag===t,ne=Ee?m:y,Me=Ee?t.getPlaceholderElement():U.drag.getRootElement();U.offset+=ne,a?(Me.style.transform=fg(`translate3d(${Math.round(U.offset)}px, 0, 0)`,U.initialTransform),vh(U.clientRect,0,ne)):(Me.style.transform=fg(`translate3d(0, ${Math.round(U.offset)}px, 0)`,U.initialTransform),vh(U.clientRect,ne,0))}),this._previousSwap.overlaps=bw(d,e,i),this._previousSwap.drag=c.drag,this._previousSwap.delta=a?r.x:r.y,{previousIndex:l,currentIndex:s}}enter(t,e,i,r){const o=null==r||r<0?this._getItemIndexFromPointerPosition(t,e,i):r,s=this._activeDraggables,a=s.indexOf(t),l=t.getPlaceholderElement();let c=s[o];if(c===t&&(c=s[o+1]),!c&&(null==o||-1===o||o-1&&s.splice(a,1),c&&!this._dragDropRegistry.isDragging(c)){const u=c.getRootElement();u.parentElement.insertBefore(l,u),s.splice(o,0,t)}else Qn(this._element).appendChild(l),s.push(t);l.style.transform="",this._cacheItemPositions()}withItems(t){this._activeDraggables=t.slice(),this._cacheItemPositions()}withSortPredicate(t){this._sortPredicate=t}reset(){this._activeDraggables.forEach(t=>{const e=t.getRootElement();if(e){const i=this._itemPositions.find(r=>r.drag===t)?.initialTransform;e.style.transform=i||""}}),this._itemPositions=[],this._activeDraggables=[],this._previousSwap.drag=null,this._previousSwap.delta=0,this._previousSwap.overlaps=!1}getActiveItemsSnapshot(){return this._activeDraggables}getItemIndex(t){return("horizontal"===this.orientation&&"rtl"===this.direction?this._itemPositions.slice().reverse():this._itemPositions).findIndex(i=>i.drag===t)}updateOnScroll(t,e){this._itemPositions.forEach(({clientRect:i})=>{vh(i,t,e)}),this._itemPositions.forEach(({drag:i})=>{this._dragDropRegistry.isDragging(i)&&i._sortFromLastPointerPosition()})}_cacheItemPositions(){const t="horizontal"===this.orientation;this._itemPositions=this._activeDraggables.map(e=>{const i=e.getVisibleElement();return{drag:e,offset:0,initialTransform:i.style.transform||"",clientRect:yw(i)}}).sort((e,i)=>t?e.clientRect.left-i.clientRect.left:e.clientRect.top-i.clientRect.top)}_getItemOffsetPx(t,e,i){const r="horizontal"===this.orientation;let o=r?e.left-t.left:e.top-t.top;return-1===i&&(o+=r?e.width-t.width:e.height-t.height),o}_getSiblingOffsetPx(t,e,i){const r="horizontal"===this.orientation,o=e[t].clientRect,s=e[t+-1*i];let a=o[r?"width":"height"]*i;if(s){const l=r?"left":"top",c=r?"right":"bottom";-1===i?a-=s.clientRect[l]-o[c]:a+=o[l]-s.clientRect[c]}return a}_shouldEnterAsFirstChild(t,e){if(!this._activeDraggables.length)return!1;const i=this._itemPositions,r="horizontal"===this.orientation;if(i[0].drag!==this._activeDraggables[0]){const s=i[i.length-1].clientRect;return r?t>=s.right:e>=s.bottom}{const s=i[0].clientRect;return r?t<=s.left:e<=s.top}}_getItemIndexFromPointerPosition(t,e,i,r){const o="horizontal"===this.orientation,s=this._itemPositions.findIndex(({drag:a,clientRect:l})=>{if(a===t)return!1;if(r){const c=o?r.x:r.y;if(a===this._previousSwap.drag&&this._previousSwap.overlaps&&c===this._previousSwap.delta)return!1}return o?e>=Math.floor(l.left)&&e=Math.floor(l.top)&&i!0,this.sortPredicate=()=>!0,this.beforeStarted=new N,this.entered=new N,this.exited=new N,this.dropped=new N,this.sorted=new N,this._isDragging=!1,this._draggables=[],this._siblings=[],this._activeSiblings=new Set,this._viewportScrollSubscription=E.EMPTY,this._verticalScrollDirection=0,this._horizontalScrollDirection=0,this._stopScrollTimers=new N,this._cachedShadowRoot=null,this._startScrollInterval=()=>{this._stopScrolling(),function kte(n=0,t=Dc){return(!fb(n)||n<0)&&(n=0),(!t||"function"!=typeof t.schedule)&&(t=Dc),new b(e=>(e.add(t.schedule(Rte,n,{subscriber:e,counter:0,period:n})),e))}(0,z2).pipe(Jt(this._stopScrollTimers)).subscribe(()=>{const s=this._scrollNode,a=this.autoScrollStep;1===this._verticalScrollDirection?s.scrollBy(0,-a):2===this._verticalScrollDirection&&s.scrollBy(0,a),1===this._horizontalScrollDirection?s.scrollBy(-a,0):2===this._horizontalScrollDirection&&s.scrollBy(a,0)})},this.element=Qn(t),this._document=i,this.withScrollableParents([this.element]),e.registerDropContainer(this),this._parentPositions=new LR(i),this._sortStrategy=new Bte(this.element,e),this._sortStrategy.withSortPredicate((s,a)=>this.sortPredicate(s,a,this))}dispose(){this._stopScrolling(),this._stopScrollTimers.complete(),this._viewportScrollSubscription.unsubscribe(),this.beforeStarted.complete(),this.entered.complete(),this.exited.complete(),this.dropped.complete(),this.sorted.complete(),this._activeSiblings.clear(),this._scrollNode=null,this._parentPositions.clear(),this._dragDropRegistry.removeDropContainer(this)}isDragging(){return this._isDragging}start(){this._draggingStarted(),this._notifyReceivingSiblings()}enter(t,e,i,r){this._draggingStarted(),null==r&&this.sortingDisabled&&(r=this._draggables.indexOf(t)),this._sortStrategy.enter(t,e,i,r),this._cacheParentPositions(),this._notifyReceivingSiblings(),this.entered.next({item:t,container:this,currentIndex:this.getItemIndex(t)})}exit(t){this._reset(),this.exited.next({item:t,container:this})}drop(t,e,i,r,o,s,a,l={}){this._reset(),this.dropped.next({item:t,currentIndex:e,previousIndex:i,container:this,previousContainer:r,isPointerOverContainer:o,distance:s,dropPoint:a,event:l})}withItems(t){const e=this._draggables;return this._draggables=t,t.forEach(i=>i._withDropContainer(this)),this.isDragging()&&(e.filter(r=>r.isDragging()).every(r=>-1===t.indexOf(r))?this._reset():this._sortStrategy.withItems(this._draggables)),this}withDirection(t){return this._sortStrategy.direction=t,this}connectedTo(t){return this._siblings=t.slice(),this}withOrientation(t){return this._sortStrategy.orientation=t,this}withScrollableParents(t){const e=Qn(this.element);return this._scrollableElements=-1===t.indexOf(e)?[e,...t]:t.slice(),this}getScrollableParents(){return this._scrollableElements}getItemIndex(t){return this._isDragging?this._sortStrategy.getItemIndex(t):this._draggables.indexOf(t)}isReceiving(){return this._activeSiblings.size>0}_sortItem(t,e,i,r){if(this.sortingDisabled||!this._clientRect||!PR(this._clientRect,.05,e,i))return;const o=this._sortStrategy.sort(t,e,i,r);o&&this.sorted.next({previousIndex:o.previousIndex,currentIndex:o.currentIndex,container:this,item:t})}_startScrollingIfNecessary(t,e){if(this.autoScrollDisabled)return;let i,r=0,o=0;if(this._parentPositions.positions.forEach((s,a)=>{a===this._document||!s.clientRect||i||PR(s.clientRect,.05,t,e)&&([r,o]=function Hte(n,t,e,i){const r=WR(t,i),o=$R(t,e);let s=0,a=0;if(r){const l=n.scrollTop;1===r?l>0&&(s=1):n.scrollHeight-l>n.clientHeight&&(s=2)}if(o){const l=n.scrollLeft;1===o?l>0&&(a=1):n.scrollWidth-l>n.clientWidth&&(a=2)}return[s,a]}(a,s.clientRect,t,e),(r||o)&&(i=a))}),!r&&!o){const{width:s,height:a}=this._viewportRuler.getViewportSize(),l={width:s,height:a,top:0,right:s,bottom:a,left:0};r=WR(l,e),o=$R(l,t),i=window}i&&(r!==this._verticalScrollDirection||o!==this._horizontalScrollDirection||i!==this._scrollNode)&&(this._verticalScrollDirection=r,this._horizontalScrollDirection=o,this._scrollNode=i,(r||o)&&i?this._ngZone.runOutsideAngular(this._startScrollInterval):this._stopScrolling())}_stopScrolling(){this._stopScrollTimers.next()}_draggingStarted(){const t=Qn(this.element).style;this.beforeStarted.next(),this._isDragging=!0,this._initialScrollSnap=t.msScrollSnapType||t.scrollSnapType||"",t.scrollSnapType=t.msScrollSnapType="none",this._sortStrategy.start(this._draggables),this._cacheParentPositions(),this._viewportScrollSubscription.unsubscribe(),this._listenToScrollEvents()}_cacheParentPositions(){const t=Qn(this.element);this._parentPositions.cache(this._scrollableElements),this._clientRect=this._parentPositions.positions.get(t).clientRect}_reset(){this._isDragging=!1;const t=Qn(this.element).style;t.scrollSnapType=t.msScrollSnapType=this._initialScrollSnap,this._siblings.forEach(e=>e._stopReceiving(this)),this._sortStrategy.reset(),this._stopScrolling(),this._viewportScrollSubscription.unsubscribe(),this._parentPositions.clear()}_isOverContainer(t,e){return null!=this._clientRect&&bw(this._clientRect,t,e)}_getSiblingContainerFromPosition(t,e,i){return this._siblings.find(r=>r._canReceive(t,e,i))}_canReceive(t,e,i){if(!this._clientRect||!bw(this._clientRect,e,i)||!this.enterPredicate(t,this))return!1;const r=this._getShadowRoot().elementFromPoint(e,i);if(!r)return!1;const o=Qn(this.element);return r===o||o.contains(r)}_startReceiving(t,e){const i=this._activeSiblings;!i.has(t)&&e.every(r=>this.enterPredicate(r,this)||this._draggables.indexOf(r)>-1)&&(i.add(t),this._cacheParentPositions(),this._listenToScrollEvents())}_stopReceiving(t){this._activeSiblings.delete(t),this._viewportScrollSubscription.unsubscribe()}_listenToScrollEvents(){this._viewportScrollSubscription=this._dragDropRegistry.scrolled(this._getShadowRoot()).subscribe(t=>{if(this.isDragging()){const e=this._parentPositions.handleScroll(t);e&&this._sortStrategy.updateOnScroll(e.top,e.left)}else this.isReceiving()&&this._cacheParentPositions()})}_getShadowRoot(){if(!this._cachedShadowRoot){const t=_f(Qn(this.element));this._cachedShadowRoot=t||this._document}return this._cachedShadowRoot}_notifyReceivingSiblings(){const t=this._sortStrategy.getActiveItemsSnapshot().filter(e=>e.isDragging());this._siblings.forEach(e=>e._startReceiving(this,t))}}function WR(n,t){const{top:e,bottom:i,height:r}=n,o=.05*r;return t>=e-o&&t<=e+o?1:t>=i-o&&t<=i+o?2:0}function $R(n,t){const{left:e,right:i,width:r}=n,o=.05*r;return t>=e-o&&t<=e+o?1:t>=i-o&&t<=i+o?2:0}const _g=As({passive:!1,capture:!0});let Vte=(()=>{class n{constructor(e,i){this._ngZone=e,this._dropInstances=new Set,this._dragInstances=new Set,this._activeDragInstances=[],this._globalListeners=new Map,this._draggingPredicate=r=>r.isDragging(),this.pointerMove=new N,this.pointerUp=new N,this.scroll=new N,this._preventDefaultWhileDragging=r=>{this._activeDragInstances.length>0&&r.preventDefault()},this._persistentTouchmoveListener=r=>{this._activeDragInstances.length>0&&(this._activeDragInstances.some(this._draggingPredicate)&&r.preventDefault(),this.pointerMove.next(r))},this._document=i}registerDropContainer(e){this._dropInstances.has(e)||this._dropInstances.add(e)}registerDragItem(e){this._dragInstances.add(e),1===this._dragInstances.size&&this._ngZone.runOutsideAngular(()=>{this._document.addEventListener("touchmove",this._persistentTouchmoveListener,_g)})}removeDropContainer(e){this._dropInstances.delete(e)}removeDragItem(e){this._dragInstances.delete(e),this.stopDragging(e),0===this._dragInstances.size&&this._document.removeEventListener("touchmove",this._persistentTouchmoveListener,_g)}startDragging(e,i){if(!(this._activeDragInstances.indexOf(e)>-1)&&(this._activeDragInstances.push(e),1===this._activeDragInstances.length)){const r=i.type.startsWith("touch");this._globalListeners.set(r?"touchend":"mouseup",{handler:o=>this.pointerUp.next(o),options:!0}).set("scroll",{handler:o=>this.scroll.next(o),options:!0}).set("selectstart",{handler:this._preventDefaultWhileDragging,options:_g}),r||this._globalListeners.set("mousemove",{handler:o=>this.pointerMove.next(o),options:_g}),this._ngZone.runOutsideAngular(()=>{this._globalListeners.forEach((o,s)=>{this._document.addEventListener(s,o.handler,o.options)})})}}stopDragging(e){const i=this._activeDragInstances.indexOf(e);i>-1&&(this._activeDragInstances.splice(i,1),0===this._activeDragInstances.length&&this._clearGlobalListeners())}isDragging(e){return this._activeDragInstances.indexOf(e)>-1}scrolled(e){const i=[this.scroll];return e&&e!==this._document&&i.push(new b(r=>this._ngZone.runOutsideAngular(()=>{const s=a=>{this._activeDragInstances.length&&r.next(a)};return e.addEventListener("scroll",s,!0),()=>{e.removeEventListener("scroll",s,!0)}}))),On(...i)}ngOnDestroy(){this._dragInstances.forEach(e=>this.removeDragItem(e)),this._dropInstances.forEach(e=>this.removeDropContainer(e)),this._clearGlobalListeners(),this.pointerMove.complete(),this.pointerUp.complete()}_clearGlobalListeners(){this._globalListeners.forEach((e,i)=>{this._document.removeEventListener(i,e.handler,e.options)}),this._globalListeners.clear()}}return n.\u0275fac=function(e){return new(e||n)(M(et),M(ft))},n.\u0275prov=ge({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const Ute={dragStartThreshold:5,pointerDirectionChangeThreshold:5};let qte=(()=>{class n{constructor(e,i,r,o){this._document=e,this._ngZone=i,this._viewportRuler=r,this._dragDropRegistry=o}createDrag(e,i=Ute){return new Nte(e,i,this._document,this._ngZone,this._viewportRuler,this._dragDropRegistry)}createDropList(e){return new jte(e,this._dragDropRegistry,this._document,this._ngZone,this._viewportRuler)}}return n.\u0275fac=function(e){return new(e||n)(M(ft),M(et),M(zo),M(Vte))},n.\u0275prov=ge({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),zte=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=ht({type:n}),n.\u0275inj=dt({providers:[qte],imports:[Tc]}),n})();const Gte=["webInp"];function Wte(n,t){if(1&n&&(g(0,"p"),j(1),_()),2&n){const e=C(2);f(1),qe(" ",e.globals.languageConfLocal.webIntLogout," ")}}function $te(n,t){if(1&n){const e=Ie();g(0,"div",1)(1,"div",2)(2,"h1"),j(3),_()(),g(4,"div",3),W("click",function(){return J(e),Z(C().closeModal())}),be(5,"div",4),_()(),g(6,"div",5)(7,"div",6),j(8),H(9,Wte,2,1,"p",7),_(),g(10,"div",8)(11,"input",9),W("ngModelChange",function(r){return J(e),Z(C().inputValue=r)})("keyup.enter",function(){return J(e),Z(C().confirmAction())}),_(),g(12,"input",10),W("click",function(){return J(e),Z(C().confirmAction())}),_()()()}if(2&n){const e=C();f(3),ve(e.globals.languageConfLocal.webIntInputTitle),f(2),v("ngStyle",e.modCloseImage),f(3),qe(" ",e.globals.languageConfLocal.webIntInputText," "),f(1),v("ngIf",e.connectionService.isLoggedIn),f(2),v("ngModel",e.inputValue)}}let Kte=(()=>{class n{constructor(e,i,r,o,s,a){this.messageService=e,this.sanitize=i,this.loader=r,this.connectionService=o,this.modal=s,this.globals=a,this.modCloseImage={background:"no-repeat url(assets/images/widget_settings.png)"},this.lcLocal=this.globals.languageConfLocal,this.inputValue="",null!=window.localStorage.getItem("webInt")&&(this.connectionService.webIntModalOpenRef=this.open.bind(this))}ngOnInit(){null!=window.localStorage.getItem("webInt")?(this.inputValue=window.localStorage.getItem("webInt"),this.inputValue=encodeURI(this.inputValue)):(this.globals.showSpinner(),setTimeout(()=>{this.globals.hideSpinner(),this.connectionService.webIntModalOpenRef=this.open.bind(this)},2e3))}open(){return this.modal.open(this.modalTemp,{panelClass:"modalOverlay",autoFocus:!1,maxHeight:"90%"})}confirmAction(){this.checkInput(this.sanitize.sanitizeInput(this.inputValue,4)),this.globals.activeWindow=this.globals.loggedIn?"userSettings":"main"}closeModal(){this.modal.closeAll()}checkInput(e){var i=this;return Ae(function*(){const r=i.globals.system;if(e)switch(e=encodeURI(e),e.toLowerCase().startsWith("https")||(e="https://"+e),e.endsWith("/")||(e+="/"),i.globals.setSystemFromURL(e),i.globals.system){case"gi":"gi"!==r&&"start"!==r&&(yield i.connectionService.logout(!0)),i.connectionService.setSystem("gi");break;case"ba":"ba"!==r&&"start"!==r&&(yield i.connectionService.logout(!0)),i.connectionService.setSystem("ba")}e!==i.globals.webInt?null==e||""===e?i.messageService.showError(i.globals.languageConfLocal.webIntInvalid):e.includes("http:")?i.messageService.showWarning(i.globals.languageConfLocal.webIntHttp):(yield i.connectionService.checkWebInt(e))&&("ba"===i.globals.system&&i.connectionService.reload(),i.connectionService.connect().subscribe(()=>{i.connectionService.reload()})):i.closeModal()})()}}return n.\u0275fac=function(e){return new(e||n)(p(tn),p(wd),p(Fc),p(In),p(Wo),p(ot))},n.\u0275cmp=Ue({type:n,selectors:[["app-webint-input"]],viewQuery:function(e,i){if(1&e&&De(Gte,7),2&e){let r;ce(r=ue())&&(i.modalTemp=r.first)}},decls:2,vars:0,consts:[["webInp",""],[1,"modalHeader"],[1,"modalHeaderText"],["ngbAutoFocus","",1,"modalHeaderClose",3,"click"],[1,"modalCloseIcon",3,"ngStyle"],[1,"modalBody"],[1,"webIntText"],[4,"ngIf"],["id","webIntInputWrapper",1,"flex"],["matInput","","type","text","id","webIntInputField",3,"ngModel","ngModelChange","keyup.enter"],["type","button","id","webIntConfirmButton","value","OK",1,"buttonMiddle","noFloat",3,"click"]],template:function(e,i){1&e&&H(0,$te,13,5,"ng-template",null,0,Sn)},dependencies:[pn,ra,Ar,Kr,wo,Mr],styles:[".webIntText[_ngcontent-%COMP%]{white-space:pre-line;font-weight:700;text-align:center}#webIntInputField[_ngcontent-%COMP%]{width:230px;outline:none;margin-right:10px;border:1px solid rgba(0,0,0,.2);flex-grow:1}#webIntConfirmButton[_ngcontent-%COMP%]{height:25px!important;top:-1px;position:relative}#webIntInputWrapper[_ngcontent-%COMP%]{text-align:center;margin-bottom:20px}"]}),n})(),Yte=(()=>{class n{constructor(e,i){this.domSanitizer=e,this.cdRef=i,this.sessionSet=!1,localStorage.getItem("webInt")}ngOnInit(){Office.onReady().then(()=>{Office.context.ui.addHandlerAsync(Office.EventType.DialogParentMessageReceived,this.onMessageFromParent.bind(this)),Office.context.ui.messageParent("ready")})}onMessageFromParent(e){console.log("ON MESSAGE"),"message"in e&&(console.log("On Message"),console.log(this.webInt),console.log("Got Message"),console.log("TEST:"),console.log(e),this.webInt=e.message,console.log("WEB INT CHANGED"),console.log(this.webInt),this.sessionSet=!0,this.redirectURL="https://localhost:3000/businessmail?redirect",window.open(e.message+"?isOutlookClient=true","_self"))}}return n.\u0275fac=function(e){return new(e||n)(p(nd),p(St))},n.\u0275cmp=Ue({type:n,selectors:[["app-redirect"]],decls:2,vars:0,template:function(e,i){1&e&&(g(0,"p"),j(1,"Redirecting..."),_())}}),n})();const ww=["name","companyName","birthdate","-BLANK-","phone","cellphone","homephone","-BLANK-","homepage","skype","pointer","companyPointer","isCompany","additional"];function KR(n,t){const e=ww.indexOf(n.key),i=ww.indexOf(t.key);return-1===e&&-1===i?0:-1===e?1:-1===i||ei?1:0}(n=>{const t=[];ww.forEach((e,i)=>{e.includes("-BLANK-")&&t.push(i)})})();let su=(()=>{class n{constructor(e,i,r){this.waitlist=e,this.messageService=i,this.globals=r,this.subscriptions={}}waitForDisplayChanges(e,i,r){this.initKey(e);for(const o of i)this.subscriptions[e].push(this.changeAttachDisplay(o).subscribe(()=>{r.detectChanges()}))}unsubscribeAll(e){if(this.subscriptions[e])for(const i of this.subscriptions[e])i.unsubscribe()}showInfoSnack(){this.messageService.showInfo(this.globals.languageConfLocal.attachments)}get getInfoText(){return this.globals.languageConfLocal.attachments}initKey(e){null==this.subscriptions[e]&&(this.subscriptions[e]=[])}changeAttachDisplay(e){return new b(i=>this.waitlist.addToWaitList(e,i))}}return n.\u0275fac=function(e){return new(e||n)(M(Ri),M(tn),M(ot))},n.\u0275prov=ge({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const Qte=["searchExpansionPanel"],Jte=["searchTextInput"];function Zte(n,t){if(1&n){const e=Ie();g(0,"span",17),W("click",function(r){return J(e),Z(C(2).clearTextClicked(r))}),j(1,"cancel"),_()}}function Xte(n,t){1&n&&(g(0,"span",18),j(1,"expand_less"),_())}function ene(n,t){1&n&&(g(0,"span",18),j(1,"search"),_())}function tne(n,t){if(1&n&&(g(0,"mat-option",22),j(1),_()),2&n){const e=t.$implicit;v("value",e.value),f(1),ve(e.viewValue)}}function nne(n,t){if(1&n){const e=Ie();g(0,"mat-form-field",19)(1,"mat-label"),j(2),_(),g(3,"mat-select",20),W("valueChange",function(r){return J(e),Z(C(2).selectedDB=r)})("selectionChange",function(){return J(e),Z(C(2).selectedDBChanged())}),H(4,tne,2,2,"mat-option",21),_()()}if(2&n){const e=C(2);f(2),ve(e.globals.languageConfLocal.addressDatabase),f(1),v("value",e.selectedDB),f(1),v("ngForOf",e.databases)}}function ine(n,t){if(1&n&&(g(0,"div",23),j(1),_()),2&n){const e=C(2);f(1),qe(" ",e.globals.languageConfLocal.recentlyUsed," ")}}function rne(n,t){1&n&&be(0,"img",29),2&n&&v("src",C().$implicit.imageBase64,En)}function one(n,t){if(1&n&&be(0,"img",29),2&n){const e=C().$implicit;v("src",C(2).datasource.getImageSrc(e.image),En)}}function sne(n,t){if(1&n){const e=Ie();g(0,"div",24),W("click",function(r){return J(e),Z(C(2).clickedElement(r))})("dblclick",function(r){return J(e),Z(C(2).dblClickedElement(r))}),H(1,rne,1,1,"img",25),H(2,one,1,1,"img",25),g(3,"div",26)(4,"span",27),j(5),_(),be(6,"br"),g(7,"span",28),j(8),_(),be(9,"br"),g(10,"span",28),j(11),_(),be(12,"br"),_()()}if(2&n){const e=t.$implicit,i=t.index,r=C(2);_t("title",r.htmlHelp.parseHtmlEntities(e.lineOne)),rt("data-fdme",e.fdMe)("data-email",e.email)("data-order",i+1),f(1),v("ngIf",e.imageBase64),f(1),v("ngIf",!e.imageBase64),f(2),_t("title",r.htmlHelp.parseHtmlEntities(e.lineOne+" <"+e.email+">")),f(1),qe(" ",r.htmlHelp.parseHtmlEntities(e.lineOne+" <"+e.email+">")," "),f(2),_t("title",r.htmlHelp.parseHtmlEntities(e.lineTwo)),f(1),ve(r.htmlHelp.parseHtmlEntities(e.lineTwo)),f(2),_t("title",r.htmlHelp.parseHtmlEntities(e.lineThree)),f(1),ve(r.htmlHelp.parseHtmlEntities(e.lineThree))}}function ane(n,t){if(1&n){const e=Ie();g(0,"div",30)(1,"button",31),W("click",function(){return J(e),Z(C(2).addSelectedTo("requiredAttendees"))}),j(2),_(),g(3,"button",31),W("click",function(){return J(e),Z(C(2).addSelectedTo("optionalAttendees"))}),j(4),_()()}if(2&n){const e=C(2);f(2),ve(e.globals.languageConfLocal.requiredAttendee),f(2),ve(e.globals.languageConfLocal.optionalAttendee)}}function lne(n,t){if(1&n){const e=Ie();g(0,"div",30)(1,"button",31),W("click",function(){return J(e),Z(C(2).addSelectedTo("to"))}),j(2),_(),g(3,"button",31),W("click",function(){return J(e),Z(C(2).addSelectedTo("cc"))}),j(4,"Cc"),_(),g(5,"button",31),W("click",function(){return J(e),Z(C(2).addSelectedTo("bcc"))}),j(6,"Bcc"),_()()}if(2&n){const e=C(2);f(2),ve(e.globals.languageConfLocal.to)}}function cne(n,t){if(1&n){const e=Ie();g(0,"div",32)(1,"div",33),W("click",function(r){return J(e),Z(C(2).addSelectedTo("requiredAttendees",r))}),j(2),_(),g(3,"div",33),W("click",function(r){return J(e),Z(C(2).addSelectedTo("optionalAttendees",r))}),j(4),_()()}if(2&n){const e=C(2);f(2),qe(" ",e.globals.languageConfLocal.requiredAttendee,""),f(2),qe(" ",e.globals.languageConfLocal.optionalAttendee,"")}}function une(n,t){if(1&n){const e=Ie();g(0,"div",32)(1,"div",33),W("click",function(r){return J(e),Z(C(2).addSelectedTo("to",r))}),j(2),_(),g(3,"div",33),W("click",function(r){return J(e),Z(C(2).addSelectedTo("cc",r))}),j(4,"Cc"),_(),g(5,"div",33),W("click",function(r){return J(e),Z(C(2).addSelectedTo("bcc",r))}),j(6,"Bcc"),_()()}if(2&n){const e=C(2);f(2),qe(" ",e.globals.languageConfLocal.to,"")}}function dne(n,t){if(1&n){const e=Ie();g(0,"div",1),be(1,"br"),g(2,"mat-expansion-panel",2,3),W("closed",function(){return J(e),Z(C().searchResultsPanelClosed())})("opened",function(){return J(e),Z(C().searchResultsPanelOpened())}),g(4,"mat-expansion-panel-header")(5,"mat-panel-title",4)(6,"mat-form-field",5)(7,"mat-label",6),j(8),_(),g(9,"input",7,8),W("keydown.Space",function(r){return J(e),Z(C().noCloseOnSpace(r))})("input",function(r){return J(e),Z(C().textChanged(r))})("focus",function(r){return J(e),Z(C().searchInputFocused(r))})("click",function(r){return J(e),Z(C().searchInputClicked(r))})("ngModelChange",function(r){return J(e),Z(C().textInSearchInput=r)}),_()(),H(11,Zte,2,0,"span",9),H(12,Xte,2,0,"span",10),H(13,ene,2,0,"span",10),_()(),H(14,nne,5,3,"mat-form-field",11),g(15,"div",12),H(16,ine,2,1,"div",13),H(17,sne,13,12,"div",14),_(),H(18,ane,5,2,"div",15),H(19,lne,7,1,"div",15),H(20,cne,5,2,"div",16),H(21,une,7,1,"div",16),_()()}if(2&n){const e=Yt(10),i=C();f(8),ve(i.globals.languageConfLocal.searchInCRMForContacts),f(1),v("ngModel",i.textInSearchInput),f(2),v("ngIf",e.value.length>0),f(1),v("ngIf",i.searchPanelExpanded),f(1),v("ngIf",!i.searchPanelExpanded),f(1),v("ngIf",null!=i.databases&&i.databases.length>0),f(2),v("ngIf",i.showRecentlyUsed),f(1),v("ngForOf",i.searchResultsArray),f(1),v("ngIf",i.isAppointment),f(1),v("ngIf",!i.isAppointment),f(1),v("ngIf",i.isAppointment),f(1),v("ngIf",!i.isAppointment)}}let hne=(()=>{class n{constructor(e,i,r,o,s,a,l,c,u,d){this.globals=e,this.messageService=i,this.mailLoadedService=r,this.ref=o,this.translate=s,this.waitList=a,this.datasource=l,this.lsm=c,this.dps=u,this.htmlHelp=d,this.compareFunc=KR,this.searchResultsArray=[],this.databases=[],this.selection=new nl(!1),this.showRecentlyUsed=!1,this.initialDBSelection=!1,this.events=["contextmenu","touchstart"],this.lastTap=0,this.gotFocused=!1,this.addressFetched=!1,this.addresses=[],this.subscriptions=[],this.currentAvatarURL="",this.filteredAdditionalValues={},this.commonPointerData={},this.docImage={background:"transparent no-repeat url(assets/images/icons_business_mail.png)"},this.attachRdy=!1,this.attachDelete=!1}ngOnInit(){let e=Office.context.mailbox.item;e&&(this.isCompose=null==e.itemId,this.isAppointment="appointment"===e.itemType,this.isReadMode=void 0===e.getItemIdAsync||void 0===typeof e.getItemIdAsync),this.events.forEach(i=>{document.addEventListener(i,r=>{if(null==r.srcElement.closest("#resultsContainer"))return;let o=document.getElementsByClassName("resultListEntry");if(this.countSelected(o)<=1){this.deselectAll(o);let y=r.srcElement.closest(".resultListEntry");this.selectOneElement(y)}r.preventDefault();let a=document.getElementById("context-menu");if(!a)return;let l=r.clientX||r.touches[0].clientX,c=r.clientY||r.touches[0].clientY,u=a.getBoundingClientRect().height,d=a.getBoundingClientRect().width,h=window.innerWidth,m=window.innerHeight;h-l<=200?(a.style.borderRadius="5px 0 5px 5px",a.style.left=h-d+"px",a.style.top=c+"px",m-c<=200&&(a.style.top=c-u+"px",a.style.borderRadius="5px 5px 0 5px")):(a.style.borderRadius="0 5px 5px 5px",a.style.left=l+"px",a.style.top=c+"px",m-c<=200&&(a.style.top=c-u+"px",a.style.borderRadius="5px 5px 5px 0")),a.style.visibility="visible"},{passive:!1})}),document.addEventListener("touchend",i=>{document.getElementById("context-menu")}),document.addEventListener("click",i=>{let r=document.getElementById("context-menu");!r||(r.style.visibility="hidden")}),this.getContactDBs(),this.dps.addThingToClose("contactSearch",()=>{this.searchExpansionPanel?.close()})}ngOnDestroy(){for(const e of this.subscriptions)e.unsubscribe()}detectChanges(){this.ref.detectChanges()}waitForConnector(){return new b(e=>{this.waitList.addToWaitList("connector",e)})}textChanged(e){this.textInSearchInput.length>0&&this.searchExpansionPanel.open(),this.getContacts()}clearTextClicked(e){this.textInSearchInput="",this.searchPanelExpanded&&(this.getContacts(),this.searchTextInput.nativeElement.focus()),e.stopPropagation()}addSelectedTo(e,i=null){let r=Office.context.mailbox.item;if(r){let o=document.getElementsByClassName("resultListEntry"),s=this.countSelected(o);if(0===s)return void this.translate.get("Nothing is selected!").subscribe(a=>{this.messageService.showWarning(this.globals.languageConfLocal.NothingIsSelected,void 0)});for(let a=0;a{s.status===Office.AsyncResultStatus.Failed?this.messageService.showError("Not able to read outlook item.",void 0):0===s.value.filter(l=>l.emailAddress.toLowerCase()===i.dataset.email.toLowerCase()).length&&(this.datasource.addToRecentlyUsed(i.dataset.fdme),e[r].addAsync([{displayName:i.title,emailAddress:i.dataset.email}]))})}clickedElement(e){let i=document.getElementsByClassName("resultListEntry"),r=this.countSelected(i),o=e.currentTarget,s=o.dataset.order-1;if(!e.ctrlKey&&!e.shiftKey&&this.deselectAll(i,s),e.shiftKey){let a=this.lastSelected,l=s;a>l&&(a=s,l=this.lastSelected),this.selectBetween(i,a,l)}else"true"===o.dataset.selected?this.deselectOneElement(o):(this.selectOneElement(o),this.lastSelected=o.dataset.order-1),!e.ctrlKey&&r>1&&(this.selectOneElement(o),this.lastSelected=o.dataset.order-1)}dblClickedElement(e){let r=Office.context.mailbox.item;this.addOneContact(r,e.currentTarget,this.isAppointment?"requiredAttendees":"to",!1)}deselectAll(e,i=null){for(let r=0;r{this.selectOneElement(e[o])},10)}countSelected(e){let i=0;for(let r=0;r{console.log("DBs:",e),this.filterForContacts(e)}})}filterForContacts(e){const i={},r=["Contact","Leads","Organization"];for(const o in e){if("GeOfficeAliases"===o)continue;const s=e[o].type;Array.isArray(s)?s.some(a=>r.includes(a))&&(i[o]=e[o].title):"string"==typeof s?r.includes(s)&&(i[o]=e[o].title):console.warn(`Unerwarteter Typ f\xfcr "type" in Alias ${o}:`,s)}this.generateSelectionArr(i)}generateSelectionArr(e){this.databases=[];for(const i in e)Object.prototype.hasOwnProperty.call(e,i)&&this.databases.push({value:i,viewValue:e[i]});if(console.log(this.databases),this.databases.length>0){let i=this.lsm.getValue(Zt.contactDB);null!=i?this.databases.forEach(r=>{r.value===i&&(this.selectedDB=r.value)}):this.selectedDB=this.databases[0].value}this.getContacts()}selectedDBChanged(){this.textInSearchInput="",this.getContacts(),this.initialDBSelection?this.initialDBSelection=!1:this.lsm.setValue(Zt.contactDB,this.selectedDB)}getContacts(){"ba"===this.globals.system&&(this.showRecentlyUsed=!this.textInSearchInput||0===this.textInSearchInput?.length),this.datasource.fetchSearch(this.selectedDB,void 0,this.textInSearchInput).subscribe({next:e=>{this.searchResultsArray=this.datasource.handleSearchResult(e,Yo.contacts)}})}searchResultsPanelOpened(){let e=this.searchExpansionPanel._body.nativeElement.childNodes[0];e.style.paddingRight="3px",e.style.paddingLeft="3px",e.style.paddingBottom="3px",e.style.backgroundColor="#ffffff",e.style.zIndex=5,this.searchPanelExpanded=!0,this.searchTextInput.nativeElement.focus()}searchResultsPanelClosed(){this.searchPanelExpanded=!1}searchInputFocused(e){setTimeout(()=>{this.searchExpansionPanel.open()},100),this.gotFocused=!0}searchInputClicked(e){this.gotFocused&&e.stopPropagation(),this.gotFocused=!1}noCloseOnSpace(e){e.stopPropagation()}getBase64(e){return"base64, "+e}}return n.\u0275fac=function(e){return new(e||n)(p(ot),p(tn),p(su),p(St),p(Ut),p(Ri),p(Bi),p(Mi),p(is),p(Vs))},n.\u0275cmp=Ue({type:n,selectors:[["app-contact-selector"]],viewQuery:function(e,i){if(1&e&&(De(Qte,5),De(Jte,5)),2&e){let r;ce(r=ue())&&(i.searchExpansionPanel=r.first),ce(r=ue())&&(i.searchTextInput=r.first)}},decls:1,vars:1,consts:[["class","contactSelectorDiv",4,"ngIf"],[1,"contactSelectorDiv"],["hideToggle","",1,"searchResultsPanel","mat-elevation-z0",3,"closed","opened"],["searchExpansionPanel",""],[1,"searchInCRMHeader"],[2,"width","100%","vertical-align","bottom"],[2,"font-size","small"],["matInput","","type","search","id","searchText","name","searchText",3,"ngModel","keydown.Space","input","focus","click","ngModelChange"],["searchTextInput",""],["class","material-symbols-rounded clearIcon",3,"click",4,"ngIf"],["class","material-symbols-rounded searchIcon",4,"ngIf"],["class","databaseSearchSelect","appearance","standard",4,"ngIf"],["id","resultsContainer",1,"prevent-select"],["class","recentlyUsed",4,"ngIf"],["class","itemListEntry resultListEntry",3,"title","click","dblclick",4,"ngFor","ngForOf"],["class","btn-group",4,"ngIf"],["id","context-menu",4,"ngIf"],[1,"material-symbols-rounded","clearIcon",3,"click"],[1,"material-symbols-rounded","searchIcon"],["appearance","standard",1,"databaseSearchSelect"],[3,"value","valueChange","selectionChange"],[3,"value",4,"ngFor","ngForOf"],[3,"value"],[1,"recentlyUsed"],[1,"itemListEntry","resultListEntry",3,"title","click","dblclick"],["class","normalImage",3,"src",4,"ngIf"],[1,"resultsLineWrapper"],[1,"listEntryItemMainLine",3,"title"],[1,"listEntryItemSubLine",3,"title"],[1,"normalImage",3,"src"],[1,"btn-group"],[3,"click"],["id","context-menu"],[1,"item",3,"click"]],template:function(e,i){1&e&&H(0,dne,22,12,"div",0),2&e&&v("ngIf",!i.isReadMode)},dependencies:[zn,pn,Ar,Kr,wo,Ir,Pi,Ko,cr,Mr,gw,CR,wR],styles:['.itemListEntry[_ngcontent-%COMP%]{line-height:1.3!important;white-space:nowrap;display:flex;padding:4px 0;grid-gap:4px}.itemListEntry[_ngcontent-%COMP%] > div[_ngcontent-%COMP%], .itemListEntry[_ngcontent-%COMP%] a[_ngcontent-%COMP%], .itemListEntry[_ngcontent-%COMP%] a[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{display:block;overflow:hidden}.itemListEntry[_ngcontent-%COMP%] > div[_ngcontent-%COMP%] > [class^=listEntryItem][_ngcontent-%COMP%], .itemListEntry[_ngcontent-%COMP%] a[_ngcontent-%COMP%] > [class^=listEntryItem][_ngcontent-%COMP%], .itemListEntry[_ngcontent-%COMP%] a[_ngcontent-%COMP%] > div[_ngcontent-%COMP%] > [class^=listEntryItem][_ngcontent-%COMP%]{overflow:hidden;text-overflow:ellipsis;max-width:100%}.itemListEntry[_ngcontent-%COMP%]:not(:last-child){border-bottom:1px solid #e0e0e0}.itemListEntry[_ngcontent-%COMP%]:hover:not([data-selected=true]){background-color:#e0e0e0;cursor:pointer}.itemListEntry[_ngcontent-%COMP%]:hover:not([data-selected=true]) .resultsLineWrapper[_ngcontent-%COMP%]{background-color:#e0e0e0}[data-selected=true].itemListEntry[_ngcontent-%COMP%], [data-selected=true].itemListEntry[_ngcontent-%COMP%] .resultsLineWrapper[_ngcontent-%COMP%]{background-color:#d3d3d3}.itemListEntry[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{height:24px;width:24px;box-sizing:content-box;padding:1px 0 0!important}.itemListEntry[_ngcontent-%COMP%] .resultsLineWrapper[_ngcontent-%COMP%]{overflow:hidden;text-overflow:ellipsis}#resultsContainer[_ngcontent-%COMP%]{height:50vh;overflow-y:auto}#resultsContainer[_ngcontent-%COMP%] > .recentlyUsed[_ngcontent-%COMP%]{width:100%;text-align:center;color:#a9a9a9;padding-bottom:8px;border-bottom:1px solid #e0e0e0}#resultsContainer[_ngcontent-%COMP%] > .recentlyUsed[_ngcontent-%COMP%] + .itemListEntry[_ngcontent-%COMP%]{padding-top:8px}.resultsLineWrapper[_ngcontent-%COMP%]{width:100%;overflow:hidden;text-overflow:ellipsis}.prevent-select[_ngcontent-%COMP%]{-webkit-user-select:none;user-select:none}#context-menu[_ngcontent-%COMP%]{background-color:#fff;box-shadow:0 0 20px #25282a38;color:#1f194c;width:10em;padding:.8em .6em;font-size:13px;position:fixed;visibility:hidden}#context-menu[_ngcontent-%COMP%] .item[_ngcontent-%COMP%]{padding:.3em 1.2em}#context-menu[_ngcontent-%COMP%] .item[_ngcontent-%COMP%]:hover{background-color:#e0e0e0;cursor:pointer}.btn-group[_ngcontent-%COMP%]{width:100%;padding-top:3px}.btn-group[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{background-color:#bfbfbf;border:1px solid;padding:10px 24px;cursor:pointer;float:left;width:100%}.btn-group[_ngcontent-%COMP%] [_ngcontent-%COMP%]:hover{background-color:#5f5f5f}.btn-group[_ngcontent-%COMP%]:after{content:"";clear:both;display:table}.btn-group[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:first-child{border-radius:5px 0 0 5px}.btn-group[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child{border-radius:0 5px 5px 0}.btn-group[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:not(:last-child){border-right:none}#searchText[_ngcontent-%COMP%]{font-size:12px}.mat-expansion-panel-header[_ngcontent-%COMP%]{height:4.5em;font-size:small}.mat-expansion-panel[_ngcontent-%COMP%] .mat-expanded[_ngcontent-%COMP%]{border:#4d4d4d;border-width:3px}.searchResultsPanel[_ngcontent-%COMP%]{width:calc(100% - 1px);z-index:4;border-radius:5px}.contactSelectorDiv[_ngcontent-%COMP%]{width:100%;height:-moz-fit-content;height:fit-content}.mat-expansion-panel-header-title[_ngcontent-%COMP%]{flex-direction:column;align-items:start;margin-right:0!important}mat-expansion-panel-header[_ngcontent-%COMP%]{padding:0!important}.mat-expansion-panel-header[_ngcontent-%COMP%]:hover{background-color:transparent!important}.searchIcon[_ngcontent-%COMP%]{position:absolute;right:3px;bottom:22px}.clearIcon[_ngcontent-%COMP%]{position:absolute;right:27px;bottom:22px}.databaseSearchSelect[_ngcontent-%COMP%]{width:100%}.databaseSearchSelect[_ngcontent-%COMP%] + .searchResultsPanel[_ngcontent-%COMP%]{margin-top:-16px}']}),n})();var El=(()=>(function(n){n[n.activity=0]="activity"}(El||(El={})),El))();let pne=(()=>{class n{constructor(e){this.globals=e}getImgUrl(e){return this.globals.webInt+e}getLocalImgUrl(e,i){if(i)return"assets/images/defaultCompany_80x104.png";if(null!=e)switch(e.toLowerCase()){case"herr":case"mr":case"mister":case"male":return"assets/images/defaultMan_80x104.png";case"frau":case"mrs":case"ms":case"miss":case"female":return"assets/images/defaultWoman_80x104.png"}return"assets/images/defaultUnisex_80x104.png"}getViewImgFileName(e){return"vwicn"+e.toString().padStart(3,"0")+".png"}getViewIconUrl(e){return this.getImgUrl(this.getViewImgFileName(e))}}return n.\u0275fac=function(e){return new(e||n)(M(ot))},n.\u0275prov=ge({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const fne=["selectedContact"],mne=["firstDocumentDestination"],gne=["secondDocumentDestination"],_ne=["docDestSelector"];function vne(n,t){if(1&n&&(g(0,"div",12),j(1),_()),2&n){const e=C();v("title",e.currentEmailSubject),f(1),qe("",e.currentEmailSubject,"\n")}}function yne(n,t){if(1&n&&(xi(0),j(1),Ii()),2&n){const e=C(2);f(1),qe(" ",e.globals.languageConfLocal.documentButtonTooltipOff," ")}}function bne(n,t){1&n&&j(0),2&n&&qe(" ",C(2).globals.languageConfLocal.documentVerb," ")}function Cne(n,t){if(1&n){const e=Ie();g(0,"button",13),W("click",function(){return J(e),Z(C().documentItem())}),H(1,yne,2,1,"ng-container",14),H(2,bne,1,1,"ng-template",null,15,Sn),_()}if(2&n){const e=Yt(3),i=C();v("disabled",i.noneSelected&&0===i.globals.addressActivities.documentsAsDestinations.length||0===i.globals.addressActivities.documentsAsDestinations.length&&!i.checkboxChecker)("title",i.noneSelected&&0===i.globals.addressActivities.documentsAsDestinations.length||0===i.globals.addressActivities.documentsAsDestinations.length&&!i.checkboxChecker?i.globals.languageConfLocal.documentButtonTooltipOff:i.documentButtonTooltip),f(1),v("ngIf",i.noneSelected&&0===i.globals.addressActivities.documentsAsDestinations.length||0===i.globals.addressActivities.documentsAsDestinations.length&&!i.checkboxChecker)("ngIfElse",e)}}function wne(n,t){if(1&n){const e=Ie();g(0,"button",16),W("click",function(){return J(e),Z(C().updateItem())}),j(1),_()}if(2&n){const e=C();v("title",e.updateButtonTooltip),f(1),ve(e.globals.languageConfLocal.updateVerb)}}function Ene(n,t){if(1&n&&(g(0,"mat-option",17),j(1),_()),2&n){const e=C();f(1),qe(" ",e.globals.languageConfLocal.doNotDocument," ")}}function Dne(n,t){if(1&n&&(g(0,"mat-option",20)(1,"div",21),j(2),_(),g(3,"div",22),j(4),_()()),2&n){const e=t.$implicit;v("value",e.email),f(2),ve(e.display),f(2),ve(e.email)}}function Sne(n,t){if(1&n&&(g(0,"mat-optgroup",18),H(1,Dne,5,3,"mat-option",19),_()),2&n){const e=C();v("label",e.primaryRecipients),f(1),v("ngForOf",e.addresses)("ngForTrackBy",e.tracker)}}function Ane(n,t){if(1&n&&(g(0,"mat-option",20)(1,"div",21),j(2),_(),g(3,"div",22),j(4),_()()),2&n){const e=t.$implicit;v("value",e.email),f(2),ve(e.display),f(2),ve(e.email)}}function Tne(n,t){if(1&n&&(g(0,"mat-optgroup",18),H(1,Ane,5,3,"mat-option",19),_()),2&n){const e=C();v("label",e.secondaryRecipients),f(1),v("ngForOf",e.addresses2nd)("ngForTrackBy",e.tracker)}}function xne(n,t){if(1&n&&(g(0,"mat-optgroup",18)(1,"mat-option",20)(2,"div",21),j(3),_(),g(4,"div",22),j(5),_()()()),2&n){const e=C();v("label",e.theOwnerText),f(1),v("value",e.theSender.email),f(2),ve(e.theSender.display),f(2),ve(e.theSender.email)}}function Ine(n,t){if(1&n&&(g(0,"mat-optgroup",18)(1,"mat-option",20)(2,"div",21),j(3),_(),g(4,"div",22),j(5),_()()()),2&n){const e=C();v("label",e.theAssignedText),f(1),v("value",e.theAssignee.email),f(2),ve(e.theAssignee.display),f(2),ve(e.theAssignee.email)}}function Mne(n,t){if(1&n&&(g(0,"small"),j(1),_()),2&n){const e=C().$implicit;f(1),qe(" (",e.dbTitle,")")}}function kne(n,t){if(1&n){const e=Ie();g(0,"button",39),W("valueChange",function(r){return Z(J(e).$implicit.pointer=r)})("click",function(){const o=J(e).$implicit;return Z(C(3).subdestinationClick(o.pointer))}),g(1,"span",40),j(2),H(3,Mne,2,1,"small",9),_()()}if(2&n){const e=t.$implicit,i=C(3);v("value",e.pointer)("ngClass",e.pointer===i.displayedDestination.pointer?"selectedDestination":""),f(1),v("title",e.name+(e.dbTitle?" ("+e.dbTitle+")":"")),f(1),zr("",e.name,"",e.companyName?" ("+e.companyName+")":""," "),f(1),v("ngIf",e.dbTitle)}}function Rne(n,t){if(1&n&&(g(0,"div",34)(1,"button",35),be(2,"img",36),_(),g(3,"mat-menu",null,37),H(5,kne,4,6,"button",38),_()()),2&n){const e=Yt(4),i=C(2);f(1),v("matBadge",i.destinationsToDisplay.length)("matMenuTriggerFor",e),f(1),v("src",i.currentAvatarURL,En)("title",i.globals.languageConfLocal.showContactsList),f(3),v("ngForOf",i.destinationsToDisplay)}}function One(n,t){if(1&n&&(g(0,"div",34),be(1,"img",41),_()),2&n){const e=C(2);f(1),v("src",e.currentAvatarURL,En)}}function Pne(n,t){if(1&n){const e=Ie();g(0,"div",42),W("click",function(){J(e);const r=C(2);return Z(r.datasource.addDocumentLinkToMail(r.displayedDestination))}),g(1,"span",43),j(2,"link"),_()()}if(2&n){const e=C(2);f(1),v("title",e.globals.languageConfLocal.addLinkTextToMail)}}function Lne(n,t){if(1&n&&(g(0,"a",44),j(1),_()),2&n){const e=C(2);v("href",e.displayedDestination.parentUrl,En)("title",e.displayedDestination.companyName),f(1),ve(e.displayedDestination.companyName)}}function Nne(n,t){if(1&n){const e=Ie();g(0,"div",42),W("click",function(){J(e);const r=C(2);return Z(r.datasource.addDocumentLinkToMail(r.displayedDestination,r.displayedDestination.companyName))}),g(1,"span",43),j(2,"link"),_()()}if(2&n){const e=C(2);f(1),v("title",e.globals.languageConfLocal.addLinkTextToMail)}}function Fne(n,t){if(1&n){const e=Ie();g(0,"mat-checkbox",29,45),W("change",function(r){return J(e),Z(C(2).destinationSelectorClicked(r))}),_()}if(2&n){const e=C(2);v("name",e.displayedDestination.companyPointer)("checked",e.initSelectedDoc&&e.displayedDestination.companyPointer===e.initSelectedDoc)}}function Bne(n,t){if(1&n&&(g(0,"div")(1,"span",46),j(2,"cake"),_(),g(3,"span",47),j(4),_()()),2&n){const e=C(2);f(4),ve(e.displayedDestination.additional.birthdate)}}function jne(n,t){if(1&n){const e=Ie();g(0,"div",51),W("click",function(){J(e);const r=C(3);return Z(r.datasource.addDocumentLinkToMail(r.displayedDestination,r.displayedDestination.additional.phone))}),g(1,"span",43),j(2,"link"),_()()}if(2&n){const e=C(3);f(1),v("title",e.globals.languageConfLocal.addLinkTextToMail)}}function Hne(n,t){if(1&n&&(g(0,"div",48)(1,"span",46),j(2,"call"),_(),g(3,"a",49),j(4),_(),H(5,jne,3,1,"div",50),_()),2&n){const e=C(2);f(3),_t("href","tel:"+e.displayedDestination.additional.phone,En),f(1),ve(e.displayedDestination.additional.phone),f(1),v("ngIf",e.settings.LinkOptionActive&&!e.globals.infoShower.isReadMode)}}function Vne(n,t){if(1&n){const e=Ie();g(0,"div",51),W("click",function(){J(e);const r=C(3);return Z(r.datasource.addDocumentLinkToMail(r.displayedDestination,r.displayedDestination.additional.cellphone))}),g(1,"span",43),j(2,"link"),_()()}if(2&n){const e=C(3);f(1),v("title",e.globals.languageConfLocal.addLinkTextToMail)}}function Une(n,t){if(1&n&&(g(0,"div",48)(1,"span",46),j(2,"phone_android"),_(),g(3,"a",49),j(4),_(),H(5,Vne,3,1,"div",50),_()),2&n){const e=C(2);f(3),_t("href","tel:"+e.displayedDestination.additional.cellphone,En),f(1),ve(e.displayedDestination.additional.cellphone),f(1),v("ngIf",e.settings.LinkOptionActive&&!e.globals.infoShower.isReadMode)}}function qne(n,t){if(1&n){const e=Ie();g(0,"div",23)(1,"div",24),H(2,Rne,6,5,"div",25),H(3,One,2,1,"div",25),g(4,"div",26)(5,"a",27),j(6),_(),H(7,Pne,3,1,"div",28),_(),g(8,"mat-checkbox",29,30),W("change",function(r){return J(e),Z(C().destinationSelectorClicked(r))}),_(),g(11,"div",26),H(12,Lne,2,3,"a",31),H(13,Nne,3,1,"div",28),_(),H(14,Fne,3,2,"mat-checkbox",32),_(),H(15,Bne,5,1,"div",9),H(16,Hne,6,3,"div",33),H(17,Une,6,3,"div",33),_()}if(2&n){const e=C();f(2),v("ngIf",e.destinationsToDisplay&&e.destinationsToDisplay.length>1),f(1),v("ngIf",e.destinationsToDisplay&&1===e.destinationsToDisplay.length),f(2),v("href",e.displayedDestination.url,En)("title",e.displayedDestination.name),f(1),ve(e.displayedDestination.name),f(1),v("ngIf",e.settings.LinkOptionActive&&!e.globals.infoShower.isReadMode),f(1),v("name",e.displayedDestination.pointer)("checked",e.initSelectedDoc&&e.displayedDestination.pointer===e.initSelectedDoc),f(4),v("ngIf",!e.displayedDestination.isCompany&&e.displayedDestination.companyName&&e.displayedDestination.companyName.length>0),f(1),v("ngIf",!e.displayedDestination.isCompany&&e.displayedDestination.companyName&&e.displayedDestination.companyName.length>0&&e.settings.LinkOptionActive&&!e.globals.infoShower.isReadMode),f(1),v("ngIf",!e.displayedDestination.isCompany&&e.displayedDestination.companyName&&e.displayedDestination.companyName.length>0),f(1),v("ngIf",e.displayedDestination.additional.birthdate),f(1),v("ngIf",e.displayedDestination.additional.phone),f(1),v("ngIf",e.displayedDestination.additional.cellphone)}}function zne(n,t){if(1&n&&(g(0,"div")(1,"div"),j(2),_()()),2&n){const e=C();f(2),ve(e.globals.languageConfLocal.emailNotFoundInCRM)}}function Gne(n,t){if(1&n&&(g(0,"div")(1,"div"),j(2),_()()),2&n){const e=C();f(2),ve(e.globals.languageConfLocal.afterSendNoAutomaticDocument)}}function Wne(n,t){if(1&n){const e=Ie();g(0,"div")(1,"button",52),W("click",function(){return J(e),Z(C().quickCreate())}),j(2),_()()}if(2&n){const e=C();f(1),_t("disabled",!e.extractedContactData),v("title",e.globals.languageConfLocal.ContactQuickCreation),f(1),ve(e.globals.languageConfLocal.ContactQuickCreation)}}function $ne(n,t){if(1&n&&(g(0,"mat-option",20),j(1),_()),2&n){const e=t.$implicit;v("value",e.db),f(1),qe(" ",e.alias," ")}}function Kne(n,t){if(1&n){const e=Ie();g(0,"mat-form-field",53)(1,"mat-label"),j(2),_(),g(3,"mat-select",54),W("valueChange",function(r){return J(e),Z(C().selectedOfficeDB=r)})("selectionChange",function(){return J(e),Z(C().setOfficeDB())}),H(4,$ne,2,2,"mat-option",55),_()()}if(2&n){const e=C();f(2),ve(e.globals.languageConfLocal.officeDatabase),f(1),v("value",e.selectedOfficeDB),f(1),v("ngForOf",e.officeDatabases)}}let Yne=(()=>{class n{constructor(e,i,r,o,s,a,l,c,u,d,h,m,y){this.globals=e,this.messageService=i,this.addressService=r,this.translate=o,this.datasource=s,this.ref=a,this.connectionService=l,this.waitListService=c,this.lsm=u,this.imageService=d,this.dialogService=h,this.settings=m,this.graph=y,this.compareFunc=KR,this.isNew=!0,this.isUpdate=!1,this.searchTextInput="",this.searchValue="",this.selection=new nl(!1),this.showRecentlyUsed=!0,this.isSet=!1,this.itRuns=!1,this.noneSelected=!1,this.whatItemIsThis="",this.theOwnerText="",this.theAssignedText="",this.primaryRecipients="",this.secondaryRecipients="",this.primaryPointer="",this.showDocumentButton=!1,this.doNotDocConst="doNotDocument",this.noFooterInfo=!1,this.incomingRecognition=new RegExp("(X-MS-Exchange-Organization-MessageDirectionality): *(Incoming|Originating)"),this.subscriptions=[],this.currentAvatarURL="",this.filteredAdditionalValues={},this.commonPointerData={},this.docImage={background:"transparent no-repeat url(assets/images/icons_business_mail.png)"},this.attachRdy=!1,this.attachDelete=!1}ngOnInit(){this.selectedEmailDropdown=new Co,this.recognizeCurrentItem();let e=Office.context.mailbox.item;e?.addHandlerAsync(Office.EventType.RecipientsChanged,this.recipientChanged,{asyncContext:this},i=>{Office}),this.waitForDocumentDestinationCheckChanged().subscribe({next:()=>{this.detectChanges()}}),this.waitForItemRecognition().subscribe(i=>{"appointment"===e?.itemType?this.graph.getExtendedData(this.currentItemId).subscribe(r=>{r&&(r.selEm===this.doNotDocConst&&(this.noneSelected=!0,this.noMoreAutoSelect=!0),void 0!==this.contactCreationOpened&&(this.contactCreationOpened=void 0),void 0===r.documentTarget&&void 0===r.selEm?(this.isNew=!0,this.lsm.setValue(Zt.appointmentIsNew,"1")):this.isNew="1"===this.lsm.getValue(Zt.appointmentIsNew),"gi"===this.globals.system?this.globals.infoShower.isReadMode?this.graph.getExtendedData(i).subscribe(o=>{this.finishAppointmentProcessing(o)}):e?.requiredAttendees.getAsync(o=>{this.isNew&&void 0===r.docEm&&o.value.length>0&&(r.selEm=o.value[0].emailAddress,r.docEm=o.value[0].emailAddress,this.graph.saveExtendedData(i,r).subscribe(s=>{this.finishAppointmentProcessing(r)}))}):this.finishAppointmentProcessing(r))}):this.graph.saveExtendedData(this.currentItemId,new jc).subscribe(r=>{this.doProcessAddresses(),e?.body.getAsync(Office.CoercionType.Html,{},o=>{this.convertedBody=(0,Jd.convert)(o.value,{preserveNewlines:!1,wordwrap:null}).trim().replace(/^\xa0+/gm,"").replace(/(\r\n|\r|\n){2,}/gm,"\n\n"),this.datasource.extractContactData(this.convertedBody).subscribe(s=>{this.extractedContactData=s,console.log("extractedContactData ",this.extractedContactData)}),setTimeout(()=>{this.extractedContactData={Company:"",CompanyPointer:"",CompanyEmail:"",CompanyPhone:"",CompanyFax:"",CompanyName:"",CompanyAddress:"",Street:"",City:"",ZipCity:"",Zip:"",Phone:"",Fax:"",Mobile:"",Email:"",Url:"",LastName:"",FirstName:"",MiddleName:"",Department:"",MainEmailAddressType:"",MainAddressType:""},this.noFooterInfo=!0},5e3)})})}),this.waitForUpdateBM4ODataCommand().subscribe(i=>{i.selEm=this.selectedEmailAddress,i.documentTarget=this.primaryPointer,i.selDest=this.displayedDestination?.pointer,i.otherDoc=!this.firstDocumentDestination.checked&&!this.secondDocumentDestination.checked,"gi"===this.globals.system&&(i.officeDB=this.selectedOfficeDB)}),this.globals.onActiveWindowChange().subscribe(i=>{"main"===i.newWindow&&"contactCreation"===i.currentWindow&&this.globals.contactCreated&&(this.globals.contactCreated=!1,this.ngOnInit())}),this.globals.infoShower=this,this.waitListService.notifyWaitList("init",!0)}finishAppointmentProcessing(e){this.initSelectedDoc=e?.documentTarget??"",e.otherDoc&&(this.initSelectedDoc=""),e.selEm?(this.selectedEmailAddress=e.selEm,this.doSelectContactOverEmail(e.selEm,e.selDest)):this.selectedEmailAddress=this.doNotDocConst,this.doProcessAddresses(e)}recognizeCurrentItem(){let e=Office.context.mailbox.item;this.noMoreAutoSelect=!1,e&&(this.globals.incomingMail=!1,this.isAppointment="appointment"===e.itemType,this.isAppointment?(this.whatItemIsThis="Meeting",this.recognizeAppointment(e)):"function"==typeof e.getAllInternetHeadersAsync?e.getAllInternetHeadersAsync(i=>{(i?.value?.length>0&&this.incomingRecognition.test(i.value)||e?.to[0].emailAddress===Office.context.mailbox.userProfile.emailAddress&&e.from.emailAddress.indexOf("noreply@microsoft.com")>0)&&(this.globals.incomingMail=!0),this.recognizeEmail(e)}):this.recognizeEmail(e)),"gi"===this.globals.system?(this.showRecentlyUsed=!1,this.isAppointment&&(this.showDocumentButton=!1)):this.isAppointment&&(this.showDocumentButton=!1)}recognizeEmail(e){if(e){this.isReadMode=void 0===e.getItemIdAsync||void 0===typeof e.getItemIdAsync,this.whatItemIsThis="Email",this.translate.get("translationWait").subscribe(()=>{this.theOwnerText=this.globals.languageConfLocal.sender,this.primaryRecipients="("+this.globals.languageConfLocal.to+") "+this.globals.languageConfLocal.recipients,this.secondaryRecipients="(Cc) "+this.globals.languageConfLocal.recipients}),this.showDocumentButton=this.isReadMode;let i="1"===this.lsm.getValue(Zt.sendInProcess);this.isReadMode?(this.translate.get("translateWait").subscribe(()=>{this.documentButtonTooltip=this.globals.languageConfLocal.DocumentTheMail+" "+e?.subject}),this.currentEmailSubject=e.subject,this.currentItemId=e.itemId,this.itemRecognized()):e.saveAsync&&"function"==typeof e.saveAsync&&this.datasource.IsTaskpaneActive()&&!i&&e.saveAsync(r=>{this.currentItemId=r.value,this.itemRecognized()})}}recognizeAppointment(e){this.isReadMode=void 0===e.getItemIdAsync||void 0===typeof e.getItemIdAsync,this.translate.get("translationWait").subscribe(()=>{this.updateButtonTooltip=this.globals.languageConf.updateButtonTooltip,this.theOwnerText=this.globals.languageConfLocal.owner,this.theAssignedText=this.globals.languageConfLocal.assignedTo,this.primaryRecipients=this.globals.languageConfLocal.requiredAttendee,this.secondaryRecipients=this.globals.languageConfLocal.optionalAttendee});let i="1"===this.lsm.getValue(Zt.sendInProcess);if("function"==typeof e.saveAsync&&this.datasource.IsTaskpaneActive()&&!i){let r=e;e.saveAsync(o=>{r?.getItemIdAsync(s=>{this.currentItemId=s.value,this.itemRecognized()})})}else this.currentItemId=e.itemId,this.itemRecognized()}detectChanges(){this.ref.detectChanges()}ngOnDestroy(){clearInterval(this.refreshInt);for(const e of this.subscriptions)e.unsubscribe()}doProcessAddresses(e){this.itRuns||(this.itRuns=!0,this.addressService.newProcessAddress().subscribe({next:i=>{this.graph.getExtendedData(this.currentItemId).subscribe(r=>{if(i.fromEmail&&(this.theSender=new kb,this.theSender.display=i.fromName,this.theSender.email=i.fromEmail,this.theSender.fromEmail=!0),this.addresses=i.primary,this.theSender){let o=this.addresses.findIndex(s=>s.email.toLowerCase()===this.theSender.email.toLowerCase());o>=0&&this.addresses.splice(o,1)}this.addresses2nd=i.secondary,this.addressesAll=i.primary.concat(i.secondary),r&&r.docEm&&-1===this.addressesAll.findIndex(o=>o.email.toLowerCase()===r.docEm?.toLowerCase())&&(this.theAssignee=new kb,this.theAssignee.email=r.docEm,this.theAssignee.display=r.docEm,this.addressesAll.push(this.theAssignee)),0===this.addressesAll.length&&(r.selEm=this.doNotDocConst,r.docEm=void 0,r.selDest=void 0,this.graph.saveExtendedData(this.currentItemId,r).subscribe(o=>{this.selectNothing()})),this.addressesAll.push(this.theSender),this.detectChanges(),this.itRuns=!1,this.findCRMAddress(0,e)})}}))}findCRMAddress(e,i){if(this.noMoreAutoSelect)return;if(i){let s=i.selEm;if(!s&&0===e){s=this.addressesAll[0].email,this.selectedContact.value=s;let a=i.otherDoc;(i=new jc).selDest="INITIALIZE",i.otherDoc=a}if(s)return void this.fetchEmailDataFromCRM(s,e,!0,i)}if(this.globals.incomingMail){let s=this.addressesAll.find(a=>a.fromEmail);if(s)return void this.fetchEmailDataFromCRM(s.email,e,!1,i)}if(this.addressesAll.some(s=>s.email===this.selectedContact.value&&!s.fromEmail))return;if(this.addressesAll[e]&&this.addressesAll[e].fromEmail&&this.findCRMAddress(e+1),e+1>this.addressesAll.length){if(!(this.addressesAll.length>0))return void this.selectNothing();{let s=this.addressesAll[0];if(!s||s.fromEmail)return void this.selectNothing();this.selectedContact.value=s.email,this.selectedContactChanged(null,s.email)}return void this.detectChanges()}let r=this.addressesAll[e];r.fromEmail||this.fetchEmailDataFromCRM(r.email,e,!1,i)}fetchEmailDataFromCRM(e,i,r=!1,o){let s=new $t;s=s.set("mail",e),this.connectionService.processAddress(s).subscribe(a=>{this.selectedAddressDetails=a,this.processAvatar(this.selectedAddressDetails.data[0]),this.definePossibleDestinations().subscribe(()=>{if(!(this.selectedAddressDetails&&this.selectedAddressDetails.data.length>0))return this.globals.incomingMail?(this.selectedContact.value=e,this.selectedContactChanged(null,e,null),void this.destinationChanged(o)):void(r||this.findCRMAddress(i+1));void 0===this.selectedContact.value||!this.addressesAll.some(l=>l.email===this.selectedContact.value)||this.noneSelected||e&&e!==this.selectedContact.value?(this.selectedContact.value=e,this.selectedContactChanged(null,e,this.selectedAddressDetails.data[0].pointer),this.destinationChanged(o)):(this.detectChanges(),this.destinationChanged(o))})})}processAvatar(e){let i=e?.additional?.imageURL,r=e?.additional?.base64image,o=e?.additional?.gender;this.currentAvatarURL=r||(i?this.imageService.getImgUrl(i):this.imageService.getLocalImgUrl(o,e?.isCompany))}selectNothing(){this.destinationsToDisplay=[],this.displayedDestination=null,this.destinationChanged(),this.selectedEmailAddress=this.doNotDocConst,this.noneSelected=!0,this.detectChanges()}selectedContactChanged(e,i="",r=null){if(this.initSelectedDoc="",this.unselectDestinations(),this.isAppointment&&this.selectedEmailAddress===this.doNotDocConst){let o=new jc;return o.selEm=this.doNotDocConst,this.graph.saveExtendedData(this.currentItemId,o).subscribe(s=>{}),this.selectNothing(),this.noMoreAutoSelect=!0,void this.globals.hideSpinner()}this.noMoreAutoSelect=!i&&!r&&this.selectedEmailAddress===this.doNotDocConst,this.officeDatabases=[],this.noneSelected=!1,i||(i=this.selectedContact.value),this.lsm.setValue(Zt.selectedEmail,i),i&&i!==this.doNotDocConst?r?(this.setDestinationInfo(r),this.detectChanges()):this.doSelectContactOverEmail(i):(this.graph.getExtendedData(this.currentItemId).subscribe(o=>{o.selEm=i,this.graph.saveExtendedData(this.currentItemId,o).subscribe(s=>{})}),this.globals.addressActivities.documentsAsDestinations=[],this.noneSelected=!0,this.displayedDestination=null,this.selectedAddressDetails={},this.destinationChanged(),this.detectChanges()),this.globals.hideSpinner()}doSelectContactOverEmail(e,i){let r=new $t;r=r.set("mail",e),this.connectionService.processAddress(r).subscribe(o=>{this.selectedAddressDetails=o,this.definePossibleDestinations().subscribe(()=>{this.selectedAddressDetails&&this.selectedAddressDetails.data.length>0?i&&"appointment"===Office.context.mailbox.item?.itemType?(this.displayedDestination=this.destinationsToDisplay.find(s=>s.pointer===i),this.processAvatar(this.displayedDestination),this.graph.getExtendedData(this.currentItemId).subscribe(s=>{this.destinationChanged(s),this.detectChanges()})):(this.setDestinationInfo(this.selectedAddressDetails.data[0].pointer),this.destinationChanged(),this.detectChanges()):(this.noneSelected=!0,this.graph.getExtendedData(this.currentItemId).subscribe(s=>{s.selEm=e,s.selDest="",this.destinationChanged(s),this.detectChanges(),this.graph.saveExtendedData(this.currentItemId,s).subscribe(a=>{})}))})})}getOfficeDBs(e,i=null){this.getDBConnections().subscribe(r=>{r&&this.extractOfficeDBs(e,r,i)})}extractOfficeDBs(e,i,r=null){try{let o=e;if(this.officeDatabases=[],this.selectedOfficeDB="",o)if(r===El.activity){const s=this.extractDBFromPointer(o);i.hasOwnProperty(s)?this.extractOfficeDBsOfContact(o,i):(this.officeDatabases=[{db:s,alias:""}],this.selectedOfficeDB=this.officeDatabases[0].db,this.setOfficeDB(),this.detectChanges())}else this.extractOfficeDBsOfContact(o,i)}catch{this.translate.get("LC39396").subscribe(s=>{this.messageService.showError(s)})}}extractOfficeDBsOfContact(e,i){const o=i[this.extractDBFromPointer(e)].officeDBs;for(const s of o)this.officeDatabases.push({db:s,alias:i.GeOfficeAliases[s]});this.officeDatabases.length>=1&&(this.selectedOfficeDB=this.officeDatabases[0].db,this.setOfficeDB()),this.detectChanges(),this.officeDatabases.length<1&&this.translate.get("LC39396").subscribe(s=>{this.messageService.showError(s)})}extractDBFromPointer(e){return e.substring(e.lastIndexOf("|")+1)}subdestinationClick(e){this.initSelectedDoc="",this.unselectDestinations(),this.displayedDestination=this.destinationsToDisplay.find(i=>i.pointer===e),this.destinationChanged(),this.setDestinationInfo(e),this.detectChanges()}definePossibleDestinations(){return new b(e=>{let i=this.selectedAddressDetails.data.filter(r=>!r.isCompany).map(r=>r.companyPointer);this.destinationsToDisplay=this.selectedAddressDetails.data.filter(r=>!r.isCompany||0===i.length||!i.some(o=>o===r.pointer)),this.destinationsToDisplay.length>0?(!this.displayedDestination||!this.displayedDestination.pointer||0===this.displayedDestination.pointer.length||!this.destinationsToDisplay.some(r=>r.pointer===this.displayedDestination.pointer))&&(this.getDBConnections().subscribe(r=>{if(r)for(let o of this.destinationsToDisplay){if(o.pointer){let s=this.extractDBFromPointer(o.pointer);o.dbTitle=r[s].title}console.log("destination is ",o)}}),this.displayedDestination=this.destinationsToDisplay[0]):this.displayedDestination=null,this.globals.mainDestinationCheckboxes=this.destinationCheckboxes,this.displayedDestination?this.graph.getExtendedData(this.currentItemId).subscribe(r=>{r.selEm=this.displayedDestination.additional.mail,r.documentTarget=this.displayedDestination.pointer,this.graph.saveExtendedData(this.currentItemId,r).subscribe(o=>{e.next()})}):e.next()})}setDestinationInfo(e,i=null,r=!1){this.lsm.clear(),this.primaryPointer=e,this.documentDestinationCheckChanged(),this.checkboxChecker=""!==e,Office.context.mailbox.item&&(this.lsm.setValue(Zt.primaryTarget,e),this.graph.getExtendedData(this.currentItemId).subscribe(s=>{s.selEm=this.selectedEmailAddress,s.documentTarget=e,s.otherDoc=r,this.displayedDestination&&(s.selDest=this.displayedDestination.pointer),this.graph.saveExtendedData(this.currentItemId,s).subscribe(a=>{a?.value?.indexOf("NoError")<0&&this.messageService.showError(this.globals.languageConfLocal.errorWhileSavingCRMData),this.getOfficeDBs(e,i)})}))}setOfficeDB(){Office.context.mailbox.item&&(this.lsm.setValue(Zt.officeDB,this.selectedOfficeDB),this.graph.getExtendedData(this.currentItemId).subscribe(i=>{i.officeDB=this.selectedOfficeDB,this.graph.saveExtendedData(this.currentItemId,i).subscribe(r=>{})}))}destinationSelectorClicked(e){if(e.checked){this.graph.getExtendedData(this.currentItemId).subscribe(r=>{r.otherDoc=!1,this.graph.saveExtendedData(this.currentItemId,r).subscribe(o=>{})}),this.officeDatabases=[];let i=this.destinationCheckboxes.toArray();this.globals.otherDestinationCheckboxes&&this.globals.otherDestinationCheckboxes.length>0&&(i=i.concat(this.globals.otherDestinationCheckboxes.toArray())),i.forEach(r=>{r.name!==e.source.name&&(r.checked=!1)}),this.setDestinationInfo(e.source.name)}else this.setDestinationInfo("");this.detectChanges(),setTimeout(()=>{console.log("docs as dest: ",this.globals.addressActivities.documentsAsDestinations),console.log("otherDestinationCheckboxes: ",this.globals.otherDestinationCheckboxes),console.log("otherDestinationCheckboxes.length: ",this.globals.otherDestinationCheckboxes.length),console.log("initSelectedDoc: ",this.initSelectedDoc),console.log("displayedDestination.pointer: ",this.displayedDestination.pointer),console.log("displayedDestination.companypointer: ",this.displayedDestination.companyPointer)},2e3)}selectFirst(){let e=new AR;e.source=this.firstDocumentDestination,e.checked=!0,this.firstDocumentDestination&&(this.firstDocumentDestination.checked=!0,this.destinationSelectorClicked(e))}tracker(e,i){return i.email}collapsibleClicked(e){let i=e.currentTarget;i.classList.toggle("active");let r=i.nextElementSibling;r.classList.contains("initOpened")&&(r.classList.remove("initOpened"),r.classList.add("content"),r.style.maxHeight=r.scrollHeight+"px"),r.style.maxHeight=r.style.maxHeight?null:r.scrollHeight+"px"}unselectDestinations(){this.secondDocumentDestination&&(this.secondDocumentDestination.checked=!1),this.firstDocumentDestination&&(this.firstDocumentDestination.checked=!1)}tabChanged(e){this.destinationChanged()}destinationChanged(e){let i=this.displayedDestination;(!e||"INITIALIZE"===e.selDest||e.otherDoc)&&this.firstDocumentDestination&&(this.unselectDestinations(),e?.otherDoc||(this.firstDocumentDestination.checked=!0)),this.processAvatar(i);for(const r of this.waitListService.accessWaitList("destinationChanged"))r.next(i)}waitForDestinationChange(){return new b(e=>{this.waitListService.addToWaitList("destinationChanged",e)})}waitForDocumentDestinationCheckChanged(){return new b(e=>{this.waitListService.addToWaitList("documentDestinationCheckChanged",e)})}documentDestinationCheckChanged(){let e=this.displayedDestination;for(const i of this.waitListService.accessWaitList("documentDestinationCheckChanged"))i.next(e)}itemRecognized(){if(this.isAppointment)this.datasource.readCRMDataForItem(this.currentItemId).subscribe(()=>{for(const e of this.waitListService.accessWaitList("itemRecognized"))e.next(this.currentItemId)});else for(const e of this.waitListService.accessWaitList("itemRecognized"))e.next(this.currentItemId)}waitForItemRecognition(){return new b(e=>{this.waitListService.addToWaitList("itemRecognized",e)})}documentItem(){let e=Office.context.mailbox.item;e&&this.isReadMode&&this.graph.getExtendedData(this.currentItemId).subscribe(i=>{this.globals.hideSpinner(),i.documentedOnSend&&!this.globals.incomingMail?this.dialogService.createDialogWithType(pa.alreadyDocumented).subscribe(r=>{r.afterClosed().subscribe(o=>{!0===o&&this.startDocumentation(e,i)})}):this.startDocumentation(e,i)})}getReplyToMail(e){return new b(i=>{e.getAllInternetHeadersAsync(r=>{if(r.status===Office.AsyncResultStatus.Succeeded){let s=r.value.match(/Reply-To:\s*([^\r\n]*)/i);if(s){let a=s[1].trim();console.log("Reply-To Address with name:",a);let l=a.match(/<([^>]+)>/);if(l){let c=l[1].trim();console.log("Extracted Reply-To Email Address:",c),i.next(c)}else console.log("No email address found between < >"),i.next("")}else console.log("No Reply-To header found"),i.next("")}else console.error("Error getting internet headers:",r.error),i.error(r.error);i.complete()})})}startDocumentation(e,i){i.documentTarget&&("appointment"===e?.itemType?(i.type="appointment",this.datasource.documentItemWithUI(i)):this.getReplyToMail(e).subscribe(r=>{r&&(console.log("replyTo is:",r),i.replyTo=r),i.type="mail",console.log("description is:",i),this.datasource.documentItemWithUI(i)},r=>{console.error("Error fetching Reply-To email:",r)}))}recipientChanged(e){document.getElementById("recipientsEventTrigger").click()}recipientsEventTrigger(){this.doProcessAddresses()}getDBConnections(){return new b(e=>{this.datasource.fetchDBs("dbConnections",null).subscribe(i=>{e.next(i)})})}getHomepageUrl(e){return e&&e.length>0&&!e.toLowerCase().startsWith("http")?"http://"+e:e}quickCreate(){this.contactCreationOpened=this.isNew,this.displayedDestination&&this.displayedDestination.additional.fallback&&(this.extractedContactData.CompanyName=this.displayedDestination.name,this.extractedContactData.CompanyAddress=this.displayedDestination.additional.fullAddress,this.extractedContactData.CompanyPointer=this.displayedDestination.pointer),this.globals.activeWindow="contactCreation"}updateItem(){this.isUpdate=!0,this.updateBM4ODataCommand()}waitForUpdateBM4ODataCommand(){return new b(e=>{this.waitListService.addToWaitList("updateBM4OData",e)})}updateBM4ODataCommand(){this.graph.getExtendedData(this.currentItemId).subscribe(e=>{for(const i of this.waitListService.accessWaitList("updateBM4OData"))i.next(e);this.graph.saveExtendedData(this.currentItemId,e).subscribe(i=>{this.isUpdate=!1,this.messageService.showSuccess(this.globals.languageConfLocal.crmDataUpdated)})})}}return n.\u0275fac=function(e){return new(e||n)(p(ot),p(tn),p(Ps),p(Ut),p(Bi),p(St),p(In),p(Ri),p(Mi),p(pne),p(nm),p(Kc),p(ya))},n.\u0275cmp=Ue({type:n,selectors:[["app-info-shower"]],viewQuery:function(e,i){if(1&e&&(De(fne,5),De(mne,5),De(gne,5),De(_ne,5)),2&e){let r;ce(r=ue())&&(i.selectedContact=r.first),ce(r=ue())&&(i.firstDocumentDestination=r.first),ce(r=ue())&&(i.secondDocumentDestination=r.first),ce(r=ue())&&(i.destinationCheckboxes=r)}},decls:21,vars:16,consts:[["class","emailSubjectLine",3,"title",4,"ngIf"],["mat-flat-button","","color","documentBtn","style","width: 100%;margin-top: 4px; margin-bottom: 10px;",3,"disabled","title","click",4,"ngIf"],["mat-flat-button","","color","documentBtn","style","width: 100%;margin-top: 4px; margin-bottom: 10px;",3,"title","click",4,"ngIf"],["appearance","fill",1,"noLabel",2,"width","100%"],[1,"documentationContactSelector",3,"ngModel","formControl","selectionChange","ngModelChange"],["selectedContact",""],["class","doNotDocument","value","doNotDocument",4,"ngIf"],[3,"label",4,"ngIf"],["class","contactCardPart",4,"ngIf"],[4,"ngIf"],["hidden","","id","recipientsEventTrigger",3,"click"],["class","databaseSearchSelect","appearance","standard",4,"ngIf"],[1,"emailSubjectLine",3,"title"],["mat-flat-button","","color","documentBtn",2,"width","100%","margin-top","4px","margin-bottom","10px",3,"disabled","title","click"],[4,"ngIf","ngIfElse"],["enabledContent",""],["mat-flat-button","","color","documentBtn",2,"width","100%","margin-top","4px","margin-bottom","10px",3,"title","click"],["value","doNotDocument",1,"doNotDocument"],[3,"label"],[3,"value",4,"ngFor","ngForOf","ngForTrackBy"],[3,"value"],[1,"displayInSelection"],[1,"emailInSelection"],[1,"contactCardPart"],[1,"destinationSelectorHolder"],["class","destinationImage",4,"ngIf"],["id","hoverArea",1,"destFlex"],["target","_blank",1,"addressLabel","importantText",3,"href","title"],["id","overlayLinkMailinfo",3,"click",4,"ngIf"],[1,"destinationSelector",3,"name","checked","change"],["firstDocumentDestination","","docDestSelector",""],["target","_blank","class","addressLabel",3,"href","title",4,"ngIf"],["class","destinationSelector",3,"name","checked","change",4,"ngIf"],["id","hoverArea",4,"ngIf"],[1,"destinationImage"],["mat-icon-button","","matBadgePosition","before","matBadgeSize","small","matBadgeOverlap","true",3,"matBadge","matMenuTriggerFor"],[3,"src","title"],["menu","matMenu"],["mat-menu-item","",3,"value","ngClass","valueChange","click",4,"ngFor","ngForOf"],["mat-menu-item","",3,"value","ngClass","valueChange","click"],[3,"title"],[3,"src"],["id","overlayLinkMailinfo",3,"click"],[1,"material-symbols-rounded","LinkIcon",3,"title"],["target","_blank",1,"addressLabel",3,"href","title"],["docDestSelector","","secondDocumentDestination",""],[1,"material-symbols-rounded"],[1,"webTelLink"],["id","hoverArea"],["target","_blank",1,"webTelLink",3,"href"],["id","overlayLinkMailinfo2",3,"click",4,"ngIf"],["id","overlayLinkMailinfo2",3,"click"],["mat-flat-button","","color","documentBtn",2,"width","100%","margin-top","1em","margin-bottom","1em",3,"disabled","title","click"],["appearance","standard",1,"databaseSearchSelect"],[3,"value","valueChange","selectionChange"],[3,"value",4,"ngFor","ngForOf"]],template:function(e,i){1&e&&(H(0,vne,2,2,"div",0),H(1,Cne,4,4,"button",1),H(2,wne,2,2,"button",2),g(3,"div")(4,"mat-form-field",3)(5,"mat-select",4,5),W("selectionChange",function(o){return i.selectedContactChanged(o)})("ngModelChange",function(o){return i.selectedEmailAddress=o}),g(7,"mat-select-trigger"),j(8),_(),H(9,Ene,2,1,"mat-option",6),H(10,Sne,2,3,"mat-optgroup",7),H(11,Tne,2,3,"mat-optgroup",7),H(12,xne,6,4,"mat-optgroup",7),H(13,Ine,6,4,"mat-optgroup",7),_()()(),H(14,qne,18,14,"div",8),H(15,zne,3,1,"div",9),H(16,Gne,3,1,"div",9),H(17,Wne,3,3,"div",9),g(18,"button",10),W("click",function(){return i.recipientsEventTrigger()}),_(),be(19,"br"),H(20,Kne,5,3,"mat-form-field",11)),2&e&&(v("ngIf",i.isReadMode&&!i.isAppointment),f(1),v("ngIf",i.showDocumentButton),f(1),v("ngIf",!i.isNew),f(3),v("ngModel",i.selectedEmailAddress)("formControl",i.selectedEmailDropdown),f(3),qe(" ","doNotDocument"===i.selectedEmailDropdown.value?i.globals.languageConfLocal.doNotDocument:i.selectedEmailDropdown.value," "),f(1),v("ngIf",!i.isReadMode||i.isAppointment),f(1),v("ngIf",i.addresses&&i.addresses.length>0),f(1),v("ngIf",i.addresses2nd&&i.addresses2nd.length>0),f(1),v("ngIf",i.theSender),f(1),v("ngIf",i.theAssignee),f(1),v("ngIf",i.displayedDestination),f(1),v("ngIf",!i.isAppointment&&i.destinationsToDisplay&&0===(null==i.destinationsToDisplay?null:i.destinationsToDisplay.length)&&"doNotDocument"!==i.selectedEmailAddress&&i.addressesAll.length>1),f(1),v("ngIf",!i.isAppointment&&(i.noneSelected||i.destinationsToDisplay&&0===(null==i.destinationsToDisplay?null:i.destinationsToDisplay.length))&&!i.isReadMode),f(1),v("ngIf",i.isReadMode&&!i.isAppointment&&(i.destinationsToDisplay&&0===(null==i.destinationsToDisplay?null:i.destinationsToDisplay.length)&&"doNotDocument"!==i.selectedEmailAddress&&i.addressesAll.length>1||i.displayedDestination&&i.displayedDestination.additional.fallback)),f(3),v("ngIf",null!=i.officeDatabases&&i.officeDatabases.length>1&&!i.isAppointment))},dependencies:[$a,zn,pn,Kr,af,vk,iu,Ck,Ir,Pi,Ko,V9,cr,F6,tl,ate,pg],styles:['.emailSubjectLine{margin:auto;padding-top:30px;font-size:21px;font-weight:100;font-family:Segoe UI,"Segoe UI Web (West European)",Segoe UI,-apple-system,BlinkMacSystemFont,Roboto,Helvetica Neue,sans-serif}.buttonP{float:left}.buttonN{float:right}.buttonContainer{width:100%;overflow:hidden}.pages{display:flex;width:400%;box-sizing:border-box}.page{display:flex;align-items:center;justify-content:center;flex-direction:column;gap:10px;transition:all .7s}.hidden{display:none}.grayDiv{background-color:#faf3f3}.mat-option{height:4em!important}.destinationSelectorHolder{display:grid;grid-template-columns:22% 71% 7%;padding-bottom:.5em}.contactCardPart{padding:5px;background-color:#0000000a;border-radius:0 0 5px 5px;border:1px solid #e5e5e5}.material-symbols-rounded{font-variation-settings:"FILL" 0,"wght" 300,"GRAD" -25,"opsz" 18}.mat-checkbox-background,.mat-checkbox-frame{border-radius:50%!important}.mat-checkbox .mat-checkbox-frame,.mat-checkbox-checked .mat-checkbox-background{transform:scale(1.1)}.mat-checkbox-checkmark{width:10px!important;top:3px!important;left:3px!important}.destinationImage{grid-row:span 2}.destinationImage>button>* img,.destinationImage>img,.destinationImage>button{object-fit:cover;border-radius:50%;height:55px;width:55px}button{background-color:transparent}.mat-badge-content.mat-badge-active{top:.05em!important;left:.1em!important}.addressLabel{font-weight:600;margin-right:2px;max-width:95%;line-height:normal;text-overflow:ellipsis;overflow:hidden;white-space:nowrap}table>tbody>tr>td{padding:0!important}.noLabel>* .mat-form-field-flex{padding-top:0!important}.mat-form-field.noLabel{padding-top:3px}.mat-form-field.noLabel .mat-form-field-wrapper{padding-bottom:0}.mat-form-field.noLabel .mat-form-field-underline{bottom:0}.mat-optgroup-label{background-color:#f0f0f0}.displayInSelection{height:1.1em}.emailInSelection{color:#616161;font-size:smaller}.webTelLink{padding-left:5px;vertical-align:top}.doNotDocument{color:#f08080}.selectedDestination{background-color:#0000001f}mat-form-field.noLabel>div{border-radius:5px;border:1px solid #e5e5e5;border-bottom:none}.mat-documentBtn{background-color:#f28e00;color:#f0f0f0}.databaseSearchSelect{width:100%}.emailSubjectLine{overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap;padding-bottom:5px;font-size:medium;padding-top:5px}#hoverArea{position:relative;height:auto}#hoverArea:hover #overlayLinkMailinfo,#hoverArea:hover #overlayLinkMailinfo2{visibility:visible!important}.destFlex{display:flex;align-items:start;justify-content:space-between}#overlayLinkMailinfo{visibility:hidden;position:absolute;cursor:pointer;top:-4px!important;right:5px!important;width:24px;height:24px;color:#202020;background-color:#fff;border-radius:16px;padding-top:0;padding-bottom:0;margin-top:0!important;color:#000000de;opacity:.7}#overlayLinkMailinfo2{color:#000000de;opacity:.7;visibility:hidden;position:absolute;cursor:pointer;top:0px;right:25px;width:24x;height:24px;color:#202020;background-color:#fff;border-radius:16px;padding-top:0;padding-bottom:0;margin-top:0}\n'],encapsulation:2}),n})();const Qne=["docDestSelector"];function Jne(n,t){if(1&n){const e=Ie();g(0,"div",14),W("click",function(){J(e);const r=C().$implicit;return Z(C(2).datasource.addDocumentLinkToMail(r))}),g(1,"span",15),j(2,"link"),_()()}if(2&n){const e=C(3);f(1),v("title",e.globals.languageConfLocal.addLinkTextToMail)}}function Zne(n,t){if(1&n){const e=Ie();g(0,"mat-chip",8),W("removed",function(){const o=J(e).$implicit;return Z(C(2).removeDocumentDestination(o))}),be(1,"img",9),g(2,"div",10),j(3),_(),H(4,Jne,3,1,"div",11),g(5,"button",12)(6,"span",13),j(7,"cancel"),_()()()}if(2&n){const e=t.$implicit,i=C(2);v("removable",!0)("title",e.name),f(1),v("src",i.datasource.getImageSrc(e.image),En),f(2),ve(e.name),f(1),v("ngIf",i.settings.LinkOptionActive&&!i.globals.infoShower.isReadMode),f(2),v("title",i.globals.languageConfLocal.removeFromList)}}function Xne(n,t){1&n&&be(0,"input",16,17),2&n&&(C(),v("matChipInputFor",Yt(4)))}function eie(n,t){if(1&n&&(g(0,"mat-form-field",2)(1,"mat-label",3),j(2),_(),g(3,"mat-chip-list",4,5),H(5,Zne,8,6,"mat-chip",6),H(6,Xne,2,1,"input",7),_()()),2&n){const e=C();f(2),ve(e.getDocumentedLabel()),f(3),v("ngForOf",e.documentsAsDestinations),f(1),v("ngIf",e.documentsAsDestinations&&e.documentsAsDestinations.length>0)}}function tie(n,t){if(1&n&&(g(0,"mat-option",21),j(1),_()),2&n){const e=t.$implicit;v("value",e.alias),f(1),qe(" ",e.name," ")}}function nie(n,t){if(1&n&&(g(0,"div",34),j(1),_()),2&n){const e=C().$implicit;v("title",e.lineTwoOverride),f(1),ve(e.lineTwoOverride)}}function iie(n,t){if(1&n&&(g(0,"div",34),j(1),_()),2&n){const e=C().$implicit,i=C(3);v("title",e.fdTicketNo?e.subject+" "+i.formatDate(e.dateInMS,"dd.MM.YYYY HH:mm","en_US"):i.formatDate(e.dateInMS,"dd.MM.YYYY HH:mm","en_US")),f(1),qe(" ",e.fdTicketNo?e.subject+" "+i.formatDate(e.dateInMS,"dd.MM.YYYY HH:mm","en_US"):i.formatDate(e.dateInMS,"dd.MM.YYYY HH:mm","en_US")," ")}}function rie(n,t){if(1&n){const e=Ie();g(0,"button",35),W("click",function(){J(e);const r=C().$implicit;return Z(C(3).datasource.addDocumentLinkToMail(r))}),g(1,"span",36),j(2,"link"),_()()}2&n&&v("title",C(4).globals.languageConfLocal.addLinkTextToMail)}function oie(n,t){if(1&n){const e=Ie();g(0,"div",24)(1,"div",25),be(2,"img",26),g(3,"a",27),W("click",function(r){const s=J(e).$implicit,a=C(3);return a.openInBrowser("gi"===a.globals.system?a.createWebintLink(s.pointer):s.url),Z(r.preventDefault())}),g(4,"div")(5,"div",28),j(6),_(),H(7,nie,2,2,"div",29),H(8,iie,2,2,"div",29),_()()(),g(9,"div",30),H(10,rie,3,1,"button",31),g(11,"mat-checkbox",32,33),W("change",function(r){const s=J(e).$implicit;return Z(C(3).destinationActivitySelectorClicked(r,s.subject,s.viewIconUrl))}),_()()()}if(2&n){const e=t.$implicit,i=C(3);f(2),v("src",e.viewIconUrl,En),f(3),v("title",e.subject),f(1),ve(e.fdTicketNo?e.fdTicketNo:e.subject),f(1),v("ngIf",e.lineTwoOverride&&null!=e.lineTwoOverride),f(1),v("ngIf",!e.lineTwoOverride||null==e.lineTwoOverride),f(2),v("ngIf",i.settings.LinkOptionActive&&!i.globals.infoShower.isReadMode),f(1),v("name",e.pointer)("checked",e.pointer===i.initSelectedDoc)}}function sie(n,t){if(1&n&&(g(0,"div",37),j(1),_()),2&n){const e=C(3);f(1),ve(e.globals.languageConfLocal.noActivities)}}function aie(n,t){if(1&n&&(g(0,"div"),H(1,oie,13,8,"div",22),H(2,sie,2,1,"div",23),_()),2&n){const e=C(2);f(1),v("ngForOf",e.activities),f(1),v("ngIf",0===e.activities.length)}}function lie(n,t){if(1&n){const e=Ie();g(0,"div")(1,"mat-form-field",18),be(2,"mat-label"),g(3,"mat-select",19),W("valueChange",function(r){return J(e),Z(C().selectedType=r)})("selectionChange",function(){return J(e),Z(C().activityTypeChanged())}),H(4,tie,2,2,"mat-option",20),_()(),H(5,aie,3,2,"div",1),_()}if(2&n){const e=C();f(3),v("value",e.selectedType),f(1),v("ngForOf",e.types),f(1),v("ngIf",e.activities)}}let cie=(()=>{class n{constructor(e,i,r,o,s,a,l,c){this.globals=e,this.translate=i,this.mailLoadedService=r,this.ref=o,this.messageService=s,this.graph=a,this.datasource=l,this.settings=c,this.documentsAsDestinations=[],this.displayedColumns=["subject"],this.activity={},this.types=[],this.selectedType="0",this.activityDocImage={background:"no-repeat url(assets/images/icons_business_mail.png)"},this.selectArrow={background:"no-repeat url(assets/images/DropDownArrowOffsetRight.png) right"},this.headerText=""}ngOnInit(){this.globals.infoShower.waitForDestinationChange().subscribe({next:e=>{this.datasource.fetchActivityTypes(e?.pointer).subscribe(i=>{this.types=i,this.graph.getExtendedData(this.globals.infoShower.currentItemId).subscribe(r=>{this.selectedType=r?.docTyp,this.selectedType||(this.selectedType="gi"===this.globals.system?i[0].alias:i.find(s=>s.name.startsWith("Vorg")||s.name.startsWith("Activ"))?.alias??i[0].alias),"appointment"===Office.context.mailbox.item?.itemType&&r.otherDoc&&(this.initSelectedDoc=r?.documentTarget,this.datasource.getDocumentsChips([r.documentTarget]).subscribe(s=>{this.documentsAsDestinations=[],s.forEach(a=>{this.documentsAsDestinations.push({name:a.name,image:a.image,fdMe:a.fdMe})})})),this.loadRecentDocuments(e)})})}}),this.globals.infoShower.waitForDocumentDestinationCheckChanged().subscribe({next:()=>{this.documentsAsDestinations=[],this.detectChanges()}}),this.globals.addressActivities=this}loadRecentDocuments(e){if(null===e)return this.activities=null,void this.detectChanges();this.currentAddress=e,this.datasource.fetchActivities(this.currentAddress).subscribe({next:i=>{if(console.log("Activities:",i),i.selectedType)this.selectedType=i.selectedType;else if(i.displayType){let r=this.types.find(o=>o.alias===i.displayType.toString());r&&(this.selectedType=r.alias)}if(i?.activities?.length>=0){if(i?.activities[0]?.viewIcon)for(let r of i.activities)r.viewIconUrl=this.datasource.getImageSrc(r.viewIcon);this.activities=i.activities}this.detectChanges(),this.globals.otherDestinationCheckboxes=this.destinationCheckboxes},error:i=>{this.messageService.showError(i)}})}detectChanges(){this.ref.detectChanges()}refresh(){this.loadRecentDocuments(this.currentAddress)}createWebintLink(e){return this.globals.convertToLink(e)}formatDate(e,i,r){return gT(e,"dd.MM.YYYY HH:mm","en_US")}destinationActivitySelectorClicked(e,i,r){e.checked?(this.getAllCheckboxes().forEach(o=>{o.name!==e.source.name&&(o.checked=!1)}),this.globals.infoShower.setDestinationInfo(e.source.name,El.activity,!0),this.documentsAsDestinations=[],this.documentsAsDestinations.push({name:i,image:r,fdMe:e.source.name})):(this.documentsAsDestinations=[],this.globals.infoShower.setDestinationInfo("",El.activity)),this.detectChanges(),console.log("docs as dest: ",this.globals.addressActivities.documentsAsDestinations),console.log("name is: ",i),console.log("image is: ",r)}getAllCheckboxes(){let e=this.destinationCheckboxes.toArray();return this.globals.mainDestinationCheckboxes?.length>0&&(e=e.concat(this.globals.mainDestinationCheckboxes.toArray())),e}activityTypeChanged(){this.graph.getExtendedData(this.globals.infoShower.currentItemId).subscribe(e=>{e.docTyp=this.selectedType,this.graph.saveExtendedData(this.globals.infoShower.currentItemId,e).subscribe(i=>{})}),this.datasource.changeActivityListType(this.selectedType).subscribe(()=>{this.loadRecentDocuments(this.currentAddress)})}removeDocumentDestination(e){this.documentsAsDestinations=[],this.getAllCheckboxes().forEach(i=>{i.checked=!1}),this.globals.infoShower.setDestinationInfo("",El.activity),this.globals.infoShower.selectFirst()}getDocumentedLabel(){return this.globals.infoShower.isAppointment?this.globals.languageConfLocal.DocumentedTo:this.globals.languageConfLocal.DocumentTo}openInBrowser(e){window.open(e,"_blank"),console.log("url is: ",e)}}return n.\u0275fac=function(e){return new(e||n)(p(ot),p(Ut),p(su),p(St),p(tn),p(ya),p(Bi),p(Kc))},n.\u0275cmp=Ue({type:n,selectors:[["app-address-activities"]],viewQuery:function(e,i){if(1&e&&De(Qne,5),2&e){let r;ce(r=ue())&&(i.destinationCheckboxes=r)}},decls:2,vars:2,consts:[["style","width:100%;","id","selectedDocumentAsDestination",4,"ngIf"],[4,"ngIf"],["id","selectedDocumentAsDestination",2,"width","100%"],[2,"font-size","small"],[1,"projectsChipsHolder"],["chipsDocumentAsDestination",""],["id","hoverArea",3,"removable","title","removed",4,"ngFor","ngForOf"],["matInput","","readonly","","class","projectChipsNoInput",3,"matChipInputFor",4,"ngIf"],["id","hoverArea",3,"removable","title","removed"],["onerror","this.src='assets/images/vwicn001.svg';",1,"chipImage",3,"src"],[1,"chipBase"],["id","overlayLinkMail",3,"click",4,"ngIf"],["matChipRemove","",1,"chipRemoveButton"],[1,"material-symbols-rounded",3,"title"],["id","overlayLinkMail",3,"click"],[1,"material-symbols-rounded","LinkIcon",3,"title"],["matInput","","readonly","",1,"projectChipsNoInput",3,"matChipInputFor"],["documentAsDestinationInputRO",""],["appearance","standard",1,"databaseSearchSelect"],[3,"value","valueChange","selectionChange"],[3,"value",4,"ngFor","ngForOf"],[3,"value"],["class","activityItemListEntry itemListEntry",4,"ngFor","ngForOf"],["class","listEntryItemMainLine",4,"ngIf"],[1,"activityItemListEntry","itemListEntry"],[1,"imgAndTitleOfEntry"],["onerror","this.src='assets/images/vwicn001.svg';",3,"src"],[1,"contentAndLink",3,"click"],[1,"listEntryItemMainLine",3,"title"],["class","listEntryItemSubLine",3,"title",4,"ngIf"],[1,"destIcons"],["class","LinkToMailButton",3,"title","click",4,"ngIf"],[1,"destinationSelector","activityDestinationSelector","spanTwoRows",3,"name","checked","change"],["docDestSelector",""],[1,"listEntryItemSubLine",3,"title"],[1,"LinkToMailButton",3,"title","click"],[1,"material-symbols-rounded","LinkIcon"],[1,"listEntryItemMainLine"]],template:function(e,i){1&e&&(H(0,eie,7,3,"mat-form-field",0),H(1,lie,6,3,"div",1)),2&e&&(v("ngIf",i.documentsAsDestinations&&i.documentsAsDestinations.length>0),f(1),v("ngIf",!i.globals.infoShower.noneSelected))},dependencies:[zn,pn,Ir,Pi,Ko,cr,Mr,pg,Cl,Ks,wl,bl],styles:["table[_ngcontent-%COMP%]{width:100%;box-shadow:none}.mat-row[_ngcontent-%COMP%]:hover .mat-cell[_ngcontent-%COMP%]{background-color:#d3d3d3}.uncheckedToggle[_ngcontent-%COMP%]{display:none}.activityItemListEntry[_ngcontent-%COMP%] > img[_ngcontent-%COMP%]{height:20px;width:20px}.activityItemListEntry[_ngcontent-%COMP%] .activityDestinationSelector[_ngcontent-%COMP%]{margin-right:0;padding-right:8px;padding-left:12px;align-self:center;visibility:hidden!important;display:block!important}.activityItemListEntry[_ngcontent-%COMP%] .activityDestinationSelector.mat-checkbox-checked[_ngcontent-%COMP%]{visibility:visible}.activityItemListEntry[_ngcontent-%COMP%]:hover .activityDestinationSelector[_ngcontent-%COMP%], .activityItemListEntry[_ngcontent-%COMP%]:hover .LinkToMailButton[_ngcontent-%COMP%]{visibility:visible!important}.itemListEntry[_ngcontent-%COMP%]{display:flex;justify-content:space-between}.imgAndTitleOfEntry[_ngcontent-%COMP%]{display:flex;flex-direction:row;max-width:80%}.contentAndLink[_ngcontent-%COMP%]{padding-left:2px}.destIcons[_ngcontent-%COMP%]{display:flex;align-items:center;visibility:hidden}.contentOfEntry[_ngcontent-%COMP%]{width:auto}.spanTwoRows[_ngcontent-%COMP%]{grid-row:span 2;margin-bottom:0;margin-top:8px}.activityIcon[_ngcontent-%COMP%]{height:18px;width:18px;margin-top:2px}tr.mat-row[_ngcontent-%COMP%]{height:10px!important}.regionHeader[_ngcontent-%COMP%]{font-size:small;border-bottom:1px solid #949494;font-family:Roboto,Helvetica Neue,sans-serif;color:#0000008a}.LinkToMailButton[_ngcontent-%COMP%]{color:#000000de;opacity:.7;padding-right:0!important;padding-left:0!important;display:flex;cursor:pointer;align-items:center;margin-right:-6px;background-color:#fff;border-radius:16px;padding-bottom:0;padding-top:0}#hoverArea[_ngcontent-%COMP%]{position:relative;height:auto}#hoverArea[_ngcontent-%COMP%]:hover .overlayLinkMail[_ngcontent-%COMP%]{visibility:visible!important}#overlayLinkMail[_ngcontent-%COMP%]{visibility:hidden;position:absolute;right:27px!important;width:24px;height:24px;color:#202020;text-align:center;background-color:#fff;border-radius:16px;padding-top:0;padding-bottom:-2px;top:4px!important;color:#000000de;opacity:.7}"]}),n})(),uie=(()=>{class n{constructor(e,i,r,o,s,a){this.datasource=e,this.lsm=i,this.graph=r,this.globals=o,this.messageService=s,this.waitList=a}ngOnInit(){}documentItem(e){this.lsm.setValue(Zt.sendInProcess,"1"),this.datasource.IsTaskpaneActive()&&!this.datasource.doNotDocumentSelected()?Office.context.mailbox.item?this.datasource.retrieveItemIdForItem().subscribe({next:r=>{this.graph.getExtendedData(r).subscribe(o=>{o.documentTarget?(o.type="mail",this.datasource.documentItemWithoutUI(o).subscribe({next:s=>{if(void 0!==s&&200!==s?.status&&!0!==s)return this.messageService.showMessageAsync(s.statusText,er.error),this.lsm.setValue(Zt.sendInProcess,"0"),void e.completed({allowEvent:!1,errorMessage:s.statusText});this.graph.getExtendedData(r).subscribe(a=>{a.documentedOnSend=!0,this.graph.saveExtendedData(r,o).subscribe(l=>{this.lsm.setValue(Zt.sendInProcess,"0"),e.completed({allowEvent:!0})})})},error:s=>{this.lsm.setValue(Zt.sendInProcess,"0"),e.completed({allowEvent:!1,errorMessage:s})}})):(this.lsm.setValue(Zt.sendInProcess,"0"),e.completed({allowEvent:!0}))})}}):(this.lsm.setValue(Zt.sendInProcess,"0"),e.completed({allowEvent:!0})):e.completed({allowEvent:!0})}sendEventTrigger(){let e=window.theEvent;""===this.globals.currentWebInt?e.completed({allowEvent:!0}):this.globals.infoShower?this.documentItem(e):this.waitList.addToWaitList("init",new S(()=>{this.documentItem(e)}))}}return n.\u0275fac=function(e){return new(e||n)(p(Bi),p(Mi),p(ya),p(ot),p(tn),p(Ri))},n.\u0275cmp=Ue({type:n,selectors:[["app-item-documentor"]],decls:1,vars:0,consts:[["hidden","","id","sendEventTrigger",3,"click"]],template:function(e,i){1&e&&(g(0,"button",0),W("click",function(){return i.sendEventTrigger()}),_())}}),n})();class Sa{}const die=["projectSelectorPanel"],hie=["searchProjectsInput"],pie=["destinationProjectsInputRO"],YR=["destinationProjectsInput"],QR=["searchProjectPhasesInput"],fie=["allProjectsButton"];function mie(n,t){if(1&n){const e=Ie();g(0,"div",20),W("click",function(){J(e);const r=C().$implicit;return Z(C(2).datasource.addDocumentLinkToMail(r))}),g(1,"span",21),j(2,"link"),_()()}if(2&n){const e=C(3);f(1),v("title",e.globals.languageConfLocal.addLinkTextToMail)}}function gie(n,t){if(1&n){const e=Ie();g(0,"mat-chip",14),W("removed",function(){const o=J(e).$implicit;return Z(C(2).removeProject(o))}),be(1,"img",15),g(2,"div",16),j(3),_(),H(4,mie,3,1,"div",17),g(5,"button",18)(6,"span",19),j(7,"cancel"),_()()()}if(2&n){const e=t.$implicit,i=C(2);v("removable",!0)("title",e.name),f(1),v("src",i.datasource.getImageSrc(e.image),En),f(2),ve(e.name),f(1),v("ngIf",i.settings.LinkOptionActive&&!i.globals.infoShower.isReadMode),f(2),v("title",i.globals.languageConfLocal.removeFromList)}}function _ie(n,t){if(1&n){const e=Ie();g(0,"input",22,23),W("focus",function(r){return J(e),Z(C(2).showProjectSelector(r))}),_()}2&n&&(C(),v("matChipInputFor",Yt(5)))}function vie(n,t){if(1&n){const e=Ie();g(0,"input",24,25),W("input",function(r){return J(e),Z(C(2).searchParticipatingProjects(r))}),_()}if(2&n){C();const e=Yt(5),i=Yt(10),r=C();v("matChipInputFor",e)("formControl",r.destinationProjects)("matAutocomplete",i)}}function yie(n,t){if(1&n&&(g(0,"mat-option",26),be(1,"img",27),g(2,"div",28)(3,"div",29),j(4),_(),g(5,"div",30),j(6),_(),g(7,"div",30),j(8),_()()()),2&n){const e=t.$implicit,i=C(2);v("value",e),rt("data-fdme",e.fdMe)("data-image",e.image),f(1),v("src",i.datasource.getImageSrc(e.image),En),f(2),_t("title",i.htmlHelp.parseHtmlEntities(e.lineOne)),f(1),qe(" ",i.htmlHelp.parseHtmlEntities(e.lineOne)," "),f(1),_t("title",i.htmlHelp.parseHtmlEntities(e.lineTwo)),f(1),qe(" ",i.htmlHelp.parseHtmlEntities(e.lineTwo)," "),f(1),_t("title",i.htmlHelp.parseHtmlEntities(e.lineThree)),f(1),qe(" ",i.htmlHelp.parseHtmlEntities(e.lineThree)," ")}}function bie(n,t){if(1&n){const e=Ie();g(0,"mat-chip",33),W("removed",function(){const o=J(e).$implicit;return Z(C(3).removeProjectPhase(o))}),be(1,"img",15),g(2,"div",16),j(3),_(),g(4,"button",18)(5,"span",34),j(6,"cancel"),_()()()}if(2&n){const e=t.$implicit,i=C(3);v("removable",!0)("title",e.name),f(1),v("src",i.datasource.getImageSrc(e.image),En),f(2),ve(e.name)}}function Cie(n,t){if(1&n){const e=Ie();g(0,"input",24,35),W("input",function(r){return J(e),Z(C(3).searchProjectPhases(r))}),_()}if(2&n){C();const e=Yt(4),i=Yt(8),r=C(2);v("matChipInputFor",e)("formControl",r.projectPhasesControl)("matAutocomplete",i)}}function wie(n,t){if(1&n&&(g(0,"mat-option",26),be(1,"img",27),g(2,"div",28)(3,"div",29),j(4),_(),g(5,"div",30),j(6),_(),g(7,"div",30),j(8),_()()()),2&n){const e=t.$implicit,i=C(3);v("value",e),rt("data-fdme",e.fdMe)("data-image",e.image),f(1),v("src",i.datasource.getImageSrc(e.image),En),f(2),_t("title",i.htmlHelp.parseHtmlEntities(e.lineOne)),f(1),qe(" ",i.htmlHelp.parseHtmlEntities(e.lineOne)," "),f(1),_t("title",i.htmlHelp.parseHtmlEntities(e.lineTwo)),f(1),qe(" ",i.htmlHelp.parseHtmlEntities(e.lineTwo)," "),f(1),_t("title",i.htmlHelp.parseHtmlEntities(e.lineThree)),f(1),qe(" ",i.htmlHelp.parseHtmlEntities(e.lineThree)," ")}}function Eie(n,t){if(1&n){const e=Ie();g(0,"mat-form-field",31)(1,"mat-label",2),j(2),_(),g(3,"mat-chip-list",3,4),H(5,bie,7,4,"mat-chip",32),H(6,Cie,2,3,"input",7),g(7,"mat-autocomplete",8,9),W("optionSelected",function(r){return J(e),Z(C(2).autoProjectPhaseSelected(r))})("opened",function(){return J(e),Z(C(2).autocompleteOpened("phasesAuto"))}),H(9,wie,9,10,"mat-option",10),_()()()}if(2&n){const e=C(2);f(2),zr("",e.globals.languageConfLocal.selectProjectPhases," (",e.projectPhaseResultArray.length,")"),f(3),v("ngForOf",e.projectPhases),f(1),v("ngIf",e.projectPhaseResultArray.length>0),f(3),v("ngForOf",e.filteredProjectPhases)}}function Die(n,t){if(1&n){const e=Ie();g(0,"div")(1,"mat-form-field",1)(2,"mat-label",2),j(3),_(),g(4,"mat-chip-list",3,4),H(6,gie,8,6,"mat-chip",5),H(7,_ie,2,1,"input",6),H(8,vie,2,3,"input",7),g(9,"mat-autocomplete",8,9),W("optionSelected",function(r){return J(e),Z(C().autoProjectSelected(r))})("opened",function(){return J(e),Z(C().autocompleteOpened("projectAuto"))}),H(11,yie,9,10,"mat-option",10),_(),g(12,"span",11,12),W("click",function(r){return J(e),Z(C().showProjectSelector(r))}),j(14,"open_in_new"),_()()(),H(15,Eie,10,5,"mat-form-field",13),_()}if(2&n){const e=C();f(3),ve(e.getProjectsLabel()),f(3),v("ngForOf",e.projects),f(1),v("ngIf",0===e.destinationDirectProjectsCount),f(1),v("ngIf",e.destinationDirectProjectsCount>0),f(3),v("ngForOf",e.filteredParticipatedResultsArray),f(1),v("title",e.globals.languageConfLocal.selectProjectsCRM),f(3),v("ngIf",e.projectPhaseResultArray.length>0||0!==e.projectPhases.length)}}let Sie=(()=>{class n{constructor(e,i,r,o,s,a,l,c,u,d,h,m){this.globals=e,this.mailLoadedService=i,this.ref=r,this.snack=o,this.translate=s,this.datasource=a,this.zone=l,this.lsm=c,this.dps=u,this.settings=d,this.graph=h,this.htmlHelp=m,this.projectSelectorPanelVisible=!1,this.searchTextInput="",this.searchResultsArray=[],this.projectPhaseResultArray=[],this.projectPhaseSearchResultArray=[],this.projectPhaseFilter="",this.participatedResultsArray=[],this.databases=[],this.searchValue="",this.showRecentlyUsed=!0,this.destinationDirectProjectsCount=0,this.destinationProjects=new Co(""),this.projectPhasesControl=new Co(""),this.participatingProjectsFilter="",this.addressFetched=!1,this.addresses=[],this.filteredAdditionalValues={},this.docImage={background:"transparent no-repeat url(assets/images/icons_business_mail.png)"},this.attachRdy=!1,this.attachDelete=!1}ngOnInit(){var e=this;this.projects=[];let i=Office.context.mailbox.item;i&&(this.isCompose=null==i.itemId,this.isAppointment="appointment"===i.itemType,this.isReadMode=void 0===i.getItemIdAsync||void 0===typeof i.getItemIdAsync),"gi"===this.globals.system&&(this.showRecentlyUsed=!1),this.projectPhases=[],this.globals.infoShower.waitForDocumentDestinationCheckChanged().subscribe({next:r=>{this.getProjects(!0)}}),this.getProjectDBs(this.globals.infoShower.primaryPointer),this.dps.addThingToClose("projectAuto",()=>{this.projectsAutocompleteTrigger?.closePanel()}),this.dps.addThingToClose("phasesAuto",()=>{this.phasesAutocompleteTrigger?.closePanel()}),this.dps.addThingToClose("projectDialog",()=>{this.projectSelectorPanelVisible=!1,this.searchValue=""}),this.globals.infoShower.waitForItemRecognition().subscribe(r=>{"appointment"===i?.itemType&&this.graph.getExtendedData(r).subscribe(function(){var o=Ae(function*(s){s&&s.selectedProjects&&(e.projects=JSON.parse(s.selectedProjects)),e.projects=e.projects.filter(a=>null!=a)});return function(s){return o.apply(this,arguments)}}())}),this.globals.infoShower.waitForUpdateBM4ODataCommand().subscribe(r=>{r.selectedProjects=JSON.stringify(this.projects.concat(this.projectPhases))}),this.globals.onActiveWindowChange().subscribe(r=>{"main"===r.newWindow&&"projectPage"===r.currentWindow&&this.projectChipsChanged()}),this.globals.projectSelector=this}detectChanges(){this.ref.detectChanges()}showProjectSelector(e){this.dps.closeAll("projectDialog"),e.stopPropagation(),this.globals.activeWindow="projectPage"}removeProject(e){this.projects.splice(this.projects.findIndex(i=>i.pointer===e.pointer),1),this.projectChipsChanged(),0===this.projects.length&&0===this.projectPhases.length&&(this.projectPhaseResultArray=[])}removeProjectPhase(e){this.projectPhases.splice(this.projects.findIndex(i=>i.pointer===e.pointer),1),this.projectPhaseChipsChanged(),0===this.projects.length&&0===this.projectPhases.length&&(this.projectPhaseResultArray=[])}projectChipsChanged(){var e=this;if(Office.context.mailbox.item){let r=JSON.stringify(this.projects.concat(this.projectPhases)),o=this.globals.infoShower.currentItemId;this.lsm.setValue(Zt.selectedProjects,r),this.graph.getExtendedData(o).subscribe(function(){var s=Ae(function*(a){a.selectedProjects=r,e.graph.saveExtendedData(o,a).subscribe(l=>{})});return function(a){return s.apply(this,arguments)}}())}if(this.projects.length>0){this.destinationProjectsInput?.nativeElement.classList.add("hasProjects"),this.destinationProjectsInputRO?.nativeElement.classList.add("hasProjects"),this.allProjectsButton?.nativeElement.classList.add("hasProjects");let r=this.projects.map(o=>o.pointer);this.datasource.getPhasesOfPointer(r).subscribe(o=>{this.projectPhaseResultArray=o})}else this.destinationProjectsInput?.nativeElement.classList.remove("hasProjects"),this.destinationProjectsInputRO?.nativeElement.classList.remove("hasProjects"),this.allProjectsButton?.nativeElement.classList.remove("hasProjects")}projectPhaseChipsChanged(){var e=this;if(Office.context.mailbox.item){let r=JSON.stringify(this.projects.concat(this.projectPhases)),o=this.globals.infoShower.currentItemId;this.lsm.setValue(Zt.selectedProjects,r),this.graph.getExtendedData(o).subscribe(function(){var s=Ae(function*(a){a.selectedProjects=r,e.graph.saveExtendedData(o,a).subscribe(l=>{})});return function(a){return s.apply(this,arguments)}}())}}textChanged(e){let i=e.target.value;"ba"===this.globals.system&&(this.showRecentlyUsed=0===i.length),i.length>0&&!this.searchPanelExpanded?this.searchPanelExpanded=!0:0===i.length&&this.searchPanelExpanded&&(this.searchPanelExpanded=!1),this.searchValue=i,this.getProjects(!1)}searchParticipatingProjects(e){this.participatingProjectsFilter=e.target.value}searchProjectPhases(e){this.projectPhaseFilter=e.target.value}dblClickedElement(e){let i=e.currentTarget;if(!this.projects.some(r=>r.pointer===i.dataset.fdme)){let r=new Sa;r.name=i.dataset.displayname,r.pointer=i.dataset.fdme,r.image=i.dataset.image,this.datasource.addToRecentlyUsed(i.dataset.fdme),this.projects.push(r),setTimeout(()=>{const o=document.querySelector(".allProjectsFooter .mat-chip-list-wrapper");o&&(o.scrollTop=o.scrollHeight),this.blinkChip(r.pointer)},10),this.projectChipsChanged()}}blinkChip(e){document.querySelector('mat-chip[data-pointer="'+e+'"]')?.classList.add("fade-it")}getProjectDBs(e){const i={};e?i.pointer=e:i.onlyOptions=!0;const r=new $t({fromObject:i});this.datasource.fetchDBs("projects",r).subscribe(o=>{console.log("ProjectDBs:",o),o&&this.generateSelectionArrProjectDbs(o.databases,e)})}generateSelectionArrProjectDbs(e,i){for(const s of e)this.databases.push({value:s.alias,viewValue:s.title});console.log("this.databases:",this.databases),this.databases.length>0&&(this.selectedDB=this.databases[0].value)}getProjects(e){e&&!this.globals.infoShower.primaryPointer||this.datasource.searchProjects(this.selectedDB,e?this.globals.infoShower.primaryPointer:"",this.searchValue).subscribe({next:i=>{i.MessageDetail&&i.MessageDetail.indexOf("BM4OProjects")>0?this.globals.noProjects=!0:(this.searchResultsArray=this.datasource.handleSearchResult(i,Yo.projects,{participantProjects:e}),e&&(this.destinationDirectProjectsCount=this.searchResultsArray.length,this.participatedResultsArray=this.datasource.handleSearchResult(i,Yo.projects,{participantProjects:e}),this.zone.run(()=>{setTimeout(()=>{this.showProjectSnack()},0)})),this.detectChanges(),console.log("ProjectSearchResults:",this.searchResultsArray))}})}showProjectSnack(){this.globals.infoShower.isReadMode||(this.projectSnack?.dismiss(),1===this.destinationDirectProjectsCount?(this.projectSnack=this.snack.open(this.globals.languageConfLocal.selectedAddressHasAssignedProject,this.globals.languageConfLocal.LC73057,{duration:7500}),this.projectSnack.afterOpened().subscribe(()=>{this.detectChanges()}),this.projectSnack.onAction().subscribe(()=>{this.projects=[],this.addOneProjectChip(this.searchResultsArray[0])})):this.destinationDirectProjectsCount>1&&(this.projectSnack=this.snack.open(this.globals.languageConfLocal.selectedAddressHasAssignedProjects,"OK",{duration:9500}),this.projectSnack.afterOpened().subscribe(()=>{this.detectChanges()}),this.projectSnack.onAction().subscribe(()=>{setTimeout(()=>{this.projectsAutocompleteTrigger?.openPanel(),this.destinationProjectsInput.nativeElement.focus()},10)})))}autoProjectSelected(e){this.addOneProjectChip(e.option.value),this.participatingProjectsFilter="",this.destinationProjectsInput.nativeElement.value=""}autoProjectPhaseSelected(e){this.addOneProjectPhaseChip(e.option.value),this.projectPhaseFilter=""}addOneProjectChip(e){let i=new Sa;i.name=e.lineOne,i.pointer=e.fdMe,i.image=e.image,this.datasource.addToRecentlyUsed(e.fdme),this.projects.push(i),this.projectChipsChanged()}addOneProjectPhaseChip(e){let i=new Sa;i.name=e.lineOne,i.pointer=e.fdMe,i.image=e.image,this.datasource.addToRecentlyUsed(e.fdme),this.projectPhases.push(i);let r=this.projects.findIndex(o=>o.pointer===e.parentPointer);-1!==r&&this.projects.splice(r,1),this.projectPhaseChipsChanged()}get filteredParticipatedResultsArray(){let e=this.participatingProjectsFilter?.toLowerCase();return this.participatedResultsArray.filter(i=>!this.projects.map(r=>r.pointer).some(r=>r===i.fdMe)&&(!e||i.lineOne.toLowerCase().includes(e)||i.lineTwo?.toLowerCase().includes(e)||i.lineThree?.toLowerCase().includes(e)))}get filteredProjectPhases(){let e=this.projectPhaseFilter?.toLowerCase();return this.projectPhaseResultArray.filter(i=>!this.projectPhases.map(r=>r.pointer).some(r=>r===i.fdMe)&&(!e||i.lineOne.toLowerCase().includes(e)||i.lineTwo?.toLowerCase().includes(e)||i.lineThree?.toLowerCase().includes(e)))}getProjectsLabel(){return this.projects.length>0?this.globals.languageConfLocal.selectedProjects:this.destinationDirectProjectsCount>0?this.globals.languageConfLocal.assignedProjects+" ("+this.destinationDirectProjectsCount+")":this.globals.languageConfLocal.selectProjectsCRM}autocompleteOpened(e){this.dps.closeAll(e)}}return n.\u0275fac=function(e){return new(e||n)(p(ot),p(su),p(St),p(bd),p(Ut),p(Bi),p(et),p(Mi),p(is),p(Kc),p(ya),p(Vs))},n.\u0275cmp=Ue({type:n,selectors:[["app-project-selector"]],viewQuery:function(e,i){if(1&e&&(De(die,5),De(hie,5),De(pie,5),De(YR,5),De(QR,5),De(fie,5),De(YR,5,ro),De(QR,5,ro)),2&e){let r;ce(r=ue())&&(i.projectSelectorPanel=r.first),ce(r=ue())&&(i.searchProjectsInput=r.first),ce(r=ue())&&(i.destinationProjectsInputRO=r.first),ce(r=ue())&&(i.destinationProjectsInput=r.first),ce(r=ue())&&(i.searchProjectPhasesInput=r.first),ce(r=ue())&&(i.allProjectsButton=r.first),ce(r=ue())&&(i.projectsAutocompleteTrigger=r.first),ce(r=ue())&&(i.phasesAutocompleteTrigger=r.first)}},decls:1,vars:1,consts:[[4,"ngIf"],["id","mainInputProjectSelector",2,"width","100%"],[2,"font-size","small"],[1,"projectsChipsHolder"],["chipsInMain",""],["id","hoverArea",3,"removable","title","removed",4,"ngFor","ngForOf"],["matInput","","readonly","","class","projectChipsNoInput",3,"matChipInputFor","focus",4,"ngIf"],["matInput","","class","projectChipsInput",3,"matChipInputFor","formControl","matAutocomplete","input",4,"ngIf"],[1,"projectSelectorAutocomplete",3,"optionSelected","opened"],["auto","matAutocomplete"],["class","projectOption",3,"value",4,"ngFor","ngForOf"],[1,"material-symbols-rounded","allProjects",3,"title","click"],["allProjectsButton",""],["style","width:100%;","id","mainInputProjectPhaseSelector",4,"ngIf"],["id","hoverArea",3,"removable","title","removed"],[1,"chipImage",3,"src"],[1,"chipBase"],["id","overlayLinkMail",3,"click",4,"ngIf"],["matChipRemove","",1,"chipRemoveButton"],[1,"material-symbols-rounded",3,"title"],["id","overlayLinkMail",3,"click"],[1,"material-symbols-rounded","LinkIcon",3,"title"],["matInput","","readonly","",1,"projectChipsNoInput",3,"matChipInputFor","focus"],["destinationProjectsInputRO",""],["matInput","",1,"projectChipsInput",3,"matChipInputFor","formControl","matAutocomplete","input"],["destinationProjectsInput",""],[1,"projectOption",3,"value"],[3,"src"],[2,"float","left"],[1,"listEntryItemMainLine",3,"title"],[1,"listEntryItemSubLine",3,"title"],["id","mainInputProjectPhaseSelector",2,"width","100%"],[3,"removable","title","removed",4,"ngFor","ngForOf"],[3,"removable","title","removed"],[1,"material-symbols-rounded"],["searchProjectPhasesInput",""]],template:function(e,i){1&e&&H(0,Die,16,7,"div",0),2&e&&v("ngIf",(!i.globals.infoShower.noneSelected&&!i.globals.noProjects||i.globals.addressActivities.documentsAsDestinations.length>0)&&i.globals.configJson.projectSelection)},dependencies:[zn,pn,Ar,Kr,af,Ir,Pi,cr,Mr,Cl,Ks,wl,bl,hR,ro],styles:['.projectSelectorAutocomplete .mat-option,.projectOption>.mat-option-text,.itemListEntry{line-height:1.3!important;white-space:nowrap;display:flex;padding:4px 0;grid-gap:4px}.projectSelectorAutocomplete .mat-option>div,.projectOption>.mat-option-text>div,.itemListEntry>div,.projectSelectorAutocomplete .mat-option a,.projectOption>.mat-option-text a,.itemListEntry a,.projectSelectorAutocomplete .mat-option a>div,.projectOption>.mat-option-text a>div,.itemListEntry a>div{display:block;overflow:hidden}.projectSelectorAutocomplete .mat-option>div>[class^=listEntryItem],.projectOption>.mat-option-text>div>[class^=listEntryItem],.itemListEntry>div>[class^=listEntryItem],.projectSelectorAutocomplete .mat-option a>[class^=listEntryItem],.projectOption>.mat-option-text a>[class^=listEntryItem],.itemListEntry a>[class^=listEntryItem],.projectSelectorAutocomplete .mat-option a>div>[class^=listEntryItem],.projectOption>.mat-option-text a>div>[class^=listEntryItem],.itemListEntry a>div>[class^=listEntryItem]{overflow:hidden;text-overflow:ellipsis;max-width:100%}.projectSelectorAutocomplete .mat-option:not(:last-child),.projectOption>.mat-option-text:not(:last-child),.itemListEntry:not(:last-child){border-bottom:1px solid #e0e0e0}.projectSelectorAutocomplete .mat-option:hover:not([data-selected=true]),.projectOption>.mat-option-text:hover:not([data-selected=true]),.itemListEntry:hover:not([data-selected=true]){background-color:#e0e0e0;cursor:pointer}.projectSelectorAutocomplete .mat-option:hover:not([data-selected=true]) .resultsLineWrapper,.projectOption>.mat-option-text:hover:not([data-selected=true]) .resultsLineWrapper,.itemListEntry:hover:not([data-selected=true]) .resultsLineWrapper{background-color:#e0e0e0}.projectSelectorAutocomplete [data-selected=true].mat-option,.projectOption>[data-selected=true].mat-option-text,[data-selected=true].itemListEntry{background-color:#d3d3d3}.projectSelectorAutocomplete [data-selected=true].mat-option .resultsLineWrapper,.projectOption>[data-selected=true].mat-option-text .resultsLineWrapper,[data-selected=true].itemListEntry .resultsLineWrapper{background-color:#d3d3d3}.projectSelectorAutocomplete .mat-option img,.projectOption>.mat-option-text img,.itemListEntry img{height:24px;width:24px;box-sizing:content-box;padding:1px 0 0!important}.projectSelectorAutocomplete .mat-option .resultsLineWrapper,.projectOption>.mat-option-text .resultsLineWrapper,.itemListEntry .resultsLineWrapper{overflow:hidden;text-overflow:ellipsis}.resultsLineWrapper{width:100%;overflow:hidden;text-overflow:ellipsis}.prevent-select{-webkit-user-select:none;user-select:none}.item{padding:.3em 1.2em}.btn-group{width:100%;padding-top:3px}.btn-group button{background-color:#bfbfbf;border:1px solid;padding:10px 24px;cursor:pointer;float:left;width:100%}.btn-group:after{content:"";clear:both;display:table}.btn-group button:first-child{border-radius:5px 0 0 5px}.btn-group button:last-child{border-radius:0 5px 5px 0}.btn-group button:not(:last-child){border-right:none}.chipRemoveButton{margin-top:-.5em;margin-left:0!important}.chipImage{height:1.5em;margin-right:3px;margin-left:-3px}.chipBase{text-overflow:ellipsis;overflow:hidden;white-space:nowrap;width:100%}.mat-form-field .projectChipsInput{width:100%;margin:0;line-height:1.8em;height:0}.mat-form-field .projectChipsInput:focus{height:auto}.mat-form-field.mat-focused .projectChipsInput{height:auto}.allProjects{cursor:pointer;position:absolute;right:-.1em;top:0em}.allProjects.hasProjects{top:-.7em}.projectOption{height:4em;padding-left:.5em!important}.projectOption>.mat-option-text{display:flex!important;border-bottom:none!important}.projectsChipsHolder>.mat-chip-list-wrapper{max-height:7.5em;overflow-x:hidden;overflow-y:auto;scrollbar-gutter:stable;margin:0!important;grid-gap:4px;padding:4px;display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}.projectsChipsHolder>.mat-chip-list-wrapper>.mat-chip{margin:0;background-color:#0000000a}.projectsChipsHolder>.mat-chip-list-wrapper>.mat-chip:first-of-type:last-of-type{grid-column:span 2}.projectChipsNoInput:not(.hasProjects){display:block;height:0}.projectChipsNoInput.hasProjects{display:none}.listEntryItemMainLine{font-size:13px}.listEntryItemSubLine{font-size:12px}.mat-expansion-panel-header-title{flex-direction:column;align-items:start;margin-right:0!important}mat-expansion-panel-header{padding:0!important}.mat-expansion-panel-header:hover{background-color:transparent!important}.projectOption span.mat-option-text{grid-gap:4px}#hoverArea{position:relative;height:auto}#hoverArea:hover #overlayLinkMail{visibility:visible!important}#overlayLinkMail{z-index:99;visibility:hidden;position:absolute;cursor:pointer;top:4px!important;right:27px!important;width:24px;height:24px;color:#202020;text-align:center;background-color:#fff;border-radius:16px;padding-top:0;padding-bottom:-2px;margin-top:1px;color:#000000de;opacity:.7}@keyframes green-fade{0%{background:#4e850c}to{background:#fcfcfc}}.fade-it{animation:green-fade 1s ease-in-out 0s}span.material-symbols-rounded.green:hover{color:#0af70a;font-weight:900}\n'],encapsulation:2}),n})();const Aie=["searchExpansionPanel"],Tie=["searchTextInput"];function xie(n,t){if(1&n&&(g(0,"mat-option",17),j(1),_()),2&n){const e=t.$implicit;v("value",e.value),f(1),ve(e.viewValue)}}function Iie(n,t){if(1&n){const e=Ie();g(0,"mat-form-field",15)(1,"mat-label"),j(2),_(),g(3,"mat-select",7),W("valueChange",function(r){return J(e),Z(C().selectedDB=r)})("selectionChange",function(){return J(e),Z(C().selectedDBChanged())}),H(4,xie,2,2,"mat-option",16),_()()}if(2&n){const e=C();f(2),ve(e.globals.languageConfLocal.contactsDatabase),f(1),v("value",e.selectedDB),f(1),v("ngForOf",e.databases)}}function Mie(n,t){if(1&n&&(g(0,"mat-option",18),j(1),_()),2&n){const e=C();f(1),ve(e.globals.languageConfLocal.ExistingCompany)}}function kie(n,t){if(1&n){const e=Ie();g(0,"div")(1,"mat-form-field",19)(2,"mat-label"),j(3),_(),g(4,"input",20),W("ngModelChange",function(r){return J(e),Z(C().extractedContact.Company=r)}),_()(),g(5,"mat-form-field",21)(6,"mat-label"),j(7),_(),g(8,"input",20),W("ngModelChange",function(r){return J(e),Z(C().extractedContact.CompanyEmail=r)}),_()(),g(9,"mat-form-field",21)(10,"mat-label"),j(11),_(),g(12,"input",20),W("ngModelChange",function(r){return J(e),Z(C().extractedContact.CompanyPhone=r)}),_()(),g(13,"mat-form-field",21)(14,"mat-label"),j(15),_(),g(16,"input",20),W("ngModelChange",function(r){return J(e),Z(C().extractedContact.CompanyFax=r)}),_()(),g(17,"mat-form-field",21)(18,"mat-label"),j(19),_(),g(20,"input",20),W("ngModelChange",function(r){return J(e),Z(C().extractedContact.Url=r)}),_()(),g(21,"mat-form-field",21)(22,"mat-label"),j(23),_(),g(24,"input",20),W("ngModelChange",function(r){return J(e),Z(C().extractedContact.Street=r)}),_()(),g(25,"mat-form-field",21)(26,"mat-label"),j(27),_(),g(28,"input",20),W("ngModelChange",function(r){return J(e),Z(C().extractedContact.City=r)}),_()(),g(29,"mat-form-field",21)(30,"mat-label"),j(31),_(),g(32,"input",20),W("ngModelChange",function(r){return J(e),Z(C().extractedContact.Zip=r)}),_()()()}if(2&n){const e=C();f(3),ve(e.globals.languageConfLocal.Name),f(1),v("ngModel",e.extractedContact.Company),f(3),ve(e.globals.languageConfLocal.Email),f(1),v("ngModel",e.extractedContact.CompanyEmail),f(3),ve(e.globals.languageConfLocal.Telephone),f(1),v("ngModel",e.extractedContact.CompanyPhone),f(3),ve(e.globals.languageConfLocal.Fax),f(1),v("ngModel",e.extractedContact.CompanyFax),f(3),ve(e.globals.languageConfLocal.Web),f(1),v("ngModel",e.extractedContact.Url),f(3),ve(e.globals.languageConfLocal.Street),f(1),v("ngModel",e.extractedContact.Street),f(3),ve(e.globals.languageConfLocal.City),f(1),v("ngModel",e.extractedContact.City),f(3),ve(e.globals.languageConfLocal.Zip),f(1),v("ngModel",e.extractedContact.Zip)}}function Rie(n,t){if(1&n){const e=Ie();g(0,"span",36),W("click",function(r){return J(e),Z(C(3).clearTextClicked(r))}),j(1,"cancel"),_()}}function Oie(n,t){1&n&&(g(0,"span",37),j(1,"expand_less"),_())}function Pie(n,t){1&n&&(g(0,"span",37),j(1,"search"),_())}function Lie(n,t){if(1&n&&(g(0,"div",38),j(1),_()),2&n){const e=C(3);f(1),qe(" ",e.globals.languageConfLocal.recentlyUsed," ")}}function Nie(n,t){if(1&n){const e=Ie();g(0,"div",39),W("click",function(r){return J(e),Z(C(3).clickedElement(r))}),be(1,"img",40),g(2,"div",41)(3,"span",42),j(4),_(),be(5,"br"),g(6,"span",43),j(7),_(),be(8,"br"),g(9,"span",43),j(10),_(),be(11,"br"),_()()}if(2&n){const e=t.$implicit,i=t.index,r=C(3);_t("title",r.htmlHelper.parseHtmlEntities(e.lineOne)),rt("data-fdme",e.fdMe)("data-email",e.email)("data-order",i+1),f(1),v("src",r.datasource.getImageSrc(e.image),En),f(2),_t("title",r.htmlHelper.parseHtmlEntities(e.lineOne+" <"+e.email+">")),f(1),qe(" ",r.htmlHelper.parseHtmlEntities(e.lineOne+" <"+e.email+">")," "),f(2),_t("title",r.htmlHelper.parseHtmlEntities(e.lineTwo)),f(1),ve(r.htmlHelper.parseHtmlEntities(e.lineTwo)),f(2),_t("title",r.htmlHelper.parseHtmlEntities(e.lineThree)),f(1),ve(r.htmlHelper.parseHtmlEntities(e.lineThree))}}function Fie(n,t){if(1&n){const e=Ie();g(0,"mat-expansion-panel",24,25),W("closed",function(){return J(e),Z(C(2).searchResultsPanelClosed())})("opened",function(){return J(e),Z(C(2).searchResultsPanelOpened())}),g(2,"mat-expansion-panel-header")(3,"mat-panel-title",26)(4,"mat-form-field",27)(5,"mat-label",28),j(6,"Search for company"),_(),g(7,"input",29,30),W("keydown.Space",function(r){return J(e),Z(C(2).noCloseOnSpace(r))})("input",function(r){return J(e),Z(C(2).textChanged(r))})("focus",function(r){return J(e),Z(C(2).searchInputFocused(r))})("click",function(r){return J(e),Z(C(2).searchInputClicked(r))})("ngModelChange",function(r){return J(e),Z(C(2).textInSearchInput=r)}),_()(),H(9,Rie,2,0,"span",31),H(10,Oie,2,0,"span",32),H(11,Pie,2,0,"span",32),_()(),g(12,"div",33),H(13,Lie,2,1,"div",34),H(14,Nie,12,11,"div",35),_()()}if(2&n){const e=Yt(8),i=C(2);f(7),v("ngModel",i.textInSearchInput),f(2),v("ngIf",e.value.length>0),f(1),v("ngIf",i.searchPanelExpanded),f(1),v("ngIf",!i.searchPanelExpanded),f(2),v("ngIf",i.showRecentlyUsed),f(1),v("ngForOf",i.searchResultsArray)}}function Bie(n,t){if(1&n){const e=Ie();g(0,"div"),H(1,Fie,15,6,"mat-expansion-panel",22),g(2,"mat-form-field",19)(3,"mat-label"),j(4),_(),g(5,"input",23),W("ngModelChange",function(r){return J(e),Z(C().extractedContact.CompanyName=r)}),_()(),g(6,"mat-form-field",21)(7,"mat-label"),j(8),_(),g(9,"input",23),W("ngModelChange",function(r){return J(e),Z(C().extractedContact.CompanyAddress=r)}),_()()()}if(2&n){const e=C();f(1),v("ngIf",e.letThereBeSearch),f(3),ve(e.globals.languageConfLocal.Name),f(1),v("ngModel",e.extractedContact.CompanyName),f(3),ve(e.globals.languageConfLocal.Address),f(1),v("ngModel",e.extractedContact.CompanyAddress)}}function jie(n,t){if(1&n){const e=Ie();g(0,"div")(1,"mat-form-field",19)(2,"mat-label"),j(3),_(),g(4,"span",44,45),W("click",function(r){return J(e),Z(C().showCompanySelector(r))}),j(6,"open_in_new"),_(),g(7,"input",20),W("ngModelChange",function(r){return J(e),Z(C().selectedCompany=r)}),_()()()}if(2&n){const e=C();f(3),ve(e.globals.languageConfLocal.selectCompany),f(1),v("title",e.globals.languageConfLocal.selectCompany),f(3),v("ngModel",e.selectedCompany)}}function Hie(n,t){if(1&n&&(g(0,"mat-option",46),j(1),_()),2&n){const e=C();f(1),ve(e.globals.languageConfLocal.NoContact)}}function Vie(n,t){if(1&n){const e=Ie();g(0,"div")(1,"mat-form-field",21)(2,"mat-label"),j(3),_(),g(4,"input",20),W("ngModelChange",function(r){return J(e),Z(C(2).extractedContact.Street=r)}),_()(),g(5,"mat-form-field",21)(6,"mat-label"),j(7),_(),g(8,"input",20),W("ngModelChange",function(r){return J(e),Z(C(2).extractedContact.City=r)}),_()(),g(9,"mat-form-field",21)(10,"mat-label"),j(11),_(),g(12,"input",20),W("ngModelChange",function(r){return J(e),Z(C(2).extractedContact.Zip=r)}),_()()()}if(2&n){const e=C(2);f(3),ve(e.globals.languageConfLocal.Street),f(1),v("ngModel",e.extractedContact.Street),f(3),ve(e.globals.languageConfLocal.City),f(1),v("ngModel",e.extractedContact.City),f(3),ve(e.globals.languageConfLocal.Zip),f(1),v("ngModel",e.extractedContact.Zip)}}function Uie(n,t){if(1&n){const e=Ie();g(0,"div")(1,"mat-form-field",19)(2,"mat-label"),j(3),_(),g(4,"input",20),W("ngModelChange",function(r){return J(e),Z(C().extractedContact.LastName=r)}),_()(),g(5,"mat-form-field",21)(6,"mat-label"),j(7),_(),g(8,"input",20),W("ngModelChange",function(r){return J(e),Z(C().extractedContact.FirstName=r)}),_()(),g(9,"mat-form-field",21)(10,"mat-label"),j(11),_(),g(12,"input",20),W("ngModelChange",function(r){return J(e),Z(C().extractedContact.Department=r)}),_()(),g(13,"mat-form-field",21)(14,"mat-label"),j(15),_(),g(16,"input",20),W("ngModelChange",function(r){return J(e),Z(C().extractedContact.Phone=r)}),_()(),g(17,"mat-form-field",21)(18,"mat-label"),j(19),_(),g(20,"input",20),W("ngModelChange",function(r){return J(e),Z(C().extractedContact.Mobile=r)}),_()(),g(21,"mat-form-field",21)(22,"mat-label"),j(23),_(),g(24,"input",20),W("ngModelChange",function(r){return J(e),Z(C().extractedContact.Fax=r)}),_()(),g(25,"mat-form-field",21)(26,"mat-label"),j(27),_(),g(28,"input",20),W("ngModelChange",function(r){return J(e),Z(C().extractedContact.Email=r)}),_()(),H(29,Vie,13,6,"div",11),_()}if(2&n){const e=C();f(3),ve(e.globals.languageConfLocal.Lastname),f(1),v("ngModel",e.extractedContact.LastName),f(3),ve(e.globals.languageConfLocal.Firstname),f(1),v("ngModel",e.extractedContact.FirstName),f(3),ve(e.globals.languageConfLocal.Department),f(1),v("ngModel",e.extractedContact.Department),f(3),ve(e.globals.languageConfLocal.Telephone),f(1),v("ngModel",e.extractedContact.Phone),f(3),ve(e.globals.languageConfLocal.Mobile),f(1),v("ngModel",e.extractedContact.Mobile),f(3),ve(e.globals.languageConfLocal.Fax),f(1),v("ngModel",e.extractedContact.Fax),f(3),ve(e.globals.languageConfLocal.Email),f(1),v("ngModel",e.extractedContact.Email),f(1),v("ngIf","compNo"===e.companyAction)}}let qie=(()=>{class n{constructor(e,i,r,o,s,a){this.globals=e,this.datasource=i,this.htmlHelper=r,this.messageService=o,this.dps=s,this.lsm=a,this.searchResultsArray=[],this.showRecentlyUsed=!1,this.showExistingCompany=!0,this.showNoContact=!0,this.letThereBeSearch=!1,this.databases=[],this.emailRegex=/^((?!\.)[\w\-_.]*[^.])(@((?!\.)[\w\-_.]*[^.]))(\.\w+(\.\w+)?[^.\W])$/,this.gotFocused=!1,this.extractedContact=new tm}ngOnInit(){this.globals.onActiveWindowChange().subscribe(e=>{"contactCreation"===e.newWindow&&"main"===e.currentWindow&&this.initializeTheView()}),this.globals.contactCreator=this}initializeTheView(){this.getContactDBs(),this.globals.infoShower.displayedDestination&&this.globals.infoShower.displayedDestination.additional.fallback?(this.companyAction="compExist",this.showNoContact=!1):(this.companyAction="compNew",this.showExistingCompany=!1),this.contactAction="contNew",this.companyActionOldValue=this.companyAction,this.contactActionOldValue=this.contactAction,this.extractedContact=this.globals.infoShower.extractedContactData,this.comapanyMail=this.extractedContact.CompanyEmail,this.recognizedMail=this.extractedContact.Email,this.compannyName=this.extractedContact.Company,this.generateDataBaseOnTheEmail(this.contactAction,null,this.companyAction,null),!0===this.globals.infoShower.noFooterInfo&&(this.messageService.showInfo(this.globals.languageConfLocal.noFooterInfoAvailableManualDataNeeded),console.log("noFooterInfoAvailableManualDataNeeded"),this.globals.infoShower.noFooterInfo=!1)}creationSelectionChange(e){this.showNoContact="compExist"!==this.companyAction,"compExist"===this.companyAction&&(this.contactAction="contNew"),"compExist"===this.companyAction&&!this.extractedContact.CompanyPointer&&(this.extractedContact.Company=""),"compSelect"===this.companyAction?this.extractedContact.Email="":this.extractedContact.Company=this.compannyName,this.generateDataBaseOnTheEmail(this.contactAction,this.contactActionOldValue,this.companyAction,this.companyActionOldValue),this.companyActionOldValue=this.companyAction,this.contactActionOldValue=this.contactAction}generateDataBaseOnTheEmail(e,i,r,o){null!=i&&null!=o&&("compNew"===r&&"contNo"===e&&(this.extractedContact.CompanyEmail||(this.extractedContact.CompanyEmail=this.extractedContact.Email)),r===o&&!this.extractedContact.CompanyFax&&(this.extractedContact.CompanyFax=this.extractedContact.Fax),r===o&&!this.extractedContact.CompanyPhone&&(this.extractedContact.CompanyPhone=this.extractedContact.Phone)),"contNew"===e&&!this.extractedContact.Email&&"compSelect"!==r&&(this.extractedContact.Email=this.globals.infoShower.theSender.email),"contNew"===e&&!this.extractedContact.Email&&"compSelect"===r&&(this.extractedContact.Email="")}createClicked(){this.globals.showSpinner();let e=document.querySelectorAll(".textInputControl"),i="";e.forEach(r=>{let o=r;this.htmlHelper.isHtml(o.value)&&(i+="["+o.parentNode.children[1].innerText+"] "+this.globals.languageConfLocal.ContainsDangerousContent+"
")}),"compNew"===this.companyAction&&(this.extractedContact.CompanyAddress=this.extractedContact.Street,(!this.extractedContact.Company||0===this.extractedContact.Company.trim().length)&&(i+=this.globals.languageConfLocal.CompanyNameRequired+"
"),this.extractedContact.CompanyEmail&&this.extractedContact.CompanyEmail.length>0&&!this.emailRegex.test(this.extractedContact.CompanyEmail)&&(i+=this.globals.languageConfLocal.EmailCompanyNotInCorrectFormat+"
")),"contNew"===this.contactAction&&"compSelect"!==this.companyAction&&(this.extractedContact.CompanyAddress=this.extractedContact.Street,this.extractedContact.Street="",(!this.extractedContact.LastName||0===this.extractedContact.LastName.trim().length)&&(i+=this.globals.languageConfLocal.LastNameRequired+"
"),this.extractedContact.Email&&0!==this.extractedContact.Email.trim().length?this.extractedContact.Email&&this.extractedContact.Email.length>0&&!this.emailRegex.test(this.extractedContact.Email)&&(i+=this.globals.languageConfLocal.EmailContactNotInCorrectFormat+"
"):i+=this.globals.languageConfLocal.EmailRequired+"
"),"contNew"===this.contactAction&&"compSelect"===this.companyAction&&(0===this.selectedCompany.length?i+=this.globals.languageConfLocal.CompanyNameRequired+"
":(this.extractedContact.CompanyName=this.globals.contactCreator.selectedCompany,this.extractedContact.Company=this.globals.contactCreator.selectedCompany,(!this.extractedContact.LastName||0===this.extractedContact.LastName.trim().length)&&(i+=this.globals.languageConfLocal.LastNameRequired+"
"),this.extractedContact.Email&&0!==this.extractedContact.Email.trim().length?this.extractedContact.Email&&this.extractedContact.Email.length>0&&!this.emailRegex.test(this.extractedContact.Email)&&(i+=this.globals.languageConfLocal.EmailContactNotInCorrectFormat+"
"):i+=this.globals.languageConfLocal.EmailRequired+"
"),console.log("selectedCompany is ",this.globals.contactCreator.selectedCompany),console.log("selectedCompanyData is ",this.globals.contactCreator.selectedCompanyData),console.log("extractedContact is ",this.globals.contactCreator.extractedContact)),this.datasource.validateDataInBackend(this.extractedContact,this.contactAction,this.companyAction,this.selectedDB).subscribe(r=>{"PASS"!==r.Validation&&(i+=r.errors.join("
")),i?(this.globals.hideSpinner(),this.messageService.showError(i,"Error",!1,15e3)):this.datasource.quickCreateContact(this.extractedContact,this.contactAction,this.companyAction,this.selectedDB).subscribe({next:o=>{o&&("contNew"===this.contactAction?this.messageService.showMessageAsync("compNew"===this.companyAction?this.globals.languageConfLocal.NewCompanyAndContactCreated:"compExist"===this.companyAction?this.globals.languageConfLocal.NewContactCreatedAndAdded:"compSelect"===this.companyAction?this.globals.languageConfLocal.NewContactCreatedAndConnected:this.globals.languageConfLocal.NewStandaloneContactCreated,er.success):"compNew"===this.companyAction&&this.messageService.showMessageAsync(this.globals.languageConfLocal.NewCompanyCreated,er.success),this.globals.hideSpinner(),this.globals.contactCreated=!0,this.globals.activeWindow="main")},error:o=>{this.globals.hideSpinner()}})}),this.globals.contactCreator.selectedCompany="",this.globals.contactCreator.selectedCompanyData=[]}cancelClicked(){this.globals.activeWindow="main",this.globals.contactCreator.selectedCompany=""}searchResultsPanelOpened(){let e=this.searchExpansionPanel._body.nativeElement.childNodes[0];e.style.paddingRight="3px",e.style.paddingLeft="3px",e.style.paddingBottom="3px",e.style.backgroundColor="#ffffff",e.style.zIndex=5,this.searchPanelExpanded=!0,this.searchTextInput.nativeElement.focus()}searchResultsPanelClosed(){this.searchPanelExpanded=!1}noCloseOnSpace(e){e.stopPropagation()}textChanged(e){this.textInSearchInput.length>0&&this.searchExpansionPanel.open(),this.getCompanies()}clearTextClicked(e){this.textInSearchInput="",this.searchPanelExpanded&&(this.getCompanies(),this.searchTextInput.nativeElement.focus()),e.stopPropagation()}searchInputFocused(e){setTimeout(()=>{this.searchExpansionPanel.open()},100),this.gotFocused=!0}searchInputClicked(e){this.gotFocused&&e.stopPropagation(),this.gotFocused=!1}clickedElement(e){this.selectCompany(e.currentTarget)}getCompanies(){this.datasource.fetchDBs("dbConnections",null).subscribe({next:e=>{}})}selectCompany(e){}getContactDBs(){this.datasource.fetchDBs("dbConnections",null).subscribe({next:e=>{console.log("DBs:",e),this.filterForContacts(e)}})}filterForContacts(e){const i={};for(const r in e)"GeOfficeAliases"!==r&&"Contact"===e[r].type&&(i[r]=e[r].title);this.generateSelectionArr(i)}generateSelectionArr(e){this.databases=[];for(const i in e)Object.prototype.hasOwnProperty.call(e,i)&&this.databases.push({value:i,viewValue:e[i]});if(console.log(this.databases),this.databases.length>0){let i=this.lsm.getValue(Zt.contactDB);null!==i?this.databases.forEach(r=>{r.value===i&&(this.selectedDB=r.value)}):this.selectedDB=this.databases[0].value}}selectedDBChanged(){this.initialDBSelection?this.initialDBSelection=!1:this.lsm.setValue(Zt.contactDB,this.selectedDB)}showCompanySelector(e){e.stopPropagation(),this.globals.activeWindow="companyPage"}}return n.\u0275fac=function(e){return new(e||n)(p(ot),p(Bi),p(Vs),p(tn),p(is),p(Mi))},n.\u0275cmp=Ue({type:n,selectors:[["app-contact-creator"]],viewQuery:function(e,i){if(1&e&&(De(Aie,5),De(Tie,5)),2&e){let r;ce(r=ue())&&(i.searchExpansionPanel=r.first),ce(r=ue())&&(i.searchTextInput=r.first)}},decls:34,vars:19,consts:[[2,"box-shadow","none"],[1,"left-right-align"],[1,"material-symbols-rounded","green",2,"cursor","pointer",3,"title","click"],[1,"material-symbols-rounded","red",2,"cursor","pointer",3,"title","click"],["class","databaseSearchSelect","appearance","standard",4,"ngIf"],[1,"noHeaderText"],["floatLabel","auto",2,"width","100%","margin-left","5px","margin-right","5px"],[3,"value","valueChange","selectionChange"],["value","compNo"],["value","compNew"],["value","compExist",4,"ngIf"],[4,"ngIf"],["value","contNo",4,"ngIf"],["value","contNew"],[1,"cardWithBackground"],["appearance","standard",1,"databaseSearchSelect"],[3,"value",4,"ngFor","ngForOf"],[3,"value"],["value","compExist"],["floatLabel","auto",2,"width","100%","margin-top","5px"],["matInput","",1,"textInputControl",3,"ngModel","ngModelChange"],["floatLabel","auto",2,"width","100%"],["class","searchResultsPanel mat-elevation-z0","hideToggle","",3,"closed","opened",4,"ngIf"],["matInput","","disabled","",3,"ngModel","ngModelChange"],["hideToggle","",1,"searchResultsPanel","mat-elevation-z0",3,"closed","opened"],["searchExpansionPanel",""],[1,"searchInCRMHeader"],[2,"width","100%","vertical-align","bottom"],[2,"font-size","small"],["matInput","","type","search","id","searchText","name","searchText",3,"ngModel","keydown.Space","input","focus","click","ngModelChange"],["searchTextInput",""],["class","material-symbols-rounded clearIcon",3,"click",4,"ngIf"],["class","material-symbols-rounded searchIcon",4,"ngIf"],["id","resultsContainer",1,"prevent-select"],["class","recentlyUsed",4,"ngIf"],["class","itemListEntry resultListEntry",3,"title","click",4,"ngFor","ngForOf"],[1,"material-symbols-rounded","clearIcon",3,"click"],[1,"material-symbols-rounded","searchIcon"],[1,"recentlyUsed"],[1,"itemListEntry","resultListEntry",3,"title","click"],[1,"normalImage",3,"src"],[1,"resultsLineWrapper"],[1,"listEntryItemMainLine",3,"title"],[1,"listEntryItemSubLine",3,"title"],[1,"material-symbols-rounded","allProjects",3,"title","click"],["allProjectsButton",""],["value","contNo"]],template:function(e,i){1&e&&(g(0,"mat-card",0)(1,"mat-card-title",1),j(2),g(3,"div")(4,"span",2),W("click",function(){return i.createClicked()}),j(5,"check_circle"),_(),g(6,"span",3),W("click",function(){return i.cancelClicked()}),j(7,"cancel"),_()()(),H(8,Iie,5,3,"mat-form-field",4),g(9,"mat-card-header",5)(10,"mat-form-field",6)(11,"mat-label"),j(12),_(),g(13,"mat-select",7),W("valueChange",function(o){return i.companyAction=o})("selectionChange",function(o){return i.creationSelectionChange(o)}),g(14,"mat-option",8),j(15),_(),g(16,"mat-option",9),j(17),_(),H(18,Mie,2,1,"mat-option",10),_()()(),g(19,"mat-card-content"),H(20,kie,33,16,"div",11),H(21,Bie,10,5,"div",11),H(22,jie,8,3,"div",11),_()(),g(23,"mat-card",0)(24,"mat-card-header",5)(25,"mat-form-field",6)(26,"mat-label"),j(27),_(),g(28,"mat-select",7),W("valueChange",function(o){return i.contactAction=o})("selectionChange",function(o){return i.creationSelectionChange(o)}),H(29,Hie,2,1,"mat-option",12),g(30,"mat-option",13),j(31),_()()()(),g(32,"mat-card-content",14),H(33,Uie,30,15,"div",11),_()()),2&e&&(f(2),qe(" ",i.globals.languageConfLocal.ContactQuickCreation," "),f(2),v("title",i.globals.languageConfLocal.Create),f(2),v("title",i.globals.languageConfLocal.Cancel),f(2),v("ngIf",null!=i.databases&&i.databases.length>0),f(4),ve(i.globals.languageConfLocal.ComapnyAction),f(1),v("value",i.companyAction),f(2),ve(i.globals.languageConfLocal.NoCompany),f(2),ve(i.globals.languageConfLocal.NewCompany),f(1),v("ngIf",i.showExistingCompany),f(1),_s("compExist"!==i.companyAction?"cardWithBackground":"cardWithBackgroundDarker"),f(1),v("ngIf","compNew"===i.companyAction),f(1),v("ngIf","compExist"===i.companyAction),f(1),v("ngIf","compSelect"===i.companyAction),f(5),ve(i.globals.languageConfLocal.ContactAction),f(1),v("value",i.contactAction),f(1),v("ngIf",i.showNoContact),f(2),ve(i.globals.languageConfLocal.NewContact),f(2),v("ngIf","contNew"===i.contactAction))},dependencies:[zn,pn,Ar,Kr,wo,Ir,Pi,Ko,cr,Mr,gw,CR,wR,_h,ite,mh,gh],styles:['.itemListEntry[_ngcontent-%COMP%]{line-height:1.3!important;white-space:nowrap;display:flex;padding:4px 0;grid-gap:4px}.itemListEntry[_ngcontent-%COMP%] > div[_ngcontent-%COMP%], .itemListEntry[_ngcontent-%COMP%] a[_ngcontent-%COMP%], .itemListEntry[_ngcontent-%COMP%] a[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{display:block;overflow:hidden}.itemListEntry[_ngcontent-%COMP%] > div[_ngcontent-%COMP%] > [class^=listEntryItem][_ngcontent-%COMP%], .itemListEntry[_ngcontent-%COMP%] a[_ngcontent-%COMP%] > [class^=listEntryItem][_ngcontent-%COMP%], .itemListEntry[_ngcontent-%COMP%] a[_ngcontent-%COMP%] > div[_ngcontent-%COMP%] > [class^=listEntryItem][_ngcontent-%COMP%]{overflow:hidden;text-overflow:ellipsis;max-width:100%}.itemListEntry[_ngcontent-%COMP%]:not(:last-child){border-bottom:1px solid #e0e0e0}.itemListEntry[_ngcontent-%COMP%]:hover:not([data-selected=true]){background-color:#e0e0e0;cursor:pointer}.itemListEntry[_ngcontent-%COMP%]:hover:not([data-selected=true]) .resultsLineWrapper[_ngcontent-%COMP%]{background-color:#e0e0e0}[data-selected=true].itemListEntry[_ngcontent-%COMP%], [data-selected=true].itemListEntry[_ngcontent-%COMP%] .resultsLineWrapper[_ngcontent-%COMP%]{background-color:#d3d3d3}.itemListEntry[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{height:24px;width:24px;box-sizing:content-box;padding:1px 0 0!important}.itemListEntry[_ngcontent-%COMP%] .resultsLineWrapper[_ngcontent-%COMP%]{overflow:hidden;text-overflow:ellipsis}#resultsContainer[_ngcontent-%COMP%]{height:50vh;overflow-y:auto}#resultsContainer[_ngcontent-%COMP%] > .recentlyUsed[_ngcontent-%COMP%]{width:100%;text-align:center;color:#a9a9a9;padding-bottom:8px;border-bottom:1px solid #e0e0e0}#resultsContainer[_ngcontent-%COMP%] > .recentlyUsed[_ngcontent-%COMP%] + .itemListEntry[_ngcontent-%COMP%]{padding-top:8px}.mat-card-header[_ngcontent-%COMP%]{background-color:#d3d3d3;padding:5px}.resultsLineWrapper[_ngcontent-%COMP%]{width:100%;overflow:hidden;text-overflow:ellipsis}.prevent-select[_ngcontent-%COMP%]{-webkit-user-select:none;user-select:none}#context-menu[_ngcontent-%COMP%]{background-color:#fff;box-shadow:0 0 20px #25282a38;color:#1f194c;width:10em;padding:.8em .6em;font-size:13px;position:fixed;visibility:hidden}#context-menu[_ngcontent-%COMP%] .item[_ngcontent-%COMP%]{padding:.3em 1.2em}#context-menu[_ngcontent-%COMP%] .item[_ngcontent-%COMP%]:hover{background-color:#e0e0e0;cursor:pointer}.btn-group[_ngcontent-%COMP%]{width:100%;padding-top:3px}.btn-group[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{background-color:#bfbfbf;border:1px solid;padding:10px 24px;cursor:pointer;float:left;width:100%}.btn-group[_ngcontent-%COMP%] [_ngcontent-%COMP%]:hover{background-color:#5f5f5f}.btn-group[_ngcontent-%COMP%]:after{content:"";clear:both;display:table}.btn-group[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:first-child{border-radius:5px 0 0 5px}.btn-group[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child{border-radius:0 5px 5px 0}.btn-group[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:not(:last-child){border-right:none}#searchText[_ngcontent-%COMP%]{font-size:12px}.mat-expansion-panel-header[_ngcontent-%COMP%]{height:4.5em;font-size:small}.mat-expansion-panel[_ngcontent-%COMP%] .mat-expanded[_ngcontent-%COMP%]{border:#4d4d4d;border-width:3px}.searchResultsPanel[_ngcontent-%COMP%]{width:calc(100% - 1px);z-index:4;border-radius:5px}.mat-expansion-panel-header-title[_ngcontent-%COMP%]{flex-direction:column;align-items:start;margin-right:0!important}mat-expansion-panel-header[_ngcontent-%COMP%]{padding:0!important}.mat-expansion-panel-header[_ngcontent-%COMP%]:hover{background-color:transparent!important}.searchIcon[_ngcontent-%COMP%]{position:absolute;right:3px;bottom:22px}.clearIcon[_ngcontent-%COMP%]{position:absolute;right:27px;bottom:22px}.databaseSearchSelect[_ngcontent-%COMP%]{width:100%}.databaseSearchSelect[_ngcontent-%COMP%] + .searchResultsPanel[_ngcontent-%COMP%]{margin-top:-16px}.material-symbols-rounded[_ngcontent-%COMP%]{font-variation-settings:"FILL" 0,"wght" 300,"GRAD" -25,"opsz" 18} .noHeaderText>div.mat-card-header-text{display:none}.noHeaderText[_ngcontent-%COMP%]{border-top-right-radius:5px;border-top-left-radius:5px}.cardWithBackground[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{background-color:#f1f1f1;border-bottom-left-radius:5px;border-bottom-right-radius:5px;padding:5px}.cardWithBackgroundDarker[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{background-color:#e8e8e8;border-bottom-left-radius:5px;border-bottom-right-radius:5px;padding:5px}.mat-input-element[_ngcontent-%COMP%]:disabled{color:#000}span.material-symbols-rounded.red[_ngcontent-%COMP%]:hover{color:red;font-weight:900}span.material-symbols-rounded.green[_ngcontent-%COMP%]:hover{color:#00b800;font-weight:900}.left-right-align[_ngcontent-%COMP%]{display:flex;justify-content:space-between}']}),n})();const JR={appVersion:G(4147).i8+" - beta",production:!0,basehref:"businessmail-beta"};let zie=(()=>{class n{constructor(e,i,r,o,s,a,l,c,u){this.globals=e,this.messageService=i,this.mailLoadedService=r,this.ref=o,this.translate=s,this.waitList=a,this.datasource=l,this.lsm=c,this.dps=u}ngOnInit(){this.globals.onActiveWindowChange().subscribe(e=>{"about"===e.newWindow&&"main"===e.currentWindow&&this.initializeTheView()})}initializeTheView(){this.datasource.getProductVersion().subscribe(e=>{this.globals.backendVersion=e,this.crmVersion=this.globals.system.toUpperCase()+" "+this.globals.backendVersion}),this.appVersion=JR.appVersion,this.disclaimer=this.globals.languageConfLocal.Disclaimer.replace("{{currentYear}}",(new Date).getFullYear().toString())}closeClicked(){this.globals.activeWindow="main"}openGedys(){window.open("http://www.gedys-intraware.de","_blank")}licenseInfo(){window.open("assets/licenseInfo.txt","_blank")}}return n.\u0275fac=function(e){return new(e||n)(p(ot),p(tn),p(su),p(St),p(Ut),p(Ri),p(Bi),p(Mi),p(is))},n.\u0275cmp=Ue({type:n,selectors:[["app-about"]],decls:17,vars:5,consts:[[2,"text-align","center"],[2,"margin-top","25px"],["href","#",3,"click"],["mat-button","",2,"background-color","rgb(212, 212, 212)","position","fixed","bottom","30px","left","40%",3,"click"]],template:function(e,i){1&e&&(g(0,"div",0)(1,"h1",1),j(2,"BusinessMail4Outlook"),_(),g(3,"h4"),j(4),_(),g(5,"h4"),j(6),_(),g(7,"div"),j(8),g(9,"a",2),W("click",function(){return i.openGedys()}),j(10,"www.gedys-intraware.de"),_()(),g(11,"div"),be(12,"br"),g(13,"a",2),W("click",function(){return i.licenseInfo()}),j(14),_()(),g(15,"button",3),W("click",function(){return i.closeClicked()}),j(16),_()()),2&e&&(f(4),qe("Addin version: ",i.appVersion,""),f(2),qe("CRM version: ",i.crmVersion,""),f(2),qe("",i.disclaimer," "),f(6),ve(i.globals.languageConfLocal.licenseInfo),f(2),ve(i.globals.languageConfLocal.Close))},dependencies:[tl],styles:['.itemListEntry[_ngcontent-%COMP%]{line-height:1.3!important;white-space:nowrap;display:flex;padding:4px 0;grid-gap:4px}.itemListEntry[_ngcontent-%COMP%] > div[_ngcontent-%COMP%], .itemListEntry[_ngcontent-%COMP%] a[_ngcontent-%COMP%], .itemListEntry[_ngcontent-%COMP%] a[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{display:block;overflow:hidden}.itemListEntry[_ngcontent-%COMP%] > div[_ngcontent-%COMP%] > [class^=listEntryItem][_ngcontent-%COMP%], .itemListEntry[_ngcontent-%COMP%] a[_ngcontent-%COMP%] > [class^=listEntryItem][_ngcontent-%COMP%], .itemListEntry[_ngcontent-%COMP%] a[_ngcontent-%COMP%] > div[_ngcontent-%COMP%] > [class^=listEntryItem][_ngcontent-%COMP%]{overflow:hidden;text-overflow:ellipsis;max-width:100%}.itemListEntry[_ngcontent-%COMP%]:not(:last-child){border-bottom:1px solid #e0e0e0}.itemListEntry[_ngcontent-%COMP%]:hover:not([data-selected=true]){background-color:#e0e0e0;cursor:pointer}.itemListEntry[_ngcontent-%COMP%]:hover:not([data-selected=true]) .resultsLineWrapper[_ngcontent-%COMP%]{background-color:#e0e0e0}[data-selected=true].itemListEntry[_ngcontent-%COMP%], [data-selected=true].itemListEntry[_ngcontent-%COMP%] .resultsLineWrapper[_ngcontent-%COMP%]{background-color:#d3d3d3}.itemListEntry[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{height:24px;width:24px;box-sizing:content-box;padding:1px 0 0!important}.itemListEntry[_ngcontent-%COMP%] .resultsLineWrapper[_ngcontent-%COMP%]{overflow:hidden;text-overflow:ellipsis}#resultsContainer[_ngcontent-%COMP%]{height:50vh;overflow-y:auto}#resultsContainer[_ngcontent-%COMP%] > .recentlyUsed[_ngcontent-%COMP%]{width:100%;text-align:center;color:#a9a9a9;padding-bottom:8px;border-bottom:1px solid #e0e0e0}#resultsContainer[_ngcontent-%COMP%] > .recentlyUsed[_ngcontent-%COMP%] + .itemListEntry[_ngcontent-%COMP%]{padding-top:8px}.resultsLineWrapper[_ngcontent-%COMP%]{width:100%;overflow:hidden;text-overflow:ellipsis}.prevent-select[_ngcontent-%COMP%]{-webkit-user-select:none;user-select:none}#context-menu[_ngcontent-%COMP%]{background-color:#fff;box-shadow:0 0 20px #25282a38;color:#1f194c;width:10em;padding:.8em .6em;font-size:13px;position:fixed;visibility:hidden}#context-menu[_ngcontent-%COMP%] .item[_ngcontent-%COMP%]{padding:.3em 1.2em}#context-menu[_ngcontent-%COMP%] .item[_ngcontent-%COMP%]:hover{background-color:#e0e0e0;cursor:pointer}.btn-group[_ngcontent-%COMP%]{width:100%;padding-top:3px}.btn-group[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{background-color:#bfbfbf;border:1px solid;padding:10px 24px;cursor:pointer;float:left;width:100%}.btn-group[_ngcontent-%COMP%] [_ngcontent-%COMP%]:hover{background-color:#5f5f5f}.btn-group[_ngcontent-%COMP%]:after{content:"";clear:both;display:table}.btn-group[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:first-child{border-radius:5px 0 0 5px}.btn-group[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child{border-radius:0 5px 5px 0}.btn-group[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:not(:last-child){border-right:none}#searchText[_ngcontent-%COMP%]{font-size:12px}.mat-expansion-panel-header[_ngcontent-%COMP%]{height:4.5em;font-size:small}.mat-expansion-panel[_ngcontent-%COMP%] .mat-expanded[_ngcontent-%COMP%]{border:#4d4d4d;border-width:3px}.searchResultsPanel[_ngcontent-%COMP%]{width:calc(100% - 1px);z-index:4;border-radius:5px}.mat-expansion-panel-header-title[_ngcontent-%COMP%]{flex-direction:column;align-items:start;margin-right:0!important}mat-expansion-panel-header[_ngcontent-%COMP%]{padding:0!important}.mat-expansion-panel-header[_ngcontent-%COMP%]:hover{background-color:transparent!important}.searchIcon[_ngcontent-%COMP%]{position:absolute;right:3px;bottom:22px}.clearIcon[_ngcontent-%COMP%]{position:absolute;right:27px;bottom:22px}.databaseSearchSelect[_ngcontent-%COMP%]{width:100%}.databaseSearchSelect[_ngcontent-%COMP%] + .searchResultsPanel[_ngcontent-%COMP%]{margin-top:-16px}']}),n})(),Gie=(()=>{class n{constructor(e,i,r,o,s,a,l,c,u,d){this.globals=e,this.messageService=i,this.mailLoadedService=r,this.ref=o,this.translate=s,this.waitList=a,this.datasource=l,this.lsm=c,this.http=u,this.dps=d}ngOnInit(){this.http.get("assets/licenseInfo.txt",{responseType:"text"}).subscribe(e=>{this.licInfo=e})}closeClicked(){this.globals.activeWindow="about"}}return n.\u0275fac=function(e){return new(e||n)(p(ot),p(tn),p(su),p(St),p(Ut),p(Ri),p(Bi),p(Mi),p(yc),p(is))},n.\u0275cmp=Ue({type:n,selectors:[["app-license-information"]],decls:6,vars:2,consts:[[2,"text-align","center"],[2,"margin-bottom","0px","height","calc(100vh - 1px)","text-align","justify"],["mat-button","",2,"background-color","rgb(212, 212, 212)","position","fixed","bottom","30px","left","40%",3,"click"]],template:function(e,i){1&e&&(g(0,"div",0)(1,"div")(2,"pre",1),j(3),_()(),g(4,"button",2),W("click",function(){return i.closeClicked()}),j(5),_()()),2&e&&(f(3),qe(" ",i.licInfo,"\n "),f(2),ve(i.globals.languageConfLocal.Close))},dependencies:[tl]}),n})();const Wie=["projectSelectorPanel"],$ie=["searchProjectsInput"],Kie=["searchDocumentInput"],ZR=["tagsInput"];function Yie(n,t){if(1&n){const e=Ie();g(0,"mat-chip",11),W("removed",function(){const o=J(e).$implicit;return Z(C(2).removeTag(o))}),g(1,"div",12),j(2),_(),g(3,"button",13)(4,"span",14),j(5,"cancel"),_()()()}if(2&n){const e=t.$implicit;v("removable",!0)("title",e[1]),f(2),ve(e[1])}}function Qie(n,t){if(1&n&&(g(0,"mat-option",15)(1,"div",16)(2,"div",17),j(3),_()()()),2&n){const e=t.$implicit,i=C(2);v("value",e),rt("data-key",e[0]),f(2),_t("title",i.htmlHelp.parseHtmlEntities(e[1])),f(1),qe(" ",i.htmlHelp.parseHtmlEntities(e[1])," ")}}function Jie(n,t){if(1&n){const e=Ie();g(0,"div")(1,"mat-form-field",1)(2,"mat-label",2),j(3),_(),g(4,"mat-chip-list",3,4),H(6,Yie,6,3,"mat-chip",5),g(7,"input",6,7),W("input",function(r){return J(e),Z(C().searchTags(r))}),_(),g(9,"mat-autocomplete",8,9),W("optionSelected",function(r){return J(e),Z(C().autoTagsSelected(r))})("opened",function(){return J(e),Z(C().autocompleteOpened("tagsAuto"))}),H(11,Qie,4,4,"mat-option",10),_()()()()}if(2&n){const e=Yt(5),i=Yt(10),r=C();f(3),ve(r.globals.languageConfLocal.tags),f(3),v("ngForOf",r.enums),f(1),v("matChipInputFor",e)("matAutocomplete",i),f(4),v("ngForOf",r.filteredParticipatedResultsArray)}}let Zie=(()=>{class n{constructor(e,i,r,o,s,a,l,c,u,d,h){this.globals=e,this.mailLoadedService=i,this.ref=r,this.snack=o,this.translate=s,this.datasource=a,this.zone=l,this.lsm=c,this.dps=u,this.htmlHelp=d,this.graph=h,this.searchResultsArray=[],this.searchTextInput="",this.availableTags=[],this.databases=[],this.searchValue="",this.showRecentlyUsed=!0,this.destinationDirectProjectsCount=0,this.participatingProjectsFilter="",this.addressFetched=!1,this.addresses=[],this.filteredAdditionalValues={},this.docImage={background:"transparent no-repeat url(assets/images/icons_business_mail.png)"},this.attachRdy=!1,this.attachDelete=!1}ngOnInit(){this.enums=[],this.tagsVisible=!0;let e=Office.context.mailbox.item;e&&(this.tagsVisible="appointment"!==e.itemType),"gi"===this.globals.system&&(this.showRecentlyUsed=!1,this.tagsVisible=!1),this.globals.infoShower.waitForDocumentDestinationCheckChanged().subscribe({next:i=>{this.getTags()}}),this.dps.addThingToClose("tagsAuto",()=>{this.projectsAutocompleteTrigger?.closePanel()}),this.globals.infoShower.waitForItemRecognition().subscribe(i=>{"appointment"===e?.itemType&&this.graph.getExtendedData(i).subscribe(r=>{})}),this.globals.infoShower.waitForUpdateBM4ODataCommand().subscribe(i=>{}),this.globals.tagSelector=this}detectChanges(){this.ref.detectChanges()}removeTag(e){this.enums.splice(this.enums.findIndex(i=>i[0]===e[0]),1),this.tagsChipsChanged()}tagsChipsChanged(){if(Office.context.mailbox.item){let i=JSON.stringify(this.enums),r=this.globals.infoShower.currentItemId;this.lsm.setValue(Zt.selectedTags,i),this.graph.getExtendedData(r).subscribe(o=>{o.tags=i,this.graph.saveExtendedData(r,o).subscribe(s=>{})})}}textChanged(e){let i=e.target.value;"ba"===this.globals.system&&(this.showRecentlyUsed=0===i.length),i.length>0&&!this.searchPanelExpanded?this.searchPanelExpanded=!0:0===i.length&&this.searchPanelExpanded&&(this.searchPanelExpanded=!1),this.searchValue=i,this.getTags()}searchTags(e){this.participatingProjectsFilter=e.target.value}getTags(){this.datasource.getEnumValues("CD5C4D16-354E-40F3-A978-CB467D5A0E3A").subscribe({next:e=>{this.searchResultsArray=e,this.detectChanges()}})}autoTagsSelected(e){this.addOneProjectChip(e.option.value),this.participatingProjectsFilter="",this.tagsInput.nativeElement.value=""}addOneProjectChip(e){this.enums.push(e),this.tagsChipsChanged()}get filteredParticipatedResultsArray(){let e=this.participatingProjectsFilter?.toLowerCase();return this.searchResultsArray.filter(i=>!this.enums.map(r=>r[0]).some(r=>r===i[0])&&(!e||i[1].toLowerCase().includes(e)))}autocompleteOpened(e){this.dps.closeAll(e)}}return n.\u0275fac=function(e){return new(e||n)(p(ot),p(su),p(St),p(bd),p(Ut),p(Bi),p(et),p(Mi),p(is),p(Vs),p(ya))},n.\u0275cmp=Ue({type:n,selectors:[["app-tags-selector"]],viewQuery:function(e,i){if(1&e&&(De(Wie,5),De($ie,5),De(Kie,5),De(ZR,5),De(ZR,5,ro)),2&e){let r;ce(r=ue())&&(i.projectSelectorPanel=r.first),ce(r=ue())&&(i.searchProjectsInput=r.first),ce(r=ue())&&(i.searchDocumentInput=r.first),ce(r=ue())&&(i.tagsInput=r.first),ce(r=ue())&&(i.projectsAutocompleteTrigger=r.first)}},decls:1,vars:1,consts:[[4,"ngIf"],["id","mainInputTagsSelector",2,"width","100%"],[2,"font-size","small"],[1,"tagsChipsHolder"],["chipsInMain",""],[3,"removable","title","removed",4,"ngFor","ngForOf"],["matInput","",1,"tagsChipsInput",3,"matChipInputFor","matAutocomplete","input"],["tagsInput",""],[1,"tagsSelectorAutocomplete",3,"optionSelected","opened"],["auto","matAutocomplete"],["class","tagsOption",3,"value",4,"ngFor","ngForOf"],[3,"removable","title","removed"],[1,"chipBase"],["matChipRemove","",1,"chipRemoveButton"],[1,"material-symbols-rounded"],[1,"tagsOption",3,"value"],[2,"float","left"],[1,"listEntryItemMainLine",3,"title"]],template:function(e,i){1&e&&H(0,Jie,12,5,"div",0),2&e&&v("ngIf",!i.globals.infoShower.noneSelected&&i.tagsVisible)},dependencies:[zn,pn,Ir,Pi,cr,Mr,Cl,Ks,wl,bl,hR,ro],styles:['.tagsSelectorAutocomplete .mat-option,.tagsOption>.mat-option-text,.itemListEntry{line-height:1.3!important;white-space:nowrap;display:flex;padding:4px 0;grid-gap:4px}.tagsSelectorAutocomplete .mat-option>div,.tagsOption>.mat-option-text>div,.itemListEntry>div,.tagsSelectorAutocomplete .mat-option a,.tagsOption>.mat-option-text a,.itemListEntry a,.tagsSelectorAutocomplete .mat-option a>div,.tagsOption>.mat-option-text a>div,.itemListEntry a>div{display:block;overflow:hidden}.tagsSelectorAutocomplete .mat-option>div>[class^=listEntryItem],.tagsOption>.mat-option-text>div>[class^=listEntryItem],.itemListEntry>div>[class^=listEntryItem],.tagsSelectorAutocomplete .mat-option a>[class^=listEntryItem],.tagsOption>.mat-option-text a>[class^=listEntryItem],.itemListEntry a>[class^=listEntryItem],.tagsSelectorAutocomplete .mat-option a>div>[class^=listEntryItem],.tagsOption>.mat-option-text a>div>[class^=listEntryItem],.itemListEntry a>div>[class^=listEntryItem]{overflow:hidden;text-overflow:ellipsis;max-width:100%}.tagsSelectorAutocomplete .mat-option:not(:last-child),.tagsOption>.mat-option-text:not(:last-child),.itemListEntry:not(:last-child){border-bottom:1px solid #e0e0e0}.tagsSelectorAutocomplete .mat-option:hover:not([data-selected=true]),.tagsOption>.mat-option-text:hover:not([data-selected=true]),.itemListEntry:hover:not([data-selected=true]){background-color:#e0e0e0;cursor:pointer}.tagsSelectorAutocomplete .mat-option:hover:not([data-selected=true]) .resultsLineWrapper,.tagsOption>.mat-option-text:hover:not([data-selected=true]) .resultsLineWrapper,.itemListEntry:hover:not([data-selected=true]) .resultsLineWrapper{background-color:#e0e0e0}.tagsSelectorAutocomplete [data-selected=true].mat-option,.tagsOption>[data-selected=true].mat-option-text,[data-selected=true].itemListEntry{background-color:#d3d3d3}.tagsSelectorAutocomplete [data-selected=true].mat-option .resultsLineWrapper,.tagsOption>[data-selected=true].mat-option-text .resultsLineWrapper,[data-selected=true].itemListEntry .resultsLineWrapper{background-color:#d3d3d3}.tagsSelectorAutocomplete .mat-option img,.tagsOption>.mat-option-text img,.itemListEntry img{height:24px;width:24px;box-sizing:content-box;padding:1px 0 0!important}.tagsSelectorAutocomplete .mat-option .resultsLineWrapper,.tagsOption>.mat-option-text .resultsLineWrapper,.itemListEntry .resultsLineWrapper{overflow:hidden;text-overflow:ellipsis}.prevent-select{-webkit-user-select:none;user-select:none}.item{padding:.3em 1.2em}.btn-group{width:100%;padding-top:3px}.btn-group button{background-color:#bfbfbf;border:1px solid;padding:10px 24px;cursor:pointer;float:left;width:100%}.btn-group:after{content:"";clear:both;display:table}.btn-group button:first-child{border-radius:5px 0 0 5px}.btn-group button:last-child{border-radius:0 5px 5px 0}.btn-group button:not(:last-child){border-right:none}.chipRemoveButton{margin-top:-.5em;margin-left:0!important}.chipImage{height:1.5em;margin-right:3px;margin-left:-3px}.chipBase{text-overflow:ellipsis;overflow:hidden;white-space:nowrap;width:100%}.mat-form-field .tagsChipsInput{width:100%;margin:0;line-height:1.8em;height:0}.mat-form-field .tagsChipsInput:focus{height:auto}.mat-form-field.mat-focused .tagsChipsInput{height:auto}.tagsOption{height:2.5em!important;padding-left:.5em!important}.tagsOption>.mat-option-text{display:flex!important;border-bottom:none!important}.tagsChipsHolder>.mat-chip-list-wrapper{max-height:7.5em;overflow-x:hidden;overflow-y:auto;scrollbar-gutter:stable;margin:0!important;grid-gap:4px;padding:4px;display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}.tagsChipsHolder>.mat-chip-list-wrapper>.mat-chip{margin:0;background-color:#0000000a}.tagsChipsHolder>.mat-chip-list-wrapper>.mat-chip:first-of-type:last-of-type{grid-column:span 2}.listEntryItemMainLine{font-size:13px}.listEntryItemSubLine{font-size:12px}.mat-expansion-panel-header-title{flex-direction:column;align-items:start;margin-right:0!important}mat-expansion-panel-header{padding:0!important}.mat-expansion-panel-header:hover{background-color:transparent!important}.tagsOption span.mat-option-text{grid-gap:4px}\n'],encapsulation:2}),n})();const Xie=["projectSelectorPanel"],ere=["searchProjectsInput"],tre=["destinationProjectsInputRO"],XR=["destinationProjectsInput"],eO=["searchProjectPhasesInput"],nre=["allProjectsButton"];function ire(n,t){if(1&n&&(g(0,"mat-option",24),j(1),_()),2&n){const e=t.$implicit;v("value",e.value),f(1),ve(e.viewValue)}}function rre(n,t){if(1&n){const e=Ie();g(0,"mat-form-field",21)(1,"mat-label"),j(2),_(),g(3,"mat-select",22),W("valueChange",function(r){return J(e),Z(C(2).selectedDB=r)})("selectionChange",function(){return J(e),Z(C(2).getProjects(!1))}),H(4,ire,2,2,"mat-option",23),_()()}if(2&n){const e=C(2);f(2),ve(e.globals.languageConfLocal.projectDatabase),f(1),v("value",e.selectedDB),f(1),v("ngForOf",e.databases)}}function ore(n,t){if(1&n&&(g(0,"div",25),j(1),_()),2&n){const e=C(2);f(1),qe(" ",e.globals.languageConfLocal.recentlyUsed," ")}}function sre(n,t){if(1&n){const e=Ie();g(0,"div",26),W("click",function(r){return J(e),Z(C(2).dblClickedElement(r))}),be(1,"img",27),g(2,"div",28)(3,"span",29),j(4),_(),be(5,"br"),g(6,"span",30),j(7),_(),be(8,"br"),g(9,"span",30),j(10),_(),be(11,"br"),_()()}if(2&n){const e=t.$implicit,i=t.index,r=C(2);_t("title",e.lineOne),rt("data-order",i+1)("data-fdme",e.fdMe)("data-displayname",r.htmlHelp.parseHtmlEntities(e.lineOne))("data-image",e.image),f(1),v("src",r.datasource.getImageSrc(e.image),En),f(2),_t("title",r.htmlHelp.parseHtmlEntities(e.lineOne)),f(1),ve(r.htmlHelp.parseHtmlEntities(e.lineOne)),f(2),_t("title",r.htmlHelp.parseHtmlEntities(e.lineTwo)),f(1),ve(r.htmlHelp.parseHtmlEntities(e.lineTwo)),f(2),_t("title",r.htmlHelp.parseHtmlEntities(e.lineThree)),f(1),ve(r.htmlHelp.parseHtmlEntities(e.lineThree))}}function are(n,t){if(1&n){const e=Ie();g(0,"mat-chip",31),W("removed",function(){const o=J(e).$implicit;return Z(C(2).removeProject(o))}),be(1,"img",32),g(2,"div",33),j(3),_(),g(4,"button",34)(5,"span",35),j(6,"cancel"),_()()()}if(2&n){const e=t.$implicit,i=C(2);v("removable",!0)("title",e.name),rt("data-pointer",e.pointer),f(1),v("src",i.datasource.getImageSrc(e.image),En),f(2),ve(e.name)}}function lre(n,t){if(1&n){const e=Ie();g(0,"div")(1,"mat-card",1,2)(3,"mat-card-title",3),j(4),g(5,"div",4)(6,"span",5),W("click",function(){return J(e),Z(C().confirmSelection())}),j(7,"check_circle"),_(),g(8,"span",6),W("click",function(){return J(e),Z(C().cancelSelection())}),j(9,"cancel"),_()()(),g(10,"mat-card-content",7)(11,"mat-form-field",8)(12,"mat-label"),j(13),_(),g(14,"input",9,10),W("input",function(r){return J(e),Z(C().textChanged(r))}),_()(),H(16,rre,5,3,"mat-form-field",11),be(17,"br"),g(18,"div",12),H(19,ore,2,1,"div",13),H(20,sre,12,12,"div",14),_()(),g(21,"mat-card-footer",15),be(22,"mat-divider",16),g(23,"mat-chip-list",17,18),H(25,are,7,5,"mat-chip",19),be(26,"input",20),_()()()()}if(2&n){const e=Yt(24),i=C();f(4),qe(" ",i.globals.languageConfLocal.projectSelection," "),f(2),v("title",i.globals.languageConfLocal.Apply),f(2),v("title",i.globals.languageConfLocal.Cancel),f(5),ve(i.globals.languageConfLocal.searchProjectsInCRM),f(3),v("ngIf",null!=i.databases&&i.databases.length>0),f(3),v("ngIf",i.showRecentlyUsed),f(1),v("ngForOf",i.searchResultsArray),f(5),v("ngForOf",i.projects),f(1),v("matChipInputFor",e)}}let cre=(()=>{class n{constructor(e,i,r,o,s,a,l,c,u,d){this.globals=e,this.ref=i,this.snack=r,this.translate=o,this.datasource=s,this.zone=a,this.lsm=l,this.dps=c,this.graph=u,this.htmlHelp=d,this.projectSelectorPanelVisible=!1,this.searchTextInput="",this.searchResultsArray=[],this.projectPhaseResultArray=[],this.projectPhaseSearchResultArray=[],this.projectPhaseFilter="",this.participatedResultsArray=[],this.databases=[],this.searchValue="",this.showRecentlyUsed=!0,this.destinationDirectProjectsCount=0,this.destinationProjects=new Co(""),this.projectPhasesControl=new Co(""),this.participatingProjectsFilter="",this.addressFetched=!1,this.addresses=[],this.filteredAdditionalValues={},this.docImage={background:"transparent no-repeat url(assets/images/icons_business_mail.png)"},this.attachRdy=!1,this.attachDelete=!1}ngOnInit(){this.globals.onActiveWindowChange().subscribe(e=>{"projectPage"===e.newWindow&&"main"===e.currentWindow&&this.initializeTheView()})}initializeTheView(){this.databases=[],this.searchValue="",this.searchProjectsInput.nativeElement.value="",this.searchResultsArray=[],this.projects=[...this.globals.projectSelector.projects],"gi"===this.globals.system&&(this.showRecentlyUsed=!1),this.getProjectDBs(this.globals.infoShower.primaryPointer),this.getProjects(!1),setTimeout(()=>{this.searchProjectsInput.nativeElement.focus()},0)}detectChanges(){this.ref.detectChanges()}confirmSelection(){this.globals.projectSelector.projects=this.projects,this.globals.activeWindow="main"}cancelSelection(){this.globals.activeWindow="main"}removeProject(e){this.projects.splice(this.projects.findIndex(i=>i.pointer===e.pointer),1),this.projectChipsChanged()}removeProjectPhase(e){this.projectPhases.splice(this.projects.findIndex(i=>i.pointer===e.pointer),1),this.projectPhaseChipsChanged()}projectChipsChanged(){if(Office.context.mailbox.item){let i=JSON.stringify(this.projects.concat(this.projectPhases)),r=this.globals.infoShower.currentItemId;this.lsm.setValue(Zt.selectedProjects,i),this.graph.getExtendedData(r).subscribe(o=>{o.selectedProjects=i,this.graph.saveExtendedData(r,o).subscribe(s=>{})})}if(this.projects.length>0){this.destinationProjectsInput?.nativeElement.classList.add("hasProjects"),this.destinationProjectsInputRO?.nativeElement.classList.add("hasProjects"),this.allProjectsButton?.nativeElement.classList.add("hasProjects");let i=this.projects.map(r=>r.pointer);this.datasource.getPhasesOfPointer(i).subscribe(r=>{this.projectPhaseResultArray=r,console.log("Projectphases:",this.projectPhaseResultArray)})}else this.destinationProjectsInput?.nativeElement.classList.remove("hasProjects"),this.destinationProjectsInputRO?.nativeElement.classList.remove("hasProjects"),this.allProjectsButton?.nativeElement.classList.remove("hasProjects")}projectPhaseChipsChanged(){if(Office.context.mailbox.item){let i=JSON.stringify(this.projects.concat(this.projectPhases)),r=this.globals.infoShower.currentItemId;this.lsm.setValue(Zt.selectedProjects,i),this.graph.getExtendedData(r).subscribe(o=>{o.selectedProjects=i,this.graph.saveExtendedData(r,o).subscribe(s=>{})})}}textChanged(e){let i=e.target.value;"ba"===this.globals.system&&(this.showRecentlyUsed=0===i.length),i.length>0&&!this.searchPanelExpanded?this.searchPanelExpanded=!0:0===i.length&&this.searchPanelExpanded&&(this.searchPanelExpanded=!1),this.searchValue=i,this.getProjects(!1)}searchParticipatingProjects(e){this.participatingProjectsFilter=e.target.value}searchProjectPhases(e){this.projectPhaseFilter=e.target.value}dblClickedElement(e){let i=e.currentTarget;if(!this.projects.some(r=>r.pointer===i.dataset.fdme)){let r=new Sa;r.name=i.dataset.displayname,r.pointer=i.dataset.fdme,r.image=i.dataset.image,this.datasource.addToRecentlyUsed(i.dataset.fdme),this.projects.push(r),setTimeout(()=>{const o=document.querySelector(".allProjectsFooter .mat-chip-list-wrapper");o&&(o.scrollTop=o.scrollHeight),this.blinkChip(r.pointer)},10),this.projectChipsChanged()}}blinkChip(e){document.querySelector('mat-chip[data-pointer="'+e+'"]')?.classList.add("fade-it")}getProjectDBs(e){const i={};e?i.pointer=e:i.onlyOptions=!0;const r=new $t({fromObject:i});this.datasource.fetchDBs("projects",r).subscribe(o=>{console.log("ProjectDBs:",o),o&&this.generateSelectionArrProjectDbs(o.databases,e)})}generateSelectionArrProjectDbs(e,i){for(const s of e)this.databases.push({value:s.alias,viewValue:s.title});console.log("this.databases:",this.databases),this.databases.length>0&&(this.selectedDB=this.databases[0].value)}getProjects(e){e&&!this.globals.infoShower.primaryPointer||this.datasource.searchProjects(this.selectedDB,e?this.globals.infoShower.primaryPointer:"",this.searchValue).subscribe({next:i=>{i.MessageDetail&&i.MessageDetail.indexOf("BM4OProjects")>0?this.globals.noProjects=!0:(this.searchResultsArray=this.datasource.handleSearchResult(i,Yo.projects,{participantProjects:e}),e&&(this.destinationDirectProjectsCount=this.searchResultsArray.length,this.participatedResultsArray=this.datasource.handleSearchResult(i,Yo.projects,{participantProjects:e}),this.zone.run(()=>{setTimeout(()=>{this.showProjectSnack()},0)})),this.detectChanges(),console.log("ProjectSearchResults:",this.searchResultsArray))}})}showProjectSnack(){this.globals.infoShower.isReadMode||(this.projectSnack?.dismiss(),1===this.destinationDirectProjectsCount?(this.projectSnack=this.snack.open(this.globals.languageConfLocal.selectedAddressHasAssignedProject,this.globals.languageConfLocal.LC73057,{duration:7500}),this.projectSnack.afterOpened().subscribe(()=>{this.detectChanges()}),this.projectSnack.onAction().subscribe(()=>{this.projects=[],this.addOneProjectChip(this.searchResultsArray[0])})):this.destinationDirectProjectsCount>1&&(this.projectSnack=this.snack.open(this.globals.languageConfLocal.selectedAddressHasAssignedProjects,"OK",{duration:9500}),this.projectSnack.afterOpened().subscribe(()=>{this.detectChanges()}),this.projectSnack.onAction().subscribe(()=>{setTimeout(()=>{this.projectsAutocompleteTrigger?.openPanel(),this.destinationProjectsInput.nativeElement.focus()},10)})))}autoProjectSelected(e){this.addOneProjectChip(e.option.value),this.participatingProjectsFilter="",this.destinationProjectsInput.nativeElement.value=""}autoProjectPhaseSelected(e){this.addOneProjectPhaseChip(e.option.value),this.projectPhaseFilter=""}addOneProjectChip(e){let i=new Sa;i.name=e.lineOne,i.pointer=e.fdMe,i.image=e.image,this.datasource.addToRecentlyUsed(e.fdme),this.projects.push(i),this.projectChipsChanged()}addOneProjectPhaseChip(e){let i=new Sa;i.name=e.lineOne,i.pointer=e.fdMe,i.image=e.image,this.datasource.addToRecentlyUsed(e.fdme),this.projectPhases.push(i);let r=this.projects.findIndex(o=>o.pointer===e.parentPointer);-1!==r&&this.projects.splice(r,1),this.projectPhaseChipsChanged()}get filteredParticipatedResultsArray(){let e=this.participatingProjectsFilter?.toLowerCase();return this.participatedResultsArray.filter(i=>!this.projects.map(r=>r.pointer).some(r=>r===i.fdMe)&&(!e||i.lineOne.toLowerCase().includes(e)||i.lineTwo?.toLowerCase().includes(e)||i.lineThree?.toLowerCase().includes(e)))}get filteredProjectPhases(){let e=this.projectPhaseFilter?.toLowerCase();return this.projectPhaseResultArray.filter(i=>!this.projectPhases.map(r=>r.pointer).some(r=>r===i.fdMe)&&(!e||i.lineOne.toLowerCase().includes(e)||i.lineTwo?.toLowerCase().includes(e)||i.lineThree?.toLowerCase().includes(e)))}getProjectsLabel(){return this.projects.length>0?this.globals.languageConfLocal.selectedProjects:this.destinationDirectProjectsCount>0?this.globals.languageConfLocal.assignedProjects+" ("+this.destinationDirectProjectsCount+")":this.globals.languageConfLocal.selectProjectsCRM}autocompleteOpened(e){this.dps.closeAll(e)}}return n.\u0275fac=function(e){return new(e||n)(p(ot),p(St),p(bd),p(Ut),p(Bi),p(et),p(Mi),p(is),p(ya),p(Vs))},n.\u0275cmp=Ue({type:n,selectors:[["app-project-selector-page"]],viewQuery:function(e,i){if(1&e&&(De(Xie,5),De(ere,5),De(tre,5),De(XR,5),De(eO,5),De(nre,5),De(XR,5,ro),De(eO,5,ro)),2&e){let r;ce(r=ue())&&(i.projectSelectorPanel=r.first),ce(r=ue())&&(i.searchProjectsInput=r.first),ce(r=ue())&&(i.destinationProjectsInputRO=r.first),ce(r=ue())&&(i.destinationProjectsInput=r.first),ce(r=ue())&&(i.searchProjectPhasesInput=r.first),ce(r=ue())&&(i.allProjectsButton=r.first),ce(r=ue())&&(i.projectsAutocompleteTrigger=r.first),ce(r=ue())&&(i.phasesAutocompleteTrigger=r.first)}},decls:1,vars:1,consts:[[4,"ngIf"],[1,"allProjectsCard"],["projectSelectorPanel",""],[1,"left-right-align"],[1,"iconsDiv"],[1,"material-symbols-rounded","green","customSize",2,"cursor","pointer",3,"title","click"],[1,"material-symbols-rounded","red","customSize",2,"cursor","pointer",3,"title","click"],[1,"allProjectsContent"],[2,"width","100%"],["matInput","","type","text",3,"input"],["searchProjectsInput",""],["class","databaseSearchSelect","appearance","standard",4,"ngIf"],["id","resultsContainer",1,"prevent-select"],["class","recentlyUsed",4,"ngIf"],["class","itemListEntry resultListEntry",3,"title","click",4,"ngFor","ngForOf"],[1,"allProjectsFooter"],[2,"padding-bottom","2px"],[1,"projectsChipsHolder"],["chipsInCard",""],[3,"removable","title","removed",4,"ngFor","ngForOf"],["matInput","","readonly","",2,"width","100%","height","0px","margin","0px",3,"matChipInputFor"],["appearance","standard",1,"databaseSearchSelect"],[3,"value","valueChange","selectionChange"],[3,"value",4,"ngFor","ngForOf"],[3,"value"],[1,"recentlyUsed"],[1,"itemListEntry","resultListEntry",3,"title","click"],[3,"src"],[1,"resultsLineWrapper"],[1,"listEntryItemMainLine",3,"title"],[1,"listEntryItemSubLine",3,"title"],[3,"removable","title","removed"],[1,"chipImage",3,"src"],[1,"chipBase"],["matChipRemove","",1,"chipRemoveButton"],[1,"material-symbols-rounded"]],template:function(e,i){1&e&&H(0,lre,27,9,"div",0),2&e&&v("ngIf",i.globals.infoShower&&(!i.globals.infoShower.noneSelected&&!i.globals.noProjects||i.globals.addressActivities.documentsAsDestinations.length>0))},dependencies:[zn,pn,Bf,Ir,Pi,Ko,cr,Mr,_h,mh,gh,hg,Cl,Ks,wl,bl],styles:['.projectSelectorAutocomplete .mat-option,.projectOption>.mat-option-text,.itemListEntry{line-height:1.3!important;white-space:nowrap;display:flex;padding:4px 0;grid-gap:4px}.projectSelectorAutocomplete .mat-option>div,.projectOption>.mat-option-text>div,.itemListEntry>div,.projectSelectorAutocomplete .mat-option a,.projectOption>.mat-option-text a,.itemListEntry a,.projectSelectorAutocomplete .mat-option a>div,.projectOption>.mat-option-text a>div,.itemListEntry a>div{display:block;overflow:hidden}.projectSelectorAutocomplete .mat-option>div>[class^=listEntryItem],.projectOption>.mat-option-text>div>[class^=listEntryItem],.itemListEntry>div>[class^=listEntryItem],.projectSelectorAutocomplete .mat-option a>[class^=listEntryItem],.projectOption>.mat-option-text a>[class^=listEntryItem],.itemListEntry a>[class^=listEntryItem],.projectSelectorAutocomplete .mat-option a>div>[class^=listEntryItem],.projectOption>.mat-option-text a>div>[class^=listEntryItem],.itemListEntry a>div>[class^=listEntryItem]{overflow:hidden;text-overflow:ellipsis;max-width:100%}.projectSelectorAutocomplete .mat-option:not(:last-child),.projectOption>.mat-option-text:not(:last-child),.itemListEntry:not(:last-child){border-bottom:1px solid #e0e0e0}.projectSelectorAutocomplete .mat-option:hover:not([data-selected=true]),.projectOption>.mat-option-text:hover:not([data-selected=true]),.itemListEntry:hover:not([data-selected=true]){background-color:#e0e0e0;cursor:pointer}.projectSelectorAutocomplete .mat-option:hover:not([data-selected=true]) .resultsLineWrapper,.projectOption>.mat-option-text:hover:not([data-selected=true]) .resultsLineWrapper,.itemListEntry:hover:not([data-selected=true]) .resultsLineWrapper{background-color:#e0e0e0}.projectSelectorAutocomplete [data-selected=true].mat-option,.projectOption>[data-selected=true].mat-option-text,[data-selected=true].itemListEntry{background-color:#d3d3d3}.projectSelectorAutocomplete [data-selected=true].mat-option .resultsLineWrapper,.projectOption>[data-selected=true].mat-option-text .resultsLineWrapper,[data-selected=true].itemListEntry .resultsLineWrapper{background-color:#d3d3d3}.projectSelectorAutocomplete .mat-option img,.projectOption>.mat-option-text img,.itemListEntry img{height:24px;width:24px;box-sizing:content-box;padding:1px 0 0!important}.projectSelectorAutocomplete .mat-option .resultsLineWrapper,.projectOption>.mat-option-text .resultsLineWrapper,.itemListEntry .resultsLineWrapper{overflow:hidden;text-overflow:ellipsis}.allProjectsContent #resultsContainer{height:50vh;overflow-y:auto}.allProjectsContent #resultsContainer>.recentlyUsed{width:100%;text-align:center;color:#a9a9a9;padding-bottom:8px;border-bottom:1px solid #e0e0e0}.allProjectsContent #resultsContainer>.recentlyUsed+.itemListEntry{padding-top:8px}.resultsLineWrapper{width:100%;overflow:hidden;text-overflow:ellipsis}.prevent-select{-webkit-user-select:none;user-select:none}.item{padding:.3em 1.2em}.btn-group{width:100%;padding-top:3px}.btn-group button{background-color:#bfbfbf;border:1px solid;padding:10px 24px;cursor:pointer;float:left;width:100%}.btn-group:after{content:"";clear:both;display:table}.btn-group button:first-child{border-radius:5px 0 0 5px}.btn-group button:last-child{border-radius:0 5px 5px 0}.btn-group button:not(:last-child){border-right:none}.chipRemoveButton{margin-top:-.5em;margin-left:0!important}#searchText{font-size:12px}.searchResultsPanel{width:calc(100% - 1px);z-index:4;border-radius:5px}.chipImage{height:1.5em;margin-right:3px;margin-left:-3px}.chipBase{text-overflow:ellipsis;overflow:hidden;white-space:nowrap;width:100%}.mat-form-field .projectChipsInput{width:100%;margin:0;line-height:1.8em;height:0}.mat-form-field .projectChipsInput:focus{height:auto}.mat-form-field.mat-focused .projectChipsInput{height:auto}.allProjects{cursor:pointer;position:absolute;right:-.1em;top:0em}.allProjects.hasProjects{top:-.7em}.projectOption{height:4em;padding-left:.5em!important}.projectOption>.mat-option-text{display:flex!important;border-bottom:none!important}.projectsChipsHolder>.mat-chip-list-wrapper{max-height:7.5em;overflow-x:hidden;overflow-y:auto;scrollbar-gutter:stable;margin:0!important;grid-gap:4px;padding:4px;display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}.projectsChipsHolder>.mat-chip-list-wrapper>.mat-chip{margin:0;background-color:#0000000a}.projectsChipsHolder>.mat-chip-list-wrapper>.mat-chip:first-of-type:last-of-type{grid-column:span 2}.projectChipsNoInput:not(.hasProjects){display:block;height:0}.projectChipsNoInput.hasProjects{display:none}.allProjectsCard{z-index:10;width:100%;height:100vh;display:flex!important;flex-direction:column;box-shadow:none!important}.allProjectsTitle{flex-shrink:0;font-size:21px;font-weight:100;font-family:Segoe UI,"Segoe UI Web (West European)",Segoe UI,-apple-system,BlinkMacSystemFont,Roboto,Helvetica Neue,sans-serif}.allProjectsContent{flex-grow:1;overflow:auto;font-size:12px;margin-bottom:0!important}.allProjectsContent #resultsContainer{height:max-content;overflow:auto;max-height:calc(100% - 50px)}.allProjectsFooter{padding-bottom:.3em;padding-left:6px}.listEntryItemMainLine{font-size:13px}.listEntryItemSubLine{font-size:12px}.mat-expansion-panel-header-title{flex-direction:column;align-items:start;margin-right:0!important}mat-expansion-panel-header{padding:0!important}.mat-expansion-panel-header:hover{background-color:transparent!important}.projectOption span.mat-option-text{grid-gap:4px}@keyframes green-fade{0%{background:#4e850c}to{background:#fcfcfc}}.fade-it{animation:green-fade 1s ease-in-out 0s}.customSize{font-size:22px!important}span.material-symbols-rounded.red:hover{color:#ff2727;font-weight:900}span.material-symbols-rounded.green:hover{color:#13e813;font-weight:900}span.material-symbols-rounded.red,span.material-symbols-rounded.green{border-radius:16px;color:#a9a9a9;font-weight:900}.iconsDiv{display:flex}.left-right-align{display:flex;justify-content:space-between}\n'],encapsulation:2}),n})();const ure=["openAfterCreate"],dre=["linkOptionActive"];function hre(n,t){if(1&n&&(g(0,"div",11)(1,"mat-label"),j(2),_(),be(3,"mat-checkbox",null,12),_()),2&n){const e=C();f(2),ve(e.globals.languageConfLocal.autoOpenNew)}}function pre(n,t){if(1&n&&(g(0,"div",11)(1,"mat-label"),j(2),_(),be(3,"mat-checkbox",null,13),_()),2&n){const e=C();f(2),ve(e.globals.languageConfLocal.activateLinkOption)}}let fre=(()=>{class n{constructor(e,i,r,o,s,a,l,c,u){this.globals=e,this.ref=i,this.snack=r,this.messageService=o,this.translate=s,this.datasource=a,this.ngZone=l,this.connectionService=c,this.settings=u}ngOnInit(){this.globals.onActiveWindowChange().subscribe(e=>{"userSettings"===e.newWindow&&"main"===e.currentWindow&&this.initializeTheView()})}initializeTheView(){void 0!==this.openAfterCreate&&(this.openAfterCreate.checked="true"===this.settings.get(Us.USopenAfterCreate)),void 0!==this.linkOptionActive&&(this.linkOptionActive.checked="true"===this.settings.get(Us.USlinkOptionActive))}detectChanges(){this.ref.detectChanges()}saveSettings(){this.settings.set(Us.USopenAfterCreate,String(this.openAfterCreate.checked)),this.linkOptionActive&&this.settings.set(Us.USlinkOptionActive,String(this.linkOptionActive.checked)),this.settings.save().subscribe({next:e=>{"succeeded"===e.status?(this.globals.activeWindow="main",this.ngZone.run(()=>{setTimeout(()=>{this.messageService.showSuccess(this.globals.languageConfLocal.settingsSaved)},0)})):this.messageService.showError(this.globals.languageConfLocal.errorOnSettingsSave),this.globals.activeWindow="main"},error:e=>{this.messageService.showError(this.globals.languageConfLocal.errorOnSettingsSave)}})}cancelChanges(){this.globals.activeWindow="main"}openWebIntModal(){this.connectionService.waitForWebIntModal().subscribe(e=>{e()})}}return n.\u0275fac=function(e){return new(e||n)(p(ot),p(St),p(bd),p(tn),p(Ut),p(Bi),p(et),p(In),p(Kc))},n.\u0275cmp=Ue({type:n,selectors:[["app-user-settings"]],viewQuery:function(e,i){if(1&e&&(De(ure,5),De(dre,5)),2&e){let r;ce(r=ue())&&(i.openAfterCreate=r.first),ce(r=ue())&&(i.linkOptionActive=r.first)}},decls:18,vars:6,consts:[[1,"settingsCard"],["projectSelectorPanel",""],[1,"left-right-align"],[1,"iconsDiv"],[1,"material-symbols-rounded","green","customSize",2,"cursor","pointer",3,"title","click"],[1,"material-symbols-rounded","red","customSize",2,"cursor","pointer",3,"title","click"],[1,"settingsContent"],["mat-menu-item","",1,"",2,"padding-left","12px !important",3,"click"],["firstEle",""],["class","settingsHolder",4,"ngIf"],[1,"settingsFooter"],[1,"settingsHolder"],["openAfterCreate",""],["linkOptionActive",""]],template:function(e,i){1&e&&(g(0,"div")(1,"mat-card",0,1)(3,"mat-card-title",2),j(4),g(5,"div",3)(6,"span",4),W("click",function(){return i.saveSettings()}),j(7,"check_circle"),_(),g(8,"span",5),W("click",function(){return i.cancelChanges()}),j(9,"cancel"),_()()(),g(10,"mat-card-content",6)(11,"div")(12,"span",7,8),W("click",function(){return i.openWebIntModal()}),j(14),_()(),H(15,hre,5,1,"div",9),H(16,pre,5,1,"div",9),_(),be(17,"mat-card-footer",10),_()()),2&e&&(f(4),qe(" ",i.globals.languageConfLocal.userSettings," "),f(2),v("title",i.globals.languageConfLocal.Apply),f(2),v("title",i.globals.languageConfLocal.Cancel),f(6),qe(" ",i.globals.languageConfLocal.webIntConfig," "),f(1),v("ngIf",i.globals.loggedIn),f(1),v("ngIf",i.globals.configJson.webUrl||"ba"===i.globals.system))},dependencies:[pn,iu,Pi,_h,mh,gh,hg,pg],styles:['.projectSelectorAutocomplete .mat-option,.projectOption>.mat-option-text,.itemListEntry{line-height:1.3!important;white-space:nowrap;display:flex;padding:4px 0;grid-gap:4px}.projectSelectorAutocomplete .mat-option>div,.projectOption>.mat-option-text>div,.itemListEntry>div,.projectSelectorAutocomplete .mat-option a,.projectOption>.mat-option-text a,.itemListEntry a,.projectSelectorAutocomplete .mat-option a>div,.projectOption>.mat-option-text a>div,.itemListEntry a>div{display:block;overflow:hidden}.projectSelectorAutocomplete .mat-option>div>[class^=listEntryItem],.projectOption>.mat-option-text>div>[class^=listEntryItem],.itemListEntry>div>[class^=listEntryItem],.projectSelectorAutocomplete .mat-option a>[class^=listEntryItem],.projectOption>.mat-option-text a>[class^=listEntryItem],.itemListEntry a>[class^=listEntryItem],.projectSelectorAutocomplete .mat-option a>div>[class^=listEntryItem],.projectOption>.mat-option-text a>div>[class^=listEntryItem],.itemListEntry a>div>[class^=listEntryItem]{overflow:hidden;text-overflow:ellipsis;max-width:100%}.projectSelectorAutocomplete .mat-option:not(:last-child),.projectOption>.mat-option-text:not(:last-child),.itemListEntry:not(:last-child){border-bottom:1px solid #e0e0e0}.projectSelectorAutocomplete .mat-option:hover:not([data-selected=true]),.projectOption>.mat-option-text:hover:not([data-selected=true]),.itemListEntry:hover:not([data-selected=true]){background-color:#e0e0e0;cursor:pointer}.projectSelectorAutocomplete .mat-option:hover:not([data-selected=true]) .resultsLineWrapper,.projectOption>.mat-option-text:hover:not([data-selected=true]) .resultsLineWrapper,.itemListEntry:hover:not([data-selected=true]) .resultsLineWrapper{background-color:#e0e0e0}.projectSelectorAutocomplete [data-selected=true].mat-option,.projectOption>[data-selected=true].mat-option-text,[data-selected=true].itemListEntry{background-color:#d3d3d3}.projectSelectorAutocomplete [data-selected=true].mat-option .resultsLineWrapper,.projectOption>[data-selected=true].mat-option-text .resultsLineWrapper,[data-selected=true].itemListEntry .resultsLineWrapper{background-color:#d3d3d3}.projectSelectorAutocomplete .mat-option img,.projectOption>.mat-option-text img,.itemListEntry img{height:24px;width:24px;box-sizing:content-box;padding:1px 0 0!important}.projectSelectorAutocomplete .mat-option .resultsLineWrapper,.projectOption>.mat-option-text .resultsLineWrapper,.itemListEntry .resultsLineWrapper{overflow:hidden;text-overflow:ellipsis}.settingsContent #resultsContainer{height:50vh;overflow-y:auto}.settingsContent #resultsContainer>.recentlyUsed{width:100%;text-align:center;color:#a9a9a9;padding-bottom:8px;border-bottom:1px solid #e0e0e0}.settingsContent #resultsContainer>.recentlyUsed+.itemListEntry{padding-top:8px}.resultsLineWrapper{width:100%;overflow:hidden;text-overflow:ellipsis}.prevent-select{-webkit-user-select:none;user-select:none}.item{padding:.3em 1.2em}.btn-group{width:100%;padding-top:3px}.btn-group button{background-color:#bfbfbf;border:1px solid;padding:10px 24px;cursor:pointer;float:left;width:100%}.btn-group:after{content:"";clear:both;display:table}.btn-group button:first-child{border-radius:5px 0 0 5px}.btn-group button:last-child{border-radius:0 5px 5px 0}.btn-group button:not(:last-child){border-right:none}.chipRemoveButton{margin-top:-.5em;margin-left:0!important}#searchText{font-size:12px}.searchResultsPanel{width:calc(100% - 1px);z-index:4;border-radius:5px}.chipImage{height:1.5em;margin-right:3px;margin-left:-3px}.chipBase{text-overflow:ellipsis;overflow:hidden;white-space:nowrap;width:100%}.mat-form-field .projectChipsInput{width:100%;margin:0;line-height:1.8em;height:0}.mat-form-field .projectChipsInput:focus{height:auto}.mat-form-field.mat-focused .projectChipsInput{height:auto}.projectOption{height:4em;padding-left:.5em!important}.projectOption>.mat-option-text{display:flex!important;border-bottom:none!important}.projectsChipsHolder>.mat-chip-list-wrapper{max-height:7.5em;overflow-x:hidden;overflow-y:auto;scrollbar-gutter:stable;margin:0!important;grid-gap:4px;padding:4px;display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}.projectsChipsHolder>.mat-chip-list-wrapper>.mat-chip{margin:0;background-color:#0000000a}.projectsChipsHolder>.mat-chip-list-wrapper>.mat-chip:first-of-type:last-of-type{grid-column:span 2}.projectChipsNoInput:not(.hasProjects){display:block;height:0}.projectChipsNoInput.hasProjects{display:none}.settingsCard{z-index:10;width:100%;height:100vh;display:flex!important;flex-direction:column;box-shadow:none!important}.settingsTitle{flex-shrink:0;font-size:21px;font-weight:100;font-family:Segoe UI,"Segoe UI Web (West European)",Segoe UI,-apple-system,BlinkMacSystemFont,Roboto,Helvetica Neue,sans-serif}.settingsContent{flex-grow:1;overflow:auto;font-size:12px;margin-bottom:0!important}.settingsContent .settingsHolder{display:grid;grid-template-columns:93.5% 8% 1%;padding:1em 12px .5em}.settingsContent .settingsHolder .mat-checkbox-background,.settingsContent .settingsHolder .mat-checkbox-frame{border-radius:0%!important}.settingsContent #resultsContainer{height:max-content;overflow:auto;max-height:calc(100% - 50px)}.settingsFooter{padding-bottom:.3em;padding-left:6px}.listEntryItemMainLine{font-size:13px}.listEntryItemSubLine{font-size:12px}.mat-expansion-panel-header-title{flex-direction:column;align-items:start;margin-right:0!important}mat-expansion-panel-header{padding:0!important}.mat-expansion-panel-header:hover{background-color:transparent!important}.projectOption span.mat-option-text{grid-gap:4px}@keyframes green-fade{0%{background:#4e850c}to{background:#fcfcfc}}.fade-it{animation:green-fade 1s ease-in-out 0s}.customSize{font-size:22px!important}span.material-symbols-rounded.red:hover{color:#ff2727;font-weight:900}span.material-symbols-rounded.green:hover{color:#13e813;font-weight:900}span.material-symbols-rounded.red,span.material-symbols-rounded.green{border-radius:16px;color:#a9a9a9;font-weight:900}.iconsDiv{display:flex;align-items:center}.left-right-align{display:flex;justify-content:space-between;margin-bottom:16px}.mat-menu-item{font:400 12px/20px Arial,Verdana,Helvetica,sans-serif;height:100%;padding-top:10px;padding-bottom:10px}\n'],encapsulation:2}),n})();const mre=["searchTextInput"],gre=["projectSelectorPanel"],_re=["destinationProjectsInputRO"],tO=["destinationProjectsInput"],nO=["searchProjectPhasesInput"],vre=["allProjectsButton"];function yre(n,t){if(1&n&&(g(0,"mat-option",24),j(1),_()),2&n){const e=t.$implicit,i=C(3);v("value",e),f(1),zr(" ",i.datasource.getDisplayedType(e.type),": ",e.title," ")}}function bre(n,t){if(1&n){const e=Ie();g(0,"mat-form-field",21)(1,"mat-label"),j(2),_(),g(3,"mat-select",22),W("valueChange",function(r){return J(e),Z(C(2).selectedDB=r)})("selectionChange",function(){return J(e),Z(C(2).changeSelectedDB())}),H(4,yre,2,3,"mat-option",23),_()()}if(2&n){const e=C(2);f(2),ve(e.globals.languageConfLocal.SelectDatabase),f(1),v("value",e.selectedDB),f(1),v("ngForOf",e.entriesArray)}}function Cre(n,t){if(1&n&&(g(0,"div",25),j(1),_()),2&n){const e=C(2);f(1),qe(" ",e.globals.languageConfLocal.recentlyUsed," ")}}function wre(n,t){1&n&&be(0,"img",32),2&n&&v("src",C().$implicit.imageBase64,En)}function Ere(n,t){if(1&n&&be(0,"img",33),2&n){const e=C().$implicit;v("src",C(2).datasource.getImageSrc(e.image),En)}}function Dre(n,t){if(1&n){const e=Ie();g(0,"div",26),W("click",function(r){return J(e),Z(C(2).dblClickedElement(r))}),H(1,wre,1,1,"img",27),H(2,Ere,1,1,"img",28),g(3,"div",29)(4,"span",30),j(5),_(),be(6,"br"),g(7,"span",31),j(8),_(),be(9,"br"),g(10,"span",31),j(11),_(),be(12,"br"),_()()}if(2&n){const e=t.$implicit,i=t.index,r=C(2);_t("title",e.lineOne),rt("data-order",i+1)("data-fdme",e.fdMe)("data-displayname",r.htmlHelp.parseHtmlEntities(e.lineOne))("data-image",e.image),f(1),v("ngIf",e.imageBase64),f(1),v("ngIf",!e.imageBase64),f(2),_t("title",r.htmlHelp.parseHtmlEntities(e.lineOne)),f(1),ve(r.htmlHelp.parseHtmlEntities(e.lineOne)),f(2),_t("title",r.htmlHelp.parseHtmlEntities(e.lineTwo)),f(1),ve(r.htmlHelp.parseHtmlEntities(e.lineTwo)),f(2),_t("title",r.htmlHelp.parseHtmlEntities(e.lineThree)),f(1),ve(r.htmlHelp.parseHtmlEntities(e.lineThree))}}function Sre(n,t){if(1&n){const e=Ie();g(0,"mat-chip",34),W("removed",function(){const o=J(e).$implicit;return Z(C(2).removeDocument(o))}),be(1,"img",35),g(2,"div",36),j(3),_(),g(4,"button",37)(5,"span",38),j(6,"cancel"),_()()()}if(2&n){const e=t.$implicit,i=C(2);v("removable",!0)("title",e.name),rt("data-pointer",e.pointer),f(1),v("src",i.datasource.getImageSrc(e.image),En),f(2),ve(e.name)}}function Are(n,t){if(1&n){const e=Ie();g(0,"div")(1,"mat-card",1,2)(3,"mat-card-title",3),j(4),g(5,"div",4)(6,"span",5),W("click",function(){return J(e),Z(C().cancelSelection())}),j(7,"cancel"),_()()(),g(8,"mat-card-content",6)(9,"mat-form-field",7)(10,"mat-label",8),j(11),_(),g(12,"input",9,10),W("input",function(){J(e);const r=Yt(13);return Z(C().textChanged(r.value))})("ngModelChange",function(r){return J(e),Z(C().textInSearchInput=r)}),_()(),H(14,bre,5,3,"mat-form-field",11),be(15,"br"),g(16,"div",12),H(17,Cre,2,1,"div",13),H(18,Dre,13,13,"div",14),_()(),g(19,"mat-card-footer",15),be(20,"mat-divider",16),g(21,"mat-chip-list",17,18),H(23,Sre,7,5,"mat-chip",19),be(24,"input",20),_()()()()}if(2&n){const e=Yt(22),i=C();f(4),qe(" ","ba"===i.globals.system?i.globals.languageConfLocal.doucmentSelectionBA:i.globals.languageConfLocal.doucmentSelection," "),f(2),v("title",i.globals.languageConfLocal.Cancel),f(5),qe(" ","ba"===i.globals.system?i.globals.languageConfLocal.searchDocumentsInBACRM:i.globals.languageConfLocal.searchDocumentsInCRM," "),f(1),v("ngModel",i.textInSearchInput),f(2),v("ngIf",null!=i.entriesArray&&i.entriesArray.length>0&&!i.isAppointment),f(3),v("ngIf",i.showRecentlyUsed),f(1),v("ngForOf",i.searchResultsArray),f(5),v("ngForOf",i.documents),f(1),v("matChipInputFor",e)}}let Tre=(()=>{class n{constructor(e,i,r,o,s,a,l,c){this.globals=e,this.ref=i,this.translate=r,this.datasource=o,this.zone=s,this.lsm=a,this.dps=l,this.htmlHelp=c,this.projectSelectorPanelVisible=!1,this.searchResultsArray=[],this.projectPhaseResultArray=[],this.projectPhaseSearchResultArray=[],this.projectPhaseFilter="",this.participatedResultsArray=[],this.initialDBSelection=!1,this.entriesArray=[],this.searchValue="",this.showRecentlyUsed=!0,this.destinationDirectProjectsCount=0,this.destinationProjects=new Co(""),this.projectPhasesControl=new Co(""),this.participatingProjectsFilter="",this.addressFetched=!1,this.addresses=[],this.filteredAdditionalValues={},this.docImage={background:"transparent no-repeat url(assets/images/icons_business_mail.png)"},this.attachRdy=!1,this.attachDelete=!1}ngOnInit(){this.globals.onActiveWindowChange().subscribe(e=>{"documentationTargetSelector"===e.newWindow&&"main"===e.currentWindow&&this.initializeTheView()})}initializeTheView(){this.databases=[],this.searchValue="",this.searchTextInput.nativeElement.value="",this.searchResultsArray=[],this.documents=[],this.textInSearchInput="","gi"===this.globals.system&&(this.showRecentlyUsed=!1),this.datasource.getDocumentDBs().subscribe(e=>{this.entriesArray=e,null!==this.entriesArray?(this.selectedDB=e[0],this.changeSelectedDB()):(this.selectedDB="",this.getEntries(),setTimeout(()=>{this.searchTextInput.nativeElement.focus()},0))})}confirmSelection(){if(this.globals.addressActivities.documentsAsDestinations=this.documents,this.globals.activeWindow="main",this.lastSelectedDocument){const e=this.lastSelectedDocument.name,i=this.lastSelectedDocument.pointer,r=this.datasource.getImageSrc(this.lastSelectedDocument.image);this.globals.addressActivities.destinationActivitySelectorClicked({checked:!0,source:{name:i}},e,r)}this.globals.showSelectedDocuments=!1}cancelSelection(){this.globals.addressActivities.documentsAsDestinations=[],this.globals.activeWindow="main",this.globals.showSelectedDocuments=!1}removeDocument(e){this.documents.splice(this.documents.findIndex(i=>i.pointer===e.pointer),1),this.lastSelectedDocument=!1}blinkChip(e){document.querySelector('mat-chip[data-pointer="'+e+'"]')?.classList.add("fade-it")}changeSelectedDB(){this.textInSearchInput="",this.getEntries(),setTimeout(()=>{this.searchTextInput.nativeElement.focus()},0)}textChanged(e){this.searchValue=e,this.getEntries()}getEntries(){console.log("selectedDB in getEntries is: ",this.selectedDB),"ba"===this.globals.system&&(this.showRecentlyUsed=!this.textInSearchInput||0===this.textInSearchInput?.length),this.datasource.searchDocuments(this.selectedDB,void 0,this.textInSearchInput).subscribe({next:e=>{this.searchResultsArray=this.datasource.handleSearchResult(e,this.selectedDB.type)}})}dblClickedElement(e){this.documents=[];let i=e.currentTarget;if(!this.documents.some(r=>r.pointer===i.dataset.fdme)){let r=new Sa;r.name=i.dataset.displayname,r.pointer=i.dataset.fdme,r.image=i.dataset.image,this.datasource.addToRecentlyUsed(i.dataset.fdme),this.documents.push(r),this.lastSelectedDocument=r,setTimeout(()=>{const o=document.querySelector(".allDocumentFooter .mat-chip-list-wrapper");o&&(o.scrollTop=o.scrollHeight),this.blinkChip(r.pointer)},10)}this.confirmSelection()}}return n.\u0275fac=function(e){return new(e||n)(p(ot),p(St),p(Ut),p(Bi),p(et),p(Mi),p(is),p(Vs))},n.\u0275cmp=Ue({type:n,selectors:[["app-document-selector-page"]],viewQuery:function(e,i){if(1&e&&(De(mre,5),De(gre,5),De(_re,5),De(tO,5),De(nO,5),De(vre,5),De(tO,5,ro),De(nO,5,ro)),2&e){let r;ce(r=ue())&&(i.searchTextInput=r.first),ce(r=ue())&&(i.projectSelectorPanel=r.first),ce(r=ue())&&(i.destinationProjectsInputRO=r.first),ce(r=ue())&&(i.destinationProjectsInput=r.first),ce(r=ue())&&(i.searchProjectPhasesInput=r.first),ce(r=ue())&&(i.allProjectsButton=r.first),ce(r=ue())&&(i.projectsAutocompleteTrigger=r.first),ce(r=ue())&&(i.phasesAutocompleteTrigger=r.first)}},decls:1,vars:1,consts:[[4,"ngIf"],[1,"allDocumentsCard"],["projectSelectorPanel",""],[1,"left-right-align"],[1,"iconsDiv"],[1,"material-symbols-rounded","red","customSize",2,"cursor","pointer",3,"title","click"],[1,"allDocumentsContent"],[2,"width","100%"],[2,"font-size","small"],["matInput","","type","text",3,"ngModel","input","ngModelChange"],["searchTextInput",""],["class","databaseSearchSelect","appearance","standard",4,"ngIf"],["id","resultsContainer",1,"prevent-select"],["class","recentlyUsed",4,"ngIf"],["class","itemListEntry resultListEntry",3,"title","click",4,"ngFor","ngForOf"],[1,"allDocumentFooter"],[2,"padding-bottom","2px"],[1,"projectsChipsHolder"],["chipsInCard",""],[3,"removable","title","removed",4,"ngFor","ngForOf"],["matInput","","readonly","",2,"width","100%","height","0px","margin","0px",3,"matChipInputFor"],["appearance","standard",1,"databaseSearchSelect"],[3,"value","valueChange","selectionChange"],[3,"value",4,"ngFor","ngForOf"],[3,"value"],[1,"recentlyUsed"],[1,"itemListEntry","resultListEntry",3,"title","click"],["class","normalImage",3,"src",4,"ngIf"],[3,"src",4,"ngIf"],[1,"resultsLineWrapper"],[1,"listEntryItemMainLine",3,"title"],[1,"listEntryItemSubLine",3,"title"],[1,"normalImage",3,"src"],[3,"src"],[3,"removable","title","removed"],[1,"chipImage",3,"src"],[1,"chipBase"],["matChipRemove","",1,"chipRemoveButton"],[1,"material-symbols-rounded"]],template:function(e,i){1&e&&H(0,Are,25,9,"div",0),2&e&&v("ngIf",i.globals.infoShower)},dependencies:[zn,pn,Ar,Kr,wo,Bf,Ir,Pi,Ko,cr,Mr,_h,mh,gh,hg,Cl,Ks,wl,bl],styles:['.itemListEntry{line-height:1.3!important;white-space:nowrap;display:flex;padding:4px 0;grid-gap:4px}.itemListEntry>div,.itemListEntry a,.itemListEntry a>div{display:block;overflow:hidden}.itemListEntry>div>[class^=listEntryItem],.itemListEntry a>[class^=listEntryItem],.itemListEntry a>div>[class^=listEntryItem]{overflow:hidden;text-overflow:ellipsis;max-width:100%}.itemListEntry:not(:last-child){border-bottom:1px solid #e0e0e0}.itemListEntry:hover:not([data-selected=true]){background-color:#e0e0e0;cursor:pointer}.itemListEntry:hover:not([data-selected=true]) .resultsLineWrapper{background-color:#e0e0e0}[data-selected=true].itemListEntry,[data-selected=true].itemListEntry .resultsLineWrapper{background-color:#d3d3d3}.itemListEntry img{height:24px;width:24px;box-sizing:content-box;padding:1px 0 0!important}.itemListEntry .resultsLineWrapper{overflow:hidden;text-overflow:ellipsis}.allDocumentsContent #resultsContainer{height:50vh;overflow-y:auto}.allDocumentsContent #resultsContainer>.recentlyUsed{width:100%;text-align:center;color:#a9a9a9;padding-bottom:8px;border-bottom:1px solid #e0e0e0}.allDocumentsContent #resultsContainer>.recentlyUsed+.itemListEntry{padding-top:8px}.resultsLineWrapper{width:100%;overflow:hidden;text-overflow:ellipsis}.prevent-select{-webkit-user-select:none;user-select:none}.item{padding:.3em 1.2em}.btn-group{width:100%;padding-top:3px}.btn-group button{background-color:#bfbfbf;border:1px solid;padding:10px 24px;cursor:pointer;float:left;width:100%}.btn-group:after{content:"";clear:both;display:table}.btn-group button:first-child{border-radius:5px 0 0 5px}.btn-group button:last-child{border-radius:0 5px 5px 0}.btn-group button:not(:last-child){border-right:none}.chipRemoveButton{margin-top:-.5em;margin-left:0!important}#searchText{font-size:12px}.searchResultsPanel{width:calc(100% - 1px);z-index:4;border-radius:5px}.chipImage{height:1.5em;margin-right:3px;margin-left:-3px}.chipBase{text-overflow:ellipsis;overflow:hidden;white-space:nowrap;width:100%}.mat-form-field .projectChipsInput{width:100%;margin:0;line-height:1.8em;height:0}.mat-form-field .projectChipsInput:focus{height:auto}.mat-form-field.mat-focused .projectChipsInput{height:auto}.allProjects{cursor:pointer;position:absolute;right:-.1em;top:0em}.allProjects.hasProjects{top:-.7em}.projectsChipsHolder>.mat-chip-list-wrapper{max-height:7.5em;overflow-x:hidden;overflow-y:auto;scrollbar-gutter:stable;margin:0!important;grid-gap:4px;padding:4px;display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}.projectsChipsHolder>.mat-chip-list-wrapper>.mat-chip{margin:0;background-color:#0000000a}.projectsChipsHolder>.mat-chip-list-wrapper>.mat-chip:first-of-type:last-of-type{grid-column:span 2}.projectChipsNoInput:not(.hasProjects){display:block;height:0}.projectChipsNoInput.hasProjects{display:none}.allDocumentsCard{z-index:10;width:100%;height:100vh;display:flex!important;flex-direction:column;box-shadow:none!important}.allDocumentsContent{flex-grow:1;overflow:auto;font-size:12px;margin-bottom:0!important}.allDocumentsContent #resultsContainer{height:max-content;overflow:auto;max-height:calc(100% - 50px)}.allDocumentFooter{padding-bottom:.3em;padding-left:6px}.listEntryItemMainLine{font-size:13px}.listEntryItemSubLine{font-size:12px}.mat-expansion-panel-header-title{flex-direction:column;align-items:start;margin-right:0!important}mat-expansion-panel-header{padding:0!important}.mat-expansion-panel-header:hover{background-color:transparent!important}@keyframes green-fade{0%{background:#4e850c}to{background:#fcfcfc}}.fade-it{animation:green-fade 1s ease-in-out 0s}.customSize{font-size:22px!important}span.material-symbols-rounded.red:hover{color:#ff2727;font-weight:900}span.material-symbols-rounded.green:hover{color:#13e813;font-weight:900}span.material-symbols-rounded.red,span.material-symbols-rounded.green{border-radius:16px;color:#a9a9a9;font-weight:900}.iconsDiv{display:flex}.left-right-align{display:flex;justify-content:space-between}\n'],encapsulation:2}),n})();const xre=["searchTextInput"],Ire=["projectSelectorPanel"],Mre=["destinationProjectsInputRO"],iO=["destinationProjectsInput"],rO=["searchProjectPhasesInput"],kre=["allProjectsButton"];function Rre(n,t){if(1&n&&(g(0,"mat-option",24),j(1),_()),2&n){const e=t.$implicit,i=C(3);v("value",e),f(1),zr(" ",i.datasource.getDisplayedType(e.type),": ",e.title," ")}}function Ore(n,t){if(1&n){const e=Ie();g(0,"mat-form-field",21)(1,"mat-label"),j(2),_(),g(3,"mat-select",22),W("valueChange",function(r){return J(e),Z(C(2).selectedDB=r)})("selectionChange",function(){return J(e),Z(C(2).changeSelectedDB())}),H(4,Rre,2,3,"mat-option",23),_()()}if(2&n){const e=C(2);f(2),ve(e.globals.languageConfLocal.SelectDatabase),f(1),v("value",e.selectedDB),f(1),v("ngForOf",e.entriesArray)}}function Pre(n,t){if(1&n&&(g(0,"div",25),j(1),_()),2&n){const e=C(2);f(1),qe(" ",e.globals.languageConfLocal.recentlyUsed," ")}}function Lre(n,t){1&n&&be(0,"img",32),2&n&&v("src",C().$implicit.imageBase64,En)}function Nre(n,t){if(1&n&&be(0,"img",33),2&n){const e=C().$implicit;v("src",C(2).datasource.getImageSrc(e.image),En)}}function Fre(n,t){if(1&n){const e=Ie();g(0,"div",26),W("click",function(r){return J(e),Z(C(2).dblClickedElement(r))}),H(1,Lre,1,1,"img",27),H(2,Nre,1,1,"img",28),g(3,"div",29)(4,"span",30),j(5),_(),be(6,"br"),g(7,"span",31),j(8),_(),be(9,"br"),g(10,"span",31),j(11),_(),be(12,"br"),_()()}if(2&n){const e=t.$implicit,i=t.index,r=C(2);_t("title",e.lineOne),rt("data-order",i+1)("data-fdme",e.fdMe)("data-displayname",r.htmlHelp.parseHtmlEntities(e.lineOne))("data-image",e.image),f(1),v("ngIf",e.imageBase64),f(1),v("ngIf",!e.imageBase64),f(2),_t("title",r.htmlHelp.parseHtmlEntities(e.lineOne)),f(1),ve(r.htmlHelp.parseHtmlEntities(e.lineOne)),f(2),_t("title",r.htmlHelp.parseHtmlEntities(e.lineTwo)),f(1),ve(r.htmlHelp.parseHtmlEntities(e.lineTwo)),f(2),_t("title",r.htmlHelp.parseHtmlEntities(e.lineThree)),f(1),ve(r.htmlHelp.parseHtmlEntities(e.lineThree))}}function Bre(n,t){if(1&n&&(g(0,"mat-chip",34),be(1,"img",35),g(2,"div",36),j(3),_(),g(4,"button",37)(5,"span",38),j(6,"cancel"),_()()()),2&n){const e=t.$implicit,i=C(2);v("removable",!0)("title",e.name),rt("data-pointer",e.pointer),f(1),v("src",i.datasource.getImageSrc(e.image),En),f(2),ve(e.name)}}function jre(n,t){if(1&n){const e=Ie();g(0,"div")(1,"mat-card",1,2)(3,"mat-card-title",3),j(4),g(5,"div",4)(6,"span",5),W("click",function(){return J(e),Z(C().cancelSelection())}),j(7,"cancel"),_()()(),g(8,"mat-card-content",6)(9,"mat-form-field",7)(10,"mat-label",8),j(11),_(),g(12,"input",9,10),W("input",function(){J(e);const r=Yt(13);return Z(C().textChanged(r.value))})("ngModelChange",function(r){return J(e),Z(C().textInSearchInput=r)}),_()(),H(14,Ore,5,3,"mat-form-field",11),be(15,"br"),g(16,"div",12),H(17,Pre,2,1,"div",13),H(18,Fre,13,13,"div",14),_()(),g(19,"mat-card-footer",15),be(20,"mat-divider",16),g(21,"mat-chip-list",17,18),H(23,Bre,7,5,"mat-chip",19),be(24,"input",20),_()()()()}if(2&n){const e=Yt(22),i=C();f(4),qe(" ",i.globals.languageConfLocal.selectCompany," "),f(2),v("title",i.globals.languageConfLocal.Cancel),f(5),qe(" ",i.globals.languageConfLocal.searchCompanyInCRM," "),f(1),v("ngModel",i.textInSearchInput),f(2),v("ngIf",null!=i.entriesArray&&i.entriesArray.length>0&&!i.isAppointment),f(3),v("ngIf",i.showRecentlyUsed),f(1),v("ngForOf",i.searchResultsArray),f(5),v("ngForOf",i.documents),f(1),v("matChipInputFor",e)}}let Hre=(()=>{class n{constructor(e,i,r,o,s,a,l,c){this.globals=e,this.ref=i,this.translate=r,this.datasource=o,this.zone=s,this.lsm=a,this.dps=l,this.htmlHelp=c,this.projectSelectorPanelVisible=!1,this.searchResultsArray=[],this.projectPhaseResultArray=[],this.projectPhaseSearchResultArray=[],this.projectPhaseFilter="",this.participatedResultsArray=[],this.initialDBSelection=!1,this.entriesArray=[],this.searchValue="",this.showRecentlyUsed=!0,this.destinationDirectProjectsCount=0,this.destinationProjects=new Co(""),this.projectPhasesControl=new Co(""),this.participatingProjectsFilter="",this.addressFetched=!1,this.addresses=[],this.filteredAdditionalValues={},this.docImage={background:"transparent no-repeat url(assets/images/icons_business_mail.png)"},this.attachRdy=!1,this.attachDelete=!1}ngOnInit(){this.globals.onActiveWindowChange().subscribe(e=>{"companyPage"===e.newWindow&&"contactCreation"===e.currentWindow&&this.initializeTheView()})}initializeTheView(){this.databases=[],this.searchValue="",this.searchTextInput.nativeElement.value="",this.searchResultsArray=[],this.documents=[],this.textInSearchInput="","gi"===this.globals.system&&(this.showRecentlyUsed=!1),this.datasource.getCompanies().subscribe(e=>{this.entriesArray=e,null!==this.entriesArray?(this.selectedDB=e[0],this.changeSelectedDB()):(this.selectedDB="",this.getEntries()),setTimeout(()=>{this.searchTextInput.nativeElement.focus()},0)})}confirmSelection(){this.globals.activeWindow="contactCreation"}cancelSelection(){this.globals.activeWindow="contactCreation"}changeSelectedDB(){this.textInSearchInput="",this.getEntries(),setTimeout(()=>{this.searchTextInput.nativeElement.focus()},0)}textChanged(e){this.searchValue=e,this.getEntries()}getEntries(){console.log("selectedDB in getEntries is: ",this.selectedDB),"ba"===this.globals.system&&(this.showRecentlyUsed=!this.textInSearchInput||0===this.textInSearchInput?.length),this.datasource.searchDocuments(this.selectedDB,void 0,this.textInSearchInput).subscribe({next:e=>{this.searchResultsArray=this.datasource.handleSearchResult(e,this.selectedDB.type)}}),console.log("searchResultsArray is: ",this.searchResultsArray)}dblClickedElement(e){let i=e.currentTarget;if(!this.documents.some(r=>r.pointer===i.dataset.fdme)){let r=new Sa;r.name=i.dataset.displayname,r.pointer=i.dataset.fdme,r.image=i.dataset.image,this.datasource.addToRecentlyUsed(i.dataset.fdme),setTimeout(()=>{const o=document.querySelector(".allDocumentFooter .mat-chip-list-wrapper");o&&(o.scrollTop=o.scrollHeight)},10),this.globals.contactCreator.selectedCompany=r.name,this.globals.contactCreator.selectedCompanyData=r}this.confirmSelection()}}return n.\u0275fac=function(e){return new(e||n)(p(ot),p(St),p(Ut),p(Bi),p(et),p(Mi),p(is),p(Vs))},n.\u0275cmp=Ue({type:n,selectors:[["app-company-selector-page"]],viewQuery:function(e,i){if(1&e&&(De(xre,5),De(Ire,5),De(Mre,5),De(iO,5),De(rO,5),De(kre,5),De(iO,5,ro),De(rO,5,ro)),2&e){let r;ce(r=ue())&&(i.searchTextInput=r.first),ce(r=ue())&&(i.projectSelectorPanel=r.first),ce(r=ue())&&(i.destinationProjectsInputRO=r.first),ce(r=ue())&&(i.destinationProjectsInput=r.first),ce(r=ue())&&(i.searchProjectPhasesInput=r.first),ce(r=ue())&&(i.allProjectsButton=r.first),ce(r=ue())&&(i.projectsAutocompleteTrigger=r.first),ce(r=ue())&&(i.phasesAutocompleteTrigger=r.first)}},decls:1,vars:1,consts:[[4,"ngIf"],[1,"allCompaniesCard"],["projectSelectorPanel",""],[1,"left-right-align"],[1,"iconsDiv"],[1,"material-symbols-rounded","red","customSize",2,"cursor","pointer",3,"title","click"],[1,"allCompaniesContent"],[2,"width","100%"],[2,"font-size","small"],["matInput","","type","text",3,"ngModel","input","ngModelChange"],["searchTextInput",""],["class","databaseSearchSelect","appearance","standard",4,"ngIf"],["id","resultsContainer",1,"prevent-select"],["class","recentlyUsed",4,"ngIf"],["class","itemListEntry resultListEntry",3,"title","click",4,"ngFor","ngForOf"],[1,"allDocumentFooter"],[2,"padding-bottom","2px"],[1,"projectsChipsHolder"],["chipsInCard",""],[3,"removable","title",4,"ngFor","ngForOf"],["matInput","","readonly","",2,"width","100%","height","0px","margin","0px",3,"matChipInputFor"],["appearance","standard",1,"databaseSearchSelect"],[3,"value","valueChange","selectionChange"],[3,"value",4,"ngFor","ngForOf"],[3,"value"],[1,"recentlyUsed"],[1,"itemListEntry","resultListEntry",3,"title","click"],["class","normalImage",3,"src",4,"ngIf"],[3,"src",4,"ngIf"],[1,"resultsLineWrapper"],[1,"listEntryItemMainLine",3,"title"],[1,"listEntryItemSubLine",3,"title"],[1,"normalImage",3,"src"],[3,"src"],[3,"removable","title"],[1,"chipImage",3,"src"],[1,"chipBase"],["matChipRemove","",1,"chipRemoveButton"],[1,"material-symbols-rounded"]],template:function(e,i){1&e&&H(0,jre,25,9,"div",0),2&e&&v("ngIf",i.globals.infoShower)},dependencies:[zn,pn,Ar,Kr,wo,Bf,Ir,Pi,Ko,cr,Mr,_h,mh,gh,hg,Cl,Ks,wl,bl],styles:['.itemListEntry[_ngcontent-%COMP%]{line-height:1.3!important;white-space:nowrap;display:flex;padding:4px 0;grid-gap:4px}.itemListEntry[_ngcontent-%COMP%] > div[_ngcontent-%COMP%], .itemListEntry[_ngcontent-%COMP%] a[_ngcontent-%COMP%], .itemListEntry[_ngcontent-%COMP%] a[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{display:block;overflow:hidden}.itemListEntry[_ngcontent-%COMP%] > div[_ngcontent-%COMP%] > [class^=listEntryItem][_ngcontent-%COMP%], .itemListEntry[_ngcontent-%COMP%] a[_ngcontent-%COMP%] > [class^=listEntryItem][_ngcontent-%COMP%], .itemListEntry[_ngcontent-%COMP%] a[_ngcontent-%COMP%] > div[_ngcontent-%COMP%] > [class^=listEntryItem][_ngcontent-%COMP%]{overflow:hidden;text-overflow:ellipsis;max-width:100%}.itemListEntry[_ngcontent-%COMP%]:not(:last-child){border-bottom:1px solid #e0e0e0}.itemListEntry[_ngcontent-%COMP%]:hover:not([data-selected=true]){background-color:#e0e0e0;cursor:pointer}.itemListEntry[_ngcontent-%COMP%]:hover:not([data-selected=true]) .resultsLineWrapper[_ngcontent-%COMP%]{background-color:#e0e0e0}[data-selected=true].itemListEntry[_ngcontent-%COMP%], [data-selected=true].itemListEntry[_ngcontent-%COMP%] .resultsLineWrapper[_ngcontent-%COMP%]{background-color:#d3d3d3}.itemListEntry[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{height:24px;width:24px;box-sizing:content-box;padding:1px 0 0!important}.itemListEntry[_ngcontent-%COMP%] .resultsLineWrapper[_ngcontent-%COMP%]{overflow:hidden;text-overflow:ellipsis}.allCompaniesContent[_ngcontent-%COMP%] #resultsContainer[_ngcontent-%COMP%]{height:50vh;overflow-y:auto}.allCompaniesContent[_ngcontent-%COMP%] #resultsContainer[_ngcontent-%COMP%] > .recentlyUsed[_ngcontent-%COMP%]{width:100%;text-align:center;color:#a9a9a9;padding-bottom:8px;border-bottom:1px solid #e0e0e0}.allCompaniesContent[_ngcontent-%COMP%] #resultsContainer[_ngcontent-%COMP%] > .recentlyUsed[_ngcontent-%COMP%] + .itemListEntry[_ngcontent-%COMP%]{padding-top:8px}.resultsLineWrapper[_ngcontent-%COMP%]{width:100%;overflow:hidden;text-overflow:ellipsis}.prevent-select[_ngcontent-%COMP%]{-webkit-user-select:none;user-select:none}.item[_ngcontent-%COMP%]{padding:.3em 1.2em}.btn-group[_ngcontent-%COMP%]{width:100%;padding-top:3px}.btn-group[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{background-color:#bfbfbf;border:1px solid;padding:10px 24px;cursor:pointer;float:left;width:100%}.btn-group[_ngcontent-%COMP%]:after{content:"";clear:both;display:table}.btn-group[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:first-child{border-radius:5px 0 0 5px}.btn-group[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child{border-radius:0 5px 5px 0}.btn-group[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:not(:last-child){border-right:none}.chipRemoveButton[_ngcontent-%COMP%]{margin-top:-.5em;margin-left:0!important}#searchText[_ngcontent-%COMP%]{font-size:12px}.searchResultsPanel[_ngcontent-%COMP%]{width:calc(100% - 1px);z-index:4;border-radius:5px}.chipImage[_ngcontent-%COMP%]{height:1.5em;margin-right:3px;margin-left:-3px}.chipBase[_ngcontent-%COMP%]{text-overflow:ellipsis;overflow:hidden;white-space:nowrap;width:100%}.mat-form-field[_ngcontent-%COMP%] .projectChipsInput[_ngcontent-%COMP%]{width:100%;margin:0;line-height:1.8em;height:0}.mat-form-field[_ngcontent-%COMP%] .projectChipsInput[_ngcontent-%COMP%]:focus{height:auto}.mat-form-field.mat-focused[_ngcontent-%COMP%] .projectChipsInput[_ngcontent-%COMP%]{height:auto}.allProjects[_ngcontent-%COMP%]{cursor:pointer;position:absolute;right:-.1em;top:0em}.allProjects.hasProjects[_ngcontent-%COMP%]{top:-.7em}.projectsChipsHolder[_ngcontent-%COMP%] > .mat-chip-list-wrapper[_ngcontent-%COMP%]{max-height:7.5em;overflow-x:hidden;overflow-y:auto;scrollbar-gutter:stable;margin:0!important;grid-gap:4px;padding:4px;display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}.projectsChipsHolder[_ngcontent-%COMP%] > .mat-chip-list-wrapper[_ngcontent-%COMP%] > .mat-chip[_ngcontent-%COMP%]{margin:0;background-color:#0000000a}.projectsChipsHolder[_ngcontent-%COMP%] > .mat-chip-list-wrapper[_ngcontent-%COMP%] > .mat-chip[_ngcontent-%COMP%]:first-of-type:last-of-type{grid-column:span 2}.projectChipsNoInput[_ngcontent-%COMP%]:not(.hasProjects){display:block;height:0}.projectChipsNoInput.hasProjects[_ngcontent-%COMP%]{display:none}.allCompaniesCard[_ngcontent-%COMP%]{z-index:10;width:100%;height:100vh;display:flex!important;flex-direction:column;box-shadow:none!important}.allCompaniesContent[_ngcontent-%COMP%]{flex-grow:1;overflow:auto;font-size:12px;margin-bottom:0!important}.allCompaniesContent[_ngcontent-%COMP%] #resultsContainer[_ngcontent-%COMP%]{height:max-content;overflow:auto;max-height:calc(100% - 50px)}.allDocumentFooter[_ngcontent-%COMP%]{padding-bottom:.3em;padding-left:6px}.listEntryItemMainLine[_ngcontent-%COMP%]{font-size:13px}.listEntryItemSubLine[_ngcontent-%COMP%]{font-size:12px}.mat-expansion-panel-header-title[_ngcontent-%COMP%]{flex-direction:column;align-items:start;margin-right:0!important}mat-expansion-panel-header[_ngcontent-%COMP%]{padding:0!important}.mat-expansion-panel-header[_ngcontent-%COMP%]:hover{background-color:transparent!important}@keyframes green-fade{0%{background:#4e850c}to{background:#fcfcfc}}.fade-it[_ngcontent-%COMP%]{animation:green-fade 1s ease-in-out 0s}.customSize[_ngcontent-%COMP%]{font-size:22px!important}span.material-symbols-rounded.red[_ngcontent-%COMP%]:hover{color:#ff2727;font-weight:900}span.material-symbols-rounded.green[_ngcontent-%COMP%]:hover{color:#13e813;font-weight:900}span.material-symbols-rounded.red[_ngcontent-%COMP%]{border-radius:16px;color:#e60000;font-weight:900}span.material-symbols-rounded.green[_ngcontent-%COMP%]{border-radius:16px;color:#04d804;font-weight:900}.iconsDiv[_ngcontent-%COMP%]{display:flex}.left-right-align[_ngcontent-%COMP%]{display:flex;justify-content:space-between}']}),n})(),oO=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=ht({type:n,bootstrap:[HC]}),n.\u0275inj=dt({providers:[ot,pC,k1,In,nm,{provide:Rc,useValue:{}},{provide:Hy,useClass:rU,multi:!0},nu],imports:[QT,jV,HV,iU,$X,Wq,bJ,k1,q9,Hf,Y9,Ez,ha,g$,R1,zte,mk,Fee,Zee,rte,OJ,lte,bte,Mte,P1,Dee,dee,mk.forRoot(new UI({auth:{clientId:"82cc362f-b9da-43a3-b9f8-3008e6d47d9e"},cache:{cacheLocation:"localStorage",storeAuthStateInCookie:!0}}),{interactionType:$e.Redirect,authRequest:{scopes:["user.read"]}},{interactionType:$e.Redirect,protectedResourceMap:new Map}),bU.forRoot({defaultLanguage:"en",loader:{provide:ld,useClass:iee}})]}),n})();(function Mw(n,t,e){const i=n.\u0275cmp;i.directiveDefs=()=>("function"==typeof t?t():t).map(kw),i.pipeDefs=()=>("function"==typeof e?e():e).map(zi)})(HC,function(){return[pn,ra,tl,$s,GJ,KJ,nee,Kte,Yte,hne,zie,Yne,qie,cie,uie,Sie,cre,Zie,Gie,fre,Tre,Hre]},[]),JR.production&&(function D4(){ZA=!1}(),window.console.log=()=>{});try{Office.initialize=()=>{WT().bootstrapModule(oO)}}catch{WT().bootstrapModule(oO).catch(t=>console.error(t))}},4999:Le=>{"use strict";var w=function(z){return function G(B){return!!B&&"object"==typeof B}(z)&&!function le(B){var z=Object.prototype.toString.call(B);return"[object RegExp]"===z||"[object Date]"===z||function Q(B){return B.$$typeof===Y}(B)}(z)},Y="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function F(B,z){return!1!==z.clone&&z.isMergeableObject(B)?S(function q(B){return Array.isArray(B)?[]:{}}(B),B,z):B}function I(B,z,re){return B.concat(z).map(function(we){return F(we,re)})}function E(B){return Object.keys(B).concat(function T(B){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(B).filter(function(z){return B.propertyIsEnumerable(z)}):[]}(B))}function P(B,z){try{return z in B}catch{return!1}}function S(B,z,re){(re=re||{}).arrayMerge=re.arrayMerge||I,re.isMergeableObject=re.isMergeableObject||w,re.cloneUnlessOtherwiseSpecified=F;var we=Array.isArray(z);return we===Array.isArray(B)?we?re.arrayMerge(B,z,re):function k(B,z,re){var we={};return re.isMergeableObject(B)&&E(B).forEach(function($){we[$]=F(B[$],re)}),E(z).forEach(function($){(function D(B,z){return P(B,z)&&!(Object.hasOwnProperty.call(B,z)&&Object.propertyIsEnumerable.call(B,z))})(B,$)||(we[$]=P(B,$)&&re.isMergeableObject(z[$])?function O(B,z){if(!z.customMerge)return S;var re=z.customMerge(B);return"function"==typeof re?re:S}($,re)(B[$],z[$],re):F(z[$],re))}),we}(B,z,re):F(z,re)}S.all=function(z,re){if(!Array.isArray(z))throw new Error("first argument should be an array");return z.reduce(function(we,$){return S(we,$,re)},{})},Le.exports=S},2094:(Le,w)=>{"use strict";Object.defineProperty(w,"__esModule",{value:!0}),w.attributeNames=w.elementNames=void 0,w.elementNames=new Map([["altglyph","altGlyph"],["altglyphdef","altGlyphDef"],["altglyphitem","altGlyphItem"],["animatecolor","animateColor"],["animatemotion","animateMotion"],["animatetransform","animateTransform"],["clippath","clipPath"],["feblend","feBlend"],["fecolormatrix","feColorMatrix"],["fecomponenttransfer","feComponentTransfer"],["fecomposite","feComposite"],["feconvolvematrix","feConvolveMatrix"],["fediffuselighting","feDiffuseLighting"],["fedisplacementmap","feDisplacementMap"],["fedistantlight","feDistantLight"],["fedropshadow","feDropShadow"],["feflood","feFlood"],["fefunca","feFuncA"],["fefuncb","feFuncB"],["fefuncg","feFuncG"],["fefuncr","feFuncR"],["fegaussianblur","feGaussianBlur"],["feimage","feImage"],["femerge","feMerge"],["femergenode","feMergeNode"],["femorphology","feMorphology"],["feoffset","feOffset"],["fepointlight","fePointLight"],["fespecularlighting","feSpecularLighting"],["fespotlight","feSpotLight"],["fetile","feTile"],["feturbulence","feTurbulence"],["foreignobject","foreignObject"],["glyphref","glyphRef"],["lineargradient","linearGradient"],["radialgradient","radialGradient"],["textpath","textPath"]]),w.attributeNames=new Map([["definitionurl","definitionURL"],["attributename","attributeName"],["attributetype","attributeType"],["basefrequency","baseFrequency"],["baseprofile","baseProfile"],["calcmode","calcMode"],["clippathunits","clipPathUnits"],["diffuseconstant","diffuseConstant"],["edgemode","edgeMode"],["filterunits","filterUnits"],["glyphref","glyphRef"],["gradienttransform","gradientTransform"],["gradientunits","gradientUnits"],["kernelmatrix","kernelMatrix"],["kernelunitlength","kernelUnitLength"],["keypoints","keyPoints"],["keysplines","keySplines"],["keytimes","keyTimes"],["lengthadjust","lengthAdjust"],["limitingconeangle","limitingConeAngle"],["markerheight","markerHeight"],["markerunits","markerUnits"],["markerwidth","markerWidth"],["maskcontentunits","maskContentUnits"],["maskunits","maskUnits"],["numoctaves","numOctaves"],["pathlength","pathLength"],["patterncontentunits","patternContentUnits"],["patterntransform","patternTransform"],["patternunits","patternUnits"],["pointsatx","pointsAtX"],["pointsaty","pointsAtY"],["pointsatz","pointsAtZ"],["preservealpha","preserveAlpha"],["preserveaspectratio","preserveAspectRatio"],["primitiveunits","primitiveUnits"],["refx","refX"],["refy","refY"],["repeatcount","repeatCount"],["repeatdur","repeatDur"],["requiredextensions","requiredExtensions"],["requiredfeatures","requiredFeatures"],["specularconstant","specularConstant"],["specularexponent","specularExponent"],["spreadmethod","spreadMethod"],["startoffset","startOffset"],["stddeviation","stdDeviation"],["stitchtiles","stitchTiles"],["surfacescale","surfaceScale"],["systemlanguage","systemLanguage"],["tablevalues","tableValues"],["targetx","targetX"],["targety","targetY"],["textlength","textLength"],["viewbox","viewBox"],["viewtarget","viewTarget"],["xchannelselector","xChannelSelector"],["ychannelselector","yChannelSelector"],["zoomandpan","zoomAndPan"]])},3192:function(Le,w,G){"use strict";var le=this&&this.__assign||function(){return le=Object.assign||function($){for(var ie,b=1,K=arguments.length;b"}($);case q.Comment:return function we($){return"\x3c!--"+$.data+"--\x3e"}($);case q.CDATA:return function re($){return""+$.children[0].data+""}($);case q.Script:case q.Style:case q.Tag:return function x($,ie){var b;"foreign"===ie.xmlMode&&($.name=null!==(b=I.elementNames.get($.name))&&void 0!==b?b:$.name,$.parent&&k.has($.parent.name)&&(ie=le(le({},ie),{xmlMode:!1}))),!ie.xmlMode&&S.has($.name)&&(ie=le(le({},ie),{xmlMode:"foreign"}));var K="<"+$.name,L=function T($,ie){if($)return Object.keys($).map(function(b){var K,L,oe=null!==(K=$[b])&&void 0!==K?K:"";return"foreign"===ie.xmlMode&&(b=null!==(L=I.attributeNames.get(b))&&void 0!==L?L:b),ie.emptyAttrs||ie.xmlMode||""!==oe?b+'="'+(!1!==ie.decodeEntities?F.encodeXML(oe):oe.replace(/"/g,"""))+'"':b}).join(" ")}($.attribs,ie);return L&&(K+=" "+L),0===$.children.length&&(ie.xmlMode?!1!==ie.selfClosingTags:ie.selfClosingTags&&E.has($.name))?(ie.xmlMode||(K+=" "),K+="/>"):(K+=">",$.children.length>0&&(K+=P($.children,ie)),(ie.xmlMode||!E.has($.name))&&(K+="")),K}($,ie);case q.Text:return function z($,ie){var b=$.data||"";return!1!==ie.decodeEntities&&!(!ie.xmlMode&&$.parent&&O.has($.parent.name))&&(b=F.encodeXML(b)),b}($,ie)}}w.default=P;var k=new Set(["mi","mo","mn","ms","mtext","annotation-xml","foreignObject","desc","title"]),S=new Set(["svg","math"])},6316:(Le,w)=>{"use strict";var G,de;Object.defineProperty(w,"__esModule",{value:!0}),w.Doctype=w.CDATA=w.Tag=w.Style=w.Script=w.Comment=w.Directive=w.Text=w.Root=w.isTag=w.ElementType=void 0,(de=G=w.ElementType||(w.ElementType={})).Root="root",de.Text="text",de.Directive="directive",de.Comment="comment",de.Script="script",de.Style="style",de.Tag="tag",de.CDATA="cdata",de.Doctype="doctype",w.isTag=function le(de){return de.type===G.Tag||de.type===G.Script||de.type===G.Style},w.Root=G.Root,w.Text=G.Text,w.Directive=G.Directive,w.Comment=G.Comment,w.Script=G.Script,w.Style=G.Style,w.Tag=G.Tag,w.CDATA=G.CDATA,w.Doctype=G.Doctype},2962:function(Le,w,G){"use strict";var le=this&&this.__createBinding||(Object.create?function(O,T,E,P){void 0===P&&(P=E);var D=Object.getOwnPropertyDescriptor(T,E);(!D||("get"in D?!T.__esModule:D.writable||D.configurable))&&(D={enumerable:!0,get:function(){return T[E]}}),Object.defineProperty(O,P,D)}:function(O,T,E,P){void 0===P&&(P=E),O[P]=T[E]}),de=this&&this.__exportStar||function(O,T){for(var E in O)"default"!==E&&!Object.prototype.hasOwnProperty.call(T,E)&&le(T,O,E)};Object.defineProperty(w,"__esModule",{value:!0}),w.DomHandler=void 0;var Y=G(6316),Q=G(3416);de(G(3416),w);var q=/\s+/g,F={normalizeWhitespace:!1,withStartIndices:!1,withEndIndices:!1,xmlMode:!1},I=function(){function O(T,E,P){this.dom=[],this.root=new Q.Document(this.dom),this.done=!1,this.tagStack=[this.root],this.lastNode=null,this.parser=null,"function"==typeof E&&(P=E,E=F),"object"==typeof T&&(E=T,T=void 0),this.callback=T??null,this.options=E??F,this.elementCB=P??null}return O.prototype.onparserinit=function(T){this.parser=T},O.prototype.onreset=function(){this.dom=[],this.root=new Q.Document(this.dom),this.done=!1,this.tagStack=[this.root],this.lastNode=null,this.parser=null},O.prototype.onend=function(){this.done||(this.done=!0,this.parser=null,this.handleCallback(null))},O.prototype.onerror=function(T){this.handleCallback(T)},O.prototype.onclosetag=function(){this.lastNode=null;var T=this.tagStack.pop();this.options.withEndIndices&&(T.endIndex=this.parser.endIndex),this.elementCB&&this.elementCB(T)},O.prototype.onopentag=function(T,E){var D=new Q.Element(T,E,void 0,this.options.xmlMode?Y.ElementType.Tag:void 0);this.addNode(D),this.tagStack.push(D)},O.prototype.ontext=function(T){var E=this.options.normalizeWhitespace,P=this.lastNode;if(P&&P.type===Y.ElementType.Text)E?P.data=(P.data+T).replace(q," "):P.data+=T,this.options.withEndIndices&&(P.endIndex=this.parser.endIndex);else{E&&(T=T.replace(q," "));var D=new Q.Text(T);this.addNode(D),this.lastNode=D}},O.prototype.oncomment=function(T){if(this.lastNode&&this.lastNode.type===Y.ElementType.Comment)this.lastNode.data+=T;else{var E=new Q.Comment(T);this.addNode(E),this.lastNode=E}},O.prototype.oncommentend=function(){this.lastNode=null},O.prototype.oncdatastart=function(){var T=new Q.Text(""),E=new Q.NodeWithChildren(Y.ElementType.CDATA,[T]);this.addNode(E),T.parent=E,this.lastNode=T},O.prototype.oncdataend=function(){this.lastNode=null},O.prototype.onprocessinginstruction=function(T,E){var P=new Q.ProcessingInstruction(T,E);this.addNode(P)},O.prototype.handleCallback=function(T){if("function"==typeof this.callback)this.callback(T,this.dom);else if(T)throw T},O.prototype.addNode=function(T){var E=this.tagStack[this.tagStack.length-1],P=E.children[E.children.length-1];this.options.withStartIndices&&(T.startIndex=this.parser.startIndex),this.options.withEndIndices&&(T.endIndex=this.parser.endIndex),E.children.push(T),P&&(T.prev=P,P.next=T),T.parent=E,this.lastNode=null},O}();w.DomHandler=I,w.default=I},3416:function(Le,w,G){"use strict";var b,le=this&&this.__extends||(b=function(K,L){return(b=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(oe,_e){oe.__proto__=_e}||function(oe,_e){for(var V in _e)Object.prototype.hasOwnProperty.call(_e,V)&&(oe[V]=_e[V])})(K,L)},function(K,L){if("function"!=typeof L&&null!==L)throw new TypeError("Class extends value "+String(L)+" is not a constructor or null");function oe(){this.constructor=K}b(K,L),K.prototype=null===L?Object.create(L):(oe.prototype=L.prototype,new oe)}),de=this&&this.__assign||function(){return de=Object.assign||function(b){for(var K,L=1,oe=arguments.length;L0?this.children[this.children.length-1]:null},enumerable:!1,configurable:!0}),Object.defineProperty(K.prototype,"childNodes",{get:function(){return this.children},set:function(L){this.children=L},enumerable:!1,configurable:!0}),K}(q);w.NodeWithChildren=E;var P=function(b){function K(L){return b.call(this,Y.ElementType.Root,L)||this}return le(K,b),K}(E);w.Document=P;var D=function(b){function K(L,oe,_e,V){void 0===_e&&(_e=[]),void 0===V&&(V="script"===L?Y.ElementType.Script:"style"===L?Y.ElementType.Style:Y.ElementType.Tag);var N=b.call(this,V,_e)||this;return N.name=L,N.attribs=oe,N}return le(K,b),Object.defineProperty(K.prototype,"tagName",{get:function(){return this.name},set:function(L){this.name=L},enumerable:!1,configurable:!0}),Object.defineProperty(K.prototype,"attributes",{get:function(){var L=this;return Object.keys(this.attribs).map(function(oe){var _e,V;return{name:oe,value:L.attribs[oe],namespace:null===(_e=L["x-attribsNamespace"])||void 0===_e?void 0:_e[oe],prefix:null===(V=L["x-attribsPrefix"])||void 0===V?void 0:V[oe]}})},enumerable:!1,configurable:!0}),K}(E);function k(b){return(0,Y.isTag)(b)}function S(b){return b.type===Y.ElementType.CDATA}function x(b){return b.type===Y.ElementType.Text}function B(b){return b.type===Y.ElementType.Comment}function z(b){return b.type===Y.ElementType.Directive}function re(b){return b.type===Y.ElementType.Root}function $(b,K){var L;if(void 0===K&&(K=!1),x(b))L=new I(b.data);else if(B(b))L=new O(b.data);else if(k(b)){var oe=K?ie(b.children):[],_e=new D(b.name,de({},b.attribs),oe);oe.forEach(function(pe){return pe.parent=_e}),null!=b.namespace&&(_e.namespace=b.namespace),b["x-attribsNamespace"]&&(_e["x-attribsNamespace"]=de({},b["x-attribsNamespace"])),b["x-attribsPrefix"]&&(_e["x-attribsPrefix"]=de({},b["x-attribsPrefix"])),L=_e}else if(S(b)){oe=K?ie(b.children):[];var V=new E(Y.ElementType.CDATA,oe);oe.forEach(function(he){return he.parent=V}),L=V}else if(re(b)){oe=K?ie(b.children):[];var N=new P(oe);oe.forEach(function(he){return he.parent=N}),b["x-mode"]&&(N["x-mode"]=b["x-mode"]),L=N}else{if(!z(b))throw new Error("Not implemented yet: ".concat(b.type));var X=new T(b.name,b.data);null!=b["x-name"]&&(X["x-name"]=b["x-name"],X["x-publicId"]=b["x-publicId"],X["x-systemId"]=b["x-systemId"]),L=X}return L.startIndex=b.startIndex,L.endIndex=b.endIndex,null!=b.sourceCodeLocation&&(L.sourceCodeLocation=b.sourceCodeLocation),L}function ie(b){for(var K=b.map(function(oe){return $(oe,!0)}),L=1;L{"use strict";Object.defineProperty(w,"__esModule",{value:!0}),w.getFeed=void 0;var le=G(4543),de=G(9735);w.getFeed=function Y(k){var S=T(D,k);return S?"feed"===S.name?function Q(k){var S,x=k.children,B={type:"atom",items:(0,de.getElementsByTagName)("entry",x).map(function(we){var $,ie=we.children,b={media:O(ie)};P(b,"id","id",ie),P(b,"title","title",ie);var K=null===($=T("link",ie))||void 0===$?void 0:$.attribs.href;K&&(b.link=K);var L=E("summary",ie)||E("content",ie);L&&(b.description=L);var oe=E("updated",ie);return oe&&(b.pubDate=new Date(oe)),b})};P(B,"id","id",x),P(B,"title","title",x);var z=null===(S=T("link",x))||void 0===S?void 0:S.attribs.href;z&&(B.link=z),P(B,"description","subtitle",x);var re=E("updated",x);return re&&(B.updated=new Date(re)),P(B,"author","email",x,!0),B}(S):function q(k){var S,x,B=null!==(x=null===(S=T("channel",k.children))||void 0===S?void 0:S.children)&&void 0!==x?x:[],z={type:k.name.substr(0,3),id:"",items:(0,de.getElementsByTagName)("item",k.children).map(function(we){var $=we.children,ie={media:O($)};P(ie,"id","guid",$),P(ie,"title","title",$),P(ie,"link","link",$),P(ie,"description","description",$);var b=E("pubDate",$);return b&&(ie.pubDate=new Date(b)),ie})};P(z,"title","title",B),P(z,"link","link",B),P(z,"description","description",B);var re=E("lastBuildDate",B);return re&&(z.updated=new Date(re)),P(z,"author","managingEditor",B,!0),z}(S):null};var F=["url","type","lang"],I=["fileSize","bitrate","framerate","samplingrate","channels","duration","height","width"];function O(k){return(0,de.getElementsByTagName)("media:content",k).map(function(S){for(var x=S.attribs,B={medium:x.medium,isDefault:!!x.isDefault},z=0,re=F;z{"use strict";Object.defineProperty(w,"__esModule",{value:!0}),w.uniqueSort=w.compareDocumentPosition=w.removeSubsets=void 0;var le=G(2962);function Y(q,F){var I=[],O=[];if(q===F)return 0;for(var T=(0,le.hasChildren)(q)?q:q.parent;T;)I.unshift(T),T=T.parent;for(T=(0,le.hasChildren)(F)?F:F.parent;T;)O.unshift(T),T=T.parent;for(var E=Math.min(I.length,O.length),P=0;Pk.indexOf(x)?D===F?20:4:D===q?10:2}w.removeSubsets=function de(q){for(var F=q.length;--F>=0;){var I=q[F];if(F>0&&q.lastIndexOf(I,F-1)>=0)q.splice(F,1);else for(var O=I.parent;O;O=O.parent)if(q.includes(O)){q.splice(F,1);break}}return q},w.compareDocumentPosition=Y,w.uniqueSort=function Q(q){return(q=q.filter(function(F,I,O){return!O.includes(F,I+1)})).sort(function(F,I){var O=Y(F,I);return 2&O?-1:4&O?1:0}),q}},2155:function(Le,w,G){"use strict";var le=this&&this.__createBinding||(Object.create?function(Q,q,F,I){void 0===I&&(I=F),Object.defineProperty(Q,I,{enumerable:!0,get:function(){return q[F]}})}:function(Q,q,F,I){void 0===I&&(I=F),Q[I]=q[F]}),de=this&&this.__exportStar||function(Q,q){for(var F in Q)"default"!==F&&!Object.prototype.hasOwnProperty.call(q,F)&&le(q,Q,F)};Object.defineProperty(w,"__esModule",{value:!0}),w.hasChildren=w.isDocument=w.isComment=w.isText=w.isCDATA=w.isTag=void 0,de(G(4543),w),de(G(4757),w),de(G(6525),w),de(G(7237),w),de(G(9735),w),de(G(485),w),de(G(6534),w);var Y=G(2962);Object.defineProperty(w,"isTag",{enumerable:!0,get:function(){return Y.isTag}}),Object.defineProperty(w,"isCDATA",{enumerable:!0,get:function(){return Y.isCDATA}}),Object.defineProperty(w,"isText",{enumerable:!0,get:function(){return Y.isText}}),Object.defineProperty(w,"isComment",{enumerable:!0,get:function(){return Y.isComment}}),Object.defineProperty(w,"isDocument",{enumerable:!0,get:function(){return Y.isDocument}}),Object.defineProperty(w,"hasChildren",{enumerable:!0,get:function(){return Y.hasChildren}})},9735:(Le,w,G)=>{"use strict";Object.defineProperty(w,"__esModule",{value:!0}),w.getElementsByTagType=w.getElementsByTagName=w.getElementById=w.getElements=w.testElement=void 0;var le=G(2962),de=G(7237),Y={tag_name:function(D){return"function"==typeof D?function(k){return(0,le.isTag)(k)&&D(k.name)}:"*"===D?le.isTag:function(k){return(0,le.isTag)(k)&&k.name===D}},tag_type:function(D){return"function"==typeof D?function(k){return D(k.type)}:function(k){return k.type===D}},tag_contains:function(D){return"function"==typeof D?function(k){return(0,le.isText)(k)&&D(k.data)}:function(k){return(0,le.isText)(k)&&k.data===D}}};function Q(D,k){return"function"==typeof k?function(S){return(0,le.isTag)(S)&&k(S.attribs[D])}:function(S){return(0,le.isTag)(S)&&S.attribs[D]===k}}function q(D,k){return function(S){return D(S)||k(S)}}function F(D){var k=Object.keys(D).map(function(S){var x=D[S];return Object.prototype.hasOwnProperty.call(Y,S)?Y[S](x):Q(S,x)});return 0===k.length?null:k.reduce(q)}w.testElement=function I(D,k){var S=F(D);return!S||S(k)},w.getElements=function O(D,k,S,x){void 0===x&&(x=1/0);var B=F(D);return B?(0,de.filter)(B,k,S,x):[]},w.getElementById=function T(D,k,S){return void 0===S&&(S=!0),Array.isArray(k)||(k=[k]),(0,de.findOne)(Q("id",D),k,S)},w.getElementsByTagName=function E(D,k,S,x){return void 0===S&&(S=!0),void 0===x&&(x=1/0),(0,de.filter)(Y.tag_name(D),k,S,x)},w.getElementsByTagType=function P(D,k,S,x){return void 0===S&&(S=!0),void 0===x&&(x=1/0),(0,de.filter)(Y.tag_type(D),k,S,x)}},6525:(Le,w)=>{"use strict";function G(F){if(F.prev&&(F.prev.next=F.next),F.next&&(F.next.prev=F.prev),F.parent){var I=F.parent.children;I.splice(I.lastIndexOf(F),1)}}Object.defineProperty(w,"__esModule",{value:!0}),w.prepend=w.prependChild=w.append=w.appendChild=w.replaceElement=w.removeElement=void 0,w.removeElement=G,w.replaceElement=function le(F,I){var O=I.prev=F.prev;O&&(O.next=I);var T=I.next=F.next;T&&(T.prev=I);var E=I.parent=F.parent;if(E){var P=E.children;P[P.lastIndexOf(F)]=I}},w.appendChild=function de(F,I){if(G(I),I.next=null,I.parent=F,F.children.push(I)>1){var O=F.children[F.children.length-2];O.next=I,I.prev=O}else I.prev=null},w.append=function Y(F,I){G(I);var O=F.parent,T=F.next;if(I.next=T,I.prev=F,F.next=I,I.parent=O,T){if(T.prev=I,O){var E=O.children;E.splice(E.lastIndexOf(T),0,I)}}else O&&O.children.push(I)},w.prependChild=function Q(F,I){if(G(I),I.parent=F,I.prev=null,1!==F.children.unshift(I)){var O=F.children[1];O.prev=I,I.next=O}else I.next=null},w.prepend=function q(F,I){G(I);var O=F.parent;if(O){var T=O.children;T.splice(T.indexOf(F),0,I)}F.prev&&(F.prev.next=I),I.parent=O,I.prev=F.prev,I.next=F,F.prev=I}},7237:(Le,w,G)=>{"use strict";Object.defineProperty(w,"__esModule",{value:!0}),w.findAll=w.existsOne=w.findOne=w.findOneChild=w.find=w.filter=void 0;var le=G(2962);function Y(O,T,E,P){for(var D=[],k=0,S=T;k0){var B=Y(O,x.children,E,P);if(D.push.apply(D,B),(P-=B.length)<=0)break}}return D}w.filter=function de(O,T,E,P){return void 0===E&&(E=!0),void 0===P&&(P=1/0),Array.isArray(T)||(T=[T]),Y(O,T,E,P)},w.find=Y,w.findOneChild=function Q(O,T){return T.find(O)},w.findOne=function q(O,T,E){void 0===E&&(E=!0);for(var P=null,D=0;D0&&(P=q(O,k.children)))}return P},w.existsOne=function F(O,T){return T.some(function(E){return(0,le.isTag)(E)&&(O(E)||E.children.length>0&&F(O,E.children))})},w.findAll=function I(O,T){for(var E,k,P=[],D=T.filter(le.isTag);k=D.shift();){var S=null===(E=k.children)||void 0===E?void 0:E.filter(le.isTag);S&&S.length>0&&D.unshift.apply(D,S),O(k)&&P.push(k)}return P}},4543:function(Le,w,G){"use strict";var le=this&&this.__importDefault||function(E){return E&&E.__esModule?E:{default:E}};Object.defineProperty(w,"__esModule",{value:!0}),w.innerText=w.textContent=w.getText=w.getInnerHTML=w.getOuterHTML=void 0;var de=G(2962),Y=le(G(3192)),Q=G(6316);function q(E,P){return(0,Y.default)(E,P)}w.getOuterHTML=q,w.getInnerHTML=function F(E,P){return(0,de.hasChildren)(E)?E.children.map(function(D){return q(D,P)}).join(""):""},w.getText=function I(E){return Array.isArray(E)?E.map(I).join(""):(0,de.isTag)(E)?"br"===E.name?"\n":I(E.children):(0,de.isCDATA)(E)?I(E.children):(0,de.isText)(E)?E.data:""},w.textContent=function O(E){return Array.isArray(E)?E.map(O).join(""):(0,de.hasChildren)(E)&&!(0,de.isComment)(E)?O(E.children):(0,de.isText)(E)?E.data:""},w.innerText=function T(E){return Array.isArray(E)?E.map(T).join(""):(0,de.hasChildren)(E)&&(E.type===Q.ElementType.Tag||(0,de.isCDATA)(E))?T(E.children):(0,de.isText)(E)?E.data:""}},4757:(Le,w,G)=>{"use strict";Object.defineProperty(w,"__esModule",{value:!0}),w.prevElementSibling=w.nextElementSibling=w.getName=w.hasAttrib=w.getAttributeValue=w.getSiblings=w.getParent=w.getChildren=void 0;var le=G(2962),de=[];function Y(P){var D;return null!==(D=P.children)&&void 0!==D?D:de}function Q(P){return P.parent||null}w.getChildren=Y,w.getParent=Q,w.getSiblings=function q(P){var S=Q(P);if(null!=S)return Y(S);for(var x=[P],B=P.prev,z=P.next;null!=B;)x.unshift(B),B=B.prev;for(;null!=z;)x.push(z),z=z.next;return x},w.getAttributeValue=function F(P,D){var k;return null===(k=P.attribs)||void 0===k?void 0:k[D]},w.hasAttrib=function I(P,D){return null!=P.attribs&&Object.prototype.hasOwnProperty.call(P.attribs,D)&&null!=P.attribs[D]},w.getName=function O(P){return P.name},w.nextElementSibling=function T(P){for(var k=P.next;null!==k&&!(0,le.isTag)(k);)k=k.next;return k},w.prevElementSibling=function E(P){for(var k=P.prev;null!==k&&!(0,le.isTag)(k);)k=k.prev;return k}},547:function(Le,w,G){"use strict";var le=this&&this.__importDefault||function(E){return E&&E.__esModule?E:{default:E}};Object.defineProperty(w,"__esModule",{value:!0}),w.decodeHTML=w.decodeHTMLStrict=w.decodeXML=void 0;var de=le(G(9323)),Y=le(G(9591)),Q=le(G(2586)),q=le(G(672)),F=/&(?:[a-zA-Z0-9]+|#[xX][\da-fA-F]+|#\d+);/g;function I(E){var P=T(E);return function(D){return String(D).replace(F,P)}}w.decodeXML=I(Q.default),w.decodeHTMLStrict=I(de.default);var O=function(E,P){return E65535&&(q-=65536,F+=String.fromCharCode(q>>>10&1023|55296),q=56320|1023&q),F+String.fromCharCode(q)};w.default=function Q(q){return q>=55296&&q<=57343||q>1114111?"\ufffd":(q in de.default&&(q=de.default[q]),Y(q))}},3854:function(Le,w,G){"use strict";var le=this&&this.__importDefault||function(re){return re&&re.__esModule?re:{default:re}};Object.defineProperty(w,"__esModule",{value:!0}),w.escapeUTF8=w.escape=w.encodeNonAsciiHTML=w.encodeHTML=w.encodeXML=void 0;var Y=O(le(G(2586)).default),Q=T(Y);w.encodeXML=z(Y);var F=O(le(G(9323)).default),I=T(F);function O(re){return Object.keys(re).sort().reduce(function(we,$){return we[re[$]]="&"+$+";",we},{})}function T(re){for(var we=[],$=[],ie=0,b=Object.keys(re);ie1?P(re):re.charCodeAt(0)).toString(16).toUpperCase()+";"}var S=new RegExp(Q.source+"|"+E.source,"g");function z(re){return function(we){return we.replace(S,function($){return re[$]||D($)})}}w.escape=function x(re){return re.replace(S,D)},w.escapeUTF8=function B(re){return re.replace(Q,D)}},9673:(Le,w,G)=>{"use strict";Object.defineProperty(w,"__esModule",{value:!0}),w.decodeXMLStrict=w.decodeHTML5Strict=w.decodeHTML4Strict=w.decodeHTML5=w.decodeHTML4=w.decodeHTMLStrict=w.decodeHTML=w.decodeXML=w.encodeHTML5=w.encodeHTML4=w.escapeUTF8=w.escape=w.encodeNonAsciiHTML=w.encodeHTML=w.encodeXML=w.encode=w.decodeStrict=w.decode=void 0;var le=G(547),de=G(3854);w.decode=function Y(O,T){return(!T||T<=0?le.decodeXML:le.decodeHTML)(O)},w.decodeStrict=function Q(O,T){return(!T||T<=0?le.decodeXML:le.decodeHTMLStrict)(O)},w.encode=function q(O,T){return(!T||T<=0?de.encodeXML:de.encodeHTML)(O)};var F=G(3854);Object.defineProperty(w,"encodeXML",{enumerable:!0,get:function(){return F.encodeXML}}),Object.defineProperty(w,"encodeHTML",{enumerable:!0,get:function(){return F.encodeHTML}}),Object.defineProperty(w,"encodeNonAsciiHTML",{enumerable:!0,get:function(){return F.encodeNonAsciiHTML}}),Object.defineProperty(w,"escape",{enumerable:!0,get:function(){return F.escape}}),Object.defineProperty(w,"escapeUTF8",{enumerable:!0,get:function(){return F.escapeUTF8}}),Object.defineProperty(w,"encodeHTML4",{enumerable:!0,get:function(){return F.encodeHTML}}),Object.defineProperty(w,"encodeHTML5",{enumerable:!0,get:function(){return F.encodeHTML}});var I=G(547);Object.defineProperty(w,"decodeXML",{enumerable:!0,get:function(){return I.decodeXML}}),Object.defineProperty(w,"decodeHTML",{enumerable:!0,get:function(){return I.decodeHTML}}),Object.defineProperty(w,"decodeHTMLStrict",{enumerable:!0,get:function(){return I.decodeHTMLStrict}}),Object.defineProperty(w,"decodeHTML4",{enumerable:!0,get:function(){return I.decodeHTML}}),Object.defineProperty(w,"decodeHTML5",{enumerable:!0,get:function(){return I.decodeHTML}}),Object.defineProperty(w,"decodeHTML4Strict",{enumerable:!0,get:function(){return I.decodeHTMLStrict}}),Object.defineProperty(w,"decodeHTML5Strict",{enumerable:!0,get:function(){return I.decodeHTMLStrict}}),Object.defineProperty(w,"decodeXMLStrict",{enumerable:!0,get:function(){return I.decodeXML}})},3537:function(Le,w,G){var le;Le=G.nmd(Le),function(de){"object"==typeof global&&global;var F=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,I=/[\x01-\x7F]/g,O=/[\x01-\t\x0B\f\x0E-\x1F\x7F\x81\x8D\x8F\x90\x9D\xA0-\uFFFF]/g,T=/<\u20D2|=\u20E5|>\u20D2|\u205F\u200A|\u219D\u0338|\u2202\u0338|\u2220\u20D2|\u2229\uFE00|\u222A\uFE00|\u223C\u20D2|\u223D\u0331|\u223E\u0333|\u2242\u0338|\u224B\u0338|\u224D\u20D2|\u224E\u0338|\u224F\u0338|\u2250\u0338|\u2261\u20E5|\u2264\u20D2|\u2265\u20D2|\u2266\u0338|\u2267\u0338|\u2268\uFE00|\u2269\uFE00|\u226A\u0338|\u226A\u20D2|\u226B\u0338|\u226B\u20D2|\u227F\u0338|\u2282\u20D2|\u2283\u20D2|\u228A\uFE00|\u228B\uFE00|\u228F\u0338|\u2290\u0338|\u2293\uFE00|\u2294\uFE00|\u22B4\u20D2|\u22B5\u20D2|\u22D8\u0338|\u22D9\u0338|\u22DA\uFE00|\u22DB\uFE00|\u22F5\u0338|\u22F9\u0338|\u2933\u0338|\u29CF\u0338|\u29D0\u0338|\u2A6D\u0338|\u2A70\u0338|\u2A7D\u0338|\u2A7E\u0338|\u2AA1\u0338|\u2AA2\u0338|\u2AAC\uFE00|\u2AAD\uFE00|\u2AAF\u0338|\u2AB0\u0338|\u2AC5\u0338|\u2AC6\u0338|\u2ACB\uFE00|\u2ACC\uFE00|\u2AFD\u20E5|[\xA0-\u0113\u0116-\u0122\u0124-\u012B\u012E-\u014D\u0150-\u017E\u0192\u01B5\u01F5\u0237\u02C6\u02C7\u02D8-\u02DD\u0311\u0391-\u03A1\u03A3-\u03A9\u03B1-\u03C9\u03D1\u03D2\u03D5\u03D6\u03DC\u03DD\u03F0\u03F1\u03F5\u03F6\u0401-\u040C\u040E-\u044F\u0451-\u045C\u045E\u045F\u2002-\u2005\u2007-\u2010\u2013-\u2016\u2018-\u201A\u201C-\u201E\u2020-\u2022\u2025\u2026\u2030-\u2035\u2039\u203A\u203E\u2041\u2043\u2044\u204F\u2057\u205F-\u2063\u20AC\u20DB\u20DC\u2102\u2105\u210A-\u2113\u2115-\u211E\u2122\u2124\u2127-\u2129\u212C\u212D\u212F-\u2131\u2133-\u2138\u2145-\u2148\u2153-\u215E\u2190-\u219B\u219D-\u21A7\u21A9-\u21AE\u21B0-\u21B3\u21B5-\u21B7\u21BA-\u21DB\u21DD\u21E4\u21E5\u21F5\u21FD-\u2205\u2207-\u2209\u220B\u220C\u220F-\u2214\u2216-\u2218\u221A\u221D-\u2238\u223A-\u2257\u2259\u225A\u225C\u225F-\u2262\u2264-\u228B\u228D-\u229B\u229D-\u22A5\u22A7-\u22B0\u22B2-\u22BB\u22BD-\u22DB\u22DE-\u22E3\u22E6-\u22F7\u22F9-\u22FE\u2305\u2306\u2308-\u2310\u2312\u2313\u2315\u2316\u231C-\u231F\u2322\u2323\u232D\u232E\u2336\u233D\u233F\u237C\u23B0\u23B1\u23B4-\u23B6\u23DC-\u23DF\u23E2\u23E7\u2423\u24C8\u2500\u2502\u250C\u2510\u2514\u2518\u251C\u2524\u252C\u2534\u253C\u2550-\u256C\u2580\u2584\u2588\u2591-\u2593\u25A1\u25AA\u25AB\u25AD\u25AE\u25B1\u25B3-\u25B5\u25B8\u25B9\u25BD-\u25BF\u25C2\u25C3\u25CA\u25CB\u25EC\u25EF\u25F8-\u25FC\u2605\u2606\u260E\u2640\u2642\u2660\u2663\u2665\u2666\u266A\u266D-\u266F\u2713\u2717\u2720\u2736\u2758\u2772\u2773\u27C8\u27C9\u27E6-\u27ED\u27F5-\u27FA\u27FC\u27FF\u2902-\u2905\u290C-\u2913\u2916\u2919-\u2920\u2923-\u292A\u2933\u2935-\u2939\u293C\u293D\u2945\u2948-\u294B\u294E-\u2976\u2978\u2979\u297B-\u297F\u2985\u2986\u298B-\u2996\u299A\u299C\u299D\u29A4-\u29B7\u29B9\u29BB\u29BC\u29BE-\u29C5\u29C9\u29CD-\u29D0\u29DC-\u29DE\u29E3-\u29E5\u29EB\u29F4\u29F6\u2A00-\u2A02\u2A04\u2A06\u2A0C\u2A0D\u2A10-\u2A17\u2A22-\u2A27\u2A29\u2A2A\u2A2D-\u2A31\u2A33-\u2A3C\u2A3F\u2A40\u2A42-\u2A4D\u2A50\u2A53-\u2A58\u2A5A-\u2A5D\u2A5F\u2A66\u2A6A\u2A6D-\u2A75\u2A77-\u2A9A\u2A9D-\u2AA2\u2AA4-\u2AB0\u2AB3-\u2AC8\u2ACB\u2ACC\u2ACF-\u2ADB\u2AE4\u2AE6-\u2AE9\u2AEB-\u2AF3\u2AFD\uFB00-\uFB04]|\uD835[\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDCCF\uDD04\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDD6B]/g,E={"\xad":"shy","\u200c":"zwnj","\u200d":"zwj","\u200e":"lrm","\u2063":"ic","\u2062":"it","\u2061":"af","\u200f":"rlm","\u200b":"ZeroWidthSpace","\u2060":"NoBreak","\u0311":"DownBreve","\u20db":"tdot","\u20dc":"DotDot","\t":"Tab","\n":"NewLine","\u2008":"puncsp","\u205f":"MediumSpace","\u2009":"thinsp","\u200a":"hairsp","\u2004":"emsp13","\u2002":"ensp","\u2005":"emsp14","\u2003":"emsp","\u2007":"numsp","\xa0":"nbsp","\u205f\u200a":"ThickSpace","\u203e":"oline",_:"lowbar","\u2010":"dash","\u2013":"ndash","\u2014":"mdash","\u2015":"horbar",",":"comma",";":"semi","\u204f":"bsemi",":":"colon","\u2a74":"Colone","!":"excl","\xa1":"iexcl","?":"quest","\xbf":"iquest",".":"period","\u2025":"nldr","\u2026":"mldr","\xb7":"middot","'":"apos","\u2018":"lsquo","\u2019":"rsquo","\u201a":"sbquo","\u2039":"lsaquo","\u203a":"rsaquo",'"':"quot","\u201c":"ldquo","\u201d":"rdquo","\u201e":"bdquo","\xab":"laquo","\xbb":"raquo","(":"lpar",")":"rpar","[":"lsqb","]":"rsqb","{":"lcub","}":"rcub","\u2308":"lceil","\u2309":"rceil","\u230a":"lfloor","\u230b":"rfloor","\u2985":"lopar","\u2986":"ropar","\u298b":"lbrke","\u298c":"rbrke","\u298d":"lbrkslu","\u298e":"rbrksld","\u298f":"lbrksld","\u2990":"rbrkslu","\u2991":"langd","\u2992":"rangd","\u2993":"lparlt","\u2994":"rpargt","\u2995":"gtlPar","\u2996":"ltrPar","\u27e6":"lobrk","\u27e7":"robrk","\u27e8":"lang","\u27e9":"rang","\u27ea":"Lang","\u27eb":"Rang","\u27ec":"loang","\u27ed":"roang","\u2772":"lbbrk","\u2773":"rbbrk","\u2016":"Vert","\xa7":"sect","\xb6":"para","@":"commat","*":"ast","/":"sol",undefined:null,"&":"amp","#":"num","%":"percnt","\u2030":"permil","\u2031":"pertenk","\u2020":"dagger","\u2021":"Dagger","\u2022":"bull","\u2043":"hybull","\u2032":"prime","\u2033":"Prime","\u2034":"tprime","\u2057":"qprime","\u2035":"bprime","\u2041":"caret","`":"grave","\xb4":"acute","\u02dc":"tilde","^":"Hat","\xaf":"macr","\u02d8":"breve","\u02d9":"dot","\xa8":"die","\u02da":"ring","\u02dd":"dblac","\xb8":"cedil","\u02db":"ogon",\u02c6:"circ",\u02c7:"caron","\xb0":"deg","\xa9":"copy","\xae":"reg","\u2117":"copysr",\u2118:"wp","\u211e":"rx","\u2127":"mho","\u2129":"iiota","\u2190":"larr","\u219a":"nlarr","\u2192":"rarr","\u219b":"nrarr","\u2191":"uarr","\u2193":"darr","\u2194":"harr","\u21ae":"nharr","\u2195":"varr","\u2196":"nwarr","\u2197":"nearr","\u2198":"searr","\u2199":"swarr","\u219d":"rarrw","\u219d\u0338":"nrarrw","\u219e":"Larr","\u219f":"Uarr","\u21a0":"Rarr","\u21a1":"Darr","\u21a2":"larrtl","\u21a3":"rarrtl","\u21a4":"mapstoleft","\u21a5":"mapstoup","\u21a6":"map","\u21a7":"mapstodown","\u21a9":"larrhk","\u21aa":"rarrhk","\u21ab":"larrlp","\u21ac":"rarrlp","\u21ad":"harrw","\u21b0":"lsh","\u21b1":"rsh","\u21b2":"ldsh","\u21b3":"rdsh","\u21b5":"crarr","\u21b6":"cularr","\u21b7":"curarr","\u21ba":"olarr","\u21bb":"orarr","\u21bc":"lharu","\u21bd":"lhard","\u21be":"uharr","\u21bf":"uharl","\u21c0":"rharu","\u21c1":"rhard","\u21c2":"dharr","\u21c3":"dharl","\u21c4":"rlarr","\u21c5":"udarr","\u21c6":"lrarr","\u21c7":"llarr","\u21c8":"uuarr","\u21c9":"rrarr","\u21ca":"ddarr","\u21cb":"lrhar","\u21cc":"rlhar","\u21d0":"lArr","\u21cd":"nlArr","\u21d1":"uArr","\u21d2":"rArr","\u21cf":"nrArr","\u21d3":"dArr","\u21d4":"iff","\u21ce":"nhArr","\u21d5":"vArr","\u21d6":"nwArr","\u21d7":"neArr","\u21d8":"seArr","\u21d9":"swArr","\u21da":"lAarr","\u21db":"rAarr","\u21dd":"zigrarr","\u21e4":"larrb","\u21e5":"rarrb","\u21f5":"duarr","\u21fd":"loarr","\u21fe":"roarr","\u21ff":"hoarr","\u2200":"forall","\u2201":"comp","\u2202":"part","\u2202\u0338":"npart","\u2203":"exist","\u2204":"nexist","\u2205":"empty","\u2207":"Del","\u2208":"in","\u2209":"notin","\u220b":"ni","\u220c":"notni","\u03f6":"bepsi","\u220f":"prod","\u2210":"coprod","\u2211":"sum","+":"plus","\xb1":"pm","\xf7":"div","\xd7":"times","<":"lt","\u226e":"nlt","<\u20d2":"nvlt","=":"equals","\u2260":"ne","=\u20e5":"bne","\u2a75":"Equal",">":"gt","\u226f":"ngt",">\u20d2":"nvgt","\xac":"not","|":"vert","\xa6":"brvbar","\u2212":"minus","\u2213":"mp","\u2214":"plusdo","\u2044":"frasl","\u2216":"setmn","\u2217":"lowast","\u2218":"compfn","\u221a":"Sqrt","\u221d":"prop","\u221e":"infin","\u221f":"angrt","\u2220":"ang","\u2220\u20d2":"nang","\u2221":"angmsd","\u2222":"angsph","\u2223":"mid","\u2224":"nmid","\u2225":"par","\u2226":"npar","\u2227":"and","\u2228":"or","\u2229":"cap","\u2229\ufe00":"caps","\u222a":"cup","\u222a\ufe00":"cups","\u222b":"int","\u222c":"Int","\u222d":"tint","\u2a0c":"qint","\u222e":"oint","\u222f":"Conint","\u2230":"Cconint","\u2231":"cwint","\u2232":"cwconint","\u2233":"awconint","\u2234":"there4","\u2235":"becaus","\u2236":"ratio","\u2237":"Colon","\u2238":"minusd","\u223a":"mDDot","\u223b":"homtht","\u223c":"sim","\u2241":"nsim","\u223c\u20d2":"nvsim","\u223d":"bsim","\u223d\u0331":"race","\u223e":"ac","\u223e\u0333":"acE","\u223f":"acd","\u2240":"wr","\u2242":"esim","\u2242\u0338":"nesim","\u2243":"sime","\u2244":"nsime","\u2245":"cong","\u2247":"ncong","\u2246":"simne","\u2248":"ap","\u2249":"nap","\u224a":"ape","\u224b":"apid","\u224b\u0338":"napid","\u224c":"bcong","\u224d":"CupCap","\u226d":"NotCupCap","\u224d\u20d2":"nvap","\u224e":"bump","\u224e\u0338":"nbump","\u224f":"bumpe","\u224f\u0338":"nbumpe","\u2250":"doteq","\u2250\u0338":"nedot","\u2251":"eDot","\u2252":"efDot","\u2253":"erDot","\u2254":"colone","\u2255":"ecolon","\u2256":"ecir","\u2257":"cire","\u2259":"wedgeq","\u225a":"veeeq","\u225c":"trie","\u225f":"equest","\u2261":"equiv","\u2262":"nequiv","\u2261\u20e5":"bnequiv","\u2264":"le","\u2270":"nle","\u2264\u20d2":"nvle","\u2265":"ge","\u2271":"nge","\u2265\u20d2":"nvge","\u2266":"lE","\u2266\u0338":"nlE","\u2267":"gE","\u2267\u0338":"ngE","\u2268\ufe00":"lvnE","\u2268":"lnE","\u2269":"gnE","\u2269\ufe00":"gvnE","\u226a":"ll","\u226a\u0338":"nLtv","\u226a\u20d2":"nLt","\u226b":"gg","\u226b\u0338":"nGtv","\u226b\u20d2":"nGt","\u226c":"twixt","\u2272":"lsim","\u2274":"nlsim","\u2273":"gsim","\u2275":"ngsim","\u2276":"lg","\u2278":"ntlg","\u2277":"gl","\u2279":"ntgl","\u227a":"pr","\u2280":"npr","\u227b":"sc","\u2281":"nsc","\u227c":"prcue","\u22e0":"nprcue","\u227d":"sccue","\u22e1":"nsccue","\u227e":"prsim","\u227f":"scsim","\u227f\u0338":"NotSucceedsTilde","\u2282":"sub","\u2284":"nsub","\u2282\u20d2":"vnsub","\u2283":"sup","\u2285":"nsup","\u2283\u20d2":"vnsup","\u2286":"sube","\u2288":"nsube","\u2287":"supe","\u2289":"nsupe","\u228a\ufe00":"vsubne","\u228a":"subne","\u228b\ufe00":"vsupne","\u228b":"supne","\u228d":"cupdot","\u228e":"uplus","\u228f":"sqsub","\u228f\u0338":"NotSquareSubset","\u2290":"sqsup","\u2290\u0338":"NotSquareSuperset","\u2291":"sqsube","\u22e2":"nsqsube","\u2292":"sqsupe","\u22e3":"nsqsupe","\u2293":"sqcap","\u2293\ufe00":"sqcaps","\u2294":"sqcup","\u2294\ufe00":"sqcups","\u2295":"oplus","\u2296":"ominus","\u2297":"otimes","\u2298":"osol","\u2299":"odot","\u229a":"ocir","\u229b":"oast","\u229d":"odash","\u229e":"plusb","\u229f":"minusb","\u22a0":"timesb","\u22a1":"sdotb","\u22a2":"vdash","\u22ac":"nvdash","\u22a3":"dashv","\u22a4":"top","\u22a5":"bot","\u22a7":"models","\u22a8":"vDash","\u22ad":"nvDash","\u22a9":"Vdash","\u22ae":"nVdash","\u22aa":"Vvdash","\u22ab":"VDash","\u22af":"nVDash","\u22b0":"prurel","\u22b2":"vltri","\u22ea":"nltri","\u22b3":"vrtri","\u22eb":"nrtri","\u22b4":"ltrie","\u22ec":"nltrie","\u22b4\u20d2":"nvltrie","\u22b5":"rtrie","\u22ed":"nrtrie","\u22b5\u20d2":"nvrtrie","\u22b6":"origof","\u22b7":"imof","\u22b8":"mumap","\u22b9":"hercon","\u22ba":"intcal","\u22bb":"veebar","\u22bd":"barvee","\u22be":"angrtvb","\u22bf":"lrtri","\u22c0":"Wedge","\u22c1":"Vee","\u22c2":"xcap","\u22c3":"xcup","\u22c4":"diam","\u22c5":"sdot","\u22c6":"Star","\u22c7":"divonx","\u22c8":"bowtie","\u22c9":"ltimes","\u22ca":"rtimes","\u22cb":"lthree","\u22cc":"rthree","\u22cd":"bsime","\u22ce":"cuvee","\u22cf":"cuwed","\u22d0":"Sub","\u22d1":"Sup","\u22d2":"Cap","\u22d3":"Cup","\u22d4":"fork","\u22d5":"epar","\u22d6":"ltdot","\u22d7":"gtdot","\u22d8":"Ll","\u22d8\u0338":"nLl","\u22d9":"Gg","\u22d9\u0338":"nGg","\u22da\ufe00":"lesg","\u22da":"leg","\u22db":"gel","\u22db\ufe00":"gesl","\u22de":"cuepr","\u22df":"cuesc","\u22e6":"lnsim","\u22e7":"gnsim","\u22e8":"prnsim","\u22e9":"scnsim","\u22ee":"vellip","\u22ef":"ctdot","\u22f0":"utdot","\u22f1":"dtdot","\u22f2":"disin","\u22f3":"isinsv","\u22f4":"isins","\u22f5":"isindot","\u22f5\u0338":"notindot","\u22f6":"notinvc","\u22f7":"notinvb","\u22f9":"isinE","\u22f9\u0338":"notinE","\u22fa":"nisd","\u22fb":"xnis","\u22fc":"nis","\u22fd":"notnivc","\u22fe":"notnivb","\u2305":"barwed","\u2306":"Barwed","\u230c":"drcrop","\u230d":"dlcrop","\u230e":"urcrop","\u230f":"ulcrop","\u2310":"bnot","\u2312":"profline","\u2313":"profsurf","\u2315":"telrec","\u2316":"target","\u231c":"ulcorn","\u231d":"urcorn","\u231e":"dlcorn","\u231f":"drcorn","\u2322":"frown","\u2323":"smile","\u232d":"cylcty","\u232e":"profalar","\u2336":"topbot","\u233d":"ovbar","\u233f":"solbar","\u237c":"angzarr","\u23b0":"lmoust","\u23b1":"rmoust","\u23b4":"tbrk","\u23b5":"bbrk","\u23b6":"bbrktbrk","\u23dc":"OverParenthesis","\u23dd":"UnderParenthesis","\u23de":"OverBrace","\u23df":"UnderBrace","\u23e2":"trpezium","\u23e7":"elinters","\u2423":"blank","\u2500":"boxh","\u2502":"boxv","\u250c":"boxdr","\u2510":"boxdl","\u2514":"boxur","\u2518":"boxul","\u251c":"boxvr","\u2524":"boxvl","\u252c":"boxhd","\u2534":"boxhu","\u253c":"boxvh","\u2550":"boxH","\u2551":"boxV","\u2552":"boxdR","\u2553":"boxDr","\u2554":"boxDR","\u2555":"boxdL","\u2556":"boxDl","\u2557":"boxDL","\u2558":"boxuR","\u2559":"boxUr","\u255a":"boxUR","\u255b":"boxuL","\u255c":"boxUl","\u255d":"boxUL","\u255e":"boxvR","\u255f":"boxVr","\u2560":"boxVR","\u2561":"boxvL","\u2562":"boxVl","\u2563":"boxVL","\u2564":"boxHd","\u2565":"boxhD","\u2566":"boxHD","\u2567":"boxHu","\u2568":"boxhU","\u2569":"boxHU","\u256a":"boxvH","\u256b":"boxVh","\u256c":"boxVH","\u2580":"uhblk","\u2584":"lhblk","\u2588":"block","\u2591":"blk14","\u2592":"blk12","\u2593":"blk34","\u25a1":"squ","\u25aa":"squf","\u25ab":"EmptyVerySmallSquare","\u25ad":"rect","\u25ae":"marker","\u25b1":"fltns","\u25b3":"xutri","\u25b4":"utrif","\u25b5":"utri","\u25b8":"rtrif","\u25b9":"rtri","\u25bd":"xdtri","\u25be":"dtrif","\u25bf":"dtri","\u25c2":"ltrif","\u25c3":"ltri","\u25ca":"loz","\u25cb":"cir","\u25ec":"tridot","\u25ef":"xcirc","\u25f8":"ultri","\u25f9":"urtri","\u25fa":"lltri","\u25fb":"EmptySmallSquare","\u25fc":"FilledSmallSquare","\u2605":"starf","\u2606":"star","\u260e":"phone","\u2640":"female","\u2642":"male","\u2660":"spades","\u2663":"clubs","\u2665":"hearts","\u2666":"diams","\u266a":"sung","\u2713":"check","\u2717":"cross","\u2720":"malt","\u2736":"sext","\u2758":"VerticalSeparator","\u27c8":"bsolhsub","\u27c9":"suphsol","\u27f5":"xlarr","\u27f6":"xrarr","\u27f7":"xharr","\u27f8":"xlArr","\u27f9":"xrArr","\u27fa":"xhArr","\u27fc":"xmap","\u27ff":"dzigrarr","\u2902":"nvlArr","\u2903":"nvrArr","\u2904":"nvHarr","\u2905":"Map","\u290c":"lbarr","\u290d":"rbarr","\u290e":"lBarr","\u290f":"rBarr","\u2910":"RBarr","\u2911":"DDotrahd","\u2912":"UpArrowBar","\u2913":"DownArrowBar","\u2916":"Rarrtl","\u2919":"latail","\u291a":"ratail","\u291b":"lAtail","\u291c":"rAtail","\u291d":"larrfs","\u291e":"rarrfs","\u291f":"larrbfs","\u2920":"rarrbfs","\u2923":"nwarhk","\u2924":"nearhk","\u2925":"searhk","\u2926":"swarhk","\u2927":"nwnear","\u2928":"toea","\u2929":"tosa","\u292a":"swnwar","\u2933":"rarrc","\u2933\u0338":"nrarrc","\u2935":"cudarrr","\u2936":"ldca","\u2937":"rdca","\u2938":"cudarrl","\u2939":"larrpl","\u293c":"curarrm","\u293d":"cularrp","\u2945":"rarrpl","\u2948":"harrcir","\u2949":"Uarrocir","\u294a":"lurdshar","\u294b":"ldrushar","\u294e":"LeftRightVector","\u294f":"RightUpDownVector","\u2950":"DownLeftRightVector","\u2951":"LeftUpDownVector","\u2952":"LeftVectorBar","\u2953":"RightVectorBar","\u2954":"RightUpVectorBar","\u2955":"RightDownVectorBar","\u2956":"DownLeftVectorBar","\u2957":"DownRightVectorBar","\u2958":"LeftUpVectorBar","\u2959":"LeftDownVectorBar","\u295a":"LeftTeeVector","\u295b":"RightTeeVector","\u295c":"RightUpTeeVector","\u295d":"RightDownTeeVector","\u295e":"DownLeftTeeVector","\u295f":"DownRightTeeVector","\u2960":"LeftUpTeeVector","\u2961":"LeftDownTeeVector","\u2962":"lHar","\u2963":"uHar","\u2964":"rHar","\u2965":"dHar","\u2966":"luruhar","\u2967":"ldrdhar","\u2968":"ruluhar","\u2969":"rdldhar","\u296a":"lharul","\u296b":"llhard","\u296c":"rharul","\u296d":"lrhard","\u296e":"udhar","\u296f":"duhar","\u2970":"RoundImplies","\u2971":"erarr","\u2972":"simrarr","\u2973":"larrsim","\u2974":"rarrsim","\u2975":"rarrap","\u2976":"ltlarr","\u2978":"gtrarr","\u2979":"subrarr","\u297b":"suplarr","\u297c":"lfisht","\u297d":"rfisht","\u297e":"ufisht","\u297f":"dfisht","\u299a":"vzigzag","\u299c":"vangrt","\u299d":"angrtvbd","\u29a4":"ange","\u29a5":"range","\u29a6":"dwangle","\u29a7":"uwangle","\u29a8":"angmsdaa","\u29a9":"angmsdab","\u29aa":"angmsdac","\u29ab":"angmsdad","\u29ac":"angmsdae","\u29ad":"angmsdaf","\u29ae":"angmsdag","\u29af":"angmsdah","\u29b0":"bemptyv","\u29b1":"demptyv","\u29b2":"cemptyv","\u29b3":"raemptyv","\u29b4":"laemptyv","\u29b5":"ohbar","\u29b6":"omid","\u29b7":"opar","\u29b9":"operp","\u29bb":"olcross","\u29bc":"odsold","\u29be":"olcir","\u29bf":"ofcir","\u29c0":"olt","\u29c1":"ogt","\u29c2":"cirscir","\u29c3":"cirE","\u29c4":"solb","\u29c5":"bsolb","\u29c9":"boxbox","\u29cd":"trisb","\u29ce":"rtriltri","\u29cf":"LeftTriangleBar","\u29cf\u0338":"NotLeftTriangleBar","\u29d0":"RightTriangleBar","\u29d0\u0338":"NotRightTriangleBar","\u29dc":"iinfin","\u29dd":"infintie","\u29de":"nvinfin","\u29e3":"eparsl","\u29e4":"smeparsl","\u29e5":"eqvparsl","\u29eb":"lozf","\u29f4":"RuleDelayed","\u29f6":"dsol","\u2a00":"xodot","\u2a01":"xoplus","\u2a02":"xotime","\u2a04":"xuplus","\u2a06":"xsqcup","\u2a0d":"fpartint","\u2a10":"cirfnint","\u2a11":"awint","\u2a12":"rppolint","\u2a13":"scpolint","\u2a14":"npolint","\u2a15":"pointint","\u2a16":"quatint","\u2a17":"intlarhk","\u2a22":"pluscir","\u2a23":"plusacir","\u2a24":"simplus","\u2a25":"plusdu","\u2a26":"plussim","\u2a27":"plustwo","\u2a29":"mcomma","\u2a2a":"minusdu","\u2a2d":"loplus","\u2a2e":"roplus","\u2a2f":"Cross","\u2a30":"timesd","\u2a31":"timesbar","\u2a33":"smashp","\u2a34":"lotimes","\u2a35":"rotimes","\u2a36":"otimesas","\u2a37":"Otimes","\u2a38":"odiv","\u2a39":"triplus","\u2a3a":"triminus","\u2a3b":"tritime","\u2a3c":"iprod","\u2a3f":"amalg","\u2a40":"capdot","\u2a42":"ncup","\u2a43":"ncap","\u2a44":"capand","\u2a45":"cupor","\u2a46":"cupcap","\u2a47":"capcup","\u2a48":"cupbrcap","\u2a49":"capbrcup","\u2a4a":"cupcup","\u2a4b":"capcap","\u2a4c":"ccups","\u2a4d":"ccaps","\u2a50":"ccupssm","\u2a53":"And","\u2a54":"Or","\u2a55":"andand","\u2a56":"oror","\u2a57":"orslope","\u2a58":"andslope","\u2a5a":"andv","\u2a5b":"orv","\u2a5c":"andd","\u2a5d":"ord","\u2a5f":"wedbar","\u2a66":"sdote","\u2a6a":"simdot","\u2a6d":"congdot","\u2a6d\u0338":"ncongdot","\u2a6e":"easter","\u2a6f":"apacir","\u2a70":"apE","\u2a70\u0338":"napE","\u2a71":"eplus","\u2a72":"pluse","\u2a73":"Esim","\u2a77":"eDDot","\u2a78":"equivDD","\u2a79":"ltcir","\u2a7a":"gtcir","\u2a7b":"ltquest","\u2a7c":"gtquest","\u2a7d":"les","\u2a7d\u0338":"nles","\u2a7e":"ges","\u2a7e\u0338":"nges","\u2a7f":"lesdot","\u2a80":"gesdot","\u2a81":"lesdoto","\u2a82":"gesdoto","\u2a83":"lesdotor","\u2a84":"gesdotol","\u2a85":"lap","\u2a86":"gap","\u2a87":"lne","\u2a88":"gne","\u2a89":"lnap","\u2a8a":"gnap","\u2a8b":"lEg","\u2a8c":"gEl","\u2a8d":"lsime","\u2a8e":"gsime","\u2a8f":"lsimg","\u2a90":"gsiml","\u2a91":"lgE","\u2a92":"glE","\u2a93":"lesges","\u2a94":"gesles","\u2a95":"els","\u2a96":"egs","\u2a97":"elsdot","\u2a98":"egsdot","\u2a99":"el","\u2a9a":"eg","\u2a9d":"siml","\u2a9e":"simg","\u2a9f":"simlE","\u2aa0":"simgE","\u2aa1":"LessLess","\u2aa1\u0338":"NotNestedLessLess","\u2aa2":"GreaterGreater","\u2aa2\u0338":"NotNestedGreaterGreater","\u2aa4":"glj","\u2aa5":"gla","\u2aa6":"ltcc","\u2aa7":"gtcc","\u2aa8":"lescc","\u2aa9":"gescc","\u2aaa":"smt","\u2aab":"lat","\u2aac":"smte","\u2aac\ufe00":"smtes","\u2aad":"late","\u2aad\ufe00":"lates","\u2aae":"bumpE","\u2aaf":"pre","\u2aaf\u0338":"npre","\u2ab0":"sce","\u2ab0\u0338":"nsce","\u2ab3":"prE","\u2ab4":"scE","\u2ab5":"prnE","\u2ab6":"scnE","\u2ab7":"prap","\u2ab8":"scap","\u2ab9":"prnap","\u2aba":"scnap","\u2abb":"Pr","\u2abc":"Sc","\u2abd":"subdot","\u2abe":"supdot","\u2abf":"subplus","\u2ac0":"supplus","\u2ac1":"submult","\u2ac2":"supmult","\u2ac3":"subedot","\u2ac4":"supedot","\u2ac5":"subE","\u2ac5\u0338":"nsubE","\u2ac6":"supE","\u2ac6\u0338":"nsupE","\u2ac7":"subsim","\u2ac8":"supsim","\u2acb\ufe00":"vsubnE","\u2acb":"subnE","\u2acc\ufe00":"vsupnE","\u2acc":"supnE","\u2acf":"csub","\u2ad0":"csup","\u2ad1":"csube","\u2ad2":"csupe","\u2ad3":"subsup","\u2ad4":"supsub","\u2ad5":"subsub","\u2ad6":"supsup","\u2ad7":"suphsub","\u2ad8":"supdsub","\u2ad9":"forkv","\u2ada":"topfork","\u2adb":"mlcp","\u2ae4":"Dashv","\u2ae6":"Vdashl","\u2ae7":"Barv","\u2ae8":"vBar","\u2ae9":"vBarv","\u2aeb":"Vbar","\u2aec":"Not","\u2aed":"bNot","\u2aee":"rnmid","\u2aef":"cirmid","\u2af0":"midcir","\u2af1":"topcir","\u2af2":"nhpar","\u2af3":"parsim","\u2afd":"parsl","\u2afd\u20e5":"nparsl","\u266d":"flat","\u266e":"natur","\u266f":"sharp","\xa4":"curren","\xa2":"cent",$:"dollar","\xa3":"pound","\xa5":"yen","\u20ac":"euro","\xb9":"sup1","\xbd":"half","\u2153":"frac13","\xbc":"frac14","\u2155":"frac15","\u2159":"frac16","\u215b":"frac18","\xb2":"sup2","\u2154":"frac23","\u2156":"frac25","\xb3":"sup3","\xbe":"frac34","\u2157":"frac35","\u215c":"frac38","\u2158":"frac45","\u215a":"frac56","\u215d":"frac58","\u215e":"frac78",\u{1d4b6}:"ascr",\u{1d552}:"aopf",\u{1d51e}:"afr",\u{1d538}:"Aopf",\u{1d504}:"Afr",\u{1d49c}:"Ascr",\u00aa:"ordf",\u00e1:"aacute",\u00c1:"Aacute",\u00e0:"agrave",\u00c0:"Agrave",\u0103:"abreve",\u0102:"Abreve",\u00e2:"acirc",\u00c2:"Acirc",\u00e5:"aring",\u00c5:"angst",\u00e4:"auml",\u00c4:"Auml",\u00e3:"atilde",\u00c3:"Atilde",\u0105:"aogon",\u0104:"Aogon",\u0101:"amacr",\u0100:"Amacr",\u00e6:"aelig",\u00c6:"AElig",\u{1d4b7}:"bscr",\u{1d553}:"bopf",\u{1d51f}:"bfr",\u{1d539}:"Bopf",\u212c:"Bscr",\u{1d505}:"Bfr",\u{1d520}:"cfr",\u{1d4b8}:"cscr",\u{1d554}:"copf",\u212d:"Cfr",\u{1d49e}:"Cscr",\u2102:"Copf",\u0107:"cacute",\u0106:"Cacute",\u0109:"ccirc",\u0108:"Ccirc",\u010d:"ccaron",\u010c:"Ccaron",\u010b:"cdot",\u010a:"Cdot",\u00e7:"ccedil",\u00c7:"Ccedil","\u2105":"incare",\u{1d521}:"dfr",\u2146:"dd",\u{1d555}:"dopf",\u{1d4b9}:"dscr",\u{1d49f}:"Dscr",\u{1d507}:"Dfr",\u2145:"DD",\u{1d53b}:"Dopf",\u010f:"dcaron",\u010e:"Dcaron",\u0111:"dstrok",\u0110:"Dstrok",\u00f0:"eth",\u00d0:"ETH",\u2147:"ee",\u212f:"escr",\u{1d522}:"efr",\u{1d556}:"eopf",\u2130:"Escr",\u{1d508}:"Efr",\u{1d53c}:"Eopf",\u00e9:"eacute",\u00c9:"Eacute",\u00e8:"egrave",\u00c8:"Egrave",\u00ea:"ecirc",\u00ca:"Ecirc",\u011b:"ecaron",\u011a:"Ecaron",\u00eb:"euml",\u00cb:"Euml",\u0117:"edot",\u0116:"Edot",\u0119:"eogon",\u0118:"Eogon",\u0113:"emacr",\u0112:"Emacr",\u{1d523}:"ffr",\u{1d557}:"fopf",\u{1d4bb}:"fscr",\u{1d509}:"Ffr",\u{1d53d}:"Fopf",\u2131:"Fscr",\ufb00:"fflig",\ufb03:"ffilig",\ufb04:"ffllig",\ufb01:"filig",fj:"fjlig",\ufb02:"fllig",\u0192:"fnof",\u210a:"gscr",\u{1d558}:"gopf",\u{1d524}:"gfr",\u{1d4a2}:"Gscr",\u{1d53e}:"Gopf",\u{1d50a}:"Gfr",\u01f5:"gacute",\u011f:"gbreve",\u011e:"Gbreve",\u011d:"gcirc",\u011c:"Gcirc",\u0121:"gdot",\u0120:"Gdot",\u0122:"Gcedil",\u{1d525}:"hfr",\u210e:"planckh",\u{1d4bd}:"hscr",\u{1d559}:"hopf",\u210b:"Hscr",\u210c:"Hfr",\u210d:"Hopf",\u0125:"hcirc",\u0124:"Hcirc",\u210f:"hbar",\u0127:"hstrok",\u0126:"Hstrok",\u{1d55a}:"iopf",\u{1d526}:"ifr",\u{1d4be}:"iscr",\u2148:"ii",\u{1d540}:"Iopf",\u2110:"Iscr",\u2111:"Im",\u00ed:"iacute",\u00cd:"Iacute",\u00ec:"igrave",\u00cc:"Igrave",\u00ee:"icirc",\u00ce:"Icirc",\u00ef:"iuml",\u00cf:"Iuml",\u0129:"itilde",\u0128:"Itilde",\u0130:"Idot",\u012f:"iogon",\u012e:"Iogon",\u012b:"imacr",\u012a:"Imacr",\u0133:"ijlig",\u0132:"IJlig",\u0131:"imath",\u{1d4bf}:"jscr",\u{1d55b}:"jopf",\u{1d527}:"jfr",\u{1d4a5}:"Jscr",\u{1d50d}:"Jfr",\u{1d541}:"Jopf",\u0135:"jcirc",\u0134:"Jcirc",\u0237:"jmath",\u{1d55c}:"kopf",\u{1d4c0}:"kscr",\u{1d528}:"kfr",\u{1d4a6}:"Kscr",\u{1d542}:"Kopf",\u{1d50e}:"Kfr",\u0137:"kcedil",\u0136:"Kcedil",\u{1d529}:"lfr",\u{1d4c1}:"lscr",\u2113:"ell",\u{1d55d}:"lopf",\u2112:"Lscr",\u{1d50f}:"Lfr",\u{1d543}:"Lopf",\u013a:"lacute",\u0139:"Lacute",\u013e:"lcaron",\u013d:"Lcaron",\u013c:"lcedil",\u013b:"Lcedil",\u0142:"lstrok",\u0141:"Lstrok",\u0140:"lmidot",\u013f:"Lmidot",\u{1d52a}:"mfr",\u{1d55e}:"mopf",\u{1d4c2}:"mscr",\u{1d510}:"Mfr",\u{1d544}:"Mopf",\u2133:"Mscr",\u{1d52b}:"nfr",\u{1d55f}:"nopf",\u{1d4c3}:"nscr",\u2115:"Nopf",\u{1d4a9}:"Nscr",\u{1d511}:"Nfr",\u0144:"nacute",\u0143:"Nacute",\u0148:"ncaron",\u0147:"Ncaron",\u00f1:"ntilde",\u00d1:"Ntilde",\u0146:"ncedil",\u0145:"Ncedil","\u2116":"numero",\u014b:"eng",\u014a:"ENG",\u{1d560}:"oopf",\u{1d52c}:"ofr",\u2134:"oscr",\u{1d4aa}:"Oscr",\u{1d512}:"Ofr",\u{1d546}:"Oopf",\u00ba:"ordm",\u00f3:"oacute",\u00d3:"Oacute",\u00f2:"ograve",\u00d2:"Ograve",\u00f4:"ocirc",\u00d4:"Ocirc",\u00f6:"ouml",\u00d6:"Ouml",\u0151:"odblac",\u0150:"Odblac",\u00f5:"otilde",\u00d5:"Otilde",\u00f8:"oslash",\u00d8:"Oslash",\u014d:"omacr",\u014c:"Omacr",\u0153:"oelig",\u0152:"OElig",\u{1d52d}:"pfr",\u{1d4c5}:"pscr",\u{1d561}:"popf",\u2119:"Popf",\u{1d513}:"Pfr",\u{1d4ab}:"Pscr",\u{1d562}:"qopf",\u{1d52e}:"qfr",\u{1d4c6}:"qscr",\u{1d4ac}:"Qscr",\u{1d514}:"Qfr",\u211a:"Qopf",\u0138:"kgreen",\u{1d52f}:"rfr",\u{1d563}:"ropf",\u{1d4c7}:"rscr",\u211b:"Rscr",\u211c:"Re",\u211d:"Ropf",\u0155:"racute",\u0154:"Racute",\u0159:"rcaron",\u0158:"Rcaron",\u0157:"rcedil",\u0156:"Rcedil",\u{1d564}:"sopf",\u{1d4c8}:"sscr",\u{1d530}:"sfr",\u{1d54a}:"Sopf",\u{1d516}:"Sfr",\u{1d4ae}:"Sscr","\u24c8":"oS",\u015b:"sacute",\u015a:"Sacute",\u015d:"scirc",\u015c:"Scirc",\u0161:"scaron",\u0160:"Scaron",\u015f:"scedil",\u015e:"Scedil",\u00df:"szlig",\u{1d531}:"tfr",\u{1d4c9}:"tscr",\u{1d565}:"topf",\u{1d4af}:"Tscr",\u{1d517}:"Tfr",\u{1d54b}:"Topf",\u0165:"tcaron",\u0164:"Tcaron",\u0163:"tcedil",\u0162:"Tcedil","\u2122":"trade",\u0167:"tstrok",\u0166:"Tstrok",\u{1d4ca}:"uscr",\u{1d566}:"uopf",\u{1d532}:"ufr",\u{1d54c}:"Uopf",\u{1d518}:"Ufr",\u{1d4b0}:"Uscr",\u00fa:"uacute",\u00da:"Uacute",\u00f9:"ugrave",\u00d9:"Ugrave",\u016d:"ubreve",\u016c:"Ubreve",\u00fb:"ucirc",\u00db:"Ucirc",\u016f:"uring",\u016e:"Uring",\u00fc:"uuml",\u00dc:"Uuml",\u0171:"udblac",\u0170:"Udblac",\u0169:"utilde",\u0168:"Utilde",\u0173:"uogon",\u0172:"Uogon",\u016b:"umacr",\u016a:"Umacr",\u{1d533}:"vfr",\u{1d567}:"vopf",\u{1d4cb}:"vscr",\u{1d519}:"Vfr",\u{1d54d}:"Vopf",\u{1d4b1}:"Vscr",\u{1d568}:"wopf",\u{1d4cc}:"wscr",\u{1d534}:"wfr",\u{1d4b2}:"Wscr",\u{1d54e}:"Wopf",\u{1d51a}:"Wfr",\u0175:"wcirc",\u0174:"Wcirc",\u{1d535}:"xfr",\u{1d4cd}:"xscr",\u{1d569}:"xopf",\u{1d54f}:"Xopf",\u{1d51b}:"Xfr",\u{1d4b3}:"Xscr",\u{1d536}:"yfr",\u{1d4ce}:"yscr",\u{1d56a}:"yopf",\u{1d4b4}:"Yscr",\u{1d51c}:"Yfr",\u{1d550}:"Yopf",\u00fd:"yacute",\u00dd:"Yacute",\u0177:"ycirc",\u0176:"Ycirc",\u00ff:"yuml",\u0178:"Yuml",\u{1d4cf}:"zscr",\u{1d537}:"zfr",\u{1d56b}:"zopf",\u2128:"Zfr",\u2124:"Zopf",\u{1d4b5}:"Zscr",\u017a:"zacute",\u0179:"Zacute",\u017e:"zcaron",\u017d:"Zcaron",\u017c:"zdot",\u017b:"Zdot",\u01b5:"imped",\u00fe:"thorn",\u00de:"THORN",\u0149:"napos",\u03b1:"alpha",\u0391:"Alpha",\u03b2:"beta",\u0392:"Beta",\u03b3:"gamma",\u0393:"Gamma",\u03b4:"delta",\u0394:"Delta",\u03b5:"epsi",\u03f5:"epsiv",\u0395:"Epsilon",\u03dd:"gammad",\u03dc:"Gammad",\u03b6:"zeta",\u0396:"Zeta",\u03b7:"eta",\u0397:"Eta",\u03b8:"theta",\u03d1:"thetav",\u0398:"Theta",\u03b9:"iota",\u0399:"Iota",\u03ba:"kappa",\u03f0:"kappav",\u039a:"Kappa",\u03bb:"lambda",\u039b:"Lambda",\u03bc:"mu",\u00b5:"micro",\u039c:"Mu",\u03bd:"nu",\u039d:"Nu",\u03be:"xi",\u039e:"Xi",\u03bf:"omicron",\u039f:"Omicron",\u03c0:"pi",\u03d6:"piv",\u03a0:"Pi",\u03c1:"rho",\u03f1:"rhov",\u03a1:"Rho",\u03c3:"sigma",\u03a3:"Sigma",\u03c2:"sigmaf",\u03c4:"tau",\u03a4:"Tau",\u03c5:"upsi",\u03a5:"Upsilon",\u03d2:"Upsi",\u03c6:"phi",\u03d5:"phiv",\u03a6:"Phi",\u03c7:"chi",\u03a7:"Chi",\u03c8:"psi",\u03a8:"Psi",\u03c9:"omega",\u03a9:"ohm",\u0430:"acy",\u0410:"Acy",\u0431:"bcy",\u0411:"Bcy",\u0432:"vcy",\u0412:"Vcy",\u0433:"gcy",\u0413:"Gcy",\u0453:"gjcy",\u0403:"GJcy",\u0434:"dcy",\u0414:"Dcy",\u0452:"djcy",\u0402:"DJcy",\u0435:"iecy",\u0415:"IEcy",\u0451:"iocy",\u0401:"IOcy",\u0454:"jukcy",\u0404:"Jukcy",\u0436:"zhcy",\u0416:"ZHcy",\u0437:"zcy",\u0417:"Zcy",\u0455:"dscy",\u0405:"DScy",\u0438:"icy",\u0418:"Icy",\u0456:"iukcy",\u0406:"Iukcy",\u0457:"yicy",\u0407:"YIcy",\u0439:"jcy",\u0419:"Jcy",\u0458:"jsercy",\u0408:"Jsercy",\u043a:"kcy",\u041a:"Kcy",\u045c:"kjcy",\u040c:"KJcy",\u043b:"lcy",\u041b:"Lcy",\u0459:"ljcy",\u0409:"LJcy",\u043c:"mcy",\u041c:"Mcy",\u043d:"ncy",\u041d:"Ncy",\u045a:"njcy",\u040a:"NJcy",\u043e:"ocy",\u041e:"Ocy",\u043f:"pcy",\u041f:"Pcy",\u0440:"rcy",\u0420:"Rcy",\u0441:"scy",\u0421:"Scy",\u0442:"tcy",\u0422:"Tcy",\u045b:"tshcy",\u040b:"TSHcy",\u0443:"ucy",\u0423:"Ucy",\u045e:"ubrcy",\u040e:"Ubrcy",\u0444:"fcy",\u0424:"Fcy",\u0445:"khcy",\u0425:"KHcy",\u0446:"tscy",\u0426:"TScy",\u0447:"chcy",\u0427:"CHcy",\u045f:"dzcy",\u040f:"DZcy",\u0448:"shcy",\u0428:"SHcy",\u0449:"shchcy",\u0429:"SHCHcy",\u044a:"hardcy",\u042a:"HARDcy",\u044b:"ycy",\u042b:"Ycy",\u044c:"softcy",\u042c:"SOFTcy",\u044d:"ecy",\u042d:"Ecy",\u044e:"yucy",\u042e:"YUcy",\u044f:"yacy",\u042f:"YAcy",\u2135:"aleph",\u2136:"beth",\u2137:"gimel",\u2138:"daleth"},P=/["&'<>`]/g,D={'"':""","&":"&","'":"'","<":"<",">":">","`":"`"},k=/&#(?:[xX][^a-fA-F0-9]|[^0-9xX])/,S=/[\0-\x08\x0B\x0E-\x1F\x7F-\x9F\uFDD0-\uFDEF\uFFFE\uFFFF]|[\uD83F\uD87F\uD8BF\uD8FF\uD93F\uD97F\uD9BF\uD9FF\uDA3F\uDA7F\uDABF\uDAFF\uDB3F\uDB7F\uDBBF\uDBFF][\uDFFE\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,x=/&(CounterClockwiseContourIntegral|DoubleLongLeftRightArrow|ClockwiseContourIntegral|NotNestedGreaterGreater|NotSquareSupersetEqual|DiacriticalDoubleAcute|NotRightTriangleEqual|NotSucceedsSlantEqual|NotPrecedesSlantEqual|CloseCurlyDoubleQuote|NegativeVeryThinSpace|DoubleContourIntegral|FilledVerySmallSquare|CapitalDifferentialD|OpenCurlyDoubleQuote|EmptyVerySmallSquare|NestedGreaterGreater|DoubleLongRightArrow|NotLeftTriangleEqual|NotGreaterSlantEqual|ReverseUpEquilibrium|DoubleLeftRightArrow|NotSquareSubsetEqual|NotDoubleVerticalBar|RightArrowLeftArrow|NotGreaterFullEqual|NotRightTriangleBar|SquareSupersetEqual|DownLeftRightVector|DoubleLongLeftArrow|leftrightsquigarrow|LeftArrowRightArrow|NegativeMediumSpace|blacktriangleright|RightDownVectorBar|PrecedesSlantEqual|RightDoubleBracket|SucceedsSlantEqual|NotLeftTriangleBar|RightTriangleEqual|SquareIntersection|RightDownTeeVector|ReverseEquilibrium|NegativeThickSpace|longleftrightarrow|Longleftrightarrow|LongLeftRightArrow|DownRightTeeVector|DownRightVectorBar|GreaterSlantEqual|SquareSubsetEqual|LeftDownVectorBar|LeftDoubleBracket|VerticalSeparator|rightleftharpoons|NotGreaterGreater|NotSquareSuperset|blacktriangleleft|blacktriangledown|NegativeThinSpace|LeftDownTeeVector|NotLessSlantEqual|leftrightharpoons|DoubleUpDownArrow|DoubleVerticalBar|LeftTriangleEqual|FilledSmallSquare|twoheadrightarrow|NotNestedLessLess|DownLeftTeeVector|DownLeftVectorBar|RightAngleBracket|NotTildeFullEqual|NotReverseElement|RightUpDownVector|DiacriticalTilde|NotSucceedsTilde|circlearrowright|NotPrecedesEqual|rightharpoondown|DoubleRightArrow|NotSucceedsEqual|NonBreakingSpace|NotRightTriangle|LessEqualGreater|RightUpTeeVector|LeftAngleBracket|GreaterFullEqual|DownArrowUpArrow|RightUpVectorBar|twoheadleftarrow|GreaterEqualLess|downharpoonright|RightTriangleBar|ntrianglerighteq|NotSupersetEqual|LeftUpDownVector|DiacriticalAcute|rightrightarrows|vartriangleright|UpArrowDownArrow|DiacriticalGrave|UnderParenthesis|EmptySmallSquare|LeftUpVectorBar|leftrightarrows|DownRightVector|downharpoonleft|trianglerighteq|ShortRightArrow|OverParenthesis|DoubleLeftArrow|DoubleDownArrow|NotSquareSubset|bigtriangledown|ntrianglelefteq|UpperRightArrow|curvearrowright|vartriangleleft|NotLeftTriangle|nleftrightarrow|LowerRightArrow|NotHumpDownHump|NotGreaterTilde|rightthreetimes|LeftUpTeeVector|NotGreaterEqual|straightepsilon|LeftTriangleBar|rightsquigarrow|ContourIntegral|rightleftarrows|CloseCurlyQuote|RightDownVector|LeftRightVector|nLeftrightarrow|leftharpoondown|circlearrowleft|SquareSuperset|OpenCurlyQuote|hookrightarrow|HorizontalLine|DiacriticalDot|NotLessGreater|ntriangleright|DoubleRightTee|InvisibleComma|InvisibleTimes|LowerLeftArrow|DownLeftVector|NotSubsetEqual|curvearrowleft|trianglelefteq|NotVerticalBar|TildeFullEqual|downdownarrows|NotGreaterLess|RightTeeVector|ZeroWidthSpace|looparrowright|LongRightArrow|doublebarwedge|ShortLeftArrow|ShortDownArrow|RightVectorBar|GreaterGreater|ReverseElement|rightharpoonup|LessSlantEqual|leftthreetimes|upharpoonright|rightarrowtail|LeftDownVector|Longrightarrow|NestedLessLess|UpperLeftArrow|nshortparallel|leftleftarrows|leftrightarrow|Leftrightarrow|LeftRightArrow|longrightarrow|upharpoonleft|RightArrowBar|ApplyFunction|LeftTeeVector|leftarrowtail|NotEqualTilde|varsubsetneqq|varsupsetneqq|RightTeeArrow|SucceedsEqual|SucceedsTilde|LeftVectorBar|SupersetEqual|hookleftarrow|DifferentialD|VerticalTilde|VeryThinSpace|blacktriangle|bigtriangleup|LessFullEqual|divideontimes|leftharpoonup|UpEquilibrium|ntriangleleft|RightTriangle|measuredangle|shortparallel|longleftarrow|Longleftarrow|LongLeftArrow|DoubleLeftTee|Poincareplane|PrecedesEqual|triangleright|DoubleUpArrow|RightUpVector|fallingdotseq|looparrowleft|PrecedesTilde|NotTildeEqual|NotTildeTilde|smallsetminus|Proportional|triangleleft|triangledown|UnderBracket|NotHumpEqual|exponentiale|ExponentialE|NotLessTilde|HilbertSpace|RightCeiling|blacklozenge|varsupsetneq|HumpDownHump|GreaterEqual|VerticalLine|LeftTeeArrow|NotLessEqual|DownTeeArrow|LeftTriangle|varsubsetneq|Intersection|NotCongruent|DownArrowBar|LeftUpVector|LeftArrowBar|risingdotseq|GreaterTilde|RoundImplies|SquareSubset|ShortUpArrow|NotSuperset|quaternions|precnapprox|backepsilon|preccurlyeq|OverBracket|blacksquare|MediumSpace|VerticalBar|circledcirc|circleddash|CircleMinus|CircleTimes|LessGreater|curlyeqprec|curlyeqsucc|diamondsuit|UpDownArrow|Updownarrow|RuleDelayed|Rrightarrow|updownarrow|RightVector|nRightarrow|nrightarrow|eqslantless|LeftCeiling|Equilibrium|SmallCircle|expectation|NotSucceeds|thickapprox|GreaterLess|SquareUnion|NotPrecedes|NotLessLess|straightphi|succnapprox|succcurlyeq|SubsetEqual|sqsupseteq|Proportion|Laplacetrf|ImaginaryI|supsetneqq|NotGreater|gtreqqless|NotElement|ThickSpace|TildeEqual|TildeTilde|Fouriertrf|rmoustache|EqualTilde|eqslantgtr|UnderBrace|LeftVector|UpArrowBar|nLeftarrow|nsubseteqq|subsetneqq|nsupseteqq|nleftarrow|succapprox|lessapprox|UpTeeArrow|upuparrows|curlywedge|lesseqqgtr|varepsilon|varnothing|RightFloor|complement|CirclePlus|sqsubseteq|Lleftarrow|circledast|RightArrow|Rightarrow|rightarrow|lmoustache|Bernoullis|precapprox|mapstoleft|mapstodown|longmapsto|dotsquare|downarrow|DoubleDot|nsubseteq|supsetneq|leftarrow|nsupseteq|subsetneq|ThinSpace|ngeqslant|subseteqq|HumpEqual|NotSubset|triangleq|NotCupCap|lesseqgtr|heartsuit|TripleDot|Leftarrow|Coproduct|Congruent|varpropto|complexes|gvertneqq|LeftArrow|LessTilde|supseteqq|MinusPlus|CircleDot|nleqslant|NotExists|gtreqless|nparallel|UnionPlus|LeftFloor|checkmark|CenterDot|centerdot|Mellintrf|gtrapprox|bigotimes|OverBrace|spadesuit|therefore|pitchfork|rationals|PlusMinus|Backslash|Therefore|DownBreve|backsimeq|backprime|DownArrow|nshortmid|Downarrow|lvertneqq|eqvparsl|imagline|imagpart|infintie|integers|Integral|intercal|LessLess|Uarrocir|intlarhk|sqsupset|angmsdaf|sqsubset|llcorner|vartheta|cupbrcap|lnapprox|Superset|SuchThat|succnsim|succneqq|angmsdag|biguplus|curlyvee|trpezium|Succeeds|NotTilde|bigwedge|angmsdah|angrtvbd|triminus|cwconint|fpartint|lrcorner|smeparsl|subseteq|urcorner|lurdshar|laemptyv|DDotrahd|approxeq|ldrushar|awconint|mapstoup|backcong|shortmid|triangle|geqslant|gesdotol|timesbar|circledR|circledS|setminus|multimap|naturals|scpolint|ncongdot|RightTee|boxminus|gnapprox|boxtimes|andslope|thicksim|angmsdaa|varsigma|cirfnint|rtriltri|angmsdab|rppolint|angmsdac|barwedge|drbkarow|clubsuit|thetasym|bsolhsub|capbrcup|dzigrarr|doteqdot|DotEqual|dotminus|UnderBar|NotEqual|realpart|otimesas|ulcorner|hksearow|hkswarow|parallel|PartialD|elinters|emptyset|plusacir|bbrktbrk|angmsdad|pointint|bigoplus|angmsdae|Precedes|bigsqcup|varkappa|notindot|supseteq|precneqq|precnsim|profalar|profline|profsurf|leqslant|lesdotor|raemptyv|subplus|notnivb|notnivc|subrarr|zigrarr|vzigzag|submult|subedot|Element|between|cirscir|larrbfs|larrsim|lotimes|lbrksld|lbrkslu|lozenge|ldrdhar|dbkarow|bigcirc|epsilon|simrarr|simplus|ltquest|Epsilon|luruhar|gtquest|maltese|npolint|eqcolon|npreceq|bigodot|ddagger|gtrless|bnequiv|harrcir|ddotseq|equivDD|backsim|demptyv|nsqsube|nsqsupe|Upsilon|nsubset|upsilon|minusdu|nsucceq|swarrow|nsupset|coloneq|searrow|boxplus|napprox|natural|asympeq|alefsym|congdot|nearrow|bigstar|diamond|supplus|tritime|LeftTee|nvinfin|triplus|NewLine|nvltrie|nvrtrie|nwarrow|nexists|Diamond|ruluhar|Implies|supmult|angzarr|suplarr|suphsub|questeq|because|digamma|Because|olcross|bemptyv|omicron|Omicron|rotimes|NoBreak|intprod|angrtvb|orderof|uwangle|suphsol|lesdoto|orslope|DownTee|realine|cudarrl|rdldhar|OverBar|supedot|lessdot|supdsub|topfork|succsim|rbrkslu|rbrksld|pertenk|cudarrr|isindot|planckh|lessgtr|pluscir|gesdoto|plussim|plustwo|lesssim|cularrp|rarrsim|Cayleys|notinva|notinvb|notinvc|UpArrow|Uparrow|uparrow|NotLess|dwangle|precsim|Product|curarrm|Cconint|dotplus|rarrbfs|ccupssm|Cedilla|cemptyv|notniva|quatint|frac35|frac38|frac45|frac56|frac58|frac78|tridot|xoplus|gacute|gammad|Gammad|lfisht|lfloor|bigcup|sqsupe|gbreve|Gbreve|lharul|sqsube|sqcups|Gcedil|apacir|llhard|lmidot|Lmidot|lmoust|andand|sqcaps|approx|Abreve|spades|circeq|tprime|divide|topcir|Assign|topbot|gesdot|divonx|xuplus|timesd|gesles|atilde|solbar|SOFTcy|loplus|timesb|lowast|lowbar|dlcorn|dlcrop|softcy|dollar|lparlt|thksim|lrhard|Atilde|lsaquo|smashp|bigvee|thinsp|wreath|bkarow|lsquor|lstrok|Lstrok|lthree|ltimes|ltlarr|DotDot|simdot|ltrPar|weierp|xsqcup|angmsd|sigmav|sigmaf|zeetrf|Zcaron|zcaron|mapsto|vsupne|thetav|cirmid|marker|mcomma|Zacute|vsubnE|there4|gtlPar|vsubne|bottom|gtrarr|SHCHcy|shchcy|midast|midcir|middot|minusb|minusd|gtrdot|bowtie|sfrown|mnplus|models|colone|seswar|Colone|mstpos|searhk|gtrsim|nacute|Nacute|boxbox|telrec|hairsp|Tcedil|nbumpe|scnsim|ncaron|Ncaron|ncedil|Ncedil|hamilt|Scedil|nearhk|hardcy|HARDcy|tcedil|Tcaron|commat|nequiv|nesear|tcaron|target|hearts|nexist|varrho|scedil|Scaron|scaron|hellip|Sacute|sacute|hercon|swnwar|compfn|rtimes|rthree|rsquor|rsaquo|zacute|wedgeq|homtht|barvee|barwed|Barwed|rpargt|horbar|conint|swarhk|roplus|nltrie|hslash|hstrok|Hstrok|rmoust|Conint|bprime|hybull|hyphen|iacute|Iacute|supsup|supsub|supsim|varphi|coprod|brvbar|agrave|Supset|supset|igrave|Igrave|notinE|Agrave|iiiint|iinfin|copysr|wedbar|Verbar|vangrt|becaus|incare|verbar|inodot|bullet|drcorn|intcal|drcrop|cularr|vellip|Utilde|bumpeq|cupcap|dstrok|Dstrok|CupCap|cupcup|cupdot|eacute|Eacute|supdot|iquest|easter|ecaron|Ecaron|ecolon|isinsv|utilde|itilde|Itilde|curarr|succeq|Bumpeq|cacute|ulcrop|nparsl|Cacute|nprcue|egrave|Egrave|nrarrc|nrarrw|subsup|subsub|nrtrie|jsercy|nsccue|Jsercy|kappav|kcedil|Kcedil|subsim|ulcorn|nsimeq|egsdot|veebar|kgreen|capand|elsdot|Subset|subset|curren|aacute|lacute|Lacute|emptyv|ntilde|Ntilde|lagran|lambda|Lambda|capcap|Ugrave|langle|subdot|emsp13|numero|emsp14|nvdash|nvDash|nVdash|nVDash|ugrave|ufisht|nvHarr|larrfs|nvlArr|larrhk|larrlp|larrpl|nvrArr|Udblac|nwarhk|larrtl|nwnear|oacute|Oacute|latail|lAtail|sstarf|lbrace|odblac|Odblac|lbrack|udblac|odsold|eparsl|lcaron|Lcaron|ograve|Ograve|lcedil|Lcedil|Aacute|ssmile|ssetmn|squarf|ldquor|capcup|ominus|cylcty|rharul|eqcirc|dagger|rfloor|rfisht|Dagger|daleth|equals|origof|capdot|equest|dcaron|Dcaron|rdquor|oslash|Oslash|otilde|Otilde|otimes|Otimes|urcrop|Ubreve|ubreve|Yacute|Uacute|uacute|Rcedil|rcedil|urcorn|parsim|Rcaron|Vdashl|rcaron|Tstrok|percnt|period|permil|Exists|yacute|rbrack|rbrace|phmmat|ccaron|Ccaron|planck|ccedil|plankv|tstrok|female|plusdo|plusdu|ffilig|plusmn|ffllig|Ccedil|rAtail|dfisht|bernou|ratail|Rarrtl|rarrtl|angsph|rarrpl|rarrlp|rarrhk|xwedge|xotime|forall|ForAll|Vvdash|vsupnE|preceq|bigcap|frac12|frac13|frac14|primes|rarrfs|prnsim|frac15|Square|frac16|square|lesdot|frac18|frac23|propto|prurel|rarrap|rangle|puncsp|frac25|Racute|qprime|racute|lesges|frac34|abreve|AElig|eqsim|utdot|setmn|urtri|Equal|Uring|seArr|uring|searr|dashv|Dashv|mumap|nabla|iogon|Iogon|sdote|sdotb|scsim|napid|napos|equiv|natur|Acirc|dblac|erarr|nbump|iprod|erDot|ucirc|awint|esdot|angrt|ncong|isinE|scnap|Scirc|scirc|ndash|isins|Ubrcy|nearr|neArr|isinv|nedot|ubrcy|acute|Ycirc|iukcy|Iukcy|xutri|nesim|caret|jcirc|Jcirc|caron|twixt|ddarr|sccue|exist|jmath|sbquo|ngeqq|angst|ccaps|lceil|ngsim|UpTee|delta|Delta|rtrif|nharr|nhArr|nhpar|rtrie|jukcy|Jukcy|kappa|rsquo|Kappa|nlarr|nlArr|TSHcy|rrarr|aogon|Aogon|fflig|xrarr|tshcy|ccirc|nleqq|filig|upsih|nless|dharl|nlsim|fjlig|ropar|nltri|dharr|robrk|roarr|fllig|fltns|roang|rnmid|subnE|subne|lAarr|trisb|Ccirc|acirc|ccups|blank|VDash|forkv|Vdash|langd|cedil|blk12|blk14|laquo|strns|diams|notin|vDash|larrb|blk34|block|disin|uplus|vdash|vBarv|aelig|starf|Wedge|check|xrArr|lates|lbarr|lBarr|notni|lbbrk|bcong|frasl|lbrke|frown|vrtri|vprop|vnsup|gamma|Gamma|wedge|xodot|bdquo|srarr|doteq|ldquo|boxdl|boxdL|gcirc|Gcirc|boxDl|boxDL|boxdr|boxdR|boxDr|TRADE|trade|rlhar|boxDR|vnsub|npart|vltri|rlarr|boxhd|boxhD|nprec|gescc|nrarr|nrArr|boxHd|boxHD|boxhu|boxhU|nrtri|boxHu|clubs|boxHU|times|colon|Colon|gimel|xlArr|Tilde|nsime|tilde|nsmid|nspar|THORN|thorn|xlarr|nsube|nsubE|thkap|xhArr|comma|nsucc|boxul|boxuL|nsupe|nsupE|gneqq|gnsim|boxUl|boxUL|grave|boxur|boxuR|boxUr|boxUR|lescc|angle|bepsi|boxvh|varpi|boxvH|numsp|Theta|gsime|gsiml|theta|boxVh|boxVH|boxvl|gtcir|gtdot|boxvL|boxVl|boxVL|crarr|cross|Cross|nvsim|boxvr|nwarr|nwArr|sqsup|dtdot|Uogon|lhard|lharu|dtrif|ocirc|Ocirc|lhblk|duarr|odash|sqsub|Hacek|sqcup|llarr|duhar|oelig|OElig|ofcir|boxvR|uogon|lltri|boxVr|csube|uuarr|ohbar|csupe|ctdot|olarr|olcir|harrw|oline|sqcap|omacr|Omacr|omega|Omega|boxVR|aleph|lneqq|lnsim|loang|loarr|rharu|lobrk|hcirc|operp|oplus|rhard|Hcirc|orarr|Union|order|ecirc|Ecirc|cuepr|szlig|cuesc|breve|reals|eDDot|Breve|hoarr|lopar|utrif|rdquo|Umacr|umacr|efDot|swArr|ultri|alpha|rceil|ovbar|swarr|Wcirc|wcirc|smtes|smile|bsemi|lrarr|aring|parsl|lrhar|bsime|uhblk|lrtri|cupor|Aring|uharr|uharl|slarr|rbrke|bsolb|lsime|rbbrk|RBarr|lsimg|phone|rBarr|rbarr|icirc|lsquo|Icirc|emacr|Emacr|ratio|simne|plusb|simlE|simgE|simeq|pluse|ltcir|ltdot|empty|xharr|xdtri|iexcl|Alpha|ltrie|rarrw|pound|ltrif|xcirc|bumpe|prcue|bumpE|asymp|amacr|cuvee|Sigma|sigma|iiint|udhar|iiota|ijlig|IJlig|supnE|imacr|Imacr|prime|Prime|image|prnap|eogon|Eogon|rarrc|mdash|mDDot|cuwed|imath|supne|imped|Amacr|udarr|prsim|micro|rarrb|cwint|raquo|infin|eplus|range|rangd|Ucirc|radic|minus|amalg|veeeq|rAarr|epsiv|ycirc|quest|sharp|quot|zwnj|Qscr|race|qscr|Qopf|qopf|qint|rang|Rang|Zscr|zscr|Zopf|zopf|rarr|rArr|Rarr|Pscr|pscr|prop|prod|prnE|prec|ZHcy|zhcy|prap|Zeta|zeta|Popf|popf|Zdot|plus|zdot|Yuml|yuml|phiv|YUcy|yucy|Yscr|yscr|perp|Yopf|yopf|part|para|YIcy|Ouml|rcub|yicy|YAcy|rdca|ouml|osol|Oscr|rdsh|yacy|real|oscr|xvee|andd|rect|andv|Xscr|oror|ordm|ordf|xscr|ange|aopf|Aopf|rHar|Xopf|opar|Oopf|xopf|xnis|rhov|oopf|omid|xmap|oint|apid|apos|ogon|ascr|Ascr|odot|odiv|xcup|xcap|ocir|oast|nvlt|nvle|nvgt|nvge|nvap|Wscr|wscr|auml|ntlg|ntgl|nsup|nsub|nsim|Nscr|nscr|nsce|Wopf|ring|npre|wopf|npar|Auml|Barv|bbrk|Nopf|nopf|nmid|nLtv|beta|ropf|Ropf|Beta|beth|nles|rpar|nleq|bnot|bNot|nldr|NJcy|rscr|Rscr|Vscr|vscr|rsqb|njcy|bopf|nisd|Bopf|rtri|Vopf|nGtv|ngtr|vopf|boxh|boxH|boxv|nges|ngeq|boxV|bscr|scap|Bscr|bsim|Vert|vert|bsol|bull|bump|caps|cdot|ncup|scnE|ncap|nbsp|napE|Cdot|cent|sdot|Vbar|nang|vBar|chcy|Mscr|mscr|sect|semi|CHcy|Mopf|mopf|sext|circ|cire|mldr|mlcp|cirE|comp|shcy|SHcy|vArr|varr|cong|copf|Copf|copy|COPY|malt|male|macr|lvnE|cscr|ltri|sime|ltcc|simg|Cscr|siml|csub|Uuml|lsqb|lsim|uuml|csup|Lscr|lscr|utri|smid|lpar|cups|smte|lozf|darr|Lopf|Uscr|solb|lopf|sopf|Sopf|lneq|uscr|spar|dArr|lnap|Darr|dash|Sqrt|LJcy|ljcy|lHar|dHar|Upsi|upsi|diam|lesg|djcy|DJcy|leqq|dopf|Dopf|dscr|Dscr|dscy|ldsh|ldca|squf|DScy|sscr|Sscr|dsol|lcub|late|star|Star|Uopf|Larr|lArr|larr|uopf|dtri|dzcy|sube|subE|Lang|lang|Kscr|kscr|Kopf|kopf|KJcy|kjcy|KHcy|khcy|DZcy|ecir|edot|eDot|Jscr|jscr|succ|Jopf|jopf|Edot|uHar|emsp|ensp|Iuml|iuml|eopf|isin|Iscr|iscr|Eopf|epar|sung|epsi|escr|sup1|sup2|sup3|Iota|iota|supe|supE|Iopf|iopf|IOcy|iocy|Escr|esim|Esim|imof|Uarr|QUOT|uArr|uarr|euml|IEcy|iecy|Idot|Euml|euro|excl|Hscr|hscr|Hopf|hopf|TScy|tscy|Tscr|hbar|tscr|flat|tbrk|fnof|hArr|harr|half|fopf|Fopf|tdot|gvnE|fork|trie|gtcc|fscr|Fscr|gdot|gsim|Gscr|gscr|Gopf|gopf|gneq|Gdot|tosa|gnap|Topf|topf|geqq|toea|GJcy|gjcy|tint|gesl|mid|Sfr|ggg|top|ges|gla|glE|glj|geq|gne|gEl|gel|gnE|Gcy|gcy|gap|Tfr|tfr|Tcy|tcy|Hat|Tau|Ffr|tau|Tab|hfr|Hfr|ffr|Fcy|fcy|icy|Icy|iff|ETH|eth|ifr|Ifr|Eta|eta|int|Int|Sup|sup|ucy|Ucy|Sum|sum|jcy|ENG|ufr|Ufr|eng|Jcy|jfr|els|ell|egs|Efr|efr|Jfr|uml|kcy|Kcy|Ecy|ecy|kfr|Kfr|lap|Sub|sub|lat|lcy|Lcy|leg|Dot|dot|lEg|leq|les|squ|div|die|lfr|Lfr|lgE|Dfr|dfr|Del|deg|Dcy|dcy|lne|lnE|sol|loz|smt|Cup|lrm|cup|lsh|Lsh|sim|shy|map|Map|mcy|Mcy|mfr|Mfr|mho|gfr|Gfr|sfr|cir|Chi|chi|nap|Cfr|vcy|Vcy|cfr|Scy|scy|ncy|Ncy|vee|Vee|Cap|cap|nfr|scE|sce|Nfr|nge|ngE|nGg|vfr|Vfr|ngt|bot|nGt|nis|niv|Rsh|rsh|nle|nlE|bne|Bfr|bfr|nLl|nlt|nLt|Bcy|bcy|not|Not|rlm|wfr|Wfr|npr|nsc|num|ocy|ast|Ocy|ofr|xfr|Xfr|Ofr|ogt|ohm|apE|olt|Rho|ape|rho|Rfr|rfr|ord|REG|ang|reg|orv|And|and|AMP|Rcy|amp|Afr|ycy|Ycy|yen|yfr|Yfr|rcy|par|pcy|Pcy|pfr|Pfr|phi|Phi|afr|Acy|acy|zcy|Zcy|piv|acE|acd|zfr|Zfr|pre|prE|psi|Psi|qfr|Qfr|zwj|Or|ge|Gg|gt|gg|el|oS|lt|Lt|LT|Re|lg|gl|eg|ne|Im|it|le|DD|wp|wr|nu|Nu|dd|lE|Sc|sc|pi|Pi|ee|af|ll|Ll|rx|gE|xi|pm|Xi|ic|pr|Pr|in|ni|mp|mu|ac|Mu|or|ap|Gt|GT|ii);|&(Aacute|Agrave|Atilde|Ccedil|Eacute|Egrave|Iacute|Igrave|Ntilde|Oacute|Ograve|Oslash|Otilde|Uacute|Ugrave|Yacute|aacute|agrave|atilde|brvbar|ccedil|curren|divide|eacute|egrave|frac12|frac14|frac34|iacute|igrave|iquest|middot|ntilde|oacute|ograve|oslash|otilde|plusmn|uacute|ugrave|yacute|AElig|Acirc|Aring|Ecirc|Icirc|Ocirc|THORN|Ucirc|acirc|acute|aelig|aring|cedil|ecirc|icirc|iexcl|laquo|micro|ocirc|pound|raquo|szlig|thorn|times|ucirc|Auml|COPY|Euml|Iuml|Ouml|QUOT|Uuml|auml|cent|copy|euml|iuml|macr|nbsp|ordf|ordm|ouml|para|quot|sect|sup1|sup2|sup3|uuml|yuml|AMP|ETH|REG|amp|deg|eth|not|reg|shy|uml|yen|GT|LT|gt|lt)(?!;)([=a-zA-Z0-9]?)|&#([0-9]+)(;?)|&#[xX]([a-fA-F0-9]+)(;?)|&([0-9a-zA-Z]+)/g,B={aacute:"\xe1",Aacute:"\xc1",abreve:"\u0103",Abreve:"\u0102",ac:"\u223e",acd:"\u223f",acE:"\u223e\u0333",acirc:"\xe2",Acirc:"\xc2",acute:"\xb4",acy:"\u0430",Acy:"\u0410",aelig:"\xe6",AElig:"\xc6",af:"\u2061",afr:"\u{1d51e}",Afr:"\u{1d504}",agrave:"\xe0",Agrave:"\xc0",alefsym:"\u2135",aleph:"\u2135",alpha:"\u03b1",Alpha:"\u0391",amacr:"\u0101",Amacr:"\u0100",amalg:"\u2a3f",amp:"&",AMP:"&",and:"\u2227",And:"\u2a53",andand:"\u2a55",andd:"\u2a5c",andslope:"\u2a58",andv:"\u2a5a",ang:"\u2220",ange:"\u29a4",angle:"\u2220",angmsd:"\u2221",angmsdaa:"\u29a8",angmsdab:"\u29a9",angmsdac:"\u29aa",angmsdad:"\u29ab",angmsdae:"\u29ac",angmsdaf:"\u29ad",angmsdag:"\u29ae",angmsdah:"\u29af",angrt:"\u221f",angrtvb:"\u22be",angrtvbd:"\u299d",angsph:"\u2222",angst:"\xc5",angzarr:"\u237c",aogon:"\u0105",Aogon:"\u0104",aopf:"\u{1d552}",Aopf:"\u{1d538}",ap:"\u2248",apacir:"\u2a6f",ape:"\u224a",apE:"\u2a70",apid:"\u224b",apos:"'",ApplyFunction:"\u2061",approx:"\u2248",approxeq:"\u224a",aring:"\xe5",Aring:"\xc5",ascr:"\u{1d4b6}",Ascr:"\u{1d49c}",Assign:"\u2254",ast:"*",asymp:"\u2248",asympeq:"\u224d",atilde:"\xe3",Atilde:"\xc3",auml:"\xe4",Auml:"\xc4",awconint:"\u2233",awint:"\u2a11",backcong:"\u224c",backepsilon:"\u03f6",backprime:"\u2035",backsim:"\u223d",backsimeq:"\u22cd",Backslash:"\u2216",Barv:"\u2ae7",barvee:"\u22bd",barwed:"\u2305",Barwed:"\u2306",barwedge:"\u2305",bbrk:"\u23b5",bbrktbrk:"\u23b6",bcong:"\u224c",bcy:"\u0431",Bcy:"\u0411",bdquo:"\u201e",becaus:"\u2235",because:"\u2235",Because:"\u2235",bemptyv:"\u29b0",bepsi:"\u03f6",bernou:"\u212c",Bernoullis:"\u212c",beta:"\u03b2",Beta:"\u0392",beth:"\u2136",between:"\u226c",bfr:"\u{1d51f}",Bfr:"\u{1d505}",bigcap:"\u22c2",bigcirc:"\u25ef",bigcup:"\u22c3",bigodot:"\u2a00",bigoplus:"\u2a01",bigotimes:"\u2a02",bigsqcup:"\u2a06",bigstar:"\u2605",bigtriangledown:"\u25bd",bigtriangleup:"\u25b3",biguplus:"\u2a04",bigvee:"\u22c1",bigwedge:"\u22c0",bkarow:"\u290d",blacklozenge:"\u29eb",blacksquare:"\u25aa",blacktriangle:"\u25b4",blacktriangledown:"\u25be",blacktriangleleft:"\u25c2",blacktriangleright:"\u25b8",blank:"\u2423",blk12:"\u2592",blk14:"\u2591",blk34:"\u2593",block:"\u2588",bne:"=\u20e5",bnequiv:"\u2261\u20e5",bnot:"\u2310",bNot:"\u2aed",bopf:"\u{1d553}",Bopf:"\u{1d539}",bot:"\u22a5",bottom:"\u22a5",bowtie:"\u22c8",boxbox:"\u29c9",boxdl:"\u2510",boxdL:"\u2555",boxDl:"\u2556",boxDL:"\u2557",boxdr:"\u250c",boxdR:"\u2552",boxDr:"\u2553",boxDR:"\u2554",boxh:"\u2500",boxH:"\u2550",boxhd:"\u252c",boxhD:"\u2565",boxHd:"\u2564",boxHD:"\u2566",boxhu:"\u2534",boxhU:"\u2568",boxHu:"\u2567",boxHU:"\u2569",boxminus:"\u229f",boxplus:"\u229e",boxtimes:"\u22a0",boxul:"\u2518",boxuL:"\u255b",boxUl:"\u255c",boxUL:"\u255d",boxur:"\u2514",boxuR:"\u2558",boxUr:"\u2559",boxUR:"\u255a",boxv:"\u2502",boxV:"\u2551",boxvh:"\u253c",boxvH:"\u256a",boxVh:"\u256b",boxVH:"\u256c",boxvl:"\u2524",boxvL:"\u2561",boxVl:"\u2562",boxVL:"\u2563",boxvr:"\u251c",boxvR:"\u255e",boxVr:"\u255f",boxVR:"\u2560",bprime:"\u2035",breve:"\u02d8",Breve:"\u02d8",brvbar:"\xa6",bscr:"\u{1d4b7}",Bscr:"\u212c",bsemi:"\u204f",bsim:"\u223d",bsime:"\u22cd",bsol:"\\",bsolb:"\u29c5",bsolhsub:"\u27c8",bull:"\u2022",bullet:"\u2022",bump:"\u224e",bumpe:"\u224f",bumpE:"\u2aae",bumpeq:"\u224f",Bumpeq:"\u224e",cacute:"\u0107",Cacute:"\u0106",cap:"\u2229",Cap:"\u22d2",capand:"\u2a44",capbrcup:"\u2a49",capcap:"\u2a4b",capcup:"\u2a47",capdot:"\u2a40",CapitalDifferentialD:"\u2145",caps:"\u2229\ufe00",caret:"\u2041",caron:"\u02c7",Cayleys:"\u212d",ccaps:"\u2a4d",ccaron:"\u010d",Ccaron:"\u010c",ccedil:"\xe7",Ccedil:"\xc7",ccirc:"\u0109",Ccirc:"\u0108",Cconint:"\u2230",ccups:"\u2a4c",ccupssm:"\u2a50",cdot:"\u010b",Cdot:"\u010a",cedil:"\xb8",Cedilla:"\xb8",cemptyv:"\u29b2",cent:"\xa2",centerdot:"\xb7",CenterDot:"\xb7",cfr:"\u{1d520}",Cfr:"\u212d",chcy:"\u0447",CHcy:"\u0427",check:"\u2713",checkmark:"\u2713",chi:"\u03c7",Chi:"\u03a7",cir:"\u25cb",circ:"\u02c6",circeq:"\u2257",circlearrowleft:"\u21ba",circlearrowright:"\u21bb",circledast:"\u229b",circledcirc:"\u229a",circleddash:"\u229d",CircleDot:"\u2299",circledR:"\xae",circledS:"\u24c8",CircleMinus:"\u2296",CirclePlus:"\u2295",CircleTimes:"\u2297",cire:"\u2257",cirE:"\u29c3",cirfnint:"\u2a10",cirmid:"\u2aef",cirscir:"\u29c2",ClockwiseContourIntegral:"\u2232",CloseCurlyDoubleQuote:"\u201d",CloseCurlyQuote:"\u2019",clubs:"\u2663",clubsuit:"\u2663",colon:":",Colon:"\u2237",colone:"\u2254",Colone:"\u2a74",coloneq:"\u2254",comma:",",commat:"@",comp:"\u2201",compfn:"\u2218",complement:"\u2201",complexes:"\u2102",cong:"\u2245",congdot:"\u2a6d",Congruent:"\u2261",conint:"\u222e",Conint:"\u222f",ContourIntegral:"\u222e",copf:"\u{1d554}",Copf:"\u2102",coprod:"\u2210",Coproduct:"\u2210",copy:"\xa9",COPY:"\xa9",copysr:"\u2117",CounterClockwiseContourIntegral:"\u2233",crarr:"\u21b5",cross:"\u2717",Cross:"\u2a2f",cscr:"\u{1d4b8}",Cscr:"\u{1d49e}",csub:"\u2acf",csube:"\u2ad1",csup:"\u2ad0",csupe:"\u2ad2",ctdot:"\u22ef",cudarrl:"\u2938",cudarrr:"\u2935",cuepr:"\u22de",cuesc:"\u22df",cularr:"\u21b6",cularrp:"\u293d",cup:"\u222a",Cup:"\u22d3",cupbrcap:"\u2a48",cupcap:"\u2a46",CupCap:"\u224d",cupcup:"\u2a4a",cupdot:"\u228d",cupor:"\u2a45",cups:"\u222a\ufe00",curarr:"\u21b7",curarrm:"\u293c",curlyeqprec:"\u22de",curlyeqsucc:"\u22df",curlyvee:"\u22ce",curlywedge:"\u22cf",curren:"\xa4",curvearrowleft:"\u21b6",curvearrowright:"\u21b7",cuvee:"\u22ce",cuwed:"\u22cf",cwconint:"\u2232",cwint:"\u2231",cylcty:"\u232d",dagger:"\u2020",Dagger:"\u2021",daleth:"\u2138",darr:"\u2193",dArr:"\u21d3",Darr:"\u21a1",dash:"\u2010",dashv:"\u22a3",Dashv:"\u2ae4",dbkarow:"\u290f",dblac:"\u02dd",dcaron:"\u010f",Dcaron:"\u010e",dcy:"\u0434",Dcy:"\u0414",dd:"\u2146",DD:"\u2145",ddagger:"\u2021",ddarr:"\u21ca",DDotrahd:"\u2911",ddotseq:"\u2a77",deg:"\xb0",Del:"\u2207",delta:"\u03b4",Delta:"\u0394",demptyv:"\u29b1",dfisht:"\u297f",dfr:"\u{1d521}",Dfr:"\u{1d507}",dHar:"\u2965",dharl:"\u21c3",dharr:"\u21c2",DiacriticalAcute:"\xb4",DiacriticalDot:"\u02d9",DiacriticalDoubleAcute:"\u02dd",DiacriticalGrave:"`",DiacriticalTilde:"\u02dc",diam:"\u22c4",diamond:"\u22c4",Diamond:"\u22c4",diamondsuit:"\u2666",diams:"\u2666",die:"\xa8",DifferentialD:"\u2146",digamma:"\u03dd",disin:"\u22f2",div:"\xf7",divide:"\xf7",divideontimes:"\u22c7",divonx:"\u22c7",djcy:"\u0452",DJcy:"\u0402",dlcorn:"\u231e",dlcrop:"\u230d",dollar:"$",dopf:"\u{1d555}",Dopf:"\u{1d53b}",dot:"\u02d9",Dot:"\xa8",DotDot:"\u20dc",doteq:"\u2250",doteqdot:"\u2251",DotEqual:"\u2250",dotminus:"\u2238",dotplus:"\u2214",dotsquare:"\u22a1",doublebarwedge:"\u2306",DoubleContourIntegral:"\u222f",DoubleDot:"\xa8",DoubleDownArrow:"\u21d3",DoubleLeftArrow:"\u21d0",DoubleLeftRightArrow:"\u21d4",DoubleLeftTee:"\u2ae4",DoubleLongLeftArrow:"\u27f8",DoubleLongLeftRightArrow:"\u27fa",DoubleLongRightArrow:"\u27f9",DoubleRightArrow:"\u21d2",DoubleRightTee:"\u22a8",DoubleUpArrow:"\u21d1",DoubleUpDownArrow:"\u21d5",DoubleVerticalBar:"\u2225",downarrow:"\u2193",Downarrow:"\u21d3",DownArrow:"\u2193",DownArrowBar:"\u2913",DownArrowUpArrow:"\u21f5",DownBreve:"\u0311",downdownarrows:"\u21ca",downharpoonleft:"\u21c3",downharpoonright:"\u21c2",DownLeftRightVector:"\u2950",DownLeftTeeVector:"\u295e",DownLeftVector:"\u21bd",DownLeftVectorBar:"\u2956",DownRightTeeVector:"\u295f",DownRightVector:"\u21c1",DownRightVectorBar:"\u2957",DownTee:"\u22a4",DownTeeArrow:"\u21a7",drbkarow:"\u2910",drcorn:"\u231f",drcrop:"\u230c",dscr:"\u{1d4b9}",Dscr:"\u{1d49f}",dscy:"\u0455",DScy:"\u0405",dsol:"\u29f6",dstrok:"\u0111",Dstrok:"\u0110",dtdot:"\u22f1",dtri:"\u25bf",dtrif:"\u25be",duarr:"\u21f5",duhar:"\u296f",dwangle:"\u29a6",dzcy:"\u045f",DZcy:"\u040f",dzigrarr:"\u27ff",eacute:"\xe9",Eacute:"\xc9",easter:"\u2a6e",ecaron:"\u011b",Ecaron:"\u011a",ecir:"\u2256",ecirc:"\xea",Ecirc:"\xca",ecolon:"\u2255",ecy:"\u044d",Ecy:"\u042d",eDDot:"\u2a77",edot:"\u0117",eDot:"\u2251",Edot:"\u0116",ee:"\u2147",efDot:"\u2252",efr:"\u{1d522}",Efr:"\u{1d508}",eg:"\u2a9a",egrave:"\xe8",Egrave:"\xc8",egs:"\u2a96",egsdot:"\u2a98",el:"\u2a99",Element:"\u2208",elinters:"\u23e7",ell:"\u2113",els:"\u2a95",elsdot:"\u2a97",emacr:"\u0113",Emacr:"\u0112",empty:"\u2205",emptyset:"\u2205",EmptySmallSquare:"\u25fb",emptyv:"\u2205",EmptyVerySmallSquare:"\u25ab",emsp:"\u2003",emsp13:"\u2004",emsp14:"\u2005",eng:"\u014b",ENG:"\u014a",ensp:"\u2002",eogon:"\u0119",Eogon:"\u0118",eopf:"\u{1d556}",Eopf:"\u{1d53c}",epar:"\u22d5",eparsl:"\u29e3",eplus:"\u2a71",epsi:"\u03b5",epsilon:"\u03b5",Epsilon:"\u0395",epsiv:"\u03f5",eqcirc:"\u2256",eqcolon:"\u2255",eqsim:"\u2242",eqslantgtr:"\u2a96",eqslantless:"\u2a95",Equal:"\u2a75",equals:"=",EqualTilde:"\u2242",equest:"\u225f",Equilibrium:"\u21cc",equiv:"\u2261",equivDD:"\u2a78",eqvparsl:"\u29e5",erarr:"\u2971",erDot:"\u2253",escr:"\u212f",Escr:"\u2130",esdot:"\u2250",esim:"\u2242",Esim:"\u2a73",eta:"\u03b7",Eta:"\u0397",eth:"\xf0",ETH:"\xd0",euml:"\xeb",Euml:"\xcb",euro:"\u20ac",excl:"!",exist:"\u2203",Exists:"\u2203",expectation:"\u2130",exponentiale:"\u2147",ExponentialE:"\u2147",fallingdotseq:"\u2252",fcy:"\u0444",Fcy:"\u0424",female:"\u2640",ffilig:"\ufb03",fflig:"\ufb00",ffllig:"\ufb04",ffr:"\u{1d523}",Ffr:"\u{1d509}",filig:"\ufb01",FilledSmallSquare:"\u25fc",FilledVerySmallSquare:"\u25aa",fjlig:"fj",flat:"\u266d",fllig:"\ufb02",fltns:"\u25b1",fnof:"\u0192",fopf:"\u{1d557}",Fopf:"\u{1d53d}",forall:"\u2200",ForAll:"\u2200",fork:"\u22d4",forkv:"\u2ad9",Fouriertrf:"\u2131",fpartint:"\u2a0d",frac12:"\xbd",frac13:"\u2153",frac14:"\xbc",frac15:"\u2155",frac16:"\u2159",frac18:"\u215b",frac23:"\u2154",frac25:"\u2156",frac34:"\xbe",frac35:"\u2157",frac38:"\u215c",frac45:"\u2158",frac56:"\u215a",frac58:"\u215d",frac78:"\u215e",frasl:"\u2044",frown:"\u2322",fscr:"\u{1d4bb}",Fscr:"\u2131",gacute:"\u01f5",gamma:"\u03b3",Gamma:"\u0393",gammad:"\u03dd",Gammad:"\u03dc",gap:"\u2a86",gbreve:"\u011f",Gbreve:"\u011e",Gcedil:"\u0122",gcirc:"\u011d",Gcirc:"\u011c",gcy:"\u0433",Gcy:"\u0413",gdot:"\u0121",Gdot:"\u0120",ge:"\u2265",gE:"\u2267",gel:"\u22db",gEl:"\u2a8c",geq:"\u2265",geqq:"\u2267",geqslant:"\u2a7e",ges:"\u2a7e",gescc:"\u2aa9",gesdot:"\u2a80",gesdoto:"\u2a82",gesdotol:"\u2a84",gesl:"\u22db\ufe00",gesles:"\u2a94",gfr:"\u{1d524}",Gfr:"\u{1d50a}",gg:"\u226b",Gg:"\u22d9",ggg:"\u22d9",gimel:"\u2137",gjcy:"\u0453",GJcy:"\u0403",gl:"\u2277",gla:"\u2aa5",glE:"\u2a92",glj:"\u2aa4",gnap:"\u2a8a",gnapprox:"\u2a8a",gne:"\u2a88",gnE:"\u2269",gneq:"\u2a88",gneqq:"\u2269",gnsim:"\u22e7",gopf:"\u{1d558}",Gopf:"\u{1d53e}",grave:"`",GreaterEqual:"\u2265",GreaterEqualLess:"\u22db",GreaterFullEqual:"\u2267",GreaterGreater:"\u2aa2",GreaterLess:"\u2277",GreaterSlantEqual:"\u2a7e",GreaterTilde:"\u2273",gscr:"\u210a",Gscr:"\u{1d4a2}",gsim:"\u2273",gsime:"\u2a8e",gsiml:"\u2a90",gt:">",Gt:"\u226b",GT:">",gtcc:"\u2aa7",gtcir:"\u2a7a",gtdot:"\u22d7",gtlPar:"\u2995",gtquest:"\u2a7c",gtrapprox:"\u2a86",gtrarr:"\u2978",gtrdot:"\u22d7",gtreqless:"\u22db",gtreqqless:"\u2a8c",gtrless:"\u2277",gtrsim:"\u2273",gvertneqq:"\u2269\ufe00",gvnE:"\u2269\ufe00",Hacek:"\u02c7",hairsp:"\u200a",half:"\xbd",hamilt:"\u210b",hardcy:"\u044a",HARDcy:"\u042a",harr:"\u2194",hArr:"\u21d4",harrcir:"\u2948",harrw:"\u21ad",Hat:"^",hbar:"\u210f",hcirc:"\u0125",Hcirc:"\u0124",hearts:"\u2665",heartsuit:"\u2665",hellip:"\u2026",hercon:"\u22b9",hfr:"\u{1d525}",Hfr:"\u210c",HilbertSpace:"\u210b",hksearow:"\u2925",hkswarow:"\u2926",hoarr:"\u21ff",homtht:"\u223b",hookleftarrow:"\u21a9",hookrightarrow:"\u21aa",hopf:"\u{1d559}",Hopf:"\u210d",horbar:"\u2015",HorizontalLine:"\u2500",hscr:"\u{1d4bd}",Hscr:"\u210b",hslash:"\u210f",hstrok:"\u0127",Hstrok:"\u0126",HumpDownHump:"\u224e",HumpEqual:"\u224f",hybull:"\u2043",hyphen:"\u2010",iacute:"\xed",Iacute:"\xcd",ic:"\u2063",icirc:"\xee",Icirc:"\xce",icy:"\u0438",Icy:"\u0418",Idot:"\u0130",iecy:"\u0435",IEcy:"\u0415",iexcl:"\xa1",iff:"\u21d4",ifr:"\u{1d526}",Ifr:"\u2111",igrave:"\xec",Igrave:"\xcc",ii:"\u2148",iiiint:"\u2a0c",iiint:"\u222d",iinfin:"\u29dc",iiota:"\u2129",ijlig:"\u0133",IJlig:"\u0132",Im:"\u2111",imacr:"\u012b",Imacr:"\u012a",image:"\u2111",ImaginaryI:"\u2148",imagline:"\u2110",imagpart:"\u2111",imath:"\u0131",imof:"\u22b7",imped:"\u01b5",Implies:"\u21d2",in:"\u2208",incare:"\u2105",infin:"\u221e",infintie:"\u29dd",inodot:"\u0131",int:"\u222b",Int:"\u222c",intcal:"\u22ba",integers:"\u2124",Integral:"\u222b",intercal:"\u22ba",Intersection:"\u22c2",intlarhk:"\u2a17",intprod:"\u2a3c",InvisibleComma:"\u2063",InvisibleTimes:"\u2062",iocy:"\u0451",IOcy:"\u0401",iogon:"\u012f",Iogon:"\u012e",iopf:"\u{1d55a}",Iopf:"\u{1d540}",iota:"\u03b9",Iota:"\u0399",iprod:"\u2a3c",iquest:"\xbf",iscr:"\u{1d4be}",Iscr:"\u2110",isin:"\u2208",isindot:"\u22f5",isinE:"\u22f9",isins:"\u22f4",isinsv:"\u22f3",isinv:"\u2208",it:"\u2062",itilde:"\u0129",Itilde:"\u0128",iukcy:"\u0456",Iukcy:"\u0406",iuml:"\xef",Iuml:"\xcf",jcirc:"\u0135",Jcirc:"\u0134",jcy:"\u0439",Jcy:"\u0419",jfr:"\u{1d527}",Jfr:"\u{1d50d}",jmath:"\u0237",jopf:"\u{1d55b}",Jopf:"\u{1d541}",jscr:"\u{1d4bf}",Jscr:"\u{1d4a5}",jsercy:"\u0458",Jsercy:"\u0408",jukcy:"\u0454",Jukcy:"\u0404",kappa:"\u03ba",Kappa:"\u039a",kappav:"\u03f0",kcedil:"\u0137",Kcedil:"\u0136",kcy:"\u043a",Kcy:"\u041a",kfr:"\u{1d528}",Kfr:"\u{1d50e}",kgreen:"\u0138",khcy:"\u0445",KHcy:"\u0425",kjcy:"\u045c",KJcy:"\u040c",kopf:"\u{1d55c}",Kopf:"\u{1d542}",kscr:"\u{1d4c0}",Kscr:"\u{1d4a6}",lAarr:"\u21da",lacute:"\u013a",Lacute:"\u0139",laemptyv:"\u29b4",lagran:"\u2112",lambda:"\u03bb",Lambda:"\u039b",lang:"\u27e8",Lang:"\u27ea",langd:"\u2991",langle:"\u27e8",lap:"\u2a85",Laplacetrf:"\u2112",laquo:"\xab",larr:"\u2190",lArr:"\u21d0",Larr:"\u219e",larrb:"\u21e4",larrbfs:"\u291f",larrfs:"\u291d",larrhk:"\u21a9",larrlp:"\u21ab",larrpl:"\u2939",larrsim:"\u2973",larrtl:"\u21a2",lat:"\u2aab",latail:"\u2919",lAtail:"\u291b",late:"\u2aad",lates:"\u2aad\ufe00",lbarr:"\u290c",lBarr:"\u290e",lbbrk:"\u2772",lbrace:"{",lbrack:"[",lbrke:"\u298b",lbrksld:"\u298f",lbrkslu:"\u298d",lcaron:"\u013e",Lcaron:"\u013d",lcedil:"\u013c",Lcedil:"\u013b",lceil:"\u2308",lcub:"{",lcy:"\u043b",Lcy:"\u041b",ldca:"\u2936",ldquo:"\u201c",ldquor:"\u201e",ldrdhar:"\u2967",ldrushar:"\u294b",ldsh:"\u21b2",le:"\u2264",lE:"\u2266",LeftAngleBracket:"\u27e8",leftarrow:"\u2190",Leftarrow:"\u21d0",LeftArrow:"\u2190",LeftArrowBar:"\u21e4",LeftArrowRightArrow:"\u21c6",leftarrowtail:"\u21a2",LeftCeiling:"\u2308",LeftDoubleBracket:"\u27e6",LeftDownTeeVector:"\u2961",LeftDownVector:"\u21c3",LeftDownVectorBar:"\u2959",LeftFloor:"\u230a",leftharpoondown:"\u21bd",leftharpoonup:"\u21bc",leftleftarrows:"\u21c7",leftrightarrow:"\u2194",Leftrightarrow:"\u21d4",LeftRightArrow:"\u2194",leftrightarrows:"\u21c6",leftrightharpoons:"\u21cb",leftrightsquigarrow:"\u21ad",LeftRightVector:"\u294e",LeftTee:"\u22a3",LeftTeeArrow:"\u21a4",LeftTeeVector:"\u295a",leftthreetimes:"\u22cb",LeftTriangle:"\u22b2",LeftTriangleBar:"\u29cf",LeftTriangleEqual:"\u22b4",LeftUpDownVector:"\u2951",LeftUpTeeVector:"\u2960",LeftUpVector:"\u21bf",LeftUpVectorBar:"\u2958",LeftVector:"\u21bc",LeftVectorBar:"\u2952",leg:"\u22da",lEg:"\u2a8b",leq:"\u2264",leqq:"\u2266",leqslant:"\u2a7d",les:"\u2a7d",lescc:"\u2aa8",lesdot:"\u2a7f",lesdoto:"\u2a81",lesdotor:"\u2a83",lesg:"\u22da\ufe00",lesges:"\u2a93",lessapprox:"\u2a85",lessdot:"\u22d6",lesseqgtr:"\u22da",lesseqqgtr:"\u2a8b",LessEqualGreater:"\u22da",LessFullEqual:"\u2266",LessGreater:"\u2276",lessgtr:"\u2276",LessLess:"\u2aa1",lesssim:"\u2272",LessSlantEqual:"\u2a7d",LessTilde:"\u2272",lfisht:"\u297c",lfloor:"\u230a",lfr:"\u{1d529}",Lfr:"\u{1d50f}",lg:"\u2276",lgE:"\u2a91",lHar:"\u2962",lhard:"\u21bd",lharu:"\u21bc",lharul:"\u296a",lhblk:"\u2584",ljcy:"\u0459",LJcy:"\u0409",ll:"\u226a",Ll:"\u22d8",llarr:"\u21c7",llcorner:"\u231e",Lleftarrow:"\u21da",llhard:"\u296b",lltri:"\u25fa",lmidot:"\u0140",Lmidot:"\u013f",lmoust:"\u23b0",lmoustache:"\u23b0",lnap:"\u2a89",lnapprox:"\u2a89",lne:"\u2a87",lnE:"\u2268",lneq:"\u2a87",lneqq:"\u2268",lnsim:"\u22e6",loang:"\u27ec",loarr:"\u21fd",lobrk:"\u27e6",longleftarrow:"\u27f5",Longleftarrow:"\u27f8",LongLeftArrow:"\u27f5",longleftrightarrow:"\u27f7",Longleftrightarrow:"\u27fa",LongLeftRightArrow:"\u27f7",longmapsto:"\u27fc",longrightarrow:"\u27f6",Longrightarrow:"\u27f9",LongRightArrow:"\u27f6",looparrowleft:"\u21ab",looparrowright:"\u21ac",lopar:"\u2985",lopf:"\u{1d55d}",Lopf:"\u{1d543}",loplus:"\u2a2d",lotimes:"\u2a34",lowast:"\u2217",lowbar:"_",LowerLeftArrow:"\u2199",LowerRightArrow:"\u2198",loz:"\u25ca",lozenge:"\u25ca",lozf:"\u29eb",lpar:"(",lparlt:"\u2993",lrarr:"\u21c6",lrcorner:"\u231f",lrhar:"\u21cb",lrhard:"\u296d",lrm:"\u200e",lrtri:"\u22bf",lsaquo:"\u2039",lscr:"\u{1d4c1}",Lscr:"\u2112",lsh:"\u21b0",Lsh:"\u21b0",lsim:"\u2272",lsime:"\u2a8d",lsimg:"\u2a8f",lsqb:"[",lsquo:"\u2018",lsquor:"\u201a",lstrok:"\u0142",Lstrok:"\u0141",lt:"<",Lt:"\u226a",LT:"<",ltcc:"\u2aa6",ltcir:"\u2a79",ltdot:"\u22d6",lthree:"\u22cb",ltimes:"\u22c9",ltlarr:"\u2976",ltquest:"\u2a7b",ltri:"\u25c3",ltrie:"\u22b4",ltrif:"\u25c2",ltrPar:"\u2996",lurdshar:"\u294a",luruhar:"\u2966",lvertneqq:"\u2268\ufe00",lvnE:"\u2268\ufe00",macr:"\xaf",male:"\u2642",malt:"\u2720",maltese:"\u2720",map:"\u21a6",Map:"\u2905",mapsto:"\u21a6",mapstodown:"\u21a7",mapstoleft:"\u21a4",mapstoup:"\u21a5",marker:"\u25ae",mcomma:"\u2a29",mcy:"\u043c",Mcy:"\u041c",mdash:"\u2014",mDDot:"\u223a",measuredangle:"\u2221",MediumSpace:"\u205f",Mellintrf:"\u2133",mfr:"\u{1d52a}",Mfr:"\u{1d510}",mho:"\u2127",micro:"\xb5",mid:"\u2223",midast:"*",midcir:"\u2af0",middot:"\xb7",minus:"\u2212",minusb:"\u229f",minusd:"\u2238",minusdu:"\u2a2a",MinusPlus:"\u2213",mlcp:"\u2adb",mldr:"\u2026",mnplus:"\u2213",models:"\u22a7",mopf:"\u{1d55e}",Mopf:"\u{1d544}",mp:"\u2213",mscr:"\u{1d4c2}",Mscr:"\u2133",mstpos:"\u223e",mu:"\u03bc",Mu:"\u039c",multimap:"\u22b8",mumap:"\u22b8",nabla:"\u2207",nacute:"\u0144",Nacute:"\u0143",nang:"\u2220\u20d2",nap:"\u2249",napE:"\u2a70\u0338",napid:"\u224b\u0338",napos:"\u0149",napprox:"\u2249",natur:"\u266e",natural:"\u266e",naturals:"\u2115",nbsp:"\xa0",nbump:"\u224e\u0338",nbumpe:"\u224f\u0338",ncap:"\u2a43",ncaron:"\u0148",Ncaron:"\u0147",ncedil:"\u0146",Ncedil:"\u0145",ncong:"\u2247",ncongdot:"\u2a6d\u0338",ncup:"\u2a42",ncy:"\u043d",Ncy:"\u041d",ndash:"\u2013",ne:"\u2260",nearhk:"\u2924",nearr:"\u2197",neArr:"\u21d7",nearrow:"\u2197",nedot:"\u2250\u0338",NegativeMediumSpace:"\u200b",NegativeThickSpace:"\u200b",NegativeThinSpace:"\u200b",NegativeVeryThinSpace:"\u200b",nequiv:"\u2262",nesear:"\u2928",nesim:"\u2242\u0338",NestedGreaterGreater:"\u226b",NestedLessLess:"\u226a",NewLine:"\n",nexist:"\u2204",nexists:"\u2204",nfr:"\u{1d52b}",Nfr:"\u{1d511}",nge:"\u2271",ngE:"\u2267\u0338",ngeq:"\u2271",ngeqq:"\u2267\u0338",ngeqslant:"\u2a7e\u0338",nges:"\u2a7e\u0338",nGg:"\u22d9\u0338",ngsim:"\u2275",ngt:"\u226f",nGt:"\u226b\u20d2",ngtr:"\u226f",nGtv:"\u226b\u0338",nharr:"\u21ae",nhArr:"\u21ce",nhpar:"\u2af2",ni:"\u220b",nis:"\u22fc",nisd:"\u22fa",niv:"\u220b",njcy:"\u045a",NJcy:"\u040a",nlarr:"\u219a",nlArr:"\u21cd",nldr:"\u2025",nle:"\u2270",nlE:"\u2266\u0338",nleftarrow:"\u219a",nLeftarrow:"\u21cd",nleftrightarrow:"\u21ae",nLeftrightarrow:"\u21ce",nleq:"\u2270",nleqq:"\u2266\u0338",nleqslant:"\u2a7d\u0338",nles:"\u2a7d\u0338",nless:"\u226e",nLl:"\u22d8\u0338",nlsim:"\u2274",nlt:"\u226e",nLt:"\u226a\u20d2",nltri:"\u22ea",nltrie:"\u22ec",nLtv:"\u226a\u0338",nmid:"\u2224",NoBreak:"\u2060",NonBreakingSpace:"\xa0",nopf:"\u{1d55f}",Nopf:"\u2115",not:"\xac",Not:"\u2aec",NotCongruent:"\u2262",NotCupCap:"\u226d",NotDoubleVerticalBar:"\u2226",NotElement:"\u2209",NotEqual:"\u2260",NotEqualTilde:"\u2242\u0338",NotExists:"\u2204",NotGreater:"\u226f",NotGreaterEqual:"\u2271",NotGreaterFullEqual:"\u2267\u0338",NotGreaterGreater:"\u226b\u0338",NotGreaterLess:"\u2279",NotGreaterSlantEqual:"\u2a7e\u0338",NotGreaterTilde:"\u2275",NotHumpDownHump:"\u224e\u0338",NotHumpEqual:"\u224f\u0338",notin:"\u2209",notindot:"\u22f5\u0338",notinE:"\u22f9\u0338",notinva:"\u2209",notinvb:"\u22f7",notinvc:"\u22f6",NotLeftTriangle:"\u22ea",NotLeftTriangleBar:"\u29cf\u0338",NotLeftTriangleEqual:"\u22ec",NotLess:"\u226e",NotLessEqual:"\u2270",NotLessGreater:"\u2278",NotLessLess:"\u226a\u0338",NotLessSlantEqual:"\u2a7d\u0338",NotLessTilde:"\u2274",NotNestedGreaterGreater:"\u2aa2\u0338",NotNestedLessLess:"\u2aa1\u0338",notni:"\u220c",notniva:"\u220c",notnivb:"\u22fe",notnivc:"\u22fd",NotPrecedes:"\u2280",NotPrecedesEqual:"\u2aaf\u0338",NotPrecedesSlantEqual:"\u22e0",NotReverseElement:"\u220c",NotRightTriangle:"\u22eb",NotRightTriangleBar:"\u29d0\u0338",NotRightTriangleEqual:"\u22ed",NotSquareSubset:"\u228f\u0338",NotSquareSubsetEqual:"\u22e2",NotSquareSuperset:"\u2290\u0338",NotSquareSupersetEqual:"\u22e3",NotSubset:"\u2282\u20d2",NotSubsetEqual:"\u2288",NotSucceeds:"\u2281",NotSucceedsEqual:"\u2ab0\u0338",NotSucceedsSlantEqual:"\u22e1",NotSucceedsTilde:"\u227f\u0338",NotSuperset:"\u2283\u20d2",NotSupersetEqual:"\u2289",NotTilde:"\u2241",NotTildeEqual:"\u2244",NotTildeFullEqual:"\u2247",NotTildeTilde:"\u2249",NotVerticalBar:"\u2224",npar:"\u2226",nparallel:"\u2226",nparsl:"\u2afd\u20e5",npart:"\u2202\u0338",npolint:"\u2a14",npr:"\u2280",nprcue:"\u22e0",npre:"\u2aaf\u0338",nprec:"\u2280",npreceq:"\u2aaf\u0338",nrarr:"\u219b",nrArr:"\u21cf",nrarrc:"\u2933\u0338",nrarrw:"\u219d\u0338",nrightarrow:"\u219b",nRightarrow:"\u21cf",nrtri:"\u22eb",nrtrie:"\u22ed",nsc:"\u2281",nsccue:"\u22e1",nsce:"\u2ab0\u0338",nscr:"\u{1d4c3}",Nscr:"\u{1d4a9}",nshortmid:"\u2224",nshortparallel:"\u2226",nsim:"\u2241",nsime:"\u2244",nsimeq:"\u2244",nsmid:"\u2224",nspar:"\u2226",nsqsube:"\u22e2",nsqsupe:"\u22e3",nsub:"\u2284",nsube:"\u2288",nsubE:"\u2ac5\u0338",nsubset:"\u2282\u20d2",nsubseteq:"\u2288",nsubseteqq:"\u2ac5\u0338",nsucc:"\u2281",nsucceq:"\u2ab0\u0338",nsup:"\u2285",nsupe:"\u2289",nsupE:"\u2ac6\u0338",nsupset:"\u2283\u20d2",nsupseteq:"\u2289",nsupseteqq:"\u2ac6\u0338",ntgl:"\u2279",ntilde:"\xf1",Ntilde:"\xd1",ntlg:"\u2278",ntriangleleft:"\u22ea",ntrianglelefteq:"\u22ec",ntriangleright:"\u22eb",ntrianglerighteq:"\u22ed",nu:"\u03bd",Nu:"\u039d",num:"#",numero:"\u2116",numsp:"\u2007",nvap:"\u224d\u20d2",nvdash:"\u22ac",nvDash:"\u22ad",nVdash:"\u22ae",nVDash:"\u22af",nvge:"\u2265\u20d2",nvgt:">\u20d2",nvHarr:"\u2904",nvinfin:"\u29de",nvlArr:"\u2902",nvle:"\u2264\u20d2",nvlt:"<\u20d2",nvltrie:"\u22b4\u20d2",nvrArr:"\u2903",nvrtrie:"\u22b5\u20d2",nvsim:"\u223c\u20d2",nwarhk:"\u2923",nwarr:"\u2196",nwArr:"\u21d6",nwarrow:"\u2196",nwnear:"\u2927",oacute:"\xf3",Oacute:"\xd3",oast:"\u229b",ocir:"\u229a",ocirc:"\xf4",Ocirc:"\xd4",ocy:"\u043e",Ocy:"\u041e",odash:"\u229d",odblac:"\u0151",Odblac:"\u0150",odiv:"\u2a38",odot:"\u2299",odsold:"\u29bc",oelig:"\u0153",OElig:"\u0152",ofcir:"\u29bf",ofr:"\u{1d52c}",Ofr:"\u{1d512}",ogon:"\u02db",ograve:"\xf2",Ograve:"\xd2",ogt:"\u29c1",ohbar:"\u29b5",ohm:"\u03a9",oint:"\u222e",olarr:"\u21ba",olcir:"\u29be",olcross:"\u29bb",oline:"\u203e",olt:"\u29c0",omacr:"\u014d",Omacr:"\u014c",omega:"\u03c9",Omega:"\u03a9",omicron:"\u03bf",Omicron:"\u039f",omid:"\u29b6",ominus:"\u2296",oopf:"\u{1d560}",Oopf:"\u{1d546}",opar:"\u29b7",OpenCurlyDoubleQuote:"\u201c",OpenCurlyQuote:"\u2018",operp:"\u29b9",oplus:"\u2295",or:"\u2228",Or:"\u2a54",orarr:"\u21bb",ord:"\u2a5d",order:"\u2134",orderof:"\u2134",ordf:"\xaa",ordm:"\xba",origof:"\u22b6",oror:"\u2a56",orslope:"\u2a57",orv:"\u2a5b",oS:"\u24c8",oscr:"\u2134",Oscr:"\u{1d4aa}",oslash:"\xf8",Oslash:"\xd8",osol:"\u2298",otilde:"\xf5",Otilde:"\xd5",otimes:"\u2297",Otimes:"\u2a37",otimesas:"\u2a36",ouml:"\xf6",Ouml:"\xd6",ovbar:"\u233d",OverBar:"\u203e",OverBrace:"\u23de",OverBracket:"\u23b4",OverParenthesis:"\u23dc",par:"\u2225",para:"\xb6",parallel:"\u2225",parsim:"\u2af3",parsl:"\u2afd",part:"\u2202",PartialD:"\u2202",pcy:"\u043f",Pcy:"\u041f",percnt:"%",period:".",permil:"\u2030",perp:"\u22a5",pertenk:"\u2031",pfr:"\u{1d52d}",Pfr:"\u{1d513}",phi:"\u03c6",Phi:"\u03a6",phiv:"\u03d5",phmmat:"\u2133",phone:"\u260e",pi:"\u03c0",Pi:"\u03a0",pitchfork:"\u22d4",piv:"\u03d6",planck:"\u210f",planckh:"\u210e",plankv:"\u210f",plus:"+",plusacir:"\u2a23",plusb:"\u229e",pluscir:"\u2a22",plusdo:"\u2214",plusdu:"\u2a25",pluse:"\u2a72",PlusMinus:"\xb1",plusmn:"\xb1",plussim:"\u2a26",plustwo:"\u2a27",pm:"\xb1",Poincareplane:"\u210c",pointint:"\u2a15",popf:"\u{1d561}",Popf:"\u2119",pound:"\xa3",pr:"\u227a",Pr:"\u2abb",prap:"\u2ab7",prcue:"\u227c",pre:"\u2aaf",prE:"\u2ab3",prec:"\u227a",precapprox:"\u2ab7",preccurlyeq:"\u227c",Precedes:"\u227a",PrecedesEqual:"\u2aaf",PrecedesSlantEqual:"\u227c",PrecedesTilde:"\u227e",preceq:"\u2aaf",precnapprox:"\u2ab9",precneqq:"\u2ab5",precnsim:"\u22e8",precsim:"\u227e",prime:"\u2032",Prime:"\u2033",primes:"\u2119",prnap:"\u2ab9",prnE:"\u2ab5",prnsim:"\u22e8",prod:"\u220f",Product:"\u220f",profalar:"\u232e",profline:"\u2312",profsurf:"\u2313",prop:"\u221d",Proportion:"\u2237",Proportional:"\u221d",propto:"\u221d",prsim:"\u227e",prurel:"\u22b0",pscr:"\u{1d4c5}",Pscr:"\u{1d4ab}",psi:"\u03c8",Psi:"\u03a8",puncsp:"\u2008",qfr:"\u{1d52e}",Qfr:"\u{1d514}",qint:"\u2a0c",qopf:"\u{1d562}",Qopf:"\u211a",qprime:"\u2057",qscr:"\u{1d4c6}",Qscr:"\u{1d4ac}",quaternions:"\u210d",quatint:"\u2a16",quest:"?",questeq:"\u225f",quot:'"',QUOT:'"',rAarr:"\u21db",race:"\u223d\u0331",racute:"\u0155",Racute:"\u0154",radic:"\u221a",raemptyv:"\u29b3",rang:"\u27e9",Rang:"\u27eb",rangd:"\u2992",range:"\u29a5",rangle:"\u27e9",raquo:"\xbb",rarr:"\u2192",rArr:"\u21d2",Rarr:"\u21a0",rarrap:"\u2975",rarrb:"\u21e5",rarrbfs:"\u2920",rarrc:"\u2933",rarrfs:"\u291e",rarrhk:"\u21aa",rarrlp:"\u21ac",rarrpl:"\u2945",rarrsim:"\u2974",rarrtl:"\u21a3",Rarrtl:"\u2916",rarrw:"\u219d",ratail:"\u291a",rAtail:"\u291c",ratio:"\u2236",rationals:"\u211a",rbarr:"\u290d",rBarr:"\u290f",RBarr:"\u2910",rbbrk:"\u2773",rbrace:"}",rbrack:"]",rbrke:"\u298c",rbrksld:"\u298e",rbrkslu:"\u2990",rcaron:"\u0159",Rcaron:"\u0158",rcedil:"\u0157",Rcedil:"\u0156",rceil:"\u2309",rcub:"}",rcy:"\u0440",Rcy:"\u0420",rdca:"\u2937",rdldhar:"\u2969",rdquo:"\u201d",rdquor:"\u201d",rdsh:"\u21b3",Re:"\u211c",real:"\u211c",realine:"\u211b",realpart:"\u211c",reals:"\u211d",rect:"\u25ad",reg:"\xae",REG:"\xae",ReverseElement:"\u220b",ReverseEquilibrium:"\u21cb",ReverseUpEquilibrium:"\u296f",rfisht:"\u297d",rfloor:"\u230b",rfr:"\u{1d52f}",Rfr:"\u211c",rHar:"\u2964",rhard:"\u21c1",rharu:"\u21c0",rharul:"\u296c",rho:"\u03c1",Rho:"\u03a1",rhov:"\u03f1",RightAngleBracket:"\u27e9",rightarrow:"\u2192",Rightarrow:"\u21d2",RightArrow:"\u2192",RightArrowBar:"\u21e5",RightArrowLeftArrow:"\u21c4",rightarrowtail:"\u21a3",RightCeiling:"\u2309",RightDoubleBracket:"\u27e7",RightDownTeeVector:"\u295d",RightDownVector:"\u21c2",RightDownVectorBar:"\u2955",RightFloor:"\u230b",rightharpoondown:"\u21c1",rightharpoonup:"\u21c0",rightleftarrows:"\u21c4",rightleftharpoons:"\u21cc",rightrightarrows:"\u21c9",rightsquigarrow:"\u219d",RightTee:"\u22a2",RightTeeArrow:"\u21a6",RightTeeVector:"\u295b",rightthreetimes:"\u22cc",RightTriangle:"\u22b3",RightTriangleBar:"\u29d0",RightTriangleEqual:"\u22b5",RightUpDownVector:"\u294f",RightUpTeeVector:"\u295c",RightUpVector:"\u21be",RightUpVectorBar:"\u2954",RightVector:"\u21c0",RightVectorBar:"\u2953",ring:"\u02da",risingdotseq:"\u2253",rlarr:"\u21c4",rlhar:"\u21cc",rlm:"\u200f",rmoust:"\u23b1",rmoustache:"\u23b1",rnmid:"\u2aee",roang:"\u27ed",roarr:"\u21fe",robrk:"\u27e7",ropar:"\u2986",ropf:"\u{1d563}",Ropf:"\u211d",roplus:"\u2a2e",rotimes:"\u2a35",RoundImplies:"\u2970",rpar:")",rpargt:"\u2994",rppolint:"\u2a12",rrarr:"\u21c9",Rrightarrow:"\u21db",rsaquo:"\u203a",rscr:"\u{1d4c7}",Rscr:"\u211b",rsh:"\u21b1",Rsh:"\u21b1",rsqb:"]",rsquo:"\u2019",rsquor:"\u2019",rthree:"\u22cc",rtimes:"\u22ca",rtri:"\u25b9",rtrie:"\u22b5",rtrif:"\u25b8",rtriltri:"\u29ce",RuleDelayed:"\u29f4",ruluhar:"\u2968",rx:"\u211e",sacute:"\u015b",Sacute:"\u015a",sbquo:"\u201a",sc:"\u227b",Sc:"\u2abc",scap:"\u2ab8",scaron:"\u0161",Scaron:"\u0160",sccue:"\u227d",sce:"\u2ab0",scE:"\u2ab4",scedil:"\u015f",Scedil:"\u015e",scirc:"\u015d",Scirc:"\u015c",scnap:"\u2aba",scnE:"\u2ab6",scnsim:"\u22e9",scpolint:"\u2a13",scsim:"\u227f",scy:"\u0441",Scy:"\u0421",sdot:"\u22c5",sdotb:"\u22a1",sdote:"\u2a66",searhk:"\u2925",searr:"\u2198",seArr:"\u21d8",searrow:"\u2198",sect:"\xa7",semi:";",seswar:"\u2929",setminus:"\u2216",setmn:"\u2216",sext:"\u2736",sfr:"\u{1d530}",Sfr:"\u{1d516}",sfrown:"\u2322",sharp:"\u266f",shchcy:"\u0449",SHCHcy:"\u0429",shcy:"\u0448",SHcy:"\u0428",ShortDownArrow:"\u2193",ShortLeftArrow:"\u2190",shortmid:"\u2223",shortparallel:"\u2225",ShortRightArrow:"\u2192",ShortUpArrow:"\u2191",shy:"\xad",sigma:"\u03c3",Sigma:"\u03a3",sigmaf:"\u03c2",sigmav:"\u03c2",sim:"\u223c",simdot:"\u2a6a",sime:"\u2243",simeq:"\u2243",simg:"\u2a9e",simgE:"\u2aa0",siml:"\u2a9d",simlE:"\u2a9f",simne:"\u2246",simplus:"\u2a24",simrarr:"\u2972",slarr:"\u2190",SmallCircle:"\u2218",smallsetminus:"\u2216",smashp:"\u2a33",smeparsl:"\u29e4",smid:"\u2223",smile:"\u2323",smt:"\u2aaa",smte:"\u2aac",smtes:"\u2aac\ufe00",softcy:"\u044c",SOFTcy:"\u042c",sol:"/",solb:"\u29c4",solbar:"\u233f",sopf:"\u{1d564}",Sopf:"\u{1d54a}",spades:"\u2660",spadesuit:"\u2660",spar:"\u2225",sqcap:"\u2293",sqcaps:"\u2293\ufe00",sqcup:"\u2294",sqcups:"\u2294\ufe00",Sqrt:"\u221a",sqsub:"\u228f",sqsube:"\u2291",sqsubset:"\u228f",sqsubseteq:"\u2291",sqsup:"\u2290",sqsupe:"\u2292",sqsupset:"\u2290",sqsupseteq:"\u2292",squ:"\u25a1",square:"\u25a1",Square:"\u25a1",SquareIntersection:"\u2293",SquareSubset:"\u228f",SquareSubsetEqual:"\u2291",SquareSuperset:"\u2290",SquareSupersetEqual:"\u2292",SquareUnion:"\u2294",squarf:"\u25aa",squf:"\u25aa",srarr:"\u2192",sscr:"\u{1d4c8}",Sscr:"\u{1d4ae}",ssetmn:"\u2216",ssmile:"\u2323",sstarf:"\u22c6",star:"\u2606",Star:"\u22c6",starf:"\u2605",straightepsilon:"\u03f5",straightphi:"\u03d5",strns:"\xaf",sub:"\u2282",Sub:"\u22d0",subdot:"\u2abd",sube:"\u2286",subE:"\u2ac5",subedot:"\u2ac3",submult:"\u2ac1",subne:"\u228a",subnE:"\u2acb",subplus:"\u2abf",subrarr:"\u2979",subset:"\u2282",Subset:"\u22d0",subseteq:"\u2286",subseteqq:"\u2ac5",SubsetEqual:"\u2286",subsetneq:"\u228a",subsetneqq:"\u2acb",subsim:"\u2ac7",subsub:"\u2ad5",subsup:"\u2ad3",succ:"\u227b",succapprox:"\u2ab8",succcurlyeq:"\u227d",Succeeds:"\u227b",SucceedsEqual:"\u2ab0",SucceedsSlantEqual:"\u227d",SucceedsTilde:"\u227f",succeq:"\u2ab0",succnapprox:"\u2aba",succneqq:"\u2ab6",succnsim:"\u22e9",succsim:"\u227f",SuchThat:"\u220b",sum:"\u2211",Sum:"\u2211",sung:"\u266a",sup:"\u2283",Sup:"\u22d1",sup1:"\xb9",sup2:"\xb2",sup3:"\xb3",supdot:"\u2abe",supdsub:"\u2ad8",supe:"\u2287",supE:"\u2ac6",supedot:"\u2ac4",Superset:"\u2283",SupersetEqual:"\u2287",suphsol:"\u27c9",suphsub:"\u2ad7",suplarr:"\u297b",supmult:"\u2ac2",supne:"\u228b",supnE:"\u2acc",supplus:"\u2ac0",supset:"\u2283",Supset:"\u22d1",supseteq:"\u2287",supseteqq:"\u2ac6",supsetneq:"\u228b",supsetneqq:"\u2acc",supsim:"\u2ac8",supsub:"\u2ad4",supsup:"\u2ad6",swarhk:"\u2926",swarr:"\u2199",swArr:"\u21d9",swarrow:"\u2199",swnwar:"\u292a",szlig:"\xdf",Tab:"\t",target:"\u2316",tau:"\u03c4",Tau:"\u03a4",tbrk:"\u23b4",tcaron:"\u0165",Tcaron:"\u0164",tcedil:"\u0163",Tcedil:"\u0162",tcy:"\u0442",Tcy:"\u0422",tdot:"\u20db",telrec:"\u2315",tfr:"\u{1d531}",Tfr:"\u{1d517}",there4:"\u2234",therefore:"\u2234",Therefore:"\u2234",theta:"\u03b8",Theta:"\u0398",thetasym:"\u03d1",thetav:"\u03d1",thickapprox:"\u2248",thicksim:"\u223c",ThickSpace:"\u205f\u200a",thinsp:"\u2009",ThinSpace:"\u2009",thkap:"\u2248",thksim:"\u223c",thorn:"\xfe",THORN:"\xde",tilde:"\u02dc",Tilde:"\u223c",TildeEqual:"\u2243",TildeFullEqual:"\u2245",TildeTilde:"\u2248",times:"\xd7",timesb:"\u22a0",timesbar:"\u2a31",timesd:"\u2a30",tint:"\u222d",toea:"\u2928",top:"\u22a4",topbot:"\u2336",topcir:"\u2af1",topf:"\u{1d565}",Topf:"\u{1d54b}",topfork:"\u2ada",tosa:"\u2929",tprime:"\u2034",trade:"\u2122",TRADE:"\u2122",triangle:"\u25b5",triangledown:"\u25bf",triangleleft:"\u25c3",trianglelefteq:"\u22b4",triangleq:"\u225c",triangleright:"\u25b9",trianglerighteq:"\u22b5",tridot:"\u25ec",trie:"\u225c",triminus:"\u2a3a",TripleDot:"\u20db",triplus:"\u2a39",trisb:"\u29cd",tritime:"\u2a3b",trpezium:"\u23e2",tscr:"\u{1d4c9}",Tscr:"\u{1d4af}",tscy:"\u0446",TScy:"\u0426",tshcy:"\u045b",TSHcy:"\u040b",tstrok:"\u0167",Tstrok:"\u0166",twixt:"\u226c",twoheadleftarrow:"\u219e",twoheadrightarrow:"\u21a0",uacute:"\xfa",Uacute:"\xda",uarr:"\u2191",uArr:"\u21d1",Uarr:"\u219f",Uarrocir:"\u2949",ubrcy:"\u045e",Ubrcy:"\u040e",ubreve:"\u016d",Ubreve:"\u016c",ucirc:"\xfb",Ucirc:"\xdb",ucy:"\u0443",Ucy:"\u0423",udarr:"\u21c5",udblac:"\u0171",Udblac:"\u0170",udhar:"\u296e",ufisht:"\u297e",ufr:"\u{1d532}",Ufr:"\u{1d518}",ugrave:"\xf9",Ugrave:"\xd9",uHar:"\u2963",uharl:"\u21bf",uharr:"\u21be",uhblk:"\u2580",ulcorn:"\u231c",ulcorner:"\u231c",ulcrop:"\u230f",ultri:"\u25f8",umacr:"\u016b",Umacr:"\u016a",uml:"\xa8",UnderBar:"_",UnderBrace:"\u23df",UnderBracket:"\u23b5",UnderParenthesis:"\u23dd",Union:"\u22c3",UnionPlus:"\u228e",uogon:"\u0173",Uogon:"\u0172",uopf:"\u{1d566}",Uopf:"\u{1d54c}",uparrow:"\u2191",Uparrow:"\u21d1",UpArrow:"\u2191",UpArrowBar:"\u2912",UpArrowDownArrow:"\u21c5",updownarrow:"\u2195",Updownarrow:"\u21d5",UpDownArrow:"\u2195",UpEquilibrium:"\u296e",upharpoonleft:"\u21bf",upharpoonright:"\u21be",uplus:"\u228e",UpperLeftArrow:"\u2196",UpperRightArrow:"\u2197",upsi:"\u03c5",Upsi:"\u03d2",upsih:"\u03d2",upsilon:"\u03c5",Upsilon:"\u03a5",UpTee:"\u22a5",UpTeeArrow:"\u21a5",upuparrows:"\u21c8",urcorn:"\u231d",urcorner:"\u231d",urcrop:"\u230e",uring:"\u016f",Uring:"\u016e",urtri:"\u25f9",uscr:"\u{1d4ca}",Uscr:"\u{1d4b0}",utdot:"\u22f0",utilde:"\u0169",Utilde:"\u0168",utri:"\u25b5",utrif:"\u25b4",uuarr:"\u21c8",uuml:"\xfc",Uuml:"\xdc",uwangle:"\u29a7",vangrt:"\u299c",varepsilon:"\u03f5",varkappa:"\u03f0",varnothing:"\u2205",varphi:"\u03d5",varpi:"\u03d6",varpropto:"\u221d",varr:"\u2195",vArr:"\u21d5",varrho:"\u03f1",varsigma:"\u03c2",varsubsetneq:"\u228a\ufe00",varsubsetneqq:"\u2acb\ufe00",varsupsetneq:"\u228b\ufe00",varsupsetneqq:"\u2acc\ufe00",vartheta:"\u03d1",vartriangleleft:"\u22b2",vartriangleright:"\u22b3",vBar:"\u2ae8",Vbar:"\u2aeb",vBarv:"\u2ae9",vcy:"\u0432",Vcy:"\u0412",vdash:"\u22a2",vDash:"\u22a8",Vdash:"\u22a9",VDash:"\u22ab",Vdashl:"\u2ae6",vee:"\u2228",Vee:"\u22c1",veebar:"\u22bb",veeeq:"\u225a",vellip:"\u22ee",verbar:"|",Verbar:"\u2016",vert:"|",Vert:"\u2016",VerticalBar:"\u2223",VerticalLine:"|",VerticalSeparator:"\u2758",VerticalTilde:"\u2240",VeryThinSpace:"\u200a",vfr:"\u{1d533}",Vfr:"\u{1d519}",vltri:"\u22b2",vnsub:"\u2282\u20d2",vnsup:"\u2283\u20d2",vopf:"\u{1d567}",Vopf:"\u{1d54d}",vprop:"\u221d",vrtri:"\u22b3",vscr:"\u{1d4cb}",Vscr:"\u{1d4b1}",vsubne:"\u228a\ufe00",vsubnE:"\u2acb\ufe00",vsupne:"\u228b\ufe00",vsupnE:"\u2acc\ufe00",Vvdash:"\u22aa",vzigzag:"\u299a",wcirc:"\u0175",Wcirc:"\u0174",wedbar:"\u2a5f",wedge:"\u2227",Wedge:"\u22c0",wedgeq:"\u2259",weierp:"\u2118",wfr:"\u{1d534}",Wfr:"\u{1d51a}",wopf:"\u{1d568}",Wopf:"\u{1d54e}",wp:"\u2118",wr:"\u2240",wreath:"\u2240",wscr:"\u{1d4cc}",Wscr:"\u{1d4b2}",xcap:"\u22c2",xcirc:"\u25ef",xcup:"\u22c3",xdtri:"\u25bd",xfr:"\u{1d535}",Xfr:"\u{1d51b}",xharr:"\u27f7",xhArr:"\u27fa",xi:"\u03be",Xi:"\u039e",xlarr:"\u27f5",xlArr:"\u27f8",xmap:"\u27fc",xnis:"\u22fb",xodot:"\u2a00",xopf:"\u{1d569}",Xopf:"\u{1d54f}",xoplus:"\u2a01",xotime:"\u2a02",xrarr:"\u27f6",xrArr:"\u27f9",xscr:"\u{1d4cd}",Xscr:"\u{1d4b3}",xsqcup:"\u2a06",xuplus:"\u2a04",xutri:"\u25b3",xvee:"\u22c1",xwedge:"\u22c0",yacute:"\xfd",Yacute:"\xdd",yacy:"\u044f",YAcy:"\u042f",ycirc:"\u0177",Ycirc:"\u0176",ycy:"\u044b",Ycy:"\u042b",yen:"\xa5",yfr:"\u{1d536}",Yfr:"\u{1d51c}",yicy:"\u0457",YIcy:"\u0407",yopf:"\u{1d56a}",Yopf:"\u{1d550}",yscr:"\u{1d4ce}",Yscr:"\u{1d4b4}",yucy:"\u044e",YUcy:"\u042e",yuml:"\xff",Yuml:"\u0178",zacute:"\u017a",Zacute:"\u0179",zcaron:"\u017e",Zcaron:"\u017d",zcy:"\u0437",Zcy:"\u0417",zdot:"\u017c",Zdot:"\u017b",zeetrf:"\u2128",ZeroWidthSpace:"\u200b",zeta:"\u03b6",Zeta:"\u0396",zfr:"\u{1d537}",Zfr:"\u2128",zhcy:"\u0436",ZHcy:"\u0416",zigrarr:"\u21dd",zopf:"\u{1d56b}",Zopf:"\u2124",zscr:"\u{1d4cf}",Zscr:"\u{1d4b5}",zwj:"\u200d",zwnj:"\u200c"},z={aacute:"\xe1",Aacute:"\xc1",acirc:"\xe2",Acirc:"\xc2",acute:"\xb4",aelig:"\xe6",AElig:"\xc6",agrave:"\xe0",Agrave:"\xc0",amp:"&",AMP:"&",aring:"\xe5",Aring:"\xc5",atilde:"\xe3",Atilde:"\xc3",auml:"\xe4",Auml:"\xc4",brvbar:"\xa6",ccedil:"\xe7",Ccedil:"\xc7",cedil:"\xb8",cent:"\xa2",copy:"\xa9",COPY:"\xa9",curren:"\xa4",deg:"\xb0",divide:"\xf7",eacute:"\xe9",Eacute:"\xc9",ecirc:"\xea",Ecirc:"\xca",egrave:"\xe8",Egrave:"\xc8",eth:"\xf0",ETH:"\xd0",euml:"\xeb",Euml:"\xcb",frac12:"\xbd",frac14:"\xbc",frac34:"\xbe",gt:">",GT:">",iacute:"\xed",Iacute:"\xcd",icirc:"\xee",Icirc:"\xce",iexcl:"\xa1",igrave:"\xec",Igrave:"\xcc",iquest:"\xbf",iuml:"\xef",Iuml:"\xcf",laquo:"\xab",lt:"<",LT:"<",macr:"\xaf",micro:"\xb5",middot:"\xb7",nbsp:"\xa0",not:"\xac",ntilde:"\xf1",Ntilde:"\xd1",oacute:"\xf3",Oacute:"\xd3",ocirc:"\xf4",Ocirc:"\xd4",ograve:"\xf2",Ograve:"\xd2",ordf:"\xaa",ordm:"\xba",oslash:"\xf8",Oslash:"\xd8",otilde:"\xf5",Otilde:"\xd5",ouml:"\xf6",Ouml:"\xd6",para:"\xb6",plusmn:"\xb1",pound:"\xa3",quot:'"',QUOT:'"',raquo:"\xbb",reg:"\xae",REG:"\xae",sect:"\xa7",shy:"\xad",sup1:"\xb9",sup2:"\xb2",sup3:"\xb3",szlig:"\xdf",thorn:"\xfe",THORN:"\xde",times:"\xd7",uacute:"\xfa",Uacute:"\xda",ucirc:"\xfb",Ucirc:"\xdb",ugrave:"\xf9",Ugrave:"\xd9",uml:"\xa8",uuml:"\xfc",Uuml:"\xdc",yacute:"\xfd",Yacute:"\xdd",yen:"\xa5",yuml:"\xff"},re={0:"\ufffd",128:"\u20ac",130:"\u201a",131:"\u0192",132:"\u201e",133:"\u2026",134:"\u2020",135:"\u2021",136:"\u02c6",137:"\u2030",138:"\u0160",139:"\u2039",140:"\u0152",142:"\u017d",145:"\u2018",146:"\u2019",147:"\u201c",148:"\u201d",149:"\u2022",150:"\u2013",151:"\u2014",152:"\u02dc",153:"\u2122",154:"\u0161",155:"\u203a",156:"\u0153",158:"\u017e",159:"\u0178"},we=[1,2,3,4,5,6,7,8,11,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,127,128,129,130,131,132,133,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,158,159,64976,64977,64978,64979,64980,64981,64982,64983,64984,64985,64986,64987,64988,64989,64990,64991,64992,64993,64994,64995,64996,64997,64998,64999,65e3,65001,65002,65003,65004,65005,65006,65007,65534,65535,131070,131071,196606,196607,262142,262143,327678,327679,393214,393215,458750,458751,524286,524287,589822,589823,655358,655359,720894,720895,786430,786431,851966,851967,917502,917503,983038,983039,1048574,1048575,1114110,1114111],$=String.fromCharCode,b={}.hasOwnProperty,K=function(ke,Ve){return b.call(ke,Ve)},oe=function(ke,Ve){if(!ke)return Ve;var ye,se={};for(ye in Ve)se[ye]=K(ke,ye)?ke[ye]:Ve[ye];return se},_e=function(ke,Ve){var se="";return ke>=55296&&ke<=57343||ke>1114111?(Ve&&X("character reference outside the permissible Unicode range"),"\ufffd"):K(re,ke)?(Ve&&X("disallowed character reference"),re[ke]):(Ve&&function(ke,Ve){for(var se=-1,ye=ke.length;++se65535&&(se+=$((ke-=65536)>>>10&1023|55296),ke=56320|1023&ke),se+=$(ke))},V=function(ke){return"&#x"+ke.toString(16).toUpperCase()+";"},N=function(ke){return"&#"+ke+";"},X=function(ke){throw Error("Parse error: "+ke)},pe=function(ke,Ve){(Ve=oe(Ve,pe.options)).strict&&S.test(ke)&&X("forbidden code point");var Ce=Ve.useNamedReferences,ae=Ve.allowUnsafeSymbols,R=Ve.decimal?N:V,We=function(Ge){return R(Ge.charCodeAt(0))};return Ve.encodeEverything?(ke=ke.replace(I,function(Ge){return Ce&&K(E,Ge)?"&"+E[Ge]+";":We(Ge)}),Ce&&(ke=ke.replace(/>\u20D2/g,">⃒").replace(/<\u20D2/g,"<⃒").replace(/fj/g,"fj")),Ce&&(ke=ke.replace(T,function(Ge){return"&"+E[Ge]+";"}))):Ce?(ae||(ke=ke.replace(P,function(Ge){return"&"+E[Ge]+";"})),ke=(ke=ke.replace(/>\u20D2/g,">⃒").replace(/<\u20D2/g,"<⃒")).replace(T,function(Ge){return"&"+E[Ge]+";"})):ae||(ke=ke.replace(P,We)),ke.replace(F,function(Ge){var Nt=Ge.charCodeAt(0),ln=Ge.charCodeAt(1);return R(1024*(Nt-55296)+ln-56320+65536)}).replace(O,We)};pe.options={allowUnsafeSymbols:!1,encodeEverything:!1,strict:!1,useNamedReferences:!1,decimal:!1};var he=function(ke,Ve){var se=(Ve=oe(Ve,he.options)).strict;return se&&k.test(ke)&&X("malformed character reference"),ke.replace(x,function(ye,Ce,ae,R,We,Ge,Nt,ln,ui){var Hi,Qs,Ch,wh,vt,ko;return Ce?B[vt=Ce]:ae?(vt=ae,(ko=R)&&Ve.isAttributeValue?(se&&"="==ko&&X("`&` did not start a character reference"),ye):(se&&X("named character reference was not terminated by a semicolon"),z[vt]+(ko||""))):We?(Ch=We,Qs=Ge,se&&!Qs&&X("character reference was not terminated by a semicolon"),Hi=parseInt(Ch,10),_e(Hi,se)):Nt?(wh=Nt,Qs=ln,se&&!Qs&&X("character reference was not terminated by a semicolon"),Hi=parseInt(wh,16),_e(Hi,se)):(se&&X("named character reference was not terminated by a semicolon"),ye)})};he.options={isAttributeValue:!1,strict:!1};var je={version:"1.2.0",encode:pe,decode:he,escape:function(ke){return ke.replace(P,function(Ve){return D[Ve]})},unescape:he};void 0!==(le=function(){return je}.call(w,G,w,Le))&&(Le.exports=le)}()},4856:(Le,w,G)=>{Le.exports=G(1652)},7287:(Le,w,G)=>{G(9542);const{trimCharacter:de}=G(1458),{BlockStackItem:Q,TableCellStackItem:q,TableRowStackItem:F,TableStackItem:I,TransformerStackItem:O}=G(6237),{tableToString:T}=G(8186),{WhitespaceProcessor:E}=G(7139);function D(S){if(!(S instanceof Q||S instanceof q))throw new Error("Only blocks and table cells can be requested for text contents.");return S.inlineTextBuilder.isEmpty()?S.rawText:S.rawText+S.inlineTextBuilder.toString()}function k(S,x,B,z){if(!(S instanceof Q||S instanceof q))throw new Error("Only blocks and table cells can contain text.");const re=D(S),we=Math.max(S.stashedLineBreaks,B);S.inlineTextBuilder.clear(),re?S.rawText=re+"\n".repeat(we)+x:(S.rawText=x,S.leadingLineBreaks=we),S.stashedLineBreaks=z}G(4563),Le.exports={BlockTextBuilder:class P{constructor(x,B){this.options=x,this.picker=B,this.whitespaceProcessor=new E(x),this._stackItem=new Q(x),this._wordTransformer=void 0}pushWordTransform(x){this._wordTransformer=new O(this._wordTransformer,x)}popWordTransform(){if(!this._wordTransformer)return;const x=this._wordTransformer.transform;return this._wordTransformer=this._wordTransformer.next,x}_getCombinedWordTransformer(){const x=(B,z)=>z?x(z.transform(B),z.next):B;return B=>x(B,this._wordTransformer)}_popStackItem(){const x=this._stackItem;return this._stackItem=x.next,x}addLineBreak(){(this._stackItem instanceof Q||this._stackItem instanceof q)&&(this._stackItem.isPre?this._stackItem.rawText+="\n":this._stackItem.inlineTextBuilder.startNewLine())}addWordBreakOpportunity(){(this._stackItem instanceof Q||this._stackItem instanceof q)&&(this._stackItem.inlineTextBuilder.wordBreakOpportunity=!0)}addInline(x,B={}){this._addInline(x,"object"==typeof B?B:{noWordTransform:B})}_addInline(x,{noWordTransform:B=!1}={}){if(this._stackItem instanceof Q||this._stackItem instanceof q){if(this._stackItem.isPre)return void(this._stackItem.rawText+=x);if(0!==x.length&&(!this._stackItem.stashedLineBreaks||this.whitespaceProcessor.testContainsWords(x))){if(this.options.preserveNewlines){const z=this.whitespaceProcessor.countNewlinesNoWords(x);if(z>0)return void this._stackItem.inlineTextBuilder.startNewLine(z)}this._stackItem.stashedLineBreaks&&this._stackItem.inlineTextBuilder.startNewLine(this._stackItem.stashedLineBreaks),this.whitespaceProcessor.shrinkWrapAdd(x,this._stackItem.inlineTextBuilder,this._wordTransformer&&!B?this._getCombinedWordTransformer():void 0),this._stackItem.stashedLineBreaks=0}}}openBlock(x={},B,z){this._openBlock("object"==typeof x?x:{isPre:z,leadingLineBreaks:x,reservedLineLength:B})}_openBlock({leadingLineBreaks:x=1,reservedLineLength:B=0,isPre:z=!1}={}){const re=Math.max(20,this._stackItem.inlineTextBuilder.maxLineLength-B);this._stackItem=new Q(this.options,this._stackItem,x,re),z&&(this._stackItem.isPre=!0)}closeBlock(x={},B){this._closeBlock("object"==typeof x?x:{trailingLineBreaks:x,blockTransform:B})}_closeBlock({trailingLineBreaks:x=1,blockTransform:B}={}){const z=this._popStackItem(),re=B?B(D(z)):D(z);k(this._stackItem,re,z.leadingLineBreaks,Math.max(z.stashedLineBreaks,x))}openTable(){this._stackItem=new I(this._stackItem)}openTableRow(){if(!(this._stackItem instanceof I))throw new Error("Can't add table row to something that is not a table! Check the formatter.");this._stackItem=new F(this._stackItem)}openTableCell(x={}){this._openTableCell("object"==typeof x?x:{maxColumnWidth:x})}_openTableCell({maxColumnWidth:x}={}){if(!(this._stackItem instanceof F))throw new Error("Can't add table cell to something that is not a table row! Check the formatter.");this._stackItem=new q(this.options,this._stackItem,x)}closeTableCell(x={},B){this._closeTableCell("object"==typeof x?x:{colspan:x,rowspan:B})}_closeTableCell({colspan:x=1,rowspan:B=1}={}){const z=this._popStackItem(),re=de(D(z),"\n");z.next.cells.push({colspan:x,rowspan:B,text:re})}closeTableRow(){const x=this._popStackItem();x.next.rows.push(x.cells)}closeTable(x={},B,z,re){this._closeTable("object"==typeof x?x:{colSpacing:x,leadingLineBreaks:z,rowSpacing:B,trailingLineBreaks:re})}_closeTable({colSpacing:x=3,rowSpacing:B=0,leadingLineBreaks:z=2,trailingLineBreaks:re=2}={}){const we=this._popStackItem(),$=T(we.rows,B,x);$&&k(this._stackItem,$,z,re)}toString(){return D(this._stackItem.getRoot())}}}},7723:(Le,w,G)=>{const le=G(3537),{get:de,numberToLetterSequence:Y,numberToRoman:Q,splitClassesAndIds:q,trimCharacter:F}=G(1458);function T(V,N,X,pe){X.openBlock({leadingLineBreaks:pe.leadingLineBreaks}),N(V.children,X),X.closeBlock({trailingLineBreaks:pe.trailingLineBreaks})}function z(V,N){return N?("string"==typeof N[0]?N[0]:"[")+V+("string"==typeof N[1]?N[1]:"]"):V}function $(V,N,X,pe,he){const Be="li"===de(V,["parent","name"]);let je=0;const xt=(V.children||[]).filter(se=>"text"!==se.type||!/^\s*$/.test(se.data)).map(function(se){if("li"!==se.name)return{node:se,prefix:""};const ye=Be?he().trimStart():he();return ye.length>je&&(je=ye.length),{node:se,prefix:ye}});if(!xt.length)return;const ke=je,Ve="\n"+" ".repeat(ke);X.openBlock({leadingLineBreaks:Be?1:pe.leadingLineBreaks||2});for(const{node:se,prefix:ye}of xt)X.openBlock({leadingLineBreaks:1,reservedLineLength:ke}),N([se],X),X.closeBlock({trailingLineBreaks:1,blockTransform:Ce=>ye+" ".repeat(ke-ye.length)+Ce.replace(/\n/g,Ve)});X.closeBlock({trailingLineBreaks:Be?1:pe.trailingLineBreaks||2})}function _e(V,N,X,pe){function he(je){const xt=+de(je,["attribs","colspan"])||1,ke=+de(je,["attribs","rowspan"])||1;X.openTableCell({maxColumnWidth:pe.maxColumnWidth}),N(je.children,X),X.closeTableCell({colspan:xt,rowspan:ke})}X.openTable(),V.children.forEach(function Be(je){if("tag"!==je.type)return;const xt=!1!==pe.uppercaseHeaderCells?ke=>{X.pushWordTransform(Ve=>Ve.toUpperCase()),he(ke),X.popWordTransform()}:he;switch(je.name){case"thead":case"tbody":case"tfoot":case"center":return void je.children.forEach(Be);case"tr":X.openTableRow();for(const ke of je.children)if("tag"===ke.type)switch(ke.name){case"th":xt(ke);break;case"td":he(ke)}X.closeTableRow()}}),X.closeTable({colSpacing:pe.colSpacing,leadingLineBreaks:pe.leadingLineBreaks,rowSpacing:pe.rowSpacing,trailingLineBreaks:pe.trailingLineBreaks})}G(4563),Le.exports={anchor:function we(V,N,X,pe){const Be=function he(){if(pe.ignoreHref||!V.attribs||!V.attribs.href)return"";let je=V.attribs.href.replace(/^mailto:/,"");return pe.noAnchorUrl&&"#"===je[0]?"":(je=pe.baseUrl&&"/"===je[0]?pe.baseUrl+je:je,le.decode(je,X.options.decodeOptions))}();if(Be){let je="";X.pushWordTransform(ke=>(ke&&(je+=ke),ke)),N(V.children,X),X.popWordTransform(),pe.hideLinkHrefIfSameAsText&&Be===je||X.addInline(je?" "+z(Be,pe.linkBrackets):Be,{noWordTransform:!0})}else N(V.children,X)},block:T,blockquote:function B(V,N,X,pe){X.openBlock({leadingLineBreaks:pe.leadingLineBreaks||2,reservedLineLength:2}),N(V.children,X),X.closeBlock({trailingLineBreaks:pe.trailingLineBreaks||2,blockTransform:he=>(!1!==pe.trimEmptyLines?F(he,"\n"):he).split("\n").map(Be=>"> "+Be).join("\n")})},dataTable:_e,heading:function x(V,N,X,pe){X.openBlock({leadingLineBreaks:pe.leadingLineBreaks||2}),!1!==pe.uppercase?(X.pushWordTransform(he=>he.toUpperCase()),N(V.children,X),X.popWordTransform()):N(V.children,X),X.closeBlock({trailingLineBreaks:pe.trailingLineBreaks||2})},horizontalLine:function D(V,N,X,pe){X.openBlock({leadingLineBreaks:pe.leadingLineBreaks||2}),X.addInline("-".repeat(pe.length||X.options.wordwrap||40)),X.closeBlock({trailingLineBreaks:pe.trailingLineBreaks||2})},image:function re(V,N,X,pe){const he=V.attribs||{},Be=he.alt?le.decode(he.alt,X.options.decodeOptions):"",je=he.src?pe.baseUrl&&0===he.src.indexOf("/")?pe.baseUrl+he.src:he.src:"",xt=je?Be?Be+" "+z(je,pe.linkBrackets):z(je,pe.linkBrackets):Be;X.addInline(xt)},inline:function O(V,N,X,pe){N(V.children,X)},lineBreak:function E(V,N,X,pe){X.addLineBreak()},orderedList:function b(V,N,X,pe){let he=Number(V.attribs.start||"1");const Be=function K(V="1"){switch(V){case"a":return N=>Y(N,"a");case"A":return N=>Y(N,"A");case"i":return N=>Q(N).toLowerCase();case"I":return N=>Q(N);default:return N=>N.toString()}}(V.attribs.type);return $(V,N,X,pe,()=>" "+Be(he++)+". ")},paragraph:function k(V,N,X,pe){X.openBlock({leadingLineBreaks:pe.leadingLineBreaks||2}),N(V.children,X),X.closeBlock({trailingLineBreaks:pe.trailingLineBreaks||2})},pre:function S(V,N,X,pe){X.openBlock({isPre:!0,leadingLineBreaks:pe.leadingLineBreaks||2}),N(V.children,X),X.closeBlock({trailingLineBreaks:pe.trailingLineBreaks||2})},skip:function I(V,N,X,pe){},table:function oe(V,N,X,pe){return function L(V,N){if(!0===N)return!0;if(!V)return!1;const{classes:X,ids:pe}=q(N),he=(V.class||"").split(" "),Be=(V.id||"").split(" ");return he.some(je=>X.includes(je))||Be.some(je=>pe.includes(je))}(V.attribs,X.options.tables)?_e(V,N,X,pe):T(V,N,X,pe)},unorderedList:function ie(V,N,X,pe){const he=pe.itemPrefix||" * ";return $(V,N,X,pe,()=>he)},wbr:function P(V,N,X,pe){X.addWordBreakOpportunity()}}},1458:(Le,w,G)=>{const le=G(4999),q=["I","X","C","M"],F=["V","L","D"],P=(D,k,S)=>[...k];Le.exports={get:function T(D,k){for(const S of k){if(!D)return;D=D[S]}return D},limitedDepthRecursive:function Y(D,k,S=(()=>{})){if(void 0===D){const x=function(...B){return k(x,...B)};return x}return D>=0?function(...x){return k(Y(D-1,k,S),...x)}:S},mergeDuplicatesPreferLast:function E(D,k){const S=new Map;for(let x=D.length;x-- >0;){const B=D[x],z=k(B);S.set(z,S.has(z)?le(B,S.get(z),{arrayMerge:P}):B)}return[...S.values()].reverse()},numberToLetterSequence:function Q(D,k="a",S=26){const x=[];do{x.push((D-=1)%S),D=D/S>>0}while(D>0);const B=k.charCodeAt(0);return x.reverse().map(z=>String.fromCharCode(B+z)).join("")},numberToRoman:function I(D){return[...D+""].map(k=>+k).reverse().map((k,S)=>k%5<4?(k<5?"":F[S])+q[S].repeat(k%5):q[S]+(k<5?F[S]:q[S+1])).reverse().join("")},splitClassesAndIds:function de(D){const k=[],S=[];for(const x of D)x.startsWith(".")?k.push(x.substring(1)):x.startsWith("#")&&S.push(x.substring(1));return{classes:k,ids:S}},trimCharacter:function O(D,k){let S=0,x=D.length;for(;SS&&D[x-1]===k;)--x;return S>0||x{const{hp2Builder:le}=G(5999),de=G(4999),Y=G(3537),Q=G(534),q=G(9542),{BlockTextBuilder:F}=G(7287),I=G(7723),{limitedDepthRecursive:O,mergeDuplicatesPreferLast:T,get:E}=G(1458);G(4563);const P={baseElements:{selectors:["body"],orderBy:"selectors",returnDomByDefault:!0},decodeOptions:{isAttributeValue:!1,strict:!1},formatters:{},limits:{ellipsis:"...",maxBaseElements:void 0,maxChildNodes:void 0,maxDepth:void 0,maxInputLength:1<<24},longWordSplit:{forceWrapOnLimit:!1,wrapCharacters:[]},preserveNewlines:!1,selectors:[{selector:"*",format:"inline"},{selector:"a",format:"anchor",options:{baseUrl:null,hideLinkHrefIfSameAsText:!1,ignoreHref:!1,linkBrackets:["[","]"],noAnchorUrl:!0}},{selector:"article",format:"block"},{selector:"aside",format:"block"},{selector:"blockquote",format:"blockquote",options:{leadingLineBreaks:2,trailingLineBreaks:2,trimEmptyLines:!0}},{selector:"br",format:"lineBreak"},{selector:"div",format:"block"},{selector:"footer",format:"block"},{selector:"form",format:"block"},{selector:"h1",format:"heading",options:{leadingLineBreaks:3,trailingLineBreaks:2,uppercase:!0}},{selector:"h2",format:"heading",options:{leadingLineBreaks:3,trailingLineBreaks:2,uppercase:!0}},{selector:"h3",format:"heading",options:{leadingLineBreaks:3,trailingLineBreaks:2,uppercase:!0}},{selector:"h4",format:"heading",options:{leadingLineBreaks:2,trailingLineBreaks:2,uppercase:!0}},{selector:"h5",format:"heading",options:{leadingLineBreaks:2,trailingLineBreaks:2,uppercase:!0}},{selector:"h6",format:"heading",options:{leadingLineBreaks:2,trailingLineBreaks:2,uppercase:!0}},{selector:"header",format:"block"},{selector:"hr",format:"horizontalLine",options:{leadingLineBreaks:2,length:void 0,trailingLineBreaks:2}},{selector:"img",format:"image",options:{baseUrl:null,linkBrackets:["[","]"]}},{selector:"main",format:"block"},{selector:"nav",format:"block"},{selector:"ol",format:"orderedList",options:{leadingLineBreaks:2,trailingLineBreaks:2}},{selector:"p",format:"paragraph",options:{leadingLineBreaks:2,trailingLineBreaks:2}},{selector:"pre",format:"pre",options:{leadingLineBreaks:2,trailingLineBreaks:2}},{selector:"section",format:"block"},{selector:"table",format:"table",options:{colSpacing:3,leadingLineBreaks:2,maxColumnWidth:60,rowSpacing:0,trailingLineBreaks:2,uppercaseHeaderCells:!0}},{selector:"ul",format:"unorderedList",options:{itemPrefix:" * ",leadingLineBreaks:2,trailingLineBreaks:2}},{selector:"wbr",format:"wbr"}],tables:[],whitespaceCharacters:" \t\r\n\f\u200b",wordwrap:80},k=(b,K,L)=>[...K],S=(b,K,L)=>b.some(oe=>"object"==typeof oe)?((b,K,L)=>[...b,...K])(b,K):k(0,K);function x(b={}){(b=de(P,b,{arrayMerge:k,customMerge:N=>"selectors"===N?S:void 0})).formatters=Object.assign({},I,b.formatters),b.selectors=T(b.selectors,N=>N.selector),function re(b){const K=b.selectors;if(b.tags){const _e=Object.entries(b.tags).map(([V,N])=>({...N,selector:V||"*"}));K.push(..._e)}function L(_e,V,N){const X=V.pop();for(const pe of V){let he=_e[pe];he||(he={},_e[pe]=he),_e=he}_e[X]=N}function oe(_e,V,N){if(void 0!==b[_e])for(const X of K)X.format===V&&L(X,["options",N],b[_e])}if(oe("hideLinkHrefIfSameAsText","anchor","hideLinkHrefIfSameAsText"),oe("ignoreHref","anchor","ignoreHref"),oe("linkHrefBaseUrl","anchor","baseUrl"),oe("noAnchorUrl","anchor","noAnchorUrl"),oe("noLinkBrackets","anchor","noLinkBrackets"),oe("linkHrefBaseUrl","image","baseUrl"),oe("unorderedListItemPrefix","unorderedList","itemPrefix"),oe("uppercaseHeadings","heading","uppercase"),oe("uppercaseHeadings","table","uppercaseHeadings"),oe("uppercaseHeadings","dataTable","uppercaseHeadings"),b.ignoreImage)for(const _e of K)"image"===_e.format&&(_e.format="skip");if(b.singleNewLineParagraphs)for(const _e of K)("paragraph"===_e.format||"pre"===_e.format)&&(L(_e,["options","leadingLineBreaks"],1),L(_e,["options","trailingLineBreaks"],1));if(b.baseElement){const _e=b.baseElement;L(b,["baseElements","selectors"],Array.isArray(_e)?_e:[_e])}void 0!==b.returnDomByDefault&&L(b,["baseElements","returnDomByDefault"],b.returnDomByDefault);for(const _e of K)"anchor"===_e.format&&E(_e,["options","noLinkBrackets"])&&L(_e,["options","linkBrackets"],!1)}(b);const K=b.selectors.filter(N=>!N.format);if(K.length)throw new Error("Following selectors have no specified format: "+K.map(N=>`\`${N.selector}\``).join(", "));const L=new q.DecisionTree(b.selectors.map(N=>[N.selector,N])).build(le),oe=new q.DecisionTree(b.baseElements.selectors.map((N,X)=>[N,X+1])).build(le);function _e(N){return function we(b,K,L){const oe=[];return O(K.limits.maxDepth,function _e(N,X){X=X.slice(0,K.limits.maxChildNodes);for(const pe of X){if("tag"!==pe.type)continue;const he=L.pick1(pe);if(he>0?oe.push({selectorIndex:he,element:pe}):pe.children&&N(pe.children),oe.length>=K.limits.maxBaseElements)return}})(b),"occurrence"!==K.baseElements.orderBy&&oe.sort((N,X)=>N.selectorIndex-X.selectorIndex),K.baseElements.returnDomByDefault&&0===oe.length?b:oe.map(N=>N.element)}(N,b,oe)}const V=O(b.limits.maxDepth,$,function(N,X){X.addInline(b.limits.ellipsis||"")});return function(N){return function B(b,K,L,oe,_e){const V=K.limits.maxInputLength;V&&b&&b.length>V&&(console.warn(`Input length ${b.length} is above allowed limit of ${V}. Truncating without ellipsis.`),b=b.substring(0,V));const N=new Q.DomHandler;new Q.Parser(N,{decodeEntities:!1}).parseComplete(b);const X=oe(N.dom),pe=new F(K,L);return _e(X,pe),pe.toString()}(N,b,L,_e,V)}}function z(b,K={}){return x(K)(b)}function $(b,K,L){if(!K)return;const oe=L.options;K.length>oe.limits.maxChildNodes&&(K=K.slice(0,oe.limits.maxChildNodes)).push({data:oe.limits.ellipsis,type:"text"});for(const V of K)switch(V.type){case"text":L.addInline(Y.decode(V.data,oe.decodeOptions));break;case"tag":{const N=L.picker.pick1(V);(0,oe.formatters[N.format])(V,b,L,N.options||{});break}}}Le.exports={compile:x,convert:z,fromString:(b,K={})=>z(b,K),htmlToText:z}},8395:(Le,w,G)=>{G(4563),Le.exports={InlineTextBuilder:class le{constructor(Y,Q){this.lines=[],this.nextLineWords=[],this.maxLineLength=Q||Y.wordwrap||Number.MAX_VALUE,this.nextLineAvailableChars=this.maxLineLength,this.wrapCharacters=Y.longWordSplit.wrapCharacters||[],this.forceWrapOnLimit=Y.longWordSplit.forceWrapOnLimit||!1,this.stashedSpace=!1,this.wordBreakOpportunity=!1}pushWord(Y){this.nextLineAvailableChars<=0&&this.startNewLine();const Q=0===this.nextLineWords.length,q=Y.length+(Q?0:1);if(q<=this.nextLineAvailableChars)this.nextLineWords.push(Y),this.nextLineAvailableChars-=q;else{const[F,...I]=this.splitLongWord(Y);Q||this.startNewLine(),this.nextLineWords.push(F),this.nextLineAvailableChars-=F.length;for(const O of I)this.startNewLine(),this.nextLineWords.push(O),this.nextLineAvailableChars-=O.length}}popWord(){const Y=this.nextLineWords.pop();return void 0!==Y&&(this.nextLineAvailableChars+=Y.length+(0===this.nextLineWords.length?0:1)),Y}concatWord(Y){if(this.wordBreakOpportunity&&Y.length>this.nextLineAvailableChars)this.pushWord(Y),this.wordBreakOpportunity=!1;else{const Q=this.popWord();this.pushWord(Q?Q.concat(Y):Y)}}startNewLine(Y=1){this.lines.push(this.nextLineWords),Y>1&&this.lines.push(...Array.from({length:Y-1},()=>[])),this.nextLineWords=[],this.nextLineAvailableChars=this.maxLineLength}isEmpty(){return 0===this.lines.length&&0===this.nextLineWords.length}clear(){this.lines.length=0,this.nextLineWords.length=0,this.nextLineAvailableChars=this.maxLineLength}toString(){return[...this.lines,this.nextLineWords].map(Y=>Y.join(" ")).join("\n")}splitLongWord(Y){const Q=[];let q=0;for(;Y.length>this.maxLineLength;){const F=Y.substring(0,this.maxLineLength),I=Y.substring(this.maxLineLength),O=F.lastIndexOf(this.wrapCharacters[q]);if(O>-1)Y=F.substring(O+1)+I,Q.push(F.substring(0,O+1));else{if(q++,!(qthis.maxLineLength)continue}else Y=F+I;break}Y=F+I}}return Q.push(Y),Q}}}},6237:(Le,w,G)=>{const{InlineTextBuilder:le}=G(8395);class de{constructor(T=null){this.next=T}getRoot(){return this.next?this.next:this}}Le.exports={BlockStackItem:class Y extends de{constructor(T,E=null,P=1,D){super(E),this.leadingLineBreaks=P,this.inlineTextBuilder=new le(T,D),this.rawText="",this.stashedLineBreaks=0,this.isPre=E&&E.isPre}},StackItem:de,TableCellStackItem:class F extends de{constructor(T,E=null,P){super(E),this.inlineTextBuilder=new le(T,P),this.rawText="",this.stashedLineBreaks=0,this.isPre=E&&E.isPre}},TableRowStackItem:class q extends de{constructor(T=null){super(T),this.cells=[],this.isPre=T&&T.isPre}},TableStackItem:class Q extends de{constructor(T=null){super(T),this.rows=[],this.isPre=T&&T.isPre}},TransformerStackItem:class I extends de{constructor(T=null,E){super(T),this.transform=E}}}},8186:Le=>{function w(q,F){return q[F]||(q[F]=[]),q[F]}function G(q,F=0){for(;q[F];)F++;return F}function de(q,F,I,O){for(let T=0;TT?x.length:T}!function le(q,F){for(let I=0;IT?E:T);const D=[],k=[0];for(let S=0;Sz?we.length:z}Y(k,S,B.colspan,z+I),B.rendered=!0}x+=B.rowspan}}return D.join("\n")}}},4563:()=>{},7139:(Le,w,G)=>{G(8395),G(4563),Le.exports={WhitespaceProcessor:class Y{constructor(q){this.whitespaceChars=q.preserveNewlines?q.whitespaceCharacters.replace(/\n/g,""):q.whitespaceCharacters;const F=function de(Q){return[...Q].map(q=>"\\u"+q.charCodeAt(0).toString(16).padStart(4,"0")).join("")}(this.whitespaceChars);if(this.leadingWhitespaceRe=new RegExp(`^[${F}]`),this.trailingWhitespaceRe=new RegExp(`[${F}]$`),this.allWhitespaceOrEmptyRe=new RegExp(`^[${F}]*$`),this.newlineOrNonWhitespaceRe=new RegExp(`(\\n|[^\\n${F}])`,"g"),q.preserveNewlines){const I=new RegExp(`\\n|[^\\n${F}]+`,"gm");this.shrinkWrapAdd=function(O,T,E=(P=>P)){if(!O)return;const P=T.stashedSpace;let D=!1,k=I.exec(O);if(k)for(D=!0,"\n"===k[0]?T.startNewLine():P||this.testLeadingWhitespace(O)?T.pushWord(E(k[0])):T.concatWord(E(k[0]));null!==(k=I.exec(O));)"\n"===k[0]?T.startNewLine():T.pushWord(E(k[0]));T.stashedSpace=P&&!D||this.testTrailingWhitespace(O)}}else{const I=new RegExp(`[^${F}]+`,"g");this.shrinkWrapAdd=function(O,T,E=(P=>P)){if(!O)return;const P=T.stashedSpace;let D=!1,k=I.exec(O);if(k)for(D=!0,P||this.testLeadingWhitespace(O)?T.pushWord(E(k[0])):T.concatWord(E(k[0]));null!==(k=I.exec(O));)T.pushWord(E(k[0]));T.stashedSpace=P&&!D||this.testTrailingWhitespace(O)}}}testLeadingWhitespace(q){return this.leadingWhitespaceRe.test(q)}testTrailingWhitespace(q){return this.trailingWhitespaceRe.test(q)}testContainsWords(q){return!this.allWhitespaceOrEmptyRe.test(q)}countNewlinesNoWords(q){this.newlineOrNonWhitespaceRe.lastIndex=0;let I,F=0;for(;null!==(I=this.newlineOrNonWhitespaceRe.exec(q));){if("\n"!==I[0])return 0;F++}return F}}}},1126:function(Le,w,G){"use strict";var $,le=this&&this.__extends||($=function(ie,b){return($=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(K,L){K.__proto__=L}||function(K,L){for(var oe in L)Object.prototype.hasOwnProperty.call(L,oe)&&(K[oe]=L[oe])})(ie,b)},function(ie,b){if("function"!=typeof b&&null!==b)throw new TypeError("Class extends value "+String(b)+" is not a constructor or null");function K(){this.constructor=ie}$(ie,b),ie.prototype=null===b?Object.create(b):(K.prototype=b.prototype,new K)}),de=this&&this.__createBinding||(Object.create?function($,ie,b,K){void 0===K&&(K=b),Object.defineProperty($,K,{enumerable:!0,get:function(){return ie[b]}})}:function($,ie,b,K){void 0===K&&(K=b),$[K]=ie[b]}),Y=this&&this.__setModuleDefault||(Object.create?function($,ie){Object.defineProperty($,"default",{enumerable:!0,value:ie})}:function($,ie){$.default=ie}),Q=this&&this.__importStar||function($){if($&&$.__esModule)return $;var ie={};if(null!=$)for(var b in $)"default"!==b&&Object.prototype.hasOwnProperty.call($,b)&&de(ie,$,b);return Y(ie,$),ie},q=this&&this.__importDefault||function($){return $&&$.__esModule?$:{default:$}};Object.defineProperty(w,"__esModule",{value:!0}),w.parseFeed=w.FeedHandler=void 0;var F=q(G(2962)),I=Q(G(2155)),O=G(3380),P=function($){function ie(b,K){return"object"==typeof b&&(K=b=void 0),$.call(this,b,K)||this}return le(ie,$),ie.prototype.onend=function(){var b,K,L=S(re,this.dom);if(L){var oe={};if("feed"===L.name){var _e=L.children;oe.type="atom",z(oe,"id","id",_e),z(oe,"title","title",_e);var V=B("href",S("link",_e));V&&(oe.link=V),z(oe,"description","subtitle",_e),(N=x("updated",_e))&&(oe.updated=new Date(N)),z(oe,"author","email",_e,!0),oe.items=k("entry",_e).map(function(X){var pe={},he=X.children;z(pe,"id","id",he),z(pe,"title","title",he);var Be=B("href",S("link",he));Be&&(pe.link=Be);var je=x("summary",he)||x("content",he);je&&(pe.description=je);var xt=x("updated",he);return xt&&(pe.pubDate=new Date(xt)),pe.media=D(he),pe})}else{var N;_e=null!==(K=null===(b=S("channel",L.children))||void 0===b?void 0:b.children)&&void 0!==K?K:[],oe.type=L.name.substr(0,3),oe.id="",z(oe,"title","title",_e),z(oe,"link","link",_e),z(oe,"description","description",_e),(N=x("lastBuildDate",_e))&&(oe.updated=new Date(N)),z(oe,"author","managingEditor",_e,!0),oe.items=k("item",L.children).map(function(he){var Be={},je=he.children;z(Be,"id","guid",je),z(Be,"title","title",je),z(Be,"link","link",je),z(Be,"description","description",je);var xt=x("pubDate",je);return xt&&(Be.pubDate=new Date(xt)),Be.media=D(je),Be})}this.feed=oe,this.handleCallback(null)}else this.handleCallback(new Error("couldn't find root of feed"))},ie}(F.default);function D($){return k("media:content",$).map(function(ie){var b={medium:ie.attribs.medium,isDefault:!!ie.attribs.isDefault};return ie.attribs.url&&(b.url=ie.attribs.url),ie.attribs.fileSize&&(b.fileSize=parseInt(ie.attribs.fileSize,10)),ie.attribs.type&&(b.type=ie.attribs.type),ie.attribs.expression&&(b.expression=ie.attribs.expression),ie.attribs.bitrate&&(b.bitrate=parseInt(ie.attribs.bitrate,10)),ie.attribs.framerate&&(b.framerate=parseInt(ie.attribs.framerate,10)),ie.attribs.samplingrate&&(b.samplingrate=parseInt(ie.attribs.samplingrate,10)),ie.attribs.channels&&(b.channels=parseInt(ie.attribs.channels,10)),ie.attribs.duration&&(b.duration=parseInt(ie.attribs.duration,10)),ie.attribs.height&&(b.height=parseInt(ie.attribs.height,10)),ie.attribs.width&&(b.width=parseInt(ie.attribs.width,10)),ie.attribs.lang&&(b.lang=ie.attribs.lang),b})}function k($,ie){return I.getElementsByTagName($,ie,!0)}function S($,ie){return I.getElementsByTagName($,ie,!0,1)[0]}function x($,ie,b){return void 0===b&&(b=!1),I.getText(I.getElementsByTagName($,ie,b,1)).trim()}function B($,ie){return ie?ie.attribs[$]:null}function z($,ie,b,K,L){void 0===L&&(L=!1);var oe=x(b,K,L);oe&&($[ie]=oe)}function re($){return"rss"===$||"feed"===$||"rdf:RDF"===$}w.FeedHandler=P,w.parseFeed=function we($,ie){void 0===ie&&(ie={xmlMode:!0});var b=new P(ie);return new O.Parser(b,ie).end($),b.feed}},3380:function(Le,w,G){"use strict";var le=this&&this.__importDefault||function(P){return P&&P.__esModule?P:{default:P}};Object.defineProperty(w,"__esModule",{value:!0}),w.Parser=void 0;var de=le(G(6282)),Y=new Set(["input","option","optgroup","select","button","datalist","textarea"]),Q=new Set(["p"]),q={tr:new Set(["tr","th","td"]),th:new Set(["th"]),td:new Set(["thead","th","td"]),body:new Set(["head","link","script"]),li:new Set(["li"]),p:Q,h1:Q,h2:Q,h3:Q,h4:Q,h5:Q,h6:Q,select:Y,input:Y,output:Y,button:Y,datalist:Y,textarea:Y,option:new Set(["option"]),optgroup:new Set(["optgroup","option"]),dd:new Set(["dt","dd"]),dt:new Set(["dt","dd"]),address:Q,article:Q,aside:Q,blockquote:Q,details:Q,div:Q,dl:Q,fieldset:Q,figcaption:Q,figure:Q,footer:Q,form:Q,header:Q,hr:Q,main:Q,nav:Q,ol:Q,pre:Q,section:Q,table:Q,ul:Q,rt:new Set(["rt","rp"]),rp:new Set(["rt","rp"]),tbody:new Set(["thead","tbody"]),tfoot:new Set(["thead","tbody"])},F=new Set(["area","base","basefont","br","col","command","embed","frame","hr","img","input","isindex","keygen","link","meta","param","source","track","wbr"]),I=new Set(["math","svg"]),O=new Set(["mi","mo","mn","ms","mtext","annotation-xml","foreignObject","desc","title"]),T=/\s|\//,E=function(){function P(D,k){var S,x,B,z,re;void 0===k&&(k={}),this.startIndex=0,this.endIndex=null,this.tagname="",this.attribname="",this.attribvalue="",this.attribs=null,this.stack=[],this.foreignContext=[],this.options=k,this.cbs=D??{},this.lowerCaseTagNames=null!==(S=k.lowerCaseTags)&&void 0!==S?S:!k.xmlMode,this.lowerCaseAttributeNames=null!==(x=k.lowerCaseAttributeNames)&&void 0!==x?x:!k.xmlMode,this.tokenizer=new(null!==(B=k.Tokenizer)&&void 0!==B?B:de.default)(this.options,this),null===(re=(z=this.cbs).onparserinit)||void 0===re||re.call(z,this)}return P.prototype.updatePosition=function(D){this.startIndex=null===this.endIndex?this.tokenizer.sectionStart<=D?0:this.tokenizer.sectionStart-D:this.endIndex+1,this.endIndex=this.tokenizer.getAbsoluteIndex()},P.prototype.ontext=function(D){var k,S;this.updatePosition(1),this.endIndex--,null===(S=(k=this.cbs).ontext)||void 0===S||S.call(k,D)},P.prototype.onopentagname=function(D){var k,S;if(this.lowerCaseTagNames&&(D=D.toLowerCase()),this.tagname=D,!this.options.xmlMode&&Object.prototype.hasOwnProperty.call(q,D))for(var x=void 0;this.stack.length>0&&q[D].has(x=this.stack[this.stack.length-1]);)this.onclosetag(x);(this.options.xmlMode||!F.has(D))&&(this.stack.push(D),I.has(D)?this.foreignContext.push(!0):O.has(D)&&this.foreignContext.push(!1)),null===(S=(k=this.cbs).onopentagname)||void 0===S||S.call(k,D),this.cbs.onopentag&&(this.attribs={})},P.prototype.onopentagend=function(){var D,k;this.updatePosition(1),this.attribs&&(null===(k=(D=this.cbs).onopentag)||void 0===k||k.call(D,this.tagname,this.attribs),this.attribs=null),!this.options.xmlMode&&this.cbs.onclosetag&&F.has(this.tagname)&&this.cbs.onclosetag(this.tagname),this.tagname=""},P.prototype.onclosetag=function(D){if(this.updatePosition(1),this.lowerCaseTagNames&&(D=D.toLowerCase()),(I.has(D)||O.has(D))&&this.foreignContext.pop(),!this.stack.length||!this.options.xmlMode&&F.has(D))!this.options.xmlMode&&("br"===D||"p"===D)&&(this.onopentagname(D),this.closeCurrentTag());else{var k=this.stack.lastIndexOf(D);if(-1!==k)if(this.cbs.onclosetag)for(k=this.stack.length-k;k--;)this.cbs.onclosetag(this.stack.pop());else this.stack.length=k;else"p"===D&&!this.options.xmlMode&&(this.onopentagname(D),this.closeCurrentTag())}},P.prototype.onselfclosingtag=function(){this.options.xmlMode||this.options.recognizeSelfClosing||this.foreignContext[this.foreignContext.length-1]?this.closeCurrentTag():this.onopentagend()},P.prototype.closeCurrentTag=function(){var D,k,S=this.tagname;this.onopentagend(),this.stack[this.stack.length-1]===S&&(null===(k=(D=this.cbs).onclosetag)||void 0===k||k.call(D,S),this.stack.pop())},P.prototype.onattribname=function(D){this.lowerCaseAttributeNames&&(D=D.toLowerCase()),this.attribname=D},P.prototype.onattribdata=function(D){this.attribvalue+=D},P.prototype.onattribend=function(D){var k,S;null===(S=(k=this.cbs).onattribute)||void 0===S||S.call(k,this.attribname,this.attribvalue,D),this.attribs&&!Object.prototype.hasOwnProperty.call(this.attribs,this.attribname)&&(this.attribs[this.attribname]=this.attribvalue),this.attribname="",this.attribvalue=""},P.prototype.getInstructionName=function(D){var k=D.search(T),S=k<0?D:D.substr(0,k);return this.lowerCaseTagNames&&(S=S.toLowerCase()),S},P.prototype.ondeclaration=function(D){if(this.cbs.onprocessinginstruction){var k=this.getInstructionName(D);this.cbs.onprocessinginstruction("!"+k,"!"+D)}},P.prototype.onprocessinginstruction=function(D){if(this.cbs.onprocessinginstruction){var k=this.getInstructionName(D);this.cbs.onprocessinginstruction("?"+k,"?"+D)}},P.prototype.oncomment=function(D){var k,S,x,B;this.updatePosition(4),null===(S=(k=this.cbs).oncomment)||void 0===S||S.call(k,D),null===(B=(x=this.cbs).oncommentend)||void 0===B||B.call(x)},P.prototype.oncdata=function(D){var k,S,x,B,z,re;this.updatePosition(1),this.options.xmlMode||this.options.recognizeCDATA?(null===(S=(k=this.cbs).oncdatastart)||void 0===S||S.call(k),null===(B=(x=this.cbs).ontext)||void 0===B||B.call(x,D),null===(re=(z=this.cbs).oncdataend)||void 0===re||re.call(z)):this.oncomment("[CDATA["+D+"]]")},P.prototype.onerror=function(D){var k,S;null===(S=(k=this.cbs).onerror)||void 0===S||S.call(k,D)},P.prototype.onend=function(){var D,k;if(this.cbs.onclosetag)for(var S=this.stack.length;S>0;this.cbs.onclosetag(this.stack[--S]));null===(k=(D=this.cbs).onend)||void 0===k||k.call(D)},P.prototype.reset=function(){var D,k,S,x;null===(k=(D=this.cbs).onreset)||void 0===k||k.call(D),this.tokenizer.reset(),this.tagname="",this.attribname="",this.attribs=null,this.stack=[],null===(x=(S=this.cbs).onparserinit)||void 0===x||x.call(S,this)},P.prototype.parseComplete=function(D){this.reset(),this.end(D)},P.prototype.write=function(D){this.tokenizer.write(D)},P.prototype.end=function(D){this.tokenizer.end(D)},P.prototype.pause=function(){this.tokenizer.pause()},P.prototype.resume=function(){this.tokenizer.resume()},P.prototype.parseChunk=function(D){this.write(D)},P.prototype.done=function(D){this.end(D)},P}();w.Parser=E},6282:function(Le,w,G){"use strict";var le=this&&this.__importDefault||function(ae){return ae&&ae.__esModule?ae:{default:ae}};Object.defineProperty(w,"__esModule",{value:!0});var de=le(G(672)),Y=le(G(9323)),Q=le(G(9591)),q=le(G(2586));function F(ae){return" "===ae||"\n"===ae||"\t"===ae||"\f"===ae||"\r"===ae}function I(ae){return ae>="a"&&ae<="z"||ae>="A"&&ae<="Z"}function O(ae,R,We){var Ge=ae.toLowerCase();return ae===Ge?function(Nt,ln){ln===Ge?Nt._state=R:(Nt._state=We,Nt._index--)}:function(Nt,ln){ln===Ge||ln===ae?Nt._state=R:(Nt._state=We,Nt._index--)}}function T(ae,R){var We=ae.toLowerCase();return function(Ge,Nt){Nt===We||Nt===ae?Ge._state=R:(Ge._state=3,Ge._index--)}}var E=O("C",24,16),P=O("D",25,16),D=O("A",26,16),k=O("T",27,16),S=O("A",28,16),x=T("R",35),B=T("I",36),z=T("P",37),re=T("T",38),we=O("R",40,1),$=O("I",41,1),ie=O("P",42,1),b=O("T",43,1),K=T("Y",45),L=T("L",46),oe=T("E",47),_e=O("Y",49,1),V=O("L",50,1),N=O("E",51,1),X=T("I",54),pe=T("T",55),he=T("L",56),Be=T("E",57),je=O("I",58,1),xt=O("T",59,1),ke=O("L",60,1),Ve=O("E",61,1),se=O("#",63,64),ye=O("X",66,65),Ce=function(){function ae(R,We){var Ge;this._state=1,this.buffer="",this.sectionStart=0,this._index=0,this.bufferOffset=0,this.baseState=1,this.special=1,this.running=!0,this.ended=!1,this.cbs=We,this.xmlMode=!!R?.xmlMode,this.decodeEntities=null===(Ge=R?.decodeEntities)||void 0===Ge||Ge}return ae.prototype.reset=function(){this._state=1,this.buffer="",this.sectionStart=0,this._index=0,this.bufferOffset=0,this.baseState=1,this.special=1,this.running=!0,this.ended=!1},ae.prototype.write=function(R){this.ended&&this.cbs.onerror(Error(".write() after done!")),this.buffer+=R,this.parse()},ae.prototype.end=function(R){this.ended&&this.cbs.onerror(Error(".end() after done!")),R&&this.write(R),this.ended=!0,this.running&&this.finish()},ae.prototype.pause=function(){this.running=!1},ae.prototype.resume=function(){this.running=!0,this._indexthis.sectionStart&&this.cbs.ontext(this.getSection()),this._state=2,this.sectionStart=this._index):this.decodeEntities&&"&"===R&&(1===this.special||4===this.special)&&(this._index>this.sectionStart&&this.cbs.ontext(this.getSection()),this.baseState=1,this._state=62,this.sectionStart=this._index)},ae.prototype.isTagStartChar=function(R){return I(R)||this.xmlMode&&!F(R)&&"/"!==R&&">"!==R},ae.prototype.stateBeforeTagName=function(R){"/"===R?this._state=5:"<"===R?(this.cbs.ontext(this.getSection()),this.sectionStart=this._index):">"===R||1!==this.special||F(R)?this._state=1:"!"===R?(this._state=15,this.sectionStart=this._index+1):"?"===R?(this._state=17,this.sectionStart=this._index+1):this.isTagStartChar(R)?(this._state=this.xmlMode||"s"!==R&&"S"!==R?this.xmlMode||"t"!==R&&"T"!==R?3:52:32,this.sectionStart=this._index):this._state=1},ae.prototype.stateInTagName=function(R){("/"===R||">"===R||F(R))&&(this.emitToken("onopentagname"),this._state=8,this._index--)},ae.prototype.stateBeforeClosingTagName=function(R){F(R)||(">"===R?this._state=1:1!==this.special?4===this.special||"s"!==R&&"S"!==R?4!==this.special||"t"!==R&&"T"!==R?(this._state=1,this._index--):this._state=53:this._state=33:this.isTagStartChar(R)?(this._state=6,this.sectionStart=this._index):(this._state=20,this.sectionStart=this._index))},ae.prototype.stateInClosingTagName=function(R){(">"===R||F(R))&&(this.emitToken("onclosetag"),this._state=7,this._index--)},ae.prototype.stateAfterClosingTagName=function(R){">"===R&&(this._state=1,this.sectionStart=this._index+1)},ae.prototype.stateBeforeAttributeName=function(R){">"===R?(this.cbs.onopentagend(),this._state=1,this.sectionStart=this._index+1):"/"===R?this._state=4:F(R)||(this._state=9,this.sectionStart=this._index)},ae.prototype.stateInSelfClosingTag=function(R){">"===R?(this.cbs.onselfclosingtag(),this._state=1,this.sectionStart=this._index+1,this.special=1):F(R)||(this._state=8,this._index--)},ae.prototype.stateInAttributeName=function(R){("="===R||"/"===R||">"===R||F(R))&&(this.cbs.onattribname(this.getSection()),this.sectionStart=-1,this._state=10,this._index--)},ae.prototype.stateAfterAttributeName=function(R){"="===R?this._state=11:"/"===R||">"===R?(this.cbs.onattribend(void 0),this._state=8,this._index--):F(R)||(this.cbs.onattribend(void 0),this._state=9,this.sectionStart=this._index)},ae.prototype.stateBeforeAttributeValue=function(R){'"'===R?(this._state=12,this.sectionStart=this._index+1):"'"===R?(this._state=13,this.sectionStart=this._index+1):F(R)||(this._state=14,this.sectionStart=this._index,this._index--)},ae.prototype.handleInAttributeValue=function(R,We){R===We?(this.emitToken("onattribdata"),this.cbs.onattribend(We),this._state=8):this.decodeEntities&&"&"===R&&(this.emitToken("onattribdata"),this.baseState=this._state,this._state=62,this.sectionStart=this._index)},ae.prototype.stateInAttributeValueDoubleQuotes=function(R){this.handleInAttributeValue(R,'"')},ae.prototype.stateInAttributeValueSingleQuotes=function(R){this.handleInAttributeValue(R,"'")},ae.prototype.stateInAttributeValueNoQuotes=function(R){F(R)||">"===R?(this.emitToken("onattribdata"),this.cbs.onattribend(null),this._state=8,this._index--):this.decodeEntities&&"&"===R&&(this.emitToken("onattribdata"),this.baseState=this._state,this._state=62,this.sectionStart=this._index)},ae.prototype.stateBeforeDeclaration=function(R){this._state="["===R?23:"-"===R?18:16},ae.prototype.stateInDeclaration=function(R){">"===R&&(this.cbs.ondeclaration(this.getSection()),this._state=1,this.sectionStart=this._index+1)},ae.prototype.stateInProcessingInstruction=function(R){">"===R&&(this.cbs.onprocessinginstruction(this.getSection()),this._state=1,this.sectionStart=this._index+1)},ae.prototype.stateBeforeComment=function(R){"-"===R?(this._state=19,this.sectionStart=this._index+1):this._state=16},ae.prototype.stateInComment=function(R){"-"===R&&(this._state=21)},ae.prototype.stateInSpecialComment=function(R){">"===R&&(this.cbs.oncomment(this.buffer.substring(this.sectionStart,this._index)),this._state=1,this.sectionStart=this._index+1)},ae.prototype.stateAfterComment1=function(R){this._state="-"===R?22:19},ae.prototype.stateAfterComment2=function(R){">"===R?(this.cbs.oncomment(this.buffer.substring(this.sectionStart,this._index-2)),this._state=1,this.sectionStart=this._index+1):"-"!==R&&(this._state=19)},ae.prototype.stateBeforeCdata6=function(R){"["===R?(this._state=29,this.sectionStart=this._index+1):(this._state=16,this._index--)},ae.prototype.stateInCdata=function(R){"]"===R&&(this._state=30)},ae.prototype.stateAfterCdata1=function(R){this._state="]"===R?31:29},ae.prototype.stateAfterCdata2=function(R){">"===R?(this.cbs.oncdata(this.buffer.substring(this.sectionStart,this._index-2)),this._state=1,this.sectionStart=this._index+1):"]"!==R&&(this._state=29)},ae.prototype.stateBeforeSpecialS=function(R){"c"===R||"C"===R?this._state=34:"t"===R||"T"===R?this._state=44:(this._state=3,this._index--)},ae.prototype.stateBeforeSpecialSEnd=function(R){this._state=2!==this.special||"c"!==R&&"C"!==R?3!==this.special||"t"!==R&&"T"!==R?1:48:39},ae.prototype.stateBeforeSpecialLast=function(R,We){("/"===R||">"===R||F(R))&&(this.special=We),this._state=3,this._index--},ae.prototype.stateAfterSpecialLast=function(R,We){">"===R||F(R)?(this.special=1,this._state=6,this.sectionStart=this._index-We,this._index--):this._state=1},ae.prototype.parseFixedEntity=function(R){if(void 0===R&&(R=this.xmlMode?q.default:Y.default),this.sectionStart+1=2;){var Ge=this.buffer.substr(R,We);if(Object.prototype.hasOwnProperty.call(Q.default,Ge))return this.emitPartial(Q.default[Ge]),void(this.sectionStart+=We+1);We--}},ae.prototype.stateInNamedEntity=function(R){";"===R?(this.parseFixedEntity(),1===this.baseState&&this.sectionStart+1"9")&&!I(R)&&(this.xmlMode||this.sectionStart+1===this._index||(1!==this.baseState?"="!==R&&this.parseFixedEntity(Q.default):this.parseLegacyEntity()),this._state=this.baseState,this._index--)},ae.prototype.decodeNumericEntity=function(R,We,Ge){var Nt=this.sectionStart+R;if(Nt!==this._index){var ln=this.buffer.substring(Nt,this._index),ui=parseInt(ln,We);this.emitPartial(de.default(ui)),this.sectionStart=Ge?this._index+1:this._index}this._state=this.baseState},ae.prototype.stateInNumericEntity=function(R){";"===R?this.decodeNumericEntity(2,10,!0):(R<"0"||R>"9")&&(this.xmlMode?this._state=this.baseState:this.decodeNumericEntity(2,10,!1),this._index--)},ae.prototype.stateInHexEntity=function(R){";"===R?this.decodeNumericEntity(3,16,!0):(R<"a"||R>"f")&&(R<"A"||R>"F")&&(R<"0"||R>"9")&&(this.xmlMode?this._state=this.baseState:this.decodeNumericEntity(3,16,!1),this._index--)},ae.prototype.cleanup=function(){this.sectionStart<0?(this.buffer="",this.bufferOffset+=this._index,this._index=0):this.running&&(1===this._state?(this.sectionStart!==this._index&&this.cbs.ontext(this.buffer.substr(this.sectionStart)),this.buffer="",this.bufferOffset+=this._index,this._index=0):this.sectionStart===this._index?(this.buffer="",this.bufferOffset+=this._index,this._index=0):(this.buffer=this.buffer.substr(this.sectionStart),this._index-=this.sectionStart,this.bufferOffset+=this.sectionStart),this.sectionStart=0)},ae.prototype.parse=function(){for(;this._index0)throw new Error("RegExp has capture groups: "+We+"\nUse (?: \u2026 ) instead");if(!Ve.lineBreaks&&We.test("\n"))throw new Error("Rule should declare lineBreaks: "+We);xt.push(E(R))}}var Nt=X&&X.fallback,ln=q&&!Nt?"ym":"gm",ui=q||Nt?"":"|";return!0===Be&&(ln+="u"),{regexp:new RegExp(P(xt)+ui,ln),groups:je,fast:pe,error:X||z}}function $(V,N,X){var pe=V&&(V.push||V.next);if(pe&&!X[pe])throw new Error("Missing state '"+pe+"' (in token '"+V.defaultType+"' of state '"+N+"')");if(V&&V.pop&&1!=+V.pop)throw new Error("pop must be 1 (in token '"+V.defaultType+"' of state '"+N+"')")}var K=function(V,N){this.startState=N,this.states=V,this.buffer="",this.stack=[],this.reset()};K.prototype.reset=function(V,N){return this.buffer=V||"",this.index=0,this.line=N?N.line:1,this.col=N?N.col:1,this.queuedToken=N?N.queuedToken:null,this.queuedThrow=N?N.queuedThrow:null,this.setState(N?N.state:this.startState),this.stack=N&&N.stack?N.stack.slice():[],this},K.prototype.save=function(){return{line:this.line,col:this.col,state:this.state,stack:this.stack.slice(),queuedToken:this.queuedToken,queuedThrow:this.queuedThrow}},K.prototype.setState=function(V){if(V&&this.state!==V){this.state=V;var N=this.states[V];this.groups=N.groups,this.error=N.error,this.re=N.regexp,this.fast=N.fast}},K.prototype.popState=function(){this.setState(this.stack.pop())},K.prototype.pushState=function(V){this.stack.push(this.state),this.setState(V)};var L=q?function(V,N){return V.exec(N)}:function(V,N){var X=V.exec(N);return 0===X[0].length?null:X};function oe(){return this.value}if(K.prototype._getGroup=function(V){for(var N=this.groups.length,X=0;X";throw new Error("Unknown symbol type: "+I)}}return w.highestId=0,w.prototype.toString=function(I){var O=typeof I>"u"?this.symbols.map(F).join(" "):this.symbols.slice(0,I).map(F).join(" ")+" \u25cf "+this.symbols.slice(I).map(F).join(" ");return this.name+" \u2192 "+O},G.prototype.toString=function(){return"{"+this.rule.toString(this.dot)+"}, from: "+(this.reference||0)},G.prototype.nextState=function(I){var O=new G(this.rule,this.dot+1,this.reference,this.wantedBy);return O.left=this,O.right=I,O.isComplete&&(O.data=O.build(),O.right=void 0),O},G.prototype.build=function(){var I=[],O=this;do{I.push(O.right.data),O=O.left}while(O.left);return I.reverse(),I},G.prototype.finish=function(){this.rule.postprocess&&(this.data=this.rule.postprocess(this.data,this.reference,Q.fail))},le.prototype.process=function(I){for(var O=this.states,T=this.wants,E=this.completed,P=0;P0&&O.push(" ^ "+E+" more lines identical to this"),E=0,O.push(" "+k)),T=k}},Q.prototype.getSymbolDisplay=function(I){return function q(I){var O=typeof I;if("string"===O)return I;if("object"===O){if(I.literal)return JSON.stringify(I.literal);if(I instanceof RegExp)return"character matching "+I;if(I.type)return I.type+" token";if(I.test)return"token matching "+String(I.test);throw new Error("Unknown symbol type: "+I)}}(I)},Q.prototype.buildFirstStateStack=function(I,O){if(-1!==O.indexOf(I))return null;if(0===I.wantedBy.length)return[I];var T=I.wantedBy[0],E=[I].concat(O),P=this.buildFirstStateStack(T,E);return null===P?null:[I].concat(P)},Q.prototype.save=function(){var I=this.table[this.current];return I.lexerState=this.lexerState,I},Q.prototype.restore=function(I){var O=I.index;this.current=O,this.table[O]=I,this.table.splice(O+1),this.lexerState=I.lexerState,this.results=this.finish()},Q.prototype.rewind=function(I){if(!this.options.keepHistory)throw new Error("set option `keepHistory` to enable rewinding");this.restore(this.table[I])},Q.prototype.finish=function(){var I=[],O=this.grammar.start;return this.table[this.table.length-1].states.forEach(function(E){E.rule.name===O&&E.dot===E.rule.symbols.length&&0===E.reference&&E.data!==Q.fail&&I.push(E)}),I.map(function(E){return E.data})},{Parser:Q,Grammar:de,Rule:w}},Le.exports?Le.exports=G():this.nearley=G()},5742:(Le,w,G)=>{"use strict";var de=G(1557),Y=G(4802),Q=G(7448),q=G(7302),F=G(4072),I=function(){function T(E){this._isScalar=!1,E&&(this._subscribe=E)}return T.prototype.lift=function(E){var P=new T;return P.source=this,P.operator=E,P},T.prototype.subscribe=function(E,P,D){var k=this.operator,S=Y.toSubscriber(E,P,D);if(S.add(k?k.call(S,this.source):this.source||F.config.useDeprecatedSynchronousErrorHandling&&!S.syncErrorThrowable?this._subscribe(S):this._trySubscribe(S)),F.config.useDeprecatedSynchronousErrorHandling&&S.syncErrorThrowable&&(S.syncErrorThrowable=!1,S.syncErrorThrown))throw S.syncErrorValue;return S},T.prototype._trySubscribe=function(E){try{return this._subscribe(E)}catch(P){F.config.useDeprecatedSynchronousErrorHandling&&(E.syncErrorThrown=!0,E.syncErrorValue=P),de.canReportError(E)?E.error(P):console.warn(P)}},T.prototype.forEach=function(E,P){var D=this;return new(P=O(P))(function(k,S){var x;x=D.subscribe(function(B){try{E(B)}catch(z){S(z),x&&x.unsubscribe()}},S,k)})},T.prototype._subscribe=function(E){var P=this.source;return P&&P.subscribe(E)},T.prototype[Q.observable]=function(){return this},T.prototype.pipe=function(){for(var E=[],P=0;P{"use strict";Object.defineProperty(w,"__esModule",{value:!0});var le=G(4072),de=G(2422);w.empty={closed:!0,next:function(Y){},error:function(Y){if(le.config.useDeprecatedSynchronousErrorHandling)throw Y;de.hostReportError(Y)},complete:function(){}}},3281:function(Le,w,G){"use strict";var E,le=this&&this.__extends||(E=function(P,D){return(E=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(k,S){k.__proto__=S}||function(k,S){for(var x in S)S.hasOwnProperty(x)&&(k[x]=S[x])})(P,D)},function(P,D){function k(){this.constructor=P}E(P,D),P.prototype=null===D?Object.create(D):(k.prototype=D.prototype,new k)});Object.defineProperty(w,"__esModule",{value:!0});var de=G(9607),Y=G(7350),Q=G(6052),q=G(2858),F=G(4072),I=G(2422),O=function(E){function P(D,k,S){var x=E.call(this)||this;switch(x.syncErrorValue=null,x.syncErrorThrown=!1,x.syncErrorThrowable=!1,x.isStopped=!1,arguments.length){case 0:x.destination=Y.empty;break;case 1:if(!D){x.destination=Y.empty;break}if("object"==typeof D){D instanceof P?(x.syncErrorThrowable=D.syncErrorThrowable,x.destination=D,D.add(x)):(x.syncErrorThrowable=!0,x.destination=new T(x,D));break}default:x.syncErrorThrowable=!0,x.destination=new T(x,D,k,S)}return x}return le(P,E),P.prototype[q.rxSubscriber]=function(){return this},P.create=function(D,k,S){var x=new P(D,k,S);return x.syncErrorThrowable=!1,x},P.prototype.next=function(D){this.isStopped||this._next(D)},P.prototype.error=function(D){this.isStopped||(this.isStopped=!0,this._error(D))},P.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},P.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,E.prototype.unsubscribe.call(this))},P.prototype._next=function(D){this.destination.next(D)},P.prototype._error=function(D){this.destination.error(D),this.unsubscribe()},P.prototype._complete=function(){this.destination.complete(),this.unsubscribe()},P.prototype._unsubscribeAndRecycle=function(){var D=this._parentOrParents;return this._parentOrParents=null,this.unsubscribe(),this.closed=!1,this.isStopped=!1,this._parentOrParents=D,this},P}(Q.Subscription);w.Subscriber=O;var T=function(E){function P(D,k,S,x){var B=E.call(this)||this;B._parentSubscriber=D;var z,re=B;return de.isFunction(k)?z=k:k&&(z=k.next,S=k.error,x=k.complete,k!==Y.empty&&(re=Object.create(k),de.isFunction(re.unsubscribe)&&B.add(re.unsubscribe.bind(re)),re.unsubscribe=B.unsubscribe.bind(B))),B._context=re,B._next=z,B._error=S,B._complete=x,B}return le(P,E),P.prototype.next=function(D){if(!this.isStopped&&this._next){var k=this._parentSubscriber;F.config.useDeprecatedSynchronousErrorHandling&&k.syncErrorThrowable?this.__tryOrSetError(k,this._next,D)&&this.unsubscribe():this.__tryOrUnsub(this._next,D)}},P.prototype.error=function(D){if(!this.isStopped){var k=this._parentSubscriber,S=F.config.useDeprecatedSynchronousErrorHandling;if(this._error)S&&k.syncErrorThrowable?(this.__tryOrSetError(k,this._error,D),this.unsubscribe()):(this.__tryOrUnsub(this._error,D),this.unsubscribe());else if(k.syncErrorThrowable)S?(k.syncErrorValue=D,k.syncErrorThrown=!0):I.hostReportError(D),this.unsubscribe();else{if(this.unsubscribe(),S)throw D;I.hostReportError(D)}}},P.prototype.complete=function(){var D=this;if(!this.isStopped){var k=this._parentSubscriber;if(this._complete){var S=function(){return D._complete.call(D._context)};F.config.useDeprecatedSynchronousErrorHandling&&k.syncErrorThrowable?(this.__tryOrSetError(k,S),this.unsubscribe()):(this.__tryOrUnsub(S),this.unsubscribe())}else this.unsubscribe()}},P.prototype.__tryOrUnsub=function(D,k){try{D.call(this._context,k)}catch(S){if(this.unsubscribe(),F.config.useDeprecatedSynchronousErrorHandling)throw S;I.hostReportError(S)}},P.prototype.__tryOrSetError=function(D,k,S){if(!F.config.useDeprecatedSynchronousErrorHandling)throw new Error("bad call");try{k.call(this._context,S)}catch(x){return F.config.useDeprecatedSynchronousErrorHandling?(D.syncErrorValue=x,D.syncErrorThrown=!0,!0):(I.hostReportError(x),!0)}return!1},P.prototype._unsubscribe=function(){var D=this._parentSubscriber;this._context=null,this._parentSubscriber=null,D.unsubscribe()},P}(O);w.SafeSubscriber=T},6052:(Le,w,G)=>{"use strict";Object.defineProperty(w,"__esModule",{value:!0});var le=G(5019),de=G(2556),Y=G(9607),Q=G(2142),q=function(){function I(O){this.closed=!1,this._parentOrParents=null,this._subscriptions=null,O&&(this._ctorUnsubscribe=!0,this._unsubscribe=O)}return I.prototype.unsubscribe=function(){var O;if(!this.closed){var T=this,E=T._parentOrParents,P=T._ctorUnsubscribe,D=T._unsubscribe,k=T._subscriptions;if(this.closed=!0,this._parentOrParents=null,this._subscriptions=null,E instanceof I)E.remove(this);else if(null!==E)for(var S=0;S{"use strict";Object.defineProperty(w,"__esModule",{value:!0});var G=!1;w.config={Promise:void 0,set useDeprecatedSynchronousErrorHandling(le){if(le){var de=new Error;console.warn("DEPRECATED! RxJS was set to use deprecated synchronous error handling behavior by code at: \n"+de.stack)}else G&&console.log("RxJS: Back to a better error behavior. Thank you. <3");G=le},get useDeprecatedSynchronousErrorHandling(){return G}}},7448:(Le,w)=>{"use strict";Object.defineProperty(w,"__esModule",{value:!0}),w.observable="function"==typeof Symbol&&Symbol.observable||"@@observable"},2858:(Le,w)=>{"use strict";Object.defineProperty(w,"__esModule",{value:!0}),w.rxSubscriber="function"==typeof Symbol?Symbol("rxSubscriber"):"@@rxSubscriber_"+Math.random(),w.$$rxSubscriber=w.rxSubscriber},2142:(Le,w)=>{"use strict";Object.defineProperty(w,"__esModule",{value:!0});var G=function(){function le(de){return Error.call(this),this.message=de?de.length+" errors occurred during unsubscription:\n"+de.map(function(Y,Q){return Q+1+") "+Y.toString()}).join("\n "):"",this.name="UnsubscriptionError",this.errors=de,this}return le.prototype=Object.create(Error.prototype),le}();w.UnsubscriptionError=G},1557:(Le,w,G)=>{"use strict";Object.defineProperty(w,"__esModule",{value:!0});var le=G(3281);w.canReportError=function de(Y){for(;Y;){var F=Y.destination;if(Y.closed||Y.isStopped)return!1;Y=F&&F instanceof le.Subscriber?F:null}return!0}},2422:(Le,w)=>{"use strict";Object.defineProperty(w,"__esModule",{value:!0}),w.hostReportError=function G(le){setTimeout(function(){throw le},0)}},6610:(Le,w)=>{"use strict";Object.defineProperty(w,"__esModule",{value:!0}),w.identity=function G(le){return le}},5019:(Le,w)=>{"use strict";Object.defineProperty(w,"__esModule",{value:!0}),w.isArray=Array.isArray||function(G){return G&&"number"==typeof G.length}},9607:(Le,w)=>{"use strict";Object.defineProperty(w,"__esModule",{value:!0}),w.isFunction=function G(le){return"function"==typeof le}},2556:(Le,w)=>{"use strict";Object.defineProperty(w,"__esModule",{value:!0}),w.isObject=function G(le){return null!==le&&"object"==typeof le}},7302:(Le,w,G)=>{"use strict";Object.defineProperty(w,"__esModule",{value:!0});var le=G(6610);function Y(Q){return 0===Q.length?le.identity:1===Q.length?Q[0]:function(F){return Q.reduce(function(I,O){return O(I)},F)}}w.pipe=function de(){for(var Q=[],q=0;q{"use strict";Object.defineProperty(w,"__esModule",{value:!0});var le=G(3281),de=G(2858),Y=G(7350);w.toSubscriber=function Q(q,F,I){if(q){if(q instanceof le.Subscriber)return q;if(q[de.rxSubscriber])return q[de.rxSubscriber]()}return q||F||I?new le.Subscriber(q,F,I):new le.Subscriber(Y.empty)}},5999:(Le,w,G)=>{"use strict";Object.defineProperty(w,"__esModule",{value:!0});var le=G(2962),de=G(9542);function Q(x){const B=x.map(q);return(z,...re)=>k(B,we=>we(z,...re))}function q(x){switch(x.type){case"terminal":{const B=[x.valueContainer];return(z,...re)=>B}case"tagName":return function F(x){const B={};for(const z of x.variants)B[z.value]=Q(z.cont);return(z,...re)=>{const we=B[z.name];return we?we(z,...re):[]}}(x);case"attrValue":return function O(x){const B=[];for(const re of x.matchers){const we=re.predicate,$=Q(re.cont);B.push((ie,b,...K)=>we(ie)?$(b,...K):[])}const z=x.name;return(re,...we)=>{const $=re.attribs[z];return $||""===$?k(B,ie=>ie($,re,...we)):[]}}(x);case"attrPresence":return function I(x){const B=x.name,z=Q(x.cont);return(re,...we)=>Object.prototype.hasOwnProperty.call(re.attribs,B)?z(re,...we):[]}(x);case"pushElement":return function T(x){const B=Q(x.cont),z="+"===x.combinator?E:P;return(re,...we)=>{const $=z(re);return null===$?[]:B($,re,...we)}}(x);case"popElement":return function D(x){const B=Q(x.cont);return(z,re,...we)=>B(re,...we)}(x)}}const E=x=>{const B=x.prev;return null===B?null:le.isTag(B)?B:E(B)},P=x=>{const B=x.parent;return B&&le.isTag(B)?B:null};function k(x,B){return[].concat(...function S(x,B){const z=x.length,re=new Array(z);for(let we=0;we{"use strict";Object.defineProperty(w,"__esModule",{value:!0});var le=G(4847);function Y(L){if(L&&L.__esModule)return L;var oe=Object.create(null);return L&&Object.keys(L).forEach(function(_e){if("default"!==_e){var V=Object.getOwnPropertyDescriptor(L,_e);Object.defineProperty(oe,_e,V.get?V:{enumerable:!0,get:function(){return L[_e]}})}}),oe.default=L,Object.freeze(oe)}function q(L){return L[0]}const F=Y(G(6456)).compile({ws:{match:/[ \t\r\n\f]+/,lineBreaks:!0},idn:{match:/[a-zA-Z_-][a-zA-Z0-9_-]*/},hashToken:{match:/#[a-zA-Z0-9_-]+/,value:L=>L.slice(1)},str1:{match:/'(?:\\['\\]|[^\n'\\])*'/,value:L=>L.slice(1,-1)},str2:{match:/"(?:\\["\\]|[^\n"\\])*"/,value:L=>L.slice(1,-1)},asterisk:"*",fullstop:".",comma:",",lbr:"[",rbr:"]",eq:"=",gt:">",vbar:"|",plus:"+",tilde:"~",caret:"^",dollar:"$"});function I(L){return L[0].value}function O(L){return L[1]}function T([L,oe,_e],[V,N,X]){return[L+V,oe+N,_e+X]}const E={Lexer:F,ParserRules:[{name:"main",symbols:["_","listSelector","_"],postprocess:O},{name:"mainNoList",symbols:["_","complexSelector","_"],postprocess:O},{name:"listSelector",symbols:["complexSelector"],postprocess:([L])=>({type:"list",list:[L]})},{name:"listSelector",symbols:["listSelector","_",F.has("comma")?{type:"comma"}:comma,"_","complexSelector"],postprocess:([L,,,,oe])=>({type:"list",list:[...L.list,oe]})},{name:"complexSelector",symbols:["compoundSelector"],postprocess:q},{name:"complexSelector",symbols:["complexSelector","__","compoundSelector"],postprocess:([L,,oe])=>({type:"compound",list:[...oe.list,{type:"combinator",combinator:" ",left:L,specificity:L.specificity}],specificity:T(L.specificity,oe.specificity)})},{name:"complexSelector",symbols:["complexSelector","_","combinator","_","compoundSelector"],postprocess:([L,,oe,,_e])=>({type:"compound",list:[..._e.list,{type:"combinator",combinator:oe,left:L,specificity:L.specificity}],specificity:T(L.specificity,_e.specificity)})},{name:"combinator",symbols:[F.has("gt")?{type:"gt"}:gt],postprocess:()=>">"},{name:"combinator",symbols:[F.has("plus")?{type:"plus"}:plus],postprocess:()=>"+"},{name:"combinator",symbols:[F.has("tilde")?{type:"tilde"}:tilde],postprocess:()=>"~"},{name:"combinator",symbols:[F.has("vbar")?{type:"vbar"}:vbar,F.has("vbar")?{type:"vbar"}:vbar],postprocess:()=>"||"},{name:"compoundSelector",symbols:["typeSelector"],postprocess:([L])=>({type:"compound",list:[L],specificity:L.specificity})},{name:"compoundSelector",symbols:["subclassSelector"],postprocess:([L])=>({type:"compound",list:[L],specificity:L.specificity})},{name:"compoundSelector",symbols:["compoundSelector","subclassSelector"],postprocess:([L,oe])=>({type:"compound",list:[...L.list,oe],specificity:T(L.specificity,oe.specificity)})},{name:"subclassSelector",symbols:["idSelector"],postprocess:q},{name:"subclassSelector",symbols:["classSelector"],postprocess:q},{name:"subclassSelector",symbols:["attrSelector"],postprocess:q},{name:"attrSelector",symbols:["attrPresenceSelector"],postprocess:q},{name:"attrSelector",symbols:["attrValueSelector"],postprocess:q},{name:"typeSelector",symbols:["tagSelector"],postprocess:q},{name:"typeSelector",symbols:["uniSelector"],postprocess:q},{name:"attrPresenceSelector",symbols:[F.has("lbr")?{type:"lbr"}:lbr,"_","wqname","_",F.has("rbr")?{type:"rbr"}:rbr],postprocess:([,,L])=>({type:"attrPresence",name:L.name,namespace:L.namespace,specificity:[0,1,0]})},{name:"attrValueSelector",symbols:[F.has("lbr")?{type:"lbr"}:lbr,"_","wqname","_","attrMatcher","_","attrValue","_",F.has("rbr")?{type:"rbr"}:rbr],postprocess:([,,L,,oe,,_e])=>({type:"attrValue",name:L.name,namespace:L.namespace,matcher:oe,value:_e.value,modifier:_e.modifier,specificity:[0,1,0]})},{name:"attrMatcher",symbols:[F.has("eq")?{type:"eq"}:eq],postprocess:()=>"="},{name:"attrMatcher",symbols:[F.has("tilde")?{type:"tilde"}:tilde,F.has("eq")?{type:"eq"}:eq],postprocess:()=>"~="},{name:"attrMatcher",symbols:[F.has("vbar")?{type:"vbar"}:vbar,F.has("eq")?{type:"eq"}:eq],postprocess:()=>"|="},{name:"attrMatcher",symbols:[F.has("caret")?{type:"caret"}:caret,F.has("eq")?{type:"eq"}:eq],postprocess:()=>"^="},{name:"attrMatcher",symbols:[F.has("dollar")?{type:"dollar"}:dollar,F.has("eq")?{type:"eq"}:eq],postprocess:()=>"$="},{name:"attrMatcher",symbols:[F.has("asterisk")?{type:"asterisk"}:asterisk,F.has("eq")?{type:"eq"}:eq],postprocess:()=>"*="},{name:"attrValue",symbols:["str"],postprocess:([L])=>({value:L,modifier:null})},{name:"attrValue",symbols:["idn"],postprocess:([L])=>({value:L,modifier:null})},{name:"attrValue",symbols:["str","_","attrModifier"],postprocess:([L,,oe])=>({value:L,modifier:oe})},{name:"attrValue",symbols:["idn","__","attrModifier"],postprocess:([L,,oe])=>({value:L,modifier:oe})},{name:"attrModifier",symbols:[{literal:"i"}],postprocess:()=>"i"},{name:"attrModifier",symbols:[{literal:"I"}],postprocess:()=>"i"},{name:"attrModifier",symbols:[{literal:"s"}],postprocess:()=>"s"},{name:"attrModifier",symbols:[{literal:"S"}],postprocess:()=>"s"},{name:"idSelector",symbols:[F.has("hashToken")?{type:"hashToken"}:hashToken],postprocess:([{value:L}])=>({type:"id",name:L,specificity:[1,0,0]})},{name:"classSelector",symbols:[F.has("fullstop")?{type:"fullstop"}:fullstop,"idn"],postprocess:([,L])=>({type:"class",name:L,specificity:[0,1,0]})},{name:"tagSelector",symbols:["wqname"],postprocess:([L])=>({type:"tag",name:L.name,namespace:L.namespace,specificity:[0,0,1]})},{name:"uniSelector",symbols:[F.has("asterisk")?{type:"asterisk"}:asterisk],postprocess:()=>({type:"universal",namespace:null,specificity:[0,0,0]})},{name:"uniSelector",symbols:["ns",F.has("asterisk")?{type:"asterisk"}:asterisk],postprocess:([L])=>({type:"universal",namespace:L,specificity:[0,0,0]})},{name:"wqname",symbols:["idn"],postprocess:([L])=>({name:L,namespace:null})},{name:"wqname",symbols:["ns","idn"],postprocess:([L,oe])=>({name:oe,namespace:L})},{name:"ns",symbols:[F.has("vbar")?{type:"vbar"}:vbar],postprocess:()=>""},{name:"ns",symbols:["idn",F.has("vbar")?{type:"vbar"}:vbar],postprocess:q},{name:"str",symbols:[F.has("str1")?{type:"str1"}:str1],postprocess:I},{name:"str",symbols:[F.has("str2")?{type:"str2"}:str2],postprocess:I},{name:"idn",symbols:[F.has("idn")?{type:"idn"}:idn],postprocess:I},{name:"_$ebnf$1",symbols:[F.has("ws")?{type:"ws"}:ws],postprocess:q},{name:"_$ebnf$1",symbols:[],postprocess:()=>null},{name:"_",symbols:["_$ebnf$1"],postprocess:()=>null},{name:"__",symbols:[F.has("ws")?{type:"ws"}:ws],postprocess:()=>null}],ParserStart:"main"};var P=Object.freeze({__proto__:null});const D={...E,ParserStart:"mainNoList"};function x(L,oe){const _e=new le.Parser(le.Grammar.fromCompiled(L));if(_e.feed(oe),0===_e.results.length)throw new Error("Failed to parse - input string might be incomplete.");return _e.results[0]}function B(L){if(!L.type)throw new Error("This is not an AST node.");switch(L.type){case"universal":return z(L.namespace)+"*";case"tag":return z(L.namespace)+L.name;case"class":return"."+L.name;case"id":return"#"+L.name;case"attrPresence":return`[${z(L.namespace)}${L.name}]`;case"attrValue":return`[${z(L.namespace)}${L.name}${L.matcher}${function re(L){return-1===L.indexOf('"')?`"${L}"`:-1===L.indexOf("'")?`'${L}'`:`"${L.replace('"','\\"')}"`}(L.value)}${L.modifier?L.modifier:""}]`;case"combinator":return B(L.left)+L.combinator;case"compound":return L.list.reduce((oe,_e)=>"combinator"===_e.type?B(_e)+oe:oe+B(_e),"");case"list":return L.list.map(B).join(",")}}function z(L){return L||""===L?L+"|":""}function $(L){switch(L.type){case"universal":case"tag":return[1];case"id":return[2];case"class":return[3,L.name];case"attrPresence":return[4,B(L)];case"attrValue":return[5,B(L)];case"combinator":return[15,B(L)]}}function K(L,oe){if(!Array.isArray(L)||!Array.isArray(oe))throw new Error("Arguments must be arrays.");const _e=L.lengthK($(oe),$(_e)));break;case"combinator":we(L.left);break;case"list":L.list.forEach(we),L.list.sort((oe,_e)=>B(oe){"use strict";Object.defineProperty(w,"__esModule",{value:!0});var le=G(2512);function de(se){if(se&&se.__esModule)return se;var ye=Object.create(null);return se&&Object.keys(se).forEach(function(Ce){if("default"!==Ce){var ae=Object.getOwnPropertyDescriptor(se,Ce);Object.defineProperty(ye,Ce,ae.get?ae:{enumerable:!0,get:function(){return se[Ce]}})}}),ye.default=se,Object.freeze(ye)}var Y=de(le),Q=Object.freeze({__proto__:null}),q=Object.freeze({__proto__:null});const I=[["\u251c\u2500","\u2502 "],["\u2514\u2500"," "]],O=[["\u2520\u2500","\u2503 "],["\u2516\u2500"," "]],T=[["\u255f\u2500","\u2551 "],["\u2559\u2500"," "]];function E(se,ye=O){return function D(se,ye){return ye.map((Ce,ae,{length:R})=>function k(se,ye,Ce=!0){const ae=se[Ce?1:0];return ae[0]+ye.split("\n").join("\n"+ae[1])}(se,Ce,ae===R-1)).join("\n")}(ye,se.map(Ce=>function P(se){switch(se.type){case"terminal":{const ye=se.valueContainer;return`\u25c1 #${ye.index} ${JSON.stringify(ye.specificity)} ${ye.value}`}case"tagName":return`\u25fb Tag name\n${E(se.variants,T)}`;case"attrValue":return`\u25a3 Attr value: ${se.name}\n${E(se.matchers,T)}`;case"attrPresence":return`\u25e8 Attr presence: ${se.name}\n${E(se.cont)}`;case"pushElement":return`\u25c9 Push element: ${se.combinator}\n${E(se.cont,I)}`;case"popElement":return`\u25cc Pop element\n${E(se.cont,I)}`;case"variant":return`\u25c7 = ${se.value}\n${E(se.cont)}`;case"matcher":return`\u25c8 ${se.matcher} "${se.value}"${se.modifier||""}\n${E(se.cont)}`}}(Ce)))}var S=Object.freeze({__proto__:null,treeify:se=>"\u25bd\n"+E(se,I)});function z(se){return re(se),Y.normalize(se),se}function re(se){const ye=[];se.list.forEach(Ce=>{switch(Ce.type){case"class":ye.push({matcher:"~=",modifier:null,name:"class",namespace:null,specificity:Ce.specificity,type:"attrValue",value:Ce.name});break;case"id":ye.push({matcher:"=",modifier:null,name:"id",namespace:null,specificity:Ce.specificity,type:"attrValue",value:Ce.name});break;case"combinator":re(Ce.left),ye.push(Ce);break;case"universal":break;default:ye.push(Ce)}}),se.list=ye}function we(se){const ye=[];for(;se.length;){const Ce=he(se,Ge=>!0,b),{matches:ae,nonmatches:R,empty:We}=ie(se,Ce);se=R,ae.length&&ye.push(K(Ce,ae)),We.length&&ye.push(...$(We))}return ye}function $(se){const ye=[];for(const Ce of se){const ae=Ce.terminal;if("terminal"===ae.type)ye.push(ae);else{const{matches:R,rest:We}=Be(ae.cont,Ge=>"terminal"===Ge.type);R.forEach(Ge=>ye.push(Ge)),We.length&&(ae.cont=We,ye.push(ae))}}return ye}function ie(se,ye){const Ce=[],ae=[],R=[];for(const We of se){const Ge=We.ast.list;Ge.length?(Ge.some(ln=>b(ln)===ye)?Ce:ae).push(We):R.push(We)}return{matches:Ce,nonmatches:ae,empty:R}}function b(se){switch(se.type){case"attrPresence":return`attrPresence ${se.name}`;case"attrValue":return`attrValue ${se.name}`;case"combinator":return`combinator ${se.combinator}`;default:return se.type}}function K(se,ye){if("tag"===se)return function L(se){const ye=X(se,ae=>"tag"===ae.type,ae=>ae.name);return{type:"tagName",variants:Object.entries(ye).map(([ae,R])=>({type:"variant",value:ae,cont:we(R.items)}))}}(ye);if(se.startsWith("attrValue "))return function _e(se,ye){const Ce=X(ye,R=>"attrValue"===R.type&&R.name===se,R=>`${R.matcher} ${R.modifier||""} ${R.value}`),ae=[];for(const R of Object.values(Ce)){const We=R.oneSimpleSelector,Ge=V(We),Nt=we(R.items);ae.push({type:"matcher",matcher:We.matcher,modifier:We.modifier,value:We.value,predicate:Ge,cont:Nt})}return{type:"attrValue",name:se,matchers:ae}}(se.substring(10),ye);if(se.startsWith("attrPresence "))return function oe(se,ye){for(const Ce of ye)pe(Ce,ae=>"attrPresence"===ae.type&&ae.name===se);return{type:"attrPresence",name:se,cont:we(ye)}}(se.substring(13),ye);if("combinator >"===se)return N(">",ye);if("combinator +"===se)return N("+",ye);throw new Error(`Unsupported selector kind: ${se}`)}function V(se){if("i"===se.modifier){const ye=se.value.toLowerCase();switch(se.matcher){case"=":return Ce=>ye===Ce.toLowerCase();case"~=":return Ce=>Ce.toLowerCase().split(/[ \t]+/).includes(ye);case"^=":return Ce=>Ce.toLowerCase().startsWith(ye);case"$=":return Ce=>Ce.toLowerCase().endsWith(ye);case"*=":return Ce=>Ce.toLowerCase().includes(ye);case"|=":return Ce=>{const ae=Ce.toLowerCase();return ye===ae||ae.startsWith(ye)&&"-"===ae[ye.length]}}}else{const ye=se.value;switch(se.matcher){case"=":return Ce=>ye===Ce;case"~=":return Ce=>Ce.split(/[ \t]+/).includes(ye);case"^=":return Ce=>Ce.startsWith(ye);case"$=":return Ce=>Ce.endsWith(ye);case"*=":return Ce=>Ce.includes(ye);case"|=":return Ce=>ye===Ce||Ce.startsWith(ye)&&"-"===Ce[ye.length]}}}function N(se,ye){const Ce=X(ye,R=>"combinator"===R.type&&R.combinator===se,R=>Y.serialize(R.left)),ae=[];for(const R of Object.values(Ce)){const We=we(R.items);ae.push({ast:R.oneSimpleSelector.left,terminal:{type:"popElement",cont:We}})}return{type:"pushElement",combinator:se,cont:we(ae)}}function X(se,ye,Ce){const ae={};for(;se.length;){const R=he(se,ye,Ce),We=Hi=>ye(Hi)&&Ce(Hi)===R,Ge=Hi=>Hi.ast.list.some(We),{matches:Nt,rest:ln}=je(se,Ge);let ui=null;for(const Hi of Nt){const Qs=pe(Hi,We);ui||(ui=Qs)}if(null==ui)throw new Error("No simple selector is found.");ae[R]={oneSimpleSelector:ui,items:Nt},se=ln}return ae}function pe(se,ye){const Ce=se.ast.list,ae=new Array(Ce.length);let R=-1;for(let Ge=Ce.length;Ge-- >0;)ye(Ce[Ge])&&(ae[Ge]=!0,R=Ge);if(-1==R)throw new Error("Couldn't find the required simple selector.");const We=Ce[R];return se.ast.list=Ce.filter((Ge,Nt)=>!ae[Nt]),We}function he(se,ye,Ce){const ae={};for(const Ge of se){const Nt={};for(const ln of Ge.ast.list.filter(ye))Nt[Ce(ln)]=!0;for(const ln of Object.keys(Nt))ae[ln]?ae[ln]++:ae[ln]=1}let R="",We=0;for(const Ge of Object.entries(ae))Ge[1]>We&&(R=Ge[0],We=Ge[1]);return R}function Be(se,ye){const Ce=[],ae=[];for(const R of se)ye(R)?Ce.push(R):ae.push(R);return{matches:Ce,rest:ae}}function je(se,ye){const Ce=[],ae=[];for(const R of se)ye(R)?Ce.push(R):ae.push(R);return{matches:Ce,rest:ae}}function ke(se,ye){const Ce=le.compareSpecificity(ye.specificity,se.specificity);return Ce>0||0===Ce&&ye.index0||0===Ce&&ye.index>se.index}w.Ast=Q,w.DecisionTree=class x{constructor(ye){this.branches=we(function B(se){const ye=se.length,Ce=new Array(ye);for(let ae=0;ae{"use strict";Le.exports=JSON.parse('{"0":65533,"128":8364,"130":8218,"131":402,"132":8222,"133":8230,"134":8224,"135":8225,"136":710,"137":8240,"138":352,"139":8249,"140":338,"142":381,"145":8216,"146":8217,"147":8220,"148":8221,"149":8226,"150":8211,"151":8212,"152":732,"153":8482,"154":353,"155":8250,"156":339,"158":382,"159":376}')},9323:Le=>{"use strict";Le.exports=JSON.parse('{"Aacute":"\xc1","aacute":"\xe1","Abreve":"\u0102","abreve":"\u0103","ac":"\u223e","acd":"\u223f","acE":"\u223e\u0333","Acirc":"\xc2","acirc":"\xe2","acute":"\xb4","Acy":"\u0410","acy":"\u0430","AElig":"\xc6","aelig":"\xe6","af":"\u2061","Afr":"\u{1d504}","afr":"\u{1d51e}","Agrave":"\xc0","agrave":"\xe0","alefsym":"\u2135","aleph":"\u2135","Alpha":"\u0391","alpha":"\u03b1","Amacr":"\u0100","amacr":"\u0101","amalg":"\u2a3f","amp":"&","AMP":"&","andand":"\u2a55","And":"\u2a53","and":"\u2227","andd":"\u2a5c","andslope":"\u2a58","andv":"\u2a5a","ang":"\u2220","ange":"\u29a4","angle":"\u2220","angmsdaa":"\u29a8","angmsdab":"\u29a9","angmsdac":"\u29aa","angmsdad":"\u29ab","angmsdae":"\u29ac","angmsdaf":"\u29ad","angmsdag":"\u29ae","angmsdah":"\u29af","angmsd":"\u2221","angrt":"\u221f","angrtvb":"\u22be","angrtvbd":"\u299d","angsph":"\u2222","angst":"\xc5","angzarr":"\u237c","Aogon":"\u0104","aogon":"\u0105","Aopf":"\u{1d538}","aopf":"\u{1d552}","apacir":"\u2a6f","ap":"\u2248","apE":"\u2a70","ape":"\u224a","apid":"\u224b","apos":"\'","ApplyFunction":"\u2061","approx":"\u2248","approxeq":"\u224a","Aring":"\xc5","aring":"\xe5","Ascr":"\u{1d49c}","ascr":"\u{1d4b6}","Assign":"\u2254","ast":"*","asymp":"\u2248","asympeq":"\u224d","Atilde":"\xc3","atilde":"\xe3","Auml":"\xc4","auml":"\xe4","awconint":"\u2233","awint":"\u2a11","backcong":"\u224c","backepsilon":"\u03f6","backprime":"\u2035","backsim":"\u223d","backsimeq":"\u22cd","Backslash":"\u2216","Barv":"\u2ae7","barvee":"\u22bd","barwed":"\u2305","Barwed":"\u2306","barwedge":"\u2305","bbrk":"\u23b5","bbrktbrk":"\u23b6","bcong":"\u224c","Bcy":"\u0411","bcy":"\u0431","bdquo":"\u201e","becaus":"\u2235","because":"\u2235","Because":"\u2235","bemptyv":"\u29b0","bepsi":"\u03f6","bernou":"\u212c","Bernoullis":"\u212c","Beta":"\u0392","beta":"\u03b2","beth":"\u2136","between":"\u226c","Bfr":"\u{1d505}","bfr":"\u{1d51f}","bigcap":"\u22c2","bigcirc":"\u25ef","bigcup":"\u22c3","bigodot":"\u2a00","bigoplus":"\u2a01","bigotimes":"\u2a02","bigsqcup":"\u2a06","bigstar":"\u2605","bigtriangledown":"\u25bd","bigtriangleup":"\u25b3","biguplus":"\u2a04","bigvee":"\u22c1","bigwedge":"\u22c0","bkarow":"\u290d","blacklozenge":"\u29eb","blacksquare":"\u25aa","blacktriangle":"\u25b4","blacktriangledown":"\u25be","blacktriangleleft":"\u25c2","blacktriangleright":"\u25b8","blank":"\u2423","blk12":"\u2592","blk14":"\u2591","blk34":"\u2593","block":"\u2588","bne":"=\u20e5","bnequiv":"\u2261\u20e5","bNot":"\u2aed","bnot":"\u2310","Bopf":"\u{1d539}","bopf":"\u{1d553}","bot":"\u22a5","bottom":"\u22a5","bowtie":"\u22c8","boxbox":"\u29c9","boxdl":"\u2510","boxdL":"\u2555","boxDl":"\u2556","boxDL":"\u2557","boxdr":"\u250c","boxdR":"\u2552","boxDr":"\u2553","boxDR":"\u2554","boxh":"\u2500","boxH":"\u2550","boxhd":"\u252c","boxHd":"\u2564","boxhD":"\u2565","boxHD":"\u2566","boxhu":"\u2534","boxHu":"\u2567","boxhU":"\u2568","boxHU":"\u2569","boxminus":"\u229f","boxplus":"\u229e","boxtimes":"\u22a0","boxul":"\u2518","boxuL":"\u255b","boxUl":"\u255c","boxUL":"\u255d","boxur":"\u2514","boxuR":"\u2558","boxUr":"\u2559","boxUR":"\u255a","boxv":"\u2502","boxV":"\u2551","boxvh":"\u253c","boxvH":"\u256a","boxVh":"\u256b","boxVH":"\u256c","boxvl":"\u2524","boxvL":"\u2561","boxVl":"\u2562","boxVL":"\u2563","boxvr":"\u251c","boxvR":"\u255e","boxVr":"\u255f","boxVR":"\u2560","bprime":"\u2035","breve":"\u02d8","Breve":"\u02d8","brvbar":"\xa6","bscr":"\u{1d4b7}","Bscr":"\u212c","bsemi":"\u204f","bsim":"\u223d","bsime":"\u22cd","bsolb":"\u29c5","bsol":"\\\\","bsolhsub":"\u27c8","bull":"\u2022","bullet":"\u2022","bump":"\u224e","bumpE":"\u2aae","bumpe":"\u224f","Bumpeq":"\u224e","bumpeq":"\u224f","Cacute":"\u0106","cacute":"\u0107","capand":"\u2a44","capbrcup":"\u2a49","capcap":"\u2a4b","cap":"\u2229","Cap":"\u22d2","capcup":"\u2a47","capdot":"\u2a40","CapitalDifferentialD":"\u2145","caps":"\u2229\ufe00","caret":"\u2041","caron":"\u02c7","Cayleys":"\u212d","ccaps":"\u2a4d","Ccaron":"\u010c","ccaron":"\u010d","Ccedil":"\xc7","ccedil":"\xe7","Ccirc":"\u0108","ccirc":"\u0109","Cconint":"\u2230","ccups":"\u2a4c","ccupssm":"\u2a50","Cdot":"\u010a","cdot":"\u010b","cedil":"\xb8","Cedilla":"\xb8","cemptyv":"\u29b2","cent":"\xa2","centerdot":"\xb7","CenterDot":"\xb7","cfr":"\u{1d520}","Cfr":"\u212d","CHcy":"\u0427","chcy":"\u0447","check":"\u2713","checkmark":"\u2713","Chi":"\u03a7","chi":"\u03c7","circ":"\u02c6","circeq":"\u2257","circlearrowleft":"\u21ba","circlearrowright":"\u21bb","circledast":"\u229b","circledcirc":"\u229a","circleddash":"\u229d","CircleDot":"\u2299","circledR":"\xae","circledS":"\u24c8","CircleMinus":"\u2296","CirclePlus":"\u2295","CircleTimes":"\u2297","cir":"\u25cb","cirE":"\u29c3","cire":"\u2257","cirfnint":"\u2a10","cirmid":"\u2aef","cirscir":"\u29c2","ClockwiseContourIntegral":"\u2232","CloseCurlyDoubleQuote":"\u201d","CloseCurlyQuote":"\u2019","clubs":"\u2663","clubsuit":"\u2663","colon":":","Colon":"\u2237","Colone":"\u2a74","colone":"\u2254","coloneq":"\u2254","comma":",","commat":"@","comp":"\u2201","compfn":"\u2218","complement":"\u2201","complexes":"\u2102","cong":"\u2245","congdot":"\u2a6d","Congruent":"\u2261","conint":"\u222e","Conint":"\u222f","ContourIntegral":"\u222e","copf":"\u{1d554}","Copf":"\u2102","coprod":"\u2210","Coproduct":"\u2210","copy":"\xa9","COPY":"\xa9","copysr":"\u2117","CounterClockwiseContourIntegral":"\u2233","crarr":"\u21b5","cross":"\u2717","Cross":"\u2a2f","Cscr":"\u{1d49e}","cscr":"\u{1d4b8}","csub":"\u2acf","csube":"\u2ad1","csup":"\u2ad0","csupe":"\u2ad2","ctdot":"\u22ef","cudarrl":"\u2938","cudarrr":"\u2935","cuepr":"\u22de","cuesc":"\u22df","cularr":"\u21b6","cularrp":"\u293d","cupbrcap":"\u2a48","cupcap":"\u2a46","CupCap":"\u224d","cup":"\u222a","Cup":"\u22d3","cupcup":"\u2a4a","cupdot":"\u228d","cupor":"\u2a45","cups":"\u222a\ufe00","curarr":"\u21b7","curarrm":"\u293c","curlyeqprec":"\u22de","curlyeqsucc":"\u22df","curlyvee":"\u22ce","curlywedge":"\u22cf","curren":"\xa4","curvearrowleft":"\u21b6","curvearrowright":"\u21b7","cuvee":"\u22ce","cuwed":"\u22cf","cwconint":"\u2232","cwint":"\u2231","cylcty":"\u232d","dagger":"\u2020","Dagger":"\u2021","daleth":"\u2138","darr":"\u2193","Darr":"\u21a1","dArr":"\u21d3","dash":"\u2010","Dashv":"\u2ae4","dashv":"\u22a3","dbkarow":"\u290f","dblac":"\u02dd","Dcaron":"\u010e","dcaron":"\u010f","Dcy":"\u0414","dcy":"\u0434","ddagger":"\u2021","ddarr":"\u21ca","DD":"\u2145","dd":"\u2146","DDotrahd":"\u2911","ddotseq":"\u2a77","deg":"\xb0","Del":"\u2207","Delta":"\u0394","delta":"\u03b4","demptyv":"\u29b1","dfisht":"\u297f","Dfr":"\u{1d507}","dfr":"\u{1d521}","dHar":"\u2965","dharl":"\u21c3","dharr":"\u21c2","DiacriticalAcute":"\xb4","DiacriticalDot":"\u02d9","DiacriticalDoubleAcute":"\u02dd","DiacriticalGrave":"`","DiacriticalTilde":"\u02dc","diam":"\u22c4","diamond":"\u22c4","Diamond":"\u22c4","diamondsuit":"\u2666","diams":"\u2666","die":"\xa8","DifferentialD":"\u2146","digamma":"\u03dd","disin":"\u22f2","div":"\xf7","divide":"\xf7","divideontimes":"\u22c7","divonx":"\u22c7","DJcy":"\u0402","djcy":"\u0452","dlcorn":"\u231e","dlcrop":"\u230d","dollar":"$","Dopf":"\u{1d53b}","dopf":"\u{1d555}","Dot":"\xa8","dot":"\u02d9","DotDot":"\u20dc","doteq":"\u2250","doteqdot":"\u2251","DotEqual":"\u2250","dotminus":"\u2238","dotplus":"\u2214","dotsquare":"\u22a1","doublebarwedge":"\u2306","DoubleContourIntegral":"\u222f","DoubleDot":"\xa8","DoubleDownArrow":"\u21d3","DoubleLeftArrow":"\u21d0","DoubleLeftRightArrow":"\u21d4","DoubleLeftTee":"\u2ae4","DoubleLongLeftArrow":"\u27f8","DoubleLongLeftRightArrow":"\u27fa","DoubleLongRightArrow":"\u27f9","DoubleRightArrow":"\u21d2","DoubleRightTee":"\u22a8","DoubleUpArrow":"\u21d1","DoubleUpDownArrow":"\u21d5","DoubleVerticalBar":"\u2225","DownArrowBar":"\u2913","downarrow":"\u2193","DownArrow":"\u2193","Downarrow":"\u21d3","DownArrowUpArrow":"\u21f5","DownBreve":"\u0311","downdownarrows":"\u21ca","downharpoonleft":"\u21c3","downharpoonright":"\u21c2","DownLeftRightVector":"\u2950","DownLeftTeeVector":"\u295e","DownLeftVectorBar":"\u2956","DownLeftVector":"\u21bd","DownRightTeeVector":"\u295f","DownRightVectorBar":"\u2957","DownRightVector":"\u21c1","DownTeeArrow":"\u21a7","DownTee":"\u22a4","drbkarow":"\u2910","drcorn":"\u231f","drcrop":"\u230c","Dscr":"\u{1d49f}","dscr":"\u{1d4b9}","DScy":"\u0405","dscy":"\u0455","dsol":"\u29f6","Dstrok":"\u0110","dstrok":"\u0111","dtdot":"\u22f1","dtri":"\u25bf","dtrif":"\u25be","duarr":"\u21f5","duhar":"\u296f","dwangle":"\u29a6","DZcy":"\u040f","dzcy":"\u045f","dzigrarr":"\u27ff","Eacute":"\xc9","eacute":"\xe9","easter":"\u2a6e","Ecaron":"\u011a","ecaron":"\u011b","Ecirc":"\xca","ecirc":"\xea","ecir":"\u2256","ecolon":"\u2255","Ecy":"\u042d","ecy":"\u044d","eDDot":"\u2a77","Edot":"\u0116","edot":"\u0117","eDot":"\u2251","ee":"\u2147","efDot":"\u2252","Efr":"\u{1d508}","efr":"\u{1d522}","eg":"\u2a9a","Egrave":"\xc8","egrave":"\xe8","egs":"\u2a96","egsdot":"\u2a98","el":"\u2a99","Element":"\u2208","elinters":"\u23e7","ell":"\u2113","els":"\u2a95","elsdot":"\u2a97","Emacr":"\u0112","emacr":"\u0113","empty":"\u2205","emptyset":"\u2205","EmptySmallSquare":"\u25fb","emptyv":"\u2205","EmptyVerySmallSquare":"\u25ab","emsp13":"\u2004","emsp14":"\u2005","emsp":"\u2003","ENG":"\u014a","eng":"\u014b","ensp":"\u2002","Eogon":"\u0118","eogon":"\u0119","Eopf":"\u{1d53c}","eopf":"\u{1d556}","epar":"\u22d5","eparsl":"\u29e3","eplus":"\u2a71","epsi":"\u03b5","Epsilon":"\u0395","epsilon":"\u03b5","epsiv":"\u03f5","eqcirc":"\u2256","eqcolon":"\u2255","eqsim":"\u2242","eqslantgtr":"\u2a96","eqslantless":"\u2a95","Equal":"\u2a75","equals":"=","EqualTilde":"\u2242","equest":"\u225f","Equilibrium":"\u21cc","equiv":"\u2261","equivDD":"\u2a78","eqvparsl":"\u29e5","erarr":"\u2971","erDot":"\u2253","escr":"\u212f","Escr":"\u2130","esdot":"\u2250","Esim":"\u2a73","esim":"\u2242","Eta":"\u0397","eta":"\u03b7","ETH":"\xd0","eth":"\xf0","Euml":"\xcb","euml":"\xeb","euro":"\u20ac","excl":"!","exist":"\u2203","Exists":"\u2203","expectation":"\u2130","exponentiale":"\u2147","ExponentialE":"\u2147","fallingdotseq":"\u2252","Fcy":"\u0424","fcy":"\u0444","female":"\u2640","ffilig":"\ufb03","fflig":"\ufb00","ffllig":"\ufb04","Ffr":"\u{1d509}","ffr":"\u{1d523}","filig":"\ufb01","FilledSmallSquare":"\u25fc","FilledVerySmallSquare":"\u25aa","fjlig":"fj","flat":"\u266d","fllig":"\ufb02","fltns":"\u25b1","fnof":"\u0192","Fopf":"\u{1d53d}","fopf":"\u{1d557}","forall":"\u2200","ForAll":"\u2200","fork":"\u22d4","forkv":"\u2ad9","Fouriertrf":"\u2131","fpartint":"\u2a0d","frac12":"\xbd","frac13":"\u2153","frac14":"\xbc","frac15":"\u2155","frac16":"\u2159","frac18":"\u215b","frac23":"\u2154","frac25":"\u2156","frac34":"\xbe","frac35":"\u2157","frac38":"\u215c","frac45":"\u2158","frac56":"\u215a","frac58":"\u215d","frac78":"\u215e","frasl":"\u2044","frown":"\u2322","fscr":"\u{1d4bb}","Fscr":"\u2131","gacute":"\u01f5","Gamma":"\u0393","gamma":"\u03b3","Gammad":"\u03dc","gammad":"\u03dd","gap":"\u2a86","Gbreve":"\u011e","gbreve":"\u011f","Gcedil":"\u0122","Gcirc":"\u011c","gcirc":"\u011d","Gcy":"\u0413","gcy":"\u0433","Gdot":"\u0120","gdot":"\u0121","ge":"\u2265","gE":"\u2267","gEl":"\u2a8c","gel":"\u22db","geq":"\u2265","geqq":"\u2267","geqslant":"\u2a7e","gescc":"\u2aa9","ges":"\u2a7e","gesdot":"\u2a80","gesdoto":"\u2a82","gesdotol":"\u2a84","gesl":"\u22db\ufe00","gesles":"\u2a94","Gfr":"\u{1d50a}","gfr":"\u{1d524}","gg":"\u226b","Gg":"\u22d9","ggg":"\u22d9","gimel":"\u2137","GJcy":"\u0403","gjcy":"\u0453","gla":"\u2aa5","gl":"\u2277","glE":"\u2a92","glj":"\u2aa4","gnap":"\u2a8a","gnapprox":"\u2a8a","gne":"\u2a88","gnE":"\u2269","gneq":"\u2a88","gneqq":"\u2269","gnsim":"\u22e7","Gopf":"\u{1d53e}","gopf":"\u{1d558}","grave":"`","GreaterEqual":"\u2265","GreaterEqualLess":"\u22db","GreaterFullEqual":"\u2267","GreaterGreater":"\u2aa2","GreaterLess":"\u2277","GreaterSlantEqual":"\u2a7e","GreaterTilde":"\u2273","Gscr":"\u{1d4a2}","gscr":"\u210a","gsim":"\u2273","gsime":"\u2a8e","gsiml":"\u2a90","gtcc":"\u2aa7","gtcir":"\u2a7a","gt":">","GT":">","Gt":"\u226b","gtdot":"\u22d7","gtlPar":"\u2995","gtquest":"\u2a7c","gtrapprox":"\u2a86","gtrarr":"\u2978","gtrdot":"\u22d7","gtreqless":"\u22db","gtreqqless":"\u2a8c","gtrless":"\u2277","gtrsim":"\u2273","gvertneqq":"\u2269\ufe00","gvnE":"\u2269\ufe00","Hacek":"\u02c7","hairsp":"\u200a","half":"\xbd","hamilt":"\u210b","HARDcy":"\u042a","hardcy":"\u044a","harrcir":"\u2948","harr":"\u2194","hArr":"\u21d4","harrw":"\u21ad","Hat":"^","hbar":"\u210f","Hcirc":"\u0124","hcirc":"\u0125","hearts":"\u2665","heartsuit":"\u2665","hellip":"\u2026","hercon":"\u22b9","hfr":"\u{1d525}","Hfr":"\u210c","HilbertSpace":"\u210b","hksearow":"\u2925","hkswarow":"\u2926","hoarr":"\u21ff","homtht":"\u223b","hookleftarrow":"\u21a9","hookrightarrow":"\u21aa","hopf":"\u{1d559}","Hopf":"\u210d","horbar":"\u2015","HorizontalLine":"\u2500","hscr":"\u{1d4bd}","Hscr":"\u210b","hslash":"\u210f","Hstrok":"\u0126","hstrok":"\u0127","HumpDownHump":"\u224e","HumpEqual":"\u224f","hybull":"\u2043","hyphen":"\u2010","Iacute":"\xcd","iacute":"\xed","ic":"\u2063","Icirc":"\xce","icirc":"\xee","Icy":"\u0418","icy":"\u0438","Idot":"\u0130","IEcy":"\u0415","iecy":"\u0435","iexcl":"\xa1","iff":"\u21d4","ifr":"\u{1d526}","Ifr":"\u2111","Igrave":"\xcc","igrave":"\xec","ii":"\u2148","iiiint":"\u2a0c","iiint":"\u222d","iinfin":"\u29dc","iiota":"\u2129","IJlig":"\u0132","ijlig":"\u0133","Imacr":"\u012a","imacr":"\u012b","image":"\u2111","ImaginaryI":"\u2148","imagline":"\u2110","imagpart":"\u2111","imath":"\u0131","Im":"\u2111","imof":"\u22b7","imped":"\u01b5","Implies":"\u21d2","incare":"\u2105","in":"\u2208","infin":"\u221e","infintie":"\u29dd","inodot":"\u0131","intcal":"\u22ba","int":"\u222b","Int":"\u222c","integers":"\u2124","Integral":"\u222b","intercal":"\u22ba","Intersection":"\u22c2","intlarhk":"\u2a17","intprod":"\u2a3c","InvisibleComma":"\u2063","InvisibleTimes":"\u2062","IOcy":"\u0401","iocy":"\u0451","Iogon":"\u012e","iogon":"\u012f","Iopf":"\u{1d540}","iopf":"\u{1d55a}","Iota":"\u0399","iota":"\u03b9","iprod":"\u2a3c","iquest":"\xbf","iscr":"\u{1d4be}","Iscr":"\u2110","isin":"\u2208","isindot":"\u22f5","isinE":"\u22f9","isins":"\u22f4","isinsv":"\u22f3","isinv":"\u2208","it":"\u2062","Itilde":"\u0128","itilde":"\u0129","Iukcy":"\u0406","iukcy":"\u0456","Iuml":"\xcf","iuml":"\xef","Jcirc":"\u0134","jcirc":"\u0135","Jcy":"\u0419","jcy":"\u0439","Jfr":"\u{1d50d}","jfr":"\u{1d527}","jmath":"\u0237","Jopf":"\u{1d541}","jopf":"\u{1d55b}","Jscr":"\u{1d4a5}","jscr":"\u{1d4bf}","Jsercy":"\u0408","jsercy":"\u0458","Jukcy":"\u0404","jukcy":"\u0454","Kappa":"\u039a","kappa":"\u03ba","kappav":"\u03f0","Kcedil":"\u0136","kcedil":"\u0137","Kcy":"\u041a","kcy":"\u043a","Kfr":"\u{1d50e}","kfr":"\u{1d528}","kgreen":"\u0138","KHcy":"\u0425","khcy":"\u0445","KJcy":"\u040c","kjcy":"\u045c","Kopf":"\u{1d542}","kopf":"\u{1d55c}","Kscr":"\u{1d4a6}","kscr":"\u{1d4c0}","lAarr":"\u21da","Lacute":"\u0139","lacute":"\u013a","laemptyv":"\u29b4","lagran":"\u2112","Lambda":"\u039b","lambda":"\u03bb","lang":"\u27e8","Lang":"\u27ea","langd":"\u2991","langle":"\u27e8","lap":"\u2a85","Laplacetrf":"\u2112","laquo":"\xab","larrb":"\u21e4","larrbfs":"\u291f","larr":"\u2190","Larr":"\u219e","lArr":"\u21d0","larrfs":"\u291d","larrhk":"\u21a9","larrlp":"\u21ab","larrpl":"\u2939","larrsim":"\u2973","larrtl":"\u21a2","latail":"\u2919","lAtail":"\u291b","lat":"\u2aab","late":"\u2aad","lates":"\u2aad\ufe00","lbarr":"\u290c","lBarr":"\u290e","lbbrk":"\u2772","lbrace":"{","lbrack":"[","lbrke":"\u298b","lbrksld":"\u298f","lbrkslu":"\u298d","Lcaron":"\u013d","lcaron":"\u013e","Lcedil":"\u013b","lcedil":"\u013c","lceil":"\u2308","lcub":"{","Lcy":"\u041b","lcy":"\u043b","ldca":"\u2936","ldquo":"\u201c","ldquor":"\u201e","ldrdhar":"\u2967","ldrushar":"\u294b","ldsh":"\u21b2","le":"\u2264","lE":"\u2266","LeftAngleBracket":"\u27e8","LeftArrowBar":"\u21e4","leftarrow":"\u2190","LeftArrow":"\u2190","Leftarrow":"\u21d0","LeftArrowRightArrow":"\u21c6","leftarrowtail":"\u21a2","LeftCeiling":"\u2308","LeftDoubleBracket":"\u27e6","LeftDownTeeVector":"\u2961","LeftDownVectorBar":"\u2959","LeftDownVector":"\u21c3","LeftFloor":"\u230a","leftharpoondown":"\u21bd","leftharpoonup":"\u21bc","leftleftarrows":"\u21c7","leftrightarrow":"\u2194","LeftRightArrow":"\u2194","Leftrightarrow":"\u21d4","leftrightarrows":"\u21c6","leftrightharpoons":"\u21cb","leftrightsquigarrow":"\u21ad","LeftRightVector":"\u294e","LeftTeeArrow":"\u21a4","LeftTee":"\u22a3","LeftTeeVector":"\u295a","leftthreetimes":"\u22cb","LeftTriangleBar":"\u29cf","LeftTriangle":"\u22b2","LeftTriangleEqual":"\u22b4","LeftUpDownVector":"\u2951","LeftUpTeeVector":"\u2960","LeftUpVectorBar":"\u2958","LeftUpVector":"\u21bf","LeftVectorBar":"\u2952","LeftVector":"\u21bc","lEg":"\u2a8b","leg":"\u22da","leq":"\u2264","leqq":"\u2266","leqslant":"\u2a7d","lescc":"\u2aa8","les":"\u2a7d","lesdot":"\u2a7f","lesdoto":"\u2a81","lesdotor":"\u2a83","lesg":"\u22da\ufe00","lesges":"\u2a93","lessapprox":"\u2a85","lessdot":"\u22d6","lesseqgtr":"\u22da","lesseqqgtr":"\u2a8b","LessEqualGreater":"\u22da","LessFullEqual":"\u2266","LessGreater":"\u2276","lessgtr":"\u2276","LessLess":"\u2aa1","lesssim":"\u2272","LessSlantEqual":"\u2a7d","LessTilde":"\u2272","lfisht":"\u297c","lfloor":"\u230a","Lfr":"\u{1d50f}","lfr":"\u{1d529}","lg":"\u2276","lgE":"\u2a91","lHar":"\u2962","lhard":"\u21bd","lharu":"\u21bc","lharul":"\u296a","lhblk":"\u2584","LJcy":"\u0409","ljcy":"\u0459","llarr":"\u21c7","ll":"\u226a","Ll":"\u22d8","llcorner":"\u231e","Lleftarrow":"\u21da","llhard":"\u296b","lltri":"\u25fa","Lmidot":"\u013f","lmidot":"\u0140","lmoustache":"\u23b0","lmoust":"\u23b0","lnap":"\u2a89","lnapprox":"\u2a89","lne":"\u2a87","lnE":"\u2268","lneq":"\u2a87","lneqq":"\u2268","lnsim":"\u22e6","loang":"\u27ec","loarr":"\u21fd","lobrk":"\u27e6","longleftarrow":"\u27f5","LongLeftArrow":"\u27f5","Longleftarrow":"\u27f8","longleftrightarrow":"\u27f7","LongLeftRightArrow":"\u27f7","Longleftrightarrow":"\u27fa","longmapsto":"\u27fc","longrightarrow":"\u27f6","LongRightArrow":"\u27f6","Longrightarrow":"\u27f9","looparrowleft":"\u21ab","looparrowright":"\u21ac","lopar":"\u2985","Lopf":"\u{1d543}","lopf":"\u{1d55d}","loplus":"\u2a2d","lotimes":"\u2a34","lowast":"\u2217","lowbar":"_","LowerLeftArrow":"\u2199","LowerRightArrow":"\u2198","loz":"\u25ca","lozenge":"\u25ca","lozf":"\u29eb","lpar":"(","lparlt":"\u2993","lrarr":"\u21c6","lrcorner":"\u231f","lrhar":"\u21cb","lrhard":"\u296d","lrm":"\u200e","lrtri":"\u22bf","lsaquo":"\u2039","lscr":"\u{1d4c1}","Lscr":"\u2112","lsh":"\u21b0","Lsh":"\u21b0","lsim":"\u2272","lsime":"\u2a8d","lsimg":"\u2a8f","lsqb":"[","lsquo":"\u2018","lsquor":"\u201a","Lstrok":"\u0141","lstrok":"\u0142","ltcc":"\u2aa6","ltcir":"\u2a79","lt":"<","LT":"<","Lt":"\u226a","ltdot":"\u22d6","lthree":"\u22cb","ltimes":"\u22c9","ltlarr":"\u2976","ltquest":"\u2a7b","ltri":"\u25c3","ltrie":"\u22b4","ltrif":"\u25c2","ltrPar":"\u2996","lurdshar":"\u294a","luruhar":"\u2966","lvertneqq":"\u2268\ufe00","lvnE":"\u2268\ufe00","macr":"\xaf","male":"\u2642","malt":"\u2720","maltese":"\u2720","Map":"\u2905","map":"\u21a6","mapsto":"\u21a6","mapstodown":"\u21a7","mapstoleft":"\u21a4","mapstoup":"\u21a5","marker":"\u25ae","mcomma":"\u2a29","Mcy":"\u041c","mcy":"\u043c","mdash":"\u2014","mDDot":"\u223a","measuredangle":"\u2221","MediumSpace":"\u205f","Mellintrf":"\u2133","Mfr":"\u{1d510}","mfr":"\u{1d52a}","mho":"\u2127","micro":"\xb5","midast":"*","midcir":"\u2af0","mid":"\u2223","middot":"\xb7","minusb":"\u229f","minus":"\u2212","minusd":"\u2238","minusdu":"\u2a2a","MinusPlus":"\u2213","mlcp":"\u2adb","mldr":"\u2026","mnplus":"\u2213","models":"\u22a7","Mopf":"\u{1d544}","mopf":"\u{1d55e}","mp":"\u2213","mscr":"\u{1d4c2}","Mscr":"\u2133","mstpos":"\u223e","Mu":"\u039c","mu":"\u03bc","multimap":"\u22b8","mumap":"\u22b8","nabla":"\u2207","Nacute":"\u0143","nacute":"\u0144","nang":"\u2220\u20d2","nap":"\u2249","napE":"\u2a70\u0338","napid":"\u224b\u0338","napos":"\u0149","napprox":"\u2249","natural":"\u266e","naturals":"\u2115","natur":"\u266e","nbsp":"\xa0","nbump":"\u224e\u0338","nbumpe":"\u224f\u0338","ncap":"\u2a43","Ncaron":"\u0147","ncaron":"\u0148","Ncedil":"\u0145","ncedil":"\u0146","ncong":"\u2247","ncongdot":"\u2a6d\u0338","ncup":"\u2a42","Ncy":"\u041d","ncy":"\u043d","ndash":"\u2013","nearhk":"\u2924","nearr":"\u2197","neArr":"\u21d7","nearrow":"\u2197","ne":"\u2260","nedot":"\u2250\u0338","NegativeMediumSpace":"\u200b","NegativeThickSpace":"\u200b","NegativeThinSpace":"\u200b","NegativeVeryThinSpace":"\u200b","nequiv":"\u2262","nesear":"\u2928","nesim":"\u2242\u0338","NestedGreaterGreater":"\u226b","NestedLessLess":"\u226a","NewLine":"\\n","nexist":"\u2204","nexists":"\u2204","Nfr":"\u{1d511}","nfr":"\u{1d52b}","ngE":"\u2267\u0338","nge":"\u2271","ngeq":"\u2271","ngeqq":"\u2267\u0338","ngeqslant":"\u2a7e\u0338","nges":"\u2a7e\u0338","nGg":"\u22d9\u0338","ngsim":"\u2275","nGt":"\u226b\u20d2","ngt":"\u226f","ngtr":"\u226f","nGtv":"\u226b\u0338","nharr":"\u21ae","nhArr":"\u21ce","nhpar":"\u2af2","ni":"\u220b","nis":"\u22fc","nisd":"\u22fa","niv":"\u220b","NJcy":"\u040a","njcy":"\u045a","nlarr":"\u219a","nlArr":"\u21cd","nldr":"\u2025","nlE":"\u2266\u0338","nle":"\u2270","nleftarrow":"\u219a","nLeftarrow":"\u21cd","nleftrightarrow":"\u21ae","nLeftrightarrow":"\u21ce","nleq":"\u2270","nleqq":"\u2266\u0338","nleqslant":"\u2a7d\u0338","nles":"\u2a7d\u0338","nless":"\u226e","nLl":"\u22d8\u0338","nlsim":"\u2274","nLt":"\u226a\u20d2","nlt":"\u226e","nltri":"\u22ea","nltrie":"\u22ec","nLtv":"\u226a\u0338","nmid":"\u2224","NoBreak":"\u2060","NonBreakingSpace":"\xa0","nopf":"\u{1d55f}","Nopf":"\u2115","Not":"\u2aec","not":"\xac","NotCongruent":"\u2262","NotCupCap":"\u226d","NotDoubleVerticalBar":"\u2226","NotElement":"\u2209","NotEqual":"\u2260","NotEqualTilde":"\u2242\u0338","NotExists":"\u2204","NotGreater":"\u226f","NotGreaterEqual":"\u2271","NotGreaterFullEqual":"\u2267\u0338","NotGreaterGreater":"\u226b\u0338","NotGreaterLess":"\u2279","NotGreaterSlantEqual":"\u2a7e\u0338","NotGreaterTilde":"\u2275","NotHumpDownHump":"\u224e\u0338","NotHumpEqual":"\u224f\u0338","notin":"\u2209","notindot":"\u22f5\u0338","notinE":"\u22f9\u0338","notinva":"\u2209","notinvb":"\u22f7","notinvc":"\u22f6","NotLeftTriangleBar":"\u29cf\u0338","NotLeftTriangle":"\u22ea","NotLeftTriangleEqual":"\u22ec","NotLess":"\u226e","NotLessEqual":"\u2270","NotLessGreater":"\u2278","NotLessLess":"\u226a\u0338","NotLessSlantEqual":"\u2a7d\u0338","NotLessTilde":"\u2274","NotNestedGreaterGreater":"\u2aa2\u0338","NotNestedLessLess":"\u2aa1\u0338","notni":"\u220c","notniva":"\u220c","notnivb":"\u22fe","notnivc":"\u22fd","NotPrecedes":"\u2280","NotPrecedesEqual":"\u2aaf\u0338","NotPrecedesSlantEqual":"\u22e0","NotReverseElement":"\u220c","NotRightTriangleBar":"\u29d0\u0338","NotRightTriangle":"\u22eb","NotRightTriangleEqual":"\u22ed","NotSquareSubset":"\u228f\u0338","NotSquareSubsetEqual":"\u22e2","NotSquareSuperset":"\u2290\u0338","NotSquareSupersetEqual":"\u22e3","NotSubset":"\u2282\u20d2","NotSubsetEqual":"\u2288","NotSucceeds":"\u2281","NotSucceedsEqual":"\u2ab0\u0338","NotSucceedsSlantEqual":"\u22e1","NotSucceedsTilde":"\u227f\u0338","NotSuperset":"\u2283\u20d2","NotSupersetEqual":"\u2289","NotTilde":"\u2241","NotTildeEqual":"\u2244","NotTildeFullEqual":"\u2247","NotTildeTilde":"\u2249","NotVerticalBar":"\u2224","nparallel":"\u2226","npar":"\u2226","nparsl":"\u2afd\u20e5","npart":"\u2202\u0338","npolint":"\u2a14","npr":"\u2280","nprcue":"\u22e0","nprec":"\u2280","npreceq":"\u2aaf\u0338","npre":"\u2aaf\u0338","nrarrc":"\u2933\u0338","nrarr":"\u219b","nrArr":"\u21cf","nrarrw":"\u219d\u0338","nrightarrow":"\u219b","nRightarrow":"\u21cf","nrtri":"\u22eb","nrtrie":"\u22ed","nsc":"\u2281","nsccue":"\u22e1","nsce":"\u2ab0\u0338","Nscr":"\u{1d4a9}","nscr":"\u{1d4c3}","nshortmid":"\u2224","nshortparallel":"\u2226","nsim":"\u2241","nsime":"\u2244","nsimeq":"\u2244","nsmid":"\u2224","nspar":"\u2226","nsqsube":"\u22e2","nsqsupe":"\u22e3","nsub":"\u2284","nsubE":"\u2ac5\u0338","nsube":"\u2288","nsubset":"\u2282\u20d2","nsubseteq":"\u2288","nsubseteqq":"\u2ac5\u0338","nsucc":"\u2281","nsucceq":"\u2ab0\u0338","nsup":"\u2285","nsupE":"\u2ac6\u0338","nsupe":"\u2289","nsupset":"\u2283\u20d2","nsupseteq":"\u2289","nsupseteqq":"\u2ac6\u0338","ntgl":"\u2279","Ntilde":"\xd1","ntilde":"\xf1","ntlg":"\u2278","ntriangleleft":"\u22ea","ntrianglelefteq":"\u22ec","ntriangleright":"\u22eb","ntrianglerighteq":"\u22ed","Nu":"\u039d","nu":"\u03bd","num":"#","numero":"\u2116","numsp":"\u2007","nvap":"\u224d\u20d2","nvdash":"\u22ac","nvDash":"\u22ad","nVdash":"\u22ae","nVDash":"\u22af","nvge":"\u2265\u20d2","nvgt":">\u20d2","nvHarr":"\u2904","nvinfin":"\u29de","nvlArr":"\u2902","nvle":"\u2264\u20d2","nvlt":"<\u20d2","nvltrie":"\u22b4\u20d2","nvrArr":"\u2903","nvrtrie":"\u22b5\u20d2","nvsim":"\u223c\u20d2","nwarhk":"\u2923","nwarr":"\u2196","nwArr":"\u21d6","nwarrow":"\u2196","nwnear":"\u2927","Oacute":"\xd3","oacute":"\xf3","oast":"\u229b","Ocirc":"\xd4","ocirc":"\xf4","ocir":"\u229a","Ocy":"\u041e","ocy":"\u043e","odash":"\u229d","Odblac":"\u0150","odblac":"\u0151","odiv":"\u2a38","odot":"\u2299","odsold":"\u29bc","OElig":"\u0152","oelig":"\u0153","ofcir":"\u29bf","Ofr":"\u{1d512}","ofr":"\u{1d52c}","ogon":"\u02db","Ograve":"\xd2","ograve":"\xf2","ogt":"\u29c1","ohbar":"\u29b5","ohm":"\u03a9","oint":"\u222e","olarr":"\u21ba","olcir":"\u29be","olcross":"\u29bb","oline":"\u203e","olt":"\u29c0","Omacr":"\u014c","omacr":"\u014d","Omega":"\u03a9","omega":"\u03c9","Omicron":"\u039f","omicron":"\u03bf","omid":"\u29b6","ominus":"\u2296","Oopf":"\u{1d546}","oopf":"\u{1d560}","opar":"\u29b7","OpenCurlyDoubleQuote":"\u201c","OpenCurlyQuote":"\u2018","operp":"\u29b9","oplus":"\u2295","orarr":"\u21bb","Or":"\u2a54","or":"\u2228","ord":"\u2a5d","order":"\u2134","orderof":"\u2134","ordf":"\xaa","ordm":"\xba","origof":"\u22b6","oror":"\u2a56","orslope":"\u2a57","orv":"\u2a5b","oS":"\u24c8","Oscr":"\u{1d4aa}","oscr":"\u2134","Oslash":"\xd8","oslash":"\xf8","osol":"\u2298","Otilde":"\xd5","otilde":"\xf5","otimesas":"\u2a36","Otimes":"\u2a37","otimes":"\u2297","Ouml":"\xd6","ouml":"\xf6","ovbar":"\u233d","OverBar":"\u203e","OverBrace":"\u23de","OverBracket":"\u23b4","OverParenthesis":"\u23dc","para":"\xb6","parallel":"\u2225","par":"\u2225","parsim":"\u2af3","parsl":"\u2afd","part":"\u2202","PartialD":"\u2202","Pcy":"\u041f","pcy":"\u043f","percnt":"%","period":".","permil":"\u2030","perp":"\u22a5","pertenk":"\u2031","Pfr":"\u{1d513}","pfr":"\u{1d52d}","Phi":"\u03a6","phi":"\u03c6","phiv":"\u03d5","phmmat":"\u2133","phone":"\u260e","Pi":"\u03a0","pi":"\u03c0","pitchfork":"\u22d4","piv":"\u03d6","planck":"\u210f","planckh":"\u210e","plankv":"\u210f","plusacir":"\u2a23","plusb":"\u229e","pluscir":"\u2a22","plus":"+","plusdo":"\u2214","plusdu":"\u2a25","pluse":"\u2a72","PlusMinus":"\xb1","plusmn":"\xb1","plussim":"\u2a26","plustwo":"\u2a27","pm":"\xb1","Poincareplane":"\u210c","pointint":"\u2a15","popf":"\u{1d561}","Popf":"\u2119","pound":"\xa3","prap":"\u2ab7","Pr":"\u2abb","pr":"\u227a","prcue":"\u227c","precapprox":"\u2ab7","prec":"\u227a","preccurlyeq":"\u227c","Precedes":"\u227a","PrecedesEqual":"\u2aaf","PrecedesSlantEqual":"\u227c","PrecedesTilde":"\u227e","preceq":"\u2aaf","precnapprox":"\u2ab9","precneqq":"\u2ab5","precnsim":"\u22e8","pre":"\u2aaf","prE":"\u2ab3","precsim":"\u227e","prime":"\u2032","Prime":"\u2033","primes":"\u2119","prnap":"\u2ab9","prnE":"\u2ab5","prnsim":"\u22e8","prod":"\u220f","Product":"\u220f","profalar":"\u232e","profline":"\u2312","profsurf":"\u2313","prop":"\u221d","Proportional":"\u221d","Proportion":"\u2237","propto":"\u221d","prsim":"\u227e","prurel":"\u22b0","Pscr":"\u{1d4ab}","pscr":"\u{1d4c5}","Psi":"\u03a8","psi":"\u03c8","puncsp":"\u2008","Qfr":"\u{1d514}","qfr":"\u{1d52e}","qint":"\u2a0c","qopf":"\u{1d562}","Qopf":"\u211a","qprime":"\u2057","Qscr":"\u{1d4ac}","qscr":"\u{1d4c6}","quaternions":"\u210d","quatint":"\u2a16","quest":"?","questeq":"\u225f","quot":"\\"","QUOT":"\\"","rAarr":"\u21db","race":"\u223d\u0331","Racute":"\u0154","racute":"\u0155","radic":"\u221a","raemptyv":"\u29b3","rang":"\u27e9","Rang":"\u27eb","rangd":"\u2992","range":"\u29a5","rangle":"\u27e9","raquo":"\xbb","rarrap":"\u2975","rarrb":"\u21e5","rarrbfs":"\u2920","rarrc":"\u2933","rarr":"\u2192","Rarr":"\u21a0","rArr":"\u21d2","rarrfs":"\u291e","rarrhk":"\u21aa","rarrlp":"\u21ac","rarrpl":"\u2945","rarrsim":"\u2974","Rarrtl":"\u2916","rarrtl":"\u21a3","rarrw":"\u219d","ratail":"\u291a","rAtail":"\u291c","ratio":"\u2236","rationals":"\u211a","rbarr":"\u290d","rBarr":"\u290f","RBarr":"\u2910","rbbrk":"\u2773","rbrace":"}","rbrack":"]","rbrke":"\u298c","rbrksld":"\u298e","rbrkslu":"\u2990","Rcaron":"\u0158","rcaron":"\u0159","Rcedil":"\u0156","rcedil":"\u0157","rceil":"\u2309","rcub":"}","Rcy":"\u0420","rcy":"\u0440","rdca":"\u2937","rdldhar":"\u2969","rdquo":"\u201d","rdquor":"\u201d","rdsh":"\u21b3","real":"\u211c","realine":"\u211b","realpart":"\u211c","reals":"\u211d","Re":"\u211c","rect":"\u25ad","reg":"\xae","REG":"\xae","ReverseElement":"\u220b","ReverseEquilibrium":"\u21cb","ReverseUpEquilibrium":"\u296f","rfisht":"\u297d","rfloor":"\u230b","rfr":"\u{1d52f}","Rfr":"\u211c","rHar":"\u2964","rhard":"\u21c1","rharu":"\u21c0","rharul":"\u296c","Rho":"\u03a1","rho":"\u03c1","rhov":"\u03f1","RightAngleBracket":"\u27e9","RightArrowBar":"\u21e5","rightarrow":"\u2192","RightArrow":"\u2192","Rightarrow":"\u21d2","RightArrowLeftArrow":"\u21c4","rightarrowtail":"\u21a3","RightCeiling":"\u2309","RightDoubleBracket":"\u27e7","RightDownTeeVector":"\u295d","RightDownVectorBar":"\u2955","RightDownVector":"\u21c2","RightFloor":"\u230b","rightharpoondown":"\u21c1","rightharpoonup":"\u21c0","rightleftarrows":"\u21c4","rightleftharpoons":"\u21cc","rightrightarrows":"\u21c9","rightsquigarrow":"\u219d","RightTeeArrow":"\u21a6","RightTee":"\u22a2","RightTeeVector":"\u295b","rightthreetimes":"\u22cc","RightTriangleBar":"\u29d0","RightTriangle":"\u22b3","RightTriangleEqual":"\u22b5","RightUpDownVector":"\u294f","RightUpTeeVector":"\u295c","RightUpVectorBar":"\u2954","RightUpVector":"\u21be","RightVectorBar":"\u2953","RightVector":"\u21c0","ring":"\u02da","risingdotseq":"\u2253","rlarr":"\u21c4","rlhar":"\u21cc","rlm":"\u200f","rmoustache":"\u23b1","rmoust":"\u23b1","rnmid":"\u2aee","roang":"\u27ed","roarr":"\u21fe","robrk":"\u27e7","ropar":"\u2986","ropf":"\u{1d563}","Ropf":"\u211d","roplus":"\u2a2e","rotimes":"\u2a35","RoundImplies":"\u2970","rpar":")","rpargt":"\u2994","rppolint":"\u2a12","rrarr":"\u21c9","Rrightarrow":"\u21db","rsaquo":"\u203a","rscr":"\u{1d4c7}","Rscr":"\u211b","rsh":"\u21b1","Rsh":"\u21b1","rsqb":"]","rsquo":"\u2019","rsquor":"\u2019","rthree":"\u22cc","rtimes":"\u22ca","rtri":"\u25b9","rtrie":"\u22b5","rtrif":"\u25b8","rtriltri":"\u29ce","RuleDelayed":"\u29f4","ruluhar":"\u2968","rx":"\u211e","Sacute":"\u015a","sacute":"\u015b","sbquo":"\u201a","scap":"\u2ab8","Scaron":"\u0160","scaron":"\u0161","Sc":"\u2abc","sc":"\u227b","sccue":"\u227d","sce":"\u2ab0","scE":"\u2ab4","Scedil":"\u015e","scedil":"\u015f","Scirc":"\u015c","scirc":"\u015d","scnap":"\u2aba","scnE":"\u2ab6","scnsim":"\u22e9","scpolint":"\u2a13","scsim":"\u227f","Scy":"\u0421","scy":"\u0441","sdotb":"\u22a1","sdot":"\u22c5","sdote":"\u2a66","searhk":"\u2925","searr":"\u2198","seArr":"\u21d8","searrow":"\u2198","sect":"\xa7","semi":";","seswar":"\u2929","setminus":"\u2216","setmn":"\u2216","sext":"\u2736","Sfr":"\u{1d516}","sfr":"\u{1d530}","sfrown":"\u2322","sharp":"\u266f","SHCHcy":"\u0429","shchcy":"\u0449","SHcy":"\u0428","shcy":"\u0448","ShortDownArrow":"\u2193","ShortLeftArrow":"\u2190","shortmid":"\u2223","shortparallel":"\u2225","ShortRightArrow":"\u2192","ShortUpArrow":"\u2191","shy":"\xad","Sigma":"\u03a3","sigma":"\u03c3","sigmaf":"\u03c2","sigmav":"\u03c2","sim":"\u223c","simdot":"\u2a6a","sime":"\u2243","simeq":"\u2243","simg":"\u2a9e","simgE":"\u2aa0","siml":"\u2a9d","simlE":"\u2a9f","simne":"\u2246","simplus":"\u2a24","simrarr":"\u2972","slarr":"\u2190","SmallCircle":"\u2218","smallsetminus":"\u2216","smashp":"\u2a33","smeparsl":"\u29e4","smid":"\u2223","smile":"\u2323","smt":"\u2aaa","smte":"\u2aac","smtes":"\u2aac\ufe00","SOFTcy":"\u042c","softcy":"\u044c","solbar":"\u233f","solb":"\u29c4","sol":"/","Sopf":"\u{1d54a}","sopf":"\u{1d564}","spades":"\u2660","spadesuit":"\u2660","spar":"\u2225","sqcap":"\u2293","sqcaps":"\u2293\ufe00","sqcup":"\u2294","sqcups":"\u2294\ufe00","Sqrt":"\u221a","sqsub":"\u228f","sqsube":"\u2291","sqsubset":"\u228f","sqsubseteq":"\u2291","sqsup":"\u2290","sqsupe":"\u2292","sqsupset":"\u2290","sqsupseteq":"\u2292","square":"\u25a1","Square":"\u25a1","SquareIntersection":"\u2293","SquareSubset":"\u228f","SquareSubsetEqual":"\u2291","SquareSuperset":"\u2290","SquareSupersetEqual":"\u2292","SquareUnion":"\u2294","squarf":"\u25aa","squ":"\u25a1","squf":"\u25aa","srarr":"\u2192","Sscr":"\u{1d4ae}","sscr":"\u{1d4c8}","ssetmn":"\u2216","ssmile":"\u2323","sstarf":"\u22c6","Star":"\u22c6","star":"\u2606","starf":"\u2605","straightepsilon":"\u03f5","straightphi":"\u03d5","strns":"\xaf","sub":"\u2282","Sub":"\u22d0","subdot":"\u2abd","subE":"\u2ac5","sube":"\u2286","subedot":"\u2ac3","submult":"\u2ac1","subnE":"\u2acb","subne":"\u228a","subplus":"\u2abf","subrarr":"\u2979","subset":"\u2282","Subset":"\u22d0","subseteq":"\u2286","subseteqq":"\u2ac5","SubsetEqual":"\u2286","subsetneq":"\u228a","subsetneqq":"\u2acb","subsim":"\u2ac7","subsub":"\u2ad5","subsup":"\u2ad3","succapprox":"\u2ab8","succ":"\u227b","succcurlyeq":"\u227d","Succeeds":"\u227b","SucceedsEqual":"\u2ab0","SucceedsSlantEqual":"\u227d","SucceedsTilde":"\u227f","succeq":"\u2ab0","succnapprox":"\u2aba","succneqq":"\u2ab6","succnsim":"\u22e9","succsim":"\u227f","SuchThat":"\u220b","sum":"\u2211","Sum":"\u2211","sung":"\u266a","sup1":"\xb9","sup2":"\xb2","sup3":"\xb3","sup":"\u2283","Sup":"\u22d1","supdot":"\u2abe","supdsub":"\u2ad8","supE":"\u2ac6","supe":"\u2287","supedot":"\u2ac4","Superset":"\u2283","SupersetEqual":"\u2287","suphsol":"\u27c9","suphsub":"\u2ad7","suplarr":"\u297b","supmult":"\u2ac2","supnE":"\u2acc","supne":"\u228b","supplus":"\u2ac0","supset":"\u2283","Supset":"\u22d1","supseteq":"\u2287","supseteqq":"\u2ac6","supsetneq":"\u228b","supsetneqq":"\u2acc","supsim":"\u2ac8","supsub":"\u2ad4","supsup":"\u2ad6","swarhk":"\u2926","swarr":"\u2199","swArr":"\u21d9","swarrow":"\u2199","swnwar":"\u292a","szlig":"\xdf","Tab":"\\t","target":"\u2316","Tau":"\u03a4","tau":"\u03c4","tbrk":"\u23b4","Tcaron":"\u0164","tcaron":"\u0165","Tcedil":"\u0162","tcedil":"\u0163","Tcy":"\u0422","tcy":"\u0442","tdot":"\u20db","telrec":"\u2315","Tfr":"\u{1d517}","tfr":"\u{1d531}","there4":"\u2234","therefore":"\u2234","Therefore":"\u2234","Theta":"\u0398","theta":"\u03b8","thetasym":"\u03d1","thetav":"\u03d1","thickapprox":"\u2248","thicksim":"\u223c","ThickSpace":"\u205f\u200a","ThinSpace":"\u2009","thinsp":"\u2009","thkap":"\u2248","thksim":"\u223c","THORN":"\xde","thorn":"\xfe","tilde":"\u02dc","Tilde":"\u223c","TildeEqual":"\u2243","TildeFullEqual":"\u2245","TildeTilde":"\u2248","timesbar":"\u2a31","timesb":"\u22a0","times":"\xd7","timesd":"\u2a30","tint":"\u222d","toea":"\u2928","topbot":"\u2336","topcir":"\u2af1","top":"\u22a4","Topf":"\u{1d54b}","topf":"\u{1d565}","topfork":"\u2ada","tosa":"\u2929","tprime":"\u2034","trade":"\u2122","TRADE":"\u2122","triangle":"\u25b5","triangledown":"\u25bf","triangleleft":"\u25c3","trianglelefteq":"\u22b4","triangleq":"\u225c","triangleright":"\u25b9","trianglerighteq":"\u22b5","tridot":"\u25ec","trie":"\u225c","triminus":"\u2a3a","TripleDot":"\u20db","triplus":"\u2a39","trisb":"\u29cd","tritime":"\u2a3b","trpezium":"\u23e2","Tscr":"\u{1d4af}","tscr":"\u{1d4c9}","TScy":"\u0426","tscy":"\u0446","TSHcy":"\u040b","tshcy":"\u045b","Tstrok":"\u0166","tstrok":"\u0167","twixt":"\u226c","twoheadleftarrow":"\u219e","twoheadrightarrow":"\u21a0","Uacute":"\xda","uacute":"\xfa","uarr":"\u2191","Uarr":"\u219f","uArr":"\u21d1","Uarrocir":"\u2949","Ubrcy":"\u040e","ubrcy":"\u045e","Ubreve":"\u016c","ubreve":"\u016d","Ucirc":"\xdb","ucirc":"\xfb","Ucy":"\u0423","ucy":"\u0443","udarr":"\u21c5","Udblac":"\u0170","udblac":"\u0171","udhar":"\u296e","ufisht":"\u297e","Ufr":"\u{1d518}","ufr":"\u{1d532}","Ugrave":"\xd9","ugrave":"\xf9","uHar":"\u2963","uharl":"\u21bf","uharr":"\u21be","uhblk":"\u2580","ulcorn":"\u231c","ulcorner":"\u231c","ulcrop":"\u230f","ultri":"\u25f8","Umacr":"\u016a","umacr":"\u016b","uml":"\xa8","UnderBar":"_","UnderBrace":"\u23df","UnderBracket":"\u23b5","UnderParenthesis":"\u23dd","Union":"\u22c3","UnionPlus":"\u228e","Uogon":"\u0172","uogon":"\u0173","Uopf":"\u{1d54c}","uopf":"\u{1d566}","UpArrowBar":"\u2912","uparrow":"\u2191","UpArrow":"\u2191","Uparrow":"\u21d1","UpArrowDownArrow":"\u21c5","updownarrow":"\u2195","UpDownArrow":"\u2195","Updownarrow":"\u21d5","UpEquilibrium":"\u296e","upharpoonleft":"\u21bf","upharpoonright":"\u21be","uplus":"\u228e","UpperLeftArrow":"\u2196","UpperRightArrow":"\u2197","upsi":"\u03c5","Upsi":"\u03d2","upsih":"\u03d2","Upsilon":"\u03a5","upsilon":"\u03c5","UpTeeArrow":"\u21a5","UpTee":"\u22a5","upuparrows":"\u21c8","urcorn":"\u231d","urcorner":"\u231d","urcrop":"\u230e","Uring":"\u016e","uring":"\u016f","urtri":"\u25f9","Uscr":"\u{1d4b0}","uscr":"\u{1d4ca}","utdot":"\u22f0","Utilde":"\u0168","utilde":"\u0169","utri":"\u25b5","utrif":"\u25b4","uuarr":"\u21c8","Uuml":"\xdc","uuml":"\xfc","uwangle":"\u29a7","vangrt":"\u299c","varepsilon":"\u03f5","varkappa":"\u03f0","varnothing":"\u2205","varphi":"\u03d5","varpi":"\u03d6","varpropto":"\u221d","varr":"\u2195","vArr":"\u21d5","varrho":"\u03f1","varsigma":"\u03c2","varsubsetneq":"\u228a\ufe00","varsubsetneqq":"\u2acb\ufe00","varsupsetneq":"\u228b\ufe00","varsupsetneqq":"\u2acc\ufe00","vartheta":"\u03d1","vartriangleleft":"\u22b2","vartriangleright":"\u22b3","vBar":"\u2ae8","Vbar":"\u2aeb","vBarv":"\u2ae9","Vcy":"\u0412","vcy":"\u0432","vdash":"\u22a2","vDash":"\u22a8","Vdash":"\u22a9","VDash":"\u22ab","Vdashl":"\u2ae6","veebar":"\u22bb","vee":"\u2228","Vee":"\u22c1","veeeq":"\u225a","vellip":"\u22ee","verbar":"|","Verbar":"\u2016","vert":"|","Vert":"\u2016","VerticalBar":"\u2223","VerticalLine":"|","VerticalSeparator":"\u2758","VerticalTilde":"\u2240","VeryThinSpace":"\u200a","Vfr":"\u{1d519}","vfr":"\u{1d533}","vltri":"\u22b2","vnsub":"\u2282\u20d2","vnsup":"\u2283\u20d2","Vopf":"\u{1d54d}","vopf":"\u{1d567}","vprop":"\u221d","vrtri":"\u22b3","Vscr":"\u{1d4b1}","vscr":"\u{1d4cb}","vsubnE":"\u2acb\ufe00","vsubne":"\u228a\ufe00","vsupnE":"\u2acc\ufe00","vsupne":"\u228b\ufe00","Vvdash":"\u22aa","vzigzag":"\u299a","Wcirc":"\u0174","wcirc":"\u0175","wedbar":"\u2a5f","wedge":"\u2227","Wedge":"\u22c0","wedgeq":"\u2259","weierp":"\u2118","Wfr":"\u{1d51a}","wfr":"\u{1d534}","Wopf":"\u{1d54e}","wopf":"\u{1d568}","wp":"\u2118","wr":"\u2240","wreath":"\u2240","Wscr":"\u{1d4b2}","wscr":"\u{1d4cc}","xcap":"\u22c2","xcirc":"\u25ef","xcup":"\u22c3","xdtri":"\u25bd","Xfr":"\u{1d51b}","xfr":"\u{1d535}","xharr":"\u27f7","xhArr":"\u27fa","Xi":"\u039e","xi":"\u03be","xlarr":"\u27f5","xlArr":"\u27f8","xmap":"\u27fc","xnis":"\u22fb","xodot":"\u2a00","Xopf":"\u{1d54f}","xopf":"\u{1d569}","xoplus":"\u2a01","xotime":"\u2a02","xrarr":"\u27f6","xrArr":"\u27f9","Xscr":"\u{1d4b3}","xscr":"\u{1d4cd}","xsqcup":"\u2a06","xuplus":"\u2a04","xutri":"\u25b3","xvee":"\u22c1","xwedge":"\u22c0","Yacute":"\xdd","yacute":"\xfd","YAcy":"\u042f","yacy":"\u044f","Ycirc":"\u0176","ycirc":"\u0177","Ycy":"\u042b","ycy":"\u044b","yen":"\xa5","Yfr":"\u{1d51c}","yfr":"\u{1d536}","YIcy":"\u0407","yicy":"\u0457","Yopf":"\u{1d550}","yopf":"\u{1d56a}","Yscr":"\u{1d4b4}","yscr":"\u{1d4ce}","YUcy":"\u042e","yucy":"\u044e","yuml":"\xff","Yuml":"\u0178","Zacute":"\u0179","zacute":"\u017a","Zcaron":"\u017d","zcaron":"\u017e","Zcy":"\u0417","zcy":"\u0437","Zdot":"\u017b","zdot":"\u017c","zeetrf":"\u2128","ZeroWidthSpace":"\u200b","Zeta":"\u0396","zeta":"\u03b6","zfr":"\u{1d537}","Zfr":"\u2128","ZHcy":"\u0416","zhcy":"\u0436","zigrarr":"\u21dd","zopf":"\u{1d56b}","Zopf":"\u2124","Zscr":"\u{1d4b5}","zscr":"\u{1d4cf}","zwj":"\u200d","zwnj":"\u200c"}')},9591:Le=>{"use strict";Le.exports=JSON.parse('{"Aacute":"\xc1","aacute":"\xe1","Acirc":"\xc2","acirc":"\xe2","acute":"\xb4","AElig":"\xc6","aelig":"\xe6","Agrave":"\xc0","agrave":"\xe0","amp":"&","AMP":"&","Aring":"\xc5","aring":"\xe5","Atilde":"\xc3","atilde":"\xe3","Auml":"\xc4","auml":"\xe4","brvbar":"\xa6","Ccedil":"\xc7","ccedil":"\xe7","cedil":"\xb8","cent":"\xa2","copy":"\xa9","COPY":"\xa9","curren":"\xa4","deg":"\xb0","divide":"\xf7","Eacute":"\xc9","eacute":"\xe9","Ecirc":"\xca","ecirc":"\xea","Egrave":"\xc8","egrave":"\xe8","ETH":"\xd0","eth":"\xf0","Euml":"\xcb","euml":"\xeb","frac12":"\xbd","frac14":"\xbc","frac34":"\xbe","gt":">","GT":">","Iacute":"\xcd","iacute":"\xed","Icirc":"\xce","icirc":"\xee","iexcl":"\xa1","Igrave":"\xcc","igrave":"\xec","iquest":"\xbf","Iuml":"\xcf","iuml":"\xef","laquo":"\xab","lt":"<","LT":"<","macr":"\xaf","micro":"\xb5","middot":"\xb7","nbsp":"\xa0","not":"\xac","Ntilde":"\xd1","ntilde":"\xf1","Oacute":"\xd3","oacute":"\xf3","Ocirc":"\xd4","ocirc":"\xf4","Ograve":"\xd2","ograve":"\xf2","ordf":"\xaa","ordm":"\xba","Oslash":"\xd8","oslash":"\xf8","Otilde":"\xd5","otilde":"\xf5","Ouml":"\xd6","ouml":"\xf6","para":"\xb6","plusmn":"\xb1","pound":"\xa3","quot":"\\"","QUOT":"\\"","raquo":"\xbb","reg":"\xae","REG":"\xae","sect":"\xa7","shy":"\xad","sup1":"\xb9","sup2":"\xb2","sup3":"\xb3","szlig":"\xdf","THORN":"\xde","thorn":"\xfe","times":"\xd7","Uacute":"\xda","uacute":"\xfa","Ucirc":"\xdb","ucirc":"\xfb","Ugrave":"\xd9","ugrave":"\xf9","uml":"\xa8","Uuml":"\xdc","uuml":"\xfc","Yacute":"\xdd","yacute":"\xfd","yen":"\xa5","yuml":"\xff"}')},2586:Le=>{"use strict";Le.exports=JSON.parse('{"amp":"&","apos":"\'","gt":">","lt":"<","quot":"\\""}')},4147:Le=>{"use strict";Le.exports={i8:"4.0.1"}}},Le=>{Le(Le.s=9153)}]); \ No newline at end of file +(self.webpackChunkBM=self.webpackChunkBM||[]).push([[179],{9153:(Le,w,G)=>{"use strict";function le(n){return"function"==typeof n}let de=!1;const Y={Promise:void 0,set useDeprecatedSynchronousErrorHandling(n){if(n){const t=new Error;console.warn("DEPRECATED! RxJS was set to use deprecated synchronous error handling behavior by code at: \n"+t.stack)}else de&&console.log("RxJS: Back to a better error behavior. Thank you. <3");de=n},get useDeprecatedSynchronousErrorHandling(){return de}};function Q(n){setTimeout(()=>{throw n},0)}const q={closed:!0,next(n){},error(n){if(Y.useDeprecatedSynchronousErrorHandling)throw n;Q(n)},complete(){}},F=Array.isArray||(n=>n&&"number"==typeof n.length);function I(n){return null!==n&&"object"==typeof n}const T=(()=>{function n(t){return Error.call(this),this.message=t?`${t.length} errors occurred during unsubscription:\n${t.map((e,i)=>`${i+1}) ${e.toString()}`).join("\n ")}`:"",this.name="UnsubscriptionError",this.errors=t,this}return n.prototype=Object.create(Error.prototype),n})();class E{constructor(t){this.closed=!1,this._parentOrParents=null,this._subscriptions=null,t&&(this._ctorUnsubscribe=!0,this._unsubscribe=t)}unsubscribe(){let t;if(this.closed)return;let{_parentOrParents:e,_ctorUnsubscribe:i,_unsubscribe:r,_subscriptions:o}=this;if(this.closed=!0,this._parentOrParents=null,this._subscriptions=null,e instanceof E)e.remove(this);else if(null!==e)for(let s=0;st.concat(e instanceof T?e.errors:e),[])}E.EMPTY=((n=new E).closed=!0,n);const D="function"==typeof Symbol?Symbol("rxSubscriber"):"@@rxSubscriber_"+Math.random();class S extends E{constructor(t,e,i){switch(super(),this.syncErrorValue=null,this.syncErrorThrown=!1,this.syncErrorThrowable=!1,this.isStopped=!1,arguments.length){case 0:this.destination=q;break;case 1:if(!t){this.destination=q;break}if("object"==typeof t){t instanceof S?(this.syncErrorThrowable=t.syncErrorThrowable,this.destination=t,t.add(this)):(this.syncErrorThrowable=!0,this.destination=new x(this,t));break}default:this.syncErrorThrowable=!0,this.destination=new x(this,t,e,i)}}[D](){return this}static create(t,e,i){const r=new S(t,e,i);return r.syncErrorThrowable=!1,r}next(t){this.isStopped||this._next(t)}error(t){this.isStopped||(this.isStopped=!0,this._error(t))}complete(){this.isStopped||(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe())}_next(t){this.destination.next(t)}_error(t){this.destination.error(t),this.unsubscribe()}_complete(){this.destination.complete(),this.unsubscribe()}_unsubscribeAndRecycle(){const{_parentOrParents:t}=this;return this._parentOrParents=null,this.unsubscribe(),this.closed=!1,this.isStopped=!1,this._parentOrParents=t,this}}class x extends S{constructor(t,e,i,r){super(),this._parentSubscriber=t;let o,s=this;le(e)?o=e:e&&(o=e.next,i=e.error,r=e.complete,e!==q&&(s=Object.create(e),le(s.unsubscribe)&&this.add(s.unsubscribe.bind(s)),s.unsubscribe=this.unsubscribe.bind(this))),this._context=s,this._next=o,this._error=i,this._complete=r}next(t){if(!this.isStopped&&this._next){const{_parentSubscriber:e}=this;Y.useDeprecatedSynchronousErrorHandling&&e.syncErrorThrowable?this.__tryOrSetError(e,this._next,t)&&this.unsubscribe():this.__tryOrUnsub(this._next,t)}}error(t){if(!this.isStopped){const{_parentSubscriber:e}=this,{useDeprecatedSynchronousErrorHandling:i}=Y;if(this._error)i&&e.syncErrorThrowable?(this.__tryOrSetError(e,this._error,t),this.unsubscribe()):(this.__tryOrUnsub(this._error,t),this.unsubscribe());else if(e.syncErrorThrowable)i?(e.syncErrorValue=t,e.syncErrorThrown=!0):Q(t),this.unsubscribe();else{if(this.unsubscribe(),i)throw t;Q(t)}}}complete(){if(!this.isStopped){const{_parentSubscriber:t}=this;if(this._complete){const e=()=>this._complete.call(this._context);Y.useDeprecatedSynchronousErrorHandling&&t.syncErrorThrowable?(this.__tryOrSetError(t,e),this.unsubscribe()):(this.__tryOrUnsub(e),this.unsubscribe())}else this.unsubscribe()}}__tryOrUnsub(t,e){try{t.call(this._context,e)}catch(i){if(this.unsubscribe(),Y.useDeprecatedSynchronousErrorHandling)throw i;Q(i)}}__tryOrSetError(t,e,i){if(!Y.useDeprecatedSynchronousErrorHandling)throw new Error("bad call");try{e.call(this._context,i)}catch(r){return Y.useDeprecatedSynchronousErrorHandling?(t.syncErrorValue=r,t.syncErrorThrown=!0,!0):(Q(r),!0)}return!1}_unsubscribe(){const{_parentSubscriber:t}=this;this._context=null,this._parentSubscriber=null,t.unsubscribe()}}const re="function"==typeof Symbol&&Symbol.observable||"@@observable";function we(n){return n}function ie(n){return 0===n.length?we:1===n.length?n[0]:function(e){return n.reduce((i,r)=>r(i),e)}}let b=(()=>{class n{constructor(e){this._isScalar=!1,e&&(this._subscribe=e)}lift(e){const i=new n;return i.source=this,i.operator=e,i}subscribe(e,i,r){const{operator:o}=this,s=function z(n,t,e){if(n){if(n instanceof S)return n;if(n[D])return n[D]()}return n||t||e?new S(n,t,e):new S(q)}(e,i,r);if(s.add(o?o.call(s,this.source):this.source||Y.useDeprecatedSynchronousErrorHandling&&!s.syncErrorThrowable?this._subscribe(s):this._trySubscribe(s)),Y.useDeprecatedSynchronousErrorHandling&&s.syncErrorThrowable&&(s.syncErrorThrowable=!1,s.syncErrorThrown))throw s.syncErrorValue;return s}_trySubscribe(e){try{return this._subscribe(e)}catch(i){Y.useDeprecatedSynchronousErrorHandling&&(e.syncErrorThrown=!0,e.syncErrorValue=i),function B(n){for(;n;){const{closed:t,destination:e,isStopped:i}=n;if(t||i)return!1;n=e&&e instanceof S?e:null}return!0}(e)?e.error(i):console.warn(i)}}forEach(e,i){return new(i=K(i))((r,o)=>{let s;s=this.subscribe(a=>{try{e(a)}catch(l){o(l),s&&s.unsubscribe()}},o,r)})}_subscribe(e){const{source:i}=this;return i&&i.subscribe(e)}[re](){return this}pipe(...e){return 0===e.length?this:ie(e)(this)}toPromise(e){return new(e=K(e))((i,r)=>{let o;this.subscribe(s=>o=s,s=>r(s),()=>i(o))})}}return n.create=t=>new n(t),n})();function K(n){if(n||(n=Y.Promise||Promise),!n)throw new Error("no Promise impl found");return n}const oe=(()=>{function n(){return Error.call(this),this.message="object unsubscribed",this.name="ObjectUnsubscribedError",this}return n.prototype=Object.create(Error.prototype),n})();class _e extends E{constructor(t,e){super(),this.subject=t,this.subscriber=e,this.closed=!1}unsubscribe(){if(this.closed)return;this.closed=!0;const t=this.subject,e=t.observers;if(this.subject=null,!e||0===e.length||t.isStopped||t.closed)return;const i=e.indexOf(this.subscriber);-1!==i&&e.splice(i,1)}}class V extends S{constructor(t){super(t),this.destination=t}}let N=(()=>{class n extends b{constructor(){super(),this.observers=[],this.closed=!1,this.isStopped=!1,this.hasError=!1,this.thrownError=null}[D](){return new V(this)}lift(e){const i=new X(this,this);return i.operator=e,i}next(e){if(this.closed)throw new oe;if(!this.isStopped){const{observers:i}=this,r=i.length,o=i.slice();for(let s=0;snew X(t,e),n})();class X extends N{constructor(t,e){super(),this.destination=t,this.source=e}next(t){const{destination:e}=this;e&&e.next&&e.next(t)}error(t){const{destination:e}=this;e&&e.error&&this.destination.error(t)}complete(){const{destination:t}=this;t&&t.complete&&this.destination.complete()}_subscribe(t){const{source:e}=this;return e?this.source.subscribe(t):E.EMPTY}}function pe(n){return n&&"function"==typeof n.schedule}function he(n,t){return function(i){if("function"!=typeof n)throw new TypeError("argument is not a function. Are you looking for `mapTo()`?");return i.lift(new Be(n,t))}}class Be{constructor(t,e){this.project=t,this.thisArg=e}call(t,e){return e.subscribe(new je(t,this.project,this.thisArg))}}class je extends S{constructor(t,e,i){super(t),this.project=e,this.count=0,this.thisArg=i||this}_next(t){let e;try{e=this.project.call(this.thisArg,t,this.count++)}catch(i){return void this.destination.error(i)}this.destination.next(e)}}const xt=n=>t=>{for(let e=0,i=n.length;en&&"number"==typeof n.length&&"function"!=typeof n;function We(n){return!!n&&"function"!=typeof n.subscribe&&"function"==typeof n.then}const Ge=n=>{if(n&&"function"==typeof n[re])return(n=>t=>{const e=n[re]();if("function"!=typeof e.subscribe)throw new TypeError("Provided object does not correctly implement Symbol.observable");return e.subscribe(t)})(n);if(R(n))return xt(n);if(We(n))return(n=>t=>(n.then(e=>{t.closed||(t.next(e),t.complete())},e=>t.error(e)).then(null,Q),t))(n);if(n&&"function"==typeof n[se])return(n=>t=>{const e=n[se]();for(;;){let i;try{i=e.next()}catch(r){return t.error(r),t}if(i.done){t.complete();break}if(t.next(i.value),t.closed)break}return"function"==typeof e.return&&t.add(()=>{e.return&&e.return()}),t})(n);{const e=`You provided ${I(n)?"an invalid object":`'${n}'`} where a stream was expected. You can provide an Observable, Promise, Array, or Iterable.`;throw new TypeError(e)}};function ui(n,t){return new b(e=>{const i=new E;let r=0;return i.add(t.schedule(function(){r!==n.length?(e.next(n[r++]),e.closed||i.add(this.schedule())):e.complete()})),i})}function vt(n,t){return t?function wh(n,t){if(null!=n){if(function Qs(n){return n&&"function"==typeof n[re]}(n))return function Nt(n,t){return new b(e=>{const i=new E;return i.add(t.schedule(()=>{const r=n[re]();i.add(r.subscribe({next(o){i.add(t.schedule(()=>e.next(o)))},error(o){i.add(t.schedule(()=>e.error(o)))},complete(){i.add(t.schedule(()=>e.complete()))}}))})),i})}(n,t);if(We(n))return function ln(n,t){return new b(e=>{const i=new E;return i.add(t.schedule(()=>n.then(r=>{i.add(t.schedule(()=>{e.next(r),i.add(t.schedule(()=>e.complete()))}))},r=>{i.add(t.schedule(()=>e.error(r)))}))),i})}(n,t);if(R(n))return ui(n,t);if(function Ch(n){return n&&"function"==typeof n[se]}(n)||"string"==typeof n)return function Hi(n,t){if(!n)throw new Error("Iterable cannot be null");return new b(e=>{const i=new E;let r;return i.add(()=>{r&&"function"==typeof r.return&&r.return()}),i.add(t.schedule(()=>{r=n[se](),i.add(t.schedule(function(){if(e.closed)return;let o,s;try{const a=r.next();o=a.value,s=a.done}catch(a){return void e.error(a)}s?e.complete():(e.next(o),this.schedule())}))})),i})}(n,t)}throw new TypeError((null!==n&&typeof n||n)+" is not observable")}(n,t):n instanceof b?n:new b(Ge(n))}class ko extends S{constructor(t){super(),this.parent=t}_next(t){this.parent.notifyNext(t)}_error(t){this.parent.notifyError(t),this.unsubscribe()}_complete(){this.parent.notifyComplete(),this.unsubscribe()}}class cu extends S{notifyNext(t){this.destination.next(t)}notifyError(t){this.destination.error(t)}notifyComplete(){this.destination.complete()}}function uu(n,t){if(t.closed)return;if(n instanceof b)return n.subscribe(t);let e;try{e=Ge(n)(t)}catch(i){t.error(i)}return e}function Vi(n,t,e=Number.POSITIVE_INFINITY){return"function"==typeof t?i=>i.pipe(Vi((r,o)=>vt(n(r,o)).pipe(he((s,a)=>t(r,s,o,a))),e)):("number"==typeof t&&(e=t),i=>i.lift(new aO(n,e)))}class aO{constructor(t,e=Number.POSITIVE_INFINITY){this.project=t,this.concurrent=e}call(t,e){return e.subscribe(new lO(t,this.project,this.concurrent))}}class lO extends cu{constructor(t,e,i=Number.POSITIVE_INFINITY){super(t),this.project=e,this.concurrent=i,this.hasCompleted=!1,this.buffer=[],this.active=0,this.index=0}_next(t){this.active0?this._next(t.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()}}function Eh(n=Number.POSITIVE_INFINITY){return Vi(we,n)}function yg(n,t){return t?ui(n,t):new b(xt(n))}function On(...n){let t=Number.POSITIVE_INFINITY,e=null,i=n[n.length-1];return pe(i)?(e=n.pop(),n.length>1&&"number"==typeof n[n.length-1]&&(t=n.pop())):"number"==typeof i&&(t=n.pop()),null===e&&1===n.length&&n[0]instanceof b?n[0]:Eh(t)(yg(n,e))}function Dh(){return function(t){return t.lift(new cO(t))}}class cO{constructor(t){this.connectable=t}call(t,e){const{connectable:i}=this;i._refCount++;const r=new uO(t,i),o=e.subscribe(r);return r.closed||(r.connection=i.connect()),o}}class uO extends S{constructor(t,e){super(t),this.connectable=e}_unsubscribe(){const{connectable:t}=this;if(!t)return void(this.connection=null);this.connectable=null;const e=t._refCount;if(e<=0)return void(this.connection=null);if(t._refCount=e-1,e>1)return void(this.connection=null);const{connection:i}=this,r=t._connection;this.connection=null,r&&(!i||r===i)&&r.unsubscribe()}}class Sh extends b{constructor(t,e){super(),this.source=t,this.subjectFactory=e,this._refCount=0,this._isComplete=!1}_subscribe(t){return this.getSubject().subscribe(t)}getSubject(){const t=this._subject;return(!t||t.isStopped)&&(this._subject=this.subjectFactory()),this._subject}connect(){let t=this._connection;return t||(this._isComplete=!1,t=this._connection=new E,t.add(this.source.subscribe(new hO(this.getSubject(),this))),t.closed&&(this._connection=null,t=E.EMPTY)),t}refCount(){return Dh()(this)}}const dO=(()=>{const n=Sh.prototype;return{operator:{value:null},_refCount:{value:0,writable:!0},_subject:{value:null,writable:!0},_connection:{value:null,writable:!0},_subscribe:{value:n._subscribe},_isComplete:{value:n._isComplete,writable:!0},getSubject:{value:n.getSubject},connect:{value:n.connect},refCount:{value:n.refCount}}})();class hO extends V{constructor(t,e){super(t),this.connectable=e}_error(t){this._unsubscribe(),super._error(t)}_complete(){this.connectable._isComplete=!0,this._unsubscribe(),super._complete()}_unsubscribe(){const t=this.connectable;if(t){this.connectable=null;const e=t._connection;t._refCount=0,t._subject=null,t._connection=null,e&&e.unsubscribe()}}}class mO{constructor(t,e){this.subjectFactory=t,this.selector=e}call(t,e){const{selector:i}=this,r=this.subjectFactory(),o=i(r).subscribe(t);return o.add(e.subscribe(r)),o}}function gO(){return new N}function Dw(){return n=>Dh()(function fO(n,t){return function(i){let r;if(r="function"==typeof n?n:function(){return n},"function"==typeof t)return i.lift(new mO(r,t));const o=Object.create(i,dO);return o.source=i,o.subjectFactory=r,o}}(gO)(n))}function _n(n){for(let t in n)if(n[t]===_n)return t;throw Error("Could not find renamed property on target object.")}function bg(n,t){for(const e in t)t.hasOwnProperty(e)&&!n.hasOwnProperty(e)&&(n[e]=t[e])}function vn(n){if("string"==typeof n)return n;if(Array.isArray(n))return"["+n.map(vn).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 Cg(n,t){return null==n||""===n?null===t?"":t:null==t||""===t?n:n+" "+t}const _O=_n({__forward_ref__:_n});function Xt(n){return n.__forward_ref__=Xt,n.toString=function(){return vn(this())},n}function Et(n){return wg(n)?n():n}function wg(n){return"function"==typeof n&&n.hasOwnProperty(_O)&&n.__forward_ref__===Xt}class Te extends Error{constructor(t,e){super(function Ah(n,t){return`NG0${Math.abs(n)}${t?": "+t.trim():""}`}(t,e)),this.code=t}}function kt(n){return"string"==typeof n?n:null==n?"":String(n)}function Th(n,t){throw new Te(-201,!1)}function vr(n,t){null==n&&function hn(n,t,e,i){throw new Error(`ASSERTION ERROR: ${n}`+(null==i?"":` [Expected=> ${e} ${i} ${t} <=Actual]`))}(t,n,null,"!=")}function ge(n){return{token:n.token,providedIn:n.providedIn||null,factory:n.factory,value:void 0}}function dt(n){return{providers:n.providers||[],imports:n.imports||[]}}function Eg(n){return Sw(n,xh)||Sw(n,Tw)}function Sw(n,t){return n.hasOwnProperty(t)?n[t]:null}function Aw(n){return n&&(n.hasOwnProperty(Dg)||n.hasOwnProperty(SO))?n[Dg]:null}const xh=_n({\u0275prov:_n}),Dg=_n({\u0275inj:_n}),Tw=_n({ngInjectableDef:_n}),SO=_n({ngInjectorDef:_n});var yt=(()=>((yt=yt||{})[yt.Default=0]="Default",yt[yt.Host=1]="Host",yt[yt.Self=2]="Self",yt[yt.SkipSelf=4]="SkipSelf",yt[yt.Optional=8]="Optional",yt))();let Sg;function Fr(n){const t=Sg;return Sg=n,t}function xw(n,t,e){const i=Eg(n);return i&&"root"==i.providedIn?void 0===i.value?i.value=i.factory():i.value:e&yt.Optional?null:void 0!==t?t:void Th(vn(n))}function Js(n){return{toString:n}.toString()}var so=(()=>((so=so||{})[so.OnPush=0]="OnPush",so[so.Default=1]="Default",so))(),ao=(()=>(function(n){n[n.Emulated=0]="Emulated",n[n.None=2]="None",n[n.ShadowDom=3]="ShadowDom"}(ao||(ao={})),ao))();const gn=(()=>typeof globalThis<"u"&&globalThis||typeof global<"u"&&global||typeof window<"u"&&window||typeof self<"u"&&typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&self)(),Sl={},un=[],Ih=_n({\u0275cmp:_n}),Ag=_n({\u0275dir:_n}),Tg=_n({\u0275pipe:_n}),Iw=_n({\u0275mod:_n}),as=_n({\u0275fac:_n}),du=_n({__NG_ELEMENT_ID__:_n});let TO=0;function Ue(n){return Js(()=>{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===so.OnPush,directiveDefs:null,pipeDefs:null,standalone:e,dependencies:e&&n.dependencies||null,getStandaloneInjector:null,selectors:n.selectors||un,viewQuery:n.viewQuery||null,features:n.features||null,data:n.data||{},encapsulation:n.encapsulation||ao.Emulated,id:"c"+TO++,styles:n.styles||un,_:null,setInput:null,schemas:n.schemas||null,tView:null},o=n.dependencies,s=n.features;return r.inputs=Ow(n.inputs,i),r.outputs=Ow(n.outputs),s&&s.forEach(a=>a(r)),r.directiveDefs=o?()=>("function"==typeof o?o():o).map(kw).filter(Rw):null,r.pipeDefs=o?()=>("function"==typeof o?o():o).map(zi).filter(Rw):null,r})}function kw(n){return mn(n)||qi(n)}function Rw(n){return null!==n}const xO={};function ht(n){return Js(()=>{const t={type:n.type,bootstrap:n.bootstrap||un,declarations:n.declarations||un,imports:n.imports||un,exports:n.exports||un,transitiveCompileScopes:null,schemas:n.schemas||null,id:n.id||null};return null!=n.id&&(xO[n.id]=n.type),t})}function Ow(n,t){if(null==n)return Sl;const e={};for(const i in n)if(n.hasOwnProperty(i)){let r=n[i],o=r;Array.isArray(r)&&(o=r[1],r=r[0]),e[r]=i,t&&(t[r]=o)}return e}const fe=Ue;function Ui(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 mn(n){return n[Ih]||null}function qi(n){return n[Ag]||null}function zi(n){return n[Tg]||null}function yr(n,t){const e=n[Iw]||null;if(!e&&!0===t)throw new Error(`Type ${vn(n)} does not have '\u0275mod' property.`);return e}function nr(n){return Array.isArray(n)&&"object"==typeof n[1]}function co(n){return Array.isArray(n)&&!0===n[1]}function Mg(n){return 0!=(8&n.flags)}function Oh(n){return 2==(2&n.flags)}function Ph(n){return 1==(1&n.flags)}function uo(n){return null!==n.template}function OO(n){return 0!=(256&n[2])}function Ra(n,t){return n.hasOwnProperty(as)?n[as]:null}class NO{constructor(t,e,i){this.previousValue=t,this.currentValue=e,this.firstChange=i}isFirstChange(){return this.firstChange}}function Rn(){return Nw}function Nw(n){return n.type.prototype.ngOnChanges&&(n.setInput=BO),FO}function FO(){const n=Bw(this),t=n?.current;if(t){const e=n.previous;if(e===Sl)n.previous=t;else for(let i in t)e[i]=t[i];n.current=null,this.ngOnChanges(t)}}function BO(n,t,e,i){const r=Bw(n)||function jO(n,t){return n[Fw]=t}(n,{previous:Sl,current:null}),o=r.current||(r.current={}),s=r.previous,a=this.declaredInputs[e],l=s[a];o[a]=new NO(l&&l.currentValue,t,s===Sl),n[i]=t}Rn.ngInherit=!0;const Fw="__ngSimpleChanges__";function Bw(n){return n[Fw]||null}function Jn(n){for(;Array.isArray(n);)n=n[0];return n}function Lh(n,t){return Jn(t[n])}function Hr(n,t){return Jn(t[n.index])}function Lg(n,t){return n.data[t]}function Ml(n,t){return n[t]}function Cr(n,t){const e=t[n];return nr(e)?e:e[0]}function jw(n){return 4==(4&n[2])}function Ng(n){return 64==(64&n[2])}function Zs(n,t){return null==t?null:n[t]}function Hw(n){n[18]=0}function Fg(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 It={lFrame:Yw(null),bindingsEnabled:!0};function Uw(){return It.bindingsEnabled}function xe(){return It.lFrame.lView}function en(){return It.lFrame.tView}function J(n){return It.lFrame.contextLView=n,n[8]}function Z(n){return It.lFrame.contextLView=null,n}function ri(){let n=qw();for(;null!==n&&64===n.type;)n=n.parent;return n}function qw(){return It.lFrame.currentTNode}function Ro(n,t){const e=It.lFrame;e.currentTNode=n,e.isParent=t}function Bg(){return It.lFrame.isParent}function jg(){It.lFrame.isParent=!1}function Gi(){const n=It.lFrame;let t=n.bindingRootIndex;return-1===t&&(t=n.bindingRootIndex=n.tView.bindingStartIndex),t}function kl(){return It.lFrame.bindingIndex++}function cs(n){const t=It.lFrame,e=t.bindingIndex;return t.bindingIndex=t.bindingIndex+n,e}function XO(n,t){const e=It.lFrame;e.bindingIndex=e.bindingRootIndex=n,Hg(t)}function Hg(n){It.lFrame.currentDirectiveIndex=n}function Vg(n){const t=It.lFrame.currentDirectiveIndex;return-1===t?null:n[t]}function Ww(){return It.lFrame.currentQueryIndex}function Ug(n){It.lFrame.currentQueryIndex=n}function tP(n){const t=n[1];return 2===t.type?t.declTNode:1===t.type?n[6]:null}function $w(n,t,e){if(e&yt.SkipSelf){let r=t,o=n;for(;!(r=r.parent,null!==r||e&yt.Host||(r=tP(o),null===r||(o=o[15],10&r.type))););if(null===r)return!1;t=r,n=o}const i=It.lFrame=Kw();return i.currentTNode=t,i.lView=n,!0}function qg(n){const t=Kw(),e=n[1];It.lFrame=t,t.currentTNode=e.firstChild,t.lView=n,t.tView=e,t.contextLView=n,t.bindingIndex=e.bindingStartIndex,t.inI18n=!1}function Kw(){const n=It.lFrame,t=null===n?null:n.child;return null===t?Yw(n):t}function Yw(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 Qw(){const n=It.lFrame;return It.lFrame=n.parent,n.currentTNode=null,n.lView=null,n}const Jw=Qw;function zg(){const n=Qw();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 Wi(){return It.lFrame.selectedIndex}function Xs(n){It.lFrame.selectedIndex=n}function Hn(){const n=It.lFrame;return Lg(n.tView,n.selectedIndex)}function Rl(){It.lFrame.currentNamespace="svg"}function Fh(n,t){for(let e=t.directiveStart,i=t.directiveEnd;e=i)break}else t[l]<0&&(n[18]+=65536),(a>11>16&&(3&n[2])===t){n[2]+=2048;try{o.call(a)}finally{}}}else try{o.call(a)}finally{}}class gu{constructor(t,e,i){this.factory=t,this.resolving=!1,this.canSeeViewProviders=e,this.injectImpl=i}}function Hh(n,t,e){let i=0;for(;it){s=o-1;break}}}for(;o>16}(n),i=t;for(;e>0;)i=i[15],e--;return i}let $g=!0;function Uh(n){const t=$g;return $g=n,t}let fP=0;const Oo={};function vu(n,t){const e=Yg(n,t);if(-1!==e)return e;const i=t[1];i.firstCreatePass&&(n.injectorIndex=t.length,Kg(i.data,n),Kg(t,null),Kg(i.blueprint,null));const r=qh(n,t),o=n.injectorIndex;if(r0(r)){const s=Ol(r),a=Pl(r,t),l=a[1].data;for(let c=0;c<8;c++)t[o+c]=a[s+c]|l[s+c]}return t[o+8]=r,o}function Kg(n,t){n.push(0,0,0,0,0,0,0,0,t)}function Yg(n,t){return-1===n.injectorIndex||n.parent&&n.parent.injectorIndex===n.injectorIndex||null===t[n.injectorIndex+8]?-1:n.injectorIndex}function qh(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=p0(r),null===i)return-1;if(e++,r=r[15],-1!==i.injectorIndex)return i.injectorIndex|e<<16}return-1}function zh(n,t,e){!function mP(n,t,e){let i;"string"==typeof e?i=e.charCodeAt(0)||0:e.hasOwnProperty(du)&&(i=e[du]),null==i&&(i=e[du]=fP++);const r=255&i;t.data[n+(r>>5)]|=1<=0?255&t:yP:t}(e);if("function"==typeof o){if(!$w(t,n,i))return i&yt.Host?a0(r,0,i):l0(t,e,i,r);try{const s=o(i);if(null!=s||i&yt.Optional)return s;Th()}finally{Jw()}}else if("number"==typeof o){let s=null,a=Yg(n,t),l=-1,c=i&yt.Host?t[16][6]:null;for((-1===a||i&yt.SkipSelf)&&(l=-1===a?qh(n,t):t[a+8],-1!==l&&h0(i,!1)?(s=t[1],a=Ol(l),t=Pl(l,t)):a=-1);-1!==a;){const u=t[1];if(d0(o,a,u.data)){const d=_P(a,t,e,s,i,c);if(d!==Oo)return d}l=t[a+8],-1!==l&&h0(i,t[1].data[a+8]===c)&&d0(o,a,t)?(s=u,a=Ol(l),t=Pl(l,t)):a=-1}}return r}function _P(n,t,e,i,r,o){const s=t[1],a=s.data[n+8],u=Gh(a,s,e,null==i?Oh(a)&&$g:i!=s&&0!=(3&a.type),r&yt.Host&&o===a);return null!==u?yu(t,s,u,a):Oo}function Gh(n,t,e,i,r){const o=n.providerIndexes,s=t.data,a=1048575&o,l=n.directiveStart,u=o>>20,h=r?a+u:n.directiveEnd;for(let m=i?a:a+u;m=l&&y.type===e)return m}if(r){const m=s[l];if(m&&uo(m)&&m.type===e)return l}return null}function yu(n,t,e,i){let r=n[e];const o=t.data;if(function cP(n){return n instanceof gu}(r)){const s=r;s.resolving&&function vO(n,t){const e=t?`. Dependency path: ${t.join(" > ")} > ${n}`:"";throw new Te(-200,`Circular dependency in DI detected for ${n}${e}`)}(function cn(n){return"function"==typeof n?n.name||n.toString():"object"==typeof n&&null!=n&&"function"==typeof n.type?n.type.name||n.type.toString():kt(n)}(o[e]));const a=Uh(s.canSeeViewProviders);s.resolving=!0;const l=s.injectImpl?Fr(s.injectImpl):null;$w(n,i,yt.Default);try{r=n[e]=s.factory(void 0,o,n,i),t.firstCreatePass&&e>=i.directiveStart&&function aP(n,t,e){const{ngOnChanges:i,ngOnInit:r,ngDoCheck:o}=t.type.prototype;if(i){const s=Nw(t);(e.preOrderHooks||(e.preOrderHooks=[])).push(n,s),(e.preOrderCheckHooks||(e.preOrderCheckHooks=[])).push(n,s)}r&&(e.preOrderHooks||(e.preOrderHooks=[])).push(0-n,r),o&&((e.preOrderHooks||(e.preOrderHooks=[])).push(n,o),(e.preOrderCheckHooks||(e.preOrderCheckHooks=[])).push(n,o))}(e,o[e],t)}finally{null!==l&&Fr(l),Uh(a),s.resolving=!1,Jw()}}return r}function d0(n,t,e){return!!(e[t+(n>>5)]&1<{const t=n.prototype.constructor,e=t[as]||Qg(t),i=Object.prototype;let r=Object.getPrototypeOf(n.prototype).constructor;for(;r&&r!==i;){const o=r[as]||Qg(r);if(o&&o!==e)return o;r=Object.getPrototypeOf(r)}return o=>new o})}function Qg(n){return wg(n)?()=>{const t=Qg(Et(n));return t&&t()}:Ra(n)}function p0(n){const t=n[1],e=t.type;return 2===e?t.declTNode:1===e?n[6]:null}function Vr(n){return function gP(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{const i=function Jg(n){return function(...e){if(n){const i=n(...e);for(const r in i)this[r]=i[r]}}}(t);function r(...o){if(this instanceof r)return i.apply(this,o),this;const s=new r(...o);return a.annotation=s,a;function a(l,c,u){const d=l.hasOwnProperty(Fl)?l[Fl]:Object.defineProperty(l,Fl,{value:[]})[Fl];for(;d.length<=u;)d.push(null);return(d[u]=d[u]||[]).push(s),l}}return e&&(r.prototype=Object.create(e.prototype)),r.prototype.ngMetadataName=n,r.annotationCls=r,r})}class me{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=ge({token:this,providedIn:e.providedIn||"root",factory:e.factory}))}get multi(){return this}toString(){return`InjectionToken ${this._desc}`}}function wr(n,t){void 0===t&&(t=n);for(let e=0;eArray.isArray(e)?us(e,t):t(e))}function m0(n,t,e){t>=n.length?n.push(e):n.splice(t,0,e)}function Wh(n,t){return t>=n.length-1?n.pop():n.splice(t,1)[0]}function wu(n,t){const e=[];for(let i=0;i=0?n[1|i]=e:(i=~i,function DP(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 Xg(n,t){const e=Hl(n,t);if(e>=0)return n[1|e]}function Hl(n,t){return function v0(n,t,e){let i=0,r=n.length>>e;for(;r!==i;){const o=i+(r-i>>1),s=n[o<t?r=o:i=o+1}return~(r<n,createScript:n=>n,createScriptURL:n=>n})}catch{}return Jh}()?.createHTML(n)||n}class Pa{constructor(t){this.changingThisBreaksApplicationSecurity=t}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see https://g.co/ng/security#xss)`}}class QP extends Pa{getTypeName(){return"HTML"}}class JP extends Pa{getTypeName(){return"Style"}}class ZP extends Pa{getTypeName(){return"Script"}}class XP extends Pa{getTypeName(){return"URL"}}class eL extends Pa{getTypeName(){return"ResourceURL"}}function Dr(n){return n instanceof Pa?n.changingThisBreaksApplicationSecurity:n}function Po(n,t){const e=function tL(n){return n instanceof Pa&&n.getTypeName()||null}(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}class aL{constructor(t){this.inertDocumentHelper=t}getInertBodyElement(t){t="
"+t;try{const e=(new window.DOMParser).parseFromString(ql(t),"text/html").body;return null===e?this.inertDocumentHelper.getInertBodyElement(t):(e.removeChild(e.firstChild),e)}catch{return null}}}class lL{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=ql(t),e;const i=this.inertDocument.createElement("body");return i.innerHTML=ql(t),this.defaultDoc.documentMode&&this.stripCustomNsAttrs(i),i}stripCustomNsAttrs(t){const e=t.attributes;for(let r=e.length-1;0Iu(t.trim())).join(", ")}function Lo(n){const t={};for(const e of n.split(","))t[e]=!0;return t}function Mu(...n){const t={};for(const e of n)for(const i in e)e.hasOwnProperty(i)&&(t[i]=!0);return t}const P0=Lo("area,br,col,hr,img,wbr"),L0=Lo("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),N0=Lo("rp,rt"),a_=Mu(P0,Mu(L0,Lo("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")),Mu(N0,Lo("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")),Mu(N0,L0)),l_=Lo("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),c_=Lo("srcset"),F0=Mu(l_,c_,Lo("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"),Lo("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")),hL=Lo("script,style,template");class pL{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(!a_.hasOwnProperty(e))return this.sanitizedSomething=!0,!hL.hasOwnProperty(e);this.buf.push("<"),this.buf.push(e);const i=t.attributes;for(let r=0;r"),!0}endElement(t){const e=t.nodeName.toLowerCase();a_.hasOwnProperty(e)&&!P0.hasOwnProperty(e)&&(this.buf.push(""))}chars(t){this.buf.push(B0(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 fL=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,mL=/([^\#-~ |!])/g;function B0(n){return n.replace(/&/g,"&").replace(fL,function(t){return"&#"+(1024*(t.charCodeAt(0)-55296)+(t.charCodeAt(1)-56320)+65536)+";"}).replace(mL,function(t){return"&#"+t.charCodeAt(0)+";"}).replace(//g,">")}let Xh;function j0(n,t){let e=null;try{Xh=Xh||function R0(n){const t=new lL(n);return function cL(){try{return!!(new window.DOMParser).parseFromString(ql(""),"text/html")}catch{return!1}}()?new aL(t):t}(n);let i=t?String(t):"";e=Xh.getInertBodyElement(i);let r=5,o=i;do{if(0===r)throw new Error("Failed to sanitize html because the input is unstable");r--,i=o,o=e.innerHTML,e=Xh.getInertBodyElement(i)}while(i!==o);return ql((new pL).sanitizeChildren(u_(e)||e))}finally{if(e){const i=u_(e)||e;for(;i.firstChild;)i.removeChild(i.firstChild)}}}function u_(n){return"content"in n&&function gL(n){return n.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===n.nodeName}(n)?n.content:null}var dn=(()=>((dn=dn||{})[dn.NONE=0]="NONE",dn[dn.HTML=1]="HTML",dn[dn.STYLE=2]="STYLE",dn[dn.SCRIPT=3]="SCRIPT",dn[dn.URL=4]="URL",dn[dn.RESOURCE_URL=5]="RESOURCE_URL",dn))();function En(n){const t=function ku(){const n=xe();return n&&n[12]}();return t?t.sanitize(dn.URL,n)||"":Po(n,"URL")?Dr(n):Iu(kt(n))}const V0=new me("ENVIRONMENT_INITIALIZER"),U0=new me("INJECTOR",-1),q0=new me("INJECTOR_DEF_TYPES");class z0{get(t,e=Eu){if(e===Eu){const i=new Error(`NullInjectorError: No provider for ${vn(t)}!`);throw i.name="NullInjectorError",i}return e}}function DL(...n){return{\u0275providers:G0(0,n)}}function G0(n,...t){const e=[],i=new Set;let r;return us(t,o=>{const s=o;d_(s,e,[],i)&&(r||(r=[]),r.push(s))}),void 0!==r&&W0(r,e),e}function W0(n,t){for(let e=0;e{t.push(o)})}}function d_(n,t,e,i){if(!(n=Et(n)))return!1;let r=null,o=Aw(n);const s=!o&&mn(n);if(o||s){if(s&&!s.standalone)return!1;r=n}else{const l=n.ngModule;if(o=Aw(l),!o)return!1;r=l}const a=i.has(r);if(s){if(a)return!1;if(i.add(r),s.dependencies){const l="function"==typeof s.dependencies?s.dependencies():s.dependencies;for(const c of l)d_(c,t,e,i)}}else{if(!o)return!1;{if(null!=o.imports&&!a){let c;i.add(r);try{us(o.imports,u=>{d_(u,t,e,i)&&(c||(c=[]),c.push(u))})}finally{}void 0!==c&&W0(c,t)}if(!a){const c=Ra(r)||(()=>new r);t.push({provide:r,useFactory:c,deps:un},{provide:q0,useValue:r,multi:!0},{provide:V0,useValue:()=>M(r),multi:!0})}const l=o.providers;null==l||a||us(l,u=>{t.push(u)})}}return r!==n&&void 0!==n.providers}const SL=_n({provide:String,useValue:_n});function h_(n){return null!==n&&"object"==typeof n&&SL in n}function La(n){return"function"==typeof n}const p_=new me("Set Injector scope."),ep={},TL={};let f_;function tp(){return void 0===f_&&(f_=new z0),f_}class Na{}class Y0 extends Na{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,g_(t,s=>this.processProvider(s)),this.records.set(U0,zl(void 0,this)),r.has("environment")&&this.records.set(Na,zl(void 0,this));const o=this.records.get(p_);null!=o&&"string"==typeof o.value&&this.scopes.add(o.value),this.injectorDefTypes=new Set(this.get(q0.multi,un,yt.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)}runInContext(t){this.assertNotDestroyed();const e=Vl(this),i=Fr(void 0);try{return t()}finally{Vl(e),Fr(i)}}get(t,e=Eu,i=yt.Default){this.assertNotDestroyed();const r=Vl(this),o=Fr(void 0);try{if(!(i&yt.SkipSelf)){let a=this.records.get(t);if(void 0===a){const l=function RL(n){return"function"==typeof n||"object"==typeof n&&n instanceof me}(t)&&Eg(t);a=l&&this.injectableDefInScope(l)?zl(m_(t),ep):null,this.records.set(t,a)}if(null!=a)return this.hydrate(t,a)}return(i&yt.Self?tp():this.parent).get(t,e=i&yt.Optional&&e===Eu?null:e)}catch(s){if("NullInjectorError"===s.name){if((s[Kh]=s[Kh]||[]).unshift(vn(t)),r)throw s;return function NP(n,t,e,i){const r=n[Kh];throw t[y0]&&r.unshift(t[y0]),n.message=function FP(n,t,e,i=null){n=n&&"\n"===n.charAt(0)&&"\u0275"==n.charAt(1)?n.slice(2):n;let r=vn(t);if(Array.isArray(t))r=t.map(vn).join(" -> ");else if("object"==typeof t){let o=[];for(let s in t)if(t.hasOwnProperty(s)){let a=t[s];o.push(s+":"+("string"==typeof a?JSON.stringify(a):vn(a)))}r=`{${o.join(", ")}}`}return`${e}${i?"("+i+")":""}[${r}]: ${n.replace(RP,"\n ")}`}("\n"+n.message,r,e,i),n.ngTokenPath=r,n[Kh]=null,n}(s,t,"R3InjectorError",this.source)}throw s}finally{Fr(o),Vl(r)}}resolveInjectorInitializers(){const t=Vl(this),e=Fr(void 0);try{const i=this.get(V0.multi,un,yt.Self);for(const r of i)r()}finally{Vl(t),Fr(e)}}toString(){const t=[],e=this.records;for(const i of e.keys())t.push(vn(i));return`R3Injector[${t.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new Te(205,!1)}processProvider(t){let e=La(t=Et(t))?t:Et(t&&t.provide);const i=function IL(n){return h_(n)?zl(void 0,n.useValue):zl(Q0(n),ep)}(t);if(La(t)||!0!==t.multi)this.records.get(e);else{let r=this.records.get(e);r||(r=zl(void 0,ep,!0),r.factory=()=>n_(r.multi),this.records.set(e,r)),e=t,r.multi.push(t)}this.records.set(e,i)}hydrate(t,e){return e.value===ep&&(e.value=TL,e.value=e.factory()),"object"==typeof e.value&&e.value&&function kL(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=Et(t.providedIn);return"string"==typeof e?"any"===e||this.scopes.has(e):this.injectorDefTypes.has(e)}}function m_(n){const t=Eg(n),e=null!==t?t.factory:Ra(n);if(null!==e)return e;if(n instanceof me)throw new Te(204,!1);if(n instanceof Function)return function xL(n){const t=n.length;if(t>0)throw wu(t,"?"),new Te(204,!1);const e=function EO(n){const t=n&&(n[xh]||n[Tw]);if(t){const e=function DO(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 Te(204,!1)}function Q0(n,t,e){let i;if(La(n)){const r=Et(n);return Ra(r)||m_(r)}if(h_(n))i=()=>Et(n.useValue);else if(function K0(n){return!(!n||!n.useFactory)}(n))i=()=>n.useFactory(...n_(n.deps||[]));else if(function $0(n){return!(!n||!n.useExisting)}(n))i=()=>M(Et(n.useExisting));else{const r=Et(n&&(n.useClass||n.provide));if(!function ML(n){return!!n.deps}(n))return Ra(r)||m_(r);i=()=>new r(...n_(n.deps))}return i}function zl(n,t,e=!1){return{factory:n,value:t,multi:e?[]:void 0}}function OL(n){return!!n.\u0275providers}function g_(n,t){for(const e of n)Array.isArray(e)?g_(e,t):OL(e)?g_(e.\u0275providers,t):t(e)}class J0{}class NL{resolveComponentFactory(t){throw function LL(n){const t=Error(`No component factory found for ${vn(n)}. Did you add it to @NgModule.entryComponents?`);return t.ngComponent=n,t}(t)}}let hs=(()=>{class n{}return n.NULL=new NL,n})();function FL(){return Gl(ri(),xe())}function Gl(n,t){return new Je(Hr(n,t))}let Je=(()=>{class n{constructor(e){this.nativeElement=e}}return n.__NG_ELEMENT_ID__=FL,n})();function BL(n){return n instanceof Je?n.nativeElement:n}class Ru{}let ho=(()=>{class n{}return n.__NG_ELEMENT_ID__=()=>function jL(){const n=xe(),e=Cr(ri().index,n);return(nr(e)?e:n)[11]}(),n})(),HL=(()=>{class n{}return n.\u0275prov=ge({token:n,providedIn:"root",factory:()=>null}),n})();class Fa{constructor(t){this.full=t,this.major=t.split(".")[0],this.minor=t.split(".")[1],this.patch=t.split(".").slice(2).join(".")}}const X0=new Fa("14.1.0"),__={};function w_(n){return n.ngOriginalError}class ps{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&&w_(t);for(;e&&w_(e);)e=w_(e);return e||null}}const E_=new Map;let XL=0;const S_="__ngContext__";function Ai(n,t){nr(t)?(n[S_]=t[20],function tN(n){E_.set(n[20],n)}(t)):n[S_]=t}function Ou(n){const t=n[S_];return"number"==typeof t?function rE(n){return E_.get(n)||null}(t):t||null}function A_(n){const t=Ou(n);return t?nr(t)?t:t.lView:null}const uN=(()=>(typeof requestAnimationFrame<"u"&&requestAnimationFrame||setTimeout).bind(gn))();function fs(n){return n instanceof Function?n():n}var ir=(()=>((ir=ir||{})[ir.Important=1]="Important",ir[ir.DashCase=2]="DashCase",ir))();function x_(n,t){return undefined(n,t)}function Pu(n){const t=n[3];return co(t)?t[3]:t}function I_(n){return hE(n[13])}function M_(n){return hE(n[4])}function hE(n){for(;null!==n&&!co(n);)n=n[4];return n}function $l(n,t,e,i,r){if(null!=i){let o,s=!1;co(i)?o=i:nr(i)&&(s=!0,i=i[0]);const a=Jn(i);0===n&&null!==e?null==r?vE(t,e,a):Ba(t,e,a,r||null,!0):1===n&&null!==e?Ba(t,e,a,r||null,!0):2===n?function SE(n,t,e){const i=np(n,t);i&&function xN(n,t,e,i){n.removeChild(t,e,i)}(n,i,t,e)}(t,a,s):3===n&&t.destroyNode(a),null!=o&&function kN(n,t,e,i,r){const o=e[7];o!==Jn(e)&&$l(t,n,i,o,r);for(let a=10;a0&&(n[e-1][4]=i[4]);const o=Wh(n,10+t);!function bN(n,t){Lu(n,t,t[11],2,null,null),t[0]=null,t[6]=null}(i[1],i);const s=o[19];null!==s&&s.detachView(o[1]),i[3]=null,i[4]=null,i[2]&=-65}return i}function mE(n,t){if(!(128&t[2])){const e=t[11];e.destroyNode&&Lu(n,t,e,3,null,null),function EN(n){let t=n[13];if(!t)return P_(n[1],n);for(;t;){let e=null;if(nr(t))e=t[13];else{const i=t[10];i&&(e=i)}if(!e){for(;t&&!t[4]&&t!==n;)nr(t)&&P_(t[1],t),t=t[3];null===t&&(t=n),nr(t)&&P_(t[1],t),e=t&&t[4]}t=e}}(t)}}function P_(n,t){if(!(128&t[2])){t[2]&=-65,t[2]|=128,function TN(n,t){let e;if(null!=n&&null!=(e=n.destroyHooks))for(let i=0;i=0?i[r=c]():i[r=-c].unsubscribe(),o+=2}else{const s=i[r=e[o+1]];e[o].call(s)}if(null!==i){for(let o=r+1;oo?"":r[d+1].toLowerCase();const m=8&i?h:null;if(m&&-1!==xE(m,c,0)||2&i&&c!==h){if(po(i))return!1;s=!0}}}}else{if(!s&&!po(i)&&!po(l))return!1;if(s&&po(l))continue;s=!1,i=l|1&i}}return po(i)||s}function po(n){return 0==(1&n)}function NN(n,t,e,i){if(null===t)return-1;let r=0;if(i||!e){let o=!1;for(;r-1)for(e++;e0?'="'+a+'"':"")+"]"}else 8&i?r+="."+s:4&i&&(r+=" "+s);else""!==r&&!po(s)&&(t+=RE(o,r),r=""),i=s,o=o||!po(i);e++}return""!==r&&(t+=RE(o,r)),t}const Rt={};function f(n){OE(en(),xe(),Wi()+n,!1)}function OE(n,t,e,i){if(!i)if(3==(3&t[2])){const o=n.preOrderCheckHooks;null!==o&&Bh(t,o,e)}else{const o=n.preOrderHooks;null!==o&&jh(t,o,0,e)}Xs(e)}function FE(n,t=null,e=null,i){const r=BE(n,t,e,i);return r.resolveInjectorInitializers(),r}function BE(n,t=null,e=null,i,r=new Set){const o=[e||un,DL(n)];return i=i||("object"==typeof n?void 0:vn(n)),new Y0(o,t||tp(),i||null,r)}let Vn=(()=>{class n{static create(e,i){if(Array.isArray(e))return FE({name:""},i,e,"");{const r=e.name??"";return FE({name:r},e.parent,e.providers,r)}}}return n.THROW_IF_NOT_FOUND=Eu,n.NULL=new z0,n.\u0275prov=ge({token:n,providedIn:"any",factory:()=>M(U0)}),n.__NG_ELEMENT_ID__=-1,n})();function p(n,t=yt.Default){const e=xe();return null===e?M(n,t):c0(ri(),e,Et(n),t)}function Yl(){throw new Error("invalid")}function sp(n,t){return n<<17|t<<2}function fo(n){return n>>17&32767}function q_(n){return 2|n}function ms(n){return(131068&n)>>2}function z_(n,t){return-131069&n|t<<2}function G_(n){return 1|n}function tD(n,t){const e=n.contentQueries;if(null!==e)for(let i=0;i22&&OE(n,t,22,!1),e(i,r)}finally{Xs(o)}}function iD(n,t,e){if(Mg(t)){const r=t.directiveEnd;for(let o=t.directiveStart;o0;){const e=n[--t];if("number"==typeof e&&e<0)return e}return 0})(a)!=l&&a.push(l),a.push(i,r,s)}}function uD(n,t){null!==n.hostBindings&&n.hostBindings(1,t)}function dD(n,t){t.flags|=2,(n.components||(n.components=[])).push(t.index)}function OF(n,t,e){if(e){if(t.exportAs)for(let i=0;i0&&sv(e)}}function sv(n){for(let i=I_(n);null!==i;i=M_(i))for(let r=10;r0&&sv(o)}const e=n[1].components;if(null!==e)for(let i=0;i0&&sv(r)}}function HF(n,t){const e=Cr(t,n),i=e[1];(function VF(n,t){for(let e=t.length;ePromise.resolve(null))();function _D(n){return n[7]||(n[7]=[])}function vD(n){return n.cleanup||(n.cleanup=[])}function yD(n,t,e){return(null===n||uo(n))&&(e=function qO(n){for(;Array.isArray(n);){if("object"==typeof n[1])return n;n=n[0]}return null}(e[t.index])),e[11]}function bD(n,t){const e=n[9],i=e?e.get(ps,null):null;i&&i.handleError(t)}function uv(n,t,e,i,r){for(let o=0;o-1&&(O_(t,i),Wh(e,i))}this._attachedToViewContainer=!1}mE(this._lView[1],this._lView)}onDestroy(t){oD(this._lView[1],this._lView,null,t)}markForCheck(){av(this._cdRefInjectingView||this._lView)}detach(){this._lView[2]&=-65}reattach(){this._lView[2]|=64}detectChanges(){!function lv(n,t,e){const i=t[10];i.begin&&i.begin();try{Nu(n,t,n.template,e)}catch(r){throw bD(t,r),r}finally{i.end&&i.end()}}(this._lView[1],this._lView,this.context)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new Te(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null,function wN(n,t){Lu(n,t,t[11],2,null,null)}(this._lView[1],this._lView)}attachToAppRef(t){if(this._attachedToViewContainer)throw new Te(902,!1);this._appRef=t}}class zF extends Fu{constructor(t){super(t),this._view=t}detectChanges(){gD(this._view)}checkNoChanges(){}get context(){return null}}class dv extends hs{constructor(t){super(),this.ngModule=t}resolveComponentFactory(t){const e=mn(t);return new Bu(e,this.ngModule)}}function CD(n){const t=[];for(let e in n)n.hasOwnProperty(e)&&t.push({propName:n[e],templateName:e});return t}class WF{constructor(t,e){this.injector=t,this.parentInjector=e}get(t,e,i){const r=this.injector.get(t,__,i);return r!==__||e===__?r:this.parentInjector.get(t,e,i)}}class Bu extends J0{constructor(t,e){super(),this.componentDef=t,this.ngModule=e,this.componentType=t.type,this.selector=function UN(n){return n.map(VN).join(",")}(t.selectors),this.ngContentSelectors=t.ngContentSelectors?t.ngContentSelectors:[],this.isBoundToModule=!!e}get inputs(){return CD(this.componentDef.inputs)}get outputs(){return CD(this.componentDef.outputs)}create(t,e,i,r){let o=(r=r||this.ngModule)instanceof Na?r:r?.injector;o&&null!==this.componentDef.getStandaloneInjector&&(o=this.componentDef.getStandaloneInjector(o)||o);const s=o?new WF(t,o):t,a=s.get(Ru,null);if(null===a)throw new Te(407,!1);const l=s.get(HL,null),c=a.createRenderer(null,this.componentDef),u=this.componentDef.selectors[0][0]||"div",d=i?function EF(n,t,e){return n.selectRootElement(t,e===ao.ShadowDom)}(c,i,this.componentDef.encapsulation):R_(a.createRenderer(null,this.componentDef),u,function GF(n){const t=n.toLowerCase();return"svg"===t?"svg":"math"===t?"math":null}(u)),h=this.componentDef.onPush?288:272,m=function JF(n,t){return{components:[],scheduler:n||uN,clean:qF,playerHandler:t||null,flags:0}}(),y=iv(0,null,null,1,0,null,null,null,null,null),A=cp(null,y,m,h,null,null,a,c,l,s,null);let U,te;qg(A);try{const Ee=function YF(n,t,e,i,r,o){const s=e[1];e[22]=n;const l=Ql(s,22,2,"#host",null),c=l.mergedAttrs=t.hostAttrs;null!==c&&(hp(l,c,!0),null!==n&&(Hh(r,n,c),null!==l.classes&&B_(r,n,l.classes),null!==l.styles&&TE(r,n,l.styles)));const u=i.createRenderer(n,t),d=cp(e,rD(t),null,t.onPush?32:16,e[22],l,i,u,o||null,null,null);return s.firstCreatePass&&(zh(vu(l,e),s,t.type),dD(s,l),hD(l,e.length,1)),dp(e,d),e[22]=d}(d,this.componentDef,A,a,c);if(d)if(i)Hh(c,d,["ng-version",X0.full]);else{const{attrs:ne,classes:Me}=function qN(n){const t=[],e=[];let i=1,r=2;for(;i0&&B_(c,d,Me.join(" "))}if(te=Lg(y,22),void 0!==e){const ne=te.projection=[];for(let Me=0;Me=0;i--){const r=n[i];r.hostVars=t+=r.hostVars,r.hostAttrs=Vh(r.hostAttrs,e=Vh(e,r.hostAttrs))}}(i)}function hv(n){return n===Sl?{}:n===un?[]:n}function e3(n,t){const e=n.viewQuery;n.viewQuery=e?(i,r)=>{t(i,r),e(i,r)}:t}function t3(n,t){const e=n.contentQueries;n.contentQueries=e?(i,r,o)=>{t(i,r,o),e(i,r,o)}:t}function n3(n,t){const e=n.hostBindings;n.hostBindings=e?(i,r)=>{t(i,r),e(i,r)}:t}let fp=null;function ja(){if(!fp){const n=gn.Symbol;if(n&&n.iterator)fp=n.iterator;else{const t=Object.getOwnPropertyNames(Map.prototype);for(let e=0;ea(Jn(at[i.index])):i.index;let Me=null;if(!a&&l&&(Me=function g3(n,t,e,i){const r=n.cleanup;if(null!=r)for(let o=0;ol?a[l]:null}"string"==typeof s&&(o+=2)}return null}(n,t,r,i.index)),null!==Me)(Me.__ngLastListenerFn__||Me).__ngNextListenerFn__=o,Me.__ngLastListenerFn__=o,m=!1;else{o=LD(i,t,d,o,!1);const at=e.listen(te,r,o);h.push(o,at),u&&u.push(r,ne,Ee,Ee+1)}}else o=LD(i,t,d,o,!1);const y=i.outputs;let A;if(m&&null!==y&&(A=y[r])){const U=A.length;if(U)for(let te=0;te0;)t=t[15],n--;return t}(n,It.lFrame.contextLView))[8]}(n)}function _3(n,t){let e=null;const i=function FN(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=0}const si={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function GD(n){return n.substring(si.key,si.keyEnd)}function WD(n,t){const e=si.textEnd;return e===t?-1:(t=si.keyEnd=function D3(n,t,e){for(;t32;)t++;return t}(n,si.key=t,e),ac(n,t,e))}function ac(n,t,e){for(;t=0;e=WD(t,e))Er(n,GD(t),!0)}function mo(n,t,e,i){const r=xe(),o=en(),s=cs(2);o.firstUpdatePass&&ZD(o,n,s,i),t!==Rt&&Ti(r,s,t)&&eS(o,o.data[Wi()],r,r[11],n,r[s+1]=function P3(n,t){return null==n||("string"==typeof t?n+=t:"object"==typeof n&&(n=vn(Dr(n)))),n}(t,e),i,s)}function go(n,t,e,i){const r=en(),o=cs(2);r.firstUpdatePass&&ZD(r,null,o,i);const s=xe();if(e!==Rt&&Ti(s,o,e)){const a=r.data[Wi()];if(nS(a,i)&&!JD(r,o)){let l=i?a.classesWithoutHost:a.stylesWithoutHost;null!==l&&(e=Cg(l,e||"")),fv(r,a,s,e,i)}else!function O3(n,t,e,i,r,o,s,a){r===Rt&&(r=un);let l=0,c=0,u=0=n.expandoStartIndex}function ZD(n,t,e,i){const r=n.data;if(null===r[e+1]){const o=r[Wi()],s=JD(n,e);nS(o,i)&&null===t&&!s&&(t=!1),t=function x3(n,t,e,i){const r=Vg(n);let o=i?t.residualClasses:t.residualStyles;if(null===r)0===(i?t.classBindings:t.styleBindings)&&(e=Uu(e=_v(null,n,t,e,i),t.attrs,i),o=null);else{const s=t.directiveStylingLast;if(-1===s||n[s]!==r)if(e=_v(r,n,t,e,i),null===o){let l=function I3(n,t,e){const i=e?t.classBindings:t.styleBindings;if(0!==ms(i))return n[fo(i)]}(n,t,i);void 0!==l&&Array.isArray(l)&&(l=_v(null,n,t,l[1],i),l=Uu(l,t.attrs,i),function M3(n,t,e,i){n[fo(e?t.classBindings:t.styleBindings)]=i}(n,t,i,l))}else o=function k3(n,t,e){let i;const r=t.directiveEnd;for(let o=1+t.directiveStylingLast;o0)&&(c=!0)}else u=e;if(r)if(0!==l){const h=fo(n[a+1]);n[i+1]=sp(h,a),0!==h&&(n[h+1]=z_(n[h+1],i)),n[a+1]=function lF(n,t){return 131071&n|t<<17}(n[a+1],i)}else n[i+1]=sp(a,0),0!==a&&(n[a+1]=z_(n[a+1],i)),a=i;else n[i+1]=sp(l,0),0===a?a=i:n[l+1]=z_(n[l+1],i),l=i;c&&(n[i+1]=q_(n[i+1])),zD(n,u,i,!0),zD(n,u,i,!1),function y3(n,t,e,i,r){const o=r?n.residualClasses:n.residualStyles;null!=o&&"string"==typeof t&&Hl(o,t)>=0&&(e[i+1]=G_(e[i+1]))}(t,u,n,i,o),s=sp(a,l),o?t.classBindings=s:t.styleBindings=s}(r,o,t,e,s,i)}}function _v(n,t,e,i,r){let o=null;const s=e.directiveEnd;let a=e.directiveStylingLast;for(-1===a?a=e.directiveStart:a++;a0;){const l=n[r],c=Array.isArray(l),u=c?l[1]:l,d=null===u;let h=e[r+1];h===Rt&&(h=d?un:void 0);let m=d?Xg(h,i):u===i?h:void 0;if(c&&!_p(m)&&(m=Xg(l,i)),_p(m)&&(a=m,s))return a;const y=n[r+1];r=s?fo(y):ms(y)}if(null!==t){let l=o?t.residualClasses:t.residualStyles;null!=l&&(a=Xg(l,i))}return a}function _p(n){return void 0!==n}function nS(n,t){return 0!=(n.flags&(t?16:32))}function j(n,t=""){const e=xe(),i=en(),r=n+22,o=i.firstCreatePass?Ql(i,r,1,t,null):i.data[r],s=e[r]=function k_(n,t){return n.createText(t)}(e[11],t);ip(i,e,s,o),Ro(o,!1)}function ve(n){return qe("",n,""),ve}function qe(n,t,e){const i=xe(),r=Xl(i,n,t,e);return r!==Rt&&gs(i,Wi(),r),qe}function zr(n,t,e,i,r){const o=xe(),s=ec(o,n,t,e,i,r);return s!==Rt&&gs(o,Wi(),s),zr}function Ho(n,t,e){const i=xe();return Ti(i,kl(),t)&&Sr(en(),Hn(),i,n,t,i[11],e,!0),Ho}function vp(n,t,e){const i=xe();if(Ti(i,kl(),t)){const o=en(),s=Hn();Sr(o,s,i,n,t,yD(Vg(o.data),s,i),e,!0)}return vp}const Va=void 0;var X3=["en",[["a","p"],["AM","PM"],Va],[["AM","PM"],Va,Va],[["S","M","T","W","T","F","S"],["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],["Su","Mo","Tu","We","Th","Fr","Sa"]],Va,[["J","F","M","A","M","J","J","A","S","O","N","D"],["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],["January","February","March","April","May","June","July","August","September","October","November","December"]],Va,[["B","A"],["BC","AD"],["Before Christ","Anno Domini"]],0,[6,0],["M/d/yy","MMM d, y","MMMM d, y","EEEE, MMMM d, y"],["h:mm a","h:mm:ss a","h:mm:ss a z","h:mm:ss a zzzz"],["{1}, {0}",Va,"{1} 'at' {0}",Va],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",function Z3(n){const e=Math.floor(Math.abs(n)),i=n.toString().replace(/^[^.]*\.?/,"").length;return 1===e&&0===i?1:5}];let lc={};function Ki(n){const t=function eB(n){return n.toLowerCase().replace(/_/g,"-")}(n);let e=CS(t);if(e)return e;const i=t.split("-")[0];if(e=CS(i),e)return e;if("en"===i)return X3;throw new Te(701,!1)}function CS(n){return n in lc||(lc[n]=gn.ng&&gn.ng.common&&gn.ng.common.locales&&gn.ng.common.locales[n]),lc[n]}var Qe=(()=>((Qe=Qe||{})[Qe.LocaleId=0]="LocaleId",Qe[Qe.DayPeriodsFormat=1]="DayPeriodsFormat",Qe[Qe.DayPeriodsStandalone=2]="DayPeriodsStandalone",Qe[Qe.DaysFormat=3]="DaysFormat",Qe[Qe.DaysStandalone=4]="DaysStandalone",Qe[Qe.MonthsFormat=5]="MonthsFormat",Qe[Qe.MonthsStandalone=6]="MonthsStandalone",Qe[Qe.Eras=7]="Eras",Qe[Qe.FirstDayOfWeek=8]="FirstDayOfWeek",Qe[Qe.WeekendRange=9]="WeekendRange",Qe[Qe.DateFormat=10]="DateFormat",Qe[Qe.TimeFormat=11]="TimeFormat",Qe[Qe.DateTimeFormat=12]="DateTimeFormat",Qe[Qe.NumberSymbols=13]="NumberSymbols",Qe[Qe.NumberFormats=14]="NumberFormats",Qe[Qe.CurrencyCode=15]="CurrencyCode",Qe[Qe.CurrencySymbol=16]="CurrencySymbol",Qe[Qe.CurrencyName=17]="CurrencyName",Qe[Qe.Currencies=18]="Currencies",Qe[Qe.Directionality=19]="Directionality",Qe[Qe.PluralCase=20]="PluralCase",Qe[Qe.ExtraData=21]="ExtraData",Qe))();const cc="en-US";let wS=cc;function bv(n,t,e,i,r){if(n=Et(n),Array.isArray(n))for(let o=0;o>20;if(La(n)||!n.multi){const m=new gu(l,r,p),y=wv(a,t,r?u:u+h,d);-1===y?(zh(vu(c,s),o,a),Cv(o,n,t.length),t.push(a),c.directiveStart++,c.directiveEnd++,r&&(c.providerIndexes+=1048576),e.push(m),s.push(m)):(e[y]=m,s[y]=m)}else{const m=wv(a,t,u+h,d),y=wv(a,t,u,u+h),A=m>=0&&e[m],U=y>=0&&e[y];if(r&&!U||!r&&!A){zh(vu(c,s),o,a);const te=function JB(n,t,e,i,r){const o=new gu(n,e,p);return o.multi=[],o.index=t,o.componentProviders=0,$S(o,r,i&&!e),o}(r?QB:YB,e.length,r,i,l);!r&&U&&(e[y].providerFactory=te),Cv(o,n,t.length,0),t.push(a),c.directiveStart++,c.directiveEnd++,r&&(c.providerIndexes+=1048576),e.push(te),s.push(te)}else Cv(o,n,m>-1?m:y,$S(e[r?y:m],l,!r&&i));!r&&i&&U&&e[y].componentProviders++}}}function Cv(n,t,e,i){const r=La(t),o=function AL(n){return!!n.useClass}(t);if(r||o){const l=(o?Et(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 $S(n,t,e){return e&&n.componentProviders++,n.multi.push(t)-1}function wv(n,t,e,i){for(let r=e;r{e.providersResolver=(i,r)=>function KB(n,t,e){const i=en();if(i.firstCreatePass){const r=uo(n);bv(e,i.data,i.blueprint,r,!0),bv(t,i.data,i.blueprint,r,!1)}}(i,r?r(n):n,t)}}class Ua{}class KS{}class YS extends Ua{constructor(t,e){super(),this._parent=e,this._bootstrapComponents=[],this.destroyCbs=[],this.componentFactoryResolver=new dv(this);const i=yr(t);this._bootstrapComponents=fs(i.bootstrap),this._r3Injector=BE(t,e,[{provide:Ua,useValue:this},{provide:hs,useValue:this.componentFactoryResolver}],vn(t),new Set(["environment"])),this._r3Injector.resolveInjectorInitializers(),this.instance=this._r3Injector.get(t)}get injector(){return this._r3Injector}destroy(){const t=this._r3Injector;!t.destroyed&&t.destroy(),this.destroyCbs.forEach(e=>e()),this.destroyCbs=null}onDestroy(t){this.destroyCbs.push(t)}}class Dv extends KS{constructor(t){super(),this.moduleType=t}create(t){return new YS(this.moduleType,t)}}class XB extends Ua{constructor(t,e,i){super(),this.componentFactoryResolver=new dv(this),this.instance=null;const r=new Y0([...t,{provide:Ua,useValue:this},{provide:hs,useValue:this.componentFactoryResolver}],e||tp(),i,new Set(["environment"]));this.injector=r,r.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(t){this.injector.onDestroy(t)}}function Tv(n,t,e){const i=Gi()+n,r=xe();return r[i]===Rt?Fo(r,i,e?t.call(e):t()):function Hu(n,t){return n[t]}(r,i)}function Wn(n,t,e,i){return iA(xe(),Gi(),n,t,e,i)}function nA(n,t,e,i,r){return function rA(n,t,e,i,r,o,s){const a=t+e;return Ha(n,a,r,o)?Fo(n,a+2,s?i.call(s,r,o):i(r,o)):$u(n,a+2)}(xe(),Gi(),n,t,e,i,r)}function Yi(n,t,e,i,r,o,s){return function sA(n,t,e,i,r,o,s,a,l){const c=t+e;return function Ur(n,t,e,i,r,o){const s=Ha(n,t,e,i);return Ha(n,t+2,r,o)||s}(n,c,r,o,s,a)?Fo(n,c+4,l?i.call(l,r,o,s,a):i(r,o,s,a)):$u(n,c+4)}(xe(),Gi(),n,t,e,i,r,o,s)}function $u(n,t){const e=n[t];return e===Rt?void 0:e}function iA(n,t,e,i,r,o){const s=t+e;return Ti(n,s,r)?Fo(n,s+1,o?i.call(o,r):i(r)):$u(n,s+1)}function Ze(n,t){const e=en();let i;const r=n+22;e.firstCreatePass?(i=function _5(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 o=i.factory||(i.factory=Ra(i.type)),s=Fr(p);try{const a=Uh(!1),l=o();return Uh(a),function p3(n,t,e,i){e>=n.data.length&&(n.data[e]=null,n.blueprint[e]=null),t[e]=i}(e,xe(),r,l),l}finally{Fr(s)}}function Xe(n,t,e){const i=n+22,r=xe(),o=Ml(r,i);return function Ku(n,t){return n[1].data[t].pure}(r,i)?iA(r,Gi(),t,o.transform,e,o):o.transform(e)}function xv(n){return t=>{setTimeout(n,void 0,t)}}const He=class w5 extends N{constructor(t=!1){super(),this.__isAsync=t}emit(t){super.next(t)}subscribe(t,e,i){let r=t,o=e||(()=>null),s=i;if(t&&"object"==typeof t){const l=t;r=l.next?.bind(l),o=l.error?.bind(l),s=l.complete?.bind(l)}this.__isAsync&&(o=xv(o),r&&(r=xv(r)),s&&(s=xv(s)));const a=super.subscribe({next:r,error:o,complete:s});return t instanceof E&&t.add(a),a}};function E5(){return this._results[ja()]()}class qa{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=ja(),i=qa.prototype;i[e]||(i[e]=E5)}get changes(){return this._changes||(this._changes=new He)}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=wr(t);(this._changesDetected=!function wP(n,t,e){if(n.length!==t.length)return!1;for(let i=0;i{class n{}return n.__NG_ELEMENT_ID__=A5,n})();const D5=yn,S5=class extends D5{constructor(t,e,i){super(),this._declarationLView=t,this._declarationTContainer=e,this.elementRef=i}createEmbeddedView(t,e){const i=this._declarationTContainer.tViews,r=cp(this._declarationLView,i,t,16,null,i.declTNode,null,null,null,null,e||null);r[17]=this._declarationLView[this._declarationTContainer.index];const s=this._declarationLView[19];return null!==s&&(r[19]=s.createEmbeddedView(i)),up(i,r,t),new Fu(r)}};function A5(){return Ep(ri(),xe())}function Ep(n,t){return 4&n.type?new S5(t,n,Gl(n,t)):null}let Dn=(()=>{class n{}return n.__NG_ELEMENT_ID__=T5,n})();function T5(){return uA(ri(),xe())}const x5=Dn,lA=class extends x5{constructor(t,e,i){super(),this._lContainer=t,this._hostTNode=e,this._hostLView=i}get element(){return Gl(this._hostTNode,this._hostLView)}get injector(){return new Ll(this._hostTNode,this._hostLView)}get parentInjector(){const t=qh(this._hostTNode,this._hostLView);if(r0(t)){const e=Pl(t,this._hostLView),i=Ol(t);return new Ll(e[1].data[i+8],e)}return new Ll(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(t){const e=cA(this._lContainer);return null!==e&&e[t]||null}get length(){return this._lContainer.length-10}createEmbeddedView(t,e,i){let r,o;"number"==typeof i?r=i:null!=i&&(r=i.index,o=i.injector);const s=t.createEmbeddedView(e||{},o);return this.insert(s,r),s}createComponent(t,e,i,r,o){const s=t&&!function Cu(n){return"function"==typeof n}(t);let a;if(s)a=e;else{const d=e||{};a=d.index,i=d.injector,r=d.projectableNodes,o=d.environmentInjector||d.ngModuleRef}const l=s?t:new Bu(mn(t)),c=i||this.parentInjector;if(!o&&null==l.ngModule){const h=(s?c:this.parentInjector).get(Na,null);h&&(o=h)}const u=l.create(c,r,void 0,o);return this.insert(u.hostView,a),u}insert(t,e){const i=t._lView,r=i[1];if(function GO(n){return co(n[3])}(i)){const u=this.indexOf(t);if(-1!==u)this.detach(u);else{const d=i[3],h=new lA(d,d[6],d[3]);h.detach(h.indexOf(t))}}const o=this._adjustIndex(e),s=this._lContainer;!function DN(n,t,e,i){const r=10+i,o=e.length;i>0&&(e[r-1][4]=t),i0)i.push(s[a/2]);else{const c=o[a+1],u=t[-l];for(let d=10;d{class n{constructor(e){this.appInits=e,this.resolve=Sp,this.reject=Sp,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{o.subscribe({complete:a,error:l})});e.push(s)}}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)(M(PA,8))},n.\u0275prov=ge({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const fc=new me("AppId",{providedIn:"root",factory:function LA(){return`${jv()}${jv()}${jv()}`}});function jv(){return String.fromCharCode(97+Math.floor(25*Math.random()))}const NA=new me("Platform Initializer"),Tp=new me("Platform ID",{providedIn:"platform",factory:()=>"unknown"}),n4=new me("appBootstrapListener"),qn=new me("AnimationModuleType");let r4=(()=>{class n{log(e){console.log(e)}warn(e){console.warn(e)}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=ge({token:n,factory:n.\u0275fac,providedIn:"platform"}),n})();const Vo=new me("LocaleId",{providedIn:"root",factory:()=>Oa(Vo,yt.Optional|yt.SkipSelf)||function o4(){return typeof $localize<"u"&&$localize.locale||cc}()});class a4{constructor(t,e){this.ngModuleFactory=t,this.componentFactories=e}}let FA=(()=>{class n{compileModuleSync(e){return new Dv(e)}compileModuleAsync(e){return Promise.resolve(this.compileModuleSync(e))}compileModuleAndAllComponentsSync(e){const i=this.compileModuleSync(e),o=fs(yr(e).declarations).reduce((s,a)=>{const l=mn(a);return l&&s.push(new Bu(l)),s},[]);return new a4(i,o)}compileModuleAndAllComponentsAsync(e){return Promise.resolve(this.compileModuleAndAllComponentsSync(e))}clearCache(){}clearCacheFor(e){}getModuleId(e){}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=ge({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const u4=(()=>Promise.resolve(0))();function Hv(n){typeof Zone>"u"?u4.then(()=>{n&&n.apply(null,null)}):Zone.current.scheduleMicroTask("scheduleMicrotask",n)}class et{constructor({enableLongStackTrace:t=!1,shouldCoalesceEventChangeDetection:e=!1,shouldCoalesceRunChangeDetection:i=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new He(!1),this.onMicrotaskEmpty=new He(!1),this.onStable=new He(!1),this.onError=new He(!1),typeof Zone>"u")throw new Te(908,!1);Zone.assertZonePatched();const r=this;if(r._nesting=0,r._outer=r._inner=Zone.current,Zone.AsyncStackTaggingZoneSpec){const o=Zone.AsyncStackTaggingZoneSpec;r._inner=r._inner.fork(new o("Angular"))}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 d4(){let n=gn.requestAnimationFrame,t=gn.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 f4(n){const t=()=>{!function p4(n){n.isCheckStableRunning||-1!==n.lastRequestAnimationFrameId||(n.lastRequestAnimationFrameId=n.nativeRequestAnimationFrame.call(gn,()=>{n.fakeTopEventTask||(n.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{n.lastRequestAnimationFrameId=-1,Uv(n),n.isCheckStableRunning=!0,Vv(n),n.isCheckStableRunning=!1},void 0,()=>{},()=>{})),n.fakeTopEventTask.invoke()}),Uv(n))}(n)};n._inner=n._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(e,i,r,o,s,a)=>{try{return HA(n),e.invokeTask(r,o,s,a)}finally{(n.shouldCoalesceEventChangeDetection&&"eventTask"===o.type||n.shouldCoalesceRunChangeDetection)&&t(),VA(n)}},onInvoke:(e,i,r,o,s,a,l)=>{try{return HA(n),e.invoke(r,o,s,a,l)}finally{n.shouldCoalesceRunChangeDetection&&t(),VA(n)}},onHasTask:(e,i,r,o)=>{e.hasTask(r,o),i===r&&("microTask"==o.change?(n._hasPendingMicrotasks=o.microTask,Uv(n),Vv(n)):"macroTask"==o.change&&(n.hasPendingMacrotasks=o.macroTask))},onHandleError:(e,i,r,o)=>(e.handleError(r,o),n.runOutsideAngular(()=>n.onError.emit(o)),!1)})}(r)}static isInAngularZone(){return typeof Zone<"u"&&!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!et.isInAngularZone())throw new Te(909,!1)}static assertNotInAngularZone(){if(et.isInAngularZone())throw new Te(909,!1)}run(t,e,i){return this._inner.run(t,e,i)}runTask(t,e,i,r){const o=this._inner,s=o.scheduleEventTask("NgZoneEvent: "+r,t,h4,Sp,Sp);try{return o.runTask(s,e,i)}finally{o.cancelTask(s)}}runGuarded(t,e,i){return this._inner.runGuarded(t,e,i)}runOutsideAngular(t){return this._outer.run(t)}}const h4={};function Vv(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 Uv(n){n.hasPendingMicrotasks=!!(n._hasPendingMicrotasks||(n.shouldCoalesceEventChangeDetection||n.shouldCoalesceRunChangeDetection)&&-1!==n.lastRequestAnimationFrameId)}function HA(n){n._nesting++,n.isStable&&(n.isStable=!1,n.onUnstable.emit(null))}function VA(n){n._nesting--,Vv(n)}class m4{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new He,this.onMicrotaskEmpty=new He,this.onStable=new He,this.onError=new He}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 UA=new me(""),xp=new me("");let Gv,qv=(()=>{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,Gv||(function g4(n){Gv=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:()=>{et.assertNotInAngularZone(),Hv(()=>{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())Hv(()=>{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 o=-1;i&&i>0&&(o=setTimeout(()=>{this._callbacks=this._callbacks.filter(s=>s.timeoutId!==o),e(this._didWork,this.getPendingTasks())},i)),this._callbacks.push({doneCb:e,timeoutId:o,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)(M(et),M(zv),M(xp))},n.\u0275prov=ge({token:n,factory:n.\u0275fac}),n})(),zv=(()=>{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 Gv?.findTestabilityInTree(this,e,i)??null}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=ge({token:n,factory:n.\u0275fac,providedIn:"platform"}),n})(),ia=null;const qA=new me("AllowMultipleToken"),Wv=new me("PlatformDestroyListeners");function GA(n,t,e=[]){const i=`Platform: ${t}`,r=new me(i);return(o=[])=>{let s=$v();if(!s||s.injector.get(qA,!1)){const a=[...e,...o,{provide:r,useValue:!0}];n?n(a):function y4(n){if(ia&&!ia.get(qA,!1))throw new Te(400,!1);ia=n;const t=n.get($A);(function zA(n){const t=n.get(NA,null);t&&t.forEach(e=>e())})(n)}(function WA(n=[],t){return Vn.create({name:t,providers:[{provide:p_,useValue:"platform"},{provide:Wv,useValue:new Set([()=>ia=null])},...n]})}(a,i))}return function C4(n){const t=$v();if(!t)throw new Te(401,!1);return t}()}}function $v(){return ia?.get($A)??null}let $A=(()=>{class n{constructor(e){this._injector=e,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(e,i){const r=function w4(n,t){let e;return e="noop"===n?new m4:("zone.js"===n?void 0:n)||new et(t),e}(i?.ngZone,function KA(n){return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:!(!n||!n.ngZoneEventCoalescing)||!1,shouldCoalesceRunChangeDetection:!(!n||!n.ngZoneRunCoalescing)||!1}}(i)),o=[{provide:et,useValue:r}];return r.run(()=>{const s=Vn.create({providers:o,parent:this.injector,name:e.moduleType.name}),a=e.create(s),l=a.injector.get(ps,null);if(!l)throw new Te(402,!1);return r.runOutsideAngular(()=>{const c=r.onError.subscribe({next:u=>{l.handleError(u)}});a.onDestroy(()=>{Ip(this._modules,a),c.unsubscribe()})}),function YA(n,t,e){try{const i=e();return Vu(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(Ap);return c.runInitializers(),c.donePromise.then(()=>(function ES(n){vr(n,"Expected localeId to be defined"),"string"==typeof n&&(wS=n.toLowerCase().replace(/_/g,"-"))}(a.injector.get(Vo,cc)||cc),this._moduleDoBootstrap(a),a))})})}bootstrapModule(e,i=[]){const r=QA({},i);return function _4(n,t,e){const i=new Dv(e);return Promise.resolve(i)}(0,0,e).then(o=>this.bootstrapModuleFactory(o,r))}_moduleDoBootstrap(e){const i=e.injector.get(Qu);if(e._bootstrapComponents.length>0)e._bootstrapComponents.forEach(r=>i.bootstrap(r));else{if(!e.instance.ngDoBootstrap)throw new Te(403,!1);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 Te(404,!1);this._modules.slice().forEach(i=>i.destroy()),this._destroyListeners.forEach(i=>i());const e=this._injector.get(Wv,null);e&&(e.forEach(i=>i()),e.clear()),this._destroyed=!0}get destroyed(){return this._destroyed}}return n.\u0275fac=function(e){return new(e||n)(M(Vn))},n.\u0275prov=ge({token:n,factory:n.\u0275fac,providedIn:"platform"}),n})();function QA(n,t){return Array.isArray(t)?t.reduce(QA,n):{...n,...t}}let Qu=(()=>{class n{constructor(e,i,r){this._zone=e,this._injector=i,this._exceptionHandler=r,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 b(a=>{this._stable=this._zone.isStable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks,this._zone.runOutsideAngular(()=>{a.next(this._stable),a.complete()})}),s=new b(a=>{let l;this._zone.runOutsideAngular(()=>{l=this._zone.onStable.subscribe(()=>{et.assertNotInAngularZone(),Hv(()=>{!this._stable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks&&(this._stable=!0,a.next(!0))})})});const c=this._zone.onUnstable.subscribe(()=>{et.assertInAngularZone(),this._stable&&(this._stable=!1,this._zone.runOutsideAngular(()=>{a.next(!1)}))});return()=>{l.unsubscribe(),c.unsubscribe()}});this.isStable=On(o,s.pipe(Dw()))}get destroyed(){return this._destroyed}get injector(){return this._injector}bootstrap(e,i){const r=e instanceof J0;if(!this._injector.get(Ap).done)throw!r&&function hc(n){const t=mn(n)||qi(n)||zi(n);return null!==t&&t.standalone}(e),new Te(405,false);let s;s=r?e:this._injector.get(hs).resolveComponentFactory(e),this.componentTypes.push(s.componentType);const a=function v4(n){return n.isBoundToModule}(s)?void 0:this._injector.get(Ua),c=s.create(Vn.NULL,[],i||s.selector,a),u=c.location.nativeElement,d=c.injector.get(UA,null);return d?.registerApplication(u),c.onDestroy(()=>{this.detachView(c.hostView),Ip(this.components,c),d?.unregisterApplication(u)}),this._loadComponent(c),c}tick(){if(this._runningTick)throw new Te(101,!1);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;Ip(this._views,i),i.detachFromAppRef()}_loadComponent(e){this.attachView(e.hostView),this.tick(),this.components.push(e),this._injector.get(n4,[]).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),()=>Ip(this._destroyListeners,e)}destroy(){if(this._destroyed)throw new Te(406,!1);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)(M(et),M(Na),M(ps))},n.\u0275prov=ge({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();function Ip(n,t){const e=n.indexOf(t);e>-1&&n.splice(e,1)}let ZA=!0,St=(()=>{class n{}return n.__NG_ELEMENT_ID__=S4,n})();function S4(n){return function A4(n,t,e){if(Oh(n)&&!e){const i=Cr(n.index,t);return new Fu(i,i)}return 47&n.type?new Fu(t[16],t):null}(ri(),xe(),16==(16&n))}class iT{constructor(){}supports(t){return ju(t)}create(t){return new R4(t)}}const k4=(n,t)=>t;class R4{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||k4}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,o=null;for(;e||i;){const s=!i||e&&e.currentIndex{s=this._trackByFn(r,a),null!==e&&Object.is(e.trackById,s)?(i&&(e=this._verifyReinsertion(e,a,s,r)),Object.is(e.item,a)||this._addIdentityChange(e,a)):(e=this._mismatch(e,a,s,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 o;return null===t?o=this._itTail:(o=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,o,r)):null!==(t=null===this._linkedRecords?null:this._linkedRecords.get(i,r))?(Object.is(t.item,e)||this._addIdentityChange(t,e),this._moveAfter(t,o,r)):t=this._addAfter(new O4(e,i),o,r),t}_verifyReinsertion(t,e,i,r){let o=null===this._unlinkedRecords?null:this._unlinkedRecords.get(i,null);return null!==o?t=this._reinsertAfter(o,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,o=t._nextRemoved;return null===r?this._removalsHead=o:r._nextRemoved=o,null===o?this._removalsTail=r:o._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 rT),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 rT),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 O4{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 P4{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 rT{constructor(){this.map=new Map}put(t){const e=t.trackById;let i=this.map.get(e);i||(i=new P4,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 oT(n,t,e){const i=n.previousIndex;if(null===i)return i;let r=0;return e&&i{if(e&&e.key===r)this._maybeAddToChanges(e,i),this._appendAfter=e,e=e._next;else{const o=this._getOrCreateRecordForKey(r,i);e=this._insertBeforeOrAppend(e,o)}}),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 o=r._prev,s=r._next;return o&&(o._next=s),s&&(s._prev=o),r._next=null,r._prev=null,r}const i=new N4(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 N4{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 aT(){return new ys([new iT])}let ys=(()=>{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||aT()),deps:[[n,new Au,new ds]]}}find(e){const i=this.factories.find(r=>r.supports(e));if(null!=i)return i;throw new Te(901,!1)}}return n.\u0275prov=ge({token:n,providedIn:"root",factory:aT}),n})();function lT(){return new Ju([new sT])}let Ju=(()=>{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||lT()),deps:[[n,new Au,new ds]]}}find(e){const i=this.factories.find(r=>r.supports(e));if(i)return i;throw new Te(901,!1)}}return n.\u0275prov=ge({token:n,providedIn:"root",factory:lT}),n})();const j4=GA(null,"core",[]);let H4=(()=>{class n{constructor(e){}}return n.\u0275fac=function(e){return new(e||n)(M(Qu))},n.\u0275mod=ht({type:n}),n.\u0275inj=dt({}),n})();let Rp=null;function Uo(){return Rp}const ft=new me("DocumentToken");let Zv=(()=>{class n{historyGo(e){throw new Error("Not implemented")}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=ge({token:n,factory:function(){return function z4(){return M(cT)}()},providedIn:"platform"}),n})(),cT=(()=>{class n extends Zv{constructor(e){super(),this._doc=e,this._init()}_init(){this.location=window.location,this._history=window.history}getBaseHrefFromDOM(){return Uo().getBaseHref(this._doc)}onPopState(e){const i=Uo().getGlobalEventTarget(this._doc,"window");return i.addEventListener("popstate",e,!1),()=>i.removeEventListener("popstate",e)}onHashChange(e){const i=Uo().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){uT()?this._history.pushState(e,i,r):this.location.hash=r}replaceState(e,i,r){uT()?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)(M(ft))},n.\u0275prov=ge({token:n,factory:function(){return function G4(){return new cT(M(ft))}()},providedIn:"platform"}),n})();function uT(){return!!window.history.pushState}function dT(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 hT(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 Ga(n){return n&&"?"!==n[0]?"?"+n:n}let Op=(()=>{class n{historyGo(e){throw new Error("Not implemented")}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=ge({token:n,factory:function(){return function W4(){const n=M(ft).location;return new K4(M(Zv),n&&n.origin||"")}()},providedIn:"root"}),n})();const $4=new me("appBaseHref");let K4=(()=>{class n extends Op{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 dT(this._baseHref,e)}path(e=!1){const i=this._platformLocation.pathname+Ga(this._platformLocation.search),r=this._platformLocation.hash;return r&&e?`${i}${r}`:i}pushState(e,i,r,o){const s=this.prepareExternalUrl(r+Ga(o));this._platformLocation.pushState(e,i,s)}replaceState(e,i,r,o){const s=this.prepareExternalUrl(r+Ga(o));this._platformLocation.replaceState(e,i,s)}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)(M(Zv),M($4,8))},n.\u0275prov=ge({token:n,factory:n.\u0275fac}),n})(),Wa=(()=>{class n{constructor(e){this._subject=new He,this._urlChangeListeners=[],this._urlChangeSubscription=null,this._locationStrategy=e;const i=this._locationStrategy.getBaseHref();this._baseHref=hT(pT(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+Ga(i))}normalize(e){return n.stripTrailingSlash(function Q4(n,t){return n&&t.startsWith(n)?t.substring(n.length):t}(this._baseHref,pT(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+Ga(i)),r)}replaceState(e,i="",r=null){this._locationStrategy.replaceState(r,"",e,i),this._notifyUrlChangeListeners(this.prepareExternalUrl(e+Ga(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=Ga,n.joinWithSlash=dT,n.stripTrailingSlash=hT,n.\u0275fac=function(e){return new(e||n)(M(Op))},n.\u0275prov=ge({token:n,factory:function(){return function Y4(){return new Wa(M(Op))}()},providedIn:"root"}),n})();function pT(n){return n.replace(/\/index.html$/,"")}var $n=(()=>(($n=$n||{})[$n.Format=0]="Format",$n[$n.Standalone=1]="Standalone",$n))(),Qt=(()=>((Qt=Qt||{})[Qt.Narrow=0]="Narrow",Qt[Qt.Abbreviated=1]="Abbreviated",Qt[Qt.Wide=2]="Wide",Qt[Qt.Short=3]="Short",Qt))(),Ln=(()=>((Ln=Ln||{})[Ln.Short=0]="Short",Ln[Ln.Medium=1]="Medium",Ln[Ln.Long=2]="Long",Ln[Ln.Full=3]="Full",Ln))(),mt=(()=>((mt=mt||{})[mt.Decimal=0]="Decimal",mt[mt.Group=1]="Group",mt[mt.List=2]="List",mt[mt.PercentSign=3]="PercentSign",mt[mt.PlusSign=4]="PlusSign",mt[mt.MinusSign=5]="MinusSign",mt[mt.Exponential=6]="Exponential",mt[mt.SuperscriptingExponent=7]="SuperscriptingExponent",mt[mt.PerMille=8]="PerMille",mt[mt.Infinity=9]="Infinity",mt[mt.NaN=10]="NaN",mt[mt.TimeSeparator=11]="TimeSeparator",mt[mt.CurrencyDecimal=12]="CurrencyDecimal",mt[mt.CurrencyGroup=13]="CurrencyGroup",mt))();function Pp(n,t){return Wr(Ki(n)[Qe.DateFormat],t)}function Lp(n,t){return Wr(Ki(n)[Qe.TimeFormat],t)}function Np(n,t){return Wr(Ki(n)[Qe.DateTimeFormat],t)}function Gr(n,t){const e=Ki(n),i=e[Qe.NumberSymbols][t];if(typeof i>"u"){if(t===mt.CurrencyDecimal)return e[Qe.NumberSymbols][mt.Decimal];if(t===mt.CurrencyGroup)return e[Qe.NumberSymbols][mt.Group]}return i}function mT(n){if(!n[Qe.ExtraData])throw new Error(`Missing extra locale data for the locale "${n[Qe.LocaleId]}". Use "registerLocaleData" to load new data. See the "I18n guide" on angular.io to know more.`)}function Wr(n,t){for(let e=t;e>-1;e--)if(typeof n[e]<"u")return n[e];throw new Error("Locale data API: locale data undefined")}function ey(n){const[t,e]=n.split(":");return{hours:+t,minutes:+e}}const cj=/^(\d{4,})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/,Zu={},uj=/((?:[^BEGHLMOSWYZabcdhmswyz']+)|(?:'(?:[^']|'')*')|(?:G{1,5}|y{1,4}|Y{1,4}|M{1,5}|L{1,5}|w{1,2}|W{1}|d{1,2}|E{1,6}|c{1,6}|a{1,5}|b{1,5}|B{1,5}|h{1,2}|H{1,2}|m{1,2}|s{1,2}|S{1,3}|z{1,4}|Z{1,5}|O{1,4}))([\s\S]*)/;var ai=(()=>((ai=ai||{})[ai.Short=0]="Short",ai[ai.ShortGMT=1]="ShortGMT",ai[ai.Long=2]="Long",ai[ai.Extended=3]="Extended",ai))(),Ct=(()=>((Ct=Ct||{})[Ct.FullYear=0]="FullYear",Ct[Ct.Month=1]="Month",Ct[Ct.Date=2]="Date",Ct[Ct.Hours=3]="Hours",Ct[Ct.Minutes=4]="Minutes",Ct[Ct.Seconds=5]="Seconds",Ct[Ct.FractionalSeconds=6]="FractionalSeconds",Ct[Ct.Day=7]="Day",Ct))(),Ht=(()=>((Ht=Ht||{})[Ht.DayPeriods=0]="DayPeriods",Ht[Ht.Days=1]="Days",Ht[Ht.Months=2]="Months",Ht[Ht.Eras=3]="Eras",Ht))();function gT(n,t,e,i){let r=function yj(n){if(yT(n))return n;if("number"==typeof n&&!isNaN(n))return new Date(n);if("string"==typeof n){if(n=n.trim(),/^(\d{4}(-\d{1,2}(-\d{1,2})?)?)$/.test(n)){const[r,o=1,s=1]=n.split("-").map(a=>+a);return Fp(r,o-1,s)}const e=parseFloat(n);if(!isNaN(n-e))return new Date(e);let i;if(i=n.match(cj))return function bj(n){const t=new Date(0);let e=0,i=0;const r=n[8]?t.setUTCFullYear:t.setFullYear,o=n[8]?t.setUTCHours:t.setHours;n[9]&&(e=Number(n[9]+n[10]),i=Number(n[9]+n[11])),r.call(t,Number(n[1]),Number(n[2])-1,Number(n[3]));const s=Number(n[4]||0)-e,a=Number(n[5]||0)-i,l=Number(n[6]||0),c=Math.floor(1e3*parseFloat("0."+(n[7]||0)));return o.call(t,s,a,l,c),t}(i)}const t=new Date(n);if(!yT(t))throw new Error(`Unable to convert "${n}" into a date`);return t}(n);t=Cs(e,t)||t;let a,s=[];for(;t;){if(a=uj.exec(t),!a){s.push(t);break}{s=s.concat(a.slice(1));const u=s.pop();if(!u)break;t=u}}let l=r.getTimezoneOffset();i&&(l=vT(i,l),r=function vj(n,t,e){const i=e?-1:1,r=n.getTimezoneOffset();return function _j(n,t){return(n=new Date(n.getTime())).setMinutes(n.getMinutes()+t),n}(n,i*(vT(t,r)-r))}(r,i,!0));let c="";return s.forEach(u=>{const d=function gj(n){if(ny[n])return ny[n];let t;switch(n){case"G":case"GG":case"GGG":t=An(Ht.Eras,Qt.Abbreviated);break;case"GGGG":t=An(Ht.Eras,Qt.Wide);break;case"GGGGG":t=An(Ht.Eras,Qt.Narrow);break;case"y":t=Xn(Ct.FullYear,1,0,!1,!0);break;case"yy":t=Xn(Ct.FullYear,2,0,!0,!0);break;case"yyy":t=Xn(Ct.FullYear,3,0,!1,!0);break;case"yyyy":t=Xn(Ct.FullYear,4,0,!1,!0);break;case"Y":t=Vp(1);break;case"YY":t=Vp(2,!0);break;case"YYY":t=Vp(3);break;case"YYYY":t=Vp(4);break;case"M":case"L":t=Xn(Ct.Month,1,1);break;case"MM":case"LL":t=Xn(Ct.Month,2,1);break;case"MMM":t=An(Ht.Months,Qt.Abbreviated);break;case"MMMM":t=An(Ht.Months,Qt.Wide);break;case"MMMMM":t=An(Ht.Months,Qt.Narrow);break;case"LLL":t=An(Ht.Months,Qt.Abbreviated,$n.Standalone);break;case"LLLL":t=An(Ht.Months,Qt.Wide,$n.Standalone);break;case"LLLLL":t=An(Ht.Months,Qt.Narrow,$n.Standalone);break;case"w":t=ty(1);break;case"ww":t=ty(2);break;case"W":t=ty(1,!0);break;case"d":t=Xn(Ct.Date,1);break;case"dd":t=Xn(Ct.Date,2);break;case"c":case"cc":t=Xn(Ct.Day,1);break;case"ccc":t=An(Ht.Days,Qt.Abbreviated,$n.Standalone);break;case"cccc":t=An(Ht.Days,Qt.Wide,$n.Standalone);break;case"ccccc":t=An(Ht.Days,Qt.Narrow,$n.Standalone);break;case"cccccc":t=An(Ht.Days,Qt.Short,$n.Standalone);break;case"E":case"EE":case"EEE":t=An(Ht.Days,Qt.Abbreviated);break;case"EEEE":t=An(Ht.Days,Qt.Wide);break;case"EEEEE":t=An(Ht.Days,Qt.Narrow);break;case"EEEEEE":t=An(Ht.Days,Qt.Short);break;case"a":case"aa":case"aaa":t=An(Ht.DayPeriods,Qt.Abbreviated);break;case"aaaa":t=An(Ht.DayPeriods,Qt.Wide);break;case"aaaaa":t=An(Ht.DayPeriods,Qt.Narrow);break;case"b":case"bb":case"bbb":t=An(Ht.DayPeriods,Qt.Abbreviated,$n.Standalone,!0);break;case"bbbb":t=An(Ht.DayPeriods,Qt.Wide,$n.Standalone,!0);break;case"bbbbb":t=An(Ht.DayPeriods,Qt.Narrow,$n.Standalone,!0);break;case"B":case"BB":case"BBB":t=An(Ht.DayPeriods,Qt.Abbreviated,$n.Format,!0);break;case"BBBB":t=An(Ht.DayPeriods,Qt.Wide,$n.Format,!0);break;case"BBBBB":t=An(Ht.DayPeriods,Qt.Narrow,$n.Format,!0);break;case"h":t=Xn(Ct.Hours,1,-12);break;case"hh":t=Xn(Ct.Hours,2,-12);break;case"H":t=Xn(Ct.Hours,1);break;case"HH":t=Xn(Ct.Hours,2);break;case"m":t=Xn(Ct.Minutes,1);break;case"mm":t=Xn(Ct.Minutes,2);break;case"s":t=Xn(Ct.Seconds,1);break;case"ss":t=Xn(Ct.Seconds,2);break;case"S":t=Xn(Ct.FractionalSeconds,1);break;case"SS":t=Xn(Ct.FractionalSeconds,2);break;case"SSS":t=Xn(Ct.FractionalSeconds,3);break;case"Z":case"ZZ":case"ZZZ":t=jp(ai.Short);break;case"ZZZZZ":t=jp(ai.Extended);break;case"O":case"OO":case"OOO":case"z":case"zz":case"zzz":t=jp(ai.ShortGMT);break;case"OOOO":case"ZZZZ":case"zzzz":t=jp(ai.Long);break;default:return null}return ny[n]=t,t}(u);c+=d?d(r,e,l):"''"===u?"'":u.replace(/(^'|'$)/g,"").replace(/''/g,"'")}),c}function Fp(n,t,e){const i=new Date(0);return i.setFullYear(n,t,e),i.setHours(0,0,0),i}function Cs(n,t){const e=function J4(n){return Ki(n)[Qe.LocaleId]}(n);if(Zu[e]=Zu[e]||{},Zu[e][t])return Zu[e][t];let i="";switch(t){case"shortDate":i=Pp(n,Ln.Short);break;case"mediumDate":i=Pp(n,Ln.Medium);break;case"longDate":i=Pp(n,Ln.Long);break;case"fullDate":i=Pp(n,Ln.Full);break;case"shortTime":i=Lp(n,Ln.Short);break;case"mediumTime":i=Lp(n,Ln.Medium);break;case"longTime":i=Lp(n,Ln.Long);break;case"fullTime":i=Lp(n,Ln.Full);break;case"short":const r=Cs(n,"shortTime"),o=Cs(n,"shortDate");i=Bp(Np(n,Ln.Short),[r,o]);break;case"medium":const s=Cs(n,"mediumTime"),a=Cs(n,"mediumDate");i=Bp(Np(n,Ln.Medium),[s,a]);break;case"long":const l=Cs(n,"longTime"),c=Cs(n,"longDate");i=Bp(Np(n,Ln.Long),[l,c]);break;case"full":const u=Cs(n,"fullTime"),d=Cs(n,"fullDate");i=Bp(Np(n,Ln.Full),[u,d])}return i&&(Zu[e][t]=i),i}function Bp(n,t){return t&&(n=n.replace(/\{([^}]+)}/g,function(e,i){return null!=t&&i in t?t[i]:e})),n}function vo(n,t,e="-",i,r){let o="";(n<0||r&&n<=0)&&(r?n=1-n:(n=-n,o=e));let s=String(n);for(;s.length0||a>-e)&&(a+=e),n===Ct.Hours)0===a&&-12===e&&(a=12);else if(n===Ct.FractionalSeconds)return function dj(n,t){return vo(n,3).substring(0,t)}(a,t);const l=Gr(s,mt.MinusSign);return vo(a,t,l,i,r)}}function An(n,t,e=$n.Format,i=!1){return function(r,o){return function pj(n,t,e,i,r,o){switch(e){case Ht.Months:return function ej(n,t,e){const i=Ki(n),o=Wr([i[Qe.MonthsFormat],i[Qe.MonthsStandalone]],t);return Wr(o,e)}(t,r,i)[n.getMonth()];case Ht.Days:return function X4(n,t,e){const i=Ki(n),o=Wr([i[Qe.DaysFormat],i[Qe.DaysStandalone]],t);return Wr(o,e)}(t,r,i)[n.getDay()];case Ht.DayPeriods:const s=n.getHours(),a=n.getMinutes();if(o){const c=function rj(n){const t=Ki(n);return mT(t),(t[Qe.ExtraData][2]||[]).map(i=>"string"==typeof i?ey(i):[ey(i[0]),ey(i[1])])}(t),u=function oj(n,t,e){const i=Ki(n);mT(i);const o=Wr([i[Qe.ExtraData][0],i[Qe.ExtraData][1]],t)||[];return Wr(o,e)||[]}(t,r,i),d=c.findIndex(h=>{if(Array.isArray(h)){const[m,y]=h,A=s>=m.hours&&a>=m.minutes,U=s0?Math.floor(r/60):Math.ceil(r/60);switch(n){case ai.Short:return(r>=0?"+":"")+vo(s,2,o)+vo(Math.abs(r%60),2,o);case ai.ShortGMT:return"GMT"+(r>=0?"+":"")+vo(s,1,o);case ai.Long:return"GMT"+(r>=0?"+":"")+vo(s,2,o)+":"+vo(Math.abs(r%60),2,o);case ai.Extended:return 0===i?"Z":(r>=0?"+":"")+vo(s,2,o)+":"+vo(Math.abs(r%60),2,o);default:throw new Error(`Unknown zone width "${n}"`)}}}function _T(n){return Fp(n.getFullYear(),n.getMonth(),n.getDate()+(4-n.getDay()))}function ty(n,t=!1){return function(e,i){let r;if(t){const o=new Date(e.getFullYear(),e.getMonth(),1).getDay()-1,s=e.getDate();r=1+Math.floor((s+o)/7)}else{const o=_T(e),s=function mj(n){const t=Fp(n,0,1).getDay();return Fp(n,0,1+(t<=4?4:11)-t)}(o.getFullYear()),a=o.getTime()-s.getTime();r=1+Math.round(a/6048e5)}return vo(r,n,Gr(i,mt.MinusSign))}}function Vp(n,t=!1){return function(e,i){return vo(_T(e).getFullYear(),n,Gr(i,mt.MinusSign),t)}}const ny={};function vT(n,t){n=n.replace(/:/g,"");const e=Date.parse("Jan 01, 1970 00:00:00 "+n)/6e4;return isNaN(e)?t:e}function yT(n){return n instanceof Date&&!isNaN(n.valueOf())}function ET(n,t){t=encodeURIComponent(t);for(const e of n.split(";")){const i=e.indexOf("="),[r,o]=-1==i?[e,""]:[e.slice(0,i),e.slice(i+1)];if(r.trim()===t)return decodeURIComponent(o)}return null}let $a=(()=>{class n{constructor(e,i,r,o){this._iterableDiffers=e,this._keyValueDiffers=i,this._ngEl=r,this._renderer=o,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&&(ju(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 ${vn(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)(p(ys),p(Ju),p(Je),p(ho))},n.\u0275dir=fe({type:n,selectors:[["","ngClass",""]],inputs:{klass:["class","klass"],ngClass:"ngClass"},standalone:!0}),n})();class Oj{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 zn=(()=>{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,o,s)=>{if(null==r.previousIndex)i.createEmbeddedView(this._template,new Oj(r.item,this._ngForOf,-1,-1),null===s?void 0:s);else if(null==s)i.remove(null===o?void 0:o);else if(null!==o){const a=i.get(o);i.move(a,s),AT(a,r)}});for(let r=0,o=i.length;r{AT(i.get(r.currentIndex),r)})}static ngTemplateContextGuard(e,i){return!0}}return n.\u0275fac=function(e){return new(e||n)(p(Dn),p(yn),p(ys))},n.\u0275dir=fe({type:n,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"},standalone:!0}),n})();function AT(n,t){n.context.$implicit=t.item}let pn=(()=>{class n{constructor(e,i){this._viewContainer=e,this._context=new Lj,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){TT("ngIfThen",e),this._thenTemplateRef=e,this._thenViewRef=null,this._updateView()}set ngIfElse(e){TT("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)(p(Dn),p(yn))},n.\u0275dir=fe({type:n,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"},standalone:!0}),n})();class Lj{constructor(){this.$implicit=null,this.ngIf=null}}function TT(n,t){if(t&&!t.createEmbeddedView)throw new Error(`${n} must be a TemplateRef, but received '${vn(t)}'.`)}class ly{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 mc=(()=>{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{class n{constructor(e,i,r){this.ngSwitch=r,r._addCase(),this._view=new ly(e,i)}ngDoCheck(){this._view.enforceState(this.ngSwitch._matchCase(this.ngSwitchCase))}}return n.\u0275fac=function(e){return new(e||n)(p(Dn),p(yn),p(mc,9))},n.\u0275dir=fe({type:n,selectors:[["","ngSwitchCase",""]],inputs:{ngSwitchCase:"ngSwitchCase"},standalone:!0}),n})(),xT=(()=>{class n{constructor(e,i,r){r._addDefault(new ly(e,i))}}return n.\u0275fac=function(e){return new(e||n)(p(Dn),p(yn),p(mc,9))},n.\u0275dir=fe({type:n,selectors:[["","ngSwitchDefault",""]],standalone:!0}),n})(),ra=(()=>{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,o]=e.split("."),s=-1===r.indexOf("-")?void 0:ir.DashCase;null!=i?this._renderer.setStyle(this._ngEl.nativeElement,r,o?`${i}${o}`:i,s):this._renderer.removeStyle(this._ngEl.nativeElement,r,s)}_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)(p(Je),p(Ju),p(ho))},n.\u0275dir=fe({type:n,selectors:[["","ngStyle",""]],inputs:{ngStyle:"ngStyle"},standalone:!0}),n})(),Ji=(()=>{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:o,ngTemplateOutletInjector:s}=this;this._viewRef=i.createEmbeddedView(r,o,s?{injector:s}: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)(p(Dn))},n.\u0275dir=fe({type:n,selectors:[["","ngTemplateOutlet",""]],inputs:{ngTemplateOutletContext:"ngTemplateOutletContext",ngTemplateOutlet:"ngTemplateOutlet",ngTemplateOutletInjector:"ngTemplateOutletInjector"},standalone:!0,features:[Rn]}),n})(),$r=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=ht({type:n}),n.\u0275inj=dt({}),n})();const kT="browser";class OT{}class dy extends class cH extends class q4{}{constructor(){super(...arguments),this.supportsDOMEvents=!0}}{static makeCurrent(){!function U4(n){Rp||(Rp=n)}(new dy)}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 uH(){return ed=ed||document.querySelector("base"),ed?ed.getAttribute("href"):null}();return null==e?null:function dH(n){zp=zp||document.createElement("a"),zp.setAttribute("href",n);const t=zp.pathname;return"/"===t.charAt(0)?t:`/${t}`}(e)}resetBaseElement(){ed=null}getUserAgent(){return window.navigator.userAgent}getCookie(t){return ET(document.cookie,t)}}let zp,ed=null;const PT=new me("TRANSITION_ID"),pH=[{provide:PA,useFactory:function hH(n,t,e){return()=>{e.get(Ap).donePromise.then(()=>{const i=Uo(),r=t.querySelectorAll(`style[ng-transition="${n}"]`);for(let o=0;o{class n{build(){return new XMLHttpRequest}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=ge({token:n,factory:n.\u0275fac}),n})();const Gp=new me("EventManagerPlugins");let Wp=(()=>{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 o=0;o{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=ge({token:n,factory:n.\u0275fac}),n})(),td=(()=>{class n extends NT{constructor(e){super(),this._doc=e,this._hostNodes=new Map,this._hostNodes.set(e.head,[])}_addStylesToHost(e,i,r){e.forEach(o=>{const s=this._doc.createElement("style");s.textContent=o,r.push(i.appendChild(s))})}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(FT),this._hostNodes.delete(e)}onStylesAdded(e){this._hostNodes.forEach((i,r)=>{this._addStylesToHost(e,r,i)})}ngOnDestroy(){this._hostNodes.forEach(e=>e.forEach(FT))}}return n.\u0275fac=function(e){return new(e||n)(M(ft))},n.\u0275prov=ge({token:n,factory:n.\u0275fac}),n})();function FT(n){Uo().remove(n)}const hy={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/"},py=/%COMP%/g;function $p(n,t,e){for(let i=0;i{if("__ngUnwrap__"===t)return n;!1===n(t)&&(t.preventDefault(),t.returnValue=!1)}}let Kp=(()=>{class n{constructor(e,i,r){this.eventManager=e,this.sharedStylesHost=i,this.appId=r,this.rendererByCompId=new Map,this.defaultRenderer=new fy(e)}createRenderer(e,i){if(!e||!i)return this.defaultRenderer;switch(i.encapsulation){case ao.Emulated:{let r=this.rendererByCompId.get(i.id);return r||(r=new CH(this.eventManager,this.sharedStylesHost,i,this.appId),this.rendererByCompId.set(i.id,r)),r.applyToHost(e),r}case 1:case ao.ShadowDom:return new wH(this.eventManager,this.sharedStylesHost,e,i);default:if(!this.rendererByCompId.has(i.id)){const r=$p(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)(M(Wp),M(td),M(fc))},n.\u0275prov=ge({token:n,factory:n.\u0275fac}),n})();class fy{constructor(t){this.eventManager=t,this.data=Object.create(null),this.destroyNode=null}destroy(){}createElement(t,e){return e?document.createElementNS(hy[e]||e,t):document.createElement(t)}createComment(t){return document.createComment(t)}createText(t){return document.createTextNode(t)}appendChild(t,e){(UT(t)?t.content:t).appendChild(e)}insertBefore(t,e,i){t&&(UT(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 o=hy[r];o?t.setAttributeNS(o,e,i):t.setAttribute(e,i)}else t.setAttribute(e,i)}removeAttribute(t,e,i){if(i){const r=hy[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&(ir.DashCase|ir.Important)?t.style.setProperty(e,i,r&ir.Important?"important":""):t.style[e]=i}removeStyle(t,e,i){i&ir.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,HT(i)):this.eventManager.addEventListener(t,e,HT(i))}}function UT(n){return"TEMPLATE"===n.tagName&&void 0!==n.content}class CH extends fy{constructor(t,e,i,r){super(t),this.component=i;const o=$p(r+"-"+i.id,i.styles,[]);e.addStyles(o),this.contentAttr=function vH(n){return"_ngcontent-%COMP%".replace(py,n)}(r+"-"+i.id),this.hostAttr=function yH(n){return"_nghost-%COMP%".replace(py,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 wH extends fy{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 o=$p(r.id,r.styles,[]);for(let s=0;s{class n extends LT{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)(M(ft))},n.\u0275prov=ge({token:n,factory:n.\u0275fac}),n})();const qT=["alt","control","meta","shift"],SH={"\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"},zT={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"},AH={alt:n=>n.altKey,control:n=>n.ctrlKey,meta:n=>n.metaKey,shift:n=>n.shiftKey};let TH=(()=>{class n extends LT{constructor(e){super(e)}supports(e){return null!=n.parseEventName(e)}addEventListener(e,i,r){const o=n.parseEventName(i),s=n.eventCallback(o.fullKey,r,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>Uo().onAndCancel(e,o.domEventName,s))}static parseEventName(e){const i=e.toLowerCase().split("."),r=i.shift();if(0===i.length||"keydown"!==r&&"keyup"!==r)return null;const o=n._normalizeKey(i.pop());let s="";if(qT.forEach(l=>{const c=i.indexOf(l);c>-1&&(i.splice(c,1),s+=l+".")}),s+=o,0!=i.length||0===o.length)return null;const a={};return a.domEventName=r,a.fullKey=s,a}static getEventFullKey(e){let i="",r=function xH(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&&zT.hasOwnProperty(t)&&(t=zT[t]))}return SH[t]||t}(e);return r=r.toLowerCase()," "===r?r="space":"."===r&&(r="dot"),qT.forEach(o=>{o!=r&&(0,AH[o])(e)&&(i+=o+".")}),i+=r,i}static eventCallback(e,i,r){return o=>{n.getEventFullKey(o)===e&&r.runGuarded(()=>i(o))}}static _normalizeKey(e){return"esc"===e?"escape":e}}return n.\u0275fac=function(e){return new(e||n)(M(ft))},n.\u0275prov=ge({token:n,factory:n.\u0275fac}),n})();const GT=[{provide:Tp,useValue:kT},{provide:NA,useValue:function IH(){dy.makeCurrent()},multi:!0},{provide:ft,useFactory:function kH(){return function $P(n){r_=n}(document),document},deps:[]}],WT=GA(j4,"browser",GT),$T=new me(""),KT=[{provide:xp,useClass:class fH{addToWindow(t){gn.getAngularTestability=(i,r=!0)=>{const o=t.findTestabilityInTree(i,r);if(null==o)throw new Error("Could not find testability for element.");return o},gn.getAllAngularTestabilities=()=>t.getAllTestabilities(),gn.getAllAngularRootElements=()=>t.getAllRootElements(),gn.frameworkStabilizers||(gn.frameworkStabilizers=[]),gn.frameworkStabilizers.push(i=>{const r=gn.getAllAngularTestabilities();let o=r.length,s=!1;const a=function(l){s=s||l,o--,0==o&&i(s)};r.forEach(function(l){l.whenStable(a)})})}findTestabilityInTree(t,e,i){return null==e?null:t.getTestability(e)??(i?Uo().isShadowRoot(e)?this.findTestabilityInTree(t,e.host,!0):this.findTestabilityInTree(t,e.parentElement,!0):null)}},deps:[]},{provide:UA,useClass:qv,deps:[et,zv,xp]},{provide:qv,useClass:qv,deps:[et,zv,xp]}],YT=[{provide:p_,useValue:"root"},{provide:ps,useFactory:function MH(){return new ps},deps:[]},{provide:Gp,useClass:EH,multi:!0,deps:[ft,et,Tp]},{provide:Gp,useClass:TH,multi:!0,deps:[ft]},{provide:Kp,useClass:Kp,deps:[Wp,td,fc]},{provide:Ru,useExisting:Kp},{provide:NT,useExisting:td},{provide:td,useClass:td,deps:[ft]},{provide:Wp,useClass:Wp,deps:[Gp,et]},{provide:OT,useClass:mH,deps:[]},[]];let QT=(()=>{class n{constructor(e){}static withServerTransition(e){return{ngModule:n,providers:[{provide:fc,useValue:e.appId},{provide:PT,useExisting:fc},pH]}}}return n.\u0275fac=function(e){return new(e||n)(M($T,12))},n.\u0275mod=ht({type:n}),n.\u0275inj=dt({providers:[...YT,...KT],imports:[$r,H4]}),n})();typeof window<"u"&&window;let nd=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=ge({token:n,factory:function(e){let i=null;return i=e?new(e||n):M(ex),i},providedIn:"root"}),n})(),ex=(()=>{class n extends nd{constructor(e){super(),this._doc=e}sanitize(e,i){if(null==i)return null;switch(e){case dn.NONE:return i;case dn.HTML:return Po(i,"HTML")?Dr(i):j0(this._doc,String(i)).toString();case dn.STYLE:return Po(i,"Style")?Dr(i):i;case dn.SCRIPT:if(Po(i,"Script"))return Dr(i);throw new Error("unsafe value used in a script context");case dn.URL:return Po(i,"URL")?Dr(i):Iu(String(i));case dn.RESOURCE_URL:if(Po(i,"ResourceURL"))return Dr(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 nL(n){return new QP(n)}(e)}bypassSecurityTrustStyle(e){return function iL(n){return new JP(n)}(e)}bypassSecurityTrustScript(e){return function rL(n){return new ZP(n)}(e)}bypassSecurityTrustUrl(e){return function oL(n){return new XP(n)}(e)}bypassSecurityTrustResourceUrl(e){return function sL(n){return new eL(n)}(e)}}return n.\u0275fac=function(e){return new(e||n)(M(ft))},n.\u0275prov=ge({token:n,factory:function(e){let i=null;return i=e?new e:function VH(n){return new ex(n.get(ft))}(M(Vn)),i},providedIn:"root"}),n})();function _y(...n){if(1===n.length){const t=n[0];if(F(t))return Yp(t,null);if(I(t)&&Object.getPrototypeOf(t)===Object.prototype){const e=Object.keys(t);return Yp(e.map(i=>t[i]),e)}}if("function"==typeof n[n.length-1]){const t=n.pop();return Yp(n=1===n.length&&F(n[0])?n[0]:n,null).pipe(he(e=>t(...e)))}return Yp(n,null)}function Yp(n,t){return new b(e=>{const i=n.length;if(0===i)return void e.complete();const r=new Array(i);let o=0,s=0;for(let a=0;a{c||(c=!0,s++),r[a]=u},error:u=>e.error(u),complete:()=>{o++,(o===i||!c)&&(s===i&&e.next(t?t.reduce((u,d,h)=>(u[d]=r[h],u),{}):r),e.complete())}}))}})}let tx=(()=>{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)(p(ho),p(Je))},n.\u0275dir=fe({type:n}),n})(),Ka=(()=>{class n extends tx{}return n.\u0275fac=function(){let t;return function(i){return(t||(t=Pt(n)))(i||n)}}(),n.\u0275dir=fe({type:n,features:[Se]}),n})();const or=new me("NgValueAccessor"),qH={provide:or,useExisting:Xt(()=>Ar),multi:!0},GH=new me("CompositionEventMode");let Ar=(()=>{class n extends tx{constructor(e,i,r){super(e,i),this._compositionMode=r,this._composing=!1,null==this._compositionMode&&(this._compositionMode=!function zH(){const n=Uo()?Uo().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)(p(ho),p(Je),p(GH,8))},n.\u0275dir=fe({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(o){return i._handleInput(o.target.value)})("blur",function(){return i.onTouched()})("compositionstart",function(){return i._compositionStart()})("compositionend",function(o){return i._compositionEnd(o.target.value)})},features:[it([qH]),Se]}),n})();function sa(n){return null==n||("string"==typeof n||Array.isArray(n))&&0===n.length}function ix(n){return null!=n&&"number"==typeof n.length}const hi=new me("NgValidators"),aa=new me("NgAsyncValidators"),$H=/^(?=.{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 vy{static min(t){return function rx(n){return t=>{if(sa(t.value)||sa(n))return null;const e=parseFloat(t.value);return!isNaN(e)&&e{if(sa(t.value)||sa(n))return null;const e=parseFloat(t.value);return!isNaN(e)&&e>n?{max:{max:n,actual:t.value}}:null}}(t)}static required(t){return function sx(n){return sa(n.value)?{required:!0}:null}(t)}static requiredTrue(t){return function ax(n){return!0===n.value?null:{required:!0}}(t)}static email(t){return function lx(n){return sa(n.value)||$H.test(n.value)?null:{email:!0}}(t)}static minLength(t){return function cx(n){return t=>sa(t.value)||!ix(t.value)?null:t.value.lengthix(t.value)&&t.value.length>n?{maxlength:{requiredLength:n,actualLength:t.value.length}}:null}(t)}static pattern(t){return function dx(n){if(!n)return Qp;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(sa(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 _x(t)}static composeAsync(t){return vx(t)}}function Qp(n){return null}function hx(n){return null!=n}function px(n){return Vu(n)?vt(n):n}function fx(n){let t={};return n.forEach(e=>{t=null!=e?{...t,...e}:t}),0===Object.keys(t).length?null:t}function mx(n,t){return t.map(e=>e(n))}function gx(n){return n.map(t=>function KH(n){return!n.validate}(t)?t:e=>t.validate(e))}function _x(n){if(!n)return null;const t=n.filter(hx);return 0==t.length?null:function(e){return fx(mx(e,t))}}function yy(n){return null!=n?_x(gx(n)):null}function vx(n){if(!n)return null;const t=n.filter(hx);return 0==t.length?null:function(e){return _y(mx(e,t).map(px)).pipe(he(fx))}}function by(n){return null!=n?vx(gx(n)):null}function yx(n,t){return null===n?[t]:Array.isArray(n)?[...n,t]:[n,t]}function bx(n){return n._rawValidators}function Cx(n){return n._rawAsyncValidators}function Cy(n){return n?Array.isArray(n)?n:[n]:[]}function Jp(n,t){return Array.isArray(n)?n.includes(t):n===t}function wx(n,t){const e=Cy(t);return Cy(n).forEach(r=>{Jp(e,r)||e.push(r)}),e}function Ex(n,t){return Cy(t).filter(e=>!Jp(n,e))}class Dx{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=yy(this._rawValidators)}_setAsyncValidators(t){this._rawAsyncValidators=t||[],this._composedAsyncValidatorFn=by(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 Zi extends Dx{get formDirective(){return null}get path(){return null}}class bo extends Dx{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}}let Kr=(()=>{class n extends class Sx{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}}{constructor(e){super(e)}}return n.\u0275fac=function(e){return new(e||n)(p(bo,2))},n.\u0275dir=fe({type:n,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(e,i){2&e&&bt("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:[Se]}),n})();const id="VALID",Xp="INVALID",gc="PENDING",rd="DISABLED";function Sy(n){return(ef(n)?n.validators:n)||null}function Tx(n){return Array.isArray(n)?yy(n):n||null}function Ay(n,t){return(ef(t)?t.asyncValidators:n)||null}function xx(n){return Array.isArray(n)?by(n):n||null}function ef(n){return null!=n&&!Array.isArray(n)&&"object"==typeof n}class kx{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=Tx(this._rawValidators),this._composedAsyncValidatorFn=xx(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===id}get invalid(){return this.status===Xp}get pending(){return this.status==gc}get disabled(){return this.status===rd}get enabled(){return this.status!==rd}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=Tx(t)}setAsyncValidators(t){this._rawAsyncValidators=t,this._composedAsyncValidatorFn=xx(t)}addValidators(t){this.setValidators(wx(t,this._rawValidators))}addAsyncValidators(t){this.setAsyncValidators(wx(t,this._rawAsyncValidators))}removeValidators(t){this.setValidators(Ex(t,this._rawValidators))}removeAsyncValidators(t){this.setAsyncValidators(Ex(t,this._rawAsyncValidators))}hasValidator(t){return Jp(this._rawValidators,t)}hasAsyncValidator(t){return Jp(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=gc,!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=rd,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=id,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===id||this.status===gc)&&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()?rd:id}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(t){if(this.asyncValidator){this.status=gc,this._hasOwnPendingAsyncValidator=!0;const e=px(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 He,this.statusChanges=new He}_calculateStatus(){return this._allControlsDisabled()?rd:this.errors?Xp:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(gc)?gc:this._anyControlsHaveStatus(Xp)?Xp:id}_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){ef(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 Ty extends kx{constructor(t,e,i){super(Sy(e),Ay(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={}){(function Mx(n,t,e){n._forEachChild((i,r)=>{if(void 0===e[r])throw new Te(1002,"")})})(this,0,t),Object.keys(t).forEach(i=>{(function Ix(n,t,e){const i=n.controls;if(!(t?Object.keys(i):i).length)throw new Te(1e3,"");if(!i[e])throw new Te(1001,"")})(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,o)=>{i=e(i,r,o)}),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 od(n,t){xy(n,t),t.valueAccessor.writeValue(n.value),n.disabled&&t.valueAccessor.setDisabledState?.(!0),function rV(n,t){t.valueAccessor.registerOnChange(e=>{n._pendingValue=e,n._pendingChange=!0,n._pendingDirty=!0,"change"===n.updateOn&&Rx(n,t)})}(n,t),function sV(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 oV(n,t){t.valueAccessor.registerOnTouched(()=>{n._pendingTouched=!0,"blur"===n.updateOn&&n._pendingChange&&Rx(n,t),"submit"!==n.updateOn&&n.markAsTouched()})}(n,t),function iV(n,t){if(t.valueAccessor.setDisabledState){const e=i=>{t.valueAccessor.setDisabledState(i)};n.registerOnDisabledChange(e),t._registerOnDestroy(()=>{n._unregisterOnDisabledChange(e)})}}(n,t)}function nf(n,t,e=!0){const i=()=>{};t.valueAccessor&&(t.valueAccessor.registerOnChange(i),t.valueAccessor.registerOnTouched(i)),sf(n,t),n&&(t._invokeOnDestroyCallbacks(),n._registerOnCollectionChange(()=>{}))}function rf(n,t){n.forEach(e=>{e.registerOnValidatorChange&&e.registerOnValidatorChange(t)})}function xy(n,t){const e=bx(n);null!==t.validator?n.setValidators(yx(e,t.validator)):"function"==typeof e&&n.setValidators([e]);const i=Cx(n);null!==t.asyncValidator?n.setAsyncValidators(yx(i,t.asyncValidator)):"function"==typeof i&&n.setAsyncValidators([i]);const r=()=>n.updateValueAndValidity();rf(t._rawValidators,r),rf(t._rawAsyncValidators,r)}function sf(n,t){let e=!1;if(null!==n){if(null!==t.validator){const r=bx(n);if(Array.isArray(r)&&r.length>0){const o=r.filter(s=>s!==t.validator);o.length!==r.length&&(e=!0,n.setValidators(o))}}if(null!==t.asyncValidator){const r=Cx(n);if(Array.isArray(r)&&r.length>0){const o=r.filter(s=>s!==t.asyncValidator);o.length!==r.length&&(e=!0,n.setAsyncValidators(o))}}}const i=()=>{};return rf(t._rawValidators,i),rf(t._rawAsyncValidators,i),e}function Rx(n,t){n._pendingDirty&&n.markAsDirty(),n.setValue(n._pendingValue,{emitModelToViewChange:!1}),t.viewToModelUpdate(n._pendingValue),n._pendingChange=!1}function Ox(n,t){xy(n,t)}function Iy(n,t){if(!n.hasOwnProperty("model"))return!1;const e=n.model;return!!e.isFirstChange()||!Object.is(t,e.currentValue)}function Lx(n,t){n._syncPendingControls(),t.forEach(e=>{const i=e.control;"submit"===i.updateOn&&i._pendingChange&&(e.viewToModelUpdate(i._pendingValue),i._pendingChange=!1)})}function My(n,t){if(!t)return null;let e,i,r;return Array.isArray(t),t.forEach(o=>{o.constructor===Ar?e=o:function cV(n){return Object.getPrototypeOf(n.constructor)===Ka}(o)?i=o:r=o}),r||i||e||null}const dV={provide:Zi,useExisting:Xt(()=>_c)},sd=(()=>Promise.resolve(null))();let _c=(()=>{class n extends Zi{constructor(e,i){super(),this.submitted=!1,this._directives=new Set,this.ngSubmit=new He,this.form=new Ty({},yy(e),by(i))}ngAfterViewInit(){this._setUpdateStrategy()}get formDirective(){return this}get control(){return this.form}get path(){return[]}get controls(){return this.form.controls}addControl(e){sd.then(()=>{const i=this._findContainer(e.path);e.control=i.registerControl(e.name,e.control),od(e.control,e),e.control.updateValueAndValidity({emitEvent:!1}),this._directives.add(e)})}getControl(e){return this.form.get(e.path)}removeControl(e){sd.then(()=>{const i=this._findContainer(e.path);i&&i.removeControl(e.name),this._directives.delete(e)})}addFormGroup(e){sd.then(()=>{const i=this._findContainer(e.path),r=new Ty({});Ox(r,e),i.registerControl(e.name,r),r.updateValueAndValidity({emitEvent:!1})})}removeFormGroup(e){sd.then(()=>{const i=this._findContainer(e.path);i&&i.removeControl(e.name)})}getFormGroup(e){return this.form.get(e.path)}updateModel(e,i){sd.then(()=>{this.form.get(e.path).setValue(i)})}setValue(e){this.control.setValue(e)}onSubmit(e){return this.submitted=!0,Lx(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)(p(hi,10),p(aa,10))},n.\u0275dir=fe({type:n,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(e,i){1&e&&W("submit",function(o){return i.onSubmit(o)})("reset",function(){return i.onReset()})},inputs:{options:["ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[it([dV]),Se]}),n})();function Nx(n,t){const e=n.indexOf(t);e>-1&&n.splice(e,1)}function Fx(n){return"object"==typeof n&&null!==n&&2===Object.keys(n).length&&"value"in n&&"disabled"in n}const Co=class extends kx{constructor(t=null,e,i){super(Sy(e),Ay(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}),ef(e)&&(e.nonNullable||e.initialValueIsDefault)&&(this.defaultValue=Fx(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){Nx(this._onChange,t)}registerOnDisabledChange(t){this._onDisabledChange.push(t)}_unregisterOnDisabledChange(t){Nx(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){Fx(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}},fV={provide:bo,useExisting:Xt(()=>wo)},Hx=(()=>Promise.resolve(null))();let wo=(()=>{class n extends bo{constructor(e,i,r,o,s){super(),this._changeDetectorRef=s,this.control=new Co,this._registered=!1,this.update=new He,this._parent=e,this._setValidators(i),this._setAsyncValidators(r),this.valueAccessor=My(0,o)}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),Iy(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(){od(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){Hx.then(()=>{this.control.setValue(e,{emitViewToModelChange:!1}),this._changeDetectorRef?.markForCheck()})}_updateDisabled(e){const i=e.isDisabled.currentValue,r=0!==i&&function bs(n){return"boolean"==typeof n?n:null!=n&&"false"!==n}(i);Hx.then(()=>{r&&!this.control.disabled?this.control.disable():!r&&this.control.disabled&&this.control.enable(),this._changeDetectorRef?.markForCheck()})}_getPath(e){return this._parent?function tf(n,t){return[...t.path,n]}(e,this._parent):[e]}}return n.\u0275fac=function(e){return new(e||n)(p(Zi,9),p(hi,10),p(aa,10),p(or,10),p(St,8))},n.\u0275dir=fe({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:[it([fV]),Se,Rn]}),n})(),Ux=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=ht({type:n}),n.\u0275inj=dt({}),n})();const ky=new me("NgModelWithFormControlWarning"),bV={provide:bo,useExisting:Xt(()=>af)};let af=(()=>{class n extends bo{constructor(e,i,r,o){super(),this._ngModelWarningConfig=o,this.update=new He,this._ngModelWarningSent=!1,this._setValidators(e),this._setAsyncValidators(i),this.valueAccessor=My(0,r)}set isDisabled(e){}ngOnChanges(e){if(this._isControlChanged(e)){const i=e.form.previousValue;i&&nf(i,this,!1),od(this.form,this),this.form.updateValueAndValidity({emitEvent:!1})}Iy(e,this.viewModel)&&(this.form.setValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.form&&nf(this.form,this,!1)}get path(){return[]}get control(){return this.form}viewToModelUpdate(e){this.viewModel=e,this.update.emit(e)}_isControlChanged(e){return e.hasOwnProperty("form")}}return n._ngModelWarningSentOnce=!1,n.\u0275fac=function(e){return new(e||n)(p(hi,10),p(aa,10),p(or,10),p(ky,8))},n.\u0275dir=fe({type:n,selectors:[["","formControl",""]],inputs:{form:["formControl","form"],isDisabled:["disabled","isDisabled"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},exportAs:["ngForm"],features:[it([bV]),Se,Rn]}),n})();const CV={provide:Zi,useExisting:Xt(()=>vc)};let vc=(()=>{class n extends Zi{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 He,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&&(sf(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 od(i,e),i.updateValueAndValidity({emitEvent:!1}),this.directives.push(e),i}getControl(e){return this.form.get(e.path)}removeControl(e){nf(e.control||null,e,!1),function uV(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,Lx(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&&(nf(i||null,e),(n=>n instanceof Co)(r)&&(od(r,e),e.control=r))}),this.form._updateTreeValidity({emitEvent:!1})}_setUpFormContainer(e){const i=this.form.get(e.path);Ox(i,e),i.updateValueAndValidity({emitEvent:!1})}_cleanUpFormContainer(e){if(this.form){const i=this.form.get(e.path);i&&function aV(n,t){return sf(n,t)}(i,e)&&i.updateValueAndValidity({emitEvent:!1})}}_updateRegistrations(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm&&this._oldForm._registerOnCollectionChange(()=>{})}_updateValidators(){xy(this.form,this),this._oldForm&&sf(this._oldForm,this)}_checkFormPresent(){}}return n.\u0275fac=function(e){return new(e||n)(p(hi,10),p(aa,10))},n.\u0275dir=fe({type:n,selectors:[["","formGroup",""]],hostBindings:function(e,i){1&e&&W("submit",function(o){return i.onSubmit(o)})("reset",function(){return i.onReset()})},inputs:{form:["formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[it([CV]),Se,Rn]}),n})(),r2=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=ht({type:n}),n.\u0275inj=dt({imports:[Ux]}),n})(),jV=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=ht({type:n}),n.\u0275inj=dt({imports:[r2]}),n})(),HV=(()=>{class n{static withConfig(e){return{ngModule:n,providers:[{provide:ky,useValue:e.warnOnNgModelWithFormControl}]}}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=ht({type:n}),n.\u0275inj=dt({imports:[r2]}),n})();function Ne(...n){let t=n[n.length-1];return pe(t)?(n.pop(),ui(n,t)):yg(n)}function qo(n,t){return Vi(n,t,1)}function Tn(n,t){return function(i){return i.lift(new UV(n,t))}}class UV{constructor(t,e){this.predicate=t,this.thisArg=e}call(t,e){return e.subscribe(new qV(t,this.predicate,this.thisArg))}}class qV extends S{constructor(t,e,i){super(t),this.predicate=e,this.thisArg=i,this.count=0}_next(t){let e;try{e=this.predicate.call(this.thisArg,t,this.count++)}catch(i){return void this.destination.error(i)}e&&this.destination.next(t)}}class o2{}class s2{}class Es{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),o=r.toLowerCase(),s=e.slice(i+1).trim();this.maybeSetNormalizedName(r,o),this.headers.has(o)?this.headers.get(o).push(s):this.headers.set(o,[s])}})}:()=>{this.headers=new Map,Object.keys(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 Es?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 Es;return e.lazyInit=this.lazyInit&&this.lazyInit instanceof Es?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 o=t.value;if(o){let s=this.headers.get(e);if(!s)return;s=s.filter(a=>-1===o.indexOf(a)),0===s.length?(this.headers.delete(e),this.normalizedNames.delete(e)):this.headers.set(e,s)}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 zV{encodeKey(t){return a2(t)}encodeValue(t){return a2(t)}decodeKey(t){return decodeURIComponent(t)}decodeValue(t){return decodeURIComponent(t)}}const WV=/%(\d[a-f0-9])/gi,$V={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function a2(n){return encodeURIComponent(n).replace(WV,(t,e)=>$V[e]??t)}function cf(n){return`${n}`}class $t{constructor(t={}){if(this.updates=null,this.cloneFrom=null,this.encoder=t.encoder||new zV,t.fromString){if(t.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=function GV(n,t){const e=new Map;return n.length>0&&n.replace(/^\?/,"").split("&").forEach(r=>{const o=r.indexOf("="),[s,a]=-1==o?[t.decodeKey(r),""]:[t.decodeKey(r.slice(0,o)),t.decodeValue(r.slice(o+1))],l=e.get(s)||[];l.push(a),e.set(s,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(cf):[cf(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(o=>{e.push({param:i,value:o,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 $t({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(cf(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(cf(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 KV{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 l2(n){return typeof ArrayBuffer<"u"&&n instanceof ArrayBuffer}function c2(n){return typeof Blob<"u"&&n instanceof Blob}function u2(n){return typeof FormData<"u"&&n instanceof FormData}class ad{constructor(t,e,i,r){let o;if(this.url=e,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=t.toUpperCase(),function YV(n){switch(n){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||r?(this.body=void 0!==i?i:null,o=r):o=i,o&&(this.reportProgress=!!o.reportProgress,this.withCredentials=!!o.withCredentials,o.responseType&&(this.responseType=o.responseType),o.headers&&(this.headers=o.headers),o.context&&(this.context=o.context),o.params&&(this.params=o.params)),this.headers||(this.headers=new Es),this.context||(this.context=new KV),this.params){const s=this.params.toString();if(0===s.length)this.urlWithParams=e;else{const a=e.indexOf("?");this.urlWithParams=e+(-1===a?"?":ad.set(h,t.setHeaders[h]),l)),t.setParams&&(c=Object.keys(t.setParams).reduce((d,h)=>d.set(h,t.setParams[h]),c)),new ad(e,i,o,{params:c,headers:l,context:u,reportProgress:a,responseType:r,withCredentials:s})}}var ei=(()=>((ei=ei||{})[ei.Sent=0]="Sent",ei[ei.UploadProgress=1]="UploadProgress",ei[ei.ResponseHeader=2]="ResponseHeader",ei[ei.DownloadProgress=3]="DownloadProgress",ei[ei.Response=4]="Response",ei[ei.User=5]="User",ei))();class Fy{constructor(t,e=200,i="OK"){this.headers=t.headers||new Es,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 By extends Fy{constructor(t={}){super(t),this.type=ei.ResponseHeader}clone(t={}){return new By({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 uf extends Fy{constructor(t={}){super(t),this.type=ei.Response,this.body=void 0!==t.body?t.body:null}clone(t={}){return new uf({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 d2 extends Fy{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 jy(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 yc=(()=>{class n{constructor(e){this.handler=e}request(e,i,r={}){let o;if(e instanceof ad)o=e;else{let l,c;l=r.headers instanceof Es?r.headers:new Es(r.headers),r.params&&(c=r.params instanceof $t?r.params:new $t({fromObject:r.params})),o=new ad(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 s=Ne(o).pipe(qo(l=>this.handler.handle(l)));if(e instanceof ad||"events"===r.observe)return s;const a=s.pipe(Tn(l=>l instanceof uf));switch(r.observe||"body"){case"body":switch(o.responseType){case"arraybuffer":return a.pipe(he(l=>{if(null!==l.body&&!(l.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return l.body}));case"blob":return a.pipe(he(l=>{if(null!==l.body&&!(l.body instanceof Blob))throw new Error("Response is not a Blob.");return l.body}));case"text":return a.pipe(he(l=>{if(null!==l.body&&"string"!=typeof l.body)throw new Error("Response is not a string.");return l.body}));default:return a.pipe(he(l=>l.body))}case"response":return a;default:throw new Error(`Unreachable: unhandled observe type ${r.observe}}`)}}delete(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 $t).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,jy(r,i))}post(e,i,r={}){return this.request("POST",e,jy(r,i))}put(e,i,r={}){return this.request("PUT",e,jy(r,i))}}return n.\u0275fac=function(e){return new(e||n)(M(o2))},n.\u0275prov=ge({token:n,factory:n.\u0275fac}),n})();class h2{constructor(t,e){this.next=t,this.interceptor=e}handle(t){return this.interceptor.intercept(t,this.next)}}const Hy=new me("HTTP_INTERCEPTORS");let JV=(()=>{class n{intercept(e,i){return i.handle(e)}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=ge({token:n,factory:n.\u0275fac}),n})();const ZV=/^\)\]\}',?\n/;let p2=(()=>{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 b(i=>{const r=this.xhrFactory.build();if(r.open(e.method,e.urlWithParams),e.withCredentials&&(r.withCredentials=!0),e.headers.forEach((m,y)=>r.setRequestHeader(m,y.join(","))),e.headers.has("Accept")||r.setRequestHeader("Accept","application/json, text/plain, */*"),!e.headers.has("Content-Type")){const m=e.detectContentTypeHeader();null!==m&&r.setRequestHeader("Content-Type",m)}if(e.responseType){const m=e.responseType.toLowerCase();r.responseType="json"!==m?m:"text"}const o=e.serializeBody();let s=null;const a=()=>{if(null!==s)return s;const m=r.statusText||"OK",y=new Es(r.getAllResponseHeaders()),A=function XV(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 s=new By({headers:y,status:r.status,statusText:m,url:A}),s},l=()=>{let{headers:m,status:y,statusText:A,url:U}=a(),te=null;204!==y&&(te=typeof r.response>"u"?r.responseText:r.response),0===y&&(y=te?200:0);let Ee=y>=200&&y<300;if("json"===e.responseType&&"string"==typeof te){const ne=te;te=te.replace(ZV,"");try{te=""!==te?JSON.parse(te):null}catch(Me){te=ne,Ee&&(Ee=!1,te={error:Me,text:te})}}Ee?(i.next(new uf({body:te,headers:m,status:y,statusText:A,url:U||void 0})),i.complete()):i.error(new d2({error:te,headers:m,status:y,statusText:A,url:U||void 0}))},c=m=>{const{url:y}=a(),A=new d2({error:m,status:r.status||0,statusText:r.statusText||"Unknown Error",url:y||void 0});i.error(A)};let u=!1;const d=m=>{u||(i.next(a()),u=!0);let y={type:ei.DownloadProgress,loaded:m.loaded};m.lengthComputable&&(y.total=m.total),"text"===e.responseType&&!!r.responseText&&(y.partialText=r.responseText),i.next(y)},h=m=>{let y={type:ei.UploadProgress,loaded:m.loaded};m.lengthComputable&&(y.total=m.total),i.next(y)};return r.addEventListener("load",l),r.addEventListener("error",c),r.addEventListener("timeout",c),r.addEventListener("abort",c),e.reportProgress&&(r.addEventListener("progress",d),null!==o&&r.upload&&r.upload.addEventListener("progress",h)),r.send(o),i.next({type:ei.Sent}),()=>{r.removeEventListener("error",c),r.removeEventListener("abort",c),r.removeEventListener("load",l),r.removeEventListener("timeout",c),e.reportProgress&&(r.removeEventListener("progress",d),null!==o&&r.upload&&r.upload.removeEventListener("progress",h)),r.readyState!==r.DONE&&r.abort()}})}}return n.\u0275fac=function(e){return new(e||n)(M(OT))},n.\u0275prov=ge({token:n,factory:n.\u0275fac}),n})();const Vy=new me("XSRF_COOKIE_NAME"),Uy=new me("XSRF_HEADER_NAME");class f2{}let eU=(()=>{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=ET(e,this.cookieName),this.lastCookieString=e),this.lastToken}}return n.\u0275fac=function(e){return new(e||n)(M(ft),M(Tp),M(Vy))},n.\u0275prov=ge({token:n,factory:n.\u0275fac}),n})(),qy=(()=>{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 o=this.tokenService.getToken();return null!==o&&!e.headers.has(this.headerName)&&(e=e.clone({headers:e.headers.set(this.headerName,o)})),i.handle(e)}}return n.\u0275fac=function(e){return new(e||n)(M(f2),M(Uy))},n.\u0275prov=ge({token:n,factory:n.\u0275fac}),n})(),tU=(()=>{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(Hy,[]);this.chain=i.reduceRight((r,o)=>new h2(r,o),this.backend)}return this.chain.handle(e)}}return n.\u0275fac=function(e){return new(e||n)(M(s2),M(Vn))},n.\u0275prov=ge({token:n,factory:n.\u0275fac}),n})(),nU=(()=>{class n{static disable(){return{ngModule:n,providers:[{provide:qy,useClass:JV}]}}static withOptions(e={}){return{ngModule:n,providers:[e.cookieName?{provide:Vy,useValue:e.cookieName}:[],e.headerName?{provide:Uy,useValue:e.headerName}:[]]}}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=ht({type:n}),n.\u0275inj=dt({providers:[qy,{provide:Hy,useExisting:qy,multi:!0},{provide:f2,useClass:eU},{provide:Vy,useValue:"XSRF-TOKEN"},{provide:Uy,useValue:"X-XSRF-TOKEN"}]}),n})(),iU=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=ht({type:n}),n.\u0275inj=dt({providers:[yc,{provide:o2,useClass:tU},p2,{provide:s2,useExisting:p2}],imports:[nU.withOptions({cookieName:"XSRF-TOKEN",headerName:"X-XSRF-TOKEN"})]}),n})(),rU=(()=>{class n{constructor(){}intercept(e,i){if(e.params.has("noCache")){const r=e.clone({setHeaders:{"Cache-Control":"no-cache, no-store, must-revalidate"},params:e.params.delete("noCache")});return i.handle(r)}return i.handle(e)}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=ge({token:n,factory:n.\u0275fac}),n})();function m2(n,t,e,i,r,o,s){try{var a=n[o](s),l=a.value}catch(c){return void e(c)}a.done?t(l):Promise.resolve(l).then(i,r)}function Ae(n){return function(){var t=this,e=arguments;return new Promise(function(i,r){var o=n.apply(t,e);function s(l){m2(o,i,r,s,a,"next",l)}function a(l){m2(o,i,r,s,a,"throw",l)}s(void 0)})}}let Mi=(()=>{class n{constructor(){}getValue(e){return localStorage.getItem(e.toString())}setValue(e,i){localStorage.setItem(e.toString(),i)}removeValue(e){localStorage.removeItem(e.toString())}clear(){Object.keys(Zt).forEach(i=>{i.toString().includes("PERSISTENT")||localStorage.removeItem(i.toString())})}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=ge({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();var Zt=(()=>(function(n){n.USopenAfterCreate="USopenAfterCreate PERSISTENT",n.USlinkOptionActive="USlinkOptionActive PERSISTENT",n.primaryTarget="primaryTarget",n.selectedProjects="selectedProjects",n.selectedTags="selectedTags",n.officeDB="officeDB",n.sendInProcess="sendInProcess",n.contactDB="contactDB PERSISTENT",n.taskpaneActive="taskpaneActive",n.documentedItemId="documentedItemId PERSISTENT",n.asyncMessage="asyncMessage PERSISTENT",n.selectedEmail="selectedEmail",n.appointmentIsNew="appointmentIsNew",n.documentSelectorDB="documentSelectorDB"}(Zt||(Zt={})),Zt))();class vi{constructor(t,e){this.component=t,this.data=e}}function Ds(n){return!!n&&(n instanceof b||"function"==typeof n.lift&&"function"==typeof n.subscribe)}function bc(...n){return function oU(){return Eh(1)}()(Ne(...n))}const Ss=new b(n=>n.complete());function df(n){return n?function sU(n){return new b(t=>n.schedule(()=>t.complete()))}(n):Ss}function la(n){return new b(t=>{let e;try{e=n()}catch(r){return void t.error(r)}return(e?vt(e):df()).subscribe(t)})}const g2=(()=>{function n(){return Error.call(this),this.message="argument out of range",this.name="ArgumentOutOfRangeError",this}return n.prototype=Object.create(Error.prototype),n})();function sn(n){return t=>0===n?df():t.lift(new aU(n))}class aU{constructor(t){if(this.total=t,this.total<0)throw new g2}call(t,e){return e.subscribe(new lU(t,this.total))}}class lU extends S{constructor(t,e){super(t),this.total=e,this.count=0}_next(t){const e=this.total,i=++this.count;i<=e&&(this.destination.next(t),i===e&&(this.destination.complete(),this.unsubscribe()))}}class cU extends E{constructor(t,e){super()}schedule(t,e=0){return this}}class hf extends cU{constructor(t,e){super(t,e),this.scheduler=t,this.work=e,this.pending=!1}schedule(t,e=0){if(this.closed)return this;this.state=t;const i=this.id,r=this.scheduler;return null!=i&&(this.id=this.recycleAsyncId(r,i,e)),this.pending=!0,this.delay=e,this.id=this.id||this.requestAsyncId(r,this.id,e),this}requestAsyncId(t,e,i=0){return setInterval(t.flush.bind(t,this),i)}recycleAsyncId(t,e,i=0){if(null!==i&&this.delay===i&&!1===this.pending)return e;clearInterval(e)}execute(t,e){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;const i=this._execute(t,e);if(i)return i;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(t,e){let r,i=!1;try{this.work(t)}catch(o){i=!0,r=!!o&&o||new Error(o)}if(i)return this.unsubscribe(),r}_unsubscribe(){const t=this.id,e=this.scheduler,i=e.actions,r=i.indexOf(this);this.work=null,this.state=null,this.pending=!1,this.scheduler=null,-1!==r&&i.splice(r,1),null!=t&&(this.id=this.recycleAsyncId(e,t,null)),this.delay=null}}let _2=(()=>{class n{constructor(e,i=n.now){this.SchedulerAction=e,this.now=i}schedule(e,i=0,r){return new this.SchedulerAction(this,e).schedule(r,i)}}return n.now=()=>Date.now(),n})();class Eo extends _2{constructor(t,e=_2.now){super(t,()=>Eo.delegate&&Eo.delegate!==this?Eo.delegate.now():e()),this.actions=[],this.active=!1,this.scheduled=void 0}schedule(t,e=0,i){return Eo.delegate&&Eo.delegate!==this?Eo.delegate.schedule(t,e,i):super.schedule(t,e,i)}flush(t){const{actions:e}=this;if(this.active)return void e.push(t);let i;this.active=!0;do{if(i=t.execute(t.state,t.delay))break}while(t=e.shift());if(this.active=!1,i){for(;t=e.shift();)t.unsubscribe();throw i}}}const hU=new class dU extends Eo{}(class uU extends hf{constructor(t,e){super(t,e),this.scheduler=t,this.work=e}schedule(t,e=0){return e>0?super.schedule(t,e):(this.delay=e,this.state=t,this.scheduler.flush(this),this)}execute(t,e){return e>0||this.closed?super.execute(t,e):this._execute(t,e)}requestAsyncId(t,e,i=0){return null!==i&&i>0||null===i&&this.delay>0?super.requestAsyncId(t,e,i):t.flush(this)}});function Qa(n,t){return new b(t?e=>t.schedule(pU,0,{error:n,subscriber:e}):e=>e.error(n))}function pU({error:n,subscriber:t}){t.error(n)}class sr{constructor(t,e,i){this.kind=t,this.value=e,this.error=i,this.hasValue="N"===t}observe(t){switch(this.kind){case"N":return t.next&&t.next(this.value);case"E":return t.error&&t.error(this.error);case"C":return t.complete&&t.complete()}}do(t,e,i){switch(this.kind){case"N":return t&&t(this.value);case"E":return e&&e(this.error);case"C":return i&&i()}}accept(t,e,i){return t&&"function"==typeof t.next?this.observe(t):this.do(t,e,i)}toObservable(){switch(this.kind){case"N":return Ne(this.value);case"E":return Qa(this.error);case"C":return df()}throw new Error("unexpected notification kind value")}static createNext(t){return typeof t<"u"?new sr("N",t):sr.undefinedValueNotification}static createError(t){return new sr("E",void 0,t)}static createComplete(){return sr.completeNotification}}sr.completeNotification=new sr("C"),sr.undefinedValueNotification=new sr("N",void 0);class pf extends S{constructor(t,e,i=0){super(t),this.scheduler=e,this.delay=i}static dispatch(t){const{notification:e,destination:i}=t;e.observe(i),this.unsubscribe()}scheduleMessage(t){this.destination.add(this.scheduler.schedule(pf.dispatch,this.delay,new mU(t,this.destination)))}_next(t){this.scheduleMessage(sr.createNext(t))}_error(t){this.scheduleMessage(sr.createError(t)),this.unsubscribe()}_complete(){this.scheduleMessage(sr.createComplete()),this.unsubscribe()}}class mU{constructor(t,e){this.notification=t,this.destination=e}}class v2 extends N{constructor(t=Number.POSITIVE_INFINITY,e=Number.POSITIVE_INFINITY,i){super(),this.scheduler=i,this._events=[],this._infiniteTimeWindow=!1,this._bufferSize=t<1?1:t,this._windowTime=e<1?1:e,e===Number.POSITIVE_INFINITY?(this._infiniteTimeWindow=!0,this.next=this.nextInfiniteTimeWindow):this.next=this.nextTimeWindow}nextInfiniteTimeWindow(t){if(!this.isStopped){const e=this._events;e.push(t),e.length>this._bufferSize&&e.shift()}super.next(t)}nextTimeWindow(t){this.isStopped||(this._events.push(new gU(this._getNow(),t)),this._trimBufferThenGetEvents()),super.next(t)}_subscribe(t){const e=this._infiniteTimeWindow,i=e?this._events:this._trimBufferThenGetEvents(),r=this.scheduler,o=i.length;let s;if(this.closed)throw new oe;if(this.isStopped||this.hasError?s=E.EMPTY:(this.observers.push(t),s=new _e(this,t)),r&&t.add(t=new pf(t,r)),e)for(let a=0;ae&&(s=Math.max(s,o-e)),s>0&&r.splice(0,s),r}}class gU{constructor(t,e){this.time=t,this.value=e}}function y2(n,t,e){let i;return i=n&&"object"==typeof n?n:{bufferSize:n,windowTime:t,refCount:!1,scheduler:e},r=>r.lift(function _U({bufferSize:n=Number.POSITIVE_INFINITY,windowTime:t=Number.POSITIVE_INFINITY,refCount:e,scheduler:i}){let r,s,o=0,a=!1,l=!1;return function(u){let d;o++,!r||a?(a=!1,r=new v2(n,t,i),d=r.subscribe(this),s=u.subscribe({next(h){r.next(h)},error(h){a=!0,r.error(h)},complete(){l=!0,s=void 0,r.complete()}}),l&&(s=void 0)):d=r.subscribe(this),this.add(()=>{o--,d.unsubscribe(),d=void 0,s&&!l&&e&&0===o&&(s.unsubscribe(),s=void 0,r=void 0)})}}(i))}function Kn(n,t){return"function"==typeof t?e=>e.pipe(Kn((i,r)=>vt(n(i,r)).pipe(he((o,s)=>t(i,o,r,s))))):e=>e.lift(new vU(n))}class vU{constructor(t){this.project=t}call(t,e){return e.subscribe(new yU(t,this.project))}}class yU extends cu{constructor(t,e){super(t),this.project=e,this.index=0}_next(t){let e;const i=this.index++;try{e=this.project(t,i)}catch(r){return void this.destination.error(r)}this._innerSub(e)}_innerSub(t){const e=this.innerSubscription;e&&e.unsubscribe();const i=new ko(this),r=this.destination;r.add(i),this.innerSubscription=uu(t,i),this.innerSubscription!==i&&r.add(this.innerSubscription)}_complete(){const{innerSubscription:t}=this;(!t||t.closed)&&super._complete(),this.unsubscribe()}_unsubscribe(){this.innerSubscription=void 0}notifyComplete(){this.innerSubscription=void 0,this.isStopped&&super._complete()}notifyNext(t){this.destination.next(t)}}class ld{}let b2=(()=>{class n extends ld{getTranslation(e){return Ne({})}}return n.\u0275fac=function(){let t;return function(i){return(t||(t=Pt(n)))(i||n)}}(),n.\u0275prov=ge({token:n,factory:n.\u0275fac}),n})();class zy{}let C2=(()=>{class n{handle(e){return e.key}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=ge({token:n,factory:n.\u0275fac}),n})();function cd(n,t){if(n===t)return!0;if(null===n||null===t)return!1;if(n!=n&&t!=t)return!0;let r,o,s,e=typeof n;if(e==typeof t&&"object"==e){if(!Array.isArray(n)){if(Array.isArray(t))return!1;for(o in s=Object.create(null),n){if(!cd(n[o],t[o]))return!1;s[o]=!0}for(o in t)if(!(o in s)&&typeof t[o]<"u")return!1;return!0}if(!Array.isArray(t))return!1;if((r=n.length)==t.length){for(o=0;o{Gy(t[i])?i in n?e[i]=w2(n[i],t[i]):Object.assign(e,{[i]:t[i]}):Object.assign(e,{[i]:t[i]})}),e}class ff{}let E2=(()=>{class n extends ff{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(),!Tr(e)||!Tr(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,o)=>{let s=this.getValue(i,o);return Tr(s)?s:r}):e}}return n.\u0275fac=function(){let t;return function(i){return(t||(t=Pt(n)))(i||n)}}(),n.\u0275prov=ge({token:n,factory:n.\u0275fac}),n})();class mf{}let D2=(()=>{class n extends mf{compile(e,i){return e}compileTranslations(e,i){return e}}return n.\u0275fac=function(){let t;return function(i){return(t||(t=Pt(n)))(i||n)}}(),n.\u0275prov=ge({token:n,factory:n.\u0275fac}),n})();class S2{constructor(){this.currentLang=this.defaultLang,this.translations={},this.langs=[],this.onTranslationChange=new He,this.onLangChange=new He,this.onDefaultLangChange=new He}}const Wy=new me("USE_STORE"),$y=new me("USE_DEFAULT_LANG"),Ky=new me("DEFAULT_LANGUAGE"),Yy=new me("USE_EXTEND");let Ut=(()=>{class n{constructor(e,i,r,o,s,a=!0,l=!1,c=!1,u){this.store=e,this.currentLoader=i,this.compiler=r,this.parser=o,this.missingTranslationHandler=s,this.useDefaultLang=a,this.isolate=l,this.extend=c,this.pending=!1,this._onTranslationChange=new He,this._onLangChange=new He,this._onDefaultLangChange=new He,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(sn(1)).subscribe(r=>{this.changeDefaultLang(e)})):this.changeDefaultLang(e)}getDefaultLang(){return this.defaultLang}use(e){if(e===this.currentLang)return Ne(this.translations[e]);let i=this.retrieveTranslations(e);return typeof i<"u"?(this.currentLang||(this.currentLang=e),i.pipe(sn(1)).subscribe(r=>{this.changeLang(e)}),i):(this.changeLang(e),Ne(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(y2(1),sn(1));return this.loadingTranslations=i.pipe(he(r=>this.compiler.compileTranslations(r,e)),y2(1),sn(1)),this.loadingTranslations.subscribe({next:r=>{this.translations[e]=this.extend&&this.translations[e]?Object.assign(Object.assign({},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]?w2(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 o;if(i instanceof Array){let s={},a=!1;for(let l of i)s[l]=this.getParsedResult(e,l,r),Ds(s[l])&&(a=!0);return a?_y(i.map(c=>Ds(s[c])?s[c]:Ne(s[c]))).pipe(he(c=>{let u={};return c.forEach((d,h)=>{u[i[h]]=d}),u})):s}if(e&&(o=this.parser.interpolate(this.parser.getValue(e,i),r)),typeof o>"u"&&null!=this.defaultLang&&this.defaultLang!==this.currentLang&&this.useDefaultLang&&(o=this.parser.interpolate(this.parser.getValue(this.translations[this.defaultLang],i),r)),typeof o>"u"){let s={key:i,translateService:this};typeof r<"u"&&(s.interpolateParams=r),o=this.missingTranslationHandler.handle(s)}return typeof o<"u"?o:i}get(e,i){if(!Tr(e)||!e.length)throw new Error('Parameter "key" required');if(this.pending)return this.loadingTranslations.pipe(qo(r=>Ds(r=this.getParsedResult(r,e,i))?r:Ne(r)));{let r=this.getParsedResult(this.translations[this.currentLang],e,i);return Ds(r)?r:Ne(r)}}getStreamOnTranslationChange(e,i){if(!Tr(e)||!e.length)throw new Error('Parameter "key" required');return bc(la(()=>this.get(e,i)),this.onTranslationChange.pipe(Kn(r=>{const o=this.getParsedResult(r.translations,e,i);return"function"==typeof o.subscribe?o:Ne(o)})))}stream(e,i){if(!Tr(e)||!e.length)throw new Error('Parameter "key" required');return bc(la(()=>this.get(e,i)),this.onLangChange.pipe(Kn(r=>{const o=this.getParsedResult(r.translations,e,i);return Ds(o)?o:Ne(o)})))}instant(e,i){if(!Tr(e)||!e.length)throw new Error('Parameter "key" required');let r=this.getParsedResult(this.translations[this.currentLang],e,i);if(Ds(r)){if(e instanceof Array){let o={};return e.forEach((s,a)=>{o[e[a]]=e[a]}),o}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)(M(S2),M(ld),M(mf),M(ff),M(zy),M($y),M(Wy),M(Yy),M(Ky))},n.\u0275prov=ge({token:n,factory:n.\u0275fac}),n})(),ki=(()=>{class n{constructor(e,i){this.translate=e,this._ref=i,this.value=""}updateValue(e,i,r){let o=s=>{this.value=void 0!==s?s:e,this.lastKey=e,this._ref.markForCheck()};if(r){let s=this.translate.getParsedResult(r,e,i);Ds(s.subscribe)?s.subscribe(o):o(s)}this.translate.get(e,i).subscribe(o)}transform(e,...i){if(!e||!e.length)return e;if(cd(e,this.lastKey)&&cd(i,this.lastParams))return this.value;let r;if(Tr(i[0])&&i.length)if("string"==typeof i[0]&&i[0].length){let o=i[0].replace(/(\')?([a-zA-Z0-9_]+)(\')?(\s)?:/g,'"$2":').replace(/:(\s)?(\')(.*?)(\')/g,':"$3"');try{r=JSON.parse(o)}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(o=>{this.lastKey&&o.lang===this.translate.currentLang&&(this.lastKey=null,this.updateValue(e,r,o.translations))})),this.onLangChange||(this.onLangChange=this.translate.onLangChange.subscribe(o=>{this.lastKey&&(this.lastKey=null,this.updateValue(e,r,o.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)(p(Ut,16),p(St,16))},n.\u0275pipe=Ui({name:"translate",type:n,pure:!1}),n.\u0275prov=ge({token:n,factory:n.\u0275fac}),n})(),bU=(()=>{class n{static forRoot(e={}){return{ngModule:n,providers:[e.loader||{provide:ld,useClass:b2},e.compiler||{provide:mf,useClass:D2},e.parser||{provide:ff,useClass:E2},e.missingTranslationHandler||{provide:zy,useClass:C2},S2,{provide:Wy,useValue:e.isolate},{provide:$y,useValue:e.useDefaultLang},{provide:Yy,useValue:e.extend},{provide:Ky,useValue:e.defaultLanguage},Ut]}}static forChild(e={}){return{ngModule:n,providers:[e.loader||{provide:ld,useClass:b2},e.compiler||{provide:mf,useClass:D2},e.parser||{provide:ff,useClass:E2},e.missingTranslationHandler||{provide:zy,useClass:C2},{provide:Wy,useValue:e.isolate},{provide:$y,useValue:e.useDefaultLang},{provide:Yy,useValue:e.extend},{provide:Ky,useValue:e.defaultLanguage},Ut]}}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=ht({type:n}),n.\u0275inj=dt({}),n})(),Yr=(()=>{class n{constructor(e){this.translate=e,this.messageEvent=new He,this.nextModal=null,this.previousModal=null,e.setDefaultLang("all"),e.use("all")}ngOnInit(){this.next=this.data.nextType}ngAfterViewInit(){this.messageEvent.emit(this.modalTemp),this.modalHeader=this.data.modalHeader,this.modalFooter=this.data.modalFooter}getTemplate(){return this.modalTemp}extractDBFromPointer(e){return e.substring(e.lastIndexOf("|")+1)}confirmAction(){}cancelAction(){this.data.closeAllModal()}closeAll(){this.data.closeAllModal()}get next(){return this.nextModal}set next(e){this.nextModal=e}get previous(){return this.previousModal}set previous(e){this.previousModal=e}set title(e){this.modalTitle=e}openAnotherModal(e,i){return null!=e?this.modalMain.loadComponent(e,i):null}}return n.\u0275fac=function(e){return new(e||n)(p(Ut))},n.\u0275dir=fe({type:n,inputs:{data:"data",modalMain:"modalMain"},outputs:{messageEvent:"messageEvent"}}),n})();const CU=["address","path","index","lc","localLC","modalDesign","init","webInt","webIntModal","login","mailAddr","addressChange","graphRequired","graphLoaded","attachmentsLoaded","deleteAttachments","documentIconReady","connector","platform","destinationChanged","documentDestinationCheckChanged","itemRecognized","updateBM4OData","activeWindowChanged"];let Qy,Ri=(()=>{class n{constructor(){this.waitListRecord={},this.waitListWithFunction={},CU.forEach(e=>{this.waitListRecord[e]=[],this.waitListWithFunction[e]=[]})}addToWaitList(e,i){this.waitListRecord[e].push(i)}addToWaitListFunc(e,i,r){this.waitListWithFunction[e].push({subscriber:i,function:r})}accessWaitList(e){return this.waitListRecord[e]}clearWaitList(e){this.waitListRecord[e].length=0}resolveFuncWaitList(e){for(const i of this.waitListWithFunction[e])i.function(i.subscriber);this.waitListWithFunction[e].length=0}notifyWaitList(e,i,r){for(const o of this.accessWaitList(e))o.next(i),r&&o.complete()}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=ge({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),ot=(()=>{class n{constructor(e){this.waitListService=e,this.loggedIn=!1,this.showSelectedDocuments=!1,this.configJson={projectSelection:!0},this.indexParamStart="index.xsp?",this.urlExtension=this.indexParamStart+"loadTabs=false",this.curSystem="gi";const i=window.localStorage.getItem("webInt");null!==i&&""!==i&&(this.curSystem="start"),this.currentWebInt="",null!=window.localStorage.getItem("webInt")&&(this.currentWebInt=window.localStorage.getItem("webInt"),this.currentWebInt=encodeURI(this.currentWebInt),this.setSystemFromURL(this.currentWebInt)),this.mailAddr="",this.mailUnid="",this.subject="",this.resetMailAddr="",this.cc=[],this.to=[],this.from={},this.mailAddrCount=0,this.currentWebInt&&(this.webIntUrl=new URL(this.currentWebInt)),this.lcs={},this.lcsLocal={},this.selectedContacts=null,this.modalSessionCache=!1,this.rippleColorRGBA="rgba(154, 169, 255, 0.1)",this.createAddressOpen=!1,this.ownMail="",this.showMailBody=!0,this.connectorType=null,this.allowActions=!1,this.allowCreate=!1,this.attachmentsLoaded=!0,this.hideBackground=!1,this.useClient=!1,this.redirect=!1,this.redirect=!!new URLSearchParams(window.location.search).has("redirect"),this.optionsObj={method:"GET",mode:"cors",cache:"no-cache",credentials:"include",headers:{"Content-Type":"application/x-www-form-urlencoded"},redirect:"follow",referrerPolicy:"no-referrer"}}get activeWindow(){return this._activeWindow}set activeWindow(e){let i=this._activeWindow;this._activeWindow=e;let r=new wU;r.currentWindow=i,r.newWindow=e,this.activeWindowChanged(r)}setSystemFromURL(e){return e.includes(".nsf")?(this.system="gi","gi"):(this.system="ba","ba")}get isRedirectPage(){return this.redirect}set hideForLogin(e){this.hideBackground=e}get hideForLogin(){return this.hideBackground}set isClient(e){this.useClient=e}get isClient(){return this.useClient}set attachmentsReady(e){this.attachmentsLoaded=e,this.waitListService.notifyWaitList("attachmentsLoaded",e,!0)}get attachmentsReady(){return this.attachmentsLoaded}set system(e){this.curSystem=e}get system(){return this.curSystem}set loginOpen(e){this.loginWindowOpen=e}get loginOpen(){return this.loginWindowOpen}set curOWAMessageID(e){this.messageID=e}get curOWAMessageID(){return this.messageID}set actionsAllowed(e){this.allowActions=e}get actionsAllowed(){return this.allowActions}set createAllowed(e){this.allowCreate=e}get createAllowed(){return this.allowCreate}set openMail(e){this.openEMail=e}get openMail(){return this.openEMail}set deleteAttachments(e){this.waitListService.notifyWaitList("deleteAttachments",e),this.deleteAttach=e}get deleteAttachments(){return this.deleteAttach}set curConnectorType(e){this.connectorType=e}get curConnectorType(){return this.connectorType}set curConnector(e){this.connector=e,this.waitListService.notifyWaitList("connector",!0)}get curConnector(){return this.connector}get isCreateBlockOpen(){return this.createAddressOpen}get rippleColor(){return this.rippleColorRGBA}set webInt(e){this.currentWebInt=e,this.webIntUrl=new URL(this.currentWebInt),null!=this.currentWebInt&&""!==this.currentWebInt&&this.notifyWaitList()}get webInt(){return this.currentWebInt}set displayMailBody(e){this.showMailBody=e}get displayMailBody(){return this.showMailBody}set curMailAddr(e){""===this.resetMailAddr&&(this.resetMailAddr=e),this.mailAddr=e,this.waitListService.resolveFuncWaitList("mailAddr")}get curMailAddr(){return this.mailAddr}get startMailAddr(){return this.resetMailAddr}set curSubject(e){this.subject=e}get curSubject(){return this.subject}set curCC(e){this.cc=e}get curCC(){return this.cc}set curTo(e){this.to=e}get curTo(){return this.to}set curFrom(e){this.from=e}get curFrom(){return this.from}set curMailAddrCount(e){this.mailAddrCount=e}get curMailAddrCount(){return this.mailAddrCount}set curMailUnid(e){this.mailUnid=e}get curMailUnid(){return this.mailUnid}get origin(){return this.webIntUrl.origin}get options(){return this.optionsObj}get languageConf(){return this.lcs}set languageConf(e){this.lcs=e}set ownMailAddr(e){this.ownMail=e}set languageConfLocal(e){this.lcsLocal=e}get languageConfLocal(){return this.lcsLocal}get currentContactsDB(){return this.selectedContacts}set currentContactsDB(e){this.selectedContacts=e}get modalCacheFlag(){return this.modalSessionCache}set modalCacheFlag(e){this.modalSessionCache=e}languageEntry(e){return this.lcs[e]}changeGlobalOptions(e){return this.changeOptionsObj(e,this.optionsObj)}changeOwnOptions(e){const i={};return Object.assign(i,this.optionsObj),this.changeOptionsObj(e,i)}objectWithParams(e){let i={};return i=Object.assign(i,this.options),i.params=e,i}clearTemps(){this.clearModalTemps()}clearModalTemps(){this.currentContactsDB=null}createAddressToggle(){this.createAddressOpen=!this.createAddressOpen}waitForWebInt(e){this.waitListService.addToWaitList("webInt",e)}notifyWaitList(){this.waitListService.notifyWaitList("webInt",this.webInt,!0),this.waitListService.clearWaitList("webInt")}changeOptionsObj(e,i){return new Map(Object.entries(e)).forEach((o,s)=>{i[s]=o}),i}showSpinner(){document.getElementById("loadingSpinner").style.display="block"}hideSpinner(){document.getElementById("loadingSpinner").style.display="none"}numericBackendVersion(){if("ba"===this.curSystem){if(!this.backendVersion)return 8e4;let e=this.backendVersion.split("."),i="";return e.forEach(r=>{i+=r.padStart(2,"0")}),Number.parseInt(i,10)}return 8}onActiveWindowChange(){return new b(e=>{this.waitListService.addToWaitList("activeWindowChanged",e)})}activeWindowChanged(e){for(const i of this.waitListService.accessWaitList("activeWindowChanged"))i.next(e)}convertToLink(e){return this.webInt+this.urlExtension+"&openDocument="+e}set graphRequired(e){this.graphReq=e,this.waitListService.notifyWaitList("graphRequired",e,!0)}get graphRequired(){return this.graphReq}set graphLoaded(e){this.graphLoad=e;for(const i of this.waitListService.accessWaitList("graphLoaded"))i.next(e),i.complete()}get graphLoaded(){return this.graphLoad}}return n.\u0275fac=function(e){return new(e||n)(M(Ri))},n.\u0275prov=ge({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();class wU{}try{Qy=typeof Intl<"u"&&Intl.v8BreakIterator}catch{Qy=!1}let Cc,Nn=(()=>{class n{constructor(e){this._platformId=e,this.isBrowser=this._platformId?function aH(n){return n===kT}(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&&!Qy)&&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)(M(Tp))},n.\u0275prov=ge({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const A2=["color","button","checkbox","date","datetime-local","email","file","hidden","image","month","number","password","radio","range","reset","search","submit","tel","text","time","url","week"];function T2(){if(Cc)return Cc;if("object"!=typeof document||!document)return Cc=new Set(A2),Cc;let n=document.createElement("input");return Cc=new Set(A2.filter(t=>(n.setAttribute("type",t),n.type===t))),Cc}let ud,Ja,Jy;function As(n){return function EU(){if(null==ud&&typeof window<"u")try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:()=>ud=!0}))}finally{ud=ud||!1}return ud}()?n:!!n.capture}function DU(){if(null==Ja){if("object"!=typeof document||!document||"function"!=typeof Element||!Element)return Ja=!1,Ja;if("scrollBehavior"in document.documentElement.style)Ja=!0;else{const n=Element.prototype.scrollTo;Ja=!!n&&!/\{\s*\[native code\]\s*\}/.test(n.toString())}}return Ja}function _f(n){if(function SU(){if(null==Jy){const n=typeof document<"u"?document.head:null;Jy=!(!n||!n.createShadowRoot&&!n.attachShadow)}return Jy}()){const t=n.getRootNode?n.getRootNode():null;if(typeof ShadowRoot<"u"&&ShadowRoot&&t instanceof ShadowRoot)return t}return null}function Zy(){let n=typeof document<"u"&&document?document.activeElement:null;for(;n&&n.shadowRoot;){const t=n.shadowRoot.activeElement;if(t===n)break;n=t}return n}function Qr(n){return n.composedPath?n.composedPath()[0]:n.target}function Xy(){return typeof __karma__<"u"&&!!__karma__||typeof jasmine<"u"&&!!jasmine||typeof jest<"u"&&!!jest||typeof Mocha<"u"&&!!Mocha}class ar extends N{constructor(t){super(),this._value=t}get value(){return this.getValue()}_subscribe(t){const e=super._subscribe(t);return e&&!e.closed&&t.next(this._value),e}getValue(){if(this.hasError)throw this.thrownError;if(this.closed)throw new oe;return this._value}next(t){super.next(this._value=t)}}function yi(n,...t){return t.length?t.some(e=>n[e]):n.altKey||n.shiftKey||n.ctrlKey||n.metaKey}function ua(){}function Yn(n,t,e){return function(r){return r.lift(new FU(n,t,e))}}class FU{constructor(t,e,i){this.nextOrObserver=t,this.error=e,this.complete=i}call(t,e){return e.subscribe(new BU(t,this.nextOrObserver,this.error,this.complete))}}class BU extends S{constructor(t,e,i,r){super(t),this._tapNext=ua,this._tapError=ua,this._tapComplete=ua,this._tapError=i||ua,this._tapComplete=r||ua,le(e)?(this._context=this,this._tapNext=e):e&&(this._context=e,this._tapNext=e.next||ua,this._tapError=e.error||ua,this._tapComplete=e.complete||ua)}_next(t){try{this._tapNext.call(this._context,t)}catch(e){return void this.destination.error(e)}this.destination.next(t)}_error(t){try{this._tapError.call(this._context,t)}catch(e){return void this.destination.error(e)}this.destination.error(t)}_complete(){try{this._tapComplete.call(this._context)}catch(t){return void this.destination.error(t)}return this.destination.complete()}}const Dc=new Eo(hf);function ib(n,t=Dc){return e=>e.lift(new jU(n,t))}class jU{constructor(t,e){this.dueTime=t,this.scheduler=e}call(t,e){return e.subscribe(new HU(t,this.dueTime,this.scheduler))}}class HU extends S{constructor(t,e,i){super(t),this.dueTime=e,this.scheduler=i,this.debouncedSubscription=null,this.lastValue=null,this.hasValue=!1}_next(t){this.clearDebounce(),this.lastValue=t,this.hasValue=!0,this.add(this.debouncedSubscription=this.scheduler.schedule(VU,this.dueTime,this))}_complete(){this.debouncedNext(),this.destination.complete()}debouncedNext(){if(this.clearDebounce(),this.hasValue){const{lastValue:t}=this;this.lastValue=null,this.hasValue=!1,this.destination.next(t)}}clearDebounce(){const t=this.debouncedSubscription;null!==t&&(this.remove(t),t.unsubscribe(),this.debouncedSubscription=null)}}function VU(n){n.debouncedNext()}function rb(n){return t=>t.lift(new UU(n))}class UU{constructor(t){this.total=t}call(t,e){return e.subscribe(new qU(t,this.total))}}class qU extends S{constructor(t,e){super(t),this.total=e,this.count=0}_next(t){++this.count>this.total&&this.destination.next(t)}}function bf(n,t){return e=>e.lift(new zU(n,t))}class zU{constructor(t,e){this.compare=t,this.keySelector=e}call(t,e){return e.subscribe(new GU(t,this.compare,this.keySelector))}}class GU extends S{constructor(t,e,i){super(t),this.keySelector=i,this.hasKey=!1,"function"==typeof e&&(this.compare=e)}compare(t,e){return t===e}_next(t){let e;try{const{keySelector:r}=this;e=r?r(t):t}catch(r){return this.destination.error(r)}let i=!1;if(this.hasKey)try{const{compare:r}=this;i=r(this.key,e)}catch(r){return this.destination.error(r)}else this.hasKey=!0;i||(this.key=e,this.destination.next(t))}}function Jt(n){return t=>t.lift(new WU(n))}class WU{constructor(t){this.notifier=t}call(t,e){const i=new $U(t),r=uu(this.notifier,new ko(i));return r&&!i.seenValue?(i.add(r),e.subscribe(i)):i}}class $U extends cu{constructor(t){super(t),this.seenValue=!1}notifyNext(){this.seenValue=!0,this.complete()}notifyComplete(){}}function lt(n){return null!=n&&"false"!=`${n}`}function xs(n,t=0){return function KU(n){return!isNaN(parseFloat(n))&&!isNaN(Number(n))}(n)?Number(n):t}function Cf(n){return Array.isArray(n)?n:[n]}function ti(n){return null==n?"":"string"==typeof n?n:`${n}px`}function Qn(n){return n instanceof Je?n.nativeElement:n}let x2=(()=>{class n{create(e){return typeof MutationObserver>"u"?null:new MutationObserver(e)}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=ge({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),QU=(()=>{class n{constructor(e){this._mutationObserverFactory=e,this._observedElements=new Map}ngOnDestroy(){this._observedElements.forEach((e,i)=>this._cleanupObserver(i))}observe(e){const i=Qn(e);return new b(r=>{const s=this._observeElement(i).subscribe(r);return()=>{s.unsubscribe(),this._unobserveElement(i)}})}_observeElement(e){if(this._observedElements.has(e))this._observedElements.get(e).count++;else{const i=new N,r=this._mutationObserverFactory.create(o=>i.next(o));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)(M(x2))},n.\u0275prov=ge({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),wf=(()=>{class n{constructor(e,i,r){this._contentObserver=e,this._elementRef=i,this._ngZone=r,this.event=new He,this._disabled=!1,this._currentSubscription=null}get disabled(){return this._disabled}set disabled(e){this._disabled=lt(e),this._disabled?this._unsubscribe():this._subscribe()}get debounce(){return this._debounce}set debounce(e){this._debounce=xs(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(ib(this.debounce)):e).subscribe(this.event)})}_unsubscribe(){this._currentSubscription?.unsubscribe()}}return n.\u0275fac=function(e){return new(e||n)(p(QU),p(Je),p(et))},n.\u0275dir=fe({type:n,selectors:[["","cdkObserveContent",""]],inputs:{disabled:["cdkObserveContentDisabled","disabled"],debounce:"debounce"},outputs:{event:"cdkObserveContent"},exportAs:["cdkObserveContent"]}),n})(),dd=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=ht({type:n}),n.\u0275inj=dt({providers:[x2]}),n})();class JU extends S{notifyNext(t,e,i,r,o){this.destination.next(e)}notifyError(t,e){this.destination.error(t)}notifyComplete(t){this.destination.complete()}}class ZU extends S{constructor(t,e,i){super(),this.parent=t,this.outerValue=e,this.outerIndex=i,this.index=0}_next(t){this.parent.notifyNext(this.outerValue,t,this.outerIndex,this.index++,this)}_error(t){this.parent.notifyError(t,this),this.unsubscribe()}_complete(){this.parent.notifyComplete(this),this.unsubscribe()}}function XU(n,t,e,i,r=new ZU(n,e,i)){if(!r.closed)return t instanceof b?t.subscribe(r):Ge(t)(r)}const I2={};function ob(...n){let t,e;return pe(n[n.length-1])&&(e=n.pop()),"function"==typeof n[n.length-1]&&(t=n.pop()),1===n.length&&F(n[0])&&(n=n[0]),yg(n,e).lift(new e8(t))}class e8{constructor(t){this.resultSelector=t}call(t,e){return e.subscribe(new t8(t,this.resultSelector))}}class t8 extends JU{constructor(t,e){super(t),this.resultSelector=e,this.active=0,this.values=[],this.observables=[]}_next(t){this.values.push(I2),this.observables.push(t)}_complete(){const t=this.observables,e=t.length;if(0===e)this.destination.complete();else{this.active=e,this.toRespond=e;for(let i=0;ibc(n,e,t)):e=>bc(n,e)}const M2=new Set;let Sc,n8=(()=>{class n{constructor(e){this._platform=e,this._matchMedia=this._platform.isBrowser&&window.matchMedia?window.matchMedia.bind(window):r8}matchMedia(e){return(this._platform.WEBKIT||this._platform.BLINK)&&function i8(n){if(!M2.has(n))try{Sc||(Sc=document.createElement("style"),Sc.setAttribute("type","text/css"),document.head.appendChild(Sc)),Sc.sheet&&(Sc.sheet.insertRule(`@media ${n} {body{ }}`,0),M2.add(n))}catch(t){console.error(t)}}(e),this._matchMedia(e)}}return n.\u0275fac=function(e){return new(e||n)(M(Nn))},n.\u0275prov=ge({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();function r8(n){return{matches:"all"===n||""===n,media:n,addListener:()=>{},removeListener:()=>{}}}let sb=(()=>{class n{constructor(e,i){this._mediaMatcher=e,this._zone=i,this._queries=new Map,this._destroySubject=new N}ngOnDestroy(){this._destroySubject.next(),this._destroySubject.complete()}isMatched(e){return k2(Cf(e)).some(r=>this._registerQuery(r).mql.matches)}observe(e){let o=ob(k2(Cf(e)).map(s=>this._registerQuery(s).observable));return o=bc(o.pipe(sn(1)),o.pipe(rb(1),ib(0))),o.pipe(he(s=>{const a={matches:!1,breakpoints:{}};return s.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),o={observable:new b(s=>{const a=l=>this._zone.run(()=>s.next(l));return i.addListener(a),()=>{i.removeListener(a)}}).pipe(ni(i),he(({matches:s})=>({query:e,matches:s})),Jt(this._destroySubject)),mql:i};return this._queries.set(e,o),o}}return n.\u0275fac=function(e){return new(e||n)(M(n8),M(et))},n.\u0275prov=ge({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();function k2(n){return n.map(t=>t.split(",")).reduce((t,e)=>t.concat(e)).map(t=>t.trim())}function Ef(n,t){return(n.getAttribute(t)||"").match(/\S+/g)||[]}const O2="cdk-describedby-message",Df="cdk-describedby-host";let ab=0,l8=(()=>{class n{constructor(e,i){this._platform=i,this._messageRegistry=new Map,this._messagesContainer=null,this._id=""+ab++,this._document=e,this._id=Oa(fc)+"-"+ab++}describe(e,i,r){if(!this._canBeDescribed(e,i))return;const o=lb(i,r);"string"!=typeof i?(P2(i,this._id),this._messageRegistry.set(o,{messageElement:i,referenceCount:0})):this._messageRegistry.has(o)||this._createMessageElement(i,r),this._isElementDescribedByMessage(e,o)||this._addMessageReference(e,o)}removeDescription(e,i,r){if(!i||!this._isElementNode(e))return;const o=lb(i,r);if(this._isElementDescribedByMessage(e,o)&&this._removeMessageReference(e,o),"string"==typeof i){const s=this._messageRegistry.get(o);s&&0===s.referenceCount&&this._deleteMessageElement(o)}0===this._messagesContainer?.childNodes.length&&(this._messagesContainer.remove(),this._messagesContainer=null)}ngOnDestroy(){const e=this._document.querySelectorAll(`[${Df}="${this._id}"]`);for(let i=0;i0!=r.indexOf(O2));e.setAttribute("aria-describedby",i.join(" "))}_addMessageReference(e,i){const r=this._messageRegistry.get(i);(function s8(n,t,e){const i=Ef(n,t);i.some(r=>r.trim()==e.trim())||(i.push(e.trim()),n.setAttribute(t,i.join(" ")))})(e,"aria-describedby",r.messageElement.id),e.setAttribute(Df,this._id),r.referenceCount++}_removeMessageReference(e,i){const r=this._messageRegistry.get(i);r.referenceCount--,function a8(n,t,e){const r=Ef(n,t).filter(o=>o!=e.trim());r.length?n.setAttribute(t,r.join(" ")):n.removeAttribute(t)}(e,"aria-describedby",r.messageElement.id),e.removeAttribute(Df)}_isElementDescribedByMessage(e,i){const r=Ef(e,"aria-describedby"),o=this._messageRegistry.get(i),s=o&&o.messageElement.id;return!!s&&-1!=r.indexOf(s)}_canBeDescribed(e,i){if(!this._isElementNode(e))return!1;if(i&&"object"==typeof i)return!0;const r=null==i?"":`${i}`.trim(),o=e.getAttribute("aria-label");return!(!r||o&&o.trim()===r)}_isElementNode(e){return e.nodeType===this._document.ELEMENT_NODE}}return n.\u0275fac=function(e){return new(e||n)(M(ft),M(Nn))},n.\u0275prov=ge({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();function lb(n,t){return"string"==typeof n?`${t||""}/${n}`:n}function P2(n,t){n.id||(n.id=`${O2}-${t}-${ab++}`)}class L2{constructor(t){this._items=t,this._activeItemIndex=-1,this._activeItem=null,this._wrap=!1,this._letterKeyStream=new N,this._typeaheadSubscription=E.EMPTY,this._vertical=!0,this._allowedModifierKeys=[],this._homeAndEnd=!1,this._skipPredicateFn=e=>e.disabled,this._pressedLetters=[],this.tabOut=new N,this.change=new N,t instanceof qa&&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(Yn(e=>this._pressedLetters.push(e)),ib(t),Tn(()=>this._pressedLetters.length>0),he(()=>this._pressedLetters.join(""))).subscribe(e=>{const i=this._getItemsArray();for(let r=1;r!t[o]||this._allowedModifierKeys.indexOf(o)>-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||yi(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 qa?this._items.toArray():this._items}}class N2 extends L2{setActiveItem(t){this.activeItem&&this.activeItem.setInactiveStyles(),super.setActiveItem(t),this.activeItem&&this.activeItem.setActiveStyles()}}class Sf extends L2{constructor(){super(...arguments),this._origin="program"}setFocusOrigin(t){return this._origin=t,this}setActiveItem(t){super.setActiveItem(t),this.activeItem&&this.activeItem.focus(this._origin)}}let Af=(()=>{class n{constructor(e){this._platform=e}isDisabled(e){return e.hasAttribute("disabled")}isVisible(e){return function u8(n){return!!(n.offsetWidth||n.offsetHeight||"function"==typeof n.getClientRects&&n.getClientRects().length)}(e)&&"visible"===getComputedStyle(e).visibility}isTabbable(e){if(!this._platform.isBrowser)return!1;const i=function c8(n){try{return n.frameElement}catch{return null}}(function v8(n){return n.ownerDocument&&n.ownerDocument.defaultView||window}(e));if(i&&(-1===B2(i)||!this.isVisible(i)))return!1;let r=e.nodeName.toLowerCase(),o=B2(e);return e.hasAttribute("contenteditable")?-1!==o:!("iframe"===r||"object"===r||this._platform.WEBKIT&&this._platform.IOS&&!function g8(n){let t=n.nodeName.toLowerCase(),e="input"===t&&n.type;return"text"===e||"password"===e||"select"===t||"textarea"===t}(e))&&("audio"===r?!!e.hasAttribute("controls")&&-1!==o:"video"===r?-1!==o&&(null!==o||this._platform.FIREFOX||e.hasAttribute("controls")):e.tabIndex>=0)}isFocusable(e,i){return function _8(n){return!function h8(n){return function f8(n){return"input"==n.nodeName.toLowerCase()}(n)&&"hidden"==n.type}(n)&&(function d8(n){let t=n.nodeName.toLowerCase();return"input"===t||"select"===t||"button"===t||"textarea"===t}(n)||function p8(n){return function m8(n){return"a"==n.nodeName.toLowerCase()}(n)&&n.hasAttribute("href")}(n)||n.hasAttribute("contenteditable")||F2(n))}(e)&&!this.isDisabled(e)&&(i?.ignoreVisibility||this.isVisible(e))}}return n.\u0275fac=function(e){return new(e||n)(M(Nn))},n.\u0275prov=ge({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();function F2(n){if(!n.hasAttribute("tabindex")||void 0===n.tabIndex)return!1;let t=n.getAttribute("tabindex");return!(!t||isNaN(parseInt(t,10)))}function B2(n){if(!F2(n))return null;const t=parseInt(n.getAttribute("tabindex")||"",10);return isNaN(t)?-1:t}class y8{constructor(t,e,i,r,o=!1){this._element=t,this._checker=e,this._ngZone=i,this._document=r,this._hasAttached=!1,this.startAnchorListener=()=>this.focusLastTabbableElement(),this.endAnchorListener=()=>this.focusFirstTabbableElement(),this._enabled=!0,o||this.attachAnchors()}get enabled(){return this._enabled}set enabled(t){this._enabled=t,this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(t,this._startAnchor),this._toggleAnchorTabIndex(t,this._endAnchor))}destroy(){const t=this._startAnchor,e=this._endAnchor;t&&(t.removeEventListener("focus",this.startAnchorListener),t.remove()),e&&(e.removeEventListener("focus",this.endAnchorListener),e.remove()),this._startAnchor=this._endAnchor=null,this._hasAttached=!1}attachAnchors(){return!!this._hasAttached||(this._ngZone.runOutsideAngular(()=>{this._startAnchor||(this._startAnchor=this._createAnchor(),this._startAnchor.addEventListener("focus",this.startAnchorListener)),this._endAnchor||(this._endAnchor=this._createAnchor(),this._endAnchor.addEventListener("focus",this.endAnchorListener))}),this._element.parentNode&&(this._element.parentNode.insertBefore(this._startAnchor,this._element),this._element.parentNode.insertBefore(this._endAnchor,this._element.nextSibling),this._hasAttached=!0),this._hasAttached)}focusInitialElementWhenReady(t){return new Promise(e=>{this._executeOnStable(()=>e(this.focusInitialElement(t)))})}focusFirstTabbableElementWhenReady(t){return new Promise(e=>{this._executeOnStable(()=>e(this.focusFirstTabbableElement(t)))})}focusLastTabbableElementWhenReady(t){return new Promise(e=>{this._executeOnStable(()=>e(this.focusLastTabbableElement(t)))})}_getRegionBoundary(t){const e=this._element.querySelectorAll(`[cdk-focus-region-${t}], [cdkFocusRegion${t}], [cdk-focus-${t}]`);return"start"==t?e.length?e[0]:this._getFirstTabbableElement(this._element):e.length?e[e.length-1]:this._getLastTabbableElement(this._element)}focusInitialElement(t){const e=this._element.querySelector("[cdk-focus-initial], [cdkFocusInitial]");if(e){if(!this._checker.isFocusable(e)){const i=this._getFirstTabbableElement(e);return i?.focus(t),!!i}return e.focus(t),!0}return this.focusFirstTabbableElement(t)}focusFirstTabbableElement(t){const e=this._getRegionBoundary("start");return e&&e.focus(t),!!e}focusLastTabbableElement(t){const e=this._getRegionBoundary("end");return e&&e.focus(t),!!e}hasAttached(){return this._hasAttached}_getFirstTabbableElement(t){if(this._checker.isFocusable(t)&&this._checker.isTabbable(t))return t;const e=t.children;for(let i=0;i=0;i--){const r=e[i].nodeType===this._document.ELEMENT_NODE?this._getLastTabbableElement(e[i]):null;if(r)return r}return null}_createAnchor(){const t=this._document.createElement("div");return this._toggleAnchorTabIndex(this._enabled,t),t.classList.add("cdk-visually-hidden"),t.classList.add("cdk-focus-trap-anchor"),t.setAttribute("aria-hidden","true"),t}_toggleAnchorTabIndex(t,e){t?e.setAttribute("tabindex","0"):e.removeAttribute("tabindex")}toggleAnchors(t){this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(t,this._startAnchor),this._toggleAnchorTabIndex(t,this._endAnchor))}_executeOnStable(t){this._ngZone.isStable?t():this._ngZone.onStable.pipe(sn(1)).subscribe(t)}}let cb=(()=>{class n{constructor(e,i,r){this._checker=e,this._ngZone=i,this._document=r}create(e,i=!1){return new y8(e,this._checker,this._ngZone,this._document,i)}}return n.\u0275fac=function(e){return new(e||n)(M(Af),M(et),M(ft))},n.\u0275prov=ge({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();function Tf(n){return 0===n.buttons||0===n.offsetX&&0===n.offsetY}function xf(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 b8=new me("cdk-input-modality-detector-options"),C8={ignoreKeys:[18,17,224,91,16]},Ac=As({passive:!0,capture:!0});let w8=(()=>{class n{constructor(e,i,r,o){this._platform=e,this._mostRecentTarget=null,this._modality=new ar(null),this._lastTouchMs=0,this._onKeydown=s=>{this._options?.ignoreKeys?.some(a=>a===s.keyCode)||(this._modality.next("keyboard"),this._mostRecentTarget=Qr(s))},this._onMousedown=s=>{Date.now()-this._lastTouchMs<650||(this._modality.next(Tf(s)?"keyboard":"mouse"),this._mostRecentTarget=Qr(s))},this._onTouchstart=s=>{xf(s)?this._modality.next("keyboard"):(this._lastTouchMs=Date.now(),this._modality.next("touch"),this._mostRecentTarget=Qr(s))},this._options={...C8,...o},this.modalityDetected=this._modality.pipe(rb(1)),this.modalityChanged=this.modalityDetected.pipe(bf()),e.isBrowser&&i.runOutsideAngular(()=>{r.addEventListener("keydown",this._onKeydown,Ac),r.addEventListener("mousedown",this._onMousedown,Ac),r.addEventListener("touchstart",this._onTouchstart,Ac)})}get mostRecentModality(){return this._modality.value}ngOnDestroy(){this._modality.complete(),this._platform.isBrowser&&(document.removeEventListener("keydown",this._onKeydown,Ac),document.removeEventListener("mousedown",this._onMousedown,Ac),document.removeEventListener("touchstart",this._onTouchstart,Ac))}}return n.\u0275fac=function(e){return new(e||n)(M(Nn),M(et),M(ft),M(b8,8))},n.\u0275prov=ge({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const E8=new me("liveAnnouncerElement",{providedIn:"root",factory:function D8(){return null}}),S8=new me("LIVE_ANNOUNCER_DEFAULT_OPTIONS");let ub=(()=>{class n{constructor(e,i,r,o){this._ngZone=i,this._defaultOptions=o,this._document=r,this._liveElement=e||this._createLiveElement()}announce(e,...i){const r=this._defaultOptions;let o,s;return 1===i.length&&"number"==typeof i[0]?s=i[0]:[o,s]=i,this.clear(),clearTimeout(this._previousTimeout),o||(o=r&&r.politeness?r.politeness:"polite"),null==s&&r&&(s=r.duration),this._liveElement.setAttribute("aria-live",o),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 s&&(this._previousTimeout=setTimeout(()=>this.clear(),s)),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 o=0;o{class n{constructor(e,i,r,o,s){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 N,this._rootNodeFocusAndBlurListener=a=>{for(let c=Qr(a);c;c=c.parentElement)"focus"===a.type?this._onFocus(a,c):this._onBlur(a,c)},this._document=o,this._detectionMode=s?.detectionMode||0}monitor(e,i=!1){const r=Qn(e);if(!this._platform.isBrowser||1!==r.nodeType)return Ne(null);const o=_f(r)||this._getDocument(),s=this._elementInfo.get(r);if(s)return i&&(s.checkChildren=!0),s.subject;const a={checkChildren:i,subject:new N,rootNode:o};return this._elementInfo.set(r,a),this._registerGlobalListeners(a),a.subject}stopMonitoring(e){const i=Qn(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 o=Qn(e);o===this._getDocument().activeElement?this._getClosestElementsInfo(o).forEach(([a,l])=>this._originChanged(a,i,l)):(this._setOrigin(i),"function"==typeof o.focus&&o.focus(r))}ngOnDestroy(){this._elementInfo.forEach((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:e&&this._isLastInteractionFromInputLabel(e)?"mouse":"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),o=Qr(e);!r||!r.checkChildren&&i!==o||this._originChanged(i,this._getFocusOrigin(o),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,If),i.addEventListener("blur",this._rootNodeFocusAndBlurListener,If)}),this._rootNodeFocusListenerCount.set(i,r+1),1==++this._monitoredElementCount&&(this._ngZone.runOutsideAngular(()=>{this._getWindow().addEventListener("focus",this._windowFocusListener)}),this._inputModalityDetector.modalityDetected.pipe(Jt(this._stopInputModalityDetector)).subscribe(o=>{this._setOrigin(o,!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,If),i.removeEventListener("blur",this._rootNodeFocusAndBlurListener,If),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,o)=>{(o===e||r.checkChildren&&o.contains(e))&&i.push([o,r])}),i}_isLastInteractionFromInputLabel(e){const{_mostRecentTarget:i,mostRecentModality:r}=this._inputModalityDetector;if("mouse"!==r||!i||i===e||"INPUT"!==e.nodeName&&"TEXTAREA"!==e.nodeName||e.disabled)return!1;const o=e.labels;if(o)for(let s=0;s{class n{constructor(e,i){this._elementRef=e,this._focusMonitor=i,this._focusOrigin=null,this.cdkFocusChange=new He}get focusOrigin(){return this._focusOrigin}ngAfterViewInit(){const e=this._elementRef.nativeElement;this._monitorSubscription=this._focusMonitor.monitor(e,1===e.nodeType&&e.hasAttribute("cdkMonitorSubtreeFocus")).subscribe(i=>{this._focusOrigin=i,this.cdkFocusChange.emit(i)})}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._monitorSubscription&&this._monitorSubscription.unsubscribe()}}return n.\u0275fac=function(e){return new(e||n)(p(Je),p(Do))},n.\u0275dir=fe({type:n,selectors:[["","cdkMonitorElementFocus",""],["","cdkMonitorSubtreeFocus",""]],outputs:{cdkFocusChange:"cdkFocusChange"},exportAs:["cdkMonitorFocus"]}),n})();const H2="cdk-high-contrast-black-on-white",V2="cdk-high-contrast-white-on-black",db="cdk-high-contrast-active";let U2=(()=>{class n{constructor(e,i){this._platform=e,this._document=i,this._breakpointSubscription=Oa(sb).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,o=(r&&r.backgroundColor||"").replace(/ /g,"");switch(e.remove(),o){case"rgb(0,0,0)":case"rgb(45,50,54)":case"rgb(32,32,32)":return 2;case"rgb(255,255,255)":case"rgb(255,250,239)":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(db,H2,V2),this._hasCheckedHighContrastMode=!0;const i=this.getHighContrastMode();1===i?e.add(db,H2):2===i&&e.add(db,V2)}}}return n.\u0275fac=function(e){return new(e||n)(M(Nn),M(ft))},n.\u0275prov=ge({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),hb=(()=>{class n{constructor(e){e._applyBodyHighContrastModeCssClasses()}}return n.\u0275fac=function(e){return new(e||n)(M(U2))},n.\u0275mod=ht({type:n}),n.\u0275inj=dt({imports:[dd]}),n})();function Is(n,t,e,i){return le(e)&&(i=e,e=void 0),i?Is(n,t,e).pipe(he(r=>F(r)?i(...r):i(r))):new b(r=>{q2(n,t,function o(s){r.next(arguments.length>1?Array.prototype.slice.call(arguments):s)},r,e)})}function q2(n,t,e,i,r){let o;if(function M8(n){return n&&"function"==typeof n.addEventListener&&"function"==typeof n.removeEventListener}(n)){const s=n;n.addEventListener(t,e,r),o=()=>s.removeEventListener(t,e,r)}else if(function I8(n){return n&&"function"==typeof n.on&&"function"==typeof n.off}(n)){const s=n;n.on(t,e),o=()=>s.off(t,e)}else if(function x8(n){return n&&"function"==typeof n.addListener&&"function"==typeof n.removeListener}(n)){const s=n;n.addListener(t,e),o=()=>s.removeListener(t,e)}else{if(!n||!n.length)throw new TypeError("Invalid event target");for(let s=0,a=n.length;s0?super.requestAsyncId(t,e,i):(t.actions.push(this),t.scheduled||(t.scheduled=requestAnimationFrame(()=>t.flush(null))))}recycleAsyncId(t,e,i=0){if(null!==i&&i>0||null===i&&this.delay>0)return super.recycleAsyncId(t,e,i);0===t.actions.length&&(cancelAnimationFrame(e),t.scheduled=void 0)}});let O8=1;const P8=Promise.resolve(),Mf={};function G2(n){return n in Mf&&(delete Mf[n],!0)}const W2={setImmediate(n){const t=O8++;return Mf[t]=!0,P8.then(()=>G2(t)&&n()),t},clearImmediate(n){G2(n)}},pb=new class N8 extends Eo{flush(t){this.active=!0,this.scheduled=void 0;const{actions:e}=this;let i,r=-1,o=e.length;t=t||e.shift();do{if(i=t.execute(t.state,t.delay))break}while(++r0?super.requestAsyncId(t,e,i):(t.actions.push(this),t.scheduled||(t.scheduled=W2.setImmediate(t.flush.bind(t,null))))}recycleAsyncId(t,e,i=0){if(null!==i&&i>0||null===i&&this.delay>0)return super.recycleAsyncId(t,e,i);0===t.actions.length&&(W2.clearImmediate(e),t.scheduled=void 0)}});class B8{constructor(t){this.durationSelector=t}call(t,e){return e.subscribe(new j8(t,this.durationSelector))}}class j8 extends cu{constructor(t,e){super(t),this.durationSelector=e,this.hasValue=!1}_next(t){if(this.value=t,this.hasValue=!0,!this.throttled){let e;try{const{durationSelector:r}=this;e=r(t)}catch(r){return this.destination.error(r)}const i=uu(e,new ko(this));!i||i.closed?this.clearThrottle():this.add(this.throttled=i)}}clearThrottle(){const{value:t,hasValue:e,throttled:i}=this;i&&(this.remove(i),this.throttled=void 0,i.unsubscribe()),e&&(this.value=void 0,this.hasValue=!1,this.destination.next(t))}notifyNext(){this.clearThrottle()}notifyComplete(){this.clearThrottle()}}function fb(n){return!F(n)&&n-parseFloat(n)+1>=0}function $2(n=0,t,e){let i=-1;return fb(t)?i=Number(t)<1?1:Number(t):pe(t)&&(e=t),pe(e)||(e=Dc),new b(r=>{const o=fb(n)?n:+n-e.now();return e.schedule(H8,o,{index:0,period:i,subscriber:r})})}function H8(n){const{index:t,period:e,subscriber:i}=n;if(i.next(t),!i.closed){if(-1===e)return i.complete();n.index=t+1,this.schedule(n,e)}}function K2(n,t=Dc){return function F8(n){return function(e){return e.lift(new B8(n))}}(()=>$2(n,t))}const V8=new me("cdk-dir-doc",{providedIn:"root",factory:function U8(){return Oa(ft)}}),q8=/^(ar|ckb|dv|he|iw|fa|nqo|ps|sd|ug|ur|yi|.*[-_](Adlm|Arab|Hebr|Nkoo|Rohg|Thaa))(?!.*[-_](Latn|Cyrl)($|-|_))($|-|_)/i;let Xi=(()=>{class n{constructor(e){if(this.value="ltr",this.change=new He,e){const r=e.documentElement?e.documentElement.dir:null;this.value=function z8(n){const t=n?.toLowerCase()||"";return"auto"===t&&typeof navigator<"u"&&navigator?.language?q8.test(navigator.language)?"rtl":"ltr":"rtl"===t?"rtl":"ltr"}((e.body?e.body.dir:null)||r||"ltr")}}ngOnDestroy(){this.change.complete()}}return n.\u0275fac=function(e){return new(e||n)(M(V8,8))},n.\u0275prov=ge({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),hd=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=ht({type:n}),n.\u0275inj=dt({}),n})(),W8=(()=>{class n{constructor(e,i,r){this._ngZone=e,this._platform=i,this._scrolled=new N,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 b(i=>{this._globalSubscription||this._addGlobalListener();const r=e>0?this._scrolled.pipe(K2(e)).subscribe(i):this._scrolled.subscribe(i);return this._scrolledCount++,()=>{r.unsubscribe(),this._scrolledCount--,this._scrolledCount||this._removeGlobalListener()}}):Ne()}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(Tn(o=>!o||r.indexOf(o)>-1))}getAncestorScrollContainers(e){const i=[];return this.scrollContainers.forEach((r,o)=>{this._scrollableContainsElement(o,e)&&i.push(o)}),i}_getWindow(){return this._document.defaultView||window}_scrollableContainsElement(e,i){let r=Qn(i),o=e.getElementRef().nativeElement;do{if(r==o)return!0}while(r=r.parentElement);return!1}_addGlobalListener(){this._globalSubscription=this._ngZone.runOutsideAngular(()=>Is(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)(M(et),M(Nn),M(ft,8))},n.\u0275prov=ge({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),zo=(()=>{class n{constructor(e,i,r){this._platform=e,this._change=new N,this._changeListener=o=>{this._change.next(o)},this._document=r,i.runOutsideAngular(()=>{if(e.isBrowser){const o=this._getWindow();o.addEventListener("resize",this._changeListener),o.addEventListener("orientationchange",this._changeListener)}this.change().subscribe(()=>this._viewportSize=null)})}ngOnDestroy(){if(this._platform.isBrowser){const 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,o=r.getBoundingClientRect();return{top:-o.top||e.body.scrollTop||i.scrollY||r.scrollTop||0,left:-o.left||e.body.scrollLeft||i.scrollX||r.scrollLeft||0}}change(e=20){return e>0?this._change.pipe(K2(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)(M(Nn),M(et),M(ft,8))},n.\u0275prov=ge({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),Tc=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=ht({type:n}),n.\u0275inj=dt({}),n})(),mb=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=ht({type:n}),n.\u0275inj=dt({imports:[hd,Tc,hd,Tc]}),n})();class gb{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 pd extends gb{constructor(t,e,i,r){super(),this.component=t,this.viewContainerRef=e,this.injector=i,this.componentFactoryResolver=r}}class Ms extends gb{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 K8 extends gb{constructor(t){super(),this.element=t instanceof Je?t.nativeElement:t}}class kf{constructor(){this._isDisposed=!1,this.attachDomPortal=null}hasAttached(){return!!this._attachedPortal}attach(t){return t instanceof pd?(this._attachedPortal=t,this.attachComponentPortal(t)):t instanceof Ms?(this._attachedPortal=t,this.attachTemplatePortal(t)):this.attachDomPortal&&t instanceof K8?(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)}}class Y8 extends kf{constructor(t,e,i,r,o){super(),this.outletElement=t,this._componentFactoryResolver=e,this._appRef=i,this._defaultInjector=r,this.attachDomPortal=s=>{const a=s.element,l=this._document.createComment("dom-portal");a.parentNode.insertBefore(l,a),this.outletElement.appendChild(a),this._attachedPortal=s,super.setDisposeFn(()=>{l.parentNode&&l.parentNode.replaceChild(a,l)})},this._document=o}attachComponentPortal(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||Vn.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 Q8=(()=>{class n extends Ms{constructor(e,i){super(e,i)}}return n.\u0275fac=function(e){return new(e||n)(p(yn),p(Dn))},n.\u0275dir=fe({type:n,selectors:[["","cdkPortal",""]],exportAs:["cdkPortal"],features:[Se]}),n})(),ks=(()=>{class n extends kf{constructor(e,i,r){super(),this._componentFactoryResolver=e,this._viewContainerRef=i,this._isInitialized=!1,this.attached=new He,this.attachDomPortal=o=>{const s=o.element,a=this._document.createComment("dom-portal");o.setAttachedHost(this),s.parentNode.insertBefore(a,s),this._getRootNode().appendChild(s),this._attachedPortal=o,super.setDisposeFn(()=>{a.parentNode&&a.parentNode.replaceChild(s,a)})},this._document=r}get portal(){return this._attachedPortal}set portal(e){this.hasAttached()&&!e&&!this._isInitialized||(this.hasAttached()&&super.detach(),e&&super.attach(e),this._attachedPortal=e||null)}get attachedRef(){return this._attachedRef}ngOnInit(){this._isInitialized=!0}ngOnDestroy(){super.dispose(),this._attachedPortal=null,this._attachedRef=null}attachComponentPortal(e){e.setAttachedHost(this);const i=null!=e.viewContainerRef?e.viewContainerRef:this._viewContainerRef,o=(e.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(e.component),s=i.createComponent(o,i.length,e.injector||i.injector);return i!==this._viewContainerRef&&this._getRootNode().appendChild(s.hostView.rootNodes[0]),super.setDisposeFn(()=>s.destroy()),this._attachedPortal=e,this._attachedRef=s,this.attached.emit(s),s}attachTemplatePortal(e){e.setAttachedHost(this);const i=this._viewContainerRef.createEmbeddedView(e.templateRef,e.context,{injector:e.injector});return super.setDisposeFn(()=>this._viewContainerRef.clear()),this._attachedPortal=e,this._attachedRef=i,this.attached.emit(i),i}_getRootNode(){const e=this._viewContainerRef.element.nativeElement;return e.nodeType===e.ELEMENT_NODE?e:e.parentNode}}return n.\u0275fac=function(e){return new(e||n)(p(hs),p(Dn),p(ft))},n.\u0275dir=fe({type:n,selectors:[["","cdkPortalOutlet",""]],inputs:{portal:["cdkPortalOutlet","portal"]},outputs:{attached:"attached"},exportAs:["cdkPortalOutlet"],features:[Se]}),n})(),Xa=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=ht({type:n}),n.\u0275inj=dt({}),n})();function Y2(n,t=!1){return e=>e.lift(new J8(n,t))}class J8{constructor(t,e){this.predicate=t,this.inclusive=e}call(t,e){return e.subscribe(new Z8(t,this.predicate,this.inclusive))}}class Z8 extends S{constructor(t,e,i){super(t),this.predicate=e,this.inclusive=i,this.index=0}_next(t){const e=this.destination;let i;try{i=this.predicate(t,this.index++)}catch(r){return void e.error(r)}this.nextOrComplete(t,i)}nextOrComplete(t,e){const i=this.destination;Boolean(e)?i.next(t):(this.inclusive&&i.next(t),i.complete())}}const Q2=DU();class X8{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=ti(-this._previousScrollPosition.left),t.style.top=ti(-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,o=i.scrollBehavior||"",s=r.scrollBehavior||"";this._isEnabled=!1,i.left=this._previousHTMLStyles.left,i.top=this._previousHTMLStyles.top,t.classList.remove("cdk-global-scrollblock"),Q2&&(i.scrollBehavior=r.scrollBehavior="auto"),window.scroll(this._previousScrollPosition.left,this._previousScrollPosition.top),Q2&&(i.scrollBehavior=o,r.scrollBehavior=s)}}_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 e6{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 J2{enable(){}disable(){}attach(){}}function _b(n,t){return t.some(e=>n.bottome.bottom||n.righte.right)}function Z2(n,t){return t.some(e=>n.tope.bottom||n.lefte.right)}class t6{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();_b(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 n6=(()=>{class n{constructor(e,i,r,o){this._scrollDispatcher=e,this._viewportRuler=i,this._ngZone=r,this.noop=()=>new J2,this.close=s=>new e6(this._scrollDispatcher,this._ngZone,this._viewportRuler,s),this.block=()=>new X8(this._viewportRuler,this._document),this.reposition=s=>new t6(this._scrollDispatcher,this._viewportRuler,this._ngZone,s),this._document=o}}return n.\u0275fac=function(e){return new(e||n)(M(W8),M(zo),M(et),M(ft))},n.\u0275prov=ge({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();class xc{constructor(t){if(this.scrollStrategy=new J2,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 i6{constructor(t,e){this.connectionPair=t,this.scrollableViewProperties=e}}let X2=(()=>{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)(M(ft))},n.\u0275prov=ge({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),r6=(()=>{class n extends X2{constructor(e,i){super(e),this._ngZone=i,this._keydownListener=r=>{const o=this._attachedOverlays;for(let s=o.length-1;s>-1;s--)if(o[s]._keydownEvents.observers.length>0){const a=o[s]._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)(M(ft),M(et,8))},n.\u0275prov=ge({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),o6=(()=>{class n extends X2{constructor(e,i,r){super(e),this._platform=i,this._ngZone=r,this._cursorStyleIsSet=!1,this._pointerDownListener=o=>{this._pointerDownEventTarget=Qr(o)},this._clickListener=o=>{const s=Qr(o),a="click"===o.type&&this._pointerDownEventTarget?this._pointerDownEventTarget:s;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(s)||u.overlayElement.contains(a))break;const d=u._outsidePointerEvents;this._ngZone?this._ngZone.run(()=>d.next(o)):d.next(o)}}}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)(M(ft),M(Nn),M(et,8))},n.\u0275prov=ge({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),Rf=(()=>{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||Xy()){const r=this._document.querySelectorAll(`.${e}[platform="server"], .${e}[platform="test"]`);for(let o=0;othis._backdropClick.next(d),this._backdropTransitionendHandler=d=>{this._disposeBackdrop(d.target)},this._keydownEvents=new N,this._outsidePointerEvents=new N,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(sn(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),"function"==typeof e?.onDestroy&&e.onDestroy(()=>{this.hasAttached()&&this._ngZone.runOutsideAngular(()=>Promise.resolve().then(()=>this.detach()))}),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=ti(this._config.width),t.height=ti(this._config.height),t.minWidth=ti(this._config.minWidth),t.minHeight=ti(this._config.minHeight),t.maxWidth=ti(this._config.maxWidth),t.maxHeight=ti(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=Cf(e||[]).filter(o=>!!o);r.length&&(i?t.classList.add(...r):t.classList.remove(...r))}_detachContentWhenStable(){this._ngZone.runOutsideAngular(()=>{const t=this._ngZone.onStable.pipe(Jt(On(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 e1="cdk-overlay-connected-position-bounding-box",s6=/([A-Za-z%]+)$/;class a6{constructor(t,e,i,r,o){this._viewportRuler=e,this._document=i,this._platform=r,this._overlayContainer=o,this._lastBoundingBoxSize={width:0,height:0},this._isPushed=!1,this._canPush=!0,this._growAfterOpen=!1,this._hasFlexibleDimensions=!0,this._positionLocked=!1,this._viewportMargin=0,this._scrollables=[],this._preferredPositions=[],this._positionChanges=new N,this._resizeSubscription=E.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(e1),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,o=[];let s;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)?o.push({position:a,origin:l,overlayRect:e,boundingBoxRect:this._calculateBoundingBoxRect(l,a)}):(!s||s.overlayFit.visibleAreal&&(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(s.position,s.originPoint);this._applyPosition(s.position,s.originPoint)}detach(){this._clearPanelClasses(),this._lastPosition=null,this._previousPushAmount=null,this._resizeSubscription.unsubscribe()}dispose(){this._isDisposed||(this._boundingBox&&el(this._boundingBox.style,{top:"",left:"",right:"",bottom:"",height:"",width:"",alignItems:"",justifyContent:""}),this._pane&&this._resetOverlayElementStyles(),this._overlayRef&&this._overlayRef.hostElement.classList.remove(e1),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,o;if("center"==i.originX)r=t.left+t.width/2;else{const s=this._isRtl()?t.right:t.left,a=this._isRtl()?t.left:t.right;r="start"==i.originX?s:a}return e.left<0&&(r-=e.left),o="center"==i.originY?t.top+t.height/2:"top"==i.originY?t.top:t.bottom,e.top<0&&(o-=e.top),{x:r,y:o}}_getOverlayPoint(t,e,i){let r,o;return r="center"==i.overlayX?-e.width/2:"start"===i.overlayX?this._isRtl()?-e.width:0:this._isRtl()?0:-e.width,o="center"==i.overlayY?-e.height/2:"top"==i.overlayY?0:-e.height,{x:t.x+r,y:t.y+o}}_getOverlayFit(t,e,i,r){const o=n1(e);let{x:s,y:a}=t,l=this._getOffset(r,"x"),c=this._getOffset(r,"y");l&&(s+=l),c&&(a+=c);let h=0-a,m=a+o.height-i.height,y=this._subtractOverflows(o.width,0-s,s+o.width-i.width),A=this._subtractOverflows(o.height,h,m),U=y*A;return{visibleArea:U,isCompletelyWithinViewport:o.width*o.height===U,fitsInViewportVertically:A===o.height,fitsInViewportHorizontally:y==o.width}}_canFitWithFlexibleDimensions(t,e,i){if(this._hasFlexibleDimensions){const r=i.bottom-e.y,o=i.right-e.x,s=t1(this._overlayRef.getConfig().minHeight),a=t1(this._overlayRef.getConfig().minWidth),c=t.fitsInViewportHorizontally||null!=a&&a<=o;return(t.fitsInViewportVertically||null!=s&&s<=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=n1(e),o=this._viewportRect,s=Math.max(t.x+r.width-o.width,0),a=Math.max(t.y+r.height-o.height,0),l=Math.max(o.top-i.top-t.y,0),c=Math.max(o.left-i.left-t.x,0);let u=0,d=0;return u=r.width<=o.width?c||-s:t.xy&&!this._isInitialRender&&!this._growAfterOpen&&(s=t.y-y/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 m=Math.min(i.right-t.x+i.left,t.x),y=this._lastBoundingBoxSize.width;u=2*m,d=t.x-m,u>y&&!this._isInitialRender&&!this._growAfterOpen&&(d=t.x-y/2)}return{top:s,left:d,bottom:a,right:h,width:u,height:o}}_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 o=this._overlayRef.getConfig().maxHeight,s=this._overlayRef.getConfig().maxWidth;r.height=ti(i.height),r.top=ti(i.top),r.bottom=ti(i.bottom),r.width=ti(i.width),r.left=ti(i.left),r.right=ti(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",o&&(r.maxHeight=ti(o)),s&&(r.maxWidth=ti(s))}this._lastBoundingBoxSize=i,el(this._boundingBox.style,r)}_resetBoundingBoxStyles(){el(this._boundingBox.style,{top:"0",left:"0",right:"0",bottom:"0",height:"",width:"",alignItems:"",justifyContent:""})}_resetOverlayElementStyles(){el(this._pane.style,{top:"",left:"",bottom:"",right:"",position:"",transform:""})}_setOverlayElementStyles(t,e){const i={},r=this._hasExactPosition(),o=this._hasFlexibleDimensions,s=this._overlayRef.getConfig();if(r){const u=this._viewportRuler.getViewportScrollPosition();el(i,this._getExactOverlayY(e,t,u)),el(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(),s.maxHeight&&(r?i.maxHeight=ti(s.maxHeight):o&&(i.maxHeight="")),s.maxWidth&&(r?i.maxWidth=ti(s.maxWidth):o&&(i.maxWidth="")),el(this._pane.style,i)}_getExactOverlayY(t,e,i){let r={top:"",bottom:""},o=this._getOverlayPoint(e,this._overlayRect,t);return this._isPushed&&(o=this._pushOverlayOnScreen(o,this._overlayRect,i)),"bottom"===t.overlayY?r.bottom=this._document.documentElement.clientHeight-(o.y+this._overlayRect.height)+"px":r.top=ti(o.y),r}_getExactOverlayX(t,e,i){let s,r={left:"",right:""},o=this._getOverlayPoint(e,this._overlayRect,t);return this._isPushed&&(o=this._pushOverlayOnScreen(o,this._overlayRect,i)),s=this._isRtl()?"end"===t.overlayX?"left":"right":"end"===t.overlayX?"right":"left","right"===s?r.right=this._document.documentElement.clientWidth-(o.x+this._overlayRect.width)+"px":r.left=ti(o.x),r}_getScrollVisibility(){const t=this._getOriginRect(),e=this._pane.getBoundingClientRect(),i=this._scrollables.map(r=>r.getElementRef().nativeElement.getBoundingClientRect());return{isOriginClipped:Z2(t,i),isOriginOutsideView:_b(t,i),isOverlayClipped:Z2(e,i),isOverlayOutsideView:_b(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&&Cf(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 Je)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 el(n,t){for(let e in t)t.hasOwnProperty(e)&&(n[e]=t[e]);return n}function t1(n){if("number"!=typeof n&&null!=n){const[t,e]=n.split(s6);return e&&"px"!==e?null:parseFloat(t)}return n||null}function n1(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 r1="cdk-global-overlay-wrapper";class l6{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(r1),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:o,maxWidth:s,maxHeight:a}=i,l=!("100%"!==r&&"100vw"!==r||s&&"100%"!==s&&"100vw"!==s),c=!("100%"!==o&&"100vh"!==o||a&&"100%"!==a&&"100vh"!==a),u=this._xPosition,d=this._xOffset,h="rtl"===this._overlayRef.getConfig().direction;let m="",y="",A="";l?A="flex-start":"center"===u?(A="center",h?y=d:m=d):h?"left"===u||"end"===u?(A="flex-end",m=d):("right"===u||"start"===u)&&(A="flex-start",y=d):"left"===u||"start"===u?(A="flex-start",m=d):("right"===u||"end"===u)&&(A="flex-end",y=d),t.position=this._cssPosition,t.marginLeft=l?"0":m,t.marginTop=c?"0":this._topOffset,t.marginBottom=this._bottomOffset,t.marginRight=l?"0":y,e.justifyContent=A,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(r1),i.justifyContent=i.alignItems=t.marginTop=t.marginBottom=t.marginLeft=t.marginRight=t.position="",this._overlayRef=null,this._isDisposed=!0}}let c6=(()=>{class n{constructor(e,i,r,o){this._viewportRuler=e,this._document=i,this._platform=r,this._overlayContainer=o}global(){return new l6}flexibleConnectedTo(e){return new a6(e,this._viewportRuler,this._document,this._platform,this._overlayContainer)}}return n.\u0275fac=function(e){return new(e||n)(M(zo),M(ft),M(Nn),M(Rf))},n.\u0275prov=ge({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),u6=0,lr=(()=>{class n{constructor(e,i,r,o,s,a,l,c,u,d,h,m){this.scrollStrategies=e,this._overlayContainer=i,this._componentFactoryResolver=r,this._positionBuilder=o,this._keyboardDispatcher=s,this._injector=a,this._ngZone=l,this._document=c,this._directionality=u,this._location=d,this._outsideClickDispatcher=h,this._animationsModuleType=m}create(e){const i=this._createHostElement(),r=this._createPaneElement(i),o=this._createPortalOutlet(r),s=new xc(e);return s.direction=s.direction||this._directionality.value,new fd(o,i,r,s,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-"+u6++,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(Qu)),new Y8(e,this._componentFactoryResolver,this._appRef,this._injector,this._document)}}return n.\u0275fac=function(e){return new(e||n)(M(n6),M(Rf),M(hs),M(c6),M(r6),M(Vn),M(et),M(ft),M(Xi),M(Wa),M(o6),M(qn,8))},n.\u0275prov=ge({token:n,factory:n.\u0275fac}),n})();const d6=[{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"}],o1=new me("cdk-connected-overlay-scroll-strategy");let s1=(()=>{class n{constructor(e){this.elementRef=e}}return n.\u0275fac=function(e){return new(e||n)(p(Je))},n.\u0275dir=fe({type:n,selectors:[["","cdk-overlay-origin",""],["","overlay-origin",""],["","cdkOverlayOrigin",""]],exportAs:["cdkOverlayOrigin"]}),n})(),a1=(()=>{class n{constructor(e,i,r,o,s){this._overlay=e,this._dir=s,this._hasBackdrop=!1,this._lockPosition=!1,this._growAfterOpen=!1,this._flexibleDimensions=!1,this._push=!1,this._backdropSubscription=E.EMPTY,this._attachSubscription=E.EMPTY,this._detachSubscription=E.EMPTY,this._positionSubscription=E.EMPTY,this.viewportMargin=0,this.open=!1,this.disableClose=!1,this.backdropClick=new He,this.positionChange=new He,this.attach=new He,this.detach=new He,this.overlayKeydown=new He,this.overlayOutsideClick=new He,this._templatePortal=new Ms(i,r),this._scrollStrategyFactory=o,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=lt(e)}get lockPosition(){return this._lockPosition}set lockPosition(e){this._lockPosition=lt(e)}get flexibleDimensions(){return this._flexibleDimensions}set flexibleDimensions(e){this._flexibleDimensions=lt(e)}get growAfterOpen(){return this._growAfterOpen}set growAfterOpen(e){this._growAfterOpen=lt(e)}get push(){return this._push}set push(e){this._push=lt(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=d6);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&&!yi(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 xc({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 s1?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(Y2(()=>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)(p(lr),p(yn),p(Dn),p(o1),p(Xi,8))},n.\u0275dir=fe({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:[Rn]}),n})();const p6={provide:o1,deps:[lr],useFactory:function h6(n){return()=>n.scrollStrategies.reposition()}};let Ic=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=ht({type:n}),n.\u0275inj=dt({providers:[lr,p6],imports:[hd,Xa,mb,mb]}),n})();function f6(n,t){}class Of{constructor(){this.role="dialog",this.panelClass="",this.hasBackdrop=!0,this.backdropClass="",this.disableClose=!1,this.width="",this.height="",this.data=null,this.ariaDescribedBy=null,this.ariaLabelledBy=null,this.ariaLabel=null,this.ariaModal=!0,this.autoFocus="first-tabbable",this.restoreFocus=!0,this.closeOnNavigation=!0,this.closeOnDestroy=!0}}let l1=(()=>{class n extends kf{constructor(e,i,r,o,s,a,l,c){super(),this._elementRef=e,this._focusTrapFactory=i,this._config=o,this._interactivityChecker=s,this._ngZone=a,this._overlayRef=l,this._focusMonitor=c,this._elementFocusedBeforeDialogWasOpened=null,this._closeInteractionType=null,this.attachDomPortal=u=>{this._portalOutlet.hasAttached();const d=this._portalOutlet.attachDomPortal(u);return this._contentAttached(),d},this._ariaLabelledBy=this._config.ariaLabelledBy||null,this._document=r}_contentAttached(){this._initializeFocusTrap(),this._handleBackdropClicks(),this._captureInitialFocus()}_captureInitialFocus(){this._trapFocus()}ngOnDestroy(){this._restoreFocus()}attachComponentPortal(e){this._portalOutlet.hasAttached();const i=this._portalOutlet.attachComponentPortal(e);return this._contentAttached(),i}attachTemplatePortal(e){this._portalOutlet.hasAttached();const i=this._portalOutlet.attachTemplatePortal(e);return this._contentAttached(),i}_recaptureFocus(){this._containsFocus()||this._trapFocus()}_forceFocus(e,i){this._interactivityChecker.isFocusable(e)||(e.tabIndex=-1,this._ngZone.runOutsideAngular(()=>{const r=()=>{e.removeEventListener("blur",r),e.removeEventListener("mousedown",r),e.removeAttribute("tabindex")};e.addEventListener("blur",r),e.addEventListener("mousedown",r)})),e.focus(i)}_focusByCssSelector(e,i){let r=this._elementRef.nativeElement.querySelector(e);r&&this._forceFocus(r,i)}_trapFocus(){const e=this._elementRef.nativeElement;switch(this._config.autoFocus){case!1:case"dialog":this._containsFocus()||e.focus();break;case!0:case"first-tabbable":this._focusTrap.focusInitialElementWhenReady().then(i=>{i||this._focusDialogContainer()});break;case"first-heading":this._focusByCssSelector('h1, h2, h3, h4, h5, h6, [role="heading"]');break;default:this._focusByCssSelector(this._config.autoFocus)}}_restoreFocus(){const e=this._config.restoreFocus;let i=null;if("string"==typeof e?i=this._document.querySelector(e):"boolean"==typeof e?i=e?this._elementFocusedBeforeDialogWasOpened:null:e&&(i=e),this._config.restoreFocus&&i&&"function"==typeof i.focus){const r=Zy(),o=this._elementRef.nativeElement;(!r||r===this._document.body||r===o||o.contains(r))&&(this._focusMonitor?(this._focusMonitor.focusVia(i,this._closeInteractionType),this._closeInteractionType=null):i.focus())}this._focusTrap&&this._focusTrap.destroy()}_focusDialogContainer(){this._elementRef.nativeElement.focus&&this._elementRef.nativeElement.focus()}_containsFocus(){const e=this._elementRef.nativeElement,i=Zy();return e===i||e.contains(i)}_initializeFocusTrap(){this._focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement),this._document&&(this._elementFocusedBeforeDialogWasOpened=Zy())}_handleBackdropClicks(){this._overlayRef.backdropClick().subscribe(()=>{this._config.disableClose&&this._recaptureFocus()})}}return n.\u0275fac=function(e){return new(e||n)(p(Je),p(cb),p(ft,8),p(Of),p(Af),p(et),p(fd),p(Do))},n.\u0275cmp=Ue({type:n,selectors:[["cdk-dialog-container"]],viewQuery:function(e,i){if(1&e&&De(ks,7),2&e){let r;ce(r=ue())&&(i._portalOutlet=r.first)}},hostAttrs:["tabindex","-1",1,"cdk-dialog-container"],hostVars:6,hostBindings:function(e,i){2&e&&rt("id",i._config.id||null)("role",i._config.role)("aria-modal",i._config.ariaModal)("aria-labelledby",i._config.ariaLabel?null:i._ariaLabelledBy)("aria-label",i._config.ariaLabel)("aria-describedby",i._config.ariaDescribedBy||null)},features:[Se],decls:1,vars:0,consts:[["cdkPortalOutlet",""]],template:function(e,i){1&e&&H(0,f6,0,0,"ng-template",0)},dependencies:[ks],styles:[".cdk-dialog-container{display:block;width:100%;height:100%;min-height:inherit;max-height:inherit}"],encapsulation:2}),n})();class vb{constructor(t,e){this.overlayRef=t,this.config=e,this.closed=new N,this.disableClose=e.disableClose,this.backdropClick=t.backdropClick(),this.keydownEvents=t.keydownEvents(),this.outsidePointerEvents=t.outsidePointerEvents(),this.id=e.id,this.keydownEvents.subscribe(i=>{27===i.keyCode&&!this.disableClose&&!yi(i)&&(i.preventDefault(),this.close(void 0,{focusOrigin:"keyboard"}))}),this.backdropClick.subscribe(()=>{this.disableClose||this.close(void 0,{focusOrigin:"mouse"})})}close(t,e){if(this.containerInstance){const i=this.closed;this.containerInstance._closeInteractionType=e?.focusOrigin||"program",this.overlayRef.dispose(),i.next(t),i.complete(),this.componentInstance=this.containerInstance=null}}updatePosition(){return this.overlayRef.updatePosition(),this}updateSize(t="",e=""){return this.overlayRef.updateSize({width:t,height:e}),this}addPanelClass(t){return this.overlayRef.addPanelClass(t),this}removePanelClass(t){return this.overlayRef.removePanelClass(t),this}}const c1=new me("DialogScrollStrategy"),m6=new me("DialogData"),g6=new me("DefaultDialogConfig"),v6={provide:c1,deps:[lr],useFactory:function _6(n){return()=>n.scrollStrategies.block()}};let y6=0,u1=(()=>{class n{constructor(e,i,r,o,s,a){this._overlay=e,this._injector=i,this._defaultOptions=r,this._parentDialog=o,this._overlayContainer=s,this._openDialogsAtThisLevel=[],this._afterAllClosedAtThisLevel=new N,this._afterOpenedAtThisLevel=new N,this._ariaHiddenElements=new Map,this.afterAllClosed=la(()=>this.openDialogs.length?this._getAfterAllClosed():this._getAfterAllClosed().pipe(ni(void 0))),this._scrollStrategy=a}get openDialogs(){return this._parentDialog?this._parentDialog.openDialogs:this._openDialogsAtThisLevel}get afterOpened(){return this._parentDialog?this._parentDialog.afterOpened:this._afterOpenedAtThisLevel}open(e,i){(i={...this._defaultOptions||new Of,...i}).id=i.id||"cdk-dialog-"+y6++,i.id&&this.getDialogById(i.id);const o=this._getOverlayConfig(i),s=this._overlay.create(o),a=new vb(s,i),l=this._attachContainer(s,a,i);return a.containerInstance=l,this._attachDialogContent(e,a,l,i),this.openDialogs.length||this._hideNonDialogContentFromAssistiveTechnology(),this.openDialogs.push(a),a.closed.subscribe(()=>this._removeOpenDialog(a,!0)),this.afterOpened.next(a),a}closeAll(){yb(this.openDialogs,e=>e.close())}getDialogById(e){return this.openDialogs.find(i=>i.id===e)}ngOnDestroy(){yb(this._openDialogsAtThisLevel,e=>{!1===e.config.closeOnDestroy&&this._removeOpenDialog(e,!1)}),yb(this._openDialogsAtThisLevel,e=>e.close()),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete(),this._openDialogsAtThisLevel=[]}_getOverlayConfig(e){const i=new xc({positionStrategy:e.positionStrategy||this._overlay.position().global().centerHorizontally().centerVertically(),scrollStrategy:e.scrollStrategy||this._scrollStrategy(),panelClass:e.panelClass,hasBackdrop:e.hasBackdrop,direction:e.direction,minWidth:e.minWidth,minHeight:e.minHeight,maxWidth:e.maxWidth,maxHeight:e.maxHeight,width:e.width,height:e.height,disposeOnNavigation:e.closeOnNavigation});return e.backdropClass&&(i.backdropClass=e.backdropClass),i}_attachContainer(e,i,r){const o=r.injector||r.viewContainerRef?.injector,s=[{provide:Of,useValue:r},{provide:vb,useValue:i},{provide:fd,useValue:e}];let a;r.container?"function"==typeof r.container?a=r.container:(a=r.container.type,s.push(...r.container.providers(r))):a=l1;const l=new pd(a,r.viewContainerRef,Vn.create({parent:o||this._injector,providers:s}),r.componentFactoryResolver);return e.attach(l).instance}_attachDialogContent(e,i,r,o){if(e instanceof yn){const s=this._createInjector(o,i,r,void 0);let a={$implicit:o.data,dialogRef:i};o.templateContext&&(a={...a,..."function"==typeof o.templateContext?o.templateContext():o.templateContext}),r.attachTemplatePortal(new Ms(e,null,a,s))}else{const s=this._createInjector(o,i,r,this._injector),a=r.attachComponentPortal(new pd(e,o.viewContainerRef,s,o.componentFactoryResolver));i.componentInstance=a.instance}}_createInjector(e,i,r,o){const s=e.injector||e.viewContainerRef?.injector,a=[{provide:m6,useValue:e.data},{provide:vb,useValue:i}];return e.providers&&("function"==typeof e.providers?a.push(...e.providers(i,e,r)):a.push(...e.providers)),e.direction&&(!s||!s.get(Xi,null,yt.Optional))&&a.push({provide:Xi,useValue:{value:e.direction,change:Ne()}}),Vn.create({parent:s||o,providers:a})}_removeOpenDialog(e,i){const r=this.openDialogs.indexOf(e);r>-1&&(this.openDialogs.splice(r,1),this.openDialogs.length||(this._ariaHiddenElements.forEach((o,s)=>{o?s.setAttribute("aria-hidden",o):s.removeAttribute("aria-hidden")}),this._ariaHiddenElements.clear(),i&&this._getAfterAllClosed().next()))}_hideNonDialogContentFromAssistiveTechnology(){const e=this._overlayContainer.getContainerElement();if(e.parentElement){const i=e.parentElement.children;for(let r=i.length-1;r>-1;r--){const o=i[r];o!==e&&"SCRIPT"!==o.nodeName&&"STYLE"!==o.nodeName&&!o.hasAttribute("aria-live")&&(this._ariaHiddenElements.set(o,o.getAttribute("aria-hidden")),o.setAttribute("aria-hidden","true"))}}}_getAfterAllClosed(){const e=this._parentDialog;return e?e._getAfterAllClosed():this._afterAllClosedAtThisLevel}}return n.\u0275fac=function(e){return new(e||n)(M(lr),M(Vn),M(g6,8),M(n,12),M(Rf),M(c1))},n.\u0275prov=ge({token:n,factory:n.\u0275fac}),n})();function yb(n,t){let e=n.length;for(;e--;)t(n[e])}let b6=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=ht({type:n}),n.\u0275inj=dt({providers:[u1,v6],imports:[Ic,Xa,hb,Xa]}),n})();const C6=["*",[["mat-option"],["ng-container"]]],w6=["*","mat-option, ng-container"];function E6(n,t){if(1&n&&be(0,"mat-pseudo-checkbox",4),2&n){const e=C();v("state",e.selected?"checked":"unchecked")("disabled",e.disabled)}}function D6(n,t){if(1&n&&(g(0,"span",5),j(1),_()),2&n){const e=C();f(1),qe("(",e.group.label,")")}}const S6=["*"],T6=new me("mat-sanity-checks",{providedIn:"root",factory:function A6(){return!0}});let Lt=(()=>{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!Xy()&&("boolean"==typeof this._sanityChecks?this._sanityChecks:!!this._sanityChecks[e])}}return n.\u0275fac=function(e){return new(e||n)(M(U2),M(T6,8),M(ft))},n.\u0275mod=ht({type:n}),n.\u0275inj=dt({imports:[hd,hd]}),n})();function Rs(n){return class extends n{constructor(...t){super(...t),this._disabled=!1}get disabled(){return this._disabled}set disabled(t){this._disabled=lt(t)}}}function da(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 Go(n){return class extends n{constructor(...t){super(...t),this._disableRipple=!1}get disableRipple(){return this._disableRipple}set disableRipple(t){this._disableRipple=lt(t)}}}function md(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?xs(e):this.defaultTabIndex}}}function bb(n){return class extends n{constructor(...t){super(...t),this.errorState=!1}updateErrorState(){const t=this.errorState,o=(this.errorStateMatcher||this._defaultErrorStateMatcher).isErrorState(this.ngControl?this.ngControl.control:null,this._parentFormGroup||this._parentForm);o!==t&&(this.errorState=o,this.stateChanges.next())}}}let gd=(()=>{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=ge({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),I6=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=fe({type:n,selectors:[["","mat-line",""],["","matLine",""]],hostAttrs:[1,"mat-line"]}),n})();function _d(n,t,e){n.nativeElement.classList.toggle(t,e)}let p1=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=ht({type:n}),n.\u0275inj=dt({imports:[Lt,Lt]}),n})();class k6{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 f1={enterDuration:225,exitDuration:150},Cb=As({passive:!0}),m1=["mousedown","touchstart"],g1=["mouseup","mouseleave","touchend","touchcancel"];class _1{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=Qn(i))}fadeInRipple(t,e,i={}){const r=this._containerRect=this._containerRect||this._containerElement.getBoundingClientRect(),o={...f1,...i.animation};i.centered&&(t=r.left+r.width/2,e=r.top+r.height/2);const s=i.radius||function O6(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=o.enterDuration,u=document.createElement("div");u.classList.add("mat-ripple-element"),u.style.left=a-s+"px",u.style.top=l-s+"px",u.style.height=2*s+"px",u.style.width=2*s+"px",null!=i.color&&(u.style.backgroundColor=i.color),u.style.transitionDuration=`${c}ms`,this._containerElement.appendChild(u);const d=window.getComputedStyle(u),m=d.transitionDuration,y="none"===d.transitionProperty||"0s"===m||"0s, 0s"===m,A=new k6(this,u,i,y);u.style.transform="scale3d(1, 1, 1)",A.state=0,i.persistent||(this._mostRecentTransientRipple=A);let U=null;return!y&&(c||o.exitDuration)&&this._ngZone.runOutsideAngular(()=>{const te=()=>this._finishRippleTransition(A),Ee=()=>this._destroyRipple(A);u.addEventListener("transitionend",te),u.addEventListener("transitioncancel",Ee),U={onTransitionEnd:te,onTransitionCancel:Ee}}),this._activeRipples.set(A,U),(y||!c)&&this._finishRippleTransition(A),A}fadeOutRipple(t){if(2===t.state||3===t.state)return;const e=t.element,i={...f1,...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=Qn(t);!e||e===this._triggerElement||(this._removeTriggerEvents(),this._triggerElement=e,this._registerEvents(m1))}handleEvent(t){"mousedown"===t.type?this._onMousedown(t):"touchstart"===t.type?this._onTouchStart(t):this._onPointerUp(),this._pointerUpEventsRegistered||(this._registerEvents(g1),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=Tf(t),i=this._lastTouchStartEvent&&Date.now(){!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,Cb)})})}_getActiveRipples(){return Array.from(this._activeRipples.keys())}_removeTriggerEvents(){this._triggerElement&&(m1.forEach(t=>{this._triggerElement.removeEventListener(t,this,Cb)}),this._pointerUpEventsRegistered&&g1.forEach(t=>{this._triggerElement.removeEventListener(t,this,Cb)}))}}const v1=new me("mat-ripple-global-options");let xr=(()=>{class n{constructor(e,i,r,o,s){this._elementRef=e,this._animationMode=s,this.radius=0,this._disabled=!1,this._isInitialized=!1,this._globalOptions=o||{},this._rippleRenderer=new _1(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)(p(Je),p(et),p(Nn),p(v1,8),p(qn,8))},n.\u0275dir=fe({type:n,selectors:[["","mat-ripple",""],["","matRipple",""]],hostAttrs:[1,"mat-ripple"],hostVars:2,hostBindings:function(e,i){2&e&&bt("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})(),ha=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=ht({type:n}),n.\u0275inj=dt({imports:[Lt,Lt]}),n})(),y1=(()=>{class n{constructor(e){this._animationMode=e,this.state="unchecked",this.disabled=!1}}return n.\u0275fac=function(e){return new(e||n)(p(qn,8))},n.\u0275cmp=Ue({type:n,selectors:[["mat-pseudo-checkbox"]],hostAttrs:[1,"mat-pseudo-checkbox"],hostVars:8,hostBindings:function(e,i){2&e&&bt("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})(),wb=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=ht({type:n}),n.\u0275inj=dt({imports:[Lt]}),n})();const Pf=new me("MAT_OPTION_PARENT_COMPONENT"),P6=Rs(class{});let L6=0,N6=(()=>{class n extends P6{constructor(e){super(),this._labelId="mat-optgroup-label-"+L6++,this._inert=e?.inertGroups??!1}}return n.\u0275fac=function(e){return new(e||n)(p(Pf,8))},n.\u0275dir=fe({type:n,inputs:{label:"label"},features:[Se]}),n})();const Lf=new me("MatOptgroup");let F6=(()=>{class n extends N6{}return n.\u0275fac=function(){let t;return function(i){return(t||(t=Pt(n)))(i||n)}}(),n.\u0275cmp=Ue({type:n,selectors:[["mat-optgroup"]],hostAttrs:[1,"mat-optgroup"],hostVars:5,hostBindings:function(e,i){2&e&&(rt("role",i._inert?null:"group")("aria-disabled",i._inert?null:i.disabled.toString())("aria-labelledby",i._inert?null:i._labelId),bt("mat-optgroup-disabled",i.disabled))},inputs:{disabled:"disabled"},exportAs:["matOptgroup"],features:[it([{provide:Lf,useExisting:n}]),Se],ngContentSelectors:w6,decls:4,vars:2,consts:[["aria-hidden","true",1,"mat-optgroup-label",3,"id"]],template:function(e,i){1&e&&(Pn(C6),g(0,"span",0),j(1),Bt(2),_(),Bt(3,1)),2&e&&(v("id",i._labelId),f(1),qe("",i.label," "))},styles:[".mat-optgroup-label{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%;-webkit-user-select:none;user-select:none;cursor:default}.mat-optgroup-label[disabled]{cursor:default}[dir=rtl] .mat-optgroup-label{text-align:right}.mat-optgroup-label .mat-icon{margin-right:16px;vertical-align:middle}.mat-optgroup-label .mat-icon svg{vertical-align:top}[dir=rtl] .mat-optgroup-label .mat-icon{margin-left:16px;margin-right:0}"],encapsulation:2,changeDetection:0}),n})(),B6=0;class b1{constructor(t,e=!1){this.source=t,this.isUserInput=e}}let j6=(()=>{class n{constructor(e,i,r,o){this._element=e,this._changeDetectorRef=i,this._parent=r,this.group=o,this._selected=!1,this._active=!1,this._disabled=!1,this._mostRecentViewValue="",this.id="mat-option-"+B6++,this.onSelectionChange=new He,this._stateChanges=new N}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=lt(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)&&!yi(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 b1(this,e))}}return n.\u0275fac=function(e){Yl()},n.\u0275dir=fe({type:n,inputs:{value:"value",id:"id",disabled:"disabled"},outputs:{onSelectionChange:"onSelectionChange"}}),n})(),cr=(()=>{class n extends j6{constructor(e,i,r,o){super(e,i,r,o)}}return n.\u0275fac=function(e){return new(e||n)(p(Je),p(St),p(Pf,8),p(Lf,8))},n.\u0275cmp=Ue({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(o){return i._handleKeydown(o)}),2&e&&(Ho("id",i.id),rt("tabindex",i._getTabIndex())("aria-selected",i._getAriaSelected())("aria-disabled",i.disabled.toString()),bt("mat-selected",i.selected)("mat-option-multiple",i.multiple)("mat-active",i.active)("mat-option-disabled",i.disabled))},exportAs:["matOption"],features:[Se],ngContentSelectors:S6,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&&(Pn(),H(0,E6,1,2,"mat-pseudo-checkbox",0),g(1,"span",1),Bt(2),_(),H(3,D6,2,1,"span",2),be(4,"div",3)),2&e&&(v("ngIf",i.multiple),f(3),v("ngIf",i.group&&i.group._inert),f(1),v("matRippleTrigger",i._getHostElement())("matRippleDisabled",i.disabled||i.disableRipple))},dependencies:[xr,pn,y1],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 Eb(n,t,e){if(e.length){let i=t.toArray(),r=e.toArray(),o=0;for(let s=0;se+i?Math.max(0,n-i+t):e}let Nf=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=ht({type:n}),n.\u0275inj=dt({imports:[ha,$r,Lt,wb]}),n})();class w1{}const Os="*";function So(n,t){return{type:7,name:n,definitions:t,options:{}}}function Oi(n,t=null){return{type:4,styles:t,timings:n}}function E1(n,t=null){return{type:3,steps:n,options:t}}function D1(n,t=null){return{type:2,steps:n,options:t}}function qt(n){return{type:6,styles:n,offset:null}}function li(n,t,e){return{type:0,name:n,styles:t,options:e}}function V6(n){return{type:5,steps:n}}function bi(n,t,e=null){return{type:1,expr:n,animation:t,options:e}}function Db(n=null){return{type:9,options:n}}function Sb(n,t,e=null){return{type:11,selector:n,animation:t,options:e}}function S1(n){Promise.resolve(null).then(n)}class vd{constructor(t=0,e=0){this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._originalOnDoneFns=[],this._originalOnStartFns=[],this._started=!1,this._destroyed=!1,this._finished=!1,this._position=0,this.parentPlayer=null,this.totalTime=t+e}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(t=>t()),this._onDoneFns=[])}onStart(t){this._originalOnStartFns.push(t),this._onStartFns.push(t)}onDone(t){this._originalOnDoneFns.push(t),this._onDoneFns.push(t)}onDestroy(t){this._onDestroyFns.push(t)}hasStarted(){return this._started}init(){}play(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}triggerMicrotask(){S1(()=>this._onFinish())}_onStart(){this._onStartFns.forEach(t=>t()),this._onStartFns=[]}pause(){}restart(){}finish(){this._onFinish()}destroy(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(t=>t()),this._onDestroyFns=[])}reset(){this._started=!1,this._finished=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}setPosition(t){this._position=this.totalTime?t*this.totalTime:1}getPosition(){return this.totalTime?this._position/this.totalTime:1}triggerCallback(t){const e="start"==t?this._onStartFns:this._onDoneFns;e.forEach(i=>i()),e.length=0}}class A1{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 o=this.players.length;0==o?S1(()=>this._onFinish()):this.players.forEach(s=>{s.onDone(()=>{++e==o&&this._onFinish()}),s.onDestroy(()=>{++i==o&&this._onDestroy()}),s.onStart(()=>{++r==o&&this._onStart()})}),this.totalTime=this.players.reduce((s,a)=>Math.max(s,a.totalTime),0)}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(t=>t()),this._onDoneFns=[])}init(){this.players.forEach(t=>t.init())}onStart(t){this._onStartFns.push(t)}_onStart(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(t=>t()),this._onStartFns=[])}onDone(t){this._onDoneFns.push(t)}onDestroy(t){this._onDestroyFns.push(t)}hasStarted(){return this._started}play(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(t=>t.play())}pause(){this.players.forEach(t=>t.pause())}restart(){this.players.forEach(t=>t.restart())}finish(){this._onFinish(),this.players.forEach(t=>t.finish())}destroy(){this._onDestroy()}_onDestroy(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(t=>t.destroy()),this._onDestroyFns.forEach(t=>t()),this._onDestroyFns=[])}reset(){this.players.forEach(t=>t.reset()),this._destroyed=!1,this._finished=!1,this._started=!1}setPosition(t){const 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}}function U6(n,t){}const Mc={params:{enterAnimationDuration:"150ms",exitAnimationDuration:"75ms"}},q6={dialogContainer:So("dialogContainer",[li("void, exit",qt({opacity:0,transform:"scale(0.7)"})),li("enter",qt({transform:"none"})),bi("* => enter",E1([Oi("{{enterAnimationDuration}} cubic-bezier(0, 0, 0.2, 1)",qt({transform:"none",opacity:1})),Sb("@*",Db(),{optional:!0})]),Mc),bi("* => void, * => exit",E1([Oi("{{exitAnimationDuration}} cubic-bezier(0.4, 0.0, 0.2, 1)",qt({opacity:0})),Sb("@*",Db(),{optional:!0})]),Mc)])};class kc{constructor(){this.role="dialog",this.panelClass="",this.hasBackdrop=!0,this.backdropClass="",this.disableClose=!1,this.width="",this.height="",this.maxWidth="80vw",this.data=null,this.ariaDescribedBy=null,this.ariaLabelledBy=null,this.ariaLabel=null,this.ariaModal=!0,this.autoFocus="first-tabbable",this.restoreFocus=!0,this.delayFocusTrap=!0,this.closeOnNavigation=!0,this.enterAnimationDuration=Mc.params.enterAnimationDuration,this.exitAnimationDuration=Mc.params.exitAnimationDuration}}let z6=(()=>{class n extends l1{constructor(e,i,r,o,s,a,l,c){super(e,i,r,o,s,a,l,c),this._animationStateChanged=new He}_captureInitialFocus(){this._config.delayFocusTrap||this._trapFocus()}_openAnimationDone(e){this._config.delayFocusTrap&&this._trapFocus(),this._animationStateChanged.next({state:"opened",totalTime:e})}}return n.\u0275fac=function(e){return new(e||n)(p(Je),p(cb),p(ft,8),p(kc),p(Af),p(et),p(fd),p(Do))},n.\u0275cmp=Ue({type:n,selectors:[["ng-component"]],features:[Se],decls:0,vars:0,template:function(e,i){},encapsulation:2}),n})(),G6=(()=>{class n extends z6{constructor(e,i,r,o,s,a,l,c,u){super(e,i,r,o,s,a,l,u),this._changeDetectorRef=c,this._state="enter"}_onAnimationDone({toState:e,totalTime:i}){"enter"===e?this._openAnimationDone(i):"exit"===e&&this._animationStateChanged.next({state:"closed",totalTime:i})}_onAnimationStart({toState:e,totalTime:i}){"enter"===e?this._animationStateChanged.next({state:"opening",totalTime:i}):("exit"===e||"void"===e)&&this._animationStateChanged.next({state:"closing",totalTime:i})}_startExitAnimation(){this._state="exit",this._changeDetectorRef.markForCheck()}_getAnimationState(){return{value:this._state,params:{enterAnimationDuration:this._config.enterAnimationDuration||Mc.params.enterAnimationDuration,exitAnimationDuration:this._config.exitAnimationDuration||Mc.params.exitAnimationDuration}}}}return n.\u0275fac=function(e){return new(e||n)(p(Je),p(cb),p(ft,8),p(kc),p(Af),p(et),p(fd),p(St),p(Do))},n.\u0275cmp=Ue({type:n,selectors:[["mat-dialog-container"]],hostAttrs:["tabindex","-1",1,"mat-dialog-container"],hostVars:7,hostBindings:function(e,i){1&e&&gp("@dialogContainer.start",function(o){return i._onAnimationStart(o)})("@dialogContainer.done",function(o){return i._onAnimationDone(o)}),2&e&&(Ho("id",i._config.id),rt("aria-modal",i._config.ariaModal)("role",i._config.role)("aria-labelledby",i._config.ariaLabel?null:i._ariaLabelledBy)("aria-label",i._config.ariaLabel)("aria-describedby",i._config.ariaDescribedBy||null),vp("@dialogContainer",i._getAnimationState()))},features:[Se],decls:1,vars:0,consts:[["cdkPortalOutlet",""]],template:function(e,i){1&e&&H(0,U6,0,0,"ng-template",0)},dependencies:[ks],styles:[".mat-dialog-container{display:block;padding:24px;border-radius:4px;box-sizing:border-box;overflow:auto;outline:0;width:100%;height:100%;min-height:inherit;max-height:inherit}.cdk-high-contrast-active .mat-dialog-container{outline:solid 1px}.mat-dialog-content{display:block;margin:0 -24px;padding:0 24px;max-height:65vh;overflow:auto;-webkit-overflow-scrolling:touch}.mat-dialog-title{margin:0 0 20px;display:block}.mat-dialog-actions{padding:8px 0;display:flex;flex-wrap:wrap;min-height:52px;align-items:center;box-sizing:content-box;margin-bottom:-24px}.mat-dialog-actions.mat-dialog-actions-align-center,.mat-dialog-actions[align=center]{justify-content:center}.mat-dialog-actions.mat-dialog-actions-align-end,.mat-dialog-actions[align=end]{justify-content:flex-end}.mat-dialog-actions .mat-button-base+.mat-button-base,.mat-dialog-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:8px}[dir=rtl] .mat-dialog-actions .mat-button-base+.mat-button-base,[dir=rtl] .mat-dialog-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:0;margin-right:8px}"],encapsulation:2,data:{animation:[q6.dialogContainer]}}),n})();class Rc{constructor(t,e,i){this._ref=t,this._containerInstance=i,this._afterOpened=new N,this._beforeClosed=new N,this._state=0,this.disableClose=e.disableClose,this.id=t.id,i._animationStateChanged.pipe(Tn(r=>"opened"===r.state),sn(1)).subscribe(()=>{this._afterOpened.next(),this._afterOpened.complete()}),i._animationStateChanged.pipe(Tn(r=>"closed"===r.state),sn(1)).subscribe(()=>{clearTimeout(this._closeFallbackTimeout),this._finishDialogClose()}),t.overlayRef.detachments().subscribe(()=>{this._beforeClosed.next(this._result),this._beforeClosed.complete(),this._finishDialogClose()}),On(this.backdropClick(),this.keydownEvents().pipe(Tn(r=>27===r.keyCode&&!this.disableClose&&!yi(r)))).subscribe(r=>{this.disableClose||(r.preventDefault(),T1(this,"keydown"===r.type?"keyboard":"mouse"))})}close(t){this._result=t,this._containerInstance._animationStateChanged.pipe(Tn(e=>"closing"===e.state),sn(1)).subscribe(e=>{this._beforeClosed.next(t),this._beforeClosed.complete(),this._ref.overlayRef.detachBackdrop(),this._closeFallbackTimeout=setTimeout(()=>this._finishDialogClose(),e.totalTime+100)}),this._state=1,this._containerInstance._startExitAnimation()}afterOpened(){return this._afterOpened}afterClosed(){return this._ref.closed}beforeClosed(){return this._beforeClosed}backdropClick(){return this._ref.backdropClick}keydownEvents(){return this._ref.keydownEvents}updatePosition(t){let e=this._ref.config.positionStrategy;return t&&(t.left||t.right)?t.left?e.left(t.left):e.right(t.right):e.centerHorizontally(),t&&(t.top||t.bottom)?t.top?e.top(t.top):e.bottom(t.bottom):e.centerVertically(),this._ref.updatePosition(),this}updateSize(t="",e=""){return this._ref.updateSize(t,e),this}addPanelClass(t){return this._ref.addPanelClass(t),this}removePanelClass(t){return this._ref.removePanelClass(t),this}getState(){return this._state}_finishDialogClose(){this._state=2,this._ref.close(this._result,{focusOrigin:this._closeInteractionType}),this.componentInstance=null}}function T1(n,t,e){return n._closeInteractionType=t,n.close(e)}const W6=new me("MatDialogData"),$6=new me("mat-dialog-default-options"),x1=new me("mat-dialog-scroll-strategy"),Y6={provide:x1,deps:[lr],useFactory:function K6(n){return()=>n.scrollStrategies.block()}};let Q6=0,J6=(()=>{class n{constructor(e,i,r,o,s,a,l,c,u,d){this._overlay=e,this._defaultOptions=r,this._parentDialog=o,this._dialogRefConstructor=l,this._dialogContainerType=c,this._dialogDataToken=u,this._openDialogsAtThisLevel=[],this._afterAllClosedAtThisLevel=new N,this._afterOpenedAtThisLevel=new N,this._idPrefix="mat-dialog-",this.afterAllClosed=la(()=>this.openDialogs.length?this._getAfterAllClosed():this._getAfterAllClosed().pipe(ni(void 0))),this._scrollStrategy=a,this._dialog=i.get(u1)}get openDialogs(){return this._parentDialog?this._parentDialog.openDialogs:this._openDialogsAtThisLevel}get afterOpened(){return this._parentDialog?this._parentDialog.afterOpened:this._afterOpenedAtThisLevel}_getAfterAllClosed(){const e=this._parentDialog;return e?e._getAfterAllClosed():this._afterAllClosedAtThisLevel}open(e,i){let r;(i={...this._defaultOptions||new kc,...i}).id=i.id||`${this._idPrefix}${Q6++}`,i.scrollStrategy=i.scrollStrategy||this._scrollStrategy();const o=this._dialog.open(e,{...i,positionStrategy:this._overlay.position().global().centerHorizontally().centerVertically(),disableClose:!0,closeOnDestroy:!1,container:{type:this._dialogContainerType,providers:()=>[{provide:kc,useValue:i},{provide:Of,useValue:i}]},templateContext:()=>({dialogRef:r}),providers:(s,a,l)=>(r=new this._dialogRefConstructor(s,i,l),r.updatePosition(i?.position),[{provide:this._dialogContainerType,useValue:l},{provide:this._dialogDataToken,useValue:a.data},{provide:this._dialogRefConstructor,useValue:r}])});return r.componentInstance=o.componentInstance,this.openDialogs.push(r),this.afterOpened.next(r),r.afterClosed().subscribe(()=>{const s=this.openDialogs.indexOf(r);s>-1&&(this.openDialogs.splice(s,1),this.openDialogs.length||this._getAfterAllClosed().next())}),r}closeAll(){this._closeDialogs(this.openDialogs)}getDialogById(e){return this.openDialogs.find(i=>i.id===e)}ngOnDestroy(){this._closeDialogs(this._openDialogsAtThisLevel),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete()}_closeDialogs(e){let i=e.length;for(;i--;)e[i].close()}}return n.\u0275fac=function(e){Yl()},n.\u0275prov=ge({token:n,factory:n.\u0275fac}),n})(),Wo=(()=>{class n extends J6{constructor(e,i,r,o,s,a,l,c){super(e,i,o,a,l,s,Rc,G6,W6,c)}}return n.\u0275fac=function(e){return new(e||n)(M(lr),M(Vn),M(Wa,8),M($6,8),M(x1),M(n,12),M(Rf),M(qn,8))},n.\u0275prov=ge({token:n,factory:n.\u0275fac}),n})(),Z6=0,X6=(()=>{class n{constructor(e,i,r){this.dialogRef=e,this._elementRef=i,this._dialog=r,this.type="button"}ngOnInit(){this.dialogRef||(this.dialogRef=M1(this._elementRef,this._dialog.openDialogs))}ngOnChanges(e){const i=e._matDialogClose||e._matDialogCloseResult;i&&(this.dialogResult=i.currentValue)}_onButtonClick(e){T1(this.dialogRef,0===e.screenX&&0===e.screenY?"keyboard":"mouse",this.dialogResult)}}return n.\u0275fac=function(e){return new(e||n)(p(Rc,8),p(Je),p(Wo))},n.\u0275dir=fe({type:n,selectors:[["","mat-dialog-close",""],["","matDialogClose",""]],hostVars:2,hostBindings:function(e,i){1&e&&W("click",function(o){return i._onButtonClick(o)}),2&e&&rt("aria-label",i.ariaLabel||null)("type",i.type)},inputs:{ariaLabel:["aria-label","ariaLabel"],type:"type",dialogResult:["mat-dialog-close","dialogResult"],_matDialogClose:["matDialogClose","_matDialogClose"]},exportAs:["matDialogClose"],features:[Rn]}),n})(),tq=(()=>{class n{constructor(e,i,r){this._dialogRef=e,this._elementRef=i,this._dialog=r,this.id="mat-dialog-title-"+Z6++}ngOnInit(){this._dialogRef||(this._dialogRef=M1(this._elementRef,this._dialog.openDialogs)),this._dialogRef&&Promise.resolve().then(()=>{const e=this._dialogRef._containerInstance;e&&!e._ariaLabelledBy&&(e._ariaLabelledBy=this.id)})}}return n.\u0275fac=function(e){return new(e||n)(p(Rc,8),p(Je),p(Wo))},n.\u0275dir=fe({type:n,selectors:[["","mat-dialog-title",""],["","matDialogTitle",""]],hostAttrs:[1,"mat-dialog-title"],hostVars:1,hostBindings:function(e,i){2&e&&Ho("id",i.id)},inputs:{id:"id"},exportAs:["matDialogTitle"]}),n})(),yd=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=fe({type:n,selectors:[["","mat-dialog-content",""],["mat-dialog-content"],["","matDialogContent",""]],hostAttrs:[1,"mat-dialog-content"]}),n})(),I1=(()=>{class n{constructor(){this.align="start"}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=fe({type:n,selectors:[["","mat-dialog-actions",""],["mat-dialog-actions"],["","matDialogActions",""]],hostAttrs:[1,"mat-dialog-actions"],hostVars:4,hostBindings:function(e,i){2&e&&bt("mat-dialog-actions-align-center","center"===i.align)("mat-dialog-actions-align-end","end"===i.align)},inputs:{align:"align"}}),n})();function M1(n,t){let e=n.nativeElement.parentElement;for(;e&&!e.classList.contains("mat-dialog-container");)e=e.parentElement;return e?t.find(i=>i.id===e.id):null}let k1=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=ht({type:n}),n.\u0275inj=dt({providers:[Wo,Y6],imports:[b6,Ic,Xa,Lt,Lt]}),n})();const nq=["mat-button",""],iq=["*"],oq=["mat-button","mat-flat-button","mat-icon-button","mat-raised-button","mat-stroked-button","mat-mini-fab","mat-fab"],sq=da(Rs(Go(class{constructor(n){this._elementRef=n}})));let tl=(()=>{class n extends sq{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 o of oq)this._hasHostAttributes(o)&&this._getHostElement().classList.add(o);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)(p(Je),p(Do),p(qn,8))},n.\u0275cmp=Ue({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&&De(xr,5),2&e){let r;ce(r=ue())&&(i.ripple=r.first)}},hostAttrs:[1,"mat-focus-indicator"],hostVars:5,hostBindings:function(e,i){2&e&&(rt("disabled",i.disabled||null),bt("_mat-animation-noopable","NoopAnimations"===i._animationMode)("mat-button-disabled",i.disabled))},inputs:{disabled:"disabled",disableRipple:"disableRipple",color:"color"},exportAs:["matButton"],features:[Se],attrs:nq,ngContentSelectors:iq,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&&(Pn(),g(0,"span",0),Bt(1),_(),be(2,"span",1)(3,"span",2)),2&e&&(f(2),bt("mat-button-ripple-round",i.isRoundButton||i.isIconButton),v("matRippleDisabled",i._isRippleDisabled())("matRippleCentered",i.isIconButton)("matRippleTrigger",i._getHostElement()))},dependencies:[xr],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})(),R1=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=ht({type:n}),n.\u0275inj=dt({imports:[ha,Lt,Lt]}),n})();function aq(n,t){if(1&n){const e=Ie();g(0,"div",2)(1,"button",3),W("click",function(){return J(e),Z(C().action())}),j(2),_()()}if(2&n){const e=C();f(2),ve(e.data.action)}}function lq(n,t){}const O1=new me("MatSnackBarData");class Ff{constructor(){this.politeness="assertive",this.announcementMessage="",this.duration=0,this.data=null,this.horizontalPosition="center",this.verticalPosition="bottom"}}const cq=Math.pow(2,31)-1;class Tb{constructor(t,e){this._overlayRef=e,this._afterDismissed=new N,this._afterOpened=new N,this._onAction=new N,this._dismissedByAction=!1,this.containerInstance=t,t._onExit.subscribe(()=>this._finishDismiss())}dismiss(){this._afterDismissed.closed||this.containerInstance.exit(),clearTimeout(this._durationTimeoutId)}dismissWithAction(){this._onAction.closed||(this._dismissedByAction=!0,this._onAction.next(),this._onAction.complete(),this.dismiss()),clearTimeout(this._durationTimeoutId)}closeWithAction(){this.dismissWithAction()}_dismissAfter(t){this._durationTimeoutId=setTimeout(()=>this.dismiss(),Math.min(t,cq))}_open(){this._afterOpened.closed||(this._afterOpened.next(),this._afterOpened.complete())}_finishDismiss(){this._overlayRef.dispose(),this._onAction.closed||this._onAction.complete(),this._afterDismissed.next({dismissedByAction:this._dismissedByAction}),this._afterDismissed.complete(),this._dismissedByAction=!1}afterDismissed(){return this._afterDismissed}afterOpened(){return this.containerInstance._onEnter}onAction(){return this._onAction}}let uq=(()=>{class n{constructor(e,i){this.snackBarRef=e,this.data=i}action(){this.snackBarRef.dismissWithAction()}get hasAction(){return!!this.data.action}}return n.\u0275fac=function(e){return new(e||n)(p(Tb),p(O1))},n.\u0275cmp=Ue({type:n,selectors:[["simple-snack-bar"]],hostAttrs:[1,"mat-simple-snackbar"],decls:3,vars:2,consts:[[1,"mat-simple-snack-bar-content"],["class","mat-simple-snackbar-action",4,"ngIf"],[1,"mat-simple-snackbar-action"],["mat-button","",3,"click"]],template:function(e,i){1&e&&(g(0,"span",0),j(1),_(),H(2,aq,3,1,"div",1)),2&e&&(f(1),ve(i.data.message),f(1),v("ngIf",i.hasAction))},dependencies:[pn,tl],styles:[".mat-simple-snackbar{display:flex;justify-content:space-between;align-items:center;line-height:20px;opacity:1}.mat-simple-snackbar-action{flex-shrink:0;margin:-8px -8px -8px 8px}.mat-simple-snackbar-action button{max-height:36px;min-width:0}[dir=rtl] .mat-simple-snackbar-action{margin-left:-8px;margin-right:8px}.mat-simple-snack-bar-content{overflow:hidden;text-overflow:ellipsis}"],encapsulation:2,changeDetection:0}),n})();const dq={snackBarState:So("state",[li("void, hidden",qt({transform:"scale(0.8)",opacity:0})),li("visible",qt({transform:"scale(1)",opacity:1})),bi("* => visible",Oi("150ms cubic-bezier(0, 0, 0.2, 1)")),bi("* => void, * => hidden",Oi("75ms cubic-bezier(0.4, 0.0, 1, 1)",qt({opacity:0})))])};let hq=(()=>{class n extends kf{constructor(e,i,r,o,s){super(),this._ngZone=e,this._elementRef=i,this._changeDetectorRef=r,this._platform=o,this.snackBarConfig=s,this._announceDelay=150,this._destroyed=!1,this._onAnnounce=new N,this._onExit=new N,this._onEnter=new N,this._animationState="void",this.attachDomPortal=a=>{this._assertNotAttached();const l=this._portalOutlet.attachDomPortal(a);return this._afterPortalAttached(),l},this._live="assertive"!==s.politeness||s.announcementMessage?"off"===s.politeness?"off":"polite":"assertive",this._platform.FIREFOX&&("polite"===this._live&&(this._role="status"),"assertive"===this._live&&(this._role="alert"))}attachComponentPortal(e){this._assertNotAttached();const i=this._portalOutlet.attachComponentPortal(e);return this._afterPortalAttached(),i}attachTemplatePortal(e){this._assertNotAttached();const i=this._portalOutlet.attachTemplatePortal(e);return this._afterPortalAttached(),i}onAnimationEnd(e){const{fromState:i,toState:r}=e;if(("void"===r&&"void"!==i||"hidden"===r)&&this._completeExit(),"visible"===r){const o=this._onEnter;this._ngZone.run(()=>{o.next(),o.complete()})}}enter(){this._destroyed||(this._animationState="visible",this._changeDetectorRef.detectChanges(),this._screenReaderAnnounce())}exit(){return this._ngZone.run(()=>{this._animationState="hidden",this._elementRef.nativeElement.setAttribute("mat-exit",""),clearTimeout(this._announceTimeoutId)}),this._onExit}ngOnDestroy(){this._destroyed=!0,this._completeExit()}_completeExit(){this._ngZone.onMicrotaskEmpty.pipe(sn(1)).subscribe(()=>{this._ngZone.run(()=>{this._onExit.next(),this._onExit.complete()})})}_afterPortalAttached(){const e=this._elementRef.nativeElement,i=this.snackBarConfig.panelClass;i&&(Array.isArray(i)?i.forEach(r=>e.classList.add(r)):e.classList.add(i))}_assertNotAttached(){this._portalOutlet.hasAttached()}_screenReaderAnnounce(){this._announceTimeoutId||this._ngZone.runOutsideAngular(()=>{this._announceTimeoutId=setTimeout(()=>{const e=this._elementRef.nativeElement.querySelector("[aria-hidden]"),i=this._elementRef.nativeElement.querySelector("[aria-live]");if(e&&i){let r=null;this._platform.isBrowser&&document.activeElement instanceof HTMLElement&&e.contains(document.activeElement)&&(r=document.activeElement),e.removeAttribute("aria-hidden"),i.appendChild(e),r?.focus(),this._onAnnounce.next(),this._onAnnounce.complete()}},this._announceDelay)})}}return n.\u0275fac=function(e){return new(e||n)(p(et),p(Je),p(St),p(Nn),p(Ff))},n.\u0275dir=fe({type:n,viewQuery:function(e,i){if(1&e&&De(ks,7),2&e){let r;ce(r=ue())&&(i._portalOutlet=r.first)}},features:[Se]}),n})(),pq=(()=>{class n extends hq{_afterPortalAttached(){super._afterPortalAttached(),"center"===this.snackBarConfig.horizontalPosition&&this._elementRef.nativeElement.classList.add("mat-snack-bar-center"),"top"===this.snackBarConfig.verticalPosition&&this._elementRef.nativeElement.classList.add("mat-snack-bar-top")}}return n.\u0275fac=function(){let t;return function(i){return(t||(t=Pt(n)))(i||n)}}(),n.\u0275cmp=Ue({type:n,selectors:[["snack-bar-container"]],hostAttrs:[1,"mat-snack-bar-container"],hostVars:1,hostBindings:function(e,i){1&e&&gp("@state.done",function(o){return i.onAnimationEnd(o)}),2&e&&vp("@state",i._animationState)},features:[Se],decls:3,vars:2,consts:[["aria-hidden","true"],["cdkPortalOutlet",""]],template:function(e,i){1&e&&(g(0,"div",0),H(1,lq,0,0,"ng-template",1),_(),be(2,"div")),2&e&&(f(2),rt("aria-live",i._live)("role",i._role))},dependencies:[ks],styles:[".mat-snack-bar-container{border-radius:4px;box-sizing:border-box;display:block;margin:24px;max-width:33vw;min-width:344px;padding:14px 16px;min-height:48px;transform-origin:center}.cdk-high-contrast-active .mat-snack-bar-container{border:solid 1px}.mat-snack-bar-handset{width:100%}.mat-snack-bar-handset .mat-snack-bar-container{margin:8px;max-width:100%;min-width:0;width:100%}"],encapsulation:2,data:{animation:[dq.snackBarState]}}),n})(),P1=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=ht({type:n}),n.\u0275inj=dt({imports:[Ic,Xa,$r,R1,Lt,Lt]}),n})();const L1=new me("mat-snack-bar-default-options",{providedIn:"root",factory:function fq(){return new Ff}});let mq=(()=>{class n{constructor(e,i,r,o,s,a){this._overlay=e,this._live=i,this._injector=r,this._breakpointObserver=o,this._parentSnackBar=s,this._defaultConfig=a,this._snackBarRefAtThisLevel=null}get _openedSnackBarRef(){const e=this._parentSnackBar;return e?e._openedSnackBarRef:this._snackBarRefAtThisLevel}set _openedSnackBarRef(e){this._parentSnackBar?this._parentSnackBar._openedSnackBarRef=e:this._snackBarRefAtThisLevel=e}openFromComponent(e,i){return this._attach(e,i)}openFromTemplate(e,i){return this._attach(e,i)}open(e,i="",r){const o={...this._defaultConfig,...r};return o.data={message:e,action:i},o.announcementMessage===e&&(o.announcementMessage=void 0),this.openFromComponent(this.simpleSnackBarComponent,o)}dismiss(){this._openedSnackBarRef&&this._openedSnackBarRef.dismiss()}ngOnDestroy(){this._snackBarRefAtThisLevel&&this._snackBarRefAtThisLevel.dismiss()}_attachSnackBarContainer(e,i){const o=Vn.create({parent:i&&i.viewContainerRef&&i.viewContainerRef.injector||this._injector,providers:[{provide:Ff,useValue:i}]}),s=new pd(this.snackBarContainerComponent,i.viewContainerRef,o),a=e.attach(s);return a.instance.snackBarConfig=i,a.instance}_attach(e,i){const r={...new Ff,...this._defaultConfig,...i},o=this._createOverlay(r),s=this._attachSnackBarContainer(o,r),a=new Tb(s,o);if(e instanceof yn){const l=new Ms(e,null,{$implicit:r.data,snackBarRef:a});a.instance=s.attachTemplatePortal(l)}else{const l=this._createInjector(r,a),c=new pd(e,void 0,l),u=s.attachComponentPortal(c);a.instance=u.instance}return this._breakpointObserver.observe("(max-width: 599.98px) and (orientation: portrait)").pipe(Jt(o.detachments())).subscribe(l=>{o.overlayElement.classList.toggle(this.handsetCssClass,l.matches)}),r.announcementMessage&&s._onAnnounce.subscribe(()=>{this._live.announce(r.announcementMessage,r.politeness)}),this._animateSnackBar(a,r),this._openedSnackBarRef=a,this._openedSnackBarRef}_animateSnackBar(e,i){e.afterDismissed().subscribe(()=>{this._openedSnackBarRef==e&&(this._openedSnackBarRef=null),i.announcementMessage&&this._live.clear()}),this._openedSnackBarRef?(this._openedSnackBarRef.afterDismissed().subscribe(()=>{e.containerInstance.enter()}),this._openedSnackBarRef.dismiss()):e.containerInstance.enter(),i.duration&&i.duration>0&&e.afterOpened().subscribe(()=>e._dismissAfter(i.duration))}_createOverlay(e){const i=new xc;i.direction=e.direction;let r=this._overlay.position().global();const o="rtl"===e.direction,s="left"===e.horizontalPosition||"start"===e.horizontalPosition&&!o||"end"===e.horizontalPosition&&o,a=!s&&"center"!==e.horizontalPosition;return s?r.left("0"):a?r.right("0"):r.centerHorizontally(),"top"===e.verticalPosition?r.top("0"):r.bottom("0"),i.positionStrategy=r,this._overlay.create(i)}_createInjector(e,i){return Vn.create({parent:e&&e.viewContainerRef&&e.viewContainerRef.injector||this._injector,providers:[{provide:Tb,useValue:i},{provide:O1,useValue:e.data}]})}}return n.\u0275fac=function(e){return new(e||n)(M(lr),M(ub),M(Vn),M(sb),M(n,12),M(L1))},n.\u0275prov=ge({token:n,factory:n.\u0275fac}),n})(),bd=(()=>{class n extends mq{constructor(e,i,r,o,s,a){super(e,i,r,o,s,a),this.simpleSnackBarComponent=uq,this.snackBarContainerComponent=pq,this.handsetCssClass="mat-snack-bar-handset"}}return n.\u0275fac=function(e){return new(e||n)(M(lr),M(ub),M(Vn),M(sb),M(n,12),M(L1))},n.\u0275prov=ge({token:n,factory:n.\u0275fac,providedIn:P1}),n})(),tn=(()=>{class n{constructor(e,i,r){this.snackBar=e,this.globals=i,this.lsm=r,this.snackBarConfig={duration:3500,horizontalPosition:"center",verticalPosition:"bottom",panelClass:""},this.defaultTitle="",this.connectionTimeout=null,this.waitForAsyncMessage()}showSnackBarWithDelay(e,i,r){const o=this.snackBar.open(e,i,r),s=document.querySelector(".mat-snack-bar-container");return s&&(s.classList.add("hidden"),setTimeout(()=>{s.classList.remove("hidden")},500)),o}showError(e,i=this.defaultTitle,r,o=3e3){(null===e||""===e?.trim())&&(e="An error occurred. Please try again.");const s={...this.snackBarConfig,duration:r?void 0:o,panelClass:"error-snackbar"};this.showSnackBarWithDelay(e,this.globals.languageConfLocal.dismissMessage,s)}waitForAsyncMessage(){setInterval(()=>{let e=this.lsm.getValue(Zt.asyncMessage);if(e){let i=JSON.parse(e);switch(i.type){case er.error:this.showError(i.message,"",void 0,1e4);break;case er.info:this.showInfo(i.message);break;case er.success:let o=(i.message.split(" ").length-1)/3*1e3;this.showSuccess(i.message,"",o);break;case er.warning:this.showWarning(i.message);break;default:this.showCommon(i.message)}}this.lsm.removeValue(Zt.asyncMessage)},1e3)}showMessageAsync(e,i){let r=JSON.stringify({message:e,type:i});this.lsm.setValue(Zt.asyncMessage,r)}showInfo(e,i=this.defaultTitle){const r={...this.snackBarConfig,panelClass:"info-snackbar"};this.showSnackBarWithDelay(e,"OK",r)}showSuccess(e,i=this.defaultTitle,r=3e3){const o={...this.snackBarConfig,duration:r,panelClass:"success-snackbar"};this.showSnackBarWithDelay(e,"OK",o)}showWarning(e,i=this.defaultTitle){const r={...this.snackBarConfig,panelClass:"warning-snackbar"};this.showSnackBarWithDelay(e,"OK",r)}showCommon(e,i=this.defaultTitle){const r={...this.snackBarConfig,panelClass:"common-snackbar"};this.showSnackBarWithDelay(e,"OK",r)}setConnectionTimeout(e,i=this.defaultTitle){this.clearConnectionTimeout(),this.connectionTimeout=setTimeout(()=>{this.globals.loginOpen||this.showError(e,i,!0)},5e3)}clearConnectionTimeout(){null!=this.connectionTimeout&&(clearTimeout(this.connectionTimeout),this.connectionTimeout=null)}clearSnacks(){this.snackBar.dismiss()}changeClass(e){this.snackBarConfig.panelClass=e}getTimeoutMS(){return this.snackBarConfig.duration}}return n.\u0275fac=function(e){return new(e||n)(M(bd),M(ot),M(Mi))},n.\u0275prov=ge({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();var er=(()=>(function(n){n.error="Error",n.info="Info",n.success="Success",n.warning="Warning"}(er||(er={})),er))();const xb="loginBM.xsp";let N1=(()=>{class n{constructor(e,i,r,o){this.globals=e,this.waitList=i,this.modal=r,this.messageService=o,this.apiOverviewPath="",this.pathFetchInProgress=!1,this.loggedIn=!1,this.loggingOut=!1,this.listenerSet=!1,this.dialog=null,this.options={},this.apiOverviewPath="restBM.xsp/verserest/"}connect(){return new b(e=>{this.createListenerLogin(e),this.loginWindow=this.popupWindow(this.globals.webInt+xb,"login",440,190),this.globals.loginOpen=!0,(!this.loginWindow||this.loginWindow.closed||typeof this.loginWindow.closed>"u")&&(this.loggingOut||this.messageService.showError(this.globals.languageConfLocal.popupBlocked,void 0,!0),"Verse"===this.globals.curConnectorType&&location.reload())})}objectToHttpParams(e){let i=new $t;for(const r in e)if(Object.prototype.hasOwnProperty.call(e,r)){const o=e[r];o&&(i=i.set(r,o))}return i}reload(){if("Owa"===this.globals.curConnectorType)window.location.reload();else if(sessionStorage.setItem("verseAppData",JSON.stringify(this.globals.curConnector.data)),window,!window.location.href.includes("index.html")){let i="index.html";window.location.href.endsWith("/")||(i="/"+i),window.location.href+=i}}getReqModal(e,i){return this.globals.modalCacheFlag?(null==i&&(i=new $t),this.getReq(e,i)):this.getReqNoCache(e,i)}getReqNoCache(e,i,r,o){return null==i&&(i=new $t),i=i.append("noCache","true"),this.getReq(e,i,r,o)}getReq(e,i,r,o){let s;return s=null!=r&&!1===r?this.globals.changeOwnOptions({responseType:"text"}):void 0,!e.includes("keepAlive")&&!o&&this.activateSpinner(),null==i&&(i=new $t),new b(a=>{this.getReqHandler(e,i,a,0,s,r)})}getReqHandler(e,i,r,o,s,a){var l=this;return Ae(function*(){if(null!=l.pathInfo){let u,c=l.globals.webInt+l.apiOverviewPath+l.pathInfo[e].relativePath;u=s?l.globals.changeOwnOptions(s):l.globals.objectWithParams(i),c+="?"+i.toString(),yield fetch(c,u).then(function(){var d=Ae(function*(h){let m;m=null==a||a?yield h.json():yield h.text(),r.next(m),r.complete(),l.globals.hideSpinner()});return function(h){return d.apply(this,arguments)}}()).catch(d=>{r.error(),l.globals.hideSpinner()})}else 10==++o?(null===window.localStorage.getItem("webInt")||l.globals.hideSpinner(),r.error()):setTimeout(()=>{l.getReqHandler(e,i,r,o)},500)})()}postReq(e,i,r=!0,o,s,a){var l=this;if((void 0===s||!s)&&this.activateSpinner(),i instanceof $t&&(i=i.toString()),r){if(!o){const c={method:"POST",body:i};"object"==typeof i&&(c.body=JSON.stringify(i),c.headers={"Content-Type":"application/json"}),o=this.globals.changeOwnOptions(c)}}else if(o)o.method="POST",o.responseType="text","object"==typeof i?(o.headers={"Content-Type":"application/json"},o.body=JSON.stringify(i)):o.body=i,o=this.globals.changeOwnOptions(o);else{const c={responseType:"text",method:"POST",body:i};"object"==typeof i&&(c.body=JSON.stringify(i),c.headers={"Content-Type":"application/json"}),o=this.globals.changeOwnOptions(c)}return o&&(o.method="POST","object"==typeof i?(o.headers={"Content-Type":"application/json"},o.body=JSON.stringify(i)):o.body=i,o=this.globals.changeOwnOptions(o)),new b(c=>{if(null!=this.pathInfo){let u=this.globals.webInt+this.apiOverviewPath+this.pathInfo[e].relativePath;a&&(u+=a),vt(fetch(u,o)).subscribe({next:(d=Ae(function*(h){if(200===h.status){let m;m=null==r||r?yield h.json():yield h.text(),c.next(m),l.globals.hideSpinner()}else c.error(h),l.globals.hideSpinner()}),function(m){return d.apply(this,arguments)}),error:d=>{c.error(d),this.globals.hideSpinner()},complete:()=>{}})}var d})}postSoap(e,i){var r=this;return Ae(function*(){r.activateSpinner();const o=yield fetch(e,{method:"POST",mode:"cors",cache:"no-cache",credentials:"include",headers:{"Content-Type":"text/xml",SOAPAction:"basicInvoke"},redirect:"follow",referrerPolicy:"no-referrer",body:i});return r.globals.hideSpinner(),o})()}processPath(){return new b(e=>{if(this.pathFetchInProgress)this.waitList.addToWaitList("path",e);else{this.pathFetchInProgress=!0;const i=vt(fetch(this.globals.webInt+this.apiOverviewPath,this.globals.options));null!=this.pathInfo?(this.processPathWaitingList(),this.pathFetchInProgress=!1,e.next(this.pathInfo),e.complete()):this.loginConnect(i,e)}})}processAddress(e){return e=e.set("filterImg","true"),new b(i=>{null!=this.pathInfo&&this.postReq("addresses",e,!0).subscribe({next:r=>{for(let o of r.data)o.url=this.createWebintLink(o.pointer),o.parentUrl=this.createWebintLink(o.companyPointer);i.next(r),i.complete()},error:r=>{},complete:()=>{}})})}waitForLC(){return new b(e=>{null==this.pathInfo?this.processPath().subscribe(()=>{this.processLCHandler(e)}):this.processLCHandler(e)})}processLCHandler(e){var o,i=this;null!=this.pathInfo&&(Object.keys(this.globals.languageConf).length>0?(e.next(!0),e.complete()):vt(fetch(this.globals.webInt+this.apiOverviewPath+this.pathInfo.translation.relativePath+"/businessmail",this.globals.options)).subscribe({next:(o=Ae(function*(s){200!==s.status?e.error(yield s.text()):(i.globals.languageConf=yield s.json(),e.next(!0),e.complete())}),function(a){return o.apply(this,arguments)}),error:o=>{},complete:()=>{}}))}checkWebInt(e){var i=this;return Ae(function*(){return i.activateSpinner(),yield fetch(e+xb,{method:"HEAD"}).then(r=>404===r.status?(i.messageService.showError(i.globals.languageConfLocal.webIntCertError+" "+e,void 0,!0),i.globals.hideSpinner(),!1):(window.localStorage.setItem("webInt",encodeURI(e)),i.globals.webInt=encodeURI(e),!0)).catch(()=>(i.messageService.showError(i.globals.languageConfLocal.webIntCertError+" "+e,void 0,!0),i.globals.hideSpinner(),!1))})()}resetListener(){this.listenerSet=!1}logout(e){var i=this;return Ae(function*(){if(i.activateSpinner(),"gi"===i.globals.system){let r=window.open(i.globals.webInt+"?logout","_blank","toolbar=no,status=no,menubar=no,scrollbars=no,resizable=no, 440, 190");setTimeout(()=>{r?.close()},1e3)}var r;vt(fetch(i.globals.webInt.substring(0,i.globals.webInt.length-1)+"?logout",i.globals.options)).subscribe({next:()=>{(void 0===e||!1===e)&&(i.reload(),"Verse"===i.globals.curConnectorType&&location.reload())},error:(r=Ae(function*(o){const s=yield fetch(i.globals.webInt+"restBM.xsp/verserest/",{method:"get",credentials:"include",cache:"no-cache",mode:"cors"});null!=s.status&&401===s.status?(void 0===e||!1===e)&&i.reload():(null!=s.type&&"cors"===s.type&&(void 0===e||!1===e)&&i.reload(),i.messageService.showError(i.globals.languageConfLocal.webIntLogoutFailed,void 0,!0))}),function(s){return r.apply(this,arguments)})})})()}waitForWebIntModal(){return new b(e=>{this.webIntModalOpen?(e.next(this.webIntModalOpen),e.complete()):this.waitList.addToWaitList("webIntModal",e)})}getUserName(){return new b(e=>{this.getReqNoCache("user",null).subscribe(i=>{e.next(i),e.complete()})})}waitForGraphRequired(){return new b(e=>{this.waitList.addToWaitList("graphRequired",e)})}login(e,i){return Ae(function*(){throw new Error("Method not implemented.")})()}get isLoggedIn(){return this.loggedIn}set webIntModalOpenRef(e){this.webIntModalOpen=e;for(const i of this.waitList.accessWaitList("webIntModal"))i.next(e),i.complete()}getPath(e,i=!0){return this.pathInfo?this.globals.webInt+(i?this.apiOverviewPath:"")+this.pathInfo[e].relativePath:""}activateSpinner(){this.globals.webInt&&""!==this.globals.webInt&&this.globals.showSpinner()}processPathWaitingList(){this.waitList.accessWaitList("path").forEach(e=>{null!=this.pathInfo?(e.next(this.pathInfo),e.complete()):e.error()})}loginConnect(e,i){this.globals.webInt&&this.loginConnectHandler(e,i)}loginConnectHandler(e,i){var o,r=this;e.subscribe({next:(o=Ae(function*(s){200!==s.status?r.loginConnectError(s,e,i):(r.pathInfo=yield s.clone().json(),r.loggedIn=!0,r.keepAlive(),r.checkIfLoggedIn(e,i))}),function(a){return o.apply(this,arguments)}),error:o=>{this.loginConnectError(o,e,i)},complete:()=>{}})}loginConnectError(e,i,r){var o=this;return Ae(function*(){o.loggedIn=!1,401===e.status||200===e.status?o.connect().subscribe(o.connectHandler(i,r)):(o.processPathWaitingList(),o.pathFetchInProgress=!1)})()}keepAlive(){var e=this;null!=this.keepAliveInterval&&clearInterval(this.keepAliveInterval),this.keepAliveInterval=setInterval(Ae(function*(){const i=e.getReqNoCache("keepAlive",null,!1).subscribe(()=>{i.unsubscribe()})}),55e3)}connectHandler(e,i){return{next:()=>{},error:r=>{},complete:()=>{const r=vt(fetch(this.globals.webInt+this.apiOverviewPath,this.globals.options));this.loginConnect(r,i)}}}waitForPlatformType(){return new b(e=>{this.waitList.addToWaitList("platform",e)})}processOutlookMessage(e){"message"in e&&null!=this.dialog&&"ready"===e.message.toLowerCase()&&this.dialog.messageChild(this.globals.webInt+xb)}onDialogClose(e,i){if(console.log(i),"error"in i&&12006===i.error){console.log("DIALOG CLOSED"),this.activateSpinner(),e.next("OK"),e.complete(),this.globals.loginOpen=!1;for(const r of this.waitList.accessWaitList("login"))r.next("OK"),r.next("complete")}}checkIfLoggedIn(e,i){var r=this;return Ae(function*(){if(null!=r.pathInfo){let o=new $t;o=o.set("noCache","true"),r.getReqNoCache("keepAlive",null,!1).subscribe({next:(s=Ae(function*(a){null==a||"OK"!==a?r.connect().subscribe(r.connectHandler(e,i)):(r.processPathWaitingList(),r.pathFetchInProgress=!1,i.next(a),i.complete())}),function(l){return s.apply(this,arguments)}),error:s=>{r.connect().subscribe(r.connectHandler(e,i))}})}var s})()}popupWindow(e,i,r,o){if(!this.loggingOut){const s=screen.width/2-r/2,a=screen.height/2-o/2;return window.open(e,i,"toolbar=no, location=no, directories=no, status=no, menubar=no, scrollbars=no, resizable=no, copyhistory=no, width="+r+", height="+o+", top="+a+", left="+s)}return null}createListenerLogin(e){var i=this;this.listenerSet||(setTimeout(()=>{this.globals.hideSpinner()},4e3),window.addEventListener("message",this.messageListener=function(){var r=Ae(function*(o){if(o.origin===i.globals.origin)if("OK"===o.data){null!=i.loginWindow&&i.loginWindow.close(),window.removeEventListener("message",i.messageListener,!1),i.activateSpinner(),e.next("OK"),e.complete(),i.globals.loginOpen=!1;for(const s of i.waitList.accessWaitList("login"))s.next("OK"),s.next("complete")}else"Close"===o.data&&(i.waitList.addToWaitList("login",e),i.globals.hideSpinner(),i.globals.loginOpen=!1)});return function(o){return r.apply(this,arguments)}}(),!1),this.listenerSet=!0)}createWebintLink(e){return this.globals.convertToLink(e)}getGraphConfiguration(){return new b(e=>{e.next({clientId:"1aff1de1-54b3-4385-a900-2ba79e9d0d35",authority:"https://login.microsoftonline.com/14fb78bd-10c6-4907-a3e7-f8082d2f76ff"})})}}return n.\u0275fac=function(e){return new(e||n)(M(ot),M(Ri),M(Wo),M(tn))},n.\u0275prov=ge({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const bq=new me("JWT_OPTIONS");let Cq=(()=>{class n{constructor(e=null){this.tokenGetter=e&&e.tokenGetter||function(){}}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 s,a,o=0,l=0;a=e.charAt(l++);~a&&(s=o%4?64*s+a:a,o++%4)?r+=String.fromCharCode(255&s>>(-2*o&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=this.tokenGetter()){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=this.tokenGetter()){let i;if(i=this.decodeToken(e),!i||!i.hasOwnProperty("exp"))return null;const r=new Date(0);return r.setUTCSeconds(i.exp),r}isTokenExpired(e=this.tokenGetter(),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)(M(bq))},n.\u0275prov=ge({token:n,factory:n.\u0275fac}),n})(),F1=(()=>{class n{constructor(){this.pathObj=null}get path(){return this.pathObj}isPathSet(){return null!=this.pathObj}waitForPath(){var e=this;return Ae(function*(){return e.pathObj=yield e.createPath(),e.pathObj})()}createPath(){return Ae(function*(){return{addresses:{relativePath:"bm4o/AddressesByMailAddress"},activities:{relativePath:"bm4o/ActivitiesByAddress"},document:{relativePath:"bm4o/DocumentMail"},renew:{relativePath:"auth/renewByToken"},search:{relativePath:"bm4o/SearchContacts"},searchProjects:{relativePath:"BM4OProjects/SearchProjects"},emailAlreadyDocumented:{relativePath:"BM4O/EmailAlreadyDocumented"},activityTypes:{relativePath:"bm4o/DocumentTypes"},addRecentlyUsed:{relativePath:"RecentlyUsed/AddRecentlyUsed"},openRecord:{relativePath:"OpenRecord"},baVersion:{relativePath:"bm4o/GetBAVersion"},getChips:{relativePath:"bm4o/GetChips"},readCRMData:{relativePath:"bm4o/GetCRMData"},extractContact:{relativePath:"RestAddressParser/Parse"},createRecord:{relativePath:"v1/record/"},getEnumValues:{relativePath:"v1/enum/"},checkAlive:{relativePath:"bm4o/CheckAlive"},searchDocuments:{relativePath:"BM4O/SearchDocuments"},graphConfiguration:{relativePath:"BM4O/GetGraphConfiguration"}}})()}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=ge({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const Eq=["alternativeAddresses"],Dq=["pointer","database","mail","imageURL","companyPointer","url","parentUrl","isCompany","gender","base64image"];let Ib=(()=>{class n{constructor(e){this.globals=e}convertAddress(e,i,r){var o=this;return Ae(function*(){const s={},a={},l=[];let c=0;if(i?.addresses)for(const d of i.addresses){const h={name:d.entityTitle,pointer:d.oid,companyName:null!=d.parent?d.parent.entityTitle:void 0,companyPointer:null!=d.parent?d.parent.oid:void 0,isCompany:"fe7eb8ae-71be-4220-8da5-dc04078e6b3c"===d.type.oid,url:d.frontEndUri,additional:{mail:r,homepage:d.homepage,birthdate:d.birthday?new Date(d.birthday).toLocaleDateString():null,skype:d.skypeName,imageURL:null,database:null,phone:d.phoneNumber,cellphone:d.mobileNumber,homephone:d.homePhoneNumber,alternativeAddresses:[],gender:d.gender,base64image:d.base64image,fallback:d.fallback,fullAddress:d.fullAddress}};s[d.oid]=d.frontEndUri,null!=d.parent&&(a.hasOwnProperty(d.parent.oid)?a[d.parent.oid].push(c):a[d.parent.oid]=[c]);const m=yield o.removeEmptyEntries(h);l.push(m),c++}yield o.assignParentUrls(l,s,a),e.next({data:l,ignoreInAddress:Eq,hide:Dq}),e.complete()})()}convertActivity(e,i,r,o){const s=[];let a=this.globals.numericBackendVersion()<9e4?"":this.globals.webInt;for(const c of i.activities){const u={date:c.date,dateInMS:new Date(c.date).getTime(),pointer:c.oid,subject:c.subject,viewIcon:a+c.imageName,viewIconUrl:a+c.imageName,lineTwoOverride:c.lineTwoOverride,url:c.frontEndUri};s.push(u)}e.next({activities:s,selectedType:r,maxEntries:10,type:"activities"})}convertActivityTypes(e){const i=[["Vorg\xe4nge","1"]];i.type="types",e.next(i)}get maxActivities(){return 10}assignParentUrls(e,i,r){return Ae(function*(){for(const o of Object.keys(r))for(const s of r[o])e[s].parentUrl=i[o]})()}removeEmptyEntries(e){return Ae(function*(){for(const[i,r]of Object.entries(e))void 0===r&&e.hasOwnProperty(i)&&delete e[i];return e})()}}return n.\u0275fac=function(e){return new(e||n)(M(ot))},n.\u0275prov=ge({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),Mb=(()=>{class n extends N1{constructor(e,i,r,o,s,a,l){super(e,i,r,o),this.globals=e,this.waitList=i,this.modal=r,this.messageService=o,this.pathBA=s,this.converter=a,this.modalService=l,this.apiOverviewPath="api/",this.jwt=new Cq}connect(){return new b(e=>{this.loginListener(e)})}objectToHttpParams(e){let i=new $t;for(const r in e)if(Object.prototype.hasOwnProperty.call(e,r)){const o=e[r];o&&(i=i.set(r,o))}return i}reload(){if("Owa"===this.globals.curConnectorType)window.location.reload();else if(sessionStorage.setItem("verseAppData",JSON.stringify(this.globals.curConnector.data)),window,!window.location.href.includes("index.html")){let i="index.html";window.location.href.endsWith("/")||(i="/"+i),window.location.href+=i}}getReqModal(e,i){return this.globals.modalCacheFlag?(null==i&&(i=new $t),this.getReq(e,i)):this.getReqNoCache(e,i)}getReqNoCache(e,i,r,o){return null==i&&(i=new $t),i=i.append("noCache","true"),this.getReq(e,i,r,o)}getReq(e,i,r=!0,o,s,a){let l;return l=null!=r&&!1===r?this.globals.changeOwnOptions({responseType:"text"}):void 0,!e.includes("renew")&&!o&&this.activateSpinner(),null==i&&(i=new $t),new b(c=>{this.getReqHandler(e,i,c,0,l,r,s,a)})}getReqHandler(e,i,r,o,s,a,l,c){var u=this;return Ae(function*(){u.processPath().subscribe(Ae(function*(){if(null!=u.pathInfo){let h,d=u.globals.webInt;d+=l?l+u.pathInfo[e].relativePath:u.apiOverviewPath+u.pathInfo[e].relativePath,h=s?u.globals.changeOwnOptions(s):u.globals.objectWithParams(i);const m=yield u.getValidToken();if(""===m)return;h.headers={"Content-Type":"application/json",Authorization:"Bearer "+m},c&&(d+=c),d+="?"+i.toString(),yield fetch(d,h).then(function(){var A=Ae(function*(U){let te;te=null==a||a?yield U.json():yield U.text(),r.next(te),r.complete(),u.globals.hideSpinner()});return function(U){return A.apply(this,arguments)}}()).catch(A=>{r.error(),u.globals.hideSpinner()})}else 3==++o?(null===window.localStorage.getItem("webInt")||u.messageService.setConnectionTimeout(u.globals.languageConfLocal.cantConnect),r.error()):setTimeout(()=>{u.getReqHandler(e,i,r,o)},300)}))})()}postReq(e,i,r=!0,o,s,a,l){if((void 0===s||!s)&&!e.includes("renew")&&this.activateSpinner(),i instanceof $t&&(i=i.toString()),r){if(!o){const c={method:"POST",body:i};"object"==typeof i&&(c.body=JSON.stringify(i),c.headers={"Content-Type":"application/json"}),o=this.globals.changeOwnOptions(c)}}else if(o)o.method="POST",o.responseType="text","object"==typeof i?(o.headers={"Content-Type":"application/json"},o.body=JSON.stringify(i)):o.body=i,o=this.globals.changeOwnOptions(o);else{const c={responseType:"text",method:"POST",body:i};"object"==typeof i&&(c.body=JSON.stringify(i),c.headers={"Content-Type":"application/json"}),o=this.globals.changeOwnOptions(c)}return o&&(o.method="POST","object"==typeof i?(o.headers={"Content-Type":"application/json"},o.body=JSON.stringify(i)):o.body=i,o=this.globals.changeOwnOptions(o)),new b(c=>{this.postReqHandler(c,e,o,r,a,l)})}postReqHandler(e,i,r,o=!0,s,a){var l=this;return Ae(function*(){const c=yield l.getValidToken();if(""!==c&&(r&&(r.headers={"Content-Type":"application/json",Authorization:"Bearer "+c}),null!=l.pathInfo)){let d=l.globals.webInt;d+=a?a+l.pathInfo[i].relativePath:l.apiOverviewPath+l.pathInfo[i].relativePath,s&&(d+=s),vt(fetch(d,r)).subscribe({next:(h=Ae(function*(m){if(200===m.status||201===m.status){let y;y=null==o||o?yield m.json():yield m.text(),e.next(y),l.globals.hideSpinner()}else e.error(m),l.globals.hideSpinner()}),function(y){return h.apply(this,arguments)}),error:h=>{e.error(h),l.globals.hideSpinner()},complete:()=>{}})}var h})()}postSoap(e,i){var r=this;return Ae(function*(){r.activateSpinner();const o=yield fetch(e,{method:"POST",mode:"cors",cache:"no-cache",credentials:"include",headers:{"Content-Type":"text/xml",SOAPAction:"basicInvoke"},redirect:"follow",referrerPolicy:"no-referrer",body:i});return r.globals.hideSpinner(),o})()}processPath(){return new b(e=>{this.pathFetchInProgress?this.waitList.addToWaitList("path",e):(this.pathFetchInProgress=!0,this.pathBA.isPathSet()&&(this.pathInfo=this.pathBA.path),null!=this.pathInfo?(this.processPathWaitingList(),this.pathFetchInProgress=!1,e.next(this.pathInfo),e.complete()):this.pathHandler(e))})}processAddress(e){return new b(i=>{null!=this.pathInfo&&this.getReq("addresses",e,!0).subscribe({next:r=>{this.converter.convertAddress(i,r,e.get("mail"))},error:r=>{},complete:()=>{}})})}waitForLC(){return new b(e=>{null==this.pathInfo?this.processPath().subscribe(()=>{this.processLCHandler(e)}):this.processLCHandler(e)})}processLCHandler(e){null!=this.pathInfo&&(Object.keys(this.globals.languageConf),e.next(!0),e.complete())}checkWebInt(e,i,r){var o=this;return Ae(function*(){i||(e=yield o.trimURL(e)),o.activateSpinner();const a=new Request(e+"api/bm4o/GetBAVersion",{method:"GET"});return yield fetch(a).then(function(){var l=Ae(function*(c){return 401===c.status?"8.0.0":404===c.status?"7.0.0":c.text()});return function(c){return l.apply(this,arguments)}}()).then(function(){var l=Ae(function*(c){o.globals.backendVersion=c});return function(c){return l.apply(this,arguments)}}()).catch(()=>o.globals.backendVersion="7.0.0"),o.globals.webInt===e||(window.localStorage.setItem("webInt",e),o.globals.webInt=e,o.logout(),!1)})()}resetListener(){this.listenerSet=!1}logout(e){var i=this;return Ae(function*(){window.localStorage.removeItem("token"),i.globals.loggedIn=!1,(void 0===e||!1===e)&&i.reload()})()}waitForWebIntModal(){return new b(e=>{this.webIntModalOpen?(e.next(this.webIntModalOpen),e.complete()):this.waitList.addToWaitList("webIntModal",e)})}getUserName(){return new b(e=>{this.userNameHandler(e)})}userNameHandler(e){var i=this;return Ae(function*(){const r=yield i.getValidToken();if(""!==r){const o=i.jwt.decodeToken(r);e.next(o.name),e.complete()}})()}waitForGraphRequired(){return new b(e=>{this.waitList.addToWaitList("graphRequired",e)})}login(e,i){var r=this;return Ae(function*(){if(!(yield r.checkWebInt(r.globals.webInt,void 0,!0)))return r.messageService.showError(r.globals.languageConfLocal.urlInvalidBase,void 0,!0),r.globals.hideSpinner(),!1;const s=new Request(r.globals.webInt+"api/auth/login",{method:"POST",body:JSON.stringify({username:e,password:i}),headers:new Headers({"Content-Type":"application/json"})});if(r.globals.numericBackendVersion()<9e4)return yield r.performLogin(s);{const a=new Request(r.globals.webInt+"api/bm4o/checkAlive",{method:"GET"});yield fetch(a).then(function(){var l=Ae(function*(c){return c.text()});return function(c){return l.apply(this,arguments)}}()).then(function(){var l=Ae(function*(c){if("true"===c)return yield r.performLogin(s);if(c.indexOf("The Application is just starting")>0){let d=c.substring(c.indexOf("The Application is just starting")+33).trim().match(/\d+\s*%/);if(d){let h=parseInt(d[0],10);console.log("Loaded value:",h),r.messageService.showWarning(`${r.globals.languageConfLocal.baInstanceStarting} ${r.globals.languageConfLocal.loaded} ${h}%`)}return r.globals.hideSpinner(),!1}return r.messageService.showError(r.globals.languageConfLocal.baInstanceNotAvailable),r.globals.hideSpinner(),!1});return function(c){return l.apply(this,arguments)}}()).catch(l=>(r.messageService.showError(r.globals.languageConfLocal.baInstanceNotAvailable),r.globals.hideSpinner(),!1))}return!1})()}performLogin(e){var i=this;return Ae(function*(){const r=yield fetch(e).then(o=>o.json()).then(o=>(null!=o.token&&void 0!==o.token?localStorage.setItem("token",o.token):(localStorage.removeItem("token"),i.globals.loggedIn=!1),i.messageService.showSuccess(i.globals.languageConfLocal.loginSuccess),i.globals.hideForLogin=!1,!0)).catch(o=>(localStorage.removeItem("token"),i.globals.loggedIn=!1,i.messageService.showError(i.globals.languageConfLocal.loginFailed),!1));return i.globals.hideSpinner(),r&&i.reload(),r})()}get isLoggedIn(){return this.loggedIn}set webIntModalOpenRef(e){this.webIntModalOpen=e;for(const i of this.waitList.accessWaitList("webIntModal"))i.next(e),i.complete()}activateSpinner(){this.globals.webInt&&""!==this.globals.webInt&&this.globals.showSpinner()}processPathWaitingList(){this.waitList.accessWaitList("path").forEach(e=>{null!=this.pathInfo?(e.next(this.pathInfo),e.complete()):e.error()})}pathHandler(e){var i=this;return Ae(function*(){i.pathInfo=yield i.pathBA.waitForPath(),i.loggedIn=!0,i.keepAlive(),i.checkIfLoggedInBA(i.pathInfo,e)})()}keepAlive(){var e=this;null!=this.keepAliveInterval&&clearInterval(this.keepAliveInterval),this.keepAliveInterval=setInterval(Ae(function*(){const i=window.localStorage.getItem("token");if(null!==i||"undefined"===i){const r=yield e.renewRequest(i);yield fetch(r).then(function(){var s=Ae(function*(a){return a.json()});return function(a){return s.apply(this,arguments)}}()).then(s=>{null!=s.token&&void 0!==s.token?localStorage.setItem("token",s.token):(localStorage.removeItem("token"),e.globals.loggedIn=!1)}).catch(s=>{localStorage.removeItem("token"),e.globals.loggedIn=!1,e.messageService.showError(e.globals.languageConfLocal.tokenFailed)})}else null===i&&(e.globals.loggedIn=!1)}),3e5)}trimURL(e){return Ae(function*(){const i=new URL(e),r=i.pathname;return r.includes("/_")&&(i.pathname=r.substring(0,r.indexOf("/_")+1)),i.toString()})()}renewRequest(e){var i=this;return Ae(function*(){const r=i.jwt.decodeToken(e);return new Request(i.globals.webInt+"api/auth/renewByToken",{method:"POST",body:JSON.stringify({username:encodeURIComponent(r.name)}),headers:new Headers({"Content-Type":"application/json",Authorization:"Bearer "+e})})})()}getValidToken(){var e=this;return Ae(function*(){let i=localStorage.getItem("token");(null===i||"undefined"===i)&&(i=void 0);const r=e.jwt.isTokenExpired(i);if(!r||void 0!==i&&null!=i){if(r){const o=yield e.renewRequest(i);yield fetch(o).then(function(){var a=Ae(function*(l){if(401!==l.status)return l.json();i="",yield e.openLoginModal()});return function(l){return a.apply(this,arguments)}}()).then(a=>{null!=a.token&&void 0!==a.token?localStorage.setItem("token",a.token):(localStorage.removeItem("token"),e.globals.loggedIn=!1)}).catch(a=>{console.log(a),localStorage.removeItem("token"),e.globals.loggedIn=!1,e.messageService.showError(e.globals.languageConfLocal.tokenFailed)})}}else yield e.openLoginModal(),i=localStorage.getItem("token");return null==i&&(i=""),i})()}isTokenValid(){var e=this;return Ae(function*(){let i=localStorage.getItem("token");return(null===i||"undefined"===i)&&(i=void 0),e.jwt.isTokenExpired})()}openLoginModal(){var e=this;return Ae(function*(){e.globals.hideForLogin=!0,e.modalService.changeType({newType:"login"}),e.globals.hideSpinner()})()}loginListener(e){var i=this;return Ae(function*(){if(""!==(yield i.getValidToken())){e.next("OK"),e.complete();for(const o of i.waitList.accessWaitList("login"))o.next("OK"),o.next("complete")}else i.waitList.addToWaitList("login",e),i.globals.hideSpinner()})()}checkIfLoggedInBA(e,i){var r=this;return Ae(function*(){if(null!=r.pathInfo){let o=new $t;o=o.set("noCache","true"),(yield r.isTokenValid())&&(r.processPathWaitingList(),r.pathFetchInProgress=!1,i.next(e),i.complete())}})()}getGraphConfiguration(){return new b(e=>{this.getReq("graphConfiguration",this.objectToHttpParams({}),void 0,!0).subscribe({next:i=>{e.next(i)},error:i=>{e.next({clientId:"1aff1de1-54b3-4385-a900-2ba79e9d0d35",authority:"https://login.microsoftonline.com/14fb78bd-10c6-4907-a3e7-f8082d2f76ff"})}})})}}return n.\u0275fac=function(e){return new(e||n)(M(ot),M(Ri),M(Wo),M(tn),M(F1),M(Ib),M(hl))},n.\u0275prov=ge({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),In=(()=>{class n{constructor(e,i,r,o,s,a,l){this.globals=e,this.waitList=i,this.modal=r,this.messageService=o,this.pathBA=s,this.converter=a,this.modalService=l,this.curConnectionSystem||this.setSystem(this.globals.system)}setSystem(e){var i=this;return Ae(function*(){switch(e){case"gi":i.globals.system="gi",i.curConnectionSystem=new N1(i.globals,i.waitList,i.modal,i.messageService);break;case"ba":i.globals.system="ba",i.curConnectionSystem=new Mb(i.globals,i.waitList,i.modal,i.messageService,i.pathBA,i.converter,i.modalService)}})()}get system(){return this.globals.system}connect(){return this.curConnectionSystem.connect()}objectToHttpParams(e){return this.curConnectionSystem.objectToHttpParams(e)}reload(){this.curConnectionSystem.reload()}getReqModal(e,i){return this.curConnectionSystem.getReqModal(e,i)}getReqNoCache(e,i,r,o){return this.curConnectionSystem.getReqNoCache(e,i,r,o)}getReq(e,i,r,o){return this.curConnectionSystem.getReq(e,i,r,o)}getReqHandler(e,i,r,o,s,a){var l=this;return Ae(function*(){return l.curConnectionSystem.getReqHandler(e,i,r,o,s,a)})()}postReq(e,i,r=!0,o,s,a){return this.curConnectionSystem.postReq(e,i,r,o,s,a)}postSoap(e,i){return new b(r=>{r.next(this.curConnectionSystem.postSoap(e,i))})}processPath(){return this.curConnectionSystem.processPath()}processAddress(e){return this.curConnectionSystem.processAddress(e)}waitForLC(){return this.curConnectionSystem.waitForLC()}processLCHandler(e){this.curConnectionSystem.processLCHandler(e)}checkWebInt(e){var i=this;return Ae(function*(){return i.curConnectionSystem.checkWebInt(e)})()}resetListener(){this.curConnectionSystem.resetListener()}logout(e){var i=this;return Ae(function*(){return i.curConnectionSystem.logout(e)})()}logoutOldSystem(e){return Ae(function*(){return e.logout()})()}waitForWebIntModal(){return this.curConnectionSystem.waitForWebIntModal()}getUserName(){return this.curConnectionSystem.getUserName()}waitForGraphRequired(){return this.curConnectionSystem.waitForGraphRequired()}login(e,i){var r=this;return Ae(function*(){return r.curConnectionSystem.login(e,i)})()}get isLoggedIn(){return this.curConnectionSystem.isLoggedIn}set webIntModalOpenRef(e){this.curConnectionSystem.webIntModalOpenRef=e}getGraphConfiguration(){return this.curConnectionSystem.getGraphConfiguration()}}return n.\u0275fac=function(e){return new(e||n)(M(ot),M(Ri),M(Wo),M(tn),M(F1),M(Ib),M(hl))},n.\u0275prov=ge({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();class xq{constructor(){this.primary=[],this.secondary=[]}}class kb{}let Rb=(()=>{class n{constructor(e){this.waitList=e,this.isInit=!1}set initComplete(e){this.isInit=e,e&&this.informWaitList()}get initComplete(){return this.isInit}waitForInit(){return new b(e=>{e.next(this.isInit),this.isInit?(e.complete(),this.informWaitList()):this.waitList.addToWaitList("init",e)})}informWaitList(){const e=this.waitList.accessWaitList("init");for(const i of e)i.next(this.initComplete),this.initComplete&&i.complete();this.waitList.clearWaitList("init")}}return n.\u0275fac=function(e){return new(e||n)(M(Ri))},n.\u0275prov=ge({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();class Iq{constructor(){this.items=[{name:"createAddressCompany",lc:"LC73000"},{name:"createAddressToCompany",lc:"LC73001"},{name:"createAddressPerson",lc:"LC73003"}]}addNewItem(t,e){this.items.push({name:t,lc:e})}}const j1=[new class Mq{constructor(){this.model={name:"deleteAttachments",value:"",classAssignment:{"":"bmAttachInclude",1:"bmAttachExclude"},titleLC:{"":"LC73172",1:"LC73173"}}}},new class kq{constructor(){this.model={name:"openMail",value:"",classAssignment:{"":"bmDocOFF",1:"bmDocON"},titleLC:{"":"LC73169",1:"LC73168"}}}},new class Rq{constructor(){this.model={name:"createAddress",value:"",classAssignment:{"":"bmPlus",1:"bmMinus"},titleLC:{"":"LC73197",1:"LC73197"}}}}];let H1=(()=>{class n{constructor(e){this.globals=e,this.configData=j1,this.subscribers=[],this.createInstance=new Iq,this.open=!1}connect(){return new b(e=>{this.subscribers.push(e),e.next(this.globals.isCreateBlockOpen)})}updateObservers(){const e=this.globals.isCreateBlockOpen;for(const i of this.subscribers)i.next(e)}toggleOpen(){this.open=!this.open,this.configData[2].model.value=this.isOpen?"1":"",this.globals.createAddressToggle(),this.updateObservers()}get items(){return this.createInstance.items}get isOpen(){return this.open}set config(e){this.configData=e}}return n.\u0275fac=function(e){return new(e||n)(M(ot))},n.\u0275prov=ge({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),Ps=(()=>{class n{constructor(e,i,r,o,s){this.connectionService=e,this.waitListService=i,this.globals=r,this.initService=o,this.createService=s,this.fetchInProgress=!1,this.addressObjectExtended=!1,this.indexToShow=0,this.addressResponseObject={},this.addresses=[]}get toHideList(){return this.addressResponseObject.hide}get currentPointer(){return this.addresses[this.addressIndex].pointer}get currentAddressData(){return this.addresses[this.addressIndex]}get hasAddress(){return this.addresses.length>0}get addressIndex(){return this.indexToShow}set addressIndex(e){this.indexToShow=e,this.notifyIndexSubscriber()}waitForAddresses(){return new b(e=>{this.addresses.length>0?(e.next(this.addresses),e.complete()):this.waitListService.addToWaitList("address",e)})}processAddresses(){return new b(e=>{this.addresses.length<1?this.fetchInProgress?this.waitListService.addToWaitList("address",e):(this.fetchInProgress=!0,this.processData().subscribe({next:i=>{i.forEach(r=>{let o=r;o=this.modifyAdditionalData(o),this.addresses.push(o)}),(i.length<1&&!this.createService.isOpen||i.length>=1&&this.createService.isOpen)&&this.createService.toggleOpen(),e.next(this.addresses),e.complete()},error:()=>{this.processWaitingList(),this.fetchInProgress=!1},complete:()=>{this.processWaitingList(),this.fetchInProgress=!1}})):(e.next(this.addresses),e.complete())})}newProcessAddress(){return new b(e=>{let i=Office.context.mailbox.item,r=new xq;if(i){let s="appointment"===i.itemType;void 0===i.getItemIdAsync||void 0===typeof i.getItemIdAsync?(s?(i?.organizer.emailAddress&&(r.fromEmail=i.organizer.emailAddress,r.fromName=i.organizer.displayName),i?.requiredAttendees.forEach(l=>{this.addIfNotExist(r.primary,l)}),i?.optionalAttendees.forEach(l=>{this.addIfNotExist(r.secondary,l)})):(i?.from.emailAddress&&(r.fromEmail=i.from.emailAddress,r.fromName=i.from.displayName),i?.to.forEach(l=>{this.addIfNotExist(r.primary,l)}),i?.cc.forEach(l=>{this.addIfNotExist(r.secondary,l)})),e.next(r)):s?i.requiredAttendees.getAsync(l=>{l.status===Office.AsyncResultStatus.Failed||i?.optionalAttendees.getAsync(c=>{c.status===Office.AsyncResultStatus.Failed||i?.organizer.getAsync(u=>{u.status===Office.AsyncResultStatus.Failed||(r.fromEmail=u.value.emailAddress,r.fromName=u.value.displayName,l.value.forEach(d=>{this.addIfNotExist(r.primary,d)}),c.value.forEach(d=>{this.addIfNotExist(r.secondary,d)}),e.next(r))})})}):i.to.getAsync(l=>{l.status===Office.AsyncResultStatus.Failed||i?.cc.getAsync(c=>{c.status===Office.AsyncResultStatus.Failed||i?.from.getAsync(u=>{u.status===Office.AsyncResultStatus.Failed||(l.value.forEach(d=>{this.addIfNotExist(r.primary,d)}),c.value.forEach(d=>{this.addIfNotExist(r.secondary,d)}),r.fromEmail=u.value.emailAddress,r.fromName=u.value.displayName,e.next(r))})})})}})}addIfNotExist(e,i){if(!e.some(r=>r.email===i.emailAddress)){let r=new kb;r.email=i.emailAddress,r.display=i.displayName,e.push(r)}}receiverAtendeeChanged(){this.fetchInProgress=!1}addToIndexListenerList(){return new b(e=>{this.waitListService.addToWaitList("index",e)})}resetAddr(){this.addresses=[]}addressChange(){for(const e of this.waitListService.accessWaitList("addressChange"))e.next(!0)}waitForAddressChange(){return new b(e=>{this.waitListService.addToWaitList("addressChange",e)})}modifyAdditionalData(e){const i=this.addressResponseObject.ignoreInAddress;return i&&i.forEach(r=>{e.additional&&delete e.additional[r]}),e}notifyIndexSubscriber(){this.waitListService.accessWaitList("index").forEach(e=>{e.next(this.addressIndex)})}processWaitingList(){this.waitListService.accessWaitList("address").forEach(e=>{this.addresses.length>0?(e.next(this.addresses),e.complete()):e.error("No address found.")}),this.waitListService.clearWaitList("address")}processData(){return new b(e=>{this.connectionService.processPath().subscribe(()=>{this.globals.curMailUnid&&""!==this.globals.curMailUnid?this.addressHandler(e):this.waitListService.addToWaitListFunc("mailAddr",e,this.addressHandler.bind(this))})})}addressHandler(e){let i=new $t;i=i.set("mail",this.globals.curMailAddr),this.connectionService.processAddress(i).subscribe(r=>{this.addressResponseObject=r,e.next(r.data),e.complete(),this.notifyIndexSubscriber(),this.initService.initComplete=!0})}getUrlOrigin(e){return new URL(e).origin}}return n.\u0275fac=function(e){return new(e||n)(M(In),M(Ri),M(ot),M(Rb),M(H1))},n.\u0275prov=ge({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();function Ob(n){return n&&"function"==typeof n.connect&&!(n instanceof Sh)}class V1{applyChanges(t,e,i,r,o){t.forEachOperation((s,a,l)=>{let c,u;if(null==s.previousIndex){const d=i(s,a,l);c=e.createEmbeddedView(d.templateRef,d.context,d.index),u=1}else null==l?(e.remove(a),u=3):(c=e.get(a),e.move(c,l),u=2);o&&o({context:c?.context,operation:u,record:s})})}detach(){}}class nl{constructor(t=!1,e,i=!0,r){this._multiple=t,this._emitChanges=i,this.compareWith=r,this._selection=new Set,this._deselectedToEmit=[],this._selectedToEmit=[],this.changed=new N,e&&e.length&&(t?e.forEach(o=>this._markSelected(o)):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(i=>this._markSelected(i));const e=this._hasQueuedChanges();return this._emitChangeEvent(),e}deselect(...t){this._verifyValueAssignment(t),t.forEach(i=>this._unmarkSelected(i));const e=this._hasQueuedChanges();return this._emitChangeEvent(),e}setSelection(...t){this._verifyValueAssignment(t);const e=this.selected,i=new Set(t);t.forEach(o=>this._markSelected(o)),e.filter(o=>!i.has(o)).forEach(o=>this._unmarkSelected(o));const r=this._hasQueuedChanges();return this._emitChangeEvent(),r}toggle(t){return this.isSelected(t)?this.deselect(t):this.select(t)}clear(t=!0){this._unmarkAll();const e=this._hasQueuedChanges();return t&&this._emitChangeEvent(),e}isSelected(t){if(this.compareWith){for(const e of this._selection)if(this.compareWith(e,t))return!0;return!1}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.isSelected(t)||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){}_hasQueuedChanges(){return!(!this._deselectedToEmit.length&&!this._selectedToEmit.length)}}let q1=(()=>{class n{constructor(){this._listeners=[]}notify(e,i){for(let r of this._listeners)r(e,i)}listen(e){return this._listeners.push(e),()=>{this._listeners=this._listeners.filter(i=>e!==i)}}ngOnDestroy(){this._listeners=[]}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=ge({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const Cd=new me("_ViewRepeater");let Bf=(()=>{class n{constructor(){this._vertical=!1,this._inset=!1}get vertical(){return this._vertical}set vertical(e){this._vertical=lt(e)}get inset(){return this._inset}set inset(e){this._inset=lt(e)}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=Ue({type:n,selectors:[["mat-divider"]],hostAttrs:["role","separator",1,"mat-divider"],hostVars:7,hostBindings:function(e,i){2&e&&(rt("aria-orientation",i.vertical?"vertical":"horizontal"),bt("mat-divider-vertical",i.vertical)("mat-divider-horizontal",!i.vertical)("mat-divider-inset",i.inset))},inputs:{vertical:"vertical",inset:"inset"},decls:0,vars:0,template:function(e,i){},styles:[".mat-divider{display:block;margin:0;border-top-width:1px;border-top-style:solid}.mat-divider.mat-divider-vertical{border-top:0;border-right-width:1px;border-right-style:solid}.mat-divider.mat-divider-inset{margin-left:80px}[dir=rtl] .mat-divider.mat-divider-inset{margin-left:auto;margin-right:80px}"],encapsulation:2,changeDetection:0}),n})(),Oq=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=ht({type:n}),n.\u0275inj=dt({imports:[Lt,Lt]}),n})();const Pq=["*"],Nq=["text"];function Fq(n,t){if(1&n&&be(0,"mat-pseudo-checkbox",5),2&n){const e=C();v("state",e.selected?"checked":"unchecked")("disabled",e.disabled)}}const Bq=["*",[["","mat-list-avatar",""],["","mat-list-icon",""],["","matListAvatar",""],["","matListIcon",""]]],jq=["*","[mat-list-avatar], [mat-list-icon], [matListAvatar], [matListIcon]"];let Hq=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=fe({type:n,selectors:[["","mat-list-avatar",""],["","matListAvatar",""]],hostAttrs:[1,"mat-list-avatar"]}),n})(),Vq=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=fe({type:n,selectors:[["","mat-list-icon",""],["","matListIcon",""]],hostAttrs:[1,"mat-list-icon"]}),n})();const Uq=Go(class{}),qq=Go(class{}),zq={provide:or,useExisting:Xt(()=>$o),multi:!0};class Gq{constructor(t,e){this.source=t,this.options=e}}let Ls=(()=>{class n extends qq{constructor(e,i,r){super(),this._element=e,this._changeDetector=i,this.selectionList=r,this._selected=!1,this._disabled=!1,this._hasFocus=!1,this.selectedChange=new He,this.checkboxPosition="after",this._inputsInitialized=!1}get color(){return this._color||this.selectionList.color}set color(e){this._color=e}get value(){return this._value}set value(e){this.selected&&!this.selectionList.compareWith(e,this.value)&&this._inputsInitialized&&(this.selected=!1),this._value=e}get disabled(){return this._disabled||this.selectionList&&this.selectionList.disabled}set disabled(e){const i=lt(e);i!==this._disabled&&(this._disabled=i,this._changeDetector.markForCheck())}get selected(){return this.selectionList.selectedOptions.isSelected(this)}set selected(e){const i=lt(e);i!==this._selected&&(this._setSelected(i),(i||this.selectionList.multiple)&&this.selectionList._reportValueChange())}ngOnInit(){const e=this.selectionList;e._value&&e._value.some(r=>e.compareWith(this._value,r))&&this._setSelected(!0);const i=this._selected;Promise.resolve().then(()=>{(this._selected||i)&&(this.selected=!0,this._changeDetector.markForCheck())}),this._inputsInitialized=!0}ngAfterContentInit(){!function M6(n,t,e="mat"){n.changes.pipe(ni(n)).subscribe(({length:i})=>{_d(t,`${e}-2-line`,!1),_d(t,`${e}-3-line`,!1),_d(t,`${e}-multi-line`,!1),2===i||3===i?_d(t,`${e}-${i}-line`,!0):i>3&&_d(t,`${e}-multi-line`,!0)})}(this._lines,this._element)}ngOnDestroy(){this.selected&&Promise.resolve().then(()=>{this.selected=!1});const e=this._hasFocus,i=this.selectionList._removeOptionFromList(this);e&&i&&i.focus()}toggle(){this.selected=!this.selected}focus(){this._element.nativeElement.focus()}getLabel(){return this._text&&this._text.nativeElement.textContent||""}_isRippleDisabled(){return this.disabled||this.disableRipple||this.selectionList.disableRipple}_handleClick(){!this.disabled&&(this.selectionList.multiple||!this.selected)&&(this.toggle(),this.selectionList._emitChangeEvent([this]))}_handleFocus(){this.selectionList._setFocusedOption(this),this._hasFocus=!0}_handleBlur(){this.selectionList._onTouched(),this._hasFocus=!1}_getHostElement(){return this._element.nativeElement}_setSelected(e){return e!==this._selected&&(this._selected=e,e?this.selectionList.selectedOptions.select(this):this.selectionList.selectedOptions.deselect(this),this.selectedChange.emit(e),this._changeDetector.markForCheck(),!0)}_markForCheck(){this._changeDetector.markForCheck()}}return n.\u0275fac=function(e){return new(e||n)(p(Je),p(St),p(Xt(()=>$o)))},n.\u0275cmp=Ue({type:n,selectors:[["mat-list-option"]],contentQueries:function(e,i,r){if(1&e&&(jt(r,Hq,5),jt(r,Vq,5),jt(r,I6,5)),2&e){let o;ce(o=ue())&&(i._avatar=o.first),ce(o=ue())&&(i._icon=o.first),ce(o=ue())&&(i._lines=o)}},viewQuery:function(e,i){if(1&e&&De(Nq,5),2&e){let r;ce(r=ue())&&(i._text=r.first)}},hostAttrs:["role","option",1,"mat-list-item","mat-list-option","mat-focus-indicator"],hostVars:15,hostBindings:function(e,i){1&e&&W("focus",function(){return i._handleFocus()})("blur",function(){return i._handleBlur()})("click",function(){return i._handleClick()}),2&e&&(rt("aria-selected",i.selected)("aria-disabled",i.disabled)("tabindex",-1),bt("mat-list-item-disabled",i.disabled)("mat-list-item-with-avatar",i._avatar||i._icon)("mat-primary","primary"===i.color)("mat-accent","primary"!==i.color&&"warn"!==i.color)("mat-warn","warn"===i.color)("mat-list-single-selected-option",i.selected&&!i.selectionList.multiple))},inputs:{disableRipple:"disableRipple",checkboxPosition:"checkboxPosition",color:"color",value:"value",disabled:"disabled",selected:"selected"},outputs:{selectedChange:"selectedChange"},exportAs:["matListOption"],features:[Se],ngContentSelectors:jq,decls:7,vars:5,consts:[[1,"mat-list-item-content"],["mat-ripple","",1,"mat-list-item-ripple",3,"matRippleTrigger","matRippleDisabled"],[3,"state","disabled",4,"ngIf"],[1,"mat-list-text"],["text",""],[3,"state","disabled"]],template:function(e,i){1&e&&(Pn(Bq),g(0,"div",0),be(1,"div",1),H(2,Fq,1,2,"mat-pseudo-checkbox",2),g(3,"div",3,4),Bt(5),_(),Bt(6,1),_()),2&e&&(bt("mat-list-item-content-reverse","after"==i.checkboxPosition),f(1),v("matRippleTrigger",i._getHostElement())("matRippleDisabled",i._isRippleDisabled()),f(1),v("ngIf",i.selectionList.multiple))},dependencies:[xr,y1,pn],encapsulation:2,changeDetection:0}),n})(),$o=(()=>{class n extends Uq{constructor(e,i,r){super(),this._element=e,this._changeDetector=i,this._focusMonitor=r,this._multiple=!0,this._contentInitialized=!1,this.selectionChange=new He,this.color="accent",this.compareWith=(o,s)=>o===s,this._disabled=!1,this.selectedOptions=new nl(this._multiple),this._tabIndex=-1,this._onChange=o=>{},this._destroyed=new N,this._onTouched=()=>{}}get disabled(){return this._disabled}set disabled(e){this._disabled=lt(e),this._markOptionsForCheck()}get multiple(){return this._multiple}set multiple(e){const i=lt(e);i!==this._multiple&&(this._multiple=i,this.selectedOptions=new nl(this._multiple,this.selectedOptions.selected))}ngAfterContentInit(){this._contentInitialized=!0,this._keyManager=new Sf(this.options).withWrap().withTypeAhead().withHomeAndEnd().skipPredicate(()=>!1).withAllowedModifierKeys(["shiftKey"]),this._value&&this._setOptionsFromValues(this._value),this._keyManager.tabOut.pipe(Jt(this._destroyed)).subscribe(()=>{this._allowFocusEscape()}),this.options.changes.pipe(ni(null),Jt(this._destroyed)).subscribe(()=>{this._updateTabIndex()}),this.selectedOptions.changed.pipe(Jt(this._destroyed)).subscribe(e=>{if(e.added)for(let i of e.added)i.selected=!0;if(e.removed)for(let i of e.removed)i.selected=!1}),this._focusMonitor.monitor(this._element).pipe(Jt(this._destroyed)).subscribe(e=>{if("keyboard"===e||"program"===e){let i=0;for(let r=0;r-1&&this._keyManager.activeItemIndex===i&&(i>0?this._keyManager.updateActiveItem(i-1):0===i&&this.options.length>1&&this._keyManager.updateActiveItem(Math.min(i+1,this.options.length-1))),this._keyManager.activeItem}_keydown(e){const i=e.keyCode,r=this._keyManager,o=r.activeItemIndex,s=yi(e);switch(i){case 32:case 13:!s&&!r.isTyping()&&(this._toggleFocusedOption(),e.preventDefault());break;default:if(65===i&&this.multiple&&yi(e,"ctrlKey")&&!r.isTyping()){const a=this.options.some(l=>!l.disabled&&!l.selected);this._setAllOptionsSelected(a,!0,!0),e.preventDefault()}else r.onKeydown(e)}this.multiple&&(38===i||40===i)&&e.shiftKey&&r.activeItemIndex!==o&&this._toggleFocusedOption()}_reportValueChange(){if(this.options&&!this._isDestroyed){const e=this._getSelectedOptionValues();this._onChange(e),this._value=e}}_emitChangeEvent(e){this.selectionChange.emit(new Gq(this,e))}writeValue(e){this._value=e,this.options&&this._setOptionsFromValues(e||[])}setDisabledState(e){this.disabled=e}registerOnChange(e){this._onChange=e}registerOnTouched(e){this._onTouched=e}_setOptionsFromValues(e){this.options.forEach(i=>i._setSelected(!1)),e.forEach(i=>{const r=this.options.find(o=>!o.selected&&this.compareWith(o.value,i));r&&r._setSelected(!0)})}_getSelectedOptionValues(){return this.options.filter(e=>e.selected).map(e=>e.value)}_toggleFocusedOption(){let e=this._keyManager.activeItemIndex;if(null!=e&&this._isValidIndex(e)){let i=this.options.toArray()[e];i&&!i.disabled&&(this._multiple||!i.selected)&&(i.toggle(),this._emitChangeEvent([i]))}}_setAllOptionsSelected(e,i,r){const o=[];return this.options.forEach(s=>{(!i||!s.disabled)&&s._setSelected(e)&&o.push(s)}),o.length&&(this._reportValueChange(),r&&this._emitChangeEvent(o)),o}_isValidIndex(e){return e>=0&&ee._markForCheck())}_allowFocusEscape(){this._tabIndex=-1,setTimeout(()=>{this._tabIndex=0,this._changeDetector.markForCheck()})}_updateTabIndex(){this._tabIndex=0===this.options.length?-1:0}}return n.\u0275fac=function(e){return new(e||n)(p(Je),p(St),p(Do))},n.\u0275cmp=Ue({type:n,selectors:[["mat-selection-list"]],contentQueries:function(e,i,r){if(1&e&&jt(r,Ls,5),2&e){let o;ce(o=ue())&&(i.options=o)}},hostAttrs:["role","listbox",1,"mat-selection-list","mat-list-base"],hostVars:3,hostBindings:function(e,i){1&e&&W("keydown",function(o){return i._keydown(o)}),2&e&&rt("aria-multiselectable",i.multiple)("aria-disabled",i.disabled.toString())("tabindex",i._tabIndex)},inputs:{disableRipple:"disableRipple",color:"color",compareWith:"compareWith",disabled:"disabled",multiple:"multiple"},outputs:{selectionChange:"selectionChange"},exportAs:["matSelectionList"],features:[it([zq]),Se,Rn],ngContentSelectors:Pq,decls:1,vars:0,template:function(e,i){1&e&&(Pn(),Bt(0))},styles:['.mat-subheader{display:flex;box-sizing:border-box;padding:16px;align-items:center}.mat-list-base .mat-subheader{margin:0}button.mat-list-item,button.mat-list-option{padding:0;width:100%;background:none;color:inherit;border:none;outline:inherit;-webkit-tap-highlight-color:rgba(0,0,0,0);text-align:left}[dir=rtl] button.mat-list-item,[dir=rtl] button.mat-list-option{text-align:right}button.mat-list-item::-moz-focus-inner,button.mat-list-option::-moz-focus-inner{border:0}.mat-list-base{padding-top:8px;display:block;-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-list-base .mat-subheader{height:48px;line-height:16px}.mat-list-base .mat-subheader:first-child{margin-top:-8px}.mat-list-base .mat-list-item,.mat-list-base .mat-list-option{display:block;height:48px;-webkit-tap-highlight-color:rgba(0,0,0,0);width:100%;padding:0}.mat-list-base .mat-list-item .mat-list-item-content,.mat-list-base .mat-list-option .mat-list-item-content{display:flex;flex-direction:row;align-items:center;box-sizing:border-box;padding:0 16px;position:relative;height:inherit}.mat-list-base .mat-list-item .mat-list-item-content-reverse,.mat-list-base .mat-list-option .mat-list-item-content-reverse{display:flex;align-items:center;padding:0 16px;flex-direction:row-reverse;justify-content:space-around}.mat-list-base .mat-list-item .mat-list-item-ripple,.mat-list-base .mat-list-option .mat-list-item-ripple{display:block;top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-list-base .mat-list-item.mat-list-item-with-avatar,.mat-list-base .mat-list-option.mat-list-item-with-avatar{height:56px}.mat-list-base .mat-list-item.mat-2-line,.mat-list-base .mat-list-option.mat-2-line{height:72px}.mat-list-base .mat-list-item.mat-3-line,.mat-list-base .mat-list-option.mat-3-line{height:88px}.mat-list-base .mat-list-item.mat-multi-line,.mat-list-base .mat-list-option.mat-multi-line{height:auto}.mat-list-base .mat-list-item.mat-multi-line .mat-list-item-content,.mat-list-base .mat-list-option.mat-multi-line .mat-list-item-content{padding-top:16px;padding-bottom:16px}.mat-list-base .mat-list-item .mat-list-text,.mat-list-base .mat-list-option .mat-list-text{display:flex;flex-direction:column;flex:auto;box-sizing:border-box;overflow:hidden;padding:0}.mat-list-base .mat-list-item .mat-list-text>*,.mat-list-base .mat-list-option .mat-list-text>*{margin:0;padding:0;font-weight:normal;font-size:inherit}.mat-list-base .mat-list-item .mat-list-text:empty,.mat-list-base .mat-list-option .mat-list-text:empty{display:none}.mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:0;padding-left:16px}[dir=rtl] .mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:0}.mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-left:0;padding-right:16px}[dir=rtl] .mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-right:0;padding-left:16px}.mat-list-base .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:16px}.mat-list-base .mat-list-item .mat-list-avatar,.mat-list-base .mat-list-option .mat-list-avatar{flex-shrink:0;width:40px;height:40px;border-radius:50%;object-fit:cover}.mat-list-base .mat-list-item .mat-list-avatar~.mat-divider-inset,.mat-list-base .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:72px;width:calc(100% - 72px)}[dir=rtl] .mat-list-base .mat-list-item .mat-list-avatar~.mat-divider-inset,[dir=rtl] .mat-list-base .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:auto;margin-right:72px}.mat-list-base .mat-list-item .mat-list-icon,.mat-list-base .mat-list-option .mat-list-icon{flex-shrink:0;width:24px;height:24px;font-size:24px;box-sizing:content-box;border-radius:50%;padding:4px}.mat-list-base .mat-list-item .mat-list-icon~.mat-divider-inset,.mat-list-base .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:64px;width:calc(100% - 64px)}[dir=rtl] .mat-list-base .mat-list-item .mat-list-icon~.mat-divider-inset,[dir=rtl] .mat-list-base .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:auto;margin-right:64px}.mat-list-base .mat-list-item .mat-divider,.mat-list-base .mat-list-option .mat-divider{position:absolute;bottom:0;left:0;width:100%;margin:0}[dir=rtl] .mat-list-base .mat-list-item .mat-divider,[dir=rtl] .mat-list-base .mat-list-option .mat-divider{margin-left:auto;margin-right:0}.mat-list-base .mat-list-item .mat-divider.mat-divider-inset,.mat-list-base .mat-list-option .mat-divider.mat-divider-inset{position:absolute}.mat-list-base[dense]{padding-top:4px;display:block}.mat-list-base[dense] .mat-subheader{height:40px;line-height:8px}.mat-list-base[dense] .mat-subheader:first-child{margin-top:-4px}.mat-list-base[dense] .mat-list-item,.mat-list-base[dense] .mat-list-option{display:block;height:40px;-webkit-tap-highlight-color:rgba(0,0,0,0);width:100%;padding:0}.mat-list-base[dense] .mat-list-item .mat-list-item-content,.mat-list-base[dense] .mat-list-option .mat-list-item-content{display:flex;flex-direction:row;align-items:center;box-sizing:border-box;padding:0 16px;position:relative;height:inherit}.mat-list-base[dense] .mat-list-item .mat-list-item-content-reverse,.mat-list-base[dense] .mat-list-option .mat-list-item-content-reverse{display:flex;align-items:center;padding:0 16px;flex-direction:row-reverse;justify-content:space-around}.mat-list-base[dense] .mat-list-item .mat-list-item-ripple,.mat-list-base[dense] .mat-list-option .mat-list-item-ripple{display:block;top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar{height:48px}.mat-list-base[dense] .mat-list-item.mat-2-line,.mat-list-base[dense] .mat-list-option.mat-2-line{height:60px}.mat-list-base[dense] .mat-list-item.mat-3-line,.mat-list-base[dense] .mat-list-option.mat-3-line{height:76px}.mat-list-base[dense] .mat-list-item.mat-multi-line,.mat-list-base[dense] .mat-list-option.mat-multi-line{height:auto}.mat-list-base[dense] .mat-list-item.mat-multi-line .mat-list-item-content,.mat-list-base[dense] .mat-list-option.mat-multi-line .mat-list-item-content{padding-top:16px;padding-bottom:16px}.mat-list-base[dense] .mat-list-item .mat-list-text,.mat-list-base[dense] .mat-list-option .mat-list-text{display:flex;flex-direction:column;flex:auto;box-sizing:border-box;overflow:hidden;padding:0}.mat-list-base[dense] .mat-list-item .mat-list-text>*,.mat-list-base[dense] .mat-list-option .mat-list-text>*{margin:0;padding:0;font-weight:normal;font-size:inherit}.mat-list-base[dense] .mat-list-item .mat-list-text:empty,.mat-list-base[dense] .mat-list-option .mat-list-text:empty{display:none}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:0;padding-left:16px}[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:0}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-left:0;padding-right:16px}[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-right:0;padding-left:16px}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:16px}.mat-list-base[dense] .mat-list-item .mat-list-avatar,.mat-list-base[dense] .mat-list-option .mat-list-avatar{flex-shrink:0;width:36px;height:36px;border-radius:50%;object-fit:cover}.mat-list-base[dense] .mat-list-item .mat-list-avatar~.mat-divider-inset,.mat-list-base[dense] .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:68px;width:calc(100% - 68px)}[dir=rtl] .mat-list-base[dense] .mat-list-item .mat-list-avatar~.mat-divider-inset,[dir=rtl] .mat-list-base[dense] .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:auto;margin-right:68px}.mat-list-base[dense] .mat-list-item .mat-list-icon,.mat-list-base[dense] .mat-list-option .mat-list-icon{flex-shrink:0;width:20px;height:20px;font-size:20px;box-sizing:content-box;border-radius:50%;padding:4px}.mat-list-base[dense] .mat-list-item .mat-list-icon~.mat-divider-inset,.mat-list-base[dense] .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:60px;width:calc(100% - 60px)}[dir=rtl] .mat-list-base[dense] .mat-list-item .mat-list-icon~.mat-divider-inset,[dir=rtl] .mat-list-base[dense] .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:auto;margin-right:60px}.mat-list-base[dense] .mat-list-item .mat-divider,.mat-list-base[dense] .mat-list-option .mat-divider{position:absolute;bottom:0;left:0;width:100%;margin:0}[dir=rtl] .mat-list-base[dense] .mat-list-item .mat-divider,[dir=rtl] .mat-list-base[dense] .mat-list-option .mat-divider{margin-left:auto;margin-right:0}.mat-list-base[dense] .mat-list-item .mat-divider.mat-divider-inset,.mat-list-base[dense] .mat-list-option .mat-divider.mat-divider-inset{position:absolute}.mat-nav-list a{text-decoration:none;color:inherit}.mat-nav-list .mat-list-item{cursor:pointer;outline:none}mat-action-list .mat-list-item{cursor:pointer;outline:inherit}.mat-list-option:not(.mat-list-item-disabled){cursor:pointer;outline:none}.mat-list-item-disabled{pointer-events:none}.cdk-high-contrast-active .mat-list-item-disabled{opacity:.5}.cdk-high-contrast-active :host .mat-list-item-disabled{opacity:.5}.cdk-high-contrast-active .mat-list-option:hover,.cdk-high-contrast-active .mat-nav-list .mat-list-item:hover,.cdk-high-contrast-active mat-action-list .mat-list-item:hover{outline:dotted 1px;z-index:1}.cdk-high-contrast-active .mat-list-single-selected-option::after{content:"";position:absolute;top:50%;right:16px;transform:translateY(-50%);width:10px;height:0;border-bottom:solid 10px;border-radius:10px}.cdk-high-contrast-active [dir=rtl] .mat-list-single-selected-option::after{right:auto;left:16px}@media(hover: none){.mat-list-option:not(.mat-list-single-selected-option):not(.mat-list-item-disabled):hover,.mat-nav-list .mat-list-item:not(.mat-list-item-disabled):hover,.mat-action-list .mat-list-item:not(.mat-list-item-disabled):hover{background:none}}'],encapsulation:2,changeDetection:0}),n})(),Wq=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=ht({type:n}),n.\u0275inj=dt({imports:[p1,ha,Lt,wb,$r,p1,Lt,wb,Oq]}),n})();const $q=["chOffice"],Kq=["dbs"];function Yq(n,t){1&n&&(g(0,"p"),j(1),Ze(2,"translate"),_()),2&n&&(f(1),ve(Xe(2,1,"LC53515")))}function Qq(n,t){if(1&n){const e=Ie();g(0,"mat-list-option",7),W("dblclick",function(){return J(e),Z(C(2).confirmAction())}),j(1),_()}if(2&n){const e=t.$implicit,i=C(2);_t("value",e.db),v("selected",1===i.officeDBs.length?e.db:null),f(1),qe(" ",e.alias," ")}}const Jq=function(n){return{title:n}},Zq=function(n,t,e,i){return{confirm:n,cancel:t,confirmAction:e,cancelAction:i}};function Xq(n,t){if(1&n&&(Wt(0,1),Ze(1,"translate"),g(2,"div",2)(3,"mat-selection-list",3,4),H(5,Yq,3,3,"p",5),H(6,Qq,2,3,"mat-list-option",6),_()(),Wt(7,1),Ze(8,"translate"),Ze(9,"translate")),2&n){const e=C();v("ngTemplateOutlet",e.modalHeader)("ngTemplateOutletContext",Wn(13,Jq,Xe(1,7,"LC53516"))),f(3),v("multiple",!1),f(2),v("ngIf",e.officeDBs.length<1),f(1),v("ngForOf",e.officeDBs),f(1),v("ngTemplateOutlet",e.modalFooter)("ngTemplateOutletContext",Yi(15,Zq,Xe(8,9,"LC73135"),Xe(9,11,"LC73136"),e.confirmAction.bind(e,e.selection),e.cancelAction.bind(e)))}}let e9=(()=>{class n extends Yr{constructor(e,i,r,o,s,a){super(e),this.translate=e,this.connection=i,this.addressService=r,this.messageService=o,this.globalsService=s,this.globals=a,this.indexParamStart="index.xsp?",this.urlExtension=this.indexParamStart+"loadTabs=false",this.officeDBs=[]}ngOnInit(){super.ngOnInit(),this.fetchContactsDBs()}confirmAction(e,i){try{let r=null;if(r=null!=i?i:this.selection.selectedOptions.selected[0].value,this.globals.currentContactsDB=r,this.data.passedData.ignoreNext){if(this.data.passedData.paramsData){const o=this.data.passedData.paramsData;o.paramsToAdd&&"crmDB"===o.paramsToAdd[0]&&(o.params=o.params.set("crmDB",r)),this.openWebIntWithParams(o.params)}}else this.data.passedData.officeDB=r,this.openAnotherModal(this.next,this.data.passedData)}catch{this.translate.get("LC53493").subscribe(o=>{this.messageService.showError(o)})}}fetchContactsDBs(){this.connection.getReqModal("dbConnections",null).subscribe(e=>{this.showOfficeList(e)})}showOfficeList(e){var i=this;return Ae(function*(){try{let r="";r=i.data.passedData.currentContactPointer?i.data.passedData.currentContactPointer:i.addressService.currentPointer,i.clearOfficeDBs(),i.extractOfficeDBsOfContact(r,e),1===i.officeDBs.length&&i.confirmAction(i.selection,i.officeDBs[0].db)}catch{i.translate.get("LC39396").subscribe(o=>{i.messageService.showError(o)})}})()}extractOfficeDBsOfContact(e,i){this.data.passedData.currentContactPointer&&(e=this.data.passedData.currentContactPointer);const o=i[this.extractDBFromPointer(e)].officeDBs;for(const s of o)this.officeDBs.push({db:s,alias:i.GeOfficeAliases[s]});this.officeDBs.length<1&&this.translate.get("LC39396").subscribe(s=>{this.messageService.showError(s),this.cancelAction()})}clearOfficeDBs(){this.officeDBs.length=0}openWebIntWithParams(e){e=e.set("loadTabs","false"),window.open(this.globalsService.webInt+this.indexParamStart+e.toString(),"_blank")}}return n.\u0275fac=function(e){return new(e||n)(p(Ut),p(In),p(Ps),p(tn),p(ot),p(ot))},n.\u0275cmp=Ue({type:n,selectors:[["app-choose-office"]],viewQuery:function(e,i){if(1&e&&(De($q,7),De(Kq,5)),2&e){let r;ce(r=ue())&&(i.modalTemp=r.first),ce(r=ue())&&(i.selection=r.first)}},features:[Se],decls:2,vars:0,consts:[["chOffice",""],[3,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"modalBody"],[3,"multiple"],["dbs",""],[4,"ngIf"],["checkboxPosition","after",3,"value","selected","dblclick",4,"ngFor","ngForOf"],["checkboxPosition","after",3,"value","selected","dblclick"]],template:function(e,i){1&e&&H(0,Xq,10,20,"ng-template",null,0,Sn)},dependencies:[zn,pn,Ji,$o,Ls,ki]}),n})(),wd=(()=>{class n{constructor(e){this.sanitizer=e}sanitizeInput(e,i){return this.sanitizer.sanitize(i,e)}}return n.\u0275fac=function(e){return new(e||n)(M(nd))},n.\u0275prov=ge({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),Pb=(()=>{class n extends Yr{constructor(e,i,r,o,s,a){super(e),this.translate=e,this.globals=i,this.connection=r,this.messageService=o,this.inputService=s,this.addressService=a,this.messageEvent=new He,this.selection=new nl(!1),this.centered=!1,this.disabled=!1,this.unbounded=!1,this.databases=[],this.searchValue="",this.viewIconBaseURL=i.webInt,this.searchClearImage={background:"no-repeat url(assets/images/widget_settings.png)"},this.displayedColumns=["icon","display"],this.prefix="",this.path=""}ngOnInit(){super.ngOnInit(),this.fetchDBs(),this.tableWrapperClassName="Owa"===this.globals.curConnectorType?"tableWrapper":"tableWrapperVerse"}getTemplate(){return this.modalTemp}get rippleColor(){return this.globals.rippleColor}fetchSearch(e,i){let r=this.searchValue;""===r&&(r="*"),this.selection.clear();const o={};o.searchKey=r,i?o.pointer=i:o.database=e,this.data.type&&(o.type=this.data.type),this.data.parentPointer&&(o.parentPointer=this.data.parentPointer),this.connection.getReqNoCache(this.path,this.connection.objectToHttpParams(o)).subscribe({next:s=>{this.handleResult(s)},error:s=>{},complete:()=>{}})}toggleSelection(e){this.selection.toggle(e)}search(e){let i=this.inputService.sanitizeInput(this.searchValue,4);null!==i?(""===i?i="*":this.searchValue=i,this.fetchSearch(this.selectedDB,e)):this.translate.get("LC53513").subscribe(r=>{this.messageService.showError(r)})}acceptEntryDblClick(e){this.selection.clear(),this.selection.select(e),this.confirmAction()}}return n.\u0275fac=function(e){return new(e||n)(p(Ut),p(ot),p(In),p(tn),p(wd),p(Ps))},n.\u0275dir=fe({type:n,inputs:{data:"data"},outputs:{messageEvent:"messageEvent"},features:[Se]}),n})();const t9=["connectionContainer"],n9=["inputContainer"],i9=["label"];function r9(n,t){1&n&&(xi(0),g(1,"div",14),be(2,"div",15)(3,"div",16)(4,"div",17),_(),g(5,"div",18),be(6,"div",15)(7,"div",16)(8,"div",17),_(),Ii())}function o9(n,t){if(1&n){const e=Ie();g(0,"div",19),W("cdkObserveContent",function(){return J(e),Z(C().updateOutlineGap())}),Bt(1,1),_()}2&n&&v("cdkObserveContentDisabled","outline"!=C().appearance)}function s9(n,t){if(1&n&&(xi(0),Bt(1,2),g(2,"span"),j(3),_(),Ii()),2&n){const e=C(2);f(3),ve(e._control.placeholder)}}function a9(n,t){1&n&&Bt(0,3,["*ngSwitchCase","true"])}function l9(n,t){1&n&&(g(0,"span",23),j(1," *"),_())}function c9(n,t){if(1&n){const e=Ie();g(0,"label",20,21),W("cdkObserveContent",function(){return J(e),Z(C().updateOutlineGap())}),H(2,s9,4,1,"ng-container",12),H(3,a9,1,0,"ng-content",12),H(4,l9,2,0,"span",22),_()}if(2&n){const e=C();bt("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),v("cdkObserveContentDisabled","outline"!=e.appearance)("id",e._labelId)("ngSwitch",e._hasLabel()),rt("for",e._control.id)("aria-owns",e._control.id),f(2),v("ngSwitchCase",!1),f(1),v("ngSwitchCase",!0),f(1),v("ngIf",!e.hideRequiredMarker&&e._control.required&&!e._control.disabled)}}function u9(n,t){1&n&&(g(0,"div",24),Bt(1,4),_())}function d9(n,t){if(1&n&&(g(0,"div",25),be(1,"span",26),_()),2&n){const e=C();f(1),bt("mat-accent","accent"==e.color)("mat-warn","warn"==e.color)}}function h9(n,t){1&n&&(g(0,"div"),Bt(1,5),_()),2&n&&v("@transitionMessages",C()._subscriptAnimationState)}function p9(n,t){if(1&n&&(g(0,"div",30),j(1),_()),2&n){const e=C(2);v("id",e._hintLabelId),f(1),ve(e.hintLabel)}}function f9(n,t){if(1&n&&(g(0,"div",27),H(1,p9,2,2,"div",28),Bt(2,6),be(3,"div",29),Bt(4,7),_()),2&n){const e=C();v("@transitionMessages",e._subscriptAnimationState),f(1),v("ngIf",e.hintLabel)}}const m9=["*",[["","matPrefix",""]],[["mat-placeholder"]],[["mat-label"]],[["","matSuffix",""]],[["mat-error"]],[["mat-hint",3,"align","end"]],[["mat-hint","align","end"]]],g9=["*","[matPrefix]","mat-placeholder","mat-label","[matSuffix]","mat-error","mat-hint:not([align='end'])","mat-hint[align='end']"],_9=new me("MatError"),v9={transitionMessages:So("transitionMessages",[li("enter",qt({opacity:1,transform:"translateY(0%)"})),bi("void => enter",[qt({opacity:0,transform:"translateY(-5px)"}),Oi("300ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])};let Ed=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=fe({type:n}),n})();const y9=new me("MatHint");let Pi=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=fe({type:n,selectors:[["mat-label"]]}),n})(),b9=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=fe({type:n,selectors:[["mat-placeholder"]]}),n})();const C9=new me("MatPrefix"),z1=new me("MatSuffix");let Lb=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=fe({type:n,selectors:[["","matSuffix",""]],features:[it([{provide:z1,useExisting:n}])]}),n})(),G1=0;const E9=da(class{constructor(n){this._elementRef=n}},"primary"),D9=new me("MAT_FORM_FIELD_DEFAULT_OPTIONS"),jf=new me("MatFormField");let Ir=(()=>{class n extends E9{constructor(e,i,r,o,s,a,l){super(e),this._changeDetectorRef=i,this._dir=r,this._defaults=o,this._platform=s,this._ngZone=a,this._outlineGapCalculationNeededImmediately=!1,this._outlineGapCalculationNeededOnStable=!1,this._destroyed=new N,this._hideRequiredMarker=!1,this._showAlwaysAnimate=!1,this._subscriptAnimationState="",this._hintLabel="",this._hintLabelId="mat-hint-"+G1++,this._labelId="mat-form-field-label-"+G1++,this.floatLabel=this._getDefaultFloatLabelState(),this._animationsEnabled="NoopAnimations"!==l,this.appearance=o?.appearance||"legacy",o&&(this._hideRequiredMarker=Boolean(o.hideRequiredMarker),o.color&&(this.color=this.defaultColor=o.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=lt(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(ni(null)).subscribe(()=>{this._validatePlaceholders(),this._syncDescribedByIds(),this._changeDetectorRef.markForCheck()}),e.ngControl&&e.ngControl.valueChanges&&e.ngControl.valueChanges.pipe(Jt(this._destroyed)).subscribe(()=>this._changeDetectorRef.markForCheck()),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.pipe(Jt(this._destroyed)).subscribe(()=>{this._outlineGapCalculationNeededOnStable&&this.updateOutlineGap()})}),On(this._prefixChildren.changes,this._suffixChildren.changes).subscribe(()=>{this._outlineGapCalculationNeededOnStable=!0,this._changeDetectorRef.markForCheck()}),this._hintChildren.changes.pipe(ni(null)).subscribe(()=>{this._processHints(),this._changeDetectorRef.markForCheck()}),this._errorChildren.changes.pipe(ni(null)).subscribe(()=>{this._syncDescribedByIds(),this._changeDetectorRef.markForCheck()}),this._dir&&this._dir.change.pipe(Jt(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,Is(this._label.nativeElement,"transitionend").pipe(sn(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(o=>"start"===o.align):null,r=this._hintChildren?this._hintChildren.find(o=>"end"===o.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",o=".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}, ${o}`);for(let d=0;d0?.75*y+10:0}for(let u=0;u{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=ht({type:n}),n.\u0275inj=dt({imports:[$r,Lt,dd,Lt]}),n})();const S9=["trigger"],A9=["panel"];function T9(n,t){if(1&n&&(g(0,"span",8),j(1),_()),2&n){const e=C();f(1),ve(e.placeholder)}}function x9(n,t){if(1&n&&(g(0,"span",12),j(1),_()),2&n){const e=C(2);f(1),ve(e.triggerValue)}}function I9(n,t){1&n&&Bt(0,0,["*ngSwitchCase","true"])}function M9(n,t){1&n&&(g(0,"span",9),H(1,x9,2,1,"span",10),H(2,I9,1,0,"ng-content",11),_()),2&n&&(v("ngSwitch",!!C().customTrigger),f(2),v("ngSwitchCase",!0))}function k9(n,t){if(1&n){const e=Ie();g(0,"div",13)(1,"div",14,15),W("@transformPanel.done",function(r){return J(e),Z(C()._panelDoneAnimatingStream.next(r.toState))})("keydown",function(r){return J(e),Z(C()._handleKeydown(r))}),Bt(3,1),_()()}if(2&n){const e=C();v("@transformPanelWrap",void 0),f(1),function uS(n,t,e){go(Er,jo,Xl(xe(),n,t,e),!0)}("mat-select-panel ",e._getPanelTheme(),""),qr("transform-origin",e._transformOrigin)("font-size",e._triggerFontSize,"px"),v("ngClass",e.panelClass)("@transformPanel",e.multiple?"showing-multiple":"showing"),rt("id",e.id+"-panel")("aria-multiselectable",e.multiple)("aria-label",e.ariaLabel||null)("aria-labelledby",e._getPanelAriaLabelledby())}}const R9=[[["mat-select-trigger"]],"*"],O9=["mat-select-trigger","*"],$1={transformPanelWrap:So("transformPanelWrap",[bi("* => void",Sb("@transformPanel",[Db()],{optional:!0}))]),transformPanel:So("transformPanel",[li("void",qt({transform:"scaleY(0.8)",minWidth:"100%",opacity:0})),li("showing",qt({opacity:1,minWidth:"calc(100% + 32px)",transform:"scaleY(1)"})),li("showing-multiple",qt({opacity:1,minWidth:"calc(100% + 64px)",transform:"scaleY(1)"})),bi("void => *",Oi("120ms cubic-bezier(0, 0, 0.2, 1)")),bi("* => void",Oi("100ms 25ms linear",qt({opacity:0})))])};let K1=0;const Q1=new me("mat-select-scroll-strategy"),F9=new me("MAT_SELECT_CONFIG"),B9={provide:Q1,deps:[lr],useFactory:function N9(n){return()=>n.scrollStrategies.reposition()}};class j9{constructor(t,e){this.source=t,this.value=e}}const H9=Go(md(Rs(bb(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 N}})))),J1=new me("MatSelectTrigger");let V9=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=fe({type:n,selectors:[["mat-select-trigger"]],features:[it([{provide:J1,useExisting:n}])]}),n})(),U9=(()=>{class n extends H9{constructor(e,i,r,o,s,a,l,c,u,d,h,m,y,A){super(s,o,l,c,d),this._viewportRuler=e,this._changeDetectorRef=i,this._ngZone=r,this._dir=a,this._parentFormField=u,this._liveAnnouncer=y,this._defaultOptions=A,this._panelOpen=!1,this._compareWith=(U,te)=>U===te,this._uid="mat-select-"+K1++,this._triggerAriaLabelledBy=null,this._destroy=new N,this._onChange=()=>{},this._onTouched=()=>{},this._valueId="mat-select-value-"+K1++,this._panelDoneAnimatingStream=new N,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=la(()=>{const U=this.options;return U?U.changes.pipe(ni(U),Kn(()=>On(...U.map(te=>te.onSelectionChange)))):this._ngZone.onStable.pipe(sn(1),Kn(()=>this.optionSelectionChanges))}),this.openedChange=new He,this._openedStream=this.openedChange.pipe(Tn(U=>U),he(()=>{})),this._closedStream=this.openedChange.pipe(Tn(U=>!U),he(()=>{})),this.selectionChange=new He,this.valueChange=new He,this.ngControl&&(this.ngControl.valueAccessor=this),null!=A?.typeaheadDebounceInterval&&(this._typeaheadDebounceInterval=A.typeaheadDebounceInterval),this._scrollStrategyFactory=m,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(vy.required)??!1}set required(e){this._required=lt(e),this.stateChanges.next()}get multiple(){return this._multiple}set multiple(e){this._multiple=lt(e)}get disableOptionCentering(){return this._disableOptionCentering}set disableOptionCentering(e){this._disableOptionCentering=lt(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=xs(e)}get id(){return this._id}set id(e){this._id=e||this._uid,this.stateChanges.next()}ngOnInit(){this._selectionModel=new nl(this.multiple),this.stateChanges.next(),this._panelDoneAnimatingStream.pipe(bf(),Jt(this._destroy)).subscribe(()=>this._panelDoneAnimating(this.panelOpen))}ngAfterContentInit(){this._initKeyManager(),this._selectionModel.changed.pipe(Jt(this._destroy)).subscribe(e=>{e.added.forEach(i=>i.select()),e.removed.forEach(i=>i.deselect())}),this.options.changes.pipe(ni(null),Jt(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,o=13===i||32===i,s=this._keyManager;if(!s.isTyping()&&o&&!yi(e)||(this.multiple||e.altKey)&&r)e.preventDefault(),this.open();else if(!this.multiple){const a=this.selected;s.onKeydown(e);const l=this.selected;l&&a!==l&&this._liveAnnouncer.announce(l.viewValue,1e4)}}_handleOpenKeydown(e){const i=this._keyManager,r=e.keyCode,o=40===r||38===r,s=i.isTyping();if(o&&e.altKey)e.preventDefault(),this.close();else if(s||13!==r&&32!==r||!i.activeItem||yi(e))if(!s&&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&&o&&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(sn(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 N2(this.options).withTypeAhead(this._typeaheadDebounceInterval).withVerticalOrientation().withHorizontalOrientation(this._isRtl()?"rtl":"ltr").withHomeAndEnd().withAllowedModifierKeys(["shiftKey"]),this._keyManager.tabOut.pipe(Jt(this._destroy)).subscribe(()=>{this.panelOpen&&(!this.multiple&&this._keyManager.activeItem&&this._keyManager.activeItem._selectViaInteraction(),this.focus(),this.close())}),this._keyManager.change.pipe(Jt(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=On(this.options.changes,this._destroy);this.optionSelectionChanges.pipe(Jt(e)).subscribe(i=>{this._onSelect(i.source,i.isUserInput),i.isUserInput&&!this.multiple&&this._panelOpen&&(this.close(),this.focus())}),On(...this.options.map(i=>i._stateChanges)).pipe(Jt(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)(p(zo),p(St),p(et),p(gd),p(Je),p(Xi,8),p(_c,8),p(vc,8),p(jf,8),p(bo,10),Vr("tabindex"),p(Q1),p(ub),p(F9,8))},n.\u0275dir=fe({type:n,viewQuery:function(e,i){if(1&e&&(De(S9,5),De(A9,5),De(a1,5)),2&e){let r;ce(r=ue())&&(i.trigger=r.first),ce(r=ue())&&(i.panel=r.first),ce(r=ue())&&(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:[Se,Rn]}),n})(),Ko=(()=>{class n extends U9{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 o=this._getItemHeight();return Math.min(Math.max(0,o*e-i+o/2),r)}ngOnInit(){super.ngOnInit(),this._viewportRuler.change().pipe(Jt(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(sn(1)).subscribe(()=>{this._triggerFontSize&&this._overlayDir.overlayRef&&this._overlayDir.overlayRef.overlayElement&&(this._overlayDir.overlayRef.overlayElement.style.fontSize=`${this._triggerFontSize}px`)}))}_scrollOptionIntoView(e){const i=Eb(e,this.options,this.optionGroups),r=this._getItemHeight();this.panel.nativeElement.scrollTop=0===e&&1===i?0:C1((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 j9(this,e)}_calculateOverlayOffsetX(){const e=this._overlayDir.overlayRef.overlayElement.getBoundingClientRect(),i=this._viewportRuler.getViewportSize(),r=this._isRtl(),o=this.multiple?56:32;let s;if(this.multiple)s=40;else if(this.disableOptionCentering)s=16;else{let c=this._selectionModel.selected[0]||this.options.first;s=c&&c.group?32:16}r||(s*=-1);const a=0-(e.left+s-(r?o:0)),l=e.right+s-i.width+(r?0:o);a>0?s+=a+8:l>0&&(s-=l+8),this._overlayDir.offsetX=Math.round(s),this._overlayDir.overlayRef.updatePosition()}_calculateOverlayOffsetY(e,i,r){const o=this._getItemHeight(),s=(o-this._triggerRect.height)/2,a=Math.floor(256/o);let l;return this.disableOptionCentering?0:(l=0===this._scrollTop?e*o:this._scrollTop===r?(e-(this._getItemCount()-a))*o+(o-(this._getItemCount()*o-256)%o):i-o/2,Math.round(-1*l-s))}_checkOverlayWithinViewport(e){const i=this._getItemHeight(),r=this._viewportRuler.getViewportSize(),o=this._triggerRect.top-8,s=r.height-this._triggerRect.bottom-8,a=Math.abs(this._offsetY),c=Math.min(this._getItemCount()*i,256)-a-this._triggerRect.height;c>s?this._adjustPanelUp(c,s):a>o?this._adjustPanelDown(a,o,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 o=Math.round(e-i);if(this._scrollTop+=o,this._offsetY+=o,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),s=i*e-r;let a;a=this.empty?0:Math.max(this.options.toArray().indexOf(this._selectionModel.selected[0]),0),a+=Eb(a,this.options,this.optionGroups);const l=r/2;this._scrollTop=this._calculateOverlayScroll(a,l,s),this._offsetY=this._calculateOverlayOffsetY(a,l,s),this._checkOverlayWithinViewport(s)}_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=Pt(n)))(i||n)}}(),n.\u0275cmp=Ue({type:n,selectors:[["mat-select"]],contentQueries:function(e,i,r){if(1&e&&(jt(r,J1,5),jt(r,cr,5),jt(r,Lf,5)),2&e){let o;ce(o=ue())&&(i.customTrigger=o.first),ce(o=ue())&&(i.options=o),ce(o=ue())&&(i.optionGroups=o)}},hostAttrs:["role","combobox","aria-autocomplete","none","aria-haspopup","true",1,"mat-select"],hostVars:19,hostBindings:function(e,i){1&e&&W("keydown",function(o){return i._handleKeydown(o)})("focus",function(){return i._onFocus()})("blur",function(){return i._onBlur()}),2&e&&(rt("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()),bt("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:[it([{provide:Ed,useExisting:n},{provide:Pf,useExisting:n}]),Se],ngContentSelectors:O9,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&&(Pn(R9),g(0,"div",0,1),W("click",function(){return i.toggle()}),g(3,"div",2),H(4,T9,2,1,"span",3),H(5,M9,3,2,"span",4),_(),g(6,"div",5),be(7,"div",6),_()(),H(8,k9,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=Yt(1);rt("aria-owns",i.panelOpen?i.id+"-panel":null),f(3),v("ngSwitch",i.empty),rt("id",i._valueId),f(1),v("ngSwitchCase",!0),f(1),v("ngSwitchCase",!1),f(3),v("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:[$a,mc,qp,xT,a1,s1],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:[$1.transformPanelWrap,$1.transformPanel]},changeDetection:0}),n})(),q9=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=ht({type:n}),n.\u0275inj=dt({providers:[B9],imports:[$r,Ic,Nf,Lt,Tc,Hf,Nf,Lt]}),n})();const Z1=As({passive:!0});let z9=(()=>{class n{constructor(e,i){this._platform=e,this._ngZone=i,this._monitoredElements=new Map}monitor(e){if(!this._platform.isBrowser)return Ss;const i=Qn(e),r=this._monitoredElements.get(i);if(r)return r.subject;const o=new N,s="cdk-text-field-autofilled",a=l=>{"cdk-text-field-autofill-start"!==l.animationName||i.classList.contains(s)?"cdk-text-field-autofill-end"===l.animationName&&i.classList.contains(s)&&(i.classList.remove(s),this._ngZone.run(()=>o.next({target:l.target,isAutofilled:!1}))):(i.classList.add(s),this._ngZone.run(()=>o.next({target:l.target,isAutofilled:!0})))};return this._ngZone.runOutsideAngular(()=>{i.addEventListener("animationstart",a,Z1),i.classList.add("cdk-text-field-autofill-monitored")}),this._monitoredElements.set(i,{subject:o,unlisten:()=>{i.removeEventListener("animationstart",a,Z1)}}),o}stopMonitoring(e){const i=Qn(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)(M(Nn),M(et))},n.\u0275prov=ge({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),X1=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=ht({type:n}),n.\u0275inj=dt({}),n})();const G9=new me("MAT_INPUT_VALUE_ACCESSOR"),W9=["button","checkbox","file","hidden","image","radio","range","reset","submit"];let $9=0;const K9=bb(class{constructor(n,t,e,i){this._defaultErrorStateMatcher=n,this._parentForm=t,this._parentFormGroup=e,this.ngControl=i,this.stateChanges=new N}});let Mr=(()=>{class n extends K9{constructor(e,i,r,o,s,a,l,c,u,d){super(a,o,s,r),this._elementRef=e,this._platform=i,this._autofillMonitor=c,this._formField=d,this._uid="mat-input-"+$9++,this.focused=!1,this.stateChanges=new N,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(y=>T2().has(y)),this._iOSKeyupListener=y=>{const A=y.target;!A.value&&0===A.selectionStart&&0===A.selectionEnd&&(A.setSelectionRange(1,1),A.setSelectionRange(0,0))};const h=this._elementRef.nativeElement,m=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"===m,this._isTextarea="textarea"===m,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=lt(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(vy.required)??!1}set required(e){this._required=lt(e)}get type(){return this._type}set type(e){this._type=e||"text",this._validateType(),!this._isTextarea&&T2().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=lt(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(){W9.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)(p(Je),p(Nn),p(bo,10),p(_c,8),p(vc,8),p(gd),p(G9,10),p(z9),p(et),p(jf,8))},n.\u0275dir=fe({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&&(Ho("disabled",i.disabled)("required",i.required),rt("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),bt("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:[it([{provide:Ed,useExisting:n}]),Se,Rn]}),n})(),Y9=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=ht({type:n}),n.\u0275inj=dt({providers:[gd],imports:[X1,Hf,Lt,X1,Hf]}),n})();const Q9=[[["caption"]],[["colgroup"],["col"]]],J9=["caption","colgroup, col"];function Nb(n){return class extends n{constructor(...t){super(...t),this._sticky=!1,this._hasStickyChanged=!1}get sticky(){return this._sticky}set sticky(t){const e=this._sticky;this._sticky=lt(t),this._hasStickyChanged=e!==this._sticky}hasStickyChanged(){const t=this._hasStickyChanged;return this._hasStickyChanged=!1,t}resetStickyChanged(){this._hasStickyChanged=!1}}}const Pc=new me("CDK_TABLE");let Lc=(()=>{class n{constructor(e){this.template=e}}return n.\u0275fac=function(e){return new(e||n)(p(yn))},n.\u0275dir=fe({type:n,selectors:[["","cdkCellDef",""]]}),n})(),Nc=(()=>{class n{constructor(e){this.template=e}}return n.\u0275fac=function(e){return new(e||n)(p(yn))},n.\u0275dir=fe({type:n,selectors:[["","cdkHeaderCellDef",""]]}),n})(),Uf=(()=>{class n{constructor(e){this.template=e}}return n.\u0275fac=function(e){return new(e||n)(p(yn))},n.\u0275dir=fe({type:n,selectors:[["","cdkFooterCellDef",""]]}),n})();class tz{}const nz=Nb(tz);let Ns=(()=>{class n extends nz{constructor(e){super(),this._table=e,this._stickyEnd=!1}get name(){return this._name}set name(e){this._setNameInput(e)}get stickyEnd(){return this._stickyEnd}set stickyEnd(e){const i=this._stickyEnd;this._stickyEnd=lt(e),this._hasStickyChanged=i!==this._stickyEnd}_updateColumnCssClassName(){this._columnCssClassName=[`cdk-column-${this.cssClassFriendlyName}`]}_setNameInput(e){e&&(this._name=e,this.cssClassFriendlyName=e.replace(/[^a-z0-9_-]/gi,"-"),this._updateColumnCssClassName())}}return n.\u0275fac=function(e){return new(e||n)(p(Pc,8))},n.\u0275dir=fe({type:n,selectors:[["","cdkColumnDef",""]],contentQueries:function(e,i,r){if(1&e&&(jt(r,Lc,5),jt(r,Nc,5),jt(r,Uf,5)),2&e){let o;ce(o=ue())&&(i.cell=o.first),ce(o=ue())&&(i.headerCell=o.first),ce(o=ue())&&(i.footerCell=o.first)}},inputs:{sticky:"sticky",name:["cdkColumnDef","name"],stickyEnd:"stickyEnd"},features:[it([{provide:"MAT_SORT_HEADER_COLUMN_DEF",useExisting:n}]),Se]}),n})();let jb=(()=>{class n extends class Fb{constructor(t,e){e.nativeElement.classList.add(...t._columnCssClassName)}}{constructor(e,i){if(super(e,i),1===e._table?._elementRef.nativeElement.nodeType){const r=e._table._elementRef.nativeElement.getAttribute("role");i.nativeElement.setAttribute("role","grid"===r||"treegrid"===r?"gridcell":"cell")}}}return n.\u0275fac=function(e){return new(e||n)(p(Ns),p(Je))},n.\u0275dir=fe({type:n,selectors:[["cdk-cell"],["td","cdk-cell",""]],hostAttrs:[1,"cdk-cell"],features:[Se]}),n})();class tI{constructor(){this.tasks=[],this.endTasks=[]}}const Hb=new me("_COALESCED_STYLE_SCHEDULER");let nI=(()=>{class n{constructor(e){this._ngZone=e,this._currentSchedule=null,this._destroyed=new N}schedule(e){this._createScheduleIfNeeded(),this._currentSchedule.tasks.push(e)}scheduleEnd(e){this._createScheduleIfNeeded(),this._currentSchedule.endTasks.push(e)}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete()}_createScheduleIfNeeded(){this._currentSchedule||(this._currentSchedule=new tI,this._getScheduleObservable().pipe(Jt(this._destroyed)).subscribe(()=>{for(;this._currentSchedule.tasks.length||this._currentSchedule.endTasks.length;){const e=this._currentSchedule;this._currentSchedule=new tI;for(const i of e.tasks)i();for(const i of e.endTasks)i()}this._currentSchedule=null}))}_getScheduleObservable(){return this._ngZone.isStable?vt(Promise.resolve(void 0)):this._ngZone.onStable.pipe(sn(1))}}return n.\u0275fac=function(e){return new(e||n)(M(et))},n.\u0275prov=ge({token:n,factory:n.\u0275fac}),n})(),Vb=(()=>{class n{constructor(e,i){this.template=e,this._differs=i}ngOnChanges(e){if(!this._columnsDiffer){const i=e.columns&&e.columns.currentValue||[];this._columnsDiffer=this._differs.find(i).create(),this._columnsDiffer.diff(i)}}getColumnsDiff(){return this._columnsDiffer.diff(this.columns)}extractCellTemplate(e){return this instanceof Sd?e.headerCell.template:this instanceof Ad?e.footerCell.template:e.cell.template}}return n.\u0275fac=function(e){return new(e||n)(p(yn),p(ys))},n.\u0275dir=fe({type:n,features:[Rn]}),n})();class iz extends Vb{}const rz=Nb(iz);let Sd=(()=>{class n extends rz{constructor(e,i,r){super(e,i),this._table=r}ngOnChanges(e){super.ngOnChanges(e)}}return n.\u0275fac=function(e){return new(e||n)(p(yn),p(ys),p(Pc,8))},n.\u0275dir=fe({type:n,selectors:[["","cdkHeaderRowDef",""]],inputs:{columns:["cdkHeaderRowDef","columns"],sticky:["cdkHeaderRowDefSticky","sticky"]},features:[Se,Rn]}),n})();class oz extends Vb{}const sz=Nb(oz);let Ad=(()=>{class n extends sz{constructor(e,i,r){super(e,i),this._table=r}ngOnChanges(e){super.ngOnChanges(e)}}return n.\u0275fac=function(e){return new(e||n)(p(yn),p(ys),p(Pc,8))},n.\u0275dir=fe({type:n,selectors:[["","cdkFooterRowDef",""]],inputs:{columns:["cdkFooterRowDef","columns"],sticky:["cdkFooterRowDefSticky","sticky"]},features:[Se,Rn]}),n})(),qf=(()=>{class n extends Vb{constructor(e,i,r){super(e,i),this._table=r}}return n.\u0275fac=function(e){return new(e||n)(p(yn),p(ys),p(Pc,8))},n.\u0275dir=fe({type:n,selectors:[["","cdkRowDef",""]],inputs:{columns:["cdkRowDefColumns","columns"],when:["cdkRowDefWhen","when"]},features:[Se]}),n})(),Fs=(()=>{class n{constructor(e){this._viewContainer=e,n.mostRecentCellOutlet=this}ngOnDestroy(){n.mostRecentCellOutlet===this&&(n.mostRecentCellOutlet=null)}}return n.mostRecentCellOutlet=null,n.\u0275fac=function(e){return new(e||n)(p(Dn))},n.\u0275dir=fe({type:n,selectors:[["","cdkCellOutlet",""]]}),n})(),zb=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=Ue({type:n,selectors:[["cdk-row"],["tr","cdk-row",""]],hostAttrs:["role","row",1,"cdk-row"],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(e,i){1&e&&Wt(0,0)},dependencies:[Fs],encapsulation:2}),n})(),zf=(()=>{class n{constructor(e){this.templateRef=e,this._contentClassName="cdk-no-data-row"}}return n.\u0275fac=function(e){return new(e||n)(p(yn))},n.\u0275dir=fe({type:n,selectors:[["ng-template","cdkNoDataRow",""]]}),n})();const iI=["top","bottom","left","right"];class az{constructor(t,e,i,r,o=!0,s=!0,a){this._isNativeHtmlTable=t,this._stickCellCss=e,this.direction=i,this._coalescedStyleScheduler=r,this._isBrowser=o,this._needsPositionStickyOnElement=s,this._positionListener=a,this._cachedCellWidths=[],this._borderCellCss={top:`${e}-border-elem-top`,bottom:`${e}-border-elem-bottom`,left:`${e}-border-elem-left`,right:`${e}-border-elem-right`}}clearStickyPositioning(t,e){const i=[];for(const r of t)if(r.nodeType===r.ELEMENT_NODE){i.push(r);for(let o=0;o{for(const r of i)this._removeStickyStyle(r,e)})}updateStickyColumns(t,e,i,r=!0){if(!t.length||!this._isBrowser||!e.some(h=>h)&&!i.some(h=>h))return void(this._positionListener&&(this._positionListener.stickyColumnsUpdated({sizes:[]}),this._positionListener.stickyEndColumnsUpdated({sizes:[]})));const o=t[0],s=o.children.length,a=this._getCellWidths(o,r),l=this._getStickyStartColumnPositions(a,e),c=this._getStickyEndColumnPositions(a,i),u=e.lastIndexOf(!0),d=i.indexOf(!0);this._coalescedStyleScheduler.schedule(()=>{const h="rtl"===this.direction,m=h?"right":"left",y=h?"left":"right";for(const A of t)for(let U=0;Ue[U]?A:null)}),this._positionListener.stickyEndColumnsUpdated({sizes:-1===d?[]:a.slice(d).map((A,U)=>i[U+d]?A:null).reverse()}))})}stickRows(t,e,i){if(!this._isBrowser)return;const r="bottom"===i?t.slice().reverse():t,o="bottom"===i?e.slice().reverse():e,s=[],a=[],l=[];for(let u=0,d=0;u{for(let u=0;u{e.some(r=>!r)?this._removeStickyStyle(i,["bottom"]):this._addStickyStyle(i,"bottom",0,!1)})}_removeStickyStyle(t,e){for(const r of e)t.style[r]="",t.classList.remove(this._borderCellCss[r]);iI.some(r=>-1===e.indexOf(r)&&t.style[r])?t.style.zIndex=this._getCalculatedZIndex(t):(t.style.zIndex="",this._needsPositionStickyOnElement&&(t.style.position=""),t.classList.remove(this._stickCellCss))}_addStickyStyle(t,e,i,r){t.classList.add(this._stickCellCss),r&&t.classList.add(this._borderCellCss[e]),t.style[e]=`${i}px`,t.style.zIndex=this._getCalculatedZIndex(t),this._needsPositionStickyOnElement&&(t.style.cssText+="position: -webkit-sticky; position: sticky; ")}_getCalculatedZIndex(t){const e={top:100,bottom:10,left:1,right:1};let i=0;for(const r of iI)t.style[r]&&(i+=e[r]);return i?`${i}`:""}_getCellWidths(t,e=!0){if(!e&&this._cachedCellWidths.length)return this._cachedCellWidths;const i=[],r=t.children;for(let o=0;o0;o--)e[o]&&(i[o]=r,r+=t[o]);return i}}const Gb=new me("CDK_SPL");let Gf=(()=>{class n{constructor(e,i){this.viewContainer=e,this.elementRef=i}}return n.\u0275fac=function(e){return new(e||n)(p(Dn),p(Je))},n.\u0275dir=fe({type:n,selectors:[["","rowOutlet",""]]}),n})(),Wf=(()=>{class n{constructor(e,i){this.viewContainer=e,this.elementRef=i}}return n.\u0275fac=function(e){return new(e||n)(p(Dn),p(Je))},n.\u0275dir=fe({type:n,selectors:[["","headerRowOutlet",""]]}),n})(),$f=(()=>{class n{constructor(e,i){this.viewContainer=e,this.elementRef=i}}return n.\u0275fac=function(e){return new(e||n)(p(Dn),p(Je))},n.\u0275dir=fe({type:n,selectors:[["","footerRowOutlet",""]]}),n})(),Kf=(()=>{class n{constructor(e,i){this.viewContainer=e,this.elementRef=i}}return n.\u0275fac=function(e){return new(e||n)(p(Dn),p(Je))},n.\u0275dir=fe({type:n,selectors:[["","noDataRowOutlet",""]]}),n})(),Yf=(()=>{class n{constructor(e,i,r,o,s,a,l,c,u,d,h,m){this._differs=e,this._changeDetectorRef=i,this._elementRef=r,this._dir=s,this._platform=l,this._viewRepeater=c,this._coalescedStyleScheduler=u,this._viewportRuler=d,this._stickyPositioningListener=h,this._ngZone=m,this._onDestroy=new N,this._columnDefsByName=new Map,this._customColumnDefs=new Set,this._customRowDefs=new Set,this._customHeaderRowDefs=new Set,this._customFooterRowDefs=new Set,this._headerRowDefChanged=!0,this._footerRowDefChanged=!0,this._stickyColumnStylesNeedReset=!0,this._forceRecalculateCellWidths=!0,this._cachedRenderRowsMap=new Map,this.stickyCssClass="cdk-table-sticky",this.needsPositionStickyOnElement=!0,this._isShowingNoDataRow=!1,this._multiTemplateDataRows=!1,this._fixedLayout=!1,this.contentChanged=new He,this.viewChange=new ar({start:0,end:Number.MAX_VALUE}),o||this._elementRef.nativeElement.setAttribute("role","table"),this._document=a,this._isNativeHtmlTable="TABLE"===this._elementRef.nativeElement.nodeName}get trackBy(){return this._trackByFn}set trackBy(e){this._trackByFn=e}get dataSource(){return this._dataSource}set dataSource(e){this._dataSource!==e&&this._switchDataSource(e)}get multiTemplateDataRows(){return this._multiTemplateDataRows}set multiTemplateDataRows(e){this._multiTemplateDataRows=lt(e),this._rowOutlet&&this._rowOutlet.viewContainer.length&&(this._forceRenderDataRows(),this.updateStickyColumnStyles())}get fixedLayout(){return this._fixedLayout}set fixedLayout(e){this._fixedLayout=lt(e),this._forceRecalculateCellWidths=!0,this._stickyColumnStylesNeedReset=!0}ngOnInit(){this._setupStickyStyler(),this._isNativeHtmlTable&&this._applyNativeTableSections(),this._dataDiffer=this._differs.find([]).create((e,i)=>this.trackBy?this.trackBy(i.dataIndex,i.data):i),this._viewportRuler.change().pipe(Jt(this._onDestroy)).subscribe(()=>{this._forceRecalculateCellWidths=!0})}ngAfterContentChecked(){this._cacheRowDefs(),this._cacheColumnDefs();const i=this._renderUpdatedColumns()||this._headerRowDefChanged||this._footerRowDefChanged;this._stickyColumnStylesNeedReset=this._stickyColumnStylesNeedReset||i,this._forceRecalculateCellWidths=i,this._headerRowDefChanged&&(this._forceRenderHeaderRows(),this._headerRowDefChanged=!1),this._footerRowDefChanged&&(this._forceRenderFooterRows(),this._footerRowDefChanged=!1),this.dataSource&&this._rowDefs.length>0&&!this._renderChangeSubscription?this._observeRenderChanges():this._stickyColumnStylesNeedReset&&this.updateStickyColumnStyles(),this._checkStickyStates()}ngOnDestroy(){[this._rowOutlet.viewContainer,this._headerRowOutlet.viewContainer,this._footerRowOutlet.viewContainer,this._cachedRenderRowsMap,this._customColumnDefs,this._customRowDefs,this._customHeaderRowDefs,this._customFooterRowDefs,this._columnDefsByName].forEach(e=>{e.clear()}),this._headerRowDefs=[],this._footerRowDefs=[],this._defaultRowDef=null,this._onDestroy.next(),this._onDestroy.complete(),Ob(this.dataSource)&&this.dataSource.disconnect(this)}renderRows(){this._renderRows=this._getAllRenderRows();const e=this._dataDiffer.diff(this._renderRows);if(!e)return this._updateNoDataRow(),void this.contentChanged.next();const i=this._rowOutlet.viewContainer;this._viewRepeater.applyChanges(e,i,(r,o,s)=>this._getEmbeddedViewArgs(r.item,s),r=>r.item.data,r=>{1===r.operation&&r.context&&this._renderCellTemplateForItem(r.record.item.rowDef,r.context)}),this._updateRowIndexContext(),e.forEachIdentityChange(r=>{i.get(r.currentIndex).context.$implicit=r.item.data}),this._updateNoDataRow(),this._ngZone&&et.isInAngularZone()?this._ngZone.onStable.pipe(sn(1),Jt(this._onDestroy)).subscribe(()=>{this.updateStickyColumnStyles()}):this.updateStickyColumnStyles(),this.contentChanged.next()}addColumnDef(e){this._customColumnDefs.add(e)}removeColumnDef(e){this._customColumnDefs.delete(e)}addRowDef(e){this._customRowDefs.add(e)}removeRowDef(e){this._customRowDefs.delete(e)}addHeaderRowDef(e){this._customHeaderRowDefs.add(e),this._headerRowDefChanged=!0}removeHeaderRowDef(e){this._customHeaderRowDefs.delete(e),this._headerRowDefChanged=!0}addFooterRowDef(e){this._customFooterRowDefs.add(e),this._footerRowDefChanged=!0}removeFooterRowDef(e){this._customFooterRowDefs.delete(e),this._footerRowDefChanged=!0}setNoDataRow(e){this._customNoDataRow=e}updateStickyHeaderRowStyles(){const e=this._getRenderedRows(this._headerRowOutlet),r=this._elementRef.nativeElement.querySelector("thead");r&&(r.style.display=e.length?"":"none");const o=this._headerRowDefs.map(s=>s.sticky);this._stickyStyler.clearStickyPositioning(e,["top"]),this._stickyStyler.stickRows(e,o,"top"),this._headerRowDefs.forEach(s=>s.resetStickyChanged())}updateStickyFooterRowStyles(){const e=this._getRenderedRows(this._footerRowOutlet),r=this._elementRef.nativeElement.querySelector("tfoot");r&&(r.style.display=e.length?"":"none");const o=this._footerRowDefs.map(s=>s.sticky);this._stickyStyler.clearStickyPositioning(e,["bottom"]),this._stickyStyler.stickRows(e,o,"bottom"),this._stickyStyler.updateStickyFooterContainer(this._elementRef.nativeElement,o),this._footerRowDefs.forEach(s=>s.resetStickyChanged())}updateStickyColumnStyles(){const e=this._getRenderedRows(this._headerRowOutlet),i=this._getRenderedRows(this._rowOutlet),r=this._getRenderedRows(this._footerRowOutlet);(this._isNativeHtmlTable&&!this._fixedLayout||this._stickyColumnStylesNeedReset)&&(this._stickyStyler.clearStickyPositioning([...e,...i,...r],["left","right"]),this._stickyColumnStylesNeedReset=!1),e.forEach((o,s)=>{this._addStickyColumnStyles([o],this._headerRowDefs[s])}),this._rowDefs.forEach(o=>{const s=[];for(let a=0;a{this._addStickyColumnStyles([o],this._footerRowDefs[s])}),Array.from(this._columnDefsByName.values()).forEach(o=>o.resetStickyChanged())}_getAllRenderRows(){const e=[],i=this._cachedRenderRowsMap;this._cachedRenderRowsMap=new Map;for(let r=0;r{const a=r&&r.has(s)?r.get(s):[];if(a.length){const l=a.shift();return l.dataIndex=i,l}return{data:e,rowDef:s,dataIndex:i}})}_cacheColumnDefs(){this._columnDefsByName.clear(),Qf(this._getOwnDefs(this._contentColumnDefs),this._customColumnDefs).forEach(i=>{this._columnDefsByName.has(i.name),this._columnDefsByName.set(i.name,i)})}_cacheRowDefs(){this._headerRowDefs=Qf(this._getOwnDefs(this._contentHeaderRowDefs),this._customHeaderRowDefs),this._footerRowDefs=Qf(this._getOwnDefs(this._contentFooterRowDefs),this._customFooterRowDefs),this._rowDefs=Qf(this._getOwnDefs(this._contentRowDefs),this._customRowDefs);const e=this._rowDefs.filter(i=>!i.when);this._defaultRowDef=e[0]}_renderUpdatedColumns(){const e=(s,a)=>s||!!a.getColumnsDiff(),i=this._rowDefs.reduce(e,!1);i&&this._forceRenderDataRows();const r=this._headerRowDefs.reduce(e,!1);r&&this._forceRenderHeaderRows();const o=this._footerRowDefs.reduce(e,!1);return o&&this._forceRenderFooterRows(),i||r||o}_switchDataSource(e){this._data=[],Ob(this.dataSource)&&this.dataSource.disconnect(this),this._renderChangeSubscription&&(this._renderChangeSubscription.unsubscribe(),this._renderChangeSubscription=null),e||(this._dataDiffer&&this._dataDiffer.diff([]),this._rowOutlet.viewContainer.clear()),this._dataSource=e}_observeRenderChanges(){if(!this.dataSource)return;let e;Ob(this.dataSource)?e=this.dataSource.connect(this):Ds(this.dataSource)?e=this.dataSource:Array.isArray(this.dataSource)&&(e=Ne(this.dataSource)),this._renderChangeSubscription=e.pipe(Jt(this._onDestroy)).subscribe(i=>{this._data=i||[],this.renderRows()})}_forceRenderHeaderRows(){this._headerRowOutlet.viewContainer.length>0&&this._headerRowOutlet.viewContainer.clear(),this._headerRowDefs.forEach((e,i)=>this._renderRow(this._headerRowOutlet,e,i)),this.updateStickyHeaderRowStyles()}_forceRenderFooterRows(){this._footerRowOutlet.viewContainer.length>0&&this._footerRowOutlet.viewContainer.clear(),this._footerRowDefs.forEach((e,i)=>this._renderRow(this._footerRowOutlet,e,i)),this.updateStickyFooterRowStyles()}_addStickyColumnStyles(e,i){const r=Array.from(i.columns||[]).map(a=>this._columnDefsByName.get(a)),o=r.map(a=>a.sticky),s=r.map(a=>a.stickyEnd);this._stickyStyler.updateStickyColumns(e,o,s,!this._fixedLayout||this._forceRecalculateCellWidths)}_getRenderedRows(e){const i=[];for(let r=0;r!o.when||o.when(i,e));else{let o=this._rowDefs.find(s=>s.when&&s.when(i,e))||this._defaultRowDef;o&&r.push(o)}return r}_getEmbeddedViewArgs(e,i){return{templateRef:e.rowDef.template,context:{$implicit:e.data},index:i}}_renderRow(e,i,r,o={}){const s=e.viewContainer.createEmbeddedView(i.template,o,r);return this._renderCellTemplateForItem(i,o),s}_renderCellTemplateForItem(e,i){for(let r of this._getCellTemplates(e))Fs.mostRecentCellOutlet&&Fs.mostRecentCellOutlet._viewContainer.createEmbeddedView(r,i);this._changeDetectorRef.markForCheck()}_updateRowIndexContext(){const e=this._rowOutlet.viewContainer;for(let i=0,r=e.length;i{const r=this._columnDefsByName.get(i);return e.extractCellTemplate(r)}):[]}_applyNativeTableSections(){const e=this._document.createDocumentFragment(),i=[{tag:"thead",outlets:[this._headerRowOutlet]},{tag:"tbody",outlets:[this._rowOutlet,this._noDataRowOutlet]},{tag:"tfoot",outlets:[this._footerRowOutlet]}];for(const r of i){const o=this._document.createElement(r.tag);o.setAttribute("role","rowgroup");for(const s of r.outlets)o.appendChild(s.elementRef.nativeElement);e.appendChild(o)}this._elementRef.nativeElement.appendChild(e)}_forceRenderDataRows(){this._dataDiffer.diff([]),this._rowOutlet.viewContainer.clear(),this.renderRows()}_checkStickyStates(){const e=(i,r)=>i||r.hasStickyChanged();this._headerRowDefs.reduce(e,!1)&&this.updateStickyHeaderRowStyles(),this._footerRowDefs.reduce(e,!1)&&this.updateStickyFooterRowStyles(),Array.from(this._columnDefsByName.values()).reduce(e,!1)&&(this._stickyColumnStylesNeedReset=!0,this.updateStickyColumnStyles())}_setupStickyStyler(){this._stickyStyler=new az(this._isNativeHtmlTable,this.stickyCssClass,this._dir?this._dir.value:"ltr",this._coalescedStyleScheduler,this._platform.isBrowser,this.needsPositionStickyOnElement,this._stickyPositioningListener),(this._dir?this._dir.change:Ne()).pipe(Jt(this._onDestroy)).subscribe(i=>{this._stickyStyler.direction=i,this.updateStickyColumnStyles()})}_getOwnDefs(e){return e.filter(i=>!i._table||i._table===this)}_updateNoDataRow(){const e=this._customNoDataRow||this._noDataRow;if(!e)return;const i=0===this._rowOutlet.viewContainer.length;if(i===this._isShowingNoDataRow)return;const r=this._noDataRowOutlet.viewContainer;if(i){const o=r.createEmbeddedView(e.templateRef),s=o.rootNodes[0];1===o.rootNodes.length&&s?.nodeType===this._document.ELEMENT_NODE&&(s.setAttribute("role","row"),s.classList.add(e._contentClassName))}else r.clear();this._isShowingNoDataRow=i}}return n.\u0275fac=function(e){return new(e||n)(p(ys),p(St),p(Je),Vr("role"),p(Xi,8),p(ft),p(Nn),p(Cd),p(Hb),p(zo),p(Gb,12),p(et,8))},n.\u0275cmp=Ue({type:n,selectors:[["cdk-table"],["table","cdk-table",""]],contentQueries:function(e,i,r){if(1&e&&(jt(r,zf,5),jt(r,Ns,5),jt(r,qf,5),jt(r,Sd,5),jt(r,Ad,5)),2&e){let o;ce(o=ue())&&(i._noDataRow=o.first),ce(o=ue())&&(i._contentColumnDefs=o),ce(o=ue())&&(i._contentRowDefs=o),ce(o=ue())&&(i._contentHeaderRowDefs=o),ce(o=ue())&&(i._contentFooterRowDefs=o)}},viewQuery:function(e,i){if(1&e&&(De(Gf,7),De(Wf,7),De($f,7),De(Kf,7)),2&e){let r;ce(r=ue())&&(i._rowOutlet=r.first),ce(r=ue())&&(i._headerRowOutlet=r.first),ce(r=ue())&&(i._footerRowOutlet=r.first),ce(r=ue())&&(i._noDataRowOutlet=r.first)}},hostAttrs:[1,"cdk-table"],hostVars:2,hostBindings:function(e,i){2&e&&bt("cdk-table-fixed-layout",i.fixedLayout)},inputs:{trackBy:"trackBy",dataSource:"dataSource",multiTemplateDataRows:"multiTemplateDataRows",fixedLayout:"fixedLayout"},outputs:{contentChanged:"contentChanged"},exportAs:["cdkTable"],features:[it([{provide:Pc,useExisting:n},{provide:Cd,useClass:V1},{provide:Hb,useClass:nI},{provide:Gb,useValue:null}])],ngContentSelectors:J9,decls:6,vars:0,consts:[["headerRowOutlet",""],["rowOutlet",""],["noDataRowOutlet",""],["footerRowOutlet",""]],template:function(e,i){1&e&&(Pn(Q9),Bt(0),Bt(1,1),Wt(2,0)(3,1)(4,2)(5,3))},dependencies:[Gf,Wf,$f,Kf],styles:[".cdk-table-fixed-layout{table-layout:fixed}"],encapsulation:2}),n})();function Qf(n,t){return n.concat(Array.from(t))}let cz=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=ht({type:n}),n.\u0275inj=dt({imports:[mb]}),n})();const uz=[[["caption"]],[["colgroup"],["col"]]],dz=["caption","colgroup, col"];let Jf=(()=>{class n extends Yf{constructor(){super(...arguments),this.stickyCssClass="mat-table-sticky",this.needsPositionStickyOnElement=!1}}return n.\u0275fac=function(){let t;return function(i){return(t||(t=Pt(n)))(i||n)}}(),n.\u0275cmp=Ue({type:n,selectors:[["mat-table"],["table","mat-table",""]],hostAttrs:[1,"mat-table"],hostVars:2,hostBindings:function(e,i){2&e&&bt("mat-table-fixed-layout",i.fixedLayout)},exportAs:["matTable"],features:[it([{provide:Cd,useClass:V1},{provide:Yf,useExisting:n},{provide:Pc,useExisting:n},{provide:Hb,useClass:nI},{provide:Gb,useValue:null}]),Se],ngContentSelectors:dz,decls:6,vars:0,consts:[["headerRowOutlet",""],["rowOutlet",""],["noDataRowOutlet",""],["footerRowOutlet",""]],template:function(e,i){1&e&&(Pn(uz),Bt(0),Bt(1,1),Wt(2,0)(3,1)(4,2)(5,3))},dependencies:[Gf,Wf,$f,Kf],styles:["mat-table{display:block}mat-header-row{min-height:56px}mat-row,mat-footer-row{min-height:48px}mat-row,mat-header-row,mat-footer-row{display:flex;border-width:0;border-bottom-width:1px;border-style:solid;align-items:center;box-sizing:border-box}mat-cell:first-of-type,mat-header-cell:first-of-type,mat-footer-cell:first-of-type{padding-left:24px}[dir=rtl] mat-cell:first-of-type:not(:only-of-type),[dir=rtl] mat-header-cell:first-of-type:not(:only-of-type),[dir=rtl] mat-footer-cell:first-of-type:not(:only-of-type){padding-left:0;padding-right:24px}mat-cell:last-of-type,mat-header-cell:last-of-type,mat-footer-cell:last-of-type{padding-right:24px}[dir=rtl] mat-cell:last-of-type:not(:only-of-type),[dir=rtl] mat-header-cell:last-of-type:not(:only-of-type),[dir=rtl] mat-footer-cell:last-of-type:not(:only-of-type){padding-right:0;padding-left:24px}mat-cell,mat-header-cell,mat-footer-cell{flex:1;display:flex;align-items:center;overflow:hidden;word-wrap:break-word;min-height:inherit}table.mat-table{border-spacing:0}tr.mat-header-row{height:56px}tr.mat-row,tr.mat-footer-row{height:48px}th.mat-header-cell{text-align:left}[dir=rtl] th.mat-header-cell{text-align:right}th.mat-header-cell,td.mat-cell,td.mat-footer-cell{padding:0;border-bottom-width:1px;border-bottom-style:solid}th.mat-header-cell:first-of-type,td.mat-cell:first-of-type,td.mat-footer-cell:first-of-type{padding-left:24px}[dir=rtl] th.mat-header-cell:first-of-type:not(:only-of-type),[dir=rtl] td.mat-cell:first-of-type:not(:only-of-type),[dir=rtl] td.mat-footer-cell:first-of-type:not(:only-of-type){padding-left:0;padding-right:24px}th.mat-header-cell:last-of-type,td.mat-cell:last-of-type,td.mat-footer-cell:last-of-type{padding-right:24px}[dir=rtl] th.mat-header-cell:last-of-type:not(:only-of-type),[dir=rtl] td.mat-cell:last-of-type:not(:only-of-type),[dir=rtl] td.mat-footer-cell:last-of-type:not(:only-of-type){padding-right:0;padding-left:24px}.mat-table-sticky{position:sticky !important}.mat-table-fixed-layout{table-layout:fixed}"],encapsulation:2}),n})(),Td=(()=>{class n extends Lc{}return n.\u0275fac=function(){let t;return function(i){return(t||(t=Pt(n)))(i||n)}}(),n.\u0275dir=fe({type:n,selectors:[["","matCellDef",""]],features:[it([{provide:Lc,useExisting:n}]),Se]}),n})(),xd=(()=>{class n extends Ns{get name(){return this._name}set name(e){this._setNameInput(e)}_updateColumnCssClassName(){super._updateColumnCssClassName(),this._columnCssClassName.push(`mat-column-${this.cssClassFriendlyName}`)}}return n.\u0275fac=function(){let t;return function(i){return(t||(t=Pt(n)))(i||n)}}(),n.\u0275dir=fe({type:n,selectors:[["","matColumnDef",""]],inputs:{sticky:"sticky",name:["matColumnDef","name"]},features:[it([{provide:Ns,useExisting:n},{provide:"MAT_SORT_HEADER_COLUMN_DEF",useExisting:n}]),Se]}),n})(),Id=(()=>{class n extends jb{}return n.\u0275fac=function(){let t;return function(i){return(t||(t=Pt(n)))(i||n)}}(),n.\u0275dir=fe({type:n,selectors:[["mat-cell"],["td","mat-cell",""]],hostAttrs:["role","gridcell",1,"mat-cell"],features:[Se]}),n})(),Zf=(()=>{class n extends qf{}return n.\u0275fac=function(){let t;return function(i){return(t||(t=Pt(n)))(i||n)}}(),n.\u0275dir=fe({type:n,selectors:[["","matRowDef",""]],inputs:{columns:["matRowDefColumns","columns"],when:["matRowDefWhen","when"]},features:[it([{provide:qf,useExisting:n}]),Se]}),n})(),Xf=(()=>{class n extends zb{}return n.\u0275fac=function(){let t;return function(i){return(t||(t=Pt(n)))(i||n)}}(),n.\u0275cmp=Ue({type:n,selectors:[["mat-row"],["tr","mat-row",""]],hostAttrs:["role","row",1,"mat-row"],exportAs:["matRow"],features:[it([{provide:zb,useExisting:n}]),Se],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(e,i){1&e&&Wt(0,0)},dependencies:[Fs],encapsulation:2}),n})(),Ez=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=ht({type:n}),n.\u0275inj=dt({imports:[cz,Lt,Lt]}),n})();const Sz=["searchContact"];function Az(n,t){if(1&n){const e=Ie();g(0,"button",13),W("click",function(){return J(e),Z(C(2).searchValue="")}),be(1,"div",14),_()}if(2&n){const e=C(2);f(1),v("ngStyle",e.searchClearImage)}}function Tz(n,t){if(1&n&&(g(0,"mat-option",15),j(1),_()),2&n){const e=t.$implicit;v("value",e.value),f(1),ve(e.viewValue)}}const xz=function(n){return{background:n}};function Iz(n,t){if(1&n&&be(0,"mat-cell",22),2&n){const e=t.$implicit,i=C(3);v("ngStyle",Wn(1,xz,"no-repeat url("+i.viewIconBaseURL+e.value.iconURL+")"))}}function Mz(n,t){if(1&n&&(g(0,"div"),j(1),_()),2&n){const e=C().$implicit;f(1),qe(" ",e.value.company," ")}}function kz(n,t){if(1&n&&(g(0,"div"),j(1),_()),2&n){const e=C().$implicit;f(1),qe(" ",e.value.postal," ")}}function Rz(n,t){if(1&n&&(g(0,"mat-cell",23)(1,"mat-dialog-content")(2,"span",24),j(3),_(),H(4,Mz,2,1,"div",25),H(5,kz,2,1,"div",25),_()()),2&n){const e=t.$implicit;f(3),qe(" ",e.display," "),f(1),v("ngIf",""!==e.value.company&&e.value.company!==e.display),f(1),v("ngIf",""!==e.value.postal)}}function Oz(n,t){if(1&n){const e=Ie();g(0,"mat-row",26),W("click",function(){const o=J(e).$implicit;return Z(C(3).toggleSelection(o))})("dblclick",function(){const o=J(e).$implicit;return Z(C(3).acceptEntryDblClick(o))}),_()}if(2&n){const e=t.$implicit,i=C(3);bt("isSelected",i.selection.isSelected(e)),v("matRippleColor",i.rippleColor)("matRippleCentered",i.centered)("matRippleDisabled",i.disabled)("matRippleUnbounded",i.unbounded)}}function Pz(n,t){if(1&n&&(g(0,"div")(1,"mat-table",16),xi(2,17),H(3,Iz,1,3,"mat-cell",18),Ii(),xi(4,19),H(5,Rz,6,3,"mat-cell",20),Ii(),H(6,Oz,1,6,"mat-row",21),_()()),2&n){const e=C(2);_s(e.tableWrapperClassName),f(1),v("dataSource",e.searchResults),f(5),v("matRowDefColumns",e.displayedColumns)}}function Lz(n,t){1&n&&(g(0,"div"),j(1),Ze(2,"translate"),_()),2&n&&(f(1),ve(Xe(2,1,"LC53482")))}const Nz=function(n){return{title:n}},Fz=function(n,t,e,i){return{confirm:n,cancel:t,confirmAction:e,cancelAction:i}};function Bz(n,t){if(1&n){const e=Ie();Wt(0,1),Ze(1,"translate"),g(2,"div",2)(3,"div",3)(4,"mat-form-field",4)(5,"mat-label"),j(6),Ze(7,"translate"),_(),g(8,"input",5),W("ngModelChange",function(r){return J(e),Z(C().searchValue=r)})("keyup.enter",function(){return J(e),Z(C().search())}),_(),H(9,Az,2,1,"button",6),_(),g(10,"input",7),W("click",function(){return J(e),Z(C().search())}),Ze(11,"translate"),_()(),g(12,"mat-form-field",8)(13,"mat-label"),j(14),Ze(15,"translate"),_(),g(16,"mat-select",9),W("valueChange",function(r){return J(e),Z(C().selectedDB=r)})("selectionChange",function(){J(e);const r=C();return Z(r.fetchSearch(r.selectedDB))}),H(17,Tz,2,2,"mat-option",10),_()(),H(18,Pz,7,5,"div",11),H(19,Lz,3,3,"ng-template",null,12,Sn),_(),Wt(21,1),Ze(22,"translate"),Ze(23,"translate")}if(2&n){const e=Yt(20),i=C();v("ngTemplateOutlet",i.modalHeader)("ngTemplateOutletContext",Wn(25,Nz,Xe(1,13,"LC53493"))),f(6),ve(Xe(7,15,"LC53489")),f(2),v("ngModel",i.searchValue),f(1),v("ngIf",i.searchValue),f(1),_t("value",Xe(11,17,"LC36251")),f(4),ve(Xe(15,19,"LC53516")),f(2),v("value",i.selectedDB),f(1),v("ngForOf",i.databases),f(1),v("ngIf",i.searchResults.length>=1)("ngIfElse",e),f(3),v("ngTemplateOutlet",i.modalFooter)("ngTemplateOutletContext",Yi(27,Fz,Xe(22,21,"LC73135"),Xe(23,23,"LC73136"),i.confirmAction.bind(i),i.cancelAction.bind(i)))}}let aI=(()=>{class n extends Pb{constructor(e,i,r,o,s,a){super(e,r,i,o,s,a),this.messageEvent=new He,this.prefix="Contacts: ",this.path="search",this.searchResults=[]}ngOnInit(){super.ngOnInit()}getTemplate(){return this.modalTemp}filterForContacts(e){const i={};for(const r in e)"GeOfficeAliases"!==r&&"Contact"===e[r].type&&(i[r]=e[r].title);this.generateSelectionArr(i)}generateSelectionArr(e){for(const i in e)Object.prototype.hasOwnProperty.call(e,i)&&this.databases.push({value:i,viewValue:this.prefix+e[i]});this.databases.length>0&&(this.selectedDB=this.databases[0].value,this.fetchSearch(this.selectedDB))}fetchDBs(){this.connection.getReqModal("dbConnections",null).subscribe(e=>{this.filterForContacts(e)})}handleResult(e){this.searchResults=null!=e.result&&Array.isArray(e.result)&&e.result.length>0?e.result:[]}confirmAction(){this.selection.isEmpty()?this.translate.get("LC53493").subscribe(e=>{this.messageService.showError(e)}):this.openAnotherModal(this.next,{currentContactPointer:this.selection.selected[0].value.fdMe,createType:this.data.createType,contactsDB:this.selectedDB})}}return n.\u0275fac=function(e){return new(e||n)(p(Ut),p(In),p(ot),p(tn),p(wd),p(Ps))},n.\u0275cmp=Ue({type:n,selectors:[["app-search-contact"]],viewQuery:function(e,i){if(1&e&&De(Sz,7),2&e){let r;ce(r=ue())&&(i.modalTemp=r.first)}},inputs:{data:"data"},outputs:{messageEvent:"messageEvent"},features:[Se],decls:2,vars:0,consts:[["searchContact",""],[3,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"modalBody"],[1,"searchInputWrapper"],[1,"searchInput"],["matInput","","type","text",3,"ngModel","ngModelChange","keyup.enter"],["matSuffix","","aria-label","Clear",3,"click",4,"ngIf"],["id","searchButton","type","button",1,"buttonSilverMiddle",3,"value","click"],["appearance","standard",1,"databaseSearchSelect"],[3,"value","valueChange","selectionChange"],[3,"value",4,"ngFor","ngForOf"],[3,"class",4,"ngIf","ngIfElse"],["noResult",""],["matSuffix","","aria-label","Clear",3,"click"],[1,"modalCloseIcon",3,"ngStyle"],[3,"value"],[1,"searchTable",3,"dataSource"],["matColumnDef","icon"],["class","searchIcon",3,"ngStyle",4,"matCellDef"],["matColumnDef","display"],["class","searchDisplay",4,"matCellDef"],["matRipple","","class","searchRow",3,"matRippleColor","matRippleCentered","matRippleDisabled","matRippleUnbounded","isSelected","click","dblclick",4,"matRowDef","matRowDefColumns"],[1,"searchIcon",3,"ngStyle"],[1,"searchDisplay"],[1,"bold"],[4,"ngIf"],["matRipple","",1,"searchRow",3,"matRippleColor","matRippleCentered","matRippleDisabled","matRippleUnbounded","click","dblclick"]],template:function(e,i){1&e&&H(0,Bz,24,32,"ng-template",null,0,Sn)},dependencies:[zn,pn,Ji,ra,Ar,Kr,wo,yd,Ir,Pi,Lb,Ko,cr,Mr,Jf,xd,Td,Zf,Id,Xf,xr,ki],styles:[".searchInputWrapper[_ngcontent-%COMP%]{display:flex;flex-direction:row;align-items:center;justify-content:space-between}.databaseSearchSelect[_ngcontent-%COMP%]{width:100%}.searchInput[_ngcontent-%COMP%]{width:calc(100% - 70px);display:block;padding-bottom:0!important}.searchIcon[_ngcontent-%COMP%]{width:30px;padding:0 10px 0 0!important;background-position:40% 50%!important}.searchRow[_ngcontent-%COMP%] .searchIcon[_ngcontent-%COMP%], .searchRow[_ngcontent-%COMP%] .searchDisplay[_ngcontent-%COMP%], .searchRow[_ngcontent-%COMP%]{border-bottom:0px}.searchRow[_ngcontent-%COMP%]:nth-child(2n){background:#f2f2f2}.isSelected[_ngcontent-%COMP%]{background:rgb(224,239,255)!important}.searchRow[_ngcontent-%COMP%]{cursor:pointer;overflow:hidden;padding-right:5px}.searchRow[_ngcontent-%COMP%]:hover{background:rgba(224,239,255,.4)}.searchDisplay[_ngcontent-%COMP%], .searchTable[_ngcontent-%COMP%]{width:100%}.tableWrapper[_ngcontent-%COMP%], .tableWrapperVerse[_ngcontent-%COMP%], .tableWrapperVerseTabs[_ngcontent-%COMP%]{overflow:auto}.tableWrapper[_ngcontent-%COMP%]{max-height:50vh}.tableWrapperVerse[_ngcontent-%COMP%]{max-height:45vh}.tableWrapperVerseTabs[_ngcontent-%COMP%]{max-height:calc(45vh - 48px)}.overlay-list[_ngcontent-%COMP%], .overlay-selected[_ngcontent-%COMP%]{position:absolute;bottom:0;left:100%;right:0;overflow:hidden;width:0;height:100%;transition:.5s ease;box-shadow:none}.overlay-list[_ngcontent-%COMP%]{background-color:#a1f79b}.overlay-selected[_ngcontent-%COMP%]{background-color:#ff6a6a}.projectButtonContainer[_ngcontent-%COMP%]:hover .overlay-list[_ngcontent-%COMP%], .projectButtonContainer[_ngcontent-%COMP%]:hover .overlay-selected[_ngcontent-%COMP%]{width:30px;left:calc(100% - 30px);box-shadow:0 0 10px #999}.projectButton[_ngcontent-%COMP%]{margin:0;position:absolute;top:50%;left:calc(50% - 9px);transform:translateY(-50%)}#searchButton[_ngcontent-%COMP%]{height:100%;padding:4px;margin:0 0 5px;float:right;font-weight:700;display:flex}"]}),n})();const em=["","FirstName","MiddleName","LastName","FirstName#LastName","FirstName#MiddleName#LastName","LastName#FirstName","fdSalutatoryAddress","fdContactTitle","Company","Address1","Address2","ZipCode","City","ZipCode#City","CountryToo","MainPhone","Fax","CellPhone","EMailAddress","HomePage","Title","Department","State"],jz=["EMailAddress","FirstName#LastName","Company","HomePage","Address1","ZipCode#City","State","CountryToo","MainPhone","Fax","CellPhone","Title","fdContactTitle","Department","","","","","","","","",""];let Fc=(()=>{class n{constructor(e,i,r){this.init=e,this.messageService=i,this.globals=r,this.isInit=!1,this.initServiceInit=!1,this.init.waitForInit().subscribe(o=>{this.initServiceInit=o,this.deactivateLoader()}),this.forceOpen=!1,this.loaderTimeout=null,this.isActive=!1}deactivateLoaderAfterTimeout(){this.isActive&&(this.loaderTimeout=setTimeout(()=>{this.forceDeactivateLoader()},5e3))}activateLoader(e,i){this.globals.loginOpen||(this.clearTimeout(),this.deactivateLoaderAfterTimeout()),i&&(this.isActive=!0,this.forceOpen=i),this.isInit&&(this.isActive=!0,this.loaderCompSubscriber.next({activate:!0,modal:e}))}clearTimeout(){this.messageService.clearConnectionTimeout(),this.loaderTimeout&&(clearTimeout(this.loaderTimeout),this.loaderTimeout=null)}deactivateLoader(){this.isInit&&this.initServiceInit&&!this.forceOpen&&(this.isActive=!1,this.globals.loginOpen||this.clearTimeout(),this.messageService.clearConnectionTimeout(),this.loaderCompSubscriber.next({activate:!1}))}forceDeactivateLoader(){this.isActive=!1,this.globals.loginOpen||this.clearTimeout(),this.forceOpen=!1,this.loaderCompSubscriber.next({activate:!1})}connectToService(){return new b(e=>{this.loaderCompSubscriber=e,this.isInit=!0})}}return n.\u0275fac=function(e){return new(e||n)(M(Rb),M(tn),M(ot))},n.\u0275prov=ge({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),Wb=(()=>{class n{constructor(e,i,r,o,s){this.translate=e,this.connection=i,this.globals=r,this.messageService=o,this.loaderService=s}invokeSoap(e,i,r){return new b(o=>{if(null!==i&&"object"==typeof i)try{let s='";for(const a in i)r?(s+="<"+a+' soapenc:arrayType="xsd:string[1]">",r=!1):s+="<"+a+">";s+="",this.connection.postSoap(this.globals.webInt+"/businessMailContacts",s).subscribe(a=>{a.then(l=>{200===l.status?l.text().then(c=>{const u=(new window.DOMParser).parseFromString(c,"text/xml"),d=u.getElementsByTagName(e+"Return")[0],h=[];let m;if(u.childNodes.length>0)for(let y=0;y{this.messageService.showError(a),this.loaderService.deactivateLoader(),o.error(Error(a))})}else this.translate.get("LC53487").subscribe(s=>{throw this.messageService.showError(s),Error(s)})})}arrayToObj(e,i){const r={};for(const o in e)if(Object.prototype.hasOwnProperty.call(e,o)){const s=e[o].split(i);s.length>=2?r[s[0]]=s[1]:1===s.length&&(r[s[0]]="")}return r}}return n.\u0275fac=function(e){return new(e||n)(M(Ut),M(In),M(ot),M(tn),M(Fc))},n.\u0275prov=ge({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const Jr=navigator.language;let Hz=(()=>{class n{constructor(e,i,r,o){this.translate=e,this.messageService=i,this.soapService=r,this.globals=o}create(e,i,r,o,s,a,l,c){switch(this.closeAll=l,a){case"company":this.handleCreateCompany(e,i,r,o,s);break;case"toCompany":this.handleCreateAddressToCompany(e,i,r,o,s,c);break;case"person":this.handleCreatePrivatePerson(e,i,r,o,s);break;default:this.translate.get("LC53496").subscribe(u=>{this.messageService.showError(u)})}}replaceWithCompanyData(e,i,r,o,s,a){var l=this;return Ae(function*(){const c=yield l.createResultObject(e,i,r,o);l.searchResultData=yield l.soapService.invokeSoap("GetAddressByID",{fdme:s});let u=l.searchResultData;if(u=Object.keys(u),u.length>0){const d=u[0].split("~*~");null!=d&&(c.Company=d[29],c.Address1=d[10],c.Address2=d[30],c.ZipCode=d[12],c.City=d[11],c.State=d[14],c.CountryToo=d[13],c.MainPhone=d[15],c.Fax=d[17])}return a.Company=c.Company,a.Address1=c.Address1,a.Address2=c.Address2,a["ZipCode#City"]=c.ZipCode+" "+c.City,a.State=c.State,a.CountryToo=c.CountryToo,a.MainPhone=c.MainPhone,a.Fax=c.Fax,a})()}createResultObject(e,i,r,o){var s=this;return Ae(function*(){const a={},l=e.split("\n");let c=null,u=null,d=null,h=null;l.length=o;let m="";s.translate.get("LC53497").subscribe(y=>{m=y});for(const y in i)if(c=i[y],null!=l[y]&&null!=c&&Number(y)0){u=c.split("#"),d=l[y].split(" ");for(const A in u)if(Number(A)0&&l[y].trim().length>0&&(h=l[y].trim(),i[y].length>0)){if(null!=a[i[y]]&&0!==a[i[y]].localeCompare(h))return m=m.replace("{DUPLICATE}",r.get(i[y])),void s.messageService.showError(m);a[i[y]]=h}return a})()}handleCreateCompany(e,i,r,o,s){var a=this;return Ae(function*(){const l=yield a.createResultObject(e,i,r,s);if(null==l.Company||""===l.Company)return void a.translate.get("LC73202").subscribe(m=>{m=m.replace("{FIELDNAME}",r.get("Company")),a.messageService.showError(m)});let c="";for(const m in l)c+="~*~"+m+"~#~"+l[m];c="~*~"+l.Company+c,c+="~*~fdCorreType~#~GeMain",c+="~*~fdIsNewDoc~#~0",c+="~*~AddressSynch~#~0";const u={};let d;u.addressData=c,u.contactsPath="$"+o,u.targetCompanyId="",u.languageCode=Array.isArray(Jr)&&Jr.length>0?Jr[0]:Jr;try{d=yield a.soapService.invokeSoap("CreateAddresses",u,!0)}catch(m){return void a.messageService.showError(m.message)}const h=Object.keys(d);1===h.length?(window.open(a.globals.convertToLink(h[0]),"_blank"),a.closeAll()):a.translate.get("LC53496").subscribe(m=>{a.messageService.showError(m)})})()}handleCreateAddressToCompany(e,i,r,o,s,a){var l=this;return Ae(function*(){if(!a)return void l.translate.get("LC53496").subscribe(A=>{l.messageService.showError(A)});const c=yield l.createResultObject(e,i,r,s);let u=l.searchResultData;if(u=Object.keys(u),u.length>0){const A=u[0].split("~*~");null!=A&&(c.Company=A[29],c.Address1=A[10],c.Address2=A[30],c.ZipCode=A[12],c.City=A[11],c.State=A[14],c.CountryToo=A[13],(null==c.MainPhone||0===c.MainPhone.localeCompare(""))&&(c.MainPhone=A[15]),(null==c.Fax||0===c.Fax.localeCompare(""))&&(c.Fax=A[17]))}if(null==c.LastName||0===c.LastName.localeCompare(""))return void l.translate.get("LC73202").subscribe(A=>{A=A.replace("{FIELDNAME}",r.get("LastName")),l.messageService.showError(A)});let d="";for(const A in c)d+="~*~"+A+"~#~"+c[A];d="~*~"+d,d+="~*~AddressSynch~#~1";const h={};let m;h.addressData=d,h.contactsPath="$"+o,h.targetCompanyId=a,h.languageCode=Array.isArray(Jr)&&Jr.length>0?Jr[0]:Jr;try{m=yield l.soapService.invokeSoap("CreateAddresses",h,!0)}catch(A){return void l.messageService.showError(A.message)}const y=Object.keys(m);1===y.length?window.open(l.globals.convertToLink(y[0]),"_blank"):l.translate.get("LC53496").subscribe(A=>{l.messageService.showError(A)}),l.closeAll()})()}handleCreatePrivatePerson(e,i,r,o,s){var a=this;return Ae(function*(){const l=yield a.createResultObject(e,i,r,s);if(delete l.Company,null==l.LastName||0===l.LastName.localeCompare(""))return void a.translate.get("LC73202").subscribe(m=>{m=m.replace("{FIELDNAME}",r.get("LastName")),a.messageService.showError(m)});let c="~*~";for(const m in l)c+="~*~"+m+"~#~"+l[m];c+="~*~fdCorreType~#~GeMain",c+="~*~fdIsNewDoc~#~0",c+="~*~AddressSynch~#~0";const u={};let d;u.addressData=c,u.contactsPath="$"+o,u.targetCompanyId="",u.languageCode=Array.isArray(Jr)&&Jr.length>0?Jr[0]:Jr;try{d=yield a.soapService.invokeSoap("CreateAddresses",u,!0)}catch(m){return void a.messageService.showError(m.message)}const h=Object.keys(d);1===h.length?window.open(a.globals.convertToLink(h[0]),"_blank"):a.translate.get("LC53496").subscribe(m=>{a.messageService.showError(m)}),a.closeAll()})()}}return n.\u0275fac=function(e){return new(e||n)(M(Ut),M(tn),M(Wb),M(ot))},n.\u0275prov=ge({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const Vz=["create"],Uz=["labels"],qz=["areaData"],zz=["previewData"];function Gz(n,t){if(1&n){const e=Ie();g(0,"mat-list-option",11),W("click",function(){const r=J(e),o=r.$implicit,s=r.index;return Z(C(2).changeLabel(o,s))}),j(1),_()}if(2&n){const e=t.$implicit,i=t.index,r=C(2);_t("value",r.currentKeyLabels[i]),f(1),qe(" ",r.fieldDisplayNameMap.get(e)," ")}}function Wz(n,t){1&n&&be(0,"textarea",12,13)}const $z=function(n){return{title:n}},Kz=function(n,t,e,i){return{confirm:n,cancel:t,confirmAction:e,cancelAction:i}};function Yz(n,t){if(1&n&&(Wt(0,1),Ze(1,"translate"),g(2,"div",2)(3,"div",3)(4,"div",4)(5,"mat-selection-list",5,6),H(7,Gz,2,2,"mat-list-option",7),_()(),be(8,"textarea",8,9),H(10,Wz,2,0,"textarea",10),_()(),Wt(11,1),Ze(12,"translate"),Ze(13,"translate")),2&n){const e=Yt(9),i=C();v("ngTemplateOutlet",i.modalHeader)("ngTemplateOutletContext",Wn(15,$z,Xe(1,9,"LC73005"))),f(4),v("ngClass",null!==i.globals.curConnectorType?"createAddressLabels"+i.globals.curConnectorType:""),f(1),v("multiple",!1),f(2),v("ngForOf",i.currentKeyLabels),f(1),v("ngClass",null!==i.globals.curConnectorType?"createAddressTextArea"+i.globals.curConnectorType:""),f(2),v("ngIf",i.globals.displayMailBody),f(1),v("ngTemplateOutlet",i.modalFooter)("ngTemplateOutletContext",Yi(17,Kz,Xe(12,11,"LC73135"),Xe(13,13,"LC73136"),i.confirmAction.bind(i,e),i.cancelAction.bind(i)))}}let Qz=(()=>{class n extends Yr{constructor(e,i,r,o,s){super(e),this.translate=e,this.globals=i,this.messageService=r,this.soapService=o,this.createHandler=s,this.fieldDisplayNameList=[],this.fieldDisplayNameMap=new Map,this.setTranslatedNameList(),this.keyLabels=em,this.currentKeyLabels=jz}ngOnInit(){super.ngOnInit(),this.processScanFooter().then(e=>{this.fillTextArea(e)})}getTemplate(){return this.modalTemp}changeLabel(e,i){const r=this.openAnotherModal("createLabel",{labelDisplayMap:this.fieldDisplayNameMap,createLabels:em,selected:e});r&&r.afterClosed().subscribe(o=>{o&&(this.currentKeyLabels[i]=o)})}processScanFooter(){var e=this;return Ae(function*(){const i=e.globals.curConnector.curPostData.preview;let r;try{r=yield e.soapService.invokeSoap("scanMailFooter",{mailContent:i})}catch{}return r})()}confirmAction(){let e="";e=Array.isArray(arguments[0])?arguments[0][0].value:arguments[0].value,this.createAddress(e)}fillPreviewDisplay(){this.globals.displayMailBody&&this.previewData&&(this.previewData.nativeElement.textContent=this.globals.curConnector.preview)}createAddress(e){this.createHandler.create(e,this.currentKeyLabels,this.fieldDisplayNameMap,this.data.passedData.contactsDB,23,this.data.passedData.createType,this.data.closeAllModal,this.data.passedData.currentContactPointer)}fillTextArea(e){var i=this;return Ae(function*(){let r="",o=!0;const s=i.globals.curMailAddr;i.data.passedData.currentContactPointer&&(e=yield i.createHandler.replaceWithCompanyData("",i.currentKeyLabels,i.fieldDisplayNameMap,23,i.data.passedData.currentContactPointer,e));for(const a in i.currentKeyLabels)if(Object.prototype.hasOwnProperty.call(i.currentKeyLabels,a)){o?o=!1:r+="\n";let l=e[i.currentKeyLabels[a]];"EMailAddress"===i.currentKeyLabels[a]&&null!=s&&(null==l||""===l)&&(l=Array.isArray(s)&&s.length>0?s[0]:s),null==l&&(l=""),r+=l.trim(),i.areaData.nativeElement.textContent=r}i.fillPreviewDisplay()})()}setTranslatedNameList(){this.translate.get("LC73020").subscribe(e=>{this.fieldDisplayNameList=e.split(";"),this.createDisplayMap(this.fieldDisplayNameList)})}createDisplayMap(e){if(em.length===e.length){let i=1;for(const r of em)""!==r&&(this.fieldDisplayNameMap.set(r,e[i]),i++);this.fieldDisplayNameMap.set("",this.fieldDisplayNameList[0])}else this.translate.get("LC53488").subscribe(i=>{this.messageService.showError(i)})}}return n.\u0275fac=function(e){return new(e||n)(p(Ut),p(ot),p(tn),p(Wb),p(Hz))},n.\u0275cmp=Ue({type:n,selectors:[["app-create-contact"]],viewQuery:function(e,i){if(1&e&&(De(Vz,7),De(Uz,5),De(qz,5),De(zz,5)),2&e){let r;ce(r=ue())&&(i.modalTemp=r.first),ce(r=ue())&&(i.selection=r.first),ce(r=ue())&&(i.areaData=r.first),ce(r=ue())&&(i.previewData=r.first)}},inputs:{data:"data"},features:[Se],decls:2,vars:0,consts:[["create",""],[3,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"modalBody"],["id","createWrapper"],["id","createAddressLabels",3,"ngClass"],[3,"multiple"],["labels",""],["checkboxPosition","after",3,"value","click",4,"ngFor","ngForOf"],["id","createAddressTextArea","rows","23",3,"ngClass"],["areaData",""],["id","createMailContentArea","rows","23","readonly","",4,"ngIf"],["checkboxPosition","after",3,"value","click"],["id","createMailContentArea","rows","23","readonly",""],["previewData",""]],template:function(e,i){1&e&&H(0,Yz,14,22,"ng-template",null,0,Sn)},dependencies:[$a,zn,pn,Ji,$o,Ls,ki],styles:[".createAddressLabelsOwa[_ngcontent-%COMP%]{width:110px!important}.createAddressTextAreaOwa[_ngcontent-%COMP%]{width:148px!important;white-space:pre!important;line-height:16px!important;padding-top:2px!important;overflow-y:hidden!important}textarea[_ngcontent-%COMP%], #createAddressLabels[_ngcontent-%COMP%]{overflow:auto;resize:none;font-size:12px;margin:0 2px;outline:none;display:inline-block;border:1px solid rgb(133,133,133)}#createWrapper[_ngcontent-%COMP%]{white-space:nowrap}#createAddressLabels[_ngcontent-%COMP%]{overflow:hidden}@supports (-moz-transform: none){#createAddressLabels[_ngcontent-%COMP%]{top:3px;position:relative}}#createAddressLabels[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]{padding-top:2px}#createAddressLabels[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]{overflow:auto;resize:none;font-size:12px;margin:0 2px;outline:none;height:auto}#createAddressLabels[_ngcontent-%COMP%], #createAddressTextArea[_ngcontent-%COMP%], #createMailContentArea[_ngcontent-%COMP%]{height:382px}#createAddressLabels[_ngcontent-%COMP%]{width:131px}#createAddressTextArea[_ngcontent-%COMP%]{width:230px;white-space:pre;line-height:16px;padding-top:2px}#createMailContentArea[_ngcontent-%COMP%]{width:600px}"]}),n})();const Jz=["crTicket"],Zz=["tiTypes"];function Xz(n,t){if(1&n){const e=Ie();g(0,"mat-list-option",6),W("dblclick",function(){return J(e),Z(C(2).confirmAction())}),j(1),_()}if(2&n){const e=t.$implicit,i=C(2);_t("value",e.value),v("selected",e.key===i.recent),f(1),qe(" ",e.key," ")}}const e7=function(n){return{title:n}},t7=function(n,t,e,i){return{confirm:n,cancel:t,confirmAction:e,cancelAction:i}};function n7(n,t){if(1&n&&(Wt(0,1),Ze(1,"translate"),g(2,"div",2)(3,"mat-selection-list",3,4),H(5,Xz,2,3,"mat-list-option",5),_()(),Wt(6,1),Ze(7,"translate"),Ze(8,"translate")),2&n){const e=C();v("ngTemplateOutlet",e.modalHeader)("ngTemplateOutletContext",Wn(12,e7,Xe(1,6,"LC53522"))),f(3),v("multiple",!1),f(2),v("ngForOf",e.ticketTypes),f(1),v("ngTemplateOutlet",e.modalFooter)("ngTemplateOutletContext",Yi(14,t7,Xe(7,8,"LC73135"),Xe(8,10,"LC73136"),e.confirmAction.bind(e),e.cancelAction.bind(e)))}}let r7=(()=>{class n extends Yr{constructor(e,i,r,o,s,a,l){super(e),this.translate=e,this.connection=i,this.messageService=r,this.addressService=o,this.globals=s,this.connectionService=a,this.loader=l,this.validTypes=[],this.ticketTypes=[],this.recent=sessionStorage.getItem("recentTicketType")}ngOnInit(){super.ngOnInit(),this.fetchTypes()}confirmAction(){try{this.createTicket()}catch{this.translate.get("LC53493").subscribe(i=>{this.messageService.showError(i)})}}createTicket(){this.loader.activateLoader(!0,!0);const i=this.selection.selectedOptions.selected[0].value.split("#");if(Array.isArray(i)&&i.length>1){let r="";this.addressService.currentAddressData&&(r=this.addressService.currentAddressData.pointer),this.createTicketHandler(this.globals.curMailUnid,i[0],i[1],r+"~#~"+this.globals.curMailAddr)}}createTicketHandler(e,i,r,o,s){const a=this.globals.curConnector.curPostData;this.loader.activateLoader(!0,!0),null!=a&&("Owa"===this.globals.curConnectorType?this.ticketHandlerOWA(a,e,i,r,o,s):this.ticketHandlerVerse(a,e,i,r,o,s))}ticketHandlerVerse(e,i,r,o,s,a){!0===a?this.ticketPost(i,r,o,s,a):this.handleDuplicate(i,r,o,s)}ticketHandlerOWA(e,i,r,o,s,a){this.connectionService.postReq("convert","data="+encodeURIComponent(JSON.stringify(e)),!1,{headers:{"content-type":"application/x-www-form-urlencoded"}}).subscribe({next:l=>{i=l,!0===a||!this.globals.curConnector.curPostData.officeAlreadyDoc&&!this.globals.curConnector.curPostData.ticketAlreadyDoc?this.ticketPost("OWA:"+i,r,o,s,a):this.handleDuplicate(i,r,o,s)},error:l=>{this.loader.forceDeactivateLoader(),this.messageService.showError(l.statusText)},complete:()=>{}})}ticketPost(e,i,r,o,s){const a={mailunid:e,dbalias:i,targetemail:r,addrpointer:o};!0===s&&(a["allow-duplicate"]=!0),this.connection.postReq("ticket",this.connection.objectToHttpParams(a)).subscribe({next:l=>{window.open(this.globals.convertToLink(l.result),"_blank"),this.globals.curConnector.alreadyDocumented={officeAlreadyDoc:this.globals.curConnector.curPostData.officeAlreadyDoc,ticketAlreadyDoc:!0},this.loader.forceDeactivateLoader(),this.translate.get("translationWait").subscribe(c=>{this.messageService.showSuccess(this.globals.languageConfLocal.emailDocumented)}),this.closeAll()},error:l=>{409===l.status?this.handleDuplicate(e,i,r,o):this.messageService.showError(l.statusText)},complete:()=>{}})}handleDuplicate(e,i,r,o){this.loader.forceDeactivateLoader();const s=this.openAnotherModal("duplicate");if(s){const a=s.afterClosed().subscribe(l=>{l?(this.loader.activateLoader(!0,!0),this.createTicketHandler(e,i,r,o,l)):a.unsubscribe()})}}fetchTypes(){this.connection.getReqModal("ticket",null).subscribe(e=>{this.filterTypes(e)})}filterTypes(e){const i={};if(Array.isArray(e))for(const o in e)if(Array.isArray(e[o])&&e[o].length>=2){const s=e[o][0],a=e[o][1];i[s]=a,"giRecentSelection"!==s&&this.ticketTypes.push({key:s,value:a})}if(0===Object.keys(i).length&&i.constructor===Object)return void this.translate.get("LC73225").subscribe(o=>{this.messageService.showError(o)});const r=Object.keys(i);this.validTypes=Object.values(i),window.sessionStorage.setItem("recentTicketType",r[this.validTypes.indexOf(i.giRecentSelection)])}}return n.\u0275fac=function(e){return new(e||n)(p(Ut),p(In),p(tn),p(Ps),p(ot),p(In),p(Fc))},n.\u0275cmp=Ue({type:n,selectors:[["app-create-ticket"]],viewQuery:function(e,i){if(1&e&&(De(Jz,7),De(Zz,5)),2&e){let r;ce(r=ue())&&(i.modalTemp=r.first),ce(r=ue())&&(i.selection=r.first)}},features:[Se],decls:2,vars:0,consts:[["crTicket",""],[3,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"modalBody"],[3,"multiple"],["tiTypes",""],["checkboxPosition","after",3,"value","selected","dblclick",4,"ngFor","ngForOf"],["checkboxPosition","after",3,"value","selected","dblclick"]],template:function(e,i){1&e&&H(0,n7,9,19,"ng-template",null,0,Sn)},dependencies:[zn,Ji,$o,Ls,ki]}),n})(),$b=(()=>{class n{constructor(e,i){this.addressService=e,this.globals=i}reload(e){e&&(this.globals.curMailAddr=this.globals.startMailAddr),this.addressService.resetAddr(),this.addressService.addressChange()}}return n.\u0275fac=function(e){return new(e||n)(M(Ps),M(ot))},n.\u0275prov=ge({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),o7=(()=>{class n{constructor(e,i,r,o,s,a,l){this.translate=e,this.globals=i,this.loader=r,this.connectionService=o,this.messageService=s,this.reloadService=a,this.modalService=l,this.allowDuplicate=!1}documentHandler(e,i,r,o,s){"Owa"===this.globals.curConnectorType?this.documentOWA(e,i,r,o,this.convertProjectsArrToString(s)):this.documentVerse(e,i,r,o,this.convertProjectsArrToString(s))}resetAllowDuplicate(){this.allowDuplicate=!1}convertProjectsArrToString(e){if(!(void 0===e||e.length<1))return e.join(";")}documentVerse(e,i,r,o,s){let a="store";this.globals.deleteAttachments&&(a="storedelattach");let l=new $t;l=l.set("unid",e.messageID),l=l.set("pointer",i),l=l.set("office",r),l=l.set("command",a),s&&(l=l.set("projects",s)),this.allowDuplicate&&(l=l.set("allow-duplicate","true")),this.connectionService.postReq("document",l,!1,{headers:{"content-type":"application/x-www-form-urlencoded"}}).subscribe({next:c=>{null!=c&&""!==c?(this.allowDuplicate=!1,this.loader.activateLoader(!0,!0),this.translate.get("translationWait").subscribe(u=>{this.messageService.showSuccess(this.globals.languageConfLocal.emailDocumented),o.closeAll()}),this.globals.openMail&&(l=new $t,l.set("openDocument",c),window.open(this.globals.convertToLink(c),"_blank")),this.resetAllowDuplicate(),this.reloadService.reload(),o.closeAll(),this.loader.forceDeactivateLoader()):this.translate.get("LC53488").subscribe(u=>{this.allowDuplicate=!1,this.loader.forceDeactivateLoader(),this.messageService.showError(u)})},error:c=>{if(this.allowDuplicate=!1,409===c.status)this.translate.get("LC73006").subscribe(u=>{this.messageService.showError(u),this.text=u,o.text=u,this.allowDuplicate=!0});else if(200!==c.status)return this.translate.get("LC73235").subscribe(u=>{this.messageService.showError(u)}),500===c.status?this.translate.get("LC53552").subscribe(u=>{this.messageService.showError(u,void 0,!0)}):this.messageService.showError(c.statusText),void this.resetAllowDuplicate();this.loader.forceDeactivateLoader()},complete:()=>{}})}documentOWA(e,i,r,o,s){var c,l,a=this;if("gi"===this.globals.system)this.connectionService.postReq("convert","data="+encodeURIComponent(JSON.stringify(e)),!1,{headers:{"content-type":"application/x-www-form-urlencoded"}}).subscribe({next:(l=Ae(function*(c){if(null!=c&&""!==c){a.loader.activateLoader(!0,!0);const u=c;let d="store";a.globals.deleteAttachments&&(d="storedelattach");let h=new $t;if(h=h.set("unid",u),h=h.set("pointer",i),h=h.set("office",r),h=h.set("command",d),h=h.set("origUnid",a.globals.curMailUnid),s&&(h=h.set("projects",s)),a.allowDuplicate&&(h=h.set("allow-duplicate","true"),a.allowDuplicate=!1),"Owa"===a.globals.curConnectorType&&!h.get("allow-duplicate")&&a.globals.curConnector.isMailAlreadyDoc)return a.loader.forceDeactivateLoader(),void a.translate.get("LC73006").subscribe(m=>{a.changeToDuplicateModal(m,o)});a.connectionService.postReq("convert",h,!1).subscribe({next:m=>{a.loader.activateLoader(!0,!0),a.translate.get("emailDocumented").subscribe(y=>{a.globals.curConnector.alreadyDocumented={officeAlreadyDoc:!0,ticketAlreadyDoc:a.globals.curConnector.curPostData.ticketAlreadyDoc},a.messageService.showSuccess(y)}),a.globals.openMail&&(h=new $t,h.set("openDocument",m),window.open(a.globals.convertToLink(m),"_blank")),a.reloadService.reload(),o.closeAll(),a.loader.forceDeactivateLoader()},error:m=>{if(a.loader.forceDeactivateLoader(),409===m.status)a.translate.get("LC73006").subscribe(y=>{a.changeToDuplicateModal(y,o)});else if(200!==m.status)return void(m.statusText.includes("CEGetMail")?(a.messageService.showInfo(a.globals.languageConfLocal.noUserAssignedTicket),setTimeout(()=>{a.modalService.closeAllModals(),a.reloadService.reload()},a.messageService.getTimeoutMS())):(a.translate.get("LC73235").subscribe(y=>{a.messageService.showError(y)}),a.messageService.showError(m.statusText)))},complete:()=>{}})}else a.translate.get("LC53488").subscribe(u=>{a.loader.forceDeactivateLoader(),a.messageService.showError(u)})}),function(u){return l.apply(this,arguments)}),error:l=>{this.messageService.showError(l.statusText),this.loader.forceDeactivateLoader(),o.closeAll()},complete:()=>{}});else{if(this.globals.curConnector.isMailAlreadyDoc&&!this.allowDuplicate)return this.loader.forceDeactivateLoader(),void this.translate.get("LC73006").subscribe(l=>{this.changeToDuplicateModal(l,o)});this.resetAllowDuplicate(),this.connectionService.postReq("document",e,!0,void 0,void 0,"?parentId="+i).subscribe({next:(c=Ae(function*(u){a.baNextHandler(u,o)}),function(d){return c.apply(this,arguments)}),error:function(){var c=Ae(function*(u){if(u.status>=200&&u.status<300)a.baNextHandler(u,o);else{const d=yield u.json();let h="Aktion konnte nicht durchgef\xfchrt werden. Versuchen Sie es sp\xe4ter erneut.";d.hasOwnProperty("ExceptionMessage")?h=d.ExceptionMessage:d.hasOwnProperty("Message")&&(h=d.Message),a.modalService.closeAllModals(),a.messageService.showError(h,"Error"),a.loader.forceDeactivateLoader()}});return function(d){return c.apply(this,arguments)}}(),complete:()=>{}})}}baNextHandler(e,i){var r=this;return Ae(function*(){const o=yield e.json();r.loader.activateLoader(!0,!0),r.translate.get("emailDocumented").subscribe(s=>{r.globals.curConnector.alreadyDocumented={officeAlreadyDoc:!0,ticketAlreadyDoc:r.globals.curConnector.curPostData.ticketAlreadyDoc},r.messageService.showSuccess(s)}),r.globals.openMail&&window.open(o.frontEndUri,"_blank"),r.reloadService.reload(),i.closeAll(),r.loader.forceDeactivateLoader()})()}changeToDuplicateModal(e,i){this.text=e,i.text=e,this.allowDuplicate=!0,this.globals.curConnector.alreadyDocumented={officeAlreadyDoc:!0,ticketAlreadyDoc:this.globals.curConnector.curPostData.ticketAlreadyDoc}}}return n.\u0275fac=function(e){return new(e||n)(M(Ut),M(ot),M(Fc),M(In),M(tn),M($b),M(hl))},n.\u0275prov=ge({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();class kr{}var Yo=(()=>(function(n){n[n.projects=0]="projects",n[n.contacts=1]="contacts",n[n.service=2]="service",n[n.opportunity=3]="opportunity",n[n.events=4]="events",n[n.organization=5]="organization",n[n.office=6]="office",n[n.leads=7]="leads"}(Yo||(Yo={})),Yo))();class s7{}var pa=(()=>(function(n){n[n.alreadyDocumented=0]="alreadyDocumented",n[n.notSupported=1]="notSupported"}(pa||(pa={})),pa))();class tm{}var Ao=(()=>(function(n){n.Contact="Contact",n.Service="Service",n.Opportunity="Opportunity",n.ProjectManagement="ProjectManagement",n.Event="Event",n.Organization="Organization",n.Office="Office",n.Leads="Leads",n.Projects="Projects",n.Events="Events",n.Activities="Activities"}(Ao||(Ao={})),Ao))(),Bc=(()=>(function(n){n.DocumentToAnything="DocumentToAnything|vBA9|vGI8.15|"}(Bc||(Bc={})),Bc))();let a7=(()=>{class n{constructor(e,i,r){this.dialogRef=e,this.translate=i,this.globals=r}ngOnInit(){}closeDialog(e){this.dialogRef.close(e)}}return n.\u0275fac=function(e){return new(e||n)(p(Rc),p(Ut),p(ot))},n.\u0275cmp=Ue({type:n,selectors:[["app-already-documented-component"]],decls:10,vars:7,consts:[["mat-dialog-title",""],[1,"mat-typography"],["align","end"],["mat-button","",3,"click"]],template:function(e,i){1&e&&(g(0,"h2",0),j(1),Ze(2,"translate"),_(),be(3,"mat-dialog-content",1),g(4,"mat-dialog-actions",2)(5,"button",3),W("click",function(){return i.closeDialog(!0)}),j(6),Ze(7,"translate"),_(),g(8,"button",3),W("click",function(){return i.closeDialog(!1)}),j(9),_()()),2&e&&(f(1),ve(Xe(2,3,"LC73006")),f(5),ve(Xe(7,5,"LC73057")),f(3),ve(i.globals.languageConfLocal.NO))},dependencies:[tq,yd,I1,tl,ki],encapsulation:2}),n})(),l7=(()=>{class n{constructor(e,i,r){this.dialogRef=e,this.translate=i,this.globals=r}ngOnInit(){}closeDialog(e){this.dialogRef.close(e)}}return n.\u0275fac=function(e){return new(e||n)(p(Rc),p(Ut),p(ot))},n.\u0275cmp=Ue({type:n,selectors:[["app-not-supported-component"]],decls:5,vars:0,consts:[["align","end"],["mat-button","","mat-dialog-close",""]],template:function(e,i){1&e&&(g(0,"mat-dialog-content"),j(1," Addin does not support read mode for appointments. "),_(),g(2,"mat-dialog-actions",0)(3,"button",1),j(4,"Close"),_()())},dependencies:[X6,yd,I1,tl],encapsulation:2}),n})(),nm=(()=>{class n{constructor(e){this.dialog=e}createDialogWithType(e,i){let r;switch(i||((i=new kc).disableClose=!0,i.autoFocus=!0),e){case pa.alreadyDocumented:r=a7;break;case pa.notSupported:r=l7}return new b(o=>{let s=document.createElement("button");document.body.appendChild(s),s.onclick=()=>{o.next(this.dialog.open(r,i))},s?.click(),s?.remove()})}createCustomDialog(){}}return n.\u0275fac=function(e){return new(e||n)(M(Wo))},n.\u0275prov=ge({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();function xn(n,t,e,i){return new(e||(e=Promise))(function(o,s){function a(u){try{c(i.next(u))}catch(d){s(d)}}function l(u){try{c(i.throw(u))}catch(d){s(d)}}function c(u){u.done?o(u.value):function r(o){return o instanceof e?o:new e(function(s){s(o)})}(u.value).then(a,l)}c((i=i.apply(n,t||[])).next())})}const dI=new Set(["graph.microsoft.com","graph.microsoft.us","dod-graph.microsoft.us","graph.microsoft.de","microsoftgraph.chinacloudapi.cn"]),h7=["$select","$expand","$orderby","$filter","$top","$skip","$skipToken","$count"],Yb=n=>{const t=n&&n.constructor&&n.constructor.name;if("Buffer"===t||"Blob"===t||"File"===t||"FormData"===t||"string"==typeof n)return n;if("ArrayBuffer"===t)n=Buffer.from(n);else if("Int8Array"===t||"Int16Array"===t||"Int32Array"===t||"Uint8Array"===t||"Uint16Array"===t||"Uint32Array"===t||"Uint8ClampedArray"===t||"Float32Array"===t||"Float64Array"===t||"DataView"===t)n=Buffer.from(n.buffer);else try{n=JSON.stringify(n)}catch{throw new Error("Unable to stringify the content")}return n};class il{constructor(t=[]){this.middlewareOptions=new Map;for(const e of t)this.middlewareOptions.set(e.constructor,e)}getMiddlewareOptions(t){return this.middlewareOptions.get(t)}setMiddlewareOptions(t,e){this.middlewareOptions.set(t,e)}}const hI=(n,t,e)=>{let i=null;if(typeof Request<"u"&&n instanceof Request)i=n.headers.get(e);else if(typeof t<"u"&&void 0!==t.headers)if(typeof Headers<"u"&&t.headers instanceof Headers)i=t.headers.get(e);else if(t.headers instanceof Array){const r=t.headers;for(let o=0,s=r.length;o{if(typeof Request<"u"&&n instanceof Request)n.headers.set(e,i);else if(typeof t<"u")if(void 0===t.headers)t.headers=new Headers({[e]:i});else if(typeof Headers<"u"&&t.headers instanceof Headers)t.headers.set(e,i);else if(t.headers instanceof Array){let r=0;const o=t.headers.length;for(;r{typeof Request<"u"&&n instanceof Request?n.headers.append(e,i):typeof t<"u"&&(void 0===t.headers?t.headers=new Headers({[e]:i}):typeof Headers<"u"&&t.headers instanceof Headers?t.headers.append(e,i):t.headers instanceof Array?t.headers.push([e,i]):void 0===t.headers?t.headers={[e]:i}:void 0===t.headers[e]?t.headers[e]=i:t.headers[e]+=`, ${i}`)};var rl=(()=>(function(n){n[n.NONE=0]="NONE",n[n.REDIRECT_HANDLER_ENABLED=1]="REDIRECT_HANDLER_ENABLED",n[n.RETRY_HANDLER_ENABLED=2]="RETRY_HANDLER_ENABLED",n[n.AUTHENTICATION_HANDLER_ENABLED=4]="AUTHENTICATION_HANDLER_ENABLED"}(rl||(rl={})),rl))();class fa{constructor(){this.featureUsage=rl.NONE}static updateFeatureUsageFlag(t,e){let i;t.middlewareControl instanceof il?i=t.middlewareControl.getMiddlewareOptions(fa):t.middlewareControl=new il,typeof i>"u"&&(i=new fa,t.middlewareControl.setMiddlewareOptions(fa,i)),i.setFeatureUsage(e)}setFeatureUsage(t){this.featureUsage=this.featureUsage|t}getFeatureUsage(){return this.featureUsage.toString(16)}}let v7=(()=>{class n{execute(e){return xn(this,void 0,void 0,function*(){try{if((n=>{if(-1!==(n=n.toLowerCase()).indexOf("https://")){const t=(n=n.replace("https://","")).indexOf(":"),e=n.indexOf("/");let i="";if(-1!==e)return-1!==t&&t{let n="";for(let t=0;t<32;t++)(8===t||12===t||16===t||20===t)&&(n+="-"),n+=Math.floor(16*Math.random()).toString(16);return n})(),pI(e.request,e.options,n.CLIENT_REQUEST_ID_HEADER,r));let s,o=`${n.PRODUCT_NAME}/2.2.1`;if(e.middlewareControl instanceof il&&(s=e.middlewareControl.getMiddlewareOptions(fa)),s){const a=s.getFeatureUsage();o+=` (${n.FEATURE_USAGE_STRING}=${a})`}fI(e.request,e.options,n.SDK_VERSION_HEADER,o)}else delete e.options.headers[n.CLIENT_REQUEST_ID_HEADER],delete e.options.headers[n.SDK_VERSION_HEADER];return yield this.nextMiddleware.execute(e)}catch(i){throw i}})}setNext(e){this.nextMiddleware=e}}return n.CLIENT_REQUEST_ID_HEADER="client-request-id",n.SDK_VERSION_HEADER="SdkVersion",n.PRODUCT_NAME="graph-js",n.FEATURE_USAGE_STRING="featureUsage",n})();class b7{constructor(t){this.provider=t}getAccessToken(){return xn(this,void 0,void 0,function*(){return new Promise((t,e)=>{this.provider((i,r)=>{r?t(r):e(i)})})})}}class Md extends Error{constructor(t=-1,e,i){super(e||i&&i.message),Object.setPrototypeOf(this,Md.prototype),this.statusCode=t,this.code=null,this.requestId=null,this.date=new Date,this.body=null,this.stack=i?i.stack:this.stack}}class rm{static constructError(t,e){const i=new Md(e,"",t);return void 0!==t.name&&(i.code=t.name),i.body=t.toString(),i.date=new Date,i}static constructErrorFromResponse(t,e){const i=new Md(e,(t=t.error).message);i.code=t.code,void 0!==t.innerError&&(i.requestId=t.innerError["request-id"],i.date=new Date(t.innerError.date));try{i.body=JSON.stringify(t)}catch{}return i}static getError(t=null,e=-1,i){return xn(this,void 0,void 0,function*(){let r;if(r=t&&t.error?rm.constructErrorFromResponse(t,e):typeof Error<"u"&&t instanceof Error?rm.constructError(t,e):new Md(e),"function"!=typeof i)return r;i(r,null)})}}var Rr=(()=>(function(n){n.ARRAYBUFFER="arraybuffer",n.BLOB="blob",n.DOCUMENT="document",n.JSON="json",n.RAW="raw",n.STREAM="stream",n.TEXT="text"}(Rr||(Rr={})),Rr))(),om=(()=>(function(n){n.TEXT_HTML="text/html",n.TEXT_XML="text/xml",n.APPLICATION_XML="application/xml",n.APPLICATION_XHTML="application/xhtml+xml"}(om||(om={})),om))(),kd=(()=>(function(n){n.TEXT_PLAIN="text/plain",n.APPLICATION_JSON="application/json"}(kd||(kd={})),kd))(),Rd=(()=>(function(n){n.DOCUMENT="^(text\\/(html|xml))|(application\\/(xml|xhtml\\+xml))$",n.IMAGE="^image\\/.+"}(Rd||(Rd={})),Rd))();class Od{static parseDocumentResponse(t,e){try{return typeof DOMParser<"u"?new Promise((i,r)=>{t.text().then(o=>{try{const a=(new DOMParser).parseFromString(o,e);i(a)}catch(s){r(s)}})}):Promise.resolve(t.body)}catch(i){throw i}}static convertResponse(t,e){return xn(this,void 0,void 0,function*(){if(204===t.status)return Promise.resolve();let i;try{switch(e){case Rr.ARRAYBUFFER:i=yield t.arrayBuffer();break;case Rr.BLOB:i=yield t.blob();break;case Rr.DOCUMENT:i=yield Od.parseDocumentResponse(t,om.TEXT_XML);break;case Rr.JSON:i=yield t.json();break;case Rr.STREAM:i=yield Promise.resolve(t.body);break;case Rr.TEXT:i=yield t.text();break;default:const r=t.headers.get("Content-type");if(null!==r){const o=r.split(";")[0];i=new RegExp(Rd.DOCUMENT).test(o)?yield Od.parseDocumentResponse(t,o):new RegExp(Rd.IMAGE).test(o)?t.blob():o===kd.TEXT_PLAIN?yield t.text():o===kd.APPLICATION_JSON?yield t.json():Promise.resolve(t.body)}else i=Promise.resolve(t.body)}}catch(r){throw r}return i})}static getResponse(t,e,i){return xn(this,void 0,void 0,function*(){try{if(e===Rr.RAW)return Promise.resolve(t);{const r=yield Od.convertResponse(t,e);if(!t.ok)throw r;if("function"!=typeof i)return r;i(null,r)}}catch(r){throw r}})}}var ur=(()=>(function(n){n.GET="GET",n.PATCH="PATCH",n.POST="POST",n.PUT="PUT",n.DELETE="DELETE"}(ur||(ur={})),ur))();class C7{constructor(t,e,i){this.parsePath=r=>{if(-1!==r.indexOf("https://")){const s=(r=r.replace("https://","")).indexOf("/");-1!==s&&(this.urlComponents.host="https://"+r.substring(0,s),r=r.substring(s+1,r.length));const a=r.indexOf("/");-1!==a&&(this.urlComponents.version=r.substring(0,a),r=r.substring(a+1,r.length))}"/"===r.charAt(0)&&(r=r.substr(1));const o=r.indexOf("?");if(-1===o)this.urlComponents.path=r;else{this.urlComponents.path=r.substr(0,o);const s=r.substring(o+1,r.length).split("&");for(const a of s)this.parseQueryParameter(a)}},this.httpClient=t,this.config=e,this.urlComponents={host:this.config.baseUrl,version:this.config.defaultVersion,oDataQueryParams:{},otherURLQueryParams:{},otherURLQueryOptions:[]},this._headers={},this._options={},this._middlewareOptions=[],this.parsePath(i)}addCsvQueryParameter(t,e,i){this.urlComponents.oDataQueryParams[t]=this.urlComponents.oDataQueryParams[t]?this.urlComponents.oDataQueryParams[t]+",":"";let r=[];i.length>1&&"string"==typeof e?r=Array.prototype.slice.call(i):"string"==typeof e?r.push(e):r=r.concat(e),this.urlComponents.oDataQueryParams[t]+=r.join(",")}buildFullUrl(){const t=(n=>{const t=o=>o.replace(/\/+$/,""),e=o=>o.replace(/^\/+/,"");return Array.prototype.slice.call([this.urlComponents.host,this.urlComponents.version,this.urlComponents.path]).reduce((o,s)=>[t(o),e(s)].join("/"))})()+this.createQueryString();return this.config.debugLogging&&console.log(t),t}createQueryString(){const t=this.urlComponents,e=[];if(0!==Object.keys(t.oDataQueryParams).length)for(const i in t.oDataQueryParams)t.oDataQueryParams.hasOwnProperty(i)&&e.push(i+"="+t.oDataQueryParams[i]);if(0!==Object.keys(t.otherURLQueryParams).length)for(const i in t.otherURLQueryParams)t.otherURLQueryParams.hasOwnProperty(i)&&e.push(i+"="+t.otherURLQueryParams[i]);if(0!==t.otherURLQueryOptions.length)for(const i of t.otherURLQueryOptions)e.push(i);return e.length>0?"?"+e.join("&"):""}parseQueryParameter(t){if("string"==typeof t)if("?"===t.charAt(0)&&(t=t.substring(1)),-1!==t.indexOf("&")){const e=t.split("&");for(const i of e)this.parseQueryParamenterString(i)}else this.parseQueryParamenterString(t);else if(t.constructor===Object)for(const e in t)t.hasOwnProperty(e)&&this.setURLComponentsQueryParamater(e,t[e]);return this}parseQueryParamenterString(t){if(this.isValidQueryKeyValuePair(t)){const e=t.indexOf("="),i=t.substring(0,e),r=t.substring(e+1);this.setURLComponentsQueryParamater(i,r)}else this.urlComponents.otherURLQueryOptions.push(t)}setURLComponentsQueryParamater(t,e){if(-1!==h7.indexOf(t)){const i=this.urlComponents.oDataQueryParams[t];this.urlComponents.oDataQueryParams[t]=!i||"$expand"!==t&&"$select"!==t&&"$orderby"!==t?e:i+","+e}else this.urlComponents.otherURLQueryParams[t]=e}isValidQueryKeyValuePair(t){const e=t.indexOf("=");return!(-1===e||-1!==t.indexOf("(")&&t.indexOf("(")1?this.parseMiddleWareArray(t):this.middleware=t[0]}parseMiddleWareArray(t){t.forEach((e,i)=>{i{class n{constructor(e){this.authenticationProvider=e}execute(e){return xn(this,void 0,void 0,function*(){try{let i,r,o;e.middlewareControl instanceof il&&(i=e.middlewareControl.getMiddlewareOptions(w7)),typeof i<"u"&&(r=i.authenticationProvider,o=i.authenticationProviderOptions),typeof r>"u"&&(r=this.authenticationProvider);const a=`Bearer ${yield r.getAccessToken(o)}`;return fI(e.request,e.options,n.AUTHORIZATION_HEADER,a),fa.updateFeatureUsageFlag(e,rl.AUTHENTICATION_HANDLER_ENABLED),yield this.nextMiddleware.execute(e)}catch(i){throw i}})}setNext(e){this.nextMiddleware=e}}return n.AUTHORIZATION_HEADER="Authorization",n})();class D7{execute(t){return xn(this,void 0,void 0,function*(){try{return void(t.response=yield fetch(t.request,t.options))}catch(e){throw e}})}}let sm=(()=>{class n{constructor(e=n.DEFAULT_MAX_REDIRECTS,i=n.DEFAULT_SHOULD_RETRY){if(e>n.MAX_MAX_REDIRECTS){const r=new Error(`MaxRedirects should not be more than ${n.MAX_MAX_REDIRECTS}`);throw r.name="MaxLimitExceeded",r}if(e<0){const r=new Error("MaxRedirects should not be negative");throw r.name="MinExpectationNotMet",r}this.maxRedirects=e,this.shouldRedirect=i}}return n.DEFAULT_MAX_REDIRECTS=5,n.MAX_MAX_REDIRECTS=20,n.DEFAULT_SHOULD_RETRY=()=>!0,n})(),Qb=(()=>{class n{constructor(e=n.DEFAULT_DELAY,i=n.DEFAULT_MAX_RETRIES,r=n.DEFAULT_SHOULD_RETRY){if(e>n.MAX_DELAY&&i>n.MAX_MAX_RETRIES){const o=new Error(`Delay and MaxRetries should not be more than ${n.MAX_DELAY} and ${n.MAX_MAX_RETRIES}`);throw o.name="MaxLimitExceeded",o}if(e>n.MAX_DELAY){const o=new Error(`Delay should not be more than ${n.MAX_DELAY}`);throw o.name="MaxLimitExceeded",o}if(i>n.MAX_MAX_RETRIES){const o=new Error(`MaxRetries should not be more than ${n.MAX_MAX_RETRIES}`);throw o.name="MaxLimitExceeded",o}if(e<0&&i<0){const o=new Error("Delay and MaxRetries should not be negative");throw o.name="MinExpectationNotMet",o}if(e<0){const o=new Error("Delay should not be negative");throw o.name="MinExpectationNotMet",o}if(i<0){const o=new Error("MaxRetries should not be negative");throw o.name="MinExpectationNotMet",o}this.delay=Math.min(e,n.MAX_DELAY),this.maxRetries=Math.min(i,n.MAX_MAX_RETRIES),this.shouldRetry=r}getMaxDelay(){return n.MAX_DELAY}}return n.DEFAULT_DELAY=3,n.DEFAULT_MAX_RETRIES=3,n.MAX_DELAY=180,n.MAX_MAX_RETRIES=10,n.DEFAULT_SHOULD_RETRY=()=>!0,n})(),S7=(()=>{class n{constructor(e=new sm){this.options=e}isRedirect(e){return-1!==n.REDIRECT_STATUS_CODES.indexOf(e.status)}hasLocationHeader(e){return e.headers.has(n.LOCATION_HEADER)}getLocationHeader(e){return e.headers.get(n.LOCATION_HEADER)}isRelativeURL(e){return-1===e.indexOf("://")}shouldDropAuthorizationHeader(e,i){const r=/^[A-Za-z].+?:\/\/.+?(?=\/|$)/,o=r.exec(e);let s,a;null!==o&&(s=o[0]);const l=r.exec(i);return null!==l&&(a=l[0]),typeof s<"u"&&typeof a<"u"&&s!==a}updateRequestUrl(e,i){return xn(this,void 0,void 0,function*(){i.request="string"==typeof i.request?e:yield((n,t)=>xn(void 0,void 0,void 0,function*(){const e=t.headers.get("Content-Type")?yield t.blob():yield Promise.resolve(void 0),{method:i,headers:r,referrer:o,referrerPolicy:s,mode:a,credentials:l,cache:c,redirect:u,integrity:d,keepalive:h,signal:m}=t;return new Request(n,{method:i,headers:r,body:e,referrer:o,referrerPolicy:s,mode:a,credentials:l,cache:c,redirect:u,integrity:d,keepalive:h,signal:m})}))(e,i.request)})}getOptions(e){let i;return e.middlewareControl instanceof il&&(i=e.middlewareControl.getMiddlewareOptions(sm)),typeof i>"u"&&(i=Object.assign(new sm,this.options)),i}executeWithRedirect(e,i,r){return xn(this,void 0,void 0,function*(){try{yield this.nextMiddleware.execute(e);const o=e.response;if(!(i{class n{constructor(e=new Qb){this.options=e}isRetry(e){return-1!==n.RETRY_STATUS_CODES.indexOf(e.status)}isBuffered(e,i){const r="string"==typeof e?i.method:e.method;return!((r===ur.PUT||r===ur.PATCH||r===ur.POST)&&"application/octet-stream"===hI(e,i,"Content-Type"))}getDelay(e,i,r){const o=()=>Number(Math.random().toFixed(3)),s=void 0!==e.headers?e.headers.get(n.RETRY_AFTER_HEADER):null;let a;return a=null!==s?Number.isNaN(Number(s))?Math.round((new Date(s).getTime()-Date.now())/1e3):Number(s):i>=2?this.getExponentialBackOffTime(i)+r+o():r+o(),Math.min(a,this.options.getMaxDelay()+o())}getExponentialBackOffTime(e){return Math.round(.5*(Math.pow(2,e)-1))}sleep(e){return xn(this,void 0,void 0,function*(){const i=1e3*e;return new Promise(r=>setTimeout(r,i))})}getOptions(e){let i;return e.middlewareControl instanceof il&&(i=e.middlewareControl.getMiddlewareOptions(this.options.constructor)),typeof i>"u"&&(i=Object.assign(new Qb,this.options)),i}executeWithRetry(e,i,r){return xn(this,void 0,void 0,function*(){try{if(yield this.nextMiddleware.execute(e),i{if(typeof Promise>"u"&&typeof fetch>"u"){const n=new Error("Library cannot function without Promise and fetch. So, please provide polyfill for them.");throw n.name="PolyFillNotAvailable",n}if(typeof Promise>"u"){const n=new Error("Library cannot function without Promise. So, please provide polyfill for it.");throw n.name="PolyFillNotAvailable",n}if(typeof fetch>"u"){const n=new Error("Library cannot function without fetch. So, please provide polyfill for it.");throw n.name="PolyFillNotAvailable",n}})()}catch(i){throw i}for(const i in t)t.hasOwnProperty(i)&&(this.config[i]=t[i]);let e;if(void 0!==t.authProvider&&void 0!==t.middleware){const i=new Error;throw i.name="AmbiguityInInitialization",i.message="Unable to Create Client, Please provide either authentication provider for default middleware chain or custom middleware chain not both",i}if(void 0!==t.authProvider)e=Jb.createWithAuthenticationProvider(t.authProvider);else{if(void 0===t.middleware){const i=new Error;throw i.name="InvalidMiddlewareChain",i.message="Unable to Create Client, Please provide either authentication provider for default middleware chain or custom middleware chain",i}e=new mI(...[].concat(t.middleware))}this.httpClient=e}static init(t){const e={};for(const i in t)t.hasOwnProperty(i)&&(e[i]="authProvider"===i?new b7(t[i]):t[i]);return Pd.initWithMiddleware(e)}static initWithMiddleware(t){try{return new Pd(t)}catch(e){throw e}}api(t){return new C7(this.httpClient,this.config,t)}}class jc{}const Zb={scopes:["user.read","Mail.Read","Mail.Read.Shared","Mail.ReadBasic","Mail.ReadBasic.shared","Mail.ReadWrite","Mail.ReadWrite.Shared","Calendars.ReadWrite","Calendars.ReadBasic","Calendars.Read"]};class I7{}var Xb=function(n,t){return(Xb=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,i){e.__proto__=i}||function(e,i){for(var r in i)Object.prototype.hasOwnProperty.call(i,r)&&(e[r]=i[r])})(n,t)};function Ci(n,t){function e(){this.constructor=n}Xb(n,t),n.prototype=null===t?Object.create(t):(e.prototype=t.prototype,new e)}var ct=function(){return ct=Object.assign||function(t){for(var e,i=1,r=arguments.length;i0&&o[o.length-1])&&(6===c[0]||2===c[0])){e=0;continue}if(3===c[0]&&(!o||c[1]>o[0]&&c[1]0)&&!(r=i.next()).done;)o.push(r.value)}catch(a){s={error:a}}finally{try{r&&!r.done&&(e=i.return)&&e.call(i)}finally{if(s)throw s.error}}return o}function gI(){for(var n=[],t=0;t(function(n){n.AcquireTokenByCode="acquireTokenByCode",n.AcquireTokenByRefreshToken="acquireTokenByRefreshToken",n.AcquireTokenSilent="acquireTokenSilent",n.AcquireTokenSilentAsync="acquireTokenSilentAsync",n.AcquireTokenPopup="acquireTokenPopup",n.CryptoOptsGetPublicKeyThumbprint="cryptoOptsGetPublicKeyThumbprint",n.CryptoOptsSignJwt="cryptoOptsSignJwt",n.SilentCacheClientAcquireToken="silentCacheClientAcquireToken",n.SilentIframeClientAcquireToken="silentIframeClientAcquireToken",n.SilentRefreshClientAcquireToken="silentRefreshClientAcquireToken",n.SsoSilent="ssoSilent",n.StandardInteractionClientGetDiscoveredAuthority="standardInteractionClientGetDiscoveredAuthority",n.FetchAccountIdWithNativeBroker="fetchAccountIdWithNativeBroker",n.NativeInteractionClientAcquireToken="nativeInteractionClientAcquireToken",n.RefreshTokenClientExecuteTokenRequest="refreshTokenClientExecuteTokenRequest",n.BaseClientCreateTokenRequestHeaders="baseClientCreateTokenRequestHeaders",n.BrokerHandhshake="brokerHandshake",n.AcquireTokenByRefreshTokenInBroker="acquireTokenByRefreshTokenInBroker",n.AcquireTokenByBroker="acquireTokenByBroker"}(ci||(ci={})),ci))(),ol=(()=>(function(n){n[n.NotStarted=0]="NotStarted",n[n.InProgress=1]="InProgress",n[n.Completed=2]="Completed"}(ol||(ol={})),ol))(),eC=function(n,t){return(eC=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,i){e.__proto__=i}||function(e,i){for(var r in i)Object.prototype.hasOwnProperty.call(i,r)&&(e[r]=i[r])})(n,t)};function dr(n,t){function e(){this.constructor=n}eC(n,t),n.prototype=null===t?Object.create(t):(e.prototype=t.prototype,new e)}var Gn=function(){return Gn=Object.assign||function(t){for(var e,i=1,r=arguments.length;i0&&o[o.length-1])&&(6===c[0]||2===c[0])){e=0;continue}if(3===c[0]&&(!o||c[1]>o[0]&&c[1](function(n){n.CONTENT_TYPE="Content-Type",n.RETRY_AFTER="Retry-After",n.CCS_HEADER="X-AnchorMailbox",n.WWWAuthenticate="WWW-Authenticate",n.AuthenticationInfo="Authentication-Info"}(Qo||(Qo={})),Qo))(),ii=(()=>(function(n){n.ID_TOKEN="idtoken",n.CLIENT_INFO="client.info",n.ADAL_ID_TOKEN="adal.idtoken",n.ERROR="error",n.ERROR_DESC="error.description",n.ACTIVE_ACCOUNT="active-account",n.ACTIVE_ACCOUNT_FILTERS="active-account-filters"}(ii||(ii={})),ii))(),Nd=(()=>(function(n){n.COMMON="common",n.ORGANIZATIONS="organizations",n.CONSUMERS="consumers"}(Nd||(Nd={})),Nd))(),Mt=(()=>(function(n){n.CLIENT_ID="client_id",n.REDIRECT_URI="redirect_uri",n.RESPONSE_TYPE="response_type",n.RESPONSE_MODE="response_mode",n.GRANT_TYPE="grant_type",n.CLAIMS="claims",n.SCOPE="scope",n.ERROR="error",n.ERROR_DESCRIPTION="error_description",n.ACCESS_TOKEN="access_token",n.ID_TOKEN="id_token",n.REFRESH_TOKEN="refresh_token",n.EXPIRES_IN="expires_in",n.STATE="state",n.NONCE="nonce",n.PROMPT="prompt",n.SESSION_STATE="session_state",n.CLIENT_INFO="client_info",n.CODE="code",n.CODE_CHALLENGE="code_challenge",n.CODE_CHALLENGE_METHOD="code_challenge_method",n.CODE_VERIFIER="code_verifier",n.CLIENT_REQUEST_ID="client-request-id",n.X_CLIENT_SKU="x-client-SKU",n.X_CLIENT_VER="x-client-VER",n.X_CLIENT_OS="x-client-OS",n.X_CLIENT_CPU="x-client-CPU",n.X_CLIENT_CURR_TELEM="x-client-current-telemetry",n.X_CLIENT_LAST_TELEM="x-client-last-telemetry",n.X_MS_LIB_CAPABILITY="x-ms-lib-capability",n.X_APP_NAME="x-app-name",n.X_APP_VER="x-app-ver",n.POST_LOGOUT_URI="post_logout_redirect_uri",n.ID_TOKEN_HINT="id_token_hint",n.DEVICE_CODE="device_code",n.CLIENT_SECRET="client_secret",n.CLIENT_ASSERTION="client_assertion",n.CLIENT_ASSERTION_TYPE="client_assertion_type",n.TOKEN_TYPE="token_type",n.REQ_CNF="req_cnf",n.OBO_ASSERTION="assertion",n.REQUESTED_TOKEN_USE="requested_token_use",n.ON_BEHALF_OF="on_behalf_of",n.FOCI="foci",n.CCS_HEADER="X-AnchorMailbox",n.RETURN_SPA_CODE="return_spa_code",n.NATIVE_BROKER="nativebroker",n.LOGOUT_HINT="logout_hint"}(Mt||(Mt={})),Mt))(),sl=(()=>(function(n){n.ACCESS_TOKEN="access_token",n.XMS_CC="xms_cc"}(sl||(sl={})),sl))(),Li={LOGIN:"login",SELECT_ACCOUNT:"select_account",CONSENT:"consent",NONE:"none",CREATE:"create"},Hc=(()=>(function(n){n.ACCOUNT="account",n.SID="sid",n.LOGIN_HINT="login_hint",n.ID_TOKEN="id_token",n.DOMAIN_HINT="domain_hint",n.ORGANIZATIONS="organizations",n.CONSUMERS="consumers",n.ACCOUNT_ID="accountIdentifier",n.HOMEACCOUNT_ID="homeAccountIdentifier"}(Hc||(Hc={})),Hc))(),vI={PLAIN:"plain",S256:"S256"},Fd=(()=>(function(n){n.QUERY="query",n.FRAGMENT="fragment",n.FORM_POST="form_post"}(Fd||(Fd={})),Fd))(),Bd=(()=>(function(n){n.IMPLICIT_GRANT="implicit",n.AUTHORIZATION_CODE_GRANT="authorization_code",n.CLIENT_CREDENTIALS_GRANT="client_credentials",n.RESOURCE_OWNER_PASSWORD_GRANT="password",n.REFRESH_TOKEN_GRANT="refresh_token",n.DEVICE_CODE_GRANT="device_code",n.JWT_BEARER="urn:ietf:params:oauth:grant-type:jwt-bearer"}(Bd||(Bd={})),Bd))(),Jo=(()=>(function(n){n.MSSTS_ACCOUNT_TYPE="MSSTS",n.ADFS_ACCOUNT_TYPE="ADFS",n.MSAV1_ACCOUNT_TYPE="MSA",n.GENERIC_ACCOUNT_TYPE="Generic"}(Jo||(Jo={})),Jo))(),hr=(()=>(function(n){n.CACHE_KEY_SEPARATOR="-",n.CLIENT_INFO_SEPARATOR="."}(hr||(hr={})),hr))(),zt=(()=>(function(n){n.ID_TOKEN="IdToken",n.ACCESS_TOKEN="AccessToken",n.ACCESS_TOKEN_WITH_AUTH_SCHEME="AccessToken_With_AuthScheme",n.REFRESH_TOKEN="RefreshToken"}(zt||(zt={})),zt))(),ma=(()=>(function(n){n.ACCOUNT="Account",n.CREDENTIAL="Credential",n.ID_TOKEN="IdToken",n.ACCESS_TOKEN="AccessToken",n.REFRESH_TOKEN="RefreshToken",n.APP_METADATA="AppMetadata",n.TEMPORARY="TempCache",n.TELEMETRY="Telemetry",n.UNDEFINED="Undefined",n.THROTTLING="Throttling"}(ma||(ma={})),ma))(),Zo=(()=>(function(n){n[n.ADFS=1001]="ADFS",n[n.MSA=1002]="MSA",n[n.MSSTS=1003]="MSSTS",n[n.GENERIC=1004]="GENERIC",n[n.ACCESS_TOKEN=2001]="ACCESS_TOKEN",n[n.REFRESH_TOKEN=2002]="REFRESH_TOKEN",n[n.ID_TOKEN=2003]="ID_TOKEN",n[n.APP_METADATA=3001]="APP_METADATA",n[n.UNDEFINED=9999]="UNDEFINED"}(Zo||(Zo={})),Zo))(),tC="appmetadata",Or=(()=>(function(n){n.CONFIG="config",n.CACHE="cache",n.NETWORK="network",n.HARDCODED_VALUES="hardcoded_values"}(Or||(Or={})),Or))(),wi={SCHEMA_VERSION:5,MAX_CUR_HEADER_BYTES:80,MAX_LAST_HEADER_BYTES:330,MAX_CACHED_ERRORS:50,CACHE_KEY:"server-telemetry",CATEGORY_SEPARATOR:"|",VALUE_SEPARATOR:",",OVERFLOW_TRUE:"1",OVERFLOW_FALSE:"0",UNKNOWN_ERROR:"unknown_error"},fn=(()=>(function(n){n.BEARER="Bearer",n.POP="pop",n.SSH="ssh-cert"}(fn||(fn={})),fn))(),Vd=(()=>(function(n){n.username="username",n.password="password"}(Vd||(Vd={})),Vd))(),al=(()=>(function(n){n[n.httpSuccess=200]="httpSuccess",n[n.httpBadRequest=400]="httpBadRequest"}(al||(al={})),al))(),Bs=(()=>(function(n){n.FAILED_AUTO_DETECTION="1",n.INTERNAL_CACHE="2",n.ENVIRONMENT_VARIABLE="3",n.IMDS="4"}(Bs||(Bs={})),Bs))(),ga=(()=>(function(n){n.CONFIGURED_MATCHES_DETECTED="1",n.CONFIGURED_NO_AUTO_DETECTION="2",n.CONFIGURED_NOT_DETECTED="3",n.AUTO_DETECTION_REQUESTED_SUCCESSFUL="4",n.AUTO_DETECTION_REQUESTED_FAILED="5"}(ga||(ga={})),ga))(),_a=(()=>(function(n){n.NO_CACHE_HIT="0",n.FORCE_REFRESH="1",n.NO_CACHED_ACCESS_TOKEN="2",n.CACHED_ACCESS_TOKEN_EXPIRED="3",n.REFRESH_CACHED_ACCESS_TOKEN="4"}(_a||(_a={})),_a))(),cm=(()=>(function(n){n.Jwt="JWT",n.Jwk="JWK"}(cm||(cm={})),cm))(),Ud_CHANNEL_ID="53ee284d-920a-4b59-9d30-a60315b26836",Xo=(()=>(function(n){n.HandshakeRequest="Handshake",n.HandshakeResponse="HandshakeResponse",n.GetToken="GetToken",n.Response="Response"}(Xo||(Xo={})),Xo))(),pi=(()=>(function(n){n.LocalStorage="localStorage",n.SessionStorage="sessionStorage",n.MemoryStorage="memoryStorage"}(pi||(pi={})),pi))(),To=(()=>(function(n){n.GET="GET",n.POST="POST"}(To||(To={})),To))(),an=(()=>(function(n){n.AUTHORITY="authority",n.ACQUIRE_TOKEN_ACCOUNT="acquireToken.account",n.SESSION_STATE="session.state",n.REQUEST_STATE="request.state",n.NONCE_IDTOKEN="nonce.id_token",n.ORIGIN_URI="request.origin",n.RENEW_STATUS="token.renew.status",n.URL_HASH="urlHash",n.REQUEST_PARAMS="request.params",n.SCOPES="scopes",n.INTERACTION_STATUS_KEY="interaction.status",n.CCS_CREDENTIAL="ccs.credential",n.CORRELATION_ID="request.correlationId",n.NATIVE_REQUEST="request.native"}(an||(an={})),an))(),ll=(()=>(function(n){n.WRAPPER_SKU="wrapper.sku",n.WRAPPER_VER="wrapper.version"}(ll||(ll={})),ll))(),bn=(()=>(function(n){n[n.acquireTokenRedirect=861]="acquireTokenRedirect",n[n.acquireTokenPopup=862]="acquireTokenPopup",n[n.ssoSilent=863]="ssoSilent",n[n.acquireTokenSilent_authCode=864]="acquireTokenSilent_authCode",n[n.handleRedirectPromise=865]="handleRedirectPromise",n[n.acquireTokenByCode=866]="acquireTokenByCode",n[n.acquireTokenSilent_silentFlow=61]="acquireTokenSilent_silentFlow",n[n.logout=961]="logout",n[n.logoutPopup=962]="logoutPopup"}(bn||(bn={})),bn))(),$e=(()=>(function(n){n.Redirect="redirect",n.Popup="popup",n.Silent="silent",n.None="none"}($e||($e={})),$e))(),fi=(()=>(function(n){n.Startup="startup",n.Login="login",n.Logout="logout",n.AcquireToken="acquireToken",n.SsoSilent="ssoSilent",n.HandleRedirect="handleRedirect",n.None="none"}(fi||(fi={})),fi))(),bI={scopes:Ld},um="jwk",dm=(()=>(function(n){n.React="@azure/msal-react",n.Angular="@azure/msal-angular"}(dm||(dm={})),dm))(),hm="msal.db",pm_unexpectedError_code="unexpected_error",pm_unexpectedError_desc="Unexpected error in authentication.",pm_postRequestFailed_code="post_request_failed",pm_postRequestFailed_desc="Post request failed from the network, could be a 4xx/5xx or a network unavailability. Please check the exact error code for details.",ut=function(n){function t(e,i,r){var o=this;return o=n.call(this,i?e+": "+i:e)||this,Object.setPrototypeOf(o,t.prototype),o.errorCode=e||ee.EMPTY_STRING,o.errorMessage=i||ee.EMPTY_STRING,o.subError=r||ee.EMPTY_STRING,o.name="AuthError",o}return dr(t,n),t.prototype.setCorrelationId=function(e){this.correlationId=e},t.createUnexpectedError=function(e){return new t(pm_unexpectedError_code,pm_unexpectedError_desc+": "+e)},t.createPostRequestFailed=function(e){return new t(pm_postRequestFailed_code,pm_postRequestFailed_desc+": "+e)},t}(Error),fm_missingKidError_code="missing_kid_error",fm_missingKidError_desc="The JOSE Header for the requested JWT, JWS or JWK object requires a keyId to be configured as the 'kid' header claim. No 'kid' value was provided.",fm_missingAlgError_code="missing_alg_error",fm_missingAlgError_desc="The JOSE Header for the requested JWT, JWS or JWK object requires an algorithm to be specified as the 'alg' header claim. No 'alg' value was provided.",CI=function(n){function t(e,i){var r=n.call(this,e,i)||this;return r.name="JoseHeaderError",Object.setPrototypeOf(r,t.prototype),r}return dr(t,n),t.createMissingKidError=function(){return new t(fm_missingKidError_code,fm_missingKidError_desc)},t.createMissingAlgError=function(){return new t(fm_missingAlgError_code,fm_missingAlgError_desc)},t}(ut),L7=function(){function n(t){this.typ=t.typ,this.alg=t.alg,this.kid=t.kid}return n.getShrHeaderString=function(t){if(!t.kid)throw CI.createMissingKidError();if(!t.alg)throw CI.createMissingAlgError();var e=new n({typ:t.typ||cm.Jwt,kid:t.kid,alg:t.alg});return JSON.stringify(e)},n}(),Ni=function(){function n(){}return n.decimalToHex=function(t){for(var e=t.toString(16);e.length<2;)e="0"+e;return e},n}(),wI=function(){function n(t){this.cryptoObj=t}return n.prototype.generateGuid=function(){try{var t=new Uint8Array(16);return this.cryptoObj.getRandomValues(t),t[6]|=64,t[6]&=79,t[8]|=128,t[8]&=191,Ni.decimalToHex(t[0])+Ni.decimalToHex(t[1])+Ni.decimalToHex(t[2])+Ni.decimalToHex(t[3])+"-"+Ni.decimalToHex(t[4])+Ni.decimalToHex(t[5])+"-"+Ni.decimalToHex(t[6])+Ni.decimalToHex(t[7])+"-"+Ni.decimalToHex(t[8])+Ni.decimalToHex(t[9])+"-"+Ni.decimalToHex(t[10])+Ni.decimalToHex(t[11])+Ni.decimalToHex(t[12])+Ni.decimalToHex(t[13])+Ni.decimalToHex(t[14])+Ni.decimalToHex(t[15])}catch{for(var e="xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx",i="0123456789abcdef",r=0,o=ee.EMPTY_STRING,s=0;s<36;s++)"-"!==e[s]&&"4"!==e[s]&&(r=16*Math.random()|0),"x"===e[s]?o+=i[r]:"y"===e[s]?(r&=3,o+=i[r|=8]):o+=e[s];return o}},n.prototype.isGuid=function(t){return/^[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/i.test(t)},n}(),Vc=function(){function n(){}return n.stringToUtf8Arr=function(t){for(var e,i=0,r=t.length,o=0;o>>6),s[a++]=128+(63&e)):e<65536?(s[a++]=224+(e>>>12),s[a++]=128+(e>>>6&63),s[a++]=128+(63&e)):e<2097152?(s[a++]=240+(e>>>18),s[a++]=128+(e>>>12&63),s[a++]=128+(e>>>6&63),s[a++]=128+(63&e)):e<67108864?(s[a++]=248+(e>>>24),s[a++]=128+(e>>>18&63),s[a++]=128+(e>>>12&63),s[a++]=128+(e>>>6&63),s[a++]=128+(63&e)):(s[a++]=252+(e>>>30),s[a++]=128+(e>>>24&63),s[a++]=128+(e>>>18&63),s[a++]=128+(e>>>12&63),s[a++]=128+(e>>>6&63),s[a++]=128+(63&e));return s},n.stringToArrayBuffer=function(t){for(var e=new ArrayBuffer(t.length),i=new Uint8Array(e),r=0;r251&&i<254&&o+5247&&i<252&&o+4239&&i<248&&o+3223&&i<240&&o+2191&&i<224&&o+1>>(r=a%3)&24),(2===r||t.length-a==1)&&(i+=String.fromCharCode(this.uint6ToB64(s>>>18&63),this.uint6ToB64(s>>>12&63),this.uint6ToB64(s>>>6&63),this.uint6ToB64(63&s)),s=0);return 0===e?i:i.substring(0,i.length-e)+(1===e?"=":"==")},n.prototype.uint6ToB64=function(t){return t<26?t+65:t<52?t+71:t<62?t-4:62===t?43:63===t?47:65},n}(),N7=function(){function n(){}return n.prototype.decode=function(t){var e=t.replace(/-/g,"+").replace(/_/g,"/");switch(e.length%4){case 0:break;case 2:e+="==";break;case 3:e+="=";break;default:throw new Error("Invalid base64 string")}var i=this.base64DecToArr(e);return Vc.utf8ArrToString(i)},n.prototype.base64DecToArr=function(t,e){for(var i=t.replace(/[^A-Za-z0-9\+\/]/g,ee.EMPTY_STRING),r=i.length,o=e?Math.ceil((3*r+1>>>2)/e)*e:3*r+1>>>2,s=new Uint8Array(o),a=void 0,l=void 0,c=0,u=0,d=0;d>>(16>>>a&24)&255;c=0}return s},n.prototype.b64ToUint6=function(t){return t>64&&t<91?t-65:t>96&&t<123?t-71:t>47&&t<58?t+4:43===t?62:47===t?63:0},n}(),Fe_clientInfoDecodingError_code="client_info_decoding_error",Fe_clientInfoDecodingError_desc="The client info could not be parsed/decoded correctly. Please review the trace to determine the root cause.",Fe_clientInfoEmptyError_code="client_info_empty_error",Fe_clientInfoEmptyError_desc="The client info was empty. Please review the trace to determine the root cause.",Fe_tokenParsingError_code="token_parsing_error",Fe_tokenParsingError_desc="Token cannot be parsed. Please review stack trace to determine root cause.",Fe_nullOrEmptyToken_code="null_or_empty_token",Fe_nullOrEmptyToken_desc="The token is null or empty. Please review the trace to determine the root cause.",Fe_endpointResolutionError_code="endpoints_resolution_error",Fe_endpointResolutionError_desc="Error: could not resolve endpoints. Please check network and try again.",Fe_networkError_code="network_error",Fe_networkError_desc="Network request failed. Please check network trace to determine root cause.",Fe_unableToGetOpenidConfigError_code="openid_config_error",Fe_unableToGetOpenidConfigError_desc="Could not retrieve endpoints. Check your authority and verify the .well-known/openid-configuration endpoint returns the required endpoints.",Fe_hashNotDeserialized_code="hash_not_deserialized",Fe_hashNotDeserialized_desc="The hash parameters could not be deserialized. Please review the trace to determine the root cause.",Fe_invalidStateError_code="invalid_state",Fe_invalidStateError_desc="State was not the expected format. Please check the logs to determine whether the request was sent using ProtocolUtils.setRequestState().",Fe_stateMismatchError_code="state_mismatch",Fe_stateMismatchError_desc="State mismatch error. Please check your network. Continued requests may cause cache overflow.",Fe_stateNotFoundError_code="state_not_found",Fe_stateNotFoundError_desc="State not found",Fe_nonceMismatchError_code="nonce_mismatch",Fe_nonceMismatchError_desc="Nonce mismatch error. This may be caused by a race condition in concurrent requests.",Fe_nonceNotFoundError_code="nonce_not_found",Fe_nonceNotFoundError_desc="nonce not found",Fe_multipleMatchingTokens_code="multiple_matching_tokens",Fe_multipleMatchingTokens_desc="The cache contains multiple tokens satisfying the requirements. Call AcquireToken again providing more requirements such as authority or account.",Fe_multipleMatchingAccounts_code="multiple_matching_accounts",Fe_multipleMatchingAccounts_desc="The cache contains multiple accounts satisfying the given parameters. Please pass more info to obtain the correct account",Fe_multipleMatchingAppMetadata_code="multiple_matching_appMetadata",Fe_multipleMatchingAppMetadata_desc="The cache contains multiple appMetadata satisfying the given parameters. Please pass more info to obtain the correct appMetadata",Fe_tokenRequestCannotBeMade_code="request_cannot_be_made",Fe_tokenRequestCannotBeMade_desc="Token request cannot be made without authorization code or refresh token.",Fe_appendEmptyScopeError_code="cannot_append_empty_scope",Fe_appendEmptyScopeError_desc="Cannot append null or empty scope to ScopeSet. Please check the stack trace for more info.",Fe_removeEmptyScopeError_code="cannot_remove_empty_scope",Fe_removeEmptyScopeError_desc="Cannot remove null or empty scope from ScopeSet. Please check the stack trace for more info.",Fe_appendScopeSetError_code="cannot_append_scopeset",Fe_appendScopeSetError_desc="Cannot append ScopeSet due to error.",Fe_emptyInputScopeSetError_code="empty_input_scopeset",Fe_emptyInputScopeSetError_desc="Empty input ScopeSet cannot be processed.",Fe_DeviceCodePollingCancelled_code="device_code_polling_cancelled",Fe_DeviceCodePollingCancelled_desc="Caller has cancelled token endpoint polling during device code flow by setting DeviceCodeRequest.cancel = true.",Fe_DeviceCodeExpired_code="device_code_expired",Fe_DeviceCodeExpired_desc="Device code is expired.",Fe_DeviceCodeUnknownError_code="device_code_unknown_error",Fe_DeviceCodeUnknownError_desc="Device code stopped polling for unknown reasons.",Fe_NoAccountInSilentRequest_code="no_account_in_silent_request",Fe_NoAccountInSilentRequest_desc="Please pass an account object, silent flow is not supported without account information",Fe_invalidCacheRecord_code="invalid_cache_record",Fe_invalidCacheRecord_desc="Cache record object was null or undefined.",Fe_invalidCacheEnvironment_code="invalid_cache_environment",Fe_invalidCacheEnvironment_desc="Invalid environment when attempting to create cache entry",Fe_noAccountFound_code="no_account_found",Fe_noAccountFound_desc="No account found in cache for given key.",Fe_CachePluginError_code="no cache plugin set on CacheManager",Fe_CachePluginError_desc="ICachePlugin needs to be set before using readFromStorage or writeFromStorage",Fe_noCryptoObj_code="no_crypto_object",Fe_noCryptoObj_desc="No crypto object detected. This is required for the following operation: ",Fe_invalidCacheType_code="invalid_cache_type",Fe_invalidCacheType_desc="Invalid cache type",Fe_unexpectedAccountType_code="unexpected_account_type",Fe_unexpectedAccountType_desc="Unexpected account type.",Fe_unexpectedCredentialType_code="unexpected_credential_type",Fe_unexpectedCredentialType_desc="Unexpected credential type.",Fe_invalidAssertion_code="invalid_assertion",Fe_invalidAssertion_desc="Client assertion must meet requirements described in https://tools.ietf.org/html/rfc7515",Fe_invalidClientCredential_code="invalid_client_credential",Fe_invalidClientCredential_desc="Client credential (secret, certificate, or assertion) must not be empty when creating a confidential client. An application should at most have one credential",Fe_tokenRefreshRequired_code="token_refresh_required",Fe_tokenRefreshRequired_desc="Cannot return token from cache because it must be refreshed. This may be due to one of the following reasons: forceRefresh parameter is set to true, claims have been requested, there is no cached access token or it is expired.",Fe_userTimeoutReached_code="user_timeout_reached",Fe_userTimeoutReached_desc="User defined timeout for device code polling reached",Fe_tokenClaimsRequired_code="token_claims_cnf_required_for_signedjwt",Fe_tokenClaimsRequired_desc="Cannot generate a POP jwt if the token_claims are not populated",Fe_noAuthorizationCodeFromServer_code="authorization_code_missing_from_server_response",Fe_noAuthorizationCodeFromServer_desc="Server response does not contain an authorization code to proceed",Fe_bindingKeyNotRemovedError_code="binding_key_not_removed",Fe_bindingKeyNotRemovedError_desc="Could not remove the credential's binding key from storage.",Fe_logoutNotSupported_code="end_session_endpoint_not_supported",Fe_logoutNotSupported_desc="Provided authority does not support logout.",Fe_keyIdMissing_code="key_id_missing",Fe_keyIdMissing_desc="A keyId value is missing from the requested bound token's cache record and is required to match the token to it's stored binding key.",nt=function(n){function t(e,i){var r=n.call(this,e,i)||this;return r.name="ClientAuthError",Object.setPrototypeOf(r,t.prototype),r}return dr(t,n),t.createClientInfoDecodingError=function(e){return new t(Fe_clientInfoDecodingError_code,Fe_clientInfoDecodingError_desc+" Failed with error: "+e)},t.createClientInfoEmptyError=function(){return new t(Fe_clientInfoEmptyError_code,""+Fe_clientInfoEmptyError_desc)},t.createTokenParsingError=function(e){return new t(Fe_tokenParsingError_code,Fe_tokenParsingError_desc+" Failed with error: "+e)},t.createTokenNullOrEmptyError=function(e){return new t(Fe_nullOrEmptyToken_code,Fe_nullOrEmptyToken_desc+" Raw Token Value: "+e)},t.createEndpointDiscoveryIncompleteError=function(e){return new t(Fe_endpointResolutionError_code,Fe_endpointResolutionError_desc+" Detail: "+e)},t.createNetworkError=function(e,i){return new t(Fe_networkError_code,Fe_networkError_desc+" | Fetch client threw: "+i+" | Attempted to reach: "+e.split("?")[0])},t.createUnableToGetOpenidConfigError=function(e){return new t(Fe_unableToGetOpenidConfigError_code,Fe_unableToGetOpenidConfigError_desc+" Attempted to retrieve endpoints from: "+e)},t.createHashNotDeserializedError=function(e){return new t(Fe_hashNotDeserialized_code,Fe_hashNotDeserialized_desc+" Given Object: "+e)},t.createInvalidStateError=function(e,i){return new t(Fe_invalidStateError_code,Fe_invalidStateError_desc+" Invalid State: "+e+", Root Err: "+i)},t.createStateMismatchError=function(){return new t(Fe_stateMismatchError_code,Fe_stateMismatchError_desc)},t.createStateNotFoundError=function(e){return new t(Fe_stateNotFoundError_code,Fe_stateNotFoundError_desc+": "+e)},t.createNonceMismatchError=function(){return new t(Fe_nonceMismatchError_code,Fe_nonceMismatchError_desc)},t.createNonceNotFoundError=function(e){return new t(Fe_nonceNotFoundError_code,Fe_nonceNotFoundError_desc+": "+e)},t.createMultipleMatchingTokensInCacheError=function(){return new t(Fe_multipleMatchingTokens_code,Fe_multipleMatchingTokens_desc+".")},t.createMultipleMatchingAccountsInCacheError=function(){return new t(Fe_multipleMatchingAccounts_code,Fe_multipleMatchingAccounts_desc)},t.createMultipleMatchingAppMetadataInCacheError=function(){return new t(Fe_multipleMatchingAppMetadata_code,Fe_multipleMatchingAppMetadata_desc)},t.createTokenRequestCannotBeMadeError=function(){return new t(Fe_tokenRequestCannotBeMade_code,Fe_tokenRequestCannotBeMade_desc)},t.createAppendEmptyScopeToSetError=function(e){return new t(Fe_appendEmptyScopeError_code,Fe_appendEmptyScopeError_desc+" Given Scope: "+e)},t.createRemoveEmptyScopeFromSetError=function(e){return new t(Fe_removeEmptyScopeError_code,Fe_removeEmptyScopeError_desc+" Given Scope: "+e)},t.createAppendScopeSetError=function(e){return new t(Fe_appendScopeSetError_code,Fe_appendScopeSetError_desc+" Detail Error: "+e)},t.createEmptyInputScopeSetError=function(){return new t(Fe_emptyInputScopeSetError_code,""+Fe_emptyInputScopeSetError_desc)},t.createDeviceCodeCancelledError=function(){return new t(Fe_DeviceCodePollingCancelled_code,""+Fe_DeviceCodePollingCancelled_desc)},t.createDeviceCodeExpiredError=function(){return new t(Fe_DeviceCodeExpired_code,""+Fe_DeviceCodeExpired_desc)},t.createDeviceCodeUnknownError=function(){return new t(Fe_DeviceCodeUnknownError_code,""+Fe_DeviceCodeUnknownError_desc)},t.createNoAccountInSilentRequestError=function(){return new t(Fe_NoAccountInSilentRequest_code,""+Fe_NoAccountInSilentRequest_desc)},t.createNullOrUndefinedCacheRecord=function(){return new t(Fe_invalidCacheRecord_code,Fe_invalidCacheRecord_desc)},t.createInvalidCacheEnvironmentError=function(){return new t(Fe_invalidCacheEnvironment_code,Fe_invalidCacheEnvironment_desc)},t.createNoAccountFoundError=function(){return new t(Fe_noAccountFound_code,Fe_noAccountFound_desc)},t.createCachePluginError=function(){return new t(Fe_CachePluginError_code,""+Fe_CachePluginError_desc)},t.createNoCryptoObjectError=function(e){return new t(Fe_noCryptoObj_code,""+Fe_noCryptoObj_desc+e)},t.createInvalidCacheTypeError=function(){return new t(Fe_invalidCacheType_code,""+Fe_invalidCacheType_desc)},t.createUnexpectedAccountTypeError=function(){return new t(Fe_unexpectedAccountType_code,""+Fe_unexpectedAccountType_desc)},t.createUnexpectedCredentialTypeError=function(){return new t(Fe_unexpectedCredentialType_code,""+Fe_unexpectedCredentialType_desc)},t.createInvalidAssertionError=function(){return new t(Fe_invalidAssertion_code,""+Fe_invalidAssertion_desc)},t.createInvalidCredentialError=function(){return new t(Fe_invalidClientCredential_code,""+Fe_invalidClientCredential_desc)},t.createRefreshRequiredError=function(){return new t(Fe_tokenRefreshRequired_code,Fe_tokenRefreshRequired_desc)},t.createUserTimeoutReachedError=function(){return new t(Fe_userTimeoutReached_code,Fe_userTimeoutReached_desc)},t.createTokenClaimsRequiredError=function(){return new t(Fe_tokenClaimsRequired_code,Fe_tokenClaimsRequired_desc)},t.createNoAuthCodeInServerResponseError=function(){return new t(Fe_noAuthorizationCodeFromServer_code,Fe_noAuthorizationCodeFromServer_desc)},t.createBindingKeyNotRemovedError=function(){return new t(Fe_bindingKeyNotRemovedError_code,Fe_bindingKeyNotRemovedError_desc)},t.createLogoutNotSupportedError=function(){return new t(Fe_logoutNotSupported_code,Fe_logoutNotSupported_desc)},t.createKeyIdMissingError=function(){return new t(Fe_keyIdMissing_code,Fe_keyIdMissing_desc)},t}(ut),Ke=function(){function n(){}return n.decodeAuthToken=function(t){if(n.isEmpty(t))throw nt.createTokenNullOrEmptyError(t);var i=/^([^\.\s]*)\.([^\.\s]+)\.([^\.\s]*)$/.exec(t);if(!i||i.length<4)throw nt.createTokenParsingError("Given token is malformed: "+JSON.stringify(t));return{header:i[1],JWSPayload:i[2],JWSSig:i[3]}},n.isEmpty=function(t){return typeof t>"u"||!t||0===t.length},n.isEmptyObj=function(t){if(t&&!n.isEmpty(t))try{var e=JSON.parse(t);return 0===Object.keys(e).length}catch{}return!0},n.startsWith=function(t,e){return 0===t.indexOf(e)},n.endsWith=function(t,e){return t.length>=e.length&&t.lastIndexOf(e)===t.length-e.length},n.queryStringToObject=function(t){var e={},i=t.split("&"),r=function(o){return decodeURIComponent(o.replace(/\+/g," "))};return i.forEach(function(o){if(o.trim()){var s=o.split(/=(.+)/g,2),a=s[0],l=s[1];a&&l&&(e[r(a)]=r(l))}}),e},n.trimArrayEntries=function(t){return t.map(function(e){return e.trim()})},n.removeEmptyStringsFromArray=function(t){return t.filter(function(e){return!n.isEmpty(e)})},n.jsonParseHelper=function(t){try{return JSON.parse(t)}catch{return null}},n.matchPattern=function(t,e){return new RegExp(t.replace(/\\/g,"\\\\").replace(/\*/g,"[^ ]*").replace(/\?/g,"\\?")).test(e)},n}(),Re_pkceNotGenerated_code="pkce_not_created",Re_pkceNotGenerated_desc="The PKCE code challenge and verifier could not be generated.",Re_cryptoDoesNotExist_code="crypto_nonexistent",Re_cryptoDoesNotExist_desc="The crypto object or function is not available.",Re_httpMethodNotImplementedError_code="http_method_not_implemented",Re_httpMethodNotImplementedError_desc="The HTTP method given has not been implemented in this library.",Re_emptyNavigateUriError_code="empty_navigate_uri",Re_emptyNavigateUriError_desc="Navigation URI is empty. Please check stack trace for more info.",Re_hashEmptyError_code="hash_empty_error",Re_hashEmptyError_desc="Hash value cannot be processed because it is empty. Please verify that your redirectUri is not clearing the hash. For more visit: aka.ms/msaljs/browser-errors.",Re_hashDoesNotContainStateError_code="no_state_in_hash",Re_hashDoesNotContainStateError_desc="Hash does not contain state. Please verify that the request originated from msal.",Re_hashDoesNotContainKnownPropertiesError_code="hash_does_not_contain_known_properties",Re_hashDoesNotContainKnownPropertiesError_desc="Hash does not contain known properites. Please verify that your redirectUri is not changing the hash. For more visit: aka.ms/msaljs/browser-errors.",Re_unableToParseStateError_code="unable_to_parse_state",Re_unableToParseStateError_desc="Unable to parse state. Please verify that the request originated from msal.",Re_stateInteractionTypeMismatchError_code="state_interaction_type_mismatch",Re_stateInteractionTypeMismatchError_desc="Hash contains state but the interaction type does not match the caller.",Re_interactionInProgress_code="interaction_in_progress",Re_interactionInProgress_desc="Interaction is currently in progress. Please ensure that this interaction has been completed before calling an interactive API. For more visit: aka.ms/msaljs/browser-errors.",Re_popupWindowError_code="popup_window_error",Re_popupWindowError_desc="Error opening popup window. This can happen if you are using IE or if popups are blocked in the browser.",Re_emptyWindowError_code="empty_window_error",Re_emptyWindowError_desc="window.open returned null or undefined window object.",Re_userCancelledError_code="user_cancelled",Re_userCancelledError_desc="User cancelled the flow.",Re_monitorPopupTimeoutError_code="monitor_window_timeout",Re_monitorPopupTimeoutError_desc="Token acquisition in popup failed due to timeout. For more visit: aka.ms/msaljs/browser-errors.",Re_monitorIframeTimeoutError_code="monitor_window_timeout",Re_monitorIframeTimeoutError_desc="Token acquisition in iframe failed due to timeout. For more visit: aka.ms/msaljs/browser-errors.",Re_redirectInIframeError_code="redirect_in_iframe",Re_redirectInIframeError_desc="Redirects are not supported for iframed or brokered applications. Please ensure you are using MSAL.js in a top frame of the window if using the redirect APIs, or use the popup APIs.",Re_blockTokenRequestsInHiddenIframeError_code="block_iframe_reload",Re_blockTokenRequestsInHiddenIframeError_desc="Request was blocked inside an iframe because MSAL detected an authentication response. For more visit: aka.ms/msaljs/browser-errors",Re_blockAcquireTokenInPopupsError_code="block_nested_popups",Re_blockAcquireTokenInPopupsError_desc="Request was blocked inside a popup because MSAL detected it was running in a popup.",Re_iframeClosedPrematurelyError_code="iframe_closed_prematurely",Re_iframeClosedPrematurelyError_desc="The iframe being monitored was closed prematurely.",Re_silentLogoutUnsupportedError_code="silent_logout_unsupported",Re_silentLogoutUnsupportedError_desc="Silent logout not supported. Please call logoutRedirect or logoutPopup instead.",Re_noAccountError_code="no_account_error",Re_noAccountError_desc="No account object provided to acquireTokenSilent and no active account has been set. Please call setActiveAccount or provide an account on the request.",Re_silentPromptValueError_code="silent_prompt_value_error",Re_silentPromptValueError_desc="The value given for the prompt value is not valid for silent requests - must be set to 'none'.",Re_noTokenRequestCacheError_code="no_token_request_cache_error",Re_noTokenRequestCacheError_desc="No token request found in cache.",Re_unableToParseTokenRequestCacheError_code="unable_to_parse_token_request_cache_error",Re_unableToParseTokenRequestCacheError_desc="The cached token request could not be parsed.",Re_noCachedAuthorityError_code="no_cached_authority_error",Re_noCachedAuthorityError_desc="No cached authority found.",Re_authRequestNotSet_code="auth_request_not_set_error",Re_authRequestNotSet_desc="Auth Request not set. Please ensure initiateAuthRequest was called from the InteractionHandler",Re_invalidCacheType_code="invalid_cache_type",Re_invalidCacheType_desc="Invalid cache type",Re_notInBrowserEnvironment_code="non_browser_environment",Re_notInBrowserEnvironment_desc="Login and token requests are not supported in non-browser environments.",Re_databaseNotOpen_code="database_not_open",Re_databaseNotOpen_desc="Database is not open!",Re_noNetworkConnectivity_code="no_network_connectivity",Re_noNetworkConnectivity_desc="No network connectivity. Check your internet connection.",Re_postRequestFailed_code="post_request_failed",Re_postRequestFailed_desc="Network request failed: If the browser threw a CORS error, check that the redirectUri is registered in the Azure App Portal as type 'SPA'",Re_getRequestFailed_code="get_request_failed",Re_getRequestFailed_desc="Network request failed. Please check the network trace to determine root cause.",Re_failedToParseNetworkResponse_code="failed_to_parse_response",Re_failedToParseNetworkResponse_desc="Failed to parse network response. Check network trace.",Re_unableToLoadTokenError_code="unable_to_load_token",Re_unableToLoadTokenError_desc="Error loading token to cache.",Re_signingKeyNotFoundInStorage_code="crypto_key_not_found",Re_signingKeyNotFoundInStorage_desc="Cryptographic Key or Keypair not found in browser storage.",Re_authCodeRequired_code="auth_code_required",Re_authCodeRequired_desc="An authorization code must be provided (as the `code` property on the request) to this flow.",Re_authCodeOrNativeAccountRequired_code="auth_code_or_nativeAccountId_required",Re_authCodeOrNativeAccountRequired_desc="An authorization code or nativeAccountId must be provided to this flow.",Re_databaseUnavailable_code="database_unavailable",Re_databaseUnavailable_desc="IndexedDB, which is required for persistent cryptographic key storage, is unavailable. This may be caused by browser privacy features which block persistent storage in third-party contexts.",Re_unableToAcquireTokenFromNativePlatform_code="unable_to_acquire_token_from_native_platform",Re_unableToAcquireTokenFromNativePlatform_desc="Unable to acquire token from native platform. For a list of possible reasons visit aka.ms/msaljs/browser-errors.",Re_nativeHandshakeTimeout_code="native_handshake_timeout",Re_nativeHandshakeTimeout_desc="Timed out while attempting to establish connection to browser extension",Re_nativeExtensionNotInstalled_code="native_extension_not_installed",Re_nativeExtensionNotInstalled_desc="Native extension is not installed. If you think this is a mistake call the initialize function.",Re_nativeConnectionNotEstablished_code="native_connection_not_established",Re_nativeConnectionNotEstablished_desc="Connection to native platform has not been established. Please install a compatible browser extension and run initialize(). For more please visit aka.ms/msaljs/browser-errors.",Re_nativeBrokerCalledBeforeInitialize_code="native_broker_called_before_initialize",Re_nativeBrokerCalledBeforeInitialize_desc="You must call and await the initialize function before attempting to call any other MSAL API when native brokering is enabled. For more please visit aka.ms/msaljs/browser-errors.",Re_nativePromptNotSupported_code="native_prompt_not_supported",Re_nativePromptNotSupported_desc="The provided prompt is not supported by the native platform. This request should be routed to the web based flow.",ze=function(n){function t(e,i){var r=n.call(this,e,i)||this;return Object.setPrototypeOf(r,t.prototype),r.name="BrowserAuthError",r}return Ci(t,n),t.createPkceNotGeneratedError=function(e){return new t(Re_pkceNotGenerated_code,Re_pkceNotGenerated_desc+" Detail:"+e)},t.createCryptoNotAvailableError=function(e){return new t(Re_cryptoDoesNotExist_code,Re_cryptoDoesNotExist_desc+" Detail:"+e)},t.createHttpMethodNotImplementedError=function(e){return new t(Re_httpMethodNotImplementedError_code,Re_httpMethodNotImplementedError_desc+" Given Method: "+e)},t.createEmptyNavigationUriError=function(){return new t(Re_emptyNavigateUriError_code,Re_emptyNavigateUriError_desc)},t.createEmptyHashError=function(e){return new t(Re_hashEmptyError_code,Re_hashEmptyError_desc+" Given Url: "+e)},t.createHashDoesNotContainStateError=function(){return new t(Re_hashDoesNotContainStateError_code,Re_hashDoesNotContainStateError_desc)},t.createHashDoesNotContainKnownPropertiesError=function(){return new t(Re_hashDoesNotContainKnownPropertiesError_code,Re_hashDoesNotContainKnownPropertiesError_desc)},t.createUnableToParseStateError=function(){return new t(Re_unableToParseStateError_code,Re_unableToParseStateError_desc)},t.createStateInteractionTypeMismatchError=function(){return new t(Re_stateInteractionTypeMismatchError_code,Re_stateInteractionTypeMismatchError_desc)},t.createInteractionInProgressError=function(){return new t(Re_interactionInProgress_code,Re_interactionInProgress_desc)},t.createPopupWindowError=function(e){var i=Re_popupWindowError_desc;return i=Ke.isEmpty(e)?i:i+" Details: "+e,new t(Re_popupWindowError_code,i)},t.createEmptyWindowCreatedError=function(){return new t(Re_emptyWindowError_code,Re_emptyWindowError_desc)},t.createUserCancelledError=function(){return new t(Re_userCancelledError_code,Re_userCancelledError_desc)},t.createMonitorPopupTimeoutError=function(){return new t(Re_monitorPopupTimeoutError_code,Re_monitorPopupTimeoutError_desc)},t.createMonitorIframeTimeoutError=function(){return new t(Re_monitorIframeTimeoutError_code,Re_monitorIframeTimeoutError_desc)},t.createRedirectInIframeError=function(e){return new t(Re_redirectInIframeError_code,Re_redirectInIframeError_desc+" (window.parent !== window) => "+e)},t.createBlockReloadInHiddenIframeError=function(){return new t(Re_blockTokenRequestsInHiddenIframeError_code,Re_blockTokenRequestsInHiddenIframeError_desc)},t.createBlockAcquireTokenInPopupsError=function(){return new t(Re_blockAcquireTokenInPopupsError_code,Re_blockAcquireTokenInPopupsError_desc)},t.createIframeClosedPrematurelyError=function(){return new t(Re_iframeClosedPrematurelyError_code,Re_iframeClosedPrematurelyError_desc)},t.createSilentLogoutUnsupportedError=function(){return new t(Re_silentLogoutUnsupportedError_code,Re_silentLogoutUnsupportedError_desc)},t.createNoAccountError=function(){return new t(Re_noAccountError_code,Re_noAccountError_desc)},t.createSilentPromptValueError=function(e){return new t(Re_silentPromptValueError_code,Re_silentPromptValueError_desc+" Given value: "+e)},t.createUnableToParseTokenRequestCacheError=function(){return new t(Re_unableToParseTokenRequestCacheError_code,Re_unableToParseTokenRequestCacheError_desc)},t.createNoTokenRequestCacheError=function(){return new t(Re_noTokenRequestCacheError_code,Re_noTokenRequestCacheError_desc)},t.createAuthRequestNotSetError=function(){return new t(Re_authRequestNotSet_code,Re_authRequestNotSet_desc)},t.createNoCachedAuthorityError=function(){return new t(Re_noCachedAuthorityError_code,Re_noCachedAuthorityError_desc)},t.createInvalidCacheTypeError=function(){return new t(Re_invalidCacheType_code,""+Re_invalidCacheType_desc)},t.createNonBrowserEnvironmentError=function(){return new t(Re_notInBrowserEnvironment_code,Re_notInBrowserEnvironment_desc)},t.createDatabaseNotOpenError=function(){return new t(Re_databaseNotOpen_code,Re_databaseNotOpen_desc)},t.createNoNetworkConnectivityError=function(){return new t(Re_noNetworkConnectivity_code,Re_noNetworkConnectivity_desc)},t.createPostRequestFailedError=function(e,i){return new t(Re_postRequestFailed_code,Re_postRequestFailed_desc+" | Network client threw: "+e+" | Attempted to reach: "+i.split("?")[0])},t.createGetRequestFailedError=function(e,i){return new t(Re_getRequestFailed_code,Re_getRequestFailed_desc+" | Network client threw: "+e+" | Attempted to reach: "+i.split("?")[0])},t.createFailedToParseNetworkResponseError=function(e){return new t(Re_failedToParseNetworkResponse_code,Re_failedToParseNetworkResponse_desc+" | Attempted to reach: "+e.split("?")[0])},t.createUnableToLoadTokenError=function(e){return new t(Re_unableToLoadTokenError_code,Re_unableToLoadTokenError_desc+" | "+e)},t.createSigningKeyNotFoundInStorageError=function(e){return new t(Re_signingKeyNotFoundInStorage_code,Re_signingKeyNotFoundInStorage_desc+" | No match found for KeyId: "+e)},t.createAuthCodeRequiredError=function(){return new t(Re_authCodeRequired_code,Re_authCodeRequired_desc)},t.createAuthCodeOrNativeAccountIdRequiredError=function(){return new t(Re_authCodeOrNativeAccountRequired_code,Re_authCodeOrNativeAccountRequired_desc)},t.createDatabaseUnavailableError=function(){return new t(Re_databaseUnavailable_code,Re_databaseUnavailable_desc)},t.createUnableToAcquireTokenFromNativePlatformError=function(){return new t(Re_unableToAcquireTokenFromNativePlatform_code,Re_unableToAcquireTokenFromNativePlatform_desc)},t.createNativeHandshakeTimeoutError=function(){return new t(Re_nativeHandshakeTimeout_code,Re_nativeHandshakeTimeout_desc)},t.createNativeExtensionNotInstalledError=function(){return new t(Re_nativeExtensionNotInstalled_code,Re_nativeExtensionNotInstalled_desc)},t.createNativeConnectionNotEstablishedError=function(){return new t(Re_nativeConnectionNotEstablished_code,Re_nativeConnectionNotEstablished_desc)},t.createNativeBrokerCalledBeforeInitialize=function(){return new t(Re_nativeBrokerCalledBeforeInitialize_code,Re_nativeBrokerCalledBeforeInitialize_desc)},t.createNativePromptParameterNotSupportedError=function(){return new t(Re_nativePromptNotSupported_code,Re_nativePromptNotSupported_desc)},t}(ut),B7=function(){function n(t){this.base64Encode=new EI,this.cryptoObj=t}return n.prototype.generateCodes=function(){return Oe(this,void 0,void 0,function(){var t,e;return Pe(this,function(i){switch(i.label){case 0:return t=this.generateCodeVerifier(),[4,this.generateCodeChallengeFromVerifier(t)];case 1:return e=i.sent(),[2,{verifier:t,challenge:e}]}})})},n.prototype.generateCodeVerifier=function(){try{var t=new Uint8Array(32);return this.cryptoObj.getRandomValues(t),this.base64Encode.urlEncodeArr(t)}catch(i){throw ze.createPkceNotGeneratedError(i)}},n.prototype.generateCodeChallengeFromVerifier=function(t){return Oe(this,void 0,void 0,function(){var e,i;return Pe(this,function(r){switch(r.label){case 0:return r.trys.push([0,2,,3]),[4,this.cryptoObj.sha256Digest(t)];case 1:return e=r.sent(),[2,this.base64Encode.urlEncodeArr(new Uint8Array(e))];case 2:throw i=r.sent(),ze.createPkceNotGeneratedError(i);case 3:return[2]}})})},n}(),nC="SHA-256",V7=new Uint8Array([1,0,1]),mm=function(){function n(t){if(this.logger=t,!this.hasCryptoAPI())throw ze.createCryptoNotAvailableError("Browser crypto or msCrypto object not available.");this._keygenAlgorithmOptions={name:"RSASSA-PKCS1-v1_5",hash:nC,modulusLength:2048,publicExponent:V7}}return n.prototype.sha256Digest=function(t){return Oe(this,void 0,void 0,function(){var e;return Pe(this,function(i){return e=Vc.stringToUtf8Arr(t),[2,this.hasIECrypto()?this.getMSCryptoDigest(nC,e):this.getSubtleCryptoDigest(nC,e)]})})},n.prototype.getRandomValues=function(t){var e=window.msCrypto||window.crypto;if(!e.getRandomValues)throw ze.createCryptoNotAvailableError("getRandomValues does not exist.");e.getRandomValues(t)},n.prototype.generateKeyPair=function(t,e){return Oe(this,void 0,void 0,function(){return Pe(this,function(i){return[2,this.hasIECrypto()?this.msCryptoGenerateKey(t,e):window.crypto.subtle.generateKey(this._keygenAlgorithmOptions,t,e)]})})},n.prototype.exportJwk=function(t){return Oe(this,void 0,void 0,function(){return Pe(this,function(e){return[2,this.hasIECrypto()?this.msCryptoExportJwk(t):window.crypto.subtle.exportKey(um,t)]})})},n.prototype.importJwk=function(t,e,i){return Oe(this,void 0,void 0,function(){var r,o;return Pe(this,function(s){return r=n.getJwkString(t),o=Vc.stringToArrayBuffer(r),[2,this.hasIECrypto()?this.msCryptoImportKey(o,e,i):window.crypto.subtle.importKey(um,t,this._keygenAlgorithmOptions,e,i)]})})},n.prototype.sign=function(t,e){return Oe(this,void 0,void 0,function(){return Pe(this,function(i){return[2,this.hasIECrypto()?this.msCryptoSign(t,e):window.crypto.subtle.sign(this._keygenAlgorithmOptions,t,e)]})})},n.prototype.hasCryptoAPI=function(){return this.hasIECrypto()||this.hasBrowserCrypto()},n.prototype.hasIECrypto=function(){return"msCrypto"in window},n.prototype.hasBrowserCrypto=function(){return"crypto"in window},n.prototype.getSubtleCryptoDigest=function(t,e){return Oe(this,void 0,void 0,function(){return Pe(this,function(i){return[2,window.crypto.subtle.digest(t,e)]})})},n.prototype.getMSCryptoDigest=function(t,e){return Oe(this,void 0,void 0,function(){return Pe(this,function(i){return[2,new Promise(function(r,o){var s=window.msCrypto.subtle.digest(t,e.buffer);s.addEventListener("complete",function(a){r(a.target.result)}),s.addEventListener("error",function(a){o(a)})})]})})},n.prototype.msCryptoGenerateKey=function(t,e){return Oe(this,void 0,void 0,function(){var i=this;return Pe(this,function(r){return[2,new Promise(function(o,s){var a=window.msCrypto.subtle.generateKey(i._keygenAlgorithmOptions,t,e);a.addEventListener("complete",function(l){o(l.target.result)}),a.addEventListener("error",function(l){s(l)})})]})})},n.prototype.msCryptoExportJwk=function(t){return Oe(this,void 0,void 0,function(){return Pe(this,function(e){return[2,new Promise(function(i,r){var o=window.msCrypto.subtle.exportKey(um,t);o.addEventListener("complete",function(s){var l=Vc.utf8ArrToString(new Uint8Array(s.target.result)).replace(/\r/g,ee.EMPTY_STRING).replace(/\n/g,ee.EMPTY_STRING).replace(/\t/g,ee.EMPTY_STRING).split(" ").join(ee.EMPTY_STRING).replace("\0",ee.EMPTY_STRING);try{i(JSON.parse(l))}catch(c){r(c)}}),o.addEventListener("error",function(s){r(s)})})]})})},n.prototype.msCryptoImportKey=function(t,e,i){return Oe(this,void 0,void 0,function(){var r=this;return Pe(this,function(o){return[2,new Promise(function(s,a){var l=window.msCrypto.subtle.importKey(um,t,r._keygenAlgorithmOptions,e,i);l.addEventListener("complete",function(c){s(c.target.result)}),l.addEventListener("error",function(c){a(c)})})]})})},n.prototype.msCryptoSign=function(t,e){return Oe(this,void 0,void 0,function(){var i=this;return Pe(this,function(r){return[2,new Promise(function(o,s){var a=window.msCrypto.subtle.sign(i._keygenAlgorithmOptions,t,e);a.addEventListener("complete",function(l){o(l.target.result)}),a.addEventListener("error",function(l){s(l)})})]})})},n.getJwkString=function(t){return JSON.stringify(t,Object.keys(t).sort())},n}(),U7=function(){function n(){this.dbName=hm,this.version=1,this.tableName="msal.db.keys",this.dbOpen=!1}return n.prototype.open=function(){return Oe(this,void 0,void 0,function(){var t=this;return Pe(this,function(e){return[2,new Promise(function(i,r){var o=window.indexedDB.open(t.dbName,t.version);o.addEventListener("upgradeneeded",function(s){s.target.result.createObjectStore(t.tableName)}),o.addEventListener("success",function(s){t.db=s.target.result,t.dbOpen=!0,i()}),o.addEventListener("error",function(){return r(ze.createDatabaseUnavailableError())})})]})})},n.prototype.closeConnection=function(){var t=this.db;t&&this.dbOpen&&(t.close(),this.dbOpen=!1)},n.prototype.validateDbIsOpen=function(){return Oe(this,void 0,void 0,function(){return Pe(this,function(t){switch(t.label){case 0:return this.dbOpen?[3,2]:[4,this.open()];case 1:return[2,t.sent()];case 2:return[2]}})})},n.prototype.getItem=function(t){return Oe(this,void 0,void 0,function(){var e=this;return Pe(this,function(i){switch(i.label){case 0:return[4,this.validateDbIsOpen()];case 1:return i.sent(),[2,new Promise(function(r,o){if(!e.db)return o(ze.createDatabaseNotOpenError());var l=e.db.transaction([e.tableName],"readonly").objectStore(e.tableName).get(t);l.addEventListener("success",function(c){var u=c;e.closeConnection(),r(u.target.result)}),l.addEventListener("error",function(c){e.closeConnection(),o(c)})})]}})})},n.prototype.setItem=function(t,e){return Oe(this,void 0,void 0,function(){var i=this;return Pe(this,function(r){switch(r.label){case 0:return[4,this.validateDbIsOpen()];case 1:return r.sent(),[2,new Promise(function(o,s){if(!i.db)return s(ze.createDatabaseNotOpenError());var c=i.db.transaction([i.tableName],"readwrite").objectStore(i.tableName).put(e,t);c.addEventListener("success",function(){i.closeConnection(),o()}),c.addEventListener("error",function(u){i.closeConnection(),s(u)})})]}})})},n.prototype.removeItem=function(t){return Oe(this,void 0,void 0,function(){var e=this;return Pe(this,function(i){switch(i.label){case 0:return[4,this.validateDbIsOpen()];case 1:return i.sent(),[2,new Promise(function(r,o){if(!e.db)return o(ze.createDatabaseNotOpenError());var l=e.db.transaction([e.tableName],"readwrite").objectStore(e.tableName).delete(t);l.addEventListener("success",function(){e.closeConnection(),r()}),l.addEventListener("error",function(c){e.closeConnection(),o(c)})})]}})})},n.prototype.getKeys=function(){return Oe(this,void 0,void 0,function(){var t=this;return Pe(this,function(e){switch(e.label){case 0:return[4,this.validateDbIsOpen()];case 1:return e.sent(),[2,new Promise(function(i,r){if(!t.db)return r(ze.createDatabaseNotOpenError());var a=t.db.transaction([t.tableName],"readonly").objectStore(t.tableName).getAllKeys();a.addEventListener("success",function(l){var c=l;t.closeConnection(),i(c.target.result)}),a.addEventListener("error",function(l){t.closeConnection(),r(l)})})]}})})},n.prototype.containsKey=function(t){return Oe(this,void 0,void 0,function(){var e=this;return Pe(this,function(i){switch(i.label){case 0:return[4,this.validateDbIsOpen()];case 1:return i.sent(),[2,new Promise(function(r,o){if(!e.db)return o(ze.createDatabaseNotOpenError());var l=e.db.transaction([e.tableName],"readonly").objectStore(e.tableName).count(t);l.addEventListener("success",function(c){var u=c;e.closeConnection(),r(1===u.target.result)}),l.addEventListener("error",function(c){e.closeConnection(),o(c)})})]}})})},n.prototype.deleteDatabase=function(){return Oe(this,void 0,void 0,function(){return Pe(this,function(i){switch(i.label){case 0:return this.db&&this.dbOpen&&this.closeConnection(),[4,window.indexedDB.databases()];case 1:return i.sent().find(function(r){return r.name===hm})?[2,new Promise(function(r,o){var s=window.indexedDB.deleteDatabase(hm);s.addEventListener("success",function(){return r(!0)}),s.addEventListener("error",function(){return o(!1)})})]:[2,!0]}})})},n}(),iC=function(){function n(){this.cache=new Map}return n.prototype.getItem=function(t){return this.cache.get(t)||null},n.prototype.setItem=function(t,e){this.cache.set(t,e)},n.prototype.removeItem=function(t){this.cache.delete(t)},n.prototype.getKeys=function(){var t=[];return this.cache.forEach(function(e,i){t.push(i)}),t},n.prototype.containsKey=function(t){return this.cache.has(t)},n.prototype.clear=function(){this.cache.clear()},n}(),DI=function(){function n(t,e){this.inMemoryCache=new iC,this.indexedDBCache=new U7,this.logger=t,this.storeName=e}return n.prototype.handleDatabaseAccessError=function(t){if(!(t instanceof ze&&t.errorCode===Re_databaseUnavailable_code))throw t;this.logger.error("Could not access persistent storage. This may be caused by browser privacy features which block persistent storage in third-party contexts.")},n.prototype.getItem=function(t){return Oe(this,void 0,void 0,function(){var e,i;return Pe(this,function(r){switch(r.label){case 0:if(e=this.inMemoryCache.getItem(t))return[3,4];r.label=1;case 1:return r.trys.push([1,3,,4]),this.logger.verbose("Queried item not found in in-memory cache, now querying persistent storage."),[4,this.indexedDBCache.getItem(t)];case 2:return[2,r.sent()];case 3:return i=r.sent(),this.handleDatabaseAccessError(i),[3,4];case 4:return[2,e]}})})},n.prototype.setItem=function(t,e){return Oe(this,void 0,void 0,function(){var i;return Pe(this,function(r){switch(r.label){case 0:this.inMemoryCache.setItem(t,e),r.label=1;case 1:return r.trys.push([1,3,,4]),[4,this.indexedDBCache.setItem(t,e)];case 2:return r.sent(),[3,4];case 3:return i=r.sent(),this.handleDatabaseAccessError(i),[3,4];case 4:return[2]}})})},n.prototype.removeItem=function(t){return Oe(this,void 0,void 0,function(){var e;return Pe(this,function(i){switch(i.label){case 0:this.inMemoryCache.removeItem(t),i.label=1;case 1:return i.trys.push([1,3,,4]),[4,this.indexedDBCache.removeItem(t)];case 2:return i.sent(),[3,4];case 3:return e=i.sent(),this.handleDatabaseAccessError(e),[3,4];case 4:return[2]}})})},n.prototype.getKeys=function(){return Oe(this,void 0,void 0,function(){var t,e;return Pe(this,function(i){switch(i.label){case 0:if(0!==(t=this.inMemoryCache.getKeys()).length)return[3,4];i.label=1;case 1:return i.trys.push([1,3,,4]),this.logger.verbose("In-memory cache is empty, now querying persistent storage."),[4,this.indexedDBCache.getKeys()];case 2:return[2,i.sent()];case 3:return e=i.sent(),this.handleDatabaseAccessError(e),[3,4];case 4:return[2,t]}})})},n.prototype.containsKey=function(t){return Oe(this,void 0,void 0,function(){var e,i;return Pe(this,function(r){switch(r.label){case 0:if(e=this.inMemoryCache.containsKey(t))return[3,4];r.label=1;case 1:return r.trys.push([1,3,,4]),this.logger.verbose("Key not found in in-memory cache, now querying persistent storage."),[4,this.indexedDBCache.containsKey(t)];case 2:return[2,r.sent()];case 3:return i=r.sent(),this.handleDatabaseAccessError(i),[3,4];case 4:return[2,e]}})})},n.prototype.clear=function(){return Oe(this,void 0,void 0,function(){var t,e;return Pe(this,function(i){switch(i.label){case 0:this.logger.verbose("Deleting in-memory keystore "+this.storeName),this.inMemoryCache.clear(),this.logger.verbose("In-memory keystore "+this.storeName+" deleted"),this.logger.verbose("Deleting persistent keystore "+this.storeName),i.label=1;case 1:return i.trys.push([1,3,,4]),[4,this.indexedDBCache.deleteDatabase()];case 2:return(t=i.sent())&&this.logger.verbose("Persistent keystore "+this.storeName+" deleted"),[2,t];case 3:return e=i.sent(),this.handleDatabaseAccessError(e),[2,!1];case 4:return[2]}})})},n}(),qd=(()=>(function(n){n.asymmetricKeys="asymmetricKeys",n.symmetricKeys="symmetricKeys"}(qd||(qd={})),qd))(),q7=function(){function n(t,e){this.logger=t,this.browserCrypto=new mm(this.logger),this.b64Encode=new EI,this.b64Decode=new N7,this.guidGenerator=new wI(this.browserCrypto),this.pkceGenerator=new B7(this.browserCrypto),this.cache={asymmetricKeys:new DI(this.logger,qd.asymmetricKeys),symmetricKeys:new DI(this.logger,qd.symmetricKeys)},this.performanceClient=e}return n.prototype.createNewGuid=function(){return this.guidGenerator.generateGuid()},n.prototype.base64Encode=function(t){return this.b64Encode.encode(t)},n.prototype.base64Decode=function(t){return this.b64Decode.decode(t)},n.prototype.generatePkceCodes=function(){return Oe(this,void 0,void 0,function(){return Pe(this,function(t){return[2,this.pkceGenerator.generateCodes()]})})},n.prototype.getPublicKeyThumbprint=function(t){var e;return Oe(this,void 0,void 0,function(){var i,r,o,a,l,c,u;return Pe(this,function(d){switch(d.label){case 0:return i=null===(e=this.performanceClient)||void 0===e?void 0:e.startMeasurement(ci.CryptoOptsGetPublicKeyThumbprint,t.correlationId),[4,this.browserCrypto.generateKeyPair(n.EXTRACTABLE,n.POP_KEY_USAGES)];case 1:return r=d.sent(),[4,this.browserCrypto.exportJwk(r.publicKey)];case 2:return o=d.sent(),a=mm.getJwkString({e:o.e,kty:o.kty,n:o.n}),[4,this.hashString(a)];case 3:return l=d.sent(),[4,this.browserCrypto.exportJwk(r.privateKey)];case 4:return c=d.sent(),[4,this.browserCrypto.importJwk(c,!1,["sign"])];case 5:return u=d.sent(),[4,this.cache.asymmetricKeys.setItem(l,{privateKey:u,publicKey:r.publicKey,requestMethod:t.resourceRequestMethod,requestUri:t.resourceRequestUri})];case 6:return d.sent(),i&&i.endMeasurement({success:!0}),[2,l]}})})},n.prototype.removeTokenBindingKey=function(t){return Oe(this,void 0,void 0,function(){return Pe(this,function(i){switch(i.label){case 0:return[4,this.cache.asymmetricKeys.removeItem(t)];case 1:return i.sent(),[4,this.cache.asymmetricKeys.containsKey(t)];case 2:return[2,!i.sent()]}})})},n.prototype.clearKeystore=function(){return Oe(this,void 0,void 0,function(){var t;return Pe(this,function(e){switch(e.label){case 0:return e.trys.push([0,3,,4]),this.logger.verbose("Deleting in-memory and persistent asymmetric key stores"),[4,this.cache.asymmetricKeys.clear()];case 1:return e.sent(),this.logger.verbose("Successfully deleted asymmetric key stores"),this.logger.verbose("Deleting in-memory and persistent symmetric key stores"),[4,this.cache.symmetricKeys.clear()];case 2:return e.sent(),this.logger.verbose("Successfully deleted symmetric key stores"),[2,!0];case 3:return(t=e.sent())instanceof Error?this.logger.error("Clearing keystore failed with error: "+t.message):this.logger.error("Clearing keystore failed with unknown error"),[2,!1];case 4:return[2]}})})},n.prototype.signJwt=function(t,e,i){var r;return Oe(this,void 0,void 0,function(){var o,s,a,l,c,u,d,h,m,y,A,U,te;return Pe(this,function(Ee){switch(Ee.label){case 0:return o=null===(r=this.performanceClient)||void 0===r?void 0:r.startMeasurement(ci.CryptoOptsSignJwt,i),[4,this.cache.asymmetricKeys.getItem(e)];case 1:if(!(s=Ee.sent()))throw ze.createSigningKeyNotFoundInStorageError(e);return[4,this.browserCrypto.exportJwk(s.publicKey)];case 2:return a=Ee.sent(),l=mm.getJwkString(a),c=this.b64Encode.urlEncode(JSON.stringify({kid:e})),u=L7.getShrHeaderString({kid:c,alg:a.alg}),d=this.b64Encode.urlEncode(u),t.cnf={jwk:JSON.parse(l)},h=this.b64Encode.urlEncode(JSON.stringify(t)),y=Vc.stringToArrayBuffer(m=d+"."+h),[4,this.browserCrypto.sign(s.privateKey,y)];case 3:return A=Ee.sent(),U=this.b64Encode.urlEncodeArr(new Uint8Array(A)),te=m+"."+U,o&&o.endMeasurement({success:!0}),[2,te]}})})},n.prototype.hashString=function(t){return Oe(this,void 0,void 0,function(){var e,i;return Pe(this,function(r){switch(r.label){case 0:return[4,this.browserCrypto.sha256Digest(t)];case 1:return e=r.sent(),i=new Uint8Array(e),[2,this.b64Encode.urlEncodeArr(i)]}})})},n.POP_KEY_USAGES=["sign","verify"],n.EXTRACTABLE=!0,n}(),mi=(()=>(function(n){n[n.Error=0]="Error",n[n.Warning=1]="Warning",n[n.Info=2]="Info",n[n.Verbose=3]="Verbose",n[n.Trace=4]="Trace"}(mi||(mi={})),mi))(),SI=function(){function n(t,e,i){this.level=mi.Info,this.localCallback=t.loggerCallback||function(){},this.piiLoggingEnabled=t.piiLoggingEnabled||!1,this.level="number"==typeof t.logLevel?t.logLevel:mi.Info,this.correlationId=t.correlationId||ee.EMPTY_STRING,this.packageName=e||ee.EMPTY_STRING,this.packageVersion=i||ee.EMPTY_STRING}return n.prototype.clone=function(t,e,i){return new n({loggerCallback:this.localCallback,piiLoggingEnabled:this.piiLoggingEnabled,logLevel:this.level,correlationId:i||this.correlationId},t,e)},n.prototype.logMessage=function(t,e){if(!(e.logLevel>this.level||!this.piiLoggingEnabled&&e.containsPii)){var r,i=(new Date).toUTCString();r=Ke.isEmpty(e.correlationId)?Ke.isEmpty(this.correlationId)?"["+i+"]":"["+i+"] : ["+this.correlationId+"]":"["+i+"] : ["+e.correlationId+"]",this.executeCallback(e.logLevel,r+" : "+this.packageName+"@"+this.packageVersion+" : "+mi[e.logLevel]+" - "+t,e.containsPii||!1)}},n.prototype.executeCallback=function(t,e,i){this.localCallback&&this.localCallback(t,e,i)},n.prototype.error=function(t,e){this.logMessage(t,{logLevel:mi.Error,containsPii:!1,correlationId:e||ee.EMPTY_STRING})},n.prototype.errorPii=function(t,e){this.logMessage(t,{logLevel:mi.Error,containsPii:!0,correlationId:e||ee.EMPTY_STRING})},n.prototype.warning=function(t,e){this.logMessage(t,{logLevel:mi.Warning,containsPii:!1,correlationId:e||ee.EMPTY_STRING})},n.prototype.warningPii=function(t,e){this.logMessage(t,{logLevel:mi.Warning,containsPii:!0,correlationId:e||ee.EMPTY_STRING})},n.prototype.info=function(t,e){this.logMessage(t,{logLevel:mi.Info,containsPii:!1,correlationId:e||ee.EMPTY_STRING})},n.prototype.infoPii=function(t,e){this.logMessage(t,{logLevel:mi.Info,containsPii:!0,correlationId:e||ee.EMPTY_STRING})},n.prototype.verbose=function(t,e){this.logMessage(t,{logLevel:mi.Verbose,containsPii:!1,correlationId:e||ee.EMPTY_STRING})},n.prototype.verbosePii=function(t,e){this.logMessage(t,{logLevel:mi.Verbose,containsPii:!0,correlationId:e||ee.EMPTY_STRING})},n.prototype.trace=function(t,e){this.logMessage(t,{logLevel:mi.Trace,containsPii:!1,correlationId:e||ee.EMPTY_STRING})},n.prototype.tracePii=function(t,e){this.logMessage(t,{logLevel:mi.Trace,containsPii:!0,correlationId:e||ee.EMPTY_STRING})},n.prototype.isPiiLoggingEnabled=function(){return this.piiLoggingEnabled||!1},n}(),AI=function(){function n(t,e,i,r,o,s){this.authority=e,this.libraryName=r,this.libraryVersion=o,this.applicationTelemetry=s,this.clientId=t,this.logger=i,this.callbacks=new Map,this.eventsByCorrelationId=new Map,this.measurementsById=new Map}return n.prototype.startMeasurement=function(t,e){var r,o,i=this,s=e||this.generateId();e||this.logger.info("PerformanceClient: No correlation id provided for "+t+", generating",s),this.logger.trace("PerformanceClient: Performance measurement started for "+t,s);var a=this.startPerformanceMeasuremeant(t,s);a.startMeasurement();var l={eventId:this.generateId(),status:ol.InProgress,authority:this.authority,libraryName:this.libraryName,libraryVersion:this.libraryVersion,appName:null===(r=this.applicationTelemetry)||void 0===r?void 0:r.appName,appVersion:null===(o=this.applicationTelemetry)||void 0===o?void 0:o.appVersion,clientId:this.clientId,name:t,startTimeMs:Date.now(),correlationId:s};return this.cacheEventByCorrelationId(l),this.cacheMeasurement(l,a),{endMeasurement:function(c){var u=i.endMeasurement(Gn(Gn({},l),c));return u&&i.cacheEventByCorrelationId(u),u},flushMeasurement:function(){return i.flushMeasurements(l.name,l.correlationId)},discardMeasurement:function(){return i.discardMeasurements(l.correlationId)},measurement:a,event:l}},n.prototype.endMeasurement=function(t){var e=this.measurementsById.get(t.eventId);if(e){this.measurementsById.delete(t.eventId),e.endMeasurement();var i=e.flushMeasurement();if(null!==i)return this.logger.trace("PerformanceClient: Performance measurement ended for "+t.name+": "+i+" ms",t.correlationId),Gn(Gn({durationMs:Math.round(i)},t),{status:ol.Completed});this.logger.trace("PerformanceClient: Performance measurement not taken",t.correlationId)}else this.logger.trace("PerformanceClient: Measurement not found for "+t.eventId,t.correlationId);return null},n.prototype.cacheEventByCorrelationId=function(t){var e=this.eventsByCorrelationId.get(t.correlationId);e?(this.logger.trace("PerformanceClient: Performance measurement for "+t.name+" added/updated",t.correlationId),e.set(t.eventId,t)):(this.logger.trace("PerformanceClient: Performance measurement for "+t.name+" started",t.correlationId),this.eventsByCorrelationId.set(t.correlationId,(new Map).set(t.eventId,t)))},n.prototype.cacheMeasurement=function(t,e){this.measurementsById.set(t.eventId,e)},n.prototype.flushMeasurements=function(t,e){var i=this;this.logger.trace("PerformanceClient: Performance measurements flushed for "+t,e);var r=this.eventsByCorrelationId.get(e);if(r){this.discardMeasurements(e);var o=[];r.forEach(function(u){if(u.name!==t&&u.status!==ol.Completed){i.logger.trace("PerformanceClient: Incomplete submeasurement "+u.name+" found for "+t,e);var d=i.endMeasurement(u);d&&o.push(d)}o.push(u)});var s=o.sort(function(u,d){return u.startTimeMs-d.startTimeMs}),a=s.filter(function(u){return u.name===t&&u.status===ol.Completed});if(a.length>0){a.length>1&&this.logger.verbose("PerformanceClient: Multiple distinct top-level performance events found, using the first",e);var l=a[0];this.logger.verbose("PerformanceClient: Measurement found for "+t,e);var c=s.reduce(function(u,d){if(d.name!==t){i.logger.trace("PerformanceClient: Complete submeasurement found for "+d.name,e);var h=d.name+"DurationMs";u[h]?i.logger.verbose("PerformanceClient: Submeasurement for "+t+" already exists for "+d.name+", ignoring",e):u[h]=d.durationMs,d.accessTokenSize&&(u.accessTokenSize=d.accessTokenSize),d.idTokenSize&&(u.idTokenSize=d.idTokenSize)}return u},l);this.emitEvents([c],c.correlationId)}else this.logger.verbose("PerformanceClient: No completed top-level measurements found for "+t,e)}else this.logger.verbose("PerformanceClient: No measurements found",e)},n.prototype.discardMeasurements=function(t){this.logger.trace("PerformanceClient: Performance measurements discarded",t),this.eventsByCorrelationId.delete(t)},n.prototype.addPerformanceCallback=function(t){var e=this.generateId();return this.callbacks.set(e,t),this.logger.verbose("PerformanceClient: Performance callback registered with id: "+e),e},n.prototype.removePerformanceCallback=function(t){var e=this.callbacks.delete(t);return this.logger.verbose(e?"PerformanceClient: Performance callback "+t+" removed.":"PerformanceClient: Performance callback "+t+" not removed."),e},n.prototype.emitEvents=function(t,e){var i=this;this.logger.verbose("PerformanceClient: Emitting performance events",e),this.callbacks.forEach(function(r,o){i.logger.trace("PerformanceClient: Emitting event to callback "+o,e),r.apply(null,[t])})},n}(),z7=function(){function n(){}return n.prototype.startMeasurement=function(){},n.prototype.endMeasurement=function(){},n.prototype.flushMeasurement=function(){return null},n}(),G7=function(n){function t(){return null!==n&&n.apply(this,arguments)||this}return dr(t,n),t.prototype.generateId=function(){return"callback-id"},t.prototype.startPerformanceMeasuremeant=function(){return new z7},t}(AI),gm={createNewGuid:function(){throw ut.createUnexpectedError("Crypto interface - createNewGuid() has not been implemented")},base64Decode:function(){throw ut.createUnexpectedError("Crypto interface - base64Decode() has not been implemented")},base64Encode:function(){throw ut.createUnexpectedError("Crypto interface - base64Encode() has not been implemented")},generatePkceCodes:function(){return At(this,void 0,void 0,function(){return Tt(this,function(t){throw ut.createUnexpectedError("Crypto interface - generatePkceCodes() has not been implemented")})})},getPublicKeyThumbprint:function(){return At(this,void 0,void 0,function(){return Tt(this,function(t){throw ut.createUnexpectedError("Crypto interface - getPublicKeyThumbprint() has not been implemented")})})},removeTokenBindingKey:function(){return At(this,void 0,void 0,function(){return Tt(this,function(t){throw ut.createUnexpectedError("Crypto interface - removeTokenBindingKey() has not been implemented")})})},clearKeystore:function(){return At(this,void 0,void 0,function(){return Tt(this,function(t){throw ut.createUnexpectedError("Crypto interface - clearKeystore() has not been implemented")})})},signJwt:function(){return At(this,void 0,void 0,function(){return Tt(this,function(t){throw ut.createUnexpectedError("Crypto interface - signJwt() has not been implemented")})})},hashString:function(){return At(this,void 0,void 0,function(){return Tt(this,function(t){throw ut.createUnexpectedError("Crypto interface - hashString() has not been implemented")})})}},TI=["interaction_required","consent_required","login_required"],W7=["message_only","additional_action","basic_action","user_password_expired","consent_required"],zd_noTokensFoundError_code="no_tokens_found",zd_noTokensFoundError_desc="No refresh token found in the cache. Please sign-in.",zd_native_account_unavailable_code="native_account_unavailable",zd_native_account_unavailable_desc="The requested account is not available in the native broker. It may have been deleted or logged out. Please sign-in again using an interactive API.",xo=function(n){function t(e,i,r){var o=n.call(this,e,i,r)||this;return o.name="InteractionRequiredAuthError",Object.setPrototypeOf(o,t.prototype),o}return dr(t,n),t.isInteractionRequiredError=function(e,i,r){var o=!!e&&TI.indexOf(e)>-1,s=!!r&&W7.indexOf(r)>-1,a=!!i&&TI.some(function(l){return i.indexOf(l)>-1});return o||a||s},t.createNoTokensFoundError=function(){return new t(zd_noTokensFoundError_code,zd_noTokensFoundError_desc)},t.createNativeAccountUnavailableError=function(){return new t(zd_native_account_unavailable_code,zd_native_account_unavailable_desc)},t}(ut),cl=function(n){function t(e,i,r){var o=n.call(this,e,i,r)||this;return o.name="ServerError",Object.setPrototypeOf(o,t.prototype),o}return dr(t,n),t}(ut);function _m(n,t){if(Ke.isEmpty(n))throw nt.createClientInfoEmptyError();try{var e=t.base64Decode(n);return JSON.parse(e)}catch(i){throw nt.createClientInfoDecodingError(i)}}function Uc(n){if(Ke.isEmpty(n))throw nt.createClientInfoDecodingError("Home account ID was empty.");var t=n.split(hr.CLIENT_INFO_SEPARATOR,2);return{uid:t[0],utid:t.length<2?ee.EMPTY_STRING:t[1]}}var es=(()=>(function(n){n[n.Default=0]="Default",n[n.Adfs=1]="Adfs"}(es||(es={})),es))(),Fi=function(){function n(){}return n.prototype.generateAccountId=function(){return[this.homeAccountId,this.environment].join(hr.CACHE_KEY_SEPARATOR).toLowerCase()},n.prototype.generateAccountKey=function(){return n.generateAccountCacheKey({homeAccountId:this.homeAccountId,environment:this.environment,tenantId:this.realm,username:this.username,localAccountId:this.localAccountId})},n.prototype.generateType=function(){switch(this.authorityType){case Jo.ADFS_ACCOUNT_TYPE:return Zo.ADFS;case Jo.MSAV1_ACCOUNT_TYPE:return Zo.MSA;case Jo.MSSTS_ACCOUNT_TYPE:return Zo.MSSTS;case Jo.GENERIC_ACCOUNT_TYPE:return Zo.GENERIC;default:throw nt.createUnexpectedAccountTypeError()}},n.prototype.getAccountInfo=function(){return{homeAccountId:this.homeAccountId,environment:this.environment,tenantId:this.realm,username:this.username,localAccountId:this.localAccountId,name:this.name,idTokenClaims:this.idTokenClaims,nativeAccountId:this.nativeAccountId}},n.generateAccountCacheKey=function(t){return[t.homeAccountId,t.environment||ee.EMPTY_STRING,t.tenantId||ee.EMPTY_STRING].join(hr.CACHE_KEY_SEPARATOR).toLowerCase()},n.createAccount=function(t,e,i,r,o,s,a,l){var c,u,d,h,m,y,A=new n;A.authorityType=Jo.MSSTS_ACCOUNT_TYPE,A.clientInfo=t,A.homeAccountId=e,A.nativeAccountId=l;var U=a||r&&r.getPreferredCache();if(!U)throw nt.createInvalidCacheEnvironmentError();return A.environment=U,A.realm=(null===(c=i?.claims)||void 0===c?void 0:c.tid)||ee.EMPTY_STRING,i&&(A.idTokenClaims=i.claims,A.localAccountId=(null===(u=i?.claims)||void 0===u?void 0:u.oid)||(null===(d=i?.claims)||void 0===d?void 0:d.sub)||ee.EMPTY_STRING,A.username=(null===(h=i?.claims)||void 0===h?void 0:h.preferred_username)||(null!==(m=i?.claims)&&void 0!==m&&m.emails?i.claims.emails[0]:ee.EMPTY_STRING),A.name=null===(y=i?.claims)||void 0===y?void 0:y.name),A.cloudGraphHostName=o,A.msGraphHost=s,A},n.createGenericAccount=function(t,e,i,r,o,s){var a,l,c,u,d=new n;d.authorityType=i&&i.authorityType===es.Adfs?Jo.ADFS_ACCOUNT_TYPE:Jo.GENERIC_ACCOUNT_TYPE,d.homeAccountId=t,d.realm=ee.EMPTY_STRING;var h=s||i&&i.getPreferredCache();if(!h)throw nt.createInvalidCacheEnvironmentError();return e&&(d.localAccountId=(null===(a=e?.claims)||void 0===a?void 0:a.oid)||(null===(l=e?.claims)||void 0===l?void 0:l.sub)||ee.EMPTY_STRING,d.username=(null===(c=e?.claims)||void 0===c?void 0:c.upn)||ee.EMPTY_STRING,d.name=(null===(u=e?.claims)||void 0===u?void 0:u.name)||ee.EMPTY_STRING,d.idTokenClaims=e?.claims),d.environment=h,d.cloudGraphHostName=r,d.msGraphHost=o,d},n.generateHomeAccountId=function(t,e,i,r,o){var s,a=null!==(s=o?.claims)&&void 0!==s&&s.sub?o.claims.sub:ee.EMPTY_STRING;if(e===es.Adfs)return a;if(t)try{var l=_m(t,r);if(!Ke.isEmpty(l.uid)&&!Ke.isEmpty(l.utid))return""+l.uid+hr.CLIENT_INFO_SEPARATOR+l.utid}catch{}return i.verbose("No client info in response"),a},n.isAccountEntity=function(t){return!!t&&t.hasOwnProperty("homeAccountId")&&t.hasOwnProperty("environment")&&t.hasOwnProperty("realm")&&t.hasOwnProperty("localAccountId")&&t.hasOwnProperty("username")&&t.hasOwnProperty("authorityType")},n.accountInfoIsEqual=function(t,e,i){if(!t||!e)return!1;var r=!0;if(i){var o=t.idTokenClaims||{},s=e.idTokenClaims||{};r=o.iat===s.iat&&o.nonce===s.nonce}return t.homeAccountId===e.homeAccountId&&t.localAccountId===e.localAccountId&&t.username===e.username&&t.tenantId===e.tenantId&&t.environment===e.environment&&t.nativeAccountId===e.nativeAccountId&&r},n}(),Gd=function(){function n(){}return n.prototype.generateAccountId=function(){return n.generateAccountIdForCacheKey(this.homeAccountId,this.environment)},n.prototype.generateCredentialId=function(){return n.generateCredentialIdForCacheKey(this.credentialType,this.clientId,this.realm,this.familyId)},n.prototype.generateTarget=function(){return n.generateTargetForCacheKey(this.target)},n.prototype.generateCredentialKey=function(){return n.generateCredentialCacheKey(this.homeAccountId,this.environment,this.credentialType,this.clientId,this.realm,this.target,this.familyId,this.tokenType,this.requestedClaimsHash)},n.prototype.generateType=function(){switch(this.credentialType){case zt.ID_TOKEN:return Zo.ID_TOKEN;case zt.ACCESS_TOKEN:case zt.ACCESS_TOKEN_WITH_AUTH_SCHEME:return Zo.ACCESS_TOKEN;case zt.REFRESH_TOKEN:return Zo.REFRESH_TOKEN;default:throw nt.createUnexpectedCredentialTypeError()}},n.getCredentialType=function(t){return-1!==t.indexOf(zt.ACCESS_TOKEN.toLowerCase())?-1!==t.indexOf(zt.ACCESS_TOKEN_WITH_AUTH_SCHEME.toLowerCase())?zt.ACCESS_TOKEN_WITH_AUTH_SCHEME:zt.ACCESS_TOKEN:-1!==t.indexOf(zt.ID_TOKEN.toLowerCase())?zt.ID_TOKEN:-1!==t.indexOf(zt.REFRESH_TOKEN.toLowerCase())?zt.REFRESH_TOKEN:ee.NOT_DEFINED},n.generateCredentialCacheKey=function(t,e,i,r,o,s,a,l,c){return[this.generateAccountIdForCacheKey(t,e),this.generateCredentialIdForCacheKey(i,r,o,a),this.generateTargetForCacheKey(s),this.generateClaimsHashForCacheKey(c),this.generateSchemeForCacheKey(l)].join(hr.CACHE_KEY_SEPARATOR).toLowerCase()},n.generateAccountIdForCacheKey=function(t,e){return[t,e].join(hr.CACHE_KEY_SEPARATOR).toLowerCase()},n.generateCredentialIdForCacheKey=function(t,e,i,r){return[t,t===zt.REFRESH_TOKEN&&r||e,i||ee.EMPTY_STRING].join(hr.CACHE_KEY_SEPARATOR).toLowerCase()},n.generateTargetForCacheKey=function(t){return(t||ee.EMPTY_STRING).toLowerCase()},n.generateClaimsHashForCacheKey=function(t){return(t||ee.EMPTY_STRING).toLowerCase()},n.generateSchemeForCacheKey=function(t){return t&&t.toLowerCase()!==fn.BEARER.toLowerCase()?t.toLowerCase():ee.EMPTY_STRING},n}(),Ot_redirectUriNotSet_code="redirect_uri_empty",Ot_redirectUriNotSet_desc="A redirect URI is required for all calls, and none has been set.",Ot_postLogoutUriNotSet_code="post_logout_uri_empty",Ot_postLogoutUriNotSet_desc="A post logout redirect has not been set.",Ot_claimsRequestParsingError_code="claims_request_parsing_error",Ot_claimsRequestParsingError_desc="Could not parse the given claims request object.",Ot_authorityUriInsecure_code="authority_uri_insecure",Ot_authorityUriInsecure_desc="Authority URIs must use https. Please see here for valid authority configuration options: https://docs.microsoft.com/en-us/azure/active-directory/develop/msal-js-initializing-client-applications#configuration-options",Ot_urlParseError_code="url_parse_error",Ot_urlParseError_desc="URL could not be parsed into appropriate segments.",Ot_urlEmptyError_code="empty_url_error",Ot_urlEmptyError_desc="URL was empty or null.",Ot_emptyScopesError_code="empty_input_scopes_error",Ot_emptyScopesError_desc="Scopes cannot be passed as null, undefined or empty array because they are required to obtain an access token.",Ot_clientIdSingleScopeError_code="clientid_input_scopes_error",Ot_clientIdSingleScopeError_desc="Client ID can only be provided as a single scope.",Ot_invalidPrompt_code="invalid_prompt_value",Ot_invalidPrompt_desc="Supported prompt values are 'login', 'select_account', 'consent', 'create' and 'none'. Please see here for valid configuration options: https://azuread.github.io/microsoft-authentication-library-for-js/ref/modules/_azure_msal_common.html#commonauthorizationurlrequest",Ot_invalidClaimsRequest_code="invalid_claims",Ot_invalidClaimsRequest_desc="Given claims parameter must be a stringified JSON object.",Ot_tokenRequestEmptyError_code="token_request_empty",Ot_tokenRequestEmptyError_desc="Token request was empty and not found in cache.",Ot_logoutRequestEmptyError_code="logout_request_empty",Ot_logoutRequestEmptyError_desc="The logout request was null or undefined.",Ot_invalidCodeChallengeMethod_code="invalid_code_challenge_method",Ot_invalidCodeChallengeMethod_desc='code_challenge_method passed is invalid. Valid values are "plain" and "S256".',Ot_invalidCodeChallengeParams_code="pkce_params_missing",Ot_invalidCodeChallengeParams_desc="Both params: code_challenge and code_challenge_method are to be passed if to be sent in the request",Ot_invalidCloudDiscoveryMetadata_code="invalid_cloud_discovery_metadata",Ot_invalidCloudDiscoveryMetadata_desc="Invalid cloudDiscoveryMetadata provided. Must be a stringified JSON object containing tenant_discovery_endpoint and metadata fields",Ot_invalidAuthorityMetadata_code="invalid_authority_metadata",Ot_invalidAuthorityMetadata_desc="Invalid authorityMetadata provided. Must by a stringified JSON object containing authorization_endpoint, token_endpoint, issuer fields.",Ot_untrustedAuthority_code="untrusted_authority",Ot_untrustedAuthority_desc="The provided authority is not a trusted authority. Please include this authority in the knownAuthorities config parameter.",Ot_invalidAzureCloudInstance_code="invalid_azure_cloud_instance",Ot_invalidAzureCloudInstance_desc="Invalid AzureCloudInstance provided. Please refer MSAL JS docs: aks.ms/msaljs/azure_cloud_instance for valid values",Ot_missingSshJwk_code="missing_ssh_jwk",Ot_missingSshJwk_desc="Missing sshJwk in SSH certificate request. A stringified JSON Web Key is required when using the SSH authentication scheme.",Ot_missingSshKid_code="missing_ssh_kid",Ot_missingSshKid_desc="Missing sshKid in SSH certificate request. A string that uniquely identifies the public SSH key is required when using the SSH authentication scheme.",Ot_missingNonceAuthenticationHeader_code="missing_nonce_authentication_header",Ot_missingNonceAuthenticationHeader_desc="Unable to find an authentication header containing server nonce. Either the Authentication-Info or WWW-Authenticate headers must be present in order to obtain a server nonce.",Ot_invalidAuthenticationHeader_code="invalid_authentication_header",Ot_invalidAuthenticationHeader_desc="Invalid authentication header provided",Mn=function(n){function t(e,i){var r=n.call(this,e,i)||this;return r.name="ClientConfigurationError",Object.setPrototypeOf(r,t.prototype),r}return dr(t,n),t.createRedirectUriEmptyError=function(){return new t(Ot_redirectUriNotSet_code,Ot_redirectUriNotSet_desc)},t.createPostLogoutRedirectUriEmptyError=function(){return new t(Ot_postLogoutUriNotSet_code,Ot_postLogoutUriNotSet_desc)},t.createClaimsRequestParsingError=function(e){return new t(Ot_claimsRequestParsingError_code,Ot_claimsRequestParsingError_desc+" Given value: "+e)},t.createInsecureAuthorityUriError=function(e){return new t(Ot_authorityUriInsecure_code,Ot_authorityUriInsecure_desc+" Given URI: "+e)},t.createUrlParseError=function(e){return new t(Ot_urlParseError_code,Ot_urlParseError_desc+" Given Error: "+e)},t.createUrlEmptyError=function(){return new t(Ot_urlEmptyError_code,Ot_urlEmptyError_desc)},t.createEmptyScopesArrayError=function(){return new t(Ot_emptyScopesError_code,""+Ot_emptyScopesError_desc)},t.createClientIdSingleScopeError=function(e){return new t(Ot_clientIdSingleScopeError_code,Ot_clientIdSingleScopeError_desc+" Given Scopes: "+e)},t.createInvalidPromptError=function(e){return new t(Ot_invalidPrompt_code,Ot_invalidPrompt_desc+" Given value: "+e)},t.createInvalidClaimsRequestError=function(){return new t(Ot_invalidClaimsRequest_code,Ot_invalidClaimsRequest_desc)},t.createEmptyLogoutRequestError=function(){return new t(Ot_logoutRequestEmptyError_code,Ot_logoutRequestEmptyError_desc)},t.createEmptyTokenRequestError=function(){return new t(Ot_tokenRequestEmptyError_code,Ot_tokenRequestEmptyError_desc)},t.createInvalidCodeChallengeMethodError=function(){return new t(Ot_invalidCodeChallengeMethod_code,Ot_invalidCodeChallengeMethod_desc)},t.createInvalidCodeChallengeParamsError=function(){return new t(Ot_invalidCodeChallengeParams_code,Ot_invalidCodeChallengeParams_desc)},t.createInvalidCloudDiscoveryMetadataError=function(){return new t(Ot_invalidCloudDiscoveryMetadata_code,Ot_invalidCloudDiscoveryMetadata_desc)},t.createInvalidAuthorityMetadataError=function(){return new t(Ot_invalidAuthorityMetadata_code,Ot_invalidAuthorityMetadata_desc)},t.createUntrustedAuthorityError=function(){return new t(Ot_untrustedAuthority_code,Ot_untrustedAuthority_desc)},t.createInvalidAzureCloudInstanceError=function(){return new t(Ot_invalidAzureCloudInstance_code,Ot_invalidAzureCloudInstance_desc)},t.createMissingSshJwkError=function(){return new t(Ot_missingSshJwk_code,Ot_missingSshJwk_desc)},t.createMissingSshKidError=function(){return new t(Ot_missingSshKid_code,Ot_missingSshKid_desc)},t.createMissingNonceAuthenticationHeadersError=function(){return new t(Ot_missingNonceAuthenticationHeader_code,Ot_missingNonceAuthenticationHeader_desc)},t.createInvalidAuthenticationHeaderError=function(e,i){return new t(Ot_invalidAuthenticationHeader_code,Ot_invalidAuthenticationHeader_desc+". Invalid header: "+e+". Details: "+i)},t}(nt),fr=function(){function n(t){var e=this,i=t?Ke.trimArrayEntries(am(t)):[],r=i?Ke.removeEmptyStringsFromArray(i):[];this.validateInputScopes(r),this.scopes=new Set,r.forEach(function(o){return e.scopes.add(o)})}return n.fromString=function(t){return new n((t||ee.EMPTY_STRING).split(" "))},n.prototype.validateInputScopes=function(t){if(!t||t.length<1)throw Mn.createEmptyScopesArrayError()},n.prototype.containsScope=function(t){var i=new n(this.printScopesLowerCase().split(" "));return!Ke.isEmpty(t)&&i.scopes.has(t.toLowerCase())},n.prototype.containsScopeSet=function(t){var e=this;return!(!t||t.scopes.size<=0)&&this.scopes.size>=t.scopes.size&&t.asArray().every(function(i){return e.containsScope(i)})},n.prototype.containsOnlyOIDCScopes=function(){var t=this,e=0;return _I.forEach(function(i){t.containsScope(i)&&(e+=1)}),this.scopes.size===e},n.prototype.appendScope=function(t){Ke.isEmpty(t)||this.scopes.add(t.trim())},n.prototype.appendScopes=function(t){var e=this;try{t.forEach(function(i){return e.appendScope(i)})}catch(i){throw nt.createAppendScopeSetError(i)}},n.prototype.removeScope=function(t){if(Ke.isEmpty(t))throw nt.createRemoveEmptyScopeFromSetError(t);this.scopes.delete(t.trim())},n.prototype.removeOIDCScopes=function(){var t=this;_I.forEach(function(e){t.scopes.delete(e)})},n.prototype.unionScopeSets=function(t){if(!t)throw nt.createEmptyInputScopeSetError();var e=new Set;return t.scopes.forEach(function(i){return e.add(i.toLowerCase())}),this.scopes.forEach(function(i){return e.add(i.toLowerCase())}),e},n.prototype.intersectingScopeSets=function(t){if(!t)throw nt.createEmptyInputScopeSetError();t.containsOnlyOIDCScopes()||t.removeOIDCScopes();var e=this.unionScopeSets(t),i=t.getScopeCount(),r=this.getScopeCount();return e.size1)throw nt.createMultipleMatchingAccountsInCacheError();return i[0]},n.prototype.readIdTokenFromCache=function(t,e){var r=this.getCredentialsFilteredBy({homeAccountId:e.homeAccountId,environment:e.environment,credentialType:zt.ID_TOKEN,clientId:t,realm:e.tenantId}),o=Object.keys(r.idTokens).map(function(a){return r.idTokens[a]}),s=o.length;if(s<1)return null;if(s>1)throw nt.createMultipleMatchingTokensInCacheError();return o[0]},n.prototype.readAccessTokenFromCache=function(t,e,i){var r=new fr(i.scopes||[]),o=i.authenticationScheme||fn.BEARER,s=o&&o.toLowerCase()!==fn.BEARER.toLowerCase()?zt.ACCESS_TOKEN_WITH_AUTH_SCHEME:zt.ACCESS_TOKEN,a={homeAccountId:e.homeAccountId,environment:e.environment,credentialType:s,clientId:t,realm:e.tenantId,target:r.printScopesLowerCase(),tokenType:o,keyId:i.sshKid,requestedClaimsHash:i.requestedClaimsHash},l=this.getCredentialsFilteredBy(a),c=Object.keys(l.accessTokens).map(function(d){return l.accessTokens[d]}),u=c.length;if(u<1)return null;if(u>1)throw nt.createMultipleMatchingTokensInCacheError();return c[0]},n.prototype.readRefreshTokenFromCache=function(t,e,i){var s=this.getCredentialsFilteredBy({homeAccountId:e.homeAccountId,environment:e.environment,credentialType:zt.REFRESH_TOKEN,clientId:t,familyId:i?"1":void 0}),a=Object.keys(s.refreshTokens).map(function(c){return s.refreshTokens[c]});return a.length<1?null:a[0]},n.prototype.readAppMetadataFromCache=function(t,e){var r=this.getAppMetadataFilteredBy({environment:t,clientId:e}),o=Object.keys(r).map(function(a){return r[a]}),s=o.length;if(s<1)return null;if(s>1)throw nt.createMultipleMatchingAppMetadataInCacheError();return o[0]},n.prototype.isAppMetadataFOCI=function(t,e){var i=this.readAppMetadataFromCache(t,e);return!(!i||"1"!==i.familyId)},n.prototype.matchHomeAccountId=function(t,e){return!(!t.homeAccountId||e!==t.homeAccountId)},n.prototype.matchUserAssertionHash=function(t,e){return!(!t.userAssertionHash||e!==t.userAssertionHash)},n.prototype.matchEnvironment=function(t,e){var i=this.getAuthorityMetadataByAlias(e);return!!(i&&i.aliases.indexOf(t.environment)>-1)},n.prototype.matchCredentialType=function(t,e){return t.credentialType&&e.toLowerCase()===t.credentialType.toLowerCase()},n.prototype.matchClientId=function(t,e){return!(!t.clientId||e!==t.clientId)},n.prototype.matchFamilyId=function(t,e){return!(!t.familyId||e!==t.familyId)},n.prototype.matchRealm=function(t,e){return!(!t.realm||e!==t.realm)},n.prototype.matchNativeAccountId=function(t,e){return!(!t.nativeAccountId||e!==t.nativeAccountId)},n.prototype.matchTarget=function(t,e){if(t.credentialType!==zt.ACCESS_TOKEN&&t.credentialType!==zt.ACCESS_TOKEN_WITH_AUTH_SCHEME||!t.target)return!1;var r=fr.fromString(t.target),o=fr.fromString(e);return o.containsOnlyOIDCScopes()?o.removeScope(ee.OFFLINE_ACCESS_SCOPE):o.removeOIDCScopes(),r.containsScopeSet(o)},n.prototype.matchTokenType=function(t,e){return!(!t.tokenType||t.tokenType!==e)},n.prototype.matchKeyId=function(t,e){return!(!t.keyId||t.keyId!==e)},n.prototype.isAppMetadata=function(t){return-1!==t.indexOf(tC)},n.prototype.isAuthorityMetadata=function(t){return-1!==t.indexOf("authority-metadata")},n.prototype.generateAuthorityMetadataCacheKey=function(t){return"authority-metadata-"+this.clientId+"-"+t},n.prototype.getSpecificCredential=function(t,e){switch(e){case zt.ID_TOKEN:return this.getIdTokenCredential(t);case zt.ACCESS_TOKEN:case zt.ACCESS_TOKEN_WITH_AUTH_SCHEME:return this.getAccessTokenCredential(t);case zt.REFRESH_TOKEN:return this.getRefreshTokenCredential(t);default:return null}},n.toObject=function(t,e){for(var i in e)t[i]=e[i];return t},n}(),$7=function(n){function t(){return null!==n&&n.apply(this,arguments)||this}return dr(t,n),t.prototype.setAccount=function(){throw ut.createUnexpectedError("Storage interface - setAccount() has not been implemented for the cacheStorage interface.")},t.prototype.getAccount=function(){throw ut.createUnexpectedError("Storage interface - getAccount() has not been implemented for the cacheStorage interface.")},t.prototype.setIdTokenCredential=function(){throw ut.createUnexpectedError("Storage interface - setIdTokenCredential() has not been implemented for the cacheStorage interface.")},t.prototype.getIdTokenCredential=function(){throw ut.createUnexpectedError("Storage interface - getIdTokenCredential() has not been implemented for the cacheStorage interface.")},t.prototype.setAccessTokenCredential=function(){throw ut.createUnexpectedError("Storage interface - setAccessTokenCredential() has not been implemented for the cacheStorage interface.")},t.prototype.getAccessTokenCredential=function(){throw ut.createUnexpectedError("Storage interface - getAccessTokenCredential() has not been implemented for the cacheStorage interface.")},t.prototype.setRefreshTokenCredential=function(){throw ut.createUnexpectedError("Storage interface - setRefreshTokenCredential() has not been implemented for the cacheStorage interface.")},t.prototype.getRefreshTokenCredential=function(){throw ut.createUnexpectedError("Storage interface - getRefreshTokenCredential() has not been implemented for the cacheStorage interface.")},t.prototype.setAppMetadata=function(){throw ut.createUnexpectedError("Storage interface - setAppMetadata() has not been implemented for the cacheStorage interface.")},t.prototype.getAppMetadata=function(){throw ut.createUnexpectedError("Storage interface - getAppMetadata() has not been implemented for the cacheStorage interface.")},t.prototype.setServerTelemetry=function(){throw ut.createUnexpectedError("Storage interface - setServerTelemetry() has not been implemented for the cacheStorage interface.")},t.prototype.getServerTelemetry=function(){throw ut.createUnexpectedError("Storage interface - getServerTelemetry() has not been implemented for the cacheStorage interface.")},t.prototype.setAuthorityMetadata=function(){throw ut.createUnexpectedError("Storage interface - setAuthorityMetadata() has not been implemented for the cacheStorage interface.")},t.prototype.getAuthorityMetadata=function(){throw ut.createUnexpectedError("Storage interface - getAuthorityMetadata() has not been implemented for the cacheStorage interface.")},t.prototype.getAuthorityMetadataKeys=function(){throw ut.createUnexpectedError("Storage interface - getAuthorityMetadataKeys() has not been implemented for the cacheStorage interface.")},t.prototype.setThrottlingCache=function(){throw ut.createUnexpectedError("Storage interface - setThrottlingCache() has not been implemented for the cacheStorage interface.")},t.prototype.getThrottlingCache=function(){throw ut.createUnexpectedError("Storage interface - getThrottlingCache() has not been implemented for the cacheStorage interface.")},t.prototype.removeItem=function(){throw ut.createUnexpectedError("Storage interface - removeItem() has not been implemented for the cacheStorage interface.")},t.prototype.containsKey=function(){throw ut.createUnexpectedError("Storage interface - containsKey() has not been implemented for the cacheStorage interface.")},t.prototype.getKeys=function(){throw ut.createUnexpectedError("Storage interface - getKeys() has not been implemented for the cacheStorage interface.")},t.prototype.clear=function(){return At(this,void 0,void 0,function(){return Tt(this,function(i){throw ut.createUnexpectedError("Storage interface - clear() has not been implemented for the cacheStorage interface.")})})},t.prototype.updateCredentialCacheKey=function(){throw ut.createUnexpectedError("Storage interface - updateCredentialCacheKey() has not been implemented for the cacheStorage interface.")},t}(Io),Wd=function(n){function t(){return null!==n&&n.apply(this,arguments)||this}return dr(t,n),t.createIdTokenEntity=function(e,i,r,o,s){var a=new t;return a.credentialType=zt.ID_TOKEN,a.homeAccountId=e,a.environment=i,a.clientId=o,a.secret=r,a.realm=s,a},t.isIdTokenEntity=function(e){return!!e&&e.hasOwnProperty("homeAccountId")&&e.hasOwnProperty("environment")&&e.hasOwnProperty("credentialType")&&e.hasOwnProperty("realm")&&e.hasOwnProperty("clientId")&&e.hasOwnProperty("secret")&&e.credentialType===zt.ID_TOKEN},t}(Gd),Zr=function(){function n(){}return n.nowSeconds=function(){return Math.round((new Date).getTime()/1e3)},n.isTokenExpired=function(t,e){var i=Number(t)||0;return n.nowSeconds()+e>i},n.wasClockTurnedBack=function(t){return Number(t)>n.nowSeconds()},n.delay=function(t,e){return new Promise(function(i){return setTimeout(function(){return i(e)},t)})},n}(),$d=function(n){function t(){return null!==n&&n.apply(this,arguments)||this}return dr(t,n),t.createAccessTokenEntity=function(e,i,r,o,s,a,l,c,u,d,h,m,y,A,U){var te,Ee,ne=new t;ne.homeAccountId=e,ne.credentialType=zt.ACCESS_TOKEN,ne.secret=r;var Me=Zr.nowSeconds();if(ne.cachedAt=Me.toString(),ne.expiresOn=l.toString(),ne.extendedExpiresOn=c.toString(),d&&(ne.refreshOn=d.toString()),ne.environment=i,ne.clientId=o,ne.realm=s,ne.target=a,ne.userAssertionHash=m,ne.tokenType=Ke.isEmpty(h)?fn.BEARER:h,A&&(ne.requestedClaims=A,ne.requestedClaimsHash=U),(null===(te=ne.tokenType)||void 0===te?void 0:te.toLowerCase())!==fn.BEARER.toLowerCase())switch(ne.credentialType=zt.ACCESS_TOKEN_WITH_AUTH_SCHEME,ne.tokenType){case fn.POP:var at=va.extractTokenClaims(r,u);if(null===(Ee=at?.cnf)||void 0===Ee||!Ee.kid)throw nt.createTokenClaimsRequiredError();ne.keyId=at.cnf.kid;break;case fn.SSH:ne.keyId=y}return ne},t.isAccessTokenEntity=function(e){return!!e&&e.hasOwnProperty("homeAccountId")&&e.hasOwnProperty("environment")&&e.hasOwnProperty("credentialType")&&e.hasOwnProperty("realm")&&e.hasOwnProperty("clientId")&&e.hasOwnProperty("secret")&&e.hasOwnProperty("target")&&(e.credentialType===zt.ACCESS_TOKEN||e.credentialType===zt.ACCESS_TOKEN_WITH_AUTH_SCHEME)},t}(Gd),rC=function(n){function t(){return null!==n&&n.apply(this,arguments)||this}return dr(t,n),t.createRefreshTokenEntity=function(e,i,r,o,s,a){var l=new t;return l.clientId=o,l.credentialType=zt.REFRESH_TOKEN,l.environment=i,l.homeAccountId=e,l.secret=r,l.userAssertionHash=a,s&&(l.familyId=s),l},t.isRefreshTokenEntity=function(e){return!!e&&e.hasOwnProperty("homeAccountId")&&e.hasOwnProperty("environment")&&e.hasOwnProperty("credentialType")&&e.hasOwnProperty("clientId")&&e.hasOwnProperty("secret")&&e.credentialType===zt.REFRESH_TOKEN},t}(Gd),oC=function(){function n(){}return n.prototype.generateAppMetadataKey=function(){return n.generateAppMetadataCacheKey(this.environment,this.clientId)},n.generateAppMetadataCacheKey=function(t,e){return[tC,t,e].join(hr.CACHE_KEY_SEPARATOR).toLowerCase()},n.createAppMetadataEntity=function(t,e,i){var r=new n;return r.clientId=t,r.environment=e,i&&(r.familyId=i),r},n.isAppMetadataEntity=function(t,e){return!!e&&0===t.indexOf(tC)&&e.hasOwnProperty("clientId")&&e.hasOwnProperty("environment")},n}(),vm=function(){function n(){this.failedRequests=[],this.errors=[],this.cacheHits=0}return n.isServerTelemetryEntity=function(t,e){var i=0===t.indexOf(wi.CACHE_KEY),r=!0;return e&&(r=e.hasOwnProperty("failedRequests")&&e.hasOwnProperty("errors")&&e.hasOwnProperty("cacheHits")),i&&r},n}(),sC=function(){function n(){this.expiresAt=Zr.nowSeconds()+86400}return n.prototype.updateCloudDiscoveryMetadata=function(t,e){this.aliases=t.aliases,this.preferred_cache=t.preferred_cache,this.preferred_network=t.preferred_network,this.aliasesFromNetwork=e},n.prototype.updateEndpointMetadata=function(t,e){this.authorization_endpoint=t.authorization_endpoint,this.token_endpoint=t.token_endpoint,this.end_session_endpoint=t.end_session_endpoint,this.issuer=t.issuer,this.endpointsFromNetwork=e,this.jwks_uri=t.jwks_uri},n.prototype.updateCanonicalAuthority=function(t){this.canonical_authority=t},n.prototype.resetExpiresAt=function(){this.expiresAt=Zr.nowSeconds()+86400},n.prototype.isExpired=function(){return this.expiresAt<=Zr.nowSeconds()},n.isAuthorityMetadataEntity=function(t,e){return!!e&&0===t.indexOf("authority-metadata")&&e.hasOwnProperty("aliases")&&e.hasOwnProperty("preferred_cache")&&e.hasOwnProperty("preferred_network")&&e.hasOwnProperty("canonical_authority")&&e.hasOwnProperty("authorization_endpoint")&&e.hasOwnProperty("token_endpoint")&&e.hasOwnProperty("issuer")&&e.hasOwnProperty("aliasesFromNetwork")&&e.hasOwnProperty("endpointsFromNetwork")&&e.hasOwnProperty("expiresAt")&&e.hasOwnProperty("jwks_uri")},n}(),xI=function(){function n(){}return n.isThrottlingEntity=function(t,e){var i=!1;t&&(i=0===t.indexOf("throttling"));var r=!0;return e&&(r=e.hasOwnProperty("throttleTime")),i&&r},n}(),js=function(){function n(){}return n.setRequestState=function(t,e,i){var r=n.generateLibraryState(t,i);return Ke.isEmpty(e)?r:""+r+ee.RESOURCE_DELIM+e},n.generateLibraryState=function(t,e){if(!t)throw nt.createNoCryptoObjectError("generateLibraryState");var i={id:t.createNewGuid()};e&&(i.meta=e);var r=JSON.stringify(i);return t.base64Encode(r)},n.parseRequestState=function(t,e){if(!t)throw nt.createNoCryptoObjectError("parseRequestState");if(Ke.isEmpty(e))throw nt.createInvalidStateError(e,"Null, undefined or empty state");try{var i=e.split(ee.RESOURCE_DELIM),r=i[0],o=i.length>1?i.slice(1).join(ee.RESOURCE_DELIM):ee.EMPTY_STRING,s=t.base64Decode(r),a=JSON.parse(s);return{userRequestState:Ke.isEmpty(o)?ee.EMPTY_STRING:o,libraryState:a}}catch(l){throw nt.createInvalidStateError(e,l)}},n}(),mr=(()=>(function(n){n.HOME_ACCOUNT_ID="home_account_id",n.UPN="UPN"}(mr||(mr={})),mr))(),Xr_redirectUriNotSet_code="redirect_uri_empty",Xr_redirectUriNotSet_desc="A redirect URI is required for all calls, and none has been set.",Xr_postLogoutUriNotSet_code="post_logout_uri_empty",Xr_postLogoutUriNotSet_desc="A post logout redirect has not been set.",Xr_storageNotSupportedError_code="storage_not_supported",Xr_storageNotSupportedError_desc="Given storage configuration option was not supported.",Xr_noRedirectCallbacksSet_code="no_redirect_callbacks",Xr_noRedirectCallbacksSet_desc="No redirect callbacks have been set. Please call setRedirectCallbacks() with the appropriate function arguments before continuing. More information is available here: https://github.com/AzureAD/microsoft-authentication-library-for-js/wiki/MSAL-basics.",Xr_stubPcaInstanceCalled_code="stubbed_public_client_application_called",Xr_stubPcaInstanceCalled_desc="Stub instance of Public Client Application was called. If using msal-react, please ensure context is not used without a provider. For more visit: aka.ms/msaljs/browser-errors",Xr_inMemRedirectUnavailable_code="in_mem_redirect_unavailable",Xr_inMemRedirectUnavailable_desc="Redirect cannot be supported. In-memory storage was selected and storeAuthStateInCookie=false, which would cause the library to be unable to handle the incoming hash. If you would like to use the redirect API, please use session/localStorage or set storeAuthStateInCookie=true.",ym=function(n){function t(e,i){var r=n.call(this,e,i)||this;return r.name="BrowserConfigurationAuthError",Object.setPrototypeOf(r,t.prototype),r}return Ci(t,n),t.createRedirectUriEmptyError=function(){return new t(Xr_redirectUriNotSet_code,Xr_redirectUriNotSet_desc)},t.createPostLogoutRedirectUriEmptyError=function(){return new t(Xr_postLogoutUriNotSet_code,Xr_postLogoutUriNotSet_desc)},t.createStorageNotSupportedError=function(e){return new t(Xr_storageNotSupportedError_code,Xr_storageNotSupportedError_desc+" Given Location: "+e)},t.createRedirectCallbacksNotSetError=function(){return new t(Xr_noRedirectCallbacksSet_code,Xr_noRedirectCallbacksSet_desc)},t.createStubPcaInstanceCalledError=function(){return new t(Xr_stubPcaInstanceCalled_code,Xr_stubPcaInstanceCalled_desc)},t.createInMemoryRedirectUnavailableError=function(){return new t(Xr_inMemRedirectUnavailable_code,Xr_inMemRedirectUnavailable_desc)},t}(ut),II=function(){function n(t){this.validateWindowStorage(t),this.windowStorage=window[t]}return n.prototype.validateWindowStorage=function(t){if(t!==pi.LocalStorage&&t!==pi.SessionStorage)throw ym.createStorageNotSupportedError(t);if(!window[t])throw ym.createStorageNotSupportedError(t)},n.prototype.getItem=function(t){return this.windowStorage.getItem(t)},n.prototype.setItem=function(t,e){this.windowStorage.setItem(t,e)},n.prototype.removeItem=function(t){this.windowStorage.removeItem(t)},n.prototype.getKeys=function(){return Object.keys(this.windowStorage)},n.prototype.containsKey=function(t){return this.windowStorage.hasOwnProperty(t)},n}(),nn=function(){function n(t){if(this._urlString=t,Ke.isEmpty(this._urlString))throw Mn.createUrlEmptyError();Ke.isEmpty(this.getHash())&&(this._urlString=n.canonicalizeUri(t))}return Object.defineProperty(n.prototype,"urlString",{get:function(){return this._urlString},enumerable:!1,configurable:!0}),n.canonicalizeUri=function(t){if(t){var e=t.toLowerCase();return Ke.endsWith(e,"?")?e=e.slice(0,-1):Ke.endsWith(e,"?/")&&(e=e.slice(0,-2)),Ke.endsWith(e,"/")||(e+="/"),e}return t},n.prototype.validateAsUri=function(){var t;try{t=this.getUrlComponents()}catch(e){throw Mn.createUrlParseError(e)}if(!t.HostNameAndPort||!t.PathSegments)throw Mn.createUrlParseError("Given url string: "+this.urlString);if(!t.Protocol||"https:"!==t.Protocol.toLowerCase())throw Mn.createInsecureAuthorityUriError(this.urlString)},n.appendQueryString=function(t,e){return Ke.isEmpty(e)?t:t.indexOf("?")<0?t+"?"+e:t+"&"+e},n.removeHashFromUrl=function(t){return n.canonicalizeUri(t.split("#")[0])},n.prototype.replaceTenantPath=function(t){var e=this.getUrlComponents(),i=e.PathSegments;return t&&0!==i.length&&(i[0]===Nd.COMMON||i[0]===Nd.ORGANIZATIONS)&&(i[0]=t),n.constructAuthorityUriFromObject(e)},n.prototype.getHash=function(){return n.parseHash(this.urlString)},n.prototype.getUrlComponents=function(){var t=RegExp("^(([^:/?#]+):)?(//([^/?#]*))?([^?#]*)(\\?([^#]*))?(#(.*))?"),e=this.urlString.match(t);if(!e)throw Mn.createUrlParseError("Given url string: "+this.urlString);var i={Protocol:e[1],HostNameAndPort:e[4],AbsolutePath:e[5],QueryString:e[7]},r=i.AbsolutePath.split("/");return r=r.filter(function(o){return o&&o.length>0}),i.PathSegments=r,!Ke.isEmpty(i.QueryString)&&i.QueryString.endsWith("/")&&(i.QueryString=i.QueryString.substring(0,i.QueryString.length-1)),i},n.getDomainFromUrl=function(t){var e=RegExp("^([^:/?#]+://)?([^/?#]*)"),i=t.match(e);if(!i)throw Mn.createUrlParseError("Given url string: "+t);return i[2]},n.getAbsoluteUrl=function(t,e){if(t[0]===ee.FORWARD_SLASH){var r=new n(e).getUrlComponents();return r.Protocol+"//"+r.HostNameAndPort+t}return t},n.parseHash=function(t){var e=t.indexOf("#"),i=t.indexOf("#/");return i>-1?t.substring(i+2):e>-1?t.substring(e+1):ee.EMPTY_STRING},n.constructAuthorityUriFromObject=function(t){return new n(t.Protocol+"//"+t.HostNameAndPort+"/"+t.PathSegments.join("/"))},n.getDeserializedHash=function(t){if(Ke.isEmpty(t))return{};var e=n.parseHash(t),i=Ke.queryStringToObject(Ke.isEmpty(e)?t:e);if(!i)throw nt.createHashNotDeserializedError(JSON.stringify(i));return i},n.hashContainsKnownProperties=function(t){if(Ke.isEmpty(t)||t.indexOf("=")<0)return!1;var e=n.getDeserializedHash(t);return!!(e.code||e.error_description||e.error||e.state)},n}(),MI=function(){function n(){}return n.extractBrowserRequestState=function(t,e){if(Ke.isEmpty(e))return null;try{return js.parseRequestState(t,e).libraryState.meta}catch(r){throw nt.createInvalidStateError(e,r)}},n.parseServerResponseFromHash=function(t){if(!t)return{};var e=new nn(t);return nn.getDeserializedHash(e.getHash())},n}(),aC=function(n){function t(e,i,r,o){var s=n.call(this,e,r)||this;return s.COOKIE_LIFE_MULTIPLIER=864e5,s.cacheConfig=i,s.logger=o,s.internalStorage=new iC,s.browserStorage=s.setupBrowserStorage(s.cacheConfig.cacheLocation),s.temporaryCacheStorage=s.setupTemporaryCacheStorage(s.cacheConfig.cacheLocation),s.migrateCacheEntries(),s}return Ci(t,n),t.prototype.setupBrowserStorage=function(e){switch(e){case pi.LocalStorage:case pi.SessionStorage:try{return new II(e)}catch(i){this.logger.verbose(i);break}}return this.cacheConfig.cacheLocation=pi.MemoryStorage,new iC},t.prototype.setupTemporaryCacheStorage=function(e){switch(e){case pi.LocalStorage:case pi.SessionStorage:try{return new II(pi.SessionStorage)}catch(i){return this.logger.verbose(i),this.internalStorage}default:return this.internalStorage}},t.prototype.migrateCacheEntries=function(){var e=this,r=ee.CACHE_PREFIX+"."+ii.CLIENT_INFO,o=ee.CACHE_PREFIX+"."+ii.ERROR,s=ee.CACHE_PREFIX+"."+ii.ERROR_DESC,d=[this.browserStorage.getItem(ee.CACHE_PREFIX+"."+ii.ID_TOKEN),this.browserStorage.getItem(r),this.browserStorage.getItem(o),this.browserStorage.getItem(s)];[ii.ID_TOKEN,ii.CLIENT_INFO,ii.ERROR,ii.ERROR_DESC].forEach(function(m,y){return e.migrateCacheEntry(m,d[y])})},t.prototype.migrateCacheEntry=function(e,i){i&&this.setTemporaryCache(e,i,!0)},t.prototype.validateAndParseJson=function(e){try{var i=JSON.parse(e);return i&&"object"==typeof i?i:null}catch{return null}},t.prototype.getItem=function(e){return this.browserStorage.getItem(e)},t.prototype.setItem=function(e,i){this.browserStorage.setItem(e,i)},t.prototype.getAccount=function(e){var i=this.getItem(e);if(!i)return null;var r=this.validateAndParseJson(i);return r&&Fi.isAccountEntity(r)?Io.toObject(new Fi,r):null},t.prototype.setAccount=function(e){this.logger.trace("BrowserCacheManager.setAccount called");var i=e.generateAccountKey();this.setItem(i,JSON.stringify(e))},t.prototype.getIdTokenCredential=function(e){var i=this.getItem(e);if(!i)return this.logger.trace("BrowserCacheManager.getIdTokenCredential: called, no cache hit"),null;var r=this.validateAndParseJson(i);return r&&Wd.isIdTokenEntity(r)?(this.logger.trace("BrowserCacheManager.getIdTokenCredential: cache hit"),Io.toObject(new Wd,r)):(this.logger.trace("BrowserCacheManager.getIdTokenCredential: called, no cache hit"),null)},t.prototype.setIdTokenCredential=function(e){this.logger.trace("BrowserCacheManager.setIdTokenCredential called");var i=e.generateCredentialKey();this.setItem(i,JSON.stringify(e))},t.prototype.getAccessTokenCredential=function(e){var i=this.getItem(e);if(!i)return this.logger.trace("BrowserCacheManager.getAccessTokenCredential: called, no cache hit"),null;var r=this.validateAndParseJson(i);return r&&$d.isAccessTokenEntity(r)?(this.logger.trace("BrowserCacheManager.getAccessTokenCredential: cache hit"),Io.toObject(new $d,r)):(this.logger.trace("BrowserCacheManager.getAccessTokenCredential: called, no cache hit"),null)},t.prototype.setAccessTokenCredential=function(e){this.logger.trace("BrowserCacheManager.setAccessTokenCredential called");var i=e.generateCredentialKey();this.setItem(i,JSON.stringify(e))},t.prototype.getRefreshTokenCredential=function(e){var i=this.getItem(e);if(!i)return this.logger.trace("BrowserCacheManager.getRefreshTokenCredential: called, no cache hit"),null;var r=this.validateAndParseJson(i);return r&&rC.isRefreshTokenEntity(r)?(this.logger.trace("BrowserCacheManager.getRefreshTokenCredential: cache hit"),Io.toObject(new rC,r)):(this.logger.trace("BrowserCacheManager.getRefreshTokenCredential: called, no cache hit"),null)},t.prototype.setRefreshTokenCredential=function(e){this.logger.trace("BrowserCacheManager.setRefreshTokenCredential called");var i=e.generateCredentialKey();this.setItem(i,JSON.stringify(e))},t.prototype.getAppMetadata=function(e){var i=this.getItem(e);if(!i)return this.logger.trace("BrowserCacheManager.getAppMetadata: called, no cache hit"),null;var r=this.validateAndParseJson(i);return r&&oC.isAppMetadataEntity(e,r)?(this.logger.trace("BrowserCacheManager.getAppMetadata: cache hit"),Io.toObject(new oC,r)):(this.logger.trace("BrowserCacheManager.getAppMetadata: called, no cache hit"),null)},t.prototype.setAppMetadata=function(e){this.logger.trace("BrowserCacheManager.setAppMetadata called");var i=e.generateAppMetadataKey();this.setItem(i,JSON.stringify(e))},t.prototype.getServerTelemetry=function(e){var i=this.getItem(e);if(!i)return this.logger.trace("BrowserCacheManager.getServerTelemetry: called, no cache hit"),null;var r=this.validateAndParseJson(i);return r&&vm.isServerTelemetryEntity(e,r)?(this.logger.trace("BrowserCacheManager.getServerTelemetry: cache hit"),Io.toObject(new vm,r)):(this.logger.trace("BrowserCacheManager.getServerTelemetry: called, no cache hit"),null)},t.prototype.setServerTelemetry=function(e,i){this.logger.trace("BrowserCacheManager.setServerTelemetry called"),this.setItem(e,JSON.stringify(i))},t.prototype.getAuthorityMetadata=function(e){var i=this.internalStorage.getItem(e);if(!i)return this.logger.trace("BrowserCacheManager.getAuthorityMetadata: called, no cache hit"),null;var r=this.validateAndParseJson(i);return r&&sC.isAuthorityMetadataEntity(e,r)?(this.logger.trace("BrowserCacheManager.getAuthorityMetadata: cache hit"),Io.toObject(new sC,r)):null},t.prototype.getAuthorityMetadataKeys=function(){var e=this;return this.internalStorage.getKeys().filter(function(r){return e.isAuthorityMetadata(r)})},t.prototype.setWrapperMetadata=function(e,i){this.internalStorage.setItem(ll.WRAPPER_SKU,e),this.internalStorage.setItem(ll.WRAPPER_VER,i)},t.prototype.getWrapperMetadata=function(){return[this.internalStorage.getItem(ll.WRAPPER_SKU)||ee.EMPTY_STRING,this.internalStorage.getItem(ll.WRAPPER_VER)||ee.EMPTY_STRING]},t.prototype.setAuthorityMetadata=function(e,i){this.logger.trace("BrowserCacheManager.setAuthorityMetadata called"),this.internalStorage.setItem(e,JSON.stringify(i))},t.prototype.getActiveAccount=function(){var e=this.generateCacheKey(ii.ACTIVE_ACCOUNT_FILTERS),i=this.getItem(e);if(!i){this.logger.trace("No active account filters cache schema found, looking for legacy schema");var r=this.generateCacheKey(ii.ACTIVE_ACCOUNT),o=this.getItem(r);if(!o)return this.logger.trace("No active account found"),null;var s=this.getAccountInfoByFilter({localAccountId:o})[0]||null;return s?(this.logger.trace("Legacy active account cache schema found"),this.logger.trace("Adding active account filters cache schema"),this.setActiveAccount(s),s):null}var a=this.validateAndParseJson(i);return a?(this.logger.trace("Active account filters schema found"),this.getAccountInfoByFilter({homeAccountId:a.homeAccountId,localAccountId:a.localAccountId})[0]||null):(this.logger.trace("No active account found"),null)},t.prototype.setActiveAccount=function(e){var i=this.generateCacheKey(ii.ACTIVE_ACCOUNT_FILTERS),r=this.generateCacheKey(ii.ACTIVE_ACCOUNT);e?(this.logger.verbose("setActiveAccount: Active account set"),this.browserStorage.setItem(i,JSON.stringify({homeAccountId:e.homeAccountId,localAccountId:e.localAccountId})),this.browserStorage.setItem(r,e.localAccountId)):(this.logger.verbose("setActiveAccount: No account passed, active account not set"),this.browserStorage.removeItem(i),this.browserStorage.removeItem(r))},t.prototype.getAccountInfoByFilter=function(e){return this.getAllAccounts().filter(function(r){return!(e.username&&e.username.toLowerCase()!==r.username.toLowerCase()||e.homeAccountId&&e.homeAccountId!==r.homeAccountId||e.localAccountId&&e.localAccountId!==r.localAccountId||e.tenantId&&e.tenantId!==r.tenantId||e.environment&&e.environment!==r.environment)})},t.prototype.getAccountInfoByHints=function(e,i){var r=this.getAllAccounts().filter(function(o){return i?i===(o.idTokenClaims&&o.idTokenClaims.sid):!!e&&e===o.username});if(1===r.length)return r[0];if(r.length>1)throw nt.createMultipleMatchingAccountsInCacheError();return null},t.prototype.getThrottlingCache=function(e){var i=this.getItem(e);if(!i)return this.logger.trace("BrowserCacheManager.getThrottlingCache: called, no cache hit"),null;var r=this.validateAndParseJson(i);return r&&xI.isThrottlingEntity(e,r)?(this.logger.trace("BrowserCacheManager.getThrottlingCache: cache hit"),Io.toObject(new xI,r)):(this.logger.trace("BrowserCacheManager.getThrottlingCache: called, no cache hit"),null)},t.prototype.setThrottlingCache=function(e,i){this.logger.trace("BrowserCacheManager.setThrottlingCache called"),this.setItem(e,JSON.stringify(i))},t.prototype.getTemporaryCache=function(e,i){var r=i?this.generateCacheKey(e):e;if(this.cacheConfig.storeAuthStateInCookie){var o=this.getItemCookie(r);if(o)return this.logger.trace("BrowserCacheManager.getTemporaryCache: storeAuthStateInCookies set to true, retrieving from cookies"),o}var s=this.temporaryCacheStorage.getItem(r);if(!s){if(this.cacheConfig.cacheLocation===pi.LocalStorage){var a=this.browserStorage.getItem(r);if(a)return this.logger.trace("BrowserCacheManager.getTemporaryCache: Temporary cache item found in local storage"),a}return this.logger.trace("BrowserCacheManager.getTemporaryCache: No cache item found in local storage"),null}return this.logger.trace("BrowserCacheManager.getTemporaryCache: Temporary cache item returned"),s},t.prototype.setTemporaryCache=function(e,i,r){var o=r?this.generateCacheKey(e):e;this.temporaryCacheStorage.setItem(o,i),this.cacheConfig.storeAuthStateInCookie&&(this.logger.trace("BrowserCacheManager.setTemporaryCache: storeAuthStateInCookie set to true, setting item cookie"),this.setItemCookie(o,i))},t.prototype.removeItem=function(e){return this.browserStorage.removeItem(e),this.temporaryCacheStorage.removeItem(e),this.cacheConfig.storeAuthStateInCookie&&(this.logger.trace("BrowserCacheManager.removeItem: storeAuthStateInCookie is true, clearing item cookie"),this.clearItemCookie(e)),!0},t.prototype.containsKey=function(e){return this.browserStorage.containsKey(e)||this.temporaryCacheStorage.containsKey(e)},t.prototype.getKeys=function(){return gI(this.browserStorage.getKeys(),this.temporaryCacheStorage.getKeys())},t.prototype.clear=function(){return Oe(this,void 0,void 0,function(){var e=this;return Pe(this,function(i){switch(i.label){case 0:return[4,this.removeAllAccounts()];case 1:return i.sent(),this.removeAppMetadata(),this.getKeys().forEach(function(r){(e.browserStorage.containsKey(r)||e.temporaryCacheStorage.containsKey(r))&&(-1!==r.indexOf(ee.CACHE_PREFIX)||-1!==r.indexOf(e.clientId))&&e.removeItem(r)}),this.internalStorage.clear(),[2]}})})},t.prototype.setItemCookie=function(e,i,r){var o=encodeURIComponent(e)+"="+encodeURIComponent(i)+";path=/;SameSite=Lax;";r&&(o+="expires="+this.getCookieExpirationTime(r)+";"),this.cacheConfig.secureCookies&&(o+="Secure;"),document.cookie=o},t.prototype.getItemCookie=function(e){for(var i=encodeURIComponent(e)+"=",r=document.cookie.split(";"),o=0;o(function(n){n.AAD="AAD",n.OIDC="OIDC"}(Kd||(Kd={})),Kd))(),qc=(()=>(function(n){n[n.None=0]="None",n.AzurePublic="https://login.microsoftonline.com",n.AzurePpe="https://login.windows-ppe.net",n.AzureChina="https://login.chinacloudapi.cn",n.AzureGermany="https://login.microsoftonline.de",n.AzureUsGovernment="https://login.microsoftonline.us"}(qc||(qc={})),qc))(),RI={tokenRenewalOffsetSeconds:300,preventCorsPreflight:!1,proxyUrl:ee.EMPTY_STRING},J7={loggerCallback:function(){},piiLoggingEnabled:!1,logLevel:mi.Info,correlationId:ee.EMPTY_STRING},Z7={sendGetRequestAsync:function(){return At(this,void 0,void 0,function(){return Tt(this,function(t){throw ut.createUnexpectedError("Network interface - sendGetRequestAsync() has not been implemented")})})},sendPostRequestAsync:function(){return At(this,void 0,void 0,function(){return Tt(this,function(t){throw ut.createUnexpectedError("Network interface - sendPostRequestAsync() has not been implemented")})})}},X7={sku:ee.SKU,version:"7.3.0",cpu:ee.EMPTY_STRING,os:ee.EMPTY_STRING},eG={clientSecret:ee.EMPTY_STRING,clientAssertion:void 0},tG={azureCloudInstance:qc.None,tenant:""+ee.DEFAULT_COMMON_TENANT},nG={application:{appName:"",appVersion:""}};function rG(n){return Gn({clientCapabilities:[],azureCloudOptions:tG,skipAuthorityMetadataCache:!1},n)}var oG={sendGetRequestAsync:function(){return Promise.reject(ut.createUnexpectedError("Network interface - sendGetRequestAsync() has not been implemented for the Network interface."))},sendPostRequestAsync:function(){return Promise.reject(ut.createUnexpectedError("Network interface - sendPostRequestAsync() has not been implemented for the Network interface."))}},sG=function(){function n(){}return n.prototype.sendGetRequestAsync=function(t,e){return Oe(this,void 0,void 0,function(){var i,r,o;return Pe(this,function(s){switch(s.label){case 0:return s.trys.push([0,2,,3]),[4,fetch(t,{method:To.GET,headers:this.getFetchHeaders(e)})];case 1:return i=s.sent(),[3,3];case 2:throw r=s.sent(),window.navigator.onLine?ze.createGetRequestFailedError(r,t):ze.createNoNetworkConnectivityError();case 3:return s.trys.push([3,5,,6]),o={headers:this.getHeaderDict(i.headers)},[4,i.json()];case 4:return[2,(o.body=s.sent(),o.status=i.status,o)];case 5:throw s.sent(),ze.createFailedToParseNetworkResponseError(t);case 6:return[2]}})})},n.prototype.sendPostRequestAsync=function(t,e){return Oe(this,void 0,void 0,function(){var i,r,o,s;return Pe(this,function(a){switch(a.label){case 0:i=e&&e.body||ee.EMPTY_STRING,a.label=1;case 1:return a.trys.push([1,3,,4]),[4,fetch(t,{method:To.POST,headers:this.getFetchHeaders(e),body:i})];case 2:return r=a.sent(),[3,4];case 3:throw o=a.sent(),window.navigator.onLine?ze.createPostRequestFailedError(o,t):ze.createNoNetworkConnectivityError();case 4:return a.trys.push([4,6,,7]),s={headers:this.getHeaderDict(r.headers)},[4,r.json()];case 5:return[2,(s.body=a.sent(),s.status=r.status,s)];case 6:throw a.sent(),ze.createFailedToParseNetworkResponseError(t);case 7:return[2]}})})},n.prototype.getFetchHeaders=function(t){var e=new Headers;if(!t||!t.headers)return e;var i=t.headers;return Object.keys(i).forEach(function(r){e.append(r,i[r])}),e},n.prototype.getHeaderDict=function(t){var e={};return t.forEach(function(i,r){e[r]=i}),e},n}(),aG=function(){function n(){}return n.prototype.sendGetRequestAsync=function(t,e){return Oe(this,void 0,void 0,function(){return Pe(this,function(i){return[2,this.sendRequestAsync(t,To.GET,e)]})})},n.prototype.sendPostRequestAsync=function(t,e){return Oe(this,void 0,void 0,function(){return Pe(this,function(i){return[2,this.sendRequestAsync(t,To.POST,e)]})})},n.prototype.sendRequestAsync=function(t,e,i){var r=this;return new Promise(function(o,s){var a=new XMLHttpRequest;if(a.open(e,t,!0),r.setXhrHeaders(a,i),a.onload=function(){(a.status<200||a.status>=300)&&s(e===To.POST?ze.createPostRequestFailedError("Failed with status "+a.status,t):ze.createGetRequestFailedError("Failed with status "+a.status,t));try{var l=JSON.parse(a.responseText),c={headers:r.getHeaderDict(a),body:l,status:a.status};o(c)}catch{s(ze.createFailedToParseNetworkResponseError(t))}},a.onerror=function(){window.navigator.onLine?s(e===To.POST?ze.createPostRequestFailedError("Failed with status "+a.status,t):ze.createGetRequestFailedError("Failed with status "+a.status,t)):s(ze.createNoNetworkConnectivityError())},e===To.POST&&i&&i.body)a.send(i.body);else{if(e!==To.GET)throw ze.createHttpMethodNotImplementedError(e);a.send()}})},n.prototype.setXhrHeaders=function(t,e){if(e&&e.headers){var i=e.headers;Object.keys(i).forEach(function(r){t.setRequestHeader(r,i[r])})}},n.prototype.getHeaderDict=function(t){var i=t.getAllResponseHeaders().trim().split(/[\r\n]+/),r={};return i.forEach(function(o){var s=o.split(": "),a=s.shift(),l=s.join(": ");a&&l&&(r[a]=l)}),r},n}(),Fn=function(){function n(){}return n.clearHash=function(t){t.location.hash=ee.EMPTY_STRING,"function"==typeof t.history.replaceState&&t.history.replaceState(null,ee.EMPTY_STRING,""+t.location.origin+t.location.pathname+t.location.search)},n.replaceHash=function(t){var e=t.split("#");e.shift(),window.location.hash=e.length>0?e.join("#"):ee.EMPTY_STRING},n.isInIframe=function(){return window.parent!==window},n.isInPopup=function(){return typeof window<"u"&&!!window.opener&&window.opener!==window&&"string"==typeof window.name&&0===window.name.indexOf("msal.")},n.getCurrentUri=function(){return window.location.href.split("?")[0].split("#")[0]},n.getHomepage=function(){var e=new nn(window.location.href).getUrlComponents();return e.Protocol+"//"+e.HostNameAndPort+"/"},n.getBrowserNetworkClient=function(){return window.fetch&&window.Headers?new sG:new aG},n.blockReloadInHiddenIframes=function(){if(nn.hashContainsKnownProperties(window.location.hash)&&n.isInIframe())throw ze.createBlockReloadInHiddenIframeError()},n.blockRedirectInIframe=function(t,e){var i=n.isInIframe();if(t===$e.Redirect&&i&&!e)throw ze.createRedirectInIframeError(i)},n.blockAcquireTokenInPopups=function(){if(n.isInPopup())throw ze.createBlockAcquireTokenInPopupsError()},n.blockNonBrowserEnvironment=function(t){if(!t)throw ze.createNonBrowserEnvironmentError()},n.blockNativeBrokerCalledBeforeInitialized=function(t,e){if(t&&!e)throw ze.createNativeBrokerCalledBeforeInitialize()},n.detectIEOrEdge=function(){var t=window.navigator.userAgent,e=t.indexOf("MSIE "),i=t.indexOf("Trident/"),r=t.indexOf("Edge/");return e>0||i>0||r>0},n}(),lG=function(){function n(){}return n.prototype.navigateInternal=function(t,e){return n.defaultNavigateWindow(t,e)},n.prototype.navigateExternal=function(t,e){return n.defaultNavigateWindow(t,e)},n.defaultNavigateWindow=function(t,e){return e.noHistory?window.location.replace(t):window.location.assign(t),new Promise(function(i){setTimeout(function(){i(!0)},e.timeout)})},n}(),cC="@azure/msal-browser",Yd="2.28.1",st=(()=>(function(n){n.INITIALIZE_START="msal:initializeStart",n.INITIALIZE_END="msal:initializeEnd",n.ACCOUNT_ADDED="msal:accountAdded",n.ACCOUNT_REMOVED="msal:accountRemoved",n.LOGIN_START="msal:loginStart",n.LOGIN_SUCCESS="msal:loginSuccess",n.LOGIN_FAILURE="msal:loginFailure",n.ACQUIRE_TOKEN_START="msal:acquireTokenStart",n.ACQUIRE_TOKEN_SUCCESS="msal:acquireTokenSuccess",n.ACQUIRE_TOKEN_FAILURE="msal:acquireTokenFailure",n.ACQUIRE_TOKEN_NETWORK_START="msal:acquireTokenFromNetworkStart",n.SSO_SILENT_START="msal:ssoSilentStart",n.SSO_SILENT_SUCCESS="msal:ssoSilentSuccess",n.SSO_SILENT_FAILURE="msal:ssoSilentFailure",n.ACQUIRE_TOKEN_BY_CODE_START="msal:acquireTokenByCodeStart",n.ACQUIRE_TOKEN_BY_CODE_SUCCESS="msal:acquireTokenByCodeSuccess",n.ACQUIRE_TOKEN_BY_CODE_FAILURE="msal:acquireTokenByCodeFailure",n.HANDLE_REDIRECT_START="msal:handleRedirectStart",n.HANDLE_REDIRECT_END="msal:handleRedirectEnd",n.POPUP_OPENED="msal:popupOpened",n.LOGOUT_START="msal:logoutStart",n.LOGOUT_SUCCESS="msal:logoutSuccess",n.LOGOUT_FAILURE="msal:logoutFailure",n.LOGOUT_END="msal:logoutEnd"}(st||(st={})),st))(),pG=function(){function n(t,e){this.eventCallbacks=new Map,this.logger=t,this.browserCrypto=e,this.listeningToStorageEvents=!1,this.handleAccountCacheChange=this.handleAccountCacheChange.bind(this)}return n.prototype.addEventCallback=function(t){if(typeof window<"u"){var e=this.browserCrypto.createNewGuid();return this.eventCallbacks.set(e,t),this.logger.verbose("Event callback registered with id: "+e),e}return null},n.prototype.removeEventCallback=function(t){this.eventCallbacks.delete(t),this.logger.verbose("Event callback "+t+" removed.")},n.prototype.enableAccountStorageEvents=function(){typeof window>"u"||(this.listeningToStorageEvents?this.logger.verbose("Account storage listener already registered."):(this.logger.verbose("Adding account storage listener."),this.listeningToStorageEvents=!0,window.addEventListener("storage",this.handleAccountCacheChange)))},n.prototype.disableAccountStorageEvents=function(){typeof window>"u"||(this.listeningToStorageEvents?(this.logger.verbose("Removing account storage listener."),window.removeEventListener("storage",this.handleAccountCacheChange),this.listeningToStorageEvents=!1):this.logger.verbose("No account storage listener registered."))},n.prototype.emitEvent=function(t,e,i,r){var o=this;if(typeof window<"u"){var s={eventType:t,interactionType:e||null,payload:i||null,error:r||null,timestamp:Date.now()};this.logger.info("Emitting event: "+t),this.eventCallbacks.forEach(function(a,l){o.logger.verbose("Emitting event to callback "+l+": "+t),a.apply(null,[s])})}},n.prototype.handleAccountCacheChange=function(t){try{var e=t.newValue||t.oldValue;if(!e)return;var i=JSON.parse(e);if("object"!=typeof i||!Fi.isAccountEntity(i))return;var o=Io.toObject(new Fi,i).getAccountInfo();!t.oldValue&&t.newValue?(this.logger.info("Account was added to cache in a different window"),this.emitEvent(st.ACCOUNT_ADDED,void 0,o)):!t.newValue&&t.oldValue&&(this.logger.info("Account was removed from cache in a different window"),this.emitEvent(st.ACCOUNT_REMOVED,void 0,o))}catch{return}},n}(),bm=function(){function n(){}return n.generateThrottlingStorageKey=function(t){return"throttling."+JSON.stringify(t)},n.preProcess=function(t,e){var i,r=n.generateThrottlingStorageKey(e),o=t.getThrottlingCache(r);if(o){if(o.throttleTime=500&&t.status<600},n.checkResponseForRetryAfter=function(t){return!!t.headers&&t.headers.hasOwnProperty(Qo.RETRY_AFTER)&&(t.status<200||t.status>=300)},n.calculateThrottleTime=function(t){var e=t<=0?0:t,i=Date.now()/1e3;return Math.floor(1e3*Math.min(i+(e||60),i+3600))},n.removeThrottle=function(t,e,i,r){var s=this.generateThrottlingStorageKey({clientId:e,authority:i.authority,scopes:i.scopes,homeAccountIdentifier:r,claims:i.claims,authenticationScheme:i.authenticationScheme,resourceRequestMethod:i.resourceRequestMethod,resourceRequestUri:i.resourceRequestUri,shrClaims:i.shrClaims,sshKid:i.sshKid});return t.removeItem(s,ma.THROTTLING)},n}(),fG=function(){function n(t,e){this.networkClient=t,this.cacheManager=e}return n.prototype.sendPostRequest=function(t,e,i){return At(this,void 0,void 0,function(){var r,o;return Tt(this,function(s){switch(s.label){case 0:bm.preProcess(this.cacheManager,t),s.label=1;case 1:return s.trys.push([1,3,,4]),[4,this.networkClient.sendPostRequestAsync(e,i)];case 2:return r=s.sent(),[3,4];case 3:throw(o=s.sent())instanceof ut?o:nt.createNetworkError(e,o);case 4:return bm.postProcess(this.cacheManager,t,r),[2,r]}})})},n}(),uC=function(){function n(t,e){this.config=function iG(n){var t=n.authOptions,e=n.systemOptions,i=n.loggerOptions,r=n.storageInterface,o=n.networkInterface,s=n.cryptoInterface,a=n.clientCredentials,l=n.libraryInfo,c=n.telemetry,u=n.serverTelemetryManager,d=n.persistencePlugin,h=n.serializableCache,m=Gn(Gn({},J7),i);return{authOptions:rG(t),systemOptions:Gn(Gn({},RI),e),loggerOptions:m,storageInterface:r||new $7(t.clientId,gm),networkInterface:o||Z7,cryptoInterface:s||gm,clientCredentials:a||eG,libraryInfo:Gn(Gn({},X7),l),telemetry:Gn(Gn({},nG),c),serverTelemetryManager:u||null,persistencePlugin:d||null,serializableCache:h||null}}(t),this.logger=new SI(this.config.loggerOptions,"@azure/msal-common","7.3.0"),this.cryptoUtils=this.config.cryptoInterface,this.cacheManager=this.config.storageInterface,this.networkClient=this.config.networkInterface,this.networkManager=new fG(this.networkClient,this.cacheManager),this.serverTelemetryManager=this.config.serverTelemetryManager,this.authority=this.config.authOptions.authority,this.performanceClient=e}return n.prototype.createTokenRequestHeaders=function(t){var e={};if(e[Qo.CONTENT_TYPE]=ee.URL_FORM_CONTENT_TYPE,!this.config.systemOptions.preventCorsPreflight&&t)switch(t.type){case mr.HOME_ACCOUNT_ID:try{var i=Uc(t.credential);e[Qo.CCS_HEADER]="Oid:"+i.uid+"@"+i.utid}catch(r){this.logger.verbose("Could not parse home account ID for CCS Header: "+r)}break;case mr.UPN:e[Qo.CCS_HEADER]="UPN: "+t.credential}return e},n.prototype.executePostToTokenEndpoint=function(t,e,i,r){return At(this,void 0,void 0,function(){var o;return Tt(this,function(s){switch(s.label){case 0:return[4,this.networkManager.sendPostRequest(r,t,{body:e,headers:i,proxyUrl:this.config.systemOptions.proxyUrl})];case 1:return o=s.sent(),this.config.serverTelemetryManager&&o.status<500&&429!==o.status&&this.config.serverTelemetryManager.clearTelemetryCache(),[2,o]}})})},n.prototype.updateAuthority=function(t){if(!t.discoveryComplete())throw nt.createEndpointDiscoveryIncompleteError("Updated authority has not completed endpoint discovery.");this.authority=t},n}(),ul=function(){function n(){}return n.validateRedirectUri=function(t){if(Ke.isEmpty(t))throw Mn.createRedirectUriEmptyError()},n.validatePrompt=function(t){var e=[];for(var i in Li)e.push(Li[i]);if(e.indexOf(t)<0)throw Mn.createInvalidPromptError(t)},n.validateClaims=function(t){try{JSON.parse(t)}catch{throw Mn.createInvalidClaimsRequestError()}},n.validateCodeChallengeParams=function(t,e){if(Ke.isEmpty(t)||Ke.isEmpty(e))throw Mn.createInvalidCodeChallengeParamsError();this.validateCodeChallengeMethod(e)},n.validateCodeChallengeMethod=function(t){if([vI.PLAIN,vI.S256].indexOf(t)<0)throw Mn.createInvalidCodeChallengeMethodError()},n.sanitizeEQParams=function(t,e){return t?(e.forEach(function(i,r){t[r]&&delete t[r]}),t):{}},n}(),zc=function(){function n(){this.parameters=new Map}return n.prototype.addResponseTypeCode=function(){this.parameters.set(Mt.RESPONSE_TYPE,encodeURIComponent(ee.CODE_RESPONSE_TYPE))},n.prototype.addResponseTypeForTokenAndIdToken=function(){this.parameters.set(Mt.RESPONSE_TYPE,encodeURIComponent(ee.TOKEN_RESPONSE_TYPE+" "+ee.ID_TOKEN_RESPONSE_TYPE))},n.prototype.addResponseMode=function(t){this.parameters.set(Mt.RESPONSE_MODE,encodeURIComponent(t||Fd.QUERY))},n.prototype.addNativeBroker=function(){this.parameters.set(Mt.NATIVE_BROKER,encodeURIComponent("1"))},n.prototype.addScopes=function(t,e){void 0===e&&(e=!0);var i=e?am(t||[],Ld):t||[],r=new fr(i);this.parameters.set(Mt.SCOPE,encodeURIComponent(r.printScopes()))},n.prototype.addClientId=function(t){this.parameters.set(Mt.CLIENT_ID,encodeURIComponent(t))},n.prototype.addRedirectUri=function(t){ul.validateRedirectUri(t),this.parameters.set(Mt.REDIRECT_URI,encodeURIComponent(t))},n.prototype.addPostLogoutRedirectUri=function(t){ul.validateRedirectUri(t),this.parameters.set(Mt.POST_LOGOUT_URI,encodeURIComponent(t))},n.prototype.addIdTokenHint=function(t){this.parameters.set(Mt.ID_TOKEN_HINT,encodeURIComponent(t))},n.prototype.addDomainHint=function(t){this.parameters.set(Hc.DOMAIN_HINT,encodeURIComponent(t))},n.prototype.addLoginHint=function(t){this.parameters.set(Hc.LOGIN_HINT,encodeURIComponent(t))},n.prototype.addCcsUpn=function(t){this.parameters.set(Qo.CCS_HEADER,encodeURIComponent("UPN:"+t))},n.prototype.addCcsOid=function(t){this.parameters.set(Qo.CCS_HEADER,encodeURIComponent("Oid:"+t.uid+"@"+t.utid))},n.prototype.addSid=function(t){this.parameters.set(Hc.SID,encodeURIComponent(t))},n.prototype.addClaims=function(t,e){var i=this.addClientCapabilitiesToClaims(t,e);ul.validateClaims(i),this.parameters.set(Mt.CLAIMS,encodeURIComponent(i))},n.prototype.addCorrelationId=function(t){this.parameters.set(Mt.CLIENT_REQUEST_ID,encodeURIComponent(t))},n.prototype.addLibraryInfo=function(t){this.parameters.set(Mt.X_CLIENT_SKU,t.sku),this.parameters.set(Mt.X_CLIENT_VER,t.version),t.os&&this.parameters.set(Mt.X_CLIENT_OS,t.os),t.cpu&&this.parameters.set(Mt.X_CLIENT_CPU,t.cpu)},n.prototype.addApplicationTelemetry=function(t){t?.appName&&this.parameters.set(Mt.X_APP_NAME,t.appName),t?.appVersion&&this.parameters.set(Mt.X_APP_VER,t.appVersion)},n.prototype.addPrompt=function(t){ul.validatePrompt(t),this.parameters.set(""+Mt.PROMPT,encodeURIComponent(t))},n.prototype.addState=function(t){Ke.isEmpty(t)||this.parameters.set(Mt.STATE,encodeURIComponent(t))},n.prototype.addNonce=function(t){this.parameters.set(Mt.NONCE,encodeURIComponent(t))},n.prototype.addCodeChallengeParams=function(t,e){if(ul.validateCodeChallengeParams(t,e),!t||!e)throw Mn.createInvalidCodeChallengeParamsError();this.parameters.set(Mt.CODE_CHALLENGE,encodeURIComponent(t)),this.parameters.set(Mt.CODE_CHALLENGE_METHOD,encodeURIComponent(e))},n.prototype.addAuthorizationCode=function(t){this.parameters.set(Mt.CODE,encodeURIComponent(t))},n.prototype.addDeviceCode=function(t){this.parameters.set(Mt.DEVICE_CODE,encodeURIComponent(t))},n.prototype.addRefreshToken=function(t){this.parameters.set(Mt.REFRESH_TOKEN,encodeURIComponent(t))},n.prototype.addCodeVerifier=function(t){this.parameters.set(Mt.CODE_VERIFIER,encodeURIComponent(t))},n.prototype.addClientSecret=function(t){this.parameters.set(Mt.CLIENT_SECRET,encodeURIComponent(t))},n.prototype.addClientAssertion=function(t){Ke.isEmpty(t)||this.parameters.set(Mt.CLIENT_ASSERTION,encodeURIComponent(t))},n.prototype.addClientAssertionType=function(t){Ke.isEmpty(t)||this.parameters.set(Mt.CLIENT_ASSERTION_TYPE,encodeURIComponent(t))},n.prototype.addOboAssertion=function(t){this.parameters.set(Mt.OBO_ASSERTION,encodeURIComponent(t))},n.prototype.addRequestTokenUse=function(t){this.parameters.set(Mt.REQUESTED_TOKEN_USE,encodeURIComponent(t))},n.prototype.addGrantType=function(t){this.parameters.set(Mt.GRANT_TYPE,encodeURIComponent(t))},n.prototype.addClientInfo=function(){this.parameters.set("client_info","1")},n.prototype.addExtraQueryParameters=function(t){var e=this;ul.sanitizeEQParams(t,this.parameters),Object.keys(t).forEach(function(i){e.parameters.set(i,t[i])})},n.prototype.addClientCapabilitiesToClaims=function(t,e){var i;if(t)try{i=JSON.parse(t)}catch{throw Mn.createInvalidClaimsRequestError()}else i={};return e&&e.length>0&&(i.hasOwnProperty(sl.ACCESS_TOKEN)||(i[sl.ACCESS_TOKEN]={}),i[sl.ACCESS_TOKEN][sl.XMS_CC]={values:e}),JSON.stringify(i)},n.prototype.addUsername=function(t){this.parameters.set(Vd.username,encodeURIComponent(t))},n.prototype.addPassword=function(t){this.parameters.set(Vd.password,encodeURIComponent(t))},n.prototype.addPopToken=function(t){Ke.isEmpty(t)||(this.parameters.set(Mt.TOKEN_TYPE,fn.POP),this.parameters.set(Mt.REQ_CNF,encodeURIComponent(t)))},n.prototype.addSshJwk=function(t){Ke.isEmpty(t)||(this.parameters.set(Mt.TOKEN_TYPE,fn.SSH),this.parameters.set(Mt.REQ_CNF,encodeURIComponent(t)))},n.prototype.addServerTelemetry=function(t){this.parameters.set(Mt.X_CLIENT_CURR_TELEM,t.generateCurrentRequestHeaderValue()),this.parameters.set(Mt.X_CLIENT_LAST_TELEM,t.generateLastRequestHeaderValue())},n.prototype.addThrottling=function(){this.parameters.set(Mt.X_MS_LIB_CAPABILITY,"retry-after, h429")},n.prototype.addLogoutHint=function(t){this.parameters.set(Mt.LOGOUT_HINT,encodeURIComponent(t))},n.prototype.createQueryString=function(){var t=new Array;return this.parameters.forEach(function(e,i){t.push(i+"="+e)}),t.join("&")},n}(),mG=function n(t,e,i,r,o){this.account=t||null,this.idToken=e||null,this.accessToken=i||null,this.refreshToken=r||null,this.appMetadata=o||null},Cm=(()=>(function(n){n.SW="sw",n.UHW="uhw"}(Cm||(Cm={})),Cm))(),Gc=function(){function n(t){this.cryptoUtils=t}return n.prototype.generateCnf=function(t){return At(this,void 0,void 0,function(){var e,i,r;return Tt(this,function(o){switch(o.label){case 0:return[4,this.generateKid(t)];case 1:return e=o.sent(),i=this.cryptoUtils.base64Encode(JSON.stringify(e)),r={kid:e.kid,reqCnfString:i},[4,this.cryptoUtils.hashString(i)];case 2:return[2,(r.reqCnfHash=o.sent(),r)]}})})},n.prototype.generateKid=function(t){return At(this,void 0,void 0,function(){return Tt(this,function(i){switch(i.label){case 0:return[4,this.cryptoUtils.getPublicKeyThumbprint(t)];case 1:return[2,{kid:i.sent(),xms_ksl:Cm.SW}]}})})},n.prototype.signPopToken=function(t,e,i){return At(this,void 0,void 0,function(){return Tt(this,function(r){return[2,this.signPayload(t,e,i)]})})},n.prototype.signPayload=function(t,e,i,r){return At(this,void 0,void 0,function(){var o,s,a,l,c,u;return Tt(this,function(d){switch(d.label){case 0:return o=i.resourceRequestMethod,a=i.shrClaims,l=i.shrNonce,c=(s=i.resourceRequestUri)?new nn(s):void 0,u=c?.getUrlComponents(),[4,this.cryptoUtils.signJwt(Gn({at:t,ts:Zr.nowSeconds(),m:o?.toUpperCase(),u:u?.HostNameAndPort,nonce:l||this.cryptoUtils.createNewGuid(),p:u?.AbsolutePath,q:u?.QueryString?[[],u.QueryString]:void 0,client_claims:a||void 0},r),e,i.correlationId)];case 1:return[2,d.sent()]}})})},n}(),gG=function(){function n(t,e){this.cache=t,this.hasChanged=e}return Object.defineProperty(n.prototype,"cacheHasChanged",{get:function(){return this.hasChanged},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"tokenCache",{get:function(){return this.cache},enumerable:!1,configurable:!0}),n}(),wm=function(){function n(t,e,i,r,o,s){this.clientId=t,this.cacheStorage=e,this.cryptoObj=i,this.logger=r,this.serializableCache=o,this.persistencePlugin=s}return n.prototype.validateServerAuthorizationCodeResponse=function(t,e,i){if(!t.state||!e)throw nt.createStateNotFoundError(t.state?"Cached State":"Server State");if(decodeURIComponent(t.state)!==decodeURIComponent(e))throw nt.createStateMismatchError();if(t.error||t.error_description||t.suberror)throw xo.isInteractionRequiredError(t.error,t.error_description,t.suberror)?new xo(t.error||ee.EMPTY_STRING,t.error_description,t.suberror):new cl(t.error||ee.EMPTY_STRING,t.error_description,t.suberror);t.client_info&&_m(t.client_info,i)},n.prototype.validateTokenResponse=function(t){if(t.error||t.error_description||t.suberror){if(xo.isInteractionRequiredError(t.error,t.error_description,t.suberror))throw new xo(t.error,t.error_description,t.suberror);throw new cl(t.error,t.error_codes+" - ["+t.timestamp+"]: "+t.error_description+" - Correlation ID: "+t.correlation_id+" - Trace ID: "+t.trace_id,t.suberror)}},n.prototype.handleServerTokenResponse=function(t,e,i,r,o,s,a,l){return At(this,void 0,void 0,function(){var c,u,d,h,m;return Tt(this,function(A){switch(A.label){case 0:if(t.id_token&&(c=new va(t.id_token||ee.EMPTY_STRING,this.cryptoObj),o&&!Ke.isEmpty(o.nonce)&&c.claims.nonce!==o.nonce))throw nt.createNonceMismatchError();this.homeAccountIdentifier=Fi.generateHomeAccountId(t.client_info||ee.EMPTY_STRING,e.authorityType,this.logger,this.cryptoObj,c),!!o&&!!o.state&&(u=js.parseRequestState(this.cryptoObj,o.state)),t.key_id=t.key_id||r.sshKid||void 0,d=this.generateCacheRecord(t,e,i,r,c,s,o),A.label=1;case 1:return A.trys.push([1,,5,8]),this.persistencePlugin&&this.serializableCache?(this.logger.verbose("Persistence enabled, calling beforeCacheAccess"),h=new gG(this.serializableCache,!0),[4,this.persistencePlugin.beforeCacheAccess(h)]):[3,3];case 2:A.sent(),A.label=3;case 3:return a&&!l&&d.account&&(m=d.account.generateAccountKey(),!this.cacheStorage.getAccount(m))?(this.logger.warning("Account used to refresh tokens not in persistence, refreshed tokens will not be stored in the cache"),[2,n.generateAuthenticationResult(this.cryptoObj,e,d,!1,r,c,u,void 0)]):[4,this.cacheStorage.saveCacheRecord(d)];case 4:return A.sent(),[3,8];case 5:return this.persistencePlugin&&this.serializableCache&&h?(this.logger.verbose("Persistence enabled, calling afterCacheAccess"),[4,this.persistencePlugin.afterCacheAccess(h)]):[3,7];case 6:A.sent(),A.label=7;case 7:return[7];case 8:return[2,n.generateAuthenticationResult(this.cryptoObj,e,d,!1,r,c,u,t.spa_code)]}})})},n.prototype.generateCacheRecord=function(t,e,i,r,o,s,a){var c,u,l=e.getPreferredCache();if(Ke.isEmpty(l))throw nt.createInvalidCacheEnvironmentError();!Ke.isEmpty(t.id_token)&&o&&(c=Wd.createIdTokenEntity(this.homeAccountIdentifier,l,t.id_token||ee.EMPTY_STRING,this.clientId,o.claims.tid||ee.EMPTY_STRING),u=this.generateAccountEntity(t,o,e,a));var d=null;if(!Ke.isEmpty(t.access_token)){var h=t.scope?fr.fromString(t.scope):new fr(r.scopes||[]),m=("string"==typeof t.expires_in?parseInt(t.expires_in,10):t.expires_in)||0,y=("string"==typeof t.ext_expires_in?parseInt(t.ext_expires_in,10):t.ext_expires_in)||0,A=("string"==typeof t.refresh_in?parseInt(t.refresh_in,10):t.refresh_in)||void 0,U=i+m,te=U+y,Ee=A&&A>0?i+A:void 0;d=$d.createAccessTokenEntity(this.homeAccountIdentifier,l,t.access_token||ee.EMPTY_STRING,this.clientId,o?o.claims.tid||ee.EMPTY_STRING:e.tenant,h.printScopes(),U,te,this.cryptoObj,Ee,t.token_type,s,t.key_id,r.claims,r.requestedClaimsHash)}var ne=null;Ke.isEmpty(t.refresh_token)||(ne=rC.createRefreshTokenEntity(this.homeAccountIdentifier,l,t.refresh_token||ee.EMPTY_STRING,this.clientId,t.foci,s));var Me=null;return Ke.isEmpty(t.foci)||(Me=oC.createAppMetadataEntity(this.clientId,l,t.foci)),new mG(u,c,d,ne,Me)},n.prototype.generateAccountEntity=function(t,e,i,r){var s=r?r.cloud_graph_host_name:ee.EMPTY_STRING,a=r?r.msgraph_host:ee.EMPTY_STRING;if(i.authorityType===es.Adfs)return this.logger.verbose("Authority type is ADFS, creating ADFS account"),Fi.createGenericAccount(this.homeAccountIdentifier,e,i,s,a);if(Ke.isEmpty(t.client_info)&&"AAD"===i.protocolMode)throw nt.createClientInfoEmptyError();return t.client_info?Fi.createAccount(t.client_info,this.homeAccountIdentifier,e,i,s,a):Fi.createGenericAccount(this.homeAccountIdentifier,e,i,s,a)},n.generateAuthenticationResult=function(t,e,i,r,o,s,a,l){var c,u,d;return At(this,void 0,void 0,function(){var h,m,y,A,U,te,Ee,ne,Me;return Tt(this,function(rn){switch(rn.label){case 0:if(h=ee.EMPTY_STRING,m=[],y=null,U=ee.EMPTY_STRING,!i.accessToken)return[3,4];if(i.accessToken.tokenType!==fn.POP)return[3,2];if(te=new Gc(t),ne=(Ee=i.accessToken).secret,!(Me=Ee.keyId))throw nt.createKeyIdMissingError();return[4,te.signPopToken(ne,Me,o)];case 1:return h=rn.sent(),[3,3];case 2:h=i.accessToken.secret,rn.label=3;case 3:m=fr.fromString(i.accessToken.target).asArray(),y=new Date(1e3*Number(i.accessToken.expiresOn)),A=new Date(1e3*Number(i.accessToken.extendedExpiresOn)),rn.label=4;case 4:return i.appMetadata&&(U="1"===i.appMetadata.familyId?"1":ee.EMPTY_STRING),[2,{authority:e.canonicalAuthority,uniqueId:s?.claims.oid||s?.claims.sub||ee.EMPTY_STRING,tenantId:s?.claims.tid||ee.EMPTY_STRING,scopes:m,account:i.account?i.account.getAccountInfo():null,idToken:s?s.rawToken:ee.EMPTY_STRING,idTokenClaims:s?s.claims:{},accessToken:h,fromCache:r,expiresOn:y,correlationId:o.correlationId,extExpiresOn:A,familyId:U,tokenType:(null===(c=i.accessToken)||void 0===c?void 0:c.tokenType)||ee.EMPTY_STRING,state:a?a.userRequestState:ee.EMPTY_STRING,cloudGraphHostName:(null===(u=i.account)||void 0===u?void 0:u.cloudGraphHostName)||ee.EMPTY_STRING,msGraphHost:(null===(d=i.account)||void 0===d?void 0:d.msGraphHost)||ee.EMPTY_STRING,code:l,fromNativeBroker:!1}]}})})},n}(),OI=function(n){function t(e){var i=n.call(this,e)||this;return i.includeRedirectUri=!0,i}return dr(t,n),t.prototype.getAuthCodeUrl=function(e){return At(this,void 0,void 0,function(){var i;return Tt(this,function(r){switch(r.label){case 0:return[4,this.createAuthCodeUrlQueryString(e)];case 1:return i=r.sent(),[2,nn.appendQueryString(this.authority.authorizationEndpoint,i)]}})})},t.prototype.acquireToken=function(e,i){return At(this,void 0,void 0,function(){var r,o,s;return Tt(this,function(a){switch(a.label){case 0:if(this.logger.info("in acquireToken call"),!e||Ke.isEmpty(e.code))throw nt.createTokenRequestCannotBeMadeError();return r=Zr.nowSeconds(),[4,this.executeTokenRequest(this.authority,e)];case 1:return o=a.sent(),(s=new wm(this.config.authOptions.clientId,this.cacheManager,this.cryptoUtils,this.logger,this.config.serializableCache,this.config.persistencePlugin)).validateTokenResponse(o.body),[4,s.handleServerTokenResponse(o.body,this.authority,r,e,i)];case 2:return[2,a.sent()]}})})},t.prototype.handleFragmentResponse=function(e,i){var r=new wm(this.config.authOptions.clientId,this.cacheManager,this.cryptoUtils,this.logger,null,null),o=new nn(e),s=nn.getDeserializedHash(o.getHash());if(r.validateServerAuthorizationCodeResponse(s,i,this.cryptoUtils),!s.code)throw nt.createNoAuthCodeInServerResponseError();return Gn(Gn({},s),{code:s.code})},t.prototype.getLogoutUri=function(e){if(!e)throw Mn.createEmptyLogoutRequestError();var i=this.createLogoutUrlQueryString(e);return nn.appendQueryString(this.authority.endSessionEndpoint,i)},t.prototype.executeTokenRequest=function(e,i){return At(this,void 0,void 0,function(){var r,o,s,a,l,c,u;return Tt(this,function(d){switch(d.label){case 0:return r={clientId:this.config.authOptions.clientId,authority:e.canonicalAuthority,scopes:i.scopes,claims:i.claims,authenticationScheme:i.authenticationScheme,resourceRequestMethod:i.resourceRequestMethod,resourceRequestUri:i.resourceRequestUri,shrClaims:i.shrClaims,sshKid:i.sshKid},[4,this.createTokenRequestBody(i)];case 1:if(o=d.sent(),s=this.createTokenQueryParameters(i),a=void 0,i.clientInfo)try{l=_m(i.clientInfo,this.cryptoUtils),a={credential:""+l.uid+hr.CLIENT_INFO_SEPARATOR+l.utid,type:mr.HOME_ACCOUNT_ID}}catch(h){this.logger.verbose("Could not parse client info for CCS Header: "+h)}return c=this.createTokenRequestHeaders(a||i.ccsCredential),u=Ke.isEmpty(s)?e.tokenEndpoint:e.tokenEndpoint+"?"+s,[2,this.executePostToTokenEndpoint(u,o,c,r)]}})})},t.prototype.createTokenQueryParameters=function(e){var i=new zc;return e.tokenQueryParameters&&i.addExtraQueryParameters(e.tokenQueryParameters),i.createQueryString()},t.prototype.createTokenRequestBody=function(e){return At(this,void 0,void 0,function(){var i,r,s,a,l,c,u;return Tt(this,function(d){switch(d.label){case 0:return(i=new zc).addClientId(this.config.authOptions.clientId),this.includeRedirectUri?i.addRedirectUri(e.redirectUri):ul.validateRedirectUri(e.redirectUri),i.addScopes(e.scopes),i.addAuthorizationCode(e.code),i.addLibraryInfo(this.config.libraryInfo),i.addApplicationTelemetry(this.config.telemetry.application),i.addThrottling(),this.serverTelemetryManager&&i.addServerTelemetry(this.serverTelemetryManager),e.codeVerifier&&i.addCodeVerifier(e.codeVerifier),this.config.clientCredentials.clientSecret&&i.addClientSecret(this.config.clientCredentials.clientSecret),this.config.clientCredentials.clientAssertion&&(i.addClientAssertion((r=this.config.clientCredentials.clientAssertion).assertion),i.addClientAssertionType(r.assertionType)),i.addGrantType(Bd.AUTHORIZATION_CODE_GRANT),i.addClientInfo(),e.authenticationScheme!==fn.POP?[3,2]:[4,new Gc(this.cryptoUtils).generateCnf(e)];case 1:return s=d.sent(),i.addPopToken(s.reqCnfString),[3,3];case 2:if(e.authenticationScheme===fn.SSH){if(!e.sshJwk)throw Mn.createMissingSshJwkError();i.addSshJwk(e.sshJwk)}d.label=3;case 3:if(a=e.correlationId||this.config.cryptoInterface.createNewGuid(),i.addCorrelationId(a),(!Ke.isEmptyObj(e.claims)||this.config.authOptions.clientCapabilities&&this.config.authOptions.clientCapabilities.length>0)&&i.addClaims(e.claims,this.config.authOptions.clientCapabilities),l=void 0,e.clientInfo)try{c=_m(e.clientInfo,this.cryptoUtils),l={credential:""+c.uid+hr.CLIENT_INFO_SEPARATOR+c.utid,type:mr.HOME_ACCOUNT_ID}}catch(h){this.logger.verbose("Could not parse client info for CCS Header: "+h)}else l=e.ccsCredential;if(this.config.systemOptions.preventCorsPreflight&&l)switch(l.type){case mr.HOME_ACCOUNT_ID:try{c=Uc(l.credential),i.addCcsOid(c)}catch(h){this.logger.verbose("Could not parse home account ID for CCS Header: "+h)}break;case mr.UPN:i.addCcsUpn(l.credential)}return e.tokenBodyParameters&&i.addExtraQueryParameters(e.tokenBodyParameters),e.enableSpaAuthorizationCode&&(!e.tokenBodyParameters||!e.tokenBodyParameters[Mt.RETURN_SPA_CODE])&&i.addExtraQueryParameters(((u={})[Mt.RETURN_SPA_CODE]="1",u)),[2,i.createQueryString()]}})})},t.prototype.createAuthCodeUrlQueryString=function(e){return At(this,void 0,void 0,function(){var i,r,o,s,a,l,u;return Tt(this,function(d){switch(d.label){case 0:if((i=new zc).addClientId(this.config.authOptions.clientId),r=am(e.scopes||[],e.extraScopesToConsent||[]),i.addScopes(r),i.addRedirectUri(e.redirectUri),o=e.correlationId||this.config.cryptoInterface.createNewGuid(),i.addCorrelationId(o),i.addResponseMode(e.responseMode),i.addResponseTypeCode(),i.addLibraryInfo(this.config.libraryInfo),i.addApplicationTelemetry(this.config.telemetry.application),i.addClientInfo(),e.codeChallenge&&e.codeChallengeMethod&&i.addCodeChallengeParams(e.codeChallenge,e.codeChallengeMethod),e.prompt&&i.addPrompt(e.prompt),e.domainHint&&i.addDomainHint(e.domainHint),e.prompt!==Li.SELECT_ACCOUNT)if(e.sid&&e.prompt===Li.NONE)this.logger.verbose("createAuthCodeUrlQueryString: Prompt is none, adding sid from request"),i.addSid(e.sid);else if(e.account){if(s=this.extractAccountSid(e.account),a=this.extractLoginHint(e.account)){this.logger.verbose("createAuthCodeUrlQueryString: login_hint claim present on account"),i.addLoginHint(a);try{l=Uc(e.account.homeAccountId),i.addCcsOid(l)}catch{this.logger.verbose("createAuthCodeUrlQueryString: Could not parse home account ID for CCS Header")}}else if(s&&e.prompt===Li.NONE){this.logger.verbose("createAuthCodeUrlQueryString: Prompt is none, adding sid from account"),i.addSid(s);try{l=Uc(e.account.homeAccountId),i.addCcsOid(l)}catch{this.logger.verbose("createAuthCodeUrlQueryString: Could not parse home account ID for CCS Header")}}else if(e.loginHint)this.logger.verbose("createAuthCodeUrlQueryString: Adding login_hint from request"),i.addLoginHint(e.loginHint),i.addCcsUpn(e.loginHint);else if(e.account.username){this.logger.verbose("createAuthCodeUrlQueryString: Adding login_hint from account"),i.addLoginHint(e.account.username);try{l=Uc(e.account.homeAccountId),i.addCcsOid(l)}catch{this.logger.verbose("createAuthCodeUrlQueryString: Could not parse home account ID for CCS Header")}}}else e.loginHint&&(this.logger.verbose("createAuthCodeUrlQueryString: No account, adding login_hint from request"),i.addLoginHint(e.loginHint),i.addCcsUpn(e.loginHint));else this.logger.verbose("createAuthCodeUrlQueryString: Prompt is select_account, ignoring account hints");return e.nonce&&i.addNonce(e.nonce),e.state&&i.addState(e.state),(!Ke.isEmpty(e.claims)||this.config.authOptions.clientCapabilities&&this.config.authOptions.clientCapabilities.length>0)&&i.addClaims(e.claims,this.config.authOptions.clientCapabilities),e.extraQueryParameters&&i.addExtraQueryParameters(e.extraQueryParameters),e.nativeBroker?(i.addNativeBroker(),e.authenticationScheme!==fn.POP?[3,2]:[4,new Gc(this.cryptoUtils).generateCnf(e)]):[3,2];case 1:u=d.sent(),i.addPopToken(u.reqCnfHash),d.label=2;case 2:return[2,i.createQueryString()]}})})},t.prototype.createLogoutUrlQueryString=function(e){var i=new zc;return e.postLogoutRedirectUri&&i.addPostLogoutRedirectUri(e.postLogoutRedirectUri),e.correlationId&&i.addCorrelationId(e.correlationId),e.idTokenHint&&i.addIdTokenHint(e.idTokenHint),e.state&&i.addState(e.state),e.logoutHint&&i.addLogoutHint(e.logoutHint),e.extraQueryParameters&&i.addExtraQueryParameters(e.extraQueryParameters),i.createQueryString()},t.prototype.extractAccountSid=function(e){var i;return(null===(i=e.idTokenClaims)||void 0===i?void 0:i.sid)||null},t.prototype.extractLoginHint=function(e){var i;return(null===(i=e.idTokenClaims)||void 0===i?void 0:i.login_hint)||null},t}(uC);function _G(n){return n.hasOwnProperty("authorization_endpoint")&&n.hasOwnProperty("token_endpoint")&&n.hasOwnProperty("issuer")&&n.hasOwnProperty("jwks_uri")}var LI={"https://login.microsoftonline.com/common/":{token_endpoint:"https://login.microsoftonline.com/common/oauth2/v2.0/token",token_endpoint_auth_methods_supported:["client_secret_post","private_key_jwt","client_secret_basic"],jwks_uri:"https://login.microsoftonline.com/common/discovery/v2.0/keys",response_modes_supported:["query","fragment","form_post"],subject_types_supported:["pairwise"],id_token_signing_alg_values_supported:["RS256"],response_types_supported:["code","id_token","code id_token","id_token token"],scopes_supported:["openid","profile","email","offline_access"],issuer:"https://login.microsoftonline.com/{tenantid}/v2.0",request_uri_parameter_supported:!1,userinfo_endpoint:"https://graph.microsoft.com/oidc/userinfo",authorization_endpoint:"https://login.microsoftonline.com/common/oauth2/v2.0/authorize",device_authorization_endpoint:"https://login.microsoftonline.com/common/oauth2/v2.0/devicecode",http_logout_supported:!0,frontchannel_logout_supported:!0,end_session_endpoint:"https://login.microsoftonline.com/common/oauth2/v2.0/logout",claims_supported:["sub","iss","cloud_instance_name","cloud_instance_host_name","cloud_graph_host_name","msgraph_host","aud","exp","iat","auth_time","acr","nonce","preferred_username","name","tid","ver","at_hash","c_hash","email"],kerberos_endpoint:"https://login.microsoftonline.com/common/kerberos",tenant_region_scope:null,cloud_instance_name:"microsoftonline.com",cloud_graph_host_name:"graph.windows.net",msgraph_host:"graph.microsoft.com",rbac_url:"https://pas.windows.net"},"https://login.chinacloudapi.cn/common/":{token_endpoint:"https://login.chinacloudapi.cn/common/oauth2/v2.0/token",token_endpoint_auth_methods_supported:["client_secret_post","private_key_jwt","client_secret_basic"],jwks_uri:"https://login.chinacloudapi.cn/common/discovery/v2.0/keys",response_modes_supported:["query","fragment","form_post"],subject_types_supported:["pairwise"],id_token_signing_alg_values_supported:["RS256"],response_types_supported:["code","id_token","code id_token","id_token token"],scopes_supported:["openid","profile","email","offline_access"],issuer:"https://login.partner.microsoftonline.cn/{tenantid}/v2.0",request_uri_parameter_supported:!1,userinfo_endpoint:"https://microsoftgraph.chinacloudapi.cn/oidc/userinfo",authorization_endpoint:"https://login.chinacloudapi.cn/common/oauth2/v2.0/authorize",device_authorization_endpoint:"https://login.chinacloudapi.cn/common/oauth2/v2.0/devicecode",http_logout_supported:!0,frontchannel_logout_supported:!0,end_session_endpoint:"https://login.chinacloudapi.cn/common/oauth2/v2.0/logout",claims_supported:["sub","iss","cloud_instance_name","cloud_instance_host_name","cloud_graph_host_name","msgraph_host","aud","exp","iat","auth_time","acr","nonce","preferred_username","name","tid","ver","at_hash","c_hash","email"],kerberos_endpoint:"https://login.chinacloudapi.cn/common/kerberos",tenant_region_scope:null,cloud_instance_name:"partner.microsoftonline.cn",cloud_graph_host_name:"graph.chinacloudapi.cn",msgraph_host:"microsoftgraph.chinacloudapi.cn",rbac_url:"https://pas.chinacloudapi.cn"},"https://login.microsoftonline.us/common/":{token_endpoint:"https://login.microsoftonline.us/common/oauth2/v2.0/token",token_endpoint_auth_methods_supported:["client_secret_post","private_key_jwt","client_secret_basic"],jwks_uri:"https://login.microsoftonline.us/common/discovery/v2.0/keys",response_modes_supported:["query","fragment","form_post"],subject_types_supported:["pairwise"],id_token_signing_alg_values_supported:["RS256"],response_types_supported:["code","id_token","code id_token","id_token token"],scopes_supported:["openid","profile","email","offline_access"],issuer:"https://login.microsoftonline.us/{tenantid}/v2.0",request_uri_parameter_supported:!1,userinfo_endpoint:"https://graph.microsoft.com/oidc/userinfo",authorization_endpoint:"https://login.microsoftonline.us/common/oauth2/v2.0/authorize",device_authorization_endpoint:"https://login.microsoftonline.us/common/oauth2/v2.0/devicecode",http_logout_supported:!0,frontchannel_logout_supported:!0,end_session_endpoint:"https://login.microsoftonline.us/common/oauth2/v2.0/logout",claims_supported:["sub","iss","cloud_instance_name","cloud_instance_host_name","cloud_graph_host_name","msgraph_host","aud","exp","iat","auth_time","acr","nonce","preferred_username","name","tid","ver","at_hash","c_hash","email"],kerberos_endpoint:"https://login.microsoftonline.us/common/kerberos",tenant_region_scope:null,cloud_instance_name:"microsoftonline.us",cloud_graph_host_name:"graph.windows.net",msgraph_host:"graph.microsoft.com",rbac_url:"https://pasff.usgovcloudapi.net"},"https://login.microsoftonline.com/consumers/":{token_endpoint:"https://login.microsoftonline.com/consumers/oauth2/v2.0/token",token_endpoint_auth_methods_supported:["client_secret_post","private_key_jwt","client_secret_basic"],jwks_uri:"https://login.microsoftonline.com/consumers/discovery/v2.0/keys",response_modes_supported:["query","fragment","form_post"],subject_types_supported:["pairwise"],id_token_signing_alg_values_supported:["RS256"],response_types_supported:["code","id_token","code id_token","id_token token"],scopes_supported:["openid","profile","email","offline_access"],issuer:"https://login.microsoftonline.com/9188040d-6c67-4c5b-b112-36a304b66dad/v2.0",request_uri_parameter_supported:!1,userinfo_endpoint:"https://graph.microsoft.com/oidc/userinfo",authorization_endpoint:"https://login.microsoftonline.com/consumers/oauth2/v2.0/authorize",device_authorization_endpoint:"https://login.microsoftonline.com/consumers/oauth2/v2.0/devicecode",http_logout_supported:!0,frontchannel_logout_supported:!0,end_session_endpoint:"https://login.microsoftonline.com/consumers/oauth2/v2.0/logout",claims_supported:["sub","iss","cloud_instance_name","cloud_instance_host_name","cloud_graph_host_name","msgraph_host","aud","exp","iat","auth_time","acr","nonce","preferred_username","name","tid","ver","at_hash","c_hash","email"],kerberos_endpoint:"https://login.microsoftonline.com/consumers/kerberos",tenant_region_scope:null,cloud_instance_name:"microsoftonline.com",cloud_graph_host_name:"graph.windows.net",msgraph_host:"graph.microsoft.com",rbac_url:"https://pas.windows.net"},"https://login.chinacloudapi.cn/consumers/":{token_endpoint:"https://login.chinacloudapi.cn/consumers/oauth2/v2.0/token",token_endpoint_auth_methods_supported:["client_secret_post","private_key_jwt","client_secret_basic"],jwks_uri:"https://login.chinacloudapi.cn/consumers/discovery/v2.0/keys",response_modes_supported:["query","fragment","form_post"],subject_types_supported:["pairwise"],id_token_signing_alg_values_supported:["RS256"],response_types_supported:["code","id_token","code id_token","id_token token"],scopes_supported:["openid","profile","email","offline_access"],issuer:"https://login.partner.microsoftonline.cn/9188040d-6c67-4c5b-b112-36a304b66dad/v2.0",request_uri_parameter_supported:!1,userinfo_endpoint:"https://microsoftgraph.chinacloudapi.cn/oidc/userinfo",authorization_endpoint:"https://login.chinacloudapi.cn/consumers/oauth2/v2.0/authorize",device_authorization_endpoint:"https://login.chinacloudapi.cn/consumers/oauth2/v2.0/devicecode",http_logout_supported:!0,frontchannel_logout_supported:!0,end_session_endpoint:"https://login.chinacloudapi.cn/consumers/oauth2/v2.0/logout",claims_supported:["sub","iss","cloud_instance_name","cloud_instance_host_name","cloud_graph_host_name","msgraph_host","aud","exp","iat","auth_time","acr","nonce","preferred_username","name","tid","ver","at_hash","c_hash","email"],kerberos_endpoint:"https://login.chinacloudapi.cn/consumers/kerberos",tenant_region_scope:null,cloud_instance_name:"partner.microsoftonline.cn",cloud_graph_host_name:"graph.chinacloudapi.cn",msgraph_host:"microsoftgraph.chinacloudapi.cn",rbac_url:"https://pas.chinacloudapi.cn"},"https://login.microsoftonline.us/consumers/":{token_endpoint:"https://login.microsoftonline.us/consumers/oauth2/v2.0/token",token_endpoint_auth_methods_supported:["client_secret_post","private_key_jwt","client_secret_basic"],jwks_uri:"https://login.microsoftonline.us/consumers/discovery/v2.0/keys",response_modes_supported:["query","fragment","form_post"],subject_types_supported:["pairwise"],id_token_signing_alg_values_supported:["RS256"],response_types_supported:["code","id_token","code id_token","id_token token"],scopes_supported:["openid","profile","email","offline_access"],issuer:"https://login.microsoftonline.us/9188040d-6c67-4c5b-b112-36a304b66dad/v2.0",request_uri_parameter_supported:!1,userinfo_endpoint:"https://graph.microsoft.com/oidc/userinfo",authorization_endpoint:"https://login.microsoftonline.us/consumers/oauth2/v2.0/authorize",device_authorization_endpoint:"https://login.microsoftonline.us/consumers/oauth2/v2.0/devicecode",http_logout_supported:!0,frontchannel_logout_supported:!0,end_session_endpoint:"https://login.microsoftonline.us/consumers/oauth2/v2.0/logout",claims_supported:["sub","iss","cloud_instance_name","cloud_instance_host_name","cloud_graph_host_name","msgraph_host","aud","exp","iat","auth_time","acr","nonce","preferred_username","name","tid","ver","at_hash","c_hash","email"],kerberos_endpoint:"https://login.microsoftonline.us/consumers/kerberos",tenant_region_scope:null,cloud_instance_name:"microsoftonline.us",cloud_graph_host_name:"graph.windows.net",msgraph_host:"graph.microsoft.com",rbac_url:"https://pasff.usgovcloudapi.net"},"https://login.microsoftonline.com/organizations/":{token_endpoint:"https://login.microsoftonline.com/organizations/oauth2/v2.0/token",token_endpoint_auth_methods_supported:["client_secret_post","private_key_jwt","client_secret_basic"],jwks_uri:"https://login.microsoftonline.com/organizations/discovery/v2.0/keys",response_modes_supported:["query","fragment","form_post"],subject_types_supported:["pairwise"],id_token_signing_alg_values_supported:["RS256"],response_types_supported:["code","id_token","code id_token","id_token token"],scopes_supported:["openid","profile","email","offline_access"],issuer:"https://login.microsoftonline.com/{tenantid}/v2.0",request_uri_parameter_supported:!1,userinfo_endpoint:"https://graph.microsoft.com/oidc/userinfo",authorization_endpoint:"https://login.microsoftonline.com/organizations/oauth2/v2.0/authorize",device_authorization_endpoint:"https://login.microsoftonline.com/organizations/oauth2/v2.0/devicecode",http_logout_supported:!0,frontchannel_logout_supported:!0,end_session_endpoint:"https://login.microsoftonline.com/organizations/oauth2/v2.0/logout",claims_supported:["sub","iss","cloud_instance_name","cloud_instance_host_name","cloud_graph_host_name","msgraph_host","aud","exp","iat","auth_time","acr","nonce","preferred_username","name","tid","ver","at_hash","c_hash","email"],kerberos_endpoint:"https://login.microsoftonline.com/organizations/kerberos",tenant_region_scope:null,cloud_instance_name:"microsoftonline.com",cloud_graph_host_name:"graph.windows.net",msgraph_host:"graph.microsoft.com",rbac_url:"https://pas.windows.net"},"https://login.chinacloudapi.cn/organizations/":{token_endpoint:"https://login.chinacloudapi.cn/organizations/oauth2/v2.0/token",token_endpoint_auth_methods_supported:["client_secret_post","private_key_jwt","client_secret_basic"],jwks_uri:"https://login.chinacloudapi.cn/organizations/discovery/v2.0/keys",response_modes_supported:["query","fragment","form_post"],subject_types_supported:["pairwise"],id_token_signing_alg_values_supported:["RS256"],response_types_supported:["code","id_token","code id_token","id_token token"],scopes_supported:["openid","profile","email","offline_access"],issuer:"https://login.partner.microsoftonline.cn/{tenantid}/v2.0",request_uri_parameter_supported:!1,userinfo_endpoint:"https://microsoftgraph.chinacloudapi.cn/oidc/userinfo",authorization_endpoint:"https://login.chinacloudapi.cn/organizations/oauth2/v2.0/authorize",device_authorization_endpoint:"https://login.chinacloudapi.cn/organizations/oauth2/v2.0/devicecode",http_logout_supported:!0,frontchannel_logout_supported:!0,end_session_endpoint:"https://login.chinacloudapi.cn/organizations/oauth2/v2.0/logout",claims_supported:["sub","iss","cloud_instance_name","cloud_instance_host_name","cloud_graph_host_name","msgraph_host","aud","exp","iat","auth_time","acr","nonce","preferred_username","name","tid","ver","at_hash","c_hash","email"],kerberos_endpoint:"https://login.chinacloudapi.cn/organizations/kerberos",tenant_region_scope:null,cloud_instance_name:"partner.microsoftonline.cn",cloud_graph_host_name:"graph.chinacloudapi.cn",msgraph_host:"microsoftgraph.chinacloudapi.cn",rbac_url:"https://pas.chinacloudapi.cn"},"https://login.microsoftonline.us/organizations/":{token_endpoint:"https://login.microsoftonline.us/organizations/oauth2/v2.0/token",token_endpoint_auth_methods_supported:["client_secret_post","private_key_jwt","client_secret_basic"],jwks_uri:"https://login.microsoftonline.us/organizations/discovery/v2.0/keys",response_modes_supported:["query","fragment","form_post"],subject_types_supported:["pairwise"],id_token_signing_alg_values_supported:["RS256"],response_types_supported:["code","id_token","code id_token","id_token token"],scopes_supported:["openid","profile","email","offline_access"],issuer:"https://login.microsoftonline.us/{tenantid}/v2.0",request_uri_parameter_supported:!1,userinfo_endpoint:"https://graph.microsoft.com/oidc/userinfo",authorization_endpoint:"https://login.microsoftonline.us/organizations/oauth2/v2.0/authorize",device_authorization_endpoint:"https://login.microsoftonline.us/organizations/oauth2/v2.0/devicecode",http_logout_supported:!0,frontchannel_logout_supported:!0,end_session_endpoint:"https://login.microsoftonline.us/organizations/oauth2/v2.0/logout",claims_supported:["sub","iss","cloud_instance_name","cloud_instance_host_name","cloud_graph_host_name","msgraph_host","aud","exp","iat","auth_time","acr","nonce","preferred_username","name","tid","ver","at_hash","c_hash","email"],kerberos_endpoint:"https://login.microsoftonline.us/organizations/kerberos",tenant_region_scope:null,cloud_instance_name:"microsoftonline.us",cloud_graph_host_name:"graph.windows.net",msgraph_host:"graph.microsoft.com",rbac_url:"https://pasff.usgovcloudapi.net"}},NI={"https://login.microsoftonline.com/common/":{tenant_discovery_endpoint:"https://login.microsoftonline.com/common/v2.0/.well-known/openid-configuration","api-version":"1.1",metadata:[{preferred_network:"login.microsoftonline.com",preferred_cache:"login.windows.net",aliases:["login.microsoftonline.com","login.windows.net","login.microsoft.com","sts.windows.net"]},{preferred_network:"login.partner.microsoftonline.cn",preferred_cache:"login.partner.microsoftonline.cn",aliases:["login.partner.microsoftonline.cn","login.chinacloudapi.cn"]},{preferred_network:"login.microsoftonline.de",preferred_cache:"login.microsoftonline.de",aliases:["login.microsoftonline.de"]},{preferred_network:"login.microsoftonline.us",preferred_cache:"login.microsoftonline.us",aliases:["login.microsoftonline.us","login.usgovcloudapi.net"]},{preferred_network:"login-us.microsoftonline.com",preferred_cache:"login-us.microsoftonline.com",aliases:["login-us.microsoftonline.com"]}]},"https://login.chinacloudapi.cn/common/":{tenant_discovery_endpoint:"https://login.chinacloudapi.cn/common/v2.0/.well-known/openid-configuration","api-version":"1.1",metadata:[{preferred_network:"login.microsoftonline.com",preferred_cache:"login.windows.net",aliases:["login.microsoftonline.com","login.windows.net","login.microsoft.com","sts.windows.net"]},{preferred_network:"login.partner.microsoftonline.cn",preferred_cache:"login.partner.microsoftonline.cn",aliases:["login.partner.microsoftonline.cn","login.chinacloudapi.cn"]},{preferred_network:"login.microsoftonline.de",preferred_cache:"login.microsoftonline.de",aliases:["login.microsoftonline.de"]},{preferred_network:"login.microsoftonline.us",preferred_cache:"login.microsoftonline.us",aliases:["login.microsoftonline.us","login.usgovcloudapi.net"]},{preferred_network:"login-us.microsoftonline.com",preferred_cache:"login-us.microsoftonline.com",aliases:["login-us.microsoftonline.com"]}]},"https://login.microsoftonline.us/common/":{tenant_discovery_endpoint:"https://login.microsoftonline.us/common/v2.0/.well-known/openid-configuration","api-version":"1.1",metadata:[{preferred_network:"login.microsoftonline.com",preferred_cache:"login.windows.net",aliases:["login.microsoftonline.com","login.windows.net","login.microsoft.com","sts.windows.net"]},{preferred_network:"login.partner.microsoftonline.cn",preferred_cache:"login.partner.microsoftonline.cn",aliases:["login.partner.microsoftonline.cn","login.chinacloudapi.cn"]},{preferred_network:"login.microsoftonline.de",preferred_cache:"login.microsoftonline.de",aliases:["login.microsoftonline.de"]},{preferred_network:"login.microsoftonline.us",preferred_cache:"login.microsoftonline.us",aliases:["login.microsoftonline.us","login.usgovcloudapi.net"]},{preferred_network:"login-us.microsoftonline.com",preferred_cache:"login-us.microsoftonline.com",aliases:["login-us.microsoftonline.com"]}]},"https://login.microsoftonline.com/consumers/":{tenant_discovery_endpoint:"https://login.microsoftonline.com/consumers/v2.0/.well-known/openid-configuration","api-version":"1.1",metadata:[{preferred_network:"login.microsoftonline.com",preferred_cache:"login.windows.net",aliases:["login.microsoftonline.com","login.windows.net","login.microsoft.com","sts.windows.net"]},{preferred_network:"login.partner.microsoftonline.cn",preferred_cache:"login.partner.microsoftonline.cn",aliases:["login.partner.microsoftonline.cn","login.chinacloudapi.cn"]},{preferred_network:"login.microsoftonline.de",preferred_cache:"login.microsoftonline.de",aliases:["login.microsoftonline.de"]},{preferred_network:"login.microsoftonline.us",preferred_cache:"login.microsoftonline.us",aliases:["login.microsoftonline.us","login.usgovcloudapi.net"]},{preferred_network:"login-us.microsoftonline.com",preferred_cache:"login-us.microsoftonline.com",aliases:["login-us.microsoftonline.com"]}]},"https://login.chinacloudapi.cn/consumers/":{tenant_discovery_endpoint:"https://login.chinacloudapi.cn/consumers/v2.0/.well-known/openid-configuration","api-version":"1.1",metadata:[{preferred_network:"login.microsoftonline.com",preferred_cache:"login.windows.net",aliases:["login.microsoftonline.com","login.windows.net","login.microsoft.com","sts.windows.net"]},{preferred_network:"login.partner.microsoftonline.cn",preferred_cache:"login.partner.microsoftonline.cn",aliases:["login.partner.microsoftonline.cn","login.chinacloudapi.cn"]},{preferred_network:"login.microsoftonline.de",preferred_cache:"login.microsoftonline.de",aliases:["login.microsoftonline.de"]},{preferred_network:"login.microsoftonline.us",preferred_cache:"login.microsoftonline.us",aliases:["login.microsoftonline.us","login.usgovcloudapi.net"]},{preferred_network:"login-us.microsoftonline.com",preferred_cache:"login-us.microsoftonline.com",aliases:["login-us.microsoftonline.com"]}]},"https://login.microsoftonline.us/consumers/":{tenant_discovery_endpoint:"https://login.microsoftonline.us/consumers/v2.0/.well-known/openid-configuration","api-version":"1.1",metadata:[{preferred_network:"login.microsoftonline.com",preferred_cache:"login.windows.net",aliases:["login.microsoftonline.com","login.windows.net","login.microsoft.com","sts.windows.net"]},{preferred_network:"login.partner.microsoftonline.cn",preferred_cache:"login.partner.microsoftonline.cn",aliases:["login.partner.microsoftonline.cn","login.chinacloudapi.cn"]},{preferred_network:"login.microsoftonline.de",preferred_cache:"login.microsoftonline.de",aliases:["login.microsoftonline.de"]},{preferred_network:"login.microsoftonline.us",preferred_cache:"login.microsoftonline.us",aliases:["login.microsoftonline.us","login.usgovcloudapi.net"]},{preferred_network:"login-us.microsoftonline.com",preferred_cache:"login-us.microsoftonline.com",aliases:["login-us.microsoftonline.com"]}]},"https://login.microsoftonline.com/organizations/":{tenant_discovery_endpoint:"https://login.microsoftonline.com/organizations/v2.0/.well-known/openid-configuration","api-version":"1.1",metadata:[{preferred_network:"login.microsoftonline.com",preferred_cache:"login.windows.net",aliases:["login.microsoftonline.com","login.windows.net","login.microsoft.com","sts.windows.net"]},{preferred_network:"login.partner.microsoftonline.cn",preferred_cache:"login.partner.microsoftonline.cn",aliases:["login.partner.microsoftonline.cn","login.chinacloudapi.cn"]},{preferred_network:"login.microsoftonline.de",preferred_cache:"login.microsoftonline.de",aliases:["login.microsoftonline.de"]},{preferred_network:"login.microsoftonline.us",preferred_cache:"login.microsoftonline.us",aliases:["login.microsoftonline.us","login.usgovcloudapi.net"]},{preferred_network:"login-us.microsoftonline.com",preferred_cache:"login-us.microsoftonline.com",aliases:["login-us.microsoftonline.com"]}]},"https://login.chinacloudapi.cn/organizations/":{tenant_discovery_endpoint:"https://login.chinacloudapi.cn/organizations/v2.0/.well-known/openid-configuration","api-version":"1.1",metadata:[{preferred_network:"login.microsoftonline.com",preferred_cache:"login.windows.net",aliases:["login.microsoftonline.com","login.windows.net","login.microsoft.com","sts.windows.net"]},{preferred_network:"login.partner.microsoftonline.cn",preferred_cache:"login.partner.microsoftonline.cn",aliases:["login.partner.microsoftonline.cn","login.chinacloudapi.cn"]},{preferred_network:"login.microsoftonline.de",preferred_cache:"login.microsoftonline.de",aliases:["login.microsoftonline.de"]},{preferred_network:"login.microsoftonline.us",preferred_cache:"login.microsoftonline.us",aliases:["login.microsoftonline.us","login.usgovcloudapi.net"]},{preferred_network:"login-us.microsoftonline.com",preferred_cache:"login-us.microsoftonline.com",aliases:["login-us.microsoftonline.com"]}]},"https://login.microsoftonline.us/organizations/":{tenant_discovery_endpoint:"https://login.microsoftonline.us/organizations/v2.0/.well-known/openid-configuration","api-version":"1.1",metadata:[{preferred_network:"login.microsoftonline.com",preferred_cache:"login.windows.net",aliases:["login.microsoftonline.com","login.windows.net","login.microsoft.com","sts.windows.net"]},{preferred_network:"login.partner.microsoftonline.cn",preferred_cache:"login.partner.microsoftonline.cn",aliases:["login.partner.microsoftonline.cn","login.chinacloudapi.cn"]},{preferred_network:"login.microsoftonline.de",preferred_cache:"login.microsoftonline.de",aliases:["login.microsoftonline.de"]},{preferred_network:"login.microsoftonline.us",preferred_cache:"login.microsoftonline.us",aliases:["login.microsoftonline.us","login.usgovcloudapi.net"]},{preferred_network:"login-us.microsoftonline.com",preferred_cache:"login-us.microsoftonline.com",aliases:["login-us.microsoftonline.com"]}]}},yG=function(){function n(t){this.networkInterface=t}return n.prototype.detectRegion=function(t,e,i){return At(this,void 0,void 0,function(){var r,o,s,a,l;return Tt(this,function(c){switch(c.label){case 0:if(r=t)return[3,8];o=n.IMDS_OPTIONS,i&&(o.proxyUrl=i),c.label=1;case 1:return c.trys.push([1,6,,7]),[4,this.getRegionFromIMDS(ee.IMDS_VERSION,o)];case 2:return(s=c.sent()).status===al.httpSuccess&&(r=s.body,e.region_source=Bs.IMDS),s.status!==al.httpBadRequest?[3,5]:[4,this.getCurrentVersion(o)];case 3:return(a=c.sent())?[4,this.getRegionFromIMDS(a,o)]:(e.region_source=Bs.FAILED_AUTO_DETECTION,[2,null]);case 4:(l=c.sent()).status===al.httpSuccess&&(r=l.body,e.region_source=Bs.IMDS),c.label=5;case 5:return[3,7];case 6:return c.sent(),e.region_source=Bs.FAILED_AUTO_DETECTION,[2,null];case 7:return[3,9];case 8:e.region_source=Bs.ENVIRONMENT_VARIABLE,c.label=9;case 9:return r||(e.region_source=Bs.FAILED_AUTO_DETECTION),[2,r||null]}})})},n.prototype.getRegionFromIMDS=function(t,e){return At(this,void 0,void 0,function(){return Tt(this,function(i){return[2,this.networkInterface.sendGetRequestAsync(ee.IMDS_ENDPOINT+"?api-version="+t+"&format=text",e,ee.IMDS_TIMEOUT)]})})},n.prototype.getCurrentVersion=function(t){return At(this,void 0,void 0,function(){var e;return Tt(this,function(i){switch(i.label){case 0:return i.trys.push([0,2,,3]),[4,this.networkInterface.sendGetRequestAsync(ee.IMDS_ENDPOINT+"?format=json",t)];case 1:return(e=i.sent()).status===al.httpBadRequest&&e.body&&e.body["newest-versions"]&&e.body["newest-versions"].length>0?[2,e.body["newest-versions"][0]]:[2,null];case 2:return i.sent(),[2,null];case 3:return[2]}})})},n.IMDS_OPTIONS={headers:{Metadata:"true"}},n}(),Em=function(){function n(t,e,i,r,o){this.canonicalAuthority=t,this._canonicalAuthority.validateAsUri(),this.networkInterface=e,this.cacheManager=i,this.authorityOptions=r,this.regionDiscovery=new yG(e),this.regionDiscoveryMetadata={region_used:void 0,region_source:void 0,region_outcome:void 0},this.proxyUrl=o||ee.EMPTY_STRING}return Object.defineProperty(n.prototype,"authorityType",{get:function(){var t=this.canonicalAuthorityUrlComponents.PathSegments;return t.length&&t[0].toLowerCase()===ee.ADFS?es.Adfs:es.Default},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"protocolMode",{get:function(){return this.authorityOptions.protocolMode},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"options",{get:function(){return this.authorityOptions},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"canonicalAuthority",{get:function(){return this._canonicalAuthority.urlString},set:function(t){this._canonicalAuthority=new nn(t),this._canonicalAuthority.validateAsUri(),this._canonicalAuthorityUrlComponents=null},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"canonicalAuthorityUrlComponents",{get:function(){return this._canonicalAuthorityUrlComponents||(this._canonicalAuthorityUrlComponents=this._canonicalAuthority.getUrlComponents()),this._canonicalAuthorityUrlComponents},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"hostnameAndPort",{get:function(){return this.canonicalAuthorityUrlComponents.HostNameAndPort.toLowerCase()},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"tenant",{get:function(){return this.canonicalAuthorityUrlComponents.PathSegments[0]},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"authorizationEndpoint",{get:function(){if(this.discoveryComplete()){var t=this.replacePath(this.metadata.authorization_endpoint);return this.replaceTenant(t)}throw nt.createEndpointDiscoveryIncompleteError("Discovery incomplete.")},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"tokenEndpoint",{get:function(){if(this.discoveryComplete()){var t=this.replacePath(this.metadata.token_endpoint);return this.replaceTenant(t)}throw nt.createEndpointDiscoveryIncompleteError("Discovery incomplete.")},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"deviceCodeEndpoint",{get:function(){if(this.discoveryComplete()){var t=this.replacePath(this.metadata.token_endpoint.replace("/token","/devicecode"));return this.replaceTenant(t)}throw nt.createEndpointDiscoveryIncompleteError("Discovery incomplete.")},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"endSessionEndpoint",{get:function(){if(this.discoveryComplete()){if(!this.metadata.end_session_endpoint)throw nt.createLogoutNotSupportedError();var t=this.replacePath(this.metadata.end_session_endpoint);return this.replaceTenant(t)}throw nt.createEndpointDiscoveryIncompleteError("Discovery incomplete.")},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"selfSignedJwtAudience",{get:function(){if(this.discoveryComplete()){var t=this.replacePath(this.metadata.issuer);return this.replaceTenant(t)}throw nt.createEndpointDiscoveryIncompleteError("Discovery incomplete.")},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"jwksUri",{get:function(){if(this.discoveryComplete()){var t=this.replacePath(this.metadata.jwks_uri);return this.replaceTenant(t)}throw nt.createEndpointDiscoveryIncompleteError("Discovery incomplete.")},enumerable:!1,configurable:!0}),n.prototype.replaceTenant=function(t){return t.replace(/{tenant}|{tenantid}/g,this.tenant)},n.prototype.replacePath=function(t){var e=t,r=new nn(this.metadata.canonical_authority).getUrlComponents().PathSegments;return this.canonicalAuthorityUrlComponents.PathSegments.forEach(function(s,a){var l=r[a];s!==l&&(e=e.replace("/"+l+"/","/"+s+"/"))}),e},Object.defineProperty(n.prototype,"defaultOpenIdConfigurationEndpoint",{get:function(){return this.authorityType===es.Adfs||this.protocolMode===Kd.OIDC?this.canonicalAuthority+".well-known/openid-configuration":this.canonicalAuthority+"v2.0/.well-known/openid-configuration"},enumerable:!1,configurable:!0}),n.prototype.discoveryComplete=function(){return!!this.metadata},n.prototype.resolveEndpointsAsync=function(){return At(this,void 0,void 0,function(){var t,e,i,r;return Tt(this,function(o){switch(o.label){case 0:return(t=this.cacheManager.getAuthorityMetadataByAlias(this.hostnameAndPort))||(t=new sC).updateCanonicalAuthority(this.canonicalAuthority),[4,this.updateCloudDiscoveryMetadata(t)];case 1:return e=o.sent(),this.canonicalAuthority=this.canonicalAuthority.replace(this.hostnameAndPort,t.preferred_network),[4,this.updateEndpointMetadata(t)];case 2:return i=o.sent(),e!==Or.CACHE&&i!==Or.CACHE&&(t.resetExpiresAt(),t.updateCanonicalAuthority(this.canonicalAuthority)),r=this.cacheManager.generateAuthorityMetadataCacheKey(t.preferred_cache),this.cacheManager.setAuthorityMetadata(r,t),this.metadata=t,[2]}})})},n.prototype.updateEndpointMetadata=function(t){var e,i;return At(this,void 0,void 0,function(){var r,o;return Tt(this,function(s){switch(s.label){case 0:return(r=this.getEndpointMetadataFromConfig())?(t.updateEndpointMetadata(r,!1),[2,Or.CONFIG]):this.isAuthoritySameType(t)&&t.endpointsFromNetwork&&!t.isExpired()?[2,Or.CACHE]:(o=this.getEndpointMetadataFromHardcodedValues(),[4,this.getEndpointMetadataFromNetwork()]);case 1:return(r=s.sent())?null!==(e=this.authorityOptions.azureRegionConfiguration)&&void 0!==e&&e.azureRegion?[4,this.updateMetadataWithRegionalInformation(r)]:[3,3]:[3,4];case 2:r=s.sent(),s.label=3;case 3:return t.updateEndpointMetadata(r,!0),[2,Or.NETWORK];case 4:return o&&!this.authorityOptions.skipAuthorityMetadataCache?null!==(i=this.authorityOptions.azureRegionConfiguration)&&void 0!==i&&i.azureRegion?[4,this.updateMetadataWithRegionalInformation(o)]:[3,6]:[3,7];case 5:o=s.sent(),s.label=6;case 6:return t.updateEndpointMetadata(o,!1),[2,Or.HARDCODED_VALUES];case 7:throw nt.createUnableToGetOpenidConfigError(this.defaultOpenIdConfigurationEndpoint)}})})},n.prototype.isAuthoritySameType=function(t){return new nn(t.canonical_authority).getUrlComponents().PathSegments.length===this.canonicalAuthorityUrlComponents.PathSegments.length},n.prototype.getEndpointMetadataFromConfig=function(){if(this.authorityOptions.authorityMetadata)try{return JSON.parse(this.authorityOptions.authorityMetadata)}catch{throw Mn.createInvalidAuthorityMetadataError()}return null},n.prototype.getEndpointMetadataFromNetwork=function(){return At(this,void 0,void 0,function(){var t,e;return Tt(this,function(i){switch(i.label){case 0:t={},this.proxyUrl&&(t.proxyUrl=this.proxyUrl),i.label=1;case 1:return i.trys.push([1,3,,4]),[4,this.networkInterface.sendGetRequestAsync(this.defaultOpenIdConfigurationEndpoint,t)];case 2:return[2,_G((e=i.sent()).body)?e.body:null];case 3:return i.sent(),[2,null];case 4:return[2]}})})},n.prototype.getEndpointMetadataFromHardcodedValues=function(){return this.canonicalAuthority in LI?LI[this.canonicalAuthority]:null},n.prototype.updateMetadataWithRegionalInformation=function(t){var e,i,r,o,s;return At(this,void 0,void 0,function(){var a,l;return Tt(this,function(c){switch(c.label){case 0:return[4,this.regionDiscovery.detectRegion(null===(e=this.authorityOptions.azureRegionConfiguration)||void 0===e?void 0:e.environmentRegion,this.regionDiscoveryMetadata,this.proxyUrl)];case 1:return a=c.sent(),l=(null===(i=this.authorityOptions.azureRegionConfiguration)||void 0===i?void 0:i.azureRegion)===ee.AZURE_REGION_AUTO_DISCOVER_FLAG?a:null===(r=this.authorityOptions.azureRegionConfiguration)||void 0===r?void 0:r.azureRegion,this.regionDiscoveryMetadata.region_outcome=(null===(o=this.authorityOptions.azureRegionConfiguration)||void 0===o?void 0:o.azureRegion)===ee.AZURE_REGION_AUTO_DISCOVER_FLAG?a?ga.AUTO_DETECTION_REQUESTED_SUCCESSFUL:ga.AUTO_DETECTION_REQUESTED_FAILED:a?(null===(s=this.authorityOptions.azureRegionConfiguration)||void 0===s?void 0:s.azureRegion)===a?ga.CONFIGURED_MATCHES_DETECTED:ga.CONFIGURED_NOT_DETECTED:ga.CONFIGURED_NO_AUTO_DETECTION,l?(this.regionDiscoveryMetadata.region_used=l,[2,n.replaceWithRegionalInformation(t,l)]):[2,t]}})})},n.prototype.updateCloudDiscoveryMetadata=function(t){return At(this,void 0,void 0,function(){var e,i;return Tt(this,function(r){switch(r.label){case 0:return(e=this.getCloudDiscoveryMetadataFromConfig())?(t.updateCloudDiscoveryMetadata(e,!1),[2,Or.CONFIG]):this.isAuthoritySameType(t)&&t.aliasesFromNetwork&&!t.isExpired()?[2,Or.CACHE]:(i=this.getCloudDiscoveryMetadataFromHarcodedValues(),[4,this.getCloudDiscoveryMetadataFromNetwork()]);case 1:if(e=r.sent())return t.updateCloudDiscoveryMetadata(e,!0),[2,Or.NETWORK];if(i&&!this.options.skipAuthorityMetadataCache)return t.updateCloudDiscoveryMetadata(i,!1),[2,Or.HARDCODED_VALUES];throw Mn.createUntrustedAuthorityError()}})})},n.prototype.getCloudDiscoveryMetadataFromConfig=function(){if(this.authorityOptions.cloudDiscoveryMetadata)try{var t=JSON.parse(this.authorityOptions.cloudDiscoveryMetadata),e=n.getCloudDiscoveryMetadataFromNetworkResponse(t.metadata,this.hostnameAndPort);if(e)return e}catch{throw Mn.createInvalidCloudDiscoveryMetadataError()}return this.isInKnownAuthorities()?n.createCloudDiscoveryMetadataFromHost(this.hostnameAndPort):null},n.prototype.getCloudDiscoveryMetadataFromNetwork=function(){return At(this,void 0,void 0,function(){var t,e,i,r,o;return Tt(this,function(s){switch(s.label){case 0:t=""+ee.AAD_INSTANCE_DISCOVERY_ENDPT+this.canonicalAuthority+"oauth2/v2.0/authorize",e={},this.proxyUrl&&(e.proxyUrl=this.proxyUrl),i=null,s.label=1;case 1:return s.trys.push([1,3,,4]),[4,this.networkInterface.sendGetRequestAsync(t,e)];case 2:return r=s.sent(),o=function vG(n){return n.hasOwnProperty("tenant_discovery_endpoint")&&n.hasOwnProperty("metadata")}(r.body)?r.body.metadata:[],0===o.length?[2,null]:(i=n.getCloudDiscoveryMetadataFromNetworkResponse(o,this.hostnameAndPort),[3,4]);case 3:return s.sent(),[2,null];case 4:return i||(i=n.createCloudDiscoveryMetadataFromHost(this.hostnameAndPort)),[2,i]}})})},n.prototype.getCloudDiscoveryMetadataFromHarcodedValues=function(){return this.canonicalAuthority in NI?NI[this.canonicalAuthority]:null},n.prototype.isInKnownAuthorities=function(){var t=this;return this.authorityOptions.knownAuthorities.filter(function(i){return nn.getDomainFromUrl(i).toLowerCase()===t.hostnameAndPort}).length>0},n.generateAuthority=function(t,e){var i;return e&&e.azureCloudInstance!==qc.None&&(i=e.azureCloudInstance+"/"+(e.tenant?e.tenant:ee.DEFAULT_COMMON_TENANT)+"/"),i||t},n.createCloudDiscoveryMetadataFromHost=function(t){return{preferred_network:t,preferred_cache:t,aliases:[t]}},n.getCloudDiscoveryMetadataFromNetworkResponse=function(t,e){for(var i=0;i-1)return r}return null},n.prototype.getPreferredCache=function(){if(this.discoveryComplete())return this.metadata.preferred_cache;throw nt.createEndpointDiscoveryIncompleteError("Discovery incomplete.")},n.prototype.isAlias=function(t){return this.metadata.aliases.indexOf(t)>-1},n.isPublicCloudAuthority=function(t){return ee.KNOWN_PUBLIC_CLOUDS.indexOf(t)>=0},n.buildRegionalAuthorityString=function(t,e,i){var r=new nn(t);r.validateAsUri();var o=r.getUrlComponents(),s=e+"."+o.HostNameAndPort;this.isPublicCloudAuthority(o.HostNameAndPort)&&(s=e+"."+ee.REGIONAL_AUTH_PUBLIC_CLOUD_SUFFIX);var a=nn.constructAuthorityUriFromObject(Gn(Gn({},r.getUrlComponents()),{HostNameAndPort:s})).urlString;return i?a+"?"+i:a},n.replaceWithRegionalInformation=function(t,e){return t.authorization_endpoint=n.buildRegionalAuthorityString(t.authorization_endpoint,e),t.token_endpoint=n.buildRegionalAuthorityString(t.token_endpoint,e,"allowestsrnonmsi=true"),t.end_session_endpoint&&(t.end_session_endpoint=n.buildRegionalAuthorityString(t.end_session_endpoint,e)),t},n}(),Dm=function(){function n(){}return n.createDiscoveredInstance=function(t,e,i,r,o){return At(this,void 0,void 0,function(){var s,a;return Tt(this,function(l){switch(l.label){case 0:s=n.createInstance(t,e,i,r,o),l.label=1;case 1:return l.trys.push([1,3,,4]),[4,s.resolveEndpointsAsync()];case 2:return l.sent(),[2,s];case 3:throw a=l.sent(),nt.createEndpointDiscoveryIncompleteError(a);case 4:return[2]}})})},n.createInstance=function(t,e,i,r,o){if(Ke.isEmpty(t))throw Mn.createUrlEmptyError();return new Em(t,e,i,r,o)},n}(),bG=function(){function n(t,e){this.cacheOutcome=_a.NO_CACHE_HIT,this.cacheManager=e,this.apiId=t.apiId,this.correlationId=t.correlationId,this.wrapperSKU=t.wrapperSKU||ee.EMPTY_STRING,this.wrapperVer=t.wrapperVer||ee.EMPTY_STRING,this.telemetryCacheKey=wi.CACHE_KEY+hr.CACHE_KEY_SEPARATOR+t.clientId}return n.prototype.generateCurrentRequestHeaderValue=function(){var t=""+this.apiId+wi.VALUE_SEPARATOR+this.cacheOutcome,e=[this.wrapperSKU,this.wrapperVer].join(wi.VALUE_SEPARATOR),r=[t,this.getRegionDiscoveryFields()].join(wi.VALUE_SEPARATOR);return[wi.SCHEMA_VERSION,r,e].join(wi.CATEGORY_SEPARATOR)},n.prototype.generateLastRequestHeaderValue=function(){var t=this.getLastRequests(),e=n.maxErrorsToSend(t),i=t.failedRequests.slice(0,2*e).join(wi.VALUE_SEPARATOR),r=t.errors.slice(0,e).join(wi.VALUE_SEPARATOR),o=t.errors.length,a=[o,e=wi.MAX_CACHED_ERRORS&&(e.failedRequests.shift(),e.failedRequests.shift(),e.errors.shift()),e.failedRequests.push(this.apiId,this.correlationId),Ke.isEmpty(t.subError)?Ke.isEmpty(t.errorCode)?t&&t.toString()?e.errors.push(t.toString()):e.errors.push(wi.UNKNOWN_ERROR):e.errors.push(t.errorCode):e.errors.push(t.subError),this.cacheManager.setServerTelemetry(this.telemetryCacheKey,e)},n.prototype.incrementCacheHits=function(){var t=this.getLastRequests();return t.cacheHits+=1,this.cacheManager.setServerTelemetry(this.telemetryCacheKey,t),t.cacheHits},n.prototype.getLastRequests=function(){var t=new vm;return this.cacheManager.getServerTelemetry(this.telemetryCacheKey)||t},n.prototype.clearTelemetryCache=function(){var t=this.getLastRequests(),e=n.maxErrorsToSend(t);if(e===t.errors.length)this.cacheManager.removeItem(this.telemetryCacheKey);else{var r=new vm;r.failedRequests=t.failedRequests.slice(2*e),r.errors=t.errors.slice(e),this.cacheManager.setServerTelemetry(this.telemetryCacheKey,r)}},n.maxErrorsToSend=function(t){var e,i=0,r=0,o=t.errors.length;for(e=0;e(function(n){n.USER_INTERACTION_REQUIRED="USER_INTERACTION_REQUIRED",n.USER_CANCEL="USER_CANCEL",n.NO_NETWORK="NO_NETWORK",n.TRANSIENT_ERROR="TRANSIENT_ERROR",n.PERSISTENT_ERROR="PERSISTENT_ERROR",n.DISABLED="DISABLED",n.ACCOUNT_UNAVAILABLE="ACCOUNT_UNAVAILABLE"}(Hs||(Hs={})),Hs))(),Qd_extensionError_code="ContentError",Qd_userSwitch_code="user_switch",Qd_userSwitch_desc="User attempted to switch accounts in the native broker, which is not allowed. All new accounts must sign-in through the standard web flow first, please try again.",Qd_tokensNotFoundInCache_code="tokens_not_found_in_internal_memory_cache",Qd_tokensNotFoundInCache_desc="Tokens not cached in MSAL JS internal memory, please make the WAM request",ts=function(n){function t(e,i,r){var o=n.call(this,e,i)||this;return Object.setPrototypeOf(o,t.prototype),o.name="NativeAuthError",o.ext=r,o}return Ci(t,n),t.prototype.isFatal=function(){return!(!this.ext||!this.ext.status||this.ext.status!==Hs.PERSISTENT_ERROR&&this.ext.status!==Hs.DISABLED)||this.errorCode===Qd_extensionError_code},t.createError=function(e,i,r){if(r&&r.status)switch(r.status){case Hs.ACCOUNT_UNAVAILABLE:return xo.createNativeAccountUnavailableError();case Hs.USER_INTERACTION_REQUIRED:return new xo(e,i);case Hs.USER_CANCEL:return ze.createUserCancelledError();case Hs.NO_NETWORK:return ze.createNoNetworkConnectivityError()}return new t(e,i,r)},t.createUserSwitchError=function(){return new t(Qd_userSwitch_code,Qd_userSwitch_desc)},t.createTokensNotFoundInCacheError=function(){return new t(Qd_tokensNotFoundInCache_code,Qd_tokensNotFoundInCache_desc)},t}(ut),BI=function(n){function t(e,i){return n.call(this,e,i)||this}return dr(t,n),t.prototype.acquireToken=function(e){return At(this,void 0,void 0,function(){var i,r,o;return Tt(this,function(s){switch(s.label){case 0:return i=Zr.nowSeconds(),[4,this.executeTokenRequest(e,this.authority)];case 1:return r=s.sent(),(o=new wm(this.config.authOptions.clientId,this.cacheManager,this.cryptoUtils,this.logger,this.config.serializableCache,this.config.persistencePlugin)).validateTokenResponse(r.body),[2,o.handleServerTokenResponse(r.body,this.authority,i,e,void 0,void 0,!0,e.forceCache)]}})})},t.prototype.acquireTokenByRefreshToken=function(e){return At(this,void 0,void 0,function(){var o;return Tt(this,function(s){if(!e)throw Mn.createEmptyTokenRequestError();if(!e.account)throw nt.createNoAccountInSilentRequestError();if(this.cacheManager.isAppMetadataFOCI(e.account.environment,this.config.authOptions.clientId))try{return[2,this.acquireTokenWithCachedRefreshToken(e,!0)]}catch(a){if(o=a instanceof cl&&"invalid_grant"===a.errorCode&&"client_mismatch"===a.subError,a instanceof xo&&a.errorCode===zd_noTokensFoundError_code||o)return[2,this.acquireTokenWithCachedRefreshToken(e,!1)];throw a}return[2,this.acquireTokenWithCachedRefreshToken(e,!1)]})})},t.prototype.acquireTokenWithCachedRefreshToken=function(e,i){return At(this,void 0,void 0,function(){var r,o;return Tt(this,function(s){if(!(r=this.cacheManager.readRefreshTokenFromCache(this.config.authOptions.clientId,e.account,i)))throw xo.createNoTokensFoundError();return o=Gn(Gn({},e),{refreshToken:r.secret,authenticationScheme:e.authenticationScheme||fn.BEARER,ccsCredential:{credential:e.account.homeAccountId,type:mr.HOME_ACCOUNT_ID}}),[2,this.acquireToken(o)]})})},t.prototype.executeTokenRequest=function(e,i){var r;return At(this,void 0,void 0,function(){var o,s,a,l,c,u;return Tt(this,function(d){switch(d.label){case 0:return o=null===(r=this.performanceClient)||void 0===r?void 0:r.startMeasurement(ci.RefreshTokenClientExecuteTokenRequest,e.correlationId),[4,this.createTokenRequestBody(e)];case 1:return s=d.sent(),a=this.createTokenQueryParameters(e),l=this.createTokenRequestHeaders(e.ccsCredential),c={clientId:this.config.authOptions.clientId,authority:i.canonicalAuthority,scopes:e.scopes,claims:e.claims,authenticationScheme:e.authenticationScheme,resourceRequestMethod:e.resourceRequestMethod,resourceRequestUri:e.resourceRequestUri,shrClaims:e.shrClaims,sshKid:e.sshKid},u=nn.appendQueryString(i.tokenEndpoint,a),[2,this.executePostToTokenEndpoint(u,s,l,c).then(function(h){return o?.endMeasurement({success:!0}),h}).catch(function(h){throw o?.endMeasurement({success:!1}),h})]}})})},t.prototype.createTokenQueryParameters=function(e){var i=new zc;return e.tokenQueryParameters&&i.addExtraQueryParameters(e.tokenQueryParameters),i.createQueryString()},t.prototype.createTokenRequestBody=function(e){var i;return At(this,void 0,void 0,function(){var r,o,s,a,c,u;return Tt(this,function(d){switch(d.label){case 0:return r=e.correlationId,o=null===(i=this.performanceClient)||void 0===i?void 0:i.startMeasurement(ci.BaseClientCreateTokenRequestHeaders,r),(s=new zc).addClientId(this.config.authOptions.clientId),s.addScopes(e.scopes),s.addGrantType(Bd.REFRESH_TOKEN_GRANT),s.addClientInfo(),s.addLibraryInfo(this.config.libraryInfo),s.addApplicationTelemetry(this.config.telemetry.application),s.addThrottling(),this.serverTelemetryManager&&s.addServerTelemetry(this.serverTelemetryManager),s.addCorrelationId(r),s.addRefreshToken(e.refreshToken),this.config.clientCredentials.clientSecret&&s.addClientSecret(this.config.clientCredentials.clientSecret),this.config.clientCredentials.clientAssertion&&(s.addClientAssertion((a=this.config.clientCredentials.clientAssertion).assertion),s.addClientAssertionType(a.assertionType)),e.authenticationScheme!==fn.POP?[3,2]:[4,new Gc(this.cryptoUtils).generateCnf(e)];case 1:return c=d.sent(),s.addPopToken(c.reqCnfString),[3,3];case 2:if(e.authenticationScheme===fn.SSH){if(!e.sshJwk)throw o?.endMeasurement({success:!1}),Mn.createMissingSshJwkError();s.addSshJwk(e.sshJwk)}d.label=3;case 3:if((!Ke.isEmptyObj(e.claims)||this.config.authOptions.clientCapabilities&&this.config.authOptions.clientCapabilities.length>0)&&s.addClaims(e.claims,this.config.authOptions.clientCapabilities),this.config.systemOptions.preventCorsPreflight&&e.ccsCredential)switch(e.ccsCredential.type){case mr.HOME_ACCOUNT_ID:try{u=Uc(e.ccsCredential.credential),s.addCcsOid(u)}catch(h){this.logger.verbose("Could not parse home account ID for CCS Header: "+h)}break;case mr.UPN:s.addCcsUpn(e.ccsCredential.credential)}return o?.endMeasurement({success:!0}),[2,s.createQueryString()]}})})},t}(uC),CG=function(n){function t(e,i){return n.call(this,e,i)||this}return dr(t,n),t.prototype.acquireToken=function(e){return At(this,void 0,void 0,function(){var i;return Tt(this,function(o){switch(o.label){case 0:return o.trys.push([0,2,,3]),[4,this.acquireCachedToken(e)];case 1:return[2,o.sent()];case 2:if((i=o.sent())instanceof nt&&i.errorCode===Fe_tokenRefreshRequired_code)return[2,new BI(this.config,this.performanceClient).acquireTokenByRefreshToken(e)];throw i;case 3:return[2]}})})},t.prototype.acquireCachedToken=function(e){var i,r,o,s;return At(this,void 0,void 0,function(){var a,l;return Tt(this,function(c){switch(c.label){case 0:if(!e)throw Mn.createEmptyTokenRequestError();if(e.forceRefresh)throw null===(i=this.serverTelemetryManager)||void 0===i||i.setCacheOutcome(_a.FORCE_REFRESH),this.logger.info("SilentFlowClient:acquireCachedToken - Skipping cache because forceRefresh is true."),nt.createRefreshRequiredError();if(!e.account)throw nt.createNoAccountInSilentRequestError();if(a=e.authority||this.authority.getPreferredCache(),!(l=this.cacheManager.readCacheRecord(e.account,this.config.authOptions.clientId,e,a)).accessToken)throw null===(r=this.serverTelemetryManager)||void 0===r||r.setCacheOutcome(_a.NO_CACHED_ACCESS_TOKEN),this.logger.info("SilentFlowClient:acquireCachedToken - No access token found in cache for the given properties."),nt.createRefreshRequiredError();if(Zr.wasClockTurnedBack(l.accessToken.cachedAt)||Zr.isTokenExpired(l.accessToken.expiresOn,this.config.systemOptions.tokenRenewalOffsetSeconds))throw null===(o=this.serverTelemetryManager)||void 0===o||o.setCacheOutcome(_a.CACHED_ACCESS_TOKEN_EXPIRED),this.logger.info("SilentFlowClient:acquireCachedToken - Cached access token is expired or will expire within "+this.config.systemOptions.tokenRenewalOffsetSeconds+" seconds."),nt.createRefreshRequiredError();if(l.accessToken.refreshOn&&Zr.isTokenExpired(l.accessToken.refreshOn,0))throw null===(s=this.serverTelemetryManager)||void 0===s||s.setCacheOutcome(_a.REFRESH_CACHED_ACCESS_TOKEN),this.logger.info("SilentFlowClient:acquireCachedToken - Cached access token's refreshOn property has been exceeded'."),nt.createRefreshRequiredError();return this.config.serverTelemetryManager&&this.config.serverTelemetryManager.incrementCacheHits(),[4,this.generateResultFromCacheRecord(l,e)];case 1:return[2,c.sent()]}})})},t.prototype.generateResultFromCacheRecord=function(e,i){return At(this,void 0,void 0,function(){var r;return Tt(this,function(o){switch(o.label){case 0:return e.idToken&&(r=new va(e.idToken.secret,this.config.cryptoInterface)),[4,wm.generateAuthenticationResult(this.cryptoUtils,this.authority,e,!0,i,r)];case 1:return[2,o.sent()]}})})},t}(uC),jI=function(n){function t(){return null!==n&&n.apply(this,arguments)||this}return Ci(t,n),t.prototype.acquireToken=function(e){return Oe(this,void 0,void 0,function(){var i,r,o,s,a;return Pe(this,function(l){switch(l.label){case 0:return i=this.performanceClient.startMeasurement(ci.SilentCacheClientAcquireToken,e.correlationId),r=this.initializeServerTelemetryManager(bn.acquireTokenSilent_silentFlow),[4,this.createSilentFlowClient(r,e.authority,e.azureCloudOptions)];case 1:o=l.sent(),this.logger.verbose("Silent auth client created"),l.label=2;case 2:return l.trys.push([2,4,,5]),[4,o.acquireCachedToken(e)];case 3:return s=l.sent(),i.endMeasurement({success:!0,fromCache:!0}),[2,s];case 4:throw(a=l.sent())instanceof ze&&a.errorCode===Re_signingKeyNotFoundInStorage_code&&this.logger.verbose("Signing keypair for bound access token not found. Refreshing bound access token and generating a new crypto keypair."),i.endMeasurement({errorCode:a instanceof ut&&a.errorCode||void 0,subErrorCode:a instanceof ut&&a.subError||void 0,success:!1}),a;case 5:return[2]}})})},t.prototype.logout=function(){return Promise.reject(ze.createSilentLogoutUnsupportedError())},t.prototype.createSilentFlowClient=function(e,i,r){return Oe(this,void 0,void 0,function(){var o;return Pe(this,function(s){switch(s.label){case 0:return[4,this.getClientConfiguration(e,i,r)];case 1:return o=s.sent(),[2,new CG(o,this.performanceClient)]}})})},t.prototype.initializeSilentRequest=function(e,i){return Oe(this,void 0,void 0,function(){var r;return Pe(this,function(o){switch(o.label){case 0:return r=[ct({},e)],[4,this.initializeBaseRequest(e)];case 1:return[2,ct.apply(void 0,[ct.apply(void 0,r.concat([o.sent()])),{account:i,forceRefresh:e.forceRefresh||!1}])]}})})},t}(Wc),$c=function(n){function t(e,i,r,o,s,a,l,c,u,d,h,m){var y=n.call(this,e,i,r,o,s,a,c,u,m)||this;return y.apiId=l,y.accountId=d,y.nativeMessageHandler=u,y.nativeStorageManager=h,y.silentCacheClient=new jI(e,y.nativeStorageManager,r,o,s,a,c,u,m),y}return Ci(t,n),t.prototype.acquireToken=function(e){return Oe(this,void 0,void 0,function(){var i,r,o,s,l,c;return Pe(this,function(u){switch(u.label){case 0:return this.logger.trace("NativeInteractionClient - acquireToken called."),i=this.performanceClient.startMeasurement(ci.NativeInteractionClientAcquireToken,e.correlationId),r=Zr.nowSeconds(),[4,this.initializeNativeRequest(e)];case 1:o=u.sent(),u.label=2;case 2:return u.trys.push([2,4,,5]),[4,this.acquireTokensFromCache(this.accountId,o)];case 3:return s=u.sent(),i.endMeasurement({success:!0,isNativeBroker:!0,fromCache:!0}),[2,s];case 4:return u.sent(),this.logger.info("MSAL internal Cache does not contain tokens, proceed to make a native call"),[3,5];case 5:return[4,this.nativeMessageHandler.sendMessage({method:Xo.GetToken,request:o})];case 6:return l=u.sent(),c=this.validateNativeResponse(l),[2,this.handleNativeResponse(c,o,r).then(function(d){return i.endMeasurement({success:!0,isNativeBroker:!0}),d}).catch(function(d){throw i.endMeasurement({success:!1,errorCode:d.errorCode,subErrorCode:d.subError,isNativeBroker:!0}),d})]}})})},t.prototype.createSilentCacheRequest=function(e,i){return{authority:e.authority,correlationId:this.correlationId,scopes:fr.fromString(e.scope).asArray(),account:i,forceRefresh:!1}},t.prototype.acquireTokensFromCache=function(e,i){return Oe(this,void 0,void 0,function(){var r,o,s;return Pe(this,function(c){switch(c.label){case 0:if(!(r=this.browserStorage.readAccountFromCacheWithNativeAccountId(e)))throw nt.createNoAccountFoundError();o=r.getAccountInfo(),c.label=1;case 1:return c.trys.push([1,3,,4]),s=this.createSilentCacheRequest(i,o),[4,this.silentCacheClient.acquireToken(s)];case 2:return[2,c.sent()];case 3:throw c.sent();case 4:return[2]}})})},t.prototype.acquireTokenRedirect=function(e){return Oe(this,void 0,void 0,function(){var i,r,o,s,a,l;return Pe(this,function(c){switch(c.label){case 0:return this.logger.trace("NativeInteractionClient - acquireTokenRedirect called."),[4,this.initializeNativeRequest(e)];case 1:i=c.sent(),r={method:Xo.GetToken,request:i},c.label=2;case 2:return c.trys.push([2,4,,5]),[4,this.nativeMessageHandler.sendMessage(r)];case 3:return o=c.sent(),this.validateNativeResponse(o),[3,5];case 4:if((s=c.sent())instanceof ts&&s.isFatal())throw s;return[3,5];case 5:return this.browserStorage.setTemporaryCache(an.NATIVE_REQUEST,JSON.stringify(i),!0),a={apiId:bn.acquireTokenRedirect,timeout:this.config.system.redirectNavigationTimeout,noHistory:!1},l=this.config.auth.navigateToLoginRequestUrl?window.location.href:this.getRedirectUri(e.redirectUri),[4,this.navigationClient.navigateExternal(l,a)];case 6:return c.sent(),[2]}})})},t.prototype.handleRedirectPromise=function(){return Oe(this,void 0,void 0,function(){var e,i,r,o,s,a;return Pe(this,function(l){switch(l.label){case 0:if(this.logger.trace("NativeInteractionClient - handleRedirectPromise called."),!this.browserStorage.isInteractionInProgress(!0))return this.logger.info("handleRedirectPromise called but there is no interaction in progress, returning null."),[2,null];if(!(e=this.browserStorage.getCachedNativeRequest()))return this.logger.verbose("NativeInteractionClient - handleRedirectPromise called but there is no cached request, returning null."),[2,null];this.browserStorage.removeItem(this.browserStorage.generateCacheKey(an.NATIVE_REQUEST)),i={method:Xo.GetToken,request:e},r=Zr.nowSeconds(),l.label=1;case 1:return l.trys.push([1,3,,4]),this.logger.verbose("NativeInteractionClient - handleRedirectPromise sending message to native broker."),[4,this.nativeMessageHandler.sendMessage(i)];case 2:return o=l.sent(),this.validateNativeResponse(o),s=this.handleNativeResponse(o,e,r),this.browserStorage.setInteractionInProgress(!1),[2,s];case 3:throw a=l.sent(),this.browserStorage.setInteractionInProgress(!1),a;case 4:return[2]}})})},t.prototype.logout=function(){return this.logger.trace("NativeInteractionClient - logout called."),Promise.reject("Logout not implemented yet")},t.prototype.handleNativeResponse=function(e,i,r){return Oe(this,void 0,void 0,function(){var o,s,a,l,c,u,d,h,m,y,A,te,Ee,ne,Me,at,Dt,rn,Cn,tr=this;return Pe(this,function(gi){switch(gi.label){case 0:if(this.logger.trace("NativeInteractionClient - handleNativeResponse called."),e.account.id!==i.accountId)throw ts.createUserSwitchError();return o=new va(e.id_token||ee.EMPTY_STRING,this.browserCrypto),[4,this.getDiscoveredAuthority(i.authority)];case 1:return s=gi.sent(),a=s.getPreferredCache(),l=Fi.generateHomeAccountId(e.client_info||ee.EMPTY_STRING,es.Default,this.logger,this.browserCrypto,o),c=Fi.createAccount(e.client_info,l,o,void 0,void 0,void 0,a,e.account.id),this.browserStorage.setAccount(c),u=fr.fromString(e.scope?e.scope:i.scope),h=(d=e.account.properties||{}).UID||o.claims.oid||o.claims.sub||ee.EMPTY_STRING,m=d.TenantId||o.claims.tid||ee.EMPTY_STRING,A=fn.BEARER,i.tokenType===fn.POP?[3,2]:[3,4];case 2:if(A=fn.POP,e.shr)return this.logger.trace("handleNativeServerResponse: SHR is enabled in native layer"),y=e.shr,[3,5];if(te=new Gc(this.browserCrypto),Ee={resourceRequestMethod:i.resourceRequestMethod,resourceRequestUri:i.resourceRequestUri,shrClaims:i.shrClaims,shrNonce:i.shrNonce},!i.keyId)throw nt.createKeyIdMissingError();return[4,te.signPopToken(e.access_token,i.keyId,Ee)];case 3:return y=gi.sent(),[3,5];case 4:y=e.access_token,gi.label=5;case 5:return ne=this.getMATSFromResponse(e),Me={authority:s.canonicalAuthority,uniqueId:h,tenantId:m,scopes:u.asArray(),account:c.getAccountInfo(),idToken:e.id_token,idTokenClaims:o.claims,accessToken:y,fromCache:!!ne&&this.isResponseFromCache(ne),expiresOn:new Date(1e3*Number(r+e.expires_in)),tokenType:A,correlationId:this.correlationId,state:e.state,fromNativeBroker:!0},at=Wd.createIdTokenEntity(l,i.authority,e.id_token||ee.EMPTY_STRING,i.clientId,o.claims.tid||ee.EMPTY_STRING),this.nativeStorageManager.setIdTokenCredential(at),Dt=A===fn.POP?ee.SHR_NONCE_VALIDITY:("string"==typeof e.expires_in?parseInt(e.expires_in,10):e.expires_in)||0,rn=r+Dt,Cn=$d.createAccessTokenEntity(l,i.authority,y,i.clientId,m,u.printScopes(),rn,0,this.browserCrypto),this.nativeStorageManager.setAccessTokenCredential(Cn),this.browserStorage.removeAccountContext(c).catch(function(Aa){tr.logger.error("Error occurred while removing account context from browser storage. "+Aa)}),[2,Me]}})})},t.prototype.validateNativeResponse=function(e){if(e.hasOwnProperty("access_token")&&e.hasOwnProperty("id_token")&&e.hasOwnProperty("client_info")&&e.hasOwnProperty("account")&&e.hasOwnProperty("scope")&&e.hasOwnProperty("expires_in"))return e;throw ts.createUnexpectedError("Response missing expected properties.")},t.prototype.getMATSFromResponse=function(e){if(e.properties.MATS)try{return JSON.parse(e.properties.MATS)}catch{this.logger.error("NativeInteractionClient - Error parsing MATS telemetry, returning null instead")}return null},t.prototype.isResponseFromCache=function(e){return typeof e.is_cached>"u"?(this.logger.verbose("NativeInteractionClient - MATS telemetry does not contain field indicating if response was served from cache. Returning false."),!1):!!e.is_cached},t.prototype.initializeNativeRequest=function(e){return Oe(this,void 0,void 0,function(){var r,o,s,a,l,c,u,h,m=this;return Pe(this,function(y){switch(y.label){case 0:return this.logger.trace("NativeInteractionClient - initializeNativeRequest called"),(r=new nn(e.authority||this.config.auth.authority)).validateAsUri(),o=e.scopes,s=function M7(n,t){var e={};for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&t.indexOf(i)<0&&(e[i]=n[i]);if(null!=n&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(n);rs&&(i.logger.error("PopupHandler.monitorPopupForHash - unable to find hash in url, timing out"),clearInterval(l),o(ze.createMonitorPopupTimeoutError())))},50)})},t.prototype.waitForLogoutPopup=function(e){var i=this;return new Promise(function(r){i.logger.verbose("PopupHandler.waitForLogoutPopup - polling started");var o=setInterval(function(){e.closed&&(i.logger.error("PopupHandler.waitForLogoutPopup - window closed"),i.cleanPopup(),clearInterval(o),r());var s=ee.EMPTY_STRING;try{s=e.location.href}catch{}Ke.isEmpty(s)||"about:blank"===s||(i.logger.verbose("PopupHandler.waitForLogoutPopup - popup window is on same origin as caller, closing."),clearInterval(o),i.cleanPopup(e),r())},50)})},t.prototype.openPopup=function(e,i){try{var r=void 0;if(i.popup?(r=i.popup,this.logger.verbosePii("Navigating popup window to: "+e),r.location.assign(e)):typeof i.popup>"u"&&(this.logger.verbosePii("Opening popup window to: "+e),r=this.openSizedPopup(e,i.popupName,i.popupWindowAttributes)),!r)throw ze.createEmptyWindowCreatedError();return r.focus&&r.focus(),this.currentWindow=r,window.addEventListener("beforeunload",this.unloadWindow),r}catch(o){throw this.logger.error("error opening popup "+o.message),this.browserStorage.setInteractionInProgress(!1),ze.createPopupWindowError(o.toString())}},t.prototype.openSizedPopup=function(e,i,r){var o,s,a,l,c=window.screenLeft?window.screenLeft:window.screenX,u=window.screenTop?window.screenTop:window.screenY,d=window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth,h=window.innerHeight||document.documentElement.clientHeight||document.body.clientHeight,m=null===(o=r.popupSize)||void 0===o?void 0:o.width,y=null===(s=r.popupSize)||void 0===s?void 0:s.height,A=null===(a=r.popupPosition)||void 0===a?void 0:a.top,U=null===(l=r.popupPosition)||void 0===l?void 0:l.left;return(!m||m<0||m>d)&&(this.logger.verbose("Default popup window width used. Window width not configured or invalid."),m=483),(!y||y<0||y>h)&&(this.logger.verbose("Default popup window height used. Window height not configured or invalid."),y=600),(!A||A<0||A>h)&&(this.logger.verbose("Default popup window top position used. Window top not configured or invalid."),A=Math.max(0,h/2-300+u)),(!U||U<0||U>d)&&(this.logger.verbose("Default popup window left position used. Window left not configured or invalid."),U=Math.max(0,d/2-241.5+c)),window.open(e,i,"width="+m+", height="+y+", top="+A+", left="+U+", scrollbars=yes")},t.prototype.unloadWindow=function(e){this.browserStorage.cleanRequestByInteractionType($e.Popup),this.currentWindow&&this.currentWindow.close(),e.preventDefault()},t.prototype.cleanPopup=function(e){e&&e.close(),window.removeEventListener("beforeunload",this.unloadWindow),this.browserStorage.setInteractionInProgress(!1)},t.prototype.generatePopupName=function(e,i){return"msal."+this.config.auth.clientId+"."+e.join("-")+"."+i+"."+this.correlationId},t.prototype.generateLogoutPopupName=function(e){return"msal."+this.config.auth.clientId+"."+(e.account&&e.account.homeAccountId)+"."+this.correlationId},t}(Wc),HI=function(n){function t(e,i,r,o,s){var a=n.call(this,e,i,r,o)||this;return a.browserCrypto=s,a}return Ci(t,n),t.prototype.initiateAuthRequest=function(e,i){return Oe(this,void 0,void 0,function(){var r;return Pe(this,function(s){switch(s.label){case 0:return this.logger.verbose("RedirectHandler.initiateAuthRequest called"),Ke.isEmpty(e)?[3,7]:(i.redirectStartPage&&(this.logger.verbose("RedirectHandler.initiateAuthRequest: redirectStartPage set, caching start page"),this.browserStorage.setTemporaryCache(an.ORIGIN_URI,i.redirectStartPage,!0)),this.browserStorage.setTemporaryCache(an.CORRELATION_ID,this.authCodeRequest.correlationId,!0),this.browserStorage.cacheCodeRequest(this.authCodeRequest,this.browserCrypto),this.logger.infoPii("RedirectHandler.initiateAuthRequest: Navigate to: "+e),r={apiId:bn.acquireTokenRedirect,timeout:i.redirectTimeout,noHistory:!1},"function"!=typeof i.onRedirectNavigate?[3,4]:(this.logger.verbose("RedirectHandler.initiateAuthRequest: Invoking onRedirectNavigate callback"),!1===i.onRedirectNavigate(e)?[3,2]:(this.logger.verbose("RedirectHandler.initiateAuthRequest: onRedirectNavigate did not return false, navigating"),[4,i.navigationClient.navigateExternal(e,r)])));case 1:case 5:return s.sent(),[2];case 2:return this.logger.verbose("RedirectHandler.initiateAuthRequest: onRedirectNavigate returned false, stopping navigation"),[2];case 3:return[3,6];case 4:return this.logger.verbose("RedirectHandler.initiateAuthRequest: Navigating window to navigate url"),[4,i.navigationClient.navigateExternal(e,r)];case 6:return[3,8];case 7:throw this.logger.info("RedirectHandler.initiateAuthRequest: Navigate url is empty"),ze.createEmptyNavigationUriError();case 8:return[2]}})})},t.prototype.handleCodeResponseFromHash=function(e,i,r,o){return Oe(this,void 0,void 0,function(){var s,a,l,c,u,d,h;return Pe(this,function(m){switch(m.label){case 0:if(this.logger.verbose("RedirectHandler.handleCodeResponse called"),Ke.isEmpty(e))throw ze.createEmptyHashError(e);if(this.browserStorage.setInteractionInProgress(!1),s=this.browserStorage.generateStateKey(i),!(a=this.browserStorage.getTemporaryCache(s)))throw nt.createStateNotFoundError("Cached State");try{l=this.authModule.handleFragmentResponse(e,a)}catch(y){throw y instanceof cl&&y.subError===Re_userCancelledError_code?ze.createUserCancelledError():y}return c=this.browserStorage.generateNonceKey(a),u=this.browserStorage.getTemporaryCache(c),this.authCodeRequest.code=l.code,l.cloud_instance_host_name?[4,this.updateTokenEndpointAuthority(l.cloud_instance_host_name,r,o)]:[3,2];case 1:m.sent(),m.label=2;case 2:return l.nonce=u||void 0,l.state=a,l.client_info?this.authCodeRequest.clientInfo=l.client_info:(d=this.checkCcsCredentials())&&(this.authCodeRequest.ccsCredential=d),[4,this.authModule.acquireToken(this.authCodeRequest,l)];case 3:return h=m.sent(),this.browserStorage.cleanRequestByState(i),[2,h]}})})},t}(dC),EG=function(n){function t(e,i,r,o,s,a,l,c,u,d){var h=n.call(this,e,i,r,o,s,a,l,u,d)||this;return h.nativeStorage=c,h}return Ci(t,n),t.prototype.acquireToken=function(e){return Oe(this,void 0,void 0,function(){var i,r,o,s,a,l,c,u,d,h=this;return Pe(this,function(m){switch(m.label){case 0:return[4,this.initializeAuthorizationRequest(e,$e.Redirect)];case 1:i=m.sent(),this.browserStorage.updateCacheEntries(i.state,i.nonce,i.authority,i.loginHint||ee.EMPTY_STRING,i.account||null),r=this.initializeServerTelemetryManager(bn.acquireTokenRedirect),o=function(y){y.persisted&&(h.logger.verbose("Page was restored from back/forward cache. Clearing temporary cache."),h.browserStorage.cleanRequestByState(i.state))},m.label=2;case 2:return m.trys.push([2,7,,8]),[4,this.initializeAuthorizationCodeRequest(i)];case 3:return s=m.sent(),[4,this.createAuthCodeClient(r,i.authority,i.azureCloudOptions)];case 4:return a=m.sent(),this.logger.verbose("Auth code client created"),l=new HI(a,this.browserStorage,s,this.logger,this.browserCrypto),[4,a.getAuthCodeUrl(ct(ct({},i),{nativeBroker:dl.isNativeAvailable(this.config,this.logger,this.nativeMessageHandler,e.authenticationScheme)}))];case 5:return c=m.sent(),u=this.getRedirectStartPage(e.redirectStartPage),this.logger.verbosePii("Redirect start page: "+u),window.addEventListener("pageshow",o),[4,l.initiateAuthRequest(c,{navigationClient:this.navigationClient,redirectTimeout:this.config.system.redirectNavigationTimeout,redirectStartPage:u,onRedirectNavigate:e.onRedirectNavigate})];case 6:return[2,m.sent()];case 7:throw(d=m.sent())instanceof ut&&d.setCorrelationId(this.correlationId),window.removeEventListener("pageshow",o),r.cacheFailedRequest(d),this.browserStorage.cleanRequestByState(i.state),d;case 8:return[2]}})})},t.prototype.handleRedirectPromise=function(e){return Oe(this,void 0,void 0,function(){var i,r,o,s,a,l,c,u,d,h,m,y;return Pe(this,function(A){switch(A.label){case 0:i=this.initializeServerTelemetryManager(bn.handleRedirectPromise),A.label=1;case 1:if(A.trys.push([1,10,,11]),!this.browserStorage.isInteractionInProgress(!0))return this.logger.info("handleRedirectPromise called but there is no interaction in progress, returning null."),[2,null];if(!(r=this.getRedirectResponseHash(e||window.location.hash)))return this.logger.info("handleRedirectPromise did not detect a response hash as a result of a redirect. Cleaning temporary cache."),this.browserStorage.cleanRequestByInteractionType($e.Redirect),[2,null];o=void 0;try{s=nn.getDeserializedHash(r),o=this.validateAndExtractStateFromHash(s,$e.Redirect),this.logger.verbose("State extracted from hash")}catch(U){return this.logger.info("handleRedirectPromise was unable to extract state due to: "+U),this.browserStorage.cleanRequestByInteractionType($e.Redirect),[2,null]}return a=this.browserStorage.getTemporaryCache(an.ORIGIN_URI,!0)||ee.EMPTY_STRING,l=nn.removeHashFromUrl(a),c=nn.removeHashFromUrl(window.location.href),l===c&&this.config.auth.navigateToLoginRequestUrl?(this.logger.verbose("Current page is loginRequestUrl, handling hash"),[4,this.handleHash(r,o,i)]):[3,3];case 2:return u=A.sent(),a.indexOf("#")>-1&&Fn.replaceHash(a),[2,u];case 3:return this.config.auth.navigateToLoginRequestUrl?[3,4]:(this.logger.verbose("NavigateToLoginRequestUrl set to false, handling hash"),[2,this.handleHash(r,o,i)]);case 4:return!Fn.isInIframe()||this.config.system.allowRedirectInIframe?(this.browserStorage.setTemporaryCache(an.URL_HASH,r,!0),d={apiId:bn.handleRedirectPromise,timeout:this.config.system.redirectNavigationTimeout,noHistory:!0},h=!0,a&&"null"!==a?[3,6]:(m=Fn.getHomepage(),this.browserStorage.setTemporaryCache(an.ORIGIN_URI,m,!0),this.logger.warning("Unable to get valid login request url from cache, redirecting to home page"),[4,this.navigationClient.navigateInternal(m,d)])):[3,9];case 5:return h=A.sent(),[3,8];case 6:return this.logger.verbose("Navigating to loginRequestUrl: "+a),[4,this.navigationClient.navigateInternal(a,d)];case 7:h=A.sent(),A.label=8;case 8:if(!h)return[2,this.handleHash(r,o,i)];A.label=9;case 9:return[2,null];case 10:throw(y=A.sent())instanceof ut&&y.setCorrelationId(this.correlationId),i.cacheFailedRequest(y),this.browserStorage.cleanRequestByInteractionType($e.Redirect),y;case 11:return[2]}})})},t.prototype.getRedirectResponseHash=function(e){if(this.logger.verbose("getRedirectResponseHash called"),nn.hashContainsKnownProperties(e))return Fn.clearHash(window),this.logger.verbose("Hash contains known properties, returning response hash"),e;var r=this.browserStorage.getTemporaryCache(an.URL_HASH,!0);return this.browserStorage.removeItem(this.browserStorage.generateCacheKey(an.URL_HASH)),this.logger.verbose("Hash does not contain known properties, returning cached hash"),r},t.prototype.handleHash=function(e,i,r){return Oe(this,void 0,void 0,function(){var o,s,a,l,c,u,h=this;return Pe(this,function(m){switch(m.label){case 0:if(o=this.browserStorage.getCachedRequest(i,this.browserCrypto),this.logger.verbose("handleHash called, retrieved cached request"),(s=nn.getDeserializedHash(e)).accountId){if(this.logger.verbose("Account id found in hash, calling WAM for token"),!this.nativeMessageHandler)throw ze.createNativeConnectionNotEstablishedError();return a=new $c(this.config,this.browserStorage,this.browserCrypto,this.logger,this.eventHandler,this.navigationClient,bn.acquireTokenPopup,this.performanceClient,this.nativeMessageHandler,s.accountId,this.browserStorage,o.correlationId),l=js.parseRequestState(this.browserCrypto,i).userRequestState,[2,a.acquireToken(ct(ct({},o),{state:l,prompt:void 0})).finally(function(){h.browserStorage.cleanRequestByState(i)})]}if(!(c=this.browserStorage.getCachedAuthority(i)))throw ze.createNoCachedAuthorityError();return[4,this.createAuthCodeClient(r,c)];case 1:return u=m.sent(),this.logger.verbose("Auth code client created"),bm.removeThrottle(this.browserStorage,this.config.auth.clientId,o),[4,new HI(u,this.browserStorage,o,this.logger,this.browserCrypto).handleCodeResponseFromHash(e,i,u.authority,this.networkClient)];case 2:return[2,m.sent()]}})})},t.prototype.logout=function(e){return Oe(this,void 0,void 0,function(){var i,r,o,s,a,c;return Pe(this,function(u){switch(u.label){case 0:this.logger.verbose("logoutRedirect called"),i=this.initializeLogoutRequest(e),r=this.initializeServerTelemetryManager(bn.logout),u.label=1;case 1:return u.trys.push([1,10,,11]),this.eventHandler.emitEvent(st.LOGOUT_START,$e.Redirect,e),[4,this.clearCacheOnLogout(i.account)];case 2:return u.sent(),o={apiId:bn.logout,timeout:this.config.system.redirectNavigationTimeout,noHistory:!1},[4,this.createAuthCodeClient(r,e&&e.authority)];case 3:return s=u.sent(),this.logger.verbose("Auth code client created"),a=s.getLogoutUri(i),this.eventHandler.emitEvent(st.LOGOUT_SUCCESS,$e.Redirect,i),e&&"function"==typeof e.onRedirectNavigate?!1===e.onRedirectNavigate(a)?[3,5]:(this.logger.verbose("Logout onRedirectNavigate did not return false, navigating"),this.browserStorage.getInteractionInProgress()||this.browserStorage.setInteractionInProgress(!0),[4,this.navigationClient.navigateExternal(a,o)]):[3,7];case 4:return u.sent(),[2];case 5:this.browserStorage.setInteractionInProgress(!1),this.logger.verbose("Logout onRedirectNavigate returned false, stopping navigation"),u.label=6;case 6:return[3,9];case 7:return this.browserStorage.getInteractionInProgress()||this.browserStorage.setInteractionInProgress(!0),[4,this.navigationClient.navigateExternal(a,o)];case 8:return u.sent(),[2];case 9:return[3,11];case 10:throw(c=u.sent())instanceof ut&&c.setCorrelationId(this.correlationId),r.cacheFailedRequest(c),this.eventHandler.emitEvent(st.LOGOUT_FAILURE,$e.Redirect,null,c),this.eventHandler.emitEvent(st.LOGOUT_END,$e.Redirect),c;case 11:return this.eventHandler.emitEvent(st.LOGOUT_END,$e.Redirect),[2]}})})},t.prototype.getRedirectStartPage=function(e){var i=e||window.location.href;return nn.getAbsoluteUrl(i,Fn.getCurrentUri())},t}(Wc),VI=function(n){function t(e,i,r,o,s){var a=n.call(this,e,i,r,o)||this;return a.navigateFrameWait=s,a}return Ci(t,n),t.prototype.initiateAuthRequest=function(e){return Oe(this,void 0,void 0,function(){var i;return Pe(this,function(r){switch(r.label){case 0:if(Ke.isEmpty(e))throw this.logger.info("Navigate url is empty"),ze.createEmptyNavigationUriError();return this.navigateFrameWait?[4,this.loadFrame(e)]:[3,2];case 1:return i=r.sent(),[3,3];case 2:i=this.loadFrameSync(e),r.label=3;case 3:return[2,i]}})})},t.prototype.monitorIframeForHash=function(e,i){var r=this;return new Promise(function(o,s){i<6e3&&r.logger.warning("system.loadFrameTimeout or system.iframeHashTimeout set to lower ("+i+"ms) than the default (6000ms). This may result in timeouts.");var l=window.performance.now()+i,c=setInterval(function(){if(window.performance.now()>l)return r.removeHiddenIframe(e),clearInterval(c),void s(ze.createMonitorIframeTimeoutError());var u=ee.EMPTY_STRING,d=e.contentWindow;try{u=d?d.location.href:ee.EMPTY_STRING}catch{}if(!Ke.isEmpty(u)){var h=d?d.location.hash:ee.EMPTY_STRING;if(nn.hashContainsKnownProperties(h))return r.removeHiddenIframe(e),clearInterval(c),void o(h)}},50)})},t.prototype.loadFrame=function(e){var i=this;return new Promise(function(r,o){var s=i.createHiddenIframe();setTimeout(function(){s?(s.src=e,r(s)):o("Unable to load iframe")},i.navigateFrameWait)})},t.prototype.loadFrameSync=function(e){var i=this.createHiddenIframe();return i.src=e,i},t.prototype.createHiddenIframe=function(){var e=document.createElement("iframe");return e.style.visibility="hidden",e.style.position="absolute",e.style.width=e.style.height="0",e.style.border="0",e.setAttribute("sandbox","allow-scripts allow-same-origin allow-forms"),document.getElementsByTagName("body")[0].appendChild(e),e},t.prototype.removeHiddenIframe=function(e){document.body===e.parentNode&&document.body.removeChild(e)},t}(dC),DG=function(n){function t(e,i,r,o,s,a,l,c,u,d,h){var m=n.call(this,e,i,r,o,s,a,c,d,h)||this;return m.apiId=l,m.nativeStorage=u,m}return Ci(t,n),t.prototype.acquireToken=function(e){return Oe(this,void 0,void 0,function(){var i,r,o,s,a;return Pe(this,function(l){switch(l.label){case 0:if(this.logger.verbose("acquireTokenByIframe called"),i=this.performanceClient.startMeasurement(ci.SilentIframeClientAcquireToken,e.correlationId),Ke.isEmpty(e.loginHint)&&Ke.isEmpty(e.sid)&&(!e.account||Ke.isEmpty(e.account.username))&&this.logger.warning("No user hint provided. The authorization server may need more information to complete this request."),e.prompt&&e.prompt!==Li.NONE)throw i.endMeasurement({success:!1}),ze.createSilentPromptValueError(e.prompt);return[4,this.initializeAuthorizationRequest(ct(ct({},e),{prompt:Li.NONE}),$e.Silent)];case 1:r=l.sent(),this.browserStorage.updateCacheEntries(r.state,r.nonce,r.authority,r.loginHint||ee.EMPTY_STRING,r.account||null),o=this.initializeServerTelemetryManager(this.apiId),l.label=2;case 2:return l.trys.push([2,5,,6]),[4,this.createAuthCodeClient(o,r.authority,r.azureCloudOptions)];case 3:return s=l.sent(),this.logger.verbose("Auth code client created"),[4,this.silentTokenHelper(s,r).then(function(c){return i.endMeasurement({success:!0,fromCache:!1}),c})];case 4:return[2,l.sent()];case 5:throw(a=l.sent())instanceof ut&&a.setCorrelationId(this.correlationId),o.cacheFailedRequest(a),this.browserStorage.cleanRequestByState(r.state),i.endMeasurement({errorCode:a instanceof ut&&a.errorCode||void 0,subErrorCode:a instanceof ut&&a.subError||void 0,success:!1}),a;case 6:return[2]}})})},t.prototype.logout=function(){return Promise.reject(ze.createSilentLogoutUnsupportedError())},t.prototype.silentTokenHelper=function(e,i){return Oe(this,void 0,void 0,function(){var r,o,s,a,l,c,u,d,h,m=this;return Pe(this,function(y){switch(y.label){case 0:return[4,this.initializeAuthorizationCodeRequest(i)];case 1:return r=y.sent(),[4,e.getAuthCodeUrl(ct(ct({},i),{nativeBroker:dl.isNativeAvailable(this.config,this.logger,this.nativeMessageHandler,i.authenticationScheme)}))];case 2:return o=y.sent(),[4,(s=new VI(e,this.browserStorage,r,this.logger,this.config.system.navigateFrameWait)).initiateAuthRequest(o)];case 3:return a=y.sent(),[4,s.monitorIframeForHash(a,this.config.system.iframeHashTimeout)];case 4:if(l=y.sent(),c=nn.getDeserializedHash(l),u=this.validateAndExtractStateFromHash(c,$e.Silent,r.correlationId),c.accountId){if(this.logger.verbose("Account id found in hash, calling WAM for token"),!this.nativeMessageHandler)throw ze.createNativeConnectionNotEstablishedError();return d=new $c(this.config,this.browserStorage,this.browserCrypto,this.logger,this.eventHandler,this.navigationClient,this.apiId,this.performanceClient,this.nativeMessageHandler,c.accountId,this.browserStorage,this.correlationId),h=js.parseRequestState(this.browserCrypto,u).userRequestState,[2,d.acquireToken(ct(ct({},i),{state:h,prompt:Li.NONE})).finally(function(){m.browserStorage.cleanRequestByState(u)})]}return[2,s.handleCodeResponseFromHash(l,u,e.authority,this.networkClient)]}})})},t}(Wc),SG=function(n){function t(){return null!==n&&n.apply(this,arguments)||this}return Ci(t,n),t.prototype.acquireToken=function(e){return Oe(this,void 0,void 0,function(){var i,r,o,s,a,l=this;return Pe(this,function(c){switch(c.label){case 0:return r=[ct({},e)],[4,this.initializeBaseRequest(e)];case 1:return i=ct.apply(void 0,r.concat([c.sent()])),o=this.performanceClient.startMeasurement(ci.SilentRefreshClientAcquireToken,i.correlationId),s=this.initializeServerTelemetryManager(bn.acquireTokenSilent_silentFlow),[4,this.createRefreshTokenClient(s,i.authority,i.azureCloudOptions)];case 2:return a=c.sent(),this.logger.verbose("Refresh token client created"),[2,a.acquireTokenByRefreshToken(i).then(function(u){return o.endMeasurement({success:!0,fromCache:u.fromCache}),u}).catch(function(u){throw u instanceof ut&&u.setCorrelationId(l.correlationId),s.cacheFailedRequest(u),o.endMeasurement({errorCode:u.errorCode,subErrorCode:u.subError,success:!1}),u})]}})})},t.prototype.logout=function(){return Promise.reject(ze.createSilentLogoutUnsupportedError())},t.prototype.createRefreshTokenClient=function(e,i,r){return Oe(this,void 0,void 0,function(){var o;return Pe(this,function(s){switch(s.label){case 0:return[4,this.getClientConfiguration(e,i,r)];case 1:return o=s.sent(),[2,new BI(o,this.performanceClient)]}})})},t}(Wc),AG=function(){function n(t,e,i,r){this.isBrowserEnvironment=typeof window<"u",this.config=t,this.storage=e,this.logger=i,this.cryptoObj=r}return n.prototype.loadExternalTokens=function(t,e,i){if(this.logger.info("TokenCache - loadExternalTokens called"),!e.id_token)throw ze.createUnableToLoadTokenError("Please ensure server response includes id token.");if(t.account)this.loadIdToken(e.id_token,t.account.homeAccountId,t.account.environment,t.account.tenantId,i),this.loadAccessToken(t,e,t.account.homeAccountId,t.account.environment,t.account.tenantId,i);else{if(!t.authority)throw ze.createUnableToLoadTokenError("Please provide a request with an account or a request with authority.");var r=Em.generateAuthority(t.authority,t.azureCloudOptions),s=new Em(r,this.config.system.networkClient,this.storage,{protocolMode:this.config.auth.protocolMode,knownAuthorities:this.config.auth.knownAuthorities,cloudDiscoveryMetadata:this.config.auth.cloudDiscoveryMetadata,authorityMetadata:this.config.auth.authorityMetadata,skipAuthorityMetadataCache:this.config.auth.skipAuthorityMetadataCache});if(i.clientInfo)this.logger.trace("TokenCache - homeAccountId from options"),this.loadIdToken(e.id_token,i.clientInfo,s.hostnameAndPort,s.tenant,i),this.loadAccessToken(t,e,i.clientInfo,s.hostnameAndPort,s.tenant,i);else{if(!e.client_info)throw ze.createUnableToLoadTokenError("Please provide clientInfo in the response or options.");this.logger.trace("TokenCache - homeAccountId from response"),this.loadIdToken(e.id_token,e.client_info,s.hostnameAndPort,s.tenant,i),this.loadAccessToken(t,e,e.client_info,s.hostnameAndPort,s.tenant,i)}}},n.prototype.loadIdToken=function(t,e,i,r,o){var s=Wd.createIdTokenEntity(e,i,t,this.config.auth.clientId,r),a=new va(t,this.cryptoObj),l=o.clientInfo?Fi.createAccount(o.clientInfo,e,a,void 0,void 0,void 0,i):Fi.createGenericAccount(e,a,void 0,void 0,void 0,i);if(!this.isBrowserEnvironment)throw ze.createUnableToLoadTokenError("loadExternalTokens is designed to work in browser environments only.");this.logger.verbose("TokenCache - loading id token"),this.storage.setAccount(l),this.storage.setIdTokenCredential(s)},n.prototype.loadAccessToken=function(t,e,i,r,o,s){if(e.access_token){if(!e.expires_in)throw ze.createUnableToLoadTokenError("Please ensure server response includes expires_in value.");if(!s.extendedExpiresOn)throw ze.createUnableToLoadTokenError("Please provide an extendedExpiresOn value in the options.");var a=new fr(t.scopes).printScopes(),l=s.expiresOn||e.expires_in+(new Date).getTime()/1e3,u=$d.createAccessTokenEntity(i,r,e.access_token,this.config.auth.clientId,o,a,l,s.extendedExpiresOn,this.cryptoObj);if(!this.isBrowserEnvironment)throw ze.createUnableToLoadTokenError("loadExternalTokens is designed to work in browser environments only.");this.logger.verbose("TokenCache - loading access token"),this.storage.setAccessTokenCredential(u)}else this.logger.verbose("TokenCache - No access token provided for caching")},n}(),TG=function(n){function t(e){var i=n.call(this,e)||this;return i.includeRedirectUri=!1,i}return Ci(t,n),t}(OI),xG=function(n){function t(e,i,r,o,s,a,l,c,u,d){var h=n.call(this,e,i,r,o,s,a,c,u,d)||this;return h.apiId=l,h}return Ci(t,n),t.prototype.acquireToken=function(e){return Oe(this,void 0,void 0,function(){var i,r,o,s,a,c;return Pe(this,function(u){switch(u.label){case 0:if(this.logger.trace("SilentAuthCodeClient.acquireToken called"),!e.code)throw ze.createAuthCodeRequiredError();return[4,this.initializeAuthorizationRequest(e,$e.Silent)];case 1:i=u.sent(),this.browserStorage.updateCacheEntries(i.state,i.nonce,i.authority,i.loginHint||ee.EMPTY_STRING,i.account||null),r=this.initializeServerTelemetryManager(this.apiId),u.label=2;case 2:return u.trys.push([2,4,,5]),o=ct(ct({},i),{code:e.code}),[4,this.getClientConfiguration(r,i.authority)];case 3:return s=u.sent(),a=new TG(s),this.logger.verbose("Auth code client created"),[2,new VI(a,this.browserStorage,o,this.logger,this.config.system.navigateFrameWait).handleCodeResponseFromServer({code:e.code,msgraph_host:e.msGraphHost,cloud_graph_host_name:e.cloudGraphHostName,cloud_instance_host_name:e.cloudInstanceHostName},i.state,a.authority,this.networkClient,!1)];case 4:throw(c=u.sent())instanceof ut&&c.setCorrelationId(this.correlationId),r.cacheFailedRequest(c),this.browserStorage.cleanRequestByState(i.state),c;case 5:return[2]}})})},t.prototype.logout=function(){return Promise.reject(ze.createSilentLogoutUnsupportedError())},t}(Wc),IG=function(){function n(t,e){this.correlationId=e,this.measureName="msal.measure."+t+"."+this.correlationId,this.startMark="msal.start."+t+"."+this.correlationId,this.endMark="msal.end."+t+"."+this.correlationId}return n.supportsBrowserPerformance=function(){return typeof window<"u"&&typeof window.performance<"u"&&"function"==typeof window.performance.mark&&"function"==typeof window.performance.measure&&"function"==typeof window.performance.clearMarks&&"function"==typeof window.performance.clearMeasures&&"function"==typeof window.performance.getEntriesByName},n.prototype.startMeasurement=function(){if(n.supportsBrowserPerformance())try{window.performance.mark(this.startMark)}catch{}},n.prototype.endMeasurement=function(){if(n.supportsBrowserPerformance())try{window.performance.mark(this.endMark),window.performance.measure(this.measureName,this.startMark,this.endMark)}catch{}},n.prototype.flushMeasurement=function(){if(n.supportsBrowserPerformance())try{var t=window.performance.getEntriesByName(this.measureName,"measure");if(t.length>0){var e=t[0].duration;return window.performance.clearMeasures(this.measureName),window.performance.clearMarks(this.startMark),window.performance.clearMarks(this.endMark),e}}catch{}return null},n}(),MG=function(n){function t(e,i,r,o,s,a){var l=n.call(this,e,i,r,o,s,a)||this;return l.browserCrypto=new mm(l.logger),l.guidGenerator=new wI(l.browserCrypto),l}return Ci(t,n),t.prototype.startPerformanceMeasuremeant=function(e,i){return new IG(e,i)},t.prototype.generateId=function(){return this.guidGenerator.generateGuid()},t.prototype.getPageVisibility=function(){var e;return(null===(e=document.visibilityState)||void 0===e?void 0:e.toString())||null},t.prototype.startMeasurement=function(e,i){var r=this,o=this.getPageVisibility(),s=n.prototype.startMeasurement.call(this,e,i);return ct(ct({},s),{endMeasurement:function(a){return s.endMeasurement(ct({startPageVisibility:o,endPageVisibility:r.getPageVisibility()},a))}})},t}(AI),kG=function(){function n(t){this.isBrowserEnvironment=typeof window<"u",this.config=function hG(n,t){var e=n.auth,i=n.cache,r=n.system,o=n.telemetry,s={clientId:ee.EMPTY_STRING,authority:""+ee.DEFAULT_AUTHORITY,knownAuthorities:[],cloudDiscoveryMetadata:ee.EMPTY_STRING,authorityMetadata:ee.EMPTY_STRING,redirectUri:ee.EMPTY_STRING,postLogoutRedirectUri:ee.EMPTY_STRING,navigateToLoginRequestUrl:!0,clientCapabilities:[],protocolMode:Kd.AAD,azureCloudOptions:{azureCloudInstance:qc.None,tenant:ee.EMPTY_STRING},skipAuthorityMetadataCache:!1},a={cacheLocation:pi.SessionStorage,storeAuthStateInCookie:!1,secureCookies:!1},l={loggerCallback:function(){},logLevel:mi.Info,piiLoggingEnabled:!1},c=ct(ct({},RI),{loggerOptions:l,networkClient:t?Fn.getBrowserNetworkClient():oG,navigationClient:new lG,loadFrameTimeout:0,windowHashTimeout:r?.loadFrameTimeout||6e4,iframeHashTimeout:r?.loadFrameTimeout||6e3,navigateFrameWait:t&&Fn.detectIEOrEdge()?500:0,redirectNavigationTimeout:3e4,asyncPopups:!1,allowRedirectInIframe:!1,allowNativeBroker:!1,nativeBrokerHandshakeTimeout:r?.nativeBrokerHandshakeTimeout||2e3}),u={application:{appName:ee.EMPTY_STRING,appVersion:ee.EMPTY_STRING}};return{auth:ct(ct({},s),e),cache:ct(ct({},a),i),system:ct(ct({},c),r),telemetry:ct(ct({},u),o)}}(t,this.isBrowserEnvironment),this.initialized=!1,this.logger=new SI(this.config.system.loggerOptions,cC,Yd),this.networkClient=this.config.system.networkClient,this.navigationClient=this.config.system.navigationClient,this.redirectResponse=new Map,this.hybridAuthCodeResponses=new Map,this.performanceClient=this.isBrowserEnvironment?new MG(this.config.auth.clientId,this.config.auth.authority,this.logger,cC,Yd,this.config.telemetry.application):new G7(this.config.auth.clientId,this.config.auth.authority,this.logger,cC,Yd,this.config.telemetry.application),this.browserCrypto=this.isBrowserEnvironment?new q7(this.logger,this.performanceClient):gm,this.eventHandler=new pG(this.logger,this.browserCrypto),this.browserStorage=this.isBrowserEnvironment?new aC(this.config.auth.clientId,this.config.cache,this.browserCrypto,this.logger):function(n,t){return new aC(n,{cacheLocation:pi.MemoryStorage,storeAuthStateInCookie:!1,secureCookies:!1},gm,t)}(this.config.auth.clientId,this.logger),this.nativeInternalStorage=new aC(this.config.auth.clientId,{cacheLocation:pi.MemoryStorage,storeAuthStateInCookie:!1,secureCookies:!1},this.browserCrypto,this.logger),this.tokenCache=new AG(this.config,this.browserStorage,this.logger,this.browserCrypto)}return n.prototype.initialize=function(){return Oe(this,void 0,void 0,function(){var t,e;return Pe(this,function(i){switch(i.label){case 0:if(this.logger.trace("initialize called"),this.initialized)return this.logger.info("initialize has already been called, exiting early."),[2];if(this.eventHandler.emitEvent(st.INITIALIZE_START),!this.config.system.allowNativeBroker)return[3,4];i.label=1;case 1:return i.trys.push([1,3,,4]),t=this,[4,dl.createProvider(this.logger,this.config.system.nativeBrokerHandshakeTimeout)];case 2:return t.nativeExtensionProvider=i.sent(),[3,4];case 3:return e=i.sent(),this.logger.verbose(e),[3,4];case 4:return this.initialized=!0,this.eventHandler.emitEvent(st.INITIALIZE_END),[2]}})})},n.prototype.handleRedirectPromise=function(t){return Oe(this,void 0,void 0,function(){var e,i,r,o,s,a,l,c,u=this;return Pe(this,function(d){return this.logger.verbose("handleRedirectPromise called"),Fn.blockNativeBrokerCalledBeforeInitialized(this.config.system.allowNativeBroker,this.initialized),e=this.getAllAccounts(),this.isBrowserEnvironment?(typeof(r=this.redirectResponse.get(i=t||ee.EMPTY_STRING))>"u"?(this.eventHandler.emitEvent(st.HANDLE_REDIRECT_START,$e.Redirect),this.logger.verbose("handleRedirectPromise has been called for the first time, storing the promise"),o=this.browserStorage.getCachedNativeRequest(),s=void 0,o&&dl.isNativeAvailable(this.config,this.logger,this.nativeExtensionProvider)&&this.nativeExtensionProvider&&!t?(this.logger.trace("handleRedirectPromise - acquiring token from native platform"),a=new $c(this.config,this.browserStorage,this.browserCrypto,this.logger,this.eventHandler,this.navigationClient,bn.handleRedirectPromise,this.performanceClient,this.nativeExtensionProvider,o.accountId,this.nativeInternalStorage,o.correlationId),s=a.handleRedirectPromise()):(this.logger.trace("handleRedirectPromise - acquiring token from web flow"),l=this.browserStorage.getTemporaryCache(an.CORRELATION_ID,!0)||ee.EMPTY_STRING,c=this.createRedirectClient(l),s=c.handleRedirectPromise(t)),r=s.then(function(h){return h&&(e.length0?st.ACQUIRE_TOKEN_FAILURE:st.LOGIN_FAILURE,$e.Redirect,null,h),u.eventHandler.emitEvent(st.HANDLE_REDIRECT_END,$e.Redirect),h}),this.redirectResponse.set(i,r)):this.logger.verbose("handleRedirectPromise has been called previously, returning the result from the first call"),[2,r]):(this.logger.verbose("handleRedirectPromise returns null, not browser environment"),[2,null])})})},n.prototype.acquireTokenRedirect=function(t){return Oe(this,void 0,void 0,function(){var e,i,r,o,s,a=this;return Pe(this,function(l){return e=this.getRequestCorrelationId(t),this.logger.verbose("acquireTokenRedirect called",e),this.preflightBrowserEnvironmentCheck($e.Redirect),i=this.getAllAccounts().length>0,this.eventHandler.emitEvent(i?st.ACQUIRE_TOKEN_START:st.LOGIN_START,$e.Redirect,t),this.nativeExtensionProvider&&this.canUseNative(t)?(o=new $c(this.config,this.browserStorage,this.browserCrypto,this.logger,this.eventHandler,this.navigationClient,bn.acquireTokenRedirect,this.performanceClient,this.nativeExtensionProvider,this.getNativeAccountId(t),this.nativeInternalStorage,t.correlationId),r=o.acquireTokenRedirect(t).catch(function(c){if(c instanceof ts&&c.isFatal())return a.nativeExtensionProvider=void 0,a.createRedirectClient(t.correlationId).acquireToken(t);if(c instanceof xo)return a.logger.verbose("acquireTokenRedirect - Resolving interaction required error thrown by native broker by falling back to web flow"),a.createRedirectClient(t.correlationId).acquireToken(t);throw a.browserStorage.setInteractionInProgress(!1),c})):(s=this.createRedirectClient(t.correlationId),r=s.acquireToken(t)),[2,r.catch(function(c){throw a.eventHandler.emitEvent(i?st.ACQUIRE_TOKEN_FAILURE:st.LOGIN_FAILURE,$e.Redirect,null,c),c})]})})},n.prototype.acquireTokenPopup=function(t){var e=this,i=this.getRequestCorrelationId(t),r=this.performanceClient.startMeasurement(ci.AcquireTokenPopup,i);try{this.logger.verbose("acquireTokenPopup called",i),this.preflightBrowserEnvironmentCheck($e.Popup)}catch(l){return Promise.reject(l)}var o=this.getAllAccounts();return this.eventHandler.emitEvent(o.length>0?st.ACQUIRE_TOKEN_START:st.LOGIN_START,$e.Popup,t),(this.canUseNative(t)?this.acquireTokenNative(t,bn.acquireTokenPopup).then(function(l){return e.browserStorage.setInteractionInProgress(!1),r.endMeasurement({success:!0,isNativeBroker:!0,accessTokenSize:l.accessToken.length,idTokenSize:l.idToken.length}),r.flushMeasurement(),l}).catch(function(l){if(l instanceof ts&&l.isFatal())return e.nativeExtensionProvider=void 0,e.createPopupClient(t.correlationId).acquireToken(t);if(l instanceof xo)return e.logger.verbose("acquireTokenPopup - Resolving interaction required error thrown by native broker by falling back to web flow"),e.createPopupClient(t.correlationId).acquireToken(t);throw e.browserStorage.setInteractionInProgress(!1),l}):this.createPopupClient(t.correlationId).acquireToken(t)).then(function(l){var c=o.length0?st.ACQUIRE_TOKEN_FAILURE:st.LOGIN_FAILURE,$e.Popup,null,l),r.endMeasurement({errorCode:l.errorCode,subErrorCode:l.subError,success:!1}),r.flushMeasurement(),Promise.reject(l)})},n.prototype.ssoSilent=function(t){return Oe(this,void 0,void 0,function(){var e,i,r,o,s,a=this;return Pe(this,function(l){return e=this.getRequestCorrelationId(t),i=ct(ct({},t),{prompt:Li.NONE,correlationId:e}),this.preflightBrowserEnvironmentCheck($e.Silent),r=this.performanceClient.startMeasurement(ci.SsoSilent,e),this.logger.verbose("ssoSilent called",e),this.eventHandler.emitEvent(st.SSO_SILENT_START,$e.Silent,i),this.canUseNative(i)?o=this.acquireTokenNative(i,bn.ssoSilent).catch(function(c){if(c instanceof ts&&c.isFatal())return a.nativeExtensionProvider=void 0,a.createSilentIframeClient(i.correlationId).acquireToken(i);throw c}):(s=this.createSilentIframeClient(i.correlationId),o=s.acquireToken(i)),[2,o.then(function(c){return a.eventHandler.emitEvent(st.SSO_SILENT_SUCCESS,$e.Silent,c),r.endMeasurement({success:!0,isNativeBroker:c.fromNativeBroker,accessTokenSize:c.accessToken.length,idTokenSize:c.idToken.length}),r.flushMeasurement(),c}).catch(function(c){throw a.eventHandler.emitEvent(st.SSO_SILENT_FAILURE,$e.Silent,null,c),r.endMeasurement({errorCode:c.errorCode,subErrorCode:c.subError,success:!1}),r.flushMeasurement(),c})]})})},n.prototype.acquireTokenByCode=function(t){return Oe(this,void 0,void 0,function(){var e,i,r,o,s=this;return Pe(this,function(a){e=this.getRequestCorrelationId(t),this.preflightBrowserEnvironmentCheck($e.Silent),this.logger.trace("acquireTokenByCode called",e),this.eventHandler.emitEvent(st.ACQUIRE_TOKEN_BY_CODE_START,$e.Silent,t),i=this.performanceClient.startMeasurement(ci.AcquireTokenByCode,t.correlationId);try{if(t.code)return(o=this.hybridAuthCodeResponses.get(r=t.code))?(this.logger.verbose("Existing acquireTokenByCode request found",t.correlationId),i.endMeasurement({success:!0}),i.discardMeasurement()):(this.logger.verbose("Initiating new acquireTokenByCode request",e),o=this.acquireTokenByCodeAsync(ct(ct({},t),{correlationId:e})).then(function(l){return s.eventHandler.emitEvent(st.ACQUIRE_TOKEN_BY_CODE_SUCCESS,$e.Silent,l),s.hybridAuthCodeResponses.delete(r),i.endMeasurement({success:!0,accessTokenSize:l.accessToken.length,idTokenSize:l.idToken.length,isNativeBroker:l.fromNativeBroker}),i.flushMeasurement(),l}).catch(function(l){throw s.hybridAuthCodeResponses.delete(r),s.eventHandler.emitEvent(st.ACQUIRE_TOKEN_BY_CODE_FAILURE,$e.Silent,null,l),i.endMeasurement({errorCode:l.errorCode,subErrorCode:l.subError,success:!1}),i.flushMeasurement(),l}),this.hybridAuthCodeResponses.set(r,o)),[2,o];if(t.nativeAccountId){if(this.canUseNative(t,t.nativeAccountId))return[2,this.acquireTokenNative(t,bn.acquireTokenByCode,t.nativeAccountId).catch(function(l){throw l instanceof ts&&l.isFatal()&&(s.nativeExtensionProvider=void 0),l})];throw ze.createUnableToAcquireTokenFromNativePlatformError()}throw ze.createAuthCodeOrNativeAccountIdRequiredError()}catch(l){throw this.eventHandler.emitEvent(st.ACQUIRE_TOKEN_BY_CODE_FAILURE,$e.Silent,null,l),i.endMeasurement({errorCode:l instanceof ut&&l.errorCode||void 0,subErrorCode:l instanceof ut&&l.subError||void 0,success:!1}),l}return[2]})})},n.prototype.acquireTokenByCodeAsync=function(t){return Oe(this,void 0,void 0,function(){return Pe(this,function(r){switch(r.label){case 0:return this.logger.trace("acquireTokenByCodeAsync called",t.correlationId),[4,this.createSilentAuthCodeClient(t.correlationId).acquireToken(t)];case 1:return[2,r.sent()]}})})},n.prototype.acquireTokenByRefreshToken=function(t){return Oe(this,void 0,void 0,function(){var e,r=this;return Pe(this,function(o){return Fn.blockReloadInHiddenIframes(),e=this.performanceClient.startMeasurement(ci.AcquireTokenByRefreshToken,t.correlationId),this.eventHandler.emitEvent(st.ACQUIRE_TOKEN_NETWORK_START,$e.Silent,t),[2,this.createSilentRefreshClient(t.correlationId).acquireToken(t).then(function(s){return e.endMeasurement({success:!0,fromCache:s.fromCache,accessTokenSize:s.accessToken.length,idTokenSize:s.idToken.length}),s}).catch(function(s){if(s instanceof cl&&"invalid_grant"===s.errorCode&&!(s instanceof xo))return r.logger.verbose("Refresh token expired or invalid, attempting acquire token by iframe",t.correlationId),r.createSilentIframeClient(t.correlationId).acquireToken(t).then(function(d){return e.endMeasurement({success:!0,fromCache:d.fromCache,accessTokenSize:d.accessToken.length,idTokenSize:d.idToken.length}),d}).catch(function(d){throw e.endMeasurement({errorCode:d.errorCode,subErrorCode:d.subError,success:!1}),d});throw e.endMeasurement({success:!1}),s})]})})},n.prototype.logout=function(t){return Oe(this,void 0,void 0,function(){var e;return Pe(this,function(i){return e=this.getRequestCorrelationId(t),this.logger.warning("logout API is deprecated and will be removed in msal-browser v3.0.0. Use logoutRedirect instead.",e),[2,this.logoutRedirect(ct({correlationId:e},t))]})})},n.prototype.logoutRedirect=function(t){return Oe(this,void 0,void 0,function(){var e;return Pe(this,function(r){return e=this.getRequestCorrelationId(t),this.preflightBrowserEnvironmentCheck($e.Redirect),[2,this.createRedirectClient(e).logout(t)]})})},n.prototype.logoutPopup=function(t){try{var e=this.getRequestCorrelationId(t);return this.preflightBrowserEnvironmentCheck($e.Popup),this.createPopupClient(e).logout(t)}catch(r){return Promise.reject(r)}},n.prototype.getAllAccounts=function(){return this.logger.verbose("getAllAccounts called"),this.isBrowserEnvironment?this.browserStorage.getAllAccounts():[]},n.prototype.getAccountByUsername=function(t){var e=this.getAllAccounts();return!Ke.isEmpty(t)&&e&&e.length?(this.logger.verbose("Account matching username found, returning"),this.logger.verbosePii("Returning signed-in accounts matching username: "+t),e.filter(function(i){return i.username.toLowerCase()===t.toLowerCase()})[0]||null):(this.logger.verbose("getAccountByUsername: No matching account found, returning null"),null)},n.prototype.getAccountByHomeId=function(t){var e=this.getAllAccounts();return!Ke.isEmpty(t)&&e&&e.length?(this.logger.verbose("Account matching homeAccountId found, returning"),this.logger.verbosePii("Returning signed-in accounts matching homeAccountId: "+t),e.filter(function(i){return i.homeAccountId===t})[0]||null):(this.logger.verbose("getAccountByHomeId: No matching account found, returning null"),null)},n.prototype.getAccountByLocalId=function(t){var e=this.getAllAccounts();return!Ke.isEmpty(t)&&e&&e.length?(this.logger.verbose("Account matching localAccountId found, returning"),this.logger.verbosePii("Returning signed-in accounts matching localAccountId: "+t),e.filter(function(i){return i.localAccountId===t})[0]||null):(this.logger.verbose("getAccountByLocalId: No matching account found, returning null"),null)},n.prototype.setActiveAccount=function(t){this.browserStorage.setActiveAccount(t)},n.prototype.getActiveAccount=function(){return this.browserStorage.getActiveAccount()},n.prototype.preflightBrowserEnvironmentCheck=function(t,e){if(void 0===e&&(e=!0),this.logger.verbose("preflightBrowserEnvironmentCheck started"),Fn.blockNonBrowserEnvironment(this.isBrowserEnvironment),Fn.blockRedirectInIframe(t,this.config.system.allowRedirectInIframe),Fn.blockReloadInHiddenIframes(),Fn.blockAcquireTokenInPopups(),Fn.blockNativeBrokerCalledBeforeInitialized(this.config.system.allowNativeBroker,this.initialized),t===$e.Redirect&&this.config.cache.cacheLocation===pi.MemoryStorage&&!this.config.cache.storeAuthStateInCookie)throw ym.createInMemoryRedirectUnavailableError();(t===$e.Redirect||t===$e.Popup)&&this.preflightInteractiveRequest(e)},n.prototype.preflightInteractiveRequest=function(t){this.logger.verbose("preflightInteractiveRequest called, validating app environment"),Fn.blockReloadInHiddenIframes(),t&&this.browserStorage.setInteractionInProgress(!0)},n.prototype.acquireTokenNative=function(t,e,i){return Oe(this,void 0,void 0,function(){return Pe(this,function(o){if(this.logger.trace("acquireTokenNative called"),!this.nativeExtensionProvider)throw ze.createNativeConnectionNotEstablishedError();return[2,new $c(this.config,this.browserStorage,this.browserCrypto,this.logger,this.eventHandler,this.navigationClient,e,this.performanceClient,this.nativeExtensionProvider,i||this.getNativeAccountId(t),this.nativeInternalStorage,t.correlationId).acquireToken(t)]})})},n.prototype.canUseNative=function(t,e){if(this.logger.trace("canUseNative called"),!dl.isNativeAvailable(this.config,this.logger,this.nativeExtensionProvider,t.authenticationScheme))return this.logger.trace("canUseNative: isNativeAvailable returned false, returning false"),!1;if(t.prompt)switch(t.prompt){case Li.NONE:case Li.CONSENT:case Li.LOGIN:this.logger.trace("canUseNative: prompt is compatible with native flow");break;default:return this.logger.trace("canUseNative: prompt = "+t.prompt+" is not compatible with native flow, returning false"),!1}return!(!e&&!this.getNativeAccountId(t)&&(this.logger.trace("canUseNative: nativeAccountId is not available, returning false"),1))},n.prototype.getNativeAccountId=function(t){var e=t.account||this.browserStorage.getAccountInfoByHints(t.loginHint,t.sid)||this.getActiveAccount();return e&&e.nativeAccountId||""},n.prototype.createPopupClient=function(t){return new wG(this.config,this.browserStorage,this.browserCrypto,this.logger,this.eventHandler,this.navigationClient,this.performanceClient,this.nativeInternalStorage,this.nativeExtensionProvider,t)},n.prototype.createRedirectClient=function(t){return new EG(this.config,this.browserStorage,this.browserCrypto,this.logger,this.eventHandler,this.navigationClient,this.performanceClient,this.nativeInternalStorage,this.nativeExtensionProvider,t)},n.prototype.createSilentIframeClient=function(t){return new DG(this.config,this.browserStorage,this.browserCrypto,this.logger,this.eventHandler,this.navigationClient,bn.ssoSilent,this.performanceClient,this.nativeInternalStorage,this.nativeExtensionProvider,t)},n.prototype.createSilentCacheClient=function(t){return new jI(this.config,this.browserStorage,this.browserCrypto,this.logger,this.eventHandler,this.navigationClient,this.performanceClient,this.nativeExtensionProvider,t)},n.prototype.createSilentRefreshClient=function(t){return new SG(this.config,this.browserStorage,this.browserCrypto,this.logger,this.eventHandler,this.navigationClient,this.performanceClient,this.nativeExtensionProvider,t)},n.prototype.createSilentAuthCodeClient=function(t){return new xG(this.config,this.browserStorage,this.browserCrypto,this.logger,this.eventHandler,this.navigationClient,bn.acquireTokenByCode,this.performanceClient,this.nativeExtensionProvider,t)},n.prototype.addEventCallback=function(t){return this.eventHandler.addEventCallback(t)},n.prototype.removeEventCallback=function(t){this.eventHandler.removeEventCallback(t)},n.prototype.addPerformanceCallback=function(t){return this.performanceClient.addPerformanceCallback(t)},n.prototype.removePerformanceCallback=function(t){return this.performanceClient.removePerformanceCallback(t)},n.prototype.enableAccountStorageEvents=function(){this.eventHandler.enableAccountStorageEvents()},n.prototype.disableAccountStorageEvents=function(){this.eventHandler.disableAccountStorageEvents()},n.prototype.getTokenCache=function(){return this.tokenCache},n.prototype.getLogger=function(){return this.logger},n.prototype.setLogger=function(t){this.logger=t},n.prototype.initializeWrapperLibrary=function(t,e){this.browserStorage.setWrapperMetadata(t,e)},n.prototype.setNavigationClient=function(t){this.navigationClient=t},n.prototype.getConfiguration=function(){return this.config},n.prototype.getRequestCorrelationId=function(t){return t?.correlationId?t.correlationId:this.isBrowserEnvironment?this.browserCrypto.createNewGuid():ee.EMPTY_STRING},n}(),UI=function(n){function t(e){var i=n.call(this,e)||this;return i.activeSilentTokenRequests=new Map,i}return Ci(t,n),t.prototype.loginRedirect=function(e){return Oe(this,void 0,void 0,function(){var i;return Pe(this,function(r){return i=this.getRequestCorrelationId(e),this.logger.verbose("loginRedirect called",i),[2,this.acquireTokenRedirect(ct({correlationId:i},e||bI))]})})},t.prototype.loginPopup=function(e){var i=this.getRequestCorrelationId(e);return this.logger.verbose("loginPopup called",i),this.acquireTokenPopup(ct({correlationId:i},e||bI))},t.prototype.acquireTokenSilent=function(e){return Oe(this,void 0,void 0,function(){var i,r,o,a,l,c,u=this;return Pe(this,function(d){if(i=this.getRequestCorrelationId(e),r=this.performanceClient.startMeasurement(ci.AcquireTokenSilent,i),this.preflightBrowserEnvironmentCheck($e.Silent),this.logger.verbose("acquireTokenSilent called",i),!(o=e.account||this.getActiveAccount()))throw ze.createNoAccountError();return a=JSON.stringify({clientId:this.config.auth.clientId,authority:e.authority||ee.EMPTY_STRING,scopes:e.scopes,homeAccountIdentifier:o.homeAccountId,claims:e.claims,authenticationScheme:e.authenticationScheme,resourceRequestMethod:e.resourceRequestMethod,resourceRequestUri:e.resourceRequestUri,shrClaims:e.shrClaims,sshKid:e.sshKid}),typeof(l=this.activeSilentTokenRequests.get(a))>"u"?(this.logger.verbose("acquireTokenSilent called for the first time, storing active request",i),c=this.acquireTokenSilentAsync(ct(ct({},e),{correlationId:i}),o).then(function(h){return u.activeSilentTokenRequests.delete(a),r.endMeasurement({success:!0,fromCache:h.fromCache,accessTokenSize:h.accessToken.length,idTokenSize:h.idToken.length,isNativeBroker:h.fromNativeBroker}),r.flushMeasurement(),h}).catch(function(h){throw u.activeSilentTokenRequests.delete(a),r.endMeasurement({success:!1}),r.flushMeasurement(),h}),this.activeSilentTokenRequests.set(a,c),[2,c]):(this.logger.verbose("acquireTokenSilent has been called previously, returning the result from the first call",i),r.endMeasurement({success:!0}),r.discardMeasurement(),[2,l])})})},t.prototype.acquireTokenSilentAsync=function(e,i){return Oe(this,void 0,void 0,function(){var r,o,s,a,l,c=this;return Pe(this,function(u){switch(u.label){case 0:return this.eventHandler.emitEvent(st.ACQUIRE_TOKEN_START,$e.Silent,e),r=this.performanceClient.startMeasurement(ci.AcquireTokenSilentAsync,e.correlationId),dl.isNativeAvailable(this.config,this.logger,this.nativeExtensionProvider,e.authenticationScheme)&&i.nativeAccountId?(this.logger.verbose("acquireTokenSilent - attempting to acquire token from native platform"),s=ct(ct({},e),{account:i}),o=this.acquireTokenNative(s,bn.acquireTokenSilent_silentFlow).catch(function(d){return Oe(c,void 0,void 0,function(){return Pe(this,function(m){if(d instanceof ts&&d.isFatal())return this.logger.verbose("acquireTokenSilent - native platform unavailable, falling back to web flow"),this.nativeExtensionProvider=void 0,[2,this.createSilentIframeClient(e.correlationId).acquireToken(e)];throw d})})}),[3,3]):[3,1];case 1:return this.logger.verbose("acquireTokenSilent - attempting to acquire token from web flow"),[4,(a=this.createSilentCacheClient(e.correlationId)).initializeSilentRequest(e,i)];case 2:l=u.sent(),o=a.acquireToken(l).catch(function(){return Oe(c,void 0,void 0,function(){return Pe(this,function(d){return[2,this.acquireTokenByRefreshToken(l)]})})}),u.label=3;case 3:return[2,o.then(function(d){return c.eventHandler.emitEvent(st.ACQUIRE_TOKEN_SUCCESS,$e.Silent,d),r.endMeasurement({success:!0,fromCache:d.fromCache,accessTokenSize:d.accessToken.length,idTokenSize:d.idToken.length,isNativeBroker:d.fromNativeBroker}),d}).catch(function(d){throw c.eventHandler.emitEvent(st.ACQUIRE_TOKEN_FAILURE,$e.Silent,null,d),r.endMeasurement({errorCode:d.errorCode,subErrorCode:d.subError,success:!1}),d})]}})})},t}(kG);let hC=(()=>{class n{constructor(e,i){this.globals=e,this.connectionService=i,this.connectionService.getGraphConfiguration().subscribe(r=>{r.redirectUri=location.origin+""+location.pathname,r.postLogoutRedirectUri=location.origin+""+location.pathname,this.msalInstance=new UI({auth:r,cache:{cacheLocation:pi.LocalStorage}})})}setLoginDisplay(){console.log(this.msalInstance.getAllAccounts().length>0)}isDesktopClient(){return Office.context.platform!==Office.PlatformType.OfficeOnline}signIn(e){var i=this;return Ae(function*(){if(!e){const o=yield i.getAccessToken();if(o&&""!==o)return}let r;Office.context.platform!==Office.PlatformType.OfficeOnline?(console.log("IS CLIENT"),i.msalInstance.loginRedirect(),i.msalInstance.handleRedirectPromise().then(o=>{o&&i.msalInstance.setActiveAccount(o.account),i.setLoginDisplay()},o=>{console.log("Error:"),console.log(o)}),i.msalInstance.handleRedirectPromise().then(o=>{console.log(o)},o=>console.log(o)),r=yield i.msalInstance.loginRedirect(Zb).catch(o=>{i.globals.actionsAllowed=!1})):(console.log("IS NOT CLIENT"),r=yield i.msalInstance.loginPopup(Zb).catch(o=>{i.globals.actionsAllowed=!1})),r&&(i.globals.actionsAllowed=!0,i.globals.graphLoaded=!0,i.authenticated=!0,i.user=yield i.getUser())})()}clientSignIn(){var e=this;return Ae(function*(){console.log("Client Login"),e.signIn()})()}signOut(){return new b(e=>{this.msalInstance.logout().then(()=>{this.globals.graphLoaded=!1,this.user=void 0,this.authenticated=!1,e.next("Logged out")})})}signOutPopup(){return new b(e=>{this.msalInstance.logoutPopup().then(()=>{this.user=void 0,this.authenticated=!1,e.next("Logged out")})})}getAccessToken(){var e=this;return Ae(function*(){const i=e.msalInstance.getAllAccounts()[0],r=yield e.msalInstance.acquireTokenSilent({account:i??void 0,scopes:Zb.scopes}).catch(o=>{e.globals.actionsAllowed=!1,e.signIn(!0)});return r?(e.globals.graphLoaded=!0,e.globals.actionsAllowed=!0,r.accessToken):(e.authenticated=!1,"")})()}getUser(){var e=this;return Ae(function*(){if(!e.authenticated)return;const r=yield Pd.init({authProvider:(s=Ae(function*(a){const l=yield e.getAccessToken().catch(c=>{a(c,null)});l?a(null,l):a("Could not get an access token",null)}),function(l){return s.apply(this,arguments)})}).api("/me").select("displayName,mail,mailboxSettings,userPrincipalName").get(),o=new I7;var s;return o.displayName=r.displayName??"",o.email=r.mail??r.userPrincipalName??"",o.timeZone=r.mailboxSettings?.timeZone??"UTC",o.avatar="/assets/no-profile-photo.png",o})()}}return n.\u0275fac=function(e){return new(e||n)(M(ot),M(In))},n.\u0275prov=ge({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),ya=(()=>{class n{constructor(e,i){this.globals=e,this.authService=i,this.initGraph()}initGraph(){var i,e=this;this.graphClient=Pd.init({authProvider:(i=Ae(function*(r){const o=yield e.authService.getAccessToken().catch(s=>{r(s,null)});o?r(null,o):r("Could not get an access token",null)}),function(o){return i.apply(this,arguments)})})}getAttachments(e,i){return e=e.replaceAll("/","-"),new b(r=>{i&&(void 0===i.getSharedPropertiesAsync||void 0===typeof i.getSharedPropertiesAsync?this.doGetAttachments(`/me/messages/${e}/attachments`,e,r):i.getSharedPropertiesAsync(o=>{this.doGetAttachments(`/users/${o.value.owner}/messages/${e}/attachments`,e,r)}))})}doGetAttachments(e,i,r){this.graphClient.api(e).get().then(o=>{this.prepareAttachments(o).subscribe(s=>{r.next(s)})}).catch(o=>{r.error(o.code)})}prepareAttachments(e,i){let r=[];return new b(o=>{for(const s of e.value)if(!i||-1!==i.indexOf(s.id))if("gi"===this.globals.system)r.push({data:s.contentBytes,name:s.name,type:s.contentType,cid:s.contentId,inline:s.isInline});else{if(this.globals.deleteAttachments&&!s.isInline)continue;r.push({name:s.name,mimeType:s.contentType,contentID:s.contentId,data:s.contentBytes,isInline:s.isInline,inline:s.isInline})}o.next(r)})}isAppointment(){return"appointment"===Office.context.mailbox.item?.itemType}saveExtendedData(e,i){let r=Office.context.mailbox.item;if(r){let o=void 0===r.getItemIdAsync||void 0===typeof r.getItemIdAsync;if(e&&null!=e){if(o)return this.performSaveExtendedData(i,r.itemId);r.getItemIdAsync(s=>this.performSaveExtendedData(i,s.value))}else if("function"==typeof r.saveAsync){let s=r;if(o)return this.globals.infoShower.currentItemId=s.itemId,this.performSaveExtendedData(i,this.globals.infoShower.currentItemId);r.saveAsync(a=>{s.getItemIdAsync(l=>(this.globals.infoShower.currentItemId=l.value,this.performSaveExtendedData(i,this.globals.infoShower.currentItemId)))})}else this.globals.infoShower.currentItemId=r.itemId,e=r.itemId}return this.performSaveExtendedData(i,e)}performSaveExtendedData(e,i){return new b(r=>{if(i){i=i.replaceAll("/","-");const o={singleValueExtendedProperties:[{id:"String {00020329-0000-0000-C000-000000000046} Name BM4OAExPro",value:JSON.stringify(e)}]};let s="messages";this.isAppointment()&&(s="calendar/events");let a=Office.context.mailbox.item;a&&(void 0===a.getSharedPropertiesAsync||void 0===typeof a.getSharedPropertiesAsync?this.doSaveExtendedData(`/me/${s}/${i}`,o,e,r):a.getSharedPropertiesAsync(l=>{this.doSaveExtendedData(`/users/${l.value.owner}/${s}/${i}`,o,e,r)}))}})}doSaveExtendedData(e,i,r,o){this.graphClient.api(e).update(i).then(s=>{console.log("Setting data:"),console.log(r),o.next(s)}).catch(s=>{console.log("Error while setting data: "+s)})}getExtendedData(e){let i=Office.context.mailbox.item;if(i){let r=void 0===i.getItemIdAsync||void 0===typeof i.getItemIdAsync;if(e&&null!=e){if(r)return this.performGetExtendedData(i.itemId);i.getItemIdAsync(o=>this.performGetExtendedData(o.value))}else if("function"==typeof i.saveAsync){let o=i;if(r)return this.globals.infoShower.currentItemId=o.itemId,this.performGetExtendedData(this.globals.infoShower.currentItemId);i.saveAsync(s=>{o.getItemIdAsync(a=>(this.globals.infoShower.currentItemId=a.value,this.performGetExtendedData(a.value)))})}else this.globals.infoShower.currentItemId=i.itemId,e=i.itemId}return this.performGetExtendedData(e)}performGetExtendedData(e){return new b(i=>{if(e){e=e.replaceAll("/","-");let r="messages";this.isAppointment()&&(r="calendar/events");let o=Office.context.mailbox.item;o&&(void 0===o.getSharedPropertiesAsync||void 0===typeof o.getSharedPropertiesAsync?this.doGetExtendedData(`/me/${r}/${e}`,i):o.getSharedPropertiesAsync(s=>{this.doGetExtendedData(`/users/${s.value.owner}/${r}/${e}`,i)}))}})}doGetExtendedData(e,i){this.graphClient.api(e).responseType(Rr.RAW).expand("singleValueExtendedProperties($filter=id eq 'String {00020329-0000-0000-C000-000000000046} Name BM4OAExPro')").get().then(function(){var r=Ae(function*(o){if(200===o.status){let s=yield o.json();if(s&&s.singleValueExtendedProperties&&s.singleValueExtendedProperties.length>0){let a=JSON.parse(s.singleValueExtendedProperties[0].value);console.log("Getting data:",a),i.next(a)}else i.next(new jc)}else i.next(new jc)});return function(o){return r.apply(this,arguments)}}()).catch(()=>{i.next(new jc)})}}return n.\u0275fac=function(e){return new(e||n)(M(ot),M(hC))},n.\u0275prov=ge({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),Vs=(()=>{class n{constructor(){this.imgTag=//g,this.srcAtt=/(?:\bsrc=)("?)([^>"]+)\1/,this.htmlRegEx=/<\/?[a-z][\s\S]*>/i}fixImgTags(e){return e.replace(this.imgTag,i=>(i=i.replace(this.srcAtt,"")).replace(/\boriginalsrc=/,"src="))}isHtml(e){return this.htmlRegEx.test(e)}parseHtmlEntities(e){return e&&e.replace(/&#([0-9]{1,3});/gi,(i,r)=>{let o=parseInt(r,10);return String.fromCharCode(o)}).replace(/"/gi,(i,r)=>'"').replace(/&/gi,(i,r)=>"&")}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=ge({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();var RG=G(5742);let Kc=(()=>{class n{constructor(e){this.local=e}set(e,i){Office.context.roamingSettings.set(e,i);let r=this.getLocalKey(e);this.local.setValue(r,i)}get(e){let i=this.getLocalKey(e),r=this.local.getValue(i);return null!=r?r:Office.context.roamingSettings.get(e)??OG[e].toString()}save(){return new RG.y(e=>{Office.context.roamingSettings.saveAsync(i=>{e.next(i)})})}getLocalKey(e){let i=e.toString();return Zt[i]}get OpenAfterCreate(){return"true"===this.get(Us.USopenAfterCreate)}get LinkOptionActive(){return"true"===this.get(Us.USlinkOptionActive)}}return n.\u0275fac=function(e){return new(e||n)(M(Mi))},n.\u0275prov=ge({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();var Us=(()=>(function(n){n.USopenAfterCreate="USopenAfterCreate",n.USlinkOptionActive="USlinkOptionActive"}(Us||(Us={})),Us))();let OG=(()=>{class n{}return n.USopenAfterCreate=!0,n.USlinkOptionActive=!1,n})();const eo=navigator.language;let PG=(()=>{class n{constructor(e,i,r,o,s,a,l,c,u,d,h,m){this.connection=e,this.modalService=i,this.globals=r,this.globalsService=o,this.connectionService=s,this.translate=a,this.messageService=l,this.dialogService=c,this.graph=u,this.htmlHelper=d,this.soapService=h,this.settings=m}getContacts(){return Ae(function*(){})()}fetchDBs(e,i){return vt(this.connection.getReqNoCache(e,i,void 0,!0))}fetchActivityTypes(e){return new b(i=>{let r={};r.pointer=e,this.connectionService.getReqNoCache("activityTypes",this.connectionService.objectToHttpParams(r),void 0,!0).subscribe({next:o=>{let s=[];for(let a of o)s.push({name:a[0],alias:a[1]});i.next(s)},error:o=>{i.error(o)},complete:()=>{}})})}fetchActivities(e){return new b(i=>{let r=new $t;e&&(r=r.append("pointer",e.pointer),void 0!==e.companyPointer&&(r=r.append("companypointer",e.companyPointer)),this.connectionService.getReqNoCache("activities",r,void 0,!0).subscribe({next:o=>{o.type="activities",i.next(o)},error:o=>{i.error(o)},complete:()=>{}})),this.connectionService.getReqNoCache("activityTypes",r,void 0,!0).subscribe({next:o=>{o.type="types",i.next(o)},error:o=>{i.error(o)},complete:()=>{}})})}getContactDBs(){return vt(this.fetchDBs("dbConnections",null))}fetchSearch(e,i,r){let s=r;s||(s="*");const a={};return a.searchKey=s,i?a.pointer=i:a.database=e,vt(this.connection.getReqNoCache("search",this.connection.objectToHttpParams(a),void 0,!0))}searchProjects(e,i,r){let s=r;s||(s="*");const a={};return a.searchKey=s,i&&(a.pointer=i),e&&(a.database=e),vt(this.connection.getReqNoCache("projects",this.connection.objectToHttpParams(a),void 0,!0))}searchDocuments(e,i,r){console.log("database is before: ",e),console.log("searchResultType is before: ",e.type);let s=r;s||(s="*");const a={};return a.searchKey=s,i&&(a.pointer=i),e&&(a.database=e.alias),Array.isArray(e.type)?a.type=e.type.map(l=>"ProjectManagement"===l?"Projects":"Event"===l?"Events":"Office"===l?"Activities":l):("ProjectManagement"===e.type?e.type="Projects":"Event"===e.type?e.type="Events":"Office"===e.type&&(e.type="Activities"),a.type=e.type),console.log("searchResultType is after: ",a.type),console.log("Request parameters:",this.connection.objectToHttpParams(a)),vt(this.connection.getReqNoCache("documents",this.connection.objectToHttpParams(a),void 0,!0))}handleSearchResult(e,i,r){let o=Array();if(i===Ao.Contact)console.log("ContactResult:",e),console.log("activeWindow is: ",this.globals.activeWindow),Array.isArray(e)&&(e.forEach(s=>{let a=new kr,l=JSON.parse(s.displayJSON);l.value?(l.value.firstname?(a.lineOne=l.value.lastname+", "+l.value.firstname,a.lineTwo=l.value.company||l.display||"",a.lineThree=l.value.zipandcity+l.value.branchtype||""):(a.lineOne=l.value.company||l.display||"",a.lineTwo=l.value.branchtype||"",a.lineThree=l.value.zipandcity||""),a.image=l.value.viewicon||"",a.fdMe=s.value):(a.lineTwo="",a.lineThree="",a.fdMe="",a.image=""),o.push(a)}),"companyPage"===this.globals.activeWindow&&(o=o.filter(s=>s.fdMe.includes("|Company|")))),console.log("searchResultsArray: ",o);else if(i===Yo.contacts){if(console.log("Contact_Lead_Orga_Result:",e),null!=e.result&&Array.isArray(e.result)&&e.result.length>0){let s=e.result;for(let a=0;a0)for(let a of e.assignedProjectsWithDisplay){let l=new kr;l.fdMe=a.pointer,l.lineOne=a.name,l.image="025",l.lineTwo=this.globals.infoShower.displayedDestination.name,l.lineThree=a.projectNumber,o.push(l)}else for(let a of e.assignedProjects){let l=s.find(u=>u.pointer===a),c=new kr;l&&(c.fdMe=l.pointer,c.image=l.icon,c.lineOne=l.name,c.lineTwo=l.owner,c.lineThree=l.number,o.push(c))}else if(!r.participantProjects)for(let a=0;a{let a=new kr,l=JSON.parse(s.displayJSON);a.lineOne=l.display,l.value?(a.lineTwo=l.value.projectnumber||"",a.lineThree=l.value.owner||"",a.fdMe=s.value,a.image=l.value.viewicon||""):(a.lineTwo="",a.lineThree="",a.fdMe="",a.image=""),o.push(a)})):i===Ao.Service?(console.log("ServiceResult:",e),Array.isArray(e)&&e.forEach(s=>{let a=new kr,l=JSON.parse(s.displayJSON);a.lineOne=l.display,l.value?(a.lineOne=l.value.ticketnumber+" "+l.display,a.lineTwo=l.value.companyrel+" "+l.value.company+" "+l.value.contact||"",a.lineThree=l.value.category+" "+l.value.subcategory||"",a.fdMe=s.value,a.image=l.value.viewicon||""):(a.lineTwo="",a.lineThree="",a.fdMe="",a.image=""),o.push(a)})):i===Ao.Opportunity?(console.log("OpportunityResult:",e),Array.isArray(e)&&e.forEach(s=>{let a=new kr,l=JSON.parse(s.displayJSON);a.lineOne=l.display,l.value?(a.lineTwo=l.value.opportunityno||"",a.lineThree="",a.image=l.value.viewicon||"",a.fdMe=s.value):(a.lineTwo="",a.lineThree="",a.fdMe="",a.image=""),o.push(a)})):i===Ao.Events?(console.log("EventsResult:",e),Array.isArray(e)&&e.forEach(s=>{let a=new kr,l=JSON.parse(s.displayJSON);a.lineOne=l.display,l.value?(a.lineTwo=l.value.eventname||"",a.lineThree=l.value.startdate||"",a.image=l.value.viewicon||"",a.fdMe=s.value):(a.lineTwo="",a.lineThree="",a.fdMe="",a.image=""),o.push(a)})):i===Ao.Organization?(console.log("OrganizationResult:",e),Array.isArray(e)&&e.forEach(s=>{let a=new kr,l=JSON.parse(s.displayJSON);a.lineOne=l.value.company||"",l.value?(a.lineTwo=l.value.lastname+l.value.firstname||"",a.lineThree=l.value.specialtext+l.value.zipandcity||"",a.image=l.value.viewicon||"",a.fdMe=s.value):(a.lineTwo="",a.lineThree="",a.fdMe="",a.image=""),o.push(a)})):i===Ao.Activities?(console.log("OfficeResult:",e),Array.isArray(e)&&e.forEach(s=>{let a=new kr,l=JSON.parse(s.displayJSON);a.lineOne=l.display||"",l.value?(a.lineTwo=l.value.company||"",a.lineThree=l.value.contact||"",a.image=l.value.viewicon?l.value.viewicon||"":"058",a.fdMe=s.value):(a.lineTwo="",a.lineThree="",a.fdMe="",a.image="058"),o.push(a)})):i===Ao.Leads&&(console.log("LeadsResult:",e),Array.isArray(e)&&e.forEach(s=>{let a=new kr,l=JSON.parse(s.displayJSON);l.value?(l.value.firstname?(a.lineOne=l.value.lastname+", "+l.value.firstname||"",a.lineTwo=l.value.company||"",a.lineThree=l.value.zipandcity+l.value.specialtext+l.value.branchtype||""):(a.lineOne=l.value.company||"",a.lineTwo=l.value.zipandcity||"",a.lineThree=l.value.specialtext+l.value.branchtype||""),a.image=l.value.viewicon||"",a.fdMe=s.value):(a.lineOne=l.value.company||l.display||"",a.lineTwo="",a.lineThree="",a.fdMe="",a.image=""),o.push(a)}));return o}getImageSrc(e){if(e.includes("assets/images/vwicn"))return e;{let i=Number(e);return"assets/images/vwicn"+this.leadingZeros(i)+".svg"}}leadingZeros(e){return e<10?"00"+e:e<100?"0"+e:e.toString()}retrieveDataForItem(e){return new b(i=>{if(Office.context.mailbox.item){let r=Office.context.mailbox.item;const o=void 0===r.getItemIdAsync||void 0===typeof r.getItemIdAsync;console.log(r),r.body.getAsync(Office.CoercionType.Html,e,s=>{if(s.status!==Office.AsyncResultStatus.Failed){if("appointment"===r.itemType)throw new Error("Appointment direct sync not supported.");o?this.retrieveDataForEmailRead(r,s).subscribe({next:a=>{i.next(a)},error:a=>{i.error(a)}}):this.retrieveDataForEmailEdit(r,s).subscribe({next:a=>{i.next(a)},error:a=>{i.error(a)}})}})}else i.next(null)})}retrieveDataForAppointmentRead(e,i){return new b(r=>{this.graph.getAttachments(e.itemId,e).subscribe(o=>{r.next({body:i.value,subject:e.subject,optionalAttendees:e.optionalAttendees,requiredAttendees:e.requiredAttendees,start:new Date(e.start).toISOString(),end:new Date(e.end).toISOString(),attachments:o})},o=>r.error(o))})}retrieveDataForAppointmentEdit(e,i){return new b(r=>{e.subject.getAsync({},o=>{o.status!==Office.AsyncResultStatus.Failed&&e.optionalAttendees.getAsync(s=>{s.status!==Office.AsyncResultStatus.Failed&&e.requiredAttendees.getAsync(a=>{a.status!==Office.AsyncResultStatus.Failed&&e.start.getAsync(l=>{l.status!==Office.AsyncResultStatus.Failed&&e.end.getAsync(c=>{c.status!==Office.AsyncResultStatus.Failed&&this.graph.getAttachments(e.itemId,e).subscribe(u=>{r.next({body:i.value,subject:o.value,optionalAttendees:s.value,requiredAttendees:a.value,start:new Date(l.value).toISOString(),end:new Date(c.value).toISOString(),attachments:u})},u=>r.error(u))})})})})})})}retrieveDataForEmailRead(e,i){return new b(r=>{this.graph.getAttachments(e.itemId,e).subscribe(o=>{r.next({to:e.to,from:e.from,cc:e.cc,subject:e.subject,sender:e.sender,contentType:"html",body:i.value,date:new Date(e.dateTimeCreated).getTime(),messageID:e.internetMessageId,preview:"",isIncoming:this.globals.incomingMail,attachments:o,officeAlreadyDoc:!1,ticketAlreadyDoc:!1,graphMailID:""})},o=>r.error(o))})}retrieveDataForEmailEdit(e,i){return new b(r=>{e.saveAsync(o=>{o.status!==Office.AsyncResultStatus.Failed&&e.to.getAsync(s=>{s.status!==Office.AsyncResultStatus.Failed&&e.from.getAsync(a=>{a.status!==Office.AsyncResultStatus.Failed&&e.cc.getAsync(l=>{l.status!==Office.AsyncResultStatus.Failed&&e.subject.getAsync(c=>{c.status!==Office.AsyncResultStatus.Failed&&this.graph.getAttachments(o.value,e).subscribe(u=>{let d=[];u.forEach(h=>{h.inline&&!i.value.includes(h.cid)||d.push(h)}),r.next({to:s.value,from:a.value,cc:l.value,subject:c.value,sender:e.sender,contentType:"html",body:this.htmlHelper.fixImgTags(i.value),date:(new Date).getTime(),messageID:o.value,preview:"",isIncoming:!1,attachments:d,officeAlreadyDoc:!1,ticketAlreadyDoc:!1,graphMailID:""})},u=>r.error(u))})})})})})})}documentItemWithoutUI(e){var i=this;return new b(r=>{"doNotDocument"!==this.globals.infoShower.selectedEmailAddress?this.retrieveDataForItem({}).subscribe({next:o=>{e.replyTo&&(o.replyTo=e.replyTo),console.log("Documenting new item:",o);let s=new $t;var a;s=s.set("data",JSON.stringify(o)),s=s.set("isNewItem","true"),this.connectionService.postReq("convert",s,!1,{headers:{"content-type":"application/x-www-form-urlencoded"}}).subscribe({next:(a=Ae(function*(l){if(null!=l&&""!==l){const c=l;let u="store";i.globals.deleteAttachments&&(u="storedelattach");let d=new $t;if(d=d.set("unid",c),d=d.set("pointer",e.documentTarget),e.officeDB&&(d=d.set("office",e.officeDB)),d=d.set("command",u),d=d.set("origUnid",o.messageID),d=d.set("isNewItem","true"),e.selectedProjects){let h=e.selectedProjects;if(h&&h.length>0){let m=JSON.parse(h),y=[];for(let A=0;AA.pointer).join(";"))}}i.allowDuplicate&&(d=d.set("allow-duplicate","true"),i.allowDuplicate=!1),i.connectionService.postReq("convert",d,!1).subscribe({next:h=>{r.next(!0)},error:h=>{i.globals.hideSpinner(),200!==h.status&&(409===h.status?r.next():r.next(h)),r.error(h)},complete:()=>{}})}}),function(c){return a.apply(this,arguments)}),error:a=>{r.next(a),this.globals.hideSpinner()},complete:()=>{}})},error:o=>{this.translate.get(o).subscribe(s=>{r.error(this.globals.languageConfLocal[o])})}}):r.next()})}documentItemWithUI(e){console.log("description is in gi service",e),this.globals.showSpinner(),this.retrieveDataForItem({}).subscribe({next:i=>{console.log("Documenting new item:",i);let o,r=e.selectedProjects;if(e.replyTo&&(i.replyTo=e.replyTo),r&&r.length>0){o=JSON.parse(r);let a=[];for(let l=0;ll.pointer).join(";")}let s="";e.officeDB&&(s=e.officeDB),this.document(i,e.documentTarget,s,"",o),console.log("itemData is in gi service",i)},error:i=>{this.translate.get(i).subscribe(r=>{this.globals.hideSpinner(),this.messageService.showError(this.globals.languageConfLocal[i],"",void 0,1e4)})}})}document(e,i,r,o,s){var l,a=this;console.log("documnent/retrieve Data: ",e),this.connectionService.postReq("convert","data="+encodeURIComponent(JSON.stringify(e)),!1,{headers:{"content-type":"application/x-www-form-urlencoded"}}).subscribe({next:(l=Ae(function*(c){if(null!=c&&""!==c){a.globals.showSpinner();const u=c;let d="store";a.globals.deleteAttachments&&(d="storedelattach");let h=new $t;h=h.set("unid",u),h=h.set("pointer",i),h=h.set("office",r),h=h.set("command",d),h=h.set("origUnid",e.messageID),s&&(h=h.set("projects",s)),a.allowDuplicate&&(h=h.set("allow-duplicate","true"),a.allowDuplicate=!1),a.connectionService.postReq("convert",h,!1).subscribe({next:m=>{a.translate.get("translationWait").subscribe(y=>{a.globals.hideSpinner(),a.messageService.showSuccess(a.globals.languageConfLocal.emailDocumented)}),a.globals.projectSelector.projects=[],a.globals.tagSelector.enums=[],a.globals.addressActivities.removeDocumentDestination(null),a.globals.openMail&&(h=new $t,h.set("openDocument",m),window.open(a.globals.convertToLink(m),"_blank")),a.globals.addressActivities.refresh(),a.globals.hideSpinner(),a.graph.getExtendedData(a.globals.infoShower.currentItemId).subscribe(y=>{y.selectedProjects="",a.graph.saveExtendedData(a.globals.infoShower.currentItemId,y).subscribe(A=>{})}),a.globals.projectSelector.projectPhaseResultArray=[],a.globals.projectSelector.projectPhases=[],a.globals.infoShower.documentDestinationCheckChanged()},error:m=>{if(a.globals.hideSpinner(),409===m.status){const y=new kc;y.disableClose=!0,y.autoFocus=!0,a.dialogService.createDialogWithType(pa.alreadyDocumented,y).subscribe(A=>{A.afterClosed().subscribe(U=>{console.log("Dialog result:",U),!0===U&&(a.globals.showSpinner(),a.allowDuplicate=!0,a.document(e,i,r,o,s))})})}else if(200!==m.status)return void(m.statusText.includes("CEGetMail")?(a.messageService.showInfo(a.globals.languageConfLocal.noUserAssignedTicket),setTimeout(()=>{a.globals.hideSpinner()},a.messageService.getTimeoutMS())):(a.translate.get("LC73235").subscribe(y=>{a.messageService.showError(y)}),a.messageService.showError(m.statusText),a.globals.hideSpinner()))},complete:()=>{}})}else a.translate.get("LC53488").subscribe(u=>{a.globals.hideSpinner(),a.messageService.showError(u)})}),function(u){return l.apply(this,arguments)}),error:l=>{this.messageService.showError(l.statusText),this.globals.hideSpinner()},complete:()=>{}})}resetAllowDuplicate(){this.allowDuplicate=!1}setCRMdata(e,i){return new b(r=>{r.next(null)})}retrieveItemIdForItem(){return new b(e=>{e.next("never called")})}getPhasesOfPointer(e){return new b(i=>{this.connection.postReq("phases",e,!0).subscribe(r=>{let o=[];for(let s=0;ss.lineTwo.localeCompare(a.lineTwo)||s.lineOne.localeCompare(a.lineOne)),i.next(o)})})}changeActivityListType(e){return new b(i=>{this.connectionService.postReq("activityTypes","displaydocumentstype="+e,!1).subscribe(r=>{i.next(r)})})}addToRecentlyUsed(e){}getProductVersion(){return new b(e=>{void 0!==this.globals.configJson.giVersionNumber&&this.globals.configJson.giVersionNumber?(this.globals.configJson.giVersionNumber.majorVersion>=8&&this.globals.configJson.giVersionNumber.maintenanceVersion>=16&&this.globals.configJson.giVersionNumber.serviceVersion>0?e.next(this.globals.configJson.giVersionNumber.majorVersion+"."+this.globals.configJson.giVersionNumber.maintenanceVersion+"."+this.globals.configJson.giVersionNumber.serviceVersion):this.globals.configJson.giVersionNumber.majorVersion>=8&&this.globals.configJson.giVersionNumber.maintenanceVersion>=16?e.next(this.globals.configJson.giVersionNumber.majorVersion+"."+this.globals.configJson.giVersionNumber.maintenanceVersion):15===this.globals.configJson.giVersionNumber.maintenanceVersion?e.next("8.15"):this.globals.configJson.giVersionNumber.maintenanceVersion<=14&&e.next("8.14"),e.complete()):(this.globals.configJson.webUrl&&""!==this.globals.configJson.webUrl||void 0!==this.globals.infoShower?(!this.globals.configJson.webUrl||""===this.globals.configJson.webUrl)&&void 0!==this.globals.infoShower&&this.globals.configJson.webUrl.length<=5?e.next("8.14"):this.globals.configJson.webUrl.length>=5?e.next("8.15"):(0===this.globals.configJson.webUrl.length||!this.globals.configJson.webUrl.length)&&e.next("8.14"):e.next(this.globals.languageConfLocal.notConnected),e.complete())})}getDocumentsChips(e){return new b(i=>{i.next([])})}readCRMDataForItem(e){return new b(i=>{this.graph.getExtendedData(e).subscribe(r=>{i.next(r)})})}extractContactData(e){return new b(i=>{try{this.soapService.invokeSoap("scanMailFooter",{mailContent:e}).subscribe(r=>{if(console.log("Soapresponse:",r),r){let o=new tm;o.City=r.City,o.Company=r.Company,o.CompanyAddress=r.Address1,o.CompanyEmail="",o.Department=r.Department,o.Email=r.EMailAddress,o.Fax=r.Fax,o.FirstName=r.FirstName,o.LastName=r.LastName,o.MiddleName=r.MiddleName,o.Mobile=r.CellPhone,o.Phone=r.MainPhone,o.Street=r.Address2,o.Url=r.HomePage,o.Zip=r.ZipCode,o.ZipCity=r["ZipCode#City"],i.next(o)}else i.next(new tm)})}catch{}})}quickCreateContact(e,i,r,o){return new b(s=>{let a={Address1:e.CompanyAddress??"",Address2:e.Street??"",CellPhone:e.Mobile,City:e.City??"",Company:e.Company??"",Department:e.Department??"",EMailAddress:e.Email??"",Fax:e.Fax,FirstName:e.FirstName??"","FirstName#LastName":e.FirstName+"#"+e.LastName,HomePage:e.Url,LastName:e.LastName??"",MainPhone:e.Phone,MiddleName:e.MiddleName??"",State:"",Title:"",ZipCode:e.Zip??"","ZipCode#City":e.Zip??"#"+e.City??""};this.globals.showSpinner();let l="toCompany";"compExist"===r?(l="toCompany",this.create(a,o,l,e.CompanyPointer).subscribe(c=>{s.next(c)})):("contNo"===i?l="company":"contNew"===i&&"compNew"===r?l="toCompany":"contNew"===i&&"compNo"===r&&(l="person"),this.create(a,o,l).subscribe(c=>{s.next(c)}))})}create(e,i,r,o){return new b(s=>{switch(r){case"company":this.handleCreateCompany(e,i).subscribe(a=>{s.next(a)});break;case"toCompany":o?this.handleCreateAddressToCompany(e,i,o).subscribe(a=>{s.next(a)}):this.handleCreateCompany(e,i).subscribe(a=>{s.next(a)});break;case"person":this.handleCreatePrivatePerson(e,i).subscribe(a=>{s.next(a)});break;default:this.translate.get("LC53496").subscribe(a=>{this.messageService.showError(a),s.error(a)})}})}replaceWithCompanyData(e,i){return new b(r=>{this.soapService.invokeSoap("GetAddressByID",{fdme:i}).subscribe(o=>{if((o=Object.keys(o)).length>0){const s=o[0].split("~*~");null!=s&&(e.Company=s[29],e.Address1=s[10],e.Address2=s[30],e.ZipCode=s[12],e.City=s[11],e.State=s[14],e.CountryToo=s[13])}r.next(e)})})}handleCreateCompany(e,i){return new b(r=>{if(null==e.Company||""===e.Company){let o=this.globals.languageConfLocal.CompanyNameRequired;this.messageService.showError(o),r.error(o)}else{let o="";for(const a in e)e.hasOwnProperty(a)&&(o+="~*~"+a+"~#~"+e[a]);o="~*~"+e.Company+o,o+="~*~fdCorreType~#~GeMain",o+="~*~fdIsNewDoc~#~0",o+="~*~AddressSynch~#~0";const s={};s.addressData=o,s.contactsPath="$"+i,s.targetCompanyId="",s.languageCode=Array.isArray(eo)&&eo.length>0?eo[0]:eo;try{this.soapService.invokeSoap("CreateAddresses",s,!0).subscribe(a=>{console.log(a),1===Object.keys(a).length?r.next(a):this.translate.get("LC53496").subscribe(c=>{this.messageService.showError(c)})})}catch(a){this.messageService.showError(a.message)}}})}handleCreateAddressToCompany(e,i,r){return new b(o=>{r?this.replaceWithCompanyData(e,r).subscribe(s=>{if(e.Company=s.Company,e.Address1=s.Address1,e.Address2=s.Address2,e.ZipCode=s.ZipCode,e.City=s.City,e.State=s.State,e.CountryToo=s.CountryToo,(null==e.MainPhone||0===e.MainPhone.localeCompare(""))&&(e.MainPhone=s.MainPhone),(null==e.Fax||0===e.Fax.localeCompare(""))&&(e.Fax=s.Fax),null==e.LastName||0===e.LastName.localeCompare("")){let c=this.globals.languageConfLocal.LastNameRequired;c=c.replace("{FIELDNAME}",e.get("LastName")),this.messageService.showError(c)}let a="";for(const c in e)e.hasOwnProperty(c)&&(a+="~*~"+c+"~#~"+e[c]);a="~*~"+a,a+="~*~AddressSynch~#~1";const l={};l.addressData=a,l.contactsPath="$"+i,l.targetCompanyId=r,l.languageCode=Array.isArray(eo)&&eo.length>0?eo[0]:eo;try{this.soapService.invokeSoap("CreateAddresses",l,!0).subscribe(c=>{const u=Object.keys(c);1===u.length?(o.next(c),this.settings.OpenAfterCreate&&window.open(this.globals.convertToLink(u[0]),"_blank")):this.translate.get("LC53496").subscribe(d=>{this.messageService.showError(d)})})}catch(c){this.messageService.showError(c.message),o.error(c.message)}}):this.translate.get("LC53496").subscribe(s=>{this.messageService.showError(s),o.error(s)})})}handleCreatePrivatePerson(e,i){return new b(r=>{if(delete e.Company,null==e.LastName||0===e.LastName.localeCompare("")){let o=this.globals.languageConfLocal.LastNameRequired;o=o.replace("{FIELDNAME}",e.get("LastName")),this.messageService.showError(o),r.error(o)}else{let o="~*~";for(const a in e)e.hasOwnProperty(a)&&(o+="~*~"+a+"~#~"+e[a]);o+="~*~fdCorreType~#~GeMain",o+="~*~fdIsNewDoc~#~0",o+="~*~AddressSynch~#~0";const s={};s.addressData=o,s.contactsPath="$"+i,s.targetCompanyId="",s.languageCode=Array.isArray(eo)&&eo.length>0?eo[0]:eo;try{this.soapService.invokeSoap("CreateAddresses",s,!0).subscribe(a=>{const l=Object.keys(a);1===l.length?(r.next(a),this.settings.OpenAfterCreate&&window.open(this.globals.convertToLink(l[0]),"_blank")):this.translate.get("LC53496").subscribe(c=>{this.messageService.showError(c)})})}catch(a){this.messageService.showError(a.message),r.error(a.message)}}})}validateDataInBackend(){return new b(e=>{e.next({Validation:"PASS"})})}getEnumValues(){return new b(e=>{e.next([])})}getDocumentDBs(){return new b(e=>{this.fetchDBs("dbConnections",null).subscribe(i=>{const r=Object.values(i).filter(l=>l.alias);console.log("objectDBlist: ",r);const s=this.bubbleSort(r).filter(l=>Array.isArray(l.type)?!l.type.includes("Organization"):"Organization"!==l.type).map(l=>Array.isArray(l.type)?l.type.map(c=>({title:l.title,alias:l.alias,officeDBs:l.officeDBs,type:c})):[{title:l.title,alias:l.alias,officeDBs:l.officeDBs,type:l.type}]).reduce((l,c)=>l.concat(c),[]),a=this.bubbleSort(s);console.log("sortedExpandedDBlist: ",a),e.next(a),e.complete()})})}getCompanies(){return new b(e=>{this.getDocumentDBs().subscribe(i=>{i=i.filter(r=>"Contact"===r.type),e.next(i),e.complete()})})}bubbleSort(e){const i={Contact:1,Leads:2,Service:3,Opportunity:4,Office:5,ProjectManagement:6,Event:7,Organization:8};let r;do{r=!1;for(let o=0;o0||0===s&&e[o].title.localeCompare(e[o+1].title)>0){const a=e[o];e[o]=e[o+1],e[o+1]=a,r=!0}}}while(r);return e}getDisplayedType(e){switch(e){case"Opportunity":return"Business";case"Office":return"Activities";case"ProjectManagement":return"Projects";case"Event":return"Events";default:return e}}createLink(e){return this.globalsService.configJson.webUrl+"?loadTabs=false&openDocument="+e}getConfig(){return new b(e=>{this.connectionService.getReqNoCache("config",null).subscribe(i=>{e.next(i),e.complete()},i=>{console.log("Fehler beim Laden der ConfigUrl",i),e.error(i)})})}initFeatures(){return new b(e=>{this.getProductVersion().subscribe({next:i=>{const r=Object.values(Bc);let o=[];r.forEach(s=>{let a=s.toString().split("|").find(d=>d.startsWith("vGI"))?.substring(3).split("."),l=i.includes(".")?i.split("."):[],c=0,u=0;a&&l.length===a.length&&(c=parseInt(a.join(""),10)||0,u=parseInt(l.join(""),10)||0),o.push({key:s,value:u>=c})}),e.next(o)},error:i=>{e.next([])}})})}}return n.\u0275fac=function(e){return new(e||n)(M(In),M(hl),M(ot),M(ot),M(In),M(Ut),M(tn),M(nm),M(ya),M(Vs),M(Wb),M(Kc))},n.\u0275prov=ge({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),pC=(()=>{class n{constructor(e,i,r,o,s){this.global=e,this.waitList=i,this.http=r,this.globals=o,this.connectionService=s,this.loaded=!1,"gi"===this.globals.system?(s.waitForLC().subscribe(()=>{this.loaded=!0,this.processLCWaitingList()}),this.setLCSLocal()):s.waitForLC().subscribe(()=>{this.setLCSLocal()})}waitForInit(){return new b(e=>{this.loaded?(e.next(!0),e.complete(),this.processLCWaitingList()):this.waitList.addToWaitList("lc",e)})}getLCEntry(e,i,r){return this.replacePlaceholder(this.global.languageEntry("LC"+e),i,r)}passLCObj(){return this.global.languageConf}getLang(){return navigator.language.toLowerCase().startsWith("de")?"de":"en"}setLCSLocal(){this.http.get("assets/i18n/"+this.getLang()+".json").subscribe(e=>{this.globals.languageConfLocal=e,this.localLCReady()})}localLCReady(){for(const e of this.waitList.accessWaitList("localLC"))e.next(this.globals.languageConfLocal),e.complete();"gi"!==this.globals.system&&(this.globals.languageConf=this.globals.languageConfLocal,this.loaded=!0,this.processLCWaitingList())}processLCWaitingList(){this.waitList.accessWaitList("lc").forEach(e=>{e.next(),e.complete()})}replacePlaceholder(e,i,r){return i&&r&&(e=e.replace(i,r)),e}}return n.\u0275fac=function(e){return new(e||n)(M(ot),M(Ri),M(yc),M(ot),M(In))},n.\u0275prov=ge({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),LG=(()=>{class n{constructor(e,i,r,o,s,a,l,c,u,d,h,m,y){this.connection=e,this.modalService=i,this.globals=r,this.lsm=o,this.graph=s,this.translate=a,this.messageService=l,this.dialogService=c,this.htmlHelper=u,this.connectionService=d,this.converter=h,this.lang=m,this.settings=y}fetchDBs(e,i){return Ne(null)}fetchSearch(e,i,r){const s={};return s.searchTerm=r,i&&(s.pointer=i),vt(this.connection.getReq("search",this.connection.objectToHttpParams(s),void 0,!0))}getDocumentDBs(){return Ne(null)}getCompanies(){return Ne(null)}getSelDB(){return Ne(null)}createLink(e){return this.globals.webInt+"openrecord/"+e}getDisplayedType(){return Ne(null)}getConfig(){return Ne(null)}fetchActivityTypes(e){const r={};return e&&(r.pointer=e),new b(o=>{this.connection.getReq("activityTypes",this.connection.objectToHttpParams(r),void 0,!0).subscribe({next:s=>{s.type="types",o.next(s)},error:s=>{o.error(s)}})})}fetchActivities(e){return new b(i=>{let r=new $t;e&&(r=r.append("addressOid",e.pointer),r=r.append("maxCount",this.converter.maxActivities),r=r.append("activitiesType",this.globals.addressActivities.selectedType),this.connectionService.getReqNoCache("activities",r,void 0,!0).subscribe({next:o=>{try{this.converter.convertActivity(i,o,this.globals.addressActivities.selectedType,this)}catch{i.error(this.globals.languageConfLocal.cantLoadData)}},error:o=>{i.error(o)},complete:()=>{}})),this.converter.convertActivityTypes(i)})}searchDocuments(e,i,r){const s={};return s.searchTerm=r,i&&(s.pointer=i),vt(this.connection.getReq("searchDocuments",this.connection.objectToHttpParams(s),void 0,!0))}searchProjects(e,i,r){const s={};return s.searchTerm=r,i&&(s.pointer=i),vt(this.connection.getReq("searchProjects",this.connection.objectToHttpParams(s),void 0,!0))}handleSearchResult(e,i){return e}getImageSrc(e){if(e&&(e.toLowerCase().startsWith("http")||e.startsWith("assets/images/ba")))return e;if(e&&e.toLowerCase().startsWith("icon/get")){let i=e.substring(9);return i=i.substring(0,i.indexOf("?")),"assets/images/ba/"+i+".svg"}return"assets/images/ba/"+e+".svg"}retrieveItemIdForItem(){return new b(e=>{e.next("never called")})}retrieveDataForItem(e){return new b(i=>{const r=Office.CoercionType.Html;if(Office.context.mailbox.item){let o=Office.context.mailbox.item;const s=void 0===o.getItemIdAsync||void 0===typeof o.getItemIdAsync;console.log(o),o.body.getAsync(Office.CoercionType.Html,e,a=>{if(a.status!==Office.AsyncResultStatus.Failed){if("appointment"===o.itemType)throw new Error("Appointment direct sync not supported.");s?this.retrieveDataForEmailRead(o,a,r).subscribe({next:l=>{i.next(l)},error:l=>{i.error(l)}}):this.retrieveDataForEmailEdit(o,a,r).subscribe({next:l=>{i.next(l)},error:l=>{i.error(l)}})}})}else i.next(null)})}retrieveDataForAppointmentRead(e,i){return new b(r=>{this.graph.getAttachments(e.itemId,e).subscribe(o=>{r.next({body:i.value,subject:e.subject,optionalAttendees:e.optionalAttendees,requiredAttendees:e.requiredAttendees,start:new Date(e.start).toISOString(),end:new Date(e.end).toISOString(),attachments:o})},o=>r.error(o))})}retrieveDataForAppointmentEdit(e,i){return new b(r=>{e.subject.getAsync({},o=>{o.status!==Office.AsyncResultStatus.Failed&&e.optionalAttendees.getAsync(s=>{s.status!==Office.AsyncResultStatus.Failed&&e.requiredAttendees.getAsync(a=>{a.status!==Office.AsyncResultStatus.Failed&&e.start.getAsync(l=>{l.status!==Office.AsyncResultStatus.Failed&&e.end.getAsync(c=>{c.status!==Office.AsyncResultStatus.Failed&&this.graph.getAttachments(e.itemId,e).subscribe(u=>{r.next({body:i.value,subject:o.value,optionalAttendees:s.value,requiredAttendees:a.value,start:new Date(l.value).toISOString(),end:new Date(c.value).toISOString(),attachments:u})},u=>r.error(u))})})})})})})}retrieveDataForEmailRead(e,i,r){return new b(o=>{this.graph.getAttachments(e.itemId,e).subscribe(s=>{o.next({fromMail:e.from.emailAddress,toMail:this.filterObjectEntryOfArr(e.to),ccMail:this.filterObjectEntryOfArr(e.cc),messageID:e.itemId,subject:e.subject?e.subject:this.globals.languageConfLocal.noSubject,body:{htmlBody:!!r.toString().toLowerCase().includes("html"),text:Buffer.from(i.value).toString("base64")},type:r.toString(),date:new Date(e.dateTimeCreated).toISOString(),creationDate:new Date(e.dateTimeCreated).getTime(),changingDate:new Date(e.dateTimeCreated).getTime(),attachments:s,officeAlreadyDoc:!1,ticketAlreadyDoc:!1,graphMailID:"",mailType:this.globals.incomingMail?"Incoming":"Outgoing"})},s=>o.error(s))})}retrieveDataForEmailEdit(e,i,r){return new b(o=>{e.saveAsync(s=>{e.to.getAsync(a=>{a.status!==Office.AsyncResultStatus.Failed&&e.from.getAsync(l=>{l.status!==Office.AsyncResultStatus.Failed&&e.cc.getAsync(c=>{c.status!==Office.AsyncResultStatus.Failed&&e.subject.getAsync(u=>{u.status!==Office.AsyncResultStatus.Failed&&this.graph.getAttachments(s.value,e).subscribe(d=>{o.next({toMail:a.value.map(h=>h.emailAddress),fromMail:l.value.emailAddress,ccMail:c.value.map(h=>h.emailAddress),bccMail:[],subject:u.value,body:{htmlBody:!!r.toString().toLowerCase().includes("html"),text:Buffer.from(this.htmlHelper.fixImgTags(i.value)).toString("base64")},type:r.toString(),date:(new Date).toISOString(),creationDate:(new Date).getTime(),changingDate:(new Date).getTime(),messageID:s.value,mailType:"Outgoing",attachments:d,officeAlreadyDoc:!1,ticketAlreadyDoc:!1,graphMailID:""})},d=>o.error(d))})})})})})})}documentItemWithUI(e){this.globals.showSpinner(),this.retrieveDataForItem({}).subscribe({next:i=>{const o={};o.messageId=i.messageID,vt(this.connection.getReq("emailAlreadyDocumented",this.connection.objectToHttpParams(o),void 0,!0)).subscribe(s=>{s?(this.globals.hideSpinner(),this.dialogService.createDialogWithType(pa.alreadyDocumented).subscribe(a=>{a.afterClosed().subscribe(l=>{!0===l&&(this.globals.showSpinner(),this.document(i,e))})})):this.document(i,e)})},error:i=>{this.translate.get(i).subscribe(r=>{this.globals.hideSpinner(),this.messageService.showError(r,"",void 0,1e4)})}})}document(e,i){var r=this;let o="?parentId="+i.documentTarget;var s;o=this.processCRMData(i,o),this.connection.postReq("document",e,!0,void 0,void 0,o).subscribe({next:(s=Ae(function*(a){r.baNextHandler(a),r.graph.getExtendedData(r.globals.infoShower.currentItemId).subscribe(l=>{l.selectedProjects="",l.tags="",r.graph.saveExtendedData(r.globals.infoShower.currentItemId,l).subscribe(c=>{})})}),function(l){return s.apply(this,arguments)}),error:function(){var s=Ae(function*(a){if(a.status>=200&&a.status<300)r.baNextHandler(a);else{const l=yield a.json();let c="Aktion konnte nicht durchgef\xfchrt werden. Versuchen Sie es sp\xe4ter erneut.";l.hasOwnProperty("ExceptionMessage")?c=l.ExceptionMessage:l.hasOwnProperty("Message")&&(c=l.Message),r.modalService.closeAllModals(),r.messageService.showError(c,"Error")}});return function(l){return s.apply(this,arguments)}}(),complete:()=>{}})}baNextHandler(e){var i=this;return Ae(function*(){const r=e.oid;if(i.translate.get("translationWait").subscribe(o=>{i.messageService.showSuccess(i.globals.languageConfLocal.emailDocumented)}),r&&(i.globals.projectSelector.projects=[],i.globals.tagSelector.enums=[],i.globals.addressActivities.removeDocumentDestination(null)),i.globals.openMail){let o=i.connection.getPath("openRecord",!1)+"/"+r;window.open(o,"_blank")}i.globals.addressActivities.refresh(),i.globals.hideSpinner()})()}documentItemWithoutUI(e){return"appointment"===e.type?new b(i=>{i.next(null)}):this.documentItem(e)}documentItem(e){var i=this;return new b(r=>{this.retrieveDataForItem({}).subscribe({next:o=>{let s="?parentId="+e.documentTarget,a=this.lsm.getValue(Zt.documentedItemId);var l;a&&(s+="&existingEmailId="+a),this.lsm.setValue(Zt.documentedItemId,""),s=this.processCRMData(e,s),this.connection.postReq("document",o,!0,void 0,void 0,s).subscribe({next:(l=Ae(function*(c){c&&c.oid&&i.lsm.setValue(Zt.documentedItemId,c.oid),r.next(c)}),function(u){return l.apply(this,arguments)}),error:function(){var l=Ae(function*(c){r.error(c)});return function(u){return l.apply(this,arguments)}}(),complete:()=>{}})},error:o=>{this.translate.get(o).subscribe(s=>{r.error(s)})}})})}processCRMData(e,i){if(e.selectedProjects){let r=JSON.parse(e.selectedProjects);r&&r.length>0&&(i+="&projectIds="+r.map(o=>{if(null!=o)return o.pointer}).join(","))}if(e.tags){let r=JSON.parse(e.tags);r&&r.length>0&&(i+="&tags="+r.map(o=>o[0]).join(","))}return i}filterObjectEntryOfArr(e){const i=[];for(const r of e)i.push(r.emailAddress);return i}setCRMdata(e,i){return new b(r=>{var s;this.connection.postReq("setCRMdata",e,!0,void 0,void 0,"?messageId="+i).subscribe({next:(s=Ae(function*(a){r.next(a)}),function(l){return s.apply(this,arguments)}),error:function(){var s=Ae(function*(a){r.error(a)});return function(l){return s.apply(this,arguments)}}(),complete:()=>{}})})}getPhasesOfPointer(e){return new b(i=>{i.next([])})}changeActivityListType(e){return new b(i=>{i.next(e)})}addToRecentlyUsed(e){this.connection.postReq("addRecentlyUsed","",!0,void 0,void 0,"?recordOid="+e).subscribe(r=>{})}getProductVersion(){return new b(e=>{this.connection.getReq("baVersion",this.connection.objectToHttpParams({}),void 0,!0).subscribe({next:i=>{e.next(i)},error:i=>{e.next("7.0.0.")}})})}getDocumentsChips(e){return new b(i=>{this.connection.getReq("getChips",this.connection.objectToHttpParams({oids:JSON.stringify(e)}),void 0,!0).subscribe({next:r=>{const o=[];for(const s of r)o.push({name:s.subject,image:s.imageName,fdMe:s.oid});i.next(o)},error:r=>{i.error(r)},complete:()=>{}})})}readCRMDataForItem(e){return new b(i=>{this.graph.getExtendedData(e).subscribe(r=>{i.next(r)})})}extractContactData(e){return new b(i=>{this.connection.getReq("extractContact",this.connection.objectToHttpParams({textBlock:Buffer.from(e).toString("base64")}),void 0,!0).subscribe({next:r=>{i.next(r||new tm)},error:r=>{i.error(r)}})})}getEnumValues(e){return new b(i=>{this.connection.getReq("getEnumValues",null,!0,!0,"rest/",e).subscribe({next:r=>{let o=[],s=this.lang.getLang();r.Values.forEach(a=>{o.push([a.Oid,a["Language_"+s]])}),i.next(o)},error:r=>{i.error(r)}})})}quickCreateContact(e,i,r){return this.postCompanyContactData(e,r,i,!1)}postCompanyContactData(e,i,r,o){var s=this;return new b(a=>{let c=new NG,u=new FG,d=o?"/?validateOnly=true":"";var h;e.MainEmailAddressType||(e.MainEmailAddressType="27AF1E88-6BAA-4ACA-AF2A-339E345CFB4D"),e.MainAddressType||(e.MainAddressType="EB7852EF-9BA5-47F6-AB68-82FB891A2943"),c.Name=e.Company,c.Phone=e.CompanyPhone,c.Fax=e.CompanyFax,e.Street&&(c.Addresses=[{Address:e.Street,AddressType:e.MainAddressType,City:e.City,PostalCode:e.Zip}]),e.CompanyEmail&&(c.EmailAddresses=[{EmailAddress:e.CompanyEmail,EmailAddressType:e.MainEmailAddressType}]),u.FirstName=e.FirstName,u.LastName=e.LastName,u.Department=e.Department,u.CellPhone=e.Mobile,u.Phone=e.Phone,u.Fax=e.Fax,u.EmailAddresses=[{EmailAddress:e.Email,EmailAddressType:e.MainEmailAddressType}],"compNew"===i?this.connection.postReq("createRecord",JSON.stringify(c),!0,void 0,void 0,"FE7EB8AE-71BE-4220-8DA5-DC04078E6B3C"+d,"rest/").subscribe({next:(h=Ae(function*(m){if("contNew"===r)s.createContact(u,m.Oid,a,d,!0);else{if(!d&&(s.addToRecentlyUsed(m.Oid),s.settings.OpenAfterCreate)){let y=s.connection.getPath("openRecord",!1)+"/"+m.Oid+"?openInEditMode=true";window.open(y,"_blank")}a.next(m)}}),function(y){return h.apply(this,arguments)}),error:function(){var h=Ae(function*(m){m.json().then(y=>{let A="";y.forEach(U=>{A+=U.ErrorMessage+" "}),s.messageService.showMessageAsync(s.globals.languageConfLocal.companyCreationError+A,er.error)}),a.error(m)});return function(y){return h.apply(this,arguments)}}()}):this.createContact(u,"compExist"===i?e.CompanyPointer:null,a,d)})}createContact(e,i,r,o,s=!1){var c,a=this;e.RelatedCompany=i,this.connection.postReq("createRecord",JSON.stringify(e),!0,void 0,void 0,"44FCB6FB-9230-48CF-A406-8F1F8C4D0B8C"+o,"rest/").subscribe({next:(c=Ae(function*(u){if(!o&&(a.addToRecentlyUsed(u.Oid),a.settings.OpenAfterCreate)){let d=a.connection.getPath("openRecord",!1)+"/"+u.Oid+"?openInEditMode=true";window.open(d,"_blank"),i&&s&&(d=a.connection.getPath("openRecord",!1)+"/"+i+"?openInEditMode=true",window.open(d,"_blank"))}r.next(u)}),function(d){return c.apply(this,arguments)}),error:function(){var c=Ae(function*(u){u.json().then(d=>{let h="";d.forEach(m=>{h+=m.ErrorMessage+" "}),a.messageService.showMessageAsync(a.globals.languageConfLocal.contactCreationError+h,er.error)}),r.error(u)});return function(d){return c.apply(this,arguments)}}()})}validateDataInBackend(e,i,r){return this.postCompanyContactData(e,r,i,!0)}initFeatures(){return new b(e=>{this.getProductVersion().subscribe({next:i=>{const r=Object.values(Bc);let o=[];r.forEach((s,a)=>{let l=s.toString().split("|").find(h=>h.startsWith("vBA"))?.substring(3).split("."),c=i.split("."),u=0,d=0;for(let h=0;h<3;h++)l&&l[h]&&(u+=10*parseInt(l[h])^6-2*h),c&&c[h]&&(d+=10*parseInt(c[h])^6-2*h);o.push({key:s,value:d>=u})}),e.next(o)},error:i=>{e.next([])}})})}}return n.\u0275fac=function(e){return new(e||n)(M(Mb),M(hl),M(ot),M(Mi),M(ya),M(Ut),M(tn),M(nm),M(Vs),M(Mb),M(Ib),M(pC),M(Kc))},n.\u0275prov=ge({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();class NG{}class FG{}let Bi=(()=>{class n{constructor(e,i,r,o){switch(this.gi=e,this.ba=i,this.lsm=r,this.globals=o,this.dateSourceConfig={},this.datasource=this.gi,this.globals.system){case"gi":this.datasource=this.gi;break;case"ba":this.datasource=this.ba;break;default:throw new Error("Not implemented")}}fetchDBs(e,i){return this.datasource.fetchDBs(e,i)}getDocumentDBs(){return this.datasource.getDocumentDBs()}getCompanies(){return this.datasource.getCompanies()}getDisplayedType(e){return this.datasource.getDisplayedType(e)}fetchSearch(e,i,r){return this.datasource.fetchSearch(e,i,r)}fetchActivityTypes(e){return this.datasource.fetchActivityTypes(e)}searchProjects(e,i,r){return this.datasource.searchProjects(e,i,r)}searchDocuments(e,i,r){return this.datasource.searchDocuments(e,i,r)}handleSearchResult(e,i,r=new s7){return this.datasource.handleSearchResult(e,i,r)}getImageSrc(e){return this.datasource.getImageSrc(e)}documentItemWithUI(e){return this.datasource.documentItemWithUI(e)}documentItemWithoutUI(e){return this.datasource.documentItemWithoutUI(e)}retrieveDataForItem(e){return this.datasource.retrieveDataForItem(e)}setCRMdata(e,i){return this.datasource.setCRMdata(e,i)}retrieveItemIdForItem(){return new b(e=>{if(Office.context.mailbox.item){let i=Office.context.mailbox.item;void 0===i.getItemIdAsync||void 0===typeof i.getItemIdAsync?e.next(i.itemId):i.getItemIdAsync(o=>{e.next(o.value)})}else e.next("")})}IsTaskpaneActive(){let e=this.lsm.getValue(Zt.taskpaneActive);if(!e)return!1;{let i=new Date(e);if("Invalid Date"===i.toString())return!1;if(((new Date).getTime()-i.getTime())/1e3>20)return!1}return!0}doNotDocumentSelected(){return"doNotDocument"===this.lsm.getValue(Zt.selectedEmail)}getPhasesOfPointer(e){return new b(i=>{this.datasource.getPhasesOfPointer(e).subscribe(r=>{i.next(r)})})}changeActivityListType(e){return this.datasource.changeActivityListType(e)}addToRecentlyUsed(e){this.datasource.addToRecentlyUsed(e)}getProductVersion(){return this.datasource.getProductVersion()}getDocumentsChips(e){return this.datasource.getDocumentsChips(e)}fetchActivities(e){return this.datasource.fetchActivities(e)}readCRMDataForItem(e){return this.datasource.readCRMDataForItem(e)}extractContactData(e){return this.datasource.extractContactData(e)}quickCreateContact(e,i,r,o=""){return this.datasource.quickCreateContact(e,i,r,o)}validateDataInBackend(e,i,r,o=""){return this.datasource.validateDataInBackend(e,i,r,o)}getEnumValues(e){return this.datasource.getEnumValues(e)}createLink(e){return this.datasource.createLink(e)}addDocumentLinkToMail(e,i){const r=Office.context.mailbox.item;if(console.log("doc is: ",e),!r)return void console.error("Office.context.mailbox.item ist undefined.");let a,o=e.pointer||e.fdMe,s=e.name||e.subject;r.body.getAsync("text",l=>{l.status===Office.AsyncResultStatus.Succeeded?r.getSelectedDataAsync("text",c=>{if(c.status===Office.AsyncResultStatus.Succeeded){const y=c.value;console.log("Markierter Text:",y.data),a=y.data}else console.error("Fehler beim Abrufen des markierten Textes: "+c.error.message);if(i)switch(i){case e.companyName:s=e.companyName,o=e.companyPointer;break;case e.additional.phone:case e.additional.cellphone:s=i}let u=s;""!==a&&(s=a),console.log("pointer is: ",o),console.log("docName is: ",s);const d=this.createLink(o);r.body.setSelectedDataAsync(`${a===s?s:`${s}`}`,{coercionType:Office.CoercionType.Html},y=>{y.status===Office.AsyncResultStatus.Failed?console.error("Fehler beim Hinzuf\xfcgen des Links",y.error.message):console.log("Link erfolgreich hinzugef\xfcgt:",d)})}):console.error("Fehler beim Abrufen des E-Mail-Body: "+l.error.message)})}getConfig(){return this.datasource.getConfig()}isFeatureAvailable(e){return new b(i=>{this.features&&this.features.length>0?i.next(this.features.find(r=>r.key===e)?.value??!1):this.datasource.initFeatures().subscribe(r=>{this.features=r,i.next(this.features.find(o=>o.key===e)?.value??!1)})})}}return n.\u0275fac=function(e){return new(e||n)(M(PG),M(LG),M(Mi),M(ot))},n.\u0275prov=ge({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const BG=["docFile"],jG=function(n){return{title:n}},HG=function(n,t,e,i){return{confirm:n,cancel:t,confirmAction:e,cancelAction:i}};function VG(n,t){if(1&n&&(Wt(0,1),Ze(1,"translate"),g(2,"div",2),j(3),_(),Wt(4,1),Ze(5,"translate"),Ze(6,"translate")),2&n){const e=C();v("ngTemplateOutlet",e.modalHeader)("ngTemplateOutletContext",Wn(11,jG,Xe(1,5,"LC73005"))),f(3),ve(e.text),f(1),v("ngTemplateOutlet",e.modalFooter)("ngTemplateOutletContext",Yi(13,HG,Xe(5,7,"LC73135"),Xe(6,9,"LC73136"),e.confirmAction.bind(e),e.cancelAction.bind(e)))}}let UG=(()=>{class n extends Yr{constructor(e,i,r,o,s){super(e),this.translate=e,this.globals=i,this.loader=r,this.documentService=o,this.datasourceService=s}ngOnInit(){"gi"===this.globals.system?this.data.passedData.docPointer&&this.data.passedData.docPointer.includes("faActivities")?(this.pointer=this.data.passedData.docPointer,this.officeDB=this.pointer.substring(this.pointer.lastIndexOf("|")+1)):(this.officeDB=this.data.passedData.officeDB,this.pointer=this.data.passedData.currentContactPointer?this.data.passedData.currentContactPointer:this.data.passedData.docPointer):this.pointer=this.data.passedData.docPointer,this.translate.get("LC73019").subscribe(e=>{this.text=e+"..."}),this.confirmAction()}confirmAction(){var e=this;return Ae(function*(){let i=Office.context.mailbox.item,s=!0;i&&(s=void 0!==i.itemClass),e.loader.activateLoader(!0,!0);let a=e.globals.curConnector.curPostData;s?null!==a&&(console.log("Documenting existing mail:",a),e.documentService.documentHandler(a,e.pointer,e.officeDB,e,e.data.passedData.projectPointers?e.data.passedData.projectPointers:void 0)):e.datasourceService.retrieveDataForItem({}).subscribe({next:l=>{console.log("Documenting new item:",l),e.documentService.documentHandler(l,e.pointer,e.officeDB,e,e.data.passedData.projectPointers?e.data.passedData.projectPointers:void 0)}})})()}cancelAction(){this.documentService.resetAllowDuplicate(),this.data.closeAllModal()}}return n.\u0275fac=function(e){return new(e||n)(p(Ut),p(ot),p(Fc),p(o7),p(Bi))},n.\u0275cmp=Ue({type:n,selectors:[["app-document-file"]],viewQuery:function(e,i){if(1&e&&De(BG,7),2&e){let r;ce(r=ue())&&(i.modalTemp=r.first)}},features:[Se],decls:2,vars:0,consts:[["docFile",""],[3,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"modalBody"]],template:function(e,i){1&e&&H(0,VG,7,18,"ng-template",null,0,Sn)},dependencies:[Ji,ki]}),n})();const qG=["selContact"],zG=["dbs"];function GG(n,t){1&n&&(g(0,"p"),j(1),Ze(2,"translate"),_()),2&n&&(f(1),ve(Xe(2,1,"LC53515")))}function WG(n,t){if(1&n){const e=Ie();g(0,"mat-list-option",7),W("dblclick",function(){return J(e),Z(C(2).confirmAction())}),j(1),_()}if(2&n){const e=t.$implicit,i=C(2);_t("value",e.db),v("selected",1===i.contactDBs.length?e.db:null),f(1),qe(" ",e.title," ")}}const $G=function(n){return{title:n}},KG=function(n,t,e,i){return{confirm:n,cancel:t,confirmAction:e,cancelAction:i}};function YG(n,t){if(1&n&&(Wt(0,1),Ze(1,"translate"),g(2,"div",2)(3,"mat-selection-list",3,4),H(5,GG,3,3,"p",5),H(6,WG,2,3,"mat-list-option",6),_()(),Wt(7,1),Ze(8,"translate"),Ze(9,"translate")),2&n){const e=C();v("ngTemplateOutlet",e.modalHeader)("ngTemplateOutletContext",Wn(13,$G,Xe(1,7,"LC53516"))),f(3),v("multiple",!1),f(2),v("ngIf",e.contactDBs.length<1),f(1),v("ngForOf",e.contactDBs),f(1),v("ngTemplateOutlet",e.modalFooter)("ngTemplateOutletContext",Yi(15,KG,Xe(8,9,"LC73135"),Xe(9,11,"LC73136"),e.confirmAction.bind(e,e.selection),e.cancelAction.bind(e)))}}let fC=(()=>{class n extends Yr{constructor(e,i,r){super(e),this.translate=e,this.connection=i,this.messageService=r,this.contactDBs=[]}ngOnInit(){super.ngOnInit(),this.fetchContactsDBs()}confirmAction(e,i){try{let r;r=null!=i?i:this.selection.selectedOptions.selected[0].value,this.openAnotherModal(this.next,{contactsDB:r,createType:this.data.createType})}catch{this.translate.get("LC53493").subscribe(o=>{this.messageService.showError(o)})}}fetchContactsDBs(){this.connection.getReqModal("dbConnections",null).subscribe(e=>{this.clearOfficeDBs(),this.extractContacts(e)})}extractContacts(e){var i=this;return Ae(function*(){for(const r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if("GeOfficeAliases"===r)continue;"Contact"===e[r].type&&i.contactDBs.push({title:e[r].title,db:r})}i.contactDBs.length<1&&i.translate.get("LC73225").subscribe(r=>{i.messageService.showError(r),i.cancelAction()}),1===i.contactDBs.length&&i.confirmAction(i.selection,i.contactDBs[0].db)})()}clearOfficeDBs(){this.contactDBs.length=0}}return n.\u0275fac=function(e){return new(e||n)(p(Ut),p(In),p(tn))},n.\u0275cmp=Ue({type:n,selectors:[["app-select-contact"]],viewQuery:function(e,i){if(1&e&&(De(qG,7),De(zG,5)),2&e){let r;ce(r=ue())&&(i.modalTemp=r.first),ce(r=ue())&&(i.selection=r.first)}},features:[Se],decls:2,vars:0,consts:[["selContact",""],[3,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"modalBody"],[3,"multiple"],["dbs",""],[4,"ngIf"],["checkboxPosition","after",3,"value","selected","dblclick",4,"ngFor","ngForOf"],["checkboxPosition","after",3,"value","selected","dblclick"]],template:function(e,i){1&e&&H(0,YG,10,20,"ng-template",null,0,Sn)},dependencies:[zn,pn,Ji,$o,Ls,ki]}),n})();const QG=["selLabelCreate"],JG=["selection"];function ZG(n,t){if(1&n){const e=Ie();g(0,"mat-list-option",6),W("dblclick",function(){return J(e),Z(C(2).confirmAction())}),j(1),_()}if(2&n){const e=t.$implicit,i=C(2);_t("value",e),v("selected",e===i.selectedEntry),f(1),qe(" ",i.data.passedData.labelDisplayMap.get(e)," ")}}const XG=function(n){return{title:n}},eW=function(n,t,e,i){return{confirm:n,cancel:t,confirmAction:e,cancelAction:i}};function tW(n,t){if(1&n&&(Wt(0,1),Ze(1,"translate"),g(2,"div",2)(3,"mat-selection-list",3,4),H(5,ZG,2,3,"mat-list-option",5),_()(),Wt(6,1),Ze(7,"translate"),Ze(8,"translate")),2&n){const e=C();v("ngTemplateOutlet",e.modalHeader)("ngTemplateOutletContext",Wn(12,XG,Xe(1,6,"LC53516"))),f(3),v("multiple",!1),f(2),v("ngForOf",e.data.passedData.createLabels),f(1),v("ngTemplateOutlet",e.modalFooter)("ngTemplateOutletContext",Yi(14,eW,Xe(7,8,"LC73135"),Xe(8,10,"LC73136"),e.confirmAction.bind(e),e.cancelAction.bind(e)))}}let nW=(()=>{class n extends Yr{constructor(e,i,r){super(e),this.translate=e,this.messageService=i,this.globals=r,this.selectedEntry=""}ngOnInit(){super.ngOnInit(),-1===this.data.passedData.createLabels.indexOf("")&&this.data.passedData.createLabels.unshift(""),this.selectedEntry=this.data.passedData.selected}confirmAction(){this.data.closeModal(this.selection.selectedOptions.selected[0].value)}}return n.\u0275fac=function(e){return new(e||n)(p(Ut),p(tn),p(ot))},n.\u0275cmp=Ue({type:n,selectors:[["app-select-create-label"]],viewQuery:function(e,i){if(1&e&&(De(QG,7),De(JG,5)),2&e){let r;ce(r=ue())&&(i.modalTemp=r.first),ce(r=ue())&&(i.selection=r.first)}},features:[Se],decls:2,vars:0,consts:[["selLabelCreate",""],[3,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"modalBody"],[3,"multiple"],["selection",""],["checkboxPosition","after",3,"value","selected","dblclick",4,"ngFor","ngForOf"],["checkboxPosition","after",3,"value","selected","dblclick"]],template:function(e,i){1&e&&H(0,tW,9,19,"ng-template",null,0,Sn)},dependencies:[zn,Ji,$o,Ls,ki]}),n})();const iW=["dupl"],rW=function(n){return{title:n}},oW=function(n,t,e,i){return{confirm:n,cancel:t,confirmAction:e,cancelAction:i}};function sW(n,t){if(1&n&&(Wt(0,1),Ze(1,"translate"),g(2,"div",2),j(3),Ze(4,"translate"),_(),Wt(5,1),Ze(6,"translate"),Ze(7,"translate")),2&n){const e=C();v("ngTemplateOutlet",e.modalHeader)("ngTemplateOutletContext",Wn(13,rW,Xe(1,5,"LC53516"))),f(3),ve(Xe(4,7,"LC73006")),f(2),v("ngTemplateOutlet",e.modalFooter)("ngTemplateOutletContext",Yi(15,oW,Xe(6,9,"LC73057"),Xe(7,11,"NO"),e.confirmAction.bind(e),e.cancelAction.bind(e)))}}let aW=(()=>{class n extends Yr{constructor(e){super(e),this.translate=e}ngOnInit(){super.ngOnInit()}confirmAction(){this.data.closeModal(!0)}}return n.\u0275fac=function(e){return new(e||n)(p(Ut))},n.\u0275cmp=Ue({type:n,selectors:[["app-duplicate"]],viewQuery:function(e,i){if(1&e&&De(iW,7),2&e){let r;ce(r=ue())&&(i.modalTemp=r.first)}},features:[Se],decls:2,vars:0,consts:[["dupl",""],[3,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"modalBody"]],template:function(e,i){1&e&&H(0,sW,8,20,"ng-template",null,0,Sn)},dependencies:[Ji,ki]}),n})();const lW=["searchTemplate"];function cW(n,t){if(1&n){const e=Ie();g(0,"button",13),W("click",function(){return J(e),Z(C(2).searchValue="")}),be(1,"div",14),_()}if(2&n){const e=C(2);f(1),v("ngStyle",e.searchClearImage)}}function uW(n,t){if(1&n&&(g(0,"mat-option",15),j(1),_()),2&n){const e=t.$implicit;v("value",e.value),f(1),ve(e.viewValue)}}const dW=function(n){return{background:n}};function hW(n,t){if(1&n&&be(0,"mat-cell",22),2&n){const e=t.$implicit,i=C(3);v("ngStyle",Wn(1,dW,"no-repeat url("+i.viewIconBaseURL+e.iconURL+")"))}}function pW(n,t){if(1&n&&(g(0,"div"),j(1),_()),2&n){const e=C().$implicit;f(1),zr(" ",e.name,", ",e.type," ")}}function fW(n,t){if(1&n&&(g(0,"div"),j(1),_()),2&n){const e=C().$implicit;f(1),qe(" ",e.purpose," ")}}function mW(n,t){if(1&n&&(g(0,"div"),j(1),_()),2&n){const e=C().$implicit;f(1),qe(" ",e.category," ")}}function gW(n,t){if(1&n&&(g(0,"mat-cell",23)(1,"mat-dialog-content")(2,"span",24),j(3),_(),H(4,pW,2,2,"div",25),H(5,fW,2,1,"div",25),H(6,mW,2,1,"div",25),_()()),2&n){const e=t.$implicit;f(3),qe(" ",e.display," "),f(1),v("ngIf",""!==e.name),f(1),v("ngIf",""!==e.purpose),f(1),v("ngIf",""!==e.category)}}function _W(n,t){if(1&n){const e=Ie();g(0,"mat-row",26),W("click",function(){const o=J(e).$implicit;return Z(C(3).toggleSelection(o))})("dblclick",function(){const o=J(e).$implicit;return Z(C(3).acceptEntryDblClick(o))}),_()}if(2&n){const e=t.$implicit,i=C(3);bt("isSelected",i.selection.isSelected(e)),v("matRippleColor",i.rippleColor)("matRippleCentered",i.centered)("matRippleDisabled",i.disabled)("matRippleUnbounded",i.unbounded)}}function vW(n,t){if(1&n&&(g(0,"div")(1,"mat-table",16),xi(2,17),H(3,hW,1,3,"mat-cell",18),Ii(),xi(4,19),H(5,gW,7,4,"mat-cell",20),Ii(),H(6,_W,1,6,"mat-row",21),_()()),2&n){const e=C(2);_s(e.tableWrapperClassName),f(1),v("dataSource",e.searchResults),f(5),v("matRowDefColumns",e.displayedColumns)}}function yW(n,t){1&n&&(g(0,"div"),j(1),Ze(2,"translate"),_()),2&n&&(f(1),ve(Xe(2,1,"LC53482")))}const bW=function(n){return{title:n}},CW=function(n,t,e,i){return{confirm:n,cancel:t,confirmAction:e,cancelAction:i}};function wW(n,t){if(1&n){const e=Ie();Wt(0,1),Ze(1,"translate"),g(2,"div",2)(3,"div",3)(4,"mat-form-field",4)(5,"mat-label"),j(6),Ze(7,"translate"),_(),g(8,"input",5),W("ngModelChange",function(r){return J(e),Z(C().searchValue=r)})("keyup.enter",function(){return J(e),Z(C().search())}),_(),H(9,cW,2,1,"button",6),_(),g(10,"input",7),W("click",function(){return J(e),Z(C().search())}),Ze(11,"translate"),_()(),g(12,"mat-form-field",8)(13,"mat-label"),j(14),Ze(15,"translate"),_(),g(16,"mat-select",9),W("valueChange",function(r){return J(e),Z(C().selectedDB=r)})("selectionChange",function(){J(e);const r=C();return Z(r.fetchSearch(r.selectedDB))}),H(17,uW,2,2,"mat-option",10),_()(),H(18,vW,7,5,"div",11),H(19,yW,3,3,"ng-template",null,12,Sn),_(),Wt(21,1),Ze(22,"translate"),Ze(23,"translate")}if(2&n){const e=Yt(20),i=C();v("ngTemplateOutlet",i.modalHeader)("ngTemplateOutletContext",Wn(25,bW,Xe(1,13,"LC53493"))),f(6),ve(Xe(7,15,"LC53489")),f(2),v("ngModel",i.searchValue),f(1),v("ngIf",i.searchValue),f(1),_t("value",Xe(11,17,"LC36251")),f(4),ve(Xe(15,19,"LC53516")),f(2),v("value",i.selectedDB),f(1),v("ngForOf",i.databases),f(1),v("ngIf",i.searchResults.length>=1)("ngIfElse",e),f(3),v("ngTemplateOutlet",i.modalFooter)("ngTemplateOutletContext",Yi(27,CW,Xe(22,21,"LC73135"),Xe(23,23,"LC73136"),i.confirmAction.bind(i),i.cancelAction.bind(i)))}}let EW=(()=>{class n extends Pb{constructor(e,i,r,o,s,a){super(e,r,i,o,s,a),this.messageEvent=new He,this.prefix="Template: ",this.path="templates",this.searchResults=[]}ngOnInit(){super.ngOnInit()}getTemplate(){return this.modalTemp}createPhoneCallHttpParams(e){let o=new $t;return o=o.appendAll({createDocument:"faActivities",parentPointer:this.addressService.currentPointer,templatePointer:e,templateType:"PhoneCall"}),null!=this.globals.curSubject&&(o=o.set("cval-Subject",this.globals.curSubject)),{paramsToAdd:["crmDB"],params:o}}convertToArr(e){const i={};for(const r in e)"Template"===e[r].type&&(i[e[r].alias]=e[r].title);this.generateSelectionArr(i)}generateSelectionArr(e){for(const i in e)Object.prototype.hasOwnProperty.call(e,i)&&this.databases.push({value:i,viewValue:this.prefix+e[i]});this.data.parentPointer=this.addressService.currentPointer,this.databases.length>0&&(this.selectedDB=this.databases[0].value,this.fetchSearch(this.selectedDB))}fetchDBs(){this.connection.getReqModal("templates",this.connection.objectToHttpParams({templateDBs:"true"})).subscribe(e=>{this.convertToArr(e)})}handleResult(e){this.searchResults=null!=e&&Array.isArray(e)&&e.length>0?e:[]}confirmAction(){this.selection.isEmpty()?this.translate.get("LC53493").subscribe(e=>{this.messageService.showError(e)}):this.openAnotherModal(this.next,{paramsData:this.createPhoneCallHttpParams(this.selection.selected[0].pointer),ignoreNext:!0})}}return n.\u0275fac=function(e){return new(e||n)(p(Ut),p(In),p(ot),p(tn),p(wd),p(Ps))},n.\u0275cmp=Ue({type:n,selectors:[["app-search-template"]],viewQuery:function(e,i){if(1&e&&De(lW,7),2&e){let r;ce(r=ue())&&(i.modalTemp=r.first)}},inputs:{data:"data"},outputs:{messageEvent:"messageEvent"},features:[Se],decls:2,vars:0,consts:[["searchTemplate",""],[3,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"modalBody"],[1,"searchInputWrapper"],[1,"searchInput"],["matInput","","type","text",3,"ngModel","ngModelChange","keyup.enter"],["matSuffix","","aria-label","Clear",3,"click",4,"ngIf"],["id","searchButton","type","button",1,"buttonSilverMiddle",3,"value","click"],["appearance","standard",1,"databaseSearchSelect"],[3,"value","valueChange","selectionChange"],[3,"value",4,"ngFor","ngForOf"],[3,"class",4,"ngIf","ngIfElse"],["noResult",""],["matSuffix","","aria-label","Clear",3,"click"],[1,"modalCloseIcon",3,"ngStyle"],[3,"value"],[1,"searchTable",3,"dataSource"],["matColumnDef","icon"],["class","searchIcon",3,"ngStyle",4,"matCellDef"],["matColumnDef","display"],["class","searchDisplay",4,"matCellDef"],["matRipple","","class","searchRow",3,"matRippleColor","matRippleCentered","matRippleDisabled","matRippleUnbounded","isSelected","click","dblclick",4,"matRowDef","matRowDefColumns"],[1,"searchIcon",3,"ngStyle"],[1,"searchDisplay"],[1,"bold"],[4,"ngIf"],["matRipple","",1,"searchRow",3,"matRippleColor","matRippleCentered","matRippleDisabled","matRippleUnbounded","click","dblclick"]],template:function(e,i){1&e&&H(0,wW,24,32,"ng-template",null,0,Sn)},dependencies:[zn,pn,Ji,ra,Ar,Kr,wo,yd,Ir,Pi,Lb,Ko,cr,Mr,Jf,xd,Td,Zf,Id,Xf,xr,ki],styles:[".searchInputWrapper[_ngcontent-%COMP%]{display:flex;flex-direction:row;align-items:center;justify-content:space-between}.databaseSearchSelect[_ngcontent-%COMP%]{width:100%}.searchInput[_ngcontent-%COMP%]{width:calc(100% - 70px);display:block;padding-bottom:0!important}.searchIcon[_ngcontent-%COMP%]{width:30px;padding:0 10px 0 0!important;background-position:40% 50%!important}.searchRow[_ngcontent-%COMP%] .searchIcon[_ngcontent-%COMP%], .searchRow[_ngcontent-%COMP%] .searchDisplay[_ngcontent-%COMP%], .searchRow[_ngcontent-%COMP%]{border-bottom:0px}.searchRow[_ngcontent-%COMP%]:nth-child(2n){background:#f2f2f2}.isSelected[_ngcontent-%COMP%]{background:rgb(224,239,255)!important}.searchRow[_ngcontent-%COMP%]{cursor:pointer;overflow:hidden;padding-right:5px}.searchRow[_ngcontent-%COMP%]:hover{background:rgba(224,239,255,.4)}.searchDisplay[_ngcontent-%COMP%], .searchTable[_ngcontent-%COMP%]{width:100%}.tableWrapper[_ngcontent-%COMP%], .tableWrapperVerse[_ngcontent-%COMP%], .tableWrapperVerseTabs[_ngcontent-%COMP%]{overflow:auto}.tableWrapper[_ngcontent-%COMP%]{max-height:50vh}.tableWrapperVerse[_ngcontent-%COMP%]{max-height:45vh}.tableWrapperVerseTabs[_ngcontent-%COMP%]{max-height:calc(45vh - 48px)}.overlay-list[_ngcontent-%COMP%], .overlay-selected[_ngcontent-%COMP%]{position:absolute;bottom:0;left:100%;right:0;overflow:hidden;width:0;height:100%;transition:.5s ease;box-shadow:none}.overlay-list[_ngcontent-%COMP%]{background-color:#a1f79b}.overlay-selected[_ngcontent-%COMP%]{background-color:#ff6a6a}.projectButtonContainer[_ngcontent-%COMP%]:hover .overlay-list[_ngcontent-%COMP%], .projectButtonContainer[_ngcontent-%COMP%]:hover .overlay-selected[_ngcontent-%COMP%]{width:30px;left:calc(100% - 30px);box-shadow:0 0 10px #999}.projectButton[_ngcontent-%COMP%]{margin:0;position:absolute;top:50%;left:calc(50% - 9px);transform:translateY(-50%)}#searchButton[_ngcontent-%COMP%]{height:100%;padding:4px;margin:0 0 5px;float:right;font-weight:700;display:flex}"]}),n})();const DW=["selMailAddr"],SW=["mailAddrs"];function AW(n,t){if(1&n){const e=Ie();g(0,"mat-list-option",7),W("dblclick",function(){return J(e),Z(C(2).confirmAction())}),j(1),Ze(2,"translate"),_()}if(2&n){const e=C(2);_t("value",e.globals.curFrom.emailAddress),f(1),zr(" ",Xe(2,3,"LC73126"),": ",e.globals.curFrom.emailAddress," ")}}function TW(n,t){if(1&n){const e=Ie();g(0,"mat-list-option",7),W("dblclick",function(){return J(e),Z(C(2).confirmAction())}),j(1),Ze(2,"translate"),_()}if(2&n){const e=t.$implicit;_t("value",e.emailAddress),f(1),zr(" ",Xe(2,3,"to"),": ",e.emailAddress," ")}}function xW(n,t){if(1&n){const e=Ie();g(0,"mat-list-option",7),W("dblclick",function(){return J(e),Z(C(2).confirmAction())}),j(1),Ze(2,"translate"),_()}if(2&n){const e=t.$implicit;_t("value",e.emailAddress),f(1),zr(" ",Xe(2,3,"LC73128"),": ",e.emailAddress," ")}}const IW=function(n){return{title:n}},MW=function(){return{}},kW=function(n,t,e,i){return{confirm:n,cancel:t,confirmAction:e,cancelAction:i}};function RW(n,t){if(1&n&&(Wt(0,1),Ze(1,"translate"),g(2,"div",2)(3,"mat-selection-list",3,4),H(5,AW,3,5,"mat-list-option",5),H(6,TW,3,5,"mat-list-option",6),H(7,xW,3,5,"mat-list-option",6),_()(),Wt(8,1),Ze(9,"translate"),Ze(10,"translate")),2&n){const e=C();v("ngTemplateOutlet",e.modalHeader)("ngTemplateOutletContext",Wn(14,IW,Xe(1,8,"LC53517"))),f(3),v("multiple",!1),f(2),v("ngIf",null!==e.globals.curFrom&&e.globals.curFrom!==Tv(16,MW)),f(1),v("ngForOf",e.globals.curTo),f(1),v("ngForOf",e.globals.curCC),f(1),v("ngTemplateOutlet",e.modalFooter)("ngTemplateOutletContext",Yi(17,kW,Xe(9,10,"LC73135"),Xe(10,12,"LC73136"),e.confirmAction.bind(e,e.selection),e.cancelAction.bind(e)))}}let OW=(()=>{class n extends Yr{constructor(e,i,r,o){super(i),this.globals=e,this.translate=i,this.messageService=r,this.reloadService=o}ngOnInit(){super.ngOnInit()}confirmAction(){try{this.globals.curMailAddr=this.selection.selectedOptions.selected[0].value,this.closeAll(),this.reloadService.reload()}catch{this.translate.get("LC53493").subscribe(i=>{this.messageService.showError(i)})}}}return n.\u0275fac=function(e){return new(e||n)(p(ot),p(Ut),p(tn),p($b))},n.\u0275cmp=Ue({type:n,selectors:[["app-select-mail-address"]],viewQuery:function(e,i){if(1&e&&(De(DW,7),De(SW,5)),2&e){let r;ce(r=ue())&&(i.modalTemp=r.first),ce(r=ue())&&(i.selection=r.first)}},features:[Se],decls:2,vars:0,consts:[["selMailAddr",""],[3,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"modalBody"],[3,"multiple"],["mailAddrs",""],["checkboxPosition","after",3,"value","dblclick",4,"ngIf"],["checkboxPosition","after",3,"value","dblclick",4,"ngFor","ngForOf"],["checkboxPosition","after",3,"value","dblclick"]],template:function(e,i){1&e&&H(0,RW,11,22,"ng-template",null,0,Sn)},dependencies:[zn,pn,Ji,$o,Ls,ki]}),n})(),PW=(()=>{class n{constructor(e){this.connection=e}getPhasesOfPointer(e){return new b(i=>{this.connection.postReq("phases",e,!0).subscribe(r=>{i.next(r),i.complete()})})}handlePhases(e){return new b(i=>{this.getPhasesOfPointer(e).subscribe(o=>{i.next(o),i.complete()})})}checkIfAllHidden(e,i){let r=!1,o=0;if(e.length>=i.length){for(const s of e)i.includes(s)&&o++;o>=i.length&&(r=!0)}return r}handleDocToDocPhases(e,i=!1){return new b(r=>{const o={},s=new Set,a=new Set,l=new Set;for(const c of e){const u=c.split("#");u.length>1?i?s.add(u[1]):(a.add(u[0]),o[u[0]]?o[u[0]].push(u[1]):o[u[0]]=[u[1]]):s.add(u[0])}this.handlePhases(Array.from(a)).subscribe(c=>{const u=new Set;for(const d of Array.from(a)){const h=c.find(m=>m.projectPointer===d);if(Array.isArray(o[d])&&o[d].length===h.projectphases.length)for(const m of h.projectphases)s.add(m.pointer);else{for(const m of o[d]){const y=h.projectphases.findIndex(A=>A.pointer===m);h.projectphases[y].selected=!0}l.add(h)}u.add(d)}for(const d of u)delete o[d],a.delete(d);r.next({projects:Array.from(s),parentPointersWithPhases:Array.from(a),phasesToCheck:Array.from(l)}),r.complete()})})}}return n.\u0275fac=function(e){return new(e||n)(M(In))},n.\u0275prov=ge({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();function LW(n,t){1&n&&Bt(0)}const qI=["*"];function NW(n,t){}const FW=function(n){return{animationDuration:n}},BW=function(n,t){return{value:n,params:t}},jW=["tabListContainer"],HW=["tabList"],VW=["tabListInner"],UW=["nextPaginator"],qW=["previousPaginator"],zW=["tabBodyWrapper"],GW=["tabHeader"];function WW(n,t){}function $W(n,t){1&n&&H(0,WW,0,0,"ng-template",10),2&n&&v("cdkPortalOutlet",C().$implicit.templateLabel)}function KW(n,t){1&n&&j(0),2&n&&ve(C().$implicit.textLabel)}function YW(n,t){if(1&n){const e=Ie();g(0,"div",6),W("click",function(){const r=J(e),o=r.$implicit,s=r.index,a=C(),l=Yt(1);return Z(a._handleClick(o,l,s))})("cdkFocusChange",function(r){const s=J(e).index;return Z(C()._tabFocusChanged(r,s))}),g(1,"div",7),H(2,$W,1,1,"ng-template",8),H(3,KW,1,1,"ng-template",null,9,Sn),_()()}if(2&n){const e=t.$implicit,i=t.index,r=Yt(4),o=C();bt("mat-tab-label-active",o.selectedIndex===i),v("id",o._getTabLabelId(i))("ngClass",e.labelClass)("disabled",e.disabled)("matRippleDisabled",e.disabled||o.disableRipple),rt("tabIndex",o._getTabIndex(e,i))("aria-posinset",i+1)("aria-setsize",o._tabs.length)("aria-controls",o._getTabContentId(i))("aria-selected",o.selectedIndex===i)("aria-label",e.ariaLabel||null)("aria-labelledby",!e.ariaLabel&&e.ariaLabelledby?e.ariaLabelledby:null),f(2),v("ngIf",e.templateLabel)("ngIfElse",r)}}function QW(n,t){if(1&n){const e=Ie();g(0,"mat-tab-body",11),W("_onCentered",function(){return J(e),Z(C()._removeTabBodyWrapperHeight())})("_onCentering",function(r){return J(e),Z(C()._setTabBodyWrapperHeight(r))}),_()}if(2&n){const e=t.$implicit,i=t.index,r=C();bt("mat-tab-body-active",r.selectedIndex===i),v("id",r._getTabContentId(i))("ngClass",e.bodyClass)("content",e.content)("position",e.position)("origin",e.origin)("animationDuration",r.animationDuration)("preserveContent",r.preserveContent),rt("tabindex",null!=r.contentTabIndex&&r.selectedIndex===i?r.contentTabIndex:null)("aria-labelledby",r._getTabLabelId(i))}}const JW=new me("MatInkBarPositioner",{providedIn:"root",factory:function ZW(){return t=>({left:t?(t.offsetLeft||0)+"px":"0",width:t?(t.offsetWidth||0)+"px":"0"})}});let zI=(()=>{class n{constructor(e,i,r,o){this._elementRef=e,this._ngZone=i,this._inkBarPositioner=r,this._animationMode=o}alignToElement(e){this.show(),this._ngZone.run(()=>{this._ngZone.onStable.pipe(sn(1)).subscribe(()=>{const i=this._inkBarPositioner(e),r=this._elementRef.nativeElement;r.style.left=i.left,r.style.width=i.width})})}show(){this._elementRef.nativeElement.style.visibility="visible"}hide(){this._elementRef.nativeElement.style.visibility="hidden"}}return n.\u0275fac=function(e){return new(e||n)(p(Je),p(et),p(JW),p(qn,8))},n.\u0275dir=fe({type:n,selectors:[["mat-ink-bar"]],hostAttrs:[1,"mat-ink-bar"],hostVars:2,hostBindings:function(e,i){2&e&&bt("_mat-animation-noopable","NoopAnimations"===i._animationMode)}}),n})();const XW=new me("MatTabContent"),GI=new me("MatTabLabel"),WI=new me("MAT_TAB");let e$=(()=>{class n extends Q8{constructor(e,i,r){super(e,i),this._closestTab=r}}return n.\u0275fac=function(e){return new(e||n)(p(yn),p(Dn),p(WI,8))},n.\u0275dir=fe({type:n,selectors:[["","mat-tab-label",""],["","matTabLabel",""]],features:[it([{provide:GI,useExisting:n}]),Se]}),n})();const t$=Rs(class{}),$I=new me("MAT_TAB_GROUP");let KI=(()=>{class n extends t${constructor(e,i){super(),this._viewContainerRef=e,this._closestTabGroup=i,this.textLabel="",this._contentPortal=null,this._stateChanges=new N,this.position=null,this.origin=null,this.isActive=!1}get templateLabel(){return this._templateLabel}set templateLabel(e){this._setTemplateLabelInput(e)}get content(){return this._contentPortal}ngOnChanges(e){(e.hasOwnProperty("textLabel")||e.hasOwnProperty("disabled"))&&this._stateChanges.next()}ngOnDestroy(){this._stateChanges.complete()}ngOnInit(){this._contentPortal=new Ms(this._explicitContent||this._implicitContent,this._viewContainerRef)}_setTemplateLabelInput(e){e&&e._closestTab===this&&(this._templateLabel=e)}}return n.\u0275fac=function(e){return new(e||n)(p(Dn),p($I,8))},n.\u0275cmp=Ue({type:n,selectors:[["mat-tab"]],contentQueries:function(e,i,r){if(1&e&&(jt(r,GI,5),jt(r,XW,7,yn)),2&e){let o;ce(o=ue())&&(i.templateLabel=o.first),ce(o=ue())&&(i._explicitContent=o.first)}},viewQuery:function(e,i){if(1&e&&De(yn,7),2&e){let r;ce(r=ue())&&(i._implicitContent=r.first)}},inputs:{disabled:"disabled",textLabel:["label","textLabel"],ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],labelClass:"labelClass",bodyClass:"bodyClass"},exportAs:["matTab"],features:[it([{provide:WI,useExisting:n}]),Se,Rn],ngContentSelectors:qI,decls:1,vars:0,template:function(e,i){1&e&&(Pn(),H(0,LW,1,0,"ng-template"))},encapsulation:2}),n})();const n$={translateTab:So("translateTab",[li("center, void, left-origin-center, right-origin-center",qt({transform:"none"})),li("left",qt({transform:"translate3d(-100%, 0, 0)",minHeight:"1px",visibility:"hidden"})),li("right",qt({transform:"translate3d(100%, 0, 0)",minHeight:"1px",visibility:"hidden"})),bi("* => left, * => right, left => center, right => center",Oi("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")),bi("void => left-origin-center",[qt({transform:"translate3d(-100%, 0, 0)",visibility:"hidden"}),Oi("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")]),bi("void => right-origin-center",[qt({transform:"translate3d(100%, 0, 0)",visibility:"hidden"}),Oi("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")])])};let i$=(()=>{class n extends ks{constructor(e,i,r,o){super(e,i,o),this._host=r,this._centeringSub=E.EMPTY,this._leavingSub=E.EMPTY}ngOnInit(){super.ngOnInit(),this._centeringSub=this._host._beforeCentering.pipe(ni(this._host._isCenterPosition(this._host._position))).subscribe(e=>{e&&!this.hasAttached()&&this.attach(this._host._content)}),this._leavingSub=this._host._afterLeavingCenter.subscribe(()=>{this._host.preserveContent||this.detach()})}ngOnDestroy(){super.ngOnDestroy(),this._centeringSub.unsubscribe(),this._leavingSub.unsubscribe()}}return n.\u0275fac=function(e){return new(e||n)(p(hs),p(Dn),p(Xt(()=>YI)),p(ft))},n.\u0275dir=fe({type:n,selectors:[["","matTabBodyHost",""]],features:[Se]}),n})(),r$=(()=>{class n{constructor(e,i,r){this._elementRef=e,this._dir=i,this._dirChangeSubscription=E.EMPTY,this._translateTabComplete=new N,this._onCentering=new He,this._beforeCentering=new He,this._afterLeavingCenter=new He,this._onCentered=new He(!0),this.animationDuration="500ms",this.preserveContent=!1,i&&(this._dirChangeSubscription=i.change.subscribe(o=>{this._computePositionAnimationState(o),r.markForCheck()})),this._translateTabComplete.pipe(bf((o,s)=>o.fromState===s.fromState&&o.toState===s.toState)).subscribe(o=>{this._isCenterPosition(o.toState)&&this._isCenterPosition(this._position)&&this._onCentered.emit(),this._isCenterPosition(o.fromState)&&!this._isCenterPosition(this._position)&&this._afterLeavingCenter.emit()})}set position(e){this._positionIndex=e,this._computePositionAnimationState()}ngOnInit(){"center"==this._position&&null!=this.origin&&(this._position=this._computePositionFromOrigin(this.origin))}ngOnDestroy(){this._dirChangeSubscription.unsubscribe(),this._translateTabComplete.complete()}_onTranslateTabStarted(e){const i=this._isCenterPosition(e.toState);this._beforeCentering.emit(i),i&&this._onCentering.emit(this._elementRef.nativeElement.clientHeight)}_getLayoutDirection(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}_isCenterPosition(e){return"center"==e||"left-origin-center"==e||"right-origin-center"==e}_computePositionAnimationState(e=this._getLayoutDirection()){this._position=this._positionIndex<0?"ltr"==e?"left":"right":this._positionIndex>0?"ltr"==e?"right":"left":"center"}_computePositionFromOrigin(e){const i=this._getLayoutDirection();return"ltr"==i&&e<=0||"rtl"==i&&e>0?"left-origin-center":"right-origin-center"}}return n.\u0275fac=function(e){return new(e||n)(p(Je),p(Xi,8),p(St))},n.\u0275dir=fe({type:n,inputs:{_content:["content","_content"],origin:"origin",animationDuration:"animationDuration",preserveContent:"preserveContent",position:"position"},outputs:{_onCentering:"_onCentering",_beforeCentering:"_beforeCentering",_afterLeavingCenter:"_afterLeavingCenter",_onCentered:"_onCentered"}}),n})(),YI=(()=>{class n extends r${constructor(e,i,r){super(e,i,r)}}return n.\u0275fac=function(e){return new(e||n)(p(Je),p(Xi,8),p(St))},n.\u0275cmp=Ue({type:n,selectors:[["mat-tab-body"]],viewQuery:function(e,i){if(1&e&&De(ks,5),2&e){let r;ce(r=ue())&&(i._portalHost=r.first)}},hostAttrs:[1,"mat-tab-body"],features:[Se],decls:3,vars:6,consts:[["cdkScrollable","",1,"mat-tab-body-content"],["content",""],["matTabBodyHost",""]],template:function(e,i){1&e&&(g(0,"div",0,1),W("@translateTab.start",function(o){return i._onTranslateTabStarted(o)})("@translateTab.done",function(o){return i._translateTabComplete.next(o)}),H(2,NW,0,0,"ng-template",2),_()),2&e&&v("@translateTab",nA(3,BW,i._position,Wn(1,FW,i.animationDuration)))},dependencies:[i$],styles:['.mat-tab-body-content{height:100%;overflow:auto}.mat-tab-group-dynamic-height .mat-tab-body-content{overflow:hidden}.mat-tab-body-content[style*="visibility: hidden"]{display:none}'],encapsulation:2,data:{animation:[n$.translateTab]}}),n})();const QI=new me("MAT_TABS_CONFIG"),o$=Rs(class{});let JI=(()=>{class n extends o${constructor(e){super(),this.elementRef=e}focus(){this.elementRef.nativeElement.focus()}getOffsetLeft(){return this.elementRef.nativeElement.offsetLeft}getOffsetWidth(){return this.elementRef.nativeElement.offsetWidth}}return n.\u0275fac=function(e){return new(e||n)(p(Je))},n.\u0275dir=fe({type:n,selectors:[["","matTabLabelWrapper",""]],hostVars:3,hostBindings:function(e,i){2&e&&(rt("aria-disabled",!!i.disabled),bt("mat-tab-disabled",i.disabled))},inputs:{disabled:"disabled"},features:[Se]}),n})();const ZI=As({passive:!0});let l$=(()=>{class n{constructor(e,i,r,o,s,a,l){this._elementRef=e,this._changeDetectorRef=i,this._viewportRuler=r,this._dir=o,this._ngZone=s,this._platform=a,this._animationMode=l,this._scrollDistance=0,this._selectedIndexChanged=!1,this._destroyed=new N,this._showPaginationControls=!1,this._disableScrollAfter=!0,this._disableScrollBefore=!0,this._stopScrolling=new N,this._disablePagination=!1,this._selectedIndex=0,this.selectFocusedIndex=new He,this.indexFocused=new He,s.runOutsideAngular(()=>{Is(e.nativeElement,"mouseleave").pipe(Jt(this._destroyed)).subscribe(()=>{this._stopInterval()})})}get disablePagination(){return this._disablePagination}set disablePagination(e){this._disablePagination=lt(e)}get selectedIndex(){return this._selectedIndex}set selectedIndex(e){e=xs(e),this._selectedIndex!=e&&(this._selectedIndexChanged=!0,this._selectedIndex=e,this._keyManager&&this._keyManager.updateActiveItem(e))}ngAfterViewInit(){Is(this._previousPaginator.nativeElement,"touchstart",ZI).pipe(Jt(this._destroyed)).subscribe(()=>{this._handlePaginatorPress("before")}),Is(this._nextPaginator.nativeElement,"touchstart",ZI).pipe(Jt(this._destroyed)).subscribe(()=>{this._handlePaginatorPress("after")})}ngAfterContentInit(){const e=this._dir?this._dir.change:Ne("ltr"),i=this._viewportRuler.change(150),r=()=>{this.updatePagination(),this._alignInkBarToSelectedTab()};this._keyManager=new Sf(this._items).withHorizontalOrientation(this._getLayoutDirection()).withHomeAndEnd().withWrap(),this._keyManager.updateActiveItem(this._selectedIndex),this._ngZone.onStable.pipe(sn(1)).subscribe(r),On(e,i,this._items.changes,this._itemsResized()).pipe(Jt(this._destroyed)).subscribe(()=>{this._ngZone.run(()=>{Promise.resolve().then(()=>{this._scrollDistance=Math.max(0,Math.min(this._getMaxScrollDistance(),this._scrollDistance)),r()})}),this._keyManager.withHorizontalOrientation(this._getLayoutDirection())}),this._keyManager.change.pipe(Jt(this._destroyed)).subscribe(o=>{this.indexFocused.emit(o),this._setTabFocus(o)})}_itemsResized(){return"function"!=typeof ResizeObserver?Ss:this._items.changes.pipe(ni(this._items),Kn(e=>new b(i=>this._ngZone.runOutsideAngular(()=>{const r=new ResizeObserver(o=>i.next(o));return e.forEach(o=>r.observe(o.elementRef.nativeElement)),()=>{r.disconnect()}}))),rb(1),Tn(e=>e.some(i=>i.contentRect.width>0&&i.contentRect.height>0)))}ngAfterContentChecked(){this._tabLabelCount!=this._items.length&&(this.updatePagination(),this._tabLabelCount=this._items.length,this._changeDetectorRef.markForCheck()),this._selectedIndexChanged&&(this._scrollToLabel(this._selectedIndex),this._checkScrollingControls(),this._alignInkBarToSelectedTab(),this._selectedIndexChanged=!1,this._changeDetectorRef.markForCheck()),this._scrollDistanceChanged&&(this._updateTabScrollPosition(),this._scrollDistanceChanged=!1,this._changeDetectorRef.markForCheck())}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete(),this._stopScrolling.complete()}_handleKeydown(e){if(!yi(e))switch(e.keyCode){case 13:case 32:this.focusIndex!==this.selectedIndex&&(this.selectFocusedIndex.emit(this.focusIndex),this._itemSelected(e));break;default:this._keyManager.onKeydown(e)}}_onContentChanges(){const e=this._elementRef.nativeElement.textContent;e!==this._currentTextContent&&(this._currentTextContent=e||"",this._ngZone.run(()=>{this.updatePagination(),this._alignInkBarToSelectedTab(),this._changeDetectorRef.markForCheck()}))}updatePagination(){this._checkPaginationEnabled(),this._checkScrollingControls(),this._updateTabScrollPosition()}get focusIndex(){return this._keyManager?this._keyManager.activeItemIndex:0}set focusIndex(e){!this._isValidIndex(e)||this.focusIndex===e||!this._keyManager||this._keyManager.setActiveItem(e)}_isValidIndex(e){if(!this._items)return!0;const i=this._items?this._items.toArray()[e]:null;return!!i&&!i.disabled}_setTabFocus(e){if(this._showPaginationControls&&this._scrollToLabel(e),this._items&&this._items.length){this._items.toArray()[e].focus();const i=this._tabListContainer.nativeElement;i.scrollLeft="ltr"==this._getLayoutDirection()?0:i.scrollWidth-i.offsetWidth}}_getLayoutDirection(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}_updateTabScrollPosition(){if(this.disablePagination)return;const e=this.scrollDistance,i="ltr"===this._getLayoutDirection()?-e:e;this._tabList.nativeElement.style.transform=`translateX(${Math.round(i)}px)`,(this._platform.TRIDENT||this._platform.EDGE)&&(this._tabListContainer.nativeElement.scrollLeft=0)}get scrollDistance(){return this._scrollDistance}set scrollDistance(e){this._scrollTo(e)}_scrollHeader(e){return this._scrollTo(this._scrollDistance+("before"==e?-1:1)*this._tabListContainer.nativeElement.offsetWidth/3)}_handlePaginatorClick(e){this._stopInterval(),this._scrollHeader(e)}_scrollToLabel(e){if(this.disablePagination)return;const i=this._items?this._items.toArray()[e]:null;if(!i)return;const r=this._tabListContainer.nativeElement.offsetWidth,{offsetLeft:o,offsetWidth:s}=i.elementRef.nativeElement;let a,l;"ltr"==this._getLayoutDirection()?(a=o,l=a+s):(l=this._tabListInner.nativeElement.offsetWidth-o,a=l-s);const c=this.scrollDistance,u=this.scrollDistance+r;au&&(this.scrollDistance+=l-u+60)}_checkPaginationEnabled(){if(this.disablePagination)this._showPaginationControls=!1;else{const e=this._tabListInner.nativeElement.scrollWidth>this._elementRef.nativeElement.offsetWidth;e||(this.scrollDistance=0),e!==this._showPaginationControls&&this._changeDetectorRef.markForCheck(),this._showPaginationControls=e}}_checkScrollingControls(){this.disablePagination?this._disableScrollAfter=this._disableScrollBefore=!0:(this._disableScrollBefore=0==this.scrollDistance,this._disableScrollAfter=this.scrollDistance==this._getMaxScrollDistance(),this._changeDetectorRef.markForCheck())}_getMaxScrollDistance(){return this._tabListInner.nativeElement.scrollWidth-this._tabListContainer.nativeElement.offsetWidth||0}_alignInkBarToSelectedTab(){const e=this._items&&this._items.length?this._items.toArray()[this.selectedIndex]:null,i=e?e.elementRef.nativeElement:null;i?this._inkBar.alignToElement(i):this._inkBar.hide()}_stopInterval(){this._stopScrolling.next()}_handlePaginatorPress(e,i){i&&null!=i.button&&0!==i.button||(this._stopInterval(),$2(650,100).pipe(Jt(On(this._stopScrolling,this._destroyed))).subscribe(()=>{const{maxScrollDistance:r,distance:o}=this._scrollHeader(e);(0===o||o>=r)&&this._stopInterval()}))}_scrollTo(e){if(this.disablePagination)return{maxScrollDistance:0,distance:0};const i=this._getMaxScrollDistance();return this._scrollDistance=Math.max(0,Math.min(i,e)),this._scrollDistanceChanged=!0,this._checkScrollingControls(),{maxScrollDistance:i,distance:this._scrollDistance}}}return n.\u0275fac=function(e){return new(e||n)(p(Je),p(St),p(zo),p(Xi,8),p(et),p(Nn),p(qn,8))},n.\u0275dir=fe({type:n,inputs:{disablePagination:"disablePagination"}}),n})(),c$=(()=>{class n extends l${constructor(e,i,r,o,s,a,l){super(e,i,r,o,s,a,l),this._disableRipple=!1}get disableRipple(){return this._disableRipple}set disableRipple(e){this._disableRipple=lt(e)}_itemSelected(e){e.preventDefault()}}return n.\u0275fac=function(e){return new(e||n)(p(Je),p(St),p(zo),p(Xi,8),p(et),p(Nn),p(qn,8))},n.\u0275dir=fe({type:n,inputs:{disableRipple:"disableRipple"},features:[Se]}),n})(),u$=(()=>{class n extends c${constructor(e,i,r,o,s,a,l){super(e,i,r,o,s,a,l)}}return n.\u0275fac=function(e){return new(e||n)(p(Je),p(St),p(zo),p(Xi,8),p(et),p(Nn),p(qn,8))},n.\u0275cmp=Ue({type:n,selectors:[["mat-tab-header"]],contentQueries:function(e,i,r){if(1&e&&jt(r,JI,4),2&e){let o;ce(o=ue())&&(i._items=o)}},viewQuery:function(e,i){if(1&e&&(De(zI,7),De(jW,7),De(HW,7),De(VW,7),De(UW,5),De(qW,5)),2&e){let r;ce(r=ue())&&(i._inkBar=r.first),ce(r=ue())&&(i._tabListContainer=r.first),ce(r=ue())&&(i._tabList=r.first),ce(r=ue())&&(i._tabListInner=r.first),ce(r=ue())&&(i._nextPaginator=r.first),ce(r=ue())&&(i._previousPaginator=r.first)}},hostAttrs:[1,"mat-tab-header"],hostVars:4,hostBindings:function(e,i){2&e&&bt("mat-tab-header-pagination-controls-enabled",i._showPaginationControls)("mat-tab-header-rtl","rtl"==i._getLayoutDirection())},inputs:{selectedIndex:"selectedIndex"},outputs:{selectFocusedIndex:"selectFocusedIndex",indexFocused:"indexFocused"},features:[Se],ngContentSelectors:qI,decls:14,vars:10,consts:[["aria-hidden","true","type","button","mat-ripple","","tabindex","-1",1,"mat-tab-header-pagination","mat-tab-header-pagination-before","mat-elevation-z4",3,"matRippleDisabled","disabled","click","mousedown","touchend"],["previousPaginator",""],[1,"mat-tab-header-pagination-chevron"],[1,"mat-tab-label-container",3,"keydown"],["tabListContainer",""],["role","tablist",1,"mat-tab-list",3,"cdkObserveContent"],["tabList",""],[1,"mat-tab-labels"],["tabListInner",""],["aria-hidden","true","type","button","mat-ripple","","tabindex","-1",1,"mat-tab-header-pagination","mat-tab-header-pagination-after","mat-elevation-z4",3,"matRippleDisabled","disabled","mousedown","click","touchend"],["nextPaginator",""]],template:function(e,i){1&e&&(Pn(),g(0,"button",0,1),W("click",function(){return i._handlePaginatorClick("before")})("mousedown",function(o){return i._handlePaginatorPress("before",o)})("touchend",function(){return i._stopInterval()}),be(2,"div",2),_(),g(3,"div",3,4),W("keydown",function(o){return i._handleKeydown(o)}),g(5,"div",5,6),W("cdkObserveContent",function(){return i._onContentChanges()}),g(7,"div",7,8),Bt(9),_(),be(10,"mat-ink-bar"),_()(),g(11,"button",9,10),W("mousedown",function(o){return i._handlePaginatorPress("after",o)})("click",function(){return i._handlePaginatorClick("after")})("touchend",function(){return i._stopInterval()}),be(13,"div",2),_()),2&e&&(bt("mat-tab-header-pagination-disabled",i._disableScrollBefore),v("matRippleDisabled",i._disableScrollBefore||i.disableRipple)("disabled",i._disableScrollBefore||null),f(5),bt("_mat-animation-noopable","NoopAnimations"===i._animationMode),f(6),bt("mat-tab-header-pagination-disabled",i._disableScrollAfter),v("matRippleDisabled",i._disableScrollAfter||i.disableRipple)("disabled",i._disableScrollAfter||null))},dependencies:[xr,wf,zI],styles:[".mat-tab-header{display:flex;overflow:hidden;position:relative;flex-shrink:0}.mat-tab-header-pagination{-webkit-user-select:none;user-select:none;position:relative;display:none;justify-content:center;align-items:center;min-width:32px;cursor:pointer;z-index:2;-webkit-tap-highlight-color:rgba(0,0,0,0);touch-action:none;box-sizing:content-box;background:none;border:none;outline:0;padding:0}.mat-tab-header-pagination::-moz-focus-inner{border:0}.mat-tab-header-pagination-controls-enabled .mat-tab-header-pagination{display:flex}.mat-tab-header-pagination-before,.mat-tab-header-rtl .mat-tab-header-pagination-after{padding-left:4px}.mat-tab-header-pagination-before .mat-tab-header-pagination-chevron,.mat-tab-header-rtl .mat-tab-header-pagination-after .mat-tab-header-pagination-chevron{transform:rotate(-135deg)}.mat-tab-header-rtl .mat-tab-header-pagination-before,.mat-tab-header-pagination-after{padding-right:4px}.mat-tab-header-rtl .mat-tab-header-pagination-before .mat-tab-header-pagination-chevron,.mat-tab-header-pagination-after .mat-tab-header-pagination-chevron{transform:rotate(45deg)}.mat-tab-header-pagination-chevron{border-style:solid;border-width:2px 2px 0 0;height:8px;width:8px}.mat-tab-header-pagination-disabled{box-shadow:none;cursor:default}.mat-tab-list{flex-grow:1;position:relative;transition:transform 500ms cubic-bezier(0.35, 0, 0.25, 1)}.mat-ink-bar{position:absolute;bottom:0;height:2px;transition:500ms cubic-bezier(0.35, 0, 0.25, 1)}.mat-ink-bar._mat-animation-noopable{transition:none !important;animation:none !important}.mat-tab-group-inverted-header .mat-ink-bar{bottom:auto;top:0}.cdk-high-contrast-active .mat-ink-bar{outline:solid 2px;height:0}.mat-tab-labels{display:flex}[mat-align-tabs=center]>.mat-tab-header .mat-tab-labels{justify-content:center}[mat-align-tabs=end]>.mat-tab-header .mat-tab-labels{justify-content:flex-end}.mat-tab-label-container{display:flex;flex-grow:1;overflow:hidden;z-index:1}.mat-tab-list._mat-animation-noopable{transition:none !important;animation:none !important}.mat-tab-label{height:48px;padding:0 24px;cursor:pointer;box-sizing:border-box;opacity:.6;min-width:160px;text-align:center;display:inline-flex;justify-content:center;align-items:center;white-space:nowrap;position:relative}.mat-tab-label:focus{outline:none}.mat-tab-label:focus:not(.mat-tab-disabled){opacity:1}.mat-tab-label.mat-tab-disabled{cursor:default}.cdk-high-contrast-active .mat-tab-label.mat-tab-disabled{opacity:.5}.mat-tab-label .mat-tab-label-content{display:inline-flex;justify-content:center;align-items:center;white-space:nowrap}.cdk-high-contrast-active .mat-tab-label{opacity:1}.mat-tab-label::before{margin:5px}@media(max-width: 599px){.mat-tab-label{min-width:72px}}"],encapsulation:2}),n})(),d$=0;class h${}const p$=da(Go(class{constructor(n){this._elementRef=n}}),"primary");let f$=(()=>{class n extends p${constructor(e,i,r,o){super(e),this._changeDetectorRef=i,this._animationMode=o,this._tabs=new qa,this._indexToSelect=0,this._lastFocusedTabIndex=null,this._tabBodyWrapperHeight=0,this._tabsSubscription=E.EMPTY,this._tabLabelSubscription=E.EMPTY,this._dynamicHeight=!1,this._selectedIndex=null,this.headerPosition="above",this._disablePagination=!1,this._preserveContent=!1,this.selectedIndexChange=new He,this.focusChange=new He,this.animationDone=new He,this.selectedTabChange=new He(!0),this._groupId=d$++,this.animationDuration=r&&r.animationDuration?r.animationDuration:"500ms",this.disablePagination=!(!r||null==r.disablePagination)&&r.disablePagination,this.dynamicHeight=!(!r||null==r.dynamicHeight)&&r.dynamicHeight,this.contentTabIndex=r?.contentTabIndex??null,this.preserveContent=!!r?.preserveContent}get dynamicHeight(){return this._dynamicHeight}set dynamicHeight(e){this._dynamicHeight=lt(e)}get selectedIndex(){return this._selectedIndex}set selectedIndex(e){this._indexToSelect=xs(e,null)}get animationDuration(){return this._animationDuration}set animationDuration(e){this._animationDuration=/^\d+$/.test(e+"")?e+"ms":e}get contentTabIndex(){return this._contentTabIndex}set contentTabIndex(e){this._contentTabIndex=xs(e,null)}get disablePagination(){return this._disablePagination}set disablePagination(e){this._disablePagination=lt(e)}get preserveContent(){return this._preserveContent}set preserveContent(e){this._preserveContent=lt(e)}get backgroundColor(){return this._backgroundColor}set backgroundColor(e){const i=this._elementRef.nativeElement;i.classList.remove(`mat-background-${this.backgroundColor}`),e&&i.classList.add(`mat-background-${e}`),this._backgroundColor=e}ngAfterContentChecked(){const e=this._indexToSelect=this._clampTabIndex(this._indexToSelect);if(this._selectedIndex!=e){const i=null==this._selectedIndex;if(!i){this.selectedTabChange.emit(this._createChangeEvent(e));const r=this._tabBodyWrapper.nativeElement;r.style.minHeight=r.clientHeight+"px"}Promise.resolve().then(()=>{this._tabs.forEach((r,o)=>r.isActive=o===e),i||(this.selectedIndexChange.emit(e),this._tabBodyWrapper.nativeElement.style.minHeight="")})}this._tabs.forEach((i,r)=>{i.position=r-e,null!=this._selectedIndex&&0==i.position&&!i.origin&&(i.origin=e-this._selectedIndex)}),this._selectedIndex!==e&&(this._selectedIndex=e,this._lastFocusedTabIndex=null,this._changeDetectorRef.markForCheck())}ngAfterContentInit(){this._subscribeToAllTabChanges(),this._subscribeToTabLabels(),this._tabsSubscription=this._tabs.changes.subscribe(()=>{const e=this._clampTabIndex(this._indexToSelect);if(e===this._selectedIndex){const i=this._tabs.toArray();let r;for(let o=0;o{i[e].isActive=!0,this.selectedTabChange.emit(this._createChangeEvent(e))})}this._changeDetectorRef.markForCheck()})}_subscribeToAllTabChanges(){this._allTabs.changes.pipe(ni(this._allTabs)).subscribe(e=>{this._tabs.reset(e.filter(i=>i._closestTabGroup===this||!i._closestTabGroup)),this._tabs.notifyOnChanges()})}ngOnDestroy(){this._tabs.destroy(),this._tabsSubscription.unsubscribe(),this._tabLabelSubscription.unsubscribe()}realignInkBar(){this._tabHeader&&this._tabHeader._alignInkBarToSelectedTab()}updatePagination(){this._tabHeader&&this._tabHeader.updatePagination()}focusTab(e){const i=this._tabHeader;i&&(i.focusIndex=e)}_focusChanged(e){this._lastFocusedTabIndex=e,this.focusChange.emit(this._createChangeEvent(e))}_createChangeEvent(e){const i=new h$;return i.index=e,this._tabs&&this._tabs.length&&(i.tab=this._tabs.toArray()[e]),i}_subscribeToTabLabels(){this._tabLabelSubscription&&this._tabLabelSubscription.unsubscribe(),this._tabLabelSubscription=On(...this._tabs.map(e=>e._stateChanges)).subscribe(()=>this._changeDetectorRef.markForCheck())}_clampTabIndex(e){return Math.min(this._tabs.length-1,Math.max(e||0,0))}_getTabLabelId(e){return`mat-tab-label-${this._groupId}-${e}`}_getTabContentId(e){return`mat-tab-content-${this._groupId}-${e}`}_setTabBodyWrapperHeight(e){if(!this._dynamicHeight||!this._tabBodyWrapperHeight)return;const i=this._tabBodyWrapper.nativeElement;i.style.height=this._tabBodyWrapperHeight+"px",this._tabBodyWrapper.nativeElement.offsetHeight&&(i.style.height=e+"px")}_removeTabBodyWrapperHeight(){const e=this._tabBodyWrapper.nativeElement;this._tabBodyWrapperHeight=e.clientHeight,e.style.height="",this.animationDone.emit()}_handleClick(e,i,r){e.disabled||(this.selectedIndex=i.focusIndex=r)}_getTabIndex(e,i){return e.disabled?null:i===(this._lastFocusedTabIndex??this.selectedIndex)?0:-1}_tabFocusChanged(e,i){e&&"mouse"!==e&&"touch"!==e&&(this._tabHeader.focusIndex=i)}}return n.\u0275fac=function(e){return new(e||n)(p(Je),p(St),p(QI,8),p(qn,8))},n.\u0275dir=fe({type:n,inputs:{dynamicHeight:"dynamicHeight",selectedIndex:"selectedIndex",headerPosition:"headerPosition",animationDuration:"animationDuration",contentTabIndex:"contentTabIndex",disablePagination:"disablePagination",preserveContent:"preserveContent",backgroundColor:"backgroundColor"},outputs:{selectedIndexChange:"selectedIndexChange",focusChange:"focusChange",animationDone:"animationDone",selectedTabChange:"selectedTabChange"},features:[Se]}),n})(),m$=(()=>{class n extends f${constructor(e,i,r,o){super(e,i,r,o)}}return n.\u0275fac=function(e){return new(e||n)(p(Je),p(St),p(QI,8),p(qn,8))},n.\u0275cmp=Ue({type:n,selectors:[["mat-tab-group"]],contentQueries:function(e,i,r){if(1&e&&jt(r,KI,5),2&e){let o;ce(o=ue())&&(i._allTabs=o)}},viewQuery:function(e,i){if(1&e&&(De(zW,5),De(GW,5)),2&e){let r;ce(r=ue())&&(i._tabBodyWrapper=r.first),ce(r=ue())&&(i._tabHeader=r.first)}},hostAttrs:[1,"mat-tab-group"],hostVars:4,hostBindings:function(e,i){2&e&&bt("mat-tab-group-dynamic-height",i.dynamicHeight)("mat-tab-group-inverted-header","below"===i.headerPosition)},inputs:{color:"color",disableRipple:"disableRipple"},exportAs:["matTabGroup"],features:[it([{provide:$I,useExisting:n}]),Se],decls:6,vars:7,consts:[[3,"selectedIndex","disableRipple","disablePagination","indexFocused","selectFocusedIndex"],["tabHeader",""],["class","mat-tab-label mat-focus-indicator","role","tab","matTabLabelWrapper","","mat-ripple","","cdkMonitorElementFocus","",3,"id","mat-tab-label-active","ngClass","disabled","matRippleDisabled","click","cdkFocusChange",4,"ngFor","ngForOf"],[1,"mat-tab-body-wrapper"],["tabBodyWrapper",""],["role","tabpanel",3,"id","mat-tab-body-active","ngClass","content","position","origin","animationDuration","preserveContent","_onCentered","_onCentering",4,"ngFor","ngForOf"],["role","tab","matTabLabelWrapper","","mat-ripple","","cdkMonitorElementFocus","",1,"mat-tab-label","mat-focus-indicator",3,"id","ngClass","disabled","matRippleDisabled","click","cdkFocusChange"],[1,"mat-tab-label-content"],[3,"ngIf","ngIfElse"],["tabTextLabel",""],[3,"cdkPortalOutlet"],["role","tabpanel",3,"id","ngClass","content","position","origin","animationDuration","preserveContent","_onCentered","_onCentering"]],template:function(e,i){1&e&&(g(0,"mat-tab-header",0,1),W("indexFocused",function(o){return i._focusChanged(o)})("selectFocusedIndex",function(o){return i.selectedIndex=o}),H(2,YW,5,15,"div",2),_(),g(3,"div",3,4),H(5,QW,1,11,"mat-tab-body",5),_()),2&e&&(v("selectedIndex",i.selectedIndex||0)("disableRipple",i.disableRipple)("disablePagination",i.disablePagination),f(2),v("ngForOf",i._tabs),f(1),bt("_mat-animation-noopable","NoopAnimations"===i._animationMode),f(2),v("ngForOf",i._tabs))},dependencies:[$a,zn,pn,ks,xr,T8,JI,YI,u$],styles:[".mat-tab-group{display:flex;flex-direction:column;max-width:100%}.mat-tab-group.mat-tab-group-inverted-header{flex-direction:column-reverse}.mat-tab-label{height:48px;padding:0 24px;cursor:pointer;box-sizing:border-box;opacity:.6;min-width:160px;text-align:center;display:inline-flex;justify-content:center;align-items:center;white-space:nowrap;position:relative}.mat-tab-label:focus{outline:none}.mat-tab-label:focus:not(.mat-tab-disabled){opacity:1}.mat-tab-label.mat-tab-disabled{cursor:default}.cdk-high-contrast-active .mat-tab-label.mat-tab-disabled{opacity:.5}.mat-tab-label .mat-tab-label-content{display:inline-flex;justify-content:center;align-items:center;white-space:nowrap}.cdk-high-contrast-active .mat-tab-label{opacity:1}@media(max-width: 599px){.mat-tab-label{padding:0 12px}}@media(max-width: 959px){.mat-tab-label{padding:0 12px}}.mat-tab-group[mat-stretch-tabs]>.mat-tab-header .mat-tab-label{flex-basis:0;flex-grow:1}.mat-tab-body-wrapper{position:relative;overflow:hidden;display:flex;transition:height 500ms cubic-bezier(0.35, 0, 0.25, 1)}.mat-tab-body-wrapper._mat-animation-noopable{transition:none !important;animation:none !important}.mat-tab-body{top:0;left:0;right:0;bottom:0;position:absolute;display:block;overflow:hidden;outline:0;flex-basis:100%}.mat-tab-body.mat-tab-body-active{position:relative;overflow-x:hidden;overflow-y:auto;z-index:1;flex-grow:1}.mat-tab-group.mat-tab-group-dynamic-height .mat-tab-body.mat-tab-body-active{overflow-y:hidden}"],encapsulation:2}),n})(),g$=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=ht({type:n}),n.\u0275inj=dt({imports:[$r,Lt,Xa,ha,dd,hb,Lt]}),n})();const _$=["searchProject"],v$=["searchTableSelected"];function y$(n,t){if(1&n){const e=Ie();g(0,"button",17),W("click",function(){return J(e),Z(C(3).searchValue="")}),be(1,"div",18),_()}if(2&n){const e=C(3);f(1),v("ngStyle",e.searchClearImage)}}function b$(n,t){if(1&n&&(g(0,"mat-option",19),j(1),_()),2&n){const e=t.$implicit;v("value",e.value),f(1),ve(e.viewValue)}}function C$(n,t){1&n&&j(0),2&n&&qe(" ",C(3).globals.languageConfLocal.list," ")}const eM=function(n){return{background:n}};function w$(n,t){if(1&n&&be(0,"mat-cell",27),2&n){const e=t.$implicit,i=C(4);v("ngStyle",Wn(1,eM,"no-repeat url("+i.viewIconBaseURL+e.iconURL+")"))}}function E$(n,t){if(1&n&&(g(0,"div",33),j(1),_()),2&n){const e=C().$implicit;f(1),qe(" ",e.name," ")}}function D$(n,t){if(1&n&&(g(0,"div"),j(1),_()),2&n){const e=C().$implicit;f(1),zr(" ",e.number," / ",e.owner," ")}}function S$(n,t){if(1&n){const e=Ie();g(0,"mat-cell",28)(1,"mat-dialog-content",29),H(2,E$,2,1,"div",30),H(3,D$,2,2,"div",1),g(4,"div",31),W("click",function(r){const s=J(e).index;return C(4).addProject(s),Z(r.stopPropagation())})("dblclick",function(r){return r.stopPropagation()}),be(5,"img",32),_()()()}if(2&n){const e=t.$implicit;f(2),v("ngIf",""!==e.name),f(1),v("ngIf",""!==e.number&&""!==e.owner)}}function A$(n,t){}function T$(n,t){if(1&n){const e=Ie();g(0,"mat-row",34),W("click",function(){const o=J(e).$implicit;return Z(C(4).toggleSelection(o))})("dblclick",function(){const o=J(e).$implicit;return Z(C(4).acceptEntryDblClick(o))}),H(1,A$,0,0,"ng-template"),_()}if(2&n){const e=t.$implicit,i=C(4);bt("isSelected",i.selection.isSelected(e)),v("matRippleColor",i.rippleColor)("matRippleCentered",i.centered)("matRippleDisabled",i.disabled)("matRippleUnbounded",i.unbounded)("hidden",!(e.show&&!i.pointerList.has(e.pointer)))}}function x$(n,t){if(1&n&&(g(0,"div")(1,"mat-table",20,21),xi(3,22),H(4,w$,1,3,"mat-cell",23),Ii(),xi(5,24),H(6,S$,6,2,"mat-cell",25),Ii(),H(7,T$,2,7,"mat-row",26),_()()),2&n){const e=C(3);_s(e.tableWrapperClassName),f(1),v("dataSource",e.searchResults),f(6),v("matRowDefColumns",e.displayedColumns)}}function I$(n,t){if(1&n){const e=Ie();g(0,"div"),W("@shake.done",function(){return J(e),Z(C(3).shakeEnd("selectedProdAnimation"))}),j(1),_()}if(2&n){const e=C(3);v("@shake",e.animationStates.selectedProdAnimation),f(1),qe(" ",e.globals.languageConfLocal.selected," ")}}function M$(n,t){if(1&n&&be(0,"mat-cell",27),2&n){const e=t.$implicit,i=C(4);v("ngStyle",Wn(1,eM,"no-repeat url("+i.viewIconBaseURL+e.iconURL+")"))}}function k$(n,t){if(1&n&&(g(0,"div",33),j(1),_()),2&n){const e=C().$implicit;f(1),qe(" ",e.name," ")}}function R$(n,t){if(1&n&&(g(0,"div"),j(1),_()),2&n){const e=C().$implicit;f(1),zr(" ",e.number," / ",e.owner," ")}}function O$(n,t){if(1&n){const e=Ie();g(0,"mat-cell",28)(1,"mat-dialog-content",29),H(2,k$,2,1,"div",30),H(3,R$,2,2,"div",1),g(4,"div",37),W("click",function(r){const s=J(e).index;return C(4).removeProject(s),Z(r.stopPropagation())})("dblclick",function(r){return r.stopPropagation()}),be(5,"img",38),_()()()}if(2&n){const e=t.$implicit;f(2),v("ngIf",""!==e.name),f(1),v("ngIf",""!==e.number&&""!==e.owner)}}function P$(n,t){if(1&n){const e=Ie();g(0,"mat-row",39),W("click",function(){const o=J(e).$implicit;return Z(C(4).toggleSelection(o))})("dblclick",function(){const o=J(e).$implicit;return Z(C(4).acceptEntryDblClick(o))}),_()}if(2&n){const e=t.$implicit,i=C(4);bt("isSelected",i.selection.isSelected(e)),v("matRippleColor",i.rippleColor)("matRippleCentered",i.centered)("matRippleDisabled",i.disabled)("matRippleUnbounded",i.unbounded)}}function L$(n,t){if(1&n&&(g(0,"div")(1,"mat-table",20,35),xi(3,22),H(4,M$,1,3,"mat-cell",23),Ii(),xi(5,24),H(6,O$,6,2,"mat-cell",25),Ii(),H(7,P$,1,6,"mat-row",36),_()()),2&n){const e=C(3);_s(e.tableWrapperClassName),f(1),v("dataSource",e.selectedProjects),f(6),v("matRowDefColumns",e.displayedColumns)}}function N$(n,t){1&n&&(g(0,"div"),j(1),Ze(2,"translate"),_()),2&n&&(f(1),ve(Xe(2,1,"LC53482")))}function F$(n,t){if(1&n&&(g(0,"div"),j(1),_()),2&n){const e=C(3);f(1),qe(" ",e.globals.languageConfLocal.noProjectSelected," ")}}const B$=function(n){return{title:n}},j$=function(n,t,e,i){return{confirm:n,cancel:t,confirmAction:e,cancelAction:i}};function H$(n,t){if(1&n){const e=Ie();g(0,"div"),Wt(1,2),g(2,"div",3)(3,"div",4)(4,"mat-form-field",5)(5,"mat-label"),j(6),Ze(7,"translate"),_(),g(8,"input",6),W("ngModelChange",function(r){return J(e),Z(C(2).searchValue=r)})("keyup.enter",function(){J(e);const r=C(2);return Z(r.search(r.curPointer))}),_(),H(9,y$,2,1,"button",7),_(),g(10,"input",8),W("click",function(){J(e);const r=C(2);return Z(r.search(r.curPointer))}),Ze(11,"translate"),_()(),g(12,"mat-form-field",9)(13,"mat-label"),j(14),Ze(15,"translate"),_(),g(16,"mat-select",10),W("valueChange",function(r){return J(e),Z(C(2).selectedDB=r)})("selectionChange",function(){J(e);const r=C(2);return Z(r.fetchSearch(r.selectedDB,r.curPointer))}),H(17,b$,2,2,"mat-option",11),_()(),g(18,"mat-tab-group",12),W("selectedIndexChange",function(r){return J(e),Z(C(2).curTabIndex=r)}),g(19,"mat-tab"),H(20,C$,1,1,"ng-template",13),H(21,x$,8,5,"div",14),_(),g(22,"mat-tab"),H(23,I$,2,2,"ng-template",13),H(24,L$,8,5,"div",14),_()(),H(25,N$,3,3,"ng-template",null,15,Sn),H(27,F$,2,1,"ng-template",null,16,Sn),_(),Wt(29,2),Ze(30,"translate"),Ze(31,"translate"),_()}if(2&n){const e=Yt(26),i=Yt(28),r=C(2);f(1),v("ngTemplateOutlet",r.modalHeader)("ngTemplateOutletContext",Wn(26,B$,r.globals.languageConfLocal.selectProject)),f(5),ve(Xe(7,16,"LC53489")),f(2),v("ngModel",r.searchValue),f(1),v("ngIf",r.searchValue),f(1),_t("value",Xe(11,18,"LC36251")),f(4),ve(Xe(15,20,"LC53516")),f(2),v("value",r.selectedDB),f(1),v("ngForOf",r.databases),f(1),v("selectedIndex",r.curTabIndex),f(3),v("ngIf",r.searchResults.length>=1&&!r.allHidden)("ngIfElse",e),f(3),v("ngIf",r.selectedProjects.length>=1)("ngIfElse",i),f(5),v("ngTemplateOutlet",r.modalFooter)("ngTemplateOutletContext",Yi(28,j$,Xe(30,22,"LC73135"),Xe(31,24,"LC73136"),r.confirmAction.bind(r),r.cancelAction.bind(r)))}}function V$(n,t){if(1&n&&H(0,H$,32,33,"div",1),2&n){const e=C();v("ngIf",e.projectStatus>0&&!e.docToDoc)}}let U$=(()=>{class n extends Pb{constructor(e,i,r,o,s,a,l){super(e,r,i,o,s,a),this.projectService=l,this.messageEvent=new He,this.animationStates={},this.prefix="Projects: ",this.path="projects",this.searchResults=[],this.selectedProjects=[],this.pointerList=new Set,this.searchResultPointers=[],this.addedContact=!1,this.allHidden=!1,this.docToDoc=!1,this.pointerToName={},this.selectionToPointer={},this.animationStates.selectedProdAnimation="",this.curTabIndex=0,this.projectStatus=-1}ngOnInit(){super.ngOnInit(),this.tableWrapperClassName="Owa"===this.globals.curConnectorType?"tableWrapper":"tableWrapperVerseTabs"}shakeEle(e){this.animationStates[e]="shakestart"===this.animationStates[e]?"shakeend":"shakestart"}shakeEnd(e){this.animationStates[e]="shakeend",this.animationStates[e+"inProg"]=!1}getTemplate(){return this.modalTemp}addProject(e){if(this.searchResults.length>=e){const i=this.searchResults[e];this.searchResults[e].show=!1,i.formerIndex=e,this.shakeEle("selectedProdAnimation"),this.selectedProjects.push(i),this.renderSelectedView()}this.updateSelectedPointer(),this.checkIfAllHidden()}removeProject(e){const i=this.selectedProjects.splice(e,1)[0];void 0!==i.formerIndex&&(this.searchResults[i.formerIndex].show=!0),this.renderSelectedView(),this.updateSelectedPointer(),this.checkIfAllHidden()}renderSelectedView(){this.selectedProjTable&&this.selectedProjTable.renderRows()}generateSelectionArr(e){const i=this.addressService.currentAddressData;if(!this.addedContact){const r={value:i.name,viewValue:i.name,pointer:i.pointer};this.curPointer=i.pointer,this.selectionToPointer[i.name]=this.curPointer,this.pointerToName[this.curPointer]=i.name,this.databases.push(r)}for(const r of e)this.databases.push({value:r.alias,viewValue:r.title});this.databases.length>0&&(this.selectedDB=this.databases[0].value,this.fetchSearch(null,i.pointer))}search(e){this.curTabIndex=0,super.search(e)}fetchDBs(){const e={};this.data.passedData.docPointer?e.pointer=this.data.passedData.docPointer:e.onlyOptions=!0;const i=new $t({fromObject:e});this.connection.getReqModal("projects",i).subscribe(r=>{"projectPointers"in r?(this.projectStatus=Number(r.projectStatus),0===this.projectStatus?this.openAnotherModal(this.next,this.data.passedData):Array.isArray(r.assignedProjects)&&r.assignedProjects.length>0?this.handleDocToDocPhases(r.assignedProjects,r.useOpportunityProjects):this.generateSelectionArr(r.databases)):this.openAnotherModal(this.next,this.data.passedData)})}fetchSearch(e,i){return i&&this.pointerToName[i]!==e&&(this.curPointer=void 0),e&&this.selectionToPointer[e]&&(i=this.selectionToPointer[e]),super.fetchSearch(e,i)}handleResult(e){this.updateSelectedPointer(),null!=e.projects&&Array.isArray(e.projects)&&e.projects.length>0?(this.searchResults=e.projects,this.searchResultPointers=e.projectPointers):this.searchResults=[],this.checkIfAllHidden()}updateSelectedPointer(){this.pointerList.clear();for(const e of this.selectedProjects)this.pointerList.add(e.pointer)}confirmAction(){this.selectedProjects.length<1&&2===this.projectStatus?this.translate.get("LC03593").subscribe(e=>{this.messageService.showError(e)}):this.projectService.handlePhases(Array.from(this.pointerList)).subscribe(e=>{Array.isArray(e)&&this.handlePhases(e).subscribe(()=>{this.data.passedData.projectPointers=Array.from(this.pointerList),this.openAnotherModal(this.next,this.data.passedData)})})}handleDocToDocPhases(e,i=!1){this.docToDoc=!0,this.projectService.handleDocToDocPhases(e,i).subscribe(r=>{r.projects.forEach(o=>this.pointerList.add(o)),this.handlePhases(r.phasesToCheck).subscribe(()=>{this.data.passedData.projectPointers=Array.from(this.pointerList),this.openAnotherModal(this.next,this.data.passedData)})})}handlePhases(e){return new b(i=>{if(Array.isArray(e)&&e.length>0){const r=e.splice(0,1)[0];r&&r.projectphases.length>0?this.openAnotherModal("projectPhase",{projectInfo:r})?.beforeClosed().subscribe(s=>{s?(s.phases&&Array.isArray(s.phases)&&s.phases.length>0&&(this.pointerList.has(s.parentPointer)&&this.pointerList.delete(s.parentPointer),s.phases.forEach(l=>this.pointerList.add(l))),this.handlePhases(e).subscribe(()=>{i.next(),i.complete()})):i.complete()}):(i.next(),i.complete())}else i.next(),i.complete()})}compareProject(e,i){return e.pointer===i.pointer}checkIfAllHidden(){this.allHidden=this.projectService.checkIfAllHidden(Array.from(this.pointerList),this.searchResultPointers)}}return n.\u0275fac=function(e){return new(e||n)(p(Ut),p(In),p(ot),p(tn),p(wd),p(Ps),p(PW))},n.\u0275cmp=Ue({type:n,selectors:[["app-search-project"]],viewQuery:function(e,i){if(1&e&&(De(_$,7),De(v$,5)),2&e){let r;ce(r=ue())&&(i.modalTemp=r.first),ce(r=ue())&&(i.selectedProjTable=r.first)}},inputs:{data:"data"},outputs:{messageEvent:"messageEvent"},features:[Se],decls:2,vars:0,consts:[["searchProject",""],[4,"ngIf"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"modalBody"],[1,"searchInputWrapper"],[1,"searchInput"],["matInput","","type","text",3,"ngModel","ngModelChange","keyup.enter"],["matSuffix","","aria-label","Clear",3,"click",4,"ngIf"],["id","searchButton","type","button",1,"buttonSilverMiddle",3,"value","click"],["appearance","standard",1,"databaseSearchSelect"],[3,"value","valueChange","selectionChange"],[3,"value",4,"ngFor","ngForOf"],["mat-stretch-tabs","",3,"selectedIndex","selectedIndexChange"],["mat-tab-label",""],[3,"class",4,"ngIf","ngIfElse"],["noResult",""],["noSelection",""],["matSuffix","","aria-label","Clear",3,"click"],[1,"modalCloseIcon",3,"ngStyle"],[3,"value"],[1,"searchTable",3,"dataSource"],["searchTableList",""],["matColumnDef","icon"],["class","searchIcon",3,"ngStyle",4,"matCellDef"],["matColumnDef","display"],["class","searchDisplay",4,"matCellDef"],["matRipple","","class","searchRow projectButtonContainer",3,"matRippleColor","matRippleCentered","matRippleDisabled","matRippleUnbounded","hidden","isSelected","click","dblclick",4,"matRowDef","matRowDefColumns"],[1,"searchIcon",3,"ngStyle"],[1,"searchDisplay"],[1,"no-select"],["class","bold",4,"ngIf"],[1,"overlay-list",3,"click","dblclick"],["src","assets/images/vwicn112.png",1,"projectButton"],[1,"bold"],["matRipple","",1,"searchRow","projectButtonContainer",3,"matRippleColor","matRippleCentered","matRippleDisabled","matRippleUnbounded","hidden","click","dblclick"],["searchTableSelected",""],["matRipple","","class","searchRow projectButtonContainer",3,"matRippleColor","matRippleCentered","matRippleDisabled","matRippleUnbounded","isSelected","click","dblclick",4,"matRowDef","matRowDefColumns"],[1,"overlay-selected",3,"click","dblclick"],["src","assets/images/vwicn081.png",1,"projectButton"],["matRipple","",1,"searchRow","projectButtonContainer",3,"matRippleColor","matRippleCentered","matRippleDisabled","matRippleUnbounded","click","dblclick"]],template:function(e,i){1&e&&H(0,V$,1,1,"ng-template",null,0,Sn)},dependencies:[zn,pn,Ji,ra,Ar,Kr,wo,yd,Ir,Pi,Lb,Ko,cr,Mr,Jf,xd,Td,Zf,Id,Xf,xr,m$,e$,KI,ki],styles:[".searchInputWrapper[_ngcontent-%COMP%]{display:flex;flex-direction:row;align-items:center;justify-content:space-between}.databaseSearchSelect[_ngcontent-%COMP%]{width:100%}.searchInput[_ngcontent-%COMP%]{width:calc(100% - 70px);display:block;padding-bottom:0!important}.searchIcon[_ngcontent-%COMP%]{width:30px;padding:0 10px 0 0!important;background-position:40% 50%!important}.searchRow[_ngcontent-%COMP%] .searchIcon[_ngcontent-%COMP%], .searchRow[_ngcontent-%COMP%] .searchDisplay[_ngcontent-%COMP%], .searchRow[_ngcontent-%COMP%]{border-bottom:0px}.searchRow[_ngcontent-%COMP%]:nth-child(2n){background:#f2f2f2}.isSelected[_ngcontent-%COMP%]{background:rgb(224,239,255)!important}.searchRow[_ngcontent-%COMP%]{cursor:pointer;overflow:hidden;padding-right:5px}.searchRow[_ngcontent-%COMP%]:hover{background:rgba(224,239,255,.4)}.searchDisplay[_ngcontent-%COMP%], .searchTable[_ngcontent-%COMP%]{width:100%}.tableWrapper[_ngcontent-%COMP%], .tableWrapperVerse[_ngcontent-%COMP%], .tableWrapperVerseTabs[_ngcontent-%COMP%]{overflow:auto}.tableWrapper[_ngcontent-%COMP%]{max-height:50vh}.tableWrapperVerse[_ngcontent-%COMP%]{max-height:45vh}.tableWrapperVerseTabs[_ngcontent-%COMP%]{max-height:calc(45vh - 48px)}.overlay-list[_ngcontent-%COMP%], .overlay-selected[_ngcontent-%COMP%]{position:absolute;bottom:0;left:100%;right:0;overflow:hidden;width:0;height:100%;transition:.5s ease;box-shadow:none}.overlay-list[_ngcontent-%COMP%]{background-color:#a1f79b}.overlay-selected[_ngcontent-%COMP%]{background-color:#ff6a6a}.projectButtonContainer[_ngcontent-%COMP%]:hover .overlay-list[_ngcontent-%COMP%], .projectButtonContainer[_ngcontent-%COMP%]:hover .overlay-selected[_ngcontent-%COMP%]{width:30px;left:calc(100% - 30px);box-shadow:0 0 10px #999}.projectButton[_ngcontent-%COMP%]{margin:0;position:absolute;top:50%;left:calc(50% - 9px);transform:translateY(-50%)}#searchButton[_ngcontent-%COMP%]{height:100%;padding:4px;margin:0 0 5px;float:right;font-weight:700;display:flex}"],data:{animation:[So("shake",[li("shakestart",qt({transform:"scale(1)"})),li("shakeend",qt({transform:"scale(1)"})),bi("shakestart => shakeend",Oi("1000ms ease-in",V6([qt({transform:"translate3d(-4px, 0, 0)",offset:.1}),qt({transform:"translate3d(4px, 0, 0)",offset:.2}),qt({transform:"translate3d(-4px, 0, 0)",offset:.3}),qt({transform:"translate3d(4px, 0, 0)",offset:.4}),qt({transform:"translate3d(-4px, 0, 0)",offset:.5}),qt({transform:"translate3d(4px, 0, 0)",offset:.6}),qt({transform:"translate3d(-4px, 0, 0)",offset:.7}),qt({transform:"translate3d(4px, 0, 0)",offset:.8}),qt({transform:"translate3d(-4px, 0, 0)",offset:.9})])))])]}}),n})();const q$=["projPhases"],z$=["selection"];function G$(n,t){if(1&n&&(g(0,"mat-list-option",5),j(1),_()),2&n){const e=t.$implicit;_t("value",e.pointer),_t("selected",e.selected),f(1),qe(" ",e.name," ")}}const W$=function(n){return{title:n}},$$=function(n,t,e,i){return{confirm:n,cancel:t,confirmAction:e,cancelAction:i}};function K$(n,t){if(1&n&&(Wt(0,1),Ze(1,"translate"),g(2,"div",2)(3,"p"),j(4),Ze(5,"translate"),_(),g(6,"p"),j(7),_(),g(8,"mat-selection-list",null,3),H(10,G$,2,3,"mat-list-option",4),_()(),Wt(11,1),Ze(12,"translate"),Ze(13,"translate")),2&n){const e=C();v("ngTemplateOutlet",e.modalHeader)("ngTemplateOutletContext",Wn(15,W$,Xe(1,7,"LC03411"))),f(4),ve(Xe(5,9,"LC03410")),f(3),ve(e.projectInfo.projectDisplay),f(3),v("ngForOf",e.projectInfo.projectphases),f(1),v("ngTemplateOutlet",e.modalFooter)("ngTemplateOutletContext",Yi(17,$$,Xe(12,11,"LC73135"),Xe(13,13,"LC73136"),e.confirmAction.bind(e),e.cancelAction.bind(e)))}}let Y$=(()=>{class n extends Yr{constructor(e,i,r){super(e),this.translate=e,this.messageService=i,this.globals=r}ngOnInit(){this.projectInfo=this.data.passedData.projectInfo}confirmAction(){const e=this.createResponse(this.convertToPointerArray(this.selection.selectedOptions));this.data.closeModal(e)}convertToPointerArray(e){const i=[];for(const r of e.selected)i.push(r.value);return i.length<1&&i.push(this.projectInfo.projectPointer),i}createResponse(e){const i={};return i.parentPointer=this.projectInfo.projectPointer,i.phases=e,i}}return n.\u0275fac=function(e){return new(e||n)(p(Ut),p(tn),p(ot))},n.\u0275cmp=Ue({type:n,selectors:[["app-select-create-label"]],viewQuery:function(e,i){if(1&e&&(De(q$,7),De(z$,5)),2&e){let r;ce(r=ue())&&(i.modalTemp=r.first),ce(r=ue())&&(i.selection=r.first)}},features:[Se],decls:2,vars:0,consts:[["projPhases",""],[3,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"modalBody","phaseSelection"],["selection",""],["checkboxPosition","before",3,"value","selected",4,"ngFor","ngForOf"],["checkboxPosition","before",3,"value","selected"]],template:function(e,i){1&e&&H(0,K$,14,22,"ng-template",null,0,Sn)},dependencies:[zn,Ji,$o,Ls,ki]}),n})();const Q$=["selMailAddr"],J$=["selAddr"];function Z$(n,t){if(1&n&&(g(0,"div"),j(1),_()),2&n){const e=C().$implicit;f(1),qe(" ",e.additional.database,": ")}}function X$(n,t){if(1&n&&(g(0,"div"),j(1),_()),2&n){const e=C().$implicit;f(1),qe("(",e.companyName,")")}}function eK(n,t){if(1&n){const e=Ie();g(0,"mat-list-option",6),W("dblclick",function(){const o=J(e).index;return Z(C(2).changeSelectedIndex(o))}),g(1,"div",7),H(2,Z$,2,1,"div",8),g(3,"div"),j(4),_(),H(5,X$,2,1,"div",8),_()()}if(2&n){const e=t.$implicit,i=t.index,r=C(2);_t("value",i),v("selected",i===r.addressService.addressIndex),f(2),v("ngIf",e.additional&&e.additional.database),f(2),ve(e.name),f(1),v("ngIf",e.companyName)}}const tK=function(n){return{title:n}},nK=function(n,t,e,i){return{confirm:n,cancel:t,confirmAction:e,cancelAction:i}};function iK(n,t){if(1&n&&(Wt(0,1),Ze(1,"translate"),g(2,"div",2)(3,"mat-selection-list",3,4),H(5,eK,6,5,"mat-list-option",5),_()(),Wt(6,1),Ze(7,"translate"),Ze(8,"translate")),2&n){const e=C();v("ngTemplateOutlet",e.modalHeader)("ngTemplateOutletContext",Wn(12,tK,Xe(1,6,"LC52163"))),f(3),v("multiple",!1),f(2),v("ngForOf",e.addresses),f(1),v("ngTemplateOutlet",e.modalFooter)("ngTemplateOutletContext",Yi(14,nK,Xe(7,8,"LC73135"),Xe(8,10,"LC73136"),e.confirmAction.bind(e),e.cancelAction.bind(e)))}}let rK=(()=>{class n extends Yr{constructor(e,i,r,o){super(i),this.globals=e,this.translate=i,this.addressService=r,this.reloadService=o}ngOnInit(){super.ngOnInit(),this.checkForAddressData()}checkForAddressData(){this.addressService.processAddresses().subscribe({next:e=>{this.addresses=e},error:()=>{},complete:()=>{}})}changeSelectedIndex(e){this.addressService.addressIndex=e,this.confirmAction(e)}confirmAction(e){e||null!=this.selection._value&&Array.isArray(this.selection._value)&&this.selection._value.length>0&&(this.addressService.addressIndex=parseInt(this.selection._value[0],10)),this.closeAll()}}return n.\u0275fac=function(e){return new(e||n)(p(ot),p(Ut),p(Ps),p($b))},n.\u0275cmp=Ue({type:n,selectors:[["app-select-address"]],viewQuery:function(e,i){if(1&e&&(De(Q$,7),De(J$,5)),2&e){let r;ce(r=ue())&&(i.modalTemp=r.first),ce(r=ue())&&(i.selection=r.first)}},features:[Se],decls:2,vars:0,consts:[["selMailAddr",""],[3,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"modalBody"],[3,"multiple"],["selAddr",""],["checkboxPosition","after","class","addrSel",3,"selected","value","dblclick",4,"ngFor","ngForOf"],["checkboxPosition","after",1,"addrSel",3,"selected","value","dblclick"],[1,"listWrapper"],[4,"ngIf"]],template:function(e,i){1&e&&H(0,iK,9,19,"ng-template",null,0,Sn)},dependencies:[zn,pn,Ji,$o,Ls,ki],styles:["mat-list-option[_ngcontent-%COMP%]:nth-child(2n){background:#f2f2f2}.modalBody[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]{overflow:auto;max-height:60vh}.modalBody[_ngcontent-%COMP%] > mat-selection-list[_ngcontent-%COMP%]{padding-top:0}"]}),n})();const oK=["login"],sK=function(){return{title:"Login"}},aK=function(n,t,e,i){return{confirm:n,cancel:t,confirmAction:e,cancelAction:i}};function lK(n,t){if(1&n){const e=Ie();Wt(0,1),g(1,"div",2)(2,"div",3)(3,"mat-form-field",4)(4,"mat-label"),j(5),Ze(6,"translate"),_(),g(7,"input",5,6),W("ngModelChange",function(r){return J(e),Z(C().uname=r)})("focus",function(){return J(e),Z(Yt(8).select())})("keyup.enter",function(){return J(e),Z(Yt(14).focus())}),_()(),g(9,"mat-form-field",4)(10,"mat-label"),j(11),Ze(12,"translate"),_(),g(13,"input",7,8),W("ngModelChange",function(r){return J(e),Z(C().pwd=r)})("focus",function(){return J(e),Z(Yt(14).select())})("keyup.enter",function(){return J(e),Z(C().confirmAction())}),_()()()(),Wt(15,1),Ze(16,"translate"),Ze(17,"translate")}if(2&n){const e=C();v("ngTemplateOutlet",e.modalHeader)("ngTemplateOutletContext",Tv(16,sK)),f(5),ve(Xe(6,8,"username")),f(2),v("ngModel",e.uname),f(4),ve(Xe(12,10,"password")),f(2),v("ngModel",e.pwd),f(2),v("ngTemplateOutlet",e.modalFooter)("ngTemplateOutletContext",Yi(17,aK,Xe(16,12,"LC73135"),Xe(17,14,"LC73136"),e.confirmAction.bind(e),e.cancelAction.bind(e)))}}let cK=(()=>{class n extends Yr{constructor(e,i,r,o){super(e),this.translate=e,this.connection=i,this.messageService=r,this.globals=o}ngOnInit(){}checkIfEmpty(e,i){return Ae(function*(){return!e||""===e||!i||""===i})()}confirmAction(){var e=this;return Ae(function*(){(yield e.checkIfEmpty(e.uname.trim(),e.pwd.trim()))?e.messageService.showError(e.globals.languageConfLocal.inputMissing):(yield e.connection.login(e.uname,e.pwd))&&e.closeAll()})()}}return n.\u0275fac=function(e){return new(e||n)(p(Ut),p(In),p(tn),p(ot))},n.\u0275cmp=Ue({type:n,selectors:[["app-login"]],viewQuery:function(e,i){if(1&e&&De(oK,7),2&e){let r;ce(r=ue())&&(i.modalTemp=r.first)}},features:[Se],decls:2,vars:0,consts:[["login",""],[3,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"modalBody"],[1,"inputWrapper"],[1,"loginInput"],["matInput","","type","text",3,"ngModel","ngModelChange","focus","keyup.enter"],["userInput",""],["matInput","","type","password",3,"ngModel","ngModelChange","focus","keyup.enter"],["passwordInput",""]],template:function(e,i){1&e&&H(0,lK,18,22,"ng-template",null,0,Sn)},dependencies:[Ji,Ar,Kr,wo,Ir,Pi,Mr,ki],styles:[".loginInput[_ngcontent-%COMP%]{width:100%;display:block;padding-bottom:0!important}"]}),n})(),hl=(()=>{class n{constructor(e,i,r){this.waitList=e,this.globals=i,this.matDialog=r,this.modalTypeSource=new N,this.currentType=this.modalTypeSource.asObservable(),this.activeModals=[]}changeType(e){this.modalTypeSource.next(e)}setModalHeader(e){this.modalHeader=e}setModalFooter(e){this.modalFooter=e,this.modalItems=this.getModalItems(),this.waitList.accessWaitList("modalDesign").forEach(i=>{i.next(this.modalItems),i.complete(),this.waitList.clearWaitList("modalDesign")})}waitForModalDesign(){return new b(e=>{this.waitList.addToWaitList("modalDesign",e)})}getModalItems(){return this.modalItems?this.modalItems:{chooseOfficeDB:new vi(e9,this.initModalData("searchProject")),selectContact:new vi(fC,this.initModalData()),searchContact:new vi(aI,this.initModalData("chooseOfficeDB")),searchTemplate:new vi(EW,this.initModalData("chooseOfficeDB")),searchProject:new vi(U$,this.initModalData("documentFile")),createContact:new vi(Qz,this.initModalData()),createTicket:new vi(r7,this.initModalData()),documentFile:new vi(UG,this.initModalData()),createAddressCompany:new vi(fC,this.initModalData("createContact",{createType:"company"})),createAddressToCompany:new vi(aI,this.initModalData("createContact",{type:"company",createType:"toCompany"})),createAddressPerson:new vi(fC,this.initModalData("createContact",{createType:"person"})),createLabel:new vi(nW,this.initModalData(null,{currentModal:this.newActive})),selectMailAddress:new vi(OW,this.initModalData()),duplicate:new vi(aW,this.initModalData()),projectPhase:new vi(Y$,this.initModalData(null,{currentModal:this.newActive})),addressSelection:new vi(rK,this.initModalData(null,{currentModal:this.newActive})),login:new vi(cK,this.initModalData())}}addActiveModal(e){this.globals.modalCacheFlag=!0,this.activeModals.push(e)}closeActiveModal(e){const i=this.activeModals.pop();i&&i.close(e),this.activeModals.length<1&&(this.globals.modalCacheFlag=!1,this.globals.clearModalTemps())}closeAllModals(){this.matDialog.closeAll(),this.activeModals=[]}initWebIntModal(){return this.modalHeader}get modalItemsPub(){return this.modalItems}get newActive(){return this.activeModals[this.activeModals.length-1]}initModalData(e=null,i,r=this.modalHeader,o=this.modalFooter){const s={nextType:e,modalHeader:r,modalFooter:o,closeModal:this.closeActiveModal.bind(this),closeAllModal:this.closeAllModals.bind(this),modalItems:this.modalItems};if(i)for(const a of Object.keys(i))s[a]=i[a];return s}}return n.\u0275fac=function(e){return new(e||n)(M(Ri),M(ot),M(Wo))},n.\u0275prov=ge({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),tM=(()=>{class n{constructor(e){this.globals=e}waitForConnectorType(){return new b(e=>{null!=this.globals.curConnectorType&&(e.next(this.globals.curConnectorType),e.complete())})}get preview(){return"preview"in this.postData?this.postData.preview:null}}return n.\u0275fac=function(e){return new(e||n)(M(ot))},n.\u0275prov=ge({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();var Jd=G(4856);let uK=(()=>{class n extends tM{constructor(e,i,r){super(e),this.messageService=i,this.waitList=r,this.globals.curConnectorType="Owa",this.globals.graphRequired=!0,this.savedAttachments={},Office.context.platform!==Office.PlatformType.OfficeOnline&&(this.globals.isClient=!0),this.waitList.notifyWaitList("platform",!0),Office.context.mailbox.addHandlerAsync(Office.EventType.ItemChanged,this.itemChangeHandler.bind(this))}get isMailAlreadyDoc(){return!(!this.postData.ticketAlreadyDoc&&!this.postData.officeAlreadyDoc)}get curPostData(){return this.postData}get data(){return this.appData}set data(e){this.appData=e,this.initGlobalValues()}set alreadyDocumented(e){e.ticketAlreadyDoc&&(this.postData.ticketAlreadyDoc=e.ticketAlreadyDoc),e.officeAlreadyDoc&&(this.postData.officeAlreadyDoc=e.officeAlreadyDoc),this.setOpenExtension(this.postData.graphMailID,this.postData.ticketAlreadyDoc,this.postData.officeAlreadyDoc)}waitForCSS(){return new b(e=>{e.complete()})}getData(){return this.initGlobalValues()}checkMailType(){throw new Error("Method not implemented.")}adjustAttachments(){this.setAttachments(this.globals.curOWAMessageID)}updateAddressInfo(e){this.updateViewFunc=e}getPostData(){var e=this;return Ae(function*(){if(e.globals.attachmentsReady=!1,Office.context.mailbox.item){const i=Office.CoercionType.Text;Office.context.mailbox.item&&Office.context.mailbox.item?.body.getAsync(i,function(){var r=Ae(function*(o){if(o.status===Office.AsyncResultStatus.Failed)e.messageService.showError(o.error.message,o.error.name,!0);else if("gi"===e.globals.system?yield e.setPostDataGI(o,i):yield e.setPostDataBA(o,i),e.globals.graphLoaded){const s=yield e.getMimeMessage();e.globals.curOWAMessageID=s.id,e.setAttachments(s.id)}else e.waitForGraph().subscribe(Ae(function*(){const s=yield e.getMimeMessage();e.globals.curOWAMessageID=s.id,e.setAttachments(s.id)}))});return function(o){return r.apply(this,arguments)}}())}return!0})()}adjustSnackPosition(){}filterObjectEntryOfArr(e){const i=[];for(const r of e)i.push(r.emailAddress);return i}setPostDataBA(e,i){var r=this;return Ae(function*(){""===r.appData.conversationId||(r.postData={fromMail:r.appData.from.emailAddress,toMail:r.filterObjectEntryOfArr(r.appData.to),ccMail:r.filterObjectEntryOfArr(r.appData.cc),bccMail:r.filterObjectEntryOfArr(r.appData.bcc),messageID:r.appData.internetMessageId,subject:r.appData.subject,body:{htmlBody:!!i.toString().toLowerCase().includes("html"),text:btoa(e.value)},type:i.toString(),date:new Date(r.appData.dateTimeModified).toISOString(),creationDate:new Date(r.appData.dateTimeModified).getTime(),changingDate:new Date(r.appData.dateTimeModified).getTime(),attachments:[],officeAlreadyDoc:!1,ticketAlreadyDoc:!1,graphMailID:"",mailType:"Incoming"})})()}setPostDataGI(e,i){var r=this;return Ae(function*(){r.postData={to:r.appData.to,from:r.appData.from,cc:r.appData.cc,subject:r.appData.subject,sender:r.appData.sender,contentType:i,body:e.value,date:new Date(r.appData.dateTimeModified).getTime(),messageID:r.appData.internetMessageId,preview:"",isIncoming:!0,attachments:[],officeAlreadyDoc:!1,ticketAlreadyDoc:!1,graphMailID:""}})()}itemChangeHandler(){return Ae(function*(){window.location.reload()})()}checkDocumentedFlag(e){var i=this;return Ae(function*(){void 0!==e&&null!=e&&(yield i.graphClient.api(`/me/messages/${e}/extensions/GI8.BM`).responseType(Rr.RAW).get().then(function(){var o=Ae(function*(s){404===s.status?i.setOpenExtension(e):200===s.status?(s=yield s.json(),i.postData.officeAlreadyDoc=s.officeAlreadyDoc,i.postData.ticketAlreadyDoc=s.ticketAlreadyDoc):(s=yield s.json(),i.messageService.showError(s.error.message+" "+i.globals.languageConfLocal.graphRelog,"GRAPH ERROR",!0))});return function(s){return o.apply(this,arguments)}}()))})()}setOpenExtension(e,i=!1,r=!1){return Ae(function*(){})()}getMimeMessage(){var e=this;return Ae(function*(){let i=null,r=yield e.graphClient.api("/me/messages").filter(`internetMessageId eq '${e.appData.internetMessageId}'`).get();r=r.value,i=Array.isArray(r)&&r.length>0&&r.length>=1?r[0]:r;try{e.checkDocumentedFlag(i.id),i.length>0&&("gi"===e.globals.system?yield e.setMimeMessageDataGI(i):yield e.setMimeMessageDataBA(i))}catch(o){console.error(o),i=""}return i})()}setMimeMessageDataGI(e){var i=this;return Ae(function*(){i.postData=i.postData,i.postData.graphMailID=e.id,i.postData.date=new Date(e.sentDateTime).getTime(),i.postData.body=e.body.content,i.postData.contentType=e.body.contentType,i.postData.preview=(0,Jd.convert)(e.body.content,{preserveNewlines:!1,wordwrap:null}).trim().replace(/^\xa0+/gm,"").replace(/(\r\n|\r|\n){2,}/gm,"\n\n"),i.setIncomingOutgoing(e)})()}setMimeMessageDataBA(e){var i=this;return Ae(function*(){i.postData=i.postData,i.postData.graphMailID=e.id,i.postData.date=new Date(e.sentDateTime).toISOString(),i.postData.creationDate=new Date(e.createdDateTime).getTime(),i.postData.changingDate=new Date(e.lastModifiedDateTime).getTime(),i.postData.body={htmlBody:!!e.body.contentType.toLowerCase().includes("html"),text:Buffer.from(e.body.content).toString("base64")},i.postData.type=e.body.contentType,i.setIncomingOutgoing(e)})()}setIncomingOutgoing(e){var i=this;return Ae(function*(){const o=Office.context.mailbox.userProfile.emailAddress;e.sender.emailAddress.address.toLowerCase()===o.toLowerCase()?"gi"===i.globals.system?(i.postData=i.postData,i.postData.isIncoming=!1):(i.postData=i.postData,i.postData.mailType="Outgoing"):"gi"===i.globals.system?(i.postData=i.postData,i.postData.isIncoming=!0):(i.postData=i.postData,i.postData.mailType="Incoming")})()}setAttachments(e){var i=this;return Ae(function*(){i.globals.attachmentsReady=!0})()}waitForGraph(){return new b(e=>{this.waitList.addToWaitList("graphLoaded",e)})}initGlobalValues(){this.appData=Office.context.mailbox.item}}return n.\u0275fac=function(e){return new(e||n)(M(ot),M(tn),M(Ri))},n.\u0275prov=ge({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),nM=(()=>{class n extends tM{constructor(e,i,r,o){super(i),this.translate=e,this.globals=i,this.messageService=r,this.connection=o,this.adjustSnackPosition(),this.globals.curConnectorType="Verse",this.globals.curConnector=this}waitForCSS(){return new b(e=>{e.next({main:{},overflowContainer:{}}),e.complete()})}getData(){throw new Error("Method not implemented.")}checkMailType(){throw new Error("Method not implemented.")}updateAddressInfo(e){throw new Error("Method not implemented.")}adjustAttachments(){throw new Error("Method not implemented.")}set data(e){this.appData=e,this.initGlobalValues()}get data(){return this.appData}set alreadyDocumented(e){}get isMailAlreadyDoc(){return!1}get curPostData(){return this.postData}adjustSnackPosition(){this.messageService.changeClass("snackbar-bottom-center-verse")}getPostData(){var e=this;return Ae(function*(){e.connection.getReq("user",null,!0).subscribe(i=>{const r=e.appData.context;let o="";return r.body&&(o=r.body),"com.ibm.verse.widget.action.mailRead"===e.appData.actionId?e.postData={to:r.recipientTo,from:r.sender,cc:r.recipientCC,subject:r.subject,sender:r.sender,contentType:"text/html",body:o,preview:(0,Jd.convert)(o,{preserveNewlines:!1,wordwrap:null}).trim().replace(/^\xa0+/gm,"").replace(/(\r\n|\r|\n){2,}/gm,"\n\n"),date:new Date(r.timeSent).getTime(),messageID:r.unid,isIncoming:!(i.mail.toLowerCase()===r.sender.emailAddress.toLowerCase()||void 0!==r.sender.notesAddress&&i.mail.toLowerCase()===r.sender.notesAddress.toLowerCase())}:"com.ibm.verse.ext.person.action"===e.appData.actionId?e.postData={to:[null],from:r.profile.primaryEmail,cc:[null],subject:"",sender:r.profile.primaryEmail,contentType:"text/html",body:o,preview:(0,Jd.convert)(o,{preserveNewlines:!1,wordwrap:null}).trim().replace(/^\xa0+/gm,"").replace(/(\r\n|\r|\n){2,}/gm,"\n\n"),date:Date.now(),messageID:"no-unid",isIncoming:!1}:"com.ibm.verse.widget.action.mailCompose"===e.appData.actionId&&(e.postData={to:r.recipientTo,from:r.sender,cc:r.recipientCC,subject:r.subject,sender:r.sender,contentType:"text/html",body:o,preview:(0,Jd.convert)(o,{preserveNewlines:!1,wordwrap:null}).trim().replace(/^\xa0+/gm,"").replace(/(\r\n|\r|\n){2,}/gm,"\n\n"),date:Date.now(),messageID:"no-unid",isIncoming:!1}),!0})})()}initGlobalValues(){const e=this.appData.context;return"com.ibm.verse.widget.action.mailRead"===this.appData.actionId?(this.globals.actionsAllowed=!0,this.globals.curSubject=e.subject,this.globals.curMailUnid=e.unid,this.globals.curMailAddr=this.globals.ownMailAddr===e.sender.emailAddress?e.recipientTo[0]:e.sender.emailAddress,this.globals.curTo=e.recipientTo,this.globals.curFrom=e.sender,this.globals.curCC=e.recipientCC,this.globals.curMailAddrCount=e.recipientTo.length+e.recipientCC.length):"com.ibm.verse.ext.person.action"===this.appData.actionId?(this.globals.actionsAllowed=!1,this.globals.curSubject="",this.globals.curMailUnid="no-unid",this.globals.curMailAddr=e.profile.primaryEmail,this.globals.curTo=[],this.globals.curFrom={emailAddress:e.profile.primaryEmail},this.globals.curCC=[],this.globals.curMailAddrCount=0):"com.ibm.verse.widget.action.mailCompose"===this.appData.actionId&&(this.globals.actionsAllowed=!1,this.globals.createAllowed=!0,this.globals.curSubject=e.subject,this.globals.curMailUnid="no-unid",this.globals.curFrom=e.sender[0],this.composeFilterMails(e.recipientTo,e.recipientCC,e.sender[0])),this.getPostData()}composeFilterMails(e,i,r){const o=e.length,s=i.length,a=o+s;if(o<1&&a>0)this.translate.get("LC53485").subscribe(l=>{this.translate.get("to").subscribe(c=>{l=l.replace("{FIELD}",c),this.messageService.showError(l)})});else if(o<1)this.translate.get("LC53484").subscribe(l=>{this.messageService.showError(l)});else if(1===a&&e[0].emailAddress.includes("@"))this.globals.curMailAddr=e[0].emailAddress,this.globals.curTo=[],this.globals.curCC=[],this.globals.curMailAddrCount=0;else{let c,l=!1;const u=[];for(let h=0;h0||d.length>0?e[0].emailAddress:r.emailAddress,this.globals.curMailAddrCount=u.length+d.length,l&&u.length+d.length===0&&this.translate.get("LC53486").subscribe(h=>{this.messageService.showError(h)})}}}return n.\u0275fac=function(e){return new(e||n)(M(Ut),M(ot),M(tn),M(In))},n.\u0275prov=ge({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),dK=(()=>{class n{constructor(e,i,r,o,s){this.translate=e,this.globals=i,this.message=r,this.waitlist=o,this.connection=s}checkForApp(){var e=this;return new b(i=>{try{Office.onReady(()=>{i.next(new uK(this.globals,this.message,this.waitlist)),i.complete()})}catch{if(null!=sessionStorage.getItem("verseAppData")){const o=new nM(this.translate,this.globals,this.message,this.connection);o.data=JSON.parse(sessionStorage.getItem("verseAppData")),sessionStorage.clear(),i.next(o),i.complete()}else window.addEventListener("message",function(){var o=Ae(function*(s){e.verseHandler(s,i)});return function(s){return o.apply(this,arguments)}}(),!1)}})}verseHandler(e,i){var r=this;return Ae(function*(){if(sessionStorage.clear(),"com.ibm.verse.ping.application.loaded"===e.data.verseApiType){const o={verseApiType:"com.ibm.verse.application.loaded"};null!=e.source&&!(e.source instanceof MessagePort)&&!(e.source instanceof ServiceWorker)&&e.source.postMessage(o,e.origin)}if("com.ibm.verse.action.clicked"===e.data.verseApiType){const o=new nM(r.translate,r.globals,r.message,r.connection);o.data=e.data.verseApiData,i.next(o),i.complete()}})()}}return n.\u0275fac=function(e){return new(e||n)(M(Ut),M(ot),M(tn),M(Ri),M(In))},n.\u0275prov=ge({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();var hK=function(){function n(){}return n.getInteractionStatusFromEvent=function(t,e){switch(t.eventType){case st.LOGIN_START:return fi.Login;case st.SSO_SILENT_START:return fi.SsoSilent;case st.ACQUIRE_TOKEN_START:if(t.interactionType===$e.Redirect||t.interactionType===$e.Popup)return fi.AcquireToken;break;case st.HANDLE_REDIRECT_START:return fi.HandleRedirect;case st.LOGOUT_START:return fi.Logout;case st.SSO_SILENT_SUCCESS:case st.SSO_SILENT_FAILURE:if(e&&e!==fi.SsoSilent)break;return fi.None;case st.LOGOUT_END:if(e&&e!==fi.Logout)break;return fi.None;case st.HANDLE_REDIRECT_END:if(e&&e!==fi.HandleRedirect)break;return fi.None;case st.LOGIN_SUCCESS:case st.LOGIN_FAILURE:case st.ACQUIRE_TOKEN_SUCCESS:case st.ACQUIRE_TOKEN_FAILURE:if(t.interactionType===$e.Redirect||t.interactionType===$e.Popup){if(e&&e!==fi.Login&&e!==fi.AcquireToken)break;return fi.None}}return null},n}();function qs(n){return function(e){const i=new pK(n),r=e.lift(i);return i.caught=r}}class pK{constructor(t){this.selector=t}call(t,e){return e.subscribe(new fK(t,this.selector,this.caught))}}class fK extends cu{constructor(t,e,i){super(t),this.selector=e,this.caught=i}error(t){if(!this.isStopped){let e;try{e=this.selector(t,this.caught)}catch(o){return void super.error(o)}this._unsubscribeAndRecycle();const i=new ko(this);this.add(i);const r=uu(e,i);r!==i&&this.add(r)}}}const Yc=(()=>{function n(){return Error.call(this),this.message="no elements in sequence",this.name="EmptyError",this}return n.prototype=Object.create(Error.prototype),n})();function Sm(n=null){return t=>t.lift(new mK(n))}class mK{constructor(t){this.defaultValue=t}call(t,e){return e.subscribe(new gK(t,this.defaultValue))}}class gK extends S{constructor(t,e){super(t),this.defaultValue=e,this.isEmpty=!0}_next(t){this.isEmpty=!1,this.destination.next(t)}_complete(){this.isEmpty&&this.destination.next(this.defaultValue),this.destination.complete()}}function iM(n=yK){return t=>t.lift(new _K(n))}class _K{constructor(t){this.errorFactory=t}call(t,e){return e.subscribe(new vK(t,this.errorFactory))}}class vK extends S{constructor(t,e){super(t),this.errorFactory=e,this.hasValue=!1}_next(t){this.hasValue=!0,this.destination.next(t)}_complete(){if(this.hasValue)return this.destination.complete();{let t;try{t=this.errorFactory()}catch(e){t=e}this.destination.error(t)}}}function yK(){return new Yc}function ba(n,t){const e=arguments.length>=2;return i=>i.pipe(n?Tn((r,o)=>n(r,o,i)):we,sn(1),e?Sm(t):iM(()=>new Yc))}function rM(n,t){let e=!1;return arguments.length>=2&&(e=!0),function(r){return r.lift(new bK(n,t,e))}}class bK{constructor(t,e,i=!1){this.accumulator=t,this.seed=e,this.hasSeed=i}call(t,e){return e.subscribe(new CK(t,this.accumulator,this.seed,this.hasSeed))}}class CK extends S{constructor(t,e,i,r){super(t),this.accumulator=e,this._seed=i,this.hasSeed=r,this.index=0}get seed(){return this._seed}set seed(t){this.hasSeed=!0,this._seed=t}_next(t){if(this.hasSeed)return this._tryNext(t);this.seed=t,this.destination.next(t)}_tryNext(t){const e=this.index++;let i;try{i=this.accumulator(this.seed,t,e)}catch(r){this.destination.error(r)}this.seed=i,this.destination.next(i)}}function mC(n){return function(e){return 0===n?df():e.lift(new wK(n))}}class wK{constructor(t){if(this.total=t,this.total<0)throw new g2}call(t,e){return e.subscribe(new EK(t,this.total))}}class EK extends S{constructor(t,e){super(t),this.total=e,this.ring=new Array,this.count=0}_next(t){const e=this.ring,i=this.total,r=this.count++;e.length0){const i=this.count>=this.total?this.total:this.count,r=this.ring;for(let o=0;o=2;return i=>i.pipe(n?Tn((r,o)=>n(r,o,i)):we,mC(1),e?Sm(t):iM(()=>new Yc))}class SK{constructor(t){this.value=t}call(t,e){return e.subscribe(new AK(t,this.value))}}class AK extends S{constructor(t,e){super(t),this.value=e}_next(t){this.destination.next(this.value)}}function Am(n){return t=>t.lift(new TK(n))}class TK{constructor(t){this.callback=t}call(t,e){return e.subscribe(new xK(t,this.callback))}}class xK extends S{constructor(t,e){super(t),this.add(new E(e))}}const Gt="primary";class IK{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 Qc(n){return new IK(n)}function MK(n,t,e){const i=e.path.split("/");if(i.length>n.length||"full"===e.pathMatch&&(t.hasChildren()||i.lengthi[o]===r)}return n===t}function lM(n){return n.length>0?n[n.length-1]:null}function Ei(n,t){for(const e in n)n.hasOwnProperty(e)&&t(n[e],e)}function zs(n){return mv(n)?n:Vu(n)?vt(Promise.resolve(n)):Ne(n)}const OK={exact:function dM(n,t,e){if(!fl(n.segments,t.segments)||!Tm(n.segments,t.segments,e)||n.numberOfChildren!==t.numberOfChildren)return!1;for(const i in t.children)if(!n.children[i]||!dM(n.children[i],t.children[i],e))return!1;return!0},subset:hM},cM={exact:function PK(n,t){return ns(n,t)},subset:function LK(n,t){return Object.keys(t).length<=Object.keys(n).length&&Object.keys(t).every(e=>sM(n[e],t[e]))},ignored:()=>!0};function uM(n,t,e){return OK[e.paths](n.root,t.root,e.matrixParams)&&cM[e.queryParams](n.queryParams,t.queryParams)&&!("exact"===e.fragment&&n.fragment!==t.fragment)}function hM(n,t,e){return pM(n,t,t.segments,e)}function pM(n,t,e,i){if(n.segments.length>e.length){const r=n.segments.slice(0,e.length);return!(!fl(r,e)||t.hasChildren()||!Tm(r,e,i))}if(n.segments.length===e.length){if(!fl(n.segments,e)||!Tm(n.segments,e,i))return!1;for(const r in t.children)if(!n.children[r]||!hM(n.children[r],t.children[r],i))return!1;return!0}{const r=e.slice(0,n.segments.length),o=e.slice(n.segments.length);return!!(fl(n.segments,r)&&Tm(n.segments,r,i)&&n.children[Gt])&&pM(n.children[Gt],t,o,i)}}function Tm(n,t,e){return t.every((i,r)=>cM[e](n[r].parameters,i.parameters))}class pl{constructor(t,e,i){this.root=t,this.queryParams=e,this.fragment=i}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=Qc(this.queryParams)),this._queryParamMap}toString(){return BK.serialize(this)}}class Kt{constructor(t,e){this.segments=t,this.children=e,this.parent=null,Ei(e,(i,r)=>i.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return xm(this)}}class Zd{constructor(t,e){this.path=t,this.parameters=e}get parameterMap(){return this._parameterMap||(this._parameterMap=Qc(this.parameters)),this._parameterMap}toString(){return vM(this)}}function fl(n,t){return n.length===t.length&&n.every((e,i)=>e.path===t[i].path)}class mM{parse(t){const e=new $K(t);return new pl(e.parseRootSegment(),e.parseQueryParams(),e.parseFragment())}serialize(t){const e=`/${Xd(t.root,!0)}`,i=function VK(n){const t=Object.keys(n).map(e=>{const i=n[e];return Array.isArray(i)?i.map(r=>`${Im(e)}=${Im(r)}`).join("&"):`${Im(e)}=${Im(i)}`}).filter(e=>!!e);return t.length?`?${t.join("&")}`:""}(t.queryParams),r="string"==typeof t.fragment?`#${function jK(n){return encodeURI(n)}(t.fragment)}`:"";return`${e}${i}${r}`}}const BK=new mM;function xm(n){return n.segments.map(t=>vM(t)).join("/")}function Xd(n,t){if(!n.hasChildren())return xm(n);if(t){const e=n.children[Gt]?Xd(n.children[Gt],!1):"",i=[];return Ei(n.children,(r,o)=>{o!==Gt&&i.push(`${o}:${Xd(r,!1)}`)}),i.length>0?`${e}(${i.join("//")})`:e}{const e=function FK(n,t){let e=[];return Ei(n.children,(i,r)=>{r===Gt&&(e=e.concat(t(i,r)))}),Ei(n.children,(i,r)=>{r!==Gt&&(e=e.concat(t(i,r)))}),e}(n,(i,r)=>r===Gt?[Xd(n.children[Gt],!1)]:[`${r}:${Xd(i,!1)}`]);return 1===Object.keys(n.children).length&&null!=n.children[Gt]?`${xm(n)}/${e[0]}`:`${xm(n)}/(${e.join("//")})`}}function gM(n){return encodeURIComponent(n).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function Im(n){return gM(n).replace(/%3B/gi,";")}function _C(n){return gM(n).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function Mm(n){return decodeURIComponent(n)}function _M(n){return Mm(n.replace(/\+/g,"%20"))}function vM(n){return`${_C(n.path)}${function HK(n){return Object.keys(n).map(t=>`;${_C(t)}=${_C(n[t])}`).join("")}(n.parameters)}`}const UK=/^[^\/()?;=#]+/;function km(n){const t=n.match(UK);return t?t[0]:""}const qK=/^[^=?&#]+/,GK=/^[^&#]+/;class $K{constructor(t){this.url=t,this.remaining=t}parseRootSegment(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new Kt([],{}):new Kt([],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[Gt]=new Kt(t,e)),i}parseSegment(){const t=km(this.remaining);if(""===t&&this.peekStartsWith(";"))throw new Te(4009,!1);return this.capture(t),new Zd(Mm(t),this.parseMatrixParams())}parseMatrixParams(){const t={};for(;this.consumeOptional(";");)this.parseParam(t);return t}parseParam(t){const e=km(this.remaining);if(!e)return;this.capture(e);let i="";if(this.consumeOptional("=")){const r=km(this.remaining);r&&(i=r,this.capture(i))}t[Mm(e)]=Mm(i)}parseQueryParam(t){const e=function zK(n){const t=n.match(qK);return t?t[0]:""}(this.remaining);if(!e)return;this.capture(e);let i="";if(this.consumeOptional("=")){const s=function WK(n){const t=n.match(GK);return t?t[0]:""}(this.remaining);s&&(i=s,this.capture(i))}const r=_M(e),o=_M(i);if(t.hasOwnProperty(r)){let s=t[r];Array.isArray(s)||(s=[s],t[r]=s),s.push(o)}else t[r]=o}parseParens(t){const e={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){const i=km(this.remaining),r=this.remaining[i.length];if("/"!==r&&")"!==r&&";"!==r)throw new Te(4010,!1);let o;i.indexOf(":")>-1?(o=i.slice(0,i.indexOf(":")),this.capture(o),this.capture(":")):t&&(o=Gt);const s=this.parseChildren();e[o]=1===Object.keys(s).length?s[Gt]:new Kt([],s),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 Te(4011,!1)}}function vC(n){return n.segments.length>0?new Kt([],{[Gt]:n}):n}function Rm(n){const t={};for(const i of Object.keys(n.children)){const o=Rm(n.children[i]);(o.segments.length>0||o.hasChildren())&&(t[i]=o)}return function KK(n){if(1===n.numberOfChildren&&n.children[Gt]){const t=n.children[Gt];return new Kt(n.segments.concat(t.segments),t.children)}return n}(new Kt(n.segments,t))}function ml(n){return n instanceof pl}function JK(n,t,e,i,r){if(0===e.length)return Jc(t.root,t.root,t.root,i,r);const o=function CM(n){if("string"==typeof n[0]&&1===n.length&&"/"===n[0])return new bM(!0,0,n);let t=0,e=!1;const i=n.reduce((r,o,s)=>{if("object"==typeof o&&null!=o){if(o.outlets){const a={};return Ei(o.outlets,(l,c)=>{a[c]="string"==typeof l?l.split("/"):l}),[...r,{outlets:a}]}if(o.segmentPath)return[...r,o.segmentPath]}return"string"!=typeof o?[...r,o]:0===s?(o.split("/").forEach((a,l)=>{0==l&&"."===a||(0==l&&""===a?e=!0:".."===a?t++:""!=a&&r.push(a))}),r):[...r,o]},[]);return new bM(e,t,i)}(e);return o.toRoot()?Jc(t.root,t.root,new Kt([],{}),i,r):function s(l){const c=function XK(n,t,e,i){if(n.isAbsolute)return new Zc(t.root,!0,0);if(-1===i)return new Zc(e,e===t.root,0);return function wM(n,t,e){let i=n,r=t,o=e;for(;o>r;){if(o-=r,i=i.parent,!i)throw new Te(4005,!1);r=i.segments.length}return new Zc(i,!1,r-o)}(e,i+(eh(n.commands[0])?0:1),n.numberOfDoubleDots)}(o,t,n.snapshot?._urlSegment,l),u=c.processChildren?nh(c.segmentGroup,c.index,o.commands):bC(c.segmentGroup,c.index,o.commands);return Jc(t.root,c.segmentGroup,u,i,r)}(n.snapshot?._lastPathIndex)}function eh(n){return"object"==typeof n&&null!=n&&!n.outlets&&!n.segmentPath}function th(n){return"object"==typeof n&&null!=n&&n.outlets}function Jc(n,t,e,i,r){let s,o={};i&&Ei(i,(l,c)=>{o[c]=Array.isArray(l)?l.map(u=>`${u}`):`${l}`}),s=n===t?e:yM(n,t,e);const a=vC(Rm(s));return new pl(a,o,r)}function yM(n,t,e){const i={};return Ei(n.children,(r,o)=>{i[o]=r===t?e:yM(r,t,e)}),new Kt(n.segments,i)}class bM{constructor(t,e,i){if(this.isAbsolute=t,this.numberOfDoubleDots=e,this.commands=i,t&&i.length>0&&eh(i[0]))throw new Te(4003,!1);const r=i.find(th);if(r&&r!==lM(i))throw new Te(4004,!1)}toRoot(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}class Zc{constructor(t,e,i){this.segmentGroup=t,this.processChildren=e,this.index=i}}function bC(n,t,e){if(n||(n=new Kt([],{})),0===n.segments.length&&n.hasChildren())return nh(n,t,e);const i=function tY(n,t,e){let i=0,r=t;const o={match:!1,pathIndex:0,commandIndex:0};for(;r=e.length)return o;const s=n.segments[r],a=e[i];if(th(a))break;const l=`${a}`,c=i0&&void 0===l)break;if(l&&c&&"object"==typeof c&&void 0===c.outlets){if(!DM(l,c,s))return o;i+=2}else{if(!DM(l,{},s))return o;i++}r++}return{match:!0,pathIndex:r,commandIndex:i}}(n,t,e),r=e.slice(i.commandIndex);if(i.match&&i.pathIndex{"string"==typeof o&&(o=[o]),null!==o&&(r[s]=bC(n.children[s],t,o))}),Ei(n.children,(o,s)=>{void 0===i[s]&&(r[s]=o)}),new Kt(n.segments,r)}}function CC(n,t,e){const i=n.segments.slice(0,t);let r=0;for(;r{"string"==typeof e&&(e=[e]),null!==e&&(t[i]=CC(new Kt([],{}),0,e))}),t}function EM(n){const t={};return Ei(n,(e,i)=>t[i]=`${e}`),t}function DM(n,t,e){return n==e.path&&ns(t,e.parameters)}class Gs{constructor(t,e){this.id=t,this.url=e}}class SM extends Gs{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 ih extends Gs{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 Om extends Gs{constructor(t,e,i,r){super(t,e),this.reason=i,this.code=r,this.type=2}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}}class AM extends Gs{constructor(t,e,i,r){super(t,e),this.error=i,this.target=r,this.type=3}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}}class iY extends Gs{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 rY extends Gs{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 oY extends Gs{constructor(t,e,i,r,o){super(t,e),this.urlAfterRedirects=i,this.state=r,this.shouldActivate=o,this.type=8}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}}class sY extends Gs{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 aY extends Gs{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 lY{constructor(t){this.route=t,this.type=9}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}}class cY{constructor(t){this.route=t,this.type=10}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}}class uY{constructor(t){this.snapshot=t,this.type=11}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class dY{constructor(t){this.snapshot=t,this.type=12}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class hY{constructor(t){this.snapshot=t,this.type=13}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class pY{constructor(t){this.snapshot=t,this.type=14}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class TM{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=wC(t,this._root);return e?e.children.map(i=>i.value):[]}firstChild(t){const e=wC(t,this._root);return e&&e.children.length>0?e.children[0].value:null}siblings(t){const e=EC(t,this._root);return e.length<2?[]:e[e.length-2].children.map(r=>r.value).filter(r=>r!==t)}pathFromRoot(t){return EC(t,this._root).map(e=>e.value)}}function wC(n,t){if(n===t.value)return t;for(const e of t.children){const i=wC(n,e);if(i)return i}return null}function EC(n,t){if(n===t.value)return[t];for(const e of t.children){const i=EC(n,e);if(i.length)return i.unshift(t),i}return[]}class Ws{constructor(t,e){this.value=t,this.children=e}toString(){return`TreeNode(${this.value})`}}function Xc(n){const t={};return n&&n.children.forEach(e=>t[e.value.outlet]=e),t}class xM extends TM{constructor(t,e){super(t),this.snapshot=e,DC(this,t)}toString(){return this.snapshot.toString()}}function IM(n,t){const e=function mY(n,t){const s=new Pm([],{},{},"",{},Gt,t,null,n.root,-1,{});return new kM("",new Ws(s,[]))}(n,t),i=new ar([new Zd("",{})]),r=new ar({}),o=new ar({}),s=new ar({}),a=new ar(""),l=new eu(i,r,s,a,o,Gt,t,e.root);return l.snapshot=e.root,new xM(new Ws(l,[]),e)}class eu{constructor(t,e,i,r,o,s,a,l){this.url=t,this.params=e,this.queryParams=i,this.fragment=r,this.data=o,this.outlet=s,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(he(t=>Qc(t)))),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe(he(t=>Qc(t)))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}}function MM(n,t="emptyOnly"){const e=n.pathFromRoot;let i=0;if("always"!==t)for(i=e.length-1;i>=1;){const r=e[i],o=e[i-1];if(r.routeConfig&&""===r.routeConfig.path)i--;else{if(o.component)break;i--}}return function gY(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 Pm{constructor(t,e,i,r,o,s,a,l,c,u,d,h){this.url=t,this.params=e,this.queryParams=i,this.fragment=r,this.data=o,this.outlet=s,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=Qc(this.params)),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=Qc(this.queryParams)),this._queryParamMap}toString(){return`Route(url:'${this.url.map(i=>i.toString()).join("/")}', path:'${this.routeConfig?this.routeConfig.path:""}')`}}class kM extends TM{constructor(t,e){super(e),this.url=t,DC(this,e)}toString(){return RM(this._root)}}function DC(n,t){t.value._routerState=n,t.children.forEach(e=>DC(n,e))}function RM(n){const t=n.children.length>0?` { ${n.children.map(RM).join(", ")} } `:"";return`${n.value}${t}`}function SC(n){if(n.snapshot){const t=n.snapshot,e=n._futureSnapshot;n.snapshot=e,ns(t.queryParams,e.queryParams)||n.queryParams.next(e.queryParams),t.fragment!==e.fragment&&n.fragment.next(e.fragment),ns(t.params,e.params)||n.params.next(e.params),function kK(n,t){if(n.length!==t.length)return!1;for(let e=0;ens(e.parameters,t[i].parameters))}(n.url,t.url);return e&&!(!n.parent!=!t.parent)&&(!n.parent||AC(n.parent,t.parent))}function rh(n,t,e){if(e&&n.shouldReuseRoute(t.value,e.value.snapshot)){const i=e.value;i._futureSnapshot=t.value;const r=function vY(n,t,e){return t.children.map(i=>{for(const r of e.children)if(n.shouldReuseRoute(i.value,r.value.snapshot))return rh(n,i,r);return rh(n,i)})}(n,t,e);return new Ws(i,r)}{if(n.shouldAttach(t.value)){const o=n.retrieve(t.value);if(null!==o){const s=o.route;return s.value._futureSnapshot=t.value,s.children=t.children.map(a=>rh(n,a)),s}}const i=function yY(n){return new eu(new ar(n.url),new ar(n.params),new ar(n.queryParams),new ar(n.fragment),new ar(n.data),n.outlet,n.component,n)}(t.value),r=t.children.map(o=>rh(n,o));return new Ws(i,r)}}const TC="ngNavigationCancelingError";function OM(n,t){const{redirectTo:e,navigationBehaviorOptions:i}=ml(t)?{redirectTo:t,navigationBehaviorOptions:void 0}:t,r=PM(!1,0,t);return r.url=e,r.navigationBehaviorOptions=i,r}function PM(n,t,e){const i=new Error("NavigationCancelingError: "+(n||""));return i[TC]=!0,i.cancellationCode=t,e&&(i.url=e),i}function LM(n){return NM(n)&&ml(n.url)}function NM(n){return n&&n[TC]}class bY{constructor(){this.outlet=null,this.route=null,this.resolver=null,this.injector=null,this.children=new oh,this.attachRef=null}}class oh{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 bY,this.contexts.set(t,e)),e}getContext(t){return this.contexts.get(t)||null}}const Lm=!1;let FM=(()=>{class n{constructor(e,i,r,o,s){this.parentContexts=e,this.location=i,this.changeDetector=o,this.environmentInjector=s,this.activated=null,this._activatedRoute=null,this.activateEvents=new He,this.deactivateEvents=new He,this.attachEvents=new He,this.detachEvents=new He,this.name=r||Gt,e.onChildOutletCreated(this.name,this)}ngOnDestroy(){this.parentContexts.getContext(this.name)?.outlet===this&&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 Te(4012,Lm);return this.activated.instance}get activatedRoute(){if(!this.activated)throw new Te(4012,Lm);return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new Te(4012,Lm);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 Te(4013,Lm);this._activatedRoute=e;const r=this.location,s=e._futureSnapshot.component,a=this.parentContexts.getOrCreateContext(this.name).children,l=new CY(e,a,r.injector);if(i&&function wY(n){return!!n.resolveComponentFactory}(i)){const c=i.resolveComponentFactory(s);this.activated=r.createComponent(c,r.length,l)}else this.activated=r.createComponent(s,{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)(p(oh),p(Dn),Vr("name"),p(St),p(Na))},n.\u0275dir=fe({type:n,selectors:[["router-outlet"]],outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"]}),n})();class CY{constructor(t,e,i){this.route=t,this.childContexts=e,this.parent=i}get(t,e){return t===eu?this.route:t===oh?this.childContexts:this.parent.get(t,e)}}let BM=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=Ue({type:n,selectors:[["ng-component"]],decls:1,vars:0,template:function(e,i){1&e&&be(0,"router-outlet")},dependencies:[FM],encapsulation:2}),n})();function jM(n,t){return n.providers&&!n._injector&&(n._injector=function Sv(n,t,e=null){return new XB(n,t,e).injector}(n.providers,t,`Route: ${n.path}`)),n._injector??t}function IC(n){const t=n.children&&n.children.map(IC),e=t?{...n,children:t}:{...n};return!e.component&&!e.loadComponent&&(t||e.loadChildren)&&e.outlet&&e.outlet!==Gt&&(e.component=BM),e}function to(n){return n.outlet||Gt}function HM(n,t){const e=n.filter(i=>to(i)===t);return e.push(...n.filter(i=>to(i)!==t)),e}function VM(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 TY{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),SC(this.futureState.root),this.activateChildRoutes(e,i,t)}deactivateChildRoutes(t,e,i){const r=Xc(e);t.children.forEach(o=>{const s=o.value.outlet;this.deactivateRoutes(o,r[s],i),delete r[s]}),Ei(r,(o,s)=>{this.deactivateRouteAndItsChildren(o,i)})}deactivateRoutes(t,e,i){const r=t.value,o=e?e.value:null;if(r===o)if(r.component){const s=i.getContext(r.outlet);s&&this.deactivateChildRoutes(t,e,s.children)}else this.deactivateChildRoutes(t,e,i);else o&&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,o=Xc(t);for(const s of Object.keys(o))this.deactivateRouteAndItsChildren(o[s],r);if(i&&i.outlet){const s=i.outlet.detach(),a=i.children.onOutletDeactivated();this.routeReuseStrategy.store(t.value.snapshot,{componentRef:s,route:t,contexts:a})}}deactivateRouteAndOutlet(t,e){const i=e.getContext(t.value.outlet),r=i&&t.value.component?i.children:e,o=Xc(t);for(const s of Object.keys(o))this.deactivateRouteAndItsChildren(o[s],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=Xc(e);t.children.forEach(o=>{this.activateRoutes(o,r[o.value.outlet],i),this.forwardEvent(new pY(o.value.snapshot))}),t.children.length&&this.forwardEvent(new dY(t.value.snapshot))}activateRoutes(t,e,i){const r=t.value,o=e?e.value:null;if(SC(r),r===o)if(r.component){const s=i.getOrCreateContext(r.outlet);this.activateChildRoutes(t,e,s.children)}else this.activateChildRoutes(t,e,i);else if(r.component){const s=i.getOrCreateContext(r.outlet);if(this.routeReuseStrategy.shouldAttach(r.snapshot)){const a=this.routeReuseStrategy.retrieve(r.snapshot);this.routeReuseStrategy.store(r.snapshot,null),s.children.onOutletReAttached(a.contexts),s.attachRef=a.componentRef,s.route=a.route.value,s.outlet&&s.outlet.attach(a.componentRef,a.route.value),SC(a.route.value),this.activateChildRoutes(t,null,s.children)}else{const a=VM(r.snapshot),l=a?.get(hs)??null;s.attachRef=null,s.route=r,s.resolver=l,s.injector=a,s.outlet&&s.outlet.activateWith(r,s.injector),this.activateChildRoutes(t,null,s.children)}}else this.activateChildRoutes(t,null,i)}}class UM{constructor(t){this.path=t,this.route=this.path[this.path.length-1]}}class Nm{constructor(t,e){this.component=t,this.route=e}}function xY(n,t,e){const i=n._root;return sh(i,t?t._root:null,e,[i.value])}function Fm(n,t,e){return(VM(t)??e).get(n)}function sh(n,t,e,i,r={canDeactivateChecks:[],canActivateChecks:[]}){const o=Xc(t);return n.children.forEach(s=>{(function MY(n,t,e,i,r={canDeactivateChecks:[],canActivateChecks:[]}){const o=n.value,s=t?t.value:null,a=e?e.getContext(n.value.outlet):null;if(s&&o.routeConfig===s.routeConfig){const l=function kY(n,t,e){if("function"==typeof e)return e(n,t);switch(e){case"pathParamsChange":return!fl(n.url,t.url);case"pathParamsOrQueryParamsChange":return!fl(n.url,t.url)||!ns(n.queryParams,t.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!AC(n,t)||!ns(n.queryParams,t.queryParams);default:return!AC(n,t)}}(s,o,o.routeConfig.runGuardsAndResolvers);l?r.canActivateChecks.push(new UM(i)):(o.data=s.data,o._resolvedData=s._resolvedData),sh(n,t,o.component?a?a.children:null:e,i,r),l&&a&&a.outlet&&a.outlet.isActivated&&r.canDeactivateChecks.push(new Nm(a.outlet.component,s))}else s&&ah(t,a,r),r.canActivateChecks.push(new UM(i)),sh(n,null,o.component?a?a.children:null:e,i,r)})(s,o[s.value.outlet],e,i.concat([s.value]),r),delete o[s.value.outlet]}),Ei(o,(s,a)=>ah(s,e.getContext(a),r)),r}function ah(n,t,e){const i=Xc(n),r=n.value;Ei(i,(o,s)=>{ah(o,r.component?t?t.children.getContext(s):null:t,e)}),e.canDeactivateChecks.push(new Nm(r.component&&t&&t.outlet&&t.outlet.isActivated?t.outlet.component:null,r))}function lh(n){return"function"==typeof n}const Bm=Symbol("INITIAL_VALUE");function tu(){return Kn(n=>ob(n.map(t=>t.pipe(sn(1),ni(Bm)))).pipe(he(t=>{for(const e of t)if(!0!==e){if(e===Bm)return Bm;if(!1===e||e instanceof pl)return e}return!0}),Tn(t=>t!==Bm),sn(1)))}function qM(n){return function $(...n){return ie(n)}(Yn(t=>{if(ml(t))throw OM(0,t)}),he(t=>!0===t))}const MC={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function zM(n,t,e,i,r){const o=kC(n,t,e);return o.matched?function KY(n,t,e,i){const r=t.canMatch;return r&&0!==r.length?Ne(r.map(s=>{const a=n.get(s),l=function FY(n){return n&&lh(n.canMatch)}(a)?a.canMatch(t,e):a(t,e);return zs(l)})).pipe(tu(),qM()):Ne(!0)}(i=jM(t,i),t,e).pipe(he(s=>!0===s?o:{...MC})):Ne(o)}function kC(n,t,e){if(""===t.path)return"full"===t.pathMatch&&(n.hasChildren()||e.length>0)?{...MC}:{matched:!0,consumedSegments:[],remainingSegments:e,parameters:{},positionalParamSegments:{}};const r=(t.matcher||MK)(e,n,t);if(!r)return{...MC};const o={};Ei(r.posParams,(a,l)=>{o[l]=a.path});const s=r.consumed.length>0?{...o,...r.consumed[r.consumed.length-1].parameters}:o;return{matched:!0,consumedSegments:r.consumed,remainingSegments:e.slice(r.consumed.length),parameters:s,positionalParamSegments:r.posParams??{}}}function jm(n,t,e,i,r="corrected"){if(e.length>0&&function JY(n,t,e){return e.some(i=>Hm(n,t,i)&&to(i)!==Gt)}(n,e,i)){const s=new Kt(t,function QY(n,t,e,i){const r={};r[Gt]=i,i._sourceSegment=n,i._segmentIndexShift=t.length;for(const o of e)if(""===o.path&&to(o)!==Gt){const s=new Kt([],{});s._sourceSegment=n,s._segmentIndexShift=t.length,r[to(o)]=s}return r}(n,t,i,new Kt(e,n.children)));return s._sourceSegment=n,s._segmentIndexShift=t.length,{segmentGroup:s,slicedSegments:[]}}if(0===e.length&&function ZY(n,t,e){return e.some(i=>Hm(n,t,i))}(n,e,i)){const s=new Kt(n.segments,function YY(n,t,e,i,r,o){const s={};for(const a of i)if(Hm(n,e,a)&&!r[to(a)]){const l=new Kt([],{});l._sourceSegment=n,l._segmentIndexShift="legacy"===o?n.segments.length:t.length,s[to(a)]=l}return{...r,...s}}(n,t,e,i,n.children,r));return s._sourceSegment=n,s._segmentIndexShift=t.length,{segmentGroup:s,slicedSegments:e}}const o=new Kt(n.segments,n.children);return o._sourceSegment=n,o._segmentIndexShift=t.length,{segmentGroup:o,slicedSegments:e}}function Hm(n,t,e){return(!(n.hasChildren()||t.length>0)||"full"!==e.pathMatch)&&""===e.path}function GM(n,t,e,i){return!!(to(n)===i||i!==Gt&&Hm(t,e,n))&&("**"===n.path||kC(t,n,e).matched)}function WM(n,t,e){return 0===t.length&&!n.children[e]}const Vm=!1;class Um{constructor(t){this.segmentGroup=t||null}}class $M{constructor(t){this.urlTree=t}}function ch(n){return Qa(new Um(n))}function KM(n){return Qa(new $M(n))}class nQ{constructor(t,e,i,r,o){this.injector=t,this.configLoader=e,this.urlSerializer=i,this.urlTree=r,this.config=o,this.allowRedirects=!0}apply(){const t=jm(this.urlTree.root,[],[],this.config).segmentGroup,e=new Kt(t.segments,t.children);return this.expandSegmentGroup(this.injector,this.config,e,Gt).pipe(he(o=>this.createUrlTree(Rm(o),this.urlTree.queryParams,this.urlTree.fragment))).pipe(qs(o=>{if(o instanceof $M)return this.allowRedirects=!1,this.match(o.urlTree);throw o instanceof Um?this.noMatchError(o):o}))}match(t){return this.expandSegmentGroup(this.injector,this.config,t.root,Gt).pipe(he(r=>this.createUrlTree(Rm(r),t.queryParams,t.fragment))).pipe(qs(r=>{throw r instanceof Um?this.noMatchError(r):r}))}noMatchError(t){return new Te(4002,Vm)}createUrlTree(t,e,i){const r=vC(t);return new pl(r,e,i)}expandSegmentGroup(t,e,i,r){return 0===i.segments.length&&i.hasChildren()?this.expandChildren(t,e,i).pipe(he(o=>new Kt([],o))):this.expandSegment(t,i,e,i.segments,r,!0)}expandChildren(t,e,i){const r=[];for(const o of Object.keys(i.children))"primary"===o?r.unshift(o):r.push(o);return vt(r).pipe(qo(o=>{const s=i.children[o],a=HM(e,o);return this.expandSegmentGroup(t,a,s,o).pipe(he(l=>({segment:l,outlet:o})))}),rM((o,s)=>(o[s.outlet]=s.segment,o),{}),oM())}expandSegment(t,e,i,r,o,s){return vt(i).pipe(qo(a=>this.expandSegmentAgainstRoute(t,e,i,a,r,o,s).pipe(qs(c=>{if(c instanceof Um)return Ne(null);throw c}))),ba(a=>!!a),qs((a,l)=>{if(a instanceof Yc||"EmptyError"===a.name)return WM(e,r,o)?Ne(new Kt([],{})):ch(e);throw a}))}expandSegmentAgainstRoute(t,e,i,r,o,s,a){return GM(r,e,o,s)?void 0===r.redirectTo?this.matchSegmentAgainstRoute(t,e,r,o,s):a&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(t,e,i,r,o,s):ch(e):ch(e)}expandSegmentAgainstRouteUsingRedirect(t,e,i,r,o,s){return"**"===r.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(t,i,r,s):this.expandRegularSegmentAgainstRouteUsingRedirect(t,e,i,r,o,s)}expandWildCardWithParamsAgainstRouteUsingRedirect(t,e,i,r){const o=this.applyRedirectCommands([],i.redirectTo,{});return i.redirectTo.startsWith("/")?KM(o):this.lineralizeSegments(i,o).pipe(Vi(s=>{const a=new Kt(s,{});return this.expandSegment(t,a,e,s,r,!1)}))}expandRegularSegmentAgainstRouteUsingRedirect(t,e,i,r,o,s){const{matched:a,consumedSegments:l,remainingSegments:c,positionalParamSegments:u}=kC(e,r,o);if(!a)return ch(e);const d=this.applyRedirectCommands(l,r.redirectTo,u);return r.redirectTo.startsWith("/")?KM(d):this.lineralizeSegments(r,d).pipe(Vi(h=>this.expandSegment(t,e,i,h.concat(c),s,!1)))}matchSegmentAgainstRoute(t,e,i,r,o){return"**"===i.path?(t=jM(i,t),i.loadChildren?(i._loadedRoutes?Ne({routes:i._loadedRoutes,injector:i._loadedInjector}):this.configLoader.loadChildren(t,i)).pipe(he(a=>(i._loadedRoutes=a.routes,i._loadedInjector=a.injector,new Kt(r,{})))):Ne(new Kt(r,{}))):zM(e,i,r,t).pipe(Kn(({matched:s,consumedSegments:a,remainingSegments:l})=>s?this.getChildConfig(t=i._injector??t,i,r).pipe(Vi(u=>{const d=u.injector??t,h=u.routes,{segmentGroup:m,slicedSegments:y}=jm(e,a,l,h),A=new Kt(m.segments,m.children);if(0===y.length&&A.hasChildren())return this.expandChildren(d,h,A).pipe(he(ne=>new Kt(a,ne)));if(0===h.length&&0===y.length)return Ne(new Kt(a,{}));const U=to(i)===o;return this.expandSegment(d,A,h,y,U?Gt:o,!0).pipe(he(Ee=>new Kt(a.concat(Ee.segments),Ee.children)))})):ch(e)))}getChildConfig(t,e,i){return e.children?Ne({routes:e.children,injector:t}):e.loadChildren?void 0!==e._loadedRoutes?Ne({routes:e._loadedRoutes,injector:e._loadedInjector}):function $Y(n,t,e,i){const r=t.canLoad;return void 0===r||0===r.length?Ne(!0):Ne(r.map(s=>{const a=n.get(s),l=function OY(n){return n&&lh(n.canLoad)}(a)?a.canLoad(t,e):a(t,e);return zs(l)})).pipe(tu(),qM())}(t,e,i).pipe(Vi(r=>r?this.configLoader.loadChildren(t,e).pipe(Yn(o=>{e._loadedRoutes=o.routes,e._loadedInjector=o.injector})):function eQ(n){return Qa(PM(Vm,3))}())):Ne({routes:[],injector:t})}lineralizeSegments(t,e){let i=[],r=e.root;for(;;){if(i=i.concat(r.segments),0===r.numberOfChildren)return Ne(i);if(r.numberOfChildren>1||!r.children[Gt])return Qa(new Te(4e3,Vm));r=r.children[Gt]}}applyRedirectCommands(t,e,i){return this.applyRedirectCreateUrlTree(e,this.urlSerializer.parse(e),t,i)}applyRedirectCreateUrlTree(t,e,i,r){const o=this.createSegmentGroup(t,e.root,i,r);return new pl(o,this.createQueryParams(e.queryParams,this.urlTree.queryParams),e.fragment)}createQueryParams(t,e){const i={};return Ei(t,(r,o)=>{if("string"==typeof r&&r.startsWith(":")){const a=r.substring(1);i[o]=e[a]}else i[o]=r}),i}createSegmentGroup(t,e,i,r){const o=this.createSegments(t,e.segments,i,r);let s={};return Ei(e.children,(a,l)=>{s[l]=this.createSegmentGroup(t,a,i,r)}),new Kt(o,s)}createSegments(t,e,i,r){return e.map(o=>o.path.startsWith(":")?this.findPosParam(t,o,r):this.findOrReturn(o,i))}findPosParam(t,e,i){const r=i[e.path.substring(1)];if(!r)throw new Te(4001,Vm);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}}class rQ{}class aQ{constructor(t,e,i,r,o,s,a,l){this.injector=t,this.rootComponentType=e,this.config=i,this.urlTree=r,this.url=o,this.paramsInheritanceStrategy=s,this.relativeLinkResolution=a,this.urlSerializer=l}recognize(){const t=jm(this.urlTree.root,[],[],this.config.filter(e=>void 0===e.redirectTo),this.relativeLinkResolution).segmentGroup;return this.processSegmentGroup(this.injector,this.config,t,Gt).pipe(he(e=>{if(null===e)return null;const i=new Pm([],Object.freeze({}),Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,{},Gt,this.rootComponentType,null,this.urlTree.root,-1,{}),r=new Ws(i,e),o=new kM(this.url,r);return this.inheritParamsAndData(o._root),o}))}inheritParamsAndData(t){const e=t.value,i=MM(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,r){return 0===i.segments.length&&i.hasChildren()?this.processChildren(t,e,i):this.processSegment(t,e,i,i.segments,r)}processChildren(t,e,i){return vt(Object.keys(i.children)).pipe(qo(r=>{const o=i.children[r],s=HM(e,r);return this.processSegmentGroup(t,s,o,r)}),rM((r,o)=>r&&o?(r.push(...o),r):null),Y2(r=>null!==r),Sm(null),oM(),he(r=>{if(null===r)return null;const o=YM(r);return function lQ(n){n.sort((t,e)=>t.value.outlet===Gt?-1:e.value.outlet===Gt?1:t.value.outlet.localeCompare(e.value.outlet))}(o),o}))}processSegment(t,e,i,r,o){return vt(e).pipe(qo(s=>this.processSegmentAgainstRoute(s._injector??t,s,i,r,o)),ba(s=>!!s),qs(s=>{if(s instanceof Yc)return WM(i,r,o)?Ne([]):Ne(null);throw s}))}processSegmentAgainstRoute(t,e,i,r,o){if(e.redirectTo||!GM(e,i,r,o))return Ne(null);let s;if("**"===e.path){const a=r.length>0?lM(r).parameters:{},l=JM(i)+r.length;s=Ne({snapshot:new Pm(r,a,Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,XM(e),to(e),e.component??e._loadedComponent??null,e,QM(i),l,ek(e),l),consumedSegments:[],remainingSegments:[]})}else s=zM(i,e,r,t).pipe(he(({matched:a,consumedSegments:l,remainingSegments:c,parameters:u})=>{if(!a)return null;const d=JM(i)+l.length;return{snapshot:new Pm(l,u,Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,XM(e),to(e),e.component??e._loadedComponent??null,e,QM(i),d,ek(e),d),consumedSegments:l,remainingSegments:c}}));return s.pipe(Kn(a=>{if(null===a)return Ne(null);const{snapshot:l,consumedSegments:c,remainingSegments:u}=a;t=e._injector??t;const d=e._loadedInjector??t,h=function cQ(n){return n.children?n.children:n.loadChildren?n._loadedRoutes:[]}(e),{segmentGroup:m,slicedSegments:y}=jm(i,c,u,h.filter(U=>void 0===U.redirectTo),this.relativeLinkResolution);if(0===y.length&&m.hasChildren())return this.processChildren(d,h,m).pipe(he(U=>null===U?null:[new Ws(l,U)]));if(0===h.length&&0===y.length)return Ne([new Ws(l,[])]);const A=to(e)===o;return this.processSegment(d,h,m,y,A?Gt:o).pipe(he(U=>null===U?null:[new Ws(l,U)]))}))}}function uQ(n){const t=n.value.routeConfig;return t&&""===t.path&&void 0===t.redirectTo}function YM(n){const t=[],e=new Set;for(const i of n){if(!uQ(i)){t.push(i);continue}const r=t.find(o=>i.value.routeConfig===o.value.routeConfig);void 0!==r?(r.children.push(...i.children),e.add(r)):t.push(i)}for(const i of e){const r=YM(i.children);t.push(new Ws(i.value,r))}return t.filter(i=>!e.has(i))}function QM(n){let t=n;for(;t._sourceSegment;)t=t._sourceSegment;return t}function JM(n){let t=n,e=t._segmentIndexShift??0;for(;t._sourceSegment;)t=t._sourceSegment,e+=t._segmentIndexShift??0;return e-1}function XM(n){return n.data||{}}function ek(n){return n.resolve||{}}const RC=Symbol("RouteTitle");function tk(n){return"string"==typeof n.title||null===n.title}function OC(n){return Kn(t=>{const e=n(t);return e?vt(e).pipe(he(()=>t)):Ne(t)})}class bQ extends class yQ{shouldDetach(t){return!1}store(t,e){}shouldAttach(t){return!1}retrieve(t){return null}shouldReuseRoute(t,e){return t.routeConfig===e.routeConfig}}{}const PC=new me("ROUTES");let ik=(()=>{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 Ne(e._loadedComponent);this.onLoadStartListener&&this.onLoadStartListener(e);const i=zs(e.loadComponent()).pipe(Yn(o=>{this.onLoadEndListener&&this.onLoadEndListener(e),e._loadedComponent=o}),Am(()=>{this.componentLoaders.delete(e)})),r=new Sh(i,()=>new N).pipe(Dh());return this.componentLoaders.set(e,r),r}loadChildren(e,i){if(this.childrenLoaders.get(i))return this.childrenLoaders.get(i);if(i._loadedRoutes)return Ne({routes:i._loadedRoutes,injector:i._loadedInjector});this.onLoadStartListener&&this.onLoadStartListener(i);const o=this.loadModuleFactoryOrRoutes(i.loadChildren).pipe(he(a=>{this.onLoadEndListener&&this.onLoadEndListener(i);let l,c,u=!1;Array.isArray(a)?c=a:(l=a.create(e).injector,c=function aM(n){return Array.prototype.concat.apply([],n)}(l.get(PC,[],yt.Self|yt.Optional)));return{routes:c.map(IC),injector:l}}),Am(()=>{this.childrenLoaders.delete(i)})),s=new Sh(o,()=>new N).pipe(Dh());return this.childrenLoaders.set(i,s),s}loadModuleFactoryOrRoutes(e){return zs(e()).pipe(Vi(i=>i instanceof KS||Array.isArray(i)?Ne(i):vt(this.compiler.compileModuleAsync(i))))}}return n.\u0275fac=function(e){return new(e||n)(M(Vn),M(FA))},n.\u0275prov=ge({token:n,factory:n.\u0275fac}),n})();class wQ{shouldProcessUrl(t){return!0}extract(t){return t}merge(t,e){return t}}function EQ(n){throw n}function DQ(n,t,e){return t.parse("/")}const SQ={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},AQ={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"};let gr=(()=>{class n{constructor(e,i,r,o,s,a,l){this.rootComponentType=e,this.urlSerializer=i,this.rootContexts=r,this.location=o,this.config=l,this.lastSuccessfulNavigation=null,this.currentNavigation=null,this.disposed=!1,this.navigationId=0,this.currentPageId=0,this.isNgZoneEnabled=!1,this.events=new N,this.errorHandler=EQ,this.malformedUriErrorHandler=DQ,this.navigated=!1,this.lastSuccessfulId=-1,this.afterPreactivation=()=>Ne(void 0),this.urlHandlingStrategy=new wQ,this.routeReuseStrategy=new bQ,this.onSameUrlNavigation="ignore",this.paramsInheritanceStrategy="emptyOnly",this.urlUpdateStrategy="deferred",this.relativeLinkResolution="corrected",this.canceledNavigationResolution="replace",this.configLoader=s.get(ik),this.configLoader.onLoadEndListener=h=>this.triggerEvent(new cY(h)),this.configLoader.onLoadStartListener=h=>this.triggerEvent(new lY(h)),this.ngModule=s.get(Ua),this.console=s.get(r4);const d=s.get(et);this.isNgZoneEnabled=d instanceof et&&et.isInAngularZone(),this.resetConfig(l),this.currentUrlTree=function RK(){return new pl(new Kt([],{}),{},null)}(),this.rawUrlTree=this.currentUrlTree,this.browserUrlTree=this.currentUrlTree,this.routerState=IM(this.currentUrlTree,this.rootComponentType),this.transitions=new ar({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(Tn(r=>0!==r.id),he(r=>({...r,extractedUrl:this.urlHandlingStrategy.extract(r.rawUrl)})),Kn(r=>{let o=!1,s=!1;return Ne(r).pipe(Yn(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}}),Kn(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 rk(a.source)&&(this.browserUrlTree=a.extractedUrl),Ne(a).pipe(Kn(d=>{const h=this.transitions.getValue();return i.next(new SM(d.id,this.serializeUrl(d.extractedUrl),d.source,d.restoredState)),h!==this.transitions.getValue()?Ss:Promise.resolve(d)}),function iQ(n,t,e,i){return Kn(r=>function tQ(n,t,e,i,r){return new nQ(n,t,e,i,r).apply()}(n,t,e,r.extractedUrl,i).pipe(he(o=>({...r,urlAfterRedirects:o}))))}(this.ngModule.injector,this.configLoader,this.urlSerializer,this.config),Yn(d=>{this.currentNavigation={...this.currentNavigation,finalUrl:d.urlAfterRedirects},r.urlAfterRedirects=d.urlAfterRedirects}),function hQ(n,t,e,i,r,o){return Vi(s=>function sQ(n,t,e,i,r,o,s="emptyOnly",a="legacy"){return new aQ(n,t,e,i,r,s,a,o).recognize().pipe(Kn(l=>null===l?function oQ(n){return new b(t=>t.error(n))}(new rQ):Ne(l)))}(n,t,e,s.urlAfterRedirects,i.serialize(s.urlAfterRedirects),i,r,o).pipe(he(a=>({...s,targetSnapshot:a}))))}(this.ngModule.injector,this.rootComponentType,this.config,this.urlSerializer,this.paramsInheritanceStrategy,this.relativeLinkResolution),Yn(d=>{if(r.targetSnapshot=d.targetSnapshot,"eager"===this.urlUpdateStrategy){if(!d.extras.skipLocationChange){const m=this.urlHandlingStrategy.merge(d.urlAfterRedirects,d.rawUrl);this.setBrowserUrl(m,d)}this.browserUrlTree=d.urlAfterRedirects}const h=new iY(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:m,source:y,restoredState:A,extras:U}=a,te=new SM(h,this.serializeUrl(m),y,A);i.next(te);const Ee=IM(m,this.rootComponentType).snapshot;return Ne(r={...a,targetSnapshot:Ee,urlAfterRedirects:m,extras:{...U,skipLocationChange:!1,replaceUrl:!1}})}return this.rawUrlTree=a.rawUrl,a.resolve(null),Ss}),Yn(a=>{const l=new rY(a.id,this.serializeUrl(a.extractedUrl),this.serializeUrl(a.urlAfterRedirects),a.targetSnapshot);this.triggerEvent(l)}),he(a=>r={...a,guards:xY(a.targetSnapshot,a.currentSnapshot,this.rootContexts)}),function jY(n,t){return Vi(e=>{const{targetSnapshot:i,currentSnapshot:r,guards:{canActivateChecks:o,canDeactivateChecks:s}}=e;return 0===s.length&&0===o.length?Ne({...e,guardsResult:!0}):function HY(n,t,e,i){return vt(n).pipe(Vi(r=>function WY(n,t,e,i,r){const o=t&&t.routeConfig?t.routeConfig.canDeactivate:null;return o&&0!==o.length?Ne(o.map(a=>{const l=Fm(a,t,r);return zs(function NY(n){return n&&lh(n.canDeactivate)}(l)?l.canDeactivate(n,t,e,i):l(n,t,e,i)).pipe(ba())})).pipe(tu()):Ne(!0)}(r.component,r.route,e,t,i)),ba(r=>!0!==r,!0))}(s,i,r,n).pipe(Vi(a=>a&&function RY(n){return"boolean"==typeof n}(a)?function VY(n,t,e,i){return vt(t).pipe(qo(r=>bc(function qY(n,t){return null!==n&&t&&t(new uY(n)),Ne(!0)}(r.route.parent,i),function UY(n,t){return null!==n&&t&&t(new hY(n)),Ne(!0)}(r.route,i),function GY(n,t,e){const i=t[t.length-1],o=t.slice(0,t.length-1).reverse().map(s=>function IY(n){const t=n.routeConfig?n.routeConfig.canActivateChild:null;return t&&0!==t.length?{node:n,guards:t}:null}(s)).filter(s=>null!==s).map(s=>la(()=>Ne(s.guards.map(l=>{const c=Fm(l,s.node,e);return zs(function LY(n){return n&&lh(n.canActivateChild)}(c)?c.canActivateChild(i,n):c(i,n)).pipe(ba())})).pipe(tu())));return Ne(o).pipe(tu())}(n,r.path,e),function zY(n,t,e){const i=t.routeConfig?t.routeConfig.canActivate:null;if(!i||0===i.length)return Ne(!0);const r=i.map(o=>la(()=>{const s=Fm(o,t,e);return zs(function PY(n){return n&&lh(n.canActivate)}(s)?s.canActivate(t,n):s(t,n)).pipe(ba())}));return Ne(r).pipe(tu())}(n,r.route,e))),ba(r=>!0!==r,!0))}(i,o,n,t):Ne(a)),he(a=>({...e,guardsResult:a})))})}(this.ngModule.injector,a=>this.triggerEvent(a)),Yn(a=>{if(r.guardsResult=a.guardsResult,ml(a.guardsResult))throw OM(0,a.guardsResult);const l=new oY(a.id,this.serializeUrl(a.extractedUrl),this.serializeUrl(a.urlAfterRedirects),a.targetSnapshot,!!a.guardsResult);this.triggerEvent(l)}),Tn(a=>!!a.guardsResult||(this.restoreHistory(a),this.cancelNavigationTransition(a,"",3),!1)),OC(a=>{if(a.guards.canActivateChecks.length)return Ne(a).pipe(Yn(l=>{const c=new sY(l.id,this.serializeUrl(l.extractedUrl),this.serializeUrl(l.urlAfterRedirects),l.targetSnapshot);this.triggerEvent(c)}),Kn(l=>{let c=!1;return Ne(l).pipe(function pQ(n,t){return Vi(e=>{const{targetSnapshot:i,guards:{canActivateChecks:r}}=e;if(!r.length)return Ne(e);let o=0;return vt(r).pipe(qo(s=>function fQ(n,t,e,i){const r=n.routeConfig,o=n._resolve;return void 0!==r?.title&&!tk(r)&&(o[RC]=r.title),function mQ(n,t,e,i){const r=function gQ(n){return[...Object.keys(n),...Object.getOwnPropertySymbols(n)]}(n);if(0===r.length)return Ne({});const o={};return vt(r).pipe(Vi(s=>function _Q(n,t,e,i){const r=Fm(n,t,i);return zs(r.resolve?r.resolve(t,e):r(t,e))}(n[s],t,e,i).pipe(ba(),Yn(a=>{o[s]=a}))),mC(1),function DK(n){return t=>t.lift(new SK(n))}(o),qs(s=>s instanceof Yc?Ss:Qa(s)))}(o,n,t,i).pipe(he(s=>(n._resolvedData=s,n.data=MM(n,e).resolve,r&&tk(r)&&(n.data[RC]=r.title),null)))}(s.route,i,n,t)),Yn(()=>o++),mC(1),Vi(s=>o===r.length?Ne(e):Ss))})}(this.paramsInheritanceStrategy,this.ngModule.injector),Yn({next:()=>c=!0,complete:()=>{c||(this.restoreHistory(l),this.cancelNavigationTransition(l,"",2))}}))}),Yn(l=>{const c=new aY(l.id,this.serializeUrl(l.extractedUrl),this.serializeUrl(l.urlAfterRedirects),l.targetSnapshot);this.triggerEvent(c)}))}),OC(a=>{const l=c=>{const u=[];c.routeConfig?.loadComponent&&!c.routeConfig._loadedComponent&&u.push(this.configLoader.loadComponent(c.routeConfig).pipe(Yn(d=>{c.component=d}),he(()=>{})));for(const d of c.children)u.push(...l(d));return u};return ob(l(a.targetSnapshot.root)).pipe(Sm(),sn(1))}),OC(()=>this.afterPreactivation()),he(a=>{const l=function _Y(n,t,e){const i=rh(n,t._root,e?e._root:void 0);return new xM(i,t)}(this.routeReuseStrategy,a.targetSnapshot,a.currentRouterState);return r={...a,targetRouterState:l}}),Yn(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)=>he(i=>(new TY(t,i.targetRouterState,i.currentRouterState,e).activate(n),i)))(this.rootContexts,this.routeReuseStrategy,a=>this.triggerEvent(a)),Yn({next(){o=!0},complete(){o=!0}}),Am(()=>{o||s||this.cancelNavigationTransition(r,"",1),this.currentNavigation?.id===r.id&&(this.currentNavigation=null)}),qs(a=>{if(s=!0,NM(a)){LM(a)||(this.navigated=!0,this.restoreHistory(r,!0));const l=new Om(r.id,this.serializeUrl(r.extractedUrl),a.message,a.cancellationCode);if(i.next(l),LM(a)){const c=this.urlHandlingStrategy.merge(a.url,this.rawUrlTree),u={skipLocationChange:r.extras.skipLocationChange,replaceUrl:"eager"===this.urlUpdateStrategy||rk(r.source)};this.scheduleNavigation(c,"imperative",null,u,{resolve:r.resolve,reject:r.reject,promise:r.promise})}else r.resolve(!1)}else{this.restoreHistory(r,!0);const l=new AM(r.id,this.serializeUrl(r.extractedUrl),a,r.targetSnapshot??void 0);i.next(l);try{r.resolve(this.errorHandler(a))}catch(c){r.reject(c)}}return Ss}))}))}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},o=e.state?.navigationId?e.state:null;if(o){const a={...o};delete a.navigationId,delete a.\u0275routerPageId,0!==Object.keys(a).length&&(r.state=a)}const s=this.parseUrl(e.url);this.scheduleNavigation(s,i,o,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(IC),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:o,fragment:s,queryParamsHandling:a,preserveFragment:l}=i,c=r||this.routerState.root,u=l?this.currentUrlTree.fragment:s;let d=null;switch(a){case"merge":d={...this.currentUrlTree.queryParams,...o};break;case"preserve":d=this.currentUrlTree.queryParams;break;default:d=o||null}return null!==d&&(d=this.removeEmptyProps(d)),JK(c,this.currentUrlTree,e,d,u??null)}navigateByUrl(e,i={skipLocationChange:!1}){const r=ml(e)?e:this.parseUrl(e),o=this.urlHandlingStrategy.merge(r,this.rawUrlTree);return this.scheduleNavigation(o,"imperative",null,i)}navigate(e,i={skipLocationChange:!1}){return function TQ(n){for(let t=0;t{const o=e[r];return null!=o&&(i[r]=o),i},{})}processNavigations(){this.navigations.subscribe(e=>{this.navigated=!0,this.lastSuccessfulId=e.id,this.currentPageId=e.targetPageId,this.events.next(new ih(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,o,s){if(this.disposed)return Promise.resolve(!1);let a,l,c;s?(a=s.resolve,l=s.reject,c=s.promise):c=new Promise((h,m)=>{a=h,l=m});const u=++this.navigationId;let d;return"computed"===this.canceledNavigationResolution?(0===this.currentPageId&&(r=this.location.getState()),d=r&&r.\u0275routerPageId?r.\u0275routerPageId:o.replaceUrl||o.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:o,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),o={...i.extras.state,...this.generateNgRouterState(i.id,i.targetPageId)};this.location.isCurrentPathEqualTo(r)||i.extras.replaceUrl?this.location.replaceState(r,"",o):this.location.go(r,"",o)}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,r){const o=new Om(e.id,this.serializeUrl(e.extractedUrl),i,r);this.triggerEvent(o),e.resolve(!1)}generateNgRouterState(e,i){return"computed"===this.canceledNavigationResolution?{navigationId:e,\u0275routerPageId:i}:{navigationId:e}}}return n.\u0275fac=function(e){Yl()},n.\u0275prov=ge({token:n,factory:n.\u0275fac}),n})();function rk(n){return"imperative"!==n}const BC=new me("MSAL_INSTANCE"),hk=new me("MSAL_GUARD_CONFIG"),jQ=new me("MSAL_INTERCEPTOR_CONFIG"),HQ=new me("MSAL_BROADCAST_CONFIG"),pk="@azure/msal-angular",jC="2.4.1";let nu=(()=>{class n{constructor(e,i){this.instance=e,this.location=i;const r=this.location.path(!0).split("#").pop();r&&(this.redirectHash=`#${r}`),this.instance.initializeWrapperLibrary(dm.Angular,jC)}initialize(){return vt(this.instance.initialize())}acquireTokenPopup(e){return vt(this.instance.acquireTokenPopup(e))}acquireTokenRedirect(e){return vt(this.instance.acquireTokenRedirect(e))}acquireTokenSilent(e){return vt(this.instance.acquireTokenSilent(e))}handleRedirectObservable(e){return vt(this.instance.handleRedirectPromise(e||this.redirectHash))}loginPopup(e){return vt(this.instance.loginPopup(e))}loginRedirect(e){return vt(this.instance.loginRedirect(e))}logout(e){return vt(this.instance.logout(e))}logoutRedirect(e){return vt(this.instance.logoutRedirect(e))}logoutPopup(e){return vt(this.instance.logoutPopup(e))}ssoSilent(e){return vt(this.instance.ssoSilent(e))}getLogger(){return this.logger||(this.logger=this.instance.getLogger().clone(pk,jC)),this.logger}setLogger(e){this.logger=e.clone(pk,jC),this.instance.setLogger(e)}}return n.\u0275fac=function(e){return new(e||n)(M(BC),M(Wa))},n.\u0275prov=ge({token:n,factory:n.\u0275fac}),n})(),fk=(()=>{class n{constructor(e,i,r){this.msalInstance=e,this.authService=i,this.msalBroadcastConfig=r,this.msalBroadcastConfig&&this.msalBroadcastConfig.eventsToReplay>0?(this.authService.getLogger().verbose(`BroadcastService - replayPastEvents set on BroadcastConfig, replaying the last ${this.msalBroadcastConfig.eventsToReplay} events`),this._msalSubject=new v2(this.msalBroadcastConfig.eventsToReplay)):this._msalSubject=new N,this.msalSubject$=this._msalSubject.asObservable(),this._inProgress=new ar(fi.Startup),this.inProgress$=this._inProgress.asObservable(),this.msalInstance.addEventCallback(o=>{this._msalSubject.next(o);const s=hK.getInteractionStatusFromEvent(o,this._inProgress.value);null!==s&&(this.authService.getLogger().verbose(`BroadcastService - ${o.eventType} results in setting inProgress from ${this._inProgress.value} to ${s}`),this._inProgress.next(s))})}}return n.\u0275fac=function(e){return new(e||n)(M(BC),M(nu),M(HQ,8))},n.\u0275prov=ge({token:n,factory:n.\u0275fac}),n})(),VQ=(()=>{class n{constructor(e,i,r,o,s){this.msalGuardConfig=e,this.msalBroadcastService=i,this.authService=r,this.location=o,this.router=s,this.msalBroadcastService.inProgress$.subscribe()}parseUrl(e){return this.router.parseUrl(e)}getDestinationUrl(e){this.authService.getLogger().verbose("Guard - getting destination url");const i=document.getElementsByTagName("base"),r=this.location.normalize(i.length?i[0].href:window.location.origin),o=this.location.prepareExternalUrl(e);return o.startsWith("#")?(this.authService.getLogger().verbose("Guard - destination by hash routing"),`${r}/${o}`):`${r}${e}`}loginInteractively(e){const i="function"==typeof this.msalGuardConfig.authRequest?this.msalGuardConfig.authRequest(this.authService,e):Object.assign({},this.msalGuardConfig.authRequest);if(this.msalGuardConfig.interactionType===$e.Popup)return this.authService.getLogger().verbose("Guard - logging in by popup"),this.authService.loginPopup(i).pipe(he(o=>(this.authService.getLogger().verbose("Guard - login by popup successful, can activate, setting active account"),this.authService.instance.setActiveAccount(o.account),!0)));this.authService.getLogger().verbose("Guard - logging in by redirect");const r=this.getDestinationUrl(e.url);return this.authService.loginRedirect(Object.assign({redirectStartPage:r},i)).pipe(he(()=>!1))}activateHelper(e){if(this.msalGuardConfig.interactionType!==$e.Popup&&this.msalGuardConfig.interactionType!==$e.Redirect)throw new ym("invalid_interaction_type","Invalid interaction type provided to MSAL Guard. InteractionType.Popup or InteractionType.Redirect must be provided in the MsalGuardConfiguration");if(this.authService.getLogger().verbose("MSAL Guard activated"),!(typeof window<"u"))return this.authService.getLogger().info("Guard - window is undefined, MSAL does not support server-side token acquisition"),Ne(!0);if(nn.hashContainsKnownProperties(window.location.hash)&&Fn.isInIframe()&&!this.authService.instance.getConfiguration().system.allowRedirectInIframe)return this.authService.getLogger().warning("Guard - redirectUri set to page with MSAL Guard. It is recommended to not set redirectUri to a page that requires authentication."),Ne(!1);this.msalGuardConfig.loginFailedRoute&&(this.loginFailedRoute=this.parseUrl(this.msalGuardConfig.loginFailedRoute));const i=this.location.path(!0);return this.authService.handleRedirectObservable().pipe(qo(()=>{if(!this.authService.instance.getAllAccounts().length)return e?(this.authService.getLogger().verbose("Guard - no accounts retrieved, log in required to activate"),this.loginInteractively(e)):(this.authService.getLogger().verbose("Guard - no accounts retrieved, no state, cannot load"),Ne(!1));if(this.authService.getLogger().verbose("Guard - at least 1 account exists, can activate or load"),e){const r=this.includesCode(e.url),o=!!e.root&&!!e.root.fragment&&this.includesCode(`#${e.root.fragment}`),s=0===this.location.prepareExternalUrl(e.url).indexOf("#");if(r&&(o||s))return this.authService.getLogger().info("Guard - Hash contains known code response, stopping navigation."),i.indexOf("#")>-1?Ne(this.parseUrl(this.location.path())):Ne(this.parseUrl(""))}return Ne(!0)}),qs(r=>(this.authService.getLogger().error("Guard - error while logging in, unable to activate"),this.authService.getLogger().errorPii(`Guard - error: ${r.message}`),this.loginFailedRoute&&parseInt(X0.major,10)>9&&e?(this.authService.getLogger().verbose("Guard - loginFailedRoute set, redirecting"),Ne(this.loginFailedRoute)):Ne(!1))))}includesCode(e){return e.lastIndexOf("/code")>-1&&e.lastIndexOf("/code")===e.length-5||e.indexOf("#code=")>-1||e.indexOf("&code=")>-1}canActivate(e,i){return this.authService.getLogger().verbose("Guard - canActivate"),this.activateHelper(i)}canActivateChild(e,i){return this.authService.getLogger().verbose("Guard - canActivateChild"),this.activateHelper(i)}canLoad(){return this.authService.getLogger().verbose("Guard - canLoad"),this.activateHelper()}}return n.\u0275fac=function(e){return new(e||n)(M(hk),M(fk),M(nu),M(Wa),M(gr))},n.\u0275prov=ge({token:n,factory:n.\u0275fac}),n})(),mk=(()=>{class n{static forRoot(e,i,r){return{ngModule:n,providers:[{provide:BC,useValue:e},{provide:hk,useValue:i},{provide:jQ,useValue:r},nu]}}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=ht({type:n}),n.\u0275inj=dt({providers:[VQ,fk],imports:[$r]}),n})(),is=(()=>{class n{constructor(){this.thingToClose=new Map}addThingToClose(e,i){this.thingToClose.has(e)||this.thingToClose.set(e,i)}closeAll(e){this.thingToClose.forEach((i,r)=>{e&&e===r||i()})}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=ge({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();function UQ(n,t){1&n&&(g(0,"div"),be(1,"app-redirect"),_())}function qQ(n,t){1&n&&be(0,"app-contact-selector")}function zQ(n,t){1&n&&be(0,"app-info-shower")}function GQ(n,t){1&n&&be(0,"app-project-selector")}function WQ(n,t){1&n&&be(0,"app-tags-selector")}function $Q(n,t){1&n&&be(0,"app-address-activities")}function KQ(n,t){if(1&n&&(g(0,"div",15),j(1),_()),2&n){const e=C(4);f(1),qe(" ",e.globals.languageConfLocal.giLoginText," ")}}function YQ(n,t){if(1&n){const e=Ie();g(0,"div",12),j(1),H(2,KQ,2,1,"div",13),be(3,"br"),g(4,"button",14),W("click",function(){return J(e),Z(C(3).crmLogin())}),j(5,"Login CRM"),_()()}if(2&n){const e=C(3);f(1),qe(" ",e.globals.languageConfLocal.pleaseLogIn," "),f(1),v("ngIf","gi"===e.globals.system)}}function QQ(n,t){if(1&n){const e=Ie();g(0,"div",12),j(1),be(2,"br"),g(3,"button",14),W("click",function(){return J(e),Z(C(3).openGraphLogin())}),j(4,"Login Microsoft Graph"),_()()}if(2&n){const e=C(3);f(1),qe(" ",e.globals.languageConfLocal.noGraph," ")}}function JQ(n,t){if(1&n&&(g(0,"div",10),be(1,"app-item-documentor")(2,"app-loader")(3,"app-site-actions"),H(4,qQ,1,0,"app-contact-selector",11),H(5,zQ,1,0,"app-info-shower",11),H(6,GQ,1,0,"app-project-selector",11),H(7,WQ,1,0,"app-tags-selector",11),H(8,$Q,1,0,"app-address-activities",11),H(9,YQ,6,2,"div",9),H(10,QQ,5,1,"div",9),be(11,"app-modal")(12,"app-webint-input"),_()),2&n){const e=C(2);v("ngStyle",e.newCSS.main)("hidden","main"!==e.globals.activeWindow),f(4),v("ngIf",e.globals.loggedIn&&e.globals.graphLoaded),f(1),v("ngIf",e.globals.loggedIn&&e.globals.graphLoaded),f(1),v("ngIf",e.globals.loggedIn&&e.globals.graphLoaded),f(1),v("ngIf",e.globals.loggedIn&&e.globals.graphLoaded),f(1),v("ngIf",e.globals.loggedIn&&e.globals.graphLoaded),f(1),v("ngIf",!e.globals.loggedIn),f(1),v("ngIf",!e.globals.graphLoaded&&e.waitedABit)}}function ZQ(n,t){1&n&&(g(0,"div",16),be(1,"app-contact-creator"),_()),2&n&&v("hidden","contactCreation"!==C(2).globals.activeWindow)}function XQ(n,t){1&n&&(g(0,"div",16),be(1,"app-about"),_()),2&n&&v("hidden","about"!==C(2).globals.activeWindow)}function eJ(n,t){1&n&&(g(0,"div",16),be(1,"app-license-information"),_()),2&n&&v("hidden","license"!==C(2).globals.activeWindow)}function tJ(n,t){1&n&&(g(0,"div",16),be(1,"app-project-selector-page"),_()),2&n&&v("hidden","projectPage"!==C(2).globals.activeWindow)}function nJ(n,t){1&n&&(g(0,"div",16),be(1,"app-document-selector-page"),_()),2&n&&v("hidden","documentationTargetSelector"!==C(2).globals.activeWindow)}function iJ(n,t){1&n&&(g(0,"div",16),be(1,"app-user-settings"),_()),2&n&&v("hidden","userSettings"!==C(2).globals.activeWindow)}function rJ(n,t){1&n&&(g(0,"div",16),be(1,"app-company-selector-page"),_()),2&n&&v("hidden","companyPage"!==C(2).globals.activeWindow)}function oJ(n,t){if(1&n&&(g(0,"div",12),j(1),_()),2&n){const e=C(2);f(1),qe(" ",e.globals.languageConfLocal.itemNotSupported," ")}}function sJ(n,t){if(1&n&&(be(0,"input",3),g(1,"div",4),H(2,JQ,13,9,"div",5),H(3,ZQ,2,1,"div",6),H(4,XQ,2,1,"div",6),H(5,eJ,2,1,"div",6),H(6,tJ,2,1,"div",6),H(7,nJ,2,1,"div",6),H(8,iJ,2,1,"div",6),H(9,rJ,2,1,"div",6),g(10,"div",7),be(11,"mat-progress-spinner",8),_(),H(12,oJ,2,1,"div",9),_()),2&n){const e=C();f(1),v("ngStyle",e.newCSS.overflowContainer),f(1),v("ngIf",!e.globals.itemNotSupported),f(1),v("ngIf",!e.globals.itemNotSupported),f(1),v("ngIf",!e.globals.itemNotSupported),f(1),v("ngIf",!e.globals.itemNotSupported),f(1),v("ngIf",!e.globals.itemNotSupported),f(1),v("ngIf",!e.globals.itemNotSupported),f(1),v("ngIf",!e.globals.itemNotSupported),f(1),v("ngIf",!e.globals.itemNotSupported),f(2),v("diameter",30),f(1),v("ngIf",e.globals.itemNotSupported)}}let HC=(()=>{class n{constructor(e,i,r,o,s,a,l,c,u,d,h){this.modalService=e,this.initService=i,this.connectorFactory=r,this.graphAuthService=o,this.globals=s,this.lsm=a,this.connectionService=l,this.dps=c,this.datasource=u,this.http=d,this.authService=h,this.title="Business Mail",this.waitedABit=!1,this.newCSS={main:{},overflowContainer:{}},this.isInit=!1}ngOnInit(){setTimeout(()=>{this.waitedABit=!0},1e3);let e=Office.context.mailbox.item;(!e||e.itemClass&&(e.itemClass.startsWith("IPM.Schedule.Meeting.Resp")||e.itemClass.startsWith("IPM.Schedule.Meeting.Canceled")))&&(this.globals.itemNotSupported=!0),this.graphAuthService.handleRedirectObservable().subscribe({next:i=>{console.log("REDIRECT SUCCESSFULL"),console.log(i),this.openGraphLogin()},error:i=>console.log(i)}),this.globals.isRedirectPage||(this.connectorFactory.checkForApp().subscribe(i=>{this.connector=i,this.initConnectorData()}),Office.context.mailbox.addHandlerAsync(Office.EventType.ItemChanged,this.itemChangeHandler.bind(this)),this.modalService.waitForModalDesign().subscribe(()=>{this.initModalItems()}),this.initService.waitForInit().subscribe(i=>{this.isInit=i}),window.addEventListener("keydown",this.ownReloadAndESC)),window.dps=this.dps,this.globals.activeWindow="main",window.innerHeight>0&&window.innerWidth>0&&setInterval(()=>{let i=(new Date).toString();this.lsm.setValue(Zt.taskpaneActive,i)},1e3)}ngAfterViewInit(){this.datasource.getConfig().subscribe(e=>{console.log("response: ",e),this.globals.configJson=e||{},null==this.globals.configJson.projectSelection&&(this.globals.configJson.projectSelection=!0)})}itemChangeHandler(){return Ae(function*(){window.location.reload()})()}initModalItems(){this.modalItems=this.modalService.getModalItems(),this.isInit=!0}initConnectorData(){this.connector.waitForCSS().subscribe(e=>{this.newCSS=e}),this.connector.getData()}ownReloadAndESC(e){if(116===(e.which||e.keyCode)){if("Owa"===this.globals.curConnectorType)window.location.reload();else if(sessionStorage.setItem("verseAppData",JSON.stringify(this.globals.curConnector.data)),!window.location.href.includes("index.html")){let i="index.html";window.location.href.endsWith("/")||(i="/"+i),window.location.href+=i}}else if(27===e.keyCode)return window.dps.closeAll(),setTimeout(()=>{document.getElementById("focusDiv")?.focus()},100),void(e.cancelBubble=!0)}get isInit(){return this.init}set isInit(e){this.init=e}get mItems(){return this.modalItems}openGraphLogin(){setTimeout(()=>{this.authService.signIn()},400)}crmLogin(){null===window.localStorage.getItem("webInt")?this.openWebIntModal():this.connectionService.connect().subscribe(()=>{})}openWebIntModal(){this.connectionService.waitForWebIntModal().subscribe(e=>{e()})}doAttachmentsRead(){let e=Office.context.mailbox.item;e?.getAttachmentContentAsync(e.attachments[0].id,i=>{})}doAttachmentsCompose(){let e=Office.context.mailbox.item;e?.getAttachmentsAsync(i=>{e?.getAttachmentContentAsync(i.value[0].id,r=>{})})}}return n.\u0275fac=function(e){return new(e||n)(p(hl),p(Rb),p(dK),p(nu),p(ot),p(Mi),p(In),p(is),p(Bi),p(yc),p(hC))},n.\u0275cmp=Ue({type:n,selectors:[["app-root"]],decls:4,vars:2,consts:[["rel","stylesheet","href","https://fonts.googleapis.com/css2?family=Material+Symbols+Rounded:opsz,wght,FILL,GRAD@24,100,0,-25"],[4,"ngIf","ngIfElse"],["app",""],["id","focusDiv",2,"position","absolute","width","0px","height","0px","overflow","hidden","opacity","0","filter","alpha(opacity=0)"],["id","overflowContainer",3,"ngStyle"],["id","main",3,"ngStyle","hidden",4,"ngIf"],[3,"hidden",4,"ngIf"],["id","loadingSpinner",2,"display","none","width","100%","height","100%","position","absolute","z-index","99999","top","0px","left","0px","background-color","rgba(255,255,255,0.5)"],["mode","indeterminate",2,"position","absolute","z-index","9999","top","calc(50vh - 15px)","left","calc(50vw - 15px)",3,"diameter"],["class","notSupported",4,"ngIf"],["id","main",3,"ngStyle","hidden"],[4,"ngIf"],[1,"notSupported"],["class","notSupportedInner",4,"ngIf"],["mat-flat-button","",2,"width","100%","margin-top","1em","margin-bottom","1em","background-color","#0F6CBD","color","white",3,"click"],[1,"notSupportedInner"],[3,"hidden"]],template:function(e,i){if(1&e&&(be(0,"link",0),H(1,UQ,2,0,"div",1),H(2,sJ,13,11,"ng-template",null,2,Sn)),2&e){const r=Yt(3);f(1),v("ngIf",i.globals.isRedirectPage)("ngIfElse",r)}},styles:['.notSupportedInner[_ngcontent-%COMP%], .notSupported[_ngcontent-%COMP%]{margin:auto;padding-top:30px;font-size:21px;font-weight:100;font-family:Segoe UI,"Segoe UI Web (West European)",Segoe UI,-apple-system,BlinkMacSystemFont,Roboto,Helvetica Neue,sans-serif}#overflowContainer[_ngcontent-%COMP%]{height:100%;overflow:auto}#overflowContainer[_ngcontent-%COMP%] > #main[_ngcontent-%COMP%]{height:100%;width:100%;padding:0 12px}.notSupported[_ngcontent-%COMP%]{width:90%}.notSupportedInner[_ngcontent-%COMP%]{width:100%}']}),n})();function VC(n,t=Dc){const i=function aJ(n){return n instanceof Date&&!isNaN(+n)}(n)?+n-t.now():Math.abs(n);return r=>r.lift(new lJ(i,t))}class lJ{constructor(t,e){this.delay=t,this.scheduler=e}call(t,e){return e.subscribe(new UC(t,this.delay,this.scheduler))}}class UC extends S{constructor(t,e,i){super(t),this.delay=e,this.scheduler=i,this.queue=[],this.active=!1,this.errored=!1}static dispatch(t){const e=t.source,i=e.queue,r=t.scheduler,o=t.destination;for(;i.length>0&&i[0].time-r.now()<=0;)i.shift().notification.observe(o);if(i.length>0){const s=Math.max(0,i[0].time-r.now());this.schedule(t,s)}else this.unsubscribe(),e.active=!1}_schedule(t){this.active=!0,this.destination.add(t.schedule(UC.dispatch,this.delay,{source:this,destination:this.destination,scheduler:t}))}scheduleNotification(t){if(!0===this.errored)return;const e=this.scheduler,i=new cJ(e.now()+this.delay,t);this.queue.push(i),!1===this.active&&this._schedule(e)}_next(t){this.scheduleNotification(sr.createNext(t))}_error(t){this.errored=!0,this.queue=[],this.destination.error(t),this.unsubscribe()}_complete(){this.scheduleNotification(sr.createComplete()),this.unsubscribe()}}class cJ{constructor(t,e){this.time=t,this.notification=e}}const uJ=["mat-menu-item",""];function dJ(n,t){1&n&&(Rl(),g(0,"svg",2),be(1,"polygon",3),_())}const gk=["*"];function hJ(n,t){if(1&n){const e=Ie();g(0,"div",0),W("keydown",function(r){return J(e),Z(C()._handleKeydown(r))})("click",function(){return J(e),Z(C().closed.emit("click"))})("@transformMenu.start",function(r){return J(e),Z(C()._onAnimationStart(r))})("@transformMenu.done",function(r){return J(e),Z(C()._onAnimationDone(r))}),g(1,"div",1),Bt(2),_()()}if(2&n){const e=C();v("id",e.panelId)("ngClass",e._classList)("@transformMenu",e._panelAnimationState),rt("aria-label",e.ariaLabel||null)("aria-labelledby",e.ariaLabelledby||null)("aria-describedby",e.ariaDescribedby||null)}}const Gm={transformMenu:So("transformMenu",[li("void",qt({opacity:0,transform:"scale(0.8)"})),bi("void => enter",Oi("120ms cubic-bezier(0, 0, 0.2, 1)",qt({opacity:1,transform:"scale(1)"}))),bi("* => void",Oi("100ms 25ms linear",qt({opacity:0})))]),fadeInItems:So("fadeInItems",[li("showing",qt({opacity:1})),bi("void => *",[qt({opacity:0}),Oi("400ms 100ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])},pJ=new me("MatMenuContent"),qC=new me("MAT_MENU_PANEL"),fJ=Go(Rs(class{}));let iu=(()=>{class n extends fJ{constructor(e,i,r,o,s){super(),this._elementRef=e,this._document=i,this._focusMonitor=r,this._parentMenu=o,this._changeDetectorRef=s,this.role="menuitem",this._hovered=new N,this._focused=new N,this._highlighted=!1,this._triggersSubmenu=!1,o?.addItem?.(this)}focus(e,i){this._focusMonitor&&e?this._focusMonitor.focusVia(this._getHostElement(),e,i):this._getHostElement().focus(i),this._focused.next(this)}ngAfterViewInit(){this._focusMonitor&&this._focusMonitor.monitor(this._elementRef,!1)}ngOnDestroy(){this._focusMonitor&&this._focusMonitor.stopMonitoring(this._elementRef),this._parentMenu&&this._parentMenu.removeItem&&this._parentMenu.removeItem(this),this._hovered.complete(),this._focused.complete()}_getTabIndex(){return this.disabled?"-1":"0"}_getHostElement(){return this._elementRef.nativeElement}_checkDisabled(e){this.disabled&&(e.preventDefault(),e.stopPropagation())}_handleMouseEnter(){this._hovered.next(this)}getLabel(){const e=this._elementRef.nativeElement.cloneNode(!0),i=e.querySelectorAll("mat-icon, .material-icons");for(let r=0;r{class n{constructor(e,i,r,o){this._elementRef=e,this._ngZone=i,this._defaultOptions=r,this._changeDetectorRef=o,this._xPosition=this._defaultOptions.xPosition,this._yPosition=this._defaultOptions.yPosition,this._directDescendantItems=new qa,this._tabSubscription=E.EMPTY,this._classList={},this._panelAnimationState="void",this._animationDone=new N,this.overlayPanelClass=this._defaultOptions.overlayPanelClass||"",this.backdropClass=this._defaultOptions.backdropClass,this._overlapTrigger=this._defaultOptions.overlapTrigger,this._hasBackdrop=this._defaultOptions.hasBackdrop,this.closed=new He,this.close=this.closed,this.panelId="mat-menu-panel-"+gJ++}get xPosition(){return this._xPosition}set xPosition(e){this._xPosition=e,this.setPositionClasses()}get yPosition(){return this._yPosition}set yPosition(e){this._yPosition=e,this.setPositionClasses()}get overlapTrigger(){return this._overlapTrigger}set overlapTrigger(e){this._overlapTrigger=lt(e)}get hasBackdrop(){return this._hasBackdrop}set hasBackdrop(e){this._hasBackdrop=lt(e)}set panelClass(e){const i=this._previousPanelClass;i&&i.length&&i.split(" ").forEach(r=>{this._classList[r]=!1}),this._previousPanelClass=e,e&&e.length&&(e.split(" ").forEach(r=>{this._classList[r]=!0}),this._elementRef.nativeElement.className="")}get classList(){return this.panelClass}set classList(e){this.panelClass=e}ngOnInit(){this.setPositionClasses()}ngAfterContentInit(){this._updateDirectDescendants(),this._keyManager=new Sf(this._directDescendantItems).withWrap().withTypeAhead().withHomeAndEnd(),this._tabSubscription=this._keyManager.tabOut.subscribe(()=>this.closed.emit("tab")),this._directDescendantItems.changes.pipe(ni(this._directDescendantItems),Kn(e=>On(...e.map(i=>i._focused)))).subscribe(e=>this._keyManager.updateActiveItem(e)),this._directDescendantItems.changes.subscribe(e=>{const i=this._keyManager;if("enter"===this._panelAnimationState&&i.activeItem?._hasFocus()){const r=e.toArray(),o=Math.max(0,Math.min(r.length-1,i.activeItemIndex||0));r[o]&&!r[o].disabled?i.setActiveItem(o):i.setNextItemActive()}})}ngOnDestroy(){this._directDescendantItems.destroy(),this._tabSubscription.unsubscribe(),this.closed.complete()}_hovered(){return this._directDescendantItems.changes.pipe(ni(this._directDescendantItems),Kn(i=>On(...i.map(r=>r._hovered))))}addItem(e){}removeItem(e){}_handleKeydown(e){const i=e.keyCode,r=this._keyManager;switch(i){case 27:yi(e)||(e.preventDefault(),this.closed.emit("keydown"));break;case 37:this.parentMenu&&"ltr"===this.direction&&this.closed.emit("keydown");break;case 39:this.parentMenu&&"rtl"===this.direction&&this.closed.emit("keydown");break;default:return(38===i||40===i)&&r.setFocusOrigin("keyboard"),void r.onKeydown(e)}e.stopPropagation()}focusFirstItem(e="program"){this._ngZone.onStable.pipe(sn(1)).subscribe(()=>{let i=null;if(this._directDescendantItems.length&&(i=this._directDescendantItems.first._getHostElement().closest('[role="menu"]')),!i||!i.contains(document.activeElement)){const r=this._keyManager;r.setFocusOrigin(e).setFirstItemActive(),!r.activeItem&&i&&i.focus()}})}resetActiveItem(){this._keyManager.setActiveItem(-1)}setElevation(e){const i=Math.min(this._baseElevation+e,24),r=`${this._elevationPrefix}${i}`,o=Object.keys(this._classList).find(s=>s.startsWith(this._elevationPrefix));(!o||o===this._previousElevation)&&(this._previousElevation&&(this._classList[this._previousElevation]=!1),this._classList[r]=!0,this._previousElevation=r)}setPositionClasses(e=this.xPosition,i=this.yPosition){const r=this._classList;r["mat-menu-before"]="before"===e,r["mat-menu-after"]="after"===e,r["mat-menu-above"]="above"===i,r["mat-menu-below"]="below"===i,this._changeDetectorRef?.markForCheck()}_startAnimation(){this._panelAnimationState="enter"}_resetAnimation(){this._panelAnimationState="void"}_onAnimationDone(e){this._animationDone.next(e),this._isAnimating=!1}_onAnimationStart(e){this._isAnimating=!0,"enter"===e.toState&&0===this._keyManager.activeItemIndex&&(e.element.scrollTop=0)}_updateDirectDescendants(){this._allItems.changes.pipe(ni(this._allItems)).subscribe(e=>{this._directDescendantItems.reset(e.filter(i=>i._parentMenu===this)),this._directDescendantItems.notifyOnChanges()})}}return n.\u0275fac=function(e){return new(e||n)(p(Je),p(et),p(_k),p(St))},n.\u0275dir=fe({type:n,contentQueries:function(e,i,r){if(1&e&&(jt(r,pJ,5),jt(r,iu,5),jt(r,iu,4)),2&e){let o;ce(o=ue())&&(i.lazyContent=o.first),ce(o=ue())&&(i._allItems=o),ce(o=ue())&&(i.items=o)}},viewQuery:function(e,i){if(1&e&&De(yn,5),2&e){let r;ce(r=ue())&&(i.templateRef=r.first)}},inputs:{backdropClass:"backdropClass",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],ariaDescribedby:["aria-describedby","ariaDescribedby"],xPosition:"xPosition",yPosition:"yPosition",overlapTrigger:"overlapTrigger",hasBackdrop:"hasBackdrop",panelClass:["class","panelClass"],classList:"classList"},outputs:{closed:"closed",close:"close"}}),n})(),vk=(()=>{class n extends uh{constructor(e,i,r,o){super(e,i,r,o),this._elevationPrefix="mat-elevation-z",this._baseElevation=4}}return n.\u0275fac=function(e){return new(e||n)(p(Je),p(et),p(_k),p(St))},n.\u0275cmp=Ue({type:n,selectors:[["mat-menu"]],hostVars:3,hostBindings:function(e,i){2&e&&rt("aria-label",null)("aria-labelledby",null)("aria-describedby",null)},exportAs:["matMenu"],features:[it([{provide:qC,useExisting:n}]),Se],ngContentSelectors:gk,decls:1,vars:0,consts:[["tabindex","-1","role","menu",1,"mat-menu-panel",3,"id","ngClass","keydown","click"],[1,"mat-menu-content"]],template:function(e,i){1&e&&(Pn(),H(0,hJ,3,6,"ng-template"))},dependencies:[$a],styles:['mat-menu{display:none}.mat-menu-panel{min-width:112px;max-width:280px;overflow:auto;-webkit-overflow-scrolling:touch;max-height:calc(100vh - 48px);border-radius:4px;outline:0;min-height:64px;position:relative}.mat-menu-panel.ng-animating{pointer-events:none}.cdk-high-contrast-active .mat-menu-panel{outline:solid 1px}.mat-menu-content:not(:empty){padding-top:8px;padding-bottom:8px}.mat-menu-item{-webkit-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:rgba(0,0,0,0);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}.mat-menu-item::-moz-focus-inner{border:0}.mat-menu-item[disabled]{cursor:default}[dir=rtl] .mat-menu-item{text-align:right}.mat-menu-item .mat-icon{margin-right:16px;vertical-align:middle}.mat-menu-item .mat-icon svg{vertical-align:top}[dir=rtl] .mat-menu-item .mat-icon{margin-left:16px;margin-right:0}.mat-menu-item[disabled]::after{display:block;position:absolute;content:"";top:0;left:0;bottom:0;right:0}.cdk-high-contrast-active .mat-menu-item{margin-top:1px}.mat-menu-item-submenu-trigger{padding-right:32px}[dir=rtl] .mat-menu-item-submenu-trigger{padding-right:16px;padding-left:32px}.mat-menu-submenu-icon{position:absolute;top:50%;right:16px;transform:translateY(-50%);width:5px;height:10px;fill:currentColor}[dir=rtl] .mat-menu-submenu-icon{right:auto;left:16px;transform:translateY(-50%) scaleX(-1)}.cdk-high-contrast-active .mat-menu-submenu-icon{fill:CanvasText}button.mat-menu-item{width:100%}.mat-menu-item .mat-menu-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}'],encapsulation:2,data:{animation:[Gm.transformMenu,Gm.fadeInItems]},changeDetection:0}),n})();const yk=new me("mat-menu-scroll-strategy"),vJ={provide:yk,deps:[lr],useFactory:function _J(n){return()=>n.scrollStrategies.reposition()}},bk=As({passive:!0});let yJ=(()=>{class n{constructor(e,i,r,o,s,a,l,c,u){this._overlay=e,this._element=i,this._viewContainerRef=r,this._menuItemInstance=a,this._dir=l,this._focusMonitor=c,this._ngZone=u,this._overlayRef=null,this._menuOpen=!1,this._closingActionsSubscription=E.EMPTY,this._hoverSubscription=E.EMPTY,this._menuCloseSubscription=E.EMPTY,this._handleTouchStart=d=>{xf(d)||(this._openedBy="touch")},this._openedBy=void 0,this.restoreFocus=!0,this.menuOpened=new He,this.onMenuOpen=this.menuOpened,this.menuClosed=new He,this.onMenuClose=this.menuClosed,this._scrollStrategy=o,this._parentMaterialMenu=s instanceof uh?s:void 0,i.nativeElement.addEventListener("touchstart",this._handleTouchStart,bk),a&&(a._triggersSubmenu=this.triggersSubmenu())}get _deprecatedMatMenuTriggerFor(){return this.menu}set _deprecatedMatMenuTriggerFor(e){this.menu=e}get menu(){return this._menu}set menu(e){e!==this._menu&&(this._menu=e,this._menuCloseSubscription.unsubscribe(),e&&(this._menuCloseSubscription=e.close.subscribe(i=>{this._destroyMenu(i),("click"===i||"tab"===i)&&this._parentMaterialMenu&&this._parentMaterialMenu.closed.emit(i)})))}ngAfterContentInit(){this._handleHover()}ngOnDestroy(){this._overlayRef&&(this._overlayRef.dispose(),this._overlayRef=null),this._element.nativeElement.removeEventListener("touchstart",this._handleTouchStart,bk),this._menuCloseSubscription.unsubscribe(),this._closingActionsSubscription.unsubscribe(),this._hoverSubscription.unsubscribe()}get menuOpen(){return this._menuOpen}get dir(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}triggersSubmenu(){return!(!this._menuItemInstance||!this._parentMaterialMenu)}toggleMenu(){return this._menuOpen?this.closeMenu():this.openMenu()}openMenu(){const e=this.menu;if(this._menuOpen||!e)return;const i=this._createOverlay(e),r=i.getConfig(),o=r.positionStrategy;this._setPosition(e,o),r.hasBackdrop=e.hasBackdrop??!this.triggersSubmenu(),i.attach(this._getPortal(e)),e.lazyContent&&e.lazyContent.attach(this.menuData),this._closingActionsSubscription=this._menuClosingActions().subscribe(()=>this.closeMenu()),this._initMenu(e),e instanceof uh&&(e._startAnimation(),e._directDescendantItems.changes.pipe(Jt(e.close)).subscribe(()=>{o.withLockedPosition(!1).reapplyLastPosition(),o.withLockedPosition(!0)}))}closeMenu(){this.menu?.close.emit()}focus(e,i){this._focusMonitor&&e?this._focusMonitor.focusVia(this._element,e,i):this._element.nativeElement.focus(i)}updatePosition(){this._overlayRef?.updatePosition()}_destroyMenu(e){if(!this._overlayRef||!this.menuOpen)return;const i=this.menu;this._closingActionsSubscription.unsubscribe(),this._overlayRef.detach(),this.restoreFocus&&("keydown"===e||!this._openedBy||!this.triggersSubmenu())&&this.focus(this._openedBy),this._openedBy=void 0,i instanceof uh?(i._resetAnimation(),i.lazyContent?i._animationDone.pipe(Tn(r=>"void"===r.toState),sn(1),Jt(i.lazyContent._attached)).subscribe({next:()=>i.lazyContent.detach(),complete:()=>this._setIsMenuOpen(!1)}):this._setIsMenuOpen(!1)):(this._setIsMenuOpen(!1),i?.lazyContent?.detach())}_initMenu(e){e.parentMenu=this.triggersSubmenu()?this._parentMaterialMenu:void 0,e.direction=this.dir,this._setMenuElevation(e),e.focusFirstItem(this._openedBy||"program"),this._setIsMenuOpen(!0)}_setMenuElevation(e){if(e.setElevation){let i=0,r=e.parentMenu;for(;r;)i++,r=r.parentMenu;e.setElevation(i)}}_setIsMenuOpen(e){this._menuOpen=e,this._menuOpen?this.menuOpened.emit():this.menuClosed.emit(),this.triggersSubmenu()&&this._menuItemInstance._setHighlighted(e)}_createOverlay(e){if(!this._overlayRef){const i=this._getOverlayConfig(e);this._subscribeToPositions(e,i.positionStrategy),this._overlayRef=this._overlay.create(i),this._overlayRef.keydownEvents().subscribe()}return this._overlayRef}_getOverlayConfig(e){return new xc({positionStrategy:this._overlay.position().flexibleConnectedTo(this._element).withLockedPosition().withGrowAfterOpen().withTransformOriginOn(".mat-menu-panel, .mat-mdc-menu-panel"),backdropClass:e.backdropClass||"cdk-overlay-transparent-backdrop",panelClass:e.overlayPanelClass,scrollStrategy:this._scrollStrategy(),direction:this._dir})}_subscribeToPositions(e,i){e.setPositionClasses&&i.positionChanges.subscribe(r=>{const o="start"===r.connectionPair.overlayX?"after":"before",s="top"===r.connectionPair.overlayY?"below":"above";this._ngZone?this._ngZone.run(()=>e.setPositionClasses(o,s)):e.setPositionClasses(o,s)})}_setPosition(e,i){let[r,o]="before"===e.xPosition?["end","start"]:["start","end"],[s,a]="above"===e.yPosition?["bottom","top"]:["top","bottom"],[l,c]=[s,a],[u,d]=[r,o],h=0;if(this.triggersSubmenu()){if(d=r="before"===e.xPosition?"start":"end",o=u="end"===r?"start":"end",this._parentMaterialMenu){if(null==this._parentInnerPadding){const m=this._parentMaterialMenu.items.first;this._parentInnerPadding=m?m._getHostElement().offsetTop:0}h="bottom"===s?this._parentInnerPadding:-this._parentInnerPadding}}else e.overlapTrigger||(l="top"===s?"bottom":"top",c="top"===a?"bottom":"top");i.withPositions([{originX:r,originY:l,overlayX:u,overlayY:s,offsetY:h},{originX:o,originY:l,overlayX:d,overlayY:s,offsetY:h},{originX:r,originY:c,overlayX:u,overlayY:a,offsetY:-h},{originX:o,originY:c,overlayX:d,overlayY:a,offsetY:-h}])}_menuClosingActions(){const e=this._overlayRef.backdropClick(),i=this._overlayRef.detachments();return On(e,this._parentMaterialMenu?this._parentMaterialMenu.closed:Ne(),this._parentMaterialMenu?this._parentMaterialMenu._hovered().pipe(Tn(s=>s!==this._menuItemInstance),Tn(()=>this._menuOpen)):Ne(),i)}_handleMousedown(e){Tf(e)||(this._openedBy=0===e.button?"mouse":void 0,this.triggersSubmenu()&&e.preventDefault())}_handleKeydown(e){const i=e.keyCode;(13===i||32===i)&&(this._openedBy="keyboard"),this.triggersSubmenu()&&(39===i&&"ltr"===this.dir||37===i&&"rtl"===this.dir)&&(this._openedBy="keyboard",this.openMenu())}_handleClick(e){this.triggersSubmenu()?(e.stopPropagation(),this.openMenu()):this.toggleMenu()}_handleHover(){!this.triggersSubmenu()||!this._parentMaterialMenu||(this._hoverSubscription=this._parentMaterialMenu._hovered().pipe(Tn(e=>e===this._menuItemInstance&&!e.disabled),VC(0,pb)).subscribe(()=>{this._openedBy="mouse",this.menu instanceof uh&&this.menu._isAnimating?this.menu._animationDone.pipe(sn(1),VC(0,pb),Jt(this._parentMaterialMenu._hovered())).subscribe(()=>this.openMenu()):this.openMenu()}))}_getPortal(e){return(!this._portal||this._portal.templateRef!==e.templateRef)&&(this._portal=new Ms(e.templateRef,this._viewContainerRef)),this._portal}}return n.\u0275fac=function(e){return new(e||n)(p(lr),p(Je),p(Dn),p(yk),p(qC,8),p(iu,10),p(Xi,8),p(Do),p(et))},n.\u0275dir=fe({type:n,hostVars:3,hostBindings:function(e,i){1&e&&W("click",function(o){return i._handleClick(o)})("mousedown",function(o){return i._handleMousedown(o)})("keydown",function(o){return i._handleKeydown(o)}),2&e&&rt("aria-haspopup",i.menu?"menu":null)("aria-expanded",i.menuOpen||null)("aria-controls",i.menuOpen?i.menu.panelId:null)},inputs:{_deprecatedMatMenuTriggerFor:["mat-menu-trigger-for","_deprecatedMatMenuTriggerFor"],menu:["matMenuTriggerFor","menu"],menuData:["matMenuTriggerData","menuData"],restoreFocus:["matMenuTriggerRestoreFocus","restoreFocus"]},outputs:{menuOpened:"menuOpened",onMenuOpen:"onMenuOpen",menuClosed:"menuClosed",onMenuClose:"onMenuClose"}}),n})(),Ck=(()=>{class n extends yJ{}return n.\u0275fac=function(){let t;return function(i){return(t||(t=Pt(n)))(i||n)}}(),n.\u0275dir=fe({type:n,selectors:[["","mat-menu-trigger-for",""],["","matMenuTriggerFor",""]],hostAttrs:[1,"mat-menu-trigger"],exportAs:["matMenuTrigger"],features:[Se]}),n})(),bJ=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=ht({type:n}),n.\u0275inj=dt({providers:[vJ],imports:[$r,Lt,ha,Ic,Tc,Lt]}),n})();const CJ=["*"];let Wm;function dh(n){return function wJ(){if(void 0===Wm&&(Wm=null,typeof window<"u")){const n=window;void 0!==n.trustedTypes&&(Wm=n.trustedTypes.createPolicy("angular#components",{createHTML:t=>t}))}return Wm}()?.createHTML(n)||n}function wk(n){return Error(`Unable to find icon with the name "${n}"`)}function Ek(n){return Error(`The URL provided to MatIconRegistry was not trusted as a resource URL via Angular's DomSanitizer. Attempted URL was "${n}".`)}function Dk(n){return Error(`The literal provided to MatIconRegistry was not trusted as safe HTML by Angular's DomSanitizer. Attempted literal was "${n}".`)}class gl{constructor(t,e,i){this.url=t,this.svgText=e,this.options=i}}let $m=(()=>{class n{constructor(e,i,r,o){this._httpClient=e,this._sanitizer=i,this._errorHandler=o,this._svgIconConfigs=new Map,this._iconSetConfigs=new Map,this._cachedIconsByUrl=new Map,this._inProgressUrlFetches=new Map,this._fontCssClassesByAlias=new Map,this._resolvers=[],this._defaultFontSetClass=["material-icons","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,o){return this._addSvgIconConfig(e,i,new gl(r,null,o))}addSvgIconResolver(e){return this._resolvers.push(e),this}addSvgIconLiteralInNamespace(e,i,r,o){const s=this._sanitizer.sanitize(dn.HTML,r);if(!s)throw Dk(r);const a=dh(s);return this._addSvgIconConfig(e,i,new gl("",a,o))}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 gl(i,null,r))}addSvgIconSetLiteralInNamespace(e,i,r){const o=this._sanitizer.sanitize(dn.HTML,i);if(!o)throw Dk(i);const s=dh(o);return this._addSvgIconSetConfig(e,new gl("",s,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(dn.RESOURCE_URL,e);if(!i)throw Ek(e);const r=this._cachedIconsByUrl.get(i);return r?Ne(Km(r)):this._loadSvgIconFromConfig(new gl(e,null)).pipe(Yn(o=>this._cachedIconsByUrl.set(i,o)),he(o=>Km(o)))}getNamedSvgIcon(e,i=""){const r=Sk(i,e);let o=this._svgIconConfigs.get(r);if(o)return this._getSvgFromConfig(o);if(o=this._getIconConfigFromResolvers(i,e),o)return this._svgIconConfigs.set(r,o),this._getSvgFromConfig(o);const s=this._iconSetConfigs.get(i);return s?this._getSvgFromIconSetConfigs(e,s):Qa(wk(r))}ngOnDestroy(){this._resolvers=[],this._svgIconConfigs.clear(),this._iconSetConfigs.clear(),this._cachedIconsByUrl.clear()}_getSvgFromConfig(e){return e.svgText?Ne(Km(this._svgElementFromConfig(e))):this._loadSvgIconFromConfig(e).pipe(he(i=>Km(i)))}_getSvgFromIconSetConfigs(e,i){const r=this._extractIconWithNameFromAnySet(e,i);return r?Ne(r):_y(i.filter(s=>!s.svgText).map(s=>this._loadSvgIconSetFromConfig(s).pipe(qs(a=>{const c=`Loading icon set URL: ${this._sanitizer.sanitize(dn.RESOURCE_URL,s.url)} failed: ${a.message}`;return this._errorHandler.handleError(new Error(c)),Ne(null)})))).pipe(he(()=>{const s=this._extractIconWithNameFromAnySet(e,i);if(!s)throw wk(e);return s}))}_extractIconWithNameFromAnySet(e,i){for(let r=i.length-1;r>=0;r--){const o=i[r];if(o.svgText&&o.svgText.toString().indexOf(e)>-1){const s=this._svgElementFromConfig(o),a=this._extractSvgIconFromSet(s,e,o.options);if(a)return a}}return null}_loadSvgIconFromConfig(e){return this._fetchIcon(e).pipe(Yn(i=>e.svgText=i),he(()=>this._svgElementFromConfig(e)))}_loadSvgIconSetFromConfig(e){return e.svgText?Ne(null):this._fetchIcon(e).pipe(Yn(i=>e.svgText=i))}_extractSvgIconFromSet(e,i,r){const o=e.querySelector(`[id="${i}"]`);if(!o)return null;const s=o.cloneNode(!0);if(s.removeAttribute("id"),"svg"===s.nodeName.toLowerCase())return this._setSvgAttributes(s,r);if("symbol"===s.nodeName.toLowerCase())return this._setSvgAttributes(this._toSvgElement(s),r);const a=this._svgElementFromString(dh(""));return a.appendChild(s),this._setSvgAttributes(a,r)}_svgElementFromString(e){const i=this._document.createElement("DIV");i.innerHTML=e;const r=i.querySelector("svg");if(!r)throw Error(" tag not found");return r}_toSvgElement(e){const i=this._svgElementFromString(dh("")),r=e.attributes;for(let o=0;odh(c)),Am(()=>this._inProgressUrlFetches.delete(s)),Dw());return this._inProgressUrlFetches.set(s,l),l}_addSvgIconConfig(e,i,r){return this._svgIconConfigs.set(Sk(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;rt?t.pathname+t.search:""}}}),Ak=["clip-path","color-profile","src","cursor","fill","filter","marker","marker-start","marker-mid","marker-end","mask","stroke"],MJ=Ak.map(n=>`[${n}]`).join(", "),kJ=/^url\(['"]?#(.*?)['"]?\)$/;let RJ=(()=>{class n extends AJ{constructor(e,i,r,o,s,a){super(e),this._iconRegistry=i,this._location=o,this._errorHandler=s,this._inline=!1,this._previousFontSetClass=[],this._currentIconFetch=E.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=lt(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,o)=>{r.forEach(s=>{o.setAttribute(s.name,`url('${e}#${s.value}')`)})})}_cacheChildrenWithExternalReferences(e){const i=e.querySelectorAll(MJ),r=this._elementsWithExternalReferences=this._elementsWithExternalReferences||new Map;for(let o=0;o{const a=i[o],l=a.getAttribute(s),c=l?l.match(kJ):null;if(c){let u=r.get(a);u||(u=[],r.set(a,u)),u.push({name:s,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(sn(1)).subscribe(o=>this._setSvgElement(o),o=>{this._errorHandler.handleError(new Error(`Error retrieving icon ${i}:${r}! ${o.message}`))})}}}return n.\u0275fac=function(e){return new(e||n)(p(Je),p($m),Vr("aria-hidden"),p(xJ),p(ps),p(TJ,8))},n.\u0275cmp=Ue({type:n,selectors:[["mat-icon"]],hostAttrs:["role","img",1,"mat-icon","notranslate"],hostVars:8,hostBindings:function(e,i){2&e&&(rt("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),bt("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:[Se],ngContentSelectors:CJ,decls:1,vars:0,template:function(e,i){1&e&&(Pn(),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})(),OJ=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=ht({type:n}),n.\u0275inj=dt({imports:[Lt,Lt]}),n})();function PJ(n,t){if(1&n){const e=Ie();g(0,"div",19),W("click",function(){return J(e),Z(C(2).toggleClass(2))}),Ze(1,"translate"),_()}if(2&n){const e=C(2);_s(e.iconConfigLocal[2].model.classAssignment[e.iconConfigLocal[2].model.value]),_t("title",Xe(1,5,e.iconConfigLocal[2].model.titleLC[e.iconConfigLocal[2].model.value])),v("ngStyle",e.configIcon)}}function LJ(n,t){1&n&&(g(0,"span"),be(1,"img",21),_())}function NJ(n,t){1&n&&(g(0,"span"),be(1,"img",22),_())}function FJ(n,t){if(1&n){const e=Ie();g(0,"div",20),W("click",function(){return J(e),Z(C(2).toggleClass(1))}),Ze(1,"translate"),H(2,LJ,2,0,"span",17),H(3,NJ,2,0,"span",17),_()}if(2&n){const e=C(2);_s(e.iconConfigLocal[1].model.classAssignment[e.iconConfigLocal[1].model.value]),_t("title",Xe(1,6,e.iconConfigLocal[1].model.titleLC[e.iconConfigLocal[1].model.value])),f(2),v("ngIf",!e.globals.openMail),f(1),v("ngIf",e.globals.openMail)}}function BJ(n,t){1&n&&(g(0,"span"),be(1,"img",23),_())}function jJ(n,t){1&n&&(g(0,"span"),be(1,"img",24),_())}function HJ(n,t){if(1&n){const e=Ie();g(0,"div",25)(1,"img",26),W("click",function(r){return J(e),Z(C(2).showDocumentSelector(r))}),_()()}if(2&n){const e=C(2);f(1),v("title","ba"===e.globals.system?e.globals.languageConfLocal.selectFromAllDocumentsBA:e.globals.languageConfLocal.selectFromAllDocuments)}}function VJ(n,t){if(1&n){const e=Ie();g(0,"div",11)(1,"div",12),W("click",function(){return J(e),Z(C().reload())}),g(2,"span"),be(3,"img",13),_()(),H(4,PJ,2,7,"div",14),H(5,FJ,4,8,"div",15),g(6,"div",16),W("click",function(){return J(e),Z(C().toggleClass(0))}),Ze(7,"translate"),H(8,BJ,2,0,"span",17),H(9,jJ,2,0,"span",17),_(),H(10,HJ,2,1,"div",18),_()}if(2&n){const e=C();f(1),_t("title",e.globals.languageConfLocal.reload),f(3),v("ngIf","gi"===e.globals.system&&(e.globals.actionsAllowed&&!e.globals.actionsAllowed||e.globals.createAllowed)),f(1),v("ngIf",e.isReadMode),f(1),_s(e.iconConfigLocal[0].model.classAssignment[e.iconConfigLocal[0].model.value]),_t("title",Xe(7,10,e.iconConfigLocal[0].model.titleLC[e.iconConfigLocal[0].model.value])),f(2),v("ngIf",!e.globals.deleteAttachments),f(1),v("ngIf",e.globals.deleteAttachments),f(1),v("ngIf",!e.globals.infoShower.isAppointment&&"doNotDocument"!==e.globals.infoShower.selectedEmailAddress&&(e.globals.configJson.webUrl&&(!e.globals.configJson.giVersionNumber||void 0===e.globals.configJson.giVersionNumber||e.globals.configJson.giVersionNumber.maintenanceVersion>=15)||"ba"===e.globals.system))}}function UJ(n,t){if(1&n){const e=Ie();g(0,"li",9),W("click",function(){return J(e),Z(C().connectionService.logout())}),j(1),_()}if(2&n){const e=C();f(1),qe(" ",e.globals.languageConfLocal.logout," ")}}function qJ(n,t){if(1&n){const e=Ie();g(0,"li",9),W("click",function(){return J(e),Z(C().openGraphLogin())}),j(1," Login Microsoft Graph "),_()}}function zJ(n,t){if(1&n){const e=Ie();g(0,"li",9),W("click",function(){return J(e),Z(C().logoutGraph())}),j(1," Logout Microsoft Graph "),_()}}let GJ=(()=>{class n{constructor(e,i,r,o,s,a){this.globals=e,this.connectionService=i,this.createService=r,this.ren=o,this.datasource=s,this.authService=a,this.enteredButton=!1,this.isMatMenuOpen=!1,this.isMatMenu2Open=!1,this.loggedIn=!1,this.iconConfigLocal=j1,this.path="config",this.userName="Login",this.reloadImg={background:"no-repeat url(assets/images/icon_refresh_no_background.png)"},this.configIcon={background:"transparent url(assets/images/icons_business_mail.png) no-repeat"},this.configRestObj={},this.createService.config=this.iconConfigLocal}ngOnInit(){this.waitForUserName(),null===window.localStorage.getItem("webInt")&&this.openWebIntModal();let e=Office.context.mailbox.item;console.log(e),e&&(this.isReadMode=void 0===e.getItemIdAsync||void 0===typeof e.getItemIdAsync),console.log(this.isReadMode),this.initConfig()}ngAfterViewInit(){this.datasource.isFeatureAvailable(Bc.DocumentToAnything).subscribe(e=>{this.documentToAnythingVisible=e&&typeof this.globals.infoShower<"u"&&!this.globals.infoShower.isAppointment&&"doNotDocument"!==this.globals.infoShower.selectedEmailAddress})}menuEnter(){this.isMatMenuOpen=!0,this.isMatMenu2Open&&(this.isMatMenu2Open=!1)}menuLeave(e,i){setTimeout(()=>{this.isMatMenu2Open||this.enteredButton?this.isMatMenuOpen=!1:(this.isMatMenuOpen=!1,e.closeMenu(),i&&(this.ren.removeClass(i._elementRef.nativeElement,"cdk-focused"),this.ren.removeClass(i._elementRef.nativeElement,"cdk-program-focused")))},80)}buttonEnter(e,i){setTimeout(()=>{this.prevButtonTrigger&&this.prevButtonTrigger!==e?(this.prevButtonTrigger.closeMenu(),this.prevButtonTrigger=e,this.isMatMenuOpen=!1,this.isMatMenu2Open=!1,e.openMenu()):this.isMatMenuOpen?(this.enteredButton=!0,this.prevButtonTrigger=e):(this.enteredButton=!0,this.prevButtonTrigger=e,e.openMenu(),i&&(this.ren.removeClass(i._elementRef.nativeElement,"cdk-focused"),this.ren.removeClass(i._elementRef.nativeElement,"cdk-program-focused")))})}buttonLeave(e){setTimeout(()=>{this.enteredButton&&!this.isMatMenuOpen&&e.closeMenu(),this.isMatMenuOpen?this.enteredButton=!1:e.closeMenu()},100)}reload(){this.connectionService.reload()}openWebIntModal(){this.connectionService.waitForWebIntModal().subscribe(e=>{e()})}openUserSettings(){this.globals.activeWindow="userSettings"}openConnectWindow(){"Login"===this.userName&&(null===window.localStorage.getItem("webInt")?this.openWebIntModal():this.connectionService.connect().subscribe(()=>{}))}openGraphLogin(){this.authService.signIn()}logoutGraph(){this.authService.signOutPopup().subscribe(e=>{console.log(e)})}openLicenses(){this.globals.activeWindow="about"}toggleClass(e,i=!0){if(e{},error:a=>{},complete:()=>{}})}else this.configData&&this.configData.createAddress&&i&&this.createService.toggleOpen();else localStorage.setItem(r.name,r.value),("openMail"===r.name||"deleteAttachments"===r.name)&&(this.globals[r.name]=Boolean(r.value),"deleteAttachments"===r.name&&"Owa"===this.globals.curConnectorType&&this.globals.curConnector.adjustAttachments())}}waitForUserName(){this.connectionService.processPath().subscribe(()=>{this.connectionService.getUserName().subscribe(e=>{"gi"===this.globals.system?(this.globals.ownMailAddr=e.mail,this.userName=e.name):this.userName=e,this.loggedIn=!0,this.globals.loggedIn=!0})})}changeIcon(e,i){return e.value=i[(i.indexOf(e.value)+1)%i.length],e}initConfig(){"gi"===this.globals.system?this.connectionService.getReqNoCache(this.path,null).subscribe({next:e=>{this.initConfigClasses(e)},error:e=>{this.connectionService.processPath().subscribe(()=>{})},complete:()=>{}}):this.initConfigClasses(null)}initConfigClasses(e){this.configRestObj=e;const i={};let r=0;for(const o of this.iconConfigLocal){const s=o.model.name;if("gi"===this.globals.system){let a;a=a?this.configData[s]:{inRest:!1,index:0},(e[s]||""===e[s])&&(o.model.value=e[s],a.inRest=!0,("deleteAttachments"===s||"openMail"===s)&&(this.globals[s]=Boolean(e[s]))),i[s]=a,a.index=r,r++}else if("deleteAttachments"===s||"openMail"===s){let a=localStorage.getItem(s);null==a?(a="",localStorage.setItem(s,a)):(this.globals[s]=Boolean(a),o.model.value="1"===a||""===a?a:"")}}this.configData=i}showDocumentSelector(e){this.globals.showSelectedDocuments=!0,this.globals.activeWindow="documentationTargetSelector"}}return n.\u0275fac=function(e){return new(e||n)(p(ot),p(In),p(H1),p(ho),p(Bi),p(hC))},n.\u0275cmp=Ue({type:n,selectors:[["app-site-actions"]],decls:22,vars:8,consts:[["id","actionsHeader"],["id","actionButtons"],["class","clearfix",4,"ngIf"],["id","userMenu"],["id","userName",1,"actionHeaderComponent",3,"click"],["id","userMenuIcon","mat-button","",1,"actionHeaderComponent","right","material-symbols-rounded",3,"matMenuTriggerFor"],["button","","userMenuTrigger","matMenuTrigger"],["direction","down","yPosition","below","xPosition","before",3,"hasBackdrop"],["userMenu","matMenu"],["mat-menu-item","",1,"",3,"click"],["class","","mat-menu-item","",3,"click",4,"ngIf"],[1,"clearfix"],["id","reload",1,"widgetReload",3,"title","click"],["src","./assets/images/vwicn216.svg","alt","refresh"],["id","openCreate",3,"class","title","ngStyle","click",4,"ngIf"],["id","openMail",3,"class","title","click",4,"ngIf"],["id","deleteAttachments",3,"title","click"],[4,"ngIf"],["id","addAllDocsListButton",4,"ngIf"],["id","openCreate",3,"title","ngStyle","click"],["id","openMail",3,"title","click"],["src","./assets/images/vwicn217.svg","alt","noMail"],["src","./assets/images/vwicn218.svg","alt","openMail"],["src","./assets/images/vwicn219.svg","alt","attachFile"],["src","./assets/images/vwicn220.svg","alt","attachFileOff"],["id","addAllDocsListButton"],["src","./assets/images/vwicn213.svg","alt","icon",3,"title","click"]],template:function(e,i){if(1&e&&(g(0,"div",0)(1,"div",1),H(2,VJ,11,12,"div",2),_(),g(3,"div",3)(4,"div",4),W("click",function(){return i.openConnectWindow()}),j(5),_(),g(6,"mat-icon")(7,"span",5,6),j(10,"keyboard_arrow_down"),_()()(),g(11,"mat-menu",7,8)(13,"span")(14,"li",9),W("click",function(){return i.openUserSettings()}),j(15),_(),be(16,"mat-divider"),H(17,UJ,2,1,"li",10),H(18,qJ,2,0,"li",10),H(19,zJ,2,0,"li",10),g(20,"li",9),W("click",function(){return i.openLicenses()}),j(21," Info "),_()()()()),2&e){const r=Yt(12);f(2),v("ngIf",i.globals.loggedIn&&i.globals.graphLoaded),f(3),qe(" ",i.userName," "),f(2),v("matMenuTriggerFor",r),f(4),v("hasBackdrop",!1),f(4),qe(" ",i.globals.languageConfLocal.userSettings," "),f(2),v("ngIf",i.loggedIn),f(1),v("ngIf",i.globals.graphRequired&&!i.globals.graphLoaded),f(1),v("ngIf",i.globals.graphRequired&&i.globals.graphLoaded)}},dependencies:[pn,ra,Bf,vk,iu,Ck,RJ,ki],styles:['.widgetReload[_ngcontent-%COMP%]{background-position:1px 2px!important;float:left;margin-right:2px}.widgetReload[_ngcontent-%COMP%], .widgetOptions[_ngcontent-%COMP%], .widgetLogin[_ngcontent-%COMP%]{display:inline-block;width:21px;height:22px;text-decoration:none;color:#4d4d4d;cursor:pointer}.actionHeaderComponent[_ngcontent-%COMP%]{display:inline-block}.mat-menu-item[_ngcontent-%COMP%]{font:400 12px/20px Arial,Verdana,Helvetica,sans-serif;height:100%;padding-top:10px;padding-bottom:10px}#userMenu[_ngcontent-%COMP%]{height:20px;display:flex}#userMenuIcon[_ngcontent-%COMP%]{margin-top:2px;margin-left:4px;cursor:pointer}#actionsHeader[_ngcontent-%COMP%]{display:flex;justify-content:space-between;padding-top:2px;padding-bottom:2px;background-color:#f28e001a;border-radius:3px}.bmPlus[_ngcontent-%COMP%], .bmMinus[_ngcontent-%COMP%], .bmDocOFF[_ngcontent-%COMP%], .bmDocON[_ngcontent-%COMP%], .bmAttachInclude[_ngcontent-%COMP%], .bmAttachExclude[_ngcontent-%COMP%]{float:left;width:22px;height:21px;margin-right:2px;cursor:pointer}.bmDocOFF[_ngcontent-%COMP%]{background-position:-88px 0px!important}.bmDocON[_ngcontent-%COMP%]{background-position:-110px 0px!important}.bmMinus[_ngcontent-%COMP%]{background-position:-66px -21px!important}.bmPlus[_ngcontent-%COMP%]{background-position:-44px -21px!important}.bmAttachInclude[_ngcontent-%COMP%]{background-position:-22px -21px!important}.bmAttachExclude[_ngcontent-%COMP%]{background-position:0px -21px!important}.clearfix[_ngcontent-%COMP%]{display:flex}#addAllDocsListButton[_ngcontent-%COMP%]{cursor:pointer;width:22px;height:21px;margin:0}.mat-icon[_ngcontent-%COMP%]{display:flex;align-items:center;padding-bottom:2px}.material-symbols-outlined[_ngcontent-%COMP%]{font-variation-settings:"FILL" 0,"wght" 200,"GRAD" 0,"opsz" 24}']}),n})();function WJ(n,t){1&n&&be(0,"div",11)}function $J(n,t){if(1&n&&(g(0,"div",1),H(1,WJ,1,0,"div",2),g(2,"div",3),be(3,"div",4),g(4,"div",5),be(5,"div",6)(6,"div",7),_(),g(7,"div",8),be(8,"div",9)(9,"div",10),_()()()),2&n){const e=C();f(1),v("ngIf",!e.isModal)}}let KJ=(()=>{class n{constructor(e){this.loader=e,this.loaderActive=!1,this.isModal=!1}ngOnInit(){this.loader.connectToService().subscribe(e=>{this.changeState(e.activate,e.modal)})}changeState(e,i=this.isModal){setTimeout(()=>{this.loaderActive=e,this.isModal=i},1)}}return n.\u0275fac=function(e){return new(e||n)(p(Fc))},n.\u0275cmp=Ue({type:n,selectors:[["app-loader"]],decls:1,vars:1,consts:[["class","loadingContainer",4,"ngIf"],[1,"loadingContainer"],["class","blank-background",4,"ngIf"],[1,"shadow-messagebox"],["id","loadingFiller"],[1,"loaderContainerLeft"],[1,"loader-left"],[1,"loader-bottom"],[1,"loaderContainerRight"],[1,"loader-right"],[1,"loader-top"],[1,"blank-background"]],template:function(e,i){1&e&&H(0,$J,10,1,"div",0),2&e&&v("ngIf",i.loaderActive)},dependencies:[pn],styles:['.shadow[_ngcontent-%COMP%]{position:absolute;top:0;left:0;z-index:99;background-color:#eee;opacity:.5;filter:alpha(opacity=50);color:#111;font-size:20px;font-weight:700;font-style:normal;text-align:center}.shadow-transparent[_ngcontent-%COMP%]{position:absolute;top:0;left:0;z-index:99;background-color:#fff;opacity:0;filter:alpha(opacity=0);color:#fff;font-size:20px;font-weight:700;font-style:normal;text-align:center}.shadow-messagebox[_ngcontent-%COMP%], .blank-background[_ngcontent-%COMP%]{height:100%;width:100%;position:absolute;top:0;left:0}.shadow-messagebox[_ngcontent-%COMP%]{z-index:9999;background-color:#000;opacity:.4;filter:alpha(opacity=50);color:#111;font-size:20px;font-weight:700;font-style:normal;text-align:center}.blank-background[_ngcontent-%COMP%]{z-index:9900;background-color:#fff}.loader-left[_ngcontent-%COMP%]{position:relative;top:0;left:0;height:41px;width:11px;box-shadow:inset 0 41px gray;animation:fillAnimationLeft 3s linear infinite normal}.loader-right[_ngcontent-%COMP%]{position:absolute;top:0;left:17px;height:41px;width:11px;box-shadow:inset 0 -41px gray;animation:fillAnimationRight 3s linear infinite normal}.loader-bottom[_ngcontent-%COMP%]{position:relative;top:-11px;left:0px;height:11px;width:28px;box-shadow:inset 28px 0 gray;animation:fillAnimationBottom 3s linear infinite normal}.loader-top[_ngcontent-%COMP%]{position:absolute;top:0px;left:0px;height:11px;width:28px;content:"";box-shadow:inset -28px 0 gray;animation:fillAnimationTop 3s linear infinite normal}.loaderContainerLeft[_ngcontent-%COMP%], .loaderContainerRight[_ngcontent-%COMP%]{height:41px;width:28px;overflow:hidden;position:absolute;display:inline-block}.loaderContainerLeft[_ngcontent-%COMP%]{left:calc(50% - 7px)}.loaderContainerRight[_ngcontent-%COMP%]{left:calc(50% + 7px)}#loadingFiller[_ngcontent-%COMP%]{height:calc(50% - 20.5px)}#shadowBox[_ngcontent-%COMP%]{display:none}@keyframes fillAnimationLeft{0%{box-shadow:inset 0 0 gray;top:0}20%{box-shadow:inset 0 41px gray;top:0}40%{box-shadow:inset 0 41px gray;top:0}60%{box-shadow:inset 0 28px gray;top:41px}80%{box-shadow:inset 0 28px gray;top:41px}to{box-shadow:inset 0 28px gray;top:41px}}@keyframes fillAnimationRight{0%{box-shadow:inset 0 0 gray;top:0}20%{box-shadow:inset 0 -41px gray;top:0}40%{box-shadow:inset 0 -41px gray;top:0}60%{box-shadow:inset 0 -28px gray;top:-41px}80%{box-shadow:inset 0 -28px gray;top:-41px}to{box-shadow:inset 0 -28px gray;top:-41px}}@keyframes fillAnimationBottom{0%{box-shadow:inset 0 0 gray;left:0px}20%{box-shadow:inset 0 0 gray;left:11px}40%{box-shadow:inset 28px 0 gray;left:11px}41%{box-shadow:inset 28px 0 gray;left:0px}59%{box-shadow:inset 28px 0 gray;left:0px}75%{box-shadow:inset 28px 0 gray;left:28px}to{box-shadow:inset 28px 0 gray;left:28px}}@keyframes fillAnimationTop{0%{box-shadow:inset 0 0 gray;left:0px}20%{box-shadow:inset 0 0 gray;left:-11px}40%{box-shadow:inset -28px 0 gray;left:-11px}41%{box-shadow:inset -28px 0 gray;left:0px}59%{box-shadow:inset -28px 0 gray;left:0px}75%{box-shadow:inset -28px 0 gray;left:-28px}to{box-shadow:inset -28px 0 gray;left:-28px}}']}),n})();function Tk(n){return new Te(3e3,!1)}function IZ(){return typeof window<"u"&&typeof window.document<"u"}function zC(){return typeof process<"u"&&"[object process]"==={}.toString.call(process)}function wa(n){switch(n.length){case 0:return new vd;case 1:return n[0];default:return new A1(n)}}function xk(n,t,e,i,r=new Map,o=new Map){const s=[],a=[];let l=-1,c=null;if(i.forEach(u=>{const d=u.get("offset"),h=d==l,m=h&&c||new Map;u.forEach((y,A)=>{let U=A,te=y;if("offset"!==A)switch(U=t.normalizePropertyName(U,s),te){case"!":te=r.get(A);break;case Os:te=o.get(A);break;default:te=t.normalizeStyleValue(A,U,te,s)}m.set(U,te)}),h||a.push(m),c=m,l=d}),s.length)throw function _Z(n){return new Te(3502,!1)}();return a}function GC(n,t,e,i){switch(t){case"start":n.onStart(()=>i(e&&WC(e,"start",n)));break;case"done":n.onDone(()=>i(e&&WC(e,"done",n)));break;case"destroy":n.onDestroy(()=>i(e&&WC(e,"destroy",n)))}}function WC(n,t,e){const o=$C(n.element,n.triggerName,n.fromState,n.toState,t||n.phaseName,e.totalTime??n.totalTime,!!e.disabled),s=n._data;return null!=s&&(o._data=s),o}function $C(n,t,e,i,r="",o=0,s){return{element:n,triggerName:t,fromState:e,toState:i,phaseName:r,totalTime:o,disabled:!!s}}function Pr(n,t,e){let i=n.get(t);return i||n.set(t,i=e),i}function Ik(n){const t=n.indexOf(":");return[n.substring(1,t),n.slice(t+1)]}let KC=(n,t)=>!1,Mk=(n,t,e)=>[],kk=null;function YC(n){const t=n.parentNode||n.host;return t===kk?null:t}(zC()||typeof Element<"u")&&(IZ()?(kk=(()=>document.documentElement)(),KC=(n,t)=>{for(;t;){if(t===n)return!0;t=YC(t)}return!1}):KC=(n,t)=>n.contains(t),Mk=(n,t,e)=>{if(e)return Array.from(n.querySelectorAll(t));const i=n.querySelector(t);return i?[i]:[]});let _l=null,Rk=!1;const Ok=KC,Pk=Mk;let Lk=(()=>{class n{validateStyleProperty(e){return function kZ(n){_l||(_l=function RZ(){return typeof document<"u"?document.body:null}()||{},Rk=!!_l.style&&"WebkitAppearance"in _l.style);let t=!0;return _l.style&&!function MZ(n){return"ebkit"==n.substring(1,6)}(n)&&(t=n in _l.style,!t&&Rk&&(t="Webkit"+n.charAt(0).toUpperCase()+n.slice(1)in _l.style)),t}(e)}matchesElement(e,i){return!1}containsElement(e,i){return Ok(e,i)}getParentElement(e){return YC(e)}query(e,i,r){return Pk(e,i,r)}computeStyle(e,i,r){return r||""}animate(e,i,r,o,s,a=[],l){return new vd(r,o)}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=ge({token:n,factory:n.\u0275fac}),n})(),QC=(()=>{class n{}return n.NOOP=new Lk,n})();const JC="ng-enter",Ym="ng-leave",Qm="ng-trigger",Jm=".ng-trigger",Fk="ng-animating",ZC=".ng-animating";function Ea(n){if("number"==typeof n)return n;const t=n.match(/^(-?[\.\d]+)(m?s)/);return!t||t.length<2?0:XC(parseFloat(t[1]),t[2])}function XC(n,t){return"s"===t?1e3*n:n}function Zm(n,t,e){return n.hasOwnProperty("duration")?n:function LZ(n,t,e){let r,o=0,s="";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(Tk()),{duration:0,delay:0,easing:""};r=XC(parseFloat(a[1]),a[2]);const l=a[3];null!=l&&(o=XC(parseFloat(l),a[4]));const c=a[5];c&&(s=c)}else r=n;if(!e){let a=!1,l=t.length;r<0&&(t.push(function YJ(){return new Te(3100,!1)}()),a=!0),o<0&&(t.push(function QJ(){return new Te(3101,!1)}()),a=!0),a&&t.splice(l,0,Tk())}return{duration:r,delay:o,easing:s}}(n,t,e)}function hh(n,t={}){return Object.keys(n).forEach(e=>{t[e]=n[e]}),t}function Bk(n){const t=new Map;return Object.keys(n).forEach(e=>{t.set(e,n[e])}),t}function Da(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 Hk(n,t,e){return e?t+":"+e+";":""}function Vk(n){let t="";for(let e=0;e{const o=tw(r);e&&!e.has(r)&&e.set(r,n.style[o]),n.style[o]=i}),zC()&&Vk(n))}function vl(n,t){n.style&&(t.forEach((e,i)=>{const r=tw(i);n.style[r]=""}),zC()&&Vk(n))}function ph(n){return Array.isArray(n)?1==n.length?n[0]:D1(n):n}const ew=new RegExp("{{\\s*(.+?)\\s*}}","g");function Uk(n){let t=[];if("string"==typeof n){let e;for(;e=ew.exec(n);)t.push(e[1]);ew.lastIndex=0}return t}function Xm(n,t,e){const i=n.toString(),r=i.replace(ew,(o,s)=>{let a=t[s];return null==a&&(e.push(function ZJ(n){return new Te(3003,!1)}()),a=""),a.toString()});return r==i?n:r}function eg(n){const t=[];let e=n.next();for(;!e.done;)t.push(e.value),e=n.next();return t}const BZ=/-+([a-z0-9])/g;function tw(n){return n.replace(BZ,(...t)=>t[1].toUpperCase())}function jZ(n){return n.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}function Lr(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 XJ(n){return new Te(3004,!1)}()}}function qk(n,t){return window.getComputedStyle(n)[t]}function GZ(n,t){const e=[];return"string"==typeof n?n.split(/\s*,\s*/).forEach(i=>function WZ(n,t,e){if(":"==n[0]){const l=function $Z(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) *"}}(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 hZ(n){return new Te(3015,!1)}()),t;const r=i[1],o=i[2],s=i[3];t.push(zk(r,s));"<"==o[0]&&!("*"==r&&"*"==s)&&t.push(zk(s,r))}(i,e,t)):e.push(n),e}const rg=new Set(["true","1"]),og=new Set(["false","0"]);function zk(n,t){const e=rg.has(n)||og.has(n),i=rg.has(t)||og.has(t);return(r,o)=>{let s="*"==n||n==r,a="*"==t||t==o;return!s&&e&&"boolean"==typeof r&&(s=r?rg.has(n):og.has(n)),!a&&i&&"boolean"==typeof o&&(a=o?rg.has(t):og.has(t)),s&&a}}const KZ=new RegExp("s*:selfs*,?","g");function nw(n,t,e,i){return new YZ(n).build(t,e,i)}class YZ{constructor(t){this._driver=t}build(t,e,i){const r=new ZZ(e);return this._resetContextStyleTimingState(r),Lr(this,ph(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 o=[],s=[];return"@"==t.name.charAt(0)&&e.errors.push(function tZ(){return new Te(3006,!1)}()),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,o.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,s.push(l)}else e.errors.push(function nZ(){return new Te(3007,!1)}())}),{type:7,name:t.name,states:o,transitions:s,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 o=new Set,s=r||{};i.styles.forEach(a=>{a instanceof Map&&a.forEach(l=>{Uk(l).forEach(c=>{s.hasOwnProperty(c)||o.add(c)})})}),o.size&&(eg(o.values()),e.errors.push(function iZ(n,t){return new Te(3008,!1)}()))}return{type:0,name:t.name,style:i,options:r?{params:r}:null}}visitTransition(t,e){e.queryCount=0,e.depCount=0;const i=Lr(this,ph(t.animation),e);return{type:1,matchers:GZ(t.expr,e.errors),animation:i,queryCount:e.queryCount,depCount:e.depCount,options:yl(t.options)}}visitSequence(t,e){return{type:2,steps:t.steps.map(i=>Lr(this,i,e)),options:yl(t.options)}}visitGroup(t,e){const i=e.currentTime;let r=0;const o=t.steps.map(s=>{e.currentTime=i;const a=Lr(this,s,e);return r=Math.max(r,e.currentTime),a});return e.currentTime=r,{type:3,steps:o,options:yl(t.options)}}visitAnimate(t,e){const i=function eX(n,t){if(n.hasOwnProperty("duration"))return n;if("number"==typeof n)return iw(Zm(n,t).duration,0,"");const e=n;if(e.split(/\s+/).some(o=>"{"==o.charAt(0)&&"{"==o.charAt(1))){const o=iw(0,0,"");return o.dynamic=!0,o.strValue=e,o}const r=Zm(e,t);return iw(r.duration,r.delay,r.easing)}(t.timings,e.errors);e.currentAnimateTimings=i;let r,o=t.styles?t.styles:qt({});if(5==o.type)r=this.visitKeyframes(o,e);else{let s=t.styles,a=!1;if(!s){a=!0;const c={};i.easing&&(c.easing=i.easing),s=qt(c)}e.currentTime+=i.duration+i.delay;const l=this.visitStyle(s,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===Os?i.push(a):e.errors.push(new Te(3002,!1)):i.push(Bk(a));let o=!1,s=null;return i.forEach(a=>{if(a instanceof Map&&(a.has("easing")&&(s=a.get("easing"),a.delete("easing")),!o))for(let l of a.values())if(l.toString().indexOf("{{")>=0){o=!0;break}}),{type:6,styles:i,easing:s,offset:t.offset,containsDynamicStyles:o,options:null}}_validateStyleAst(t,e){const i=e.currentAnimateTimings;let r=e.currentTime,o=e.currentTime;i&&o>0&&(o-=i.duration+i.delay),t.styles.forEach(s=>{"string"!=typeof s&&s.forEach((a,l)=>{const c=e.collectedStyles.get(e.currentQuerySelector),u=c.get(l);let d=!0;u&&(o!=r&&o>=u.startTime&&r<=u.endTime&&(e.errors.push(function oZ(n,t,e,i,r){return new Te(3010,!1)}()),d=!1),o=u.startTime),d&&c.set(l,{startTime:o,endTime:r}),e.options&&function FZ(n,t,e){const i=t.params||{},r=Uk(n);r.length&&r.forEach(o=>{i.hasOwnProperty(o)||e.push(function JJ(n){return new Te(3001,!1)}())})}(a,e.options,e.errors)})})}visitKeyframes(t,e){const i={type:5,styles:[],options:null};if(!e.currentAnimateTimings)return e.errors.push(function sZ(){return new Te(3011,!1)}()),i;let o=0;const s=[];let a=!1,l=!1,c=0;const u=t.steps.map(te=>{const Ee=this._makeStyleAst(te,e);let ne=null!=Ee.offset?Ee.offset:function XZ(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}(Ee.styles),Me=0;return null!=ne&&(o++,Me=Ee.offset=ne),l=l||Me<0||Me>1,a=a||Me0&&o{const ne=h>0?Ee==m?1:h*Ee:s[Ee],Me=ne*U;e.currentTime=y+A.delay+Me,A.duration=Me,this._validateStyleAst(te,e),te.offset=ne,i.styles.push(te)}),i}visitReference(t,e){return{type:8,animation:Lr(this,ph(t.animation),e),options:yl(t.options)}}visitAnimateChild(t,e){return e.depCount++,{type:9,options:yl(t.options)}}visitAnimateRef(t,e){return{type:10,animation:this.visitReference(t.animation,e),options:yl(t.options)}}visitQuery(t,e){const i=e.currentQuerySelector,r=t.options||{};e.queryCount++,e.currentQuery=t;const[o,s]=function QZ(n){const t=!!n.split(/\s*,\s*/).find(e=>":self"==e);return t&&(n=n.replace(KZ,"")),n=n.replace(/@\*/g,Jm).replace(/@\w+/g,e=>Jm+"-"+e.slice(1)).replace(/:animating/g,ZC),[n,t]}(t.selector);e.currentQuerySelector=i.length?i+" "+o:o,Pr(e.collectedStyles,e.currentQuerySelector,new Map);const a=Lr(this,ph(t.animation),e);return e.currentQuery=null,e.currentQuerySelector=i,{type:11,selector:o,limit:r.limit||0,optional:!!r.optional,includeSelf:s,animation:a,originalSelector:t.selector,options:yl(t.options)}}visitStagger(t,e){e.currentQuery||e.errors.push(function uZ(){return new Te(3013,!1)}());const i="full"===t.timings?{duration:0,delay:0,easing:"full"}:Zm(t.timings,e.errors,!0);return{type:12,animation:Lr(this,ph(t.animation),e),timings:i,options:null}}}class ZZ{constructor(t){this.errors=t,this.queryCount=0,this.depCount=0,this.currentTransition=null,this.currentQuery=null,this.currentQuerySelector=null,this.currentAnimateTimings=null,this.currentTime=0,this.collectedStyles=new Map,this.options=null,this.unsupportedCSSPropertiesFound=new Set}}function yl(n){return n?(n=hh(n)).params&&(n.params=function JZ(n){return n?hh(n):null}(n.params)):n={},n}function iw(n,t,e){return{duration:n,delay:t,easing:e}}function rw(n,t,e,i,r,o,s=null,a=!1){return{type:1,element:n,keyframes:t,preStyleProps:e,postStyleProps:i,duration:r,delay:o,totalTime:r+o,easing:s,subTimeline:a}}class sg{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 iX=new RegExp(":enter","g"),oX=new RegExp(":leave","g");function ow(n,t,e,i,r,o=new Map,s=new Map,a,l,c=[]){return(new sX).buildKeyframes(n,t,e,i,r,o,s,a,l,c)}class sX{buildKeyframes(t,e,i,r,o,s,a,l,c,u=[]){c=c||new sg;const d=new sw(t,e,c,r,o,u,[]);d.options=l;const h=l.delay?Ea(l.delay):0;d.currentTimeline.delayNextStep(h),d.currentTimeline.setStyles([s],null,d.errors,l),Lr(this,i,d);const m=d.timelines.filter(y=>y.containsAnimation());if(m.length&&a.size){let y;for(let A=m.length-1;A>=0;A--){const U=m[A];if(U.element===e){y=U;break}}y&&!y.allowOnlyTimelineStyles()&&y.setStyles([a],null,d.errors,l)}return m.length?m.map(y=>y.buildKeyframes()):[rw(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),o=e.currentTimeline.currentTime,s=this._visitSubInstructions(i,r,r.options);o!=s&&e.transformIntoNewTimeline(s)}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 o=e.currentTimeline.currentTime;const s=null!=i.duration?Ea(i.duration):null,a=null!=i.delay?Ea(i.delay):null;return 0!==s&&t.forEach(l=>{const c=e.appendInstructionToTimeline(l,s,a);o=Math.max(o,c.duration+c.delay)}),o}visitReference(t,e){e.updateOptions(t.options,!0),Lr(this,t.animation,e),e.previousNode=t}visitSequence(t,e){const i=e.subContextCount;let r=e;const o=t.options;if(o&&(o.params||o.delay)&&(r=e.createSubContext(o),r.transformIntoNewTimeline(),null!=o.delay)){6==r.previousNode.type&&(r.currentTimeline.snapshotCurrentStyles(),r.previousNode=ag);const s=Ea(o.delay);r.delayNextStep(s)}t.steps.length&&(t.steps.forEach(s=>Lr(this,s,r)),r.currentTimeline.applyStylesToKeyframe(),r.subContextCount>i&&r.transformIntoNewTimeline()),e.previousNode=t}visitGroup(t,e){const i=[];let r=e.currentTimeline.currentTime;const o=t.options&&t.options.delay?Ea(t.options.delay):0;t.steps.forEach(s=>{const a=e.createSubContext(t.options);o&&a.delayNextStep(o),Lr(this,s,a),r=Math.max(r,a.currentTimeline.currentTime),i.push(a.currentTimeline)}),i.forEach(s=>e.currentTimeline.mergeTimelineCollectedStyles(s)),e.transformIntoNewTimeline(r),e.previousNode=t}_visitTiming(t,e){if(t.dynamic){const i=t.strValue;return Zm(e.params?Xm(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 o=t.style;5==o.type?this.visitKeyframes(o,e):(e.incrementTime(i.duration),this.visitStyle(o,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 o=r&&r.easing||t.easing;t.isEmptyStep?i.applyEmptyStep(o):i.setStyles(t.styles,o,e.errors,e.options),e.previousNode=t}visitKeyframes(t,e){const i=e.currentAnimateTimings,r=e.currentTimeline.duration,o=i.duration,a=e.createSubContext().currentTimeline;a.easing=i.easing,t.styles.forEach(l=>{a.forwardTime((l.offset||0)*o),a.setStyles(l.styles,l.easing,e.errors,e.options),a.applyStylesToKeyframe()}),e.currentTimeline.mergeTimelineCollectedStyles(a),e.transformIntoNewTimeline(r+o),e.previousNode=t}visitQuery(t,e){const i=e.currentTimeline.currentTime,r=t.options||{},o=r.delay?Ea(r.delay):0;o&&(6===e.previousNode.type||0==i&&e.currentTimeline.hasCurrentStyleProperties())&&(e.currentTimeline.snapshotCurrentStyles(),e.previousNode=ag);let s=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);o&&d.delayNextStep(o),c===e.element&&(l=d.currentTimeline),Lr(this,t.animation,d),d.currentTimeline.applyStylesToKeyframe(),s=Math.max(s,d.currentTimeline.currentTime)}),e.currentQueryIndex=0,e.currentQueryTotal=0,e.transformIntoNewTimeline(s),l&&(e.currentTimeline.mergeTimelineCollectedStyles(l),e.currentTimeline.snapshotCurrentStyles()),e.previousNode=t}visitStagger(t,e){const i=e.parentContext,r=e.currentTimeline,o=t.timings,s=Math.abs(o.duration),a=s*(e.currentQueryTotal-1);let l=s*e.currentQueryIndex;switch(o.duration<0?"reverse":o.easing){case"reverse":l=a-l;break;case"full":l=i.currentStaggerTime}const u=e.currentTimeline;l&&u.delayNextStep(l);const d=u.currentTime;Lr(this,t.animation,e),e.previousNode=t,i.currentStaggerTime=r.currentTime-d+(r.startTime-i.currentTimeline.startTime)}}const ag={};class sw{constructor(t,e,i,r,o,s,a,l){this._driver=t,this.element=e,this.subInstructions=i,this._enterClassName=r,this._leaveClassName=o,this.errors=s,this.timelines=a,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=ag,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=l||new lg(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=Ea(i.duration)),null!=i.delay&&(r.delay=Ea(i.delay));const o=i.params;if(o){let s=r.params;s||(s=this.options.params={}),Object.keys(o).forEach(a=>{(!e||!s.hasOwnProperty(a))&&(s[a]=Xm(o[a],s,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,o=new sw(this._driver,r,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(r,i||0));return o.previousNode=this.previousNode,o.currentAnimateTimings=this.currentAnimateTimings,o.options=this._copyOptions(),o.updateOptions(t),o.currentQueryIndex=this.currentQueryIndex,o.currentQueryTotal=this.currentQueryTotal,o.parentContext=this,this.subContextCount++,o}transformIntoNewTimeline(t){return this.previousNode=ag,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:""},o=new aX(this._driver,t.element,t.keyframes,t.preStyleProps,t.postStyleProps,r,t.stretchStartingKeyframe);return this.timelines.push(o),r}incrementTime(t){this.currentTimeline.forwardTime(this.currentTimeline.duration+t)}delayNextStep(t){t>0&&this.currentTimeline.delayNextStep(t)}invokeQuery(t,e,i,r,o,s){let a=[];if(r&&a.push(this.element),t.length>0){t=(t=t.replace(iX,"."+this._enterClassName)).replace(oX,"."+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!o&&0==a.length&&s.push(function dZ(n){return new Te(3014,!1)}()),a}}class lg{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 lg(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||Os),this._currentKeyframe.set(e,Os);this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(t,e,i,r){e&&this._previousKeyframe.set("easing",e);const o=r&&r.params||{},s=function lX(n,t){const e=new Map;let i;return n.forEach(r=>{if("*"===r){i=i||t.keys();for(let o of i)e.set(o,Os)}else Da(r,e)}),e}(t,this._globalTimelineStyles);for(let[a,l]of s){const c=Xm(l,o,i);this._pendingStyles.set(a,c),this._localTimelineStyles.has(a)||this._backFill.set(a,this._globalTimelineStyles.get(a)??Os),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=Da(a,new Map,this._backFill);c.forEach((u,d)=>{"!"===u?t.add(d):u===Os&&e.add(d)}),i||c.set("offset",l/this.duration),r.push(c)});const o=t.size?eg(t.values()):[],s=e.size?eg(e.values()):[];if(i){const a=r[0],l=new Map(a);a.set("offset",0),l.set("offset",1),r=[a,l]}return rw(this.element,r,o,s,this.duration,this.startTime,this.easing,!1)}}class aX extends lg{constructor(t,e,i,r,o,s,a=!1){super(t,e,s.delay),this.keyframes=i,this.preStyleProps=r,this.postStyleProps=o,this._stretchStartingKeyframe=a,this.timings={duration:s.duration,delay:s.delay,easing:s.easing}}containsAnimation(){return this.keyframes.length>1}buildKeyframes(){let t=this.keyframes,{delay:e,duration:i,easing:r}=this.timings;if(this._stretchStartingKeyframe&&e){const o=[],s=i+e,a=e/s,l=Da(t[0]);l.set("offset",0),o.push(l);const c=Da(t[0]);c.set("offset",$k(a)),o.push(c);const u=t.length-1;for(let d=1;d<=u;d++){let h=Da(t[d]);const m=h.get("offset");h.set("offset",$k((e+m*i)/s)),o.push(h)}i=s,e=0,r="",t=o}return rw(this.element,t,this.preStyleProps,this.postStyleProps,i,e,r,!0)}}function $k(n,t=3){const e=Math.pow(10,t-1);return Math.round(n*e)/e}class aw{}const cX=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 uX extends aw{normalizePropertyName(t,e){return tw(t)}normalizeStyleValue(t,e,i,r){let o="";const s=i.toString().trim();if(cX.has(e)&&0!==i&&"0"!==i)if("number"==typeof i)o="px";else{const a=i.match(/^[+-]?[\d\.]+([a-z]*)$/);a&&0==a[1].length&&r.push(function eZ(n,t){return new Te(3005,!1)}())}return s+o}}function Kk(n,t,e,i,r,o,s,a,l,c,u,d,h){return{type:0,element:n,triggerName:t,isRemovalTransition:r,fromState:e,fromStyles:o,toState:i,toStyles:s,timelines:a,queriedElements:l,preStyleProps:c,postStyleProps:u,totalTime:d,errors:h}}const lw={};class Yk{constructor(t,e,i){this._triggerName=t,this.ast=e,this._stateStyles=i}match(t,e,i,r){return function dX(n,t,e,i,r){return n.some(o=>o(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,o,s,a,l,c,u){const d=[],h=this.ast.options&&this.ast.options.params||lw,y=this.buildStyles(i,a&&a.params||lw,d),A=l&&l.params||lw,U=this.buildStyles(r,A,d),te=new Set,Ee=new Map,ne=new Map,Me="void"===r,at={params:hX(A,h),delay:this.ast.options?.delay},Dt=u?[]:ow(t,e,this.ast.animation,o,s,y,U,at,c,d);let rn=0;if(Dt.forEach(tr=>{rn=Math.max(tr.duration+tr.delay,rn)}),d.length)return Kk(e,this._triggerName,i,r,Me,y,U,[],[],Ee,ne,rn,d);Dt.forEach(tr=>{const gi=tr.element,Aa=Pr(Ee,gi,new Set);tr.preStyleProps.forEach(Mo=>Aa.add(Mo));const Ys=Pr(ne,gi,new Set);tr.postStyleProps.forEach(Mo=>Ys.add(Mo)),gi!==e&&te.add(gi)});const Cn=eg(te.values());return Kk(e,this._triggerName,i,r,Me,y,U,Dt,Cn,Ee,ne,rn)}}function hX(n,t){const e=hh(t);for(const i in n)n.hasOwnProperty(i)&&null!=n[i]&&(e[i]=n[i]);return e}class pX{constructor(t,e,i){this.styles=t,this.defaultParams=e,this.normalizer=i}buildStyles(t,e){const i=new Map,r=hh(this.defaultParams);return Object.keys(t).forEach(o=>{const s=t[o];null!==s&&(r[o]=s)}),this.styles.styles.forEach(o=>{"string"!=typeof o&&o.forEach((s,a)=>{s&&(s=Xm(s,r,e));const l=this.normalizer.normalizePropertyName(a,e);s=this.normalizer.normalizeStyleValue(a,l,s,e),i.set(l,s)})}),i}}class mX{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 pX(r.style,r.options&&r.options.params||{},i))}),Qk(this.states,"true","1"),Qk(this.states,"false","0"),e.transitions.forEach(r=>{this.transitionFactories.push(new Yk(t,r,this.states))}),this.fallbackTransition=function gX(n,t,e){return new Yk(n,{type:1,animation:{type:2,steps:[],options:null},matchers:[(s,a)=>!0],options:null,queryCount:0,depCount:0},t)}(t,this.states)}get containsQueries(){return this.ast.queryCount>0}matchTransition(t,e,i,r){return this.transitionFactories.find(s=>s.match(t,e,i,r))||null}matchStyles(t,e,i){return this.fallbackTransition.buildStyles(t,e,i)}}function Qk(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 _X=new sg;class vX{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=[],o=nw(this._driver,e,i,[]);if(i.length)throw function vZ(n){return new Te(3503,!1)}();this._animations.set(t,o)}_buildPlayer(t,e,i){const r=t.element,o=xk(0,this._normalizer,0,t.keyframes,e,i);return this._driver.animate(r,o,t.duration,t.delay,t.easing,[],!0)}create(t,e,i={}){const r=[],o=this._animations.get(t);let s;const a=new Map;if(o?(s=ow(this._driver,e,o,JC,Ym,new Map,new Map,i,_X,r),s.forEach(u=>{const d=Pr(a,u.element,new Map);u.postStyleProps.forEach(h=>d.set(h,null))})):(r.push(function yZ(){return new Te(3300,!1)}()),s=[]),r.length)throw function bZ(n){return new Te(3504,!1)}();a.forEach((u,d)=>{u.forEach((h,m)=>{u.set(m,this._driver.computeStyle(d,m,Os))})});const c=wa(s.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 CZ(n){return new Te(3301,!1)}();return e}listen(t,e,i,r){const o=$C(e,"","","");return GC(this._getPlayer(t),i,o,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 o=this._getPlayer(t);switch(i){case"play":o.play();break;case"pause":o.pause();break;case"reset":o.reset();break;case"restart":o.restart();break;case"finish":o.finish();break;case"init":o.init();break;case"setPosition":o.setPosition(parseFloat(r[0]));break;case"destroy":this.destroy(t)}}}const Jk="ng-animate-queued",cw="ng-animate-disabled",EX=[],Zk={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},DX={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},no="__ng_removed";class uw{constructor(t,e=""){this.namespaceId=e;const i=t&&t.hasOwnProperty("value");if(this.value=function xX(n){return n??null}(i?t.value:t),i){const o=hh(t);delete o.value,this.options=o}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 fh="void",dw=new uw(fh);class SX{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,io(e,this._hostClassName)}listen(t,e,i,r){if(!this._triggers.has(e))throw function wZ(n,t){return new Te(3302,!1)}();if(null==i||0==i.length)throw function EZ(n){return new Te(3303,!1)}();if(!function IX(n){return"start"==n||"done"==n}(i))throw function DZ(n,t){return new Te(3400,!1)}();const o=Pr(this._elementListeners,t,[]),s={name:e,phase:i,callback:r};o.push(s);const a=Pr(this._engine.statesByElement,t,new Map);return a.has(e)||(io(t,Qm),io(t,Qm+"-"+e),a.set(e,dw)),()=>{this._engine.afterFlush(()=>{const l=o.indexOf(s);l>=0&&o.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 SZ(n){return new Te(3401,!1)}();return e}trigger(t,e,i,r=!0){const o=this._getTrigger(e),s=new hw(this.id,e,t);let a=this._engine.statesByElement.get(t);a||(io(t,Qm),io(t,Qm+"-"+e),this._engine.statesByElement.set(t,a=new Map));let l=a.get(e);const c=new uw(i,this.id);if(!(i&&i.hasOwnProperty("value"))&&l&&c.absorbOptions(l.options),a.set(e,c),l||(l=dw),c.value!==fh&&l.value===c.value){if(!function RX(n,t){const e=Object.keys(n),i=Object.keys(t);if(e.length!=i.length)return!1;for(let r=0;r{vl(t,U),rs(t,te)})}return}const h=Pr(this._engine.playersByElement,t,[]);h.forEach(A=>{A.namespaceId==this.id&&A.triggerName==e&&A.queued&&A.destroy()});let m=o.matchTransition(l.value,c.value,t,c.params),y=!1;if(!m){if(!r)return;m=o.fallbackTransition,y=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:t,triggerName:e,transition:m,fromState:l,toState:c,player:s,isFallbackTransition:y}),y||(io(t,Jk),s.onStart(()=>{ru(t,Jk)})),s.onDone(()=>{let A=this.players.indexOf(s);A>=0&&this.players.splice(A,1);const U=this._engine.playersByElement.get(t);if(U){let te=U.indexOf(s);te>=0&&U.splice(te,1)}}),this.players.push(s),h.push(s),s}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,Jm,!0);i.forEach(r=>{if(r[no])return;const o=this._engine.fetchNamespacesByElement(r);o.size?o.forEach(s=>s.triggerLeaveAnimation(r,e,!1,!0)):this.clearElementCache(r)}),this._engine.afterFlushAnimationsDone(()=>i.forEach(r=>this.clearElementCache(r)))}triggerLeaveAnimation(t,e,i,r){const o=this._engine.statesByElement.get(t),s=new Map;if(o){const a=[];if(o.forEach((l,c)=>{if(s.set(c,l.value),this._triggers.has(c)){const u=this.trigger(t,c,fh,r);u&&a.push(u)}}),a.length)return this._engine.markElementAsRemoved(this.id,t,!0,e,s),i&&wa(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(o=>{const s=o.name;if(r.has(s))return;r.add(s);const l=this._triggers.get(s).fallbackTransition,c=i.get(s)||dw,u=new uw(fh),d=new hw(this.id,s,t);this._engine.totalQueuedPlayers++,this._queue.push({element:t,triggerName:s,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 o=i.players.length?i.playersByQueriedElement.get(t):[];if(o&&o.length)r=!0;else{let s=t;for(;s=s.parentNode;)if(i.statesByElement.get(s)){r=!0;break}}}if(this.prepareLeaveAnimationListeners(t),r)i.markElementAsRemoved(this.id,t,!1,e);else{const o=t[no];(!o||o===Zk)&&(i.afterFlush(()=>this.clearElementCache(t)),i.destroyInnerAnimations(t),i._onRemovalComplete(t,e))}}insertNode(t,e){io(t,this._hostClassName)}drainQueuedTransitions(t){const e=[];return this._queue.forEach(i=>{const r=i.player;if(r.destroyed)return;const o=i.element,s=this._elementListeners.get(o);s&&s.forEach(a=>{if(a.name==i.triggerName){const l=$C(o,i.triggerName,i.fromState.value,i.toState.value);l._data=t,GC(i.player,a.phase,l,a.callback)}}),r.markedForDestroy?this._engine.afterFlush(()=>{r.destroy()}):e.push(i)}),this._queue=[],e.sort((i,r)=>{const o=i.transition.ast.depCount,s=r.transition.ast.depCount;return 0==o||0==s?o-s: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 AX{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,o)=>{}}_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 SX(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 s=!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),s=!0;break}a=this.driver.getParentElement(a)}s||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 o=this._fetchNamespace(r.namespaceId);o&&e.add(o)}return e}trigger(t,e,i,r){if(cg(e)){const o=this._fetchNamespace(t);if(o)return o.trigger(e,i,r),!0}return!1}insertNode(t,e,i,r){if(!cg(e))return;const o=e[no];if(o&&o.setForRemoval){o.setForRemoval=!1,o.setForMove=!0;const s=this.collectedLeaveElements.indexOf(e);s>=0&&this.collectedLeaveElements.splice(s,1)}if(t){const s=this._fetchNamespace(t);s&&s.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),io(t,cw)):this.disabledNodes.has(t)&&(this.disabledNodes.delete(t),ru(t,cw))}removeNode(t,e,i,r){if(cg(e)){const o=t?this._fetchNamespace(t):null;if(o?o.removeNode(e,r):this.markElementAsRemoved(t,e,!1,r),i){const s=this.namespacesByHostElement.get(e);s&&s.id!==t&&s.removeNode(e,r)}}else this._onRemovalComplete(e,r)}markElementAsRemoved(t,e,i,r,o){this.collectedLeaveElements.push(e),e[no]={namespaceId:t,setForRemoval:r,hasAnimation:i,removedBeforeQueried:!1,previousTriggersValues:o}}listen(t,e,i,r,o){return cg(e)?this._fetchNamespace(t).listen(e,i,r,o):()=>{}}_buildInstruction(t,e,i,r,o){return t.transition.build(this.driver,t.element,t.fromState.value,t.toState.value,i,r,t.fromState.options,t.toState.options,e,o)}destroyInnerAnimations(t){let e=this.driver.query(t,Jm,!0);e.forEach(i=>this.destroyActiveAnimationsForElement(i)),0!=this.playersByQueriedElement.size&&(e=this.driver.query(t,ZC,!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 wa(this.players).onDone(()=>t());t()})}processLeaveNode(t){const e=t[no];if(e&&e.setForRemoval){if(t[no]=Zk,e.namespaceId){this.destroyInnerAnimations(t);const i=this._fetchNamespace(e.namespaceId);i&&i.clearElementCache(t)}this._onRemovalComplete(t,e.setForRemoval)}t.classList?.contains(cw)&&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;ii()),this._flushFns=[],this._whenQuietFns.length){const i=this._whenQuietFns;this._whenQuietFns=[],e.length?wa(e).onDone(()=>{i.forEach(r=>r())}):i.forEach(r=>r())}}reportError(t){throw function AZ(n){return new Te(3402,!1)}()}_flushAnimations(t,e){const i=new sg,r=[],o=new Map,s=[],a=new Map,l=new Map,c=new Map,u=new Set;this.disabledNodes.forEach(tt=>{u.add(tt);const pt=this.driver.query(tt,".ng-animate-queued",!0);for(let wt=0;wt{const wt=JC+A++;y.set(pt,wt),tt.forEach(on=>io(on,wt))});const U=[],te=new Set,Ee=new Set;for(let tt=0;ttte.add(on)):Ee.add(pt))}const ne=new Map,Me=tR(h,Array.from(te));Me.forEach((tt,pt)=>{const wt=Ym+A++;ne.set(pt,wt),tt.forEach(on=>io(on,wt))}),t.push(()=>{m.forEach((tt,pt)=>{const wt=y.get(pt);tt.forEach(on=>ru(on,wt))}),Me.forEach((tt,pt)=>{const wt=ne.get(pt);tt.forEach(on=>ru(on,wt))}),U.forEach(tt=>{this.processLeaveNode(tt)})});const at=[],Dt=[];for(let tt=this._namespaceList.length-1;tt>=0;tt--)this._namespaceList[tt].drainQueuedTransitions(e).forEach(wt=>{const on=wt.player,_i=wt.element;if(at.push(on),this.collectedEnterElements.length){const ji=_i[no];if(ji&&ji.setForMove){if(ji.previousTriggersValues&&ji.previousTriggersValues.has(wt.triggerName)){const Dl=ji.previousTriggersValues.get(wt.triggerName),oo=this.statesByElement.get(wt.element);if(oo&&oo.has(wt.triggerName)){const vg=oo.get(wt.triggerName);vg.value=Dl,oo.set(wt.triggerName,vg)}}return void on.destroy()}}const os=!d||!this.driver.containsElement(d,_i),Nr=ne.get(_i),Ta=y.get(_i),Bn=this._buildInstruction(wt,i,Ta,Nr,os);if(Bn.errors&&Bn.errors.length)return void Dt.push(Bn);if(os)return on.onStart(()=>vl(_i,Bn.fromStyles)),on.onDestroy(()=>rs(_i,Bn.toStyles)),void r.push(on);if(wt.isFallbackTransition)return on.onStart(()=>vl(_i,Bn.fromStyles)),on.onDestroy(()=>rs(_i,Bn.toStyles)),void r.push(on);const sO=[];Bn.timelines.forEach(ji=>{ji.stretchStartingKeyframe=!0,this.disabledNodes.has(ji.element)||sO.push(ji)}),Bn.timelines=sO,i.append(_i,Bn.timelines),s.push({instruction:Bn,player:on,element:_i}),Bn.queriedElements.forEach(ji=>Pr(a,ji,[]).push(on)),Bn.preStyleProps.forEach((ji,Dl)=>{if(ji.size){let oo=l.get(Dl);oo||l.set(Dl,oo=new Set),ji.forEach((vg,Ew)=>oo.add(Ew))}}),Bn.postStyleProps.forEach((ji,Dl)=>{let oo=c.get(Dl);oo||c.set(Dl,oo=new Set),ji.forEach((vg,Ew)=>oo.add(Ew))})});if(Dt.length){const tt=[];Dt.forEach(pt=>{tt.push(function TZ(n,t){return new Te(3505,!1)}())}),at.forEach(pt=>pt.destroy()),this.reportError(tt)}const rn=new Map,Cn=new Map;s.forEach(tt=>{const pt=tt.element;i.has(pt)&&(Cn.set(pt,pt),this._beforeAnimationBuild(tt.player.namespaceId,tt.instruction,rn))}),r.forEach(tt=>{const pt=tt.element;this._getPreviousPlayers(pt,!1,tt.namespaceId,tt.triggerName,null).forEach(on=>{Pr(rn,pt,[]).push(on),on.destroy()})});const tr=U.filter(tt=>iR(tt,l,c)),gi=new Map;eR(gi,this.driver,Ee,c,Os).forEach(tt=>{iR(tt,l,c)&&tr.push(tt)});const Ys=new Map;m.forEach((tt,pt)=>{eR(Ys,this.driver,new Set(tt),l,"!")}),tr.forEach(tt=>{const pt=gi.get(tt),wt=Ys.get(tt);gi.set(tt,new Map([...Array.from(pt?.entries()??[]),...Array.from(wt?.entries()??[])]))});const Mo=[],au=[],lu={};s.forEach(tt=>{const{element:pt,player:wt,instruction:on}=tt;if(i.has(pt)){if(u.has(pt))return wt.onDestroy(()=>rs(pt,on.toStyles)),wt.disabled=!0,wt.overrideTotalTime(on.totalTime),void r.push(wt);let _i=lu;if(Cn.size>1){let Nr=pt;const Ta=[];for(;Nr=Nr.parentNode;){const Bn=Cn.get(Nr);if(Bn){_i=Bn;break}Ta.push(Nr)}Ta.forEach(Bn=>Cn.set(Bn,_i))}const os=this._buildAnimation(wt.namespaceId,on,rn,o,Ys,gi);if(wt.setRealPlayer(os),_i===lu)Mo.push(wt);else{const Nr=this.playersByElement.get(_i);Nr&&Nr.length&&(wt.parentPlayer=wa(Nr)),r.push(wt)}}else vl(pt,on.fromStyles),wt.onDestroy(()=>rs(pt,on.toStyles)),au.push(wt),u.has(pt)&&r.push(wt)}),au.forEach(tt=>{const pt=o.get(tt.element);if(pt&&pt.length){const wt=wa(pt);tt.setRealPlayer(wt)}}),r.forEach(tt=>{tt.parentPlayer?tt.syncPlayerEvents(tt.parentPlayer):tt.destroy()});for(let tt=0;tt!os.destroyed);_i.length?MX(this,pt,_i):this.processLeaveNode(pt)}return U.length=0,Mo.forEach(tt=>{this.players.push(tt),tt.onDone(()=>{tt.destroy();const pt=this.players.indexOf(tt);this.players.splice(pt,1)}),tt.play()}),Mo}elementContainsData(t,e){let i=!1;const r=e[no];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,o){let s=[];if(e){const a=this.playersByQueriedElement.get(t);a&&(s=a)}else{const a=this.playersByElement.get(t);if(a){const l=!o||o==fh;a.forEach(c=>{c.queued||!l&&c.triggerName!=r||s.push(c)})}}return(i||r)&&(s=s.filter(a=>!(i&&i!=a.namespaceId||r&&r!=a.triggerName))),s}_beforeAnimationBuild(t,e,i){const o=e.element,s=e.isRemovalTransition?void 0:t,a=e.isRemovalTransition?void 0:e.triggerName;for(const l of e.timelines){const c=l.element,u=c!==o,d=Pr(i,c,[]);this._getPreviousPlayers(c,u,s,a,e.toState).forEach(m=>{const y=m.getRealPlayer();y.beforeDestroy&&y.beforeDestroy(),m.destroy(),d.push(m)})}vl(o,e.fromStyles)}_buildAnimation(t,e,i,r,o,s){const a=e.triggerName,l=e.element,c=[],u=new Set,d=new Set,h=e.timelines.map(y=>{const A=y.element;u.add(A);const U=A[no];if(U&&U.removedBeforeQueried)return new vd(y.duration,y.delay);const te=A!==l,Ee=function kX(n){const t=[];return nR(n,t),t}((i.get(A)||EX).map(rn=>rn.getRealPlayer())).filter(rn=>!!rn.element&&rn.element===A),ne=o.get(A),Me=s.get(A),at=xk(0,this._normalizer,0,y.keyframes,ne,Me),Dt=this._buildPlayer(y,at,Ee);if(y.subTimeline&&r&&d.add(A),te){const rn=new hw(t,a,A);rn.setRealPlayer(Dt),c.push(rn)}return Dt});c.forEach(y=>{Pr(this.playersByQueriedElement,y.element,[]).push(y),y.onDone(()=>function TX(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,y.element,y))}),u.forEach(y=>io(y,Fk));const m=wa(h);return m.onDestroy(()=>{u.forEach(y=>ru(y,Fk)),rs(l,e.toStyles)}),d.forEach(y=>{Pr(r,y,[]).push(m)}),m}_buildPlayer(t,e,i){return e.length>0?this.driver.animate(t.element,e,t.duration,t.delay,t.easing,i):new vd(t.duration,t.delay)}}class hw{constructor(t,e,i){this.namespaceId=t,this.triggerName=e,this.element=i,this._player=new vd,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=>GC(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){Pr(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 cg(n){return n&&1===n.nodeType}function Xk(n,t){const e=n.style.display;return n.style.display=t??"none",e}function eR(n,t,e,i,r){const o=[];e.forEach(l=>o.push(Xk(l)));const s=[];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[no]=DX,s.push(c))}),n.set(c,u)});let a=0;return e.forEach(l=>Xk(l,o[a++])),s}function tR(n,t){const e=new Map;if(n.forEach(a=>e.set(a,[])),0==t.length)return e;const r=new Set(t),o=new Map;function s(a){if(!a)return 1;let l=o.get(a);if(l)return l;const c=a.parentNode;return l=e.has(c)?c:r.has(c)?1:s(c),o.set(a,l),l}return t.forEach(a=>{const l=s(a);1!==l&&e.get(l).push(a)}),e}function io(n,t){n.classList?.add(t)}function ru(n,t){n.classList?.remove(t)}function MX(n,t,e){wa(e).onDone(()=>n.processLeaveNode(t))}function nR(n,t){for(let e=0;er.add(o)):t.set(n,i),e.delete(n),!0}class ug{constructor(t,e,i){this.bodyNode=t,this._driver=e,this._normalizer=i,this._triggerCache={},this.onRemovalComplete=(r,o)=>{},this._transitionEngine=new AX(t,e,i),this._timelineEngine=new vX(t,e,i),this._transitionEngine.onRemovalComplete=(r,o)=>this.onRemovalComplete(r,o)}registerTrigger(t,e,i,r,o){const s=t+"-"+r;let a=this._triggerCache[s];if(!a){const l=[],u=nw(this._driver,o,l,[]);if(l.length)throw function gZ(n,t){return new Te(3404,!1)}();a=function fX(n,t,e){return new mX(n,t,e)}(r,u,this._normalizer),this._triggerCache[s]=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[o,s]=Ik(i);this._timelineEngine.command(o,e,s,r)}else this._transitionEngine.trigger(t,e,i,r)}listen(t,e,i,r,o){if("@"==i.charAt(0)){const[s,a]=Ik(i);return this._timelineEngine.listen(s,e,a,o)}return this._transitionEngine.listen(t,e,i,r,o)}flush(t=-1){this._transitionEngine.flush(t)}get players(){return this._transitionEngine.players.concat(this._timelineEngine.players)}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}}let PX=(()=>{class n{constructor(e,i,r){this._element=e,this._startStyles=i,this._endStyles=r,this._state=0;let o=n.initialStylesByElement.get(e);o||n.initialStylesByElement.set(e,o=new Map),this._initialStyles=o}start(){this._state<1&&(this._startStyles&&rs(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(rs(this._element,this._initialStyles),this._endStyles&&(rs(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(n.initialStylesByElement.delete(this._element),this._startStyles&&(vl(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(vl(this._element,this._endStyles),this._endStyles=null),rs(this._element,this._initialStyles),this._state=3)}}return n.initialStylesByElement=new WeakMap,n})();function pw(n){let t=null;return n.forEach((e,i)=>{(function LX(n){return"display"===n||"position"===n})(i)&&(t=t||new Map,t.set(i,e))}),t}class rR{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._originalOnDoneFns=[],this._originalOnStartFns=[],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._originalOnStartFns.push(t),this._onStartFns.push(t)}onDone(t){this._originalOnDoneFns.push(t),this._onDoneFns.push(t)}onDestroy(t){this._onDestroyFns.push(t)}play(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(t=>t()),this._onStartFns=[],this._started=!0,this._specialStyles&&this._specialStyles.start()),this.domPlayer.play()}pause(){this.init(),this.domPlayer.pause()}finish(){this.init(),this._specialStyles&&this._specialStyles.finish(),this._onFinish(),this.domPlayer.finish()}reset(){this._resetDomPlayerState(),this._destroyed=!1,this._finished=!1,this._started=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}_resetDomPlayerState(){this.domPlayer&&this.domPlayer.cancel()}restart(){this.reset(),this.play()}hasStarted(){return this._started}destroy(){this._destroyed||(this._destroyed=!0,this._resetDomPlayerState(),this._onFinish(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(t=>t()),this._onDestroyFns=[])}setPosition(t){void 0===this.domPlayer&&this.init(),this.domPlayer.currentTime=t*this.time}getPosition(){return this.domPlayer.currentTime/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:qk(this.element,r))}),this.currentSnapshot=t}triggerCallback(t){const e="start"===t?this._onStartFns:this._onDoneFns;e.forEach(i=>i()),e.length=0}}class NX{validateStyleProperty(t){return!0}validateAnimatableStyleProperty(t){return!0}matchesElement(t,e){return!1}containsElement(t,e){return Ok(t,e)}getParentElement(t){return YC(t)}query(t,e,i){return Pk(t,e,i)}computeStyle(t,e,i){return window.getComputedStyle(t)[e]}animate(t,e,i,r,o,s=[]){const l={duration:i,delay:r,fill:0==r?"both":"forwards"};o&&(l.easing=o);const c=new Map,u=s.filter(m=>m instanceof rR);(function HZ(n,t){return 0===n||0===t})(i,r)&&u.forEach(m=>{m.currentSnapshot.forEach((y,A)=>c.set(A,y))});let d=function NZ(n){return n.length?n[0]instanceof Map?n:n.map(t=>Bk(t)):[]}(e).map(m=>Da(m));d=function VZ(n,t,e){if(e.size&&t.length){let i=t[0],r=[];if(e.forEach((o,s)=>{i.has(s)||r.push(s),i.set(s,o)}),r.length)for(let o=1;os.set(a,qk(n,a)))}}return t}(t,d,c);const h=function OX(n,t){let e=null,i=null;return Array.isArray(t)&&t.length?(e=pw(t[0]),t.length>1&&(i=pw(t[t.length-1]))):t instanceof Map&&(e=pw(t)),e||i?new PX(n,e,i):null}(t,d);return new rR(t,d,l,h)}}let FX=(()=>{class n extends w1{constructor(e,i){super(),this._nextAnimationId=0,this._renderer=e.createRenderer(i.body,{id:"0",encapsulation:ao.None,styles:[],data:{animation:[]}})}build(e){const i=this._nextAnimationId.toString();this._nextAnimationId++;const r=Array.isArray(e)?D1(e):e;return oR(this._renderer,null,i,"register",[r]),new BX(i,this._renderer)}}return n.\u0275fac=function(e){return new(e||n)(M(Ru),M(ft))},n.\u0275prov=ge({token:n,factory:n.\u0275fac}),n})();class BX extends class H6{}{constructor(t,e){super(),this._id=t,this._renderer=e}create(t,e){return new jX(this._id,t,e||{},this._renderer)}}class jX{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 oR(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 oR(n,t,e,i,r){return n.setProperty(t,`@@${e}:${i}`,r)}const sR="@.disabled";let HX=(()=>{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=(o,s)=>{const a=s?.parentNode(o);a&&s.removeChild(a,o)}}createRenderer(e,i){const o=this.delegate.createRenderer(e,i);if(!(e&&i&&i.data&&i.data.animation)){let u=this._rendererCache.get(o);return u||(u=new aR("",o,this.engine),this._rendererCache.set(o,u)),u}const s=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(s,a,e,u.name,u)};return i.data.animation.forEach(l),new VX(this,a,o,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}_scheduleCountTask(){this.promise.then(()=>{this._microtaskId++})}scheduleListenerCallback(e,i,r){e>=0&&ei(r)):(0==this._animationCallbacksBuffer.length&&Promise.resolve(null).then(()=>{this._zone.run(()=>{this._animationCallbacksBuffer.forEach(o=>{const[s,a]=o;s(a)}),this._animationCallbacksBuffer=[]})}),this._animationCallbacksBuffer.push([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)(M(Ru),M(ug),M(et))},n.\u0275prov=ge({token:n,factory:n.\u0275fac}),n})();class aR{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==sR?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 VX extends aR{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==sR?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 UX(n){switch(n){case"body":return document.body;case"document":return document;case"window":return window;default:return n}}(t);let o=e.slice(1),s="";return"@"!=o.charAt(0)&&([o,s]=function qX(n){const t=n.indexOf(".");return[n.substring(0,t),n.slice(t+1)]}(o)),this.engine.listen(this.namespaceId,r,o,s,a=>{this.factory.scheduleListenerCallback(a._data||-1,i,a)})}return this.delegate.listen(t,e,i)}}let zX=(()=>{class n extends ug{constructor(e,i,r,o){super(e.body,i,r)}ngOnDestroy(){this.flush()}}return n.\u0275fac=function(e){return new(e||n)(M(ft),M(QC),M(aw),M(Qu))},n.\u0275prov=ge({token:n,factory:n.\u0275fac}),n})();const lR=[{provide:w1,useClass:FX},{provide:aw,useFactory:function GX(){return new uX}},{provide:ug,useClass:zX},{provide:Ru,useFactory:function WX(n,t,e){return new HX(n,t,e)},deps:[Kp,ug,et]}],fw=[{provide:QC,useFactory:()=>new NX},{provide:qn,useValue:"BrowserAnimations"},...lR],cR=[{provide:QC,useClass:Lk},{provide:qn,useValue:"NoopAnimations"},...lR];let $X=(()=>{class n{static withConfig(e){return{ngModule:n,providers:e.disableAnimations?cR:fw}}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=ht({type:n}),n.\u0275inj=dt({providers:fw,imports:[QT]}),n})(),uR=(()=>{class n{constructor(e){this.viewContainerRef=e}}return n.\u0275fac=function(e){return new(e||n)(p(Dn))},n.\u0275dir=fe({type:n,selectors:[["","appModal",""]]}),n})();const KX=["modal"],YX=["modalHeader"],QX=["modalFooter"],JX=["dbs"];function ZX(n,t){if(1&n){const e=Ie();g(0,"div",4)(1,"div",5)(2,"h1"),j(3),_()(),g(4,"div",6),W("click",function(){return J(e),Z(C().closeModal())}),be(5,"div",7),_()()}if(2&n){const e=t.title,i=C();f(3),ve(e),f(2),v("ngStyle",i.modCloseImage)}}function XX(n,t){if(1&n){const e=Ie();g(0,"div",8)(1,"button",9),W("click",function(){return Z((0,J(e).cancelAction)())}),j(2),_(),g(3,"button",10),W("click",function(){return Z((0,J(e).confirmAction)())}),j(4),_()()}if(2&n){const e=t.confirm,i=t.cancel;f(2),qe(" ",i," "),f(2),qe(" ",e," ")}}function eee(n,t){}function tee(n,t){}let nee=(()=>{class n{constructor(e,i,r,o,s){this.modal=e,this.modalService=i,this.componentFactoryResolver=r,this.app=o,this.globals=s,this.headerText="",this.modCloseImage={background:"no-repeat url(assets/images/widget_settings.png)"}}ngAfterViewInit(){}ngOnInit(){this.modalService.currentType.subscribe(e=>{this.modalService.setModalHeader(this.modalHeader),this.modalService.setModalFooter(this.modalFooter),this.chosenType=e.newType,this.loadComponent(this.chosenType,e.data)})}open(e){return this.modal.open(e,{panelClass:"modalOverlay",autoFocus:!1,maxHeight:"Owa"===this.globals.curConnectorType?"90%":"80%"})}loadComponent(e,i){this.modalItems=this.app.mItems;const r=this.modalItems[e],o=this.componentFactoryResolver.resolveComponentFactory(r.component),s=this.appModal.viewContainerRef;s.clear();const a=s.createComponent(o);return this.modalService.addActiveModal(this.open(a.instance.getTemplate())),a.instance.data=r.data,a.instance.modalMain=this,a.instance.data&&(a.instance.data.modalItems=this.modalService.modalItemsPub,i&&(a.instance.data.passedData=i)),this.modalService.newActive}closeModal(){this.modalService.closeAllModals()}}return n.\u0275fac=function(e){return new(e||n)(p(Wo),p(hl),p(hs),p(HC),p(ot))},n.\u0275cmp=Ue({type:n,selectors:[["app-modal"]],viewQuery:function(e,i){if(1&e&&(De(KX,7),De(YX,7),De(QX,7),De(uR,7),De(JX,5)),2&e){let r;ce(r=ue())&&(i.modalTempl=r.first),ce(r=ue())&&(i.modalHeader=r.first),ce(r=ue())&&(i.modalFooter=r.first),ce(r=ue())&&(i.appModal=r.first),ce(r=ue())&&(i.selection=r.first)}},decls:7,vars:0,consts:[["modalHeader",""],["modalFooter",""],["appModal",""],["modal",""],[1,"modalHeader"],[1,"modalHeaderText"],["ngbAutoFocus","",1,"modalHeaderClose",3,"click"],[1,"modalCloseIcon",3,"ngStyle"],[1,"modalFooter"],[1,"button-secondary","right",3,"click"],[1,"button-primary","right",3,"click"]],template:function(e,i){1&e&&(H(0,ZX,6,2,"ng-template",null,0,Sn),H(2,XX,5,2,"ng-template",null,1,Sn),H(4,eee,0,0,"ng-template",2),H(5,tee,0,0,"ng-template",null,3,Sn))},dependencies:[ra,uR]}),n})(),iee=(()=>{class n{constructor(e){this.language=e}getTranslation(e){return new b(i=>{this.language.waitForInit().subscribe(()=>{i.next(this.language.passLCObj()),i.complete()})})}}return n.\u0275fac=function(e){return new(e||n)(M(pC))},n.\u0275prov=ge({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();function ree(n,t){if(1&n&&(Rl(),be(0,"circle",4)),2&n){const e=C(),i=Yt(1);qr("animation-name","mat-progress-spinner-stroke-rotate-"+e._spinnerAnimationLabel)("stroke-dashoffset",e._getStrokeDashOffset(),"px")("stroke-dasharray",e._getStrokeCircumference(),"px")("stroke-width",e._getCircleStrokeWidth(),"%")("transform-origin",e._getCircleTransformOrigin(i)),rt("r",e._getCircleRadius())}}function oee(n,t){if(1&n&&(Rl(),be(0,"circle",4)),2&n){const e=C(),i=Yt(1);qr("stroke-dashoffset",e._getStrokeDashOffset(),"px")("stroke-dasharray",e._getStrokeCircumference(),"px")("stroke-width",e._getCircleStrokeWidth(),"%")("transform-origin",e._getCircleTransformOrigin(i)),rt("r",e._getCircleRadius())}}const aee=da(class{constructor(n){this._elementRef=n}},"primary"),lee=new me("mat-progress-spinner-default-options",{providedIn:"root",factory:function cee(){return{diameter:100}}});class $s extends aee{constructor(t,e,i,r,o,s,a,l){super(t),this._document=i,this._diameter=100,this._value=0,this._resizeSubscription=E.EMPTY,this.mode="determinate";const c=$s._diameters;this._spinnerAnimationLabel=this._getSpinnerAnimationLabel(),c.has(i.head)||c.set(i.head,new Set([100])),this._noopAnimations="NoopAnimations"===r&&!!o&&!o._forceAnimations,"mat-spinner"===t.nativeElement.nodeName.toLowerCase()&&(this.mode="indeterminate"),o&&(o.color&&(this.color=this.defaultColor=o.color),o.diameter&&(this.diameter=o.diameter),o.strokeWidth&&(this.strokeWidth=o.strokeWidth)),e.isBrowser&&e.SAFARI&&a&&s&&l&&(this._resizeSubscription=a.change(150).subscribe(()=>{"indeterminate"===this.mode&&l.run(()=>s.markForCheck())}))}get diameter(){return this._diameter}set diameter(t){this._diameter=xs(t),this._spinnerAnimationLabel=this._getSpinnerAnimationLabel(),this._styleRoot&&this._attachStyleNode()}get strokeWidth(){return this._strokeWidth||this.diameter/10}set strokeWidth(t){this._strokeWidth=xs(t)}get value(){return"determinate"===this.mode?this._value:0}set value(t){this._value=Math.max(0,Math.min(100,xs(t)))}ngOnInit(){const t=this._elementRef.nativeElement;this._styleRoot=_f(t)||this._document.head,this._attachStyleNode(),t.classList.add("mat-progress-spinner-indeterminate-animation")}ngOnDestroy(){this._resizeSubscription.unsubscribe()}_getCircleRadius(){return(this.diameter-10)/2}_getViewBox(){const t=2*this._getCircleRadius()+this.strokeWidth;return`0 0 ${t} ${t}`}_getStrokeCircumference(){return 2*Math.PI*this._getCircleRadius()}_getStrokeDashOffset(){return"determinate"===this.mode?this._getStrokeCircumference()*(100-this._value)/100:null}_getCircleStrokeWidth(){return this.strokeWidth/this.diameter*100}_getCircleTransformOrigin(t){const e=50*(t.currentScale??1);return`${e}% ${e}%`}_attachStyleNode(){const t=this._styleRoot,e=this._diameter,i=$s._diameters;let r=i.get(t);if(!r||!r.has(e)){const o=this._document.createElement("style");o.setAttribute("mat-spinner-animation",this._spinnerAnimationLabel),o.textContent=this._getAnimationText(),t.appendChild(o),r||(r=new Set,i.set(t,r)),r.add(e)}}_getAnimationText(){const t=this._getStrokeCircumference();return"\n @keyframes mat-progress-spinner-stroke-rotate-DIAMETER {\n 0% { stroke-dashoffset: START_VALUE; transform: rotate(0); }\n 12.5% { stroke-dashoffset: END_VALUE; transform: rotate(0); }\n 12.5001% { stroke-dashoffset: END_VALUE; transform: rotateX(180deg) rotate(72.5deg); }\n 25% { stroke-dashoffset: START_VALUE; transform: rotateX(180deg) rotate(72.5deg); }\n\n 25.0001% { stroke-dashoffset: START_VALUE; transform: rotate(270deg); }\n 37.5% { stroke-dashoffset: END_VALUE; transform: rotate(270deg); }\n 37.5001% { stroke-dashoffset: END_VALUE; transform: rotateX(180deg) rotate(161.5deg); }\n 50% { stroke-dashoffset: START_VALUE; transform: rotateX(180deg) rotate(161.5deg); }\n\n 50.0001% { stroke-dashoffset: START_VALUE; transform: rotate(180deg); }\n 62.5% { stroke-dashoffset: END_VALUE; transform: rotate(180deg); }\n 62.5001% { stroke-dashoffset: END_VALUE; transform: rotateX(180deg) rotate(251.5deg); }\n 75% { stroke-dashoffset: START_VALUE; transform: rotateX(180deg) rotate(251.5deg); }\n\n 75.0001% { stroke-dashoffset: START_VALUE; transform: rotate(90deg); }\n 87.5% { stroke-dashoffset: END_VALUE; transform: rotate(90deg); }\n 87.5001% { stroke-dashoffset: END_VALUE; transform: rotateX(180deg) rotate(341.5deg); }\n 100% { stroke-dashoffset: START_VALUE; transform: rotateX(180deg) rotate(341.5deg); }\n }\n".replace(/START_VALUE/g,""+.95*t).replace(/END_VALUE/g,""+.2*t).replace(/DIAMETER/g,`${this._spinnerAnimationLabel}`)}_getSpinnerAnimationLabel(){return this.diameter.toString().replace(".","_")}}$s._diameters=new WeakMap,$s.\u0275fac=function(t){return new(t||$s)(p(Je),p(Nn),p(ft,8),p(qn,8),p(lee),p(St),p(zo),p(et))},$s.\u0275cmp=Ue({type:$s,selectors:[["mat-progress-spinner"],["mat-spinner"]],hostAttrs:["role","progressbar","tabindex","-1",1,"mat-progress-spinner","mat-spinner"],hostVars:10,hostBindings:function(t,e){2&t&&(rt("aria-valuemin","determinate"===e.mode?0:null)("aria-valuemax","determinate"===e.mode?100:null)("aria-valuenow","determinate"===e.mode?e.value:null)("mode",e.mode),qr("width",e.diameter,"px")("height",e.diameter,"px"),bt("_mat-animation-noopable",e._noopAnimations))},inputs:{color:"color",diameter:"diameter",strokeWidth:"strokeWidth",mode:"mode",value:"value"},exportAs:["matProgressSpinner"],features:[Se],decls:4,vars:8,consts:[["preserveAspectRatio","xMidYMid meet","focusable","false","aria-hidden","true",3,"ngSwitch"],["svg",""],["cx","50%","cy","50%",3,"animation-name","stroke-dashoffset","stroke-dasharray","stroke-width","transform-origin",4,"ngSwitchCase"],["cx","50%","cy","50%",3,"stroke-dashoffset","stroke-dasharray","stroke-width","transform-origin",4,"ngSwitchCase"],["cx","50%","cy","50%"]],template:function(t,e){1&t&&(Rl(),g(0,"svg",0,1),H(2,ree,1,11,"circle",2),H(3,oee,1,9,"circle",3),_()),2&t&&(qr("width",e.diameter,"px")("height",e.diameter,"px"),v("ngSwitch","indeterminate"===e.mode),rt("viewBox",e._getViewBox()),f(2),v("ngSwitchCase",!0),f(1),v("ngSwitchCase",!1))},dependencies:[mc,qp],styles:[".mat-progress-spinner{display:block;position:relative;overflow:hidden}.mat-progress-spinner svg{position:absolute;transform:rotate(-90deg);top:0;left:0;transform-origin:center;overflow:visible}.mat-progress-spinner circle{fill:rgba(0,0,0,0);transition:stroke-dashoffset 225ms linear}.cdk-high-contrast-active .mat-progress-spinner circle{stroke:CanvasText}.mat-progress-spinner[mode=indeterminate] svg{animation:mat-progress-spinner-linear-rotate 2000ms linear infinite}.mat-progress-spinner[mode=indeterminate] circle{transition-property:stroke;animation-duration:4000ms;animation-timing-function:cubic-bezier(0.35, 0, 0.25, 1);animation-iteration-count:infinite}.mat-progress-spinner._mat-animation-noopable svg,.mat-progress-spinner._mat-animation-noopable circle{animation:none;transition:none}@keyframes mat-progress-spinner-linear-rotate{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}@keyframes mat-progress-spinner-stroke-rotate-100{0%{stroke-dashoffset:268.606171575px;transform:rotate(0)}12.5%{stroke-dashoffset:56.5486677px;transform:rotate(0)}12.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(72.5deg)}25%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(72.5deg)}25.0001%{stroke-dashoffset:268.606171575px;transform:rotate(270deg)}37.5%{stroke-dashoffset:56.5486677px;transform:rotate(270deg)}37.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(161.5deg)}50%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(161.5deg)}50.0001%{stroke-dashoffset:268.606171575px;transform:rotate(180deg)}62.5%{stroke-dashoffset:56.5486677px;transform:rotate(180deg)}62.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(251.5deg)}75%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(251.5deg)}75.0001%{stroke-dashoffset:268.606171575px;transform:rotate(90deg)}87.5%{stroke-dashoffset:56.5486677px;transform:rotate(90deg)}87.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(341.5deg)}100%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(341.5deg)}}"],encapsulation:2,changeDetection:0});let dee=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=ht({type:n}),n.\u0275inj=dt({imports:[Lt,$r,Lt]}),n})();const hee=["panel"];function pee(n,t){if(1&n&&(g(0,"div",0,1),Bt(2),_()),2&n){const e=t.id,i=C();v("id",i.id)("ngClass",i._classList),rt("aria-label",i.ariaLabel||null)("aria-labelledby",i._getPanelAriaLabelledby(e))}}const fee=["*"];let mee=0;class gee{constructor(t,e){this.source=t,this.option=e}}const _ee=Go(class{}),dR=new me("mat-autocomplete-default-options",{providedIn:"root",factory:function vee(){return{autoActiveFirstOption:!1,autoSelectActiveOption:!1}}});let yee=(()=>{class n extends _ee{constructor(e,i,r,o){super(),this._changeDetectorRef=e,this._elementRef=i,this._activeOptionChanges=E.EMPTY,this.showPanel=!1,this._isOpen=!1,this.displayWith=null,this.optionSelected=new He,this.opened=new He,this.closed=new He,this.optionActivated=new He,this._classList={},this.id="mat-autocomplete-"+mee++,this.inertGroups=o?.SAFARI||!1,this._autoActiveFirstOption=!!r.autoActiveFirstOption,this._autoSelectActiveOption=!!r.autoSelectActiveOption}get isOpen(){return this._isOpen&&this.showPanel}get autoActiveFirstOption(){return this._autoActiveFirstOption}set autoActiveFirstOption(e){this._autoActiveFirstOption=lt(e)}get autoSelectActiveOption(){return this._autoSelectActiveOption}set autoSelectActiveOption(e){this._autoSelectActiveOption=lt(e)}set classList(e){this._classList=e&&e.length?function YU(n,t=/\s+/){const e=[];if(null!=n){const i=Array.isArray(n)?n:`${n}`.split(t);for(const r of i){const o=`${r}`.trim();o&&e.push(o)}}return e}(e).reduce((i,r)=>(i[r]=!0,i),{}):{},this._setVisibilityClasses(this._classList),this._elementRef.nativeElement.className=""}ngAfterContentInit(){this._keyManager=new N2(this.options).withWrap(),this._activeOptionChanges=this._keyManager.change.subscribe(e=>{this.isOpen&&this.optionActivated.emit({source:this,option:this.options.toArray()[e]||null})}),this._setVisibility()}ngOnDestroy(){this._activeOptionChanges.unsubscribe()}_setScrollTop(e){this.panel&&(this.panel.nativeElement.scrollTop=e)}_getScrollTop(){return this.panel?this.panel.nativeElement.scrollTop:0}_setVisibility(){this.showPanel=!!this.options.length,this._setVisibilityClasses(this._classList),this._changeDetectorRef.markForCheck()}_emitSelectEvent(e){const i=new gee(this,e);this.optionSelected.emit(i)}_getPanelAriaLabelledby(e){return this.ariaLabel?null:this.ariaLabelledby?(e?e+" ":"")+this.ariaLabelledby:e}_setVisibilityClasses(e){e[this._visibleClass]=this.showPanel,e[this._hiddenClass]=!this.showPanel}}return n.\u0275fac=function(e){return new(e||n)(p(St),p(Je),p(dR),p(Nn))},n.\u0275dir=fe({type:n,viewQuery:function(e,i){if(1&e&&(De(yn,7),De(hee,5)),2&e){let r;ce(r=ue())&&(i.template=r.first),ce(r=ue())&&(i.panel=r.first)}},inputs:{ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],displayWith:"displayWith",autoActiveFirstOption:"autoActiveFirstOption",autoSelectActiveOption:"autoSelectActiveOption",panelWidth:"panelWidth",classList:["class","classList"]},outputs:{optionSelected:"optionSelected",opened:"opened",closed:"closed",optionActivated:"optionActivated"},features:[Se]}),n})(),hR=(()=>{class n extends yee{constructor(){super(...arguments),this._visibleClass="mat-autocomplete-visible",this._hiddenClass="mat-autocomplete-hidden"}}return n.\u0275fac=function(){let t;return function(i){return(t||(t=Pt(n)))(i||n)}}(),n.\u0275cmp=Ue({type:n,selectors:[["mat-autocomplete"]],contentQueries:function(e,i,r){if(1&e&&(jt(r,Lf,5),jt(r,cr,5)),2&e){let o;ce(o=ue())&&(i.optionGroups=o),ce(o=ue())&&(i.options=o)}},hostAttrs:[1,"mat-autocomplete"],inputs:{disableRipple:"disableRipple"},exportAs:["matAutocomplete"],features:[it([{provide:Pf,useExisting:n}]),Se],ngContentSelectors:fee,decls:1,vars:0,consts:[["role","listbox",1,"mat-autocomplete-panel",3,"id","ngClass"],["panel",""]],template:function(e,i){1&e&&(Pn(),H(0,pee,3,4,"ng-template"))},dependencies:[$a],styles:[".mat-autocomplete-panel{min-width:112px;max-width:280px;overflow:auto;-webkit-overflow-scrolling:touch;visibility:hidden;max-width:none;max-height:256px;position:relative;width:100%;border-bottom-left-radius:4px;border-bottom-right-radius:4px}.mat-autocomplete-panel.mat-autocomplete-visible{visibility:visible}.mat-autocomplete-panel.mat-autocomplete-hidden{visibility:hidden}.mat-autocomplete-panel-above .mat-autocomplete-panel{border-radius:0;border-top-left-radius:4px;border-top-right-radius:4px}.mat-autocomplete-panel .mat-divider-horizontal{margin-top:-1px}.cdk-high-contrast-active .mat-autocomplete-panel{outline:solid 1px}mat-autocomplete{display:none}"],encapsulation:2,changeDetection:0}),n})();const pR=new me("mat-autocomplete-scroll-strategy"),Cee={provide:pR,deps:[lr],useFactory:function bee(n){return()=>n.scrollStrategies.reposition()}},wee={provide:or,useExisting:Xt(()=>ro),multi:!0};let Eee=(()=>{class n{constructor(e,i,r,o,s,a,l,c,u,d,h){this._element=e,this._overlay=i,this._viewContainerRef=r,this._zone=o,this._changeDetectorRef=s,this._dir=l,this._formField=c,this._document=u,this._viewportRuler=d,this._defaults=h,this._componentDestroyed=!1,this._autocompleteDisabled=!1,this._manuallyFloatingLabel=!1,this._viewportSubscription=E.EMPTY,this._canOpenOnNextFocus=!0,this._closeKeyEventStream=new N,this._windowBlurHandler=()=>{this._canOpenOnNextFocus=this._document.activeElement!==this._element.nativeElement||this.panelOpen},this._onChange=()=>{},this._onTouched=()=>{},this.position="auto",this.autocompleteAttribute="off",this._overlayAttached=!1,this.optionSelections=la(()=>{const m=this.autocomplete?this.autocomplete.options:null;return m?m.changes.pipe(ni(m),Kn(()=>On(...m.map(y=>y.onSelectionChange)))):this._zone.onStable.pipe(sn(1),Kn(()=>this.optionSelections))}),this._scrollStrategy=a}get autocompleteDisabled(){return this._autocompleteDisabled}set autocompleteDisabled(e){this._autocompleteDisabled=lt(e)}ngAfterViewInit(){const e=this._getWindow();typeof e<"u"&&this._zone.runOutsideAngular(()=>e.addEventListener("blur",this._windowBlurHandler))}ngOnChanges(e){e.position&&this._positionStrategy&&(this._setStrategyPositions(this._positionStrategy),this.panelOpen&&this._overlayRef.updatePosition())}ngOnDestroy(){const e=this._getWindow();typeof e<"u"&&e.removeEventListener("blur",this._windowBlurHandler),this._viewportSubscription.unsubscribe(),this._componentDestroyed=!0,this._destroyPanel(),this._closeKeyEventStream.complete()}get panelOpen(){return this._overlayAttached&&this.autocomplete.showPanel}openPanel(){this._attachOverlay(),this._floatLabel()}closePanel(){this._resetLabel(),this._overlayAttached&&(this.panelOpen&&this._zone.run(()=>{this.autocomplete.closed.emit()}),this.autocomplete._isOpen=this._overlayAttached=!1,this._pendingAutoselectedOption=null,this._overlayRef&&this._overlayRef.hasAttached()&&(this._overlayRef.detach(),this._closingActionsSubscription.unsubscribe()),this._componentDestroyed||this._changeDetectorRef.detectChanges())}updatePosition(){this._overlayAttached&&this._overlayRef.updatePosition()}get panelClosingActions(){return On(this.optionSelections,this.autocomplete._keyManager.tabOut.pipe(Tn(()=>this._overlayAttached)),this._closeKeyEventStream,this._getOutsideClickStream(),this._overlayRef?this._overlayRef.detachments().pipe(Tn(()=>this._overlayAttached)):Ne()).pipe(he(e=>e instanceof b1?e:null))}get activeOption(){return this.autocomplete&&this.autocomplete._keyManager?this.autocomplete._keyManager.activeItem:null}_getOutsideClickStream(){return On(Is(this._document,"click"),Is(this._document,"auxclick"),Is(this._document,"touchend")).pipe(Tn(e=>{const i=Qr(e),r=this._formField?this._formField._elementRef.nativeElement:null,o=this.connectedTo?this.connectedTo.elementRef.nativeElement:null;return this._overlayAttached&&i!==this._element.nativeElement&&this._document.activeElement!==this._element.nativeElement&&(!r||!r.contains(i))&&(!o||!o.contains(i))&&!!this._overlayRef&&!this._overlayRef.overlayElement.contains(i)}))}writeValue(e){Promise.resolve(null).then(()=>this._assignOptionValue(e))}registerOnChange(e){this._onChange=e}registerOnTouched(e){this._onTouched=e}setDisabledState(e){this._element.nativeElement.disabled=e}_handleKeydown(e){const i=e.keyCode,r=yi(e);if(27===i&&!r&&e.preventDefault(),this.activeOption&&13===i&&this.panelOpen&&!r)this.activeOption._selectViaInteraction(),this._resetActiveItem(),e.preventDefault();else if(this.autocomplete){const o=this.autocomplete._keyManager.activeItem,s=38===i||40===i;9===i||s&&!r&&this.panelOpen?this.autocomplete._keyManager.onKeydown(e):s&&this._canOpen()&&this.openPanel(),(s||this.autocomplete._keyManager.activeItem!==o)&&(this._scrollToOption(this.autocomplete._keyManager.activeItemIndex||0),this.autocomplete.autoSelectActiveOption&&this.activeOption&&(this._pendingAutoselectedOption||(this._valueBeforeAutoSelection=this._element.nativeElement.value),this._pendingAutoselectedOption=this.activeOption,this._assignOptionValue(this.activeOption.value)))}}_handleInput(e){let i=e.target,r=i.value;"number"===i.type&&(r=""==r?null:parseFloat(r)),this._previousValue!==r&&(this._previousValue=r,this._pendingAutoselectedOption=null,this._onChange(r),this._canOpen()&&this._document.activeElement===e.target&&this.openPanel())}_handleFocus(){this._canOpenOnNextFocus?this._canOpen()&&(this._previousValue=this._element.nativeElement.value,this._attachOverlay(),this._floatLabel(!0)):this._canOpenOnNextFocus=!0}_handleClick(){this._canOpen()&&!this.panelOpen&&this.openPanel()}_floatLabel(e=!1){this._formField&&"auto"===this._formField.floatLabel&&(e?this._formField._animateAndLockLabel():this._formField.floatLabel="always",this._manuallyFloatingLabel=!0)}_resetLabel(){this._manuallyFloatingLabel&&(this._formField.floatLabel="auto",this._manuallyFloatingLabel=!1)}_subscribeToClosingActions(){return On(this._zone.onStable.pipe(sn(1)),this.autocomplete.options.changes.pipe(Yn(()=>this._positionStrategy.reapplyLastPosition()),VC(0))).pipe(Kn(()=>(this._zone.run(()=>{const r=this.panelOpen;this._resetActiveItem(),this.autocomplete._setVisibility(),this._changeDetectorRef.detectChanges(),this.panelOpen&&this._overlayRef.updatePosition(),r!==this.panelOpen&&(this.panelOpen?this.autocomplete.opened.emit():this.autocomplete.closed.emit())}),this.panelClosingActions)),sn(1)).subscribe(r=>this._setValueAndClose(r))}_destroyPanel(){this._overlayRef&&(this.closePanel(),this._overlayRef.dispose(),this._overlayRef=null)}_assignOptionValue(e){const i=this.autocomplete&&this.autocomplete.displayWith?this.autocomplete.displayWith(e):e;this._updateNativeInputValue(i??"")}_updateNativeInputValue(e){this._formField?this._formField._control.value=e:this._element.nativeElement.value=e,this._previousValue=e}_setValueAndClose(e){const i=e?e.source:this._pendingAutoselectedOption;i&&(this._clearPreviousSelectedOption(i),this._assignOptionValue(i.value),this._onChange(i.value),this.autocomplete._emitSelectEvent(i),this._element.nativeElement.focus()),this.closePanel()}_clearPreviousSelectedOption(e){this.autocomplete.options.forEach(i=>{i!==e&&i.selected&&i.deselect()})}_attachOverlay(){let e=this._overlayRef;e?(this._positionStrategy.setOrigin(this._getConnectedElement()),e.updateSize({width:this._getPanelWidth()})):(this._portal=new Ms(this.autocomplete.template,this._viewContainerRef,{id:this._formField?.getLabelId()}),e=this._overlay.create(this._getOverlayConfig()),this._overlayRef=e,this._handleOverlayEvents(e),this._viewportSubscription=this._viewportRuler.change().subscribe(()=>{this.panelOpen&&e&&e.updateSize({width:this._getPanelWidth()})})),e&&!e.hasAttached()&&(e.attach(this._portal),this._closingActionsSubscription=this._subscribeToClosingActions());const i=this.panelOpen;this.autocomplete._setVisibility(),this.autocomplete._isOpen=this._overlayAttached=!0,this.panelOpen&&i!==this.panelOpen&&this.autocomplete.opened.emit()}_getOverlayConfig(){return new xc({positionStrategy:this._getOverlayPosition(),scrollStrategy:this._scrollStrategy(),width:this._getPanelWidth(),direction:this._dir,panelClass:this._defaults?.overlayPanelClass})}_getOverlayPosition(){const e=this._overlay.position().flexibleConnectedTo(this._getConnectedElement()).withFlexibleDimensions(!1).withPush(!1);return this._setStrategyPositions(e),this._positionStrategy=e,e}_setStrategyPositions(e){const i=[{originX:"start",originY:"bottom",overlayX:"start",overlayY:"top"},{originX:"end",originY:"bottom",overlayX:"end",overlayY:"top"}],r=this._aboveClass,o=[{originX:"start",originY:"top",overlayX:"start",overlayY:"bottom",panelClass:r},{originX:"end",originY:"top",overlayX:"end",overlayY:"bottom",panelClass:r}];let s;s="above"===this.position?o:"below"===this.position?i:[...i,...o],e.withPositions(s)}_getConnectedElement(){return this.connectedTo?this.connectedTo.elementRef:this._formField?this._formField.getConnectedOverlayOrigin():this._element}_getPanelWidth(){return this.autocomplete.panelWidth||this._getHostWidth()}_getHostWidth(){return this._getConnectedElement().nativeElement.getBoundingClientRect().width}_resetActiveItem(){const e=this.autocomplete;e.autoActiveFirstOption?e._keyManager.setFirstItemActive():e._keyManager.setActiveItem(-1)}_canOpen(){const e=this._element.nativeElement;return!e.readOnly&&!e.disabled&&!this._autocompleteDisabled}_getWindow(){return this._document?.defaultView||window}_scrollToOption(e){const i=this.autocomplete,r=Eb(e,i.options,i.optionGroups);if(0===e&&1===r)i._setScrollTop(0);else if(i.panel){const o=i.options.toArray()[e];if(o){const s=o._getHostElement(),a=C1(s.offsetTop,s.offsetHeight,i._getScrollTop(),i.panel.nativeElement.offsetHeight);i._setScrollTop(a)}}}_handleOverlayEvents(e){e.keydownEvents().subscribe(i=>{(27===i.keyCode&&!yi(i)||38===i.keyCode&&yi(i,"altKey"))&&(this._pendingAutoselectedOption&&(this._updateNativeInputValue(this._valueBeforeAutoSelection??""),this._pendingAutoselectedOption=null),this._closeKeyEventStream.next(),this._resetActiveItem(),i.stopPropagation(),i.preventDefault())}),e.outsidePointerEvents().subscribe()}}return n.\u0275fac=function(e){return new(e||n)(p(Je),p(lr),p(Dn),p(et),p(St),p(pR),p(Xi,8),p(jf,9),p(ft,8),p(zo),p(dR,8))},n.\u0275dir=fe({type:n,inputs:{autocomplete:["matAutocomplete","autocomplete"],position:["matAutocompletePosition","position"],connectedTo:["matAutocompleteConnectedTo","connectedTo"],autocompleteAttribute:["autocomplete","autocompleteAttribute"],autocompleteDisabled:["matAutocompleteDisabled","autocompleteDisabled"]},features:[Rn]}),n})(),ro=(()=>{class n extends Eee{constructor(){super(...arguments),this._aboveClass="mat-autocomplete-panel-above"}}return n.\u0275fac=function(){let t;return function(i){return(t||(t=Pt(n)))(i||n)}}(),n.\u0275dir=fe({type:n,selectors:[["input","matAutocomplete",""],["textarea","matAutocomplete",""]],hostAttrs:[1,"mat-autocomplete-trigger"],hostVars:7,hostBindings:function(e,i){1&e&&W("focusin",function(){return i._handleFocus()})("blur",function(){return i._onTouched()})("input",function(o){return i._handleInput(o)})("keydown",function(o){return i._handleKeydown(o)})("click",function(){return i._handleClick()}),2&e&&rt("autocomplete",i.autocompleteAttribute)("role",i.autocompleteDisabled?null:"combobox")("aria-autocomplete",i.autocompleteDisabled?null:"list")("aria-activedescendant",i.panelOpen&&i.activeOption?i.activeOption.id:null)("aria-expanded",i.autocompleteDisabled?null:i.panelOpen.toString())("aria-owns",i.autocompleteDisabled||!i.panelOpen||null==i.autocomplete?null:i.autocomplete.id)("aria-haspopup",i.autocompleteDisabled?null:"listbox")},exportAs:["matAutocompleteTrigger"],features:[it([wee]),Se]}),n})(),Dee=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=ht({type:n}),n.\u0275inj=dt({providers:[Cee],imports:[Ic,Nf,Lt,$r,Tc,Nf,Lt]}),n})(),fR=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=ht({type:n}),n.\u0275inj=dt({}),n})(),Fee=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=ht({type:n}),n.\u0275inj=dt({imports:[fR,ha,Lt,dd,fR,Lt]}),n})();const mR=new me("CdkAccordion");let Bee=0,jee=(()=>{class n{constructor(e,i,r){this.accordion=e,this._changeDetectorRef=i,this._expansionDispatcher=r,this._openCloseAllSubscription=E.EMPTY,this.closed=new He,this.opened=new He,this.destroyed=new He,this.expandedChange=new He,this.id="cdk-accordion-child-"+Bee++,this._expanded=!1,this._disabled=!1,this._removeUniqueSelectionListener=()=>{},this._removeUniqueSelectionListener=r.listen((o,s)=>{this.accordion&&!this.accordion.multi&&this.accordion.id===s&&this.id!==o&&(this.expanded=!1)}),this.accordion&&(this._openCloseAllSubscription=this._subscribeToOpenCloseAllActions())}get expanded(){return this._expanded}set expanded(e){e=lt(e),this._expanded!==e&&(this._expanded=e,this.expandedChange.emit(e),e?(this.opened.emit(),this._expansionDispatcher.notify(this.id,this.accordion?this.accordion.id:this.id)):this.closed.emit(),this._changeDetectorRef.markForCheck())}get disabled(){return this._disabled}set disabled(e){this._disabled=lt(e)}ngOnDestroy(){this.opened.complete(),this.closed.complete(),this.destroyed.emit(),this.destroyed.complete(),this._removeUniqueSelectionListener(),this._openCloseAllSubscription.unsubscribe()}toggle(){this.disabled||(this.expanded=!this.expanded)}close(){this.disabled||(this.expanded=!1)}open(){this.disabled||(this.expanded=!0)}_subscribeToOpenCloseAllActions(){return this.accordion._openCloseAllActions.subscribe(e=>{this.disabled||(this.expanded=e)})}}return n.\u0275fac=function(e){return new(e||n)(p(mR,12),p(St),p(q1))},n.\u0275dir=fe({type:n,selectors:[["cdk-accordion-item"],["","cdkAccordionItem",""]],inputs:{expanded:"expanded",disabled:"disabled"},outputs:{closed:"closed",opened:"opened",destroyed:"destroyed",expandedChange:"expandedChange"},exportAs:["cdkAccordionItem"],features:[it([{provide:mR,useValue:void 0}])]}),n})(),Hee=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=ht({type:n}),n.\u0275inj=dt({}),n})();const Vee=["body"];function Uee(n,t){}const qee=[[["mat-expansion-panel-header"]],"*",[["mat-action-row"]]],zee=["mat-expansion-panel-header","*","mat-action-row"];function Gee(n,t){1&n&&be(0,"span",2),2&n&&v("@indicatorRotate",C()._getExpandedState())}const Wee=[[["mat-panel-title"]],[["mat-panel-description"]],"*"],$ee=["mat-panel-title","mat-panel-description","*"],gR=new me("MAT_ACCORDION"),_R="225ms cubic-bezier(0.4,0.0,0.2,1)",vR={indicatorRotate:So("indicatorRotate",[li("collapsed, void",qt({transform:"rotate(0deg)"})),li("expanded",qt({transform:"rotate(180deg)"})),bi("expanded <=> collapsed, void => collapsed",Oi(_R))]),bodyExpansion:So("bodyExpansion",[li("collapsed, void",qt({height:"0px",visibility:"hidden"})),li("expanded",qt({height:"*",visibility:"visible"})),bi("expanded <=> collapsed, void => collapsed",Oi(_R))])},yR=new me("MAT_EXPANSION_PANEL");let Kee=(()=>{class n{constructor(e,i){this._template=e,this._expansionPanel=i}}return n.\u0275fac=function(e){return new(e||n)(p(yn),p(yR,8))},n.\u0275dir=fe({type:n,selectors:[["ng-template","matExpansionPanelContent",""]]}),n})(),Yee=0;const bR=new me("MAT_EXPANSION_PANEL_DEFAULT_OPTIONS");let gw=(()=>{class n extends jee{constructor(e,i,r,o,s,a,l){super(e,i,r),this._viewContainerRef=o,this._animationMode=a,this._hideToggle=!1,this.afterExpand=new He,this.afterCollapse=new He,this._inputChanges=new N,this._headerId="mat-expansion-panel-header-"+Yee++,this._bodyAnimationDone=new N,this.accordion=e,this._document=s,this._bodyAnimationDone.pipe(bf((c,u)=>c.fromState===u.fromState&&c.toState===u.toState)).subscribe(c=>{"void"!==c.fromState&&("expanded"===c.toState?this.afterExpand.emit():"collapsed"===c.toState&&this.afterCollapse.emit())}),l&&(this.hideToggle=l.hideToggle)}get hideToggle(){return this._hideToggle||this.accordion&&this.accordion.hideToggle}set hideToggle(e){this._hideToggle=lt(e)}get togglePosition(){return this._togglePosition||this.accordion&&this.accordion.togglePosition}set togglePosition(e){this._togglePosition=e}_hasSpacing(){return!!this.accordion&&this.expanded&&"default"===this.accordion.displayMode}_getExpandedState(){return this.expanded?"expanded":"collapsed"}toggle(){this.expanded=!this.expanded}close(){this.expanded=!1}open(){this.expanded=!0}ngAfterContentInit(){this._lazyContent&&this._lazyContent._expansionPanel===this&&this.opened.pipe(ni(null),Tn(()=>this.expanded&&!this._portal),sn(1)).subscribe(()=>{this._portal=new Ms(this._lazyContent._template,this._viewContainerRef)})}ngOnChanges(e){this._inputChanges.next(e)}ngOnDestroy(){super.ngOnDestroy(),this._bodyAnimationDone.complete(),this._inputChanges.complete()}_containsFocus(){if(this._body){const e=this._document.activeElement,i=this._body.nativeElement;return e===i||i.contains(e)}return!1}}return n.\u0275fac=function(e){return new(e||n)(p(gR,12),p(St),p(q1),p(Dn),p(ft),p(qn,8),p(bR,8))},n.\u0275cmp=Ue({type:n,selectors:[["mat-expansion-panel"]],contentQueries:function(e,i,r){if(1&e&&jt(r,Kee,5),2&e){let o;ce(o=ue())&&(i._lazyContent=o.first)}},viewQuery:function(e,i){if(1&e&&De(Vee,5),2&e){let r;ce(r=ue())&&(i._body=r.first)}},hostAttrs:[1,"mat-expansion-panel"],hostVars:6,hostBindings:function(e,i){2&e&&bt("mat-expanded",i.expanded)("_mat-animation-noopable","NoopAnimations"===i._animationMode)("mat-expansion-panel-spacing",i._hasSpacing())},inputs:{disabled:"disabled",expanded:"expanded",hideToggle:"hideToggle",togglePosition:"togglePosition"},outputs:{opened:"opened",closed:"closed",expandedChange:"expandedChange",afterExpand:"afterExpand",afterCollapse:"afterCollapse"},exportAs:["matExpansionPanel"],features:[it([{provide:gR,useValue:void 0},{provide:yR,useExisting:n}]),Se,Rn],ngContentSelectors:zee,decls:7,vars:4,consts:[["role","region",1,"mat-expansion-panel-content",3,"id"],["body",""],[1,"mat-expansion-panel-body"],[3,"cdkPortalOutlet"]],template:function(e,i){1&e&&(Pn(qee),Bt(0),g(1,"div",0,1),W("@bodyExpansion.done",function(o){return i._bodyAnimationDone.next(o)}),g(3,"div",2),Bt(4,1),H(5,Uee,0,0,"ng-template",3),_(),Bt(6,2),_()),2&e&&(f(1),v("@bodyExpansion",i._getExpandedState())("id",i.id),rt("aria-labelledby",i._headerId),f(4),v("cdkPortalOutlet",i._portal))},dependencies:[ks],styles:['.mat-expansion-panel{box-sizing:content-box;display:block;margin:0;border-radius:4px;overflow:hidden;transition:margin 225ms cubic-bezier(0.4, 0, 0.2, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);position:relative}.mat-accordion .mat-expansion-panel:not(.mat-expanded),.mat-accordion .mat-expansion-panel:not(.mat-expansion-panel-spacing){border-radius:0}.mat-accordion .mat-expansion-panel:first-of-type{border-top-right-radius:4px;border-top-left-radius:4px}.mat-accordion .mat-expansion-panel:last-of-type{border-bottom-right-radius:4px;border-bottom-left-radius:4px}.cdk-high-contrast-active .mat-expansion-panel{outline:solid 1px}.mat-expansion-panel.ng-animate-disabled,.ng-animate-disabled .mat-expansion-panel,.mat-expansion-panel._mat-animation-noopable{transition:none}.mat-expansion-panel-content{display:flex;flex-direction:column;overflow:visible}.mat-expansion-panel-content[style*="visibility: hidden"] *{visibility:hidden !important}.mat-expansion-panel-body{padding:0 24px 16px}.mat-expansion-panel-spacing{margin:16px 0}.mat-accordion>.mat-expansion-panel-spacing:first-child,.mat-accordion>*:first-child:not(.mat-expansion-panel) .mat-expansion-panel-spacing{margin-top:0}.mat-accordion>.mat-expansion-panel-spacing:last-child,.mat-accordion>*:last-child:not(.mat-expansion-panel) .mat-expansion-panel-spacing{margin-bottom:0}.mat-action-row{border-top-style:solid;border-top-width:1px;display:flex;flex-direction:row;justify-content:flex-end;padding:16px 8px 16px 24px}.mat-action-row .mat-button-base,.mat-action-row .mat-mdc-button-base{margin-left:8px}[dir=rtl] .mat-action-row .mat-button-base,[dir=rtl] .mat-action-row .mat-mdc-button-base{margin-left:0;margin-right:8px}'],encapsulation:2,data:{animation:[vR.bodyExpansion]},changeDetection:0}),n})();class Qee{}const Jee=md(Qee);let CR=(()=>{class n extends Jee{constructor(e,i,r,o,s,a,l){super(),this.panel=e,this._element=i,this._focusMonitor=r,this._changeDetectorRef=o,this._animationMode=a,this._parentChangeSubscription=E.EMPTY;const c=e.accordion?e.accordion._stateChanges.pipe(Tn(u=>!(!u.hideToggle&&!u.togglePosition))):Ss;this.tabIndex=parseInt(l||"")||0,this._parentChangeSubscription=On(e.opened,e.closed,c,e._inputChanges.pipe(Tn(u=>!!(u.hideToggle||u.disabled||u.togglePosition)))).subscribe(()=>this._changeDetectorRef.markForCheck()),e.closed.pipe(Tn(()=>e._containsFocus())).subscribe(()=>r.focusVia(i,"program")),s&&(this.expandedHeight=s.expandedHeight,this.collapsedHeight=s.collapsedHeight)}get disabled(){return this.panel.disabled}_toggle(){this.disabled||this.panel.toggle()}_isExpanded(){return this.panel.expanded}_getExpandedState(){return this.panel._getExpandedState()}_getPanelId(){return this.panel.id}_getTogglePosition(){return this.panel.togglePosition}_showToggle(){return!this.panel.hideToggle&&!this.panel.disabled}_getHeaderHeight(){const e=this._isExpanded();return e&&this.expandedHeight?this.expandedHeight:!e&&this.collapsedHeight?this.collapsedHeight:null}_keydown(e){switch(e.keyCode){case 32:case 13:yi(e)||(e.preventDefault(),this._toggle());break;default:return void(this.panel.accordion&&this.panel.accordion._handleHeaderKeydown(e))}}focus(e,i){e?this._focusMonitor.focusVia(this._element,e,i):this._element.nativeElement.focus(i)}ngAfterViewInit(){this._focusMonitor.monitor(this._element).subscribe(e=>{e&&this.panel.accordion&&this.panel.accordion._handleHeaderFocus(this)})}ngOnDestroy(){this._parentChangeSubscription.unsubscribe(),this._focusMonitor.stopMonitoring(this._element)}}return n.\u0275fac=function(e){return new(e||n)(p(gw,1),p(Je),p(Do),p(St),p(bR,8),p(qn,8),Vr("tabindex"))},n.\u0275cmp=Ue({type:n,selectors:[["mat-expansion-panel-header"]],hostAttrs:["role","button",1,"mat-expansion-panel-header","mat-focus-indicator"],hostVars:15,hostBindings:function(e,i){1&e&&W("click",function(){return i._toggle()})("keydown",function(o){return i._keydown(o)}),2&e&&(rt("id",i.panel._headerId)("tabindex",i.tabIndex)("aria-controls",i._getPanelId())("aria-expanded",i._isExpanded())("aria-disabled",i.panel.disabled),qr("height",i._getHeaderHeight()),bt("mat-expanded",i._isExpanded())("mat-expansion-toggle-indicator-after","after"===i._getTogglePosition())("mat-expansion-toggle-indicator-before","before"===i._getTogglePosition())("_mat-animation-noopable","NoopAnimations"===i._animationMode))},inputs:{tabIndex:"tabIndex",expandedHeight:"expandedHeight",collapsedHeight:"collapsedHeight"},features:[Se],ngContentSelectors:$ee,decls:5,vars:3,consts:[[1,"mat-content"],["class","mat-expansion-indicator",4,"ngIf"],[1,"mat-expansion-indicator"]],template:function(e,i){1&e&&(Pn(Wee),g(0,"span",0),Bt(1),Bt(2,1),Bt(3,2),_(),H(4,Gee,1,1,"span",1)),2&e&&(bt("mat-content-hide-toggle",!i._showToggle()),f(4),v("ngIf",i._showToggle()))},dependencies:[pn],styles:['.mat-expansion-panel-header{display:flex;flex-direction:row;align-items:center;padding:0 24px;border-radius:inherit;transition:height 225ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-expansion-panel-header._mat-animation-noopable{transition:none}.mat-expansion-panel-header:focus,.mat-expansion-panel-header:hover{outline:none}.mat-expansion-panel-header.mat-expanded:focus,.mat-expansion-panel-header.mat-expanded:hover{background:inherit}.mat-expansion-panel-header:not([aria-disabled=true]){cursor:pointer}.mat-expansion-panel-header.mat-expansion-toggle-indicator-before{flex-direction:row-reverse}.mat-expansion-panel-header.mat-expansion-toggle-indicator-before .mat-expansion-indicator{margin:0 16px 0 0}[dir=rtl] .mat-expansion-panel-header.mat-expansion-toggle-indicator-before .mat-expansion-indicator{margin:0 0 0 16px}.mat-content{display:flex;flex:1;flex-direction:row;overflow:hidden}.mat-content.mat-content-hide-toggle{margin-right:8px}[dir=rtl] .mat-content.mat-content-hide-toggle{margin-right:0;margin-left:8px}.mat-expansion-toggle-indicator-before .mat-content.mat-content-hide-toggle{margin-left:24px;margin-right:0}[dir=rtl] .mat-expansion-toggle-indicator-before .mat-content.mat-content-hide-toggle{margin-right:24px;margin-left:0}.mat-expansion-panel-header-title,.mat-expansion-panel-header-description{display:flex;flex-grow:1;flex-basis:0;margin-right:16px;align-items:center}[dir=rtl] .mat-expansion-panel-header-title,[dir=rtl] .mat-expansion-panel-header-description{margin-right:0;margin-left:16px}.mat-expansion-panel-header-description{flex-grow:2}.mat-expansion-indicator::after{border-style:solid;border-width:0 2px 2px 0;content:"";display:inline-block;padding:3px;transform:rotate(45deg);vertical-align:middle}.cdk-high-contrast-active .mat-expansion-panel-content{border-top:1px solid;border-top-left-radius:0;border-top-right-radius:0}'],encapsulation:2,data:{animation:[vR.indicatorRotate]},changeDetection:0}),n})(),wR=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=fe({type:n,selectors:[["mat-panel-title"]],hostAttrs:[1,"mat-expansion-panel-header-title"]}),n})(),Zee=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=ht({type:n}),n.\u0275inj=dt({imports:[$r,Lt,Hee,Xa]}),n})();const Xee=["*",[["mat-card-footer"]]],ete=["*","mat-card-footer"],tte=[[["","mat-card-avatar",""],["","matCardAvatar",""]],[["mat-card-title"],["mat-card-subtitle"],["","mat-card-title",""],["","mat-card-subtitle",""],["","matCardTitle",""],["","matCardSubtitle",""]],"*"],nte=["[mat-card-avatar], [matCardAvatar]","mat-card-title, mat-card-subtitle,\n [mat-card-title], [mat-card-subtitle],\n [matCardTitle], [matCardSubtitle]","*"];let mh=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=fe({type:n,selectors:[["mat-card-content"],["","mat-card-content",""],["","matCardContent",""]],hostAttrs:[1,"mat-card-content"]}),n})(),gh=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=fe({type:n,selectors:[["mat-card-title"],["","mat-card-title",""],["","matCardTitle",""]],hostAttrs:[1,"mat-card-title"]}),n})(),hg=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=fe({type:n,selectors:[["mat-card-footer"]],hostAttrs:[1,"mat-card-footer"]}),n})(),_h=(()=>{class n{constructor(e){this._animationMode=e}}return n.\u0275fac=function(e){return new(e||n)(p(qn,8))},n.\u0275cmp=Ue({type:n,selectors:[["mat-card"]],hostAttrs:[1,"mat-card","mat-focus-indicator"],hostVars:2,hostBindings:function(e,i){2&e&&bt("_mat-animation-noopable","NoopAnimations"===i._animationMode)},exportAs:["matCard"],ngContentSelectors:ete,decls:2,vars:0,template:function(e,i){1&e&&(Pn(Xee),Bt(0),Bt(1,1))},styles:[".mat-card{transition:box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);display:block;position:relative;padding:16px;border-radius:4px}.mat-card._mat-animation-noopable{transition:none !important;animation:none !important}.mat-card>.mat-divider-horizontal{position:absolute;left:0;width:100%}[dir=rtl] .mat-card>.mat-divider-horizontal{left:auto;right:0}.mat-card>.mat-divider-horizontal.mat-divider-inset{position:static;margin:0}[dir=rtl] .mat-card>.mat-divider-horizontal.mat-divider-inset{margin-right:0}.cdk-high-contrast-active .mat-card{outline:solid 1px}.mat-card-actions,.mat-card-subtitle,.mat-card-content{display:block;margin-bottom:16px}.mat-card-title{display:block;margin-bottom:8px}.mat-card-actions{margin-left:-8px;margin-right:-8px;padding:8px 0}.mat-card-actions-align-end{display:flex;justify-content:flex-end}.mat-card-image{width:calc(100% + 32px);margin:0 -16px 16px -16px;display:block;overflow:hidden}.mat-card-image img{width:100%}.mat-card-footer{display:block;margin:0 -16px -16px -16px}.mat-card-actions .mat-button,.mat-card-actions .mat-raised-button,.mat-card-actions .mat-stroked-button{margin:0 8px}.mat-card-header{display:flex;flex-direction:row}.mat-card-header .mat-card-title{margin-bottom:12px}.mat-card-header-text{margin:0 16px}.mat-card-avatar{height:40px;width:40px;border-radius:50%;flex-shrink:0;object-fit:cover}.mat-card-title-group{display:flex;justify-content:space-between}.mat-card-sm-image{width:80px;height:80px}.mat-card-md-image{width:112px;height:112px}.mat-card-lg-image{width:152px;height:152px}.mat-card-xl-image{width:240px;height:240px;margin:-8px}.mat-card-title-group>.mat-card-xl-image{margin:-8px 0 8px}@media(max-width: 599px){.mat-card-title-group{margin:0}.mat-card-xl-image{margin-left:0;margin-right:0}}.mat-card>:first-child,.mat-card-content>:first-child{margin-top:0}.mat-card>:last-child:not(.mat-card-footer),.mat-card-content>:last-child:not(.mat-card-footer){margin-bottom:0}.mat-card-image:first-child{margin-top:-16px;border-top-left-radius:inherit;border-top-right-radius:inherit}.mat-card>.mat-card-actions:last-child{margin-bottom:-8px;padding-bottom:0}.mat-card-actions:not(.mat-card-actions-align-end) .mat-button:first-child,.mat-card-actions:not(.mat-card-actions-align-end) .mat-raised-button:first-child,.mat-card-actions:not(.mat-card-actions-align-end) .mat-stroked-button:first-child{margin-left:0;margin-right:0}.mat-card-actions-align-end .mat-button:last-child,.mat-card-actions-align-end .mat-raised-button:last-child,.mat-card-actions-align-end .mat-stroked-button:last-child{margin-left:0;margin-right:0}.mat-card-title:not(:first-child),.mat-card-subtitle:not(:first-child){margin-top:-4px}.mat-card-header .mat-card-subtitle:not(:first-child){margin-top:-8px}.mat-card>.mat-card-xl-image:first-child{margin-top:-8px}.mat-card>.mat-card-xl-image:last-child{margin-bottom:-8px}"],encapsulation:2,changeDetection:0}),n})(),ite=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=Ue({type:n,selectors:[["mat-card-header"]],hostAttrs:[1,"mat-card-header"],ngContentSelectors:nte,decls:4,vars:0,consts:[[1,"mat-card-header-text"]],template:function(e,i){1&e&&(Pn(tte),Bt(0),g(1,"div",0),Bt(2,1),_(),Bt(3,2))},encapsulation:2,changeDetection:0}),n})(),rte=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=ht({type:n}),n.\u0275inj=dt({imports:[Lt,Lt]}),n})(),ote=0;const ste=Rs(class{}),ER="mat-badge-content";let ate=(()=>{class n extends ste{constructor(e,i,r,o,s){super(),this._ngZone=e,this._elementRef=i,this._ariaDescriber=r,this._renderer=o,this._animationMode=s,this._color="primary",this._overlap=!0,this.position="above after",this.size="medium",this._id=ote++,this._isInitialized=!1}get color(){return this._color}set color(e){this._setColor(e),this._color=e}get overlap(){return this._overlap}set overlap(e){this._overlap=lt(e)}get content(){return this._content}set content(e){this._updateRenderedContent(e)}get description(){return this._description}set description(e){this._updateHostAriaDescription(e)}get hidden(){return this._hidden}set hidden(e){this._hidden=lt(e)}isAbove(){return-1===this.position.indexOf("below")}isAfter(){return-1===this.position.indexOf("before")}getBadgeElement(){return this._badgeElement}ngOnInit(){this._clearExistingBadges(),this.content&&!this._badgeElement&&(this._badgeElement=this._createBadgeElement(),this._updateRenderedContent(this.content)),this._isInitialized=!0}ngOnDestroy(){this._renderer.destroyNode&&this._renderer.destroyNode(this._badgeElement),this._ariaDescriber.removeDescription(this._elementRef.nativeElement,this.description)}_createBadgeElement(){const e=this._renderer.createElement("span"),i="mat-badge-active";return e.setAttribute("id",`mat-badge-content-${this._id}`),e.setAttribute("aria-hidden","true"),e.classList.add(ER),"NoopAnimations"===this._animationMode&&e.classList.add("_mat-animation-noopable"),this._elementRef.nativeElement.appendChild(e),"function"==typeof requestAnimationFrame&&"NoopAnimations"!==this._animationMode?this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>{e.classList.add(i)})}):e.classList.add(i),e}_updateRenderedContent(e){const i=`${e??""}`.trim();this._isInitialized&&i&&!this._badgeElement&&(this._badgeElement=this._createBadgeElement()),this._badgeElement&&(this._badgeElement.textContent=i),this._content=i}_updateHostAriaDescription(e){this._ariaDescriber.removeDescription(this._elementRef.nativeElement,this.description),e&&this._ariaDescriber.describe(this._elementRef.nativeElement,e),this._description=e}_setColor(e){const i=this._elementRef.nativeElement.classList;i.remove(`mat-badge-${this._color}`),e&&i.add(`mat-badge-${e}`)}_clearExistingBadges(){const e=this._elementRef.nativeElement.querySelectorAll(`:scope > .${ER}`);for(const i of Array.from(e))i!==this._badgeElement&&i.remove()}}return n.\u0275fac=function(e){return new(e||n)(p(et),p(Je),p(l8),p(ho),p(qn,8))},n.\u0275dir=fe({type:n,selectors:[["","matBadge",""]],hostAttrs:[1,"mat-badge"],hostVars:20,hostBindings:function(e,i){2&e&&bt("mat-badge-overlap",i.overlap)("mat-badge-above",i.isAbove())("mat-badge-below",!i.isAbove())("mat-badge-before",!i.isAfter())("mat-badge-after",i.isAfter())("mat-badge-small","small"===i.size)("mat-badge-medium","medium"===i.size)("mat-badge-large","large"===i.size)("mat-badge-hidden",i.hidden||!i.content)("mat-badge-disabled",i.disabled)},inputs:{disabled:["matBadgeDisabled","disabled"],color:["matBadgeColor","color"],overlap:["matBadgeOverlap","overlap"],position:["matBadgePosition","position"],content:["matBadge","content"],description:["matBadgeDescription","description"],size:["matBadgeSize","size"],hidden:["matBadgeHidden","hidden"]},features:[Se]}),n})(),lte=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=ht({type:n}),n.\u0275inj=dt({imports:[hb,Lt,Lt]}),n})();const cte=["input"],ute=["label"],dte=function(n){return{enterDuration:n}},hte=["*"],pte=new me("mat-checkbox-default-options",{providedIn:"root",factory:DR});function DR(){return{color:"accent",clickAction:"check-indeterminate"}}let fte=0;const SR=DR(),mte={provide:or,useExisting:Xt(()=>pg),multi:!0};class AR{}const gte=md(da(Go(Rs(class{constructor(n){this._elementRef=n}}))));let _te=(()=>{class n extends gte{constructor(e,i,r,o,s,a,l){super(i),this._changeDetectorRef=r,this._ngZone=o,this._animationMode=a,this._options=l,this.ariaLabel="",this.ariaLabelledby=null,this.labelPosition="after",this.name=null,this.change=new He,this.indeterminateChange=new He,this._onTouched=()=>{},this._currentAnimationClass="",this._currentCheckState=0,this._controlValueAccessorChangeFn=()=>{},this._checked=!1,this._disabled=!1,this._indeterminate=!1,this._options=this._options||SR,this.color=this.defaultColor=this._options.color||SR.color,this.tabIndex=parseInt(s)||0,this.id=this._uniqueId=`${e}${++fte}`}get inputId(){return`${this.id||this._uniqueId}-input`}get required(){return this._required}set required(e){this._required=lt(e)}ngAfterViewInit(){this._syncIndeterminate(this._indeterminate)}get checked(){return this._checked}set checked(e){const i=lt(e);i!=this.checked&&(this._checked=i,this._changeDetectorRef.markForCheck())}get disabled(){return this._disabled}set disabled(e){const i=lt(e);i!==this.disabled&&(this._disabled=i,this._changeDetectorRef.markForCheck())}get indeterminate(){return this._indeterminate}set indeterminate(e){const i=e!=this._indeterminate;this._indeterminate=lt(e),i&&(this._transitionCheckState(this._indeterminate?3:this.checked?1:2),this.indeterminateChange.emit(this._indeterminate)),this._syncIndeterminate(this._indeterminate)}_isRippleDisabled(){return this.disableRipple||this.disabled}_onLabelTextChange(){this._changeDetectorRef.detectChanges()}writeValue(e){this.checked=!!e}registerOnChange(e){this._controlValueAccessorChangeFn=e}registerOnTouched(e){this._onTouched=e}setDisabledState(e){this.disabled=e}_getAriaChecked(){return this.checked?"true":this.indeterminate?"mixed":"false"}_transitionCheckState(e){let i=this._currentCheckState,r=this._getAnimationTargetElement();if(i!==e&&r&&(this._currentAnimationClass&&r.classList.remove(this._currentAnimationClass),this._currentAnimationClass=this._getAnimationClassForCheckStateTransition(i,e),this._currentCheckState=e,this._currentAnimationClass.length>0)){r.classList.add(this._currentAnimationClass);const o=this._currentAnimationClass;this._ngZone.runOutsideAngular(()=>{setTimeout(()=>{r.classList.remove(o)},1e3)})}}_emitChangeEvent(){this._controlValueAccessorChangeFn(this.checked),this.change.emit(this._createChangeEvent(this.checked)),this._inputElement&&(this._inputElement.nativeElement.checked=this.checked)}toggle(){this.checked=!this.checked,this._controlValueAccessorChangeFn(this.checked)}_handleInputClick(){const e=this._options?.clickAction;this.disabled||"noop"===e?!this.disabled&&"noop"===e&&(this._inputElement.nativeElement.checked=this.checked,this._inputElement.nativeElement.indeterminate=this.indeterminate):(this.indeterminate&&"check"!==e&&Promise.resolve().then(()=>{this._indeterminate=!1,this.indeterminateChange.emit(this._indeterminate)}),this._checked=!this._checked,this._transitionCheckState(this._checked?1:2),this._emitChangeEvent())}_onInteractionEvent(e){e.stopPropagation()}_onBlur(){Promise.resolve().then(()=>{this._onTouched(),this._changeDetectorRef.markForCheck()})}_getAnimationClassForCheckStateTransition(e,i){if("NoopAnimations"===this._animationMode)return"";switch(e){case 0:if(1===i)return this._animationClasses.uncheckedToChecked;if(3==i)return this._checked?this._animationClasses.checkedToIndeterminate:this._animationClasses.uncheckedToIndeterminate;break;case 2:return 1===i?this._animationClasses.uncheckedToChecked:this._animationClasses.uncheckedToIndeterminate;case 1:return 2===i?this._animationClasses.checkedToUnchecked:this._animationClasses.checkedToIndeterminate;case 3:return 1===i?this._animationClasses.indeterminateToChecked:this._animationClasses.indeterminateToUnchecked}return""}_syncIndeterminate(e){const i=this._inputElement;i&&(i.nativeElement.indeterminate=e)}}return n.\u0275fac=function(e){Yl()},n.\u0275dir=fe({type:n,viewQuery:function(e,i){if(1&e&&(De(cte,5),De(ute,5),De(xr,5)),2&e){let r;ce(r=ue())&&(i._inputElement=r.first),ce(r=ue())&&(i._labelElement=r.first),ce(r=ue())&&(i.ripple=r.first)}},inputs:{ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],ariaDescribedby:["aria-describedby","ariaDescribedby"],id:"id",required:"required",labelPosition:"labelPosition",name:"name",value:"value",checked:"checked",disabled:"disabled",indeterminate:"indeterminate"},outputs:{change:"change",indeterminateChange:"indeterminateChange"},features:[Se]}),n})(),pg=(()=>{class n extends _te{constructor(e,i,r,o,s,a,l){super("mat-checkbox-",e,i,o,s,a,l),this._focusMonitor=r,this._animationClasses={uncheckedToChecked:"mat-checkbox-anim-unchecked-checked",uncheckedToIndeterminate:"mat-checkbox-anim-unchecked-indeterminate",checkedToUnchecked:"mat-checkbox-anim-checked-unchecked",checkedToIndeterminate:"mat-checkbox-anim-checked-indeterminate",indeterminateToChecked:"mat-checkbox-anim-indeterminate-checked",indeterminateToUnchecked:"mat-checkbox-anim-indeterminate-unchecked"}}_createChangeEvent(e){const i=new AR;return i.source=this,i.checked=e,i}_getAnimationTargetElement(){return this._elementRef.nativeElement}ngAfterViewInit(){super.ngAfterViewInit(),this._focusMonitor.monitor(this._elementRef,!0).subscribe(e=>{e||this._onBlur()})}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef)}_onInputClick(e){e.stopPropagation(),super._handleInputClick()}focus(e,i){e?this._focusMonitor.focusVia(this._inputElement,e,i):this._inputElement.nativeElement.focus(i)}}return n.\u0275fac=function(e){return new(e||n)(p(Je),p(St),p(Do),p(et),Vr("tabindex"),p(qn,8),p(pte,8))},n.\u0275cmp=Ue({type:n,selectors:[["mat-checkbox"]],hostAttrs:[1,"mat-checkbox"],hostVars:14,hostBindings:function(e,i){2&e&&(Ho("id",i.id),rt("tabindex",null)("aria-label",null)("aria-labelledby",null),bt("mat-checkbox-indeterminate",i.indeterminate)("mat-checkbox-checked",i.checked)("mat-checkbox-disabled",i.disabled)("mat-checkbox-label-before","before"==i.labelPosition)("_mat-animation-noopable","NoopAnimations"===i._animationMode))},inputs:{disableRipple:"disableRipple",color:"color",tabIndex:"tabIndex"},exportAs:["matCheckbox"],features:[it([mte]),Se],ngContentSelectors:hte,decls:17,vars:21,consts:[[1,"mat-checkbox-layout"],["label",""],[1,"mat-checkbox-inner-container"],["type","checkbox",1,"mat-checkbox-input","cdk-visually-hidden",3,"id","required","checked","disabled","tabIndex","change","click"],["input",""],["matRipple","",1,"mat-checkbox-ripple","mat-focus-indicator",3,"matRippleTrigger","matRippleDisabled","matRippleRadius","matRippleCentered","matRippleAnimation"],[1,"mat-ripple-element","mat-checkbox-persistent-ripple"],[1,"mat-checkbox-frame"],[1,"mat-checkbox-background"],["version","1.1","focusable","false","viewBox","0 0 24 24","aria-hidden","true",1,"mat-checkbox-checkmark"],["fill","none","stroke","white","d","M4.1,12.7 9,17.6 20.3,6.3",1,"mat-checkbox-checkmark-path"],[1,"mat-checkbox-mixedmark"],[1,"mat-checkbox-label",3,"cdkObserveContent"],["checkboxLabel",""],[2,"display","none"]],template:function(e,i){if(1&e&&(Pn(),g(0,"label",0,1)(2,"span",2)(3,"input",3,4),W("change",function(o){return i._onInteractionEvent(o)})("click",function(o){return i._onInputClick(o)}),_(),g(5,"span",5),be(6,"span",6),_(),be(7,"span",7),g(8,"span",8),Rl(),g(9,"svg",9),be(10,"path",10),_(),function Zw(){!function oP(){It.lFrame.currentNamespace=null}()}(),be(11,"span",11),_()(),g(12,"span",12,13),W("cdkObserveContent",function(){return i._onLabelTextChange()}),g(14,"span",14),j(15,"\xa0"),_(),Bt(16),_()()),2&e){const r=Yt(1),o=Yt(13);rt("for",i.inputId),f(2),bt("mat-checkbox-inner-container-no-side-margin",!o.textContent||!o.textContent.trim()),f(1),v("id",i.inputId)("required",i.required)("checked",i.checked)("disabled",i.disabled)("tabIndex",i.tabIndex),rt("value",i.value)("name",i.name)("aria-label",i.ariaLabel||null)("aria-labelledby",i.ariaLabelledby)("aria-checked",i._getAriaChecked())("aria-describedby",i.ariaDescribedby),f(2),v("matRippleTrigger",r)("matRippleDisabled",i._isRippleDisabled())("matRippleRadius",20)("matRippleCentered",!0)("matRippleAnimation",Wn(19,dte,"NoopAnimations"===i._animationMode?0:150))}},dependencies:[xr,wf],styles:['@keyframes mat-checkbox-fade-in-background{0%{opacity:0}50%{opacity:1}}@keyframes mat-checkbox-fade-out-background{0%,50%{opacity:1}100%{opacity:0}}@keyframes mat-checkbox-unchecked-checked-checkmark-path{0%,50%{stroke-dashoffset:22.910259}50%{animation-timing-function:cubic-bezier(0, 0, 0.2, 0.1)}100%{stroke-dashoffset:0}}@keyframes mat-checkbox-unchecked-indeterminate-mixedmark{0%,68.2%{transform:scaleX(0)}68.2%{animation-timing-function:cubic-bezier(0, 0, 0, 1)}100%{transform:scaleX(1)}}@keyframes mat-checkbox-checked-unchecked-checkmark-path{from{animation-timing-function:cubic-bezier(0.4, 0, 1, 1);stroke-dashoffset:0}to{stroke-dashoffset:-22.910259}}@keyframes mat-checkbox-checked-indeterminate-checkmark{from{animation-timing-function:cubic-bezier(0, 0, 0.2, 0.1);opacity:1;transform:rotate(0deg)}to{opacity:0;transform:rotate(45deg)}}@keyframes mat-checkbox-indeterminate-checked-checkmark{from{animation-timing-function:cubic-bezier(0.14, 0, 0, 1);opacity:0;transform:rotate(45deg)}to{opacity:1;transform:rotate(360deg)}}@keyframes mat-checkbox-checked-indeterminate-mixedmark{from{animation-timing-function:cubic-bezier(0, 0, 0.2, 0.1);opacity:0;transform:rotate(-45deg)}to{opacity:1;transform:rotate(0deg)}}@keyframes mat-checkbox-indeterminate-checked-mixedmark{from{animation-timing-function:cubic-bezier(0.14, 0, 0, 1);opacity:1;transform:rotate(0deg)}to{opacity:0;transform:rotate(315deg)}}@keyframes mat-checkbox-indeterminate-unchecked-mixedmark{0%{animation-timing-function:linear;opacity:1;transform:scaleX(1)}32.8%,100%{opacity:0;transform:scaleX(0)}}.mat-checkbox-background,.mat-checkbox-frame{top:0;left:0;right:0;bottom:0;position:absolute;border-radius:2px;box-sizing:border-box;pointer-events:none}.mat-checkbox{display:inline-block;transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);cursor:pointer;-webkit-tap-highlight-color:rgba(0,0,0,0);position:relative}.mat-checkbox._mat-animation-noopable{transition:none !important;animation:none !important}.mat-checkbox .mat-ripple-element:not(.mat-checkbox-persistent-ripple){opacity:.16}.mat-checkbox .mat-checkbox-ripple{position:absolute;left:calc(50% - 20px);top:calc(50% - 20px);height:40px;width:40px;z-index:1;pointer-events:none}.mat-checkbox-layout{-webkit-user-select:none;user-select:none;cursor:inherit;align-items:baseline;vertical-align:middle;display:inline-flex;white-space:nowrap}.mat-checkbox-label{-webkit-user-select:auto;user-select:auto}.mat-checkbox-inner-container{display:inline-block;height:16px;line-height:0;margin:auto;margin-right:8px;order:0;position:relative;vertical-align:middle;white-space:nowrap;width:16px;flex-shrink:0}[dir=rtl] .mat-checkbox-inner-container{margin-left:8px;margin-right:auto}.mat-checkbox-inner-container-no-side-margin{margin-left:0;margin-right:0}.mat-checkbox-frame{background-color:rgba(0,0,0,0);transition:border-color 90ms cubic-bezier(0, 0, 0.2, 0.1);border-width:2px;border-style:solid}._mat-animation-noopable .mat-checkbox-frame{transition:none}.mat-checkbox-background{align-items:center;display:inline-flex;justify-content:center;transition:background-color 90ms cubic-bezier(0, 0, 0.2, 0.1),opacity 90ms cubic-bezier(0, 0, 0.2, 0.1);-webkit-print-color-adjust:exact;color-adjust:exact}._mat-animation-noopable .mat-checkbox-background{transition:none}.cdk-high-contrast-active .mat-checkbox .mat-checkbox-background{background:none}.mat-checkbox-persistent-ripple{display:block;width:100%;height:100%;transform:none}.mat-checkbox-inner-container:hover .mat-checkbox-persistent-ripple{opacity:.04}.mat-checkbox.cdk-keyboard-focused .mat-checkbox-persistent-ripple{opacity:.12}.mat-checkbox-persistent-ripple,.mat-checkbox.mat-checkbox-disabled .mat-checkbox-inner-container:hover .mat-checkbox-persistent-ripple{opacity:0}@media(hover: none){.mat-checkbox-inner-container:hover .mat-checkbox-persistent-ripple{display:none}}.mat-checkbox-checkmark{top:0;left:0;right:0;bottom:0;position:absolute;width:100%}.mat-checkbox-checkmark-path{stroke-dashoffset:22.910259;stroke-dasharray:22.910259;stroke-width:2.1333333333px}.cdk-high-contrast-black-on-white .mat-checkbox-checkmark-path{stroke:#000 !important}.mat-checkbox-mixedmark{width:calc(100% - 6px);height:2px;opacity:0;transform:scaleX(0) rotate(0deg);border-radius:2px}.cdk-high-contrast-active .mat-checkbox-mixedmark{height:0;border-top:solid 2px;margin-top:2px}.mat-checkbox-label-before .mat-checkbox-inner-container{order:1;margin-left:8px;margin-right:auto}[dir=rtl] .mat-checkbox-label-before .mat-checkbox-inner-container{margin-left:auto;margin-right:8px}.mat-checkbox-checked .mat-checkbox-checkmark{opacity:1}.mat-checkbox-checked .mat-checkbox-checkmark-path{stroke-dashoffset:0}.mat-checkbox-checked .mat-checkbox-mixedmark{transform:scaleX(1) rotate(-45deg)}.mat-checkbox-indeterminate .mat-checkbox-checkmark{opacity:0;transform:rotate(45deg)}.mat-checkbox-indeterminate .mat-checkbox-checkmark-path{stroke-dashoffset:0}.mat-checkbox-indeterminate .mat-checkbox-mixedmark{opacity:1;transform:scaleX(1) rotate(0deg)}.mat-checkbox-unchecked .mat-checkbox-background{background-color:rgba(0,0,0,0)}.mat-checkbox-disabled{cursor:default}.cdk-high-contrast-active .mat-checkbox-disabled{opacity:.5}.mat-checkbox-anim-unchecked-checked .mat-checkbox-background{animation:180ms linear 0ms mat-checkbox-fade-in-background}.mat-checkbox-anim-unchecked-checked .mat-checkbox-checkmark-path{animation:180ms linear 0ms mat-checkbox-unchecked-checked-checkmark-path}.mat-checkbox-anim-unchecked-indeterminate .mat-checkbox-background{animation:180ms linear 0ms mat-checkbox-fade-in-background}.mat-checkbox-anim-unchecked-indeterminate .mat-checkbox-mixedmark{animation:90ms linear 0ms mat-checkbox-unchecked-indeterminate-mixedmark}.mat-checkbox-anim-checked-unchecked .mat-checkbox-background{animation:180ms linear 0ms mat-checkbox-fade-out-background}.mat-checkbox-anim-checked-unchecked .mat-checkbox-checkmark-path{animation:90ms linear 0ms mat-checkbox-checked-unchecked-checkmark-path}.mat-checkbox-anim-checked-indeterminate .mat-checkbox-checkmark{animation:90ms linear 0ms mat-checkbox-checked-indeterminate-checkmark}.mat-checkbox-anim-checked-indeterminate .mat-checkbox-mixedmark{animation:90ms linear 0ms mat-checkbox-checked-indeterminate-mixedmark}.mat-checkbox-anim-indeterminate-checked .mat-checkbox-checkmark{animation:500ms linear 0ms mat-checkbox-indeterminate-checked-checkmark}.mat-checkbox-anim-indeterminate-checked .mat-checkbox-mixedmark{animation:500ms linear 0ms mat-checkbox-indeterminate-checked-mixedmark}.mat-checkbox-anim-indeterminate-unchecked .mat-checkbox-background{animation:180ms linear 0ms mat-checkbox-fade-out-background}.mat-checkbox-anim-indeterminate-unchecked .mat-checkbox-mixedmark{animation:300ms linear 0ms mat-checkbox-indeterminate-unchecked-mixedmark}.mat-checkbox-input{bottom:0;left:50%}.mat-checkbox-input:focus~.mat-focus-indicator::before{content:""}'],encapsulation:2,changeDetection:0}),n})(),TR=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=ht({type:n}),n.\u0275inj=dt({}),n})(),bte=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=ht({type:n}),n.\u0275inj=dt({imports:[ha,Lt,dd,TR,Lt,TR]}),n})();const Cte=["*"],xR=new me("MatChipRemove"),IR=new me("MatChipAvatar"),MR=new me("MatChipTrailingIcon");class wte{constructor(t){this._elementRef=t}}const Ete=md(da(Go(wte),"primary"),-1);let Ks=(()=>{class n extends Ete{constructor(e,i,r,o,s,a,l,c){super(e),this._ngZone=i,this._changeDetectorRef=s,this._hasFocus=!1,this.chipListSelectable=!0,this._chipListMultiple=!1,this._chipListDisabled=!1,this.role="option",this._selected=!1,this._selectable=!0,this._disabled=!1,this._removable=!0,this._onFocus=new N,this._onBlur=new N,this.selectionChange=new He,this.destroyed=new He,this.removed=new He,this._addHostClassName(),this._chipRippleTarget=a.createElement("div"),this._chipRippleTarget.classList.add("mat-chip-ripple"),this._elementRef.nativeElement.appendChild(this._chipRippleTarget),this._chipRipple=new _1(this,i,this._chipRippleTarget,r),this._chipRipple.setupTriggerEvents(e),this.rippleConfig=o||{},this._animationsDisabled="NoopAnimations"===l,this.tabIndex=null!=c&&parseInt(c)||-1}get rippleDisabled(){return this.disabled||this.disableRipple||this._animationsDisabled||!!this.rippleConfig.disabled}get selected(){return this._selected}set selected(e){const i=lt(e);i!==this._selected&&(this._selected=i,this._dispatchSelectionChange())}get value(){return void 0!==this._value?this._value:this._elementRef.nativeElement.textContent}set value(e){this._value=e}get selectable(){return this._selectable&&this.chipListSelectable}set selectable(e){this._selectable=lt(e)}get disabled(){return this._chipListDisabled||this._disabled}set disabled(e){this._disabled=lt(e)}get removable(){return this._removable}set removable(e){this._removable=lt(e)}get ariaSelected(){return this.selectable&&(this._chipListMultiple||this.selected)?this.selected.toString():null}_addHostClassName(){const e="mat-basic-chip",i=this._elementRef.nativeElement;i.hasAttribute(e)||i.tagName.toLowerCase()===e?i.classList.add(e):i.classList.add("mat-standard-chip")}ngOnDestroy(){this.destroyed.emit({chip:this}),this._chipRipple._removeTriggerEvents()}select(){this._selected||(this._selected=!0,this._dispatchSelectionChange(),this._changeDetectorRef.markForCheck())}deselect(){this._selected&&(this._selected=!1,this._dispatchSelectionChange(),this._changeDetectorRef.markForCheck())}selectViaInteraction(){this._selected||(this._selected=!0,this._dispatchSelectionChange(!0),this._changeDetectorRef.markForCheck())}toggleSelected(e=!1){return this._selected=!this.selected,this._dispatchSelectionChange(e),this._changeDetectorRef.markForCheck(),this.selected}focus(){this._hasFocus||(this._elementRef.nativeElement.focus(),this._onFocus.next({chip:this})),this._hasFocus=!0}remove(){this.removable&&this.removed.emit({chip:this})}_handleClick(e){this.disabled&&e.preventDefault()}_handleKeydown(e){if(!this.disabled)switch(e.keyCode){case 46:case 8:this.remove(),e.preventDefault();break;case 32:this.selectable&&this.toggleSelected(!0),e.preventDefault()}}_blur(){this._ngZone.onStable.pipe(sn(1)).subscribe(()=>{this._ngZone.run(()=>{this._hasFocus=!1,this._onBlur.next({chip:this})})})}_dispatchSelectionChange(e=!1){this.selectionChange.emit({source:this,isUserInput:e,selected:this._selected})}}return n.\u0275fac=function(e){return new(e||n)(p(Je),p(et),p(Nn),p(v1,8),p(St),p(ft),p(qn,8),Vr("tabindex"))},n.\u0275dir=fe({type:n,selectors:[["mat-basic-chip"],["","mat-basic-chip",""],["mat-chip"],["","mat-chip",""]],contentQueries:function(e,i,r){if(1&e&&(jt(r,IR,5),jt(r,MR,5),jt(r,xR,5)),2&e){let o;ce(o=ue())&&(i.avatar=o.first),ce(o=ue())&&(i.trailingIcon=o.first),ce(o=ue())&&(i.removeIcon=o.first)}},hostAttrs:[1,"mat-chip","mat-focus-indicator"],hostVars:15,hostBindings:function(e,i){1&e&&W("click",function(o){return i._handleClick(o)})("keydown",function(o){return i._handleKeydown(o)})("focus",function(){return i.focus()})("blur",function(){return i._blur()}),2&e&&(rt("tabindex",i.disabled?null:i.tabIndex)("role",i.role)("disabled",i.disabled||null)("aria-disabled",i.disabled.toString())("aria-selected",i.ariaSelected),bt("mat-chip-selected",i.selected)("mat-chip-with-avatar",i.avatar)("mat-chip-with-trailing-icon",i.trailingIcon||i.removeIcon)("mat-chip-disabled",i.disabled)("_mat-animation-noopable",i._animationsDisabled))},inputs:{color:"color",disableRipple:"disableRipple",tabIndex:"tabIndex",role:"role",selected:"selected",value:"value",selectable:"selectable",disabled:"disabled",removable:"removable"},outputs:{selectionChange:"selectionChange",destroyed:"destroyed",removed:"removed"},exportAs:["matChip"],features:[Se]}),n})(),bl=(()=>{class n{constructor(e,i){this._parentChip=e,"BUTTON"===i.nativeElement.nodeName&&i.nativeElement.setAttribute("type","button")}_handleClick(e){const i=this._parentChip;i.removable&&!i.disabled&&i.remove(),e.stopPropagation(),e.preventDefault()}}return n.\u0275fac=function(e){return new(e||n)(p(Ks),p(Je))},n.\u0275dir=fe({type:n,selectors:[["","matChipRemove",""]],hostAttrs:[1,"mat-chip-remove","mat-chip-trailing-icon"],hostBindings:function(e,i){1&e&&W("click",function(o){return i._handleClick(o)})},features:[it([{provide:xR,useExisting:n}])]}),n})();const kR=new me("mat-chips-default-options"),Ate=bb(class{constructor(n,t,e,i){this._defaultErrorStateMatcher=n,this._parentForm=t,this._parentFormGroup=e,this.ngControl=i,this.stateChanges=new N}});let Tte=0;class xte{constructor(t,e){this.source=t,this.value=e}}let Cl=(()=>{class n extends Ate{constructor(e,i,r,o,s,a,l){super(a,o,s,l),this._elementRef=e,this._changeDetectorRef=i,this._dir=r,this.controlType="mat-chip-list",this._lastDestroyedChipIndex=null,this._destroyed=new N,this._uid="mat-chip-list-"+Tte++,this._tabIndex=0,this._userTabIndex=null,this._onTouched=()=>{},this._onChange=()=>{},this._multiple=!1,this._compareWith=(c,u)=>c===u,this._disabled=!1,this.ariaOrientation="horizontal",this._selectable=!0,this.change=new He,this.valueChange=new He,this.ngControl&&(this.ngControl.valueAccessor=this)}get selected(){return this.multiple?this._selectionModel?.selected||[]:this._selectionModel?.selected[0]}get role(){return this._explicitRole?this._explicitRole:this.empty?null:"listbox"}set role(e){this._explicitRole=e}get multiple(){return this._multiple}set multiple(e){this._multiple=lt(e),this._syncChipsState()}get compareWith(){return this._compareWith}set compareWith(e){this._compareWith=e,this._selectionModel&&this._initializeSelection()}get value(){return this._value}set value(e){this.writeValue(e),this._value=e}get id(){return this._chipInput?this._chipInput.id:this._uid}get required(){return this._required??this.ngControl?.control?.hasValidator(vy.required)??!1}set required(e){this._required=lt(e),this.stateChanges.next()}get placeholder(){return this._chipInput?this._chipInput.placeholder:this._placeholder}set placeholder(e){this._placeholder=e,this.stateChanges.next()}get focused(){return this._chipInput&&this._chipInput.focused||this._hasFocusedChip()}get empty(){return(!this._chipInput||this._chipInput.empty)&&(!this.chips||0===this.chips.length)}get shouldLabelFloat(){return!this.empty||this.focused}get disabled(){return this.ngControl?!!this.ngControl.disabled:this._disabled}set disabled(e){this._disabled=lt(e),this._syncChipsState()}get selectable(){return this._selectable}set selectable(e){this._selectable=lt(e),this._syncChipsState()}set tabIndex(e){this._userTabIndex=e,this._tabIndex=e}get chipSelectionChanges(){return On(...this.chips.map(e=>e.selectionChange))}get chipFocusChanges(){return On(...this.chips.map(e=>e._onFocus))}get chipBlurChanges(){return On(...this.chips.map(e=>e._onBlur))}get chipRemoveChanges(){return On(...this.chips.map(e=>e.destroyed))}ngAfterContentInit(){this._keyManager=new Sf(this.chips).withWrap().withVerticalOrientation().withHomeAndEnd().withHorizontalOrientation(this._dir?this._dir.value:"ltr"),this._dir&&this._dir.change.pipe(Jt(this._destroyed)).subscribe(e=>this._keyManager.withHorizontalOrientation(e)),this._keyManager.tabOut.pipe(Jt(this._destroyed)).subscribe(()=>{this._allowFocusEscape()}),this.chips.changes.pipe(ni(null),Jt(this._destroyed)).subscribe(()=>{(this.disabled||!this.selectable)&&Promise.resolve().then(()=>{this._syncChipsState()}),this._resetChips(),this._initializeSelection(),this._updateTabIndex(),this._updateFocusForDestroyedChips(),this.stateChanges.next()})}ngOnInit(){this._selectionModel=new nl(this.multiple,void 0,!1),this.stateChanges.next()}ngDoCheck(){this.ngControl&&(this.updateErrorState(),this.ngControl.disabled!==this._disabled&&(this.disabled=!!this.ngControl.disabled))}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete(),this.stateChanges.complete(),this._dropSubscriptions()}registerInput(e){this._chipInput=e,this._elementRef.nativeElement.setAttribute("data-mat-chip-input",e.id)}setDescribedByIds(e){e.length?this._elementRef.nativeElement.setAttribute("aria-describedby",e.join(" ")):this._elementRef.nativeElement.removeAttribute("aria-describedby")}writeValue(e){this.chips&&this._setSelectionByValue(e,!1)}registerOnChange(e){this._onChange=e}registerOnTouched(e){this._onTouched=e}setDisabledState(e){this.disabled=e,this.stateChanges.next()}onContainerClick(e){this._originatesFromChip(e)||this.focus()}focus(e){this.disabled||this._chipInput&&this._chipInput.focused||(this.chips.length>0?(this._keyManager.setFirstItemActive(),this.stateChanges.next()):(this._focusInput(e),this.stateChanges.next()))}_focusInput(e){this._chipInput&&this._chipInput.focus(e)}_keydown(e){const i=e.target;i&&i.classList.contains("mat-chip")&&(this._keyManager.onKeydown(e),this.stateChanges.next())}_updateTabIndex(){this._tabIndex=this._userTabIndex||(0===this.chips.length?-1:0)}_updateFocusForDestroyedChips(){if(null!=this._lastDestroyedChipIndex)if(this.chips.length){const e=Math.min(this._lastDestroyedChipIndex,this.chips.length-1);this._keyManager.setActiveItem(e)}else this.focus();this._lastDestroyedChipIndex=null}_isValidIndex(e){return e>=0&&er.deselect()),Array.isArray(e))e.forEach(r=>this._selectValue(r,i)),this._sortValues();else{const r=this._selectValue(e,i);r&&i&&this._keyManager.setActiveItem(r)}}_selectValue(e,i=!0){const r=this.chips.find(o=>null!=o.value&&this._compareWith(o.value,e));return r&&(i?r.selectViaInteraction():r.select(),this._selectionModel.select(r)),r}_initializeSelection(){Promise.resolve().then(()=>{(this.ngControl||this._value)&&(this._setSelectionByValue(this.ngControl?this.ngControl.value:this._value,!1),this.stateChanges.next())})}_clearSelection(e){this._selectionModel.clear(),this.chips.forEach(i=>{i!==e&&i.deselect()}),this.stateChanges.next()}_sortValues(){this._multiple&&(this._selectionModel.clear(),this.chips.forEach(e=>{e.selected&&this._selectionModel.select(e)}),this.stateChanges.next())}_propagateChanges(e){let i=null;i=Array.isArray(this.selected)?this.selected.map(r=>r.value):this.selected?this.selected.value:e,this._value=i,this.change.emit(new xte(this,i)),this.valueChange.emit(i),this._onChange(i),this._changeDetectorRef.markForCheck()}_blur(){this._hasFocusedChip()||this._keyManager.setActiveItem(-1),this.disabled||(this._chipInput?setTimeout(()=>{this.focused||this._markAsTouched()}):this._markAsTouched())}_markAsTouched(){this._onTouched(),this._changeDetectorRef.markForCheck(),this.stateChanges.next()}_allowFocusEscape(){-1!==this._tabIndex&&(this._tabIndex=-1,setTimeout(()=>{this._tabIndex=this._userTabIndex||0,this._changeDetectorRef.markForCheck()}))}_resetChips(){this._dropSubscriptions(),this._listenToChipsFocus(),this._listenToChipsSelection(),this._listenToChipsRemoved()}_dropSubscriptions(){this._chipFocusSubscription&&(this._chipFocusSubscription.unsubscribe(),this._chipFocusSubscription=null),this._chipBlurSubscription&&(this._chipBlurSubscription.unsubscribe(),this._chipBlurSubscription=null),this._chipSelectionSubscription&&(this._chipSelectionSubscription.unsubscribe(),this._chipSelectionSubscription=null),this._chipRemoveSubscription&&(this._chipRemoveSubscription.unsubscribe(),this._chipRemoveSubscription=null)}_listenToChipsSelection(){this._chipSelectionSubscription=this.chipSelectionChanges.subscribe(e=>{e.source.selected?this._selectionModel.select(e.source):this._selectionModel.deselect(e.source),this.multiple||this.chips.forEach(i=>{!this._selectionModel.isSelected(i)&&i.selected&&i.deselect()}),e.isUserInput&&this._propagateChanges()})}_listenToChipsFocus(){this._chipFocusSubscription=this.chipFocusChanges.subscribe(e=>{let i=this.chips.toArray().indexOf(e.chip);this._isValidIndex(i)&&this._keyManager.updateActiveItem(i),this.stateChanges.next()}),this._chipBlurSubscription=this.chipBlurChanges.subscribe(()=>{this._blur(),this.stateChanges.next()})}_listenToChipsRemoved(){this._chipRemoveSubscription=this.chipRemoveChanges.subscribe(e=>{const i=e.chip,r=this.chips.toArray().indexOf(e.chip);this._isValidIndex(r)&&i._hasFocus&&(this._lastDestroyedChipIndex=r)})}_originatesFromChip(e){let i=e.target;for(;i&&i!==this._elementRef.nativeElement;){if(i.classList.contains("mat-chip"))return!0;i=i.parentElement}return!1}_hasFocusedChip(){return this.chips&&this.chips.some(e=>e._hasFocus)}_syncChipsState(){this.chips&&this.chips.forEach(e=>{e._chipListDisabled=this._disabled,e._chipListMultiple=this.multiple,e.chipListSelectable=this._selectable})}}return n.\u0275fac=function(e){return new(e||n)(p(Je),p(St),p(Xi,8),p(_c,8),p(vc,8),p(gd),p(bo,10))},n.\u0275cmp=Ue({type:n,selectors:[["mat-chip-list"]],contentQueries:function(e,i,r){if(1&e&&jt(r,Ks,5),2&e){let o;ce(o=ue())&&(i.chips=o)}},hostAttrs:[1,"mat-chip-list"],hostVars:14,hostBindings:function(e,i){1&e&&W("focus",function(){return i.focus()})("blur",function(){return i._blur()})("keydown",function(o){return i._keydown(o)}),2&e&&(Ho("id",i._uid),rt("tabindex",i.disabled?null:i._tabIndex)("aria-required",i.role?i.required:null)("aria-disabled",i.disabled.toString())("aria-invalid",i.errorState)("aria-multiselectable",i.multiple)("role",i.role)("aria-orientation",i.ariaOrientation),bt("mat-chip-list-disabled",i.disabled)("mat-chip-list-invalid",i.errorState)("mat-chip-list-required",i.required))},inputs:{role:"role",userAriaDescribedBy:["aria-describedby","userAriaDescribedBy"],errorStateMatcher:"errorStateMatcher",multiple:"multiple",compareWith:"compareWith",value:"value",required:"required",placeholder:"placeholder",disabled:"disabled",ariaOrientation:["aria-orientation","ariaOrientation"],selectable:"selectable",tabIndex:"tabIndex"},outputs:{change:"change",valueChange:"valueChange"},exportAs:["matChipList"],features:[it([{provide:Ed,useExisting:n}]),Se],ngContentSelectors:Cte,decls:2,vars:0,consts:[[1,"mat-chip-list-wrapper"]],template:function(e,i){1&e&&(Pn(),g(0,"div",0),Bt(1),_())},styles:['.mat-chip{position:relative;box-sizing:border-box;-webkit-tap-highlight-color:rgba(0,0,0,0);border:none;-webkit-appearance:none;-moz-appearance:none}.mat-chip::before{margin:calc(calc(var(--mat-focus-indicator-border-width, 3px) + 2px) * -1)}.mat-standard-chip{transition:box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);display:inline-flex;padding:7px 12px;border-radius:16px;align-items:center;cursor:default;min-height:32px;height:1px}.mat-standard-chip._mat-animation-noopable{transition:none !important;animation:none !important}.mat-standard-chip .mat-chip-remove{border:none;-webkit-appearance:none;-moz-appearance:none;padding:0;background:none}.mat-standard-chip .mat-chip-remove.mat-icon,.mat-standard-chip .mat-chip-remove .mat-icon{width:18px;height:18px;font-size:18px}.mat-standard-chip::after{top:0;left:0;right:0;bottom:0;position:absolute;border-radius:inherit;opacity:0;content:"";pointer-events:none;transition:opacity 200ms cubic-bezier(0.35, 0, 0.25, 1)}.mat-standard-chip:hover::after{opacity:.12}.mat-standard-chip:focus{outline:none}.mat-standard-chip:focus::after{opacity:.16}.cdk-high-contrast-active .mat-standard-chip{outline:solid 1px}.cdk-high-contrast-active .mat-standard-chip.mat-chip-selected{outline-width:3px}.mat-standard-chip.mat-chip-disabled::after{opacity:0}.mat-standard-chip.mat-chip-disabled .mat-chip-remove,.mat-standard-chip.mat-chip-disabled .mat-chip-trailing-icon{cursor:default}.mat-standard-chip.mat-chip-with-trailing-icon.mat-chip-with-avatar,.mat-standard-chip.mat-chip-with-avatar{padding-top:0;padding-bottom:0}.mat-standard-chip.mat-chip-with-trailing-icon.mat-chip-with-avatar{padding-right:8px;padding-left:0}[dir=rtl] .mat-standard-chip.mat-chip-with-trailing-icon.mat-chip-with-avatar{padding-left:8px;padding-right:0}.mat-standard-chip.mat-chip-with-trailing-icon{padding-top:7px;padding-bottom:7px;padding-right:8px;padding-left:12px}[dir=rtl] .mat-standard-chip.mat-chip-with-trailing-icon{padding-left:8px;padding-right:12px}.mat-standard-chip.mat-chip-with-avatar{padding-left:0;padding-right:12px}[dir=rtl] .mat-standard-chip.mat-chip-with-avatar{padding-right:0;padding-left:12px}.mat-standard-chip .mat-chip-avatar{width:24px;height:24px;margin-right:8px;margin-left:4px}[dir=rtl] .mat-standard-chip .mat-chip-avatar{margin-left:8px;margin-right:4px}.mat-standard-chip .mat-chip-remove,.mat-standard-chip .mat-chip-trailing-icon{width:18px;height:18px;cursor:pointer}.mat-standard-chip .mat-chip-remove,.mat-standard-chip .mat-chip-trailing-icon{margin-left:8px;margin-right:0}[dir=rtl] .mat-standard-chip .mat-chip-remove,[dir=rtl] .mat-standard-chip .mat-chip-trailing-icon{margin-right:8px;margin-left:0}.mat-chip-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit;overflow:hidden;transform:translateZ(0)}.mat-chip-list-wrapper{display:flex;flex-direction:row;flex-wrap:wrap;align-items:center;margin:-4px}.mat-chip-list-wrapper input.mat-input-element,.mat-chip-list-wrapper .mat-standard-chip{margin:4px}.mat-chip-list-stacked .mat-chip-list-wrapper{flex-direction:column;align-items:flex-start}.mat-chip-list-stacked .mat-chip-list-wrapper .mat-standard-chip{width:100%}.mat-chip-avatar{border-radius:50%;justify-content:center;align-items:center;display:flex;overflow:hidden;object-fit:cover}input.mat-chip-input{width:150px;margin:4px;flex:1 0 150px}'],encapsulation:2,changeDetection:0}),n})(),Ite=0,wl=(()=>{class n{constructor(e,i){this._elementRef=e,this._defaultOptions=i,this.focused=!1,this._addOnBlur=!1,this.separatorKeyCodes=this._defaultOptions.separatorKeyCodes,this.chipEnd=new He,this.placeholder="",this.id="mat-chip-list-input-"+Ite++,this._disabled=!1,this.inputElement=this._elementRef.nativeElement}set chipList(e){e&&(this._chipList=e,this._chipList.registerInput(this))}get addOnBlur(){return this._addOnBlur}set addOnBlur(e){this._addOnBlur=lt(e)}get disabled(){return this._disabled||this._chipList&&this._chipList.disabled}set disabled(e){this._disabled=lt(e)}get empty(){return!this.inputElement.value}ngOnChanges(){this._chipList.stateChanges.next()}ngOnDestroy(){this.chipEnd.complete()}ngAfterContentInit(){this._focusLastChipOnBackspace=this.empty}_keydown(e){if(e){if(9===e.keyCode&&!yi(e,"shiftKey")&&this._chipList._allowFocusEscape(),8===e.keyCode&&this._focusLastChipOnBackspace)return this._chipList._keyManager.setLastItemActive(),void e.preventDefault();this._focusLastChipOnBackspace=!1}this._emitChipEnd(e)}_keyup(e){!this._focusLastChipOnBackspace&&8===e.keyCode&&this.empty&&(this._focusLastChipOnBackspace=!0,e.preventDefault())}_blur(){this.addOnBlur&&this._emitChipEnd(),this.focused=!1,this._chipList.focused||this._chipList._blur(),this._chipList.stateChanges.next()}_focus(){this.focused=!0,this._focusLastChipOnBackspace=this.empty,this._chipList.stateChanges.next()}_emitChipEnd(e){!this.inputElement.value&&!!e&&this._chipList._keydown(e),(!e||this._isSeparatorKey(e))&&(this.chipEnd.emit({input:this.inputElement,value:this.inputElement.value,chipInput:this}),e?.preventDefault())}_onInput(){this._chipList.stateChanges.next()}focus(e){this.inputElement.focus(e)}clear(){this.inputElement.value="",this._focusLastChipOnBackspace=!0}_isSeparatorKey(e){return!yi(e)&&new Set(this.separatorKeyCodes).has(e.keyCode)}}return n.\u0275fac=function(e){return new(e||n)(p(Je),p(kR))},n.\u0275dir=fe({type:n,selectors:[["input","matChipInputFor",""]],hostAttrs:[1,"mat-chip-input","mat-input-element"],hostVars:5,hostBindings:function(e,i){1&e&&W("keydown",function(o){return i._keydown(o)})("keyup",function(o){return i._keyup(o)})("blur",function(){return i._blur()})("focus",function(){return i._focus()})("input",function(){return i._onInput()}),2&e&&(Ho("id",i.id),rt("disabled",i.disabled||null)("placeholder",i.placeholder||null)("aria-invalid",i._chipList&&i._chipList.ngControl?i._chipList.ngControl.invalid:null)("aria-required",i._chipList&&i._chipList.required||null))},inputs:{chipList:["matChipInputFor","chipList"],addOnBlur:["matChipInputAddOnBlur","addOnBlur"],separatorKeyCodes:["matChipInputSeparatorKeyCodes","separatorKeyCodes"],placeholder:"placeholder",id:"id",disabled:"disabled"},outputs:{chipEnd:"matChipInputTokenEnd"},exportAs:["matChipInput","matChipInputFor"],features:[Rn]}),n})(),Mte=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=ht({type:n}),n.\u0275inj=dt({providers:[gd,{provide:kR,useValue:{separatorKeyCodes:[13]}}],imports:[Lt]}),n})();function Rte(n){const{subscriber:t,counter:e,period:i}=n;t.next(e),this.schedule({subscriber:t,counter:e+1,period:i},i)}function _w(n,t,e){for(let i in t)if(t.hasOwnProperty(i)){const r=t[i];r?n.setProperty(i,r,e?.has(i)?"important":""):n.removeProperty(i)}return n}function ou(n,t){const e=t?"":"none";_w(n.style,{"touch-action":t?"":"none","-webkit-user-drag":t?"":"none","-webkit-tap-highlight-color":t?"":"transparent","user-select":e,"-ms-user-select":e,"-webkit-user-select":e,"-moz-user-select":e})}function RR(n,t,e){_w(n.style,{position:t?"":"fixed",top:t?"":"0",opacity:t?"":"0",left:t?"":"-999em"},e)}function fg(n,t){return t&&"none"!=t?n+" "+t:n}function OR(n){const t=n.toLowerCase().indexOf("ms")>-1?1:1e3;return parseFloat(n)*t}function vw(n,t){return n.getPropertyValue(t).split(",").map(i=>i.trim())}function yw(n){const t=n.getBoundingClientRect();return{top:t.top,right:t.right,bottom:t.bottom,left:t.left,width:t.width,height:t.height,x:t.x,y:t.y}}function bw(n,t,e){const{top:i,bottom:r,left:o,right:s}=n;return e>=i&&e<=r&&t>=o&&t<=s}function vh(n,t,e){n.top+=t,n.bottom=n.top+n.height,n.left+=e,n.right=n.left+n.width}function PR(n,t,e,i){const{top:r,right:o,bottom:s,left:a,width:l,height:c}=n,u=l*t,d=c*t;return i>r-d&&ia-u&&e{this.positions.set(e,{scrollPosition:{top:e.scrollTop,left:e.scrollLeft},clientRect:yw(e)})})}handleScroll(t){const e=Qr(t),i=this.positions.get(e);if(!i)return null;const r=i.scrollPosition;let o,s;if(e===this._document){const c=this.getViewportScrollPosition();o=c.top,s=c.left}else o=e.scrollTop,s=e.scrollLeft;const a=r.top-o,l=r.left-s;return this.positions.forEach((c,u)=>{c.clientRect&&e!==u&&e.contains(u)&&vh(c.clientRect,a,l)}),r.top=o,r.left=s,{top:a,left:l}}getViewportScrollPosition(){return{top:window.scrollY,left:window.scrollX}}}function NR(n){const t=n.cloneNode(!0),e=t.querySelectorAll("[id]"),i=n.nodeName.toLowerCase();t.removeAttribute("id");for(let r=0;r{if(this.beforeStarted.next(),this._handles.length){const l=this._getTargetHandle(a);l&&!this._disabledHandles.has(l)&&!this.disabled&&this._initializeDragSequence(l,a)}else this.disabled||this._initializeDragSequence(this._rootElement,a)},this._pointerMove=a=>{const l=this._getPointerPositionOnPage(a);if(!this._hasStartedDragging){if(Math.abs(l.x-this._pickupPositionOnPage.x)+Math.abs(l.y-this._pickupPositionOnPage.y)>=this._config.dragStartThreshold){const m=Date.now()>=this._dragStartTime+this._getDragStartDelay(a),y=this._dropContainer;if(!m)return void this._endDragSequence(a);(!y||!y.isDragging()&&!y.isReceiving())&&(a.preventDefault(),this._hasStartedDragging=!0,this._ngZone.run(()=>this._startDragSequence(a)))}return}a.preventDefault();const c=this._getConstrainedPointerPosition(l);if(this._hasMoved=!0,this._lastKnownPointerPosition=l,this._updatePointerDirectionDelta(c),this._dropContainer)this._updateActiveDropContainer(c,l);else{const u=this.constrainPosition?this._initialClientRect:this._pickupPositionOnPage,d=this._activeTransform;d.x=c.x-u.x+this._passiveTransform.x,d.y=c.y-u.y+this._passiveTransform.y,this._applyRootElementTransform(d.x,d.y)}this._moveEvents.observers.length&&this._ngZone.run(()=>{this._moveEvents.next({source:this,pointerPosition:c,event:a,distance:this._getDragDistance(c),delta:this._pointerDirectionDelta})})},this._pointerUp=a=>{this._endDragSequence(a)},this._nativeDragStart=a=>{if(this._handles.length){const l=this._getTargetHandle(a);l&&!this._disabledHandles.has(l)&&!this.disabled&&a.preventDefault()}else this.disabled||a.preventDefault()},this.withRootElement(t).withParent(e.parentDragRef||null),this._parentPositions=new LR(i),s.registerDragItem(this)}get disabled(){return this._disabled||!(!this._dropContainer||!this._dropContainer.disabled)}set disabled(t){const e=lt(t);e!==this._disabled&&(this._disabled=e,this._toggleNativeDragInteractions(),this._handles.forEach(i=>ou(i,e)))}getPlaceholderElement(){return this._placeholder}getRootElement(){return this._rootElement}getVisibleElement(){return this.isDragging()?this.getPlaceholderElement():this.getRootElement()}withHandles(t){this._handles=t.map(i=>Qn(i)),this._handles.forEach(i=>ou(i,this.disabled)),this._toggleNativeDragInteractions();const e=new Set;return this._disabledHandles.forEach(i=>{this._handles.indexOf(i)>-1&&e.add(i)}),this._disabledHandles=e,this}withPreviewTemplate(t){return this._previewTemplate=t,this}withPlaceholderTemplate(t){return this._placeholderTemplate=t,this}withRootElement(t){const e=Qn(t);return e!==this._rootElement&&(this._rootElement&&this._removeRootElementListeners(this._rootElement),this._ngZone.runOutsideAngular(()=>{e.addEventListener("mousedown",this._pointerDown,mg),e.addEventListener("touchstart",this._pointerDown,HR),e.addEventListener("dragstart",this._nativeDragStart,mg)}),this._initialTransform=void 0,this._rootElement=e),typeof SVGElement<"u"&&this._rootElement instanceof SVGElement&&(this._ownerSVGElement=this._rootElement.ownerSVGElement),this}withBoundaryElement(t){return this._boundaryElement=t?Qn(t):null,this._resizeSubscription.unsubscribe(),t&&(this._resizeSubscription=this._viewportRuler.change(10).subscribe(()=>this._containInsideBoundaryOnResize())),this}withParent(t){return this._parentDragRef=t,this}dispose(){this._removeRootElementListeners(this._rootElement),this.isDragging()&&this._rootElement?.remove(),this._anchor?.remove(),this._destroyPreview(),this._destroyPlaceholder(),this._dragDropRegistry.removeDragItem(this),this._removeSubscriptions(),this.beforeStarted.complete(),this.started.complete(),this.released.complete(),this.ended.complete(),this.entered.complete(),this.exited.complete(),this.dropped.complete(),this._moveEvents.complete(),this._handles=[],this._disabledHandles.clear(),this._dropContainer=void 0,this._resizeSubscription.unsubscribe(),this._parentPositions.clear(),this._boundaryElement=this._rootElement=this._ownerSVGElement=this._placeholderTemplate=this._previewTemplate=this._anchor=this._parentDragRef=null}isDragging(){return this._hasStartedDragging&&this._dragDropRegistry.isDragging(this)}reset(){this._rootElement.style.transform=this._initialTransform||"",this._activeTransform={x:0,y:0},this._passiveTransform={x:0,y:0}}disableHandle(t){!this._disabledHandles.has(t)&&this._handles.indexOf(t)>-1&&(this._disabledHandles.add(t),ou(t,!0))}enableHandle(t){this._disabledHandles.has(t)&&(this._disabledHandles.delete(t),ou(t,this.disabled))}withDirection(t){return this._direction=t,this}_withDropContainer(t){this._dropContainer=t}getFreeDragPosition(){const t=this.isDragging()?this._activeTransform:this._passiveTransform;return{x:t.x,y:t.y}}setFreeDragPosition(t){return this._activeTransform={x:0,y:0},this._passiveTransform.x=t.x,this._passiveTransform.y=t.y,this._dropContainer||this._applyRootElementTransform(t.x,t.y),this}withPreviewContainer(t){return this._previewContainer=t,this}_sortFromLastPointerPosition(){const t=this._lastKnownPointerPosition;t&&this._dropContainer&&this._updateActiveDropContainer(this._getConstrainedPointerPosition(t),t)}_removeSubscriptions(){this._pointerMoveSubscription.unsubscribe(),this._pointerUpSubscription.unsubscribe(),this._scrollSubscription.unsubscribe()}_destroyPreview(){this._preview?.remove(),this._previewRef?.destroy(),this._preview=this._previewRef=null}_destroyPlaceholder(){this._placeholder?.remove(),this._placeholderRef?.destroy(),this._placeholder=this._placeholderRef=null}_endDragSequence(t){if(this._dragDropRegistry.isDragging(this)&&(this._removeSubscriptions(),this._dragDropRegistry.stopDragging(this),this._toggleNativeDragInteractions(),this._handles&&(this._rootElement.style.webkitTapHighlightColor=this._rootElementTapHighlight),this._hasStartedDragging))if(this.released.next({source:this,event:t}),this._dropContainer)this._dropContainer._stopScrolling(),this._animatePreviewToPlaceholder().then(()=>{this._cleanupDragArtifacts(t),this._cleanupCachedDimensions(),this._dragDropRegistry.stopDragging(this)});else{this._passiveTransform.x=this._activeTransform.x;const e=this._getPointerPositionOnPage(t);this._passiveTransform.y=this._activeTransform.y,this._ngZone.run(()=>{this.ended.next({source:this,distance:this._getDragDistance(e),dropPoint:e,event:t})}),this._cleanupCachedDimensions(),this._dragDropRegistry.stopDragging(this)}}_startDragSequence(t){yh(t)&&(this._lastTouchEventTime=Date.now()),this._toggleNativeDragInteractions();const e=this._dropContainer;if(e){const i=this._rootElement,r=i.parentNode,o=this._placeholder=this._createPlaceholderElement(),s=this._anchor=this._anchor||this._document.createComment(""),a=this._getShadowRoot();r.insertBefore(s,i),this._initialTransform=i.style.transform||"",this._preview=this._createPreviewElement(),RR(i,!1,Cw),this._document.body.appendChild(r.replaceChild(o,i)),this._getPreviewInsertionPoint(r,a).appendChild(this._preview),this.started.next({source:this,event:t}),e.start(),this._initialContainer=e,this._initialIndex=e.getItemIndex(this)}else this.started.next({source:this,event:t}),this._initialContainer=this._initialIndex=void 0;this._parentPositions.cache(e?e.getScrollableParents():[])}_initializeDragSequence(t,e){this._parentDragRef&&e.stopPropagation();const i=this.isDragging(),r=yh(e),o=!r&&0!==e.button,s=this._rootElement,a=Qr(e),l=!r&&this._lastTouchEventTime&&this._lastTouchEventTime+800>Date.now(),c=r?xf(e):Tf(e);if(a&&a.draggable&&"mousedown"===e.type&&e.preventDefault(),i||o||l||c)return;if(this._handles.length){const h=s.style;this._rootElementTapHighlight=h.webkitTapHighlightColor||"",h.webkitTapHighlightColor="transparent"}this._hasStartedDragging=this._hasMoved=!1,this._removeSubscriptions(),this._initialClientRect=this._rootElement.getBoundingClientRect(),this._pointerMoveSubscription=this._dragDropRegistry.pointerMove.subscribe(this._pointerMove),this._pointerUpSubscription=this._dragDropRegistry.pointerUp.subscribe(this._pointerUp),this._scrollSubscription=this._dragDropRegistry.scrolled(this._getShadowRoot()).subscribe(h=>this._updateOnScroll(h)),this._boundaryElement&&(this._boundaryRect=yw(this._boundaryElement));const u=this._previewTemplate;this._pickupPositionInElement=u&&u.template&&!u.matchSize?{x:0,y:0}:this._getPointerPositionInElement(this._initialClientRect,t,e);const d=this._pickupPositionOnPage=this._lastKnownPointerPosition=this._getPointerPositionOnPage(e);this._pointerDirectionDelta={x:0,y:0},this._pointerPositionAtLastDirectionChange={x:d.x,y:d.y},this._dragStartTime=Date.now(),this._dragDropRegistry.startDragging(this,e)}_cleanupDragArtifacts(t){RR(this._rootElement,!0,Cw),this._anchor.parentNode.replaceChild(this._rootElement,this._anchor),this._destroyPreview(),this._destroyPlaceholder(),this._initialClientRect=this._boundaryRect=this._previewRect=this._initialTransform=void 0,this._ngZone.run(()=>{const e=this._dropContainer,i=e.getItemIndex(this),r=this._getPointerPositionOnPage(t),o=this._getDragDistance(r),s=e._isOverContainer(r.x,r.y);this.ended.next({source:this,distance:o,dropPoint:r,event:t}),this.dropped.next({item:this,currentIndex:i,previousIndex:this._initialIndex,container:e,previousContainer:this._initialContainer,isPointerOverContainer:s,distance:o,dropPoint:r,event:t}),e.drop(this,i,this._initialIndex,this._initialContainer,s,o,r,t),this._dropContainer=this._initialContainer})}_updateActiveDropContainer({x:t,y:e},{x:i,y:r}){let o=this._initialContainer._getSiblingContainerFromPosition(this,t,e);!o&&this._dropContainer!==this._initialContainer&&this._initialContainer._isOverContainer(t,e)&&(o=this._initialContainer),o&&o!==this._dropContainer&&this._ngZone.run(()=>{this.exited.next({item:this,container:this._dropContainer}),this._dropContainer.exit(this),this._dropContainer=o,this._dropContainer.enter(this,t,e,o===this._initialContainer&&o.sortingDisabled?this._initialIndex:void 0),this.entered.next({item:this,container:o,currentIndex:o.getItemIndex(this)})}),this.isDragging()&&(this._dropContainer._startScrollingIfNecessary(i,r),this._dropContainer._sortItem(this,t,e,this._pointerDirectionDelta),this.constrainPosition?this._applyPreviewTransform(t,e):this._applyPreviewTransform(t-this._pickupPositionInElement.x,e-this._pickupPositionInElement.y))}_createPreviewElement(){const t=this._previewTemplate,e=this.previewClass,i=t?t.template:null;let r;if(i&&t){const o=t.matchSize?this._initialClientRect:null,s=t.viewContainer.createEmbeddedView(i,t.context);s.detectChanges(),r=UR(s,this._document),this._previewRef=s,t.matchSize?qR(r,o):r.style.transform=gg(this._pickupPositionOnPage.x,this._pickupPositionOnPage.y)}else r=NR(this._rootElement),qR(r,this._initialClientRect),this._initialTransform&&(r.style.transform=this._initialTransform);return _w(r.style,{"pointer-events":"none",margin:"0",position:"fixed",top:"0",left:"0","z-index":`${this._config.zIndex||1e3}`},Cw),ou(r,!1),r.classList.add("cdk-drag-preview"),r.setAttribute("dir",this._direction),e&&(Array.isArray(e)?e.forEach(o=>r.classList.add(o)):r.classList.add(e)),r}_animatePreviewToPlaceholder(){if(!this._hasMoved)return Promise.resolve();const t=this._placeholder.getBoundingClientRect();this._preview.classList.add("cdk-drag-animating"),this._applyPreviewTransform(t.left,t.top);const e=function Ote(n){const t=getComputedStyle(n),e=vw(t,"transition-property"),i=e.find(a=>"transform"===a||"all"===a);if(!i)return 0;const r=e.indexOf(i),o=vw(t,"transition-duration"),s=vw(t,"transition-delay");return OR(o[r])+OR(s[r])}(this._preview);return 0===e?Promise.resolve():this._ngZone.runOutsideAngular(()=>new Promise(i=>{const r=s=>{(!s||Qr(s)===this._preview&&"transform"===s.propertyName)&&(this._preview?.removeEventListener("transitionend",r),i(),clearTimeout(o))},o=setTimeout(r,1.5*e);this._preview.addEventListener("transitionend",r)}))}_createPlaceholderElement(){const t=this._placeholderTemplate,e=t?t.template:null;let i;return e?(this._placeholderRef=t.viewContainer.createEmbeddedView(e,t.context),this._placeholderRef.detectChanges(),i=UR(this._placeholderRef,this._document)):i=NR(this._rootElement),i.style.pointerEvents="none",i.classList.add("cdk-drag-placeholder"),i}_getPointerPositionInElement(t,e,i){const r=e===this._rootElement?null:e,o=r?r.getBoundingClientRect():t,s=yh(i)?i.targetTouches[0]:i,a=this._getViewportScrollPosition();return{x:o.left-t.left+(s.pageX-o.left-a.left),y:o.top-t.top+(s.pageY-o.top-a.top)}}_getPointerPositionOnPage(t){const e=this._getViewportScrollPosition(),i=yh(t)?t.touches[0]||t.changedTouches[0]||{pageX:0,pageY:0}:t,r=i.pageX-e.left,o=i.pageY-e.top;if(this._ownerSVGElement){const s=this._ownerSVGElement.getScreenCTM();if(s){const a=this._ownerSVGElement.createSVGPoint();return a.x=r,a.y=o,a.matrixTransform(s.inverse())}}return{x:r,y:o}}_getConstrainedPointerPosition(t){const e=this._dropContainer?this._dropContainer.lockAxis:null;let{x:i,y:r}=this.constrainPosition?this.constrainPosition(t,this,this._initialClientRect,this._pickupPositionInElement):t;if("x"===this.lockAxis||"x"===e?r=this._pickupPositionOnPage.y:("y"===this.lockAxis||"y"===e)&&(i=this._pickupPositionOnPage.x),this._boundaryRect){const{x:o,y:s}=this._pickupPositionInElement,a=this._boundaryRect,{width:l,height:c}=this._getPreviewRect(),u=a.top+s,d=a.bottom-(c-s);i=VR(i,a.left+o,a.right-(l-o)),r=VR(r,u,d)}return{x:i,y:r}}_updatePointerDirectionDelta(t){const{x:e,y:i}=t,r=this._pointerDirectionDelta,o=this._pointerPositionAtLastDirectionChange,s=Math.abs(e-o.x),a=Math.abs(i-o.y);return s>this._config.pointerDirectionChangeThreshold&&(r.x=e>o.x?1:-1,o.x=e),a>this._config.pointerDirectionChangeThreshold&&(r.y=i>o.y?1:-1,o.y=i),r}_toggleNativeDragInteractions(){if(!this._rootElement||!this._handles)return;const t=this._handles.length>0||!this.isDragging();t!==this._nativeInteractionsEnabled&&(this._nativeInteractionsEnabled=t,ou(this._rootElement,t))}_removeRootElementListeners(t){t.removeEventListener("mousedown",this._pointerDown,mg),t.removeEventListener("touchstart",this._pointerDown,HR),t.removeEventListener("dragstart",this._nativeDragStart,mg)}_applyRootElementTransform(t,e){const i=gg(t,e),r=this._rootElement.style;null==this._initialTransform&&(this._initialTransform=r.transform&&"none"!=r.transform?r.transform:""),r.transform=fg(i,this._initialTransform)}_applyPreviewTransform(t,e){const i=this._previewTemplate?.template?void 0:this._initialTransform,r=gg(t,e);this._preview.style.transform=fg(r,i)}_getDragDistance(t){const e=this._pickupPositionOnPage;return e?{x:t.x-e.x,y:t.y-e.y}:{x:0,y:0}}_cleanupCachedDimensions(){this._boundaryRect=this._previewRect=void 0,this._parentPositions.clear()}_containInsideBoundaryOnResize(){let{x:t,y:e}=this._passiveTransform;if(0===t&&0===e||this.isDragging()||!this._boundaryElement)return;const i=this._rootElement.getBoundingClientRect(),r=this._boundaryElement.getBoundingClientRect();if(0===r.width&&0===r.height||0===i.width&&0===i.height)return;const o=r.left-i.left,s=i.right-r.right,a=r.top-i.top,l=i.bottom-r.bottom;r.width>i.width?(o>0&&(t+=o),s>0&&(t-=s)):t=0,r.height>i.height?(a>0&&(e+=a),l>0&&(e-=l)):e=0,(t!==this._passiveTransform.x||e!==this._passiveTransform.y)&&this.setFreeDragPosition({y:e,x:t})}_getDragStartDelay(t){const e=this.dragStartDelay;return"number"==typeof e?e:yh(t)?e.touch:e?e.mouse:0}_updateOnScroll(t){const e=this._parentPositions.handleScroll(t);if(e){const i=Qr(t);this._boundaryRect&&i!==this._boundaryElement&&i.contains(this._boundaryElement)&&vh(this._boundaryRect,e.top,e.left),this._pickupPositionOnPage.x+=e.left,this._pickupPositionOnPage.y+=e.top,this._dropContainer||(this._activeTransform.x-=e.left,this._activeTransform.y-=e.top,this._applyRootElementTransform(this._activeTransform.x,this._activeTransform.y))}}_getViewportScrollPosition(){return this._parentPositions.positions.get(this._document)?.scrollPosition||this._parentPositions.getViewportScrollPosition()}_getShadowRoot(){return void 0===this._cachedShadowRoot&&(this._cachedShadowRoot=_f(this._rootElement)),this._cachedShadowRoot}_getPreviewInsertionPoint(t,e){const i=this._previewContainer||"global";if("parent"===i)return t;if("global"===i){const r=this._document;return e||r.fullscreenElement||r.webkitFullscreenElement||r.mozFullScreenElement||r.msFullscreenElement||r.body}return Qn(i)}_getPreviewRect(){return(!this._previewRect||!this._previewRect.width&&!this._previewRect.height)&&(this._previewRect=this._preview?this._preview.getBoundingClientRect():this._initialClientRect),this._previewRect}_getTargetHandle(t){return this._handles.find(e=>t.target&&(t.target===e||e.contains(t.target)))}}function gg(n,t){return`translate3d(${Math.round(n)}px, ${Math.round(t)}px, 0)`}function VR(n,t,e){return Math.max(t,Math.min(e,n))}function yh(n){return"t"===n.type[0]}function UR(n,t){const e=n.rootNodes;if(1===e.length&&e[0].nodeType===t.ELEMENT_NODE)return e[0];const i=t.createElement("div");return e.forEach(r=>i.appendChild(r)),i}function qR(n,t){n.style.width=`${t.width}px`,n.style.height=`${t.height}px`,n.style.transform=gg(t.left,t.top)}function bh(n,t){return Math.max(0,Math.min(t,n))}class Bte{constructor(t,e){this._element=t,this._dragDropRegistry=e,this._itemPositions=[],this.orientation="vertical",this._previousSwap={drag:null,delta:0,overlaps:!1}}start(t){this.withItems(t)}sort(t,e,i,r){const o=this._itemPositions,s=this._getItemIndexFromPointerPosition(t,e,i,r);if(-1===s&&o.length>0)return null;const a="horizontal"===this.orientation,l=o.findIndex(U=>U.drag===t),c=o[s],d=c.clientRect,h=l>s?1:-1,m=this._getItemOffsetPx(o[l].clientRect,d,h),y=this._getSiblingOffsetPx(l,o,h),A=o.slice();return function Fte(n,t,e){const i=bh(t,n.length-1),r=bh(e,n.length-1);if(i===r)return;const o=n[i],s=r{if(A[te]===U)return;const Ee=U.drag===t,ne=Ee?m:y,Me=Ee?t.getPlaceholderElement():U.drag.getRootElement();U.offset+=ne,a?(Me.style.transform=fg(`translate3d(${Math.round(U.offset)}px, 0, 0)`,U.initialTransform),vh(U.clientRect,0,ne)):(Me.style.transform=fg(`translate3d(0, ${Math.round(U.offset)}px, 0)`,U.initialTransform),vh(U.clientRect,ne,0))}),this._previousSwap.overlaps=bw(d,e,i),this._previousSwap.drag=c.drag,this._previousSwap.delta=a?r.x:r.y,{previousIndex:l,currentIndex:s}}enter(t,e,i,r){const o=null==r||r<0?this._getItemIndexFromPointerPosition(t,e,i):r,s=this._activeDraggables,a=s.indexOf(t),l=t.getPlaceholderElement();let c=s[o];if(c===t&&(c=s[o+1]),!c&&(null==o||-1===o||o-1&&s.splice(a,1),c&&!this._dragDropRegistry.isDragging(c)){const u=c.getRootElement();u.parentElement.insertBefore(l,u),s.splice(o,0,t)}else Qn(this._element).appendChild(l),s.push(t);l.style.transform="",this._cacheItemPositions()}withItems(t){this._activeDraggables=t.slice(),this._cacheItemPositions()}withSortPredicate(t){this._sortPredicate=t}reset(){this._activeDraggables.forEach(t=>{const e=t.getRootElement();if(e){const i=this._itemPositions.find(r=>r.drag===t)?.initialTransform;e.style.transform=i||""}}),this._itemPositions=[],this._activeDraggables=[],this._previousSwap.drag=null,this._previousSwap.delta=0,this._previousSwap.overlaps=!1}getActiveItemsSnapshot(){return this._activeDraggables}getItemIndex(t){return("horizontal"===this.orientation&&"rtl"===this.direction?this._itemPositions.slice().reverse():this._itemPositions).findIndex(i=>i.drag===t)}updateOnScroll(t,e){this._itemPositions.forEach(({clientRect:i})=>{vh(i,t,e)}),this._itemPositions.forEach(({drag:i})=>{this._dragDropRegistry.isDragging(i)&&i._sortFromLastPointerPosition()})}_cacheItemPositions(){const t="horizontal"===this.orientation;this._itemPositions=this._activeDraggables.map(e=>{const i=e.getVisibleElement();return{drag:e,offset:0,initialTransform:i.style.transform||"",clientRect:yw(i)}}).sort((e,i)=>t?e.clientRect.left-i.clientRect.left:e.clientRect.top-i.clientRect.top)}_getItemOffsetPx(t,e,i){const r="horizontal"===this.orientation;let o=r?e.left-t.left:e.top-t.top;return-1===i&&(o+=r?e.width-t.width:e.height-t.height),o}_getSiblingOffsetPx(t,e,i){const r="horizontal"===this.orientation,o=e[t].clientRect,s=e[t+-1*i];let a=o[r?"width":"height"]*i;if(s){const l=r?"left":"top",c=r?"right":"bottom";-1===i?a-=s.clientRect[l]-o[c]:a+=o[l]-s.clientRect[c]}return a}_shouldEnterAsFirstChild(t,e){if(!this._activeDraggables.length)return!1;const i=this._itemPositions,r="horizontal"===this.orientation;if(i[0].drag!==this._activeDraggables[0]){const s=i[i.length-1].clientRect;return r?t>=s.right:e>=s.bottom}{const s=i[0].clientRect;return r?t<=s.left:e<=s.top}}_getItemIndexFromPointerPosition(t,e,i,r){const o="horizontal"===this.orientation,s=this._itemPositions.findIndex(({drag:a,clientRect:l})=>{if(a===t)return!1;if(r){const c=o?r.x:r.y;if(a===this._previousSwap.drag&&this._previousSwap.overlaps&&c===this._previousSwap.delta)return!1}return o?e>=Math.floor(l.left)&&e=Math.floor(l.top)&&i!0,this.sortPredicate=()=>!0,this.beforeStarted=new N,this.entered=new N,this.exited=new N,this.dropped=new N,this.sorted=new N,this._isDragging=!1,this._draggables=[],this._siblings=[],this._activeSiblings=new Set,this._viewportScrollSubscription=E.EMPTY,this._verticalScrollDirection=0,this._horizontalScrollDirection=0,this._stopScrollTimers=new N,this._cachedShadowRoot=null,this._startScrollInterval=()=>{this._stopScrolling(),function kte(n=0,t=Dc){return(!fb(n)||n<0)&&(n=0),(!t||"function"!=typeof t.schedule)&&(t=Dc),new b(e=>(e.add(t.schedule(Rte,n,{subscriber:e,counter:0,period:n})),e))}(0,z2).pipe(Jt(this._stopScrollTimers)).subscribe(()=>{const s=this._scrollNode,a=this.autoScrollStep;1===this._verticalScrollDirection?s.scrollBy(0,-a):2===this._verticalScrollDirection&&s.scrollBy(0,a),1===this._horizontalScrollDirection?s.scrollBy(-a,0):2===this._horizontalScrollDirection&&s.scrollBy(a,0)})},this.element=Qn(t),this._document=i,this.withScrollableParents([this.element]),e.registerDropContainer(this),this._parentPositions=new LR(i),this._sortStrategy=new Bte(this.element,e),this._sortStrategy.withSortPredicate((s,a)=>this.sortPredicate(s,a,this))}dispose(){this._stopScrolling(),this._stopScrollTimers.complete(),this._viewportScrollSubscription.unsubscribe(),this.beforeStarted.complete(),this.entered.complete(),this.exited.complete(),this.dropped.complete(),this.sorted.complete(),this._activeSiblings.clear(),this._scrollNode=null,this._parentPositions.clear(),this._dragDropRegistry.removeDropContainer(this)}isDragging(){return this._isDragging}start(){this._draggingStarted(),this._notifyReceivingSiblings()}enter(t,e,i,r){this._draggingStarted(),null==r&&this.sortingDisabled&&(r=this._draggables.indexOf(t)),this._sortStrategy.enter(t,e,i,r),this._cacheParentPositions(),this._notifyReceivingSiblings(),this.entered.next({item:t,container:this,currentIndex:this.getItemIndex(t)})}exit(t){this._reset(),this.exited.next({item:t,container:this})}drop(t,e,i,r,o,s,a,l={}){this._reset(),this.dropped.next({item:t,currentIndex:e,previousIndex:i,container:this,previousContainer:r,isPointerOverContainer:o,distance:s,dropPoint:a,event:l})}withItems(t){const e=this._draggables;return this._draggables=t,t.forEach(i=>i._withDropContainer(this)),this.isDragging()&&(e.filter(r=>r.isDragging()).every(r=>-1===t.indexOf(r))?this._reset():this._sortStrategy.withItems(this._draggables)),this}withDirection(t){return this._sortStrategy.direction=t,this}connectedTo(t){return this._siblings=t.slice(),this}withOrientation(t){return this._sortStrategy.orientation=t,this}withScrollableParents(t){const e=Qn(this.element);return this._scrollableElements=-1===t.indexOf(e)?[e,...t]:t.slice(),this}getScrollableParents(){return this._scrollableElements}getItemIndex(t){return this._isDragging?this._sortStrategy.getItemIndex(t):this._draggables.indexOf(t)}isReceiving(){return this._activeSiblings.size>0}_sortItem(t,e,i,r){if(this.sortingDisabled||!this._clientRect||!PR(this._clientRect,.05,e,i))return;const o=this._sortStrategy.sort(t,e,i,r);o&&this.sorted.next({previousIndex:o.previousIndex,currentIndex:o.currentIndex,container:this,item:t})}_startScrollingIfNecessary(t,e){if(this.autoScrollDisabled)return;let i,r=0,o=0;if(this._parentPositions.positions.forEach((s,a)=>{a===this._document||!s.clientRect||i||PR(s.clientRect,.05,t,e)&&([r,o]=function Hte(n,t,e,i){const r=WR(t,i),o=$R(t,e);let s=0,a=0;if(r){const l=n.scrollTop;1===r?l>0&&(s=1):n.scrollHeight-l>n.clientHeight&&(s=2)}if(o){const l=n.scrollLeft;1===o?l>0&&(a=1):n.scrollWidth-l>n.clientWidth&&(a=2)}return[s,a]}(a,s.clientRect,t,e),(r||o)&&(i=a))}),!r&&!o){const{width:s,height:a}=this._viewportRuler.getViewportSize(),l={width:s,height:a,top:0,right:s,bottom:a,left:0};r=WR(l,e),o=$R(l,t),i=window}i&&(r!==this._verticalScrollDirection||o!==this._horizontalScrollDirection||i!==this._scrollNode)&&(this._verticalScrollDirection=r,this._horizontalScrollDirection=o,this._scrollNode=i,(r||o)&&i?this._ngZone.runOutsideAngular(this._startScrollInterval):this._stopScrolling())}_stopScrolling(){this._stopScrollTimers.next()}_draggingStarted(){const t=Qn(this.element).style;this.beforeStarted.next(),this._isDragging=!0,this._initialScrollSnap=t.msScrollSnapType||t.scrollSnapType||"",t.scrollSnapType=t.msScrollSnapType="none",this._sortStrategy.start(this._draggables),this._cacheParentPositions(),this._viewportScrollSubscription.unsubscribe(),this._listenToScrollEvents()}_cacheParentPositions(){const t=Qn(this.element);this._parentPositions.cache(this._scrollableElements),this._clientRect=this._parentPositions.positions.get(t).clientRect}_reset(){this._isDragging=!1;const t=Qn(this.element).style;t.scrollSnapType=t.msScrollSnapType=this._initialScrollSnap,this._siblings.forEach(e=>e._stopReceiving(this)),this._sortStrategy.reset(),this._stopScrolling(),this._viewportScrollSubscription.unsubscribe(),this._parentPositions.clear()}_isOverContainer(t,e){return null!=this._clientRect&&bw(this._clientRect,t,e)}_getSiblingContainerFromPosition(t,e,i){return this._siblings.find(r=>r._canReceive(t,e,i))}_canReceive(t,e,i){if(!this._clientRect||!bw(this._clientRect,e,i)||!this.enterPredicate(t,this))return!1;const r=this._getShadowRoot().elementFromPoint(e,i);if(!r)return!1;const o=Qn(this.element);return r===o||o.contains(r)}_startReceiving(t,e){const i=this._activeSiblings;!i.has(t)&&e.every(r=>this.enterPredicate(r,this)||this._draggables.indexOf(r)>-1)&&(i.add(t),this._cacheParentPositions(),this._listenToScrollEvents())}_stopReceiving(t){this._activeSiblings.delete(t),this._viewportScrollSubscription.unsubscribe()}_listenToScrollEvents(){this._viewportScrollSubscription=this._dragDropRegistry.scrolled(this._getShadowRoot()).subscribe(t=>{if(this.isDragging()){const e=this._parentPositions.handleScroll(t);e&&this._sortStrategy.updateOnScroll(e.top,e.left)}else this.isReceiving()&&this._cacheParentPositions()})}_getShadowRoot(){if(!this._cachedShadowRoot){const t=_f(Qn(this.element));this._cachedShadowRoot=t||this._document}return this._cachedShadowRoot}_notifyReceivingSiblings(){const t=this._sortStrategy.getActiveItemsSnapshot().filter(e=>e.isDragging());this._siblings.forEach(e=>e._startReceiving(this,t))}}function WR(n,t){const{top:e,bottom:i,height:r}=n,o=.05*r;return t>=e-o&&t<=e+o?1:t>=i-o&&t<=i+o?2:0}function $R(n,t){const{left:e,right:i,width:r}=n,o=.05*r;return t>=e-o&&t<=e+o?1:t>=i-o&&t<=i+o?2:0}const _g=As({passive:!1,capture:!0});let Vte=(()=>{class n{constructor(e,i){this._ngZone=e,this._dropInstances=new Set,this._dragInstances=new Set,this._activeDragInstances=[],this._globalListeners=new Map,this._draggingPredicate=r=>r.isDragging(),this.pointerMove=new N,this.pointerUp=new N,this.scroll=new N,this._preventDefaultWhileDragging=r=>{this._activeDragInstances.length>0&&r.preventDefault()},this._persistentTouchmoveListener=r=>{this._activeDragInstances.length>0&&(this._activeDragInstances.some(this._draggingPredicate)&&r.preventDefault(),this.pointerMove.next(r))},this._document=i}registerDropContainer(e){this._dropInstances.has(e)||this._dropInstances.add(e)}registerDragItem(e){this._dragInstances.add(e),1===this._dragInstances.size&&this._ngZone.runOutsideAngular(()=>{this._document.addEventListener("touchmove",this._persistentTouchmoveListener,_g)})}removeDropContainer(e){this._dropInstances.delete(e)}removeDragItem(e){this._dragInstances.delete(e),this.stopDragging(e),0===this._dragInstances.size&&this._document.removeEventListener("touchmove",this._persistentTouchmoveListener,_g)}startDragging(e,i){if(!(this._activeDragInstances.indexOf(e)>-1)&&(this._activeDragInstances.push(e),1===this._activeDragInstances.length)){const r=i.type.startsWith("touch");this._globalListeners.set(r?"touchend":"mouseup",{handler:o=>this.pointerUp.next(o),options:!0}).set("scroll",{handler:o=>this.scroll.next(o),options:!0}).set("selectstart",{handler:this._preventDefaultWhileDragging,options:_g}),r||this._globalListeners.set("mousemove",{handler:o=>this.pointerMove.next(o),options:_g}),this._ngZone.runOutsideAngular(()=>{this._globalListeners.forEach((o,s)=>{this._document.addEventListener(s,o.handler,o.options)})})}}stopDragging(e){const i=this._activeDragInstances.indexOf(e);i>-1&&(this._activeDragInstances.splice(i,1),0===this._activeDragInstances.length&&this._clearGlobalListeners())}isDragging(e){return this._activeDragInstances.indexOf(e)>-1}scrolled(e){const i=[this.scroll];return e&&e!==this._document&&i.push(new b(r=>this._ngZone.runOutsideAngular(()=>{const s=a=>{this._activeDragInstances.length&&r.next(a)};return e.addEventListener("scroll",s,!0),()=>{e.removeEventListener("scroll",s,!0)}}))),On(...i)}ngOnDestroy(){this._dragInstances.forEach(e=>this.removeDragItem(e)),this._dropInstances.forEach(e=>this.removeDropContainer(e)),this._clearGlobalListeners(),this.pointerMove.complete(),this.pointerUp.complete()}_clearGlobalListeners(){this._globalListeners.forEach((e,i)=>{this._document.removeEventListener(i,e.handler,e.options)}),this._globalListeners.clear()}}return n.\u0275fac=function(e){return new(e||n)(M(et),M(ft))},n.\u0275prov=ge({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const Ute={dragStartThreshold:5,pointerDirectionChangeThreshold:5};let qte=(()=>{class n{constructor(e,i,r,o){this._document=e,this._ngZone=i,this._viewportRuler=r,this._dragDropRegistry=o}createDrag(e,i=Ute){return new Nte(e,i,this._document,this._ngZone,this._viewportRuler,this._dragDropRegistry)}createDropList(e){return new jte(e,this._dragDropRegistry,this._document,this._ngZone,this._viewportRuler)}}return n.\u0275fac=function(e){return new(e||n)(M(ft),M(et),M(zo),M(Vte))},n.\u0275prov=ge({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),zte=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=ht({type:n}),n.\u0275inj=dt({providers:[qte],imports:[Tc]}),n})();const Gte=["webInp"];function Wte(n,t){if(1&n&&(g(0,"p"),j(1),_()),2&n){const e=C(2);f(1),qe(" ",e.globals.languageConfLocal.webIntLogout," ")}}function $te(n,t){if(1&n){const e=Ie();g(0,"div",1)(1,"div",2)(2,"h1"),j(3),_()(),g(4,"div",3),W("click",function(){return J(e),Z(C().closeModal())}),be(5,"div",4),_()(),g(6,"div",5)(7,"div",6),j(8),H(9,Wte,2,1,"p",7),_(),g(10,"div",8)(11,"input",9),W("ngModelChange",function(r){return J(e),Z(C().inputValue=r)})("keyup.enter",function(){return J(e),Z(C().confirmAction())}),_(),g(12,"input",10),W("click",function(){return J(e),Z(C().confirmAction())}),_()()()}if(2&n){const e=C();f(3),ve(e.globals.languageConfLocal.webIntInputTitle),f(2),v("ngStyle",e.modCloseImage),f(3),qe(" ",e.globals.languageConfLocal.webIntInputText," "),f(1),v("ngIf",e.connectionService.isLoggedIn),f(2),v("ngModel",e.inputValue)}}let Kte=(()=>{class n{constructor(e,i,r,o,s,a){this.messageService=e,this.sanitize=i,this.loader=r,this.connectionService=o,this.modal=s,this.globals=a,this.modCloseImage={background:"no-repeat url(assets/images/widget_settings.png)"},this.lcLocal=this.globals.languageConfLocal,this.inputValue="",null!=window.localStorage.getItem("webInt")&&(this.connectionService.webIntModalOpenRef=this.open.bind(this))}ngOnInit(){null!=window.localStorage.getItem("webInt")?(this.inputValue=window.localStorage.getItem("webInt"),this.inputValue=encodeURI(this.inputValue)):(this.globals.showSpinner(),setTimeout(()=>{this.globals.hideSpinner(),this.connectionService.webIntModalOpenRef=this.open.bind(this)},2e3))}open(){return this.modal.open(this.modalTemp,{panelClass:"modalOverlay",autoFocus:!1,maxHeight:"90%"})}confirmAction(){this.checkInput(this.sanitize.sanitizeInput(this.inputValue,4)),this.globals.activeWindow=this.globals.loggedIn?"userSettings":"main"}closeModal(){this.modal.closeAll()}checkInput(e){var i=this;return Ae(function*(){const r=i.globals.system;if(e)switch(e=encodeURI(e),e.toLowerCase().startsWith("https")||(e="https://"+e),e.endsWith("/")||(e+="/"),i.globals.setSystemFromURL(e),i.globals.system){case"gi":"gi"!==r&&"start"!==r&&(yield i.connectionService.logout(!0)),i.connectionService.setSystem("gi");break;case"ba":"ba"!==r&&"start"!==r&&(yield i.connectionService.logout(!0)),i.connectionService.setSystem("ba")}e!==i.globals.webInt?null==e||""===e?i.messageService.showError(i.globals.languageConfLocal.webIntInvalid):e.includes("http:")?i.messageService.showWarning(i.globals.languageConfLocal.webIntHttp):(yield i.connectionService.checkWebInt(e))&&("ba"===i.globals.system&&i.connectionService.reload(),i.connectionService.connect().subscribe(()=>{i.connectionService.reload()})):i.closeModal()})()}}return n.\u0275fac=function(e){return new(e||n)(p(tn),p(wd),p(Fc),p(In),p(Wo),p(ot))},n.\u0275cmp=Ue({type:n,selectors:[["app-webint-input"]],viewQuery:function(e,i){if(1&e&&De(Gte,7),2&e){let r;ce(r=ue())&&(i.modalTemp=r.first)}},decls:2,vars:0,consts:[["webInp",""],[1,"modalHeader"],[1,"modalHeaderText"],["ngbAutoFocus","",1,"modalHeaderClose",3,"click"],[1,"modalCloseIcon",3,"ngStyle"],[1,"modalBody"],[1,"webIntText"],[4,"ngIf"],["id","webIntInputWrapper",1,"flex"],["matInput","","type","text","id","webIntInputField",3,"ngModel","ngModelChange","keyup.enter"],["type","button","id","webIntConfirmButton","value","OK",1,"buttonMiddle","noFloat",3,"click"]],template:function(e,i){1&e&&H(0,$te,13,5,"ng-template",null,0,Sn)},dependencies:[pn,ra,Ar,Kr,wo,Mr],styles:[".webIntText[_ngcontent-%COMP%]{white-space:pre-line;font-weight:700;text-align:center}#webIntInputField[_ngcontent-%COMP%]{width:230px;outline:none;margin-right:10px;border:1px solid rgba(0,0,0,.2);flex-grow:1}#webIntConfirmButton[_ngcontent-%COMP%]{height:25px!important;top:-1px;position:relative}#webIntInputWrapper[_ngcontent-%COMP%]{text-align:center;margin-bottom:20px}"]}),n})(),Yte=(()=>{class n{constructor(e,i){this.domSanitizer=e,this.cdRef=i,this.sessionSet=!1,localStorage.getItem("webInt")}ngOnInit(){Office.onReady().then(()=>{Office.context.ui.addHandlerAsync(Office.EventType.DialogParentMessageReceived,this.onMessageFromParent.bind(this)),Office.context.ui.messageParent("ready")})}onMessageFromParent(e){console.log("ON MESSAGE"),"message"in e&&(console.log("On Message"),console.log(this.webInt),console.log("Got Message"),console.log("TEST:"),console.log(e),this.webInt=e.message,console.log("WEB INT CHANGED"),console.log(this.webInt),this.sessionSet=!0,this.redirectURL="https://localhost:3000/businessmail?redirect",window.open(e.message+"?isOutlookClient=true","_self"))}}return n.\u0275fac=function(e){return new(e||n)(p(nd),p(St))},n.\u0275cmp=Ue({type:n,selectors:[["app-redirect"]],decls:2,vars:0,template:function(e,i){1&e&&(g(0,"p"),j(1,"Redirecting..."),_())}}),n})();const ww=["name","companyName","birthdate","-BLANK-","phone","cellphone","homephone","-BLANK-","homepage","skype","pointer","companyPointer","isCompany","additional"];function KR(n,t){const e=ww.indexOf(n.key),i=ww.indexOf(t.key);return-1===e&&-1===i?0:-1===e?1:-1===i||ei?1:0}(n=>{const t=[];ww.forEach((e,i)=>{e.includes("-BLANK-")&&t.push(i)})})();let su=(()=>{class n{constructor(e,i,r){this.waitlist=e,this.messageService=i,this.globals=r,this.subscriptions={}}waitForDisplayChanges(e,i,r){this.initKey(e);for(const o of i)this.subscriptions[e].push(this.changeAttachDisplay(o).subscribe(()=>{r.detectChanges()}))}unsubscribeAll(e){if(this.subscriptions[e])for(const i of this.subscriptions[e])i.unsubscribe()}showInfoSnack(){this.messageService.showInfo(this.globals.languageConfLocal.attachments)}get getInfoText(){return this.globals.languageConfLocal.attachments}initKey(e){null==this.subscriptions[e]&&(this.subscriptions[e]=[])}changeAttachDisplay(e){return new b(i=>this.waitlist.addToWaitList(e,i))}}return n.\u0275fac=function(e){return new(e||n)(M(Ri),M(tn),M(ot))},n.\u0275prov=ge({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const Qte=["searchExpansionPanel"],Jte=["searchTextInput"];function Zte(n,t){if(1&n){const e=Ie();g(0,"span",17),W("click",function(r){return J(e),Z(C(2).clearTextClicked(r))}),j(1,"cancel"),_()}}function Xte(n,t){1&n&&(g(0,"span",18),j(1,"expand_less"),_())}function ene(n,t){1&n&&(g(0,"span",18),j(1,"search"),_())}function tne(n,t){if(1&n&&(g(0,"mat-option",22),j(1),_()),2&n){const e=t.$implicit;v("value",e.value),f(1),ve(e.viewValue)}}function nne(n,t){if(1&n){const e=Ie();g(0,"mat-form-field",19)(1,"mat-label"),j(2),_(),g(3,"mat-select",20),W("valueChange",function(r){return J(e),Z(C(2).selectedDB=r)})("selectionChange",function(){return J(e),Z(C(2).selectedDBChanged())}),H(4,tne,2,2,"mat-option",21),_()()}if(2&n){const e=C(2);f(2),ve(e.globals.languageConfLocal.addressDatabase),f(1),v("value",e.selectedDB),f(1),v("ngForOf",e.databases)}}function ine(n,t){if(1&n&&(g(0,"div",23),j(1),_()),2&n){const e=C(2);f(1),qe(" ",e.globals.languageConfLocal.recentlyUsed," ")}}function rne(n,t){1&n&&be(0,"img",29),2&n&&v("src",C().$implicit.imageBase64,En)}function one(n,t){if(1&n&&be(0,"img",29),2&n){const e=C().$implicit;v("src",C(2).datasource.getImageSrc(e.image),En)}}function sne(n,t){if(1&n){const e=Ie();g(0,"div",24),W("click",function(r){return J(e),Z(C(2).clickedElement(r))})("dblclick",function(r){return J(e),Z(C(2).dblClickedElement(r))}),H(1,rne,1,1,"img",25),H(2,one,1,1,"img",25),g(3,"div",26)(4,"span",27),j(5),_(),be(6,"br"),g(7,"span",28),j(8),_(),be(9,"br"),g(10,"span",28),j(11),_(),be(12,"br"),_()()}if(2&n){const e=t.$implicit,i=t.index,r=C(2);_t("title",r.htmlHelp.parseHtmlEntities(e.lineOne)),rt("data-fdme",e.fdMe)("data-email",e.email)("data-order",i+1),f(1),v("ngIf",e.imageBase64),f(1),v("ngIf",!e.imageBase64),f(2),_t("title",r.htmlHelp.parseHtmlEntities(e.lineOne+" <"+e.email+">")),f(1),qe(" ",r.htmlHelp.parseHtmlEntities(e.lineOne+" <"+e.email+">")," "),f(2),_t("title",r.htmlHelp.parseHtmlEntities(e.lineTwo)),f(1),ve(r.htmlHelp.parseHtmlEntities(e.lineTwo)),f(2),_t("title",r.htmlHelp.parseHtmlEntities(e.lineThree)),f(1),ve(r.htmlHelp.parseHtmlEntities(e.lineThree))}}function ane(n,t){if(1&n){const e=Ie();g(0,"div",30)(1,"button",31),W("click",function(){return J(e),Z(C(2).addSelectedTo("requiredAttendees"))}),j(2),_(),g(3,"button",31),W("click",function(){return J(e),Z(C(2).addSelectedTo("optionalAttendees"))}),j(4),_()()}if(2&n){const e=C(2);f(2),ve(e.globals.languageConfLocal.requiredAttendee),f(2),ve(e.globals.languageConfLocal.optionalAttendee)}}function lne(n,t){if(1&n){const e=Ie();g(0,"div",30)(1,"button",31),W("click",function(){return J(e),Z(C(2).addSelectedTo("to"))}),j(2),_(),g(3,"button",31),W("click",function(){return J(e),Z(C(2).addSelectedTo("cc"))}),j(4,"Cc"),_(),g(5,"button",31),W("click",function(){return J(e),Z(C(2).addSelectedTo("bcc"))}),j(6,"Bcc"),_()()}if(2&n){const e=C(2);f(2),ve(e.globals.languageConfLocal.to)}}function cne(n,t){if(1&n){const e=Ie();g(0,"div",32)(1,"div",33),W("click",function(r){return J(e),Z(C(2).addSelectedTo("requiredAttendees",r))}),j(2),_(),g(3,"div",33),W("click",function(r){return J(e),Z(C(2).addSelectedTo("optionalAttendees",r))}),j(4),_()()}if(2&n){const e=C(2);f(2),qe(" ",e.globals.languageConfLocal.requiredAttendee,""),f(2),qe(" ",e.globals.languageConfLocal.optionalAttendee,"")}}function une(n,t){if(1&n){const e=Ie();g(0,"div",32)(1,"div",33),W("click",function(r){return J(e),Z(C(2).addSelectedTo("to",r))}),j(2),_(),g(3,"div",33),W("click",function(r){return J(e),Z(C(2).addSelectedTo("cc",r))}),j(4,"Cc"),_(),g(5,"div",33),W("click",function(r){return J(e),Z(C(2).addSelectedTo("bcc",r))}),j(6,"Bcc"),_()()}if(2&n){const e=C(2);f(2),qe(" ",e.globals.languageConfLocal.to,"")}}function dne(n,t){if(1&n){const e=Ie();g(0,"div",1),be(1,"br"),g(2,"mat-expansion-panel",2,3),W("closed",function(){return J(e),Z(C().searchResultsPanelClosed())})("opened",function(){return J(e),Z(C().searchResultsPanelOpened())}),g(4,"mat-expansion-panel-header")(5,"mat-panel-title",4)(6,"mat-form-field",5)(7,"mat-label",6),j(8),_(),g(9,"input",7,8),W("keydown.Space",function(r){return J(e),Z(C().noCloseOnSpace(r))})("input",function(r){return J(e),Z(C().textChanged(r))})("focus",function(r){return J(e),Z(C().searchInputFocused(r))})("click",function(r){return J(e),Z(C().searchInputClicked(r))})("ngModelChange",function(r){return J(e),Z(C().textInSearchInput=r)}),_()(),H(11,Zte,2,0,"span",9),H(12,Xte,2,0,"span",10),H(13,ene,2,0,"span",10),_()(),H(14,nne,5,3,"mat-form-field",11),g(15,"div",12),H(16,ine,2,1,"div",13),H(17,sne,13,12,"div",14),_(),H(18,ane,5,2,"div",15),H(19,lne,7,1,"div",15),H(20,cne,5,2,"div",16),H(21,une,7,1,"div",16),_()()}if(2&n){const e=Yt(10),i=C();f(8),ve(i.globals.languageConfLocal.searchInCRMForContacts),f(1),v("ngModel",i.textInSearchInput),f(2),v("ngIf",e.value.length>0),f(1),v("ngIf",i.searchPanelExpanded),f(1),v("ngIf",!i.searchPanelExpanded),f(1),v("ngIf",null!=i.databases&&i.databases.length>0),f(2),v("ngIf",i.showRecentlyUsed),f(1),v("ngForOf",i.searchResultsArray),f(1),v("ngIf",i.isAppointment),f(1),v("ngIf",!i.isAppointment),f(1),v("ngIf",i.isAppointment),f(1),v("ngIf",!i.isAppointment)}}let hne=(()=>{class n{constructor(e,i,r,o,s,a,l,c,u,d){this.globals=e,this.messageService=i,this.mailLoadedService=r,this.ref=o,this.translate=s,this.waitList=a,this.datasource=l,this.lsm=c,this.dps=u,this.htmlHelp=d,this.compareFunc=KR,this.searchResultsArray=[],this.databases=[],this.selection=new nl(!1),this.showRecentlyUsed=!1,this.initialDBSelection=!1,this.events=["contextmenu","touchstart"],this.lastTap=0,this.gotFocused=!1,this.addressFetched=!1,this.addresses=[],this.subscriptions=[],this.currentAvatarURL="",this.filteredAdditionalValues={},this.commonPointerData={},this.docImage={background:"transparent no-repeat url(assets/images/icons_business_mail.png)"},this.attachRdy=!1,this.attachDelete=!1}ngOnInit(){let e=Office.context.mailbox.item;e&&(this.isCompose=null==e.itemId,this.isAppointment="appointment"===e.itemType,this.isReadMode=void 0===e.getItemIdAsync||void 0===typeof e.getItemIdAsync),this.events.forEach(i=>{document.addEventListener(i,r=>{if(null==r.srcElement.closest("#resultsContainer"))return;let o=document.getElementsByClassName("resultListEntry");if(this.countSelected(o)<=1){this.deselectAll(o);let y=r.srcElement.closest(".resultListEntry");this.selectOneElement(y)}r.preventDefault();let a=document.getElementById("context-menu");if(!a)return;let l=r.clientX||r.touches[0].clientX,c=r.clientY||r.touches[0].clientY,u=a.getBoundingClientRect().height,d=a.getBoundingClientRect().width,h=window.innerWidth,m=window.innerHeight;h-l<=200?(a.style.borderRadius="5px 0 5px 5px",a.style.left=h-d+"px",a.style.top=c+"px",m-c<=200&&(a.style.top=c-u+"px",a.style.borderRadius="5px 5px 0 5px")):(a.style.borderRadius="0 5px 5px 5px",a.style.left=l+"px",a.style.top=c+"px",m-c<=200&&(a.style.top=c-u+"px",a.style.borderRadius="5px 5px 5px 0")),a.style.visibility="visible"},{passive:!1})}),document.addEventListener("touchend",i=>{document.getElementById("context-menu")}),document.addEventListener("click",i=>{let r=document.getElementById("context-menu");!r||(r.style.visibility="hidden")}),this.getContactDBs(),this.dps.addThingToClose("contactSearch",()=>{this.searchExpansionPanel?.close()})}ngOnDestroy(){for(const e of this.subscriptions)e.unsubscribe()}detectChanges(){this.ref.detectChanges()}waitForConnector(){return new b(e=>{this.waitList.addToWaitList("connector",e)})}textChanged(e){this.textInSearchInput.length>0&&this.searchExpansionPanel.open(),this.getContacts()}clearTextClicked(e){this.textInSearchInput="",this.searchPanelExpanded&&(this.getContacts(),this.searchTextInput.nativeElement.focus()),e.stopPropagation()}addSelectedTo(e,i=null){let r=Office.context.mailbox.item;if(r){let o=document.getElementsByClassName("resultListEntry"),s=this.countSelected(o);if(0===s)return void this.translate.get("Nothing is selected!").subscribe(a=>{this.messageService.showWarning(this.globals.languageConfLocal.NothingIsSelected,void 0)});for(let a=0;a{s.status===Office.AsyncResultStatus.Failed?this.messageService.showError("Not able to read outlook item.",void 0):0===s.value.filter(l=>l.emailAddress.toLowerCase()===i.dataset.email.toLowerCase()).length&&(this.datasource.addToRecentlyUsed(i.dataset.fdme),e[r].addAsync([{displayName:i.title,emailAddress:i.dataset.email}]))})}clickedElement(e){let i=document.getElementsByClassName("resultListEntry"),r=this.countSelected(i),o=e.currentTarget,s=o.dataset.order-1;if(!e.ctrlKey&&!e.shiftKey&&this.deselectAll(i,s),e.shiftKey){let a=this.lastSelected,l=s;a>l&&(a=s,l=this.lastSelected),this.selectBetween(i,a,l)}else"true"===o.dataset.selected?this.deselectOneElement(o):(this.selectOneElement(o),this.lastSelected=o.dataset.order-1),!e.ctrlKey&&r>1&&(this.selectOneElement(o),this.lastSelected=o.dataset.order-1)}dblClickedElement(e){let r=Office.context.mailbox.item;this.addOneContact(r,e.currentTarget,this.isAppointment?"requiredAttendees":"to",!1)}deselectAll(e,i=null){for(let r=0;r{this.selectOneElement(e[o])},10)}countSelected(e){let i=0;for(let r=0;r{console.log("DBs:",e),this.filterForContacts(e)}})}filterForContacts(e){const i={},r=["Contact","Leads","Organization"];for(const o in e){if("GeOfficeAliases"===o)continue;const s=e[o].type;Array.isArray(s)?s.some(a=>r.includes(a))&&(i[o]=e[o].title):"string"==typeof s?r.includes(s)&&(i[o]=e[o].title):console.warn(`Unerwarteter Typ f\xfcr "type" in Alias ${o}:`,s)}this.generateSelectionArr(i)}generateSelectionArr(e){this.databases=[];for(const i in e)Object.prototype.hasOwnProperty.call(e,i)&&this.databases.push({value:i,viewValue:e[i]});if(console.log(this.databases),this.databases.length>0){let i=this.lsm.getValue(Zt.contactDB);null!=i?this.databases.forEach(r=>{r.value===i&&(this.selectedDB=r.value)}):this.selectedDB=this.databases[0].value}this.getContacts()}selectedDBChanged(){this.textInSearchInput="",this.getContacts(),this.initialDBSelection?this.initialDBSelection=!1:this.lsm.setValue(Zt.contactDB,this.selectedDB)}getContacts(){"ba"===this.globals.system&&(this.showRecentlyUsed=!this.textInSearchInput||0===this.textInSearchInput?.length),this.datasource.fetchSearch(this.selectedDB,void 0,this.textInSearchInput).subscribe({next:e=>{this.searchResultsArray=this.datasource.handleSearchResult(e,Yo.contacts)}})}searchResultsPanelOpened(){let e=this.searchExpansionPanel._body.nativeElement.childNodes[0];e.style.paddingRight="3px",e.style.paddingLeft="3px",e.style.paddingBottom="3px",e.style.backgroundColor="#ffffff",e.style.zIndex=5,this.searchPanelExpanded=!0,this.searchTextInput.nativeElement.focus()}searchResultsPanelClosed(){this.searchPanelExpanded=!1}searchInputFocused(e){setTimeout(()=>{this.searchExpansionPanel.open()},100),this.gotFocused=!0}searchInputClicked(e){this.gotFocused&&e.stopPropagation(),this.gotFocused=!1}noCloseOnSpace(e){e.stopPropagation()}getBase64(e){return"base64, "+e}}return n.\u0275fac=function(e){return new(e||n)(p(ot),p(tn),p(su),p(St),p(Ut),p(Ri),p(Bi),p(Mi),p(is),p(Vs))},n.\u0275cmp=Ue({type:n,selectors:[["app-contact-selector"]],viewQuery:function(e,i){if(1&e&&(De(Qte,5),De(Jte,5)),2&e){let r;ce(r=ue())&&(i.searchExpansionPanel=r.first),ce(r=ue())&&(i.searchTextInput=r.first)}},decls:1,vars:1,consts:[["class","contactSelectorDiv",4,"ngIf"],[1,"contactSelectorDiv"],["hideToggle","",1,"searchResultsPanel","mat-elevation-z0",3,"closed","opened"],["searchExpansionPanel",""],[1,"searchInCRMHeader"],[2,"width","100%","vertical-align","bottom"],[2,"font-size","small"],["matInput","","type","search","id","searchText","name","searchText",3,"ngModel","keydown.Space","input","focus","click","ngModelChange"],["searchTextInput",""],["class","material-symbols-rounded clearIcon",3,"click",4,"ngIf"],["class","material-symbols-rounded searchIcon",4,"ngIf"],["class","databaseSearchSelect","appearance","standard",4,"ngIf"],["id","resultsContainer",1,"prevent-select"],["class","recentlyUsed",4,"ngIf"],["class","itemListEntry resultListEntry",3,"title","click","dblclick",4,"ngFor","ngForOf"],["class","btn-group",4,"ngIf"],["id","context-menu",4,"ngIf"],[1,"material-symbols-rounded","clearIcon",3,"click"],[1,"material-symbols-rounded","searchIcon"],["appearance","standard",1,"databaseSearchSelect"],[3,"value","valueChange","selectionChange"],[3,"value",4,"ngFor","ngForOf"],[3,"value"],[1,"recentlyUsed"],[1,"itemListEntry","resultListEntry",3,"title","click","dblclick"],["class","normalImage",3,"src",4,"ngIf"],[1,"resultsLineWrapper"],[1,"listEntryItemMainLine",3,"title"],[1,"listEntryItemSubLine",3,"title"],[1,"normalImage",3,"src"],[1,"btn-group"],[3,"click"],["id","context-menu"],[1,"item",3,"click"]],template:function(e,i){1&e&&H(0,dne,22,12,"div",0),2&e&&v("ngIf",!i.isReadMode)},dependencies:[zn,pn,Ar,Kr,wo,Ir,Pi,Ko,cr,Mr,gw,CR,wR],styles:['.itemListEntry[_ngcontent-%COMP%]{line-height:1.3!important;white-space:nowrap;display:flex;padding:4px 0;grid-gap:4px}.itemListEntry[_ngcontent-%COMP%] > div[_ngcontent-%COMP%], .itemListEntry[_ngcontent-%COMP%] a[_ngcontent-%COMP%], .itemListEntry[_ngcontent-%COMP%] a[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{display:block;overflow:hidden}.itemListEntry[_ngcontent-%COMP%] > div[_ngcontent-%COMP%] > [class^=listEntryItem][_ngcontent-%COMP%], .itemListEntry[_ngcontent-%COMP%] a[_ngcontent-%COMP%] > [class^=listEntryItem][_ngcontent-%COMP%], .itemListEntry[_ngcontent-%COMP%] a[_ngcontent-%COMP%] > div[_ngcontent-%COMP%] > [class^=listEntryItem][_ngcontent-%COMP%]{overflow:hidden;text-overflow:ellipsis;max-width:100%}.itemListEntry[_ngcontent-%COMP%]:not(:last-child){border-bottom:1px solid #e0e0e0}.itemListEntry[_ngcontent-%COMP%]:hover:not([data-selected=true]){background-color:#e0e0e0;cursor:pointer}.itemListEntry[_ngcontent-%COMP%]:hover:not([data-selected=true]) .resultsLineWrapper[_ngcontent-%COMP%]{background-color:#e0e0e0}[data-selected=true].itemListEntry[_ngcontent-%COMP%], [data-selected=true].itemListEntry[_ngcontent-%COMP%] .resultsLineWrapper[_ngcontent-%COMP%]{background-color:#d3d3d3}.itemListEntry[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{height:24px;width:24px;box-sizing:content-box;padding:1px 0 0!important}.itemListEntry[_ngcontent-%COMP%] .resultsLineWrapper[_ngcontent-%COMP%]{overflow:hidden;text-overflow:ellipsis}#resultsContainer[_ngcontent-%COMP%]{height:50vh;overflow-y:auto}#resultsContainer[_ngcontent-%COMP%] > .recentlyUsed[_ngcontent-%COMP%]{width:100%;text-align:center;color:#a9a9a9;padding-bottom:8px;border-bottom:1px solid #e0e0e0}#resultsContainer[_ngcontent-%COMP%] > .recentlyUsed[_ngcontent-%COMP%] + .itemListEntry[_ngcontent-%COMP%]{padding-top:8px}.resultsLineWrapper[_ngcontent-%COMP%]{width:100%;overflow:hidden;text-overflow:ellipsis}.prevent-select[_ngcontent-%COMP%]{-webkit-user-select:none;user-select:none}#context-menu[_ngcontent-%COMP%]{background-color:#fff;box-shadow:0 0 20px #25282a38;color:#1f194c;width:10em;padding:.8em .6em;font-size:13px;position:fixed;visibility:hidden}#context-menu[_ngcontent-%COMP%] .item[_ngcontent-%COMP%]{padding:.3em 1.2em}#context-menu[_ngcontent-%COMP%] .item[_ngcontent-%COMP%]:hover{background-color:#e0e0e0;cursor:pointer}.btn-group[_ngcontent-%COMP%]{width:100%;padding-top:3px}.btn-group[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{background-color:#bfbfbf;border:1px solid;padding:10px 24px;cursor:pointer;float:left;width:100%}.btn-group[_ngcontent-%COMP%] [_ngcontent-%COMP%]:hover{background-color:#5f5f5f}.btn-group[_ngcontent-%COMP%]:after{content:"";clear:both;display:table}.btn-group[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:first-child{border-radius:5px 0 0 5px}.btn-group[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child{border-radius:0 5px 5px 0}.btn-group[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:not(:last-child){border-right:none}#searchText[_ngcontent-%COMP%]{font-size:12px}.mat-expansion-panel-header[_ngcontent-%COMP%]{height:4.5em;font-size:small}.mat-expansion-panel[_ngcontent-%COMP%] .mat-expanded[_ngcontent-%COMP%]{border:#4d4d4d;border-width:3px}.searchResultsPanel[_ngcontent-%COMP%]{width:calc(100% - 1px);z-index:4;border-radius:5px}.contactSelectorDiv[_ngcontent-%COMP%]{width:100%;height:-moz-fit-content;height:fit-content}.mat-expansion-panel-header-title[_ngcontent-%COMP%]{flex-direction:column;align-items:start;margin-right:0!important}mat-expansion-panel-header[_ngcontent-%COMP%]{padding:0!important}.mat-expansion-panel-header[_ngcontent-%COMP%]:hover{background-color:transparent!important}.searchIcon[_ngcontent-%COMP%]{position:absolute;right:3px;bottom:22px}.clearIcon[_ngcontent-%COMP%]{position:absolute;right:27px;bottom:22px}.databaseSearchSelect[_ngcontent-%COMP%]{width:100%}.databaseSearchSelect[_ngcontent-%COMP%] + .searchResultsPanel[_ngcontent-%COMP%]{margin-top:-16px}']}),n})();var El=(()=>(function(n){n[n.activity=0]="activity"}(El||(El={})),El))();let pne=(()=>{class n{constructor(e){this.globals=e}getImgUrl(e){return this.globals.webInt+e}getLocalImgUrl(e,i){if(i)return"assets/images/defaultCompany_80x104.png";if(null!=e)switch(e.toLowerCase()){case"herr":case"mr":case"mister":case"male":return"assets/images/defaultMan_80x104.png";case"frau":case"mrs":case"ms":case"miss":case"female":return"assets/images/defaultWoman_80x104.png"}return"assets/images/defaultUnisex_80x104.png"}getViewImgFileName(e){return"vwicn"+e.toString().padStart(3,"0")+".png"}getViewIconUrl(e){return this.getImgUrl(this.getViewImgFileName(e))}}return n.\u0275fac=function(e){return new(e||n)(M(ot))},n.\u0275prov=ge({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const fne=["selectedContact"],mne=["firstDocumentDestination"],gne=["secondDocumentDestination"],_ne=["docDestSelector"];function vne(n,t){if(1&n&&(g(0,"div",12),j(1),_()),2&n){const e=C();v("title",e.currentEmailSubject),f(1),qe("",e.currentEmailSubject,"\n")}}function yne(n,t){if(1&n&&(xi(0),j(1),Ii()),2&n){const e=C(2);f(1),qe(" ",e.globals.languageConfLocal.documentButtonTooltipOff," ")}}function bne(n,t){1&n&&j(0),2&n&&qe(" ",C(2).globals.languageConfLocal.documentVerb," ")}function Cne(n,t){if(1&n){const e=Ie();g(0,"button",13),W("click",function(){return J(e),Z(C().documentItem())}),H(1,yne,2,1,"ng-container",14),H(2,bne,1,1,"ng-template",null,15,Sn),_()}if(2&n){const e=Yt(3),i=C();v("disabled",i.noneSelected&&0===i.globals.addressActivities.documentsAsDestinations.length||0===i.globals.addressActivities.documentsAsDestinations.length&&!i.checkboxChecker)("title",i.noneSelected&&0===i.globals.addressActivities.documentsAsDestinations.length||0===i.globals.addressActivities.documentsAsDestinations.length&&!i.checkboxChecker?i.globals.languageConfLocal.documentButtonTooltipOff:i.documentButtonTooltip),f(1),v("ngIf",i.noneSelected&&0===i.globals.addressActivities.documentsAsDestinations.length||0===i.globals.addressActivities.documentsAsDestinations.length&&!i.checkboxChecker)("ngIfElse",e)}}function wne(n,t){if(1&n){const e=Ie();g(0,"button",16),W("click",function(){return J(e),Z(C().updateItem())}),j(1),_()}if(2&n){const e=C();v("title",e.updateButtonTooltip),f(1),ve(e.globals.languageConfLocal.updateVerb)}}function Ene(n,t){if(1&n&&(g(0,"mat-option",17),j(1),_()),2&n){const e=C();f(1),qe(" ",e.globals.languageConfLocal.doNotDocument," ")}}function Dne(n,t){if(1&n&&(g(0,"mat-option",20)(1,"div",21),j(2),_(),g(3,"div",22),j(4),_()()),2&n){const e=t.$implicit;v("value",e.email),f(2),ve(e.display),f(2),ve(e.email)}}function Sne(n,t){if(1&n&&(g(0,"mat-optgroup",18),H(1,Dne,5,3,"mat-option",19),_()),2&n){const e=C();v("label",e.primaryRecipients),f(1),v("ngForOf",e.addresses)("ngForTrackBy",e.tracker)}}function Ane(n,t){if(1&n&&(g(0,"mat-option",20)(1,"div",21),j(2),_(),g(3,"div",22),j(4),_()()),2&n){const e=t.$implicit;v("value",e.email),f(2),ve(e.display),f(2),ve(e.email)}}function Tne(n,t){if(1&n&&(g(0,"mat-optgroup",18),H(1,Ane,5,3,"mat-option",19),_()),2&n){const e=C();v("label",e.secondaryRecipients),f(1),v("ngForOf",e.addresses2nd)("ngForTrackBy",e.tracker)}}function xne(n,t){if(1&n&&(g(0,"mat-optgroup",18)(1,"mat-option",20)(2,"div",21),j(3),_(),g(4,"div",22),j(5),_()()()),2&n){const e=C();v("label",e.theOwnerText),f(1),v("value",e.theSender.email),f(2),ve(e.theSender.display),f(2),ve(e.theSender.email)}}function Ine(n,t){if(1&n&&(g(0,"mat-optgroup",18)(1,"mat-option",20)(2,"div",21),j(3),_(),g(4,"div",22),j(5),_()()()),2&n){const e=C();v("label",e.theAssignedText),f(1),v("value",e.theAssignee.email),f(2),ve(e.theAssignee.display),f(2),ve(e.theAssignee.email)}}function Mne(n,t){if(1&n&&(g(0,"small"),j(1),_()),2&n){const e=C().$implicit;f(1),qe(" (",e.dbTitle,")")}}function kne(n,t){if(1&n){const e=Ie();g(0,"button",39),W("valueChange",function(r){return Z(J(e).$implicit.pointer=r)})("click",function(){const o=J(e).$implicit;return Z(C(3).subdestinationClick(o.pointer))}),g(1,"span",40),j(2),H(3,Mne,2,1,"small",9),_()()}if(2&n){const e=t.$implicit,i=C(3);v("value",e.pointer)("ngClass",e.pointer===i.displayedDestination.pointer?"selectedDestination":""),f(1),v("title",e.name+(e.dbTitle?" ("+e.dbTitle+")":"")),f(1),zr("",e.name,"",e.companyName?" ("+e.companyName+")":""," "),f(1),v("ngIf",e.dbTitle)}}function Rne(n,t){if(1&n&&(g(0,"div",34)(1,"button",35),be(2,"img",36),_(),g(3,"mat-menu",null,37),H(5,kne,4,6,"button",38),_()()),2&n){const e=Yt(4),i=C(2);f(1),v("matBadge",i.destinationsToDisplay.length)("matMenuTriggerFor",e),f(1),v("src",i.currentAvatarURL,En)("title",i.globals.languageConfLocal.showContactsList),f(3),v("ngForOf",i.destinationsToDisplay)}}function One(n,t){if(1&n&&(g(0,"div",34),be(1,"img",41),_()),2&n){const e=C(2);f(1),v("src",e.currentAvatarURL,En)}}function Pne(n,t){if(1&n){const e=Ie();g(0,"div",42),W("click",function(){J(e);const r=C(2);return Z(r.datasource.addDocumentLinkToMail(r.displayedDestination))}),g(1,"span",43),j(2,"link"),_()()}if(2&n){const e=C(2);f(1),v("title",e.globals.languageConfLocal.addLinkTextToMail)}}function Lne(n,t){if(1&n&&(g(0,"a",44),j(1),_()),2&n){const e=C(2);v("href",e.displayedDestination.parentUrl,En)("title",e.displayedDestination.companyName),f(1),ve(e.displayedDestination.companyName)}}function Nne(n,t){if(1&n){const e=Ie();g(0,"div",42),W("click",function(){J(e);const r=C(2);return Z(r.datasource.addDocumentLinkToMail(r.displayedDestination,r.displayedDestination.companyName))}),g(1,"span",43),j(2,"link"),_()()}if(2&n){const e=C(2);f(1),v("title",e.globals.languageConfLocal.addLinkTextToMail)}}function Fne(n,t){if(1&n){const e=Ie();g(0,"mat-checkbox",29,45),W("change",function(r){return J(e),Z(C(2).destinationSelectorClicked(r))}),_()}if(2&n){const e=C(2);v("name",e.displayedDestination.companyPointer)("checked",e.initSelectedDoc&&e.displayedDestination.companyPointer===e.initSelectedDoc)}}function Bne(n,t){if(1&n&&(g(0,"div")(1,"span",46),j(2,"cake"),_(),g(3,"span",47),j(4),_()()),2&n){const e=C(2);f(4),ve(e.displayedDestination.additional.birthdate)}}function jne(n,t){if(1&n){const e=Ie();g(0,"div",51),W("click",function(){J(e);const r=C(3);return Z(r.datasource.addDocumentLinkToMail(r.displayedDestination,r.displayedDestination.additional.phone))}),g(1,"span",43),j(2,"link"),_()()}if(2&n){const e=C(3);f(1),v("title",e.globals.languageConfLocal.addLinkTextToMail)}}function Hne(n,t){if(1&n&&(g(0,"div",48)(1,"span",46),j(2,"call"),_(),g(3,"a",49),j(4),_(),H(5,jne,3,1,"div",50),_()),2&n){const e=C(2);f(3),_t("href","tel:"+e.displayedDestination.additional.phone,En),f(1),ve(e.displayedDestination.additional.phone),f(1),v("ngIf",e.settings.LinkOptionActive&&!e.globals.infoShower.isReadMode)}}function Vne(n,t){if(1&n){const e=Ie();g(0,"div",51),W("click",function(){J(e);const r=C(3);return Z(r.datasource.addDocumentLinkToMail(r.displayedDestination,r.displayedDestination.additional.cellphone))}),g(1,"span",43),j(2,"link"),_()()}if(2&n){const e=C(3);f(1),v("title",e.globals.languageConfLocal.addLinkTextToMail)}}function Une(n,t){if(1&n&&(g(0,"div",48)(1,"span",46),j(2,"phone_android"),_(),g(3,"a",49),j(4),_(),H(5,Vne,3,1,"div",50),_()),2&n){const e=C(2);f(3),_t("href","tel:"+e.displayedDestination.additional.cellphone,En),f(1),ve(e.displayedDestination.additional.cellphone),f(1),v("ngIf",e.settings.LinkOptionActive&&!e.globals.infoShower.isReadMode)}}function qne(n,t){if(1&n){const e=Ie();g(0,"div",23)(1,"div",24),H(2,Rne,6,5,"div",25),H(3,One,2,1,"div",25),g(4,"div",26)(5,"a",27),j(6),_(),H(7,Pne,3,1,"div",28),_(),g(8,"mat-checkbox",29,30),W("change",function(r){return J(e),Z(C().destinationSelectorClicked(r))}),_(),g(11,"div",26),H(12,Lne,2,3,"a",31),H(13,Nne,3,1,"div",28),_(),H(14,Fne,3,2,"mat-checkbox",32),_(),H(15,Bne,5,1,"div",9),H(16,Hne,6,3,"div",33),H(17,Une,6,3,"div",33),_()}if(2&n){const e=C();f(2),v("ngIf",e.destinationsToDisplay&&e.destinationsToDisplay.length>1),f(1),v("ngIf",e.destinationsToDisplay&&1===e.destinationsToDisplay.length),f(2),v("href",e.displayedDestination.url,En)("title",e.displayedDestination.name),f(1),ve(e.displayedDestination.name),f(1),v("ngIf",e.settings.LinkOptionActive&&!e.globals.infoShower.isReadMode),f(1),v("name",e.displayedDestination.pointer)("checked",e.initSelectedDoc&&e.displayedDestination.pointer===e.initSelectedDoc),f(4),v("ngIf",!e.displayedDestination.isCompany&&e.displayedDestination.companyName&&e.displayedDestination.companyName.length>0),f(1),v("ngIf",!e.displayedDestination.isCompany&&e.displayedDestination.companyName&&e.displayedDestination.companyName.length>0&&e.settings.LinkOptionActive&&!e.globals.infoShower.isReadMode),f(1),v("ngIf",!e.displayedDestination.isCompany&&e.displayedDestination.companyName&&e.displayedDestination.companyName.length>0),f(1),v("ngIf",e.displayedDestination.additional.birthdate),f(1),v("ngIf",e.displayedDestination.additional.phone),f(1),v("ngIf",e.displayedDestination.additional.cellphone)}}function zne(n,t){if(1&n&&(g(0,"div")(1,"div"),j(2),_()()),2&n){const e=C();f(2),ve(e.globals.languageConfLocal.emailNotFoundInCRM)}}function Gne(n,t){if(1&n&&(g(0,"div")(1,"div"),j(2),_()()),2&n){const e=C();f(2),ve(e.globals.languageConfLocal.afterSendNoAutomaticDocument)}}function Wne(n,t){if(1&n){const e=Ie();g(0,"div")(1,"button",52),W("click",function(){return J(e),Z(C().quickCreate())}),j(2),_()()}if(2&n){const e=C();f(1),_t("disabled",!e.extractedContactData),v("title",e.globals.languageConfLocal.ContactQuickCreation),f(1),ve(e.globals.languageConfLocal.ContactQuickCreation)}}function $ne(n,t){if(1&n&&(g(0,"mat-option",20),j(1),_()),2&n){const e=t.$implicit;v("value",e.db),f(1),qe(" ",e.alias," ")}}function Kne(n,t){if(1&n){const e=Ie();g(0,"mat-form-field",53)(1,"mat-label"),j(2),_(),g(3,"mat-select",54),W("valueChange",function(r){return J(e),Z(C().selectedOfficeDB=r)})("selectionChange",function(){return J(e),Z(C().setOfficeDB())}),H(4,$ne,2,2,"mat-option",55),_()()}if(2&n){const e=C();f(2),ve(e.globals.languageConfLocal.officeDatabase),f(1),v("value",e.selectedOfficeDB),f(1),v("ngForOf",e.officeDatabases)}}let Yne=(()=>{class n{constructor(e,i,r,o,s,a,l,c,u,d,h,m,y){this.globals=e,this.messageService=i,this.addressService=r,this.translate=o,this.datasource=s,this.ref=a,this.connectionService=l,this.waitListService=c,this.lsm=u,this.imageService=d,this.dialogService=h,this.settings=m,this.graph=y,this.compareFunc=KR,this.isNew=!0,this.isUpdate=!1,this.searchTextInput="",this.searchValue="",this.selection=new nl(!1),this.showRecentlyUsed=!0,this.isSet=!1,this.itRuns=!1,this.noneSelected=!1,this.whatItemIsThis="",this.theOwnerText="",this.theAssignedText="",this.primaryRecipients="",this.secondaryRecipients="",this.primaryPointer="",this.showDocumentButton=!1,this.doNotDocConst="doNotDocument",this.noFooterInfo=!1,this.incomingRecognition=new RegExp("(X-MS-Exchange-Organization-MessageDirectionality): *(Incoming|Originating)"),this.subscriptions=[],this.currentAvatarURL="",this.filteredAdditionalValues={},this.commonPointerData={},this.docImage={background:"transparent no-repeat url(assets/images/icons_business_mail.png)"},this.attachRdy=!1,this.attachDelete=!1}ngOnInit(){this.selectedEmailDropdown=new Co,this.recognizeCurrentItem();let e=Office.context.mailbox.item;e?.addHandlerAsync(Office.EventType.RecipientsChanged,this.recipientChanged,{asyncContext:this},i=>{Office}),this.waitForDocumentDestinationCheckChanged().subscribe({next:()=>{this.detectChanges()}}),this.waitForItemRecognition().subscribe(i=>{"appointment"===e?.itemType?this.graph.getExtendedData(this.currentItemId).subscribe(r=>{r&&(r.selEm===this.doNotDocConst&&(this.noneSelected=!0,this.noMoreAutoSelect=!0),void 0!==this.contactCreationOpened&&(this.contactCreationOpened=void 0),void 0===r.documentTarget&&void 0===r.selEm?(this.isNew=!0,this.lsm.setValue(Zt.appointmentIsNew,"1")):this.isNew="1"===this.lsm.getValue(Zt.appointmentIsNew),"gi"===this.globals.system?this.globals.infoShower.isReadMode?this.graph.getExtendedData(i).subscribe(o=>{this.finishAppointmentProcessing(o)}):e?.requiredAttendees.getAsync(o=>{this.isNew&&void 0===r.docEm&&o.value.length>0&&(r.selEm=o.value[0].emailAddress,r.docEm=o.value[0].emailAddress,this.graph.saveExtendedData(i,r).subscribe(s=>{this.finishAppointmentProcessing(r)}))}):this.finishAppointmentProcessing(r))}):this.graph.saveExtendedData(this.currentItemId,new jc).subscribe(r=>{this.doProcessAddresses(),e?.body.getAsync(Office.CoercionType.Html,{},o=>{this.convertedBody=(0,Jd.convert)(o.value,{preserveNewlines:!1,wordwrap:null}).trim().replace(/^\xa0+/gm,"").replace(/(\r\n|\r|\n){2,}/gm,"\n\n"),this.datasource.extractContactData(this.convertedBody).subscribe(s=>{this.extractedContactData=s,console.log("extractedContactData ",this.extractedContactData)}),setTimeout(()=>{this.extractedContactData={Company:"",CompanyPointer:"",CompanyEmail:"",CompanyPhone:"",CompanyFax:"",CompanyName:"",CompanyAddress:"",Street:"",City:"",ZipCity:"",Zip:"",Phone:"",Fax:"",Mobile:"",Email:"",Url:"",LastName:"",FirstName:"",MiddleName:"",Department:"",MainEmailAddressType:"",MainAddressType:""},this.noFooterInfo=!0},5e3)})})}),this.waitForUpdateBM4ODataCommand().subscribe(i=>{i.selEm=this.selectedEmailAddress,i.documentTarget=this.primaryPointer,i.selDest=this.displayedDestination?.pointer,i.otherDoc=!this.firstDocumentDestination.checked&&!this.secondDocumentDestination.checked,"gi"===this.globals.system&&(i.officeDB=this.selectedOfficeDB)}),this.globals.onActiveWindowChange().subscribe(i=>{"main"===i.newWindow&&"contactCreation"===i.currentWindow&&this.globals.contactCreated&&(this.globals.contactCreated=!1,this.ngOnInit())}),this.globals.infoShower=this,this.waitListService.notifyWaitList("init",!0)}finishAppointmentProcessing(e){this.initSelectedDoc=e?.documentTarget??"",e.otherDoc&&(this.initSelectedDoc=""),e.selEm?(this.selectedEmailAddress=e.selEm,this.doSelectContactOverEmail(e.selEm,e.selDest)):this.selectedEmailAddress=this.doNotDocConst,this.doProcessAddresses(e)}recognizeCurrentItem(){let e=Office.context.mailbox.item;this.noMoreAutoSelect=!1,e&&(this.globals.incomingMail=!1,this.isAppointment="appointment"===e.itemType,this.isAppointment?(this.whatItemIsThis="Meeting",this.recognizeAppointment(e)):"function"==typeof e.getAllInternetHeadersAsync?e.getAllInternetHeadersAsync(i=>{(i?.value?.length>0&&this.incomingRecognition.test(i.value)||e?.to[0].emailAddress===Office.context.mailbox.userProfile.emailAddress&&e.from.emailAddress.indexOf("noreply@microsoft.com")>0)&&(this.globals.incomingMail=!0),this.recognizeEmail(e)}):this.recognizeEmail(e)),"gi"===this.globals.system?(this.showRecentlyUsed=!1,this.isAppointment&&(this.showDocumentButton=!1)):this.isAppointment&&(this.showDocumentButton=!1)}recognizeEmail(e){if(e){this.isReadMode=void 0===e.getItemIdAsync||void 0===typeof e.getItemIdAsync,this.whatItemIsThis="Email",this.translate.get("translationWait").subscribe(()=>{this.theOwnerText=this.globals.languageConfLocal.sender,this.primaryRecipients="("+this.globals.languageConfLocal.to+") "+this.globals.languageConfLocal.recipients,this.secondaryRecipients="(Cc) "+this.globals.languageConfLocal.recipients}),this.showDocumentButton=this.isReadMode;let i="1"===this.lsm.getValue(Zt.sendInProcess);this.isReadMode?(this.translate.get("translateWait").subscribe(()=>{this.documentButtonTooltip=this.globals.languageConfLocal.DocumentTheMail+" "+e?.subject}),this.currentEmailSubject=e.subject,this.currentItemId=e.itemId,this.itemRecognized()):e.saveAsync&&"function"==typeof e.saveAsync&&this.datasource.IsTaskpaneActive()&&!i&&e.saveAsync(r=>{this.currentItemId=r.value,this.itemRecognized()})}}recognizeAppointment(e){this.isReadMode=void 0===e.getItemIdAsync||void 0===typeof e.getItemIdAsync,this.translate.get("translationWait").subscribe(()=>{this.updateButtonTooltip=this.globals.languageConf.updateButtonTooltip,this.theOwnerText=this.globals.languageConfLocal.owner,this.theAssignedText=this.globals.languageConfLocal.assignedTo,this.primaryRecipients=this.globals.languageConfLocal.requiredAttendee,this.secondaryRecipients=this.globals.languageConfLocal.optionalAttendee});let i="1"===this.lsm.getValue(Zt.sendInProcess);if("function"==typeof e.saveAsync&&this.datasource.IsTaskpaneActive()&&!i){let r=e;e.saveAsync(o=>{r?.getItemIdAsync(s=>{this.currentItemId=s.value,this.itemRecognized()})})}else this.currentItemId=e.itemId,this.itemRecognized()}detectChanges(){this.ref.detectChanges()}ngOnDestroy(){clearInterval(this.refreshInt);for(const e of this.subscriptions)e.unsubscribe()}doProcessAddresses(e){this.itRuns||(this.itRuns=!0,this.addressService.newProcessAddress().subscribe({next:i=>{this.graph.getExtendedData(this.currentItemId).subscribe(r=>{if(i.fromEmail&&(this.theSender=new kb,this.theSender.display=i.fromName,this.theSender.email=i.fromEmail,this.theSender.fromEmail=!0),this.addresses=i.primary,this.theSender){let o=this.addresses.findIndex(s=>s.email.toLowerCase()===this.theSender.email.toLowerCase());o>=0&&this.addresses.splice(o,1)}this.addresses2nd=i.secondary,this.addressesAll=i.primary.concat(i.secondary),r&&r.docEm&&-1===this.addressesAll.findIndex(o=>o.email.toLowerCase()===r.docEm?.toLowerCase())&&(this.theAssignee=new kb,this.theAssignee.email=r.docEm,this.theAssignee.display=r.docEm,this.addressesAll.push(this.theAssignee)),0===this.addressesAll.length&&(r.selEm=this.doNotDocConst,r.docEm=void 0,r.selDest=void 0,this.graph.saveExtendedData(this.currentItemId,r).subscribe(o=>{this.selectNothing()})),this.addressesAll.push(this.theSender),this.detectChanges(),this.itRuns=!1,this.findCRMAddress(0,e)})}}))}findCRMAddress(e,i){if(this.noMoreAutoSelect)return;if(i){let s=i.selEm;if(!s&&0===e){s=this.addressesAll[0].email,this.selectedContact.value=s;let a=i.otherDoc;(i=new jc).selDest="INITIALIZE",i.otherDoc=a}if(s)return void this.fetchEmailDataFromCRM(s,e,!0,i)}if(this.globals.incomingMail){let s=this.addressesAll.find(a=>a.fromEmail);if(s)return void this.fetchEmailDataFromCRM(s.email,e,!1,i)}if(this.addressesAll.some(s=>s.email===this.selectedContact.value&&!s.fromEmail))return;if(this.addressesAll[e]&&this.addressesAll[e].fromEmail&&this.findCRMAddress(e+1),e+1>this.addressesAll.length){if(!(this.addressesAll.length>0))return void this.selectNothing();{let s=this.addressesAll[0];if(!s||s.fromEmail)return void this.selectNothing();this.selectedContact.value=s.email,this.selectedContactChanged(null,s.email)}return void this.detectChanges()}let r=this.addressesAll[e];r.fromEmail||this.fetchEmailDataFromCRM(r.email,e,!1,i)}fetchEmailDataFromCRM(e,i,r=!1,o){let s=new $t;s=s.set("mail",e),this.connectionService.processAddress(s).subscribe(a=>{this.selectedAddressDetails=a,this.processAvatar(this.selectedAddressDetails.data[0]),this.definePossibleDestinations().subscribe(()=>{if(!(this.selectedAddressDetails&&this.selectedAddressDetails.data.length>0))return this.globals.incomingMail?(this.selectedContact.value=e,this.selectedContactChanged(null,e,null),void this.destinationChanged(o)):void(r||this.findCRMAddress(i+1));void 0===this.selectedContact.value||!this.addressesAll.some(l=>l.email===this.selectedContact.value)||this.noneSelected||e&&e!==this.selectedContact.value?(this.selectedContact.value=e,this.selectedContactChanged(null,e,this.selectedAddressDetails.data[0].pointer),this.destinationChanged(o)):(this.detectChanges(),this.destinationChanged(o))})})}processAvatar(e){let i=e?.additional?.imageURL,r=e?.additional?.base64image,o=e?.additional?.gender;this.currentAvatarURL=r||(i?this.imageService.getImgUrl(i):this.imageService.getLocalImgUrl(o,e?.isCompany))}selectNothing(){this.destinationsToDisplay=[],this.displayedDestination=null,this.destinationChanged(),this.selectedEmailAddress=this.doNotDocConst,this.noneSelected=!0,this.detectChanges()}selectedContactChanged(e,i="",r=null){if(this.initSelectedDoc="",this.unselectDestinations(),this.isAppointment&&this.selectedEmailAddress===this.doNotDocConst){let o=new jc;return o.selEm=this.doNotDocConst,this.graph.saveExtendedData(this.currentItemId,o).subscribe(s=>{}),this.selectNothing(),this.noMoreAutoSelect=!0,void this.globals.hideSpinner()}this.noMoreAutoSelect=!i&&!r&&this.selectedEmailAddress===this.doNotDocConst,this.officeDatabases=[],this.noneSelected=!1,i||(i=this.selectedContact.value),this.lsm.setValue(Zt.selectedEmail,i),i&&i!==this.doNotDocConst?r?(this.setDestinationInfo(r),this.detectChanges()):this.doSelectContactOverEmail(i):(this.graph.getExtendedData(this.currentItemId).subscribe(o=>{o.selEm=i,this.graph.saveExtendedData(this.currentItemId,o).subscribe(s=>{})}),this.globals.addressActivities.documentsAsDestinations=[],this.noneSelected=!0,this.displayedDestination=null,this.selectedAddressDetails={},this.destinationChanged(),this.detectChanges()),this.globals.hideSpinner()}doSelectContactOverEmail(e,i){let r=new $t;r=r.set("mail",e),this.connectionService.processAddress(r).subscribe(o=>{this.selectedAddressDetails=o,this.definePossibleDestinations().subscribe(()=>{this.selectedAddressDetails&&this.selectedAddressDetails.data.length>0?i&&"appointment"===Office.context.mailbox.item?.itemType?(this.displayedDestination=this.destinationsToDisplay.find(s=>s.pointer===i),this.processAvatar(this.displayedDestination),this.graph.getExtendedData(this.currentItemId).subscribe(s=>{this.destinationChanged(s),this.detectChanges()})):(this.setDestinationInfo(this.selectedAddressDetails.data[0].pointer),this.destinationChanged(),this.detectChanges()):(this.noneSelected=!0,this.graph.getExtendedData(this.currentItemId).subscribe(s=>{s.selEm=e,s.selDest="",this.destinationChanged(s),this.detectChanges(),this.graph.saveExtendedData(this.currentItemId,s).subscribe(a=>{})}))})})}getOfficeDBs(e,i=null){this.getDBConnections().subscribe(r=>{r&&this.extractOfficeDBs(e,r,i)})}extractOfficeDBs(e,i,r=null){try{let o=e;if(this.officeDatabases=[],this.selectedOfficeDB="",o)if(r===El.activity){const s=this.extractDBFromPointer(o);i.hasOwnProperty(s)?this.extractOfficeDBsOfContact(o,i):(this.officeDatabases=[{db:s,alias:""}],this.selectedOfficeDB=this.officeDatabases[0].db,this.setOfficeDB(),this.detectChanges())}else this.extractOfficeDBsOfContact(o,i)}catch{this.translate.get("LC39396").subscribe(s=>{this.messageService.showError(s)})}}extractOfficeDBsOfContact(e,i){const o=i[this.extractDBFromPointer(e)].officeDBs;for(const s of o)this.officeDatabases.push({db:s,alias:i.GeOfficeAliases[s]});this.officeDatabases.length>=1&&(this.selectedOfficeDB=this.officeDatabases[0].db,this.setOfficeDB()),this.detectChanges(),this.officeDatabases.length<1&&this.translate.get("LC39396").subscribe(s=>{this.messageService.showError(s)})}extractDBFromPointer(e){return e.substring(e.lastIndexOf("|")+1)}subdestinationClick(e){this.initSelectedDoc="",this.unselectDestinations(),this.displayedDestination=this.destinationsToDisplay.find(i=>i.pointer===e),this.destinationChanged(),this.setDestinationInfo(e),this.detectChanges()}definePossibleDestinations(){return new b(e=>{let i=this.selectedAddressDetails.data.filter(r=>!r.isCompany).map(r=>r.companyPointer);this.destinationsToDisplay=this.selectedAddressDetails.data.filter(r=>!r.isCompany||0===i.length||!i.some(o=>o===r.pointer)),this.destinationsToDisplay.length>0?(!this.displayedDestination||!this.displayedDestination.pointer||0===this.displayedDestination.pointer.length||!this.destinationsToDisplay.some(r=>r.pointer===this.displayedDestination.pointer))&&(this.getDBConnections().subscribe(r=>{if(r)for(let o of this.destinationsToDisplay){if(o.pointer){let s=this.extractDBFromPointer(o.pointer);o.dbTitle=r[s].title}console.log("destination is ",o)}}),this.displayedDestination=this.destinationsToDisplay[0]):this.displayedDestination=null,this.globals.mainDestinationCheckboxes=this.destinationCheckboxes,this.displayedDestination?this.graph.getExtendedData(this.currentItemId).subscribe(r=>{r.selEm=this.displayedDestination.additional.mail,r.documentTarget=this.displayedDestination.pointer,this.graph.saveExtendedData(this.currentItemId,r).subscribe(o=>{e.next()})}):e.next()})}setDestinationInfo(e,i=null,r=!1){this.lsm.clear(),this.primaryPointer=e,this.documentDestinationCheckChanged(),this.checkboxChecker=""!==e,Office.context.mailbox.item&&(this.lsm.setValue(Zt.primaryTarget,e),this.graph.getExtendedData(this.currentItemId).subscribe(s=>{s.selEm=this.selectedEmailAddress,s.documentTarget=e,s.otherDoc=r,this.displayedDestination&&(s.selDest=this.displayedDestination.pointer),this.graph.saveExtendedData(this.currentItemId,s).subscribe(a=>{a?.value?.indexOf("NoError")<0&&this.messageService.showError(this.globals.languageConfLocal.errorWhileSavingCRMData),this.getOfficeDBs(e,i)})}))}setOfficeDB(){Office.context.mailbox.item&&(this.lsm.setValue(Zt.officeDB,this.selectedOfficeDB),this.graph.getExtendedData(this.currentItemId).subscribe(i=>{i.officeDB=this.selectedOfficeDB,this.graph.saveExtendedData(this.currentItemId,i).subscribe(r=>{})}))}destinationSelectorClicked(e){if(e.checked){this.graph.getExtendedData(this.currentItemId).subscribe(r=>{r.otherDoc=!1,this.graph.saveExtendedData(this.currentItemId,r).subscribe(o=>{})}),this.officeDatabases=[];let i=this.destinationCheckboxes.toArray();this.globals.otherDestinationCheckboxes&&this.globals.otherDestinationCheckboxes.length>0&&(i=i.concat(this.globals.otherDestinationCheckboxes.toArray())),i.forEach(r=>{r.name!==e.source.name&&(r.checked=!1)}),this.setDestinationInfo(e.source.name)}else this.setDestinationInfo("");this.detectChanges(),setTimeout(()=>{console.log("docs as dest: ",this.globals.addressActivities.documentsAsDestinations),console.log("otherDestinationCheckboxes: ",this.globals.otherDestinationCheckboxes),console.log("otherDestinationCheckboxes.length: ",this.globals.otherDestinationCheckboxes.length),console.log("initSelectedDoc: ",this.initSelectedDoc),console.log("displayedDestination.pointer: ",this.displayedDestination.pointer),console.log("displayedDestination.companypointer: ",this.displayedDestination.companyPointer)},2e3)}selectFirst(){let e=new AR;e.source=this.firstDocumentDestination,e.checked=!0,this.firstDocumentDestination&&(this.firstDocumentDestination.checked=!0,this.destinationSelectorClicked(e))}tracker(e,i){return i.email}collapsibleClicked(e){let i=e.currentTarget;i.classList.toggle("active");let r=i.nextElementSibling;r.classList.contains("initOpened")&&(r.classList.remove("initOpened"),r.classList.add("content"),r.style.maxHeight=r.scrollHeight+"px"),r.style.maxHeight=r.style.maxHeight?null:r.scrollHeight+"px"}unselectDestinations(){this.secondDocumentDestination&&(this.secondDocumentDestination.checked=!1),this.firstDocumentDestination&&(this.firstDocumentDestination.checked=!1)}tabChanged(e){this.destinationChanged()}destinationChanged(e){let i=this.displayedDestination;(!e||"INITIALIZE"===e.selDest||e.otherDoc)&&this.firstDocumentDestination&&(this.unselectDestinations(),e?.otherDoc||(this.firstDocumentDestination.checked=!0)),this.processAvatar(i);for(const r of this.waitListService.accessWaitList("destinationChanged"))r.next(i)}waitForDestinationChange(){return new b(e=>{this.waitListService.addToWaitList("destinationChanged",e)})}waitForDocumentDestinationCheckChanged(){return new b(e=>{this.waitListService.addToWaitList("documentDestinationCheckChanged",e)})}documentDestinationCheckChanged(){let e=this.displayedDestination;for(const i of this.waitListService.accessWaitList("documentDestinationCheckChanged"))i.next(e)}itemRecognized(){if(this.isAppointment)this.datasource.readCRMDataForItem(this.currentItemId).subscribe(()=>{for(const e of this.waitListService.accessWaitList("itemRecognized"))e.next(this.currentItemId)});else for(const e of this.waitListService.accessWaitList("itemRecognized"))e.next(this.currentItemId)}waitForItemRecognition(){return new b(e=>{this.waitListService.addToWaitList("itemRecognized",e)})}documentItem(){let e=Office.context.mailbox.item;e&&this.isReadMode&&this.graph.getExtendedData(this.currentItemId).subscribe(i=>{this.globals.hideSpinner(),i.documentedOnSend&&!this.globals.incomingMail?this.dialogService.createDialogWithType(pa.alreadyDocumented).subscribe(r=>{r.afterClosed().subscribe(o=>{!0===o&&this.startDocumentation(e,i)})}):this.startDocumentation(e,i)})}getReplyToMail(e){return new b(i=>{e.getAllInternetHeadersAsync(r=>{if(r.status===Office.AsyncResultStatus.Succeeded){let s=r.value.match(/Reply-To:\s*([^\r\n]*)/i);if(s){let a=s[1].trim();console.log("Reply-To Address with name:",a);let l=a.match(/<([^>]+)>/);if(l){let c=l[1].trim();console.log("Extracted Reply-To Email Address:",c),i.next(c)}else console.log("No email address found between < >"),i.next("")}else console.log("No Reply-To header found"),i.next("")}else console.error("Error getting internet headers:",r.error),i.error(r.error);i.complete()})})}startDocumentation(e,i){i.documentTarget&&("appointment"===e?.itemType?(i.type="appointment",this.datasource.documentItemWithUI(i)):this.getReplyToMail(e).subscribe(r=>{r&&(console.log("replyTo is:",r),i.replyTo=r),i.type="mail",console.log("description is:",i),this.datasource.documentItemWithUI(i)},r=>{console.error("Error fetching Reply-To email:",r)}))}recipientChanged(e){document.getElementById("recipientsEventTrigger").click()}recipientsEventTrigger(){this.doProcessAddresses()}getDBConnections(){return new b(e=>{this.datasource.fetchDBs("dbConnections",null).subscribe(i=>{e.next(i)})})}getHomepageUrl(e){return e&&e.length>0&&!e.toLowerCase().startsWith("http")?"http://"+e:e}quickCreate(){this.contactCreationOpened=this.isNew,this.displayedDestination&&this.displayedDestination.additional.fallback&&(this.extractedContactData.CompanyName=this.displayedDestination.name,this.extractedContactData.CompanyAddress=this.displayedDestination.additional.fullAddress,this.extractedContactData.CompanyPointer=this.displayedDestination.pointer),this.globals.activeWindow="contactCreation"}updateItem(){this.isUpdate=!0,this.updateBM4ODataCommand()}waitForUpdateBM4ODataCommand(){return new b(e=>{this.waitListService.addToWaitList("updateBM4OData",e)})}updateBM4ODataCommand(){this.graph.getExtendedData(this.currentItemId).subscribe(e=>{for(const i of this.waitListService.accessWaitList("updateBM4OData"))i.next(e);this.graph.saveExtendedData(this.currentItemId,e).subscribe(i=>{this.isUpdate=!1,this.messageService.showSuccess(this.globals.languageConfLocal.crmDataUpdated)})})}}return n.\u0275fac=function(e){return new(e||n)(p(ot),p(tn),p(Ps),p(Ut),p(Bi),p(St),p(In),p(Ri),p(Mi),p(pne),p(nm),p(Kc),p(ya))},n.\u0275cmp=Ue({type:n,selectors:[["app-info-shower"]],viewQuery:function(e,i){if(1&e&&(De(fne,5),De(mne,5),De(gne,5),De(_ne,5)),2&e){let r;ce(r=ue())&&(i.selectedContact=r.first),ce(r=ue())&&(i.firstDocumentDestination=r.first),ce(r=ue())&&(i.secondDocumentDestination=r.first),ce(r=ue())&&(i.destinationCheckboxes=r)}},decls:21,vars:16,consts:[["class","emailSubjectLine",3,"title",4,"ngIf"],["mat-flat-button","","color","documentBtn","style","width: 100%;margin-top: 4px; margin-bottom: 10px;",3,"disabled","title","click",4,"ngIf"],["mat-flat-button","","color","documentBtn","style","width: 100%;margin-top: 4px; margin-bottom: 10px;",3,"title","click",4,"ngIf"],["appearance","fill",1,"noLabel",2,"width","100%"],[1,"documentationContactSelector",3,"ngModel","formControl","selectionChange","ngModelChange"],["selectedContact",""],["class","doNotDocument","value","doNotDocument",4,"ngIf"],[3,"label",4,"ngIf"],["class","contactCardPart",4,"ngIf"],[4,"ngIf"],["hidden","","id","recipientsEventTrigger",3,"click"],["class","databaseSearchSelect","appearance","standard",4,"ngIf"],[1,"emailSubjectLine",3,"title"],["mat-flat-button","","color","documentBtn",2,"width","100%","margin-top","4px","margin-bottom","10px",3,"disabled","title","click"],[4,"ngIf","ngIfElse"],["enabledContent",""],["mat-flat-button","","color","documentBtn",2,"width","100%","margin-top","4px","margin-bottom","10px",3,"title","click"],["value","doNotDocument",1,"doNotDocument"],[3,"label"],[3,"value",4,"ngFor","ngForOf","ngForTrackBy"],[3,"value"],[1,"displayInSelection"],[1,"emailInSelection"],[1,"contactCardPart"],[1,"destinationSelectorHolder"],["class","destinationImage",4,"ngIf"],["id","hoverArea",1,"destFlex"],["target","_blank",1,"addressLabel","importantText",3,"href","title"],["id","overlayLinkMailinfo",3,"click",4,"ngIf"],[1,"destinationSelector",3,"name","checked","change"],["firstDocumentDestination","","docDestSelector",""],["target","_blank","class","addressLabel",3,"href","title",4,"ngIf"],["class","destinationSelector",3,"name","checked","change",4,"ngIf"],["id","hoverArea",4,"ngIf"],[1,"destinationImage"],["mat-icon-button","","matBadgePosition","before","matBadgeSize","small","matBadgeOverlap","true",3,"matBadge","matMenuTriggerFor"],[3,"src","title"],["menu","matMenu"],["mat-menu-item","",3,"value","ngClass","valueChange","click",4,"ngFor","ngForOf"],["mat-menu-item","",3,"value","ngClass","valueChange","click"],[3,"title"],[3,"src"],["id","overlayLinkMailinfo",3,"click"],[1,"material-symbols-rounded","LinkIcon",3,"title"],["target","_blank",1,"addressLabel",3,"href","title"],["docDestSelector","","secondDocumentDestination",""],[1,"material-symbols-rounded"],[1,"webTelLink"],["id","hoverArea"],["target","_blank",1,"webTelLink",3,"href"],["id","overlayLinkMailinfo2",3,"click",4,"ngIf"],["id","overlayLinkMailinfo2",3,"click"],["mat-flat-button","","color","documentBtn",2,"width","100%","margin-top","1em","margin-bottom","1em",3,"disabled","title","click"],["appearance","standard",1,"databaseSearchSelect"],[3,"value","valueChange","selectionChange"],[3,"value",4,"ngFor","ngForOf"]],template:function(e,i){1&e&&(H(0,vne,2,2,"div",0),H(1,Cne,4,4,"button",1),H(2,wne,2,2,"button",2),g(3,"div")(4,"mat-form-field",3)(5,"mat-select",4,5),W("selectionChange",function(o){return i.selectedContactChanged(o)})("ngModelChange",function(o){return i.selectedEmailAddress=o}),g(7,"mat-select-trigger"),j(8),_(),H(9,Ene,2,1,"mat-option",6),H(10,Sne,2,3,"mat-optgroup",7),H(11,Tne,2,3,"mat-optgroup",7),H(12,xne,6,4,"mat-optgroup",7),H(13,Ine,6,4,"mat-optgroup",7),_()()(),H(14,qne,18,14,"div",8),H(15,zne,3,1,"div",9),H(16,Gne,3,1,"div",9),H(17,Wne,3,3,"div",9),g(18,"button",10),W("click",function(){return i.recipientsEventTrigger()}),_(),be(19,"br"),H(20,Kne,5,3,"mat-form-field",11)),2&e&&(v("ngIf",i.isReadMode&&!i.isAppointment),f(1),v("ngIf",i.showDocumentButton),f(1),v("ngIf",!i.isNew),f(3),v("ngModel",i.selectedEmailAddress)("formControl",i.selectedEmailDropdown),f(3),qe(" ","doNotDocument"===i.selectedEmailDropdown.value?i.globals.languageConfLocal.doNotDocument:i.selectedEmailDropdown.value," "),f(1),v("ngIf",!i.isReadMode||i.isAppointment),f(1),v("ngIf",i.addresses&&i.addresses.length>0),f(1),v("ngIf",i.addresses2nd&&i.addresses2nd.length>0),f(1),v("ngIf",i.theSender),f(1),v("ngIf",i.theAssignee),f(1),v("ngIf",i.displayedDestination),f(1),v("ngIf",!i.isAppointment&&i.destinationsToDisplay&&0===(null==i.destinationsToDisplay?null:i.destinationsToDisplay.length)&&"doNotDocument"!==i.selectedEmailAddress&&i.addressesAll.length>1),f(1),v("ngIf",!i.isAppointment&&(i.noneSelected||i.destinationsToDisplay&&0===(null==i.destinationsToDisplay?null:i.destinationsToDisplay.length))&&!i.isReadMode),f(1),v("ngIf",i.isReadMode&&!i.isAppointment&&(i.destinationsToDisplay&&0===(null==i.destinationsToDisplay?null:i.destinationsToDisplay.length)&&"doNotDocument"!==i.selectedEmailAddress&&i.addressesAll.length>1||i.displayedDestination&&i.displayedDestination.additional.fallback)),f(3),v("ngIf",null!=i.officeDatabases&&i.officeDatabases.length>1&&!i.isAppointment))},dependencies:[$a,zn,pn,Kr,af,vk,iu,Ck,Ir,Pi,Ko,V9,cr,F6,tl,ate,pg],styles:['.emailSubjectLine{margin:auto;padding-top:30px;font-size:21px;font-weight:100;font-family:Segoe UI,"Segoe UI Web (West European)",Segoe UI,-apple-system,BlinkMacSystemFont,Roboto,Helvetica Neue,sans-serif}.buttonP{float:left}.buttonN{float:right}.buttonContainer{width:100%;overflow:hidden}.pages{display:flex;width:400%;box-sizing:border-box}.page{display:flex;align-items:center;justify-content:center;flex-direction:column;gap:10px;transition:all .7s}.hidden{display:none}.grayDiv{background-color:#faf3f3}.mat-option{height:4em!important}.destinationSelectorHolder{display:grid;grid-template-columns:22% 71% 7%;padding-bottom:.5em}.contactCardPart{padding:5px;background-color:#0000000a;border-radius:0 0 5px 5px;border:1px solid #e5e5e5}.material-symbols-rounded{font-variation-settings:"FILL" 0,"wght" 300,"GRAD" -25,"opsz" 18}.mat-checkbox-background,.mat-checkbox-frame{border-radius:50%!important}.mat-checkbox .mat-checkbox-frame,.mat-checkbox-checked .mat-checkbox-background{transform:scale(1.1)}.mat-checkbox-checkmark{width:10px!important;top:3px!important;left:3px!important}.destinationImage{grid-row:span 2}.destinationImage>button>* img,.destinationImage>img,.destinationImage>button{object-fit:cover;border-radius:50%;height:55px;width:55px}button{background-color:transparent}.mat-badge-content.mat-badge-active{top:.05em!important;left:.1em!important}.addressLabel{font-weight:600;margin-right:2px;max-width:95%;line-height:normal;text-overflow:ellipsis;overflow:hidden;white-space:nowrap}table>tbody>tr>td{padding:0!important}.noLabel>* .mat-form-field-flex{padding-top:0!important}.mat-form-field.noLabel{padding-top:3px}.mat-form-field.noLabel .mat-form-field-wrapper{padding-bottom:0}.mat-form-field.noLabel .mat-form-field-underline{bottom:0}.mat-optgroup-label{background-color:#f0f0f0}.displayInSelection{height:1.1em}.emailInSelection{color:#616161;font-size:smaller}.webTelLink{padding-left:5px;vertical-align:top}.doNotDocument{color:#f08080}.selectedDestination{background-color:#0000001f}mat-form-field.noLabel>div{border-radius:5px;border:1px solid #e5e5e5;border-bottom:none}.mat-documentBtn{background-color:#f28e00;color:#f0f0f0}.databaseSearchSelect{width:100%}.emailSubjectLine{overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap;padding-bottom:5px;font-size:medium;padding-top:5px}#hoverArea{position:relative;height:auto}#hoverArea:hover #overlayLinkMailinfo,#hoverArea:hover #overlayLinkMailinfo2{visibility:visible!important}.destFlex{display:flex;align-items:start;justify-content:space-between}#overlayLinkMailinfo{visibility:hidden;position:absolute;cursor:pointer;top:-4px!important;right:5px!important;width:24px;height:24px;color:#202020;background-color:#fff;border-radius:16px;padding-top:0;padding-bottom:0;margin-top:0!important;color:#000000de;opacity:.7}#overlayLinkMailinfo2{color:#000000de;opacity:.7;visibility:hidden;position:absolute;cursor:pointer;top:0px;right:25px;width:24x;height:24px;color:#202020;background-color:#fff;border-radius:16px;padding-top:0;padding-bottom:0;margin-top:0}\n'],encapsulation:2}),n})();const Qne=["docDestSelector"];function Jne(n,t){if(1&n){const e=Ie();g(0,"div",14),W("click",function(){J(e);const r=C().$implicit;return Z(C(2).datasource.addDocumentLinkToMail(r))}),g(1,"span",15),j(2,"link"),_()()}if(2&n){const e=C(3);f(1),v("title",e.globals.languageConfLocal.addLinkTextToMail)}}function Zne(n,t){if(1&n){const e=Ie();g(0,"mat-chip",8),W("removed",function(){const o=J(e).$implicit;return Z(C(2).removeDocumentDestination(o))}),be(1,"img",9),g(2,"div",10),j(3),_(),H(4,Jne,3,1,"div",11),g(5,"button",12)(6,"span",13),j(7,"cancel"),_()()()}if(2&n){const e=t.$implicit,i=C(2);v("removable",!0)("title",e.name),f(1),v("src",i.datasource.getImageSrc(e.image),En),f(2),ve(e.name),f(1),v("ngIf",i.settings.LinkOptionActive&&!i.globals.infoShower.isReadMode),f(2),v("title",i.globals.languageConfLocal.removeFromList)}}function Xne(n,t){1&n&&be(0,"input",16,17),2&n&&(C(),v("matChipInputFor",Yt(4)))}function eie(n,t){if(1&n&&(g(0,"mat-form-field",2)(1,"mat-label",3),j(2),_(),g(3,"mat-chip-list",4,5),H(5,Zne,8,6,"mat-chip",6),H(6,Xne,2,1,"input",7),_()()),2&n){const e=C();f(2),ve(e.getDocumentedLabel()),f(3),v("ngForOf",e.documentsAsDestinations),f(1),v("ngIf",e.documentsAsDestinations&&e.documentsAsDestinations.length>0)}}function tie(n,t){if(1&n&&(g(0,"mat-option",21),j(1),_()),2&n){const e=t.$implicit;v("value",e.alias),f(1),qe(" ",e.name," ")}}function nie(n,t){if(1&n&&(g(0,"div",34),j(1),_()),2&n){const e=C().$implicit;v("title",e.lineTwoOverride),f(1),ve(e.lineTwoOverride)}}function iie(n,t){if(1&n&&(g(0,"div",34),j(1),_()),2&n){const e=C().$implicit,i=C(3);v("title",e.fdTicketNo?e.subject+" "+i.formatDate(e.dateInMS,"dd.MM.YYYY HH:mm","en_US"):i.formatDate(e.dateInMS,"dd.MM.YYYY HH:mm","en_US")),f(1),qe(" ",e.fdTicketNo?e.subject+" "+i.formatDate(e.dateInMS,"dd.MM.YYYY HH:mm","en_US"):i.formatDate(e.dateInMS,"dd.MM.YYYY HH:mm","en_US")," ")}}function rie(n,t){if(1&n){const e=Ie();g(0,"button",35),W("click",function(){J(e);const r=C().$implicit;return Z(C(3).datasource.addDocumentLinkToMail(r))}),g(1,"span",36),j(2,"link"),_()()}2&n&&v("title",C(4).globals.languageConfLocal.addLinkTextToMail)}function oie(n,t){if(1&n){const e=Ie();g(0,"div",24)(1,"div",25),be(2,"img",26),g(3,"a",27),W("click",function(r){const s=J(e).$implicit,a=C(3);return a.openInBrowser("gi"===a.globals.system?a.createWebintLink(s.pointer):s.url),Z(r.preventDefault())}),g(4,"div")(5,"div",28),j(6),_(),H(7,nie,2,2,"div",29),H(8,iie,2,2,"div",29),_()()(),g(9,"div",30),H(10,rie,3,1,"button",31),g(11,"mat-checkbox",32,33),W("change",function(r){const s=J(e).$implicit;return Z(C(3).destinationActivitySelectorClicked(r,s.subject,s.viewIconUrl))}),_()()()}if(2&n){const e=t.$implicit,i=C(3);f(2),v("src",e.viewIconUrl,En),f(3),v("title",e.subject),f(1),ve(e.fdTicketNo?e.fdTicketNo:e.subject),f(1),v("ngIf",e.lineTwoOverride&&null!=e.lineTwoOverride),f(1),v("ngIf",!e.lineTwoOverride||null==e.lineTwoOverride),f(2),v("ngIf",i.settings.LinkOptionActive&&!i.globals.infoShower.isReadMode),f(1),v("name",e.pointer)("checked",e.pointer===i.initSelectedDoc)}}function sie(n,t){if(1&n&&(g(0,"div",37),j(1),_()),2&n){const e=C(3);f(1),ve(e.globals.languageConfLocal.noActivities)}}function aie(n,t){if(1&n&&(g(0,"div"),H(1,oie,13,8,"div",22),H(2,sie,2,1,"div",23),_()),2&n){const e=C(2);f(1),v("ngForOf",e.activities),f(1),v("ngIf",0===e.activities.length)}}function lie(n,t){if(1&n){const e=Ie();g(0,"div")(1,"mat-form-field",18),be(2,"mat-label"),g(3,"mat-select",19),W("valueChange",function(r){return J(e),Z(C().selectedType=r)})("selectionChange",function(){return J(e),Z(C().activityTypeChanged())}),H(4,tie,2,2,"mat-option",20),_()(),H(5,aie,3,2,"div",1),_()}if(2&n){const e=C();f(3),v("value",e.selectedType),f(1),v("ngForOf",e.types),f(1),v("ngIf",e.activities)}}let cie=(()=>{class n{constructor(e,i,r,o,s,a,l,c){this.globals=e,this.translate=i,this.mailLoadedService=r,this.ref=o,this.messageService=s,this.graph=a,this.datasource=l,this.settings=c,this.documentsAsDestinations=[],this.displayedColumns=["subject"],this.activity={},this.types=[],this.selectedType="0",this.activityDocImage={background:"no-repeat url(assets/images/icons_business_mail.png)"},this.selectArrow={background:"no-repeat url(assets/images/DropDownArrowOffsetRight.png) right"},this.headerText=""}ngOnInit(){this.globals.infoShower.waitForDestinationChange().subscribe({next:e=>{this.datasource.fetchActivityTypes(e?.pointer).subscribe(i=>{this.types=i,this.graph.getExtendedData(this.globals.infoShower.currentItemId).subscribe(r=>{this.selectedType=r?.docTyp,this.selectedType||(this.selectedType="gi"===this.globals.system?i[0].alias:i.find(s=>s.name.startsWith("Vorg")||s.name.startsWith("Activ"))?.alias??i[0].alias),"appointment"===Office.context.mailbox.item?.itemType&&r.otherDoc&&(this.initSelectedDoc=r?.documentTarget,this.datasource.getDocumentsChips([r.documentTarget]).subscribe(s=>{this.documentsAsDestinations=[],s.forEach(a=>{this.documentsAsDestinations.push({name:a.name,image:a.image,fdMe:a.fdMe})})})),this.loadRecentDocuments(e)})})}}),this.globals.infoShower.waitForDocumentDestinationCheckChanged().subscribe({next:()=>{this.documentsAsDestinations=[],this.detectChanges()}}),this.globals.addressActivities=this}loadRecentDocuments(e){if(null===e)return this.activities=null,void this.detectChanges();this.currentAddress=e,this.datasource.fetchActivities(this.currentAddress).subscribe({next:i=>{if(console.log("Activities:",i),i.selectedType)this.selectedType=i.selectedType;else if(i.displayType){let r=this.types.find(o=>o.alias===i.displayType.toString());r&&(this.selectedType=r.alias)}if(i?.activities?.length>=0){if(i?.activities[0]?.viewIcon)for(let r of i.activities)r.viewIconUrl=this.datasource.getImageSrc(r.viewIcon);this.activities=i.activities}this.detectChanges(),this.globals.otherDestinationCheckboxes=this.destinationCheckboxes},error:i=>{this.messageService.showError(i)}})}detectChanges(){this.ref.detectChanges()}refresh(){this.loadRecentDocuments(this.currentAddress)}createWebintLink(e){return this.globals.convertToLink(e)}formatDate(e,i,r){return gT(e,"dd.MM.YYYY HH:mm","en_US")}destinationActivitySelectorClicked(e,i,r){e.checked?(this.getAllCheckboxes().forEach(o=>{o.name!==e.source.name&&(o.checked=!1)}),this.globals.infoShower.setDestinationInfo(e.source.name,El.activity,!0),this.documentsAsDestinations=[],this.documentsAsDestinations.push({name:i,image:r,fdMe:e.source.name})):(this.documentsAsDestinations=[],this.globals.infoShower.setDestinationInfo("",El.activity)),this.detectChanges(),console.log("docs as dest: ",this.globals.addressActivities.documentsAsDestinations),console.log("name is: ",i),console.log("image is: ",r)}getAllCheckboxes(){let e=this.destinationCheckboxes.toArray();return this.globals.mainDestinationCheckboxes?.length>0&&(e=e.concat(this.globals.mainDestinationCheckboxes.toArray())),e}activityTypeChanged(){this.graph.getExtendedData(this.globals.infoShower.currentItemId).subscribe(e=>{e.docTyp=this.selectedType,this.graph.saveExtendedData(this.globals.infoShower.currentItemId,e).subscribe(i=>{})}),this.datasource.changeActivityListType(this.selectedType).subscribe(()=>{this.loadRecentDocuments(this.currentAddress)})}removeDocumentDestination(e){this.documentsAsDestinations=[],this.getAllCheckboxes().forEach(i=>{i.checked=!1}),this.globals.infoShower.setDestinationInfo("",El.activity),this.globals.infoShower.selectFirst()}getDocumentedLabel(){return this.globals.infoShower.isAppointment?this.globals.languageConfLocal.DocumentedTo:this.globals.languageConfLocal.DocumentTo}openInBrowser(e){window.open(e,"_blank"),console.log("url is: ",e)}}return n.\u0275fac=function(e){return new(e||n)(p(ot),p(Ut),p(su),p(St),p(tn),p(ya),p(Bi),p(Kc))},n.\u0275cmp=Ue({type:n,selectors:[["app-address-activities"]],viewQuery:function(e,i){if(1&e&&De(Qne,5),2&e){let r;ce(r=ue())&&(i.destinationCheckboxes=r)}},decls:2,vars:2,consts:[["style","width:100%;","id","selectedDocumentAsDestination",4,"ngIf"],[4,"ngIf"],["id","selectedDocumentAsDestination",2,"width","100%"],[2,"font-size","small"],[1,"projectsChipsHolder"],["chipsDocumentAsDestination",""],["id","hoverArea",3,"removable","title","removed",4,"ngFor","ngForOf"],["matInput","","readonly","","class","projectChipsNoInput",3,"matChipInputFor",4,"ngIf"],["id","hoverArea",3,"removable","title","removed"],["onerror","this.src='assets/images/vwicn001.svg';",1,"chipImage",3,"src"],[1,"chipBase"],["id","overlayLinkMail",3,"click",4,"ngIf"],["matChipRemove","",1,"chipRemoveButton"],[1,"material-symbols-rounded",3,"title"],["id","overlayLinkMail",3,"click"],[1,"material-symbols-rounded","LinkIcon",3,"title"],["matInput","","readonly","",1,"projectChipsNoInput",3,"matChipInputFor"],["documentAsDestinationInputRO",""],["appearance","standard",1,"databaseSearchSelect"],[3,"value","valueChange","selectionChange"],[3,"value",4,"ngFor","ngForOf"],[3,"value"],["class","activityItemListEntry itemListEntry",4,"ngFor","ngForOf"],["class","listEntryItemMainLine",4,"ngIf"],[1,"activityItemListEntry","itemListEntry"],[1,"imgAndTitleOfEntry"],["onerror","this.src='assets/images/vwicn001.svg';",3,"src"],[1,"contentAndLink",3,"click"],[1,"listEntryItemMainLine",3,"title"],["class","listEntryItemSubLine",3,"title",4,"ngIf"],[1,"destIcons"],["class","LinkToMailButton",3,"title","click",4,"ngIf"],[1,"destinationSelector","activityDestinationSelector","spanTwoRows",3,"name","checked","change"],["docDestSelector",""],[1,"listEntryItemSubLine",3,"title"],[1,"LinkToMailButton",3,"title","click"],[1,"material-symbols-rounded","LinkIcon"],[1,"listEntryItemMainLine"]],template:function(e,i){1&e&&(H(0,eie,7,3,"mat-form-field",0),H(1,lie,6,3,"div",1)),2&e&&(v("ngIf",i.documentsAsDestinations&&i.documentsAsDestinations.length>0),f(1),v("ngIf",!i.globals.infoShower.noneSelected))},dependencies:[zn,pn,Ir,Pi,Ko,cr,Mr,pg,Cl,Ks,wl,bl],styles:["table[_ngcontent-%COMP%]{width:100%;box-shadow:none}.mat-row[_ngcontent-%COMP%]:hover .mat-cell[_ngcontent-%COMP%]{background-color:#d3d3d3}.uncheckedToggle[_ngcontent-%COMP%]{display:none}.activityItemListEntry[_ngcontent-%COMP%] > img[_ngcontent-%COMP%]{height:20px;width:20px}.activityItemListEntry[_ngcontent-%COMP%] .activityDestinationSelector[_ngcontent-%COMP%]{margin-right:0;padding-right:8px;padding-left:12px;align-self:center;visibility:hidden!important;display:block!important}.activityItemListEntry[_ngcontent-%COMP%] .activityDestinationSelector.mat-checkbox-checked[_ngcontent-%COMP%]{visibility:visible}.activityItemListEntry[_ngcontent-%COMP%]:hover .activityDestinationSelector[_ngcontent-%COMP%], .activityItemListEntry[_ngcontent-%COMP%]:hover .LinkToMailButton[_ngcontent-%COMP%]{visibility:visible!important}.itemListEntry[_ngcontent-%COMP%]{display:flex;justify-content:space-between}.imgAndTitleOfEntry[_ngcontent-%COMP%]{display:flex;flex-direction:row;max-width:80%}.contentAndLink[_ngcontent-%COMP%]{padding-left:2px}.destIcons[_ngcontent-%COMP%]{display:flex;align-items:center;visibility:hidden}.contentOfEntry[_ngcontent-%COMP%]{width:auto}.spanTwoRows[_ngcontent-%COMP%]{grid-row:span 2;margin-bottom:0;margin-top:8px}.activityIcon[_ngcontent-%COMP%]{height:18px;width:18px;margin-top:2px}tr.mat-row[_ngcontent-%COMP%]{height:10px!important}.regionHeader[_ngcontent-%COMP%]{font-size:small;border-bottom:1px solid #949494;font-family:Roboto,Helvetica Neue,sans-serif;color:#0000008a}.LinkToMailButton[_ngcontent-%COMP%]{color:#000000de;opacity:.7;padding-right:0!important;padding-left:0!important;display:flex;cursor:pointer;align-items:center;margin-right:-6px;background-color:#fff;border-radius:16px;padding-bottom:0;padding-top:0}#hoverArea[_ngcontent-%COMP%]{position:relative;height:auto}#hoverArea[_ngcontent-%COMP%]:hover .overlayLinkMail[_ngcontent-%COMP%]{visibility:visible!important}#overlayLinkMail[_ngcontent-%COMP%]{visibility:hidden;position:absolute;right:27px!important;width:24px;height:24px;color:#202020;text-align:center;background-color:#fff;border-radius:16px;padding-top:0;padding-bottom:-2px;top:4px!important;color:#000000de;opacity:.7}"]}),n})(),uie=(()=>{class n{constructor(e,i,r,o,s,a){this.datasource=e,this.lsm=i,this.graph=r,this.globals=o,this.messageService=s,this.waitList=a}ngOnInit(){}documentItem(e){this.lsm.setValue(Zt.sendInProcess,"1"),this.datasource.IsTaskpaneActive()&&!this.datasource.doNotDocumentSelected()?Office.context.mailbox.item?this.datasource.retrieveItemIdForItem().subscribe({next:r=>{this.graph.getExtendedData(r).subscribe(o=>{o.documentTarget?(o.type="mail",this.datasource.documentItemWithoutUI(o).subscribe({next:s=>{if(void 0!==s&&200!==s?.status&&!0!==s)return this.messageService.showMessageAsync(s.statusText,er.error),this.lsm.setValue(Zt.sendInProcess,"0"),void e.completed({allowEvent:!1,errorMessage:s.statusText});this.graph.getExtendedData(r).subscribe(a=>{a.documentedOnSend=!0,this.graph.saveExtendedData(r,o).subscribe(l=>{this.lsm.setValue(Zt.sendInProcess,"0"),e.completed({allowEvent:!0})})})},error:s=>{this.lsm.setValue(Zt.sendInProcess,"0"),e.completed({allowEvent:!1,errorMessage:s})}})):(this.lsm.setValue(Zt.sendInProcess,"0"),e.completed({allowEvent:!0}))})}}):(this.lsm.setValue(Zt.sendInProcess,"0"),e.completed({allowEvent:!0})):e.completed({allowEvent:!0})}sendEventTrigger(){let e=window.theEvent;""===this.globals.currentWebInt?e.completed({allowEvent:!0}):this.globals.infoShower?this.documentItem(e):this.waitList.addToWaitList("init",new S(()=>{this.documentItem(e)}))}}return n.\u0275fac=function(e){return new(e||n)(p(Bi),p(Mi),p(ya),p(ot),p(tn),p(Ri))},n.\u0275cmp=Ue({type:n,selectors:[["app-item-documentor"]],decls:1,vars:0,consts:[["hidden","","id","sendEventTrigger",3,"click"]],template:function(e,i){1&e&&(g(0,"button",0),W("click",function(){return i.sendEventTrigger()}),_())}}),n})();class Sa{}const die=["projectSelectorPanel"],hie=["searchProjectsInput"],pie=["destinationProjectsInputRO"],YR=["destinationProjectsInput"],QR=["searchProjectPhasesInput"],fie=["allProjectsButton"];function mie(n,t){if(1&n){const e=Ie();g(0,"div",20),W("click",function(){J(e);const r=C().$implicit;return Z(C(2).datasource.addDocumentLinkToMail(r))}),g(1,"span",21),j(2,"link"),_()()}if(2&n){const e=C(3);f(1),v("title",e.globals.languageConfLocal.addLinkTextToMail)}}function gie(n,t){if(1&n){const e=Ie();g(0,"mat-chip",14),W("removed",function(){const o=J(e).$implicit;return Z(C(2).removeProject(o))}),be(1,"img",15),g(2,"div",16),j(3),_(),H(4,mie,3,1,"div",17),g(5,"button",18)(6,"span",19),j(7,"cancel"),_()()()}if(2&n){const e=t.$implicit,i=C(2);v("removable",!0)("title",e.name),f(1),v("src",i.datasource.getImageSrc(e.image),En),f(2),ve(e.name),f(1),v("ngIf",i.settings.LinkOptionActive&&!i.globals.infoShower.isReadMode),f(2),v("title",i.globals.languageConfLocal.removeFromList)}}function _ie(n,t){if(1&n){const e=Ie();g(0,"input",22,23),W("focus",function(r){return J(e),Z(C(2).showProjectSelector(r))}),_()}2&n&&(C(),v("matChipInputFor",Yt(5)))}function vie(n,t){if(1&n){const e=Ie();g(0,"input",24,25),W("input",function(r){return J(e),Z(C(2).searchParticipatingProjects(r))}),_()}if(2&n){C();const e=Yt(5),i=Yt(10),r=C();v("matChipInputFor",e)("formControl",r.destinationProjects)("matAutocomplete",i)}}function yie(n,t){if(1&n&&(g(0,"mat-option",26),be(1,"img",27),g(2,"div",28)(3,"div",29),j(4),_(),g(5,"div",30),j(6),_(),g(7,"div",30),j(8),_()()()),2&n){const e=t.$implicit,i=C(2);v("value",e),rt("data-fdme",e.fdMe)("data-image",e.image),f(1),v("src",i.datasource.getImageSrc(e.image),En),f(2),_t("title",i.htmlHelp.parseHtmlEntities(e.lineOne)),f(1),qe(" ",i.htmlHelp.parseHtmlEntities(e.lineOne)," "),f(1),_t("title",i.htmlHelp.parseHtmlEntities(e.lineTwo)),f(1),qe(" ",i.htmlHelp.parseHtmlEntities(e.lineTwo)," "),f(1),_t("title",i.htmlHelp.parseHtmlEntities(e.lineThree)),f(1),qe(" ",i.htmlHelp.parseHtmlEntities(e.lineThree)," ")}}function bie(n,t){if(1&n){const e=Ie();g(0,"mat-chip",33),W("removed",function(){const o=J(e).$implicit;return Z(C(3).removeProjectPhase(o))}),be(1,"img",15),g(2,"div",16),j(3),_(),g(4,"button",18)(5,"span",34),j(6,"cancel"),_()()()}if(2&n){const e=t.$implicit,i=C(3);v("removable",!0)("title",e.name),f(1),v("src",i.datasource.getImageSrc(e.image),En),f(2),ve(e.name)}}function Cie(n,t){if(1&n){const e=Ie();g(0,"input",24,35),W("input",function(r){return J(e),Z(C(3).searchProjectPhases(r))}),_()}if(2&n){C();const e=Yt(4),i=Yt(8),r=C(2);v("matChipInputFor",e)("formControl",r.projectPhasesControl)("matAutocomplete",i)}}function wie(n,t){if(1&n&&(g(0,"mat-option",26),be(1,"img",27),g(2,"div",28)(3,"div",29),j(4),_(),g(5,"div",30),j(6),_(),g(7,"div",30),j(8),_()()()),2&n){const e=t.$implicit,i=C(3);v("value",e),rt("data-fdme",e.fdMe)("data-image",e.image),f(1),v("src",i.datasource.getImageSrc(e.image),En),f(2),_t("title",i.htmlHelp.parseHtmlEntities(e.lineOne)),f(1),qe(" ",i.htmlHelp.parseHtmlEntities(e.lineOne)," "),f(1),_t("title",i.htmlHelp.parseHtmlEntities(e.lineTwo)),f(1),qe(" ",i.htmlHelp.parseHtmlEntities(e.lineTwo)," "),f(1),_t("title",i.htmlHelp.parseHtmlEntities(e.lineThree)),f(1),qe(" ",i.htmlHelp.parseHtmlEntities(e.lineThree)," ")}}function Eie(n,t){if(1&n){const e=Ie();g(0,"mat-form-field",31)(1,"mat-label",2),j(2),_(),g(3,"mat-chip-list",3,4),H(5,bie,7,4,"mat-chip",32),H(6,Cie,2,3,"input",7),g(7,"mat-autocomplete",8,9),W("optionSelected",function(r){return J(e),Z(C(2).autoProjectPhaseSelected(r))})("opened",function(){return J(e),Z(C(2).autocompleteOpened("phasesAuto"))}),H(9,wie,9,10,"mat-option",10),_()()()}if(2&n){const e=C(2);f(2),zr("",e.globals.languageConfLocal.selectProjectPhases," (",e.projectPhaseResultArray.length,")"),f(3),v("ngForOf",e.projectPhases),f(1),v("ngIf",e.projectPhaseResultArray.length>0),f(3),v("ngForOf",e.filteredProjectPhases)}}function Die(n,t){if(1&n){const e=Ie();g(0,"div")(1,"mat-form-field",1)(2,"mat-label",2),j(3),_(),g(4,"mat-chip-list",3,4),H(6,gie,8,6,"mat-chip",5),H(7,_ie,2,1,"input",6),H(8,vie,2,3,"input",7),g(9,"mat-autocomplete",8,9),W("optionSelected",function(r){return J(e),Z(C().autoProjectSelected(r))})("opened",function(){return J(e),Z(C().autocompleteOpened("projectAuto"))}),H(11,yie,9,10,"mat-option",10),_(),g(12,"span",11,12),W("click",function(r){return J(e),Z(C().showProjectSelector(r))}),j(14,"open_in_new"),_()()(),H(15,Eie,10,5,"mat-form-field",13),_()}if(2&n){const e=C();f(3),ve(e.getProjectsLabel()),f(3),v("ngForOf",e.projects),f(1),v("ngIf",0===e.destinationDirectProjectsCount),f(1),v("ngIf",e.destinationDirectProjectsCount>0),f(3),v("ngForOf",e.filteredParticipatedResultsArray),f(1),v("title",e.globals.languageConfLocal.selectProjectsCRM),f(3),v("ngIf",e.projectPhaseResultArray.length>0||0!==e.projectPhases.length)}}let Sie=(()=>{class n{constructor(e,i,r,o,s,a,l,c,u,d,h,m){this.globals=e,this.mailLoadedService=i,this.ref=r,this.snack=o,this.translate=s,this.datasource=a,this.zone=l,this.lsm=c,this.dps=u,this.settings=d,this.graph=h,this.htmlHelp=m,this.projectSelectorPanelVisible=!1,this.searchTextInput="",this.searchResultsArray=[],this.projectPhaseResultArray=[],this.projectPhaseSearchResultArray=[],this.projectPhaseFilter="",this.participatedResultsArray=[],this.databases=[],this.searchValue="",this.showRecentlyUsed=!0,this.destinationDirectProjectsCount=0,this.destinationProjects=new Co(""),this.projectPhasesControl=new Co(""),this.participatingProjectsFilter="",this.addressFetched=!1,this.addresses=[],this.filteredAdditionalValues={},this.docImage={background:"transparent no-repeat url(assets/images/icons_business_mail.png)"},this.attachRdy=!1,this.attachDelete=!1}ngOnInit(){var e=this;this.projects=[];let i=Office.context.mailbox.item;i&&(this.isCompose=null==i.itemId,this.isAppointment="appointment"===i.itemType,this.isReadMode=void 0===i.getItemIdAsync||void 0===typeof i.getItemIdAsync),"gi"===this.globals.system&&(this.showRecentlyUsed=!1),this.projectPhases=[],this.globals.infoShower.waitForDocumentDestinationCheckChanged().subscribe({next:r=>{this.getProjects(!0)}}),this.getProjectDBs(this.globals.infoShower.primaryPointer),this.dps.addThingToClose("projectAuto",()=>{this.projectsAutocompleteTrigger?.closePanel()}),this.dps.addThingToClose("phasesAuto",()=>{this.phasesAutocompleteTrigger?.closePanel()}),this.dps.addThingToClose("projectDialog",()=>{this.projectSelectorPanelVisible=!1,this.searchValue=""}),this.globals.infoShower.waitForItemRecognition().subscribe(r=>{"appointment"===i?.itemType&&this.graph.getExtendedData(r).subscribe(function(){var o=Ae(function*(s){s&&s.selectedProjects&&(e.projects=JSON.parse(s.selectedProjects)),e.projects=e.projects.filter(a=>null!=a)});return function(s){return o.apply(this,arguments)}}())}),this.globals.infoShower.waitForUpdateBM4ODataCommand().subscribe(r=>{r.selectedProjects=JSON.stringify(this.projects.concat(this.projectPhases))}),this.globals.onActiveWindowChange().subscribe(r=>{"main"===r.newWindow&&"projectPage"===r.currentWindow&&this.projectChipsChanged()}),this.globals.projectSelector=this}detectChanges(){this.ref.detectChanges()}showProjectSelector(e){this.dps.closeAll("projectDialog"),e.stopPropagation(),this.globals.activeWindow="projectPage"}removeProject(e){this.projects.splice(this.projects.findIndex(i=>i.pointer===e.pointer),1),this.projectChipsChanged(),0===this.projects.length&&0===this.projectPhases.length&&(this.projectPhaseResultArray=[])}removeProjectPhase(e){this.projectPhases.splice(this.projects.findIndex(i=>i.pointer===e.pointer),1),this.projectPhaseChipsChanged(),0===this.projects.length&&0===this.projectPhases.length&&(this.projectPhaseResultArray=[])}projectChipsChanged(){var e=this;if(Office.context.mailbox.item){let r=JSON.stringify(this.projects.concat(this.projectPhases)),o=this.globals.infoShower.currentItemId;this.lsm.setValue(Zt.selectedProjects,r),this.graph.getExtendedData(o).subscribe(function(){var s=Ae(function*(a){a.selectedProjects=r,e.graph.saveExtendedData(o,a).subscribe(l=>{})});return function(a){return s.apply(this,arguments)}}())}if(this.projects.length>0){this.destinationProjectsInput?.nativeElement.classList.add("hasProjects"),this.destinationProjectsInputRO?.nativeElement.classList.add("hasProjects"),this.allProjectsButton?.nativeElement.classList.add("hasProjects");let r=this.projects.map(o=>o.pointer);this.datasource.getPhasesOfPointer(r).subscribe(o=>{this.projectPhaseResultArray=o})}else this.destinationProjectsInput?.nativeElement.classList.remove("hasProjects"),this.destinationProjectsInputRO?.nativeElement.classList.remove("hasProjects"),this.allProjectsButton?.nativeElement.classList.remove("hasProjects")}projectPhaseChipsChanged(){var e=this;if(Office.context.mailbox.item){let r=JSON.stringify(this.projects.concat(this.projectPhases)),o=this.globals.infoShower.currentItemId;this.lsm.setValue(Zt.selectedProjects,r),this.graph.getExtendedData(o).subscribe(function(){var s=Ae(function*(a){a.selectedProjects=r,e.graph.saveExtendedData(o,a).subscribe(l=>{})});return function(a){return s.apply(this,arguments)}}())}}textChanged(e){let i=e.target.value;"ba"===this.globals.system&&(this.showRecentlyUsed=0===i.length),i.length>0&&!this.searchPanelExpanded?this.searchPanelExpanded=!0:0===i.length&&this.searchPanelExpanded&&(this.searchPanelExpanded=!1),this.searchValue=i,this.getProjects(!1)}searchParticipatingProjects(e){this.participatingProjectsFilter=e.target.value}searchProjectPhases(e){this.projectPhaseFilter=e.target.value}dblClickedElement(e){let i=e.currentTarget;if(!this.projects.some(r=>r.pointer===i.dataset.fdme)){let r=new Sa;r.name=i.dataset.displayname,r.pointer=i.dataset.fdme,r.image=i.dataset.image,this.datasource.addToRecentlyUsed(i.dataset.fdme),this.projects.push(r),setTimeout(()=>{const o=document.querySelector(".allProjectsFooter .mat-chip-list-wrapper");o&&(o.scrollTop=o.scrollHeight),this.blinkChip(r.pointer)},10),this.projectChipsChanged()}}blinkChip(e){document.querySelector('mat-chip[data-pointer="'+e+'"]')?.classList.add("fade-it")}getProjectDBs(e){const i={};e?i.pointer=e:i.onlyOptions=!0;const r=new $t({fromObject:i});this.datasource.fetchDBs("projects",r).subscribe(o=>{console.log("ProjectDBs:",o),o&&this.generateSelectionArrProjectDbs(o.databases,e)})}generateSelectionArrProjectDbs(e,i){for(const s of e)this.databases.push({value:s.alias,viewValue:s.title});console.log("this.databases:",this.databases),this.databases.length>0&&(this.selectedDB=this.databases[0].value)}getProjects(e){e&&!this.globals.infoShower.primaryPointer||this.datasource.searchProjects(this.selectedDB,e?this.globals.infoShower.primaryPointer:"",this.searchValue).subscribe({next:i=>{i.MessageDetail&&i.MessageDetail.indexOf("BM4OProjects")>0?this.globals.noProjects=!0:(this.searchResultsArray=this.datasource.handleSearchResult(i,Yo.projects,{participantProjects:e}),e&&(this.destinationDirectProjectsCount=this.searchResultsArray.length,this.participatedResultsArray=this.datasource.handleSearchResult(i,Yo.projects,{participantProjects:e}),this.zone.run(()=>{setTimeout(()=>{this.showProjectSnack()},0)})),this.detectChanges(),console.log("ProjectSearchResults:",this.searchResultsArray))}})}showProjectSnack(){this.globals.infoShower.isReadMode||(this.projectSnack?.dismiss(),1===this.destinationDirectProjectsCount?(this.projectSnack=this.snack.open(this.globals.languageConfLocal.selectedAddressHasAssignedProject,this.globals.languageConfLocal.LC73057,{duration:7500}),this.projectSnack.afterOpened().subscribe(()=>{this.detectChanges()}),this.projectSnack.onAction().subscribe(()=>{this.projects=[],this.addOneProjectChip(this.searchResultsArray[0])})):this.destinationDirectProjectsCount>1&&(this.projectSnack=this.snack.open(this.globals.languageConfLocal.selectedAddressHasAssignedProjects,"OK",{duration:9500}),this.projectSnack.afterOpened().subscribe(()=>{this.detectChanges()}),this.projectSnack.onAction().subscribe(()=>{setTimeout(()=>{this.projectsAutocompleteTrigger?.openPanel(),this.destinationProjectsInput.nativeElement.focus()},10)})))}autoProjectSelected(e){this.addOneProjectChip(e.option.value),this.participatingProjectsFilter="",this.destinationProjectsInput.nativeElement.value=""}autoProjectPhaseSelected(e){this.addOneProjectPhaseChip(e.option.value),this.projectPhaseFilter=""}addOneProjectChip(e){let i=new Sa;i.name=e.lineOne,i.pointer=e.fdMe,i.image=e.image,this.datasource.addToRecentlyUsed(e.fdme),this.projects.push(i),this.projectChipsChanged()}addOneProjectPhaseChip(e){let i=new Sa;i.name=e.lineOne,i.pointer=e.fdMe,i.image=e.image,this.datasource.addToRecentlyUsed(e.fdme),this.projectPhases.push(i);let r=this.projects.findIndex(o=>o.pointer===e.parentPointer);-1!==r&&this.projects.splice(r,1),this.projectPhaseChipsChanged()}get filteredParticipatedResultsArray(){let e=this.participatingProjectsFilter?.toLowerCase();return this.participatedResultsArray.filter(i=>!this.projects.map(r=>r.pointer).some(r=>r===i.fdMe)&&(!e||i.lineOne.toLowerCase().includes(e)||i.lineTwo?.toLowerCase().includes(e)||i.lineThree?.toLowerCase().includes(e)))}get filteredProjectPhases(){let e=this.projectPhaseFilter?.toLowerCase();return this.projectPhaseResultArray.filter(i=>!this.projectPhases.map(r=>r.pointer).some(r=>r===i.fdMe)&&(!e||i.lineOne.toLowerCase().includes(e)||i.lineTwo?.toLowerCase().includes(e)||i.lineThree?.toLowerCase().includes(e)))}getProjectsLabel(){return this.projects.length>0?this.globals.languageConfLocal.selectedProjects:this.destinationDirectProjectsCount>0?this.globals.languageConfLocal.assignedProjects+" ("+this.destinationDirectProjectsCount+")":this.globals.languageConfLocal.selectProjectsCRM}autocompleteOpened(e){this.dps.closeAll(e)}}return n.\u0275fac=function(e){return new(e||n)(p(ot),p(su),p(St),p(bd),p(Ut),p(Bi),p(et),p(Mi),p(is),p(Kc),p(ya),p(Vs))},n.\u0275cmp=Ue({type:n,selectors:[["app-project-selector"]],viewQuery:function(e,i){if(1&e&&(De(die,5),De(hie,5),De(pie,5),De(YR,5),De(QR,5),De(fie,5),De(YR,5,ro),De(QR,5,ro)),2&e){let r;ce(r=ue())&&(i.projectSelectorPanel=r.first),ce(r=ue())&&(i.searchProjectsInput=r.first),ce(r=ue())&&(i.destinationProjectsInputRO=r.first),ce(r=ue())&&(i.destinationProjectsInput=r.first),ce(r=ue())&&(i.searchProjectPhasesInput=r.first),ce(r=ue())&&(i.allProjectsButton=r.first),ce(r=ue())&&(i.projectsAutocompleteTrigger=r.first),ce(r=ue())&&(i.phasesAutocompleteTrigger=r.first)}},decls:1,vars:1,consts:[[4,"ngIf"],["id","mainInputProjectSelector",2,"width","100%"],[2,"font-size","small"],[1,"projectsChipsHolder"],["chipsInMain",""],["id","hoverArea",3,"removable","title","removed",4,"ngFor","ngForOf"],["matInput","","readonly","","class","projectChipsNoInput",3,"matChipInputFor","focus",4,"ngIf"],["matInput","","class","projectChipsInput",3,"matChipInputFor","formControl","matAutocomplete","input",4,"ngIf"],[1,"projectSelectorAutocomplete",3,"optionSelected","opened"],["auto","matAutocomplete"],["class","projectOption",3,"value",4,"ngFor","ngForOf"],[1,"material-symbols-rounded","allProjects",3,"title","click"],["allProjectsButton",""],["style","width:100%;","id","mainInputProjectPhaseSelector",4,"ngIf"],["id","hoverArea",3,"removable","title","removed"],[1,"chipImage",3,"src"],[1,"chipBase"],["id","overlayLinkMail",3,"click",4,"ngIf"],["matChipRemove","",1,"chipRemoveButton"],[1,"material-symbols-rounded",3,"title"],["id","overlayLinkMail",3,"click"],[1,"material-symbols-rounded","LinkIcon",3,"title"],["matInput","","readonly","",1,"projectChipsNoInput",3,"matChipInputFor","focus"],["destinationProjectsInputRO",""],["matInput","",1,"projectChipsInput",3,"matChipInputFor","formControl","matAutocomplete","input"],["destinationProjectsInput",""],[1,"projectOption",3,"value"],[3,"src"],[2,"float","left"],[1,"listEntryItemMainLine",3,"title"],[1,"listEntryItemSubLine",3,"title"],["id","mainInputProjectPhaseSelector",2,"width","100%"],[3,"removable","title","removed",4,"ngFor","ngForOf"],[3,"removable","title","removed"],[1,"material-symbols-rounded"],["searchProjectPhasesInput",""]],template:function(e,i){1&e&&H(0,Die,16,7,"div",0),2&e&&v("ngIf",(!i.globals.infoShower.noneSelected&&!i.globals.noProjects||i.globals.addressActivities.documentsAsDestinations.length>0)&&i.globals.configJson.projectSelection)},dependencies:[zn,pn,Ar,Kr,af,Ir,Pi,cr,Mr,Cl,Ks,wl,bl,hR,ro],styles:['.projectSelectorAutocomplete .mat-option,.projectOption>.mat-option-text,.itemListEntry{line-height:1.3!important;white-space:nowrap;display:flex;padding:4px 0;grid-gap:4px}.projectSelectorAutocomplete .mat-option>div,.projectOption>.mat-option-text>div,.itemListEntry>div,.projectSelectorAutocomplete .mat-option a,.projectOption>.mat-option-text a,.itemListEntry a,.projectSelectorAutocomplete .mat-option a>div,.projectOption>.mat-option-text a>div,.itemListEntry a>div{display:block;overflow:hidden}.projectSelectorAutocomplete .mat-option>div>[class^=listEntryItem],.projectOption>.mat-option-text>div>[class^=listEntryItem],.itemListEntry>div>[class^=listEntryItem],.projectSelectorAutocomplete .mat-option a>[class^=listEntryItem],.projectOption>.mat-option-text a>[class^=listEntryItem],.itemListEntry a>[class^=listEntryItem],.projectSelectorAutocomplete .mat-option a>div>[class^=listEntryItem],.projectOption>.mat-option-text a>div>[class^=listEntryItem],.itemListEntry a>div>[class^=listEntryItem]{overflow:hidden;text-overflow:ellipsis;max-width:100%}.projectSelectorAutocomplete .mat-option:not(:last-child),.projectOption>.mat-option-text:not(:last-child),.itemListEntry:not(:last-child){border-bottom:1px solid #e0e0e0}.projectSelectorAutocomplete .mat-option:hover:not([data-selected=true]),.projectOption>.mat-option-text:hover:not([data-selected=true]),.itemListEntry:hover:not([data-selected=true]){background-color:#e0e0e0;cursor:pointer}.projectSelectorAutocomplete .mat-option:hover:not([data-selected=true]) .resultsLineWrapper,.projectOption>.mat-option-text:hover:not([data-selected=true]) .resultsLineWrapper,.itemListEntry:hover:not([data-selected=true]) .resultsLineWrapper{background-color:#e0e0e0}.projectSelectorAutocomplete [data-selected=true].mat-option,.projectOption>[data-selected=true].mat-option-text,[data-selected=true].itemListEntry{background-color:#d3d3d3}.projectSelectorAutocomplete [data-selected=true].mat-option .resultsLineWrapper,.projectOption>[data-selected=true].mat-option-text .resultsLineWrapper,[data-selected=true].itemListEntry .resultsLineWrapper{background-color:#d3d3d3}.projectSelectorAutocomplete .mat-option img,.projectOption>.mat-option-text img,.itemListEntry img{height:24px;width:24px;box-sizing:content-box;padding:1px 0 0!important}.projectSelectorAutocomplete .mat-option .resultsLineWrapper,.projectOption>.mat-option-text .resultsLineWrapper,.itemListEntry .resultsLineWrapper{overflow:hidden;text-overflow:ellipsis}.resultsLineWrapper{width:100%;overflow:hidden;text-overflow:ellipsis}.prevent-select{-webkit-user-select:none;user-select:none}.item{padding:.3em 1.2em}.btn-group{width:100%;padding-top:3px}.btn-group button{background-color:#bfbfbf;border:1px solid;padding:10px 24px;cursor:pointer;float:left;width:100%}.btn-group:after{content:"";clear:both;display:table}.btn-group button:first-child{border-radius:5px 0 0 5px}.btn-group button:last-child{border-radius:0 5px 5px 0}.btn-group button:not(:last-child){border-right:none}.chipRemoveButton{margin-top:-.5em;margin-left:0!important}.chipImage{height:1.5em;margin-right:3px;margin-left:-3px}.chipBase{text-overflow:ellipsis;overflow:hidden;white-space:nowrap;width:100%}.mat-form-field .projectChipsInput{width:100%;margin:0;line-height:1.8em;height:0}.mat-form-field .projectChipsInput:focus{height:auto}.mat-form-field.mat-focused .projectChipsInput{height:auto}.allProjects{cursor:pointer;position:absolute;right:-.1em;top:0em}.allProjects.hasProjects{top:-.7em}.projectOption{height:4em;padding-left:.5em!important}.projectOption>.mat-option-text{display:flex!important;border-bottom:none!important}.projectsChipsHolder>.mat-chip-list-wrapper{max-height:7.5em;overflow-x:hidden;overflow-y:auto;scrollbar-gutter:stable;margin:0!important;grid-gap:4px;padding:4px;display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}.projectsChipsHolder>.mat-chip-list-wrapper>.mat-chip{margin:0;background-color:#0000000a}.projectsChipsHolder>.mat-chip-list-wrapper>.mat-chip:first-of-type:last-of-type{grid-column:span 2}.projectChipsNoInput:not(.hasProjects){display:block;height:0}.projectChipsNoInput.hasProjects{display:none}.listEntryItemMainLine{font-size:13px}.listEntryItemSubLine{font-size:12px}.mat-expansion-panel-header-title{flex-direction:column;align-items:start;margin-right:0!important}mat-expansion-panel-header{padding:0!important}.mat-expansion-panel-header:hover{background-color:transparent!important}.projectOption span.mat-option-text{grid-gap:4px}#hoverArea{position:relative;height:auto}#hoverArea:hover #overlayLinkMail{visibility:visible!important}#overlayLinkMail{z-index:99;visibility:hidden;position:absolute;cursor:pointer;top:4px!important;right:27px!important;width:24px;height:24px;color:#202020;text-align:center;background-color:#fff;border-radius:16px;padding-top:0;padding-bottom:-2px;margin-top:1px;color:#000000de;opacity:.7}@keyframes green-fade{0%{background:#4e850c}to{background:#fcfcfc}}.fade-it{animation:green-fade 1s ease-in-out 0s}span.material-symbols-rounded.green:hover{color:#0af70a;font-weight:900}\n'],encapsulation:2}),n})();const Aie=["searchExpansionPanel"],Tie=["searchTextInput"];function xie(n,t){if(1&n&&(g(0,"mat-option",17),j(1),_()),2&n){const e=t.$implicit;v("value",e.value),f(1),ve(e.viewValue)}}function Iie(n,t){if(1&n){const e=Ie();g(0,"mat-form-field",15)(1,"mat-label"),j(2),_(),g(3,"mat-select",7),W("valueChange",function(r){return J(e),Z(C().selectedDB=r)})("selectionChange",function(){return J(e),Z(C().selectedDBChanged())}),H(4,xie,2,2,"mat-option",16),_()()}if(2&n){const e=C();f(2),ve(e.globals.languageConfLocal.contactsDatabase),f(1),v("value",e.selectedDB),f(1),v("ngForOf",e.databases)}}function Mie(n,t){if(1&n&&(g(0,"mat-option",18),j(1),_()),2&n){const e=C();f(1),ve(e.globals.languageConfLocal.ExistingCompany)}}function kie(n,t){if(1&n){const e=Ie();g(0,"div")(1,"mat-form-field",19)(2,"mat-label"),j(3),_(),g(4,"input",20),W("ngModelChange",function(r){return J(e),Z(C().extractedContact.Company=r)}),_()(),g(5,"mat-form-field",21)(6,"mat-label"),j(7),_(),g(8,"input",20),W("ngModelChange",function(r){return J(e),Z(C().extractedContact.CompanyEmail=r)}),_()(),g(9,"mat-form-field",21)(10,"mat-label"),j(11),_(),g(12,"input",20),W("ngModelChange",function(r){return J(e),Z(C().extractedContact.CompanyPhone=r)}),_()(),g(13,"mat-form-field",21)(14,"mat-label"),j(15),_(),g(16,"input",20),W("ngModelChange",function(r){return J(e),Z(C().extractedContact.CompanyFax=r)}),_()(),g(17,"mat-form-field",21)(18,"mat-label"),j(19),_(),g(20,"input",20),W("ngModelChange",function(r){return J(e),Z(C().extractedContact.Url=r)}),_()(),g(21,"mat-form-field",21)(22,"mat-label"),j(23),_(),g(24,"input",20),W("ngModelChange",function(r){return J(e),Z(C().extractedContact.Street=r)}),_()(),g(25,"mat-form-field",21)(26,"mat-label"),j(27),_(),g(28,"input",20),W("ngModelChange",function(r){return J(e),Z(C().extractedContact.City=r)}),_()(),g(29,"mat-form-field",21)(30,"mat-label"),j(31),_(),g(32,"input",20),W("ngModelChange",function(r){return J(e),Z(C().extractedContact.Zip=r)}),_()()()}if(2&n){const e=C();f(3),ve(e.globals.languageConfLocal.Name),f(1),v("ngModel",e.extractedContact.Company),f(3),ve(e.globals.languageConfLocal.Email),f(1),v("ngModel",e.extractedContact.CompanyEmail),f(3),ve(e.globals.languageConfLocal.Telephone),f(1),v("ngModel",e.extractedContact.CompanyPhone),f(3),ve(e.globals.languageConfLocal.Fax),f(1),v("ngModel",e.extractedContact.CompanyFax),f(3),ve(e.globals.languageConfLocal.Web),f(1),v("ngModel",e.extractedContact.Url),f(3),ve(e.globals.languageConfLocal.Street),f(1),v("ngModel",e.extractedContact.Street),f(3),ve(e.globals.languageConfLocal.City),f(1),v("ngModel",e.extractedContact.City),f(3),ve(e.globals.languageConfLocal.Zip),f(1),v("ngModel",e.extractedContact.Zip)}}function Rie(n,t){if(1&n){const e=Ie();g(0,"span",36),W("click",function(r){return J(e),Z(C(3).clearTextClicked(r))}),j(1,"cancel"),_()}}function Oie(n,t){1&n&&(g(0,"span",37),j(1,"expand_less"),_())}function Pie(n,t){1&n&&(g(0,"span",37),j(1,"search"),_())}function Lie(n,t){if(1&n&&(g(0,"div",38),j(1),_()),2&n){const e=C(3);f(1),qe(" ",e.globals.languageConfLocal.recentlyUsed," ")}}function Nie(n,t){if(1&n){const e=Ie();g(0,"div",39),W("click",function(r){return J(e),Z(C(3).clickedElement(r))}),be(1,"img",40),g(2,"div",41)(3,"span",42),j(4),_(),be(5,"br"),g(6,"span",43),j(7),_(),be(8,"br"),g(9,"span",43),j(10),_(),be(11,"br"),_()()}if(2&n){const e=t.$implicit,i=t.index,r=C(3);_t("title",r.htmlHelper.parseHtmlEntities(e.lineOne)),rt("data-fdme",e.fdMe)("data-email",e.email)("data-order",i+1),f(1),v("src",r.datasource.getImageSrc(e.image),En),f(2),_t("title",r.htmlHelper.parseHtmlEntities(e.lineOne+" <"+e.email+">")),f(1),qe(" ",r.htmlHelper.parseHtmlEntities(e.lineOne+" <"+e.email+">")," "),f(2),_t("title",r.htmlHelper.parseHtmlEntities(e.lineTwo)),f(1),ve(r.htmlHelper.parseHtmlEntities(e.lineTwo)),f(2),_t("title",r.htmlHelper.parseHtmlEntities(e.lineThree)),f(1),ve(r.htmlHelper.parseHtmlEntities(e.lineThree))}}function Fie(n,t){if(1&n){const e=Ie();g(0,"mat-expansion-panel",24,25),W("closed",function(){return J(e),Z(C(2).searchResultsPanelClosed())})("opened",function(){return J(e),Z(C(2).searchResultsPanelOpened())}),g(2,"mat-expansion-panel-header")(3,"mat-panel-title",26)(4,"mat-form-field",27)(5,"mat-label",28),j(6,"Search for company"),_(),g(7,"input",29,30),W("keydown.Space",function(r){return J(e),Z(C(2).noCloseOnSpace(r))})("input",function(r){return J(e),Z(C(2).textChanged(r))})("focus",function(r){return J(e),Z(C(2).searchInputFocused(r))})("click",function(r){return J(e),Z(C(2).searchInputClicked(r))})("ngModelChange",function(r){return J(e),Z(C(2).textInSearchInput=r)}),_()(),H(9,Rie,2,0,"span",31),H(10,Oie,2,0,"span",32),H(11,Pie,2,0,"span",32),_()(),g(12,"div",33),H(13,Lie,2,1,"div",34),H(14,Nie,12,11,"div",35),_()()}if(2&n){const e=Yt(8),i=C(2);f(7),v("ngModel",i.textInSearchInput),f(2),v("ngIf",e.value.length>0),f(1),v("ngIf",i.searchPanelExpanded),f(1),v("ngIf",!i.searchPanelExpanded),f(2),v("ngIf",i.showRecentlyUsed),f(1),v("ngForOf",i.searchResultsArray)}}function Bie(n,t){if(1&n){const e=Ie();g(0,"div"),H(1,Fie,15,6,"mat-expansion-panel",22),g(2,"mat-form-field",19)(3,"mat-label"),j(4),_(),g(5,"input",23),W("ngModelChange",function(r){return J(e),Z(C().extractedContact.CompanyName=r)}),_()(),g(6,"mat-form-field",21)(7,"mat-label"),j(8),_(),g(9,"input",23),W("ngModelChange",function(r){return J(e),Z(C().extractedContact.CompanyAddress=r)}),_()()()}if(2&n){const e=C();f(1),v("ngIf",e.letThereBeSearch),f(3),ve(e.globals.languageConfLocal.Name),f(1),v("ngModel",e.extractedContact.CompanyName),f(3),ve(e.globals.languageConfLocal.Address),f(1),v("ngModel",e.extractedContact.CompanyAddress)}}function jie(n,t){if(1&n){const e=Ie();g(0,"div")(1,"mat-form-field",19)(2,"mat-label"),j(3),_(),g(4,"span",44,45),W("click",function(r){return J(e),Z(C().showCompanySelector(r))}),j(6,"open_in_new"),_(),g(7,"input",20),W("ngModelChange",function(r){return J(e),Z(C().selectedCompany=r)}),_()()()}if(2&n){const e=C();f(3),ve(e.globals.languageConfLocal.selectCompany),f(1),v("title",e.globals.languageConfLocal.selectCompany),f(3),v("ngModel",e.selectedCompany)}}function Hie(n,t){if(1&n&&(g(0,"mat-option",46),j(1),_()),2&n){const e=C();f(1),ve(e.globals.languageConfLocal.NoContact)}}function Vie(n,t){if(1&n){const e=Ie();g(0,"div")(1,"mat-form-field",21)(2,"mat-label"),j(3),_(),g(4,"input",20),W("ngModelChange",function(r){return J(e),Z(C(2).extractedContact.Street=r)}),_()(),g(5,"mat-form-field",21)(6,"mat-label"),j(7),_(),g(8,"input",20),W("ngModelChange",function(r){return J(e),Z(C(2).extractedContact.City=r)}),_()(),g(9,"mat-form-field",21)(10,"mat-label"),j(11),_(),g(12,"input",20),W("ngModelChange",function(r){return J(e),Z(C(2).extractedContact.Zip=r)}),_()()()}if(2&n){const e=C(2);f(3),ve(e.globals.languageConfLocal.Street),f(1),v("ngModel",e.extractedContact.Street),f(3),ve(e.globals.languageConfLocal.City),f(1),v("ngModel",e.extractedContact.City),f(3),ve(e.globals.languageConfLocal.Zip),f(1),v("ngModel",e.extractedContact.Zip)}}function Uie(n,t){if(1&n){const e=Ie();g(0,"div")(1,"mat-form-field",19)(2,"mat-label"),j(3),_(),g(4,"input",20),W("ngModelChange",function(r){return J(e),Z(C().extractedContact.LastName=r)}),_()(),g(5,"mat-form-field",21)(6,"mat-label"),j(7),_(),g(8,"input",20),W("ngModelChange",function(r){return J(e),Z(C().extractedContact.FirstName=r)}),_()(),g(9,"mat-form-field",21)(10,"mat-label"),j(11),_(),g(12,"input",20),W("ngModelChange",function(r){return J(e),Z(C().extractedContact.Department=r)}),_()(),g(13,"mat-form-field",21)(14,"mat-label"),j(15),_(),g(16,"input",20),W("ngModelChange",function(r){return J(e),Z(C().extractedContact.Phone=r)}),_()(),g(17,"mat-form-field",21)(18,"mat-label"),j(19),_(),g(20,"input",20),W("ngModelChange",function(r){return J(e),Z(C().extractedContact.Mobile=r)}),_()(),g(21,"mat-form-field",21)(22,"mat-label"),j(23),_(),g(24,"input",20),W("ngModelChange",function(r){return J(e),Z(C().extractedContact.Fax=r)}),_()(),g(25,"mat-form-field",21)(26,"mat-label"),j(27),_(),g(28,"input",20),W("ngModelChange",function(r){return J(e),Z(C().extractedContact.Email=r)}),_()(),H(29,Vie,13,6,"div",11),_()}if(2&n){const e=C();f(3),ve(e.globals.languageConfLocal.Lastname),f(1),v("ngModel",e.extractedContact.LastName),f(3),ve(e.globals.languageConfLocal.Firstname),f(1),v("ngModel",e.extractedContact.FirstName),f(3),ve(e.globals.languageConfLocal.Department),f(1),v("ngModel",e.extractedContact.Department),f(3),ve(e.globals.languageConfLocal.Telephone),f(1),v("ngModel",e.extractedContact.Phone),f(3),ve(e.globals.languageConfLocal.Mobile),f(1),v("ngModel",e.extractedContact.Mobile),f(3),ve(e.globals.languageConfLocal.Fax),f(1),v("ngModel",e.extractedContact.Fax),f(3),ve(e.globals.languageConfLocal.Email),f(1),v("ngModel",e.extractedContact.Email),f(1),v("ngIf","compNo"===e.companyAction)}}let qie=(()=>{class n{constructor(e,i,r,o,s,a){this.globals=e,this.datasource=i,this.htmlHelper=r,this.messageService=o,this.dps=s,this.lsm=a,this.searchResultsArray=[],this.showRecentlyUsed=!1,this.showExistingCompany=!0,this.showNoContact=!0,this.letThereBeSearch=!1,this.databases=[],this.emailRegex=/^((?!\.)[\w\-_.]*[^.])(@((?!\.)[\w\-_.]*[^.]))(\.\w+(\.\w+)?[^.\W])$/,this.gotFocused=!1,this.extractedContact=new tm}ngOnInit(){this.globals.onActiveWindowChange().subscribe(e=>{"contactCreation"===e.newWindow&&"main"===e.currentWindow&&this.initializeTheView()}),this.globals.contactCreator=this}initializeTheView(){this.getContactDBs(),this.globals.infoShower.displayedDestination&&this.globals.infoShower.displayedDestination.additional.fallback?(this.companyAction="compExist",this.showNoContact=!1):(this.companyAction="compNew",this.showExistingCompany=!1),this.contactAction="contNew",this.companyActionOldValue=this.companyAction,this.contactActionOldValue=this.contactAction,this.extractedContact=this.globals.infoShower.extractedContactData,this.comapanyMail=this.extractedContact.CompanyEmail,this.recognizedMail=this.extractedContact.Email,this.compannyName=this.extractedContact.Company,this.generateDataBaseOnTheEmail(this.contactAction,null,this.companyAction,null),!0===this.globals.infoShower.noFooterInfo&&(this.messageService.showInfo(this.globals.languageConfLocal.noFooterInfoAvailableManualDataNeeded),console.log("noFooterInfoAvailableManualDataNeeded"),this.globals.infoShower.noFooterInfo=!1)}creationSelectionChange(e){this.showNoContact="compExist"!==this.companyAction,"compExist"===this.companyAction&&(this.contactAction="contNew"),"compExist"===this.companyAction&&!this.extractedContact.CompanyPointer&&(this.extractedContact.Company=""),"compSelect"===this.companyAction?this.extractedContact.Email="":this.extractedContact.Company=this.compannyName,this.generateDataBaseOnTheEmail(this.contactAction,this.contactActionOldValue,this.companyAction,this.companyActionOldValue),this.companyActionOldValue=this.companyAction,this.contactActionOldValue=this.contactAction}generateDataBaseOnTheEmail(e,i,r,o){null!=i&&null!=o&&("compNew"===r&&"contNo"===e&&(this.extractedContact.CompanyEmail||(this.extractedContact.CompanyEmail=this.extractedContact.Email)),r===o&&!this.extractedContact.CompanyFax&&(this.extractedContact.CompanyFax=this.extractedContact.Fax),r===o&&!this.extractedContact.CompanyPhone&&(this.extractedContact.CompanyPhone=this.extractedContact.Phone)),"contNew"===e&&!this.extractedContact.Email&&"compSelect"!==r&&(this.extractedContact.Email=this.globals.infoShower.theSender.email),"contNew"===e&&!this.extractedContact.Email&&"compSelect"===r&&(this.extractedContact.Email="")}createClicked(){this.globals.showSpinner();let e=document.querySelectorAll(".textInputControl"),i="";e.forEach(r=>{let o=r;this.htmlHelper.isHtml(o.value)&&(i+="["+o.parentNode.children[1].innerText+"] "+this.globals.languageConfLocal.ContainsDangerousContent+"
")}),"compNew"===this.companyAction&&(this.extractedContact.CompanyAddress=this.extractedContact.Street,(!this.extractedContact.Company||0===this.extractedContact.Company.trim().length)&&(i+=this.globals.languageConfLocal.CompanyNameRequired+"
"),this.extractedContact.CompanyEmail&&this.extractedContact.CompanyEmail.length>0&&!this.emailRegex.test(this.extractedContact.CompanyEmail)&&(i+=this.globals.languageConfLocal.EmailCompanyNotInCorrectFormat+"
")),"contNew"===this.contactAction&&"compSelect"!==this.companyAction&&(this.extractedContact.CompanyAddress=this.extractedContact.Street,this.extractedContact.Street="",(!this.extractedContact.LastName||0===this.extractedContact.LastName.trim().length)&&(i+=this.globals.languageConfLocal.LastNameRequired+"
"),this.extractedContact.Email&&0!==this.extractedContact.Email.trim().length?this.extractedContact.Email&&this.extractedContact.Email.length>0&&!this.emailRegex.test(this.extractedContact.Email)&&(i+=this.globals.languageConfLocal.EmailContactNotInCorrectFormat+"
"):i+=this.globals.languageConfLocal.EmailRequired+"
"),"contNew"===this.contactAction&&"compSelect"===this.companyAction&&(0===this.selectedCompany.length?i+=this.globals.languageConfLocal.CompanyNameRequired+"
":(this.extractedContact.CompanyName=this.globals.contactCreator.selectedCompany,this.extractedContact.Company=this.globals.contactCreator.selectedCompany,(!this.extractedContact.LastName||0===this.extractedContact.LastName.trim().length)&&(i+=this.globals.languageConfLocal.LastNameRequired+"
"),this.extractedContact.Email&&0!==this.extractedContact.Email.trim().length?this.extractedContact.Email&&this.extractedContact.Email.length>0&&!this.emailRegex.test(this.extractedContact.Email)&&(i+=this.globals.languageConfLocal.EmailContactNotInCorrectFormat+"
"):i+=this.globals.languageConfLocal.EmailRequired+"
"),console.log("selectedCompany is ",this.globals.contactCreator.selectedCompany),console.log("selectedCompanyData is ",this.globals.contactCreator.selectedCompanyData),console.log("extractedContact is ",this.globals.contactCreator.extractedContact)),this.datasource.validateDataInBackend(this.extractedContact,this.contactAction,this.companyAction,this.selectedDB).subscribe(r=>{"PASS"!==r.Validation&&(i+=r.errors.join("
")),i?(this.globals.hideSpinner(),this.messageService.showError(i,"Error",!1,15e3)):this.datasource.quickCreateContact(this.extractedContact,this.contactAction,this.companyAction,this.selectedDB).subscribe({next:o=>{o&&("contNew"===this.contactAction?this.messageService.showMessageAsync("compNew"===this.companyAction?this.globals.languageConfLocal.NewCompanyAndContactCreated:"compExist"===this.companyAction?this.globals.languageConfLocal.NewContactCreatedAndAdded:"compSelect"===this.companyAction?this.globals.languageConfLocal.NewContactCreatedAndConnected:this.globals.languageConfLocal.NewStandaloneContactCreated,er.success):"compNew"===this.companyAction&&this.messageService.showMessageAsync(this.globals.languageConfLocal.NewCompanyCreated,er.success),this.globals.hideSpinner(),this.globals.contactCreated=!0,this.globals.activeWindow="main")},error:o=>{this.globals.hideSpinner()}})}),this.globals.contactCreator.selectedCompany="",this.globals.contactCreator.selectedCompanyData=[]}cancelClicked(){this.globals.activeWindow="main",this.globals.contactCreator.selectedCompany=""}searchResultsPanelOpened(){let e=this.searchExpansionPanel._body.nativeElement.childNodes[0];e.style.paddingRight="3px",e.style.paddingLeft="3px",e.style.paddingBottom="3px",e.style.backgroundColor="#ffffff",e.style.zIndex=5,this.searchPanelExpanded=!0,this.searchTextInput.nativeElement.focus()}searchResultsPanelClosed(){this.searchPanelExpanded=!1}noCloseOnSpace(e){e.stopPropagation()}textChanged(e){this.textInSearchInput.length>0&&this.searchExpansionPanel.open(),this.getCompanies()}clearTextClicked(e){this.textInSearchInput="",this.searchPanelExpanded&&(this.getCompanies(),this.searchTextInput.nativeElement.focus()),e.stopPropagation()}searchInputFocused(e){setTimeout(()=>{this.searchExpansionPanel.open()},100),this.gotFocused=!0}searchInputClicked(e){this.gotFocused&&e.stopPropagation(),this.gotFocused=!1}clickedElement(e){this.selectCompany(e.currentTarget)}getCompanies(){this.datasource.fetchDBs("dbConnections",null).subscribe({next:e=>{}})}selectCompany(e){}getContactDBs(){this.datasource.fetchDBs("dbConnections",null).subscribe({next:e=>{console.log("DBs:",e),this.filterForContacts(e)}})}filterForContacts(e){const i={};for(const r in e)"GeOfficeAliases"!==r&&"Contact"===e[r].type&&(i[r]=e[r].title);this.generateSelectionArr(i)}generateSelectionArr(e){this.databases=[];for(const i in e)Object.prototype.hasOwnProperty.call(e,i)&&this.databases.push({value:i,viewValue:e[i]});if(console.log(this.databases),this.databases.length>0){let i=this.lsm.getValue(Zt.contactDB);null!==i?this.databases.forEach(r=>{r.value===i&&(this.selectedDB=r.value)}):this.selectedDB=this.databases[0].value}}selectedDBChanged(){this.initialDBSelection?this.initialDBSelection=!1:this.lsm.setValue(Zt.contactDB,this.selectedDB)}showCompanySelector(e){e.stopPropagation(),this.globals.activeWindow="companyPage"}}return n.\u0275fac=function(e){return new(e||n)(p(ot),p(Bi),p(Vs),p(tn),p(is),p(Mi))},n.\u0275cmp=Ue({type:n,selectors:[["app-contact-creator"]],viewQuery:function(e,i){if(1&e&&(De(Aie,5),De(Tie,5)),2&e){let r;ce(r=ue())&&(i.searchExpansionPanel=r.first),ce(r=ue())&&(i.searchTextInput=r.first)}},decls:34,vars:19,consts:[[2,"box-shadow","none"],[1,"left-right-align"],[1,"material-symbols-rounded","green",2,"cursor","pointer",3,"title","click"],[1,"material-symbols-rounded","red",2,"cursor","pointer",3,"title","click"],["class","databaseSearchSelect","appearance","standard",4,"ngIf"],[1,"noHeaderText"],["floatLabel","auto",2,"width","100%","margin-left","5px","margin-right","5px"],[3,"value","valueChange","selectionChange"],["value","compNo"],["value","compNew"],["value","compExist",4,"ngIf"],[4,"ngIf"],["value","contNo",4,"ngIf"],["value","contNew"],[1,"cardWithBackground"],["appearance","standard",1,"databaseSearchSelect"],[3,"value",4,"ngFor","ngForOf"],[3,"value"],["value","compExist"],["floatLabel","auto",2,"width","100%","margin-top","5px"],["matInput","",1,"textInputControl",3,"ngModel","ngModelChange"],["floatLabel","auto",2,"width","100%"],["class","searchResultsPanel mat-elevation-z0","hideToggle","",3,"closed","opened",4,"ngIf"],["matInput","","disabled","",3,"ngModel","ngModelChange"],["hideToggle","",1,"searchResultsPanel","mat-elevation-z0",3,"closed","opened"],["searchExpansionPanel",""],[1,"searchInCRMHeader"],[2,"width","100%","vertical-align","bottom"],[2,"font-size","small"],["matInput","","type","search","id","searchText","name","searchText",3,"ngModel","keydown.Space","input","focus","click","ngModelChange"],["searchTextInput",""],["class","material-symbols-rounded clearIcon",3,"click",4,"ngIf"],["class","material-symbols-rounded searchIcon",4,"ngIf"],["id","resultsContainer",1,"prevent-select"],["class","recentlyUsed",4,"ngIf"],["class","itemListEntry resultListEntry",3,"title","click",4,"ngFor","ngForOf"],[1,"material-symbols-rounded","clearIcon",3,"click"],[1,"material-symbols-rounded","searchIcon"],[1,"recentlyUsed"],[1,"itemListEntry","resultListEntry",3,"title","click"],[1,"normalImage",3,"src"],[1,"resultsLineWrapper"],[1,"listEntryItemMainLine",3,"title"],[1,"listEntryItemSubLine",3,"title"],[1,"material-symbols-rounded","allProjects",3,"title","click"],["allProjectsButton",""],["value","contNo"]],template:function(e,i){1&e&&(g(0,"mat-card",0)(1,"mat-card-title",1),j(2),g(3,"div")(4,"span",2),W("click",function(){return i.createClicked()}),j(5,"check_circle"),_(),g(6,"span",3),W("click",function(){return i.cancelClicked()}),j(7,"cancel"),_()()(),H(8,Iie,5,3,"mat-form-field",4),g(9,"mat-card-header",5)(10,"mat-form-field",6)(11,"mat-label"),j(12),_(),g(13,"mat-select",7),W("valueChange",function(o){return i.companyAction=o})("selectionChange",function(o){return i.creationSelectionChange(o)}),g(14,"mat-option",8),j(15),_(),g(16,"mat-option",9),j(17),_(),H(18,Mie,2,1,"mat-option",10),_()()(),g(19,"mat-card-content"),H(20,kie,33,16,"div",11),H(21,Bie,10,5,"div",11),H(22,jie,8,3,"div",11),_()(),g(23,"mat-card",0)(24,"mat-card-header",5)(25,"mat-form-field",6)(26,"mat-label"),j(27),_(),g(28,"mat-select",7),W("valueChange",function(o){return i.contactAction=o})("selectionChange",function(o){return i.creationSelectionChange(o)}),H(29,Hie,2,1,"mat-option",12),g(30,"mat-option",13),j(31),_()()()(),g(32,"mat-card-content",14),H(33,Uie,30,15,"div",11),_()()),2&e&&(f(2),qe(" ",i.globals.languageConfLocal.ContactQuickCreation," "),f(2),v("title",i.globals.languageConfLocal.Create),f(2),v("title",i.globals.languageConfLocal.Cancel),f(2),v("ngIf",null!=i.databases&&i.databases.length>0),f(4),ve(i.globals.languageConfLocal.ComapnyAction),f(1),v("value",i.companyAction),f(2),ve(i.globals.languageConfLocal.NoCompany),f(2),ve(i.globals.languageConfLocal.NewCompany),f(1),v("ngIf",i.showExistingCompany),f(1),_s("compExist"!==i.companyAction?"cardWithBackground":"cardWithBackgroundDarker"),f(1),v("ngIf","compNew"===i.companyAction),f(1),v("ngIf","compExist"===i.companyAction),f(1),v("ngIf","compSelect"===i.companyAction),f(5),ve(i.globals.languageConfLocal.ContactAction),f(1),v("value",i.contactAction),f(1),v("ngIf",i.showNoContact),f(2),ve(i.globals.languageConfLocal.NewContact),f(2),v("ngIf","contNew"===i.contactAction))},dependencies:[zn,pn,Ar,Kr,wo,Ir,Pi,Ko,cr,Mr,gw,CR,wR,_h,ite,mh,gh],styles:['.itemListEntry[_ngcontent-%COMP%]{line-height:1.3!important;white-space:nowrap;display:flex;padding:4px 0;grid-gap:4px}.itemListEntry[_ngcontent-%COMP%] > div[_ngcontent-%COMP%], .itemListEntry[_ngcontent-%COMP%] a[_ngcontent-%COMP%], .itemListEntry[_ngcontent-%COMP%] a[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{display:block;overflow:hidden}.itemListEntry[_ngcontent-%COMP%] > div[_ngcontent-%COMP%] > [class^=listEntryItem][_ngcontent-%COMP%], .itemListEntry[_ngcontent-%COMP%] a[_ngcontent-%COMP%] > [class^=listEntryItem][_ngcontent-%COMP%], .itemListEntry[_ngcontent-%COMP%] a[_ngcontent-%COMP%] > div[_ngcontent-%COMP%] > [class^=listEntryItem][_ngcontent-%COMP%]{overflow:hidden;text-overflow:ellipsis;max-width:100%}.itemListEntry[_ngcontent-%COMP%]:not(:last-child){border-bottom:1px solid #e0e0e0}.itemListEntry[_ngcontent-%COMP%]:hover:not([data-selected=true]){background-color:#e0e0e0;cursor:pointer}.itemListEntry[_ngcontent-%COMP%]:hover:not([data-selected=true]) .resultsLineWrapper[_ngcontent-%COMP%]{background-color:#e0e0e0}[data-selected=true].itemListEntry[_ngcontent-%COMP%], [data-selected=true].itemListEntry[_ngcontent-%COMP%] .resultsLineWrapper[_ngcontent-%COMP%]{background-color:#d3d3d3}.itemListEntry[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{height:24px;width:24px;box-sizing:content-box;padding:1px 0 0!important}.itemListEntry[_ngcontent-%COMP%] .resultsLineWrapper[_ngcontent-%COMP%]{overflow:hidden;text-overflow:ellipsis}#resultsContainer[_ngcontent-%COMP%]{height:50vh;overflow-y:auto}#resultsContainer[_ngcontent-%COMP%] > .recentlyUsed[_ngcontent-%COMP%]{width:100%;text-align:center;color:#a9a9a9;padding-bottom:8px;border-bottom:1px solid #e0e0e0}#resultsContainer[_ngcontent-%COMP%] > .recentlyUsed[_ngcontent-%COMP%] + .itemListEntry[_ngcontent-%COMP%]{padding-top:8px}.mat-card-header[_ngcontent-%COMP%]{background-color:#d3d3d3;padding:5px}.resultsLineWrapper[_ngcontent-%COMP%]{width:100%;overflow:hidden;text-overflow:ellipsis}.prevent-select[_ngcontent-%COMP%]{-webkit-user-select:none;user-select:none}#context-menu[_ngcontent-%COMP%]{background-color:#fff;box-shadow:0 0 20px #25282a38;color:#1f194c;width:10em;padding:.8em .6em;font-size:13px;position:fixed;visibility:hidden}#context-menu[_ngcontent-%COMP%] .item[_ngcontent-%COMP%]{padding:.3em 1.2em}#context-menu[_ngcontent-%COMP%] .item[_ngcontent-%COMP%]:hover{background-color:#e0e0e0;cursor:pointer}.btn-group[_ngcontent-%COMP%]{width:100%;padding-top:3px}.btn-group[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{background-color:#bfbfbf;border:1px solid;padding:10px 24px;cursor:pointer;float:left;width:100%}.btn-group[_ngcontent-%COMP%] [_ngcontent-%COMP%]:hover{background-color:#5f5f5f}.btn-group[_ngcontent-%COMP%]:after{content:"";clear:both;display:table}.btn-group[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:first-child{border-radius:5px 0 0 5px}.btn-group[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child{border-radius:0 5px 5px 0}.btn-group[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:not(:last-child){border-right:none}#searchText[_ngcontent-%COMP%]{font-size:12px}.mat-expansion-panel-header[_ngcontent-%COMP%]{height:4.5em;font-size:small}.mat-expansion-panel[_ngcontent-%COMP%] .mat-expanded[_ngcontent-%COMP%]{border:#4d4d4d;border-width:3px}.searchResultsPanel[_ngcontent-%COMP%]{width:calc(100% - 1px);z-index:4;border-radius:5px}.mat-expansion-panel-header-title[_ngcontent-%COMP%]{flex-direction:column;align-items:start;margin-right:0!important}mat-expansion-panel-header[_ngcontent-%COMP%]{padding:0!important}.mat-expansion-panel-header[_ngcontent-%COMP%]:hover{background-color:transparent!important}.searchIcon[_ngcontent-%COMP%]{position:absolute;right:3px;bottom:22px}.clearIcon[_ngcontent-%COMP%]{position:absolute;right:27px;bottom:22px}.databaseSearchSelect[_ngcontent-%COMP%]{width:100%}.databaseSearchSelect[_ngcontent-%COMP%] + .searchResultsPanel[_ngcontent-%COMP%]{margin-top:-16px}.material-symbols-rounded[_ngcontent-%COMP%]{font-variation-settings:"FILL" 0,"wght" 300,"GRAD" -25,"opsz" 18} .noHeaderText>div.mat-card-header-text{display:none}.noHeaderText[_ngcontent-%COMP%]{border-top-right-radius:5px;border-top-left-radius:5px}.cardWithBackground[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{background-color:#f1f1f1;border-bottom-left-radius:5px;border-bottom-right-radius:5px;padding:5px}.cardWithBackgroundDarker[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{background-color:#e8e8e8;border-bottom-left-radius:5px;border-bottom-right-radius:5px;padding:5px}.mat-input-element[_ngcontent-%COMP%]:disabled{color:#000}span.material-symbols-rounded.red[_ngcontent-%COMP%]:hover{color:red;font-weight:900}span.material-symbols-rounded.green[_ngcontent-%COMP%]:hover{color:#00b800;font-weight:900}.left-right-align[_ngcontent-%COMP%]{display:flex;justify-content:space-between}']}),n})();const JR={appVersion:G(4147).i8+" - beta",production:!0,basehref:"businessmail-beta"};let zie=(()=>{class n{constructor(e,i,r,o,s,a,l,c,u){this.globals=e,this.messageService=i,this.mailLoadedService=r,this.ref=o,this.translate=s,this.waitList=a,this.datasource=l,this.lsm=c,this.dps=u}ngOnInit(){this.globals.onActiveWindowChange().subscribe(e=>{"about"===e.newWindow&&"main"===e.currentWindow&&this.initializeTheView()})}initializeTheView(){this.datasource.getProductVersion().subscribe(e=>{this.globals.backendVersion=e,this.crmVersion=this.globals.system.toUpperCase()+" "+this.globals.backendVersion}),this.appVersion=JR.appVersion,this.disclaimer=this.globals.languageConfLocal.Disclaimer.replace("{{currentYear}}",(new Date).getFullYear().toString())}closeClicked(){this.globals.activeWindow="main"}openGedys(){window.open("http://www.gedys-intraware.de","_blank")}licenseInfo(){window.open("assets/licenseInfo.txt","_blank")}}return n.\u0275fac=function(e){return new(e||n)(p(ot),p(tn),p(su),p(St),p(Ut),p(Ri),p(Bi),p(Mi),p(is))},n.\u0275cmp=Ue({type:n,selectors:[["app-about"]],decls:17,vars:5,consts:[[2,"text-align","center"],[2,"margin-top","25px"],["href","#",3,"click"],["mat-button","",2,"background-color","rgb(212, 212, 212)","position","fixed","bottom","30px","left","40%",3,"click"]],template:function(e,i){1&e&&(g(0,"div",0)(1,"h1",1),j(2,"BusinessMail4Outlook"),_(),g(3,"h4"),j(4),_(),g(5,"h4"),j(6),_(),g(7,"div"),j(8),g(9,"a",2),W("click",function(){return i.openGedys()}),j(10,"www.gedys-intraware.de"),_()(),g(11,"div"),be(12,"br"),g(13,"a",2),W("click",function(){return i.licenseInfo()}),j(14),_()(),g(15,"button",3),W("click",function(){return i.closeClicked()}),j(16),_()()),2&e&&(f(4),qe("Addin version: ",i.appVersion,""),f(2),qe("CRM version: ",i.crmVersion,""),f(2),qe("",i.disclaimer," "),f(6),ve(i.globals.languageConfLocal.licenseInfo),f(2),ve(i.globals.languageConfLocal.Close))},dependencies:[tl],styles:['.itemListEntry[_ngcontent-%COMP%]{line-height:1.3!important;white-space:nowrap;display:flex;padding:4px 0;grid-gap:4px}.itemListEntry[_ngcontent-%COMP%] > div[_ngcontent-%COMP%], .itemListEntry[_ngcontent-%COMP%] a[_ngcontent-%COMP%], .itemListEntry[_ngcontent-%COMP%] a[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{display:block;overflow:hidden}.itemListEntry[_ngcontent-%COMP%] > div[_ngcontent-%COMP%] > [class^=listEntryItem][_ngcontent-%COMP%], .itemListEntry[_ngcontent-%COMP%] a[_ngcontent-%COMP%] > [class^=listEntryItem][_ngcontent-%COMP%], .itemListEntry[_ngcontent-%COMP%] a[_ngcontent-%COMP%] > div[_ngcontent-%COMP%] > [class^=listEntryItem][_ngcontent-%COMP%]{overflow:hidden;text-overflow:ellipsis;max-width:100%}.itemListEntry[_ngcontent-%COMP%]:not(:last-child){border-bottom:1px solid #e0e0e0}.itemListEntry[_ngcontent-%COMP%]:hover:not([data-selected=true]){background-color:#e0e0e0;cursor:pointer}.itemListEntry[_ngcontent-%COMP%]:hover:not([data-selected=true]) .resultsLineWrapper[_ngcontent-%COMP%]{background-color:#e0e0e0}[data-selected=true].itemListEntry[_ngcontent-%COMP%], [data-selected=true].itemListEntry[_ngcontent-%COMP%] .resultsLineWrapper[_ngcontent-%COMP%]{background-color:#d3d3d3}.itemListEntry[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{height:24px;width:24px;box-sizing:content-box;padding:1px 0 0!important}.itemListEntry[_ngcontent-%COMP%] .resultsLineWrapper[_ngcontent-%COMP%]{overflow:hidden;text-overflow:ellipsis}#resultsContainer[_ngcontent-%COMP%]{height:50vh;overflow-y:auto}#resultsContainer[_ngcontent-%COMP%] > .recentlyUsed[_ngcontent-%COMP%]{width:100%;text-align:center;color:#a9a9a9;padding-bottom:8px;border-bottom:1px solid #e0e0e0}#resultsContainer[_ngcontent-%COMP%] > .recentlyUsed[_ngcontent-%COMP%] + .itemListEntry[_ngcontent-%COMP%]{padding-top:8px}.resultsLineWrapper[_ngcontent-%COMP%]{width:100%;overflow:hidden;text-overflow:ellipsis}.prevent-select[_ngcontent-%COMP%]{-webkit-user-select:none;user-select:none}#context-menu[_ngcontent-%COMP%]{background-color:#fff;box-shadow:0 0 20px #25282a38;color:#1f194c;width:10em;padding:.8em .6em;font-size:13px;position:fixed;visibility:hidden}#context-menu[_ngcontent-%COMP%] .item[_ngcontent-%COMP%]{padding:.3em 1.2em}#context-menu[_ngcontent-%COMP%] .item[_ngcontent-%COMP%]:hover{background-color:#e0e0e0;cursor:pointer}.btn-group[_ngcontent-%COMP%]{width:100%;padding-top:3px}.btn-group[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{background-color:#bfbfbf;border:1px solid;padding:10px 24px;cursor:pointer;float:left;width:100%}.btn-group[_ngcontent-%COMP%] [_ngcontent-%COMP%]:hover{background-color:#5f5f5f}.btn-group[_ngcontent-%COMP%]:after{content:"";clear:both;display:table}.btn-group[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:first-child{border-radius:5px 0 0 5px}.btn-group[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child{border-radius:0 5px 5px 0}.btn-group[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:not(:last-child){border-right:none}#searchText[_ngcontent-%COMP%]{font-size:12px}.mat-expansion-panel-header[_ngcontent-%COMP%]{height:4.5em;font-size:small}.mat-expansion-panel[_ngcontent-%COMP%] .mat-expanded[_ngcontent-%COMP%]{border:#4d4d4d;border-width:3px}.searchResultsPanel[_ngcontent-%COMP%]{width:calc(100% - 1px);z-index:4;border-radius:5px}.mat-expansion-panel-header-title[_ngcontent-%COMP%]{flex-direction:column;align-items:start;margin-right:0!important}mat-expansion-panel-header[_ngcontent-%COMP%]{padding:0!important}.mat-expansion-panel-header[_ngcontent-%COMP%]:hover{background-color:transparent!important}.searchIcon[_ngcontent-%COMP%]{position:absolute;right:3px;bottom:22px}.clearIcon[_ngcontent-%COMP%]{position:absolute;right:27px;bottom:22px}.databaseSearchSelect[_ngcontent-%COMP%]{width:100%}.databaseSearchSelect[_ngcontent-%COMP%] + .searchResultsPanel[_ngcontent-%COMP%]{margin-top:-16px}']}),n})(),Gie=(()=>{class n{constructor(e,i,r,o,s,a,l,c,u,d){this.globals=e,this.messageService=i,this.mailLoadedService=r,this.ref=o,this.translate=s,this.waitList=a,this.datasource=l,this.lsm=c,this.http=u,this.dps=d}ngOnInit(){this.http.get("assets/licenseInfo.txt",{responseType:"text"}).subscribe(e=>{this.licInfo=e})}closeClicked(){this.globals.activeWindow="about"}}return n.\u0275fac=function(e){return new(e||n)(p(ot),p(tn),p(su),p(St),p(Ut),p(Ri),p(Bi),p(Mi),p(yc),p(is))},n.\u0275cmp=Ue({type:n,selectors:[["app-license-information"]],decls:6,vars:2,consts:[[2,"text-align","center"],[2,"margin-bottom","0px","height","calc(100vh - 1px)","text-align","justify"],["mat-button","",2,"background-color","rgb(212, 212, 212)","position","fixed","bottom","30px","left","40%",3,"click"]],template:function(e,i){1&e&&(g(0,"div",0)(1,"div")(2,"pre",1),j(3),_()(),g(4,"button",2),W("click",function(){return i.closeClicked()}),j(5),_()()),2&e&&(f(3),qe(" ",i.licInfo,"\n "),f(2),ve(i.globals.languageConfLocal.Close))},dependencies:[tl]}),n})();const Wie=["projectSelectorPanel"],$ie=["searchProjectsInput"],Kie=["searchDocumentInput"],ZR=["tagsInput"];function Yie(n,t){if(1&n){const e=Ie();g(0,"mat-chip",11),W("removed",function(){const o=J(e).$implicit;return Z(C(2).removeTag(o))}),g(1,"div",12),j(2),_(),g(3,"button",13)(4,"span",14),j(5,"cancel"),_()()()}if(2&n){const e=t.$implicit;v("removable",!0)("title",e[1]),f(2),ve(e[1])}}function Qie(n,t){if(1&n&&(g(0,"mat-option",15)(1,"div",16)(2,"div",17),j(3),_()()()),2&n){const e=t.$implicit,i=C(2);v("value",e),rt("data-key",e[0]),f(2),_t("title",i.htmlHelp.parseHtmlEntities(e[1])),f(1),qe(" ",i.htmlHelp.parseHtmlEntities(e[1])," ")}}function Jie(n,t){if(1&n){const e=Ie();g(0,"div")(1,"mat-form-field",1)(2,"mat-label",2),j(3),_(),g(4,"mat-chip-list",3,4),H(6,Yie,6,3,"mat-chip",5),g(7,"input",6,7),W("input",function(r){return J(e),Z(C().searchTags(r))}),_(),g(9,"mat-autocomplete",8,9),W("optionSelected",function(r){return J(e),Z(C().autoTagsSelected(r))})("opened",function(){return J(e),Z(C().autocompleteOpened("tagsAuto"))}),H(11,Qie,4,4,"mat-option",10),_()()()()}if(2&n){const e=Yt(5),i=Yt(10),r=C();f(3),ve(r.globals.languageConfLocal.tags),f(3),v("ngForOf",r.enums),f(1),v("matChipInputFor",e)("matAutocomplete",i),f(4),v("ngForOf",r.filteredParticipatedResultsArray)}}let Zie=(()=>{class n{constructor(e,i,r,o,s,a,l,c,u,d,h){this.globals=e,this.mailLoadedService=i,this.ref=r,this.snack=o,this.translate=s,this.datasource=a,this.zone=l,this.lsm=c,this.dps=u,this.htmlHelp=d,this.graph=h,this.searchResultsArray=[],this.searchTextInput="",this.availableTags=[],this.databases=[],this.searchValue="",this.showRecentlyUsed=!0,this.destinationDirectProjectsCount=0,this.participatingProjectsFilter="",this.addressFetched=!1,this.addresses=[],this.filteredAdditionalValues={},this.docImage={background:"transparent no-repeat url(assets/images/icons_business_mail.png)"},this.attachRdy=!1,this.attachDelete=!1}ngOnInit(){this.enums=[],this.tagsVisible=!0;let e=Office.context.mailbox.item;e&&(this.tagsVisible="appointment"!==e.itemType),"gi"===this.globals.system&&(this.showRecentlyUsed=!1,this.tagsVisible=!1),this.globals.infoShower.waitForDocumentDestinationCheckChanged().subscribe({next:i=>{this.getTags()}}),this.dps.addThingToClose("tagsAuto",()=>{this.projectsAutocompleteTrigger?.closePanel()}),this.globals.infoShower.waitForItemRecognition().subscribe(i=>{"appointment"===e?.itemType&&this.graph.getExtendedData(i).subscribe(r=>{})}),this.globals.infoShower.waitForUpdateBM4ODataCommand().subscribe(i=>{}),this.globals.tagSelector=this}detectChanges(){this.ref.detectChanges()}removeTag(e){this.enums.splice(this.enums.findIndex(i=>i[0]===e[0]),1),this.tagsChipsChanged()}tagsChipsChanged(){if(Office.context.mailbox.item){let i=JSON.stringify(this.enums),r=this.globals.infoShower.currentItemId;this.lsm.setValue(Zt.selectedTags,i),this.graph.getExtendedData(r).subscribe(o=>{o.tags=i,this.graph.saveExtendedData(r,o).subscribe(s=>{})})}}textChanged(e){let i=e.target.value;"ba"===this.globals.system&&(this.showRecentlyUsed=0===i.length),i.length>0&&!this.searchPanelExpanded?this.searchPanelExpanded=!0:0===i.length&&this.searchPanelExpanded&&(this.searchPanelExpanded=!1),this.searchValue=i,this.getTags()}searchTags(e){this.participatingProjectsFilter=e.target.value}getTags(){this.datasource.getEnumValues("CD5C4D16-354E-40F3-A978-CB467D5A0E3A").subscribe({next:e=>{this.searchResultsArray=e,this.detectChanges()}})}autoTagsSelected(e){this.addOneProjectChip(e.option.value),this.participatingProjectsFilter="",this.tagsInput.nativeElement.value=""}addOneProjectChip(e){this.enums.push(e),this.tagsChipsChanged()}get filteredParticipatedResultsArray(){let e=this.participatingProjectsFilter?.toLowerCase();return this.searchResultsArray.filter(i=>!this.enums.map(r=>r[0]).some(r=>r===i[0])&&(!e||i[1].toLowerCase().includes(e)))}autocompleteOpened(e){this.dps.closeAll(e)}}return n.\u0275fac=function(e){return new(e||n)(p(ot),p(su),p(St),p(bd),p(Ut),p(Bi),p(et),p(Mi),p(is),p(Vs),p(ya))},n.\u0275cmp=Ue({type:n,selectors:[["app-tags-selector"]],viewQuery:function(e,i){if(1&e&&(De(Wie,5),De($ie,5),De(Kie,5),De(ZR,5),De(ZR,5,ro)),2&e){let r;ce(r=ue())&&(i.projectSelectorPanel=r.first),ce(r=ue())&&(i.searchProjectsInput=r.first),ce(r=ue())&&(i.searchDocumentInput=r.first),ce(r=ue())&&(i.tagsInput=r.first),ce(r=ue())&&(i.projectsAutocompleteTrigger=r.first)}},decls:1,vars:1,consts:[[4,"ngIf"],["id","mainInputTagsSelector",2,"width","100%"],[2,"font-size","small"],[1,"tagsChipsHolder"],["chipsInMain",""],[3,"removable","title","removed",4,"ngFor","ngForOf"],["matInput","",1,"tagsChipsInput",3,"matChipInputFor","matAutocomplete","input"],["tagsInput",""],[1,"tagsSelectorAutocomplete",3,"optionSelected","opened"],["auto","matAutocomplete"],["class","tagsOption",3,"value",4,"ngFor","ngForOf"],[3,"removable","title","removed"],[1,"chipBase"],["matChipRemove","",1,"chipRemoveButton"],[1,"material-symbols-rounded"],[1,"tagsOption",3,"value"],[2,"float","left"],[1,"listEntryItemMainLine",3,"title"]],template:function(e,i){1&e&&H(0,Jie,12,5,"div",0),2&e&&v("ngIf",!i.globals.infoShower.noneSelected&&i.tagsVisible)},dependencies:[zn,pn,Ir,Pi,cr,Mr,Cl,Ks,wl,bl,hR,ro],styles:['.tagsSelectorAutocomplete .mat-option,.tagsOption>.mat-option-text,.itemListEntry{line-height:1.3!important;white-space:nowrap;display:flex;padding:4px 0;grid-gap:4px}.tagsSelectorAutocomplete .mat-option>div,.tagsOption>.mat-option-text>div,.itemListEntry>div,.tagsSelectorAutocomplete .mat-option a,.tagsOption>.mat-option-text a,.itemListEntry a,.tagsSelectorAutocomplete .mat-option a>div,.tagsOption>.mat-option-text a>div,.itemListEntry a>div{display:block;overflow:hidden}.tagsSelectorAutocomplete .mat-option>div>[class^=listEntryItem],.tagsOption>.mat-option-text>div>[class^=listEntryItem],.itemListEntry>div>[class^=listEntryItem],.tagsSelectorAutocomplete .mat-option a>[class^=listEntryItem],.tagsOption>.mat-option-text a>[class^=listEntryItem],.itemListEntry a>[class^=listEntryItem],.tagsSelectorAutocomplete .mat-option a>div>[class^=listEntryItem],.tagsOption>.mat-option-text a>div>[class^=listEntryItem],.itemListEntry a>div>[class^=listEntryItem]{overflow:hidden;text-overflow:ellipsis;max-width:100%}.tagsSelectorAutocomplete .mat-option:not(:last-child),.tagsOption>.mat-option-text:not(:last-child),.itemListEntry:not(:last-child){border-bottom:1px solid #e0e0e0}.tagsSelectorAutocomplete .mat-option:hover:not([data-selected=true]),.tagsOption>.mat-option-text:hover:not([data-selected=true]),.itemListEntry:hover:not([data-selected=true]){background-color:#e0e0e0;cursor:pointer}.tagsSelectorAutocomplete .mat-option:hover:not([data-selected=true]) .resultsLineWrapper,.tagsOption>.mat-option-text:hover:not([data-selected=true]) .resultsLineWrapper,.itemListEntry:hover:not([data-selected=true]) .resultsLineWrapper{background-color:#e0e0e0}.tagsSelectorAutocomplete [data-selected=true].mat-option,.tagsOption>[data-selected=true].mat-option-text,[data-selected=true].itemListEntry{background-color:#d3d3d3}.tagsSelectorAutocomplete [data-selected=true].mat-option .resultsLineWrapper,.tagsOption>[data-selected=true].mat-option-text .resultsLineWrapper,[data-selected=true].itemListEntry .resultsLineWrapper{background-color:#d3d3d3}.tagsSelectorAutocomplete .mat-option img,.tagsOption>.mat-option-text img,.itemListEntry img{height:24px;width:24px;box-sizing:content-box;padding:1px 0 0!important}.tagsSelectorAutocomplete .mat-option .resultsLineWrapper,.tagsOption>.mat-option-text .resultsLineWrapper,.itemListEntry .resultsLineWrapper{overflow:hidden;text-overflow:ellipsis}.prevent-select{-webkit-user-select:none;user-select:none}.item{padding:.3em 1.2em}.btn-group{width:100%;padding-top:3px}.btn-group button{background-color:#bfbfbf;border:1px solid;padding:10px 24px;cursor:pointer;float:left;width:100%}.btn-group:after{content:"";clear:both;display:table}.btn-group button:first-child{border-radius:5px 0 0 5px}.btn-group button:last-child{border-radius:0 5px 5px 0}.btn-group button:not(:last-child){border-right:none}.chipRemoveButton{margin-top:-.5em;margin-left:0!important}.chipImage{height:1.5em;margin-right:3px;margin-left:-3px}.chipBase{text-overflow:ellipsis;overflow:hidden;white-space:nowrap;width:100%}.mat-form-field .tagsChipsInput{width:100%;margin:0;line-height:1.8em;height:0}.mat-form-field .tagsChipsInput:focus{height:auto}.mat-form-field.mat-focused .tagsChipsInput{height:auto}.tagsOption{height:2.5em!important;padding-left:.5em!important}.tagsOption>.mat-option-text{display:flex!important;border-bottom:none!important}.tagsChipsHolder>.mat-chip-list-wrapper{max-height:7.5em;overflow-x:hidden;overflow-y:auto;scrollbar-gutter:stable;margin:0!important;grid-gap:4px;padding:4px;display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}.tagsChipsHolder>.mat-chip-list-wrapper>.mat-chip{margin:0;background-color:#0000000a}.tagsChipsHolder>.mat-chip-list-wrapper>.mat-chip:first-of-type:last-of-type{grid-column:span 2}.listEntryItemMainLine{font-size:13px}.listEntryItemSubLine{font-size:12px}.mat-expansion-panel-header-title{flex-direction:column;align-items:start;margin-right:0!important}mat-expansion-panel-header{padding:0!important}.mat-expansion-panel-header:hover{background-color:transparent!important}.tagsOption span.mat-option-text{grid-gap:4px}\n'],encapsulation:2}),n})();const Xie=["projectSelectorPanel"],ere=["searchProjectsInput"],tre=["destinationProjectsInputRO"],XR=["destinationProjectsInput"],eO=["searchProjectPhasesInput"],nre=["allProjectsButton"];function ire(n,t){if(1&n&&(g(0,"mat-option",24),j(1),_()),2&n){const e=t.$implicit;v("value",e.value),f(1),ve(e.viewValue)}}function rre(n,t){if(1&n){const e=Ie();g(0,"mat-form-field",21)(1,"mat-label"),j(2),_(),g(3,"mat-select",22),W("valueChange",function(r){return J(e),Z(C(2).selectedDB=r)})("selectionChange",function(){return J(e),Z(C(2).getProjects(!1))}),H(4,ire,2,2,"mat-option",23),_()()}if(2&n){const e=C(2);f(2),ve(e.globals.languageConfLocal.projectDatabase),f(1),v("value",e.selectedDB),f(1),v("ngForOf",e.databases)}}function ore(n,t){if(1&n&&(g(0,"div",25),j(1),_()),2&n){const e=C(2);f(1),qe(" ",e.globals.languageConfLocal.recentlyUsed," ")}}function sre(n,t){if(1&n){const e=Ie();g(0,"div",26),W("click",function(r){return J(e),Z(C(2).dblClickedElement(r))}),be(1,"img",27),g(2,"div",28)(3,"span",29),j(4),_(),be(5,"br"),g(6,"span",30),j(7),_(),be(8,"br"),g(9,"span",30),j(10),_(),be(11,"br"),_()()}if(2&n){const e=t.$implicit,i=t.index,r=C(2);_t("title",e.lineOne),rt("data-order",i+1)("data-fdme",e.fdMe)("data-displayname",r.htmlHelp.parseHtmlEntities(e.lineOne))("data-image",e.image),f(1),v("src",r.datasource.getImageSrc(e.image),En),f(2),_t("title",r.htmlHelp.parseHtmlEntities(e.lineOne)),f(1),ve(r.htmlHelp.parseHtmlEntities(e.lineOne)),f(2),_t("title",r.htmlHelp.parseHtmlEntities(e.lineTwo)),f(1),ve(r.htmlHelp.parseHtmlEntities(e.lineTwo)),f(2),_t("title",r.htmlHelp.parseHtmlEntities(e.lineThree)),f(1),ve(r.htmlHelp.parseHtmlEntities(e.lineThree))}}function are(n,t){if(1&n){const e=Ie();g(0,"mat-chip",31),W("removed",function(){const o=J(e).$implicit;return Z(C(2).removeProject(o))}),be(1,"img",32),g(2,"div",33),j(3),_(),g(4,"button",34)(5,"span",35),j(6,"cancel"),_()()()}if(2&n){const e=t.$implicit,i=C(2);v("removable",!0)("title",e.name),rt("data-pointer",e.pointer),f(1),v("src",i.datasource.getImageSrc(e.image),En),f(2),ve(e.name)}}function lre(n,t){if(1&n){const e=Ie();g(0,"div")(1,"mat-card",1,2)(3,"mat-card-title",3),j(4),g(5,"div",4)(6,"span",5),W("click",function(){return J(e),Z(C().confirmSelection())}),j(7,"check_circle"),_(),g(8,"span",6),W("click",function(){return J(e),Z(C().cancelSelection())}),j(9,"cancel"),_()()(),g(10,"mat-card-content",7)(11,"mat-form-field",8)(12,"mat-label"),j(13),_(),g(14,"input",9,10),W("input",function(r){return J(e),Z(C().textChanged(r))}),_()(),H(16,rre,5,3,"mat-form-field",11),be(17,"br"),g(18,"div",12),H(19,ore,2,1,"div",13),H(20,sre,12,12,"div",14),_()(),g(21,"mat-card-footer",15),be(22,"mat-divider",16),g(23,"mat-chip-list",17,18),H(25,are,7,5,"mat-chip",19),be(26,"input",20),_()()()()}if(2&n){const e=Yt(24),i=C();f(4),qe(" ",i.globals.languageConfLocal.projectSelection," "),f(2),v("title",i.globals.languageConfLocal.Apply),f(2),v("title",i.globals.languageConfLocal.Cancel),f(5),ve(i.globals.languageConfLocal.searchProjectsInCRM),f(3),v("ngIf",null!=i.databases&&i.databases.length>0),f(3),v("ngIf",i.showRecentlyUsed),f(1),v("ngForOf",i.searchResultsArray),f(5),v("ngForOf",i.projects),f(1),v("matChipInputFor",e)}}let cre=(()=>{class n{constructor(e,i,r,o,s,a,l,c,u,d){this.globals=e,this.ref=i,this.snack=r,this.translate=o,this.datasource=s,this.zone=a,this.lsm=l,this.dps=c,this.graph=u,this.htmlHelp=d,this.projectSelectorPanelVisible=!1,this.searchTextInput="",this.searchResultsArray=[],this.projectPhaseResultArray=[],this.projectPhaseSearchResultArray=[],this.projectPhaseFilter="",this.participatedResultsArray=[],this.databases=[],this.searchValue="",this.showRecentlyUsed=!0,this.destinationDirectProjectsCount=0,this.destinationProjects=new Co(""),this.projectPhasesControl=new Co(""),this.participatingProjectsFilter="",this.addressFetched=!1,this.addresses=[],this.filteredAdditionalValues={},this.docImage={background:"transparent no-repeat url(assets/images/icons_business_mail.png)"},this.attachRdy=!1,this.attachDelete=!1}ngOnInit(){this.globals.onActiveWindowChange().subscribe(e=>{"projectPage"===e.newWindow&&"main"===e.currentWindow&&this.initializeTheView()})}initializeTheView(){this.databases=[],this.searchValue="",this.searchProjectsInput.nativeElement.value="",this.searchResultsArray=[],this.projects=[...this.globals.projectSelector.projects],"gi"===this.globals.system&&(this.showRecentlyUsed=!1),this.getProjectDBs(this.globals.infoShower.primaryPointer),this.getProjects(!1),setTimeout(()=>{this.searchProjectsInput.nativeElement.focus()},0)}detectChanges(){this.ref.detectChanges()}confirmSelection(){this.globals.projectSelector.projects=this.projects,this.globals.activeWindow="main"}cancelSelection(){this.globals.activeWindow="main"}removeProject(e){this.projects.splice(this.projects.findIndex(i=>i.pointer===e.pointer),1),this.projectChipsChanged()}removeProjectPhase(e){this.projectPhases.splice(this.projects.findIndex(i=>i.pointer===e.pointer),1),this.projectPhaseChipsChanged()}projectChipsChanged(){if(Office.context.mailbox.item){let i=JSON.stringify(this.projects.concat(this.projectPhases)),r=this.globals.infoShower.currentItemId;this.lsm.setValue(Zt.selectedProjects,i),this.graph.getExtendedData(r).subscribe(o=>{o.selectedProjects=i,this.graph.saveExtendedData(r,o).subscribe(s=>{})})}if(this.projects.length>0){this.destinationProjectsInput?.nativeElement.classList.add("hasProjects"),this.destinationProjectsInputRO?.nativeElement.classList.add("hasProjects"),this.allProjectsButton?.nativeElement.classList.add("hasProjects");let i=this.projects.map(r=>r.pointer);this.datasource.getPhasesOfPointer(i).subscribe(r=>{this.projectPhaseResultArray=r,console.log("Projectphases:",this.projectPhaseResultArray)})}else this.destinationProjectsInput?.nativeElement.classList.remove("hasProjects"),this.destinationProjectsInputRO?.nativeElement.classList.remove("hasProjects"),this.allProjectsButton?.nativeElement.classList.remove("hasProjects")}projectPhaseChipsChanged(){if(Office.context.mailbox.item){let i=JSON.stringify(this.projects.concat(this.projectPhases)),r=this.globals.infoShower.currentItemId;this.lsm.setValue(Zt.selectedProjects,i),this.graph.getExtendedData(r).subscribe(o=>{o.selectedProjects=i,this.graph.saveExtendedData(r,o).subscribe(s=>{})})}}textChanged(e){let i=e.target.value;"ba"===this.globals.system&&(this.showRecentlyUsed=0===i.length),i.length>0&&!this.searchPanelExpanded?this.searchPanelExpanded=!0:0===i.length&&this.searchPanelExpanded&&(this.searchPanelExpanded=!1),this.searchValue=i,this.getProjects(!1)}searchParticipatingProjects(e){this.participatingProjectsFilter=e.target.value}searchProjectPhases(e){this.projectPhaseFilter=e.target.value}dblClickedElement(e){let i=e.currentTarget;if(!this.projects.some(r=>r.pointer===i.dataset.fdme)){let r=new Sa;r.name=i.dataset.displayname,r.pointer=i.dataset.fdme,r.image=i.dataset.image,this.datasource.addToRecentlyUsed(i.dataset.fdme),this.projects.push(r),setTimeout(()=>{const o=document.querySelector(".allProjectsFooter .mat-chip-list-wrapper");o&&(o.scrollTop=o.scrollHeight),this.blinkChip(r.pointer)},10),this.projectChipsChanged()}}blinkChip(e){document.querySelector('mat-chip[data-pointer="'+e+'"]')?.classList.add("fade-it")}getProjectDBs(e){const i={};e?i.pointer=e:i.onlyOptions=!0;const r=new $t({fromObject:i});this.datasource.fetchDBs("projects",r).subscribe(o=>{console.log("ProjectDBs:",o),o&&this.generateSelectionArrProjectDbs(o.databases,e)})}generateSelectionArrProjectDbs(e,i){for(const s of e)this.databases.push({value:s.alias,viewValue:s.title});console.log("this.databases:",this.databases),this.databases.length>0&&(this.selectedDB=this.databases[0].value)}getProjects(e){e&&!this.globals.infoShower.primaryPointer||this.datasource.searchProjects(this.selectedDB,e?this.globals.infoShower.primaryPointer:"",this.searchValue).subscribe({next:i=>{i.MessageDetail&&i.MessageDetail.indexOf("BM4OProjects")>0?this.globals.noProjects=!0:(this.searchResultsArray=this.datasource.handleSearchResult(i,Yo.projects,{participantProjects:e}),e&&(this.destinationDirectProjectsCount=this.searchResultsArray.length,this.participatedResultsArray=this.datasource.handleSearchResult(i,Yo.projects,{participantProjects:e}),this.zone.run(()=>{setTimeout(()=>{this.showProjectSnack()},0)})),this.detectChanges(),console.log("ProjectSearchResults:",this.searchResultsArray))}})}showProjectSnack(){this.globals.infoShower.isReadMode||(this.projectSnack?.dismiss(),1===this.destinationDirectProjectsCount?(this.projectSnack=this.snack.open(this.globals.languageConfLocal.selectedAddressHasAssignedProject,this.globals.languageConfLocal.LC73057,{duration:7500}),this.projectSnack.afterOpened().subscribe(()=>{this.detectChanges()}),this.projectSnack.onAction().subscribe(()=>{this.projects=[],this.addOneProjectChip(this.searchResultsArray[0])})):this.destinationDirectProjectsCount>1&&(this.projectSnack=this.snack.open(this.globals.languageConfLocal.selectedAddressHasAssignedProjects,"OK",{duration:9500}),this.projectSnack.afterOpened().subscribe(()=>{this.detectChanges()}),this.projectSnack.onAction().subscribe(()=>{setTimeout(()=>{this.projectsAutocompleteTrigger?.openPanel(),this.destinationProjectsInput.nativeElement.focus()},10)})))}autoProjectSelected(e){this.addOneProjectChip(e.option.value),this.participatingProjectsFilter="",this.destinationProjectsInput.nativeElement.value=""}autoProjectPhaseSelected(e){this.addOneProjectPhaseChip(e.option.value),this.projectPhaseFilter=""}addOneProjectChip(e){let i=new Sa;i.name=e.lineOne,i.pointer=e.fdMe,i.image=e.image,this.datasource.addToRecentlyUsed(e.fdme),this.projects.push(i),this.projectChipsChanged()}addOneProjectPhaseChip(e){let i=new Sa;i.name=e.lineOne,i.pointer=e.fdMe,i.image=e.image,this.datasource.addToRecentlyUsed(e.fdme),this.projectPhases.push(i);let r=this.projects.findIndex(o=>o.pointer===e.parentPointer);-1!==r&&this.projects.splice(r,1),this.projectPhaseChipsChanged()}get filteredParticipatedResultsArray(){let e=this.participatingProjectsFilter?.toLowerCase();return this.participatedResultsArray.filter(i=>!this.projects.map(r=>r.pointer).some(r=>r===i.fdMe)&&(!e||i.lineOne.toLowerCase().includes(e)||i.lineTwo?.toLowerCase().includes(e)||i.lineThree?.toLowerCase().includes(e)))}get filteredProjectPhases(){let e=this.projectPhaseFilter?.toLowerCase();return this.projectPhaseResultArray.filter(i=>!this.projectPhases.map(r=>r.pointer).some(r=>r===i.fdMe)&&(!e||i.lineOne.toLowerCase().includes(e)||i.lineTwo?.toLowerCase().includes(e)||i.lineThree?.toLowerCase().includes(e)))}getProjectsLabel(){return this.projects.length>0?this.globals.languageConfLocal.selectedProjects:this.destinationDirectProjectsCount>0?this.globals.languageConfLocal.assignedProjects+" ("+this.destinationDirectProjectsCount+")":this.globals.languageConfLocal.selectProjectsCRM}autocompleteOpened(e){this.dps.closeAll(e)}}return n.\u0275fac=function(e){return new(e||n)(p(ot),p(St),p(bd),p(Ut),p(Bi),p(et),p(Mi),p(is),p(ya),p(Vs))},n.\u0275cmp=Ue({type:n,selectors:[["app-project-selector-page"]],viewQuery:function(e,i){if(1&e&&(De(Xie,5),De(ere,5),De(tre,5),De(XR,5),De(eO,5),De(nre,5),De(XR,5,ro),De(eO,5,ro)),2&e){let r;ce(r=ue())&&(i.projectSelectorPanel=r.first),ce(r=ue())&&(i.searchProjectsInput=r.first),ce(r=ue())&&(i.destinationProjectsInputRO=r.first),ce(r=ue())&&(i.destinationProjectsInput=r.first),ce(r=ue())&&(i.searchProjectPhasesInput=r.first),ce(r=ue())&&(i.allProjectsButton=r.first),ce(r=ue())&&(i.projectsAutocompleteTrigger=r.first),ce(r=ue())&&(i.phasesAutocompleteTrigger=r.first)}},decls:1,vars:1,consts:[[4,"ngIf"],[1,"allProjectsCard"],["projectSelectorPanel",""],[1,"left-right-align"],[1,"iconsDiv"],[1,"material-symbols-rounded","green","customSize",2,"cursor","pointer",3,"title","click"],[1,"material-symbols-rounded","red","customSize",2,"cursor","pointer",3,"title","click"],[1,"allProjectsContent"],[2,"width","100%"],["matInput","","type","text",3,"input"],["searchProjectsInput",""],["class","databaseSearchSelect","appearance","standard",4,"ngIf"],["id","resultsContainer",1,"prevent-select"],["class","recentlyUsed",4,"ngIf"],["class","itemListEntry resultListEntry",3,"title","click",4,"ngFor","ngForOf"],[1,"allProjectsFooter"],[2,"padding-bottom","2px"],[1,"projectsChipsHolder"],["chipsInCard",""],[3,"removable","title","removed",4,"ngFor","ngForOf"],["matInput","","readonly","",2,"width","100%","height","0px","margin","0px",3,"matChipInputFor"],["appearance","standard",1,"databaseSearchSelect"],[3,"value","valueChange","selectionChange"],[3,"value",4,"ngFor","ngForOf"],[3,"value"],[1,"recentlyUsed"],[1,"itemListEntry","resultListEntry",3,"title","click"],[3,"src"],[1,"resultsLineWrapper"],[1,"listEntryItemMainLine",3,"title"],[1,"listEntryItemSubLine",3,"title"],[3,"removable","title","removed"],[1,"chipImage",3,"src"],[1,"chipBase"],["matChipRemove","",1,"chipRemoveButton"],[1,"material-symbols-rounded"]],template:function(e,i){1&e&&H(0,lre,27,9,"div",0),2&e&&v("ngIf",i.globals.infoShower&&(!i.globals.infoShower.noneSelected&&!i.globals.noProjects||i.globals.addressActivities.documentsAsDestinations.length>0))},dependencies:[zn,pn,Bf,Ir,Pi,Ko,cr,Mr,_h,mh,gh,hg,Cl,Ks,wl,bl],styles:['.projectSelectorAutocomplete .mat-option,.projectOption>.mat-option-text,.itemListEntry{line-height:1.3!important;white-space:nowrap;display:flex;padding:4px 0;grid-gap:4px}.projectSelectorAutocomplete .mat-option>div,.projectOption>.mat-option-text>div,.itemListEntry>div,.projectSelectorAutocomplete .mat-option a,.projectOption>.mat-option-text a,.itemListEntry a,.projectSelectorAutocomplete .mat-option a>div,.projectOption>.mat-option-text a>div,.itemListEntry a>div{display:block;overflow:hidden}.projectSelectorAutocomplete .mat-option>div>[class^=listEntryItem],.projectOption>.mat-option-text>div>[class^=listEntryItem],.itemListEntry>div>[class^=listEntryItem],.projectSelectorAutocomplete .mat-option a>[class^=listEntryItem],.projectOption>.mat-option-text a>[class^=listEntryItem],.itemListEntry a>[class^=listEntryItem],.projectSelectorAutocomplete .mat-option a>div>[class^=listEntryItem],.projectOption>.mat-option-text a>div>[class^=listEntryItem],.itemListEntry a>div>[class^=listEntryItem]{overflow:hidden;text-overflow:ellipsis;max-width:100%}.projectSelectorAutocomplete .mat-option:not(:last-child),.projectOption>.mat-option-text:not(:last-child),.itemListEntry:not(:last-child){border-bottom:1px solid #e0e0e0}.projectSelectorAutocomplete .mat-option:hover:not([data-selected=true]),.projectOption>.mat-option-text:hover:not([data-selected=true]),.itemListEntry:hover:not([data-selected=true]){background-color:#e0e0e0;cursor:pointer}.projectSelectorAutocomplete .mat-option:hover:not([data-selected=true]) .resultsLineWrapper,.projectOption>.mat-option-text:hover:not([data-selected=true]) .resultsLineWrapper,.itemListEntry:hover:not([data-selected=true]) .resultsLineWrapper{background-color:#e0e0e0}.projectSelectorAutocomplete [data-selected=true].mat-option,.projectOption>[data-selected=true].mat-option-text,[data-selected=true].itemListEntry{background-color:#d3d3d3}.projectSelectorAutocomplete [data-selected=true].mat-option .resultsLineWrapper,.projectOption>[data-selected=true].mat-option-text .resultsLineWrapper,[data-selected=true].itemListEntry .resultsLineWrapper{background-color:#d3d3d3}.projectSelectorAutocomplete .mat-option img,.projectOption>.mat-option-text img,.itemListEntry img{height:24px;width:24px;box-sizing:content-box;padding:1px 0 0!important}.projectSelectorAutocomplete .mat-option .resultsLineWrapper,.projectOption>.mat-option-text .resultsLineWrapper,.itemListEntry .resultsLineWrapper{overflow:hidden;text-overflow:ellipsis}.allProjectsContent #resultsContainer{height:50vh;overflow-y:auto}.allProjectsContent #resultsContainer>.recentlyUsed{width:100%;text-align:center;color:#a9a9a9;padding-bottom:8px;border-bottom:1px solid #e0e0e0}.allProjectsContent #resultsContainer>.recentlyUsed+.itemListEntry{padding-top:8px}.resultsLineWrapper{width:100%;overflow:hidden;text-overflow:ellipsis}.prevent-select{-webkit-user-select:none;user-select:none}.item{padding:.3em 1.2em}.btn-group{width:100%;padding-top:3px}.btn-group button{background-color:#bfbfbf;border:1px solid;padding:10px 24px;cursor:pointer;float:left;width:100%}.btn-group:after{content:"";clear:both;display:table}.btn-group button:first-child{border-radius:5px 0 0 5px}.btn-group button:last-child{border-radius:0 5px 5px 0}.btn-group button:not(:last-child){border-right:none}.chipRemoveButton{margin-top:-.5em;margin-left:0!important}#searchText{font-size:12px}.searchResultsPanel{width:calc(100% - 1px);z-index:4;border-radius:5px}.chipImage{height:1.5em;margin-right:3px;margin-left:-3px}.chipBase{text-overflow:ellipsis;overflow:hidden;white-space:nowrap;width:100%}.mat-form-field .projectChipsInput{width:100%;margin:0;line-height:1.8em;height:0}.mat-form-field .projectChipsInput:focus{height:auto}.mat-form-field.mat-focused .projectChipsInput{height:auto}.allProjects{cursor:pointer;position:absolute;right:-.1em;top:0em}.allProjects.hasProjects{top:-.7em}.projectOption{height:4em;padding-left:.5em!important}.projectOption>.mat-option-text{display:flex!important;border-bottom:none!important}.projectsChipsHolder>.mat-chip-list-wrapper{max-height:7.5em;overflow-x:hidden;overflow-y:auto;scrollbar-gutter:stable;margin:0!important;grid-gap:4px;padding:4px;display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}.projectsChipsHolder>.mat-chip-list-wrapper>.mat-chip{margin:0;background-color:#0000000a}.projectsChipsHolder>.mat-chip-list-wrapper>.mat-chip:first-of-type:last-of-type{grid-column:span 2}.projectChipsNoInput:not(.hasProjects){display:block;height:0}.projectChipsNoInput.hasProjects{display:none}.allProjectsCard{z-index:10;width:100%;height:100vh;display:flex!important;flex-direction:column;box-shadow:none!important}.allProjectsTitle{flex-shrink:0;font-size:21px;font-weight:100;font-family:Segoe UI,"Segoe UI Web (West European)",Segoe UI,-apple-system,BlinkMacSystemFont,Roboto,Helvetica Neue,sans-serif}.allProjectsContent{flex-grow:1;overflow:auto;font-size:12px;margin-bottom:0!important}.allProjectsContent #resultsContainer{height:max-content;overflow:auto;max-height:calc(100% - 50px)}.allProjectsFooter{padding-bottom:.3em;padding-left:6px}.listEntryItemMainLine{font-size:13px}.listEntryItemSubLine{font-size:12px}.mat-expansion-panel-header-title{flex-direction:column;align-items:start;margin-right:0!important}mat-expansion-panel-header{padding:0!important}.mat-expansion-panel-header:hover{background-color:transparent!important}.projectOption span.mat-option-text{grid-gap:4px}@keyframes green-fade{0%{background:#4e850c}to{background:#fcfcfc}}.fade-it{animation:green-fade 1s ease-in-out 0s}.customSize{font-size:22px!important}span.material-symbols-rounded.red:hover{color:#ff2727;font-weight:900}span.material-symbols-rounded.green:hover{color:#13e813;font-weight:900}span.material-symbols-rounded.red,span.material-symbols-rounded.green{border-radius:16px;color:#a9a9a9;font-weight:900}.iconsDiv{display:flex}.left-right-align{display:flex;justify-content:space-between}\n'],encapsulation:2}),n})();const ure=["openAfterCreate"],dre=["linkOptionActive"];function hre(n,t){if(1&n&&(g(0,"div",11)(1,"mat-label"),j(2),_(),be(3,"mat-checkbox",null,12),_()),2&n){const e=C();f(2),ve(e.globals.languageConfLocal.autoOpenNew)}}function pre(n,t){if(1&n&&(g(0,"div",11)(1,"mat-label"),j(2),_(),be(3,"mat-checkbox",null,13),_()),2&n){const e=C();f(2),ve(e.globals.languageConfLocal.activateLinkOption)}}let fre=(()=>{class n{constructor(e,i,r,o,s,a,l,c,u){this.globals=e,this.ref=i,this.snack=r,this.messageService=o,this.translate=s,this.datasource=a,this.ngZone=l,this.connectionService=c,this.settings=u}ngOnInit(){this.globals.onActiveWindowChange().subscribe(e=>{"userSettings"===e.newWindow&&"main"===e.currentWindow&&this.initializeTheView()})}initializeTheView(){void 0!==this.openAfterCreate&&(this.openAfterCreate.checked="true"===this.settings.get(Us.USopenAfterCreate)),void 0!==this.linkOptionActive&&(this.linkOptionActive.checked="true"===this.settings.get(Us.USlinkOptionActive))}detectChanges(){this.ref.detectChanges()}saveSettings(){this.settings.set(Us.USopenAfterCreate,String(this.openAfterCreate.checked)),this.linkOptionActive&&this.settings.set(Us.USlinkOptionActive,String(this.linkOptionActive.checked)),this.settings.save().subscribe({next:e=>{"succeeded"===e.status?(this.globals.activeWindow="main",this.ngZone.run(()=>{setTimeout(()=>{this.messageService.showSuccess(this.globals.languageConfLocal.settingsSaved)},0)})):this.messageService.showError(this.globals.languageConfLocal.errorOnSettingsSave),this.globals.activeWindow="main"},error:e=>{this.messageService.showError(this.globals.languageConfLocal.errorOnSettingsSave)}})}cancelChanges(){this.globals.activeWindow="main"}openWebIntModal(){this.connectionService.waitForWebIntModal().subscribe(e=>{e()})}}return n.\u0275fac=function(e){return new(e||n)(p(ot),p(St),p(bd),p(tn),p(Ut),p(Bi),p(et),p(In),p(Kc))},n.\u0275cmp=Ue({type:n,selectors:[["app-user-settings"]],viewQuery:function(e,i){if(1&e&&(De(ure,5),De(dre,5)),2&e){let r;ce(r=ue())&&(i.openAfterCreate=r.first),ce(r=ue())&&(i.linkOptionActive=r.first)}},decls:18,vars:6,consts:[[1,"settingsCard"],["projectSelectorPanel",""],[1,"left-right-align"],[1,"iconsDiv"],[1,"material-symbols-rounded","green","customSize",2,"cursor","pointer",3,"title","click"],[1,"material-symbols-rounded","red","customSize",2,"cursor","pointer",3,"title","click"],[1,"settingsContent"],["mat-menu-item","",1,"",2,"padding-left","12px !important",3,"click"],["firstEle",""],["class","settingsHolder",4,"ngIf"],[1,"settingsFooter"],[1,"settingsHolder"],["openAfterCreate",""],["linkOptionActive",""]],template:function(e,i){1&e&&(g(0,"div")(1,"mat-card",0,1)(3,"mat-card-title",2),j(4),g(5,"div",3)(6,"span",4),W("click",function(){return i.saveSettings()}),j(7,"check_circle"),_(),g(8,"span",5),W("click",function(){return i.cancelChanges()}),j(9,"cancel"),_()()(),g(10,"mat-card-content",6)(11,"div")(12,"span",7,8),W("click",function(){return i.openWebIntModal()}),j(14),_()(),H(15,hre,5,1,"div",9),H(16,pre,5,1,"div",9),_(),be(17,"mat-card-footer",10),_()()),2&e&&(f(4),qe(" ",i.globals.languageConfLocal.userSettings," "),f(2),v("title",i.globals.languageConfLocal.Apply),f(2),v("title",i.globals.languageConfLocal.Cancel),f(6),qe(" ",i.globals.languageConfLocal.webIntConfig," "),f(1),v("ngIf",i.globals.loggedIn),f(1),v("ngIf",i.globals.configJson.webUrl||"ba"===i.globals.system))},dependencies:[pn,iu,Pi,_h,mh,gh,hg,pg],styles:['.projectSelectorAutocomplete .mat-option,.projectOption>.mat-option-text,.itemListEntry{line-height:1.3!important;white-space:nowrap;display:flex;padding:4px 0;grid-gap:4px}.projectSelectorAutocomplete .mat-option>div,.projectOption>.mat-option-text>div,.itemListEntry>div,.projectSelectorAutocomplete .mat-option a,.projectOption>.mat-option-text a,.itemListEntry a,.projectSelectorAutocomplete .mat-option a>div,.projectOption>.mat-option-text a>div,.itemListEntry a>div{display:block;overflow:hidden}.projectSelectorAutocomplete .mat-option>div>[class^=listEntryItem],.projectOption>.mat-option-text>div>[class^=listEntryItem],.itemListEntry>div>[class^=listEntryItem],.projectSelectorAutocomplete .mat-option a>[class^=listEntryItem],.projectOption>.mat-option-text a>[class^=listEntryItem],.itemListEntry a>[class^=listEntryItem],.projectSelectorAutocomplete .mat-option a>div>[class^=listEntryItem],.projectOption>.mat-option-text a>div>[class^=listEntryItem],.itemListEntry a>div>[class^=listEntryItem]{overflow:hidden;text-overflow:ellipsis;max-width:100%}.projectSelectorAutocomplete .mat-option:not(:last-child),.projectOption>.mat-option-text:not(:last-child),.itemListEntry:not(:last-child){border-bottom:1px solid #e0e0e0}.projectSelectorAutocomplete .mat-option:hover:not([data-selected=true]),.projectOption>.mat-option-text:hover:not([data-selected=true]),.itemListEntry:hover:not([data-selected=true]){background-color:#e0e0e0;cursor:pointer}.projectSelectorAutocomplete .mat-option:hover:not([data-selected=true]) .resultsLineWrapper,.projectOption>.mat-option-text:hover:not([data-selected=true]) .resultsLineWrapper,.itemListEntry:hover:not([data-selected=true]) .resultsLineWrapper{background-color:#e0e0e0}.projectSelectorAutocomplete [data-selected=true].mat-option,.projectOption>[data-selected=true].mat-option-text,[data-selected=true].itemListEntry{background-color:#d3d3d3}.projectSelectorAutocomplete [data-selected=true].mat-option .resultsLineWrapper,.projectOption>[data-selected=true].mat-option-text .resultsLineWrapper,[data-selected=true].itemListEntry .resultsLineWrapper{background-color:#d3d3d3}.projectSelectorAutocomplete .mat-option img,.projectOption>.mat-option-text img,.itemListEntry img{height:24px;width:24px;box-sizing:content-box;padding:1px 0 0!important}.projectSelectorAutocomplete .mat-option .resultsLineWrapper,.projectOption>.mat-option-text .resultsLineWrapper,.itemListEntry .resultsLineWrapper{overflow:hidden;text-overflow:ellipsis}.settingsContent #resultsContainer{height:50vh;overflow-y:auto}.settingsContent #resultsContainer>.recentlyUsed{width:100%;text-align:center;color:#a9a9a9;padding-bottom:8px;border-bottom:1px solid #e0e0e0}.settingsContent #resultsContainer>.recentlyUsed+.itemListEntry{padding-top:8px}.resultsLineWrapper{width:100%;overflow:hidden;text-overflow:ellipsis}.prevent-select{-webkit-user-select:none;user-select:none}.item{padding:.3em 1.2em}.btn-group{width:100%;padding-top:3px}.btn-group button{background-color:#bfbfbf;border:1px solid;padding:10px 24px;cursor:pointer;float:left;width:100%}.btn-group:after{content:"";clear:both;display:table}.btn-group button:first-child{border-radius:5px 0 0 5px}.btn-group button:last-child{border-radius:0 5px 5px 0}.btn-group button:not(:last-child){border-right:none}.chipRemoveButton{margin-top:-.5em;margin-left:0!important}#searchText{font-size:12px}.searchResultsPanel{width:calc(100% - 1px);z-index:4;border-radius:5px}.chipImage{height:1.5em;margin-right:3px;margin-left:-3px}.chipBase{text-overflow:ellipsis;overflow:hidden;white-space:nowrap;width:100%}.mat-form-field .projectChipsInput{width:100%;margin:0;line-height:1.8em;height:0}.mat-form-field .projectChipsInput:focus{height:auto}.mat-form-field.mat-focused .projectChipsInput{height:auto}.projectOption{height:4em;padding-left:.5em!important}.projectOption>.mat-option-text{display:flex!important;border-bottom:none!important}.projectsChipsHolder>.mat-chip-list-wrapper{max-height:7.5em;overflow-x:hidden;overflow-y:auto;scrollbar-gutter:stable;margin:0!important;grid-gap:4px;padding:4px;display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}.projectsChipsHolder>.mat-chip-list-wrapper>.mat-chip{margin:0;background-color:#0000000a}.projectsChipsHolder>.mat-chip-list-wrapper>.mat-chip:first-of-type:last-of-type{grid-column:span 2}.projectChipsNoInput:not(.hasProjects){display:block;height:0}.projectChipsNoInput.hasProjects{display:none}.settingsCard{z-index:10;width:100%;height:100vh;display:flex!important;flex-direction:column;box-shadow:none!important}.settingsTitle{flex-shrink:0;font-size:21px;font-weight:100;font-family:Segoe UI,"Segoe UI Web (West European)",Segoe UI,-apple-system,BlinkMacSystemFont,Roboto,Helvetica Neue,sans-serif}.settingsContent{flex-grow:1;overflow:auto;font-size:12px;margin-bottom:0!important}.settingsContent .settingsHolder{display:grid;grid-template-columns:93.5% 8% 1%;padding:1em 12px .5em}.settingsContent .settingsHolder .mat-checkbox-background,.settingsContent .settingsHolder .mat-checkbox-frame{border-radius:0%!important}.settingsContent #resultsContainer{height:max-content;overflow:auto;max-height:calc(100% - 50px)}.settingsFooter{padding-bottom:.3em;padding-left:6px}.listEntryItemMainLine{font-size:13px}.listEntryItemSubLine{font-size:12px}.mat-expansion-panel-header-title{flex-direction:column;align-items:start;margin-right:0!important}mat-expansion-panel-header{padding:0!important}.mat-expansion-panel-header:hover{background-color:transparent!important}.projectOption span.mat-option-text{grid-gap:4px}@keyframes green-fade{0%{background:#4e850c}to{background:#fcfcfc}}.fade-it{animation:green-fade 1s ease-in-out 0s}.customSize{font-size:22px!important}span.material-symbols-rounded.red:hover{color:#ff2727;font-weight:900}span.material-symbols-rounded.green:hover{color:#13e813;font-weight:900}span.material-symbols-rounded.red,span.material-symbols-rounded.green{border-radius:16px;color:#a9a9a9;font-weight:900}.iconsDiv{display:flex;align-items:center}.left-right-align{display:flex;justify-content:space-between;margin-bottom:16px}.mat-menu-item{font:400 12px/20px Arial,Verdana,Helvetica,sans-serif;height:100%;padding-top:10px;padding-bottom:10px}\n'],encapsulation:2}),n})();const mre=["searchTextInput"],gre=["projectSelectorPanel"],_re=["destinationProjectsInputRO"],tO=["destinationProjectsInput"],nO=["searchProjectPhasesInput"],vre=["allProjectsButton"];function yre(n,t){if(1&n&&(g(0,"mat-option",24),j(1),_()),2&n){const e=t.$implicit,i=C(3);v("value",e),f(1),zr(" ",i.datasource.getDisplayedType(e.type),": ",e.title," ")}}function bre(n,t){if(1&n){const e=Ie();g(0,"mat-form-field",21)(1,"mat-label"),j(2),_(),g(3,"mat-select",22),W("valueChange",function(r){return J(e),Z(C(2).selectedDB=r)})("selectionChange",function(){return J(e),Z(C(2).changeSelectedDB())}),H(4,yre,2,3,"mat-option",23),_()()}if(2&n){const e=C(2);f(2),ve(e.globals.languageConfLocal.SelectDatabase),f(1),v("value",e.selectedDB),f(1),v("ngForOf",e.entriesArray)}}function Cre(n,t){if(1&n&&(g(0,"div",25),j(1),_()),2&n){const e=C(2);f(1),qe(" ",e.globals.languageConfLocal.recentlyUsed," ")}}function wre(n,t){1&n&&be(0,"img",32),2&n&&v("src",C().$implicit.imageBase64,En)}function Ere(n,t){if(1&n&&be(0,"img",33),2&n){const e=C().$implicit;v("src",C(2).datasource.getImageSrc(e.image),En)}}function Dre(n,t){if(1&n){const e=Ie();g(0,"div",26),W("click",function(r){return J(e),Z(C(2).dblClickedElement(r))}),H(1,wre,1,1,"img",27),H(2,Ere,1,1,"img",28),g(3,"div",29)(4,"span",30),j(5),_(),be(6,"br"),g(7,"span",31),j(8),_(),be(9,"br"),g(10,"span",31),j(11),_(),be(12,"br"),_()()}if(2&n){const e=t.$implicit,i=t.index,r=C(2);_t("title",e.lineOne),rt("data-order",i+1)("data-fdme",e.fdMe)("data-displayname",r.htmlHelp.parseHtmlEntities(e.lineOne))("data-image",e.image),f(1),v("ngIf",e.imageBase64),f(1),v("ngIf",!e.imageBase64),f(2),_t("title",r.htmlHelp.parseHtmlEntities(e.lineOne)),f(1),ve(r.htmlHelp.parseHtmlEntities(e.lineOne)),f(2),_t("title",r.htmlHelp.parseHtmlEntities(e.lineTwo)),f(1),ve(r.htmlHelp.parseHtmlEntities(e.lineTwo)),f(2),_t("title",r.htmlHelp.parseHtmlEntities(e.lineThree)),f(1),ve(r.htmlHelp.parseHtmlEntities(e.lineThree))}}function Sre(n,t){if(1&n){const e=Ie();g(0,"mat-chip",34),W("removed",function(){const o=J(e).$implicit;return Z(C(2).removeDocument(o))}),be(1,"img",35),g(2,"div",36),j(3),_(),g(4,"button",37)(5,"span",38),j(6,"cancel"),_()()()}if(2&n){const e=t.$implicit,i=C(2);v("removable",!0)("title",e.name),rt("data-pointer",e.pointer),f(1),v("src",i.datasource.getImageSrc(e.image),En),f(2),ve(e.name)}}function Are(n,t){if(1&n){const e=Ie();g(0,"div")(1,"mat-card",1,2)(3,"mat-card-title",3),j(4),g(5,"div",4)(6,"span",5),W("click",function(){return J(e),Z(C().cancelSelection())}),j(7,"cancel"),_()()(),g(8,"mat-card-content",6)(9,"mat-form-field",7)(10,"mat-label",8),j(11),_(),g(12,"input",9,10),W("input",function(){J(e);const r=Yt(13);return Z(C().textChanged(r.value))})("ngModelChange",function(r){return J(e),Z(C().textInSearchInput=r)}),_()(),H(14,bre,5,3,"mat-form-field",11),be(15,"br"),g(16,"div",12),H(17,Cre,2,1,"div",13),H(18,Dre,13,13,"div",14),_()(),g(19,"mat-card-footer",15),be(20,"mat-divider",16),g(21,"mat-chip-list",17,18),H(23,Sre,7,5,"mat-chip",19),be(24,"input",20),_()()()()}if(2&n){const e=Yt(22),i=C();f(4),qe(" ","ba"===i.globals.system?i.globals.languageConfLocal.doucmentSelectionBA:i.globals.languageConfLocal.doucmentSelection," "),f(2),v("title",i.globals.languageConfLocal.Cancel),f(5),qe(" ","ba"===i.globals.system?i.globals.languageConfLocal.searchDocumentsInBACRM:i.globals.languageConfLocal.searchDocumentsInCRM," "),f(1),v("ngModel",i.textInSearchInput),f(2),v("ngIf",null!=i.entriesArray&&i.entriesArray.length>0&&!i.isAppointment),f(3),v("ngIf",i.showRecentlyUsed),f(1),v("ngForOf",i.searchResultsArray),f(5),v("ngForOf",i.documents),f(1),v("matChipInputFor",e)}}let Tre=(()=>{class n{constructor(e,i,r,o,s,a,l,c){this.globals=e,this.ref=i,this.translate=r,this.datasource=o,this.zone=s,this.lsm=a,this.dps=l,this.htmlHelp=c,this.projectSelectorPanelVisible=!1,this.searchResultsArray=[],this.projectPhaseResultArray=[],this.projectPhaseSearchResultArray=[],this.projectPhaseFilter="",this.participatedResultsArray=[],this.initialDBSelection=!1,this.entriesArray=[],this.searchValue="",this.showRecentlyUsed=!0,this.destinationDirectProjectsCount=0,this.destinationProjects=new Co(""),this.projectPhasesControl=new Co(""),this.participatingProjectsFilter="",this.addressFetched=!1,this.addresses=[],this.filteredAdditionalValues={},this.docImage={background:"transparent no-repeat url(assets/images/icons_business_mail.png)"},this.attachRdy=!1,this.attachDelete=!1}ngOnInit(){this.globals.onActiveWindowChange().subscribe(e=>{"documentationTargetSelector"===e.newWindow&&"main"===e.currentWindow&&this.initializeTheView()})}initializeTheView(){this.databases=[],this.searchValue="",this.searchTextInput.nativeElement.value="",this.searchResultsArray=[],this.documents=[],this.textInSearchInput="","gi"===this.globals.system&&(this.showRecentlyUsed=!1),this.datasource.getDocumentDBs().subscribe(e=>{this.entriesArray=e,null!==this.entriesArray?(this.selectedDB=e[0],this.changeSelectedDB()):(this.selectedDB="",this.getEntries(),setTimeout(()=>{this.searchTextInput.nativeElement.focus()},0))})}confirmSelection(){if(this.globals.addressActivities.documentsAsDestinations=this.documents,this.globals.activeWindow="main",this.lastSelectedDocument){const e=this.lastSelectedDocument.name,i=this.lastSelectedDocument.pointer,r=this.datasource.getImageSrc(this.lastSelectedDocument.image);this.globals.addressActivities.destinationActivitySelectorClicked({checked:!0,source:{name:i}},e,r)}this.globals.showSelectedDocuments=!1}cancelSelection(){this.globals.addressActivities.documentsAsDestinations=[],this.globals.activeWindow="main",this.globals.showSelectedDocuments=!1}removeDocument(e){this.documents.splice(this.documents.findIndex(i=>i.pointer===e.pointer),1),this.lastSelectedDocument=!1}blinkChip(e){document.querySelector('mat-chip[data-pointer="'+e+'"]')?.classList.add("fade-it")}changeSelectedDB(){this.textInSearchInput="",this.getEntries(),setTimeout(()=>{this.searchTextInput.nativeElement.focus()},0)}textChanged(e){this.searchValue=e,this.getEntries()}getEntries(){console.log("selectedDB in getEntries is: ",this.selectedDB),"ba"===this.globals.system&&(this.showRecentlyUsed=!this.textInSearchInput||0===this.textInSearchInput?.length),this.datasource.searchDocuments(this.selectedDB,void 0,this.textInSearchInput).subscribe({next:e=>{this.searchResultsArray=this.datasource.handleSearchResult(e,this.selectedDB.type)}})}dblClickedElement(e){this.documents=[];let i=e.currentTarget;if(!this.documents.some(r=>r.pointer===i.dataset.fdme)){let r=new Sa;r.name=i.dataset.displayname,r.pointer=i.dataset.fdme,r.image=i.dataset.image,this.datasource.addToRecentlyUsed(i.dataset.fdme),this.documents.push(r),this.lastSelectedDocument=r,setTimeout(()=>{const o=document.querySelector(".allDocumentFooter .mat-chip-list-wrapper");o&&(o.scrollTop=o.scrollHeight),this.blinkChip(r.pointer)},10)}this.confirmSelection()}}return n.\u0275fac=function(e){return new(e||n)(p(ot),p(St),p(Ut),p(Bi),p(et),p(Mi),p(is),p(Vs))},n.\u0275cmp=Ue({type:n,selectors:[["app-document-selector-page"]],viewQuery:function(e,i){if(1&e&&(De(mre,5),De(gre,5),De(_re,5),De(tO,5),De(nO,5),De(vre,5),De(tO,5,ro),De(nO,5,ro)),2&e){let r;ce(r=ue())&&(i.searchTextInput=r.first),ce(r=ue())&&(i.projectSelectorPanel=r.first),ce(r=ue())&&(i.destinationProjectsInputRO=r.first),ce(r=ue())&&(i.destinationProjectsInput=r.first),ce(r=ue())&&(i.searchProjectPhasesInput=r.first),ce(r=ue())&&(i.allProjectsButton=r.first),ce(r=ue())&&(i.projectsAutocompleteTrigger=r.first),ce(r=ue())&&(i.phasesAutocompleteTrigger=r.first)}},decls:1,vars:1,consts:[[4,"ngIf"],[1,"allDocumentsCard"],["projectSelectorPanel",""],[1,"left-right-align"],[1,"iconsDiv"],[1,"material-symbols-rounded","red","customSize",2,"cursor","pointer",3,"title","click"],[1,"allDocumentsContent"],[2,"width","100%"],[2,"font-size","small"],["matInput","","type","text",3,"ngModel","input","ngModelChange"],["searchTextInput",""],["class","databaseSearchSelect","appearance","standard",4,"ngIf"],["id","resultsContainer",1,"prevent-select"],["class","recentlyUsed",4,"ngIf"],["class","itemListEntry resultListEntry",3,"title","click",4,"ngFor","ngForOf"],[1,"allDocumentFooter"],[2,"padding-bottom","2px"],[1,"projectsChipsHolder"],["chipsInCard",""],[3,"removable","title","removed",4,"ngFor","ngForOf"],["matInput","","readonly","",2,"width","100%","height","0px","margin","0px",3,"matChipInputFor"],["appearance","standard",1,"databaseSearchSelect"],[3,"value","valueChange","selectionChange"],[3,"value",4,"ngFor","ngForOf"],[3,"value"],[1,"recentlyUsed"],[1,"itemListEntry","resultListEntry",3,"title","click"],["class","normalImage",3,"src",4,"ngIf"],[3,"src",4,"ngIf"],[1,"resultsLineWrapper"],[1,"listEntryItemMainLine",3,"title"],[1,"listEntryItemSubLine",3,"title"],[1,"normalImage",3,"src"],[3,"src"],[3,"removable","title","removed"],[1,"chipImage",3,"src"],[1,"chipBase"],["matChipRemove","",1,"chipRemoveButton"],[1,"material-symbols-rounded"]],template:function(e,i){1&e&&H(0,Are,25,9,"div",0),2&e&&v("ngIf",i.globals.infoShower)},dependencies:[zn,pn,Ar,Kr,wo,Bf,Ir,Pi,Ko,cr,Mr,_h,mh,gh,hg,Cl,Ks,wl,bl],styles:['.itemListEntry{line-height:1.3!important;white-space:nowrap;display:flex;padding:4px 0;grid-gap:4px}.itemListEntry>div,.itemListEntry a,.itemListEntry a>div{display:block;overflow:hidden}.itemListEntry>div>[class^=listEntryItem],.itemListEntry a>[class^=listEntryItem],.itemListEntry a>div>[class^=listEntryItem]{overflow:hidden;text-overflow:ellipsis;max-width:100%}.itemListEntry:not(:last-child){border-bottom:1px solid #e0e0e0}.itemListEntry:hover:not([data-selected=true]){background-color:#e0e0e0;cursor:pointer}.itemListEntry:hover:not([data-selected=true]) .resultsLineWrapper{background-color:#e0e0e0}[data-selected=true].itemListEntry,[data-selected=true].itemListEntry .resultsLineWrapper{background-color:#d3d3d3}.itemListEntry img{height:24px;width:24px;box-sizing:content-box;padding:1px 0 0!important}.itemListEntry .resultsLineWrapper{overflow:hidden;text-overflow:ellipsis}.allDocumentsContent #resultsContainer{height:50vh;overflow-y:auto}.allDocumentsContent #resultsContainer>.recentlyUsed{width:100%;text-align:center;color:#a9a9a9;padding-bottom:8px;border-bottom:1px solid #e0e0e0}.allDocumentsContent #resultsContainer>.recentlyUsed+.itemListEntry{padding-top:8px}.resultsLineWrapper{width:100%;overflow:hidden;text-overflow:ellipsis}.prevent-select{-webkit-user-select:none;user-select:none}.item{padding:.3em 1.2em}.btn-group{width:100%;padding-top:3px}.btn-group button{background-color:#bfbfbf;border:1px solid;padding:10px 24px;cursor:pointer;float:left;width:100%}.btn-group:after{content:"";clear:both;display:table}.btn-group button:first-child{border-radius:5px 0 0 5px}.btn-group button:last-child{border-radius:0 5px 5px 0}.btn-group button:not(:last-child){border-right:none}.chipRemoveButton{margin-top:-.5em;margin-left:0!important}#searchText{font-size:12px}.searchResultsPanel{width:calc(100% - 1px);z-index:4;border-radius:5px}.chipImage{height:1.5em;margin-right:3px;margin-left:-3px}.chipBase{text-overflow:ellipsis;overflow:hidden;white-space:nowrap;width:100%}.mat-form-field .projectChipsInput{width:100%;margin:0;line-height:1.8em;height:0}.mat-form-field .projectChipsInput:focus{height:auto}.mat-form-field.mat-focused .projectChipsInput{height:auto}.allProjects{cursor:pointer;position:absolute;right:-.1em;top:0em}.allProjects.hasProjects{top:-.7em}.projectsChipsHolder>.mat-chip-list-wrapper{max-height:7.5em;overflow-x:hidden;overflow-y:auto;scrollbar-gutter:stable;margin:0!important;grid-gap:4px;padding:4px;display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}.projectsChipsHolder>.mat-chip-list-wrapper>.mat-chip{margin:0;background-color:#0000000a}.projectsChipsHolder>.mat-chip-list-wrapper>.mat-chip:first-of-type:last-of-type{grid-column:span 2}.projectChipsNoInput:not(.hasProjects){display:block;height:0}.projectChipsNoInput.hasProjects{display:none}.allDocumentsCard{z-index:10;width:100%;height:100vh;display:flex!important;flex-direction:column;box-shadow:none!important}.allDocumentsContent{flex-grow:1;overflow:auto;font-size:12px;margin-bottom:0!important}.allDocumentsContent #resultsContainer{height:max-content;overflow:auto;max-height:calc(100% - 50px)}.allDocumentFooter{padding-bottom:.3em;padding-left:6px}.listEntryItemMainLine{font-size:13px}.listEntryItemSubLine{font-size:12px}.mat-expansion-panel-header-title{flex-direction:column;align-items:start;margin-right:0!important}mat-expansion-panel-header{padding:0!important}.mat-expansion-panel-header:hover{background-color:transparent!important}@keyframes green-fade{0%{background:#4e850c}to{background:#fcfcfc}}.fade-it{animation:green-fade 1s ease-in-out 0s}.customSize{font-size:22px!important}span.material-symbols-rounded.red:hover{color:#ff2727;font-weight:900}span.material-symbols-rounded.green:hover{color:#13e813;font-weight:900}span.material-symbols-rounded.red,span.material-symbols-rounded.green{border-radius:16px;color:#a9a9a9;font-weight:900}.iconsDiv{display:flex}.left-right-align{display:flex;justify-content:space-between}\n'],encapsulation:2}),n})();const xre=["searchTextInput"],Ire=["projectSelectorPanel"],Mre=["destinationProjectsInputRO"],iO=["destinationProjectsInput"],rO=["searchProjectPhasesInput"],kre=["allProjectsButton"];function Rre(n,t){if(1&n&&(g(0,"mat-option",24),j(1),_()),2&n){const e=t.$implicit,i=C(3);v("value",e),f(1),zr(" ",i.datasource.getDisplayedType(e.type),": ",e.title," ")}}function Ore(n,t){if(1&n){const e=Ie();g(0,"mat-form-field",21)(1,"mat-label"),j(2),_(),g(3,"mat-select",22),W("valueChange",function(r){return J(e),Z(C(2).selectedDB=r)})("selectionChange",function(){return J(e),Z(C(2).changeSelectedDB())}),H(4,Rre,2,3,"mat-option",23),_()()}if(2&n){const e=C(2);f(2),ve(e.globals.languageConfLocal.SelectDatabase),f(1),v("value",e.selectedDB),f(1),v("ngForOf",e.entriesArray)}}function Pre(n,t){if(1&n&&(g(0,"div",25),j(1),_()),2&n){const e=C(2);f(1),qe(" ",e.globals.languageConfLocal.recentlyUsed," ")}}function Lre(n,t){1&n&&be(0,"img",32),2&n&&v("src",C().$implicit.imageBase64,En)}function Nre(n,t){if(1&n&&be(0,"img",33),2&n){const e=C().$implicit;v("src",C(2).datasource.getImageSrc(e.image),En)}}function Fre(n,t){if(1&n){const e=Ie();g(0,"div",26),W("click",function(r){return J(e),Z(C(2).dblClickedElement(r))}),H(1,Lre,1,1,"img",27),H(2,Nre,1,1,"img",28),g(3,"div",29)(4,"span",30),j(5),_(),be(6,"br"),g(7,"span",31),j(8),_(),be(9,"br"),g(10,"span",31),j(11),_(),be(12,"br"),_()()}if(2&n){const e=t.$implicit,i=t.index,r=C(2);_t("title",e.lineOne),rt("data-order",i+1)("data-fdme",e.fdMe)("data-displayname",r.htmlHelp.parseHtmlEntities(e.lineOne))("data-image",e.image),f(1),v("ngIf",e.imageBase64),f(1),v("ngIf",!e.imageBase64),f(2),_t("title",r.htmlHelp.parseHtmlEntities(e.lineOne)),f(1),ve(r.htmlHelp.parseHtmlEntities(e.lineOne)),f(2),_t("title",r.htmlHelp.parseHtmlEntities(e.lineTwo)),f(1),ve(r.htmlHelp.parseHtmlEntities(e.lineTwo)),f(2),_t("title",r.htmlHelp.parseHtmlEntities(e.lineThree)),f(1),ve(r.htmlHelp.parseHtmlEntities(e.lineThree))}}function Bre(n,t){if(1&n&&(g(0,"mat-chip",34),be(1,"img",35),g(2,"div",36),j(3),_(),g(4,"button",37)(5,"span",38),j(6,"cancel"),_()()()),2&n){const e=t.$implicit,i=C(2);v("removable",!0)("title",e.name),rt("data-pointer",e.pointer),f(1),v("src",i.datasource.getImageSrc(e.image),En),f(2),ve(e.name)}}function jre(n,t){if(1&n){const e=Ie();g(0,"div")(1,"mat-card",1,2)(3,"mat-card-title",3),j(4),g(5,"div",4)(6,"span",5),W("click",function(){return J(e),Z(C().cancelSelection())}),j(7,"cancel"),_()()(),g(8,"mat-card-content",6)(9,"mat-form-field",7)(10,"mat-label",8),j(11),_(),g(12,"input",9,10),W("input",function(){J(e);const r=Yt(13);return Z(C().textChanged(r.value))})("ngModelChange",function(r){return J(e),Z(C().textInSearchInput=r)}),_()(),H(14,Ore,5,3,"mat-form-field",11),be(15,"br"),g(16,"div",12),H(17,Pre,2,1,"div",13),H(18,Fre,13,13,"div",14),_()(),g(19,"mat-card-footer",15),be(20,"mat-divider",16),g(21,"mat-chip-list",17,18),H(23,Bre,7,5,"mat-chip",19),be(24,"input",20),_()()()()}if(2&n){const e=Yt(22),i=C();f(4),qe(" ",i.globals.languageConfLocal.selectCompany," "),f(2),v("title",i.globals.languageConfLocal.Cancel),f(5),qe(" ",i.globals.languageConfLocal.searchCompanyInCRM," "),f(1),v("ngModel",i.textInSearchInput),f(2),v("ngIf",null!=i.entriesArray&&i.entriesArray.length>0&&!i.isAppointment),f(3),v("ngIf",i.showRecentlyUsed),f(1),v("ngForOf",i.searchResultsArray),f(5),v("ngForOf",i.documents),f(1),v("matChipInputFor",e)}}let Hre=(()=>{class n{constructor(e,i,r,o,s,a,l,c){this.globals=e,this.ref=i,this.translate=r,this.datasource=o,this.zone=s,this.lsm=a,this.dps=l,this.htmlHelp=c,this.projectSelectorPanelVisible=!1,this.searchResultsArray=[],this.projectPhaseResultArray=[],this.projectPhaseSearchResultArray=[],this.projectPhaseFilter="",this.participatedResultsArray=[],this.initialDBSelection=!1,this.entriesArray=[],this.searchValue="",this.showRecentlyUsed=!0,this.destinationDirectProjectsCount=0,this.destinationProjects=new Co(""),this.projectPhasesControl=new Co(""),this.participatingProjectsFilter="",this.addressFetched=!1,this.addresses=[],this.filteredAdditionalValues={},this.docImage={background:"transparent no-repeat url(assets/images/icons_business_mail.png)"},this.attachRdy=!1,this.attachDelete=!1}ngOnInit(){this.globals.onActiveWindowChange().subscribe(e=>{"companyPage"===e.newWindow&&"contactCreation"===e.currentWindow&&this.initializeTheView()})}initializeTheView(){this.databases=[],this.searchValue="",this.searchTextInput.nativeElement.value="",this.searchResultsArray=[],this.documents=[],this.textInSearchInput="","gi"===this.globals.system&&(this.showRecentlyUsed=!1),this.datasource.getCompanies().subscribe(e=>{this.entriesArray=e,null!==this.entriesArray?(this.selectedDB=e[0],this.changeSelectedDB()):(this.selectedDB="",this.getEntries()),setTimeout(()=>{this.searchTextInput.nativeElement.focus()},0)})}confirmSelection(){this.globals.activeWindow="contactCreation"}cancelSelection(){this.globals.activeWindow="contactCreation"}changeSelectedDB(){this.textInSearchInput="",this.getEntries(),setTimeout(()=>{this.searchTextInput.nativeElement.focus()},0)}textChanged(e){this.searchValue=e,this.getEntries()}getEntries(){console.log("selectedDB in getEntries is: ",this.selectedDB),"ba"===this.globals.system&&(this.showRecentlyUsed=!this.textInSearchInput||0===this.textInSearchInput?.length),this.datasource.searchDocuments(this.selectedDB,void 0,this.textInSearchInput).subscribe({next:e=>{this.searchResultsArray=this.datasource.handleSearchResult(e,this.selectedDB.type)}}),console.log("searchResultsArray is: ",this.searchResultsArray)}dblClickedElement(e){let i=e.currentTarget;if(!this.documents.some(r=>r.pointer===i.dataset.fdme)){let r=new Sa;r.name=i.dataset.displayname,r.pointer=i.dataset.fdme,r.image=i.dataset.image,this.datasource.addToRecentlyUsed(i.dataset.fdme),setTimeout(()=>{const o=document.querySelector(".allDocumentFooter .mat-chip-list-wrapper");o&&(o.scrollTop=o.scrollHeight)},10),this.globals.contactCreator.selectedCompany=r.name,this.globals.contactCreator.selectedCompanyData=r}this.confirmSelection()}}return n.\u0275fac=function(e){return new(e||n)(p(ot),p(St),p(Ut),p(Bi),p(et),p(Mi),p(is),p(Vs))},n.\u0275cmp=Ue({type:n,selectors:[["app-company-selector-page"]],viewQuery:function(e,i){if(1&e&&(De(xre,5),De(Ire,5),De(Mre,5),De(iO,5),De(rO,5),De(kre,5),De(iO,5,ro),De(rO,5,ro)),2&e){let r;ce(r=ue())&&(i.searchTextInput=r.first),ce(r=ue())&&(i.projectSelectorPanel=r.first),ce(r=ue())&&(i.destinationProjectsInputRO=r.first),ce(r=ue())&&(i.destinationProjectsInput=r.first),ce(r=ue())&&(i.searchProjectPhasesInput=r.first),ce(r=ue())&&(i.allProjectsButton=r.first),ce(r=ue())&&(i.projectsAutocompleteTrigger=r.first),ce(r=ue())&&(i.phasesAutocompleteTrigger=r.first)}},decls:1,vars:1,consts:[[4,"ngIf"],[1,"allCompaniesCard"],["projectSelectorPanel",""],[1,"left-right-align"],[1,"iconsDiv"],[1,"material-symbols-rounded","red","customSize",2,"cursor","pointer",3,"title","click"],[1,"allCompaniesContent"],[2,"width","100%"],[2,"font-size","small"],["matInput","","type","text",3,"ngModel","input","ngModelChange"],["searchTextInput",""],["class","databaseSearchSelect","appearance","standard",4,"ngIf"],["id","resultsContainer",1,"prevent-select"],["class","recentlyUsed",4,"ngIf"],["class","itemListEntry resultListEntry",3,"title","click",4,"ngFor","ngForOf"],[1,"allDocumentFooter"],[2,"padding-bottom","2px"],[1,"projectsChipsHolder"],["chipsInCard",""],[3,"removable","title",4,"ngFor","ngForOf"],["matInput","","readonly","",2,"width","100%","height","0px","margin","0px",3,"matChipInputFor"],["appearance","standard",1,"databaseSearchSelect"],[3,"value","valueChange","selectionChange"],[3,"value",4,"ngFor","ngForOf"],[3,"value"],[1,"recentlyUsed"],[1,"itemListEntry","resultListEntry",3,"title","click"],["class","normalImage",3,"src",4,"ngIf"],[3,"src",4,"ngIf"],[1,"resultsLineWrapper"],[1,"listEntryItemMainLine",3,"title"],[1,"listEntryItemSubLine",3,"title"],[1,"normalImage",3,"src"],[3,"src"],[3,"removable","title"],[1,"chipImage",3,"src"],[1,"chipBase"],["matChipRemove","",1,"chipRemoveButton"],[1,"material-symbols-rounded"]],template:function(e,i){1&e&&H(0,jre,25,9,"div",0),2&e&&v("ngIf",i.globals.infoShower)},dependencies:[zn,pn,Ar,Kr,wo,Bf,Ir,Pi,Ko,cr,Mr,_h,mh,gh,hg,Cl,Ks,wl,bl],styles:['.itemListEntry[_ngcontent-%COMP%]{line-height:1.3!important;white-space:nowrap;display:flex;padding:4px 0;grid-gap:4px}.itemListEntry[_ngcontent-%COMP%] > div[_ngcontent-%COMP%], .itemListEntry[_ngcontent-%COMP%] a[_ngcontent-%COMP%], .itemListEntry[_ngcontent-%COMP%] a[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{display:block;overflow:hidden}.itemListEntry[_ngcontent-%COMP%] > div[_ngcontent-%COMP%] > [class^=listEntryItem][_ngcontent-%COMP%], .itemListEntry[_ngcontent-%COMP%] a[_ngcontent-%COMP%] > [class^=listEntryItem][_ngcontent-%COMP%], .itemListEntry[_ngcontent-%COMP%] a[_ngcontent-%COMP%] > div[_ngcontent-%COMP%] > [class^=listEntryItem][_ngcontent-%COMP%]{overflow:hidden;text-overflow:ellipsis;max-width:100%}.itemListEntry[_ngcontent-%COMP%]:not(:last-child){border-bottom:1px solid #e0e0e0}.itemListEntry[_ngcontent-%COMP%]:hover:not([data-selected=true]){background-color:#e0e0e0;cursor:pointer}.itemListEntry[_ngcontent-%COMP%]:hover:not([data-selected=true]) .resultsLineWrapper[_ngcontent-%COMP%]{background-color:#e0e0e0}[data-selected=true].itemListEntry[_ngcontent-%COMP%], [data-selected=true].itemListEntry[_ngcontent-%COMP%] .resultsLineWrapper[_ngcontent-%COMP%]{background-color:#d3d3d3}.itemListEntry[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{height:24px;width:24px;box-sizing:content-box;padding:1px 0 0!important}.itemListEntry[_ngcontent-%COMP%] .resultsLineWrapper[_ngcontent-%COMP%]{overflow:hidden;text-overflow:ellipsis}.allCompaniesContent[_ngcontent-%COMP%] #resultsContainer[_ngcontent-%COMP%]{height:50vh;overflow-y:auto}.allCompaniesContent[_ngcontent-%COMP%] #resultsContainer[_ngcontent-%COMP%] > .recentlyUsed[_ngcontent-%COMP%]{width:100%;text-align:center;color:#a9a9a9;padding-bottom:8px;border-bottom:1px solid #e0e0e0}.allCompaniesContent[_ngcontent-%COMP%] #resultsContainer[_ngcontent-%COMP%] > .recentlyUsed[_ngcontent-%COMP%] + .itemListEntry[_ngcontent-%COMP%]{padding-top:8px}.resultsLineWrapper[_ngcontent-%COMP%]{width:100%;overflow:hidden;text-overflow:ellipsis}.prevent-select[_ngcontent-%COMP%]{-webkit-user-select:none;user-select:none}.item[_ngcontent-%COMP%]{padding:.3em 1.2em}.btn-group[_ngcontent-%COMP%]{width:100%;padding-top:3px}.btn-group[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{background-color:#bfbfbf;border:1px solid;padding:10px 24px;cursor:pointer;float:left;width:100%}.btn-group[_ngcontent-%COMP%]:after{content:"";clear:both;display:table}.btn-group[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:first-child{border-radius:5px 0 0 5px}.btn-group[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child{border-radius:0 5px 5px 0}.btn-group[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:not(:last-child){border-right:none}.chipRemoveButton[_ngcontent-%COMP%]{margin-top:-.5em;margin-left:0!important}#searchText[_ngcontent-%COMP%]{font-size:12px}.searchResultsPanel[_ngcontent-%COMP%]{width:calc(100% - 1px);z-index:4;border-radius:5px}.chipImage[_ngcontent-%COMP%]{height:1.5em;margin-right:3px;margin-left:-3px}.chipBase[_ngcontent-%COMP%]{text-overflow:ellipsis;overflow:hidden;white-space:nowrap;width:100%}.mat-form-field[_ngcontent-%COMP%] .projectChipsInput[_ngcontent-%COMP%]{width:100%;margin:0;line-height:1.8em;height:0}.mat-form-field[_ngcontent-%COMP%] .projectChipsInput[_ngcontent-%COMP%]:focus{height:auto}.mat-form-field.mat-focused[_ngcontent-%COMP%] .projectChipsInput[_ngcontent-%COMP%]{height:auto}.allProjects[_ngcontent-%COMP%]{cursor:pointer;position:absolute;right:-.1em;top:0em}.allProjects.hasProjects[_ngcontent-%COMP%]{top:-.7em}.projectsChipsHolder[_ngcontent-%COMP%] > .mat-chip-list-wrapper[_ngcontent-%COMP%]{max-height:7.5em;overflow-x:hidden;overflow-y:auto;scrollbar-gutter:stable;margin:0!important;grid-gap:4px;padding:4px;display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}.projectsChipsHolder[_ngcontent-%COMP%] > .mat-chip-list-wrapper[_ngcontent-%COMP%] > .mat-chip[_ngcontent-%COMP%]{margin:0;background-color:#0000000a}.projectsChipsHolder[_ngcontent-%COMP%] > .mat-chip-list-wrapper[_ngcontent-%COMP%] > .mat-chip[_ngcontent-%COMP%]:first-of-type:last-of-type{grid-column:span 2}.projectChipsNoInput[_ngcontent-%COMP%]:not(.hasProjects){display:block;height:0}.projectChipsNoInput.hasProjects[_ngcontent-%COMP%]{display:none}.allCompaniesCard[_ngcontent-%COMP%]{z-index:10;width:100%;height:100vh;display:flex!important;flex-direction:column;box-shadow:none!important}.allCompaniesContent[_ngcontent-%COMP%]{flex-grow:1;overflow:auto;font-size:12px;margin-bottom:0!important}.allCompaniesContent[_ngcontent-%COMP%] #resultsContainer[_ngcontent-%COMP%]{height:max-content;overflow:auto;max-height:calc(100% - 50px)}.allDocumentFooter[_ngcontent-%COMP%]{padding-bottom:.3em;padding-left:6px}.listEntryItemMainLine[_ngcontent-%COMP%]{font-size:13px}.listEntryItemSubLine[_ngcontent-%COMP%]{font-size:12px}.mat-expansion-panel-header-title[_ngcontent-%COMP%]{flex-direction:column;align-items:start;margin-right:0!important}mat-expansion-panel-header[_ngcontent-%COMP%]{padding:0!important}.mat-expansion-panel-header[_ngcontent-%COMP%]:hover{background-color:transparent!important}@keyframes green-fade{0%{background:#4e850c}to{background:#fcfcfc}}.fade-it[_ngcontent-%COMP%]{animation:green-fade 1s ease-in-out 0s}.customSize[_ngcontent-%COMP%]{font-size:22px!important}span.material-symbols-rounded.red[_ngcontent-%COMP%]:hover{color:#ff2727;font-weight:900}span.material-symbols-rounded.green[_ngcontent-%COMP%]:hover{color:#13e813;font-weight:900}span.material-symbols-rounded.red[_ngcontent-%COMP%]{border-radius:16px;color:#e60000;font-weight:900}span.material-symbols-rounded.green[_ngcontent-%COMP%]{border-radius:16px;color:#04d804;font-weight:900}.iconsDiv[_ngcontent-%COMP%]{display:flex}.left-right-align[_ngcontent-%COMP%]{display:flex;justify-content:space-between}']}),n})(),oO=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=ht({type:n,bootstrap:[HC]}),n.\u0275inj=dt({providers:[ot,pC,k1,In,nm,{provide:Rc,useValue:{}},{provide:Hy,useClass:rU,multi:!0},nu],imports:[QT,jV,HV,iU,$X,Wq,bJ,k1,q9,Hf,Y9,Ez,ha,g$,R1,zte,mk,Fee,Zee,rte,OJ,lte,bte,Mte,P1,Dee,dee,mk.forRoot(new UI({auth:{clientId:"82cc362f-b9da-43a3-b9f8-3008e6d47d9e"},cache:{cacheLocation:"localStorage",storeAuthStateInCookie:!0}}),{interactionType:$e.Redirect,authRequest:{scopes:["user.read"]}},{interactionType:$e.Redirect,protectedResourceMap:new Map}),bU.forRoot({defaultLanguage:"en",loader:{provide:ld,useClass:iee}})]}),n})();(function Mw(n,t,e){const i=n.\u0275cmp;i.directiveDefs=()=>("function"==typeof t?t():t).map(kw),i.pipeDefs=()=>("function"==typeof e?e():e).map(zi)})(HC,function(){return[pn,ra,tl,$s,GJ,KJ,nee,Kte,Yte,hne,zie,Yne,qie,cie,uie,Sie,cre,Zie,Gie,fre,Tre,Hre]},[]),JR.production&&(function D4(){ZA=!1}(),window.console.log=()=>{});try{Office.initialize=()=>{WT().bootstrapModule(oO)}}catch{WT().bootstrapModule(oO).catch(t=>console.error(t))}},4999:Le=>{"use strict";var w=function(z){return function G(B){return!!B&&"object"==typeof B}(z)&&!function le(B){var z=Object.prototype.toString.call(B);return"[object RegExp]"===z||"[object Date]"===z||function Q(B){return B.$$typeof===Y}(B)}(z)},Y="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function F(B,z){return!1!==z.clone&&z.isMergeableObject(B)?S(function q(B){return Array.isArray(B)?[]:{}}(B),B,z):B}function I(B,z,re){return B.concat(z).map(function(we){return F(we,re)})}function E(B){return Object.keys(B).concat(function T(B){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(B).filter(function(z){return B.propertyIsEnumerable(z)}):[]}(B))}function P(B,z){try{return z in B}catch{return!1}}function S(B,z,re){(re=re||{}).arrayMerge=re.arrayMerge||I,re.isMergeableObject=re.isMergeableObject||w,re.cloneUnlessOtherwiseSpecified=F;var we=Array.isArray(z);return we===Array.isArray(B)?we?re.arrayMerge(B,z,re):function k(B,z,re){var we={};return re.isMergeableObject(B)&&E(B).forEach(function($){we[$]=F(B[$],re)}),E(z).forEach(function($){(function D(B,z){return P(B,z)&&!(Object.hasOwnProperty.call(B,z)&&Object.propertyIsEnumerable.call(B,z))})(B,$)||(we[$]=P(B,$)&&re.isMergeableObject(z[$])?function O(B,z){if(!z.customMerge)return S;var re=z.customMerge(B);return"function"==typeof re?re:S}($,re)(B[$],z[$],re):F(z[$],re))}),we}(B,z,re):F(z,re)}S.all=function(z,re){if(!Array.isArray(z))throw new Error("first argument should be an array");return z.reduce(function(we,$){return S(we,$,re)},{})},Le.exports=S},2094:(Le,w)=>{"use strict";Object.defineProperty(w,"__esModule",{value:!0}),w.attributeNames=w.elementNames=void 0,w.elementNames=new Map([["altglyph","altGlyph"],["altglyphdef","altGlyphDef"],["altglyphitem","altGlyphItem"],["animatecolor","animateColor"],["animatemotion","animateMotion"],["animatetransform","animateTransform"],["clippath","clipPath"],["feblend","feBlend"],["fecolormatrix","feColorMatrix"],["fecomponenttransfer","feComponentTransfer"],["fecomposite","feComposite"],["feconvolvematrix","feConvolveMatrix"],["fediffuselighting","feDiffuseLighting"],["fedisplacementmap","feDisplacementMap"],["fedistantlight","feDistantLight"],["fedropshadow","feDropShadow"],["feflood","feFlood"],["fefunca","feFuncA"],["fefuncb","feFuncB"],["fefuncg","feFuncG"],["fefuncr","feFuncR"],["fegaussianblur","feGaussianBlur"],["feimage","feImage"],["femerge","feMerge"],["femergenode","feMergeNode"],["femorphology","feMorphology"],["feoffset","feOffset"],["fepointlight","fePointLight"],["fespecularlighting","feSpecularLighting"],["fespotlight","feSpotLight"],["fetile","feTile"],["feturbulence","feTurbulence"],["foreignobject","foreignObject"],["glyphref","glyphRef"],["lineargradient","linearGradient"],["radialgradient","radialGradient"],["textpath","textPath"]]),w.attributeNames=new Map([["definitionurl","definitionURL"],["attributename","attributeName"],["attributetype","attributeType"],["basefrequency","baseFrequency"],["baseprofile","baseProfile"],["calcmode","calcMode"],["clippathunits","clipPathUnits"],["diffuseconstant","diffuseConstant"],["edgemode","edgeMode"],["filterunits","filterUnits"],["glyphref","glyphRef"],["gradienttransform","gradientTransform"],["gradientunits","gradientUnits"],["kernelmatrix","kernelMatrix"],["kernelunitlength","kernelUnitLength"],["keypoints","keyPoints"],["keysplines","keySplines"],["keytimes","keyTimes"],["lengthadjust","lengthAdjust"],["limitingconeangle","limitingConeAngle"],["markerheight","markerHeight"],["markerunits","markerUnits"],["markerwidth","markerWidth"],["maskcontentunits","maskContentUnits"],["maskunits","maskUnits"],["numoctaves","numOctaves"],["pathlength","pathLength"],["patterncontentunits","patternContentUnits"],["patterntransform","patternTransform"],["patternunits","patternUnits"],["pointsatx","pointsAtX"],["pointsaty","pointsAtY"],["pointsatz","pointsAtZ"],["preservealpha","preserveAlpha"],["preserveaspectratio","preserveAspectRatio"],["primitiveunits","primitiveUnits"],["refx","refX"],["refy","refY"],["repeatcount","repeatCount"],["repeatdur","repeatDur"],["requiredextensions","requiredExtensions"],["requiredfeatures","requiredFeatures"],["specularconstant","specularConstant"],["specularexponent","specularExponent"],["spreadmethod","spreadMethod"],["startoffset","startOffset"],["stddeviation","stdDeviation"],["stitchtiles","stitchTiles"],["surfacescale","surfaceScale"],["systemlanguage","systemLanguage"],["tablevalues","tableValues"],["targetx","targetX"],["targety","targetY"],["textlength","textLength"],["viewbox","viewBox"],["viewtarget","viewTarget"],["xchannelselector","xChannelSelector"],["ychannelselector","yChannelSelector"],["zoomandpan","zoomAndPan"]])},3192:function(Le,w,G){"use strict";var le=this&&this.__assign||function(){return le=Object.assign||function($){for(var ie,b=1,K=arguments.length;b"}($);case q.Comment:return function we($){return"\x3c!--"+$.data+"--\x3e"}($);case q.CDATA:return function re($){return""+$.children[0].data+""}($);case q.Script:case q.Style:case q.Tag:return function x($,ie){var b;"foreign"===ie.xmlMode&&($.name=null!==(b=I.elementNames.get($.name))&&void 0!==b?b:$.name,$.parent&&k.has($.parent.name)&&(ie=le(le({},ie),{xmlMode:!1}))),!ie.xmlMode&&S.has($.name)&&(ie=le(le({},ie),{xmlMode:"foreign"}));var K="<"+$.name,L=function T($,ie){if($)return Object.keys($).map(function(b){var K,L,oe=null!==(K=$[b])&&void 0!==K?K:"";return"foreign"===ie.xmlMode&&(b=null!==(L=I.attributeNames.get(b))&&void 0!==L?L:b),ie.emptyAttrs||ie.xmlMode||""!==oe?b+'="'+(!1!==ie.decodeEntities?F.encodeXML(oe):oe.replace(/"/g,"""))+'"':b}).join(" ")}($.attribs,ie);return L&&(K+=" "+L),0===$.children.length&&(ie.xmlMode?!1!==ie.selfClosingTags:ie.selfClosingTags&&E.has($.name))?(ie.xmlMode||(K+=" "),K+="/>"):(K+=">",$.children.length>0&&(K+=P($.children,ie)),(ie.xmlMode||!E.has($.name))&&(K+="")),K}($,ie);case q.Text:return function z($,ie){var b=$.data||"";return!1!==ie.decodeEntities&&!(!ie.xmlMode&&$.parent&&O.has($.parent.name))&&(b=F.encodeXML(b)),b}($,ie)}}w.default=P;var k=new Set(["mi","mo","mn","ms","mtext","annotation-xml","foreignObject","desc","title"]),S=new Set(["svg","math"])},6316:(Le,w)=>{"use strict";var G,de;Object.defineProperty(w,"__esModule",{value:!0}),w.Doctype=w.CDATA=w.Tag=w.Style=w.Script=w.Comment=w.Directive=w.Text=w.Root=w.isTag=w.ElementType=void 0,(de=G=w.ElementType||(w.ElementType={})).Root="root",de.Text="text",de.Directive="directive",de.Comment="comment",de.Script="script",de.Style="style",de.Tag="tag",de.CDATA="cdata",de.Doctype="doctype",w.isTag=function le(de){return de.type===G.Tag||de.type===G.Script||de.type===G.Style},w.Root=G.Root,w.Text=G.Text,w.Directive=G.Directive,w.Comment=G.Comment,w.Script=G.Script,w.Style=G.Style,w.Tag=G.Tag,w.CDATA=G.CDATA,w.Doctype=G.Doctype},2962:function(Le,w,G){"use strict";var le=this&&this.__createBinding||(Object.create?function(O,T,E,P){void 0===P&&(P=E);var D=Object.getOwnPropertyDescriptor(T,E);(!D||("get"in D?!T.__esModule:D.writable||D.configurable))&&(D={enumerable:!0,get:function(){return T[E]}}),Object.defineProperty(O,P,D)}:function(O,T,E,P){void 0===P&&(P=E),O[P]=T[E]}),de=this&&this.__exportStar||function(O,T){for(var E in O)"default"!==E&&!Object.prototype.hasOwnProperty.call(T,E)&&le(T,O,E)};Object.defineProperty(w,"__esModule",{value:!0}),w.DomHandler=void 0;var Y=G(6316),Q=G(3416);de(G(3416),w);var q=/\s+/g,F={normalizeWhitespace:!1,withStartIndices:!1,withEndIndices:!1,xmlMode:!1},I=function(){function O(T,E,P){this.dom=[],this.root=new Q.Document(this.dom),this.done=!1,this.tagStack=[this.root],this.lastNode=null,this.parser=null,"function"==typeof E&&(P=E,E=F),"object"==typeof T&&(E=T,T=void 0),this.callback=T??null,this.options=E??F,this.elementCB=P??null}return O.prototype.onparserinit=function(T){this.parser=T},O.prototype.onreset=function(){this.dom=[],this.root=new Q.Document(this.dom),this.done=!1,this.tagStack=[this.root],this.lastNode=null,this.parser=null},O.prototype.onend=function(){this.done||(this.done=!0,this.parser=null,this.handleCallback(null))},O.prototype.onerror=function(T){this.handleCallback(T)},O.prototype.onclosetag=function(){this.lastNode=null;var T=this.tagStack.pop();this.options.withEndIndices&&(T.endIndex=this.parser.endIndex),this.elementCB&&this.elementCB(T)},O.prototype.onopentag=function(T,E){var D=new Q.Element(T,E,void 0,this.options.xmlMode?Y.ElementType.Tag:void 0);this.addNode(D),this.tagStack.push(D)},O.prototype.ontext=function(T){var E=this.options.normalizeWhitespace,P=this.lastNode;if(P&&P.type===Y.ElementType.Text)E?P.data=(P.data+T).replace(q," "):P.data+=T,this.options.withEndIndices&&(P.endIndex=this.parser.endIndex);else{E&&(T=T.replace(q," "));var D=new Q.Text(T);this.addNode(D),this.lastNode=D}},O.prototype.oncomment=function(T){if(this.lastNode&&this.lastNode.type===Y.ElementType.Comment)this.lastNode.data+=T;else{var E=new Q.Comment(T);this.addNode(E),this.lastNode=E}},O.prototype.oncommentend=function(){this.lastNode=null},O.prototype.oncdatastart=function(){var T=new Q.Text(""),E=new Q.NodeWithChildren(Y.ElementType.CDATA,[T]);this.addNode(E),T.parent=E,this.lastNode=T},O.prototype.oncdataend=function(){this.lastNode=null},O.prototype.onprocessinginstruction=function(T,E){var P=new Q.ProcessingInstruction(T,E);this.addNode(P)},O.prototype.handleCallback=function(T){if("function"==typeof this.callback)this.callback(T,this.dom);else if(T)throw T},O.prototype.addNode=function(T){var E=this.tagStack[this.tagStack.length-1],P=E.children[E.children.length-1];this.options.withStartIndices&&(T.startIndex=this.parser.startIndex),this.options.withEndIndices&&(T.endIndex=this.parser.endIndex),E.children.push(T),P&&(T.prev=P,P.next=T),T.parent=E,this.lastNode=null},O}();w.DomHandler=I,w.default=I},3416:function(Le,w,G){"use strict";var b,le=this&&this.__extends||(b=function(K,L){return(b=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(oe,_e){oe.__proto__=_e}||function(oe,_e){for(var V in _e)Object.prototype.hasOwnProperty.call(_e,V)&&(oe[V]=_e[V])})(K,L)},function(K,L){if("function"!=typeof L&&null!==L)throw new TypeError("Class extends value "+String(L)+" is not a constructor or null");function oe(){this.constructor=K}b(K,L),K.prototype=null===L?Object.create(L):(oe.prototype=L.prototype,new oe)}),de=this&&this.__assign||function(){return de=Object.assign||function(b){for(var K,L=1,oe=arguments.length;L0?this.children[this.children.length-1]:null},enumerable:!1,configurable:!0}),Object.defineProperty(K.prototype,"childNodes",{get:function(){return this.children},set:function(L){this.children=L},enumerable:!1,configurable:!0}),K}(q);w.NodeWithChildren=E;var P=function(b){function K(L){return b.call(this,Y.ElementType.Root,L)||this}return le(K,b),K}(E);w.Document=P;var D=function(b){function K(L,oe,_e,V){void 0===_e&&(_e=[]),void 0===V&&(V="script"===L?Y.ElementType.Script:"style"===L?Y.ElementType.Style:Y.ElementType.Tag);var N=b.call(this,V,_e)||this;return N.name=L,N.attribs=oe,N}return le(K,b),Object.defineProperty(K.prototype,"tagName",{get:function(){return this.name},set:function(L){this.name=L},enumerable:!1,configurable:!0}),Object.defineProperty(K.prototype,"attributes",{get:function(){var L=this;return Object.keys(this.attribs).map(function(oe){var _e,V;return{name:oe,value:L.attribs[oe],namespace:null===(_e=L["x-attribsNamespace"])||void 0===_e?void 0:_e[oe],prefix:null===(V=L["x-attribsPrefix"])||void 0===V?void 0:V[oe]}})},enumerable:!1,configurable:!0}),K}(E);function k(b){return(0,Y.isTag)(b)}function S(b){return b.type===Y.ElementType.CDATA}function x(b){return b.type===Y.ElementType.Text}function B(b){return b.type===Y.ElementType.Comment}function z(b){return b.type===Y.ElementType.Directive}function re(b){return b.type===Y.ElementType.Root}function $(b,K){var L;if(void 0===K&&(K=!1),x(b))L=new I(b.data);else if(B(b))L=new O(b.data);else if(k(b)){var oe=K?ie(b.children):[],_e=new D(b.name,de({},b.attribs),oe);oe.forEach(function(pe){return pe.parent=_e}),null!=b.namespace&&(_e.namespace=b.namespace),b["x-attribsNamespace"]&&(_e["x-attribsNamespace"]=de({},b["x-attribsNamespace"])),b["x-attribsPrefix"]&&(_e["x-attribsPrefix"]=de({},b["x-attribsPrefix"])),L=_e}else if(S(b)){oe=K?ie(b.children):[];var V=new E(Y.ElementType.CDATA,oe);oe.forEach(function(he){return he.parent=V}),L=V}else if(re(b)){oe=K?ie(b.children):[];var N=new P(oe);oe.forEach(function(he){return he.parent=N}),b["x-mode"]&&(N["x-mode"]=b["x-mode"]),L=N}else{if(!z(b))throw new Error("Not implemented yet: ".concat(b.type));var X=new T(b.name,b.data);null!=b["x-name"]&&(X["x-name"]=b["x-name"],X["x-publicId"]=b["x-publicId"],X["x-systemId"]=b["x-systemId"]),L=X}return L.startIndex=b.startIndex,L.endIndex=b.endIndex,null!=b.sourceCodeLocation&&(L.sourceCodeLocation=b.sourceCodeLocation),L}function ie(b){for(var K=b.map(function(oe){return $(oe,!0)}),L=1;L{"use strict";Object.defineProperty(w,"__esModule",{value:!0}),w.getFeed=void 0;var le=G(4543),de=G(9735);w.getFeed=function Y(k){var S=T(D,k);return S?"feed"===S.name?function Q(k){var S,x=k.children,B={type:"atom",items:(0,de.getElementsByTagName)("entry",x).map(function(we){var $,ie=we.children,b={media:O(ie)};P(b,"id","id",ie),P(b,"title","title",ie);var K=null===($=T("link",ie))||void 0===$?void 0:$.attribs.href;K&&(b.link=K);var L=E("summary",ie)||E("content",ie);L&&(b.description=L);var oe=E("updated",ie);return oe&&(b.pubDate=new Date(oe)),b})};P(B,"id","id",x),P(B,"title","title",x);var z=null===(S=T("link",x))||void 0===S?void 0:S.attribs.href;z&&(B.link=z),P(B,"description","subtitle",x);var re=E("updated",x);return re&&(B.updated=new Date(re)),P(B,"author","email",x,!0),B}(S):function q(k){var S,x,B=null!==(x=null===(S=T("channel",k.children))||void 0===S?void 0:S.children)&&void 0!==x?x:[],z={type:k.name.substr(0,3),id:"",items:(0,de.getElementsByTagName)("item",k.children).map(function(we){var $=we.children,ie={media:O($)};P(ie,"id","guid",$),P(ie,"title","title",$),P(ie,"link","link",$),P(ie,"description","description",$);var b=E("pubDate",$);return b&&(ie.pubDate=new Date(b)),ie})};P(z,"title","title",B),P(z,"link","link",B),P(z,"description","description",B);var re=E("lastBuildDate",B);return re&&(z.updated=new Date(re)),P(z,"author","managingEditor",B,!0),z}(S):null};var F=["url","type","lang"],I=["fileSize","bitrate","framerate","samplingrate","channels","duration","height","width"];function O(k){return(0,de.getElementsByTagName)("media:content",k).map(function(S){for(var x=S.attribs,B={medium:x.medium,isDefault:!!x.isDefault},z=0,re=F;z{"use strict";Object.defineProperty(w,"__esModule",{value:!0}),w.uniqueSort=w.compareDocumentPosition=w.removeSubsets=void 0;var le=G(2962);function Y(q,F){var I=[],O=[];if(q===F)return 0;for(var T=(0,le.hasChildren)(q)?q:q.parent;T;)I.unshift(T),T=T.parent;for(T=(0,le.hasChildren)(F)?F:F.parent;T;)O.unshift(T),T=T.parent;for(var E=Math.min(I.length,O.length),P=0;Pk.indexOf(x)?D===F?20:4:D===q?10:2}w.removeSubsets=function de(q){for(var F=q.length;--F>=0;){var I=q[F];if(F>0&&q.lastIndexOf(I,F-1)>=0)q.splice(F,1);else for(var O=I.parent;O;O=O.parent)if(q.includes(O)){q.splice(F,1);break}}return q},w.compareDocumentPosition=Y,w.uniqueSort=function Q(q){return(q=q.filter(function(F,I,O){return!O.includes(F,I+1)})).sort(function(F,I){var O=Y(F,I);return 2&O?-1:4&O?1:0}),q}},2155:function(Le,w,G){"use strict";var le=this&&this.__createBinding||(Object.create?function(Q,q,F,I){void 0===I&&(I=F),Object.defineProperty(Q,I,{enumerable:!0,get:function(){return q[F]}})}:function(Q,q,F,I){void 0===I&&(I=F),Q[I]=q[F]}),de=this&&this.__exportStar||function(Q,q){for(var F in Q)"default"!==F&&!Object.prototype.hasOwnProperty.call(q,F)&&le(q,Q,F)};Object.defineProperty(w,"__esModule",{value:!0}),w.hasChildren=w.isDocument=w.isComment=w.isText=w.isCDATA=w.isTag=void 0,de(G(4543),w),de(G(4757),w),de(G(6525),w),de(G(7237),w),de(G(9735),w),de(G(485),w),de(G(6534),w);var Y=G(2962);Object.defineProperty(w,"isTag",{enumerable:!0,get:function(){return Y.isTag}}),Object.defineProperty(w,"isCDATA",{enumerable:!0,get:function(){return Y.isCDATA}}),Object.defineProperty(w,"isText",{enumerable:!0,get:function(){return Y.isText}}),Object.defineProperty(w,"isComment",{enumerable:!0,get:function(){return Y.isComment}}),Object.defineProperty(w,"isDocument",{enumerable:!0,get:function(){return Y.isDocument}}),Object.defineProperty(w,"hasChildren",{enumerable:!0,get:function(){return Y.hasChildren}})},9735:(Le,w,G)=>{"use strict";Object.defineProperty(w,"__esModule",{value:!0}),w.getElementsByTagType=w.getElementsByTagName=w.getElementById=w.getElements=w.testElement=void 0;var le=G(2962),de=G(7237),Y={tag_name:function(D){return"function"==typeof D?function(k){return(0,le.isTag)(k)&&D(k.name)}:"*"===D?le.isTag:function(k){return(0,le.isTag)(k)&&k.name===D}},tag_type:function(D){return"function"==typeof D?function(k){return D(k.type)}:function(k){return k.type===D}},tag_contains:function(D){return"function"==typeof D?function(k){return(0,le.isText)(k)&&D(k.data)}:function(k){return(0,le.isText)(k)&&k.data===D}}};function Q(D,k){return"function"==typeof k?function(S){return(0,le.isTag)(S)&&k(S.attribs[D])}:function(S){return(0,le.isTag)(S)&&S.attribs[D]===k}}function q(D,k){return function(S){return D(S)||k(S)}}function F(D){var k=Object.keys(D).map(function(S){var x=D[S];return Object.prototype.hasOwnProperty.call(Y,S)?Y[S](x):Q(S,x)});return 0===k.length?null:k.reduce(q)}w.testElement=function I(D,k){var S=F(D);return!S||S(k)},w.getElements=function O(D,k,S,x){void 0===x&&(x=1/0);var B=F(D);return B?(0,de.filter)(B,k,S,x):[]},w.getElementById=function T(D,k,S){return void 0===S&&(S=!0),Array.isArray(k)||(k=[k]),(0,de.findOne)(Q("id",D),k,S)},w.getElementsByTagName=function E(D,k,S,x){return void 0===S&&(S=!0),void 0===x&&(x=1/0),(0,de.filter)(Y.tag_name(D),k,S,x)},w.getElementsByTagType=function P(D,k,S,x){return void 0===S&&(S=!0),void 0===x&&(x=1/0),(0,de.filter)(Y.tag_type(D),k,S,x)}},6525:(Le,w)=>{"use strict";function G(F){if(F.prev&&(F.prev.next=F.next),F.next&&(F.next.prev=F.prev),F.parent){var I=F.parent.children;I.splice(I.lastIndexOf(F),1)}}Object.defineProperty(w,"__esModule",{value:!0}),w.prepend=w.prependChild=w.append=w.appendChild=w.replaceElement=w.removeElement=void 0,w.removeElement=G,w.replaceElement=function le(F,I){var O=I.prev=F.prev;O&&(O.next=I);var T=I.next=F.next;T&&(T.prev=I);var E=I.parent=F.parent;if(E){var P=E.children;P[P.lastIndexOf(F)]=I}},w.appendChild=function de(F,I){if(G(I),I.next=null,I.parent=F,F.children.push(I)>1){var O=F.children[F.children.length-2];O.next=I,I.prev=O}else I.prev=null},w.append=function Y(F,I){G(I);var O=F.parent,T=F.next;if(I.next=T,I.prev=F,F.next=I,I.parent=O,T){if(T.prev=I,O){var E=O.children;E.splice(E.lastIndexOf(T),0,I)}}else O&&O.children.push(I)},w.prependChild=function Q(F,I){if(G(I),I.parent=F,I.prev=null,1!==F.children.unshift(I)){var O=F.children[1];O.prev=I,I.next=O}else I.next=null},w.prepend=function q(F,I){G(I);var O=F.parent;if(O){var T=O.children;T.splice(T.indexOf(F),0,I)}F.prev&&(F.prev.next=I),I.parent=O,I.prev=F.prev,I.next=F,F.prev=I}},7237:(Le,w,G)=>{"use strict";Object.defineProperty(w,"__esModule",{value:!0}),w.findAll=w.existsOne=w.findOne=w.findOneChild=w.find=w.filter=void 0;var le=G(2962);function Y(O,T,E,P){for(var D=[],k=0,S=T;k0){var B=Y(O,x.children,E,P);if(D.push.apply(D,B),(P-=B.length)<=0)break}}return D}w.filter=function de(O,T,E,P){return void 0===E&&(E=!0),void 0===P&&(P=1/0),Array.isArray(T)||(T=[T]),Y(O,T,E,P)},w.find=Y,w.findOneChild=function Q(O,T){return T.find(O)},w.findOne=function q(O,T,E){void 0===E&&(E=!0);for(var P=null,D=0;D0&&(P=q(O,k.children)))}return P},w.existsOne=function F(O,T){return T.some(function(E){return(0,le.isTag)(E)&&(O(E)||E.children.length>0&&F(O,E.children))})},w.findAll=function I(O,T){for(var E,k,P=[],D=T.filter(le.isTag);k=D.shift();){var S=null===(E=k.children)||void 0===E?void 0:E.filter(le.isTag);S&&S.length>0&&D.unshift.apply(D,S),O(k)&&P.push(k)}return P}},4543:function(Le,w,G){"use strict";var le=this&&this.__importDefault||function(E){return E&&E.__esModule?E:{default:E}};Object.defineProperty(w,"__esModule",{value:!0}),w.innerText=w.textContent=w.getText=w.getInnerHTML=w.getOuterHTML=void 0;var de=G(2962),Y=le(G(3192)),Q=G(6316);function q(E,P){return(0,Y.default)(E,P)}w.getOuterHTML=q,w.getInnerHTML=function F(E,P){return(0,de.hasChildren)(E)?E.children.map(function(D){return q(D,P)}).join(""):""},w.getText=function I(E){return Array.isArray(E)?E.map(I).join(""):(0,de.isTag)(E)?"br"===E.name?"\n":I(E.children):(0,de.isCDATA)(E)?I(E.children):(0,de.isText)(E)?E.data:""},w.textContent=function O(E){return Array.isArray(E)?E.map(O).join(""):(0,de.hasChildren)(E)&&!(0,de.isComment)(E)?O(E.children):(0,de.isText)(E)?E.data:""},w.innerText=function T(E){return Array.isArray(E)?E.map(T).join(""):(0,de.hasChildren)(E)&&(E.type===Q.ElementType.Tag||(0,de.isCDATA)(E))?T(E.children):(0,de.isText)(E)?E.data:""}},4757:(Le,w,G)=>{"use strict";Object.defineProperty(w,"__esModule",{value:!0}),w.prevElementSibling=w.nextElementSibling=w.getName=w.hasAttrib=w.getAttributeValue=w.getSiblings=w.getParent=w.getChildren=void 0;var le=G(2962),de=[];function Y(P){var D;return null!==(D=P.children)&&void 0!==D?D:de}function Q(P){return P.parent||null}w.getChildren=Y,w.getParent=Q,w.getSiblings=function q(P){var S=Q(P);if(null!=S)return Y(S);for(var x=[P],B=P.prev,z=P.next;null!=B;)x.unshift(B),B=B.prev;for(;null!=z;)x.push(z),z=z.next;return x},w.getAttributeValue=function F(P,D){var k;return null===(k=P.attribs)||void 0===k?void 0:k[D]},w.hasAttrib=function I(P,D){return null!=P.attribs&&Object.prototype.hasOwnProperty.call(P.attribs,D)&&null!=P.attribs[D]},w.getName=function O(P){return P.name},w.nextElementSibling=function T(P){for(var k=P.next;null!==k&&!(0,le.isTag)(k);)k=k.next;return k},w.prevElementSibling=function E(P){for(var k=P.prev;null!==k&&!(0,le.isTag)(k);)k=k.prev;return k}},547:function(Le,w,G){"use strict";var le=this&&this.__importDefault||function(E){return E&&E.__esModule?E:{default:E}};Object.defineProperty(w,"__esModule",{value:!0}),w.decodeHTML=w.decodeHTMLStrict=w.decodeXML=void 0;var de=le(G(9323)),Y=le(G(9591)),Q=le(G(2586)),q=le(G(672)),F=/&(?:[a-zA-Z0-9]+|#[xX][\da-fA-F]+|#\d+);/g;function I(E){var P=T(E);return function(D){return String(D).replace(F,P)}}w.decodeXML=I(Q.default),w.decodeHTMLStrict=I(de.default);var O=function(E,P){return E65535&&(q-=65536,F+=String.fromCharCode(q>>>10&1023|55296),q=56320|1023&q),F+String.fromCharCode(q)};w.default=function Q(q){return q>=55296&&q<=57343||q>1114111?"\ufffd":(q in de.default&&(q=de.default[q]),Y(q))}},3854:function(Le,w,G){"use strict";var le=this&&this.__importDefault||function(re){return re&&re.__esModule?re:{default:re}};Object.defineProperty(w,"__esModule",{value:!0}),w.escapeUTF8=w.escape=w.encodeNonAsciiHTML=w.encodeHTML=w.encodeXML=void 0;var Y=O(le(G(2586)).default),Q=T(Y);w.encodeXML=z(Y);var F=O(le(G(9323)).default),I=T(F);function O(re){return Object.keys(re).sort().reduce(function(we,$){return we[re[$]]="&"+$+";",we},{})}function T(re){for(var we=[],$=[],ie=0,b=Object.keys(re);ie1?P(re):re.charCodeAt(0)).toString(16).toUpperCase()+";"}var S=new RegExp(Q.source+"|"+E.source,"g");function z(re){return function(we){return we.replace(S,function($){return re[$]||D($)})}}w.escape=function x(re){return re.replace(S,D)},w.escapeUTF8=function B(re){return re.replace(Q,D)}},9673:(Le,w,G)=>{"use strict";Object.defineProperty(w,"__esModule",{value:!0}),w.decodeXMLStrict=w.decodeHTML5Strict=w.decodeHTML4Strict=w.decodeHTML5=w.decodeHTML4=w.decodeHTMLStrict=w.decodeHTML=w.decodeXML=w.encodeHTML5=w.encodeHTML4=w.escapeUTF8=w.escape=w.encodeNonAsciiHTML=w.encodeHTML=w.encodeXML=w.encode=w.decodeStrict=w.decode=void 0;var le=G(547),de=G(3854);w.decode=function Y(O,T){return(!T||T<=0?le.decodeXML:le.decodeHTML)(O)},w.decodeStrict=function Q(O,T){return(!T||T<=0?le.decodeXML:le.decodeHTMLStrict)(O)},w.encode=function q(O,T){return(!T||T<=0?de.encodeXML:de.encodeHTML)(O)};var F=G(3854);Object.defineProperty(w,"encodeXML",{enumerable:!0,get:function(){return F.encodeXML}}),Object.defineProperty(w,"encodeHTML",{enumerable:!0,get:function(){return F.encodeHTML}}),Object.defineProperty(w,"encodeNonAsciiHTML",{enumerable:!0,get:function(){return F.encodeNonAsciiHTML}}),Object.defineProperty(w,"escape",{enumerable:!0,get:function(){return F.escape}}),Object.defineProperty(w,"escapeUTF8",{enumerable:!0,get:function(){return F.escapeUTF8}}),Object.defineProperty(w,"encodeHTML4",{enumerable:!0,get:function(){return F.encodeHTML}}),Object.defineProperty(w,"encodeHTML5",{enumerable:!0,get:function(){return F.encodeHTML}});var I=G(547);Object.defineProperty(w,"decodeXML",{enumerable:!0,get:function(){return I.decodeXML}}),Object.defineProperty(w,"decodeHTML",{enumerable:!0,get:function(){return I.decodeHTML}}),Object.defineProperty(w,"decodeHTMLStrict",{enumerable:!0,get:function(){return I.decodeHTMLStrict}}),Object.defineProperty(w,"decodeHTML4",{enumerable:!0,get:function(){return I.decodeHTML}}),Object.defineProperty(w,"decodeHTML5",{enumerable:!0,get:function(){return I.decodeHTML}}),Object.defineProperty(w,"decodeHTML4Strict",{enumerable:!0,get:function(){return I.decodeHTMLStrict}}),Object.defineProperty(w,"decodeHTML5Strict",{enumerable:!0,get:function(){return I.decodeHTMLStrict}}),Object.defineProperty(w,"decodeXMLStrict",{enumerable:!0,get:function(){return I.decodeXML}})},3537:function(Le,w,G){var le;Le=G.nmd(Le),function(de){"object"==typeof global&&global;var F=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,I=/[\x01-\x7F]/g,O=/[\x01-\t\x0B\f\x0E-\x1F\x7F\x81\x8D\x8F\x90\x9D\xA0-\uFFFF]/g,T=/<\u20D2|=\u20E5|>\u20D2|\u205F\u200A|\u219D\u0338|\u2202\u0338|\u2220\u20D2|\u2229\uFE00|\u222A\uFE00|\u223C\u20D2|\u223D\u0331|\u223E\u0333|\u2242\u0338|\u224B\u0338|\u224D\u20D2|\u224E\u0338|\u224F\u0338|\u2250\u0338|\u2261\u20E5|\u2264\u20D2|\u2265\u20D2|\u2266\u0338|\u2267\u0338|\u2268\uFE00|\u2269\uFE00|\u226A\u0338|\u226A\u20D2|\u226B\u0338|\u226B\u20D2|\u227F\u0338|\u2282\u20D2|\u2283\u20D2|\u228A\uFE00|\u228B\uFE00|\u228F\u0338|\u2290\u0338|\u2293\uFE00|\u2294\uFE00|\u22B4\u20D2|\u22B5\u20D2|\u22D8\u0338|\u22D9\u0338|\u22DA\uFE00|\u22DB\uFE00|\u22F5\u0338|\u22F9\u0338|\u2933\u0338|\u29CF\u0338|\u29D0\u0338|\u2A6D\u0338|\u2A70\u0338|\u2A7D\u0338|\u2A7E\u0338|\u2AA1\u0338|\u2AA2\u0338|\u2AAC\uFE00|\u2AAD\uFE00|\u2AAF\u0338|\u2AB0\u0338|\u2AC5\u0338|\u2AC6\u0338|\u2ACB\uFE00|\u2ACC\uFE00|\u2AFD\u20E5|[\xA0-\u0113\u0116-\u0122\u0124-\u012B\u012E-\u014D\u0150-\u017E\u0192\u01B5\u01F5\u0237\u02C6\u02C7\u02D8-\u02DD\u0311\u0391-\u03A1\u03A3-\u03A9\u03B1-\u03C9\u03D1\u03D2\u03D5\u03D6\u03DC\u03DD\u03F0\u03F1\u03F5\u03F6\u0401-\u040C\u040E-\u044F\u0451-\u045C\u045E\u045F\u2002-\u2005\u2007-\u2010\u2013-\u2016\u2018-\u201A\u201C-\u201E\u2020-\u2022\u2025\u2026\u2030-\u2035\u2039\u203A\u203E\u2041\u2043\u2044\u204F\u2057\u205F-\u2063\u20AC\u20DB\u20DC\u2102\u2105\u210A-\u2113\u2115-\u211E\u2122\u2124\u2127-\u2129\u212C\u212D\u212F-\u2131\u2133-\u2138\u2145-\u2148\u2153-\u215E\u2190-\u219B\u219D-\u21A7\u21A9-\u21AE\u21B0-\u21B3\u21B5-\u21B7\u21BA-\u21DB\u21DD\u21E4\u21E5\u21F5\u21FD-\u2205\u2207-\u2209\u220B\u220C\u220F-\u2214\u2216-\u2218\u221A\u221D-\u2238\u223A-\u2257\u2259\u225A\u225C\u225F-\u2262\u2264-\u228B\u228D-\u229B\u229D-\u22A5\u22A7-\u22B0\u22B2-\u22BB\u22BD-\u22DB\u22DE-\u22E3\u22E6-\u22F7\u22F9-\u22FE\u2305\u2306\u2308-\u2310\u2312\u2313\u2315\u2316\u231C-\u231F\u2322\u2323\u232D\u232E\u2336\u233D\u233F\u237C\u23B0\u23B1\u23B4-\u23B6\u23DC-\u23DF\u23E2\u23E7\u2423\u24C8\u2500\u2502\u250C\u2510\u2514\u2518\u251C\u2524\u252C\u2534\u253C\u2550-\u256C\u2580\u2584\u2588\u2591-\u2593\u25A1\u25AA\u25AB\u25AD\u25AE\u25B1\u25B3-\u25B5\u25B8\u25B9\u25BD-\u25BF\u25C2\u25C3\u25CA\u25CB\u25EC\u25EF\u25F8-\u25FC\u2605\u2606\u260E\u2640\u2642\u2660\u2663\u2665\u2666\u266A\u266D-\u266F\u2713\u2717\u2720\u2736\u2758\u2772\u2773\u27C8\u27C9\u27E6-\u27ED\u27F5-\u27FA\u27FC\u27FF\u2902-\u2905\u290C-\u2913\u2916\u2919-\u2920\u2923-\u292A\u2933\u2935-\u2939\u293C\u293D\u2945\u2948-\u294B\u294E-\u2976\u2978\u2979\u297B-\u297F\u2985\u2986\u298B-\u2996\u299A\u299C\u299D\u29A4-\u29B7\u29B9\u29BB\u29BC\u29BE-\u29C5\u29C9\u29CD-\u29D0\u29DC-\u29DE\u29E3-\u29E5\u29EB\u29F4\u29F6\u2A00-\u2A02\u2A04\u2A06\u2A0C\u2A0D\u2A10-\u2A17\u2A22-\u2A27\u2A29\u2A2A\u2A2D-\u2A31\u2A33-\u2A3C\u2A3F\u2A40\u2A42-\u2A4D\u2A50\u2A53-\u2A58\u2A5A-\u2A5D\u2A5F\u2A66\u2A6A\u2A6D-\u2A75\u2A77-\u2A9A\u2A9D-\u2AA2\u2AA4-\u2AB0\u2AB3-\u2AC8\u2ACB\u2ACC\u2ACF-\u2ADB\u2AE4\u2AE6-\u2AE9\u2AEB-\u2AF3\u2AFD\uFB00-\uFB04]|\uD835[\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDCCF\uDD04\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDD6B]/g,E={"\xad":"shy","\u200c":"zwnj","\u200d":"zwj","\u200e":"lrm","\u2063":"ic","\u2062":"it","\u2061":"af","\u200f":"rlm","\u200b":"ZeroWidthSpace","\u2060":"NoBreak","\u0311":"DownBreve","\u20db":"tdot","\u20dc":"DotDot","\t":"Tab","\n":"NewLine","\u2008":"puncsp","\u205f":"MediumSpace","\u2009":"thinsp","\u200a":"hairsp","\u2004":"emsp13","\u2002":"ensp","\u2005":"emsp14","\u2003":"emsp","\u2007":"numsp","\xa0":"nbsp","\u205f\u200a":"ThickSpace","\u203e":"oline",_:"lowbar","\u2010":"dash","\u2013":"ndash","\u2014":"mdash","\u2015":"horbar",",":"comma",";":"semi","\u204f":"bsemi",":":"colon","\u2a74":"Colone","!":"excl","\xa1":"iexcl","?":"quest","\xbf":"iquest",".":"period","\u2025":"nldr","\u2026":"mldr","\xb7":"middot","'":"apos","\u2018":"lsquo","\u2019":"rsquo","\u201a":"sbquo","\u2039":"lsaquo","\u203a":"rsaquo",'"':"quot","\u201c":"ldquo","\u201d":"rdquo","\u201e":"bdquo","\xab":"laquo","\xbb":"raquo","(":"lpar",")":"rpar","[":"lsqb","]":"rsqb","{":"lcub","}":"rcub","\u2308":"lceil","\u2309":"rceil","\u230a":"lfloor","\u230b":"rfloor","\u2985":"lopar","\u2986":"ropar","\u298b":"lbrke","\u298c":"rbrke","\u298d":"lbrkslu","\u298e":"rbrksld","\u298f":"lbrksld","\u2990":"rbrkslu","\u2991":"langd","\u2992":"rangd","\u2993":"lparlt","\u2994":"rpargt","\u2995":"gtlPar","\u2996":"ltrPar","\u27e6":"lobrk","\u27e7":"robrk","\u27e8":"lang","\u27e9":"rang","\u27ea":"Lang","\u27eb":"Rang","\u27ec":"loang","\u27ed":"roang","\u2772":"lbbrk","\u2773":"rbbrk","\u2016":"Vert","\xa7":"sect","\xb6":"para","@":"commat","*":"ast","/":"sol",undefined:null,"&":"amp","#":"num","%":"percnt","\u2030":"permil","\u2031":"pertenk","\u2020":"dagger","\u2021":"Dagger","\u2022":"bull","\u2043":"hybull","\u2032":"prime","\u2033":"Prime","\u2034":"tprime","\u2057":"qprime","\u2035":"bprime","\u2041":"caret","`":"grave","\xb4":"acute","\u02dc":"tilde","^":"Hat","\xaf":"macr","\u02d8":"breve","\u02d9":"dot","\xa8":"die","\u02da":"ring","\u02dd":"dblac","\xb8":"cedil","\u02db":"ogon",\u02c6:"circ",\u02c7:"caron","\xb0":"deg","\xa9":"copy","\xae":"reg","\u2117":"copysr",\u2118:"wp","\u211e":"rx","\u2127":"mho","\u2129":"iiota","\u2190":"larr","\u219a":"nlarr","\u2192":"rarr","\u219b":"nrarr","\u2191":"uarr","\u2193":"darr","\u2194":"harr","\u21ae":"nharr","\u2195":"varr","\u2196":"nwarr","\u2197":"nearr","\u2198":"searr","\u2199":"swarr","\u219d":"rarrw","\u219d\u0338":"nrarrw","\u219e":"Larr","\u219f":"Uarr","\u21a0":"Rarr","\u21a1":"Darr","\u21a2":"larrtl","\u21a3":"rarrtl","\u21a4":"mapstoleft","\u21a5":"mapstoup","\u21a6":"map","\u21a7":"mapstodown","\u21a9":"larrhk","\u21aa":"rarrhk","\u21ab":"larrlp","\u21ac":"rarrlp","\u21ad":"harrw","\u21b0":"lsh","\u21b1":"rsh","\u21b2":"ldsh","\u21b3":"rdsh","\u21b5":"crarr","\u21b6":"cularr","\u21b7":"curarr","\u21ba":"olarr","\u21bb":"orarr","\u21bc":"lharu","\u21bd":"lhard","\u21be":"uharr","\u21bf":"uharl","\u21c0":"rharu","\u21c1":"rhard","\u21c2":"dharr","\u21c3":"dharl","\u21c4":"rlarr","\u21c5":"udarr","\u21c6":"lrarr","\u21c7":"llarr","\u21c8":"uuarr","\u21c9":"rrarr","\u21ca":"ddarr","\u21cb":"lrhar","\u21cc":"rlhar","\u21d0":"lArr","\u21cd":"nlArr","\u21d1":"uArr","\u21d2":"rArr","\u21cf":"nrArr","\u21d3":"dArr","\u21d4":"iff","\u21ce":"nhArr","\u21d5":"vArr","\u21d6":"nwArr","\u21d7":"neArr","\u21d8":"seArr","\u21d9":"swArr","\u21da":"lAarr","\u21db":"rAarr","\u21dd":"zigrarr","\u21e4":"larrb","\u21e5":"rarrb","\u21f5":"duarr","\u21fd":"loarr","\u21fe":"roarr","\u21ff":"hoarr","\u2200":"forall","\u2201":"comp","\u2202":"part","\u2202\u0338":"npart","\u2203":"exist","\u2204":"nexist","\u2205":"empty","\u2207":"Del","\u2208":"in","\u2209":"notin","\u220b":"ni","\u220c":"notni","\u03f6":"bepsi","\u220f":"prod","\u2210":"coprod","\u2211":"sum","+":"plus","\xb1":"pm","\xf7":"div","\xd7":"times","<":"lt","\u226e":"nlt","<\u20d2":"nvlt","=":"equals","\u2260":"ne","=\u20e5":"bne","\u2a75":"Equal",">":"gt","\u226f":"ngt",">\u20d2":"nvgt","\xac":"not","|":"vert","\xa6":"brvbar","\u2212":"minus","\u2213":"mp","\u2214":"plusdo","\u2044":"frasl","\u2216":"setmn","\u2217":"lowast","\u2218":"compfn","\u221a":"Sqrt","\u221d":"prop","\u221e":"infin","\u221f":"angrt","\u2220":"ang","\u2220\u20d2":"nang","\u2221":"angmsd","\u2222":"angsph","\u2223":"mid","\u2224":"nmid","\u2225":"par","\u2226":"npar","\u2227":"and","\u2228":"or","\u2229":"cap","\u2229\ufe00":"caps","\u222a":"cup","\u222a\ufe00":"cups","\u222b":"int","\u222c":"Int","\u222d":"tint","\u2a0c":"qint","\u222e":"oint","\u222f":"Conint","\u2230":"Cconint","\u2231":"cwint","\u2232":"cwconint","\u2233":"awconint","\u2234":"there4","\u2235":"becaus","\u2236":"ratio","\u2237":"Colon","\u2238":"minusd","\u223a":"mDDot","\u223b":"homtht","\u223c":"sim","\u2241":"nsim","\u223c\u20d2":"nvsim","\u223d":"bsim","\u223d\u0331":"race","\u223e":"ac","\u223e\u0333":"acE","\u223f":"acd","\u2240":"wr","\u2242":"esim","\u2242\u0338":"nesim","\u2243":"sime","\u2244":"nsime","\u2245":"cong","\u2247":"ncong","\u2246":"simne","\u2248":"ap","\u2249":"nap","\u224a":"ape","\u224b":"apid","\u224b\u0338":"napid","\u224c":"bcong","\u224d":"CupCap","\u226d":"NotCupCap","\u224d\u20d2":"nvap","\u224e":"bump","\u224e\u0338":"nbump","\u224f":"bumpe","\u224f\u0338":"nbumpe","\u2250":"doteq","\u2250\u0338":"nedot","\u2251":"eDot","\u2252":"efDot","\u2253":"erDot","\u2254":"colone","\u2255":"ecolon","\u2256":"ecir","\u2257":"cire","\u2259":"wedgeq","\u225a":"veeeq","\u225c":"trie","\u225f":"equest","\u2261":"equiv","\u2262":"nequiv","\u2261\u20e5":"bnequiv","\u2264":"le","\u2270":"nle","\u2264\u20d2":"nvle","\u2265":"ge","\u2271":"nge","\u2265\u20d2":"nvge","\u2266":"lE","\u2266\u0338":"nlE","\u2267":"gE","\u2267\u0338":"ngE","\u2268\ufe00":"lvnE","\u2268":"lnE","\u2269":"gnE","\u2269\ufe00":"gvnE","\u226a":"ll","\u226a\u0338":"nLtv","\u226a\u20d2":"nLt","\u226b":"gg","\u226b\u0338":"nGtv","\u226b\u20d2":"nGt","\u226c":"twixt","\u2272":"lsim","\u2274":"nlsim","\u2273":"gsim","\u2275":"ngsim","\u2276":"lg","\u2278":"ntlg","\u2277":"gl","\u2279":"ntgl","\u227a":"pr","\u2280":"npr","\u227b":"sc","\u2281":"nsc","\u227c":"prcue","\u22e0":"nprcue","\u227d":"sccue","\u22e1":"nsccue","\u227e":"prsim","\u227f":"scsim","\u227f\u0338":"NotSucceedsTilde","\u2282":"sub","\u2284":"nsub","\u2282\u20d2":"vnsub","\u2283":"sup","\u2285":"nsup","\u2283\u20d2":"vnsup","\u2286":"sube","\u2288":"nsube","\u2287":"supe","\u2289":"nsupe","\u228a\ufe00":"vsubne","\u228a":"subne","\u228b\ufe00":"vsupne","\u228b":"supne","\u228d":"cupdot","\u228e":"uplus","\u228f":"sqsub","\u228f\u0338":"NotSquareSubset","\u2290":"sqsup","\u2290\u0338":"NotSquareSuperset","\u2291":"sqsube","\u22e2":"nsqsube","\u2292":"sqsupe","\u22e3":"nsqsupe","\u2293":"sqcap","\u2293\ufe00":"sqcaps","\u2294":"sqcup","\u2294\ufe00":"sqcups","\u2295":"oplus","\u2296":"ominus","\u2297":"otimes","\u2298":"osol","\u2299":"odot","\u229a":"ocir","\u229b":"oast","\u229d":"odash","\u229e":"plusb","\u229f":"minusb","\u22a0":"timesb","\u22a1":"sdotb","\u22a2":"vdash","\u22ac":"nvdash","\u22a3":"dashv","\u22a4":"top","\u22a5":"bot","\u22a7":"models","\u22a8":"vDash","\u22ad":"nvDash","\u22a9":"Vdash","\u22ae":"nVdash","\u22aa":"Vvdash","\u22ab":"VDash","\u22af":"nVDash","\u22b0":"prurel","\u22b2":"vltri","\u22ea":"nltri","\u22b3":"vrtri","\u22eb":"nrtri","\u22b4":"ltrie","\u22ec":"nltrie","\u22b4\u20d2":"nvltrie","\u22b5":"rtrie","\u22ed":"nrtrie","\u22b5\u20d2":"nvrtrie","\u22b6":"origof","\u22b7":"imof","\u22b8":"mumap","\u22b9":"hercon","\u22ba":"intcal","\u22bb":"veebar","\u22bd":"barvee","\u22be":"angrtvb","\u22bf":"lrtri","\u22c0":"Wedge","\u22c1":"Vee","\u22c2":"xcap","\u22c3":"xcup","\u22c4":"diam","\u22c5":"sdot","\u22c6":"Star","\u22c7":"divonx","\u22c8":"bowtie","\u22c9":"ltimes","\u22ca":"rtimes","\u22cb":"lthree","\u22cc":"rthree","\u22cd":"bsime","\u22ce":"cuvee","\u22cf":"cuwed","\u22d0":"Sub","\u22d1":"Sup","\u22d2":"Cap","\u22d3":"Cup","\u22d4":"fork","\u22d5":"epar","\u22d6":"ltdot","\u22d7":"gtdot","\u22d8":"Ll","\u22d8\u0338":"nLl","\u22d9":"Gg","\u22d9\u0338":"nGg","\u22da\ufe00":"lesg","\u22da":"leg","\u22db":"gel","\u22db\ufe00":"gesl","\u22de":"cuepr","\u22df":"cuesc","\u22e6":"lnsim","\u22e7":"gnsim","\u22e8":"prnsim","\u22e9":"scnsim","\u22ee":"vellip","\u22ef":"ctdot","\u22f0":"utdot","\u22f1":"dtdot","\u22f2":"disin","\u22f3":"isinsv","\u22f4":"isins","\u22f5":"isindot","\u22f5\u0338":"notindot","\u22f6":"notinvc","\u22f7":"notinvb","\u22f9":"isinE","\u22f9\u0338":"notinE","\u22fa":"nisd","\u22fb":"xnis","\u22fc":"nis","\u22fd":"notnivc","\u22fe":"notnivb","\u2305":"barwed","\u2306":"Barwed","\u230c":"drcrop","\u230d":"dlcrop","\u230e":"urcrop","\u230f":"ulcrop","\u2310":"bnot","\u2312":"profline","\u2313":"profsurf","\u2315":"telrec","\u2316":"target","\u231c":"ulcorn","\u231d":"urcorn","\u231e":"dlcorn","\u231f":"drcorn","\u2322":"frown","\u2323":"smile","\u232d":"cylcty","\u232e":"profalar","\u2336":"topbot","\u233d":"ovbar","\u233f":"solbar","\u237c":"angzarr","\u23b0":"lmoust","\u23b1":"rmoust","\u23b4":"tbrk","\u23b5":"bbrk","\u23b6":"bbrktbrk","\u23dc":"OverParenthesis","\u23dd":"UnderParenthesis","\u23de":"OverBrace","\u23df":"UnderBrace","\u23e2":"trpezium","\u23e7":"elinters","\u2423":"blank","\u2500":"boxh","\u2502":"boxv","\u250c":"boxdr","\u2510":"boxdl","\u2514":"boxur","\u2518":"boxul","\u251c":"boxvr","\u2524":"boxvl","\u252c":"boxhd","\u2534":"boxhu","\u253c":"boxvh","\u2550":"boxH","\u2551":"boxV","\u2552":"boxdR","\u2553":"boxDr","\u2554":"boxDR","\u2555":"boxdL","\u2556":"boxDl","\u2557":"boxDL","\u2558":"boxuR","\u2559":"boxUr","\u255a":"boxUR","\u255b":"boxuL","\u255c":"boxUl","\u255d":"boxUL","\u255e":"boxvR","\u255f":"boxVr","\u2560":"boxVR","\u2561":"boxvL","\u2562":"boxVl","\u2563":"boxVL","\u2564":"boxHd","\u2565":"boxhD","\u2566":"boxHD","\u2567":"boxHu","\u2568":"boxhU","\u2569":"boxHU","\u256a":"boxvH","\u256b":"boxVh","\u256c":"boxVH","\u2580":"uhblk","\u2584":"lhblk","\u2588":"block","\u2591":"blk14","\u2592":"blk12","\u2593":"blk34","\u25a1":"squ","\u25aa":"squf","\u25ab":"EmptyVerySmallSquare","\u25ad":"rect","\u25ae":"marker","\u25b1":"fltns","\u25b3":"xutri","\u25b4":"utrif","\u25b5":"utri","\u25b8":"rtrif","\u25b9":"rtri","\u25bd":"xdtri","\u25be":"dtrif","\u25bf":"dtri","\u25c2":"ltrif","\u25c3":"ltri","\u25ca":"loz","\u25cb":"cir","\u25ec":"tridot","\u25ef":"xcirc","\u25f8":"ultri","\u25f9":"urtri","\u25fa":"lltri","\u25fb":"EmptySmallSquare","\u25fc":"FilledSmallSquare","\u2605":"starf","\u2606":"star","\u260e":"phone","\u2640":"female","\u2642":"male","\u2660":"spades","\u2663":"clubs","\u2665":"hearts","\u2666":"diams","\u266a":"sung","\u2713":"check","\u2717":"cross","\u2720":"malt","\u2736":"sext","\u2758":"VerticalSeparator","\u27c8":"bsolhsub","\u27c9":"suphsol","\u27f5":"xlarr","\u27f6":"xrarr","\u27f7":"xharr","\u27f8":"xlArr","\u27f9":"xrArr","\u27fa":"xhArr","\u27fc":"xmap","\u27ff":"dzigrarr","\u2902":"nvlArr","\u2903":"nvrArr","\u2904":"nvHarr","\u2905":"Map","\u290c":"lbarr","\u290d":"rbarr","\u290e":"lBarr","\u290f":"rBarr","\u2910":"RBarr","\u2911":"DDotrahd","\u2912":"UpArrowBar","\u2913":"DownArrowBar","\u2916":"Rarrtl","\u2919":"latail","\u291a":"ratail","\u291b":"lAtail","\u291c":"rAtail","\u291d":"larrfs","\u291e":"rarrfs","\u291f":"larrbfs","\u2920":"rarrbfs","\u2923":"nwarhk","\u2924":"nearhk","\u2925":"searhk","\u2926":"swarhk","\u2927":"nwnear","\u2928":"toea","\u2929":"tosa","\u292a":"swnwar","\u2933":"rarrc","\u2933\u0338":"nrarrc","\u2935":"cudarrr","\u2936":"ldca","\u2937":"rdca","\u2938":"cudarrl","\u2939":"larrpl","\u293c":"curarrm","\u293d":"cularrp","\u2945":"rarrpl","\u2948":"harrcir","\u2949":"Uarrocir","\u294a":"lurdshar","\u294b":"ldrushar","\u294e":"LeftRightVector","\u294f":"RightUpDownVector","\u2950":"DownLeftRightVector","\u2951":"LeftUpDownVector","\u2952":"LeftVectorBar","\u2953":"RightVectorBar","\u2954":"RightUpVectorBar","\u2955":"RightDownVectorBar","\u2956":"DownLeftVectorBar","\u2957":"DownRightVectorBar","\u2958":"LeftUpVectorBar","\u2959":"LeftDownVectorBar","\u295a":"LeftTeeVector","\u295b":"RightTeeVector","\u295c":"RightUpTeeVector","\u295d":"RightDownTeeVector","\u295e":"DownLeftTeeVector","\u295f":"DownRightTeeVector","\u2960":"LeftUpTeeVector","\u2961":"LeftDownTeeVector","\u2962":"lHar","\u2963":"uHar","\u2964":"rHar","\u2965":"dHar","\u2966":"luruhar","\u2967":"ldrdhar","\u2968":"ruluhar","\u2969":"rdldhar","\u296a":"lharul","\u296b":"llhard","\u296c":"rharul","\u296d":"lrhard","\u296e":"udhar","\u296f":"duhar","\u2970":"RoundImplies","\u2971":"erarr","\u2972":"simrarr","\u2973":"larrsim","\u2974":"rarrsim","\u2975":"rarrap","\u2976":"ltlarr","\u2978":"gtrarr","\u2979":"subrarr","\u297b":"suplarr","\u297c":"lfisht","\u297d":"rfisht","\u297e":"ufisht","\u297f":"dfisht","\u299a":"vzigzag","\u299c":"vangrt","\u299d":"angrtvbd","\u29a4":"ange","\u29a5":"range","\u29a6":"dwangle","\u29a7":"uwangle","\u29a8":"angmsdaa","\u29a9":"angmsdab","\u29aa":"angmsdac","\u29ab":"angmsdad","\u29ac":"angmsdae","\u29ad":"angmsdaf","\u29ae":"angmsdag","\u29af":"angmsdah","\u29b0":"bemptyv","\u29b1":"demptyv","\u29b2":"cemptyv","\u29b3":"raemptyv","\u29b4":"laemptyv","\u29b5":"ohbar","\u29b6":"omid","\u29b7":"opar","\u29b9":"operp","\u29bb":"olcross","\u29bc":"odsold","\u29be":"olcir","\u29bf":"ofcir","\u29c0":"olt","\u29c1":"ogt","\u29c2":"cirscir","\u29c3":"cirE","\u29c4":"solb","\u29c5":"bsolb","\u29c9":"boxbox","\u29cd":"trisb","\u29ce":"rtriltri","\u29cf":"LeftTriangleBar","\u29cf\u0338":"NotLeftTriangleBar","\u29d0":"RightTriangleBar","\u29d0\u0338":"NotRightTriangleBar","\u29dc":"iinfin","\u29dd":"infintie","\u29de":"nvinfin","\u29e3":"eparsl","\u29e4":"smeparsl","\u29e5":"eqvparsl","\u29eb":"lozf","\u29f4":"RuleDelayed","\u29f6":"dsol","\u2a00":"xodot","\u2a01":"xoplus","\u2a02":"xotime","\u2a04":"xuplus","\u2a06":"xsqcup","\u2a0d":"fpartint","\u2a10":"cirfnint","\u2a11":"awint","\u2a12":"rppolint","\u2a13":"scpolint","\u2a14":"npolint","\u2a15":"pointint","\u2a16":"quatint","\u2a17":"intlarhk","\u2a22":"pluscir","\u2a23":"plusacir","\u2a24":"simplus","\u2a25":"plusdu","\u2a26":"plussim","\u2a27":"plustwo","\u2a29":"mcomma","\u2a2a":"minusdu","\u2a2d":"loplus","\u2a2e":"roplus","\u2a2f":"Cross","\u2a30":"timesd","\u2a31":"timesbar","\u2a33":"smashp","\u2a34":"lotimes","\u2a35":"rotimes","\u2a36":"otimesas","\u2a37":"Otimes","\u2a38":"odiv","\u2a39":"triplus","\u2a3a":"triminus","\u2a3b":"tritime","\u2a3c":"iprod","\u2a3f":"amalg","\u2a40":"capdot","\u2a42":"ncup","\u2a43":"ncap","\u2a44":"capand","\u2a45":"cupor","\u2a46":"cupcap","\u2a47":"capcup","\u2a48":"cupbrcap","\u2a49":"capbrcup","\u2a4a":"cupcup","\u2a4b":"capcap","\u2a4c":"ccups","\u2a4d":"ccaps","\u2a50":"ccupssm","\u2a53":"And","\u2a54":"Or","\u2a55":"andand","\u2a56":"oror","\u2a57":"orslope","\u2a58":"andslope","\u2a5a":"andv","\u2a5b":"orv","\u2a5c":"andd","\u2a5d":"ord","\u2a5f":"wedbar","\u2a66":"sdote","\u2a6a":"simdot","\u2a6d":"congdot","\u2a6d\u0338":"ncongdot","\u2a6e":"easter","\u2a6f":"apacir","\u2a70":"apE","\u2a70\u0338":"napE","\u2a71":"eplus","\u2a72":"pluse","\u2a73":"Esim","\u2a77":"eDDot","\u2a78":"equivDD","\u2a79":"ltcir","\u2a7a":"gtcir","\u2a7b":"ltquest","\u2a7c":"gtquest","\u2a7d":"les","\u2a7d\u0338":"nles","\u2a7e":"ges","\u2a7e\u0338":"nges","\u2a7f":"lesdot","\u2a80":"gesdot","\u2a81":"lesdoto","\u2a82":"gesdoto","\u2a83":"lesdotor","\u2a84":"gesdotol","\u2a85":"lap","\u2a86":"gap","\u2a87":"lne","\u2a88":"gne","\u2a89":"lnap","\u2a8a":"gnap","\u2a8b":"lEg","\u2a8c":"gEl","\u2a8d":"lsime","\u2a8e":"gsime","\u2a8f":"lsimg","\u2a90":"gsiml","\u2a91":"lgE","\u2a92":"glE","\u2a93":"lesges","\u2a94":"gesles","\u2a95":"els","\u2a96":"egs","\u2a97":"elsdot","\u2a98":"egsdot","\u2a99":"el","\u2a9a":"eg","\u2a9d":"siml","\u2a9e":"simg","\u2a9f":"simlE","\u2aa0":"simgE","\u2aa1":"LessLess","\u2aa1\u0338":"NotNestedLessLess","\u2aa2":"GreaterGreater","\u2aa2\u0338":"NotNestedGreaterGreater","\u2aa4":"glj","\u2aa5":"gla","\u2aa6":"ltcc","\u2aa7":"gtcc","\u2aa8":"lescc","\u2aa9":"gescc","\u2aaa":"smt","\u2aab":"lat","\u2aac":"smte","\u2aac\ufe00":"smtes","\u2aad":"late","\u2aad\ufe00":"lates","\u2aae":"bumpE","\u2aaf":"pre","\u2aaf\u0338":"npre","\u2ab0":"sce","\u2ab0\u0338":"nsce","\u2ab3":"prE","\u2ab4":"scE","\u2ab5":"prnE","\u2ab6":"scnE","\u2ab7":"prap","\u2ab8":"scap","\u2ab9":"prnap","\u2aba":"scnap","\u2abb":"Pr","\u2abc":"Sc","\u2abd":"subdot","\u2abe":"supdot","\u2abf":"subplus","\u2ac0":"supplus","\u2ac1":"submult","\u2ac2":"supmult","\u2ac3":"subedot","\u2ac4":"supedot","\u2ac5":"subE","\u2ac5\u0338":"nsubE","\u2ac6":"supE","\u2ac6\u0338":"nsupE","\u2ac7":"subsim","\u2ac8":"supsim","\u2acb\ufe00":"vsubnE","\u2acb":"subnE","\u2acc\ufe00":"vsupnE","\u2acc":"supnE","\u2acf":"csub","\u2ad0":"csup","\u2ad1":"csube","\u2ad2":"csupe","\u2ad3":"subsup","\u2ad4":"supsub","\u2ad5":"subsub","\u2ad6":"supsup","\u2ad7":"suphsub","\u2ad8":"supdsub","\u2ad9":"forkv","\u2ada":"topfork","\u2adb":"mlcp","\u2ae4":"Dashv","\u2ae6":"Vdashl","\u2ae7":"Barv","\u2ae8":"vBar","\u2ae9":"vBarv","\u2aeb":"Vbar","\u2aec":"Not","\u2aed":"bNot","\u2aee":"rnmid","\u2aef":"cirmid","\u2af0":"midcir","\u2af1":"topcir","\u2af2":"nhpar","\u2af3":"parsim","\u2afd":"parsl","\u2afd\u20e5":"nparsl","\u266d":"flat","\u266e":"natur","\u266f":"sharp","\xa4":"curren","\xa2":"cent",$:"dollar","\xa3":"pound","\xa5":"yen","\u20ac":"euro","\xb9":"sup1","\xbd":"half","\u2153":"frac13","\xbc":"frac14","\u2155":"frac15","\u2159":"frac16","\u215b":"frac18","\xb2":"sup2","\u2154":"frac23","\u2156":"frac25","\xb3":"sup3","\xbe":"frac34","\u2157":"frac35","\u215c":"frac38","\u2158":"frac45","\u215a":"frac56","\u215d":"frac58","\u215e":"frac78",\u{1d4b6}:"ascr",\u{1d552}:"aopf",\u{1d51e}:"afr",\u{1d538}:"Aopf",\u{1d504}:"Afr",\u{1d49c}:"Ascr",\u00aa:"ordf",\u00e1:"aacute",\u00c1:"Aacute",\u00e0:"agrave",\u00c0:"Agrave",\u0103:"abreve",\u0102:"Abreve",\u00e2:"acirc",\u00c2:"Acirc",\u00e5:"aring",\u00c5:"angst",\u00e4:"auml",\u00c4:"Auml",\u00e3:"atilde",\u00c3:"Atilde",\u0105:"aogon",\u0104:"Aogon",\u0101:"amacr",\u0100:"Amacr",\u00e6:"aelig",\u00c6:"AElig",\u{1d4b7}:"bscr",\u{1d553}:"bopf",\u{1d51f}:"bfr",\u{1d539}:"Bopf",\u212c:"Bscr",\u{1d505}:"Bfr",\u{1d520}:"cfr",\u{1d4b8}:"cscr",\u{1d554}:"copf",\u212d:"Cfr",\u{1d49e}:"Cscr",\u2102:"Copf",\u0107:"cacute",\u0106:"Cacute",\u0109:"ccirc",\u0108:"Ccirc",\u010d:"ccaron",\u010c:"Ccaron",\u010b:"cdot",\u010a:"Cdot",\u00e7:"ccedil",\u00c7:"Ccedil","\u2105":"incare",\u{1d521}:"dfr",\u2146:"dd",\u{1d555}:"dopf",\u{1d4b9}:"dscr",\u{1d49f}:"Dscr",\u{1d507}:"Dfr",\u2145:"DD",\u{1d53b}:"Dopf",\u010f:"dcaron",\u010e:"Dcaron",\u0111:"dstrok",\u0110:"Dstrok",\u00f0:"eth",\u00d0:"ETH",\u2147:"ee",\u212f:"escr",\u{1d522}:"efr",\u{1d556}:"eopf",\u2130:"Escr",\u{1d508}:"Efr",\u{1d53c}:"Eopf",\u00e9:"eacute",\u00c9:"Eacute",\u00e8:"egrave",\u00c8:"Egrave",\u00ea:"ecirc",\u00ca:"Ecirc",\u011b:"ecaron",\u011a:"Ecaron",\u00eb:"euml",\u00cb:"Euml",\u0117:"edot",\u0116:"Edot",\u0119:"eogon",\u0118:"Eogon",\u0113:"emacr",\u0112:"Emacr",\u{1d523}:"ffr",\u{1d557}:"fopf",\u{1d4bb}:"fscr",\u{1d509}:"Ffr",\u{1d53d}:"Fopf",\u2131:"Fscr",\ufb00:"fflig",\ufb03:"ffilig",\ufb04:"ffllig",\ufb01:"filig",fj:"fjlig",\ufb02:"fllig",\u0192:"fnof",\u210a:"gscr",\u{1d558}:"gopf",\u{1d524}:"gfr",\u{1d4a2}:"Gscr",\u{1d53e}:"Gopf",\u{1d50a}:"Gfr",\u01f5:"gacute",\u011f:"gbreve",\u011e:"Gbreve",\u011d:"gcirc",\u011c:"Gcirc",\u0121:"gdot",\u0120:"Gdot",\u0122:"Gcedil",\u{1d525}:"hfr",\u210e:"planckh",\u{1d4bd}:"hscr",\u{1d559}:"hopf",\u210b:"Hscr",\u210c:"Hfr",\u210d:"Hopf",\u0125:"hcirc",\u0124:"Hcirc",\u210f:"hbar",\u0127:"hstrok",\u0126:"Hstrok",\u{1d55a}:"iopf",\u{1d526}:"ifr",\u{1d4be}:"iscr",\u2148:"ii",\u{1d540}:"Iopf",\u2110:"Iscr",\u2111:"Im",\u00ed:"iacute",\u00cd:"Iacute",\u00ec:"igrave",\u00cc:"Igrave",\u00ee:"icirc",\u00ce:"Icirc",\u00ef:"iuml",\u00cf:"Iuml",\u0129:"itilde",\u0128:"Itilde",\u0130:"Idot",\u012f:"iogon",\u012e:"Iogon",\u012b:"imacr",\u012a:"Imacr",\u0133:"ijlig",\u0132:"IJlig",\u0131:"imath",\u{1d4bf}:"jscr",\u{1d55b}:"jopf",\u{1d527}:"jfr",\u{1d4a5}:"Jscr",\u{1d50d}:"Jfr",\u{1d541}:"Jopf",\u0135:"jcirc",\u0134:"Jcirc",\u0237:"jmath",\u{1d55c}:"kopf",\u{1d4c0}:"kscr",\u{1d528}:"kfr",\u{1d4a6}:"Kscr",\u{1d542}:"Kopf",\u{1d50e}:"Kfr",\u0137:"kcedil",\u0136:"Kcedil",\u{1d529}:"lfr",\u{1d4c1}:"lscr",\u2113:"ell",\u{1d55d}:"lopf",\u2112:"Lscr",\u{1d50f}:"Lfr",\u{1d543}:"Lopf",\u013a:"lacute",\u0139:"Lacute",\u013e:"lcaron",\u013d:"Lcaron",\u013c:"lcedil",\u013b:"Lcedil",\u0142:"lstrok",\u0141:"Lstrok",\u0140:"lmidot",\u013f:"Lmidot",\u{1d52a}:"mfr",\u{1d55e}:"mopf",\u{1d4c2}:"mscr",\u{1d510}:"Mfr",\u{1d544}:"Mopf",\u2133:"Mscr",\u{1d52b}:"nfr",\u{1d55f}:"nopf",\u{1d4c3}:"nscr",\u2115:"Nopf",\u{1d4a9}:"Nscr",\u{1d511}:"Nfr",\u0144:"nacute",\u0143:"Nacute",\u0148:"ncaron",\u0147:"Ncaron",\u00f1:"ntilde",\u00d1:"Ntilde",\u0146:"ncedil",\u0145:"Ncedil","\u2116":"numero",\u014b:"eng",\u014a:"ENG",\u{1d560}:"oopf",\u{1d52c}:"ofr",\u2134:"oscr",\u{1d4aa}:"Oscr",\u{1d512}:"Ofr",\u{1d546}:"Oopf",\u00ba:"ordm",\u00f3:"oacute",\u00d3:"Oacute",\u00f2:"ograve",\u00d2:"Ograve",\u00f4:"ocirc",\u00d4:"Ocirc",\u00f6:"ouml",\u00d6:"Ouml",\u0151:"odblac",\u0150:"Odblac",\u00f5:"otilde",\u00d5:"Otilde",\u00f8:"oslash",\u00d8:"Oslash",\u014d:"omacr",\u014c:"Omacr",\u0153:"oelig",\u0152:"OElig",\u{1d52d}:"pfr",\u{1d4c5}:"pscr",\u{1d561}:"popf",\u2119:"Popf",\u{1d513}:"Pfr",\u{1d4ab}:"Pscr",\u{1d562}:"qopf",\u{1d52e}:"qfr",\u{1d4c6}:"qscr",\u{1d4ac}:"Qscr",\u{1d514}:"Qfr",\u211a:"Qopf",\u0138:"kgreen",\u{1d52f}:"rfr",\u{1d563}:"ropf",\u{1d4c7}:"rscr",\u211b:"Rscr",\u211c:"Re",\u211d:"Ropf",\u0155:"racute",\u0154:"Racute",\u0159:"rcaron",\u0158:"Rcaron",\u0157:"rcedil",\u0156:"Rcedil",\u{1d564}:"sopf",\u{1d4c8}:"sscr",\u{1d530}:"sfr",\u{1d54a}:"Sopf",\u{1d516}:"Sfr",\u{1d4ae}:"Sscr","\u24c8":"oS",\u015b:"sacute",\u015a:"Sacute",\u015d:"scirc",\u015c:"Scirc",\u0161:"scaron",\u0160:"Scaron",\u015f:"scedil",\u015e:"Scedil",\u00df:"szlig",\u{1d531}:"tfr",\u{1d4c9}:"tscr",\u{1d565}:"topf",\u{1d4af}:"Tscr",\u{1d517}:"Tfr",\u{1d54b}:"Topf",\u0165:"tcaron",\u0164:"Tcaron",\u0163:"tcedil",\u0162:"Tcedil","\u2122":"trade",\u0167:"tstrok",\u0166:"Tstrok",\u{1d4ca}:"uscr",\u{1d566}:"uopf",\u{1d532}:"ufr",\u{1d54c}:"Uopf",\u{1d518}:"Ufr",\u{1d4b0}:"Uscr",\u00fa:"uacute",\u00da:"Uacute",\u00f9:"ugrave",\u00d9:"Ugrave",\u016d:"ubreve",\u016c:"Ubreve",\u00fb:"ucirc",\u00db:"Ucirc",\u016f:"uring",\u016e:"Uring",\u00fc:"uuml",\u00dc:"Uuml",\u0171:"udblac",\u0170:"Udblac",\u0169:"utilde",\u0168:"Utilde",\u0173:"uogon",\u0172:"Uogon",\u016b:"umacr",\u016a:"Umacr",\u{1d533}:"vfr",\u{1d567}:"vopf",\u{1d4cb}:"vscr",\u{1d519}:"Vfr",\u{1d54d}:"Vopf",\u{1d4b1}:"Vscr",\u{1d568}:"wopf",\u{1d4cc}:"wscr",\u{1d534}:"wfr",\u{1d4b2}:"Wscr",\u{1d54e}:"Wopf",\u{1d51a}:"Wfr",\u0175:"wcirc",\u0174:"Wcirc",\u{1d535}:"xfr",\u{1d4cd}:"xscr",\u{1d569}:"xopf",\u{1d54f}:"Xopf",\u{1d51b}:"Xfr",\u{1d4b3}:"Xscr",\u{1d536}:"yfr",\u{1d4ce}:"yscr",\u{1d56a}:"yopf",\u{1d4b4}:"Yscr",\u{1d51c}:"Yfr",\u{1d550}:"Yopf",\u00fd:"yacute",\u00dd:"Yacute",\u0177:"ycirc",\u0176:"Ycirc",\u00ff:"yuml",\u0178:"Yuml",\u{1d4cf}:"zscr",\u{1d537}:"zfr",\u{1d56b}:"zopf",\u2128:"Zfr",\u2124:"Zopf",\u{1d4b5}:"Zscr",\u017a:"zacute",\u0179:"Zacute",\u017e:"zcaron",\u017d:"Zcaron",\u017c:"zdot",\u017b:"Zdot",\u01b5:"imped",\u00fe:"thorn",\u00de:"THORN",\u0149:"napos",\u03b1:"alpha",\u0391:"Alpha",\u03b2:"beta",\u0392:"Beta",\u03b3:"gamma",\u0393:"Gamma",\u03b4:"delta",\u0394:"Delta",\u03b5:"epsi",\u03f5:"epsiv",\u0395:"Epsilon",\u03dd:"gammad",\u03dc:"Gammad",\u03b6:"zeta",\u0396:"Zeta",\u03b7:"eta",\u0397:"Eta",\u03b8:"theta",\u03d1:"thetav",\u0398:"Theta",\u03b9:"iota",\u0399:"Iota",\u03ba:"kappa",\u03f0:"kappav",\u039a:"Kappa",\u03bb:"lambda",\u039b:"Lambda",\u03bc:"mu",\u00b5:"micro",\u039c:"Mu",\u03bd:"nu",\u039d:"Nu",\u03be:"xi",\u039e:"Xi",\u03bf:"omicron",\u039f:"Omicron",\u03c0:"pi",\u03d6:"piv",\u03a0:"Pi",\u03c1:"rho",\u03f1:"rhov",\u03a1:"Rho",\u03c3:"sigma",\u03a3:"Sigma",\u03c2:"sigmaf",\u03c4:"tau",\u03a4:"Tau",\u03c5:"upsi",\u03a5:"Upsilon",\u03d2:"Upsi",\u03c6:"phi",\u03d5:"phiv",\u03a6:"Phi",\u03c7:"chi",\u03a7:"Chi",\u03c8:"psi",\u03a8:"Psi",\u03c9:"omega",\u03a9:"ohm",\u0430:"acy",\u0410:"Acy",\u0431:"bcy",\u0411:"Bcy",\u0432:"vcy",\u0412:"Vcy",\u0433:"gcy",\u0413:"Gcy",\u0453:"gjcy",\u0403:"GJcy",\u0434:"dcy",\u0414:"Dcy",\u0452:"djcy",\u0402:"DJcy",\u0435:"iecy",\u0415:"IEcy",\u0451:"iocy",\u0401:"IOcy",\u0454:"jukcy",\u0404:"Jukcy",\u0436:"zhcy",\u0416:"ZHcy",\u0437:"zcy",\u0417:"Zcy",\u0455:"dscy",\u0405:"DScy",\u0438:"icy",\u0418:"Icy",\u0456:"iukcy",\u0406:"Iukcy",\u0457:"yicy",\u0407:"YIcy",\u0439:"jcy",\u0419:"Jcy",\u0458:"jsercy",\u0408:"Jsercy",\u043a:"kcy",\u041a:"Kcy",\u045c:"kjcy",\u040c:"KJcy",\u043b:"lcy",\u041b:"Lcy",\u0459:"ljcy",\u0409:"LJcy",\u043c:"mcy",\u041c:"Mcy",\u043d:"ncy",\u041d:"Ncy",\u045a:"njcy",\u040a:"NJcy",\u043e:"ocy",\u041e:"Ocy",\u043f:"pcy",\u041f:"Pcy",\u0440:"rcy",\u0420:"Rcy",\u0441:"scy",\u0421:"Scy",\u0442:"tcy",\u0422:"Tcy",\u045b:"tshcy",\u040b:"TSHcy",\u0443:"ucy",\u0423:"Ucy",\u045e:"ubrcy",\u040e:"Ubrcy",\u0444:"fcy",\u0424:"Fcy",\u0445:"khcy",\u0425:"KHcy",\u0446:"tscy",\u0426:"TScy",\u0447:"chcy",\u0427:"CHcy",\u045f:"dzcy",\u040f:"DZcy",\u0448:"shcy",\u0428:"SHcy",\u0449:"shchcy",\u0429:"SHCHcy",\u044a:"hardcy",\u042a:"HARDcy",\u044b:"ycy",\u042b:"Ycy",\u044c:"softcy",\u042c:"SOFTcy",\u044d:"ecy",\u042d:"Ecy",\u044e:"yucy",\u042e:"YUcy",\u044f:"yacy",\u042f:"YAcy",\u2135:"aleph",\u2136:"beth",\u2137:"gimel",\u2138:"daleth"},P=/["&'<>`]/g,D={'"':""","&":"&","'":"'","<":"<",">":">","`":"`"},k=/&#(?:[xX][^a-fA-F0-9]|[^0-9xX])/,S=/[\0-\x08\x0B\x0E-\x1F\x7F-\x9F\uFDD0-\uFDEF\uFFFE\uFFFF]|[\uD83F\uD87F\uD8BF\uD8FF\uD93F\uD97F\uD9BF\uD9FF\uDA3F\uDA7F\uDABF\uDAFF\uDB3F\uDB7F\uDBBF\uDBFF][\uDFFE\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,x=/&(CounterClockwiseContourIntegral|DoubleLongLeftRightArrow|ClockwiseContourIntegral|NotNestedGreaterGreater|NotSquareSupersetEqual|DiacriticalDoubleAcute|NotRightTriangleEqual|NotSucceedsSlantEqual|NotPrecedesSlantEqual|CloseCurlyDoubleQuote|NegativeVeryThinSpace|DoubleContourIntegral|FilledVerySmallSquare|CapitalDifferentialD|OpenCurlyDoubleQuote|EmptyVerySmallSquare|NestedGreaterGreater|DoubleLongRightArrow|NotLeftTriangleEqual|NotGreaterSlantEqual|ReverseUpEquilibrium|DoubleLeftRightArrow|NotSquareSubsetEqual|NotDoubleVerticalBar|RightArrowLeftArrow|NotGreaterFullEqual|NotRightTriangleBar|SquareSupersetEqual|DownLeftRightVector|DoubleLongLeftArrow|leftrightsquigarrow|LeftArrowRightArrow|NegativeMediumSpace|blacktriangleright|RightDownVectorBar|PrecedesSlantEqual|RightDoubleBracket|SucceedsSlantEqual|NotLeftTriangleBar|RightTriangleEqual|SquareIntersection|RightDownTeeVector|ReverseEquilibrium|NegativeThickSpace|longleftrightarrow|Longleftrightarrow|LongLeftRightArrow|DownRightTeeVector|DownRightVectorBar|GreaterSlantEqual|SquareSubsetEqual|LeftDownVectorBar|LeftDoubleBracket|VerticalSeparator|rightleftharpoons|NotGreaterGreater|NotSquareSuperset|blacktriangleleft|blacktriangledown|NegativeThinSpace|LeftDownTeeVector|NotLessSlantEqual|leftrightharpoons|DoubleUpDownArrow|DoubleVerticalBar|LeftTriangleEqual|FilledSmallSquare|twoheadrightarrow|NotNestedLessLess|DownLeftTeeVector|DownLeftVectorBar|RightAngleBracket|NotTildeFullEqual|NotReverseElement|RightUpDownVector|DiacriticalTilde|NotSucceedsTilde|circlearrowright|NotPrecedesEqual|rightharpoondown|DoubleRightArrow|NotSucceedsEqual|NonBreakingSpace|NotRightTriangle|LessEqualGreater|RightUpTeeVector|LeftAngleBracket|GreaterFullEqual|DownArrowUpArrow|RightUpVectorBar|twoheadleftarrow|GreaterEqualLess|downharpoonright|RightTriangleBar|ntrianglerighteq|NotSupersetEqual|LeftUpDownVector|DiacriticalAcute|rightrightarrows|vartriangleright|UpArrowDownArrow|DiacriticalGrave|UnderParenthesis|EmptySmallSquare|LeftUpVectorBar|leftrightarrows|DownRightVector|downharpoonleft|trianglerighteq|ShortRightArrow|OverParenthesis|DoubleLeftArrow|DoubleDownArrow|NotSquareSubset|bigtriangledown|ntrianglelefteq|UpperRightArrow|curvearrowright|vartriangleleft|NotLeftTriangle|nleftrightarrow|LowerRightArrow|NotHumpDownHump|NotGreaterTilde|rightthreetimes|LeftUpTeeVector|NotGreaterEqual|straightepsilon|LeftTriangleBar|rightsquigarrow|ContourIntegral|rightleftarrows|CloseCurlyQuote|RightDownVector|LeftRightVector|nLeftrightarrow|leftharpoondown|circlearrowleft|SquareSuperset|OpenCurlyQuote|hookrightarrow|HorizontalLine|DiacriticalDot|NotLessGreater|ntriangleright|DoubleRightTee|InvisibleComma|InvisibleTimes|LowerLeftArrow|DownLeftVector|NotSubsetEqual|curvearrowleft|trianglelefteq|NotVerticalBar|TildeFullEqual|downdownarrows|NotGreaterLess|RightTeeVector|ZeroWidthSpace|looparrowright|LongRightArrow|doublebarwedge|ShortLeftArrow|ShortDownArrow|RightVectorBar|GreaterGreater|ReverseElement|rightharpoonup|LessSlantEqual|leftthreetimes|upharpoonright|rightarrowtail|LeftDownVector|Longrightarrow|NestedLessLess|UpperLeftArrow|nshortparallel|leftleftarrows|leftrightarrow|Leftrightarrow|LeftRightArrow|longrightarrow|upharpoonleft|RightArrowBar|ApplyFunction|LeftTeeVector|leftarrowtail|NotEqualTilde|varsubsetneqq|varsupsetneqq|RightTeeArrow|SucceedsEqual|SucceedsTilde|LeftVectorBar|SupersetEqual|hookleftarrow|DifferentialD|VerticalTilde|VeryThinSpace|blacktriangle|bigtriangleup|LessFullEqual|divideontimes|leftharpoonup|UpEquilibrium|ntriangleleft|RightTriangle|measuredangle|shortparallel|longleftarrow|Longleftarrow|LongLeftArrow|DoubleLeftTee|Poincareplane|PrecedesEqual|triangleright|DoubleUpArrow|RightUpVector|fallingdotseq|looparrowleft|PrecedesTilde|NotTildeEqual|NotTildeTilde|smallsetminus|Proportional|triangleleft|triangledown|UnderBracket|NotHumpEqual|exponentiale|ExponentialE|NotLessTilde|HilbertSpace|RightCeiling|blacklozenge|varsupsetneq|HumpDownHump|GreaterEqual|VerticalLine|LeftTeeArrow|NotLessEqual|DownTeeArrow|LeftTriangle|varsubsetneq|Intersection|NotCongruent|DownArrowBar|LeftUpVector|LeftArrowBar|risingdotseq|GreaterTilde|RoundImplies|SquareSubset|ShortUpArrow|NotSuperset|quaternions|precnapprox|backepsilon|preccurlyeq|OverBracket|blacksquare|MediumSpace|VerticalBar|circledcirc|circleddash|CircleMinus|CircleTimes|LessGreater|curlyeqprec|curlyeqsucc|diamondsuit|UpDownArrow|Updownarrow|RuleDelayed|Rrightarrow|updownarrow|RightVector|nRightarrow|nrightarrow|eqslantless|LeftCeiling|Equilibrium|SmallCircle|expectation|NotSucceeds|thickapprox|GreaterLess|SquareUnion|NotPrecedes|NotLessLess|straightphi|succnapprox|succcurlyeq|SubsetEqual|sqsupseteq|Proportion|Laplacetrf|ImaginaryI|supsetneqq|NotGreater|gtreqqless|NotElement|ThickSpace|TildeEqual|TildeTilde|Fouriertrf|rmoustache|EqualTilde|eqslantgtr|UnderBrace|LeftVector|UpArrowBar|nLeftarrow|nsubseteqq|subsetneqq|nsupseteqq|nleftarrow|succapprox|lessapprox|UpTeeArrow|upuparrows|curlywedge|lesseqqgtr|varepsilon|varnothing|RightFloor|complement|CirclePlus|sqsubseteq|Lleftarrow|circledast|RightArrow|Rightarrow|rightarrow|lmoustache|Bernoullis|precapprox|mapstoleft|mapstodown|longmapsto|dotsquare|downarrow|DoubleDot|nsubseteq|supsetneq|leftarrow|nsupseteq|subsetneq|ThinSpace|ngeqslant|subseteqq|HumpEqual|NotSubset|triangleq|NotCupCap|lesseqgtr|heartsuit|TripleDot|Leftarrow|Coproduct|Congruent|varpropto|complexes|gvertneqq|LeftArrow|LessTilde|supseteqq|MinusPlus|CircleDot|nleqslant|NotExists|gtreqless|nparallel|UnionPlus|LeftFloor|checkmark|CenterDot|centerdot|Mellintrf|gtrapprox|bigotimes|OverBrace|spadesuit|therefore|pitchfork|rationals|PlusMinus|Backslash|Therefore|DownBreve|backsimeq|backprime|DownArrow|nshortmid|Downarrow|lvertneqq|eqvparsl|imagline|imagpart|infintie|integers|Integral|intercal|LessLess|Uarrocir|intlarhk|sqsupset|angmsdaf|sqsubset|llcorner|vartheta|cupbrcap|lnapprox|Superset|SuchThat|succnsim|succneqq|angmsdag|biguplus|curlyvee|trpezium|Succeeds|NotTilde|bigwedge|angmsdah|angrtvbd|triminus|cwconint|fpartint|lrcorner|smeparsl|subseteq|urcorner|lurdshar|laemptyv|DDotrahd|approxeq|ldrushar|awconint|mapstoup|backcong|shortmid|triangle|geqslant|gesdotol|timesbar|circledR|circledS|setminus|multimap|naturals|scpolint|ncongdot|RightTee|boxminus|gnapprox|boxtimes|andslope|thicksim|angmsdaa|varsigma|cirfnint|rtriltri|angmsdab|rppolint|angmsdac|barwedge|drbkarow|clubsuit|thetasym|bsolhsub|capbrcup|dzigrarr|doteqdot|DotEqual|dotminus|UnderBar|NotEqual|realpart|otimesas|ulcorner|hksearow|hkswarow|parallel|PartialD|elinters|emptyset|plusacir|bbrktbrk|angmsdad|pointint|bigoplus|angmsdae|Precedes|bigsqcup|varkappa|notindot|supseteq|precneqq|precnsim|profalar|profline|profsurf|leqslant|lesdotor|raemptyv|subplus|notnivb|notnivc|subrarr|zigrarr|vzigzag|submult|subedot|Element|between|cirscir|larrbfs|larrsim|lotimes|lbrksld|lbrkslu|lozenge|ldrdhar|dbkarow|bigcirc|epsilon|simrarr|simplus|ltquest|Epsilon|luruhar|gtquest|maltese|npolint|eqcolon|npreceq|bigodot|ddagger|gtrless|bnequiv|harrcir|ddotseq|equivDD|backsim|demptyv|nsqsube|nsqsupe|Upsilon|nsubset|upsilon|minusdu|nsucceq|swarrow|nsupset|coloneq|searrow|boxplus|napprox|natural|asympeq|alefsym|congdot|nearrow|bigstar|diamond|supplus|tritime|LeftTee|nvinfin|triplus|NewLine|nvltrie|nvrtrie|nwarrow|nexists|Diamond|ruluhar|Implies|supmult|angzarr|suplarr|suphsub|questeq|because|digamma|Because|olcross|bemptyv|omicron|Omicron|rotimes|NoBreak|intprod|angrtvb|orderof|uwangle|suphsol|lesdoto|orslope|DownTee|realine|cudarrl|rdldhar|OverBar|supedot|lessdot|supdsub|topfork|succsim|rbrkslu|rbrksld|pertenk|cudarrr|isindot|planckh|lessgtr|pluscir|gesdoto|plussim|plustwo|lesssim|cularrp|rarrsim|Cayleys|notinva|notinvb|notinvc|UpArrow|Uparrow|uparrow|NotLess|dwangle|precsim|Product|curarrm|Cconint|dotplus|rarrbfs|ccupssm|Cedilla|cemptyv|notniva|quatint|frac35|frac38|frac45|frac56|frac58|frac78|tridot|xoplus|gacute|gammad|Gammad|lfisht|lfloor|bigcup|sqsupe|gbreve|Gbreve|lharul|sqsube|sqcups|Gcedil|apacir|llhard|lmidot|Lmidot|lmoust|andand|sqcaps|approx|Abreve|spades|circeq|tprime|divide|topcir|Assign|topbot|gesdot|divonx|xuplus|timesd|gesles|atilde|solbar|SOFTcy|loplus|timesb|lowast|lowbar|dlcorn|dlcrop|softcy|dollar|lparlt|thksim|lrhard|Atilde|lsaquo|smashp|bigvee|thinsp|wreath|bkarow|lsquor|lstrok|Lstrok|lthree|ltimes|ltlarr|DotDot|simdot|ltrPar|weierp|xsqcup|angmsd|sigmav|sigmaf|zeetrf|Zcaron|zcaron|mapsto|vsupne|thetav|cirmid|marker|mcomma|Zacute|vsubnE|there4|gtlPar|vsubne|bottom|gtrarr|SHCHcy|shchcy|midast|midcir|middot|minusb|minusd|gtrdot|bowtie|sfrown|mnplus|models|colone|seswar|Colone|mstpos|searhk|gtrsim|nacute|Nacute|boxbox|telrec|hairsp|Tcedil|nbumpe|scnsim|ncaron|Ncaron|ncedil|Ncedil|hamilt|Scedil|nearhk|hardcy|HARDcy|tcedil|Tcaron|commat|nequiv|nesear|tcaron|target|hearts|nexist|varrho|scedil|Scaron|scaron|hellip|Sacute|sacute|hercon|swnwar|compfn|rtimes|rthree|rsquor|rsaquo|zacute|wedgeq|homtht|barvee|barwed|Barwed|rpargt|horbar|conint|swarhk|roplus|nltrie|hslash|hstrok|Hstrok|rmoust|Conint|bprime|hybull|hyphen|iacute|Iacute|supsup|supsub|supsim|varphi|coprod|brvbar|agrave|Supset|supset|igrave|Igrave|notinE|Agrave|iiiint|iinfin|copysr|wedbar|Verbar|vangrt|becaus|incare|verbar|inodot|bullet|drcorn|intcal|drcrop|cularr|vellip|Utilde|bumpeq|cupcap|dstrok|Dstrok|CupCap|cupcup|cupdot|eacute|Eacute|supdot|iquest|easter|ecaron|Ecaron|ecolon|isinsv|utilde|itilde|Itilde|curarr|succeq|Bumpeq|cacute|ulcrop|nparsl|Cacute|nprcue|egrave|Egrave|nrarrc|nrarrw|subsup|subsub|nrtrie|jsercy|nsccue|Jsercy|kappav|kcedil|Kcedil|subsim|ulcorn|nsimeq|egsdot|veebar|kgreen|capand|elsdot|Subset|subset|curren|aacute|lacute|Lacute|emptyv|ntilde|Ntilde|lagran|lambda|Lambda|capcap|Ugrave|langle|subdot|emsp13|numero|emsp14|nvdash|nvDash|nVdash|nVDash|ugrave|ufisht|nvHarr|larrfs|nvlArr|larrhk|larrlp|larrpl|nvrArr|Udblac|nwarhk|larrtl|nwnear|oacute|Oacute|latail|lAtail|sstarf|lbrace|odblac|Odblac|lbrack|udblac|odsold|eparsl|lcaron|Lcaron|ograve|Ograve|lcedil|Lcedil|Aacute|ssmile|ssetmn|squarf|ldquor|capcup|ominus|cylcty|rharul|eqcirc|dagger|rfloor|rfisht|Dagger|daleth|equals|origof|capdot|equest|dcaron|Dcaron|rdquor|oslash|Oslash|otilde|Otilde|otimes|Otimes|urcrop|Ubreve|ubreve|Yacute|Uacute|uacute|Rcedil|rcedil|urcorn|parsim|Rcaron|Vdashl|rcaron|Tstrok|percnt|period|permil|Exists|yacute|rbrack|rbrace|phmmat|ccaron|Ccaron|planck|ccedil|plankv|tstrok|female|plusdo|plusdu|ffilig|plusmn|ffllig|Ccedil|rAtail|dfisht|bernou|ratail|Rarrtl|rarrtl|angsph|rarrpl|rarrlp|rarrhk|xwedge|xotime|forall|ForAll|Vvdash|vsupnE|preceq|bigcap|frac12|frac13|frac14|primes|rarrfs|prnsim|frac15|Square|frac16|square|lesdot|frac18|frac23|propto|prurel|rarrap|rangle|puncsp|frac25|Racute|qprime|racute|lesges|frac34|abreve|AElig|eqsim|utdot|setmn|urtri|Equal|Uring|seArr|uring|searr|dashv|Dashv|mumap|nabla|iogon|Iogon|sdote|sdotb|scsim|napid|napos|equiv|natur|Acirc|dblac|erarr|nbump|iprod|erDot|ucirc|awint|esdot|angrt|ncong|isinE|scnap|Scirc|scirc|ndash|isins|Ubrcy|nearr|neArr|isinv|nedot|ubrcy|acute|Ycirc|iukcy|Iukcy|xutri|nesim|caret|jcirc|Jcirc|caron|twixt|ddarr|sccue|exist|jmath|sbquo|ngeqq|angst|ccaps|lceil|ngsim|UpTee|delta|Delta|rtrif|nharr|nhArr|nhpar|rtrie|jukcy|Jukcy|kappa|rsquo|Kappa|nlarr|nlArr|TSHcy|rrarr|aogon|Aogon|fflig|xrarr|tshcy|ccirc|nleqq|filig|upsih|nless|dharl|nlsim|fjlig|ropar|nltri|dharr|robrk|roarr|fllig|fltns|roang|rnmid|subnE|subne|lAarr|trisb|Ccirc|acirc|ccups|blank|VDash|forkv|Vdash|langd|cedil|blk12|blk14|laquo|strns|diams|notin|vDash|larrb|blk34|block|disin|uplus|vdash|vBarv|aelig|starf|Wedge|check|xrArr|lates|lbarr|lBarr|notni|lbbrk|bcong|frasl|lbrke|frown|vrtri|vprop|vnsup|gamma|Gamma|wedge|xodot|bdquo|srarr|doteq|ldquo|boxdl|boxdL|gcirc|Gcirc|boxDl|boxDL|boxdr|boxdR|boxDr|TRADE|trade|rlhar|boxDR|vnsub|npart|vltri|rlarr|boxhd|boxhD|nprec|gescc|nrarr|nrArr|boxHd|boxHD|boxhu|boxhU|nrtri|boxHu|clubs|boxHU|times|colon|Colon|gimel|xlArr|Tilde|nsime|tilde|nsmid|nspar|THORN|thorn|xlarr|nsube|nsubE|thkap|xhArr|comma|nsucc|boxul|boxuL|nsupe|nsupE|gneqq|gnsim|boxUl|boxUL|grave|boxur|boxuR|boxUr|boxUR|lescc|angle|bepsi|boxvh|varpi|boxvH|numsp|Theta|gsime|gsiml|theta|boxVh|boxVH|boxvl|gtcir|gtdot|boxvL|boxVl|boxVL|crarr|cross|Cross|nvsim|boxvr|nwarr|nwArr|sqsup|dtdot|Uogon|lhard|lharu|dtrif|ocirc|Ocirc|lhblk|duarr|odash|sqsub|Hacek|sqcup|llarr|duhar|oelig|OElig|ofcir|boxvR|uogon|lltri|boxVr|csube|uuarr|ohbar|csupe|ctdot|olarr|olcir|harrw|oline|sqcap|omacr|Omacr|omega|Omega|boxVR|aleph|lneqq|lnsim|loang|loarr|rharu|lobrk|hcirc|operp|oplus|rhard|Hcirc|orarr|Union|order|ecirc|Ecirc|cuepr|szlig|cuesc|breve|reals|eDDot|Breve|hoarr|lopar|utrif|rdquo|Umacr|umacr|efDot|swArr|ultri|alpha|rceil|ovbar|swarr|Wcirc|wcirc|smtes|smile|bsemi|lrarr|aring|parsl|lrhar|bsime|uhblk|lrtri|cupor|Aring|uharr|uharl|slarr|rbrke|bsolb|lsime|rbbrk|RBarr|lsimg|phone|rBarr|rbarr|icirc|lsquo|Icirc|emacr|Emacr|ratio|simne|plusb|simlE|simgE|simeq|pluse|ltcir|ltdot|empty|xharr|xdtri|iexcl|Alpha|ltrie|rarrw|pound|ltrif|xcirc|bumpe|prcue|bumpE|asymp|amacr|cuvee|Sigma|sigma|iiint|udhar|iiota|ijlig|IJlig|supnE|imacr|Imacr|prime|Prime|image|prnap|eogon|Eogon|rarrc|mdash|mDDot|cuwed|imath|supne|imped|Amacr|udarr|prsim|micro|rarrb|cwint|raquo|infin|eplus|range|rangd|Ucirc|radic|minus|amalg|veeeq|rAarr|epsiv|ycirc|quest|sharp|quot|zwnj|Qscr|race|qscr|Qopf|qopf|qint|rang|Rang|Zscr|zscr|Zopf|zopf|rarr|rArr|Rarr|Pscr|pscr|prop|prod|prnE|prec|ZHcy|zhcy|prap|Zeta|zeta|Popf|popf|Zdot|plus|zdot|Yuml|yuml|phiv|YUcy|yucy|Yscr|yscr|perp|Yopf|yopf|part|para|YIcy|Ouml|rcub|yicy|YAcy|rdca|ouml|osol|Oscr|rdsh|yacy|real|oscr|xvee|andd|rect|andv|Xscr|oror|ordm|ordf|xscr|ange|aopf|Aopf|rHar|Xopf|opar|Oopf|xopf|xnis|rhov|oopf|omid|xmap|oint|apid|apos|ogon|ascr|Ascr|odot|odiv|xcup|xcap|ocir|oast|nvlt|nvle|nvgt|nvge|nvap|Wscr|wscr|auml|ntlg|ntgl|nsup|nsub|nsim|Nscr|nscr|nsce|Wopf|ring|npre|wopf|npar|Auml|Barv|bbrk|Nopf|nopf|nmid|nLtv|beta|ropf|Ropf|Beta|beth|nles|rpar|nleq|bnot|bNot|nldr|NJcy|rscr|Rscr|Vscr|vscr|rsqb|njcy|bopf|nisd|Bopf|rtri|Vopf|nGtv|ngtr|vopf|boxh|boxH|boxv|nges|ngeq|boxV|bscr|scap|Bscr|bsim|Vert|vert|bsol|bull|bump|caps|cdot|ncup|scnE|ncap|nbsp|napE|Cdot|cent|sdot|Vbar|nang|vBar|chcy|Mscr|mscr|sect|semi|CHcy|Mopf|mopf|sext|circ|cire|mldr|mlcp|cirE|comp|shcy|SHcy|vArr|varr|cong|copf|Copf|copy|COPY|malt|male|macr|lvnE|cscr|ltri|sime|ltcc|simg|Cscr|siml|csub|Uuml|lsqb|lsim|uuml|csup|Lscr|lscr|utri|smid|lpar|cups|smte|lozf|darr|Lopf|Uscr|solb|lopf|sopf|Sopf|lneq|uscr|spar|dArr|lnap|Darr|dash|Sqrt|LJcy|ljcy|lHar|dHar|Upsi|upsi|diam|lesg|djcy|DJcy|leqq|dopf|Dopf|dscr|Dscr|dscy|ldsh|ldca|squf|DScy|sscr|Sscr|dsol|lcub|late|star|Star|Uopf|Larr|lArr|larr|uopf|dtri|dzcy|sube|subE|Lang|lang|Kscr|kscr|Kopf|kopf|KJcy|kjcy|KHcy|khcy|DZcy|ecir|edot|eDot|Jscr|jscr|succ|Jopf|jopf|Edot|uHar|emsp|ensp|Iuml|iuml|eopf|isin|Iscr|iscr|Eopf|epar|sung|epsi|escr|sup1|sup2|sup3|Iota|iota|supe|supE|Iopf|iopf|IOcy|iocy|Escr|esim|Esim|imof|Uarr|QUOT|uArr|uarr|euml|IEcy|iecy|Idot|Euml|euro|excl|Hscr|hscr|Hopf|hopf|TScy|tscy|Tscr|hbar|tscr|flat|tbrk|fnof|hArr|harr|half|fopf|Fopf|tdot|gvnE|fork|trie|gtcc|fscr|Fscr|gdot|gsim|Gscr|gscr|Gopf|gopf|gneq|Gdot|tosa|gnap|Topf|topf|geqq|toea|GJcy|gjcy|tint|gesl|mid|Sfr|ggg|top|ges|gla|glE|glj|geq|gne|gEl|gel|gnE|Gcy|gcy|gap|Tfr|tfr|Tcy|tcy|Hat|Tau|Ffr|tau|Tab|hfr|Hfr|ffr|Fcy|fcy|icy|Icy|iff|ETH|eth|ifr|Ifr|Eta|eta|int|Int|Sup|sup|ucy|Ucy|Sum|sum|jcy|ENG|ufr|Ufr|eng|Jcy|jfr|els|ell|egs|Efr|efr|Jfr|uml|kcy|Kcy|Ecy|ecy|kfr|Kfr|lap|Sub|sub|lat|lcy|Lcy|leg|Dot|dot|lEg|leq|les|squ|div|die|lfr|Lfr|lgE|Dfr|dfr|Del|deg|Dcy|dcy|lne|lnE|sol|loz|smt|Cup|lrm|cup|lsh|Lsh|sim|shy|map|Map|mcy|Mcy|mfr|Mfr|mho|gfr|Gfr|sfr|cir|Chi|chi|nap|Cfr|vcy|Vcy|cfr|Scy|scy|ncy|Ncy|vee|Vee|Cap|cap|nfr|scE|sce|Nfr|nge|ngE|nGg|vfr|Vfr|ngt|bot|nGt|nis|niv|Rsh|rsh|nle|nlE|bne|Bfr|bfr|nLl|nlt|nLt|Bcy|bcy|not|Not|rlm|wfr|Wfr|npr|nsc|num|ocy|ast|Ocy|ofr|xfr|Xfr|Ofr|ogt|ohm|apE|olt|Rho|ape|rho|Rfr|rfr|ord|REG|ang|reg|orv|And|and|AMP|Rcy|amp|Afr|ycy|Ycy|yen|yfr|Yfr|rcy|par|pcy|Pcy|pfr|Pfr|phi|Phi|afr|Acy|acy|zcy|Zcy|piv|acE|acd|zfr|Zfr|pre|prE|psi|Psi|qfr|Qfr|zwj|Or|ge|Gg|gt|gg|el|oS|lt|Lt|LT|Re|lg|gl|eg|ne|Im|it|le|DD|wp|wr|nu|Nu|dd|lE|Sc|sc|pi|Pi|ee|af|ll|Ll|rx|gE|xi|pm|Xi|ic|pr|Pr|in|ni|mp|mu|ac|Mu|or|ap|Gt|GT|ii);|&(Aacute|Agrave|Atilde|Ccedil|Eacute|Egrave|Iacute|Igrave|Ntilde|Oacute|Ograve|Oslash|Otilde|Uacute|Ugrave|Yacute|aacute|agrave|atilde|brvbar|ccedil|curren|divide|eacute|egrave|frac12|frac14|frac34|iacute|igrave|iquest|middot|ntilde|oacute|ograve|oslash|otilde|plusmn|uacute|ugrave|yacute|AElig|Acirc|Aring|Ecirc|Icirc|Ocirc|THORN|Ucirc|acirc|acute|aelig|aring|cedil|ecirc|icirc|iexcl|laquo|micro|ocirc|pound|raquo|szlig|thorn|times|ucirc|Auml|COPY|Euml|Iuml|Ouml|QUOT|Uuml|auml|cent|copy|euml|iuml|macr|nbsp|ordf|ordm|ouml|para|quot|sect|sup1|sup2|sup3|uuml|yuml|AMP|ETH|REG|amp|deg|eth|not|reg|shy|uml|yen|GT|LT|gt|lt)(?!;)([=a-zA-Z0-9]?)|&#([0-9]+)(;?)|&#[xX]([a-fA-F0-9]+)(;?)|&([0-9a-zA-Z]+)/g,B={aacute:"\xe1",Aacute:"\xc1",abreve:"\u0103",Abreve:"\u0102",ac:"\u223e",acd:"\u223f",acE:"\u223e\u0333",acirc:"\xe2",Acirc:"\xc2",acute:"\xb4",acy:"\u0430",Acy:"\u0410",aelig:"\xe6",AElig:"\xc6",af:"\u2061",afr:"\u{1d51e}",Afr:"\u{1d504}",agrave:"\xe0",Agrave:"\xc0",alefsym:"\u2135",aleph:"\u2135",alpha:"\u03b1",Alpha:"\u0391",amacr:"\u0101",Amacr:"\u0100",amalg:"\u2a3f",amp:"&",AMP:"&",and:"\u2227",And:"\u2a53",andand:"\u2a55",andd:"\u2a5c",andslope:"\u2a58",andv:"\u2a5a",ang:"\u2220",ange:"\u29a4",angle:"\u2220",angmsd:"\u2221",angmsdaa:"\u29a8",angmsdab:"\u29a9",angmsdac:"\u29aa",angmsdad:"\u29ab",angmsdae:"\u29ac",angmsdaf:"\u29ad",angmsdag:"\u29ae",angmsdah:"\u29af",angrt:"\u221f",angrtvb:"\u22be",angrtvbd:"\u299d",angsph:"\u2222",angst:"\xc5",angzarr:"\u237c",aogon:"\u0105",Aogon:"\u0104",aopf:"\u{1d552}",Aopf:"\u{1d538}",ap:"\u2248",apacir:"\u2a6f",ape:"\u224a",apE:"\u2a70",apid:"\u224b",apos:"'",ApplyFunction:"\u2061",approx:"\u2248",approxeq:"\u224a",aring:"\xe5",Aring:"\xc5",ascr:"\u{1d4b6}",Ascr:"\u{1d49c}",Assign:"\u2254",ast:"*",asymp:"\u2248",asympeq:"\u224d",atilde:"\xe3",Atilde:"\xc3",auml:"\xe4",Auml:"\xc4",awconint:"\u2233",awint:"\u2a11",backcong:"\u224c",backepsilon:"\u03f6",backprime:"\u2035",backsim:"\u223d",backsimeq:"\u22cd",Backslash:"\u2216",Barv:"\u2ae7",barvee:"\u22bd",barwed:"\u2305",Barwed:"\u2306",barwedge:"\u2305",bbrk:"\u23b5",bbrktbrk:"\u23b6",bcong:"\u224c",bcy:"\u0431",Bcy:"\u0411",bdquo:"\u201e",becaus:"\u2235",because:"\u2235",Because:"\u2235",bemptyv:"\u29b0",bepsi:"\u03f6",bernou:"\u212c",Bernoullis:"\u212c",beta:"\u03b2",Beta:"\u0392",beth:"\u2136",between:"\u226c",bfr:"\u{1d51f}",Bfr:"\u{1d505}",bigcap:"\u22c2",bigcirc:"\u25ef",bigcup:"\u22c3",bigodot:"\u2a00",bigoplus:"\u2a01",bigotimes:"\u2a02",bigsqcup:"\u2a06",bigstar:"\u2605",bigtriangledown:"\u25bd",bigtriangleup:"\u25b3",biguplus:"\u2a04",bigvee:"\u22c1",bigwedge:"\u22c0",bkarow:"\u290d",blacklozenge:"\u29eb",blacksquare:"\u25aa",blacktriangle:"\u25b4",blacktriangledown:"\u25be",blacktriangleleft:"\u25c2",blacktriangleright:"\u25b8",blank:"\u2423",blk12:"\u2592",blk14:"\u2591",blk34:"\u2593",block:"\u2588",bne:"=\u20e5",bnequiv:"\u2261\u20e5",bnot:"\u2310",bNot:"\u2aed",bopf:"\u{1d553}",Bopf:"\u{1d539}",bot:"\u22a5",bottom:"\u22a5",bowtie:"\u22c8",boxbox:"\u29c9",boxdl:"\u2510",boxdL:"\u2555",boxDl:"\u2556",boxDL:"\u2557",boxdr:"\u250c",boxdR:"\u2552",boxDr:"\u2553",boxDR:"\u2554",boxh:"\u2500",boxH:"\u2550",boxhd:"\u252c",boxhD:"\u2565",boxHd:"\u2564",boxHD:"\u2566",boxhu:"\u2534",boxhU:"\u2568",boxHu:"\u2567",boxHU:"\u2569",boxminus:"\u229f",boxplus:"\u229e",boxtimes:"\u22a0",boxul:"\u2518",boxuL:"\u255b",boxUl:"\u255c",boxUL:"\u255d",boxur:"\u2514",boxuR:"\u2558",boxUr:"\u2559",boxUR:"\u255a",boxv:"\u2502",boxV:"\u2551",boxvh:"\u253c",boxvH:"\u256a",boxVh:"\u256b",boxVH:"\u256c",boxvl:"\u2524",boxvL:"\u2561",boxVl:"\u2562",boxVL:"\u2563",boxvr:"\u251c",boxvR:"\u255e",boxVr:"\u255f",boxVR:"\u2560",bprime:"\u2035",breve:"\u02d8",Breve:"\u02d8",brvbar:"\xa6",bscr:"\u{1d4b7}",Bscr:"\u212c",bsemi:"\u204f",bsim:"\u223d",bsime:"\u22cd",bsol:"\\",bsolb:"\u29c5",bsolhsub:"\u27c8",bull:"\u2022",bullet:"\u2022",bump:"\u224e",bumpe:"\u224f",bumpE:"\u2aae",bumpeq:"\u224f",Bumpeq:"\u224e",cacute:"\u0107",Cacute:"\u0106",cap:"\u2229",Cap:"\u22d2",capand:"\u2a44",capbrcup:"\u2a49",capcap:"\u2a4b",capcup:"\u2a47",capdot:"\u2a40",CapitalDifferentialD:"\u2145",caps:"\u2229\ufe00",caret:"\u2041",caron:"\u02c7",Cayleys:"\u212d",ccaps:"\u2a4d",ccaron:"\u010d",Ccaron:"\u010c",ccedil:"\xe7",Ccedil:"\xc7",ccirc:"\u0109",Ccirc:"\u0108",Cconint:"\u2230",ccups:"\u2a4c",ccupssm:"\u2a50",cdot:"\u010b",Cdot:"\u010a",cedil:"\xb8",Cedilla:"\xb8",cemptyv:"\u29b2",cent:"\xa2",centerdot:"\xb7",CenterDot:"\xb7",cfr:"\u{1d520}",Cfr:"\u212d",chcy:"\u0447",CHcy:"\u0427",check:"\u2713",checkmark:"\u2713",chi:"\u03c7",Chi:"\u03a7",cir:"\u25cb",circ:"\u02c6",circeq:"\u2257",circlearrowleft:"\u21ba",circlearrowright:"\u21bb",circledast:"\u229b",circledcirc:"\u229a",circleddash:"\u229d",CircleDot:"\u2299",circledR:"\xae",circledS:"\u24c8",CircleMinus:"\u2296",CirclePlus:"\u2295",CircleTimes:"\u2297",cire:"\u2257",cirE:"\u29c3",cirfnint:"\u2a10",cirmid:"\u2aef",cirscir:"\u29c2",ClockwiseContourIntegral:"\u2232",CloseCurlyDoubleQuote:"\u201d",CloseCurlyQuote:"\u2019",clubs:"\u2663",clubsuit:"\u2663",colon:":",Colon:"\u2237",colone:"\u2254",Colone:"\u2a74",coloneq:"\u2254",comma:",",commat:"@",comp:"\u2201",compfn:"\u2218",complement:"\u2201",complexes:"\u2102",cong:"\u2245",congdot:"\u2a6d",Congruent:"\u2261",conint:"\u222e",Conint:"\u222f",ContourIntegral:"\u222e",copf:"\u{1d554}",Copf:"\u2102",coprod:"\u2210",Coproduct:"\u2210",copy:"\xa9",COPY:"\xa9",copysr:"\u2117",CounterClockwiseContourIntegral:"\u2233",crarr:"\u21b5",cross:"\u2717",Cross:"\u2a2f",cscr:"\u{1d4b8}",Cscr:"\u{1d49e}",csub:"\u2acf",csube:"\u2ad1",csup:"\u2ad0",csupe:"\u2ad2",ctdot:"\u22ef",cudarrl:"\u2938",cudarrr:"\u2935",cuepr:"\u22de",cuesc:"\u22df",cularr:"\u21b6",cularrp:"\u293d",cup:"\u222a",Cup:"\u22d3",cupbrcap:"\u2a48",cupcap:"\u2a46",CupCap:"\u224d",cupcup:"\u2a4a",cupdot:"\u228d",cupor:"\u2a45",cups:"\u222a\ufe00",curarr:"\u21b7",curarrm:"\u293c",curlyeqprec:"\u22de",curlyeqsucc:"\u22df",curlyvee:"\u22ce",curlywedge:"\u22cf",curren:"\xa4",curvearrowleft:"\u21b6",curvearrowright:"\u21b7",cuvee:"\u22ce",cuwed:"\u22cf",cwconint:"\u2232",cwint:"\u2231",cylcty:"\u232d",dagger:"\u2020",Dagger:"\u2021",daleth:"\u2138",darr:"\u2193",dArr:"\u21d3",Darr:"\u21a1",dash:"\u2010",dashv:"\u22a3",Dashv:"\u2ae4",dbkarow:"\u290f",dblac:"\u02dd",dcaron:"\u010f",Dcaron:"\u010e",dcy:"\u0434",Dcy:"\u0414",dd:"\u2146",DD:"\u2145",ddagger:"\u2021",ddarr:"\u21ca",DDotrahd:"\u2911",ddotseq:"\u2a77",deg:"\xb0",Del:"\u2207",delta:"\u03b4",Delta:"\u0394",demptyv:"\u29b1",dfisht:"\u297f",dfr:"\u{1d521}",Dfr:"\u{1d507}",dHar:"\u2965",dharl:"\u21c3",dharr:"\u21c2",DiacriticalAcute:"\xb4",DiacriticalDot:"\u02d9",DiacriticalDoubleAcute:"\u02dd",DiacriticalGrave:"`",DiacriticalTilde:"\u02dc",diam:"\u22c4",diamond:"\u22c4",Diamond:"\u22c4",diamondsuit:"\u2666",diams:"\u2666",die:"\xa8",DifferentialD:"\u2146",digamma:"\u03dd",disin:"\u22f2",div:"\xf7",divide:"\xf7",divideontimes:"\u22c7",divonx:"\u22c7",djcy:"\u0452",DJcy:"\u0402",dlcorn:"\u231e",dlcrop:"\u230d",dollar:"$",dopf:"\u{1d555}",Dopf:"\u{1d53b}",dot:"\u02d9",Dot:"\xa8",DotDot:"\u20dc",doteq:"\u2250",doteqdot:"\u2251",DotEqual:"\u2250",dotminus:"\u2238",dotplus:"\u2214",dotsquare:"\u22a1",doublebarwedge:"\u2306",DoubleContourIntegral:"\u222f",DoubleDot:"\xa8",DoubleDownArrow:"\u21d3",DoubleLeftArrow:"\u21d0",DoubleLeftRightArrow:"\u21d4",DoubleLeftTee:"\u2ae4",DoubleLongLeftArrow:"\u27f8",DoubleLongLeftRightArrow:"\u27fa",DoubleLongRightArrow:"\u27f9",DoubleRightArrow:"\u21d2",DoubleRightTee:"\u22a8",DoubleUpArrow:"\u21d1",DoubleUpDownArrow:"\u21d5",DoubleVerticalBar:"\u2225",downarrow:"\u2193",Downarrow:"\u21d3",DownArrow:"\u2193",DownArrowBar:"\u2913",DownArrowUpArrow:"\u21f5",DownBreve:"\u0311",downdownarrows:"\u21ca",downharpoonleft:"\u21c3",downharpoonright:"\u21c2",DownLeftRightVector:"\u2950",DownLeftTeeVector:"\u295e",DownLeftVector:"\u21bd",DownLeftVectorBar:"\u2956",DownRightTeeVector:"\u295f",DownRightVector:"\u21c1",DownRightVectorBar:"\u2957",DownTee:"\u22a4",DownTeeArrow:"\u21a7",drbkarow:"\u2910",drcorn:"\u231f",drcrop:"\u230c",dscr:"\u{1d4b9}",Dscr:"\u{1d49f}",dscy:"\u0455",DScy:"\u0405",dsol:"\u29f6",dstrok:"\u0111",Dstrok:"\u0110",dtdot:"\u22f1",dtri:"\u25bf",dtrif:"\u25be",duarr:"\u21f5",duhar:"\u296f",dwangle:"\u29a6",dzcy:"\u045f",DZcy:"\u040f",dzigrarr:"\u27ff",eacute:"\xe9",Eacute:"\xc9",easter:"\u2a6e",ecaron:"\u011b",Ecaron:"\u011a",ecir:"\u2256",ecirc:"\xea",Ecirc:"\xca",ecolon:"\u2255",ecy:"\u044d",Ecy:"\u042d",eDDot:"\u2a77",edot:"\u0117",eDot:"\u2251",Edot:"\u0116",ee:"\u2147",efDot:"\u2252",efr:"\u{1d522}",Efr:"\u{1d508}",eg:"\u2a9a",egrave:"\xe8",Egrave:"\xc8",egs:"\u2a96",egsdot:"\u2a98",el:"\u2a99",Element:"\u2208",elinters:"\u23e7",ell:"\u2113",els:"\u2a95",elsdot:"\u2a97",emacr:"\u0113",Emacr:"\u0112",empty:"\u2205",emptyset:"\u2205",EmptySmallSquare:"\u25fb",emptyv:"\u2205",EmptyVerySmallSquare:"\u25ab",emsp:"\u2003",emsp13:"\u2004",emsp14:"\u2005",eng:"\u014b",ENG:"\u014a",ensp:"\u2002",eogon:"\u0119",Eogon:"\u0118",eopf:"\u{1d556}",Eopf:"\u{1d53c}",epar:"\u22d5",eparsl:"\u29e3",eplus:"\u2a71",epsi:"\u03b5",epsilon:"\u03b5",Epsilon:"\u0395",epsiv:"\u03f5",eqcirc:"\u2256",eqcolon:"\u2255",eqsim:"\u2242",eqslantgtr:"\u2a96",eqslantless:"\u2a95",Equal:"\u2a75",equals:"=",EqualTilde:"\u2242",equest:"\u225f",Equilibrium:"\u21cc",equiv:"\u2261",equivDD:"\u2a78",eqvparsl:"\u29e5",erarr:"\u2971",erDot:"\u2253",escr:"\u212f",Escr:"\u2130",esdot:"\u2250",esim:"\u2242",Esim:"\u2a73",eta:"\u03b7",Eta:"\u0397",eth:"\xf0",ETH:"\xd0",euml:"\xeb",Euml:"\xcb",euro:"\u20ac",excl:"!",exist:"\u2203",Exists:"\u2203",expectation:"\u2130",exponentiale:"\u2147",ExponentialE:"\u2147",fallingdotseq:"\u2252",fcy:"\u0444",Fcy:"\u0424",female:"\u2640",ffilig:"\ufb03",fflig:"\ufb00",ffllig:"\ufb04",ffr:"\u{1d523}",Ffr:"\u{1d509}",filig:"\ufb01",FilledSmallSquare:"\u25fc",FilledVerySmallSquare:"\u25aa",fjlig:"fj",flat:"\u266d",fllig:"\ufb02",fltns:"\u25b1",fnof:"\u0192",fopf:"\u{1d557}",Fopf:"\u{1d53d}",forall:"\u2200",ForAll:"\u2200",fork:"\u22d4",forkv:"\u2ad9",Fouriertrf:"\u2131",fpartint:"\u2a0d",frac12:"\xbd",frac13:"\u2153",frac14:"\xbc",frac15:"\u2155",frac16:"\u2159",frac18:"\u215b",frac23:"\u2154",frac25:"\u2156",frac34:"\xbe",frac35:"\u2157",frac38:"\u215c",frac45:"\u2158",frac56:"\u215a",frac58:"\u215d",frac78:"\u215e",frasl:"\u2044",frown:"\u2322",fscr:"\u{1d4bb}",Fscr:"\u2131",gacute:"\u01f5",gamma:"\u03b3",Gamma:"\u0393",gammad:"\u03dd",Gammad:"\u03dc",gap:"\u2a86",gbreve:"\u011f",Gbreve:"\u011e",Gcedil:"\u0122",gcirc:"\u011d",Gcirc:"\u011c",gcy:"\u0433",Gcy:"\u0413",gdot:"\u0121",Gdot:"\u0120",ge:"\u2265",gE:"\u2267",gel:"\u22db",gEl:"\u2a8c",geq:"\u2265",geqq:"\u2267",geqslant:"\u2a7e",ges:"\u2a7e",gescc:"\u2aa9",gesdot:"\u2a80",gesdoto:"\u2a82",gesdotol:"\u2a84",gesl:"\u22db\ufe00",gesles:"\u2a94",gfr:"\u{1d524}",Gfr:"\u{1d50a}",gg:"\u226b",Gg:"\u22d9",ggg:"\u22d9",gimel:"\u2137",gjcy:"\u0453",GJcy:"\u0403",gl:"\u2277",gla:"\u2aa5",glE:"\u2a92",glj:"\u2aa4",gnap:"\u2a8a",gnapprox:"\u2a8a",gne:"\u2a88",gnE:"\u2269",gneq:"\u2a88",gneqq:"\u2269",gnsim:"\u22e7",gopf:"\u{1d558}",Gopf:"\u{1d53e}",grave:"`",GreaterEqual:"\u2265",GreaterEqualLess:"\u22db",GreaterFullEqual:"\u2267",GreaterGreater:"\u2aa2",GreaterLess:"\u2277",GreaterSlantEqual:"\u2a7e",GreaterTilde:"\u2273",gscr:"\u210a",Gscr:"\u{1d4a2}",gsim:"\u2273",gsime:"\u2a8e",gsiml:"\u2a90",gt:">",Gt:"\u226b",GT:">",gtcc:"\u2aa7",gtcir:"\u2a7a",gtdot:"\u22d7",gtlPar:"\u2995",gtquest:"\u2a7c",gtrapprox:"\u2a86",gtrarr:"\u2978",gtrdot:"\u22d7",gtreqless:"\u22db",gtreqqless:"\u2a8c",gtrless:"\u2277",gtrsim:"\u2273",gvertneqq:"\u2269\ufe00",gvnE:"\u2269\ufe00",Hacek:"\u02c7",hairsp:"\u200a",half:"\xbd",hamilt:"\u210b",hardcy:"\u044a",HARDcy:"\u042a",harr:"\u2194",hArr:"\u21d4",harrcir:"\u2948",harrw:"\u21ad",Hat:"^",hbar:"\u210f",hcirc:"\u0125",Hcirc:"\u0124",hearts:"\u2665",heartsuit:"\u2665",hellip:"\u2026",hercon:"\u22b9",hfr:"\u{1d525}",Hfr:"\u210c",HilbertSpace:"\u210b",hksearow:"\u2925",hkswarow:"\u2926",hoarr:"\u21ff",homtht:"\u223b",hookleftarrow:"\u21a9",hookrightarrow:"\u21aa",hopf:"\u{1d559}",Hopf:"\u210d",horbar:"\u2015",HorizontalLine:"\u2500",hscr:"\u{1d4bd}",Hscr:"\u210b",hslash:"\u210f",hstrok:"\u0127",Hstrok:"\u0126",HumpDownHump:"\u224e",HumpEqual:"\u224f",hybull:"\u2043",hyphen:"\u2010",iacute:"\xed",Iacute:"\xcd",ic:"\u2063",icirc:"\xee",Icirc:"\xce",icy:"\u0438",Icy:"\u0418",Idot:"\u0130",iecy:"\u0435",IEcy:"\u0415",iexcl:"\xa1",iff:"\u21d4",ifr:"\u{1d526}",Ifr:"\u2111",igrave:"\xec",Igrave:"\xcc",ii:"\u2148",iiiint:"\u2a0c",iiint:"\u222d",iinfin:"\u29dc",iiota:"\u2129",ijlig:"\u0133",IJlig:"\u0132",Im:"\u2111",imacr:"\u012b",Imacr:"\u012a",image:"\u2111",ImaginaryI:"\u2148",imagline:"\u2110",imagpart:"\u2111",imath:"\u0131",imof:"\u22b7",imped:"\u01b5",Implies:"\u21d2",in:"\u2208",incare:"\u2105",infin:"\u221e",infintie:"\u29dd",inodot:"\u0131",int:"\u222b",Int:"\u222c",intcal:"\u22ba",integers:"\u2124",Integral:"\u222b",intercal:"\u22ba",Intersection:"\u22c2",intlarhk:"\u2a17",intprod:"\u2a3c",InvisibleComma:"\u2063",InvisibleTimes:"\u2062",iocy:"\u0451",IOcy:"\u0401",iogon:"\u012f",Iogon:"\u012e",iopf:"\u{1d55a}",Iopf:"\u{1d540}",iota:"\u03b9",Iota:"\u0399",iprod:"\u2a3c",iquest:"\xbf",iscr:"\u{1d4be}",Iscr:"\u2110",isin:"\u2208",isindot:"\u22f5",isinE:"\u22f9",isins:"\u22f4",isinsv:"\u22f3",isinv:"\u2208",it:"\u2062",itilde:"\u0129",Itilde:"\u0128",iukcy:"\u0456",Iukcy:"\u0406",iuml:"\xef",Iuml:"\xcf",jcirc:"\u0135",Jcirc:"\u0134",jcy:"\u0439",Jcy:"\u0419",jfr:"\u{1d527}",Jfr:"\u{1d50d}",jmath:"\u0237",jopf:"\u{1d55b}",Jopf:"\u{1d541}",jscr:"\u{1d4bf}",Jscr:"\u{1d4a5}",jsercy:"\u0458",Jsercy:"\u0408",jukcy:"\u0454",Jukcy:"\u0404",kappa:"\u03ba",Kappa:"\u039a",kappav:"\u03f0",kcedil:"\u0137",Kcedil:"\u0136",kcy:"\u043a",Kcy:"\u041a",kfr:"\u{1d528}",Kfr:"\u{1d50e}",kgreen:"\u0138",khcy:"\u0445",KHcy:"\u0425",kjcy:"\u045c",KJcy:"\u040c",kopf:"\u{1d55c}",Kopf:"\u{1d542}",kscr:"\u{1d4c0}",Kscr:"\u{1d4a6}",lAarr:"\u21da",lacute:"\u013a",Lacute:"\u0139",laemptyv:"\u29b4",lagran:"\u2112",lambda:"\u03bb",Lambda:"\u039b",lang:"\u27e8",Lang:"\u27ea",langd:"\u2991",langle:"\u27e8",lap:"\u2a85",Laplacetrf:"\u2112",laquo:"\xab",larr:"\u2190",lArr:"\u21d0",Larr:"\u219e",larrb:"\u21e4",larrbfs:"\u291f",larrfs:"\u291d",larrhk:"\u21a9",larrlp:"\u21ab",larrpl:"\u2939",larrsim:"\u2973",larrtl:"\u21a2",lat:"\u2aab",latail:"\u2919",lAtail:"\u291b",late:"\u2aad",lates:"\u2aad\ufe00",lbarr:"\u290c",lBarr:"\u290e",lbbrk:"\u2772",lbrace:"{",lbrack:"[",lbrke:"\u298b",lbrksld:"\u298f",lbrkslu:"\u298d",lcaron:"\u013e",Lcaron:"\u013d",lcedil:"\u013c",Lcedil:"\u013b",lceil:"\u2308",lcub:"{",lcy:"\u043b",Lcy:"\u041b",ldca:"\u2936",ldquo:"\u201c",ldquor:"\u201e",ldrdhar:"\u2967",ldrushar:"\u294b",ldsh:"\u21b2",le:"\u2264",lE:"\u2266",LeftAngleBracket:"\u27e8",leftarrow:"\u2190",Leftarrow:"\u21d0",LeftArrow:"\u2190",LeftArrowBar:"\u21e4",LeftArrowRightArrow:"\u21c6",leftarrowtail:"\u21a2",LeftCeiling:"\u2308",LeftDoubleBracket:"\u27e6",LeftDownTeeVector:"\u2961",LeftDownVector:"\u21c3",LeftDownVectorBar:"\u2959",LeftFloor:"\u230a",leftharpoondown:"\u21bd",leftharpoonup:"\u21bc",leftleftarrows:"\u21c7",leftrightarrow:"\u2194",Leftrightarrow:"\u21d4",LeftRightArrow:"\u2194",leftrightarrows:"\u21c6",leftrightharpoons:"\u21cb",leftrightsquigarrow:"\u21ad",LeftRightVector:"\u294e",LeftTee:"\u22a3",LeftTeeArrow:"\u21a4",LeftTeeVector:"\u295a",leftthreetimes:"\u22cb",LeftTriangle:"\u22b2",LeftTriangleBar:"\u29cf",LeftTriangleEqual:"\u22b4",LeftUpDownVector:"\u2951",LeftUpTeeVector:"\u2960",LeftUpVector:"\u21bf",LeftUpVectorBar:"\u2958",LeftVector:"\u21bc",LeftVectorBar:"\u2952",leg:"\u22da",lEg:"\u2a8b",leq:"\u2264",leqq:"\u2266",leqslant:"\u2a7d",les:"\u2a7d",lescc:"\u2aa8",lesdot:"\u2a7f",lesdoto:"\u2a81",lesdotor:"\u2a83",lesg:"\u22da\ufe00",lesges:"\u2a93",lessapprox:"\u2a85",lessdot:"\u22d6",lesseqgtr:"\u22da",lesseqqgtr:"\u2a8b",LessEqualGreater:"\u22da",LessFullEqual:"\u2266",LessGreater:"\u2276",lessgtr:"\u2276",LessLess:"\u2aa1",lesssim:"\u2272",LessSlantEqual:"\u2a7d",LessTilde:"\u2272",lfisht:"\u297c",lfloor:"\u230a",lfr:"\u{1d529}",Lfr:"\u{1d50f}",lg:"\u2276",lgE:"\u2a91",lHar:"\u2962",lhard:"\u21bd",lharu:"\u21bc",lharul:"\u296a",lhblk:"\u2584",ljcy:"\u0459",LJcy:"\u0409",ll:"\u226a",Ll:"\u22d8",llarr:"\u21c7",llcorner:"\u231e",Lleftarrow:"\u21da",llhard:"\u296b",lltri:"\u25fa",lmidot:"\u0140",Lmidot:"\u013f",lmoust:"\u23b0",lmoustache:"\u23b0",lnap:"\u2a89",lnapprox:"\u2a89",lne:"\u2a87",lnE:"\u2268",lneq:"\u2a87",lneqq:"\u2268",lnsim:"\u22e6",loang:"\u27ec",loarr:"\u21fd",lobrk:"\u27e6",longleftarrow:"\u27f5",Longleftarrow:"\u27f8",LongLeftArrow:"\u27f5",longleftrightarrow:"\u27f7",Longleftrightarrow:"\u27fa",LongLeftRightArrow:"\u27f7",longmapsto:"\u27fc",longrightarrow:"\u27f6",Longrightarrow:"\u27f9",LongRightArrow:"\u27f6",looparrowleft:"\u21ab",looparrowright:"\u21ac",lopar:"\u2985",lopf:"\u{1d55d}",Lopf:"\u{1d543}",loplus:"\u2a2d",lotimes:"\u2a34",lowast:"\u2217",lowbar:"_",LowerLeftArrow:"\u2199",LowerRightArrow:"\u2198",loz:"\u25ca",lozenge:"\u25ca",lozf:"\u29eb",lpar:"(",lparlt:"\u2993",lrarr:"\u21c6",lrcorner:"\u231f",lrhar:"\u21cb",lrhard:"\u296d",lrm:"\u200e",lrtri:"\u22bf",lsaquo:"\u2039",lscr:"\u{1d4c1}",Lscr:"\u2112",lsh:"\u21b0",Lsh:"\u21b0",lsim:"\u2272",lsime:"\u2a8d",lsimg:"\u2a8f",lsqb:"[",lsquo:"\u2018",lsquor:"\u201a",lstrok:"\u0142",Lstrok:"\u0141",lt:"<",Lt:"\u226a",LT:"<",ltcc:"\u2aa6",ltcir:"\u2a79",ltdot:"\u22d6",lthree:"\u22cb",ltimes:"\u22c9",ltlarr:"\u2976",ltquest:"\u2a7b",ltri:"\u25c3",ltrie:"\u22b4",ltrif:"\u25c2",ltrPar:"\u2996",lurdshar:"\u294a",luruhar:"\u2966",lvertneqq:"\u2268\ufe00",lvnE:"\u2268\ufe00",macr:"\xaf",male:"\u2642",malt:"\u2720",maltese:"\u2720",map:"\u21a6",Map:"\u2905",mapsto:"\u21a6",mapstodown:"\u21a7",mapstoleft:"\u21a4",mapstoup:"\u21a5",marker:"\u25ae",mcomma:"\u2a29",mcy:"\u043c",Mcy:"\u041c",mdash:"\u2014",mDDot:"\u223a",measuredangle:"\u2221",MediumSpace:"\u205f",Mellintrf:"\u2133",mfr:"\u{1d52a}",Mfr:"\u{1d510}",mho:"\u2127",micro:"\xb5",mid:"\u2223",midast:"*",midcir:"\u2af0",middot:"\xb7",minus:"\u2212",minusb:"\u229f",minusd:"\u2238",minusdu:"\u2a2a",MinusPlus:"\u2213",mlcp:"\u2adb",mldr:"\u2026",mnplus:"\u2213",models:"\u22a7",mopf:"\u{1d55e}",Mopf:"\u{1d544}",mp:"\u2213",mscr:"\u{1d4c2}",Mscr:"\u2133",mstpos:"\u223e",mu:"\u03bc",Mu:"\u039c",multimap:"\u22b8",mumap:"\u22b8",nabla:"\u2207",nacute:"\u0144",Nacute:"\u0143",nang:"\u2220\u20d2",nap:"\u2249",napE:"\u2a70\u0338",napid:"\u224b\u0338",napos:"\u0149",napprox:"\u2249",natur:"\u266e",natural:"\u266e",naturals:"\u2115",nbsp:"\xa0",nbump:"\u224e\u0338",nbumpe:"\u224f\u0338",ncap:"\u2a43",ncaron:"\u0148",Ncaron:"\u0147",ncedil:"\u0146",Ncedil:"\u0145",ncong:"\u2247",ncongdot:"\u2a6d\u0338",ncup:"\u2a42",ncy:"\u043d",Ncy:"\u041d",ndash:"\u2013",ne:"\u2260",nearhk:"\u2924",nearr:"\u2197",neArr:"\u21d7",nearrow:"\u2197",nedot:"\u2250\u0338",NegativeMediumSpace:"\u200b",NegativeThickSpace:"\u200b",NegativeThinSpace:"\u200b",NegativeVeryThinSpace:"\u200b",nequiv:"\u2262",nesear:"\u2928",nesim:"\u2242\u0338",NestedGreaterGreater:"\u226b",NestedLessLess:"\u226a",NewLine:"\n",nexist:"\u2204",nexists:"\u2204",nfr:"\u{1d52b}",Nfr:"\u{1d511}",nge:"\u2271",ngE:"\u2267\u0338",ngeq:"\u2271",ngeqq:"\u2267\u0338",ngeqslant:"\u2a7e\u0338",nges:"\u2a7e\u0338",nGg:"\u22d9\u0338",ngsim:"\u2275",ngt:"\u226f",nGt:"\u226b\u20d2",ngtr:"\u226f",nGtv:"\u226b\u0338",nharr:"\u21ae",nhArr:"\u21ce",nhpar:"\u2af2",ni:"\u220b",nis:"\u22fc",nisd:"\u22fa",niv:"\u220b",njcy:"\u045a",NJcy:"\u040a",nlarr:"\u219a",nlArr:"\u21cd",nldr:"\u2025",nle:"\u2270",nlE:"\u2266\u0338",nleftarrow:"\u219a",nLeftarrow:"\u21cd",nleftrightarrow:"\u21ae",nLeftrightarrow:"\u21ce",nleq:"\u2270",nleqq:"\u2266\u0338",nleqslant:"\u2a7d\u0338",nles:"\u2a7d\u0338",nless:"\u226e",nLl:"\u22d8\u0338",nlsim:"\u2274",nlt:"\u226e",nLt:"\u226a\u20d2",nltri:"\u22ea",nltrie:"\u22ec",nLtv:"\u226a\u0338",nmid:"\u2224",NoBreak:"\u2060",NonBreakingSpace:"\xa0",nopf:"\u{1d55f}",Nopf:"\u2115",not:"\xac",Not:"\u2aec",NotCongruent:"\u2262",NotCupCap:"\u226d",NotDoubleVerticalBar:"\u2226",NotElement:"\u2209",NotEqual:"\u2260",NotEqualTilde:"\u2242\u0338",NotExists:"\u2204",NotGreater:"\u226f",NotGreaterEqual:"\u2271",NotGreaterFullEqual:"\u2267\u0338",NotGreaterGreater:"\u226b\u0338",NotGreaterLess:"\u2279",NotGreaterSlantEqual:"\u2a7e\u0338",NotGreaterTilde:"\u2275",NotHumpDownHump:"\u224e\u0338",NotHumpEqual:"\u224f\u0338",notin:"\u2209",notindot:"\u22f5\u0338",notinE:"\u22f9\u0338",notinva:"\u2209",notinvb:"\u22f7",notinvc:"\u22f6",NotLeftTriangle:"\u22ea",NotLeftTriangleBar:"\u29cf\u0338",NotLeftTriangleEqual:"\u22ec",NotLess:"\u226e",NotLessEqual:"\u2270",NotLessGreater:"\u2278",NotLessLess:"\u226a\u0338",NotLessSlantEqual:"\u2a7d\u0338",NotLessTilde:"\u2274",NotNestedGreaterGreater:"\u2aa2\u0338",NotNestedLessLess:"\u2aa1\u0338",notni:"\u220c",notniva:"\u220c",notnivb:"\u22fe",notnivc:"\u22fd",NotPrecedes:"\u2280",NotPrecedesEqual:"\u2aaf\u0338",NotPrecedesSlantEqual:"\u22e0",NotReverseElement:"\u220c",NotRightTriangle:"\u22eb",NotRightTriangleBar:"\u29d0\u0338",NotRightTriangleEqual:"\u22ed",NotSquareSubset:"\u228f\u0338",NotSquareSubsetEqual:"\u22e2",NotSquareSuperset:"\u2290\u0338",NotSquareSupersetEqual:"\u22e3",NotSubset:"\u2282\u20d2",NotSubsetEqual:"\u2288",NotSucceeds:"\u2281",NotSucceedsEqual:"\u2ab0\u0338",NotSucceedsSlantEqual:"\u22e1",NotSucceedsTilde:"\u227f\u0338",NotSuperset:"\u2283\u20d2",NotSupersetEqual:"\u2289",NotTilde:"\u2241",NotTildeEqual:"\u2244",NotTildeFullEqual:"\u2247",NotTildeTilde:"\u2249",NotVerticalBar:"\u2224",npar:"\u2226",nparallel:"\u2226",nparsl:"\u2afd\u20e5",npart:"\u2202\u0338",npolint:"\u2a14",npr:"\u2280",nprcue:"\u22e0",npre:"\u2aaf\u0338",nprec:"\u2280",npreceq:"\u2aaf\u0338",nrarr:"\u219b",nrArr:"\u21cf",nrarrc:"\u2933\u0338",nrarrw:"\u219d\u0338",nrightarrow:"\u219b",nRightarrow:"\u21cf",nrtri:"\u22eb",nrtrie:"\u22ed",nsc:"\u2281",nsccue:"\u22e1",nsce:"\u2ab0\u0338",nscr:"\u{1d4c3}",Nscr:"\u{1d4a9}",nshortmid:"\u2224",nshortparallel:"\u2226",nsim:"\u2241",nsime:"\u2244",nsimeq:"\u2244",nsmid:"\u2224",nspar:"\u2226",nsqsube:"\u22e2",nsqsupe:"\u22e3",nsub:"\u2284",nsube:"\u2288",nsubE:"\u2ac5\u0338",nsubset:"\u2282\u20d2",nsubseteq:"\u2288",nsubseteqq:"\u2ac5\u0338",nsucc:"\u2281",nsucceq:"\u2ab0\u0338",nsup:"\u2285",nsupe:"\u2289",nsupE:"\u2ac6\u0338",nsupset:"\u2283\u20d2",nsupseteq:"\u2289",nsupseteqq:"\u2ac6\u0338",ntgl:"\u2279",ntilde:"\xf1",Ntilde:"\xd1",ntlg:"\u2278",ntriangleleft:"\u22ea",ntrianglelefteq:"\u22ec",ntriangleright:"\u22eb",ntrianglerighteq:"\u22ed",nu:"\u03bd",Nu:"\u039d",num:"#",numero:"\u2116",numsp:"\u2007",nvap:"\u224d\u20d2",nvdash:"\u22ac",nvDash:"\u22ad",nVdash:"\u22ae",nVDash:"\u22af",nvge:"\u2265\u20d2",nvgt:">\u20d2",nvHarr:"\u2904",nvinfin:"\u29de",nvlArr:"\u2902",nvle:"\u2264\u20d2",nvlt:"<\u20d2",nvltrie:"\u22b4\u20d2",nvrArr:"\u2903",nvrtrie:"\u22b5\u20d2",nvsim:"\u223c\u20d2",nwarhk:"\u2923",nwarr:"\u2196",nwArr:"\u21d6",nwarrow:"\u2196",nwnear:"\u2927",oacute:"\xf3",Oacute:"\xd3",oast:"\u229b",ocir:"\u229a",ocirc:"\xf4",Ocirc:"\xd4",ocy:"\u043e",Ocy:"\u041e",odash:"\u229d",odblac:"\u0151",Odblac:"\u0150",odiv:"\u2a38",odot:"\u2299",odsold:"\u29bc",oelig:"\u0153",OElig:"\u0152",ofcir:"\u29bf",ofr:"\u{1d52c}",Ofr:"\u{1d512}",ogon:"\u02db",ograve:"\xf2",Ograve:"\xd2",ogt:"\u29c1",ohbar:"\u29b5",ohm:"\u03a9",oint:"\u222e",olarr:"\u21ba",olcir:"\u29be",olcross:"\u29bb",oline:"\u203e",olt:"\u29c0",omacr:"\u014d",Omacr:"\u014c",omega:"\u03c9",Omega:"\u03a9",omicron:"\u03bf",Omicron:"\u039f",omid:"\u29b6",ominus:"\u2296",oopf:"\u{1d560}",Oopf:"\u{1d546}",opar:"\u29b7",OpenCurlyDoubleQuote:"\u201c",OpenCurlyQuote:"\u2018",operp:"\u29b9",oplus:"\u2295",or:"\u2228",Or:"\u2a54",orarr:"\u21bb",ord:"\u2a5d",order:"\u2134",orderof:"\u2134",ordf:"\xaa",ordm:"\xba",origof:"\u22b6",oror:"\u2a56",orslope:"\u2a57",orv:"\u2a5b",oS:"\u24c8",oscr:"\u2134",Oscr:"\u{1d4aa}",oslash:"\xf8",Oslash:"\xd8",osol:"\u2298",otilde:"\xf5",Otilde:"\xd5",otimes:"\u2297",Otimes:"\u2a37",otimesas:"\u2a36",ouml:"\xf6",Ouml:"\xd6",ovbar:"\u233d",OverBar:"\u203e",OverBrace:"\u23de",OverBracket:"\u23b4",OverParenthesis:"\u23dc",par:"\u2225",para:"\xb6",parallel:"\u2225",parsim:"\u2af3",parsl:"\u2afd",part:"\u2202",PartialD:"\u2202",pcy:"\u043f",Pcy:"\u041f",percnt:"%",period:".",permil:"\u2030",perp:"\u22a5",pertenk:"\u2031",pfr:"\u{1d52d}",Pfr:"\u{1d513}",phi:"\u03c6",Phi:"\u03a6",phiv:"\u03d5",phmmat:"\u2133",phone:"\u260e",pi:"\u03c0",Pi:"\u03a0",pitchfork:"\u22d4",piv:"\u03d6",planck:"\u210f",planckh:"\u210e",plankv:"\u210f",plus:"+",plusacir:"\u2a23",plusb:"\u229e",pluscir:"\u2a22",plusdo:"\u2214",plusdu:"\u2a25",pluse:"\u2a72",PlusMinus:"\xb1",plusmn:"\xb1",plussim:"\u2a26",plustwo:"\u2a27",pm:"\xb1",Poincareplane:"\u210c",pointint:"\u2a15",popf:"\u{1d561}",Popf:"\u2119",pound:"\xa3",pr:"\u227a",Pr:"\u2abb",prap:"\u2ab7",prcue:"\u227c",pre:"\u2aaf",prE:"\u2ab3",prec:"\u227a",precapprox:"\u2ab7",preccurlyeq:"\u227c",Precedes:"\u227a",PrecedesEqual:"\u2aaf",PrecedesSlantEqual:"\u227c",PrecedesTilde:"\u227e",preceq:"\u2aaf",precnapprox:"\u2ab9",precneqq:"\u2ab5",precnsim:"\u22e8",precsim:"\u227e",prime:"\u2032",Prime:"\u2033",primes:"\u2119",prnap:"\u2ab9",prnE:"\u2ab5",prnsim:"\u22e8",prod:"\u220f",Product:"\u220f",profalar:"\u232e",profline:"\u2312",profsurf:"\u2313",prop:"\u221d",Proportion:"\u2237",Proportional:"\u221d",propto:"\u221d",prsim:"\u227e",prurel:"\u22b0",pscr:"\u{1d4c5}",Pscr:"\u{1d4ab}",psi:"\u03c8",Psi:"\u03a8",puncsp:"\u2008",qfr:"\u{1d52e}",Qfr:"\u{1d514}",qint:"\u2a0c",qopf:"\u{1d562}",Qopf:"\u211a",qprime:"\u2057",qscr:"\u{1d4c6}",Qscr:"\u{1d4ac}",quaternions:"\u210d",quatint:"\u2a16",quest:"?",questeq:"\u225f",quot:'"',QUOT:'"',rAarr:"\u21db",race:"\u223d\u0331",racute:"\u0155",Racute:"\u0154",radic:"\u221a",raemptyv:"\u29b3",rang:"\u27e9",Rang:"\u27eb",rangd:"\u2992",range:"\u29a5",rangle:"\u27e9",raquo:"\xbb",rarr:"\u2192",rArr:"\u21d2",Rarr:"\u21a0",rarrap:"\u2975",rarrb:"\u21e5",rarrbfs:"\u2920",rarrc:"\u2933",rarrfs:"\u291e",rarrhk:"\u21aa",rarrlp:"\u21ac",rarrpl:"\u2945",rarrsim:"\u2974",rarrtl:"\u21a3",Rarrtl:"\u2916",rarrw:"\u219d",ratail:"\u291a",rAtail:"\u291c",ratio:"\u2236",rationals:"\u211a",rbarr:"\u290d",rBarr:"\u290f",RBarr:"\u2910",rbbrk:"\u2773",rbrace:"}",rbrack:"]",rbrke:"\u298c",rbrksld:"\u298e",rbrkslu:"\u2990",rcaron:"\u0159",Rcaron:"\u0158",rcedil:"\u0157",Rcedil:"\u0156",rceil:"\u2309",rcub:"}",rcy:"\u0440",Rcy:"\u0420",rdca:"\u2937",rdldhar:"\u2969",rdquo:"\u201d",rdquor:"\u201d",rdsh:"\u21b3",Re:"\u211c",real:"\u211c",realine:"\u211b",realpart:"\u211c",reals:"\u211d",rect:"\u25ad",reg:"\xae",REG:"\xae",ReverseElement:"\u220b",ReverseEquilibrium:"\u21cb",ReverseUpEquilibrium:"\u296f",rfisht:"\u297d",rfloor:"\u230b",rfr:"\u{1d52f}",Rfr:"\u211c",rHar:"\u2964",rhard:"\u21c1",rharu:"\u21c0",rharul:"\u296c",rho:"\u03c1",Rho:"\u03a1",rhov:"\u03f1",RightAngleBracket:"\u27e9",rightarrow:"\u2192",Rightarrow:"\u21d2",RightArrow:"\u2192",RightArrowBar:"\u21e5",RightArrowLeftArrow:"\u21c4",rightarrowtail:"\u21a3",RightCeiling:"\u2309",RightDoubleBracket:"\u27e7",RightDownTeeVector:"\u295d",RightDownVector:"\u21c2",RightDownVectorBar:"\u2955",RightFloor:"\u230b",rightharpoondown:"\u21c1",rightharpoonup:"\u21c0",rightleftarrows:"\u21c4",rightleftharpoons:"\u21cc",rightrightarrows:"\u21c9",rightsquigarrow:"\u219d",RightTee:"\u22a2",RightTeeArrow:"\u21a6",RightTeeVector:"\u295b",rightthreetimes:"\u22cc",RightTriangle:"\u22b3",RightTriangleBar:"\u29d0",RightTriangleEqual:"\u22b5",RightUpDownVector:"\u294f",RightUpTeeVector:"\u295c",RightUpVector:"\u21be",RightUpVectorBar:"\u2954",RightVector:"\u21c0",RightVectorBar:"\u2953",ring:"\u02da",risingdotseq:"\u2253",rlarr:"\u21c4",rlhar:"\u21cc",rlm:"\u200f",rmoust:"\u23b1",rmoustache:"\u23b1",rnmid:"\u2aee",roang:"\u27ed",roarr:"\u21fe",robrk:"\u27e7",ropar:"\u2986",ropf:"\u{1d563}",Ropf:"\u211d",roplus:"\u2a2e",rotimes:"\u2a35",RoundImplies:"\u2970",rpar:")",rpargt:"\u2994",rppolint:"\u2a12",rrarr:"\u21c9",Rrightarrow:"\u21db",rsaquo:"\u203a",rscr:"\u{1d4c7}",Rscr:"\u211b",rsh:"\u21b1",Rsh:"\u21b1",rsqb:"]",rsquo:"\u2019",rsquor:"\u2019",rthree:"\u22cc",rtimes:"\u22ca",rtri:"\u25b9",rtrie:"\u22b5",rtrif:"\u25b8",rtriltri:"\u29ce",RuleDelayed:"\u29f4",ruluhar:"\u2968",rx:"\u211e",sacute:"\u015b",Sacute:"\u015a",sbquo:"\u201a",sc:"\u227b",Sc:"\u2abc",scap:"\u2ab8",scaron:"\u0161",Scaron:"\u0160",sccue:"\u227d",sce:"\u2ab0",scE:"\u2ab4",scedil:"\u015f",Scedil:"\u015e",scirc:"\u015d",Scirc:"\u015c",scnap:"\u2aba",scnE:"\u2ab6",scnsim:"\u22e9",scpolint:"\u2a13",scsim:"\u227f",scy:"\u0441",Scy:"\u0421",sdot:"\u22c5",sdotb:"\u22a1",sdote:"\u2a66",searhk:"\u2925",searr:"\u2198",seArr:"\u21d8",searrow:"\u2198",sect:"\xa7",semi:";",seswar:"\u2929",setminus:"\u2216",setmn:"\u2216",sext:"\u2736",sfr:"\u{1d530}",Sfr:"\u{1d516}",sfrown:"\u2322",sharp:"\u266f",shchcy:"\u0449",SHCHcy:"\u0429",shcy:"\u0448",SHcy:"\u0428",ShortDownArrow:"\u2193",ShortLeftArrow:"\u2190",shortmid:"\u2223",shortparallel:"\u2225",ShortRightArrow:"\u2192",ShortUpArrow:"\u2191",shy:"\xad",sigma:"\u03c3",Sigma:"\u03a3",sigmaf:"\u03c2",sigmav:"\u03c2",sim:"\u223c",simdot:"\u2a6a",sime:"\u2243",simeq:"\u2243",simg:"\u2a9e",simgE:"\u2aa0",siml:"\u2a9d",simlE:"\u2a9f",simne:"\u2246",simplus:"\u2a24",simrarr:"\u2972",slarr:"\u2190",SmallCircle:"\u2218",smallsetminus:"\u2216",smashp:"\u2a33",smeparsl:"\u29e4",smid:"\u2223",smile:"\u2323",smt:"\u2aaa",smte:"\u2aac",smtes:"\u2aac\ufe00",softcy:"\u044c",SOFTcy:"\u042c",sol:"/",solb:"\u29c4",solbar:"\u233f",sopf:"\u{1d564}",Sopf:"\u{1d54a}",spades:"\u2660",spadesuit:"\u2660",spar:"\u2225",sqcap:"\u2293",sqcaps:"\u2293\ufe00",sqcup:"\u2294",sqcups:"\u2294\ufe00",Sqrt:"\u221a",sqsub:"\u228f",sqsube:"\u2291",sqsubset:"\u228f",sqsubseteq:"\u2291",sqsup:"\u2290",sqsupe:"\u2292",sqsupset:"\u2290",sqsupseteq:"\u2292",squ:"\u25a1",square:"\u25a1",Square:"\u25a1",SquareIntersection:"\u2293",SquareSubset:"\u228f",SquareSubsetEqual:"\u2291",SquareSuperset:"\u2290",SquareSupersetEqual:"\u2292",SquareUnion:"\u2294",squarf:"\u25aa",squf:"\u25aa",srarr:"\u2192",sscr:"\u{1d4c8}",Sscr:"\u{1d4ae}",ssetmn:"\u2216",ssmile:"\u2323",sstarf:"\u22c6",star:"\u2606",Star:"\u22c6",starf:"\u2605",straightepsilon:"\u03f5",straightphi:"\u03d5",strns:"\xaf",sub:"\u2282",Sub:"\u22d0",subdot:"\u2abd",sube:"\u2286",subE:"\u2ac5",subedot:"\u2ac3",submult:"\u2ac1",subne:"\u228a",subnE:"\u2acb",subplus:"\u2abf",subrarr:"\u2979",subset:"\u2282",Subset:"\u22d0",subseteq:"\u2286",subseteqq:"\u2ac5",SubsetEqual:"\u2286",subsetneq:"\u228a",subsetneqq:"\u2acb",subsim:"\u2ac7",subsub:"\u2ad5",subsup:"\u2ad3",succ:"\u227b",succapprox:"\u2ab8",succcurlyeq:"\u227d",Succeeds:"\u227b",SucceedsEqual:"\u2ab0",SucceedsSlantEqual:"\u227d",SucceedsTilde:"\u227f",succeq:"\u2ab0",succnapprox:"\u2aba",succneqq:"\u2ab6",succnsim:"\u22e9",succsim:"\u227f",SuchThat:"\u220b",sum:"\u2211",Sum:"\u2211",sung:"\u266a",sup:"\u2283",Sup:"\u22d1",sup1:"\xb9",sup2:"\xb2",sup3:"\xb3",supdot:"\u2abe",supdsub:"\u2ad8",supe:"\u2287",supE:"\u2ac6",supedot:"\u2ac4",Superset:"\u2283",SupersetEqual:"\u2287",suphsol:"\u27c9",suphsub:"\u2ad7",suplarr:"\u297b",supmult:"\u2ac2",supne:"\u228b",supnE:"\u2acc",supplus:"\u2ac0",supset:"\u2283",Supset:"\u22d1",supseteq:"\u2287",supseteqq:"\u2ac6",supsetneq:"\u228b",supsetneqq:"\u2acc",supsim:"\u2ac8",supsub:"\u2ad4",supsup:"\u2ad6",swarhk:"\u2926",swarr:"\u2199",swArr:"\u21d9",swarrow:"\u2199",swnwar:"\u292a",szlig:"\xdf",Tab:"\t",target:"\u2316",tau:"\u03c4",Tau:"\u03a4",tbrk:"\u23b4",tcaron:"\u0165",Tcaron:"\u0164",tcedil:"\u0163",Tcedil:"\u0162",tcy:"\u0442",Tcy:"\u0422",tdot:"\u20db",telrec:"\u2315",tfr:"\u{1d531}",Tfr:"\u{1d517}",there4:"\u2234",therefore:"\u2234",Therefore:"\u2234",theta:"\u03b8",Theta:"\u0398",thetasym:"\u03d1",thetav:"\u03d1",thickapprox:"\u2248",thicksim:"\u223c",ThickSpace:"\u205f\u200a",thinsp:"\u2009",ThinSpace:"\u2009",thkap:"\u2248",thksim:"\u223c",thorn:"\xfe",THORN:"\xde",tilde:"\u02dc",Tilde:"\u223c",TildeEqual:"\u2243",TildeFullEqual:"\u2245",TildeTilde:"\u2248",times:"\xd7",timesb:"\u22a0",timesbar:"\u2a31",timesd:"\u2a30",tint:"\u222d",toea:"\u2928",top:"\u22a4",topbot:"\u2336",topcir:"\u2af1",topf:"\u{1d565}",Topf:"\u{1d54b}",topfork:"\u2ada",tosa:"\u2929",tprime:"\u2034",trade:"\u2122",TRADE:"\u2122",triangle:"\u25b5",triangledown:"\u25bf",triangleleft:"\u25c3",trianglelefteq:"\u22b4",triangleq:"\u225c",triangleright:"\u25b9",trianglerighteq:"\u22b5",tridot:"\u25ec",trie:"\u225c",triminus:"\u2a3a",TripleDot:"\u20db",triplus:"\u2a39",trisb:"\u29cd",tritime:"\u2a3b",trpezium:"\u23e2",tscr:"\u{1d4c9}",Tscr:"\u{1d4af}",tscy:"\u0446",TScy:"\u0426",tshcy:"\u045b",TSHcy:"\u040b",tstrok:"\u0167",Tstrok:"\u0166",twixt:"\u226c",twoheadleftarrow:"\u219e",twoheadrightarrow:"\u21a0",uacute:"\xfa",Uacute:"\xda",uarr:"\u2191",uArr:"\u21d1",Uarr:"\u219f",Uarrocir:"\u2949",ubrcy:"\u045e",Ubrcy:"\u040e",ubreve:"\u016d",Ubreve:"\u016c",ucirc:"\xfb",Ucirc:"\xdb",ucy:"\u0443",Ucy:"\u0423",udarr:"\u21c5",udblac:"\u0171",Udblac:"\u0170",udhar:"\u296e",ufisht:"\u297e",ufr:"\u{1d532}",Ufr:"\u{1d518}",ugrave:"\xf9",Ugrave:"\xd9",uHar:"\u2963",uharl:"\u21bf",uharr:"\u21be",uhblk:"\u2580",ulcorn:"\u231c",ulcorner:"\u231c",ulcrop:"\u230f",ultri:"\u25f8",umacr:"\u016b",Umacr:"\u016a",uml:"\xa8",UnderBar:"_",UnderBrace:"\u23df",UnderBracket:"\u23b5",UnderParenthesis:"\u23dd",Union:"\u22c3",UnionPlus:"\u228e",uogon:"\u0173",Uogon:"\u0172",uopf:"\u{1d566}",Uopf:"\u{1d54c}",uparrow:"\u2191",Uparrow:"\u21d1",UpArrow:"\u2191",UpArrowBar:"\u2912",UpArrowDownArrow:"\u21c5",updownarrow:"\u2195",Updownarrow:"\u21d5",UpDownArrow:"\u2195",UpEquilibrium:"\u296e",upharpoonleft:"\u21bf",upharpoonright:"\u21be",uplus:"\u228e",UpperLeftArrow:"\u2196",UpperRightArrow:"\u2197",upsi:"\u03c5",Upsi:"\u03d2",upsih:"\u03d2",upsilon:"\u03c5",Upsilon:"\u03a5",UpTee:"\u22a5",UpTeeArrow:"\u21a5",upuparrows:"\u21c8",urcorn:"\u231d",urcorner:"\u231d",urcrop:"\u230e",uring:"\u016f",Uring:"\u016e",urtri:"\u25f9",uscr:"\u{1d4ca}",Uscr:"\u{1d4b0}",utdot:"\u22f0",utilde:"\u0169",Utilde:"\u0168",utri:"\u25b5",utrif:"\u25b4",uuarr:"\u21c8",uuml:"\xfc",Uuml:"\xdc",uwangle:"\u29a7",vangrt:"\u299c",varepsilon:"\u03f5",varkappa:"\u03f0",varnothing:"\u2205",varphi:"\u03d5",varpi:"\u03d6",varpropto:"\u221d",varr:"\u2195",vArr:"\u21d5",varrho:"\u03f1",varsigma:"\u03c2",varsubsetneq:"\u228a\ufe00",varsubsetneqq:"\u2acb\ufe00",varsupsetneq:"\u228b\ufe00",varsupsetneqq:"\u2acc\ufe00",vartheta:"\u03d1",vartriangleleft:"\u22b2",vartriangleright:"\u22b3",vBar:"\u2ae8",Vbar:"\u2aeb",vBarv:"\u2ae9",vcy:"\u0432",Vcy:"\u0412",vdash:"\u22a2",vDash:"\u22a8",Vdash:"\u22a9",VDash:"\u22ab",Vdashl:"\u2ae6",vee:"\u2228",Vee:"\u22c1",veebar:"\u22bb",veeeq:"\u225a",vellip:"\u22ee",verbar:"|",Verbar:"\u2016",vert:"|",Vert:"\u2016",VerticalBar:"\u2223",VerticalLine:"|",VerticalSeparator:"\u2758",VerticalTilde:"\u2240",VeryThinSpace:"\u200a",vfr:"\u{1d533}",Vfr:"\u{1d519}",vltri:"\u22b2",vnsub:"\u2282\u20d2",vnsup:"\u2283\u20d2",vopf:"\u{1d567}",Vopf:"\u{1d54d}",vprop:"\u221d",vrtri:"\u22b3",vscr:"\u{1d4cb}",Vscr:"\u{1d4b1}",vsubne:"\u228a\ufe00",vsubnE:"\u2acb\ufe00",vsupne:"\u228b\ufe00",vsupnE:"\u2acc\ufe00",Vvdash:"\u22aa",vzigzag:"\u299a",wcirc:"\u0175",Wcirc:"\u0174",wedbar:"\u2a5f",wedge:"\u2227",Wedge:"\u22c0",wedgeq:"\u2259",weierp:"\u2118",wfr:"\u{1d534}",Wfr:"\u{1d51a}",wopf:"\u{1d568}",Wopf:"\u{1d54e}",wp:"\u2118",wr:"\u2240",wreath:"\u2240",wscr:"\u{1d4cc}",Wscr:"\u{1d4b2}",xcap:"\u22c2",xcirc:"\u25ef",xcup:"\u22c3",xdtri:"\u25bd",xfr:"\u{1d535}",Xfr:"\u{1d51b}",xharr:"\u27f7",xhArr:"\u27fa",xi:"\u03be",Xi:"\u039e",xlarr:"\u27f5",xlArr:"\u27f8",xmap:"\u27fc",xnis:"\u22fb",xodot:"\u2a00",xopf:"\u{1d569}",Xopf:"\u{1d54f}",xoplus:"\u2a01",xotime:"\u2a02",xrarr:"\u27f6",xrArr:"\u27f9",xscr:"\u{1d4cd}",Xscr:"\u{1d4b3}",xsqcup:"\u2a06",xuplus:"\u2a04",xutri:"\u25b3",xvee:"\u22c1",xwedge:"\u22c0",yacute:"\xfd",Yacute:"\xdd",yacy:"\u044f",YAcy:"\u042f",ycirc:"\u0177",Ycirc:"\u0176",ycy:"\u044b",Ycy:"\u042b",yen:"\xa5",yfr:"\u{1d536}",Yfr:"\u{1d51c}",yicy:"\u0457",YIcy:"\u0407",yopf:"\u{1d56a}",Yopf:"\u{1d550}",yscr:"\u{1d4ce}",Yscr:"\u{1d4b4}",yucy:"\u044e",YUcy:"\u042e",yuml:"\xff",Yuml:"\u0178",zacute:"\u017a",Zacute:"\u0179",zcaron:"\u017e",Zcaron:"\u017d",zcy:"\u0437",Zcy:"\u0417",zdot:"\u017c",Zdot:"\u017b",zeetrf:"\u2128",ZeroWidthSpace:"\u200b",zeta:"\u03b6",Zeta:"\u0396",zfr:"\u{1d537}",Zfr:"\u2128",zhcy:"\u0436",ZHcy:"\u0416",zigrarr:"\u21dd",zopf:"\u{1d56b}",Zopf:"\u2124",zscr:"\u{1d4cf}",Zscr:"\u{1d4b5}",zwj:"\u200d",zwnj:"\u200c"},z={aacute:"\xe1",Aacute:"\xc1",acirc:"\xe2",Acirc:"\xc2",acute:"\xb4",aelig:"\xe6",AElig:"\xc6",agrave:"\xe0",Agrave:"\xc0",amp:"&",AMP:"&",aring:"\xe5",Aring:"\xc5",atilde:"\xe3",Atilde:"\xc3",auml:"\xe4",Auml:"\xc4",brvbar:"\xa6",ccedil:"\xe7",Ccedil:"\xc7",cedil:"\xb8",cent:"\xa2",copy:"\xa9",COPY:"\xa9",curren:"\xa4",deg:"\xb0",divide:"\xf7",eacute:"\xe9",Eacute:"\xc9",ecirc:"\xea",Ecirc:"\xca",egrave:"\xe8",Egrave:"\xc8",eth:"\xf0",ETH:"\xd0",euml:"\xeb",Euml:"\xcb",frac12:"\xbd",frac14:"\xbc",frac34:"\xbe",gt:">",GT:">",iacute:"\xed",Iacute:"\xcd",icirc:"\xee",Icirc:"\xce",iexcl:"\xa1",igrave:"\xec",Igrave:"\xcc",iquest:"\xbf",iuml:"\xef",Iuml:"\xcf",laquo:"\xab",lt:"<",LT:"<",macr:"\xaf",micro:"\xb5",middot:"\xb7",nbsp:"\xa0",not:"\xac",ntilde:"\xf1",Ntilde:"\xd1",oacute:"\xf3",Oacute:"\xd3",ocirc:"\xf4",Ocirc:"\xd4",ograve:"\xf2",Ograve:"\xd2",ordf:"\xaa",ordm:"\xba",oslash:"\xf8",Oslash:"\xd8",otilde:"\xf5",Otilde:"\xd5",ouml:"\xf6",Ouml:"\xd6",para:"\xb6",plusmn:"\xb1",pound:"\xa3",quot:'"',QUOT:'"',raquo:"\xbb",reg:"\xae",REG:"\xae",sect:"\xa7",shy:"\xad",sup1:"\xb9",sup2:"\xb2",sup3:"\xb3",szlig:"\xdf",thorn:"\xfe",THORN:"\xde",times:"\xd7",uacute:"\xfa",Uacute:"\xda",ucirc:"\xfb",Ucirc:"\xdb",ugrave:"\xf9",Ugrave:"\xd9",uml:"\xa8",uuml:"\xfc",Uuml:"\xdc",yacute:"\xfd",Yacute:"\xdd",yen:"\xa5",yuml:"\xff"},re={0:"\ufffd",128:"\u20ac",130:"\u201a",131:"\u0192",132:"\u201e",133:"\u2026",134:"\u2020",135:"\u2021",136:"\u02c6",137:"\u2030",138:"\u0160",139:"\u2039",140:"\u0152",142:"\u017d",145:"\u2018",146:"\u2019",147:"\u201c",148:"\u201d",149:"\u2022",150:"\u2013",151:"\u2014",152:"\u02dc",153:"\u2122",154:"\u0161",155:"\u203a",156:"\u0153",158:"\u017e",159:"\u0178"},we=[1,2,3,4,5,6,7,8,11,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,127,128,129,130,131,132,133,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,158,159,64976,64977,64978,64979,64980,64981,64982,64983,64984,64985,64986,64987,64988,64989,64990,64991,64992,64993,64994,64995,64996,64997,64998,64999,65e3,65001,65002,65003,65004,65005,65006,65007,65534,65535,131070,131071,196606,196607,262142,262143,327678,327679,393214,393215,458750,458751,524286,524287,589822,589823,655358,655359,720894,720895,786430,786431,851966,851967,917502,917503,983038,983039,1048574,1048575,1114110,1114111],$=String.fromCharCode,b={}.hasOwnProperty,K=function(ke,Ve){return b.call(ke,Ve)},oe=function(ke,Ve){if(!ke)return Ve;var ye,se={};for(ye in Ve)se[ye]=K(ke,ye)?ke[ye]:Ve[ye];return se},_e=function(ke,Ve){var se="";return ke>=55296&&ke<=57343||ke>1114111?(Ve&&X("character reference outside the permissible Unicode range"),"\ufffd"):K(re,ke)?(Ve&&X("disallowed character reference"),re[ke]):(Ve&&function(ke,Ve){for(var se=-1,ye=ke.length;++se65535&&(se+=$((ke-=65536)>>>10&1023|55296),ke=56320|1023&ke),se+=$(ke))},V=function(ke){return"&#x"+ke.toString(16).toUpperCase()+";"},N=function(ke){return"&#"+ke+";"},X=function(ke){throw Error("Parse error: "+ke)},pe=function(ke,Ve){(Ve=oe(Ve,pe.options)).strict&&S.test(ke)&&X("forbidden code point");var Ce=Ve.useNamedReferences,ae=Ve.allowUnsafeSymbols,R=Ve.decimal?N:V,We=function(Ge){return R(Ge.charCodeAt(0))};return Ve.encodeEverything?(ke=ke.replace(I,function(Ge){return Ce&&K(E,Ge)?"&"+E[Ge]+";":We(Ge)}),Ce&&(ke=ke.replace(/>\u20D2/g,">⃒").replace(/<\u20D2/g,"<⃒").replace(/fj/g,"fj")),Ce&&(ke=ke.replace(T,function(Ge){return"&"+E[Ge]+";"}))):Ce?(ae||(ke=ke.replace(P,function(Ge){return"&"+E[Ge]+";"})),ke=(ke=ke.replace(/>\u20D2/g,">⃒").replace(/<\u20D2/g,"<⃒")).replace(T,function(Ge){return"&"+E[Ge]+";"})):ae||(ke=ke.replace(P,We)),ke.replace(F,function(Ge){var Nt=Ge.charCodeAt(0),ln=Ge.charCodeAt(1);return R(1024*(Nt-55296)+ln-56320+65536)}).replace(O,We)};pe.options={allowUnsafeSymbols:!1,encodeEverything:!1,strict:!1,useNamedReferences:!1,decimal:!1};var he=function(ke,Ve){var se=(Ve=oe(Ve,he.options)).strict;return se&&k.test(ke)&&X("malformed character reference"),ke.replace(x,function(ye,Ce,ae,R,We,Ge,Nt,ln,ui){var Hi,Qs,Ch,wh,vt,ko;return Ce?B[vt=Ce]:ae?(vt=ae,(ko=R)&&Ve.isAttributeValue?(se&&"="==ko&&X("`&` did not start a character reference"),ye):(se&&X("named character reference was not terminated by a semicolon"),z[vt]+(ko||""))):We?(Ch=We,Qs=Ge,se&&!Qs&&X("character reference was not terminated by a semicolon"),Hi=parseInt(Ch,10),_e(Hi,se)):Nt?(wh=Nt,Qs=ln,se&&!Qs&&X("character reference was not terminated by a semicolon"),Hi=parseInt(wh,16),_e(Hi,se)):(se&&X("named character reference was not terminated by a semicolon"),ye)})};he.options={isAttributeValue:!1,strict:!1};var je={version:"1.2.0",encode:pe,decode:he,escape:function(ke){return ke.replace(P,function(Ve){return D[Ve]})},unescape:he};void 0!==(le=function(){return je}.call(w,G,w,Le))&&(Le.exports=le)}()},4856:(Le,w,G)=>{Le.exports=G(1652)},7287:(Le,w,G)=>{G(9542);const{trimCharacter:de}=G(1458),{BlockStackItem:Q,TableCellStackItem:q,TableRowStackItem:F,TableStackItem:I,TransformerStackItem:O}=G(6237),{tableToString:T}=G(8186),{WhitespaceProcessor:E}=G(7139);function D(S){if(!(S instanceof Q||S instanceof q))throw new Error("Only blocks and table cells can be requested for text contents.");return S.inlineTextBuilder.isEmpty()?S.rawText:S.rawText+S.inlineTextBuilder.toString()}function k(S,x,B,z){if(!(S instanceof Q||S instanceof q))throw new Error("Only blocks and table cells can contain text.");const re=D(S),we=Math.max(S.stashedLineBreaks,B);S.inlineTextBuilder.clear(),re?S.rawText=re+"\n".repeat(we)+x:(S.rawText=x,S.leadingLineBreaks=we),S.stashedLineBreaks=z}G(4563),Le.exports={BlockTextBuilder:class P{constructor(x,B){this.options=x,this.picker=B,this.whitespaceProcessor=new E(x),this._stackItem=new Q(x),this._wordTransformer=void 0}pushWordTransform(x){this._wordTransformer=new O(this._wordTransformer,x)}popWordTransform(){if(!this._wordTransformer)return;const x=this._wordTransformer.transform;return this._wordTransformer=this._wordTransformer.next,x}_getCombinedWordTransformer(){const x=(B,z)=>z?x(z.transform(B),z.next):B;return B=>x(B,this._wordTransformer)}_popStackItem(){const x=this._stackItem;return this._stackItem=x.next,x}addLineBreak(){(this._stackItem instanceof Q||this._stackItem instanceof q)&&(this._stackItem.isPre?this._stackItem.rawText+="\n":this._stackItem.inlineTextBuilder.startNewLine())}addWordBreakOpportunity(){(this._stackItem instanceof Q||this._stackItem instanceof q)&&(this._stackItem.inlineTextBuilder.wordBreakOpportunity=!0)}addInline(x,B={}){this._addInline(x,"object"==typeof B?B:{noWordTransform:B})}_addInline(x,{noWordTransform:B=!1}={}){if(this._stackItem instanceof Q||this._stackItem instanceof q){if(this._stackItem.isPre)return void(this._stackItem.rawText+=x);if(0!==x.length&&(!this._stackItem.stashedLineBreaks||this.whitespaceProcessor.testContainsWords(x))){if(this.options.preserveNewlines){const z=this.whitespaceProcessor.countNewlinesNoWords(x);if(z>0)return void this._stackItem.inlineTextBuilder.startNewLine(z)}this._stackItem.stashedLineBreaks&&this._stackItem.inlineTextBuilder.startNewLine(this._stackItem.stashedLineBreaks),this.whitespaceProcessor.shrinkWrapAdd(x,this._stackItem.inlineTextBuilder,this._wordTransformer&&!B?this._getCombinedWordTransformer():void 0),this._stackItem.stashedLineBreaks=0}}}openBlock(x={},B,z){this._openBlock("object"==typeof x?x:{isPre:z,leadingLineBreaks:x,reservedLineLength:B})}_openBlock({leadingLineBreaks:x=1,reservedLineLength:B=0,isPre:z=!1}={}){const re=Math.max(20,this._stackItem.inlineTextBuilder.maxLineLength-B);this._stackItem=new Q(this.options,this._stackItem,x,re),z&&(this._stackItem.isPre=!0)}closeBlock(x={},B){this._closeBlock("object"==typeof x?x:{trailingLineBreaks:x,blockTransform:B})}_closeBlock({trailingLineBreaks:x=1,blockTransform:B}={}){const z=this._popStackItem(),re=B?B(D(z)):D(z);k(this._stackItem,re,z.leadingLineBreaks,Math.max(z.stashedLineBreaks,x))}openTable(){this._stackItem=new I(this._stackItem)}openTableRow(){if(!(this._stackItem instanceof I))throw new Error("Can't add table row to something that is not a table! Check the formatter.");this._stackItem=new F(this._stackItem)}openTableCell(x={}){this._openTableCell("object"==typeof x?x:{maxColumnWidth:x})}_openTableCell({maxColumnWidth:x}={}){if(!(this._stackItem instanceof F))throw new Error("Can't add table cell to something that is not a table row! Check the formatter.");this._stackItem=new q(this.options,this._stackItem,x)}closeTableCell(x={},B){this._closeTableCell("object"==typeof x?x:{colspan:x,rowspan:B})}_closeTableCell({colspan:x=1,rowspan:B=1}={}){const z=this._popStackItem(),re=de(D(z),"\n");z.next.cells.push({colspan:x,rowspan:B,text:re})}closeTableRow(){const x=this._popStackItem();x.next.rows.push(x.cells)}closeTable(x={},B,z,re){this._closeTable("object"==typeof x?x:{colSpacing:x,leadingLineBreaks:z,rowSpacing:B,trailingLineBreaks:re})}_closeTable({colSpacing:x=3,rowSpacing:B=0,leadingLineBreaks:z=2,trailingLineBreaks:re=2}={}){const we=this._popStackItem(),$=T(we.rows,B,x);$&&k(this._stackItem,$,z,re)}toString(){return D(this._stackItem.getRoot())}}}},7723:(Le,w,G)=>{const le=G(3537),{get:de,numberToLetterSequence:Y,numberToRoman:Q,splitClassesAndIds:q,trimCharacter:F}=G(1458);function T(V,N,X,pe){X.openBlock({leadingLineBreaks:pe.leadingLineBreaks}),N(V.children,X),X.closeBlock({trailingLineBreaks:pe.trailingLineBreaks})}function z(V,N){return N?("string"==typeof N[0]?N[0]:"[")+V+("string"==typeof N[1]?N[1]:"]"):V}function $(V,N,X,pe,he){const Be="li"===de(V,["parent","name"]);let je=0;const xt=(V.children||[]).filter(se=>"text"!==se.type||!/^\s*$/.test(se.data)).map(function(se){if("li"!==se.name)return{node:se,prefix:""};const ye=Be?he().trimStart():he();return ye.length>je&&(je=ye.length),{node:se,prefix:ye}});if(!xt.length)return;const ke=je,Ve="\n"+" ".repeat(ke);X.openBlock({leadingLineBreaks:Be?1:pe.leadingLineBreaks||2});for(const{node:se,prefix:ye}of xt)X.openBlock({leadingLineBreaks:1,reservedLineLength:ke}),N([se],X),X.closeBlock({trailingLineBreaks:1,blockTransform:Ce=>ye+" ".repeat(ke-ye.length)+Ce.replace(/\n/g,Ve)});X.closeBlock({trailingLineBreaks:Be?1:pe.trailingLineBreaks||2})}function _e(V,N,X,pe){function he(je){const xt=+de(je,["attribs","colspan"])||1,ke=+de(je,["attribs","rowspan"])||1;X.openTableCell({maxColumnWidth:pe.maxColumnWidth}),N(je.children,X),X.closeTableCell({colspan:xt,rowspan:ke})}X.openTable(),V.children.forEach(function Be(je){if("tag"!==je.type)return;const xt=!1!==pe.uppercaseHeaderCells?ke=>{X.pushWordTransform(Ve=>Ve.toUpperCase()),he(ke),X.popWordTransform()}:he;switch(je.name){case"thead":case"tbody":case"tfoot":case"center":return void je.children.forEach(Be);case"tr":X.openTableRow();for(const ke of je.children)if("tag"===ke.type)switch(ke.name){case"th":xt(ke);break;case"td":he(ke)}X.closeTableRow()}}),X.closeTable({colSpacing:pe.colSpacing,leadingLineBreaks:pe.leadingLineBreaks,rowSpacing:pe.rowSpacing,trailingLineBreaks:pe.trailingLineBreaks})}G(4563),Le.exports={anchor:function we(V,N,X,pe){const Be=function he(){if(pe.ignoreHref||!V.attribs||!V.attribs.href)return"";let je=V.attribs.href.replace(/^mailto:/,"");return pe.noAnchorUrl&&"#"===je[0]?"":(je=pe.baseUrl&&"/"===je[0]?pe.baseUrl+je:je,le.decode(je,X.options.decodeOptions))}();if(Be){let je="";X.pushWordTransform(ke=>(ke&&(je+=ke),ke)),N(V.children,X),X.popWordTransform(),pe.hideLinkHrefIfSameAsText&&Be===je||X.addInline(je?" "+z(Be,pe.linkBrackets):Be,{noWordTransform:!0})}else N(V.children,X)},block:T,blockquote:function B(V,N,X,pe){X.openBlock({leadingLineBreaks:pe.leadingLineBreaks||2,reservedLineLength:2}),N(V.children,X),X.closeBlock({trailingLineBreaks:pe.trailingLineBreaks||2,blockTransform:he=>(!1!==pe.trimEmptyLines?F(he,"\n"):he).split("\n").map(Be=>"> "+Be).join("\n")})},dataTable:_e,heading:function x(V,N,X,pe){X.openBlock({leadingLineBreaks:pe.leadingLineBreaks||2}),!1!==pe.uppercase?(X.pushWordTransform(he=>he.toUpperCase()),N(V.children,X),X.popWordTransform()):N(V.children,X),X.closeBlock({trailingLineBreaks:pe.trailingLineBreaks||2})},horizontalLine:function D(V,N,X,pe){X.openBlock({leadingLineBreaks:pe.leadingLineBreaks||2}),X.addInline("-".repeat(pe.length||X.options.wordwrap||40)),X.closeBlock({trailingLineBreaks:pe.trailingLineBreaks||2})},image:function re(V,N,X,pe){const he=V.attribs||{},Be=he.alt?le.decode(he.alt,X.options.decodeOptions):"",je=he.src?pe.baseUrl&&0===he.src.indexOf("/")?pe.baseUrl+he.src:he.src:"",xt=je?Be?Be+" "+z(je,pe.linkBrackets):z(je,pe.linkBrackets):Be;X.addInline(xt)},inline:function O(V,N,X,pe){N(V.children,X)},lineBreak:function E(V,N,X,pe){X.addLineBreak()},orderedList:function b(V,N,X,pe){let he=Number(V.attribs.start||"1");const Be=function K(V="1"){switch(V){case"a":return N=>Y(N,"a");case"A":return N=>Y(N,"A");case"i":return N=>Q(N).toLowerCase();case"I":return N=>Q(N);default:return N=>N.toString()}}(V.attribs.type);return $(V,N,X,pe,()=>" "+Be(he++)+". ")},paragraph:function k(V,N,X,pe){X.openBlock({leadingLineBreaks:pe.leadingLineBreaks||2}),N(V.children,X),X.closeBlock({trailingLineBreaks:pe.trailingLineBreaks||2})},pre:function S(V,N,X,pe){X.openBlock({isPre:!0,leadingLineBreaks:pe.leadingLineBreaks||2}),N(V.children,X),X.closeBlock({trailingLineBreaks:pe.trailingLineBreaks||2})},skip:function I(V,N,X,pe){},table:function oe(V,N,X,pe){return function L(V,N){if(!0===N)return!0;if(!V)return!1;const{classes:X,ids:pe}=q(N),he=(V.class||"").split(" "),Be=(V.id||"").split(" ");return he.some(je=>X.includes(je))||Be.some(je=>pe.includes(je))}(V.attribs,X.options.tables)?_e(V,N,X,pe):T(V,N,X,pe)},unorderedList:function ie(V,N,X,pe){const he=pe.itemPrefix||" * ";return $(V,N,X,pe,()=>he)},wbr:function P(V,N,X,pe){X.addWordBreakOpportunity()}}},1458:(Le,w,G)=>{const le=G(4999),q=["I","X","C","M"],F=["V","L","D"],P=(D,k,S)=>[...k];Le.exports={get:function T(D,k){for(const S of k){if(!D)return;D=D[S]}return D},limitedDepthRecursive:function Y(D,k,S=(()=>{})){if(void 0===D){const x=function(...B){return k(x,...B)};return x}return D>=0?function(...x){return k(Y(D-1,k,S),...x)}:S},mergeDuplicatesPreferLast:function E(D,k){const S=new Map;for(let x=D.length;x-- >0;){const B=D[x],z=k(B);S.set(z,S.has(z)?le(B,S.get(z),{arrayMerge:P}):B)}return[...S.values()].reverse()},numberToLetterSequence:function Q(D,k="a",S=26){const x=[];do{x.push((D-=1)%S),D=D/S>>0}while(D>0);const B=k.charCodeAt(0);return x.reverse().map(z=>String.fromCharCode(B+z)).join("")},numberToRoman:function I(D){return[...D+""].map(k=>+k).reverse().map((k,S)=>k%5<4?(k<5?"":F[S])+q[S].repeat(k%5):q[S]+(k<5?F[S]:q[S+1])).reverse().join("")},splitClassesAndIds:function de(D){const k=[],S=[];for(const x of D)x.startsWith(".")?k.push(x.substring(1)):x.startsWith("#")&&S.push(x.substring(1));return{classes:k,ids:S}},trimCharacter:function O(D,k){let S=0,x=D.length;for(;SS&&D[x-1]===k;)--x;return S>0||x{const{hp2Builder:le}=G(5999),de=G(4999),Y=G(3537),Q=G(534),q=G(9542),{BlockTextBuilder:F}=G(7287),I=G(7723),{limitedDepthRecursive:O,mergeDuplicatesPreferLast:T,get:E}=G(1458);G(4563);const P={baseElements:{selectors:["body"],orderBy:"selectors",returnDomByDefault:!0},decodeOptions:{isAttributeValue:!1,strict:!1},formatters:{},limits:{ellipsis:"...",maxBaseElements:void 0,maxChildNodes:void 0,maxDepth:void 0,maxInputLength:1<<24},longWordSplit:{forceWrapOnLimit:!1,wrapCharacters:[]},preserveNewlines:!1,selectors:[{selector:"*",format:"inline"},{selector:"a",format:"anchor",options:{baseUrl:null,hideLinkHrefIfSameAsText:!1,ignoreHref:!1,linkBrackets:["[","]"],noAnchorUrl:!0}},{selector:"article",format:"block"},{selector:"aside",format:"block"},{selector:"blockquote",format:"blockquote",options:{leadingLineBreaks:2,trailingLineBreaks:2,trimEmptyLines:!0}},{selector:"br",format:"lineBreak"},{selector:"div",format:"block"},{selector:"footer",format:"block"},{selector:"form",format:"block"},{selector:"h1",format:"heading",options:{leadingLineBreaks:3,trailingLineBreaks:2,uppercase:!0}},{selector:"h2",format:"heading",options:{leadingLineBreaks:3,trailingLineBreaks:2,uppercase:!0}},{selector:"h3",format:"heading",options:{leadingLineBreaks:3,trailingLineBreaks:2,uppercase:!0}},{selector:"h4",format:"heading",options:{leadingLineBreaks:2,trailingLineBreaks:2,uppercase:!0}},{selector:"h5",format:"heading",options:{leadingLineBreaks:2,trailingLineBreaks:2,uppercase:!0}},{selector:"h6",format:"heading",options:{leadingLineBreaks:2,trailingLineBreaks:2,uppercase:!0}},{selector:"header",format:"block"},{selector:"hr",format:"horizontalLine",options:{leadingLineBreaks:2,length:void 0,trailingLineBreaks:2}},{selector:"img",format:"image",options:{baseUrl:null,linkBrackets:["[","]"]}},{selector:"main",format:"block"},{selector:"nav",format:"block"},{selector:"ol",format:"orderedList",options:{leadingLineBreaks:2,trailingLineBreaks:2}},{selector:"p",format:"paragraph",options:{leadingLineBreaks:2,trailingLineBreaks:2}},{selector:"pre",format:"pre",options:{leadingLineBreaks:2,trailingLineBreaks:2}},{selector:"section",format:"block"},{selector:"table",format:"table",options:{colSpacing:3,leadingLineBreaks:2,maxColumnWidth:60,rowSpacing:0,trailingLineBreaks:2,uppercaseHeaderCells:!0}},{selector:"ul",format:"unorderedList",options:{itemPrefix:" * ",leadingLineBreaks:2,trailingLineBreaks:2}},{selector:"wbr",format:"wbr"}],tables:[],whitespaceCharacters:" \t\r\n\f\u200b",wordwrap:80},k=(b,K,L)=>[...K],S=(b,K,L)=>b.some(oe=>"object"==typeof oe)?((b,K,L)=>[...b,...K])(b,K):k(0,K);function x(b={}){(b=de(P,b,{arrayMerge:k,customMerge:N=>"selectors"===N?S:void 0})).formatters=Object.assign({},I,b.formatters),b.selectors=T(b.selectors,N=>N.selector),function re(b){const K=b.selectors;if(b.tags){const _e=Object.entries(b.tags).map(([V,N])=>({...N,selector:V||"*"}));K.push(..._e)}function L(_e,V,N){const X=V.pop();for(const pe of V){let he=_e[pe];he||(he={},_e[pe]=he),_e=he}_e[X]=N}function oe(_e,V,N){if(void 0!==b[_e])for(const X of K)X.format===V&&L(X,["options",N],b[_e])}if(oe("hideLinkHrefIfSameAsText","anchor","hideLinkHrefIfSameAsText"),oe("ignoreHref","anchor","ignoreHref"),oe("linkHrefBaseUrl","anchor","baseUrl"),oe("noAnchorUrl","anchor","noAnchorUrl"),oe("noLinkBrackets","anchor","noLinkBrackets"),oe("linkHrefBaseUrl","image","baseUrl"),oe("unorderedListItemPrefix","unorderedList","itemPrefix"),oe("uppercaseHeadings","heading","uppercase"),oe("uppercaseHeadings","table","uppercaseHeadings"),oe("uppercaseHeadings","dataTable","uppercaseHeadings"),b.ignoreImage)for(const _e of K)"image"===_e.format&&(_e.format="skip");if(b.singleNewLineParagraphs)for(const _e of K)("paragraph"===_e.format||"pre"===_e.format)&&(L(_e,["options","leadingLineBreaks"],1),L(_e,["options","trailingLineBreaks"],1));if(b.baseElement){const _e=b.baseElement;L(b,["baseElements","selectors"],Array.isArray(_e)?_e:[_e])}void 0!==b.returnDomByDefault&&L(b,["baseElements","returnDomByDefault"],b.returnDomByDefault);for(const _e of K)"anchor"===_e.format&&E(_e,["options","noLinkBrackets"])&&L(_e,["options","linkBrackets"],!1)}(b);const K=b.selectors.filter(N=>!N.format);if(K.length)throw new Error("Following selectors have no specified format: "+K.map(N=>`\`${N.selector}\``).join(", "));const L=new q.DecisionTree(b.selectors.map(N=>[N.selector,N])).build(le),oe=new q.DecisionTree(b.baseElements.selectors.map((N,X)=>[N,X+1])).build(le);function _e(N){return function we(b,K,L){const oe=[];return O(K.limits.maxDepth,function _e(N,X){X=X.slice(0,K.limits.maxChildNodes);for(const pe of X){if("tag"!==pe.type)continue;const he=L.pick1(pe);if(he>0?oe.push({selectorIndex:he,element:pe}):pe.children&&N(pe.children),oe.length>=K.limits.maxBaseElements)return}})(b),"occurrence"!==K.baseElements.orderBy&&oe.sort((N,X)=>N.selectorIndex-X.selectorIndex),K.baseElements.returnDomByDefault&&0===oe.length?b:oe.map(N=>N.element)}(N,b,oe)}const V=O(b.limits.maxDepth,$,function(N,X){X.addInline(b.limits.ellipsis||"")});return function(N){return function B(b,K,L,oe,_e){const V=K.limits.maxInputLength;V&&b&&b.length>V&&(console.warn(`Input length ${b.length} is above allowed limit of ${V}. Truncating without ellipsis.`),b=b.substring(0,V));const N=new Q.DomHandler;new Q.Parser(N,{decodeEntities:!1}).parseComplete(b);const X=oe(N.dom),pe=new F(K,L);return _e(X,pe),pe.toString()}(N,b,L,_e,V)}}function z(b,K={}){return x(K)(b)}function $(b,K,L){if(!K)return;const oe=L.options;K.length>oe.limits.maxChildNodes&&(K=K.slice(0,oe.limits.maxChildNodes)).push({data:oe.limits.ellipsis,type:"text"});for(const V of K)switch(V.type){case"text":L.addInline(Y.decode(V.data,oe.decodeOptions));break;case"tag":{const N=L.picker.pick1(V);(0,oe.formatters[N.format])(V,b,L,N.options||{});break}}}Le.exports={compile:x,convert:z,fromString:(b,K={})=>z(b,K),htmlToText:z}},8395:(Le,w,G)=>{G(4563),Le.exports={InlineTextBuilder:class le{constructor(Y,Q){this.lines=[],this.nextLineWords=[],this.maxLineLength=Q||Y.wordwrap||Number.MAX_VALUE,this.nextLineAvailableChars=this.maxLineLength,this.wrapCharacters=Y.longWordSplit.wrapCharacters||[],this.forceWrapOnLimit=Y.longWordSplit.forceWrapOnLimit||!1,this.stashedSpace=!1,this.wordBreakOpportunity=!1}pushWord(Y){this.nextLineAvailableChars<=0&&this.startNewLine();const Q=0===this.nextLineWords.length,q=Y.length+(Q?0:1);if(q<=this.nextLineAvailableChars)this.nextLineWords.push(Y),this.nextLineAvailableChars-=q;else{const[F,...I]=this.splitLongWord(Y);Q||this.startNewLine(),this.nextLineWords.push(F),this.nextLineAvailableChars-=F.length;for(const O of I)this.startNewLine(),this.nextLineWords.push(O),this.nextLineAvailableChars-=O.length}}popWord(){const Y=this.nextLineWords.pop();return void 0!==Y&&(this.nextLineAvailableChars+=Y.length+(0===this.nextLineWords.length?0:1)),Y}concatWord(Y){if(this.wordBreakOpportunity&&Y.length>this.nextLineAvailableChars)this.pushWord(Y),this.wordBreakOpportunity=!1;else{const Q=this.popWord();this.pushWord(Q?Q.concat(Y):Y)}}startNewLine(Y=1){this.lines.push(this.nextLineWords),Y>1&&this.lines.push(...Array.from({length:Y-1},()=>[])),this.nextLineWords=[],this.nextLineAvailableChars=this.maxLineLength}isEmpty(){return 0===this.lines.length&&0===this.nextLineWords.length}clear(){this.lines.length=0,this.nextLineWords.length=0,this.nextLineAvailableChars=this.maxLineLength}toString(){return[...this.lines,this.nextLineWords].map(Y=>Y.join(" ")).join("\n")}splitLongWord(Y){const Q=[];let q=0;for(;Y.length>this.maxLineLength;){const F=Y.substring(0,this.maxLineLength),I=Y.substring(this.maxLineLength),O=F.lastIndexOf(this.wrapCharacters[q]);if(O>-1)Y=F.substring(O+1)+I,Q.push(F.substring(0,O+1));else{if(q++,!(qthis.maxLineLength)continue}else Y=F+I;break}Y=F+I}}return Q.push(Y),Q}}}},6237:(Le,w,G)=>{const{InlineTextBuilder:le}=G(8395);class de{constructor(T=null){this.next=T}getRoot(){return this.next?this.next:this}}Le.exports={BlockStackItem:class Y extends de{constructor(T,E=null,P=1,D){super(E),this.leadingLineBreaks=P,this.inlineTextBuilder=new le(T,D),this.rawText="",this.stashedLineBreaks=0,this.isPre=E&&E.isPre}},StackItem:de,TableCellStackItem:class F extends de{constructor(T,E=null,P){super(E),this.inlineTextBuilder=new le(T,P),this.rawText="",this.stashedLineBreaks=0,this.isPre=E&&E.isPre}},TableRowStackItem:class q extends de{constructor(T=null){super(T),this.cells=[],this.isPre=T&&T.isPre}},TableStackItem:class Q extends de{constructor(T=null){super(T),this.rows=[],this.isPre=T&&T.isPre}},TransformerStackItem:class I extends de{constructor(T=null,E){super(T),this.transform=E}}}},8186:Le=>{function w(q,F){return q[F]||(q[F]=[]),q[F]}function G(q,F=0){for(;q[F];)F++;return F}function de(q,F,I,O){for(let T=0;TT?x.length:T}!function le(q,F){for(let I=0;IT?E:T);const D=[],k=[0];for(let S=0;Sz?we.length:z}Y(k,S,B.colspan,z+I),B.rendered=!0}x+=B.rowspan}}return D.join("\n")}}},4563:()=>{},7139:(Le,w,G)=>{G(8395),G(4563),Le.exports={WhitespaceProcessor:class Y{constructor(q){this.whitespaceChars=q.preserveNewlines?q.whitespaceCharacters.replace(/\n/g,""):q.whitespaceCharacters;const F=function de(Q){return[...Q].map(q=>"\\u"+q.charCodeAt(0).toString(16).padStart(4,"0")).join("")}(this.whitespaceChars);if(this.leadingWhitespaceRe=new RegExp(`^[${F}]`),this.trailingWhitespaceRe=new RegExp(`[${F}]$`),this.allWhitespaceOrEmptyRe=new RegExp(`^[${F}]*$`),this.newlineOrNonWhitespaceRe=new RegExp(`(\\n|[^\\n${F}])`,"g"),q.preserveNewlines){const I=new RegExp(`\\n|[^\\n${F}]+`,"gm");this.shrinkWrapAdd=function(O,T,E=(P=>P)){if(!O)return;const P=T.stashedSpace;let D=!1,k=I.exec(O);if(k)for(D=!0,"\n"===k[0]?T.startNewLine():P||this.testLeadingWhitespace(O)?T.pushWord(E(k[0])):T.concatWord(E(k[0]));null!==(k=I.exec(O));)"\n"===k[0]?T.startNewLine():T.pushWord(E(k[0]));T.stashedSpace=P&&!D||this.testTrailingWhitespace(O)}}else{const I=new RegExp(`[^${F}]+`,"g");this.shrinkWrapAdd=function(O,T,E=(P=>P)){if(!O)return;const P=T.stashedSpace;let D=!1,k=I.exec(O);if(k)for(D=!0,P||this.testLeadingWhitespace(O)?T.pushWord(E(k[0])):T.concatWord(E(k[0]));null!==(k=I.exec(O));)T.pushWord(E(k[0]));T.stashedSpace=P&&!D||this.testTrailingWhitespace(O)}}}testLeadingWhitespace(q){return this.leadingWhitespaceRe.test(q)}testTrailingWhitespace(q){return this.trailingWhitespaceRe.test(q)}testContainsWords(q){return!this.allWhitespaceOrEmptyRe.test(q)}countNewlinesNoWords(q){this.newlineOrNonWhitespaceRe.lastIndex=0;let I,F=0;for(;null!==(I=this.newlineOrNonWhitespaceRe.exec(q));){if("\n"!==I[0])return 0;F++}return F}}}},1126:function(Le,w,G){"use strict";var $,le=this&&this.__extends||($=function(ie,b){return($=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(K,L){K.__proto__=L}||function(K,L){for(var oe in L)Object.prototype.hasOwnProperty.call(L,oe)&&(K[oe]=L[oe])})(ie,b)},function(ie,b){if("function"!=typeof b&&null!==b)throw new TypeError("Class extends value "+String(b)+" is not a constructor or null");function K(){this.constructor=ie}$(ie,b),ie.prototype=null===b?Object.create(b):(K.prototype=b.prototype,new K)}),de=this&&this.__createBinding||(Object.create?function($,ie,b,K){void 0===K&&(K=b),Object.defineProperty($,K,{enumerable:!0,get:function(){return ie[b]}})}:function($,ie,b,K){void 0===K&&(K=b),$[K]=ie[b]}),Y=this&&this.__setModuleDefault||(Object.create?function($,ie){Object.defineProperty($,"default",{enumerable:!0,value:ie})}:function($,ie){$.default=ie}),Q=this&&this.__importStar||function($){if($&&$.__esModule)return $;var ie={};if(null!=$)for(var b in $)"default"!==b&&Object.prototype.hasOwnProperty.call($,b)&&de(ie,$,b);return Y(ie,$),ie},q=this&&this.__importDefault||function($){return $&&$.__esModule?$:{default:$}};Object.defineProperty(w,"__esModule",{value:!0}),w.parseFeed=w.FeedHandler=void 0;var F=q(G(2962)),I=Q(G(2155)),O=G(3380),P=function($){function ie(b,K){return"object"==typeof b&&(K=b=void 0),$.call(this,b,K)||this}return le(ie,$),ie.prototype.onend=function(){var b,K,L=S(re,this.dom);if(L){var oe={};if("feed"===L.name){var _e=L.children;oe.type="atom",z(oe,"id","id",_e),z(oe,"title","title",_e);var V=B("href",S("link",_e));V&&(oe.link=V),z(oe,"description","subtitle",_e),(N=x("updated",_e))&&(oe.updated=new Date(N)),z(oe,"author","email",_e,!0),oe.items=k("entry",_e).map(function(X){var pe={},he=X.children;z(pe,"id","id",he),z(pe,"title","title",he);var Be=B("href",S("link",he));Be&&(pe.link=Be);var je=x("summary",he)||x("content",he);je&&(pe.description=je);var xt=x("updated",he);return xt&&(pe.pubDate=new Date(xt)),pe.media=D(he),pe})}else{var N;_e=null!==(K=null===(b=S("channel",L.children))||void 0===b?void 0:b.children)&&void 0!==K?K:[],oe.type=L.name.substr(0,3),oe.id="",z(oe,"title","title",_e),z(oe,"link","link",_e),z(oe,"description","description",_e),(N=x("lastBuildDate",_e))&&(oe.updated=new Date(N)),z(oe,"author","managingEditor",_e,!0),oe.items=k("item",L.children).map(function(he){var Be={},je=he.children;z(Be,"id","guid",je),z(Be,"title","title",je),z(Be,"link","link",je),z(Be,"description","description",je);var xt=x("pubDate",je);return xt&&(Be.pubDate=new Date(xt)),Be.media=D(je),Be})}this.feed=oe,this.handleCallback(null)}else this.handleCallback(new Error("couldn't find root of feed"))},ie}(F.default);function D($){return k("media:content",$).map(function(ie){var b={medium:ie.attribs.medium,isDefault:!!ie.attribs.isDefault};return ie.attribs.url&&(b.url=ie.attribs.url),ie.attribs.fileSize&&(b.fileSize=parseInt(ie.attribs.fileSize,10)),ie.attribs.type&&(b.type=ie.attribs.type),ie.attribs.expression&&(b.expression=ie.attribs.expression),ie.attribs.bitrate&&(b.bitrate=parseInt(ie.attribs.bitrate,10)),ie.attribs.framerate&&(b.framerate=parseInt(ie.attribs.framerate,10)),ie.attribs.samplingrate&&(b.samplingrate=parseInt(ie.attribs.samplingrate,10)),ie.attribs.channels&&(b.channels=parseInt(ie.attribs.channels,10)),ie.attribs.duration&&(b.duration=parseInt(ie.attribs.duration,10)),ie.attribs.height&&(b.height=parseInt(ie.attribs.height,10)),ie.attribs.width&&(b.width=parseInt(ie.attribs.width,10)),ie.attribs.lang&&(b.lang=ie.attribs.lang),b})}function k($,ie){return I.getElementsByTagName($,ie,!0)}function S($,ie){return I.getElementsByTagName($,ie,!0,1)[0]}function x($,ie,b){return void 0===b&&(b=!1),I.getText(I.getElementsByTagName($,ie,b,1)).trim()}function B($,ie){return ie?ie.attribs[$]:null}function z($,ie,b,K,L){void 0===L&&(L=!1);var oe=x(b,K,L);oe&&($[ie]=oe)}function re($){return"rss"===$||"feed"===$||"rdf:RDF"===$}w.FeedHandler=P,w.parseFeed=function we($,ie){void 0===ie&&(ie={xmlMode:!0});var b=new P(ie);return new O.Parser(b,ie).end($),b.feed}},3380:function(Le,w,G){"use strict";var le=this&&this.__importDefault||function(P){return P&&P.__esModule?P:{default:P}};Object.defineProperty(w,"__esModule",{value:!0}),w.Parser=void 0;var de=le(G(6282)),Y=new Set(["input","option","optgroup","select","button","datalist","textarea"]),Q=new Set(["p"]),q={tr:new Set(["tr","th","td"]),th:new Set(["th"]),td:new Set(["thead","th","td"]),body:new Set(["head","link","script"]),li:new Set(["li"]),p:Q,h1:Q,h2:Q,h3:Q,h4:Q,h5:Q,h6:Q,select:Y,input:Y,output:Y,button:Y,datalist:Y,textarea:Y,option:new Set(["option"]),optgroup:new Set(["optgroup","option"]),dd:new Set(["dt","dd"]),dt:new Set(["dt","dd"]),address:Q,article:Q,aside:Q,blockquote:Q,details:Q,div:Q,dl:Q,fieldset:Q,figcaption:Q,figure:Q,footer:Q,form:Q,header:Q,hr:Q,main:Q,nav:Q,ol:Q,pre:Q,section:Q,table:Q,ul:Q,rt:new Set(["rt","rp"]),rp:new Set(["rt","rp"]),tbody:new Set(["thead","tbody"]),tfoot:new Set(["thead","tbody"])},F=new Set(["area","base","basefont","br","col","command","embed","frame","hr","img","input","isindex","keygen","link","meta","param","source","track","wbr"]),I=new Set(["math","svg"]),O=new Set(["mi","mo","mn","ms","mtext","annotation-xml","foreignObject","desc","title"]),T=/\s|\//,E=function(){function P(D,k){var S,x,B,z,re;void 0===k&&(k={}),this.startIndex=0,this.endIndex=null,this.tagname="",this.attribname="",this.attribvalue="",this.attribs=null,this.stack=[],this.foreignContext=[],this.options=k,this.cbs=D??{},this.lowerCaseTagNames=null!==(S=k.lowerCaseTags)&&void 0!==S?S:!k.xmlMode,this.lowerCaseAttributeNames=null!==(x=k.lowerCaseAttributeNames)&&void 0!==x?x:!k.xmlMode,this.tokenizer=new(null!==(B=k.Tokenizer)&&void 0!==B?B:de.default)(this.options,this),null===(re=(z=this.cbs).onparserinit)||void 0===re||re.call(z,this)}return P.prototype.updatePosition=function(D){this.startIndex=null===this.endIndex?this.tokenizer.sectionStart<=D?0:this.tokenizer.sectionStart-D:this.endIndex+1,this.endIndex=this.tokenizer.getAbsoluteIndex()},P.prototype.ontext=function(D){var k,S;this.updatePosition(1),this.endIndex--,null===(S=(k=this.cbs).ontext)||void 0===S||S.call(k,D)},P.prototype.onopentagname=function(D){var k,S;if(this.lowerCaseTagNames&&(D=D.toLowerCase()),this.tagname=D,!this.options.xmlMode&&Object.prototype.hasOwnProperty.call(q,D))for(var x=void 0;this.stack.length>0&&q[D].has(x=this.stack[this.stack.length-1]);)this.onclosetag(x);(this.options.xmlMode||!F.has(D))&&(this.stack.push(D),I.has(D)?this.foreignContext.push(!0):O.has(D)&&this.foreignContext.push(!1)),null===(S=(k=this.cbs).onopentagname)||void 0===S||S.call(k,D),this.cbs.onopentag&&(this.attribs={})},P.prototype.onopentagend=function(){var D,k;this.updatePosition(1),this.attribs&&(null===(k=(D=this.cbs).onopentag)||void 0===k||k.call(D,this.tagname,this.attribs),this.attribs=null),!this.options.xmlMode&&this.cbs.onclosetag&&F.has(this.tagname)&&this.cbs.onclosetag(this.tagname),this.tagname=""},P.prototype.onclosetag=function(D){if(this.updatePosition(1),this.lowerCaseTagNames&&(D=D.toLowerCase()),(I.has(D)||O.has(D))&&this.foreignContext.pop(),!this.stack.length||!this.options.xmlMode&&F.has(D))!this.options.xmlMode&&("br"===D||"p"===D)&&(this.onopentagname(D),this.closeCurrentTag());else{var k=this.stack.lastIndexOf(D);if(-1!==k)if(this.cbs.onclosetag)for(k=this.stack.length-k;k--;)this.cbs.onclosetag(this.stack.pop());else this.stack.length=k;else"p"===D&&!this.options.xmlMode&&(this.onopentagname(D),this.closeCurrentTag())}},P.prototype.onselfclosingtag=function(){this.options.xmlMode||this.options.recognizeSelfClosing||this.foreignContext[this.foreignContext.length-1]?this.closeCurrentTag():this.onopentagend()},P.prototype.closeCurrentTag=function(){var D,k,S=this.tagname;this.onopentagend(),this.stack[this.stack.length-1]===S&&(null===(k=(D=this.cbs).onclosetag)||void 0===k||k.call(D,S),this.stack.pop())},P.prototype.onattribname=function(D){this.lowerCaseAttributeNames&&(D=D.toLowerCase()),this.attribname=D},P.prototype.onattribdata=function(D){this.attribvalue+=D},P.prototype.onattribend=function(D){var k,S;null===(S=(k=this.cbs).onattribute)||void 0===S||S.call(k,this.attribname,this.attribvalue,D),this.attribs&&!Object.prototype.hasOwnProperty.call(this.attribs,this.attribname)&&(this.attribs[this.attribname]=this.attribvalue),this.attribname="",this.attribvalue=""},P.prototype.getInstructionName=function(D){var k=D.search(T),S=k<0?D:D.substr(0,k);return this.lowerCaseTagNames&&(S=S.toLowerCase()),S},P.prototype.ondeclaration=function(D){if(this.cbs.onprocessinginstruction){var k=this.getInstructionName(D);this.cbs.onprocessinginstruction("!"+k,"!"+D)}},P.prototype.onprocessinginstruction=function(D){if(this.cbs.onprocessinginstruction){var k=this.getInstructionName(D);this.cbs.onprocessinginstruction("?"+k,"?"+D)}},P.prototype.oncomment=function(D){var k,S,x,B;this.updatePosition(4),null===(S=(k=this.cbs).oncomment)||void 0===S||S.call(k,D),null===(B=(x=this.cbs).oncommentend)||void 0===B||B.call(x)},P.prototype.oncdata=function(D){var k,S,x,B,z,re;this.updatePosition(1),this.options.xmlMode||this.options.recognizeCDATA?(null===(S=(k=this.cbs).oncdatastart)||void 0===S||S.call(k),null===(B=(x=this.cbs).ontext)||void 0===B||B.call(x,D),null===(re=(z=this.cbs).oncdataend)||void 0===re||re.call(z)):this.oncomment("[CDATA["+D+"]]")},P.prototype.onerror=function(D){var k,S;null===(S=(k=this.cbs).onerror)||void 0===S||S.call(k,D)},P.prototype.onend=function(){var D,k;if(this.cbs.onclosetag)for(var S=this.stack.length;S>0;this.cbs.onclosetag(this.stack[--S]));null===(k=(D=this.cbs).onend)||void 0===k||k.call(D)},P.prototype.reset=function(){var D,k,S,x;null===(k=(D=this.cbs).onreset)||void 0===k||k.call(D),this.tokenizer.reset(),this.tagname="",this.attribname="",this.attribs=null,this.stack=[],null===(x=(S=this.cbs).onparserinit)||void 0===x||x.call(S,this)},P.prototype.parseComplete=function(D){this.reset(),this.end(D)},P.prototype.write=function(D){this.tokenizer.write(D)},P.prototype.end=function(D){this.tokenizer.end(D)},P.prototype.pause=function(){this.tokenizer.pause()},P.prototype.resume=function(){this.tokenizer.resume()},P.prototype.parseChunk=function(D){this.write(D)},P.prototype.done=function(D){this.end(D)},P}();w.Parser=E},6282:function(Le,w,G){"use strict";var le=this&&this.__importDefault||function(ae){return ae&&ae.__esModule?ae:{default:ae}};Object.defineProperty(w,"__esModule",{value:!0});var de=le(G(672)),Y=le(G(9323)),Q=le(G(9591)),q=le(G(2586));function F(ae){return" "===ae||"\n"===ae||"\t"===ae||"\f"===ae||"\r"===ae}function I(ae){return ae>="a"&&ae<="z"||ae>="A"&&ae<="Z"}function O(ae,R,We){var Ge=ae.toLowerCase();return ae===Ge?function(Nt,ln){ln===Ge?Nt._state=R:(Nt._state=We,Nt._index--)}:function(Nt,ln){ln===Ge||ln===ae?Nt._state=R:(Nt._state=We,Nt._index--)}}function T(ae,R){var We=ae.toLowerCase();return function(Ge,Nt){Nt===We||Nt===ae?Ge._state=R:(Ge._state=3,Ge._index--)}}var E=O("C",24,16),P=O("D",25,16),D=O("A",26,16),k=O("T",27,16),S=O("A",28,16),x=T("R",35),B=T("I",36),z=T("P",37),re=T("T",38),we=O("R",40,1),$=O("I",41,1),ie=O("P",42,1),b=O("T",43,1),K=T("Y",45),L=T("L",46),oe=T("E",47),_e=O("Y",49,1),V=O("L",50,1),N=O("E",51,1),X=T("I",54),pe=T("T",55),he=T("L",56),Be=T("E",57),je=O("I",58,1),xt=O("T",59,1),ke=O("L",60,1),Ve=O("E",61,1),se=O("#",63,64),ye=O("X",66,65),Ce=function(){function ae(R,We){var Ge;this._state=1,this.buffer="",this.sectionStart=0,this._index=0,this.bufferOffset=0,this.baseState=1,this.special=1,this.running=!0,this.ended=!1,this.cbs=We,this.xmlMode=!!R?.xmlMode,this.decodeEntities=null===(Ge=R?.decodeEntities)||void 0===Ge||Ge}return ae.prototype.reset=function(){this._state=1,this.buffer="",this.sectionStart=0,this._index=0,this.bufferOffset=0,this.baseState=1,this.special=1,this.running=!0,this.ended=!1},ae.prototype.write=function(R){this.ended&&this.cbs.onerror(Error(".write() after done!")),this.buffer+=R,this.parse()},ae.prototype.end=function(R){this.ended&&this.cbs.onerror(Error(".end() after done!")),R&&this.write(R),this.ended=!0,this.running&&this.finish()},ae.prototype.pause=function(){this.running=!1},ae.prototype.resume=function(){this.running=!0,this._indexthis.sectionStart&&this.cbs.ontext(this.getSection()),this._state=2,this.sectionStart=this._index):this.decodeEntities&&"&"===R&&(1===this.special||4===this.special)&&(this._index>this.sectionStart&&this.cbs.ontext(this.getSection()),this.baseState=1,this._state=62,this.sectionStart=this._index)},ae.prototype.isTagStartChar=function(R){return I(R)||this.xmlMode&&!F(R)&&"/"!==R&&">"!==R},ae.prototype.stateBeforeTagName=function(R){"/"===R?this._state=5:"<"===R?(this.cbs.ontext(this.getSection()),this.sectionStart=this._index):">"===R||1!==this.special||F(R)?this._state=1:"!"===R?(this._state=15,this.sectionStart=this._index+1):"?"===R?(this._state=17,this.sectionStart=this._index+1):this.isTagStartChar(R)?(this._state=this.xmlMode||"s"!==R&&"S"!==R?this.xmlMode||"t"!==R&&"T"!==R?3:52:32,this.sectionStart=this._index):this._state=1},ae.prototype.stateInTagName=function(R){("/"===R||">"===R||F(R))&&(this.emitToken("onopentagname"),this._state=8,this._index--)},ae.prototype.stateBeforeClosingTagName=function(R){F(R)||(">"===R?this._state=1:1!==this.special?4===this.special||"s"!==R&&"S"!==R?4!==this.special||"t"!==R&&"T"!==R?(this._state=1,this._index--):this._state=53:this._state=33:this.isTagStartChar(R)?(this._state=6,this.sectionStart=this._index):(this._state=20,this.sectionStart=this._index))},ae.prototype.stateInClosingTagName=function(R){(">"===R||F(R))&&(this.emitToken("onclosetag"),this._state=7,this._index--)},ae.prototype.stateAfterClosingTagName=function(R){">"===R&&(this._state=1,this.sectionStart=this._index+1)},ae.prototype.stateBeforeAttributeName=function(R){">"===R?(this.cbs.onopentagend(),this._state=1,this.sectionStart=this._index+1):"/"===R?this._state=4:F(R)||(this._state=9,this.sectionStart=this._index)},ae.prototype.stateInSelfClosingTag=function(R){">"===R?(this.cbs.onselfclosingtag(),this._state=1,this.sectionStart=this._index+1,this.special=1):F(R)||(this._state=8,this._index--)},ae.prototype.stateInAttributeName=function(R){("="===R||"/"===R||">"===R||F(R))&&(this.cbs.onattribname(this.getSection()),this.sectionStart=-1,this._state=10,this._index--)},ae.prototype.stateAfterAttributeName=function(R){"="===R?this._state=11:"/"===R||">"===R?(this.cbs.onattribend(void 0),this._state=8,this._index--):F(R)||(this.cbs.onattribend(void 0),this._state=9,this.sectionStart=this._index)},ae.prototype.stateBeforeAttributeValue=function(R){'"'===R?(this._state=12,this.sectionStart=this._index+1):"'"===R?(this._state=13,this.sectionStart=this._index+1):F(R)||(this._state=14,this.sectionStart=this._index,this._index--)},ae.prototype.handleInAttributeValue=function(R,We){R===We?(this.emitToken("onattribdata"),this.cbs.onattribend(We),this._state=8):this.decodeEntities&&"&"===R&&(this.emitToken("onattribdata"),this.baseState=this._state,this._state=62,this.sectionStart=this._index)},ae.prototype.stateInAttributeValueDoubleQuotes=function(R){this.handleInAttributeValue(R,'"')},ae.prototype.stateInAttributeValueSingleQuotes=function(R){this.handleInAttributeValue(R,"'")},ae.prototype.stateInAttributeValueNoQuotes=function(R){F(R)||">"===R?(this.emitToken("onattribdata"),this.cbs.onattribend(null),this._state=8,this._index--):this.decodeEntities&&"&"===R&&(this.emitToken("onattribdata"),this.baseState=this._state,this._state=62,this.sectionStart=this._index)},ae.prototype.stateBeforeDeclaration=function(R){this._state="["===R?23:"-"===R?18:16},ae.prototype.stateInDeclaration=function(R){">"===R&&(this.cbs.ondeclaration(this.getSection()),this._state=1,this.sectionStart=this._index+1)},ae.prototype.stateInProcessingInstruction=function(R){">"===R&&(this.cbs.onprocessinginstruction(this.getSection()),this._state=1,this.sectionStart=this._index+1)},ae.prototype.stateBeforeComment=function(R){"-"===R?(this._state=19,this.sectionStart=this._index+1):this._state=16},ae.prototype.stateInComment=function(R){"-"===R&&(this._state=21)},ae.prototype.stateInSpecialComment=function(R){">"===R&&(this.cbs.oncomment(this.buffer.substring(this.sectionStart,this._index)),this._state=1,this.sectionStart=this._index+1)},ae.prototype.stateAfterComment1=function(R){this._state="-"===R?22:19},ae.prototype.stateAfterComment2=function(R){">"===R?(this.cbs.oncomment(this.buffer.substring(this.sectionStart,this._index-2)),this._state=1,this.sectionStart=this._index+1):"-"!==R&&(this._state=19)},ae.prototype.stateBeforeCdata6=function(R){"["===R?(this._state=29,this.sectionStart=this._index+1):(this._state=16,this._index--)},ae.prototype.stateInCdata=function(R){"]"===R&&(this._state=30)},ae.prototype.stateAfterCdata1=function(R){this._state="]"===R?31:29},ae.prototype.stateAfterCdata2=function(R){">"===R?(this.cbs.oncdata(this.buffer.substring(this.sectionStart,this._index-2)),this._state=1,this.sectionStart=this._index+1):"]"!==R&&(this._state=29)},ae.prototype.stateBeforeSpecialS=function(R){"c"===R||"C"===R?this._state=34:"t"===R||"T"===R?this._state=44:(this._state=3,this._index--)},ae.prototype.stateBeforeSpecialSEnd=function(R){this._state=2!==this.special||"c"!==R&&"C"!==R?3!==this.special||"t"!==R&&"T"!==R?1:48:39},ae.prototype.stateBeforeSpecialLast=function(R,We){("/"===R||">"===R||F(R))&&(this.special=We),this._state=3,this._index--},ae.prototype.stateAfterSpecialLast=function(R,We){">"===R||F(R)?(this.special=1,this._state=6,this.sectionStart=this._index-We,this._index--):this._state=1},ae.prototype.parseFixedEntity=function(R){if(void 0===R&&(R=this.xmlMode?q.default:Y.default),this.sectionStart+1=2;){var Ge=this.buffer.substr(R,We);if(Object.prototype.hasOwnProperty.call(Q.default,Ge))return this.emitPartial(Q.default[Ge]),void(this.sectionStart+=We+1);We--}},ae.prototype.stateInNamedEntity=function(R){";"===R?(this.parseFixedEntity(),1===this.baseState&&this.sectionStart+1"9")&&!I(R)&&(this.xmlMode||this.sectionStart+1===this._index||(1!==this.baseState?"="!==R&&this.parseFixedEntity(Q.default):this.parseLegacyEntity()),this._state=this.baseState,this._index--)},ae.prototype.decodeNumericEntity=function(R,We,Ge){var Nt=this.sectionStart+R;if(Nt!==this._index){var ln=this.buffer.substring(Nt,this._index),ui=parseInt(ln,We);this.emitPartial(de.default(ui)),this.sectionStart=Ge?this._index+1:this._index}this._state=this.baseState},ae.prototype.stateInNumericEntity=function(R){";"===R?this.decodeNumericEntity(2,10,!0):(R<"0"||R>"9")&&(this.xmlMode?this._state=this.baseState:this.decodeNumericEntity(2,10,!1),this._index--)},ae.prototype.stateInHexEntity=function(R){";"===R?this.decodeNumericEntity(3,16,!0):(R<"a"||R>"f")&&(R<"A"||R>"F")&&(R<"0"||R>"9")&&(this.xmlMode?this._state=this.baseState:this.decodeNumericEntity(3,16,!1),this._index--)},ae.prototype.cleanup=function(){this.sectionStart<0?(this.buffer="",this.bufferOffset+=this._index,this._index=0):this.running&&(1===this._state?(this.sectionStart!==this._index&&this.cbs.ontext(this.buffer.substr(this.sectionStart)),this.buffer="",this.bufferOffset+=this._index,this._index=0):this.sectionStart===this._index?(this.buffer="",this.bufferOffset+=this._index,this._index=0):(this.buffer=this.buffer.substr(this.sectionStart),this._index-=this.sectionStart,this.bufferOffset+=this.sectionStart),this.sectionStart=0)},ae.prototype.parse=function(){for(;this._index0)throw new Error("RegExp has capture groups: "+We+"\nUse (?: \u2026 ) instead");if(!Ve.lineBreaks&&We.test("\n"))throw new Error("Rule should declare lineBreaks: "+We);xt.push(E(R))}}var Nt=X&&X.fallback,ln=q&&!Nt?"ym":"gm",ui=q||Nt?"":"|";return!0===Be&&(ln+="u"),{regexp:new RegExp(P(xt)+ui,ln),groups:je,fast:pe,error:X||z}}function $(V,N,X){var pe=V&&(V.push||V.next);if(pe&&!X[pe])throw new Error("Missing state '"+pe+"' (in token '"+V.defaultType+"' of state '"+N+"')");if(V&&V.pop&&1!=+V.pop)throw new Error("pop must be 1 (in token '"+V.defaultType+"' of state '"+N+"')")}var K=function(V,N){this.startState=N,this.states=V,this.buffer="",this.stack=[],this.reset()};K.prototype.reset=function(V,N){return this.buffer=V||"",this.index=0,this.line=N?N.line:1,this.col=N?N.col:1,this.queuedToken=N?N.queuedToken:null,this.queuedThrow=N?N.queuedThrow:null,this.setState(N?N.state:this.startState),this.stack=N&&N.stack?N.stack.slice():[],this},K.prototype.save=function(){return{line:this.line,col:this.col,state:this.state,stack:this.stack.slice(),queuedToken:this.queuedToken,queuedThrow:this.queuedThrow}},K.prototype.setState=function(V){if(V&&this.state!==V){this.state=V;var N=this.states[V];this.groups=N.groups,this.error=N.error,this.re=N.regexp,this.fast=N.fast}},K.prototype.popState=function(){this.setState(this.stack.pop())},K.prototype.pushState=function(V){this.stack.push(this.state),this.setState(V)};var L=q?function(V,N){return V.exec(N)}:function(V,N){var X=V.exec(N);return 0===X[0].length?null:X};function oe(){return this.value}if(K.prototype._getGroup=function(V){for(var N=this.groups.length,X=0;X";throw new Error("Unknown symbol type: "+I)}}return w.highestId=0,w.prototype.toString=function(I){var O=typeof I>"u"?this.symbols.map(F).join(" "):this.symbols.slice(0,I).map(F).join(" ")+" \u25cf "+this.symbols.slice(I).map(F).join(" ");return this.name+" \u2192 "+O},G.prototype.toString=function(){return"{"+this.rule.toString(this.dot)+"}, from: "+(this.reference||0)},G.prototype.nextState=function(I){var O=new G(this.rule,this.dot+1,this.reference,this.wantedBy);return O.left=this,O.right=I,O.isComplete&&(O.data=O.build(),O.right=void 0),O},G.prototype.build=function(){var I=[],O=this;do{I.push(O.right.data),O=O.left}while(O.left);return I.reverse(),I},G.prototype.finish=function(){this.rule.postprocess&&(this.data=this.rule.postprocess(this.data,this.reference,Q.fail))},le.prototype.process=function(I){for(var O=this.states,T=this.wants,E=this.completed,P=0;P0&&O.push(" ^ "+E+" more lines identical to this"),E=0,O.push(" "+k)),T=k}},Q.prototype.getSymbolDisplay=function(I){return function q(I){var O=typeof I;if("string"===O)return I;if("object"===O){if(I.literal)return JSON.stringify(I.literal);if(I instanceof RegExp)return"character matching "+I;if(I.type)return I.type+" token";if(I.test)return"token matching "+String(I.test);throw new Error("Unknown symbol type: "+I)}}(I)},Q.prototype.buildFirstStateStack=function(I,O){if(-1!==O.indexOf(I))return null;if(0===I.wantedBy.length)return[I];var T=I.wantedBy[0],E=[I].concat(O),P=this.buildFirstStateStack(T,E);return null===P?null:[I].concat(P)},Q.prototype.save=function(){var I=this.table[this.current];return I.lexerState=this.lexerState,I},Q.prototype.restore=function(I){var O=I.index;this.current=O,this.table[O]=I,this.table.splice(O+1),this.lexerState=I.lexerState,this.results=this.finish()},Q.prototype.rewind=function(I){if(!this.options.keepHistory)throw new Error("set option `keepHistory` to enable rewinding");this.restore(this.table[I])},Q.prototype.finish=function(){var I=[],O=this.grammar.start;return this.table[this.table.length-1].states.forEach(function(E){E.rule.name===O&&E.dot===E.rule.symbols.length&&0===E.reference&&E.data!==Q.fail&&I.push(E)}),I.map(function(E){return E.data})},{Parser:Q,Grammar:de,Rule:w}},Le.exports?Le.exports=G():this.nearley=G()},5742:(Le,w,G)=>{"use strict";var de=G(1557),Y=G(4802),Q=G(7448),q=G(7302),F=G(4072),I=function(){function T(E){this._isScalar=!1,E&&(this._subscribe=E)}return T.prototype.lift=function(E){var P=new T;return P.source=this,P.operator=E,P},T.prototype.subscribe=function(E,P,D){var k=this.operator,S=Y.toSubscriber(E,P,D);if(S.add(k?k.call(S,this.source):this.source||F.config.useDeprecatedSynchronousErrorHandling&&!S.syncErrorThrowable?this._subscribe(S):this._trySubscribe(S)),F.config.useDeprecatedSynchronousErrorHandling&&S.syncErrorThrowable&&(S.syncErrorThrowable=!1,S.syncErrorThrown))throw S.syncErrorValue;return S},T.prototype._trySubscribe=function(E){try{return this._subscribe(E)}catch(P){F.config.useDeprecatedSynchronousErrorHandling&&(E.syncErrorThrown=!0,E.syncErrorValue=P),de.canReportError(E)?E.error(P):console.warn(P)}},T.prototype.forEach=function(E,P){var D=this;return new(P=O(P))(function(k,S){var x;x=D.subscribe(function(B){try{E(B)}catch(z){S(z),x&&x.unsubscribe()}},S,k)})},T.prototype._subscribe=function(E){var P=this.source;return P&&P.subscribe(E)},T.prototype[Q.observable]=function(){return this},T.prototype.pipe=function(){for(var E=[],P=0;P{"use strict";Object.defineProperty(w,"__esModule",{value:!0});var le=G(4072),de=G(2422);w.empty={closed:!0,next:function(Y){},error:function(Y){if(le.config.useDeprecatedSynchronousErrorHandling)throw Y;de.hostReportError(Y)},complete:function(){}}},3281:function(Le,w,G){"use strict";var E,le=this&&this.__extends||(E=function(P,D){return(E=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(k,S){k.__proto__=S}||function(k,S){for(var x in S)S.hasOwnProperty(x)&&(k[x]=S[x])})(P,D)},function(P,D){function k(){this.constructor=P}E(P,D),P.prototype=null===D?Object.create(D):(k.prototype=D.prototype,new k)});Object.defineProperty(w,"__esModule",{value:!0});var de=G(9607),Y=G(7350),Q=G(6052),q=G(2858),F=G(4072),I=G(2422),O=function(E){function P(D,k,S){var x=E.call(this)||this;switch(x.syncErrorValue=null,x.syncErrorThrown=!1,x.syncErrorThrowable=!1,x.isStopped=!1,arguments.length){case 0:x.destination=Y.empty;break;case 1:if(!D){x.destination=Y.empty;break}if("object"==typeof D){D instanceof P?(x.syncErrorThrowable=D.syncErrorThrowable,x.destination=D,D.add(x)):(x.syncErrorThrowable=!0,x.destination=new T(x,D));break}default:x.syncErrorThrowable=!0,x.destination=new T(x,D,k,S)}return x}return le(P,E),P.prototype[q.rxSubscriber]=function(){return this},P.create=function(D,k,S){var x=new P(D,k,S);return x.syncErrorThrowable=!1,x},P.prototype.next=function(D){this.isStopped||this._next(D)},P.prototype.error=function(D){this.isStopped||(this.isStopped=!0,this._error(D))},P.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},P.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,E.prototype.unsubscribe.call(this))},P.prototype._next=function(D){this.destination.next(D)},P.prototype._error=function(D){this.destination.error(D),this.unsubscribe()},P.prototype._complete=function(){this.destination.complete(),this.unsubscribe()},P.prototype._unsubscribeAndRecycle=function(){var D=this._parentOrParents;return this._parentOrParents=null,this.unsubscribe(),this.closed=!1,this.isStopped=!1,this._parentOrParents=D,this},P}(Q.Subscription);w.Subscriber=O;var T=function(E){function P(D,k,S,x){var B=E.call(this)||this;B._parentSubscriber=D;var z,re=B;return de.isFunction(k)?z=k:k&&(z=k.next,S=k.error,x=k.complete,k!==Y.empty&&(re=Object.create(k),de.isFunction(re.unsubscribe)&&B.add(re.unsubscribe.bind(re)),re.unsubscribe=B.unsubscribe.bind(B))),B._context=re,B._next=z,B._error=S,B._complete=x,B}return le(P,E),P.prototype.next=function(D){if(!this.isStopped&&this._next){var k=this._parentSubscriber;F.config.useDeprecatedSynchronousErrorHandling&&k.syncErrorThrowable?this.__tryOrSetError(k,this._next,D)&&this.unsubscribe():this.__tryOrUnsub(this._next,D)}},P.prototype.error=function(D){if(!this.isStopped){var k=this._parentSubscriber,S=F.config.useDeprecatedSynchronousErrorHandling;if(this._error)S&&k.syncErrorThrowable?(this.__tryOrSetError(k,this._error,D),this.unsubscribe()):(this.__tryOrUnsub(this._error,D),this.unsubscribe());else if(k.syncErrorThrowable)S?(k.syncErrorValue=D,k.syncErrorThrown=!0):I.hostReportError(D),this.unsubscribe();else{if(this.unsubscribe(),S)throw D;I.hostReportError(D)}}},P.prototype.complete=function(){var D=this;if(!this.isStopped){var k=this._parentSubscriber;if(this._complete){var S=function(){return D._complete.call(D._context)};F.config.useDeprecatedSynchronousErrorHandling&&k.syncErrorThrowable?(this.__tryOrSetError(k,S),this.unsubscribe()):(this.__tryOrUnsub(S),this.unsubscribe())}else this.unsubscribe()}},P.prototype.__tryOrUnsub=function(D,k){try{D.call(this._context,k)}catch(S){if(this.unsubscribe(),F.config.useDeprecatedSynchronousErrorHandling)throw S;I.hostReportError(S)}},P.prototype.__tryOrSetError=function(D,k,S){if(!F.config.useDeprecatedSynchronousErrorHandling)throw new Error("bad call");try{k.call(this._context,S)}catch(x){return F.config.useDeprecatedSynchronousErrorHandling?(D.syncErrorValue=x,D.syncErrorThrown=!0,!0):(I.hostReportError(x),!0)}return!1},P.prototype._unsubscribe=function(){var D=this._parentSubscriber;this._context=null,this._parentSubscriber=null,D.unsubscribe()},P}(O);w.SafeSubscriber=T},6052:(Le,w,G)=>{"use strict";Object.defineProperty(w,"__esModule",{value:!0});var le=G(5019),de=G(2556),Y=G(9607),Q=G(2142),q=function(){function I(O){this.closed=!1,this._parentOrParents=null,this._subscriptions=null,O&&(this._ctorUnsubscribe=!0,this._unsubscribe=O)}return I.prototype.unsubscribe=function(){var O;if(!this.closed){var T=this,E=T._parentOrParents,P=T._ctorUnsubscribe,D=T._unsubscribe,k=T._subscriptions;if(this.closed=!0,this._parentOrParents=null,this._subscriptions=null,E instanceof I)E.remove(this);else if(null!==E)for(var S=0;S{"use strict";Object.defineProperty(w,"__esModule",{value:!0});var G=!1;w.config={Promise:void 0,set useDeprecatedSynchronousErrorHandling(le){if(le){var de=new Error;console.warn("DEPRECATED! RxJS was set to use deprecated synchronous error handling behavior by code at: \n"+de.stack)}else G&&console.log("RxJS: Back to a better error behavior. Thank you. <3");G=le},get useDeprecatedSynchronousErrorHandling(){return G}}},7448:(Le,w)=>{"use strict";Object.defineProperty(w,"__esModule",{value:!0}),w.observable="function"==typeof Symbol&&Symbol.observable||"@@observable"},2858:(Le,w)=>{"use strict";Object.defineProperty(w,"__esModule",{value:!0}),w.rxSubscriber="function"==typeof Symbol?Symbol("rxSubscriber"):"@@rxSubscriber_"+Math.random(),w.$$rxSubscriber=w.rxSubscriber},2142:(Le,w)=>{"use strict";Object.defineProperty(w,"__esModule",{value:!0});var G=function(){function le(de){return Error.call(this),this.message=de?de.length+" errors occurred during unsubscription:\n"+de.map(function(Y,Q){return Q+1+") "+Y.toString()}).join("\n "):"",this.name="UnsubscriptionError",this.errors=de,this}return le.prototype=Object.create(Error.prototype),le}();w.UnsubscriptionError=G},1557:(Le,w,G)=>{"use strict";Object.defineProperty(w,"__esModule",{value:!0});var le=G(3281);w.canReportError=function de(Y){for(;Y;){var F=Y.destination;if(Y.closed||Y.isStopped)return!1;Y=F&&F instanceof le.Subscriber?F:null}return!0}},2422:(Le,w)=>{"use strict";Object.defineProperty(w,"__esModule",{value:!0}),w.hostReportError=function G(le){setTimeout(function(){throw le},0)}},6610:(Le,w)=>{"use strict";Object.defineProperty(w,"__esModule",{value:!0}),w.identity=function G(le){return le}},5019:(Le,w)=>{"use strict";Object.defineProperty(w,"__esModule",{value:!0}),w.isArray=Array.isArray||function(G){return G&&"number"==typeof G.length}},9607:(Le,w)=>{"use strict";Object.defineProperty(w,"__esModule",{value:!0}),w.isFunction=function G(le){return"function"==typeof le}},2556:(Le,w)=>{"use strict";Object.defineProperty(w,"__esModule",{value:!0}),w.isObject=function G(le){return null!==le&&"object"==typeof le}},7302:(Le,w,G)=>{"use strict";Object.defineProperty(w,"__esModule",{value:!0});var le=G(6610);function Y(Q){return 0===Q.length?le.identity:1===Q.length?Q[0]:function(F){return Q.reduce(function(I,O){return O(I)},F)}}w.pipe=function de(){for(var Q=[],q=0;q{"use strict";Object.defineProperty(w,"__esModule",{value:!0});var le=G(3281),de=G(2858),Y=G(7350);w.toSubscriber=function Q(q,F,I){if(q){if(q instanceof le.Subscriber)return q;if(q[de.rxSubscriber])return q[de.rxSubscriber]()}return q||F||I?new le.Subscriber(q,F,I):new le.Subscriber(Y.empty)}},5999:(Le,w,G)=>{"use strict";Object.defineProperty(w,"__esModule",{value:!0});var le=G(2962),de=G(9542);function Q(x){const B=x.map(q);return(z,...re)=>k(B,we=>we(z,...re))}function q(x){switch(x.type){case"terminal":{const B=[x.valueContainer];return(z,...re)=>B}case"tagName":return function F(x){const B={};for(const z of x.variants)B[z.value]=Q(z.cont);return(z,...re)=>{const we=B[z.name];return we?we(z,...re):[]}}(x);case"attrValue":return function O(x){const B=[];for(const re of x.matchers){const we=re.predicate,$=Q(re.cont);B.push((ie,b,...K)=>we(ie)?$(b,...K):[])}const z=x.name;return(re,...we)=>{const $=re.attribs[z];return $||""===$?k(B,ie=>ie($,re,...we)):[]}}(x);case"attrPresence":return function I(x){const B=x.name,z=Q(x.cont);return(re,...we)=>Object.prototype.hasOwnProperty.call(re.attribs,B)?z(re,...we):[]}(x);case"pushElement":return function T(x){const B=Q(x.cont),z="+"===x.combinator?E:P;return(re,...we)=>{const $=z(re);return null===$?[]:B($,re,...we)}}(x);case"popElement":return function D(x){const B=Q(x.cont);return(z,re,...we)=>B(re,...we)}(x)}}const E=x=>{const B=x.prev;return null===B?null:le.isTag(B)?B:E(B)},P=x=>{const B=x.parent;return B&&le.isTag(B)?B:null};function k(x,B){return[].concat(...function S(x,B){const z=x.length,re=new Array(z);for(let we=0;we{"use strict";Object.defineProperty(w,"__esModule",{value:!0});var le=G(4847);function Y(L){if(L&&L.__esModule)return L;var oe=Object.create(null);return L&&Object.keys(L).forEach(function(_e){if("default"!==_e){var V=Object.getOwnPropertyDescriptor(L,_e);Object.defineProperty(oe,_e,V.get?V:{enumerable:!0,get:function(){return L[_e]}})}}),oe.default=L,Object.freeze(oe)}function q(L){return L[0]}const F=Y(G(6456)).compile({ws:{match:/[ \t\r\n\f]+/,lineBreaks:!0},idn:{match:/[a-zA-Z_-][a-zA-Z0-9_-]*/},hashToken:{match:/#[a-zA-Z0-9_-]+/,value:L=>L.slice(1)},str1:{match:/'(?:\\['\\]|[^\n'\\])*'/,value:L=>L.slice(1,-1)},str2:{match:/"(?:\\["\\]|[^\n"\\])*"/,value:L=>L.slice(1,-1)},asterisk:"*",fullstop:".",comma:",",lbr:"[",rbr:"]",eq:"=",gt:">",vbar:"|",plus:"+",tilde:"~",caret:"^",dollar:"$"});function I(L){return L[0].value}function O(L){return L[1]}function T([L,oe,_e],[V,N,X]){return[L+V,oe+N,_e+X]}const E={Lexer:F,ParserRules:[{name:"main",symbols:["_","listSelector","_"],postprocess:O},{name:"mainNoList",symbols:["_","complexSelector","_"],postprocess:O},{name:"listSelector",symbols:["complexSelector"],postprocess:([L])=>({type:"list",list:[L]})},{name:"listSelector",symbols:["listSelector","_",F.has("comma")?{type:"comma"}:comma,"_","complexSelector"],postprocess:([L,,,,oe])=>({type:"list",list:[...L.list,oe]})},{name:"complexSelector",symbols:["compoundSelector"],postprocess:q},{name:"complexSelector",symbols:["complexSelector","__","compoundSelector"],postprocess:([L,,oe])=>({type:"compound",list:[...oe.list,{type:"combinator",combinator:" ",left:L,specificity:L.specificity}],specificity:T(L.specificity,oe.specificity)})},{name:"complexSelector",symbols:["complexSelector","_","combinator","_","compoundSelector"],postprocess:([L,,oe,,_e])=>({type:"compound",list:[..._e.list,{type:"combinator",combinator:oe,left:L,specificity:L.specificity}],specificity:T(L.specificity,_e.specificity)})},{name:"combinator",symbols:[F.has("gt")?{type:"gt"}:gt],postprocess:()=>">"},{name:"combinator",symbols:[F.has("plus")?{type:"plus"}:plus],postprocess:()=>"+"},{name:"combinator",symbols:[F.has("tilde")?{type:"tilde"}:tilde],postprocess:()=>"~"},{name:"combinator",symbols:[F.has("vbar")?{type:"vbar"}:vbar,F.has("vbar")?{type:"vbar"}:vbar],postprocess:()=>"||"},{name:"compoundSelector",symbols:["typeSelector"],postprocess:([L])=>({type:"compound",list:[L],specificity:L.specificity})},{name:"compoundSelector",symbols:["subclassSelector"],postprocess:([L])=>({type:"compound",list:[L],specificity:L.specificity})},{name:"compoundSelector",symbols:["compoundSelector","subclassSelector"],postprocess:([L,oe])=>({type:"compound",list:[...L.list,oe],specificity:T(L.specificity,oe.specificity)})},{name:"subclassSelector",symbols:["idSelector"],postprocess:q},{name:"subclassSelector",symbols:["classSelector"],postprocess:q},{name:"subclassSelector",symbols:["attrSelector"],postprocess:q},{name:"attrSelector",symbols:["attrPresenceSelector"],postprocess:q},{name:"attrSelector",symbols:["attrValueSelector"],postprocess:q},{name:"typeSelector",symbols:["tagSelector"],postprocess:q},{name:"typeSelector",symbols:["uniSelector"],postprocess:q},{name:"attrPresenceSelector",symbols:[F.has("lbr")?{type:"lbr"}:lbr,"_","wqname","_",F.has("rbr")?{type:"rbr"}:rbr],postprocess:([,,L])=>({type:"attrPresence",name:L.name,namespace:L.namespace,specificity:[0,1,0]})},{name:"attrValueSelector",symbols:[F.has("lbr")?{type:"lbr"}:lbr,"_","wqname","_","attrMatcher","_","attrValue","_",F.has("rbr")?{type:"rbr"}:rbr],postprocess:([,,L,,oe,,_e])=>({type:"attrValue",name:L.name,namespace:L.namespace,matcher:oe,value:_e.value,modifier:_e.modifier,specificity:[0,1,0]})},{name:"attrMatcher",symbols:[F.has("eq")?{type:"eq"}:eq],postprocess:()=>"="},{name:"attrMatcher",symbols:[F.has("tilde")?{type:"tilde"}:tilde,F.has("eq")?{type:"eq"}:eq],postprocess:()=>"~="},{name:"attrMatcher",symbols:[F.has("vbar")?{type:"vbar"}:vbar,F.has("eq")?{type:"eq"}:eq],postprocess:()=>"|="},{name:"attrMatcher",symbols:[F.has("caret")?{type:"caret"}:caret,F.has("eq")?{type:"eq"}:eq],postprocess:()=>"^="},{name:"attrMatcher",symbols:[F.has("dollar")?{type:"dollar"}:dollar,F.has("eq")?{type:"eq"}:eq],postprocess:()=>"$="},{name:"attrMatcher",symbols:[F.has("asterisk")?{type:"asterisk"}:asterisk,F.has("eq")?{type:"eq"}:eq],postprocess:()=>"*="},{name:"attrValue",symbols:["str"],postprocess:([L])=>({value:L,modifier:null})},{name:"attrValue",symbols:["idn"],postprocess:([L])=>({value:L,modifier:null})},{name:"attrValue",symbols:["str","_","attrModifier"],postprocess:([L,,oe])=>({value:L,modifier:oe})},{name:"attrValue",symbols:["idn","__","attrModifier"],postprocess:([L,,oe])=>({value:L,modifier:oe})},{name:"attrModifier",symbols:[{literal:"i"}],postprocess:()=>"i"},{name:"attrModifier",symbols:[{literal:"I"}],postprocess:()=>"i"},{name:"attrModifier",symbols:[{literal:"s"}],postprocess:()=>"s"},{name:"attrModifier",symbols:[{literal:"S"}],postprocess:()=>"s"},{name:"idSelector",symbols:[F.has("hashToken")?{type:"hashToken"}:hashToken],postprocess:([{value:L}])=>({type:"id",name:L,specificity:[1,0,0]})},{name:"classSelector",symbols:[F.has("fullstop")?{type:"fullstop"}:fullstop,"idn"],postprocess:([,L])=>({type:"class",name:L,specificity:[0,1,0]})},{name:"tagSelector",symbols:["wqname"],postprocess:([L])=>({type:"tag",name:L.name,namespace:L.namespace,specificity:[0,0,1]})},{name:"uniSelector",symbols:[F.has("asterisk")?{type:"asterisk"}:asterisk],postprocess:()=>({type:"universal",namespace:null,specificity:[0,0,0]})},{name:"uniSelector",symbols:["ns",F.has("asterisk")?{type:"asterisk"}:asterisk],postprocess:([L])=>({type:"universal",namespace:L,specificity:[0,0,0]})},{name:"wqname",symbols:["idn"],postprocess:([L])=>({name:L,namespace:null})},{name:"wqname",symbols:["ns","idn"],postprocess:([L,oe])=>({name:oe,namespace:L})},{name:"ns",symbols:[F.has("vbar")?{type:"vbar"}:vbar],postprocess:()=>""},{name:"ns",symbols:["idn",F.has("vbar")?{type:"vbar"}:vbar],postprocess:q},{name:"str",symbols:[F.has("str1")?{type:"str1"}:str1],postprocess:I},{name:"str",symbols:[F.has("str2")?{type:"str2"}:str2],postprocess:I},{name:"idn",symbols:[F.has("idn")?{type:"idn"}:idn],postprocess:I},{name:"_$ebnf$1",symbols:[F.has("ws")?{type:"ws"}:ws],postprocess:q},{name:"_$ebnf$1",symbols:[],postprocess:()=>null},{name:"_",symbols:["_$ebnf$1"],postprocess:()=>null},{name:"__",symbols:[F.has("ws")?{type:"ws"}:ws],postprocess:()=>null}],ParserStart:"main"};var P=Object.freeze({__proto__:null});const D={...E,ParserStart:"mainNoList"};function x(L,oe){const _e=new le.Parser(le.Grammar.fromCompiled(L));if(_e.feed(oe),0===_e.results.length)throw new Error("Failed to parse - input string might be incomplete.");return _e.results[0]}function B(L){if(!L.type)throw new Error("This is not an AST node.");switch(L.type){case"universal":return z(L.namespace)+"*";case"tag":return z(L.namespace)+L.name;case"class":return"."+L.name;case"id":return"#"+L.name;case"attrPresence":return`[${z(L.namespace)}${L.name}]`;case"attrValue":return`[${z(L.namespace)}${L.name}${L.matcher}${function re(L){return-1===L.indexOf('"')?`"${L}"`:-1===L.indexOf("'")?`'${L}'`:`"${L.replace('"','\\"')}"`}(L.value)}${L.modifier?L.modifier:""}]`;case"combinator":return B(L.left)+L.combinator;case"compound":return L.list.reduce((oe,_e)=>"combinator"===_e.type?B(_e)+oe:oe+B(_e),"");case"list":return L.list.map(B).join(",")}}function z(L){return L||""===L?L+"|":""}function $(L){switch(L.type){case"universal":case"tag":return[1];case"id":return[2];case"class":return[3,L.name];case"attrPresence":return[4,B(L)];case"attrValue":return[5,B(L)];case"combinator":return[15,B(L)]}}function K(L,oe){if(!Array.isArray(L)||!Array.isArray(oe))throw new Error("Arguments must be arrays.");const _e=L.lengthK($(oe),$(_e)));break;case"combinator":we(L.left);break;case"list":L.list.forEach(we),L.list.sort((oe,_e)=>B(oe){"use strict";Object.defineProperty(w,"__esModule",{value:!0});var le=G(2512);function de(se){if(se&&se.__esModule)return se;var ye=Object.create(null);return se&&Object.keys(se).forEach(function(Ce){if("default"!==Ce){var ae=Object.getOwnPropertyDescriptor(se,Ce);Object.defineProperty(ye,Ce,ae.get?ae:{enumerable:!0,get:function(){return se[Ce]}})}}),ye.default=se,Object.freeze(ye)}var Y=de(le),Q=Object.freeze({__proto__:null}),q=Object.freeze({__proto__:null});const I=[["\u251c\u2500","\u2502 "],["\u2514\u2500"," "]],O=[["\u2520\u2500","\u2503 "],["\u2516\u2500"," "]],T=[["\u255f\u2500","\u2551 "],["\u2559\u2500"," "]];function E(se,ye=O){return function D(se,ye){return ye.map((Ce,ae,{length:R})=>function k(se,ye,Ce=!0){const ae=se[Ce?1:0];return ae[0]+ye.split("\n").join("\n"+ae[1])}(se,Ce,ae===R-1)).join("\n")}(ye,se.map(Ce=>function P(se){switch(se.type){case"terminal":{const ye=se.valueContainer;return`\u25c1 #${ye.index} ${JSON.stringify(ye.specificity)} ${ye.value}`}case"tagName":return`\u25fb Tag name\n${E(se.variants,T)}`;case"attrValue":return`\u25a3 Attr value: ${se.name}\n${E(se.matchers,T)}`;case"attrPresence":return`\u25e8 Attr presence: ${se.name}\n${E(se.cont)}`;case"pushElement":return`\u25c9 Push element: ${se.combinator}\n${E(se.cont,I)}`;case"popElement":return`\u25cc Pop element\n${E(se.cont,I)}`;case"variant":return`\u25c7 = ${se.value}\n${E(se.cont)}`;case"matcher":return`\u25c8 ${se.matcher} "${se.value}"${se.modifier||""}\n${E(se.cont)}`}}(Ce)))}var S=Object.freeze({__proto__:null,treeify:se=>"\u25bd\n"+E(se,I)});function z(se){return re(se),Y.normalize(se),se}function re(se){const ye=[];se.list.forEach(Ce=>{switch(Ce.type){case"class":ye.push({matcher:"~=",modifier:null,name:"class",namespace:null,specificity:Ce.specificity,type:"attrValue",value:Ce.name});break;case"id":ye.push({matcher:"=",modifier:null,name:"id",namespace:null,specificity:Ce.specificity,type:"attrValue",value:Ce.name});break;case"combinator":re(Ce.left),ye.push(Ce);break;case"universal":break;default:ye.push(Ce)}}),se.list=ye}function we(se){const ye=[];for(;se.length;){const Ce=he(se,Ge=>!0,b),{matches:ae,nonmatches:R,empty:We}=ie(se,Ce);se=R,ae.length&&ye.push(K(Ce,ae)),We.length&&ye.push(...$(We))}return ye}function $(se){const ye=[];for(const Ce of se){const ae=Ce.terminal;if("terminal"===ae.type)ye.push(ae);else{const{matches:R,rest:We}=Be(ae.cont,Ge=>"terminal"===Ge.type);R.forEach(Ge=>ye.push(Ge)),We.length&&(ae.cont=We,ye.push(ae))}}return ye}function ie(se,ye){const Ce=[],ae=[],R=[];for(const We of se){const Ge=We.ast.list;Ge.length?(Ge.some(ln=>b(ln)===ye)?Ce:ae).push(We):R.push(We)}return{matches:Ce,nonmatches:ae,empty:R}}function b(se){switch(se.type){case"attrPresence":return`attrPresence ${se.name}`;case"attrValue":return`attrValue ${se.name}`;case"combinator":return`combinator ${se.combinator}`;default:return se.type}}function K(se,ye){if("tag"===se)return function L(se){const ye=X(se,ae=>"tag"===ae.type,ae=>ae.name);return{type:"tagName",variants:Object.entries(ye).map(([ae,R])=>({type:"variant",value:ae,cont:we(R.items)}))}}(ye);if(se.startsWith("attrValue "))return function _e(se,ye){const Ce=X(ye,R=>"attrValue"===R.type&&R.name===se,R=>`${R.matcher} ${R.modifier||""} ${R.value}`),ae=[];for(const R of Object.values(Ce)){const We=R.oneSimpleSelector,Ge=V(We),Nt=we(R.items);ae.push({type:"matcher",matcher:We.matcher,modifier:We.modifier,value:We.value,predicate:Ge,cont:Nt})}return{type:"attrValue",name:se,matchers:ae}}(se.substring(10),ye);if(se.startsWith("attrPresence "))return function oe(se,ye){for(const Ce of ye)pe(Ce,ae=>"attrPresence"===ae.type&&ae.name===se);return{type:"attrPresence",name:se,cont:we(ye)}}(se.substring(13),ye);if("combinator >"===se)return N(">",ye);if("combinator +"===se)return N("+",ye);throw new Error(`Unsupported selector kind: ${se}`)}function V(se){if("i"===se.modifier){const ye=se.value.toLowerCase();switch(se.matcher){case"=":return Ce=>ye===Ce.toLowerCase();case"~=":return Ce=>Ce.toLowerCase().split(/[ \t]+/).includes(ye);case"^=":return Ce=>Ce.toLowerCase().startsWith(ye);case"$=":return Ce=>Ce.toLowerCase().endsWith(ye);case"*=":return Ce=>Ce.toLowerCase().includes(ye);case"|=":return Ce=>{const ae=Ce.toLowerCase();return ye===ae||ae.startsWith(ye)&&"-"===ae[ye.length]}}}else{const ye=se.value;switch(se.matcher){case"=":return Ce=>ye===Ce;case"~=":return Ce=>Ce.split(/[ \t]+/).includes(ye);case"^=":return Ce=>Ce.startsWith(ye);case"$=":return Ce=>Ce.endsWith(ye);case"*=":return Ce=>Ce.includes(ye);case"|=":return Ce=>ye===Ce||Ce.startsWith(ye)&&"-"===Ce[ye.length]}}}function N(se,ye){const Ce=X(ye,R=>"combinator"===R.type&&R.combinator===se,R=>Y.serialize(R.left)),ae=[];for(const R of Object.values(Ce)){const We=we(R.items);ae.push({ast:R.oneSimpleSelector.left,terminal:{type:"popElement",cont:We}})}return{type:"pushElement",combinator:se,cont:we(ae)}}function X(se,ye,Ce){const ae={};for(;se.length;){const R=he(se,ye,Ce),We=Hi=>ye(Hi)&&Ce(Hi)===R,Ge=Hi=>Hi.ast.list.some(We),{matches:Nt,rest:ln}=je(se,Ge);let ui=null;for(const Hi of Nt){const Qs=pe(Hi,We);ui||(ui=Qs)}if(null==ui)throw new Error("No simple selector is found.");ae[R]={oneSimpleSelector:ui,items:Nt},se=ln}return ae}function pe(se,ye){const Ce=se.ast.list,ae=new Array(Ce.length);let R=-1;for(let Ge=Ce.length;Ge-- >0;)ye(Ce[Ge])&&(ae[Ge]=!0,R=Ge);if(-1==R)throw new Error("Couldn't find the required simple selector.");const We=Ce[R];return se.ast.list=Ce.filter((Ge,Nt)=>!ae[Nt]),We}function he(se,ye,Ce){const ae={};for(const Ge of se){const Nt={};for(const ln of Ge.ast.list.filter(ye))Nt[Ce(ln)]=!0;for(const ln of Object.keys(Nt))ae[ln]?ae[ln]++:ae[ln]=1}let R="",We=0;for(const Ge of Object.entries(ae))Ge[1]>We&&(R=Ge[0],We=Ge[1]);return R}function Be(se,ye){const Ce=[],ae=[];for(const R of se)ye(R)?Ce.push(R):ae.push(R);return{matches:Ce,rest:ae}}function je(se,ye){const Ce=[],ae=[];for(const R of se)ye(R)?Ce.push(R):ae.push(R);return{matches:Ce,rest:ae}}function ke(se,ye){const Ce=le.compareSpecificity(ye.specificity,se.specificity);return Ce>0||0===Ce&&ye.index0||0===Ce&&ye.index>se.index}w.Ast=Q,w.DecisionTree=class x{constructor(ye){this.branches=we(function B(se){const ye=se.length,Ce=new Array(ye);for(let ae=0;ae{"use strict";Le.exports=JSON.parse('{"0":65533,"128":8364,"130":8218,"131":402,"132":8222,"133":8230,"134":8224,"135":8225,"136":710,"137":8240,"138":352,"139":8249,"140":338,"142":381,"145":8216,"146":8217,"147":8220,"148":8221,"149":8226,"150":8211,"151":8212,"152":732,"153":8482,"154":353,"155":8250,"156":339,"158":382,"159":376}')},9323:Le=>{"use strict";Le.exports=JSON.parse('{"Aacute":"\xc1","aacute":"\xe1","Abreve":"\u0102","abreve":"\u0103","ac":"\u223e","acd":"\u223f","acE":"\u223e\u0333","Acirc":"\xc2","acirc":"\xe2","acute":"\xb4","Acy":"\u0410","acy":"\u0430","AElig":"\xc6","aelig":"\xe6","af":"\u2061","Afr":"\u{1d504}","afr":"\u{1d51e}","Agrave":"\xc0","agrave":"\xe0","alefsym":"\u2135","aleph":"\u2135","Alpha":"\u0391","alpha":"\u03b1","Amacr":"\u0100","amacr":"\u0101","amalg":"\u2a3f","amp":"&","AMP":"&","andand":"\u2a55","And":"\u2a53","and":"\u2227","andd":"\u2a5c","andslope":"\u2a58","andv":"\u2a5a","ang":"\u2220","ange":"\u29a4","angle":"\u2220","angmsdaa":"\u29a8","angmsdab":"\u29a9","angmsdac":"\u29aa","angmsdad":"\u29ab","angmsdae":"\u29ac","angmsdaf":"\u29ad","angmsdag":"\u29ae","angmsdah":"\u29af","angmsd":"\u2221","angrt":"\u221f","angrtvb":"\u22be","angrtvbd":"\u299d","angsph":"\u2222","angst":"\xc5","angzarr":"\u237c","Aogon":"\u0104","aogon":"\u0105","Aopf":"\u{1d538}","aopf":"\u{1d552}","apacir":"\u2a6f","ap":"\u2248","apE":"\u2a70","ape":"\u224a","apid":"\u224b","apos":"\'","ApplyFunction":"\u2061","approx":"\u2248","approxeq":"\u224a","Aring":"\xc5","aring":"\xe5","Ascr":"\u{1d49c}","ascr":"\u{1d4b6}","Assign":"\u2254","ast":"*","asymp":"\u2248","asympeq":"\u224d","Atilde":"\xc3","atilde":"\xe3","Auml":"\xc4","auml":"\xe4","awconint":"\u2233","awint":"\u2a11","backcong":"\u224c","backepsilon":"\u03f6","backprime":"\u2035","backsim":"\u223d","backsimeq":"\u22cd","Backslash":"\u2216","Barv":"\u2ae7","barvee":"\u22bd","barwed":"\u2305","Barwed":"\u2306","barwedge":"\u2305","bbrk":"\u23b5","bbrktbrk":"\u23b6","bcong":"\u224c","Bcy":"\u0411","bcy":"\u0431","bdquo":"\u201e","becaus":"\u2235","because":"\u2235","Because":"\u2235","bemptyv":"\u29b0","bepsi":"\u03f6","bernou":"\u212c","Bernoullis":"\u212c","Beta":"\u0392","beta":"\u03b2","beth":"\u2136","between":"\u226c","Bfr":"\u{1d505}","bfr":"\u{1d51f}","bigcap":"\u22c2","bigcirc":"\u25ef","bigcup":"\u22c3","bigodot":"\u2a00","bigoplus":"\u2a01","bigotimes":"\u2a02","bigsqcup":"\u2a06","bigstar":"\u2605","bigtriangledown":"\u25bd","bigtriangleup":"\u25b3","biguplus":"\u2a04","bigvee":"\u22c1","bigwedge":"\u22c0","bkarow":"\u290d","blacklozenge":"\u29eb","blacksquare":"\u25aa","blacktriangle":"\u25b4","blacktriangledown":"\u25be","blacktriangleleft":"\u25c2","blacktriangleright":"\u25b8","blank":"\u2423","blk12":"\u2592","blk14":"\u2591","blk34":"\u2593","block":"\u2588","bne":"=\u20e5","bnequiv":"\u2261\u20e5","bNot":"\u2aed","bnot":"\u2310","Bopf":"\u{1d539}","bopf":"\u{1d553}","bot":"\u22a5","bottom":"\u22a5","bowtie":"\u22c8","boxbox":"\u29c9","boxdl":"\u2510","boxdL":"\u2555","boxDl":"\u2556","boxDL":"\u2557","boxdr":"\u250c","boxdR":"\u2552","boxDr":"\u2553","boxDR":"\u2554","boxh":"\u2500","boxH":"\u2550","boxhd":"\u252c","boxHd":"\u2564","boxhD":"\u2565","boxHD":"\u2566","boxhu":"\u2534","boxHu":"\u2567","boxhU":"\u2568","boxHU":"\u2569","boxminus":"\u229f","boxplus":"\u229e","boxtimes":"\u22a0","boxul":"\u2518","boxuL":"\u255b","boxUl":"\u255c","boxUL":"\u255d","boxur":"\u2514","boxuR":"\u2558","boxUr":"\u2559","boxUR":"\u255a","boxv":"\u2502","boxV":"\u2551","boxvh":"\u253c","boxvH":"\u256a","boxVh":"\u256b","boxVH":"\u256c","boxvl":"\u2524","boxvL":"\u2561","boxVl":"\u2562","boxVL":"\u2563","boxvr":"\u251c","boxvR":"\u255e","boxVr":"\u255f","boxVR":"\u2560","bprime":"\u2035","breve":"\u02d8","Breve":"\u02d8","brvbar":"\xa6","bscr":"\u{1d4b7}","Bscr":"\u212c","bsemi":"\u204f","bsim":"\u223d","bsime":"\u22cd","bsolb":"\u29c5","bsol":"\\\\","bsolhsub":"\u27c8","bull":"\u2022","bullet":"\u2022","bump":"\u224e","bumpE":"\u2aae","bumpe":"\u224f","Bumpeq":"\u224e","bumpeq":"\u224f","Cacute":"\u0106","cacute":"\u0107","capand":"\u2a44","capbrcup":"\u2a49","capcap":"\u2a4b","cap":"\u2229","Cap":"\u22d2","capcup":"\u2a47","capdot":"\u2a40","CapitalDifferentialD":"\u2145","caps":"\u2229\ufe00","caret":"\u2041","caron":"\u02c7","Cayleys":"\u212d","ccaps":"\u2a4d","Ccaron":"\u010c","ccaron":"\u010d","Ccedil":"\xc7","ccedil":"\xe7","Ccirc":"\u0108","ccirc":"\u0109","Cconint":"\u2230","ccups":"\u2a4c","ccupssm":"\u2a50","Cdot":"\u010a","cdot":"\u010b","cedil":"\xb8","Cedilla":"\xb8","cemptyv":"\u29b2","cent":"\xa2","centerdot":"\xb7","CenterDot":"\xb7","cfr":"\u{1d520}","Cfr":"\u212d","CHcy":"\u0427","chcy":"\u0447","check":"\u2713","checkmark":"\u2713","Chi":"\u03a7","chi":"\u03c7","circ":"\u02c6","circeq":"\u2257","circlearrowleft":"\u21ba","circlearrowright":"\u21bb","circledast":"\u229b","circledcirc":"\u229a","circleddash":"\u229d","CircleDot":"\u2299","circledR":"\xae","circledS":"\u24c8","CircleMinus":"\u2296","CirclePlus":"\u2295","CircleTimes":"\u2297","cir":"\u25cb","cirE":"\u29c3","cire":"\u2257","cirfnint":"\u2a10","cirmid":"\u2aef","cirscir":"\u29c2","ClockwiseContourIntegral":"\u2232","CloseCurlyDoubleQuote":"\u201d","CloseCurlyQuote":"\u2019","clubs":"\u2663","clubsuit":"\u2663","colon":":","Colon":"\u2237","Colone":"\u2a74","colone":"\u2254","coloneq":"\u2254","comma":",","commat":"@","comp":"\u2201","compfn":"\u2218","complement":"\u2201","complexes":"\u2102","cong":"\u2245","congdot":"\u2a6d","Congruent":"\u2261","conint":"\u222e","Conint":"\u222f","ContourIntegral":"\u222e","copf":"\u{1d554}","Copf":"\u2102","coprod":"\u2210","Coproduct":"\u2210","copy":"\xa9","COPY":"\xa9","copysr":"\u2117","CounterClockwiseContourIntegral":"\u2233","crarr":"\u21b5","cross":"\u2717","Cross":"\u2a2f","Cscr":"\u{1d49e}","cscr":"\u{1d4b8}","csub":"\u2acf","csube":"\u2ad1","csup":"\u2ad0","csupe":"\u2ad2","ctdot":"\u22ef","cudarrl":"\u2938","cudarrr":"\u2935","cuepr":"\u22de","cuesc":"\u22df","cularr":"\u21b6","cularrp":"\u293d","cupbrcap":"\u2a48","cupcap":"\u2a46","CupCap":"\u224d","cup":"\u222a","Cup":"\u22d3","cupcup":"\u2a4a","cupdot":"\u228d","cupor":"\u2a45","cups":"\u222a\ufe00","curarr":"\u21b7","curarrm":"\u293c","curlyeqprec":"\u22de","curlyeqsucc":"\u22df","curlyvee":"\u22ce","curlywedge":"\u22cf","curren":"\xa4","curvearrowleft":"\u21b6","curvearrowright":"\u21b7","cuvee":"\u22ce","cuwed":"\u22cf","cwconint":"\u2232","cwint":"\u2231","cylcty":"\u232d","dagger":"\u2020","Dagger":"\u2021","daleth":"\u2138","darr":"\u2193","Darr":"\u21a1","dArr":"\u21d3","dash":"\u2010","Dashv":"\u2ae4","dashv":"\u22a3","dbkarow":"\u290f","dblac":"\u02dd","Dcaron":"\u010e","dcaron":"\u010f","Dcy":"\u0414","dcy":"\u0434","ddagger":"\u2021","ddarr":"\u21ca","DD":"\u2145","dd":"\u2146","DDotrahd":"\u2911","ddotseq":"\u2a77","deg":"\xb0","Del":"\u2207","Delta":"\u0394","delta":"\u03b4","demptyv":"\u29b1","dfisht":"\u297f","Dfr":"\u{1d507}","dfr":"\u{1d521}","dHar":"\u2965","dharl":"\u21c3","dharr":"\u21c2","DiacriticalAcute":"\xb4","DiacriticalDot":"\u02d9","DiacriticalDoubleAcute":"\u02dd","DiacriticalGrave":"`","DiacriticalTilde":"\u02dc","diam":"\u22c4","diamond":"\u22c4","Diamond":"\u22c4","diamondsuit":"\u2666","diams":"\u2666","die":"\xa8","DifferentialD":"\u2146","digamma":"\u03dd","disin":"\u22f2","div":"\xf7","divide":"\xf7","divideontimes":"\u22c7","divonx":"\u22c7","DJcy":"\u0402","djcy":"\u0452","dlcorn":"\u231e","dlcrop":"\u230d","dollar":"$","Dopf":"\u{1d53b}","dopf":"\u{1d555}","Dot":"\xa8","dot":"\u02d9","DotDot":"\u20dc","doteq":"\u2250","doteqdot":"\u2251","DotEqual":"\u2250","dotminus":"\u2238","dotplus":"\u2214","dotsquare":"\u22a1","doublebarwedge":"\u2306","DoubleContourIntegral":"\u222f","DoubleDot":"\xa8","DoubleDownArrow":"\u21d3","DoubleLeftArrow":"\u21d0","DoubleLeftRightArrow":"\u21d4","DoubleLeftTee":"\u2ae4","DoubleLongLeftArrow":"\u27f8","DoubleLongLeftRightArrow":"\u27fa","DoubleLongRightArrow":"\u27f9","DoubleRightArrow":"\u21d2","DoubleRightTee":"\u22a8","DoubleUpArrow":"\u21d1","DoubleUpDownArrow":"\u21d5","DoubleVerticalBar":"\u2225","DownArrowBar":"\u2913","downarrow":"\u2193","DownArrow":"\u2193","Downarrow":"\u21d3","DownArrowUpArrow":"\u21f5","DownBreve":"\u0311","downdownarrows":"\u21ca","downharpoonleft":"\u21c3","downharpoonright":"\u21c2","DownLeftRightVector":"\u2950","DownLeftTeeVector":"\u295e","DownLeftVectorBar":"\u2956","DownLeftVector":"\u21bd","DownRightTeeVector":"\u295f","DownRightVectorBar":"\u2957","DownRightVector":"\u21c1","DownTeeArrow":"\u21a7","DownTee":"\u22a4","drbkarow":"\u2910","drcorn":"\u231f","drcrop":"\u230c","Dscr":"\u{1d49f}","dscr":"\u{1d4b9}","DScy":"\u0405","dscy":"\u0455","dsol":"\u29f6","Dstrok":"\u0110","dstrok":"\u0111","dtdot":"\u22f1","dtri":"\u25bf","dtrif":"\u25be","duarr":"\u21f5","duhar":"\u296f","dwangle":"\u29a6","DZcy":"\u040f","dzcy":"\u045f","dzigrarr":"\u27ff","Eacute":"\xc9","eacute":"\xe9","easter":"\u2a6e","Ecaron":"\u011a","ecaron":"\u011b","Ecirc":"\xca","ecirc":"\xea","ecir":"\u2256","ecolon":"\u2255","Ecy":"\u042d","ecy":"\u044d","eDDot":"\u2a77","Edot":"\u0116","edot":"\u0117","eDot":"\u2251","ee":"\u2147","efDot":"\u2252","Efr":"\u{1d508}","efr":"\u{1d522}","eg":"\u2a9a","Egrave":"\xc8","egrave":"\xe8","egs":"\u2a96","egsdot":"\u2a98","el":"\u2a99","Element":"\u2208","elinters":"\u23e7","ell":"\u2113","els":"\u2a95","elsdot":"\u2a97","Emacr":"\u0112","emacr":"\u0113","empty":"\u2205","emptyset":"\u2205","EmptySmallSquare":"\u25fb","emptyv":"\u2205","EmptyVerySmallSquare":"\u25ab","emsp13":"\u2004","emsp14":"\u2005","emsp":"\u2003","ENG":"\u014a","eng":"\u014b","ensp":"\u2002","Eogon":"\u0118","eogon":"\u0119","Eopf":"\u{1d53c}","eopf":"\u{1d556}","epar":"\u22d5","eparsl":"\u29e3","eplus":"\u2a71","epsi":"\u03b5","Epsilon":"\u0395","epsilon":"\u03b5","epsiv":"\u03f5","eqcirc":"\u2256","eqcolon":"\u2255","eqsim":"\u2242","eqslantgtr":"\u2a96","eqslantless":"\u2a95","Equal":"\u2a75","equals":"=","EqualTilde":"\u2242","equest":"\u225f","Equilibrium":"\u21cc","equiv":"\u2261","equivDD":"\u2a78","eqvparsl":"\u29e5","erarr":"\u2971","erDot":"\u2253","escr":"\u212f","Escr":"\u2130","esdot":"\u2250","Esim":"\u2a73","esim":"\u2242","Eta":"\u0397","eta":"\u03b7","ETH":"\xd0","eth":"\xf0","Euml":"\xcb","euml":"\xeb","euro":"\u20ac","excl":"!","exist":"\u2203","Exists":"\u2203","expectation":"\u2130","exponentiale":"\u2147","ExponentialE":"\u2147","fallingdotseq":"\u2252","Fcy":"\u0424","fcy":"\u0444","female":"\u2640","ffilig":"\ufb03","fflig":"\ufb00","ffllig":"\ufb04","Ffr":"\u{1d509}","ffr":"\u{1d523}","filig":"\ufb01","FilledSmallSquare":"\u25fc","FilledVerySmallSquare":"\u25aa","fjlig":"fj","flat":"\u266d","fllig":"\ufb02","fltns":"\u25b1","fnof":"\u0192","Fopf":"\u{1d53d}","fopf":"\u{1d557}","forall":"\u2200","ForAll":"\u2200","fork":"\u22d4","forkv":"\u2ad9","Fouriertrf":"\u2131","fpartint":"\u2a0d","frac12":"\xbd","frac13":"\u2153","frac14":"\xbc","frac15":"\u2155","frac16":"\u2159","frac18":"\u215b","frac23":"\u2154","frac25":"\u2156","frac34":"\xbe","frac35":"\u2157","frac38":"\u215c","frac45":"\u2158","frac56":"\u215a","frac58":"\u215d","frac78":"\u215e","frasl":"\u2044","frown":"\u2322","fscr":"\u{1d4bb}","Fscr":"\u2131","gacute":"\u01f5","Gamma":"\u0393","gamma":"\u03b3","Gammad":"\u03dc","gammad":"\u03dd","gap":"\u2a86","Gbreve":"\u011e","gbreve":"\u011f","Gcedil":"\u0122","Gcirc":"\u011c","gcirc":"\u011d","Gcy":"\u0413","gcy":"\u0433","Gdot":"\u0120","gdot":"\u0121","ge":"\u2265","gE":"\u2267","gEl":"\u2a8c","gel":"\u22db","geq":"\u2265","geqq":"\u2267","geqslant":"\u2a7e","gescc":"\u2aa9","ges":"\u2a7e","gesdot":"\u2a80","gesdoto":"\u2a82","gesdotol":"\u2a84","gesl":"\u22db\ufe00","gesles":"\u2a94","Gfr":"\u{1d50a}","gfr":"\u{1d524}","gg":"\u226b","Gg":"\u22d9","ggg":"\u22d9","gimel":"\u2137","GJcy":"\u0403","gjcy":"\u0453","gla":"\u2aa5","gl":"\u2277","glE":"\u2a92","glj":"\u2aa4","gnap":"\u2a8a","gnapprox":"\u2a8a","gne":"\u2a88","gnE":"\u2269","gneq":"\u2a88","gneqq":"\u2269","gnsim":"\u22e7","Gopf":"\u{1d53e}","gopf":"\u{1d558}","grave":"`","GreaterEqual":"\u2265","GreaterEqualLess":"\u22db","GreaterFullEqual":"\u2267","GreaterGreater":"\u2aa2","GreaterLess":"\u2277","GreaterSlantEqual":"\u2a7e","GreaterTilde":"\u2273","Gscr":"\u{1d4a2}","gscr":"\u210a","gsim":"\u2273","gsime":"\u2a8e","gsiml":"\u2a90","gtcc":"\u2aa7","gtcir":"\u2a7a","gt":">","GT":">","Gt":"\u226b","gtdot":"\u22d7","gtlPar":"\u2995","gtquest":"\u2a7c","gtrapprox":"\u2a86","gtrarr":"\u2978","gtrdot":"\u22d7","gtreqless":"\u22db","gtreqqless":"\u2a8c","gtrless":"\u2277","gtrsim":"\u2273","gvertneqq":"\u2269\ufe00","gvnE":"\u2269\ufe00","Hacek":"\u02c7","hairsp":"\u200a","half":"\xbd","hamilt":"\u210b","HARDcy":"\u042a","hardcy":"\u044a","harrcir":"\u2948","harr":"\u2194","hArr":"\u21d4","harrw":"\u21ad","Hat":"^","hbar":"\u210f","Hcirc":"\u0124","hcirc":"\u0125","hearts":"\u2665","heartsuit":"\u2665","hellip":"\u2026","hercon":"\u22b9","hfr":"\u{1d525}","Hfr":"\u210c","HilbertSpace":"\u210b","hksearow":"\u2925","hkswarow":"\u2926","hoarr":"\u21ff","homtht":"\u223b","hookleftarrow":"\u21a9","hookrightarrow":"\u21aa","hopf":"\u{1d559}","Hopf":"\u210d","horbar":"\u2015","HorizontalLine":"\u2500","hscr":"\u{1d4bd}","Hscr":"\u210b","hslash":"\u210f","Hstrok":"\u0126","hstrok":"\u0127","HumpDownHump":"\u224e","HumpEqual":"\u224f","hybull":"\u2043","hyphen":"\u2010","Iacute":"\xcd","iacute":"\xed","ic":"\u2063","Icirc":"\xce","icirc":"\xee","Icy":"\u0418","icy":"\u0438","Idot":"\u0130","IEcy":"\u0415","iecy":"\u0435","iexcl":"\xa1","iff":"\u21d4","ifr":"\u{1d526}","Ifr":"\u2111","Igrave":"\xcc","igrave":"\xec","ii":"\u2148","iiiint":"\u2a0c","iiint":"\u222d","iinfin":"\u29dc","iiota":"\u2129","IJlig":"\u0132","ijlig":"\u0133","Imacr":"\u012a","imacr":"\u012b","image":"\u2111","ImaginaryI":"\u2148","imagline":"\u2110","imagpart":"\u2111","imath":"\u0131","Im":"\u2111","imof":"\u22b7","imped":"\u01b5","Implies":"\u21d2","incare":"\u2105","in":"\u2208","infin":"\u221e","infintie":"\u29dd","inodot":"\u0131","intcal":"\u22ba","int":"\u222b","Int":"\u222c","integers":"\u2124","Integral":"\u222b","intercal":"\u22ba","Intersection":"\u22c2","intlarhk":"\u2a17","intprod":"\u2a3c","InvisibleComma":"\u2063","InvisibleTimes":"\u2062","IOcy":"\u0401","iocy":"\u0451","Iogon":"\u012e","iogon":"\u012f","Iopf":"\u{1d540}","iopf":"\u{1d55a}","Iota":"\u0399","iota":"\u03b9","iprod":"\u2a3c","iquest":"\xbf","iscr":"\u{1d4be}","Iscr":"\u2110","isin":"\u2208","isindot":"\u22f5","isinE":"\u22f9","isins":"\u22f4","isinsv":"\u22f3","isinv":"\u2208","it":"\u2062","Itilde":"\u0128","itilde":"\u0129","Iukcy":"\u0406","iukcy":"\u0456","Iuml":"\xcf","iuml":"\xef","Jcirc":"\u0134","jcirc":"\u0135","Jcy":"\u0419","jcy":"\u0439","Jfr":"\u{1d50d}","jfr":"\u{1d527}","jmath":"\u0237","Jopf":"\u{1d541}","jopf":"\u{1d55b}","Jscr":"\u{1d4a5}","jscr":"\u{1d4bf}","Jsercy":"\u0408","jsercy":"\u0458","Jukcy":"\u0404","jukcy":"\u0454","Kappa":"\u039a","kappa":"\u03ba","kappav":"\u03f0","Kcedil":"\u0136","kcedil":"\u0137","Kcy":"\u041a","kcy":"\u043a","Kfr":"\u{1d50e}","kfr":"\u{1d528}","kgreen":"\u0138","KHcy":"\u0425","khcy":"\u0445","KJcy":"\u040c","kjcy":"\u045c","Kopf":"\u{1d542}","kopf":"\u{1d55c}","Kscr":"\u{1d4a6}","kscr":"\u{1d4c0}","lAarr":"\u21da","Lacute":"\u0139","lacute":"\u013a","laemptyv":"\u29b4","lagran":"\u2112","Lambda":"\u039b","lambda":"\u03bb","lang":"\u27e8","Lang":"\u27ea","langd":"\u2991","langle":"\u27e8","lap":"\u2a85","Laplacetrf":"\u2112","laquo":"\xab","larrb":"\u21e4","larrbfs":"\u291f","larr":"\u2190","Larr":"\u219e","lArr":"\u21d0","larrfs":"\u291d","larrhk":"\u21a9","larrlp":"\u21ab","larrpl":"\u2939","larrsim":"\u2973","larrtl":"\u21a2","latail":"\u2919","lAtail":"\u291b","lat":"\u2aab","late":"\u2aad","lates":"\u2aad\ufe00","lbarr":"\u290c","lBarr":"\u290e","lbbrk":"\u2772","lbrace":"{","lbrack":"[","lbrke":"\u298b","lbrksld":"\u298f","lbrkslu":"\u298d","Lcaron":"\u013d","lcaron":"\u013e","Lcedil":"\u013b","lcedil":"\u013c","lceil":"\u2308","lcub":"{","Lcy":"\u041b","lcy":"\u043b","ldca":"\u2936","ldquo":"\u201c","ldquor":"\u201e","ldrdhar":"\u2967","ldrushar":"\u294b","ldsh":"\u21b2","le":"\u2264","lE":"\u2266","LeftAngleBracket":"\u27e8","LeftArrowBar":"\u21e4","leftarrow":"\u2190","LeftArrow":"\u2190","Leftarrow":"\u21d0","LeftArrowRightArrow":"\u21c6","leftarrowtail":"\u21a2","LeftCeiling":"\u2308","LeftDoubleBracket":"\u27e6","LeftDownTeeVector":"\u2961","LeftDownVectorBar":"\u2959","LeftDownVector":"\u21c3","LeftFloor":"\u230a","leftharpoondown":"\u21bd","leftharpoonup":"\u21bc","leftleftarrows":"\u21c7","leftrightarrow":"\u2194","LeftRightArrow":"\u2194","Leftrightarrow":"\u21d4","leftrightarrows":"\u21c6","leftrightharpoons":"\u21cb","leftrightsquigarrow":"\u21ad","LeftRightVector":"\u294e","LeftTeeArrow":"\u21a4","LeftTee":"\u22a3","LeftTeeVector":"\u295a","leftthreetimes":"\u22cb","LeftTriangleBar":"\u29cf","LeftTriangle":"\u22b2","LeftTriangleEqual":"\u22b4","LeftUpDownVector":"\u2951","LeftUpTeeVector":"\u2960","LeftUpVectorBar":"\u2958","LeftUpVector":"\u21bf","LeftVectorBar":"\u2952","LeftVector":"\u21bc","lEg":"\u2a8b","leg":"\u22da","leq":"\u2264","leqq":"\u2266","leqslant":"\u2a7d","lescc":"\u2aa8","les":"\u2a7d","lesdot":"\u2a7f","lesdoto":"\u2a81","lesdotor":"\u2a83","lesg":"\u22da\ufe00","lesges":"\u2a93","lessapprox":"\u2a85","lessdot":"\u22d6","lesseqgtr":"\u22da","lesseqqgtr":"\u2a8b","LessEqualGreater":"\u22da","LessFullEqual":"\u2266","LessGreater":"\u2276","lessgtr":"\u2276","LessLess":"\u2aa1","lesssim":"\u2272","LessSlantEqual":"\u2a7d","LessTilde":"\u2272","lfisht":"\u297c","lfloor":"\u230a","Lfr":"\u{1d50f}","lfr":"\u{1d529}","lg":"\u2276","lgE":"\u2a91","lHar":"\u2962","lhard":"\u21bd","lharu":"\u21bc","lharul":"\u296a","lhblk":"\u2584","LJcy":"\u0409","ljcy":"\u0459","llarr":"\u21c7","ll":"\u226a","Ll":"\u22d8","llcorner":"\u231e","Lleftarrow":"\u21da","llhard":"\u296b","lltri":"\u25fa","Lmidot":"\u013f","lmidot":"\u0140","lmoustache":"\u23b0","lmoust":"\u23b0","lnap":"\u2a89","lnapprox":"\u2a89","lne":"\u2a87","lnE":"\u2268","lneq":"\u2a87","lneqq":"\u2268","lnsim":"\u22e6","loang":"\u27ec","loarr":"\u21fd","lobrk":"\u27e6","longleftarrow":"\u27f5","LongLeftArrow":"\u27f5","Longleftarrow":"\u27f8","longleftrightarrow":"\u27f7","LongLeftRightArrow":"\u27f7","Longleftrightarrow":"\u27fa","longmapsto":"\u27fc","longrightarrow":"\u27f6","LongRightArrow":"\u27f6","Longrightarrow":"\u27f9","looparrowleft":"\u21ab","looparrowright":"\u21ac","lopar":"\u2985","Lopf":"\u{1d543}","lopf":"\u{1d55d}","loplus":"\u2a2d","lotimes":"\u2a34","lowast":"\u2217","lowbar":"_","LowerLeftArrow":"\u2199","LowerRightArrow":"\u2198","loz":"\u25ca","lozenge":"\u25ca","lozf":"\u29eb","lpar":"(","lparlt":"\u2993","lrarr":"\u21c6","lrcorner":"\u231f","lrhar":"\u21cb","lrhard":"\u296d","lrm":"\u200e","lrtri":"\u22bf","lsaquo":"\u2039","lscr":"\u{1d4c1}","Lscr":"\u2112","lsh":"\u21b0","Lsh":"\u21b0","lsim":"\u2272","lsime":"\u2a8d","lsimg":"\u2a8f","lsqb":"[","lsquo":"\u2018","lsquor":"\u201a","Lstrok":"\u0141","lstrok":"\u0142","ltcc":"\u2aa6","ltcir":"\u2a79","lt":"<","LT":"<","Lt":"\u226a","ltdot":"\u22d6","lthree":"\u22cb","ltimes":"\u22c9","ltlarr":"\u2976","ltquest":"\u2a7b","ltri":"\u25c3","ltrie":"\u22b4","ltrif":"\u25c2","ltrPar":"\u2996","lurdshar":"\u294a","luruhar":"\u2966","lvertneqq":"\u2268\ufe00","lvnE":"\u2268\ufe00","macr":"\xaf","male":"\u2642","malt":"\u2720","maltese":"\u2720","Map":"\u2905","map":"\u21a6","mapsto":"\u21a6","mapstodown":"\u21a7","mapstoleft":"\u21a4","mapstoup":"\u21a5","marker":"\u25ae","mcomma":"\u2a29","Mcy":"\u041c","mcy":"\u043c","mdash":"\u2014","mDDot":"\u223a","measuredangle":"\u2221","MediumSpace":"\u205f","Mellintrf":"\u2133","Mfr":"\u{1d510}","mfr":"\u{1d52a}","mho":"\u2127","micro":"\xb5","midast":"*","midcir":"\u2af0","mid":"\u2223","middot":"\xb7","minusb":"\u229f","minus":"\u2212","minusd":"\u2238","minusdu":"\u2a2a","MinusPlus":"\u2213","mlcp":"\u2adb","mldr":"\u2026","mnplus":"\u2213","models":"\u22a7","Mopf":"\u{1d544}","mopf":"\u{1d55e}","mp":"\u2213","mscr":"\u{1d4c2}","Mscr":"\u2133","mstpos":"\u223e","Mu":"\u039c","mu":"\u03bc","multimap":"\u22b8","mumap":"\u22b8","nabla":"\u2207","Nacute":"\u0143","nacute":"\u0144","nang":"\u2220\u20d2","nap":"\u2249","napE":"\u2a70\u0338","napid":"\u224b\u0338","napos":"\u0149","napprox":"\u2249","natural":"\u266e","naturals":"\u2115","natur":"\u266e","nbsp":"\xa0","nbump":"\u224e\u0338","nbumpe":"\u224f\u0338","ncap":"\u2a43","Ncaron":"\u0147","ncaron":"\u0148","Ncedil":"\u0145","ncedil":"\u0146","ncong":"\u2247","ncongdot":"\u2a6d\u0338","ncup":"\u2a42","Ncy":"\u041d","ncy":"\u043d","ndash":"\u2013","nearhk":"\u2924","nearr":"\u2197","neArr":"\u21d7","nearrow":"\u2197","ne":"\u2260","nedot":"\u2250\u0338","NegativeMediumSpace":"\u200b","NegativeThickSpace":"\u200b","NegativeThinSpace":"\u200b","NegativeVeryThinSpace":"\u200b","nequiv":"\u2262","nesear":"\u2928","nesim":"\u2242\u0338","NestedGreaterGreater":"\u226b","NestedLessLess":"\u226a","NewLine":"\\n","nexist":"\u2204","nexists":"\u2204","Nfr":"\u{1d511}","nfr":"\u{1d52b}","ngE":"\u2267\u0338","nge":"\u2271","ngeq":"\u2271","ngeqq":"\u2267\u0338","ngeqslant":"\u2a7e\u0338","nges":"\u2a7e\u0338","nGg":"\u22d9\u0338","ngsim":"\u2275","nGt":"\u226b\u20d2","ngt":"\u226f","ngtr":"\u226f","nGtv":"\u226b\u0338","nharr":"\u21ae","nhArr":"\u21ce","nhpar":"\u2af2","ni":"\u220b","nis":"\u22fc","nisd":"\u22fa","niv":"\u220b","NJcy":"\u040a","njcy":"\u045a","nlarr":"\u219a","nlArr":"\u21cd","nldr":"\u2025","nlE":"\u2266\u0338","nle":"\u2270","nleftarrow":"\u219a","nLeftarrow":"\u21cd","nleftrightarrow":"\u21ae","nLeftrightarrow":"\u21ce","nleq":"\u2270","nleqq":"\u2266\u0338","nleqslant":"\u2a7d\u0338","nles":"\u2a7d\u0338","nless":"\u226e","nLl":"\u22d8\u0338","nlsim":"\u2274","nLt":"\u226a\u20d2","nlt":"\u226e","nltri":"\u22ea","nltrie":"\u22ec","nLtv":"\u226a\u0338","nmid":"\u2224","NoBreak":"\u2060","NonBreakingSpace":"\xa0","nopf":"\u{1d55f}","Nopf":"\u2115","Not":"\u2aec","not":"\xac","NotCongruent":"\u2262","NotCupCap":"\u226d","NotDoubleVerticalBar":"\u2226","NotElement":"\u2209","NotEqual":"\u2260","NotEqualTilde":"\u2242\u0338","NotExists":"\u2204","NotGreater":"\u226f","NotGreaterEqual":"\u2271","NotGreaterFullEqual":"\u2267\u0338","NotGreaterGreater":"\u226b\u0338","NotGreaterLess":"\u2279","NotGreaterSlantEqual":"\u2a7e\u0338","NotGreaterTilde":"\u2275","NotHumpDownHump":"\u224e\u0338","NotHumpEqual":"\u224f\u0338","notin":"\u2209","notindot":"\u22f5\u0338","notinE":"\u22f9\u0338","notinva":"\u2209","notinvb":"\u22f7","notinvc":"\u22f6","NotLeftTriangleBar":"\u29cf\u0338","NotLeftTriangle":"\u22ea","NotLeftTriangleEqual":"\u22ec","NotLess":"\u226e","NotLessEqual":"\u2270","NotLessGreater":"\u2278","NotLessLess":"\u226a\u0338","NotLessSlantEqual":"\u2a7d\u0338","NotLessTilde":"\u2274","NotNestedGreaterGreater":"\u2aa2\u0338","NotNestedLessLess":"\u2aa1\u0338","notni":"\u220c","notniva":"\u220c","notnivb":"\u22fe","notnivc":"\u22fd","NotPrecedes":"\u2280","NotPrecedesEqual":"\u2aaf\u0338","NotPrecedesSlantEqual":"\u22e0","NotReverseElement":"\u220c","NotRightTriangleBar":"\u29d0\u0338","NotRightTriangle":"\u22eb","NotRightTriangleEqual":"\u22ed","NotSquareSubset":"\u228f\u0338","NotSquareSubsetEqual":"\u22e2","NotSquareSuperset":"\u2290\u0338","NotSquareSupersetEqual":"\u22e3","NotSubset":"\u2282\u20d2","NotSubsetEqual":"\u2288","NotSucceeds":"\u2281","NotSucceedsEqual":"\u2ab0\u0338","NotSucceedsSlantEqual":"\u22e1","NotSucceedsTilde":"\u227f\u0338","NotSuperset":"\u2283\u20d2","NotSupersetEqual":"\u2289","NotTilde":"\u2241","NotTildeEqual":"\u2244","NotTildeFullEqual":"\u2247","NotTildeTilde":"\u2249","NotVerticalBar":"\u2224","nparallel":"\u2226","npar":"\u2226","nparsl":"\u2afd\u20e5","npart":"\u2202\u0338","npolint":"\u2a14","npr":"\u2280","nprcue":"\u22e0","nprec":"\u2280","npreceq":"\u2aaf\u0338","npre":"\u2aaf\u0338","nrarrc":"\u2933\u0338","nrarr":"\u219b","nrArr":"\u21cf","nrarrw":"\u219d\u0338","nrightarrow":"\u219b","nRightarrow":"\u21cf","nrtri":"\u22eb","nrtrie":"\u22ed","nsc":"\u2281","nsccue":"\u22e1","nsce":"\u2ab0\u0338","Nscr":"\u{1d4a9}","nscr":"\u{1d4c3}","nshortmid":"\u2224","nshortparallel":"\u2226","nsim":"\u2241","nsime":"\u2244","nsimeq":"\u2244","nsmid":"\u2224","nspar":"\u2226","nsqsube":"\u22e2","nsqsupe":"\u22e3","nsub":"\u2284","nsubE":"\u2ac5\u0338","nsube":"\u2288","nsubset":"\u2282\u20d2","nsubseteq":"\u2288","nsubseteqq":"\u2ac5\u0338","nsucc":"\u2281","nsucceq":"\u2ab0\u0338","nsup":"\u2285","nsupE":"\u2ac6\u0338","nsupe":"\u2289","nsupset":"\u2283\u20d2","nsupseteq":"\u2289","nsupseteqq":"\u2ac6\u0338","ntgl":"\u2279","Ntilde":"\xd1","ntilde":"\xf1","ntlg":"\u2278","ntriangleleft":"\u22ea","ntrianglelefteq":"\u22ec","ntriangleright":"\u22eb","ntrianglerighteq":"\u22ed","Nu":"\u039d","nu":"\u03bd","num":"#","numero":"\u2116","numsp":"\u2007","nvap":"\u224d\u20d2","nvdash":"\u22ac","nvDash":"\u22ad","nVdash":"\u22ae","nVDash":"\u22af","nvge":"\u2265\u20d2","nvgt":">\u20d2","nvHarr":"\u2904","nvinfin":"\u29de","nvlArr":"\u2902","nvle":"\u2264\u20d2","nvlt":"<\u20d2","nvltrie":"\u22b4\u20d2","nvrArr":"\u2903","nvrtrie":"\u22b5\u20d2","nvsim":"\u223c\u20d2","nwarhk":"\u2923","nwarr":"\u2196","nwArr":"\u21d6","nwarrow":"\u2196","nwnear":"\u2927","Oacute":"\xd3","oacute":"\xf3","oast":"\u229b","Ocirc":"\xd4","ocirc":"\xf4","ocir":"\u229a","Ocy":"\u041e","ocy":"\u043e","odash":"\u229d","Odblac":"\u0150","odblac":"\u0151","odiv":"\u2a38","odot":"\u2299","odsold":"\u29bc","OElig":"\u0152","oelig":"\u0153","ofcir":"\u29bf","Ofr":"\u{1d512}","ofr":"\u{1d52c}","ogon":"\u02db","Ograve":"\xd2","ograve":"\xf2","ogt":"\u29c1","ohbar":"\u29b5","ohm":"\u03a9","oint":"\u222e","olarr":"\u21ba","olcir":"\u29be","olcross":"\u29bb","oline":"\u203e","olt":"\u29c0","Omacr":"\u014c","omacr":"\u014d","Omega":"\u03a9","omega":"\u03c9","Omicron":"\u039f","omicron":"\u03bf","omid":"\u29b6","ominus":"\u2296","Oopf":"\u{1d546}","oopf":"\u{1d560}","opar":"\u29b7","OpenCurlyDoubleQuote":"\u201c","OpenCurlyQuote":"\u2018","operp":"\u29b9","oplus":"\u2295","orarr":"\u21bb","Or":"\u2a54","or":"\u2228","ord":"\u2a5d","order":"\u2134","orderof":"\u2134","ordf":"\xaa","ordm":"\xba","origof":"\u22b6","oror":"\u2a56","orslope":"\u2a57","orv":"\u2a5b","oS":"\u24c8","Oscr":"\u{1d4aa}","oscr":"\u2134","Oslash":"\xd8","oslash":"\xf8","osol":"\u2298","Otilde":"\xd5","otilde":"\xf5","otimesas":"\u2a36","Otimes":"\u2a37","otimes":"\u2297","Ouml":"\xd6","ouml":"\xf6","ovbar":"\u233d","OverBar":"\u203e","OverBrace":"\u23de","OverBracket":"\u23b4","OverParenthesis":"\u23dc","para":"\xb6","parallel":"\u2225","par":"\u2225","parsim":"\u2af3","parsl":"\u2afd","part":"\u2202","PartialD":"\u2202","Pcy":"\u041f","pcy":"\u043f","percnt":"%","period":".","permil":"\u2030","perp":"\u22a5","pertenk":"\u2031","Pfr":"\u{1d513}","pfr":"\u{1d52d}","Phi":"\u03a6","phi":"\u03c6","phiv":"\u03d5","phmmat":"\u2133","phone":"\u260e","Pi":"\u03a0","pi":"\u03c0","pitchfork":"\u22d4","piv":"\u03d6","planck":"\u210f","planckh":"\u210e","plankv":"\u210f","plusacir":"\u2a23","plusb":"\u229e","pluscir":"\u2a22","plus":"+","plusdo":"\u2214","plusdu":"\u2a25","pluse":"\u2a72","PlusMinus":"\xb1","plusmn":"\xb1","plussim":"\u2a26","plustwo":"\u2a27","pm":"\xb1","Poincareplane":"\u210c","pointint":"\u2a15","popf":"\u{1d561}","Popf":"\u2119","pound":"\xa3","prap":"\u2ab7","Pr":"\u2abb","pr":"\u227a","prcue":"\u227c","precapprox":"\u2ab7","prec":"\u227a","preccurlyeq":"\u227c","Precedes":"\u227a","PrecedesEqual":"\u2aaf","PrecedesSlantEqual":"\u227c","PrecedesTilde":"\u227e","preceq":"\u2aaf","precnapprox":"\u2ab9","precneqq":"\u2ab5","precnsim":"\u22e8","pre":"\u2aaf","prE":"\u2ab3","precsim":"\u227e","prime":"\u2032","Prime":"\u2033","primes":"\u2119","prnap":"\u2ab9","prnE":"\u2ab5","prnsim":"\u22e8","prod":"\u220f","Product":"\u220f","profalar":"\u232e","profline":"\u2312","profsurf":"\u2313","prop":"\u221d","Proportional":"\u221d","Proportion":"\u2237","propto":"\u221d","prsim":"\u227e","prurel":"\u22b0","Pscr":"\u{1d4ab}","pscr":"\u{1d4c5}","Psi":"\u03a8","psi":"\u03c8","puncsp":"\u2008","Qfr":"\u{1d514}","qfr":"\u{1d52e}","qint":"\u2a0c","qopf":"\u{1d562}","Qopf":"\u211a","qprime":"\u2057","Qscr":"\u{1d4ac}","qscr":"\u{1d4c6}","quaternions":"\u210d","quatint":"\u2a16","quest":"?","questeq":"\u225f","quot":"\\"","QUOT":"\\"","rAarr":"\u21db","race":"\u223d\u0331","Racute":"\u0154","racute":"\u0155","radic":"\u221a","raemptyv":"\u29b3","rang":"\u27e9","Rang":"\u27eb","rangd":"\u2992","range":"\u29a5","rangle":"\u27e9","raquo":"\xbb","rarrap":"\u2975","rarrb":"\u21e5","rarrbfs":"\u2920","rarrc":"\u2933","rarr":"\u2192","Rarr":"\u21a0","rArr":"\u21d2","rarrfs":"\u291e","rarrhk":"\u21aa","rarrlp":"\u21ac","rarrpl":"\u2945","rarrsim":"\u2974","Rarrtl":"\u2916","rarrtl":"\u21a3","rarrw":"\u219d","ratail":"\u291a","rAtail":"\u291c","ratio":"\u2236","rationals":"\u211a","rbarr":"\u290d","rBarr":"\u290f","RBarr":"\u2910","rbbrk":"\u2773","rbrace":"}","rbrack":"]","rbrke":"\u298c","rbrksld":"\u298e","rbrkslu":"\u2990","Rcaron":"\u0158","rcaron":"\u0159","Rcedil":"\u0156","rcedil":"\u0157","rceil":"\u2309","rcub":"}","Rcy":"\u0420","rcy":"\u0440","rdca":"\u2937","rdldhar":"\u2969","rdquo":"\u201d","rdquor":"\u201d","rdsh":"\u21b3","real":"\u211c","realine":"\u211b","realpart":"\u211c","reals":"\u211d","Re":"\u211c","rect":"\u25ad","reg":"\xae","REG":"\xae","ReverseElement":"\u220b","ReverseEquilibrium":"\u21cb","ReverseUpEquilibrium":"\u296f","rfisht":"\u297d","rfloor":"\u230b","rfr":"\u{1d52f}","Rfr":"\u211c","rHar":"\u2964","rhard":"\u21c1","rharu":"\u21c0","rharul":"\u296c","Rho":"\u03a1","rho":"\u03c1","rhov":"\u03f1","RightAngleBracket":"\u27e9","RightArrowBar":"\u21e5","rightarrow":"\u2192","RightArrow":"\u2192","Rightarrow":"\u21d2","RightArrowLeftArrow":"\u21c4","rightarrowtail":"\u21a3","RightCeiling":"\u2309","RightDoubleBracket":"\u27e7","RightDownTeeVector":"\u295d","RightDownVectorBar":"\u2955","RightDownVector":"\u21c2","RightFloor":"\u230b","rightharpoondown":"\u21c1","rightharpoonup":"\u21c0","rightleftarrows":"\u21c4","rightleftharpoons":"\u21cc","rightrightarrows":"\u21c9","rightsquigarrow":"\u219d","RightTeeArrow":"\u21a6","RightTee":"\u22a2","RightTeeVector":"\u295b","rightthreetimes":"\u22cc","RightTriangleBar":"\u29d0","RightTriangle":"\u22b3","RightTriangleEqual":"\u22b5","RightUpDownVector":"\u294f","RightUpTeeVector":"\u295c","RightUpVectorBar":"\u2954","RightUpVector":"\u21be","RightVectorBar":"\u2953","RightVector":"\u21c0","ring":"\u02da","risingdotseq":"\u2253","rlarr":"\u21c4","rlhar":"\u21cc","rlm":"\u200f","rmoustache":"\u23b1","rmoust":"\u23b1","rnmid":"\u2aee","roang":"\u27ed","roarr":"\u21fe","robrk":"\u27e7","ropar":"\u2986","ropf":"\u{1d563}","Ropf":"\u211d","roplus":"\u2a2e","rotimes":"\u2a35","RoundImplies":"\u2970","rpar":")","rpargt":"\u2994","rppolint":"\u2a12","rrarr":"\u21c9","Rrightarrow":"\u21db","rsaquo":"\u203a","rscr":"\u{1d4c7}","Rscr":"\u211b","rsh":"\u21b1","Rsh":"\u21b1","rsqb":"]","rsquo":"\u2019","rsquor":"\u2019","rthree":"\u22cc","rtimes":"\u22ca","rtri":"\u25b9","rtrie":"\u22b5","rtrif":"\u25b8","rtriltri":"\u29ce","RuleDelayed":"\u29f4","ruluhar":"\u2968","rx":"\u211e","Sacute":"\u015a","sacute":"\u015b","sbquo":"\u201a","scap":"\u2ab8","Scaron":"\u0160","scaron":"\u0161","Sc":"\u2abc","sc":"\u227b","sccue":"\u227d","sce":"\u2ab0","scE":"\u2ab4","Scedil":"\u015e","scedil":"\u015f","Scirc":"\u015c","scirc":"\u015d","scnap":"\u2aba","scnE":"\u2ab6","scnsim":"\u22e9","scpolint":"\u2a13","scsim":"\u227f","Scy":"\u0421","scy":"\u0441","sdotb":"\u22a1","sdot":"\u22c5","sdote":"\u2a66","searhk":"\u2925","searr":"\u2198","seArr":"\u21d8","searrow":"\u2198","sect":"\xa7","semi":";","seswar":"\u2929","setminus":"\u2216","setmn":"\u2216","sext":"\u2736","Sfr":"\u{1d516}","sfr":"\u{1d530}","sfrown":"\u2322","sharp":"\u266f","SHCHcy":"\u0429","shchcy":"\u0449","SHcy":"\u0428","shcy":"\u0448","ShortDownArrow":"\u2193","ShortLeftArrow":"\u2190","shortmid":"\u2223","shortparallel":"\u2225","ShortRightArrow":"\u2192","ShortUpArrow":"\u2191","shy":"\xad","Sigma":"\u03a3","sigma":"\u03c3","sigmaf":"\u03c2","sigmav":"\u03c2","sim":"\u223c","simdot":"\u2a6a","sime":"\u2243","simeq":"\u2243","simg":"\u2a9e","simgE":"\u2aa0","siml":"\u2a9d","simlE":"\u2a9f","simne":"\u2246","simplus":"\u2a24","simrarr":"\u2972","slarr":"\u2190","SmallCircle":"\u2218","smallsetminus":"\u2216","smashp":"\u2a33","smeparsl":"\u29e4","smid":"\u2223","smile":"\u2323","smt":"\u2aaa","smte":"\u2aac","smtes":"\u2aac\ufe00","SOFTcy":"\u042c","softcy":"\u044c","solbar":"\u233f","solb":"\u29c4","sol":"/","Sopf":"\u{1d54a}","sopf":"\u{1d564}","spades":"\u2660","spadesuit":"\u2660","spar":"\u2225","sqcap":"\u2293","sqcaps":"\u2293\ufe00","sqcup":"\u2294","sqcups":"\u2294\ufe00","Sqrt":"\u221a","sqsub":"\u228f","sqsube":"\u2291","sqsubset":"\u228f","sqsubseteq":"\u2291","sqsup":"\u2290","sqsupe":"\u2292","sqsupset":"\u2290","sqsupseteq":"\u2292","square":"\u25a1","Square":"\u25a1","SquareIntersection":"\u2293","SquareSubset":"\u228f","SquareSubsetEqual":"\u2291","SquareSuperset":"\u2290","SquareSupersetEqual":"\u2292","SquareUnion":"\u2294","squarf":"\u25aa","squ":"\u25a1","squf":"\u25aa","srarr":"\u2192","Sscr":"\u{1d4ae}","sscr":"\u{1d4c8}","ssetmn":"\u2216","ssmile":"\u2323","sstarf":"\u22c6","Star":"\u22c6","star":"\u2606","starf":"\u2605","straightepsilon":"\u03f5","straightphi":"\u03d5","strns":"\xaf","sub":"\u2282","Sub":"\u22d0","subdot":"\u2abd","subE":"\u2ac5","sube":"\u2286","subedot":"\u2ac3","submult":"\u2ac1","subnE":"\u2acb","subne":"\u228a","subplus":"\u2abf","subrarr":"\u2979","subset":"\u2282","Subset":"\u22d0","subseteq":"\u2286","subseteqq":"\u2ac5","SubsetEqual":"\u2286","subsetneq":"\u228a","subsetneqq":"\u2acb","subsim":"\u2ac7","subsub":"\u2ad5","subsup":"\u2ad3","succapprox":"\u2ab8","succ":"\u227b","succcurlyeq":"\u227d","Succeeds":"\u227b","SucceedsEqual":"\u2ab0","SucceedsSlantEqual":"\u227d","SucceedsTilde":"\u227f","succeq":"\u2ab0","succnapprox":"\u2aba","succneqq":"\u2ab6","succnsim":"\u22e9","succsim":"\u227f","SuchThat":"\u220b","sum":"\u2211","Sum":"\u2211","sung":"\u266a","sup1":"\xb9","sup2":"\xb2","sup3":"\xb3","sup":"\u2283","Sup":"\u22d1","supdot":"\u2abe","supdsub":"\u2ad8","supE":"\u2ac6","supe":"\u2287","supedot":"\u2ac4","Superset":"\u2283","SupersetEqual":"\u2287","suphsol":"\u27c9","suphsub":"\u2ad7","suplarr":"\u297b","supmult":"\u2ac2","supnE":"\u2acc","supne":"\u228b","supplus":"\u2ac0","supset":"\u2283","Supset":"\u22d1","supseteq":"\u2287","supseteqq":"\u2ac6","supsetneq":"\u228b","supsetneqq":"\u2acc","supsim":"\u2ac8","supsub":"\u2ad4","supsup":"\u2ad6","swarhk":"\u2926","swarr":"\u2199","swArr":"\u21d9","swarrow":"\u2199","swnwar":"\u292a","szlig":"\xdf","Tab":"\\t","target":"\u2316","Tau":"\u03a4","tau":"\u03c4","tbrk":"\u23b4","Tcaron":"\u0164","tcaron":"\u0165","Tcedil":"\u0162","tcedil":"\u0163","Tcy":"\u0422","tcy":"\u0442","tdot":"\u20db","telrec":"\u2315","Tfr":"\u{1d517}","tfr":"\u{1d531}","there4":"\u2234","therefore":"\u2234","Therefore":"\u2234","Theta":"\u0398","theta":"\u03b8","thetasym":"\u03d1","thetav":"\u03d1","thickapprox":"\u2248","thicksim":"\u223c","ThickSpace":"\u205f\u200a","ThinSpace":"\u2009","thinsp":"\u2009","thkap":"\u2248","thksim":"\u223c","THORN":"\xde","thorn":"\xfe","tilde":"\u02dc","Tilde":"\u223c","TildeEqual":"\u2243","TildeFullEqual":"\u2245","TildeTilde":"\u2248","timesbar":"\u2a31","timesb":"\u22a0","times":"\xd7","timesd":"\u2a30","tint":"\u222d","toea":"\u2928","topbot":"\u2336","topcir":"\u2af1","top":"\u22a4","Topf":"\u{1d54b}","topf":"\u{1d565}","topfork":"\u2ada","tosa":"\u2929","tprime":"\u2034","trade":"\u2122","TRADE":"\u2122","triangle":"\u25b5","triangledown":"\u25bf","triangleleft":"\u25c3","trianglelefteq":"\u22b4","triangleq":"\u225c","triangleright":"\u25b9","trianglerighteq":"\u22b5","tridot":"\u25ec","trie":"\u225c","triminus":"\u2a3a","TripleDot":"\u20db","triplus":"\u2a39","trisb":"\u29cd","tritime":"\u2a3b","trpezium":"\u23e2","Tscr":"\u{1d4af}","tscr":"\u{1d4c9}","TScy":"\u0426","tscy":"\u0446","TSHcy":"\u040b","tshcy":"\u045b","Tstrok":"\u0166","tstrok":"\u0167","twixt":"\u226c","twoheadleftarrow":"\u219e","twoheadrightarrow":"\u21a0","Uacute":"\xda","uacute":"\xfa","uarr":"\u2191","Uarr":"\u219f","uArr":"\u21d1","Uarrocir":"\u2949","Ubrcy":"\u040e","ubrcy":"\u045e","Ubreve":"\u016c","ubreve":"\u016d","Ucirc":"\xdb","ucirc":"\xfb","Ucy":"\u0423","ucy":"\u0443","udarr":"\u21c5","Udblac":"\u0170","udblac":"\u0171","udhar":"\u296e","ufisht":"\u297e","Ufr":"\u{1d518}","ufr":"\u{1d532}","Ugrave":"\xd9","ugrave":"\xf9","uHar":"\u2963","uharl":"\u21bf","uharr":"\u21be","uhblk":"\u2580","ulcorn":"\u231c","ulcorner":"\u231c","ulcrop":"\u230f","ultri":"\u25f8","Umacr":"\u016a","umacr":"\u016b","uml":"\xa8","UnderBar":"_","UnderBrace":"\u23df","UnderBracket":"\u23b5","UnderParenthesis":"\u23dd","Union":"\u22c3","UnionPlus":"\u228e","Uogon":"\u0172","uogon":"\u0173","Uopf":"\u{1d54c}","uopf":"\u{1d566}","UpArrowBar":"\u2912","uparrow":"\u2191","UpArrow":"\u2191","Uparrow":"\u21d1","UpArrowDownArrow":"\u21c5","updownarrow":"\u2195","UpDownArrow":"\u2195","Updownarrow":"\u21d5","UpEquilibrium":"\u296e","upharpoonleft":"\u21bf","upharpoonright":"\u21be","uplus":"\u228e","UpperLeftArrow":"\u2196","UpperRightArrow":"\u2197","upsi":"\u03c5","Upsi":"\u03d2","upsih":"\u03d2","Upsilon":"\u03a5","upsilon":"\u03c5","UpTeeArrow":"\u21a5","UpTee":"\u22a5","upuparrows":"\u21c8","urcorn":"\u231d","urcorner":"\u231d","urcrop":"\u230e","Uring":"\u016e","uring":"\u016f","urtri":"\u25f9","Uscr":"\u{1d4b0}","uscr":"\u{1d4ca}","utdot":"\u22f0","Utilde":"\u0168","utilde":"\u0169","utri":"\u25b5","utrif":"\u25b4","uuarr":"\u21c8","Uuml":"\xdc","uuml":"\xfc","uwangle":"\u29a7","vangrt":"\u299c","varepsilon":"\u03f5","varkappa":"\u03f0","varnothing":"\u2205","varphi":"\u03d5","varpi":"\u03d6","varpropto":"\u221d","varr":"\u2195","vArr":"\u21d5","varrho":"\u03f1","varsigma":"\u03c2","varsubsetneq":"\u228a\ufe00","varsubsetneqq":"\u2acb\ufe00","varsupsetneq":"\u228b\ufe00","varsupsetneqq":"\u2acc\ufe00","vartheta":"\u03d1","vartriangleleft":"\u22b2","vartriangleright":"\u22b3","vBar":"\u2ae8","Vbar":"\u2aeb","vBarv":"\u2ae9","Vcy":"\u0412","vcy":"\u0432","vdash":"\u22a2","vDash":"\u22a8","Vdash":"\u22a9","VDash":"\u22ab","Vdashl":"\u2ae6","veebar":"\u22bb","vee":"\u2228","Vee":"\u22c1","veeeq":"\u225a","vellip":"\u22ee","verbar":"|","Verbar":"\u2016","vert":"|","Vert":"\u2016","VerticalBar":"\u2223","VerticalLine":"|","VerticalSeparator":"\u2758","VerticalTilde":"\u2240","VeryThinSpace":"\u200a","Vfr":"\u{1d519}","vfr":"\u{1d533}","vltri":"\u22b2","vnsub":"\u2282\u20d2","vnsup":"\u2283\u20d2","Vopf":"\u{1d54d}","vopf":"\u{1d567}","vprop":"\u221d","vrtri":"\u22b3","Vscr":"\u{1d4b1}","vscr":"\u{1d4cb}","vsubnE":"\u2acb\ufe00","vsubne":"\u228a\ufe00","vsupnE":"\u2acc\ufe00","vsupne":"\u228b\ufe00","Vvdash":"\u22aa","vzigzag":"\u299a","Wcirc":"\u0174","wcirc":"\u0175","wedbar":"\u2a5f","wedge":"\u2227","Wedge":"\u22c0","wedgeq":"\u2259","weierp":"\u2118","Wfr":"\u{1d51a}","wfr":"\u{1d534}","Wopf":"\u{1d54e}","wopf":"\u{1d568}","wp":"\u2118","wr":"\u2240","wreath":"\u2240","Wscr":"\u{1d4b2}","wscr":"\u{1d4cc}","xcap":"\u22c2","xcirc":"\u25ef","xcup":"\u22c3","xdtri":"\u25bd","Xfr":"\u{1d51b}","xfr":"\u{1d535}","xharr":"\u27f7","xhArr":"\u27fa","Xi":"\u039e","xi":"\u03be","xlarr":"\u27f5","xlArr":"\u27f8","xmap":"\u27fc","xnis":"\u22fb","xodot":"\u2a00","Xopf":"\u{1d54f}","xopf":"\u{1d569}","xoplus":"\u2a01","xotime":"\u2a02","xrarr":"\u27f6","xrArr":"\u27f9","Xscr":"\u{1d4b3}","xscr":"\u{1d4cd}","xsqcup":"\u2a06","xuplus":"\u2a04","xutri":"\u25b3","xvee":"\u22c1","xwedge":"\u22c0","Yacute":"\xdd","yacute":"\xfd","YAcy":"\u042f","yacy":"\u044f","Ycirc":"\u0176","ycirc":"\u0177","Ycy":"\u042b","ycy":"\u044b","yen":"\xa5","Yfr":"\u{1d51c}","yfr":"\u{1d536}","YIcy":"\u0407","yicy":"\u0457","Yopf":"\u{1d550}","yopf":"\u{1d56a}","Yscr":"\u{1d4b4}","yscr":"\u{1d4ce}","YUcy":"\u042e","yucy":"\u044e","yuml":"\xff","Yuml":"\u0178","Zacute":"\u0179","zacute":"\u017a","Zcaron":"\u017d","zcaron":"\u017e","Zcy":"\u0417","zcy":"\u0437","Zdot":"\u017b","zdot":"\u017c","zeetrf":"\u2128","ZeroWidthSpace":"\u200b","Zeta":"\u0396","zeta":"\u03b6","zfr":"\u{1d537}","Zfr":"\u2128","ZHcy":"\u0416","zhcy":"\u0436","zigrarr":"\u21dd","zopf":"\u{1d56b}","Zopf":"\u2124","Zscr":"\u{1d4b5}","zscr":"\u{1d4cf}","zwj":"\u200d","zwnj":"\u200c"}')},9591:Le=>{"use strict";Le.exports=JSON.parse('{"Aacute":"\xc1","aacute":"\xe1","Acirc":"\xc2","acirc":"\xe2","acute":"\xb4","AElig":"\xc6","aelig":"\xe6","Agrave":"\xc0","agrave":"\xe0","amp":"&","AMP":"&","Aring":"\xc5","aring":"\xe5","Atilde":"\xc3","atilde":"\xe3","Auml":"\xc4","auml":"\xe4","brvbar":"\xa6","Ccedil":"\xc7","ccedil":"\xe7","cedil":"\xb8","cent":"\xa2","copy":"\xa9","COPY":"\xa9","curren":"\xa4","deg":"\xb0","divide":"\xf7","Eacute":"\xc9","eacute":"\xe9","Ecirc":"\xca","ecirc":"\xea","Egrave":"\xc8","egrave":"\xe8","ETH":"\xd0","eth":"\xf0","Euml":"\xcb","euml":"\xeb","frac12":"\xbd","frac14":"\xbc","frac34":"\xbe","gt":">","GT":">","Iacute":"\xcd","iacute":"\xed","Icirc":"\xce","icirc":"\xee","iexcl":"\xa1","Igrave":"\xcc","igrave":"\xec","iquest":"\xbf","Iuml":"\xcf","iuml":"\xef","laquo":"\xab","lt":"<","LT":"<","macr":"\xaf","micro":"\xb5","middot":"\xb7","nbsp":"\xa0","not":"\xac","Ntilde":"\xd1","ntilde":"\xf1","Oacute":"\xd3","oacute":"\xf3","Ocirc":"\xd4","ocirc":"\xf4","Ograve":"\xd2","ograve":"\xf2","ordf":"\xaa","ordm":"\xba","Oslash":"\xd8","oslash":"\xf8","Otilde":"\xd5","otilde":"\xf5","Ouml":"\xd6","ouml":"\xf6","para":"\xb6","plusmn":"\xb1","pound":"\xa3","quot":"\\"","QUOT":"\\"","raquo":"\xbb","reg":"\xae","REG":"\xae","sect":"\xa7","shy":"\xad","sup1":"\xb9","sup2":"\xb2","sup3":"\xb3","szlig":"\xdf","THORN":"\xde","thorn":"\xfe","times":"\xd7","Uacute":"\xda","uacute":"\xfa","Ucirc":"\xdb","ucirc":"\xfb","Ugrave":"\xd9","ugrave":"\xf9","uml":"\xa8","Uuml":"\xdc","uuml":"\xfc","Yacute":"\xdd","yacute":"\xfd","yen":"\xa5","yuml":"\xff"}')},2586:Le=>{"use strict";Le.exports=JSON.parse('{"amp":"&","apos":"\'","gt":">","lt":"<","quot":"\\""}')},4147:Le=>{"use strict";Le.exports={i8:"4.0.2"}}},Le=>{Le(Le.s=9153)}]); \ No newline at end of file