diff --git a/index.html b/index.html index af71e69..40e9014 100644 --- a/index.html +++ b/index.html @@ -19,6 +19,6 @@ - + \ No newline at end of file diff --git a/main.8115901d0b6074b2.js b/main.d3f33b2d81e5f6b9.js similarity index 83% rename from main.8115901d0b6074b2.js rename to main.d3f33b2d81e5f6b9.js index 1a57e75..4971b97 100644 --- a/main.8115901d0b6074b2.js +++ b/main.d3f33b2d81e5f6b9.js @@ -1 +1 @@ -(self.webpackChunkBM=self.webpackChunkBM||[]).push([[179],{7366:(Le,C,G)=>{"use strict";function le(n){return"function"==typeof n}let ce=!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 ce&&console.log("RxJS: Back to a better error behavior. Thank you. <3");ce=n},get useDeprecatedSynchronousErrorHandling(){return ce}};function Q(n){setTimeout(()=>{throw n},0)}const q={closed:!0,next(n){},error(n){if(Y.useDeprecatedSynchronousErrorHandling)throw n;Q(n)},complete(){}},N=Array.isArray||(n=>n&&"number"==typeof n.length);function M(n){return null!==n&&"object"==typeof n}const x=(()=>{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 x?e.errors:e),[])}E.EMPTY=((n=new E).closed=!0,n);const D="function"==typeof Symbol?Symbol("rxSubscriber"):"@@rxSubscriber_"+Math.random();class A 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 A?(this.syncErrorThrowable=t.syncErrorThrowable,this.destination=t,t.add(this)):(this.syncErrorThrowable=!0,this.destination=new I(this,t));break}default:this.syncErrorThrowable=!0,this.destination=new I(this,t,e,i)}}[D](){return this}static create(t,e,i){const r=new A(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 I extends A{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 Ce(n){return n}function ie(n){return 0===n.length?Ce: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 A)return n;if(n[D])return n[D]()}return n||t||e?new A(n,t,e):new A(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 A?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 A{constructor(t){super(t),this.destination=t}}let L=(()=>{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 J(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 J(t,e),n})();class J extends L{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 ue(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 A{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 Tt=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 Tt(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 ${M(n)?"an invalid object":`'${n}'`} where a stream was expected. You can provide an Observable, Promise, Array, or Iterable.`;throw new TypeError(e)}};function hi(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 _h(n,t){if(null!=n){if(function Ys(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 cn(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 hi(n,t);if(function gh(n){return n&&"function"==typeof n[se]}(n)||"string"==typeof n)return function ji(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 A{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 A{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 Hi(n,t,e=Number.POSITIVE_INFINITY){return"function"==typeof t?i=>i.pipe(Hi((r,o)=>vt(n(r,o)).pipe(ue((s,a)=>t(r,s,o,a))),e)):("number"==typeof t&&(e=t),i=>i.lift(new uO(n,e)))}class uO{constructor(t,e=Number.POSITIVE_INFINITY){this.project=t,this.concurrent=e}call(t,e){return e.subscribe(new dO(t,this.project,this.concurrent))}}class dO 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 vh(n=Number.POSITIVE_INFINITY){return Hi(Ce,n)}function bg(n,t){return t?hi(n,t):new b(Tt(n))}function Mn(...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]:vh(t)(bg(n,e))}function yh(){return function(t){return t.lift(new hO(t))}}class hO{constructor(t){this.connectable=t}call(t,e){const{connectable:i}=this;i._refCount++;const r=new pO(t,i),o=e.subscribe(r);return r.closed||(r.connection=i.connect()),o}}class pO extends A{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 bh 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 mO(this.getSubject(),this))),t.closed&&(this._connection=null,t=E.EMPTY)),t}refCount(){return yh()(this)}}const fO=(()=>{const n=bh.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 mO 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 vO{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 yO(){return new L}function Mw(){return n=>yh()(function _O(n,t){return function(i){let r;if(r="function"==typeof n?n:function(){return n},"function"==typeof t)return i.lift(new vO(r,t));const o=Object.create(i,fO);return o.source=i,o.subjectFactory=r,o}}(yO)(n))}function vn(n){for(let t in n)if(n[t]===vn)return t;throw Error("Could not find renamed property on target object.")}function Cg(n,t){for(const e in t)t.hasOwnProperty(e)&&!n.hasOwnProperty(e)&&(n[e]=t[e])}function yn(n){if("string"==typeof n)return n;if(Array.isArray(n))return"["+n.map(yn).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 wg(n,t){return null==n||""===n?null===t?"":t:null==t||""===t?n:n+" "+t}const bO=vn({__forward_ref__:vn});function tn(n){return n.__forward_ref__=tn,n.toString=function(){return yn(this())},n}function Et(n){return Eg(n)?n():n}function Eg(n){return"function"==typeof n&&n.hasOwnProperty(bO)&&n.__forward_ref__===tn}class Se extends Error{constructor(t,e){super(function Ch(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 wh(n,t){throw new Se(-201,!1)}function br(n,t){null==n&&function fn(n,t,e,i){throw new Error(`ASSERTION ERROR: ${n}`+(null==i?"":` [Expected=> ${e} ${i} ${t} <=Actual]`))}(t,n,null,"!=")}function me(n){return{token:n.token,providedIn:n.providedIn||null,factory:n.factory,value:void 0}}function ct(n){return{providers:n.providers||[],imports:n.imports||[]}}function Dg(n){return kw(n,Eh)||kw(n,Ow)}function kw(n,t){return n.hasOwnProperty(t)?n[t]:null}function Rw(n){return n&&(n.hasOwnProperty(Sg)||n.hasOwnProperty(xO))?n[Sg]:null}const Eh=vn({\u0275prov:vn}),Sg=vn({\u0275inj:vn}),Ow=vn({ngInjectableDef:vn}),xO=vn({ngInjectorDef:vn});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 Ag;function Fr(n){const t=Ag;return Ag=n,t}function Pw(n,t,e){const i=Dg(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 wh(yn(n))}function Qs(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 _n=(()=>typeof globalThis<"u"&&globalThis||typeof global<"u"&&global||typeof window<"u"&&window||typeof self<"u"&&typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&self)(),Dl={},dn=[],Dh=vn({\u0275cmp:vn}),Tg=vn({\u0275dir:vn}),xg=vn({\u0275pipe:vn}),Lw=vn({\u0275mod:vn}),ss=vn({\u0275fac:vn}),du=vn({__NG_ELEMENT_ID__:vn});let MO=0;function Ue(n){return Qs(()=>{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||dn,viewQuery:n.viewQuery||null,features:n.features||null,data:n.data||{},encapsulation:n.encapsulation||ao.Emulated,id:"c"+MO++,styles:n.styles||dn,_:null,setInput:null,schemas:n.schemas||null,tView:null},o=n.dependencies,s=n.features;return r.inputs=jw(n.inputs,i),r.outputs=jw(n.outputs),s&&s.forEach(a=>a(r)),r.directiveDefs=o?()=>("function"==typeof o?o():o).map(Nw).filter(Bw):null,r.pipeDefs=o?()=>("function"==typeof o?o():o).map(qi).filter(Bw):null,r})}function Nw(n){return gn(n)||Ui(n)}function Bw(n){return null!==n}const kO={};function dt(n){return Qs(()=>{const t={type:n.type,bootstrap:n.bootstrap||dn,declarations:n.declarations||dn,imports:n.imports||dn,exports:n.exports||dn,transitiveCompileScopes:null,schemas:n.schemas||null,id:n.id||null};return null!=n.id&&(kO[n.id]=n.type),t})}function jw(n,t){if(null==n)return Dl;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 Vi(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 gn(n){return n[Dh]||null}function Ui(n){return n[Tg]||null}function qi(n){return n[xg]||null}function Cr(n,t){const e=n[Lw]||null;if(!e&&!0===t)throw new Error(`Type ${yn(n)} does not have '\u0275mod' property.`);return e}function rr(n){return Array.isArray(n)&&"object"==typeof n[1]}function co(n){return Array.isArray(n)&&!0===n[1]}function kg(n){return 0!=(8&n.flags)}function xh(n){return 2==(2&n.flags)}function Ih(n){return 1==(1&n.flags)}function uo(n){return null!==n.template}function FO(n){return 0!=(256&n[2])}function ka(n,t){return n.hasOwnProperty(ss)?n[ss]:null}class jO{constructor(t,e,i){this.previousValue=t,this.currentValue=e,this.firstChange=i}isFirstChange(){return this.firstChange}}function kn(){return Uw}function Uw(n){return n.type.prototype.ngOnChanges&&(n.setInput=VO),HO}function HO(){const n=zw(this),t=n?.current;if(t){const e=n.previous;if(e===Dl)n.previous=t;else for(let i in t)e[i]=t[i];n.current=null,this.ngOnChanges(t)}}function VO(n,t,e,i){const r=zw(n)||function UO(n,t){return n[qw]=t}(n,{previous:Dl,current:null}),o=r.current||(r.current={}),s=r.previous,a=this.declaredInputs[e],l=s[a];o[a]=new jO(l&&l.currentValue,t,s===Dl),n[i]=t}kn.ngInherit=!0;const qw="__ngSimpleChanges__";function zw(n){return n[qw]||null}function Jn(n){for(;Array.isArray(n);)n=n[0];return n}function Mh(n,t){return Jn(t[n])}function jr(n,t){return Jn(t[n.index])}function Fg(n,t){return n.data[t]}function Il(n,t){return n[t]}function Er(n,t){const e=t[n];return rr(e)?e:e[0]}function Gw(n){return 4==(4&n[2])}function Ng(n){return 64==(64&n[2])}function Xs(n,t){return null==t?null:n[t]}function Ww(n){n[18]=0}function Bg(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 xt={lFrame:t0(null),bindingsEnabled:!0};function Kw(){return xt.bindingsEnabled}function xe(){return xt.lFrame.lView}function nn(){return xt.lFrame.tView}function X(n){return xt.lFrame.contextLView=n,n[8]}function Z(n){return xt.lFrame.contextLView=null,n}function si(){let n=Yw();for(;null!==n&&64===n.type;)n=n.parent;return n}function Yw(){return xt.lFrame.currentTNode}function Ro(n,t){const e=xt.lFrame;e.currentTNode=n,e.isParent=t}function jg(){return xt.lFrame.isParent}function Hg(){xt.lFrame.isParent=!1}function zi(){const n=xt.lFrame;let t=n.bindingRootIndex;return-1===t&&(t=n.bindingRootIndex=n.tView.bindingStartIndex),t}function Ml(){return xt.lFrame.bindingIndex++}function ls(n){const t=xt.lFrame,e=t.bindingIndex;return t.bindingIndex=t.bindingIndex+n,e}function nP(n,t){const e=xt.lFrame;e.bindingIndex=e.bindingRootIndex=n,Vg(t)}function Vg(n){xt.lFrame.currentDirectiveIndex=n}function Ug(n){const t=xt.lFrame.currentDirectiveIndex;return-1===t?null:n[t]}function Zw(){return xt.lFrame.currentQueryIndex}function qg(n){xt.lFrame.currentQueryIndex=n}function rP(n){const t=n[1];return 2===t.type?t.declTNode:1===t.type?n[6]:null}function Jw(n,t,e){if(e&yt.SkipSelf){let r=t,o=n;for(;!(r=r.parent,null!==r||e&yt.Host||(r=rP(o),null===r||(o=o[15],10&r.type))););if(null===r)return!1;t=r,n=o}const i=xt.lFrame=e0();return i.currentTNode=t,i.lView=n,!0}function zg(n){const t=e0(),e=n[1];xt.lFrame=t,t.currentTNode=e.firstChild,t.lView=n,t.tView=e,t.contextLView=n,t.bindingIndex=e.bindingStartIndex,t.inI18n=!1}function e0(){const n=xt.lFrame,t=null===n?null:n.child;return null===t?t0(n):t}function t0(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 n0(){const n=xt.lFrame;return xt.lFrame=n.parent,n.currentTNode=null,n.lView=null,n}const r0=n0;function Gg(){const n=n0();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 Gi(){return xt.lFrame.selectedIndex}function Zs(n){xt.lFrame.selectedIndex=n}function Vn(){const n=xt.lFrame;return Fg(n.tView,n.selectedIndex)}function kl(){xt.lFrame.currentNamespace="svg"}function Rh(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 Lh(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 Kg=!0;function Nh(n){const t=Kg;return Kg=n,t}let _P=0;const Oo={};function vu(n,t){const e=Qg(n,t);if(-1!==e)return e;const i=t[1];i.firstCreatePass&&(n.injectorIndex=t.length,Yg(i.data,n),Yg(t,null),Yg(i.blueprint,null));const r=Bh(n,t),o=n.injectorIndex;if(u0(r)){const s=Rl(r),a=Ol(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 Yg(n,t){n.push(0,0,0,0,0,0,0,0,t)}function Qg(n,t){return-1===n.injectorIndex||n.parent&&n.parent.injectorIndex===n.injectorIndex||null===t[n.injectorIndex+8]?-1:n.injectorIndex}function Bh(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=y0(r),null===i)return-1;if(e++,r=r[15],-1!==i.injectorIndex)return i.injectorIndex|e<<16}return-1}function jh(n,t,e){!function vP(n,t,e){let i;"string"==typeof e?i=e.charCodeAt(0)||0:e.hasOwnProperty(du)&&(i=e[du]),null==i&&(i=e[du]=_P++);const r=255&i;t.data[n+(r>>5)]|=1<=0?255&t:wP:t}(e);if("function"==typeof o){if(!Jw(t,n,i))return i&yt.Host?p0(r,0,i):f0(t,e,i,r);try{const s=o(i);if(null!=s||i&yt.Optional)return s;wh()}finally{r0()}}else if("number"==typeof o){let s=null,a=Qg(n,t),l=-1,c=i&yt.Host?t[16][6]:null;for((-1===a||i&yt.SkipSelf)&&(l=-1===a?Bh(n,t):t[a+8],-1!==l&&v0(i,!1)?(s=t[1],a=Rl(l),t=Ol(l,t)):a=-1);-1!==a;){const u=t[1];if(_0(o,a,u.data)){const d=bP(a,t,e,s,i,c);if(d!==Oo)return d}l=t[a+8],-1!==l&&v0(i,t[1].data[a+8]===c)&&_0(o,a,t)?(s=u,a=Rl(l),t=Ol(l,t)):a=-1}}return r}function bP(n,t,e,i,r,o){const s=t[1],a=s.data[n+8],u=Hh(a,s,e,null==i?xh(a)&&Kg:i!=s&&0!=(3&a.type),r&yt.Host&&o===a);return null!==u?yu(t,s,u,a):Oo}function Hh(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 hP(n){return n instanceof gu}(r)){const s=r;s.resolving&&function CO(n,t){const e=t?`. Dependency path: ${t.join(" > ")} > ${n}`:"";throw new Se(-200,`Circular dependency in DI detected for ${n}${e}`)}(function un(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=Nh(s.canSeeViewProviders);s.resolving=!0;const l=s.injectImpl?Fr(s.injectImpl):null;Jw(n,i,yt.Default);try{r=n[e]=s.factory(void 0,o,n,i),t.firstCreatePass&&e>=i.directiveStart&&function uP(n,t,e){const{ngOnChanges:i,ngOnInit:r,ngDoCheck:o}=t.type.prototype;if(i){const s=Uw(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),Nh(a),s.resolving=!1,r0()}}return r}function _0(n,t,e){return!!(e[t+(n>>5)]&1<{const t=n.prototype.constructor,e=t[ss]||Xg(t),i=Object.prototype;let r=Object.getPrototypeOf(n.prototype).constructor;for(;r&&r!==i;){const o=r[ss]||Xg(r);if(o&&o!==e)return o;r=Object.getPrototypeOf(r)}return o=>new o})}function Xg(n){return Eg(n)?()=>{const t=Xg(Et(n));return t&&t()}:ka(n)}function y0(n){const t=n[1],e=t.type;return 2===e?t.declTNode:1===e?n[6]:null}function Hr(n){return function yP(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 Zg(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 ge{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=me({token:this,providedIn:e.providedIn||"root",factory:e.factory}))}get multi(){return this}toString(){return`InjectionToken ${this._desc}`}}function Dr(n,t){void 0===t&&(t=n);for(let e=0;eArray.isArray(e)?cs(e,t):t(e))}function C0(n,t,e){t>=n.length?n.push(e):n.splice(t,0,e)}function Vh(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 TP(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 e_(n,t){const e=jl(n,t);if(e>=0)return n[1|e]}function jl(n,t){return function D0(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 Wh}()?.createHTML(n)||n}function L0(n){return function a_(){if(void 0===$h&&($h=null,_n.trustedTypes))try{$h=_n.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:n=>n,createScript:n=>n,createScriptURL:n=>n})}catch{}return $h}()?.createHTML(n)||n}class Oa{constructor(t){this.changingThisBreaksApplicationSecurity=t}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see https://g.co/ng/security#xss)`}}class JP extends Oa{getTypeName(){return"HTML"}}class eL extends Oa{getTypeName(){return"Style"}}class tL extends Oa{getTypeName(){return"Script"}}class nL extends Oa{getTypeName(){return"URL"}}class iL extends Oa{getTypeName(){return"ResourceURL"}}function Ar(n){return n instanceof Oa?n.changingThisBreaksApplicationSecurity:n}function Po(n,t){const e=function rL(n){return n instanceof Oa&&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 uL{constructor(t){this.inertDocumentHelper=t}getInertBodyElement(t){t=""+t;try{const e=(new window.DOMParser).parseFromString(Ul(t),"text/html").body;return null===e?this.inertDocumentHelper.getInertBodyElement(t):(e.removeChild(e.firstChild),e)}catch{return null}}}class dL{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=Ul(t),e;const i=this.inertDocument.createElement("body");return i.innerHTML=Ul(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 H0=Lo("area,br,col,hr,img,wbr"),V0=Lo("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),U0=Lo("rp,rt"),l_=Mu(H0,Mu(V0,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(U0,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(U0,V0)),c_=Lo("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),u_=Lo("srcset"),q0=Mu(c_,u_,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")),mL=Lo("script,style,template");class gL{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(!l_.hasOwnProperty(e))return this.sanitizedSomething=!0,!mL.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();l_.hasOwnProperty(e)&&!H0.hasOwnProperty(e)&&(this.buf.push(""))}chars(t){this.buf.push(z0(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 _L=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,vL=/([^\#-~ |!])/g;function z0(n){return n.replace(/&/g,"&").replace(_L,function(t){return"&#"+(1024*(t.charCodeAt(0)-55296)+(t.charCodeAt(1)-56320)+65536)+";"}).replace(vL,function(t){return"&#"+t.charCodeAt(0)+";"}).replace(//g,">")}let Kh;function G0(n,t){let e=null;try{Kh=Kh||function B0(n){const t=new dL(n);return function hL(){try{return!!(new window.DOMParser).parseFromString(Ul(""),"text/html")}catch{return!1}}()?new uL(t):t}(n);let i=t?String(t):"";e=Kh.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=Kh.getInertBodyElement(i)}while(i!==o);return Ul((new gL).sanitizeChildren(d_(e)||e))}finally{if(e){const i=d_(e)||e;for(;i.firstChild;)i.removeChild(i.firstChild)}}}function d_(n){return"content"in n&&function yL(n){return n.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===n.nodeName}(n)?n.content:null}var sn=(()=>((sn=sn||{})[sn.NONE=0]="NONE",sn[sn.HTML=1]="HTML",sn[sn.STYLE=2]="STYLE",sn[sn.SCRIPT=3]="SCRIPT",sn[sn.URL=4]="URL",sn[sn.RESOURCE_URL=5]="RESOURCE_URL",sn))();function h_(n){const t=ku();return t?L0(t.sanitize(sn.HTML,n)||""):Po(n,"HTML")?L0(Ar(n)):G0(function P0(){return void 0!==o_?o_:typeof document<"u"?document:void 0}(),kt(n))}function Rn(n){const t=ku();return t?t.sanitize(sn.URL,n)||"":Po(n,"URL")?Ar(n):Iu(kt(n))}function ku(){const n=xe();return n&&n[12]}const $0=new ge("ENVIRONMENT_INITIALIZER"),p_=new ge("INJECTOR",-1),K0=new ge("INJECTOR_DEF_TYPES");class Y0{get(t,e=Eu){if(e===Eu){const i=new Error(`NullInjectorError: No provider for ${yn(t)}!`);throw i.name="NullInjectorError",i}return e}}function AL(...n){return{\u0275providers:Q0(0,n)}}function Q0(n,...t){const e=[],i=new Set;let r;return cs(t,o=>{const s=o;f_(s,e,[],i)&&(r||(r=[]),r.push(s))}),void 0!==r&&X0(r,e),e}function X0(n,t){for(let e=0;e{t.push(o)})}}function f_(n,t,e,i){if(!(n=Et(n)))return!1;let r=null,o=Rw(n);const s=!o&&gn(n);if(o||s){if(s&&!s.standalone)return!1;r=n}else{const l=n.ngModule;if(o=Rw(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)f_(c,t,e,i)}}else{if(!o)return!1;{if(null!=o.imports&&!a){let c;i.add(r);try{cs(o.imports,u=>{f_(u,t,e,i)&&(c||(c=[]),c.push(u))})}finally{}void 0!==c&&X0(c,t)}if(!a){const c=ka(r)||(()=>new r);t.push({provide:r,useFactory:c,deps:dn},{provide:K0,useValue:r,multi:!0},{provide:$0,useValue:()=>T(r),multi:!0})}const l=o.providers;null==l||a||cs(l,u=>{t.push(u)})}}return r!==n&&void 0!==n.providers}const TL=vn({provide:String,useValue:vn});function m_(n){return null!==n&&"object"==typeof n&&TL in n}function Pa(n){return"function"==typeof n}const g_=new ge("Set Injector scope."),Yh={},IL={};let __;function Qh(){return void 0===__&&(__=new Y0),__}class La{}class eE extends La{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,y_(t,s=>this.processProvider(s)),this.records.set(p_,ql(void 0,this)),r.has("environment")&&this.records.set(La,ql(void 0,this));const o=this.records.get(g_);null!=o&&"string"==typeof o.value&&this.scopes.add(o.value),this.injectorDefTypes=new Set(this.get(K0.multi,dn,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=Hl(this),i=Fr(void 0);try{return t()}finally{Hl(e),Fr(i)}}get(t,e=Eu,i=yt.Default){this.assertNotDestroyed();const r=Hl(this),o=Fr(void 0);try{if(!(i&yt.SkipSelf)){let a=this.records.get(t);if(void 0===a){const l=function PL(n){return"function"==typeof n||"object"==typeof n&&n instanceof ge}(t)&&Dg(t);a=l&&this.injectableDefInScope(l)?ql(v_(t),Yh):null,this.records.set(t,a)}if(null!=a)return this.hydrate(t,a)}return(i&yt.Self?Qh():this.parent).get(t,e=i&yt.Optional&&e===Eu?null:e)}catch(s){if("NullInjectorError"===s.name){if((s[qh]=s[qh]||[]).unshift(yn(t)),r)throw s;return function jP(n,t,e,i){const r=n[qh];throw t[S0]&&r.unshift(t[S0]),n.message=function HP(n,t,e,i=null){n=n&&"\n"===n.charAt(0)&&"\u0275"==n.charAt(1)?n.slice(2):n;let r=yn(t);if(Array.isArray(t))r=t.map(yn).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):yn(a)))}r=`{${o.join(", ")}}`}return`${e}${i?"("+i+")":""}[${r}]: ${n.replace(LP,"\n ")}`}("\n"+n.message,r,e,i),n.ngTokenPath=r,n[qh]=null,n}(s,t,"R3InjectorError",this.source)}throw s}finally{Fr(o),Hl(r)}}resolveInjectorInitializers(){const t=Hl(this),e=Fr(void 0);try{const i=this.get($0.multi,dn,yt.Self);for(const r of i)r()}finally{Hl(t),Fr(e)}}toString(){const t=[],e=this.records;for(const i of e.keys())t.push(yn(i));return`R3Injector[${t.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new Se(205,!1)}processProvider(t){let e=Pa(t=Et(t))?t:Et(t&&t.provide);const i=function kL(n){return m_(n)?ql(void 0,n.useValue):ql(tE(n),Yh)}(t);if(Pa(t)||!0!==t.multi)this.records.get(e);else{let r=this.records.get(e);r||(r=ql(void 0,Yh,!0),r.factory=()=>i_(r.multi),this.records.set(e,r)),e=t,r.multi.push(t)}this.records.set(e,i)}hydrate(t,e){return e.value===Yh&&(e.value=IL,e.value=e.factory()),"object"==typeof e.value&&e.value&&function OL(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 v_(n){const t=Dg(n),e=null!==t?t.factory:ka(n);if(null!==e)return e;if(n instanceof ge)throw new Se(204,!1);if(n instanceof Function)return function ML(n){const t=n.length;if(t>0)throw wu(t,"?"),new Se(204,!1);const e=function AO(n){const t=n&&(n[Eh]||n[Ow]);if(t){const e=function TO(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 Se(204,!1)}function tE(n,t,e){let i;if(Pa(n)){const r=Et(n);return ka(r)||v_(r)}if(m_(n))i=()=>Et(n.useValue);else if(function J0(n){return!(!n||!n.useFactory)}(n))i=()=>n.useFactory(...i_(n.deps||[]));else if(function Z0(n){return!(!n||!n.useExisting)}(n))i=()=>T(Et(n.useExisting));else{const r=Et(n&&(n.useClass||n.provide));if(!function RL(n){return!!n.deps}(n))return ka(r)||v_(r);i=()=>new r(...i_(n.deps))}return i}function ql(n,t,e=!1){return{factory:n,value:t,multi:e?[]:void 0}}function LL(n){return!!n.\u0275providers}function y_(n,t){for(const e of n)Array.isArray(e)?y_(e,t):LL(e)?y_(e.\u0275providers,t):t(e)}class nE{}class BL{resolveComponentFactory(t){throw function NL(n){const t=Error(`No component factory found for ${yn(n)}. Did you add it to @NgModule.entryComponents?`);return t.ngComponent=n,t}(t)}}let ho=(()=>{class n{}return n.NULL=new BL,n})();function jL(){return zl(si(),xe())}function zl(n,t){return new Xe(jr(n,t))}let Xe=(()=>{class n{constructor(e){this.nativeElement=e}}return n.__NG_ELEMENT_ID__=jL,n})();function HL(n){return n instanceof Xe?n.nativeElement:n}class Ru{}let po=(()=>{class n{}return n.__NG_ELEMENT_ID__=()=>function VL(){const n=xe(),e=Er(si().index,n);return(rr(e)?e:n)[11]}(),n})(),UL=(()=>{class n{}return n.\u0275prov=me({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 rE=new Fa("14.1.0"),b_={};function S_(n){return n.ngOriginalError}class ds{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&&S_(t);for(;e&&S_(e);)e=S_(e);return e||null}}const A_=new Map;let tF=0;const x_="__ngContext__";function ki(n,t){rr(t)?(n[x_]=t[20],function iF(n){A_.set(n[20],n)}(t)):n[x_]=t}function Ou(n){const t=n[x_];return"number"==typeof t?function cE(n){return A_.get(n)||null}(t):t||null}function I_(n){const t=Ou(n);return t?rr(t)?t:t.lView:null}const hF=(()=>(typeof requestAnimationFrame<"u"&&requestAnimationFrame||setTimeout).bind(_n))();function hs(n){return n instanceof Function?n():n}var or=(()=>((or=or||{})[or.Important=1]="Important",or[or.DashCase=2]="DashCase",or))();function k_(n,t){return undefined(n,t)}function Pu(n){const t=n[3];return co(t)?t[3]:t}function R_(n){return _E(n[13])}function O_(n){return _E(n[4])}function _E(n){for(;null!==n&&!co(n);)n=n[4];return n}function Wl(n,t,e,i,r){if(null!=i){let o,s=!1;co(i)?o=i:rr(i)&&(s=!0,i=i[0]);const a=Jn(i);0===n&&null!==e?null==r?EE(t,e,a):Na(t,e,a,r||null,!0):1===n&&null!==e?Na(t,e,a,r||null,!0):2===n?function ME(n,t,e){const i=Xh(n,t);i&&function MF(n,t,e,i){n.removeChild(t,e,i)}(n,i,t,e)}(t,a,s):3===n&&t.destroyNode(a),null!=o&&function OF(n,t,e,i,r){const o=e[7];o!==Jn(e)&&Wl(t,n,i,o,r);for(let a=10;a0&&(n[e-1][4]=i[4]);const o=Vh(n,10+t);!function wF(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 bE(n,t){if(!(128&t[2])){const e=t[11];e.destroyNode&&Lu(n,t,e,3,null,null),function SF(n){let t=n[13];if(!t)return N_(n[1],n);for(;t;){let e=null;if(rr(t))e=t[13];else{const i=t[10];i&&(e=i)}if(!e){for(;t&&!t[4]&&t!==n;)rr(t)&&N_(t[1],t),t=t[3];null===t&&(t=n),rr(t)&&N_(t[1],t),e=t&&t[4]}t=e}}(t)}}function N_(n,t){if(!(128&t[2])){t[2]&=-65,t[2]|=128,function IF(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!==OE(m,c,0)||2&i&&c!==h){if(fo(i))return!1;s=!0}}}}else{if(!s&&!fo(i)&&!fo(l))return!1;if(s&&fo(l))continue;s=!1,i=l|1&i}}return fo(i)||s}function fo(n){return 0==(1&n)}function BF(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&&!fo(s)&&(t+=NE(o,r),r=""),i=s,o=o||!fo(i);e++}return""!==r&&(t+=NE(o,r)),t}const Rt={};function f(n){BE(nn(),xe(),Gi()+n,!1)}function BE(n,t,e,i){if(!i)if(3==(3&t[2])){const o=n.preOrderCheckHooks;null!==o&&Oh(t,o,e)}else{const o=n.preOrderHooks;null!==o&&Ph(t,o,0,e)}Zs(e)}function UE(n,t=null,e=null,i){const r=qE(n,t,e,i);return r.resolveInjectorInitializers(),r}function qE(n,t=null,e=null,i,r=new Set){const o=[e||dn,AL(n)];return i=i||("object"==typeof n?void 0:yn(n)),new eE(o,t||Qh(),i||null,r)}let On=(()=>{class n{static create(e,i){if(Array.isArray(e))return UE({name:""},i,e,"");{const r=e.name??"";return UE({name:r},e.parent,e.providers,r)}}}return n.THROW_IF_NOT_FOUND=Eu,n.NULL=new Y0,n.\u0275prov=me({token:n,providedIn:"any",factory:()=>T(p_)}),n.__NG_ELEMENT_ID__=-1,n})();function p(n,t=yt.Default){const e=xe();return null===e?T(n,t):m0(si(),e,Et(n),t)}function Kl(){throw new Error("invalid")}function tp(n,t){return n<<17|t<<2}function mo(n){return n>>17&32767}function W_(n){return 2|n}function ps(n){return(131068&n)>>2}function $_(n,t){return-131069&n|t<<2}function K_(n){return 1|n}function sD(n,t){const e=n.contentQueries;if(null!==e)for(let i=0;i22&&BE(n,t,22,!1),e(i,r)}finally{Zs(o)}}function lD(n,t,e){if(kg(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 mD(n,t){null!==n.hostBindings&&n.hostBindings(1,t)}function gD(n,t){t.flags|=2,(n.components||(n.components=[])).push(t.index)}function LN(n,t,e){if(e){if(t.exportAs)for(let i=0;i0&&cv(e)}}function cv(n){for(let i=R_(n);null!==i;i=O_(i))for(let r=10;r0&&cv(o)}const e=n[1].components;if(null!==e)for(let i=0;i0&&cv(r)}}function UN(n,t){const e=Er(t,n),i=e[1];(function qN(n,t){for(let e=t.length;ePromise.resolve(null))();function wD(n){return n[7]||(n[7]=[])}function ED(n){return n.cleanup||(n.cleanup=[])}function DD(n,t,e){return(null===n||uo(n))&&(e=function WO(n){for(;Array.isArray(n);){if("object"==typeof n[1])return n;n=n[0]}return null}(e[t.index])),e[11]}function SD(n,t){const e=n[9],i=e?e.get(ds,null):null;i&&i.handleError(t)}function pv(n,t,e,i,r){for(let o=0;o-1&&(F_(t,i),Vh(e,i))}this._attachedToViewContainer=!1}bE(this._lView[1],this._lView)}onDestroy(t){uD(this._lView[1],this._lView,null,t)}markForCheck(){uv(this._cdRefInjectingView||this._lView)}detach(){this._lView[2]&=-65}reattach(){this._lView[2]|=64}detectChanges(){!function dv(n,t,e){const i=t[10];i.begin&&i.begin();try{Fu(n,t,n.template,e)}catch(r){throw SD(t,r),r}finally{i.end&&i.end()}}(this._lView[1],this._lView,this.context)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new Se(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null,function DF(n,t){Lu(n,t,t[11],2,null,null)}(this._lView[1],this._lView)}attachToAppRef(t){if(this._attachedToViewContainer)throw new Se(902,!1);this._appRef=t}}class WN extends Nu{constructor(t){super(t),this._view=t}detectChanges(){CD(this._view)}checkNoChanges(){}get context(){return null}}class fv extends ho{constructor(t){super(),this.ngModule=t}resolveComponentFactory(t){const e=gn(t);return new Bu(e,this.ngModule)}}function AD(n){const t=[];for(let e in n)n.hasOwnProperty(e)&&t.push({propName:n[e],templateName:e});return t}class KN{constructor(t,e){this.injector=t,this.parentInjector=e}get(t,e,i){const r=this.injector.get(t,b_,i);return r!==b_||e===b_?r:this.parentInjector.get(t,e,i)}}class Bu extends nE{constructor(t,e){super(),this.componentDef=t,this.ngModule=e,this.componentType=t.type,this.selector=function zF(n){return n.map(qF).join(",")}(t.selectors),this.ngContentSelectors=t.ngContentSelectors?t.ngContentSelectors:[],this.isBoundToModule=!!e}get inputs(){return AD(this.componentDef.inputs)}get outputs(){return AD(this.componentDef.outputs)}create(t,e,i,r){let o=(r=r||this.ngModule)instanceof La?r:r?.injector;o&&null!==this.componentDef.getStandaloneInjector&&(o=this.componentDef.getStandaloneInjector(o)||o);const s=o?new KN(t,o):t,a=s.get(Ru,null);if(null===a)throw new Se(407,!1);const l=s.get(UL,null),c=a.createRenderer(null,this.componentDef),u=this.componentDef.selectors[0][0]||"div",d=i?function SN(n,t,e){return n.selectRootElement(t,e===ao.ShadowDom)}(c,i,this.componentDef.encapsulation):L_(a.createRenderer(null,this.componentDef),u,function $N(n){const t=n.toLowerCase();return"svg"===t?"svg":"math"===t?"math":null}(u)),h=this.componentDef.onPush?288:272,m=function JN(n,t){return{components:[],scheduler:n||hF,clean:GN,playerHandler:t||null,flags:0}}(),y=sv(0,null,null,1,0,null,null,null,null,null),S=rp(null,y,m,h,null,null,a,c,l,s,null);let U,ee;zg(S);try{const ve=function XN(n,t,e,i,r,o){const s=e[1];e[22]=n;const l=Yl(s,22,2,"#host",null),c=l.mergedAttrs=t.hostAttrs;null!==c&&(ap(l,c,!0),null!==n&&(Lh(r,n,c),null!==l.classes&&V_(r,n,l.classes),null!==l.styles&&RE(r,n,l.styles)));const u=i.createRenderer(n,t),d=rp(e,cD(t),null,t.onPush?32:16,e[22],l,i,u,o||null,null,null);return s.firstCreatePass&&(jh(vu(l,e),s,t.type),gD(s,l),_D(l,e.length,1)),sp(e,d),e[22]=d}(d,this.componentDef,S,a,c);if(d)if(i)Lh(c,d,["ng-version",rE.full]);else{const{attrs:ne,classes:Ie}=function GF(n){const t=[],e=[];let i=1,r=2;for(;i0&&V_(c,d,Ie.join(" "))}if(ee=Fg(y,22),void 0!==e){const ne=ee.projection=[];for(let Ie=0;Ie=0;i--){const r=n[i];r.hostVars=t+=r.hostVars,r.hostAttrs=Fh(r.hostAttrs,e=Fh(e,r.hostAttrs))}}(i)}function mv(n){return n===Dl?{}:n===dn?[]:n}function n3(n,t){const e=n.viewQuery;n.viewQuery=e?(i,r)=>{t(i,r),e(i,r)}:t}function r3(n,t){const e=n.contentQueries;n.contentQueries=e?(i,r,o)=>{t(i,r,o),e(i,r,o)}:t}function o3(n,t){const e=n.hostBindings;n.hostBindings=e?(i,r)=>{t(i,r),e(i,r)}:t}let cp=null;function Ba(){if(!cp){const n=_n.Symbol;if(n&&n.iterator)cp=n.iterator;else{const t=Object.getOwnPropertyNames(Map.prototype);for(let e=0;ea(Jn(tt[i.index])):i.index;let Ie=null;if(!a&&l&&(Ie=function v3(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!==Ie)(Ie.__ngLastListenerFn__||Ie).__ngNextListenerFn__=o,Ie.__ngLastListenerFn__=o,m=!1;else{o=HD(i,t,d,o,!1);const tt=e.listen(ee,r,o);h.push(o,tt),u&&u.push(r,ne,ve,ve+1)}}else o=HD(i,t,d,o,!1);const y=i.outputs;let S;if(m&&null!==y&&(S=y[r])){const U=S.length;if(U)for(let ee=0;ee0;)t=t[15],n--;return t}(n,xt.lFrame.contextLView))[8]}(n)}function y3(n,t){let e=null;const i=function jF(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 li={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function QD(n){return n.substring(li.key,li.keyEnd)}function XD(n,t){const e=li.textEnd;return e===t?-1:(t=li.keyEnd=function A3(n,t,e){for(;t32;)t++;return t}(n,li.key=t,e),sc(n,t,e))}function sc(n,t,e){for(;t=0;e=XD(t,e))Sr(n,QD(t),!0)}function go(n,t,e,i){const r=xe(),o=nn(),s=ls(2);o.firstUpdatePass&&iS(o,n,s,i),t!==Rt&&Ri(r,s,t)&&oS(o,o.data[Gi()],r,r[11],n,r[s+1]=function F3(n,t){return null==n||("string"==typeof t?n+=t:"object"==typeof n&&(n=yn(Ar(n)))),n}(t,e),i,s)}function _o(n,t,e,i){const r=nn(),o=ls(2);r.firstUpdatePass&&iS(r,null,o,i);const s=xe();if(e!==Rt&&Ri(s,o,e)){const a=r.data[Gi()];if(aS(a,i)&&!nS(r,o)){let l=i?a.classesWithoutHost:a.stylesWithoutHost;null!==l&&(e=wg(l,e||"")),_v(r,a,s,e,i)}else!function L3(n,t,e,i,r,o,s,a){r===Rt&&(r=dn);let l=0,c=0,u=0=n.expandoStartIndex}function iS(n,t,e,i){const r=n.data;if(null===r[e+1]){const o=r[Gi()],s=nS(n,e);aS(o,i)&&null===t&&!s&&(t=!1),t=function M3(n,t,e,i){const r=Ug(n);let o=i?t.residualClasses:t.residualStyles;if(null===r)0===(i?t.classBindings:t.styleBindings)&&(e=Uu(e=bv(null,n,t,e,i),t.attrs,i),o=null);else{const s=t.directiveStylingLast;if(-1===s||n[s]!==r)if(e=bv(r,n,t,e,i),null===o){let l=function k3(n,t,e){const i=e?t.classBindings:t.styleBindings;if(0!==ps(i))return n[mo(i)]}(n,t,i);void 0!==l&&Array.isArray(l)&&(l=bv(null,n,t,l[1],i),l=Uu(l,t.attrs,i),function R3(n,t,e,i){n[mo(e?t.classBindings:t.styleBindings)]=i}(n,t,i,l))}else o=function O3(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=mo(n[a+1]);n[i+1]=tp(h,a),0!==h&&(n[h+1]=$_(n[h+1],i)),n[a+1]=function uN(n,t){return 131071&n|t<<17}(n[a+1],i)}else n[i+1]=tp(a,0),0!==a&&(n[a+1]=$_(n[a+1],i)),a=i;else n[i+1]=tp(l,0),0===a?a=i:n[l+1]=$_(n[l+1],i),l=i;c&&(n[i+1]=W_(n[i+1])),YD(n,u,i,!0),YD(n,u,i,!1),function C3(n,t,e,i,r){const o=r?n.residualClasses:n.residualStyles;null!=o&&"string"==typeof t&&jl(o,t)>=0&&(e[i+1]=K_(e[i+1]))}(t,u,n,i,o),s=tp(a,l),o?t.classBindings=s:t.styleBindings=s}(r,o,t,e,s,i)}}function bv(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?dn:void 0);let m=d?e_(h,i):u===i?h:void 0;if(c&&!hp(m)&&(m=e_(l,i)),hp(m)&&(a=m,s))return a;const y=n[r+1];r=s?mo(y):ps(y)}if(null!==t){let l=o?t.residualClasses:t.residualStyles;null!=l&&(a=e_(l,i))}return a}function hp(n){return void 0!==n}function aS(n,t){return 0!=(n.flags&(t?16:32))}function j(n,t=""){const e=xe(),i=nn(),r=n+22,o=i.firstCreatePass?Yl(i,r,1,t,null):i.data[r],s=e[r]=function P_(n,t){return n.createText(t)}(e[11],t);Zh(i,e,s,o),Ro(o,!1)}function we(n){return qe("",n,""),we}function qe(n,t,e){const i=xe(),r=Zl(i,n,t,e);return r!==Rt&&fs(i,Gi(),r),qe}function vo(n,t,e,i,r){const o=xe(),s=Jl(o,n,t,e,i,r);return s!==Rt&&fs(o,Gi(),s),vo}function Ho(n,t,e){const i=xe();return Ri(i,Ml(),t)&&Tr(nn(),Vn(),i,n,t,i[11],e,!0),Ho}function qu(n,t,e){const i=xe();if(Ri(i,Ml(),t)){const o=nn(),s=Vn();Tr(o,s,i,n,t,DD(Ug(o.data),s,i),e,!0)}return qu}const Ha=void 0;var tB=["en",[["a","p"],["AM","PM"],Ha],[["AM","PM"],Ha,Ha],[["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"]],Ha,[["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"]],Ha,[["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}",Ha,"{1} 'at' {0}",Ha],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",function eB(n){const e=Math.floor(Math.abs(n)),i=n.toString().replace(/^[^.]*\.?/,"").length;return 1===e&&0===i?1:5}];let ac={};function $i(n){const t=function nB(n){return n.toLowerCase().replace(/_/g,"-")}(n);let e=AS(t);if(e)return e;const i=t.split("-")[0];if(e=AS(i),e)return e;if("en"===i)return tB;throw new Se(701,!1)}function AS(n){return n in ac||(ac[n]=_n.ng&&_n.ng.common&&_n.ng.common.locales&&_n.ng.common.locales[n]),ac[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 lc="en-US";let TS=lc;function Ev(n,t,e,i,r){if(n=Et(n),Array.isArray(n))for(let o=0;o>20;if(Pa(n)||!n.multi){const m=new gu(l,r,p),y=Sv(a,t,r?u:u+h,d);-1===y?(jh(vu(c,s),o,a),Dv(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=Sv(a,t,u+h,d),y=Sv(a,t,u,u+h),S=m>=0&&e[m],U=y>=0&&e[y];if(r&&!U||!r&&!S){jh(vu(c,s),o,a);const ee=function JB(n,t,e,i,r){const o=new gu(n,e,p);return o.multi=[],o.index=t,o.componentProviders=0,ZS(o,r,i&&!e),o}(r?ZB:XB,e.length,r,i,l);!r&&U&&(e[y].providerFactory=ee),Dv(o,n,t.length,0),t.push(a),c.directiveStart++,c.directiveEnd++,r&&(c.providerIndexes+=1048576),e.push(ee),s.push(ee)}else Dv(o,n,m>-1?m:y,ZS(e[r?y:m],l,!r&&i));!r&&i&&U&&e[y].componentProviders++}}}function Dv(n,t,e,i){const r=Pa(t),o=function xL(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 ZS(n,t,e){return e&&n.componentProviders++,n.multi.push(t)-1}function Sv(n,t,e,i){for(let r=e;r{e.providersResolver=(i,r)=>function QB(n,t,e){const i=nn();if(i.firstCreatePass){const r=uo(n);Ev(e,i.data,i.blueprint,r,!0),Ev(t,i.data,i.blueprint,r,!1)}}(i,r?r(n):n,t)}}class Va{}class JS{}class eA extends Va{constructor(t,e){super(),this._parent=e,this._bootstrapComponents=[],this.destroyCbs=[],this.componentFactoryResolver=new fv(this);const i=Cr(t);this._bootstrapComponents=hs(i.bootstrap),this._r3Injector=qE(t,e,[{provide:Va,useValue:this},{provide:ho,useValue:this.componentFactoryResolver}],yn(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 Tv extends JS{constructor(t){super(),this.moduleType=t}create(t){return new eA(this.moduleType,t)}}class t5 extends Va{constructor(t,e,i){super(),this.componentFactoryResolver=new fv(this),this.instance=null;const r=new eE([...t,{provide:Va,useValue:this},{provide:ho,useValue:this.componentFactoryResolver}],e||Qh(),i,new Set(["environment"]));this.injector=r,r.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(t){this.injector.onDestroy(t)}}function Mv(n,t,e){const i=zi()+n,r=xe();return r[i]===Rt?No(r,i,e?t.call(e):t()):function Hu(n,t){return n[t]}(r,i)}function $n(n,t,e,i){return lA(xe(),zi(),n,t,e,i)}function aA(n,t,e,i,r){return function cA(n,t,e,i,r,o,s){const a=t+e;return ja(n,a,r,o)?No(n,a+2,s?i.call(s,r,o):i(r,o)):Ku(n,a+2)}(xe(),zi(),n,t,e,i,r)}function Ki(n,t,e,i,r,o,s){return function dA(n,t,e,i,r,o,s,a,l){const c=t+e;return function Vr(n,t,e,i,r,o){const s=ja(n,t,e,i);return ja(n,t+2,r,o)||s}(n,c,r,o,s,a)?No(n,c+4,l?i.call(l,r,o,s,a):i(r,o,s,a)):Ku(n,c+4)}(xe(),zi(),n,t,e,i,r,o,s)}function Ku(n,t){const e=n[t];return e===Rt?void 0:e}function lA(n,t,e,i,r,o){const s=t+e;return Ri(n,s,r)?No(n,s+1,o?i.call(o,r):i(r)):Ku(n,s+1)}function Ze(n,t){const e=nn();let i;const r=n+22;e.firstCreatePass?(i=function y5(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=ka(i.type)),s=Fr(p);try{const a=Nh(!1),l=o();return Nh(a),function m3(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 Je(n,t,e){const i=n+22,r=xe(),o=Il(r,i);return function Yu(n,t){return n[1].data[t].pure}(r,i)?lA(r,zi(),t,o.transform,e,o):o.transform(e)}function kv(n){return t=>{setTimeout(n,void 0,t)}}const He=class D5 extends L{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=kv(o),r&&(r=kv(r)),s&&(s=kv(s)));const a=super.subscribe({next:r,error:o,complete:s});return t instanceof E&&t.add(a),a}};function S5(){return this._results[Ba()]()}class Ua{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=Ba(),i=Ua.prototype;i[e]||(i[e]=S5)}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=Dr(t);(this._changesDetected=!function SP(n,t,e){if(n.length!==t.length)return!1;for(let i=0;i{class n{}return n.__NG_ELEMENT_ID__=x5,n})();const A5=bn,T5=class extends A5{constructor(t,e,i){super(),this._declarationLView=t,this._declarationTContainer=e,this.elementRef=i}createEmbeddedView(t,e){const i=this._declarationTContainer.tViews,r=rp(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)),op(i,r,t),new Nu(r)}};function x5(){return _p(si(),xe())}function _p(n,t){return 4&n.type?new T5(t,n,zl(n,t)):null}let En=(()=>{class n{}return n.__NG_ELEMENT_ID__=I5,n})();function I5(){return mA(si(),xe())}const M5=En,pA=class extends M5{constructor(t,e,i){super(),this._lContainer=t,this._hostTNode=e,this._hostLView=i}get element(){return zl(this._hostTNode,this._hostLView)}get injector(){return new Pl(this._hostTNode,this._hostLView)}get parentInjector(){const t=Bh(this._hostTNode,this._hostLView);if(u0(t)){const e=Ol(t,this._hostLView),i=Rl(t);return new Pl(e[1].data[i+8],e)}return new Pl(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(t){const e=fA(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(gn(t)),c=i||this.parentInjector;if(!o&&null==l.ngModule){const h=(s?c:this.parentInjector).get(La,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 KO(n){return co(n[3])}(i)){const u=this.indexOf(t);if(-1!==u)this.detach(u);else{const d=i[3],h=new pA(d,d[6],d[3]);h.detach(h.indexOf(t))}}const o=this._adjustIndex(e),s=this._lContainer;!function AF(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=yp,this.reject=yp,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)(T(jA,8))},n.\u0275prov=me({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const pc=new ge("AppId",{providedIn:"root",factory:function HA(){return`${Uv()}${Uv()}${Uv()}`}});function Uv(){return String.fromCharCode(97+Math.floor(25*Math.random()))}const VA=new ge("Platform Initializer"),Cp=new ge("Platform ID",{providedIn:"platform",factory:()=>"unknown"}),o4=new ge("appBootstrapListener"),qn=new ge("AnimationModuleType");let s4=(()=>{class n{log(e){console.log(e)}warn(e){console.warn(e)}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=me({token:n,factory:n.\u0275fac,providedIn:"platform"}),n})();const Vo=new ge("LocaleId",{providedIn:"root",factory:()=>Ra(Vo,yt.Optional|yt.SkipSelf)||function a4(){return typeof $localize<"u"&&$localize.locale||lc}()});class c4{constructor(t,e){this.ngModuleFactory=t,this.componentFactories=e}}let UA=(()=>{class n{compileModuleSync(e){return new Tv(e)}compileModuleAsync(e){return Promise.resolve(this.compileModuleSync(e))}compileModuleAndAllComponentsSync(e){const i=this.compileModuleSync(e),o=hs(Cr(e).declarations).reduce((s,a)=>{const l=gn(a);return l&&s.push(new Bu(l)),s},[]);return new c4(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=me({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const h4=(()=>Promise.resolve(0))();function qv(n){typeof Zone>"u"?h4.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 Se(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 p4(){let n=_n.requestAnimationFrame,t=_n.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 g4(n){const t=()=>{!function m4(n){n.isCheckStableRunning||-1!==n.lastRequestAnimationFrameId||(n.lastRequestAnimationFrameId=n.nativeRequestAnimationFrame.call(_n,()=>{n.fakeTopEventTask||(n.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{n.lastRequestAnimationFrameId=-1,Gv(n),n.isCheckStableRunning=!0,zv(n),n.isCheckStableRunning=!1},void 0,()=>{},()=>{})),n.fakeTopEventTask.invoke()}),Gv(n))}(n)};n._inner=n._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(e,i,r,o,s,a)=>{try{return GA(n),e.invokeTask(r,o,s,a)}finally{(n.shouldCoalesceEventChangeDetection&&"eventTask"===o.type||n.shouldCoalesceRunChangeDetection)&&t(),WA(n)}},onInvoke:(e,i,r,o,s,a,l)=>{try{return GA(n),e.invoke(r,o,s,a,l)}finally{n.shouldCoalesceRunChangeDetection&&t(),WA(n)}},onHasTask:(e,i,r,o)=>{e.hasTask(r,o),i===r&&("microTask"==o.change?(n._hasPendingMicrotasks=o.microTask,Gv(n),zv(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 Se(909,!1)}static assertNotInAngularZone(){if(et.isInAngularZone())throw new Se(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,f4,yp,yp);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 f4={};function zv(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 Gv(n){n.hasPendingMicrotasks=!!(n._hasPendingMicrotasks||(n.shouldCoalesceEventChangeDetection||n.shouldCoalesceRunChangeDetection)&&-1!==n.lastRequestAnimationFrameId)}function GA(n){n._nesting++,n.isStable&&(n.isStable=!1,n.onUnstable.emit(null))}function WA(n){n._nesting--,zv(n)}class _4{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 $A=new ge(""),wp=new ge("");let Kv,Wv=(()=>{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,Kv||(function v4(n){Kv=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(),qv(()=>{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())qv(()=>{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)(T(et),T($v),T(wp))},n.\u0275prov=me({token:n,factory:n.\u0275fac}),n})(),$v=(()=>{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 Kv?.findTestabilityInTree(this,e,i)??null}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=me({token:n,factory:n.\u0275fac,providedIn:"platform"}),n})(),na=null;const KA=new ge("AllowMultipleToken"),Yv=new ge("PlatformDestroyListeners");function QA(n,t,e=[]){const i=`Platform: ${t}`,r=new ge(i);return(o=[])=>{let s=Qv();if(!s||s.injector.get(KA,!1)){const a=[...e,...o,{provide:r,useValue:!0}];n?n(a):function C4(n){if(na&&!na.get(KA,!1))throw new Se(400,!1);na=n;const t=n.get(ZA);(function YA(n){const t=n.get(VA,null);t&&t.forEach(e=>e())})(n)}(function XA(n=[],t){return On.create({name:t,providers:[{provide:g_,useValue:"platform"},{provide:Yv,useValue:new Set([()=>na=null])},...n]})}(a,i))}return function E4(n){const t=Qv();if(!t)throw new Se(401,!1);return t}()}}function Qv(){return na?.get(ZA)??null}let ZA=(()=>{class n{constructor(e){this._injector=e,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(e,i){const r=function D4(n,t){let e;return e="noop"===n?new _4:("zone.js"===n?void 0:n)||new et(t),e}(i?.ngZone,function JA(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=On.create({providers:o,parent:this.injector,name:e.moduleType.name}),a=e.create(s),l=a.injector.get(ds,null);if(!l)throw new Se(402,!1);return r.runOutsideAngular(()=>{const c=r.onError.subscribe({next:u=>{l.handleError(u)}});a.onDestroy(()=>{Ep(this._modules,a),c.unsubscribe()})}),function eT(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(bp);return c.runInitializers(),c.donePromise.then(()=>(function xS(n){br(n,"Expected localeId to be defined"),"string"==typeof n&&(TS=n.toLowerCase().replace(/_/g,"-"))}(a.injector.get(Vo,lc)||lc),this._moduleDoBootstrap(a),a))})})}bootstrapModule(e,i=[]){const r=tT({},i);return function y4(n,t,e){const i=new Tv(e);return Promise.resolve(i)}(0,0,e).then(o=>this.bootstrapModuleFactory(o,r))}_moduleDoBootstrap(e){const i=e.injector.get(ia);if(e._bootstrapComponents.length>0)e._bootstrapComponents.forEach(r=>i.bootstrap(r));else{if(!e.instance.ngDoBootstrap)throw new Se(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 Se(404,!1);this._modules.slice().forEach(i=>i.destroy()),this._destroyListeners.forEach(i=>i());const e=this._injector.get(Yv,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)(T(On))},n.\u0275prov=me({token:n,factory:n.\u0275fac,providedIn:"platform"}),n})();function tT(n,t){return Array.isArray(t)?t.reduce(tT,n):{...n,...t}}let ia=(()=>{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(),qv(()=>{!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=Mn(o,s.pipe(Mw()))}get destroyed(){return this._destroyed}get injector(){return this._injector}bootstrap(e,i){const r=e instanceof nE;if(!this._injector.get(bp).done)throw!r&&function dc(n){const t=gn(n)||Ui(n)||qi(n);return null!==t&&t.standalone}(e),new Se(405,false);let s;s=r?e:this._injector.get(ho).resolveComponentFactory(e),this.componentTypes.push(s.componentType);const a=function b4(n){return n.isBoundToModule}(s)?void 0:this._injector.get(Va),c=s.create(On.NULL,[],i||s.selector,a),u=c.location.nativeElement,d=c.injector.get($A,null);return d?.registerApplication(u),c.onDestroy(()=>{this.detachView(c.hostView),Ep(this.components,c),d?.unregisterApplication(u)}),this._loadComponent(c),c}tick(){if(this._runningTick)throw new Se(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;Ep(this._views,i),i.detachFromAppRef()}_loadComponent(e){this.attachView(e.hostView),this.tick(),this.components.push(e),this._injector.get(o4,[]).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),()=>Ep(this._destroyListeners,e)}destroy(){if(this._destroyed)throw new Se(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)(T(et),T(La),T(ds))},n.\u0275prov=me({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();function Ep(n,t){const e=n.indexOf(t);e>-1&&n.splice(e,1)}let iT=!0,It=(()=>{class n{}return n.__NG_ELEMENT_ID__=T4,n})();function T4(n){return function x4(n,t,e){if(xh(n)&&!e){const i=Er(n.index,t);return new Nu(i,i)}return 47&n.type?new Nu(t[16],t):null}(si(),xe(),16==(16&n))}class lT{constructor(){}supports(t){return ju(t)}create(t){return new P4(t)}}const O4=(n,t)=>t;class P4{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||O4}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 L4(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 cT),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 cT),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 L4{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 F4{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 cT{constructor(){this.map=new Map}put(t){const e=t.trackById;let i=this.map.get(e);i||(i=new F4,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 uT(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 B4(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 B4{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 hT(){return new gs([new lT])}let gs=(()=>{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||hT()),deps:[[n,new Au,new us]]}}find(e){const i=this.factories.find(r=>r.supports(e));if(null!=i)return i;throw new Se(901,!1)}}return n.\u0275prov=me({token:n,providedIn:"root",factory:hT}),n})();function pT(){return new Xu([new dT])}let Xu=(()=>{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||pT()),deps:[[n,new Au,new us]]}}find(e){const i=this.factories.find(r=>r.supports(e));if(i)return i;throw new Se(901,!1)}}return n.\u0275prov=me({token:n,providedIn:"root",factory:pT}),n})();const V4=QA(null,"core",[]);let U4=(()=>{class n{constructor(e){}}return n.\u0275fac=function(e){return new(e||n)(T(ia))},n.\u0275mod=dt({type:n}),n.\u0275inj=ct({}),n})();let Ap=null;function Uo(){return Ap}const pt=new ge("DocumentToken");let ty=(()=>{class n{historyGo(e){throw new Error("Not implemented")}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=me({token:n,factory:function(){return function W4(){return T(fT)}()},providedIn:"platform"}),n})(),fT=(()=>{class n extends ty{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){mT()?this._history.pushState(e,i,r):this.location.hash=r}replaceState(e,i,r){mT()?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)(T(pt))},n.\u0275prov=me({token:n,factory:function(){return function $4(){return new fT(T(pt))}()},providedIn:"platform"}),n})();function mT(){return!!window.history.pushState}function gT(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 _T(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 za(n){return n&&"?"!==n[0]?"?"+n:n}let Tp=(()=>{class n{historyGo(e){throw new Error("Not implemented")}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=me({token:n,factory:function(){return function K4(){const n=T(pt).location;return new Q4(T(ty),n&&n.origin||"")}()},providedIn:"root"}),n})();const Y4=new ge("appBaseHref");let Q4=(()=>{class n extends Tp{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 gT(this._baseHref,e)}path(e=!1){const i=this._platformLocation.pathname+za(this._platformLocation.search),r=this._platformLocation.hash;return r&&e?`${i}${r}`:i}pushState(e,i,r,o){const s=this.prepareExternalUrl(r+za(o));this._platformLocation.pushState(e,i,s)}replaceState(e,i,r,o){const s=this.prepareExternalUrl(r+za(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)(T(ty),T(Y4,8))},n.\u0275prov=me({token:n,factory:n.\u0275fac}),n})(),Ga=(()=>{class n{constructor(e){this._subject=new He,this._urlChangeListeners=[],this._urlChangeSubscription=null,this._locationStrategy=e;const i=this._locationStrategy.getBaseHref();this._baseHref=_T(vT(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+za(i))}normalize(e){return n.stripTrailingSlash(function Z4(n,t){return n&&t.startsWith(n)?t.substring(n.length):t}(this._baseHref,vT(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+za(i)),r)}replaceState(e,i="",r=null){this._locationStrategy.replaceState(r,"",e,i),this._notifyUrlChangeListeners(this.prepareExternalUrl(e+za(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=za,n.joinWithSlash=gT,n.stripTrailingSlash=_T,n.\u0275fac=function(e){return new(e||n)(T(Tp))},n.\u0275prov=me({token:n,factory:function(){return function X4(){return new Ga(T(Tp))}()},providedIn:"root"}),n})();function vT(n){return n.replace(/\/index.html$/,"")}var Kn=(()=>((Kn=Kn||{})[Kn.Format=0]="Format",Kn[Kn.Standalone=1]="Standalone",Kn))(),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 xp(n,t){return qr($i(n)[Qe.DateFormat],t)}function Ip(n,t){return qr($i(n)[Qe.TimeFormat],t)}function Mp(n,t){return qr($i(n)[Qe.DateTimeFormat],t)}function Ur(n,t){const e=$i(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 bT(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 qr(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 iy(n){const[t,e]=n.split(":");return{hours:+t,minutes:+e}}const dj=/^(\d{4,})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/,Zu={},hj=/((?:[^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 ci=(()=>((ci=ci||{})[ci.Short=0]="Short",ci[ci.ShortGMT=1]="ShortGMT",ci[ci.Long=2]="Long",ci[ci.Extended=3]="Extended",ci))(),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))(),Vt=(()=>((Vt=Vt||{})[Vt.DayPeriods=0]="DayPeriods",Vt[Vt.Days=1]="Days",Vt[Vt.Months=2]="Months",Vt[Vt.Eras=3]="Eras",Vt))();function CT(n,t,e,i){let r=function Cj(n){if(DT(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 kp(r,o-1,s)}const e=parseFloat(n);if(!isNaN(n-e))return new Date(e);let i;if(i=n.match(dj))return function wj(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(!DT(t))throw new Error(`Unable to convert "${n}" into a date`);return t}(n);t=vs(e,t)||t;let a,s=[];for(;t;){if(a=hj.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=ET(i,l),r=function bj(n,t,e){const i=e?-1:1,r=n.getTimezoneOffset();return function yj(n,t){return(n=new Date(n.getTime())).setMinutes(n.getMinutes()+t),n}(n,i*(ET(t,r)-r))}(r,i,!0));let c="";return s.forEach(u=>{const d=function vj(n){if(oy[n])return oy[n];let t;switch(n){case"G":case"GG":case"GGG":t=Sn(Vt.Eras,Qt.Abbreviated);break;case"GGGG":t=Sn(Vt.Eras,Qt.Wide);break;case"GGGGG":t=Sn(Vt.Eras,Qt.Narrow);break;case"y":t=ti(Ct.FullYear,1,0,!1,!0);break;case"yy":t=ti(Ct.FullYear,2,0,!0,!0);break;case"yyy":t=ti(Ct.FullYear,3,0,!1,!0);break;case"yyyy":t=ti(Ct.FullYear,4,0,!1,!0);break;case"Y":t=Lp(1);break;case"YY":t=Lp(2,!0);break;case"YYY":t=Lp(3);break;case"YYYY":t=Lp(4);break;case"M":case"L":t=ti(Ct.Month,1,1);break;case"MM":case"LL":t=ti(Ct.Month,2,1);break;case"MMM":t=Sn(Vt.Months,Qt.Abbreviated);break;case"MMMM":t=Sn(Vt.Months,Qt.Wide);break;case"MMMMM":t=Sn(Vt.Months,Qt.Narrow);break;case"LLL":t=Sn(Vt.Months,Qt.Abbreviated,Kn.Standalone);break;case"LLLL":t=Sn(Vt.Months,Qt.Wide,Kn.Standalone);break;case"LLLLL":t=Sn(Vt.Months,Qt.Narrow,Kn.Standalone);break;case"w":t=ry(1);break;case"ww":t=ry(2);break;case"W":t=ry(1,!0);break;case"d":t=ti(Ct.Date,1);break;case"dd":t=ti(Ct.Date,2);break;case"c":case"cc":t=ti(Ct.Day,1);break;case"ccc":t=Sn(Vt.Days,Qt.Abbreviated,Kn.Standalone);break;case"cccc":t=Sn(Vt.Days,Qt.Wide,Kn.Standalone);break;case"ccccc":t=Sn(Vt.Days,Qt.Narrow,Kn.Standalone);break;case"cccccc":t=Sn(Vt.Days,Qt.Short,Kn.Standalone);break;case"E":case"EE":case"EEE":t=Sn(Vt.Days,Qt.Abbreviated);break;case"EEEE":t=Sn(Vt.Days,Qt.Wide);break;case"EEEEE":t=Sn(Vt.Days,Qt.Narrow);break;case"EEEEEE":t=Sn(Vt.Days,Qt.Short);break;case"a":case"aa":case"aaa":t=Sn(Vt.DayPeriods,Qt.Abbreviated);break;case"aaaa":t=Sn(Vt.DayPeriods,Qt.Wide);break;case"aaaaa":t=Sn(Vt.DayPeriods,Qt.Narrow);break;case"b":case"bb":case"bbb":t=Sn(Vt.DayPeriods,Qt.Abbreviated,Kn.Standalone,!0);break;case"bbbb":t=Sn(Vt.DayPeriods,Qt.Wide,Kn.Standalone,!0);break;case"bbbbb":t=Sn(Vt.DayPeriods,Qt.Narrow,Kn.Standalone,!0);break;case"B":case"BB":case"BBB":t=Sn(Vt.DayPeriods,Qt.Abbreviated,Kn.Format,!0);break;case"BBBB":t=Sn(Vt.DayPeriods,Qt.Wide,Kn.Format,!0);break;case"BBBBB":t=Sn(Vt.DayPeriods,Qt.Narrow,Kn.Format,!0);break;case"h":t=ti(Ct.Hours,1,-12);break;case"hh":t=ti(Ct.Hours,2,-12);break;case"H":t=ti(Ct.Hours,1);break;case"HH":t=ti(Ct.Hours,2);break;case"m":t=ti(Ct.Minutes,1);break;case"mm":t=ti(Ct.Minutes,2);break;case"s":t=ti(Ct.Seconds,1);break;case"ss":t=ti(Ct.Seconds,2);break;case"S":t=ti(Ct.FractionalSeconds,1);break;case"SS":t=ti(Ct.FractionalSeconds,2);break;case"SSS":t=ti(Ct.FractionalSeconds,3);break;case"Z":case"ZZ":case"ZZZ":t=Op(ci.Short);break;case"ZZZZZ":t=Op(ci.Extended);break;case"O":case"OO":case"OOO":case"z":case"zz":case"zzz":t=Op(ci.ShortGMT);break;case"OOOO":case"ZZZZ":case"zzzz":t=Op(ci.Long);break;default:return null}return oy[n]=t,t}(u);c+=d?d(r,e,l):"''"===u?"'":u.replace(/(^'|'$)/g,"").replace(/''/g,"'")}),c}function kp(n,t,e){const i=new Date(0);return i.setFullYear(n,t,e),i.setHours(0,0,0),i}function vs(n,t){const e=function J4(n){return $i(n)[Qe.LocaleId]}(n);if(Zu[e]=Zu[e]||{},Zu[e][t])return Zu[e][t];let i="";switch(t){case"shortDate":i=xp(n,Ln.Short);break;case"mediumDate":i=xp(n,Ln.Medium);break;case"longDate":i=xp(n,Ln.Long);break;case"fullDate":i=xp(n,Ln.Full);break;case"shortTime":i=Ip(n,Ln.Short);break;case"mediumTime":i=Ip(n,Ln.Medium);break;case"longTime":i=Ip(n,Ln.Long);break;case"fullTime":i=Ip(n,Ln.Full);break;case"short":const r=vs(n,"shortTime"),o=vs(n,"shortDate");i=Rp(Mp(n,Ln.Short),[r,o]);break;case"medium":const s=vs(n,"mediumTime"),a=vs(n,"mediumDate");i=Rp(Mp(n,Ln.Medium),[s,a]);break;case"long":const l=vs(n,"longTime"),c=vs(n,"longDate");i=Rp(Mp(n,Ln.Long),[l,c]);break;case"full":const u=vs(n,"fullTime"),d=vs(n,"fullDate");i=Rp(Mp(n,Ln.Full),[u,d])}return i&&(Zu[e][t]=i),i}function Rp(n,t){return t&&(n=n.replace(/\{([^}]+)}/g,function(e,i){return null!=t&&i in t?t[i]:e})),n}function bo(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 pj(n,t){return bo(n,3).substring(0,t)}(a,t);const l=Ur(s,mt.MinusSign);return bo(a,t,l,i,r)}}function Sn(n,t,e=Kn.Format,i=!1){return function(r,o){return function mj(n,t,e,i,r,o){switch(e){case Vt.Months:return function nj(n,t,e){const i=$i(n),o=qr([i[Qe.MonthsFormat],i[Qe.MonthsStandalone]],t);return qr(o,e)}(t,r,i)[n.getMonth()];case Vt.Days:return function tj(n,t,e){const i=$i(n),o=qr([i[Qe.DaysFormat],i[Qe.DaysStandalone]],t);return qr(o,e)}(t,r,i)[n.getDay()];case Vt.DayPeriods:const s=n.getHours(),a=n.getMinutes();if(o){const c=function sj(n){const t=$i(n);return bT(t),(t[Qe.ExtraData][2]||[]).map(i=>"string"==typeof i?iy(i):[iy(i[0]),iy(i[1])])}(t),u=function aj(n,t,e){const i=$i(n);bT(i);const o=qr([i[Qe.ExtraData][0],i[Qe.ExtraData][1]],t)||[];return qr(o,e)||[]}(t,r,i),d=c.findIndex(h=>{if(Array.isArray(h)){const[m,y]=h,S=s>=m.hours&&a>=m.minutes,U=s0?Math.floor(r/60):Math.ceil(r/60);switch(n){case ci.Short:return(r>=0?"+":"")+bo(s,2,o)+bo(Math.abs(r%60),2,o);case ci.ShortGMT:return"GMT"+(r>=0?"+":"")+bo(s,1,o);case ci.Long:return"GMT"+(r>=0?"+":"")+bo(s,2,o)+":"+bo(Math.abs(r%60),2,o);case ci.Extended:return 0===i?"Z":(r>=0?"+":"")+bo(s,2,o)+":"+bo(Math.abs(r%60),2,o);default:throw new Error(`Unknown zone width "${n}"`)}}}function wT(n){return kp(n.getFullYear(),n.getMonth(),n.getDate()+(4-n.getDay()))}function ry(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=wT(e),s=function _j(n){const t=kp(n,0,1).getDay();return kp(n,0,1+(t<=4?4:11)-t)}(o.getFullYear()),a=o.getTime()-s.getTime();r=1+Math.round(a/6048e5)}return bo(r,n,Ur(i,mt.MinusSign))}}function Lp(n,t=!1){return function(e,i){return bo(wT(e).getFullYear(),n,Ur(i,mt.MinusSign),t)}}const oy={};function ET(n,t){n=n.replace(/:/g,"");const e=Date.parse("Jan 01, 1970 00:00:00 "+n)/6e4;return isNaN(e)?t:e}function DT(n){return n instanceof Date&&!isNaN(n.valueOf())}function xT(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 Wa=(()=>{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 ${yn(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(gs),p(Xu),p(Xe),p(po))},n.\u0275dir=fe({type:n,selectors:[["","ngClass",""]],inputs:{klass:["class","klass"],ngClass:"ngClass"},standalone:!0}),n})();class Lj{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 Yn=(()=>{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 Lj(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),kT(a,r)}});for(let r=0,o=i.length;r{kT(i.get(r.currentIndex),r)})}static ngTemplateContextGuard(e,i){return!0}}return n.\u0275fac=function(e){return new(e||n)(p(En),p(bn),p(gs))},n.\u0275dir=fe({type:n,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"},standalone:!0}),n})();function kT(n,t){n.context.$implicit=t.item}let hn=(()=>{class n{constructor(e,i){this._viewContainer=e,this._context=new Nj,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){RT("ngIfThen",e),this._thenTemplateRef=e,this._thenViewRef=null,this._updateView()}set ngIfElse(e){RT("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(En),p(bn))},n.\u0275dir=fe({type:n,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"},standalone:!0}),n})();class Nj{constructor(){this.$implicit=null,this.ngIf=null}}function RT(n,t){if(t&&!t.createEmbeddedView)throw new Error(`${n} must be a TemplateRef, but received '${yn(t)}'.`)}class dy{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 fc=(()=>{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 dy(e,i)}ngDoCheck(){this._view.enforceState(this.ngSwitch._matchCase(this.ngSwitchCase))}}return n.\u0275fac=function(e){return new(e||n)(p(En),p(bn),p(fc,9))},n.\u0275dir=fe({type:n,selectors:[["","ngSwitchCase",""]],inputs:{ngSwitchCase:"ngSwitchCase"},standalone:!0}),n})(),OT=(()=>{class n{constructor(e,i,r){r._addDefault(new dy(e,i))}}return n.\u0275fac=function(e){return new(e||n)(p(En),p(bn),p(fc,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:or.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(Xe),p(Xu),p(po))},n.\u0275dir=fe({type:n,selectors:[["","ngStyle",""]],inputs:{ngStyle:"ngStyle"},standalone:!0}),n})(),Qi=(()=>{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(En))},n.\u0275dir=fe({type:n,selectors:[["","ngTemplateOutlet",""]],inputs:{ngTemplateOutletContext:"ngTemplateOutletContext",ngTemplateOutlet:"ngTemplateOutlet",ngTemplateOutletInjector:"ngTemplateOutletInjector"},standalone:!0,features:[kn]}),n})(),Xi=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=dt({type:n}),n.\u0275inj=ct({}),n})();const FT="browser";class BT{}class fy extends class dH extends class G4{}{constructor(){super(...arguments),this.supportsDOMEvents=!0}}{static makeCurrent(){!function z4(n){Ap||(Ap=n)}(new fy)}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 hH(){return ed=ed||document.querySelector("base"),ed?ed.getAttribute("href"):null}();return null==e?null:function pH(n){Bp=Bp||document.createElement("a"),Bp.setAttribute("href",n);const t=Bp.pathname;return"/"===t.charAt(0)?t:`/${t}`}(e)}resetBaseElement(){ed=null}getUserAgent(){return window.navigator.userAgent}getCookie(t){return xT(document.cookie,t)}}let Bp,ed=null;const jT=new ge("TRANSITION_ID"),mH=[{provide:jA,useFactory:function fH(n,t,e){return()=>{e.get(bp).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=me({token:n,factory:n.\u0275fac}),n})();const jp=new ge("EventManagerPlugins");let Hp=(()=>{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=me({token:n,factory:n.\u0275fac}),n})(),td=(()=>{class n extends VT{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(UT),this._hostNodes.delete(e)}onStylesAdded(e){this._hostNodes.forEach((i,r)=>{this._addStylesToHost(e,r,i)})}ngOnDestroy(){this._hostNodes.forEach(e=>e.forEach(UT))}}return n.\u0275fac=function(e){return new(e||n)(T(pt))},n.\u0275prov=me({token:n,factory:n.\u0275fac}),n})();function UT(n){Uo().remove(n)}const my={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/"},gy=/%COMP%/g;function Vp(n,t,e){for(let i=0;i{if("__ngUnwrap__"===t)return n;!1===n(t)&&(t.preventDefault(),t.returnValue=!1)}}let Up=(()=>{class n{constructor(e,i,r){this.eventManager=e,this.sharedStylesHost=i,this.appId=r,this.rendererByCompId=new Map,this.defaultRenderer=new _y(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 EH(this.eventManager,this.sharedStylesHost,i,this.appId),this.rendererByCompId.set(i.id,r)),r.applyToHost(e),r}case 1:case ao.ShadowDom:return new DH(this.eventManager,this.sharedStylesHost,e,i);default:if(!this.rendererByCompId.has(i.id)){const r=Vp(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)(T(Hp),T(td),T(pc))},n.\u0275prov=me({token:n,factory:n.\u0275fac}),n})();class _y{constructor(t){this.eventManager=t,this.data=Object.create(null),this.destroyNode=null}destroy(){}createElement(t,e){return e?document.createElementNS(my[e]||e,t):document.createElement(t)}createComment(t){return document.createComment(t)}createText(t){return document.createTextNode(t)}appendChild(t,e){($T(t)?t.content:t).appendChild(e)}insertBefore(t,e,i){t&&($T(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=my[r];o?t.setAttributeNS(o,e,i):t.setAttribute(e,i)}else t.setAttribute(e,i)}removeAttribute(t,e,i){if(i){const r=my[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&(or.DashCase|or.Important)?t.style.setProperty(e,i,r&or.Important?"important":""):t.style[e]=i}removeStyle(t,e,i){i&or.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,GT(i)):this.eventManager.addEventListener(t,e,GT(i))}}function $T(n){return"TEMPLATE"===n.tagName&&void 0!==n.content}class EH extends _y{constructor(t,e,i,r){super(t),this.component=i;const o=Vp(r+"-"+i.id,i.styles,[]);e.addStyles(o),this.contentAttr=function bH(n){return"_ngcontent-%COMP%".replace(gy,n)}(r+"-"+i.id),this.hostAttr=function CH(n){return"_nghost-%COMP%".replace(gy,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 DH extends _y{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=Vp(r.id,r.styles,[]);for(let s=0;s{class n extends HT{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)(T(pt))},n.\u0275prov=me({token:n,factory:n.\u0275fac}),n})();const KT=["alt","control","meta","shift"],TH={"\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"},YT={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"},xH={alt:n=>n.altKey,control:n=>n.ctrlKey,meta:n=>n.metaKey,shift:n=>n.shiftKey};let IH=(()=>{class n extends HT{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(KT.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 MH(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&&YT.hasOwnProperty(t)&&(t=YT[t]))}return TH[t]||t}(e);return r=r.toLowerCase()," "===r?r="space":"."===r&&(r="dot"),KT.forEach(o=>{o!=r&&(0,xH[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)(T(pt))},n.\u0275prov=me({token:n,factory:n.\u0275fac}),n})();const QT=[{provide:Cp,useValue:FT},{provide:VA,useValue:function kH(){fy.makeCurrent()},multi:!0},{provide:pt,useFactory:function OH(){return function QP(n){o_=n}(document),document},deps:[]}],XT=QA(V4,"browser",QT),ZT=new ge(""),JT=[{provide:wp,useClass:class gH{addToWindow(t){_n.getAngularTestability=(i,r=!0)=>{const o=t.findTestabilityInTree(i,r);if(null==o)throw new Error("Could not find testability for element.");return o},_n.getAllAngularTestabilities=()=>t.getAllTestabilities(),_n.getAllAngularRootElements=()=>t.getAllRootElements(),_n.frameworkStabilizers||(_n.frameworkStabilizers=[]),_n.frameworkStabilizers.push(i=>{const r=_n.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:$A,useClass:Wv,deps:[et,$v,wp]},{provide:Wv,useClass:Wv,deps:[et,$v,wp]}],ex=[{provide:g_,useValue:"root"},{provide:ds,useFactory:function RH(){return new ds},deps:[]},{provide:jp,useClass:SH,multi:!0,deps:[pt,et,Cp]},{provide:jp,useClass:IH,multi:!0,deps:[pt]},{provide:Up,useClass:Up,deps:[Hp,td,pc]},{provide:Ru,useExisting:Up},{provide:VT,useExisting:td},{provide:td,useClass:td,deps:[pt]},{provide:Hp,useClass:Hp,deps:[jp,et]},{provide:BT,useClass:_H,deps:[]},[]];let tx=(()=>{class n{constructor(e){}static withServerTransition(e){return{ngModule:n,providers:[{provide:pc,useValue:e.appId},{provide:jT,useExisting:pc},mH]}}}return n.\u0275fac=function(e){return new(e||n)(T(ZT,12))},n.\u0275mod=dt({type:n}),n.\u0275inj=ct({providers:[...ex,...JT],imports:[Xi,U4]}),n})();typeof window<"u"&&window;let $a=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=me({token:n,factory:function(e){let i=null;return i=e?new(e||n):T(ox),i},providedIn:"root"}),n})(),ox=(()=>{class n extends $a{constructor(e){super(),this._doc=e}sanitize(e,i){if(null==i)return null;switch(e){case sn.NONE:return i;case sn.HTML:return Po(i,"HTML")?Ar(i):G0(this._doc,String(i)).toString();case sn.STYLE:return Po(i,"Style")?Ar(i):i;case sn.SCRIPT:if(Po(i,"Script"))return Ar(i);throw new Error("unsafe value used in a script context");case sn.URL:return Po(i,"URL")?Ar(i):Iu(String(i));case sn.RESOURCE_URL:if(Po(i,"ResourceURL"))return Ar(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 oL(n){return new JP(n)}(e)}bypassSecurityTrustStyle(e){return function sL(n){return new eL(n)}(e)}bypassSecurityTrustScript(e){return function aL(n){return new tL(n)}(e)}bypassSecurityTrustUrl(e){return function lL(n){return new nL(n)}(e)}bypassSecurityTrustResourceUrl(e){return function cL(n){return new iL(n)}(e)}}return n.\u0275fac=function(e){return new(e||n)(T(pt))},n.\u0275prov=me({token:n,factory:function(e){let i=null;return i=e?new e:function qH(n){return new ox(n.get(pt))}(T(On)),i},providedIn:"root"}),n})();function by(...n){if(1===n.length){const t=n[0];if(N(t))return qp(t,null);if(M(t)&&Object.getPrototypeOf(t)===Object.prototype){const e=Object.keys(t);return qp(e.map(i=>t[i]),e)}}if("function"==typeof n[n.length-1]){const t=n.pop();return qp(n=1===n.length&&N(n[0])?n[0]:n,null).pipe(ue(e=>t(...e)))}return qp(n,null)}function qp(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 sx=(()=>{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(po),p(Xe))},n.\u0275dir=fe({type:n}),n})(),Ka=(()=>{class n extends sx{}return n.\u0275fac=function(){let t;return function(i){return(t||(t=Pt(n)))(i||n)}}(),n.\u0275dir=fe({type:n,features:[De]}),n})();const ar=new ge("NgValueAccessor"),GH={provide:ar,useExisting:tn(()=>zr),multi:!0},$H=new ge("CompositionEventMode");let zr=(()=>{class n extends sx{constructor(e,i,r){super(e,i),this._compositionMode=r,this._composing=!1,null==this._compositionMode&&(this._compositionMode=!function WH(){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(po),p(Xe),p($H,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&&$("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:[ot([GH]),De]}),n})();function sa(n){return null==n||("string"==typeof n||Array.isArray(n))&&0===n.length}function lx(n){return null!=n&&"number"==typeof n.length}const gi=new ge("NgValidators"),aa=new ge("NgAsyncValidators"),YH=/^(?=.{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 Cy{static min(t){return function cx(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 dx(n){return sa(n.value)?{required:!0}:null}(t)}static requiredTrue(t){return function hx(n){return!0===n.value?null:{required:!0}}(t)}static email(t){return function px(n){return sa(n.value)||YH.test(n.value)?null:{email:!0}}(t)}static minLength(t){return function fx(n){return t=>sa(t.value)||!lx(t.value)?null:t.value.lengthlx(t.value)&&t.value.length>n?{maxlength:{requiredLength:n,actualLength:t.value.length}}:null}(t)}static pattern(t){return function gx(n){if(!n)return zp;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 wx(t)}static composeAsync(t){return Ex(t)}}function zp(n){return null}function _x(n){return null!=n}function vx(n){return Vu(n)?vt(n):n}function yx(n){let t={};return n.forEach(e=>{t=null!=e?{...t,...e}:t}),0===Object.keys(t).length?null:t}function bx(n,t){return t.map(e=>e(n))}function Cx(n){return n.map(t=>function QH(n){return!n.validate}(t)?t:e=>t.validate(e))}function wx(n){if(!n)return null;const t=n.filter(_x);return 0==t.length?null:function(e){return yx(bx(e,t))}}function wy(n){return null!=n?wx(Cx(n)):null}function Ex(n){if(!n)return null;const t=n.filter(_x);return 0==t.length?null:function(e){return by(bx(e,t).map(vx)).pipe(ue(yx))}}function Ey(n){return null!=n?Ex(Cx(n)):null}function Dx(n,t){return null===n?[t]:Array.isArray(n)?[...n,t]:[n,t]}function Sx(n){return n._rawValidators}function Ax(n){return n._rawAsyncValidators}function Dy(n){return n?Array.isArray(n)?n:[n]:[]}function Gp(n,t){return Array.isArray(n)?n.includes(t):n===t}function Tx(n,t){const e=Dy(t);return Dy(n).forEach(r=>{Gp(e,r)||e.push(r)}),e}function xx(n,t){return Dy(t).filter(e=>!Gp(n,e))}class Ix{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=wy(this._rawValidators)}_setAsyncValidators(t){this._rawAsyncValidators=t||[],this._composedAsyncValidatorFn=Ey(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 Ix{get formDirective(){return null}get path(){return null}}class wo extends Ix{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}}let Eo=(()=>{class n extends class Mx{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(wo,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:[De]}),n})();const nd="VALID",$p="INVALID",mc="PENDING",id="DISABLED";function xy(n){return(Kp(n)?n.validators:n)||null}function Rx(n){return Array.isArray(n)?wy(n):n||null}function Iy(n,t){return(Kp(t)?t.asyncValidators:n)||null}function Ox(n){return Array.isArray(n)?Ey(n):n||null}function Kp(n){return null!=n&&!Array.isArray(n)&&"object"==typeof n}class Fx{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=Rx(this._rawValidators),this._composedAsyncValidatorFn=Ox(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===nd}get invalid(){return this.status===$p}get pending(){return this.status==mc}get disabled(){return this.status===id}get enabled(){return this.status!==id}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=Rx(t)}setAsyncValidators(t){this._rawAsyncValidators=t,this._composedAsyncValidatorFn=Ox(t)}addValidators(t){this.setValidators(Tx(t,this._rawValidators))}addAsyncValidators(t){this.setAsyncValidators(Tx(t,this._rawAsyncValidators))}removeValidators(t){this.setValidators(xx(t,this._rawValidators))}removeAsyncValidators(t){this.setAsyncValidators(xx(t,this._rawAsyncValidators))}hasValidator(t){return Gp(this._rawValidators,t)}hasAsyncValidator(t){return Gp(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=mc,!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=id,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=nd,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===nd||this.status===mc)&&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()?id:nd}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(t){if(this.asyncValidator){this.status=mc,this._hasOwnPendingAsyncValidator=!0;const e=vx(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()?id:this.errors?$p:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(mc)?mc:this._anyControlsHaveStatus($p)?$p:nd}_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){Kp(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 My extends Fx{constructor(t,e,i){super(xy(e),Iy(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 Lx(n,t,e){n._forEachChild((i,r)=>{if(void 0===e[r])throw new Se(1002,"")})})(this,0,t),Object.keys(t).forEach(i=>{(function Px(n,t,e){const i=n.controls;if(!(t?Object.keys(i):i).length)throw new Se(1e3,"");if(!i[e])throw new Se(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 rd(n,t){ky(n,t),t.valueAccessor.writeValue(n.value),n.disabled&&t.valueAccessor.setDisabledState?.(!0),function sV(n,t){t.valueAccessor.registerOnChange(e=>{n._pendingValue=e,n._pendingChange=!0,n._pendingDirty=!0,"change"===n.updateOn&&Nx(n,t)})}(n,t),function lV(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 aV(n,t){t.valueAccessor.registerOnTouched(()=>{n._pendingTouched=!0,"blur"===n.updateOn&&n._pendingChange&&Nx(n,t),"submit"!==n.updateOn&&n.markAsTouched()})}(n,t),function oV(n,t){if(t.valueAccessor.setDisabledState){const e=i=>{t.valueAccessor.setDisabledState(i)};n.registerOnDisabledChange(e),t._registerOnDestroy(()=>{n._unregisterOnDisabledChange(e)})}}(n,t)}function Qp(n,t,e=!0){const i=()=>{};t.valueAccessor&&(t.valueAccessor.registerOnChange(i),t.valueAccessor.registerOnTouched(i)),Zp(n,t),n&&(t._invokeOnDestroyCallbacks(),n._registerOnCollectionChange(()=>{}))}function Xp(n,t){n.forEach(e=>{e.registerOnValidatorChange&&e.registerOnValidatorChange(t)})}function ky(n,t){const e=Sx(n);null!==t.validator?n.setValidators(Dx(e,t.validator)):"function"==typeof e&&n.setValidators([e]);const i=Ax(n);null!==t.asyncValidator?n.setAsyncValidators(Dx(i,t.asyncValidator)):"function"==typeof i&&n.setAsyncValidators([i]);const r=()=>n.updateValueAndValidity();Xp(t._rawValidators,r),Xp(t._rawAsyncValidators,r)}function Zp(n,t){let e=!1;if(null!==n){if(null!==t.validator){const r=Sx(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=Ax(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 Xp(t._rawValidators,i),Xp(t._rawAsyncValidators,i),e}function Nx(n,t){n._pendingDirty&&n.markAsDirty(),n.setValue(n._pendingValue,{emitModelToViewChange:!1}),t.viewToModelUpdate(n._pendingValue),n._pendingChange=!1}function Bx(n,t){ky(n,t)}function Ry(n,t){if(!n.hasOwnProperty("model"))return!1;const e=n.model;return!!e.isFirstChange()||!Object.is(t,e.currentValue)}function Hx(n,t){n._syncPendingControls(),t.forEach(e=>{const i=e.control;"submit"===i.updateOn&&i._pendingChange&&(e.viewToModelUpdate(i._pendingValue),i._pendingChange=!1)})}function Oy(n,t){if(!t)return null;let e,i,r;return Array.isArray(t),t.forEach(o=>{o.constructor===zr?e=o:function dV(n){return Object.getPrototypeOf(n.constructor)===Ka}(o)?i=o:r=o}),r||i||e||null}const pV={provide:Zi,useExisting:tn(()=>gc)},od=(()=>Promise.resolve(null))();let gc=(()=>{class n extends Zi{constructor(e,i){super(),this.submitted=!1,this._directives=new Set,this.ngSubmit=new He,this.form=new My({},wy(e),Ey(i))}ngAfterViewInit(){this._setUpdateStrategy()}get formDirective(){return this}get control(){return this.form}get path(){return[]}get controls(){return this.form.controls}addControl(e){od.then(()=>{const i=this._findContainer(e.path);e.control=i.registerControl(e.name,e.control),rd(e.control,e),e.control.updateValueAndValidity({emitEvent:!1}),this._directives.add(e)})}getControl(e){return this.form.get(e.path)}removeControl(e){od.then(()=>{const i=this._findContainer(e.path);i&&i.removeControl(e.name),this._directives.delete(e)})}addFormGroup(e){od.then(()=>{const i=this._findContainer(e.path),r=new My({});Bx(r,e),i.registerControl(e.name,r),r.updateValueAndValidity({emitEvent:!1})})}removeFormGroup(e){od.then(()=>{const i=this._findContainer(e.path);i&&i.removeControl(e.name)})}getFormGroup(e){return this.form.get(e.path)}updateModel(e,i){od.then(()=>{this.form.get(e.path).setValue(i)})}setValue(e){this.control.setValue(e)}onSubmit(e){return this.submitted=!0,Hx(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(gi,10),p(aa,10))},n.\u0275dir=fe({type:n,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(e,i){1&e&&$("submit",function(o){return i.onSubmit(o)})("reset",function(){return i.onReset()})},inputs:{options:["ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[ot([pV]),De]}),n})();function Vx(n,t){const e=n.indexOf(t);e>-1&&n.splice(e,1)}function Ux(n){return"object"==typeof n&&null!==n&&2===Object.keys(n).length&&"value"in n&&"disabled"in n}const ys=class extends Fx{constructor(t=null,e,i){super(xy(e),Iy(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}),Kp(e)&&(e.nonNullable||e.initialValueIsDefault)&&(this.defaultValue=Ux(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){Vx(this._onChange,t)}registerOnDisabledChange(t){this._onDisabledChange.push(t)}_unregisterOnDisabledChange(t){Vx(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){Ux(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}},gV={provide:wo,useExisting:tn(()=>qo)},Gx=(()=>Promise.resolve(null))();let qo=(()=>{class n extends wo{constructor(e,i,r,o,s){super(),this._changeDetectorRef=s,this.control=new ys,this._registered=!1,this.update=new He,this._parent=e,this._setValidators(i),this._setAsyncValidators(r),this.valueAccessor=Oy(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),Ry(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(){rd(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){Gx.then(()=>{this.control.setValue(e,{emitViewToModelChange:!1}),this._changeDetectorRef?.markForCheck()})}_updateDisabled(e){const i=e.isDisabled.currentValue,r=0!==i&&function _s(n){return"boolean"==typeof n?n:null!=n&&"false"!==n}(i);Gx.then(()=>{r&&!this.control.disabled?this.control.disable():!r&&this.control.disabled&&this.control.enable(),this._changeDetectorRef?.markForCheck()})}_getPath(e){return this._parent?function Yp(n,t){return[...t.path,n]}(e,this._parent):[e]}}return n.\u0275fac=function(e){return new(e||n)(p(Zi,9),p(gi,10),p(aa,10),p(ar,10),p(It,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:[ot([gV]),De,kn]}),n})(),$x=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=dt({type:n}),n.\u0275inj=ct({}),n})();const Py=new ge("NgModelWithFormControlWarning"),wV={provide:wo,useExisting:tn(()=>Jp)};let Jp=(()=>{class n extends wo{constructor(e,i,r,o){super(),this._ngModelWarningConfig=o,this.update=new He,this._ngModelWarningSent=!1,this._setValidators(e),this._setAsyncValidators(i),this.valueAccessor=Oy(0,r)}set isDisabled(e){}ngOnChanges(e){if(this._isControlChanged(e)){const i=e.form.previousValue;i&&Qp(i,this,!1),rd(this.form,this),this.form.updateValueAndValidity({emitEvent:!1})}Ry(e,this.viewModel)&&(this.form.setValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.form&&Qp(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(gi,10),p(aa,10),p(ar,10),p(Py,8))},n.\u0275dir=fe({type:n,selectors:[["","formControl",""]],inputs:{form:["formControl","form"],isDisabled:["disabled","isDisabled"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},exportAs:["ngForm"],features:[ot([wV]),De,kn]}),n})();const EV={provide:Zi,useExisting:tn(()=>_c)};let _c=(()=>{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&&(Zp(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 rd(i,e),i.updateValueAndValidity({emitEvent:!1}),this.directives.push(e),i}getControl(e){return this.form.get(e.path)}removeControl(e){Qp(e.control||null,e,!1),function hV(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,Hx(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&&(Qp(i||null,e),(n=>n instanceof ys)(r)&&(rd(r,e),e.control=r))}),this.form._updateTreeValidity({emitEvent:!1})}_setUpFormContainer(e){const i=this.form.get(e.path);Bx(i,e),i.updateValueAndValidity({emitEvent:!1})}_cleanUpFormContainer(e){if(this.form){const i=this.form.get(e.path);i&&function cV(n,t){return Zp(n,t)}(i,e)&&i.updateValueAndValidity({emitEvent:!1})}}_updateRegistrations(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm&&this._oldForm._registerOnCollectionChange(()=>{})}_updateValidators(){ky(this.form,this),this._oldForm&&Zp(this._oldForm,this)}_checkFormPresent(){}}return n.\u0275fac=function(e){return new(e||n)(p(gi,10),p(aa,10))},n.\u0275dir=fe({type:n,selectors:[["","formGroup",""]],hostBindings:function(e,i){1&e&&$("submit",function(o){return i.onSubmit(o)})("reset",function(){return i.onReset()})},inputs:{form:["formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[ot([EV]),De,kn]}),n})(),c2=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=dt({type:n}),n.\u0275inj=ct({imports:[$x]}),n})(),VV=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=dt({type:n}),n.\u0275inj=ct({imports:[c2]}),n})(),UV=(()=>{class n{static withConfig(e){return{ngModule:n,providers:[{provide:Py,useValue:e.warnOnNgModelWithFormControl}]}}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=dt({type:n}),n.\u0275inj=ct({imports:[c2]}),n})();function Fe(...n){let t=n[n.length-1];return pe(t)?(n.pop(),hi(n,t)):bg(n)}function zo(n,t){return Hi(n,t,1)}function An(n,t){return function(i){return i.lift(new zV(n,t))}}class zV{constructor(t,e){this.predicate=t,this.thisArg=e}call(t,e){return e.subscribe(new GV(t,this.predicate,this.thisArg))}}class GV extends A{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 u2{}class d2{}class bs{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 bs?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 bs;return e.lazyInit=this.lazyInit&&this.lazyInit instanceof bs?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 WV{encodeKey(t){return h2(t)}encodeValue(t){return h2(t)}decodeKey(t){return decodeURIComponent(t)}decodeValue(t){return decodeURIComponent(t)}}const KV=/%(\d[a-f0-9])/gi,YV={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function h2(n){return encodeURIComponent(n).replace(KV,(t,e)=>YV[e]??t)}function tf(n){return`${n}`}class $t{constructor(t={}){if(this.updates=null,this.cloneFrom=null,this.encoder=t.encoder||new WV,t.fromString){if(t.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=function $V(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(tf):[tf(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(tf(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(tf(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 QV{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 p2(n){return typeof ArrayBuffer<"u"&&n instanceof ArrayBuffer}function f2(n){return typeof Blob<"u"&&n instanceof Blob}function m2(n){return typeof FormData<"u"&&n instanceof FormData}class sd{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 XV(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 bs),this.context||(this.context=new QV),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 sd(e,i,o,{params:c,headers:l,context:u,reportProgress:a,responseType:r,withCredentials:s})}}var ni=(()=>((ni=ni||{})[ni.Sent=0]="Sent",ni[ni.UploadProgress=1]="UploadProgress",ni[ni.ResponseHeader=2]="ResponseHeader",ni[ni.DownloadProgress=3]="DownloadProgress",ni[ni.Response=4]="Response",ni[ni.User=5]="User",ni))();class Hy{constructor(t,e=200,i="OK"){this.headers=t.headers||new bs,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 Vy extends Hy{constructor(t={}){super(t),this.type=ni.ResponseHeader}clone(t={}){return new Vy({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 nf extends Hy{constructor(t={}){super(t),this.type=ni.Response,this.body=void 0!==t.body?t.body:null}clone(t={}){return new nf({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 g2 extends Hy{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 Uy(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 vc=(()=>{class n{constructor(e){this.handler=e}request(e,i,r={}){let o;if(e instanceof sd)o=e;else{let l,c;l=r.headers instanceof bs?r.headers:new bs(r.headers),r.params&&(c=r.params instanceof $t?r.params:new $t({fromObject:r.params})),o=new sd(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=Fe(o).pipe(zo(l=>this.handler.handle(l)));if(e instanceof sd||"events"===r.observe)return s;const a=s.pipe(An(l=>l instanceof nf));switch(r.observe||"body"){case"body":switch(o.responseType){case"arraybuffer":return a.pipe(ue(l=>{if(null!==l.body&&!(l.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return l.body}));case"blob":return a.pipe(ue(l=>{if(null!==l.body&&!(l.body instanceof Blob))throw new Error("Response is not a Blob.");return l.body}));case"text":return a.pipe(ue(l=>{if(null!==l.body&&"string"!=typeof l.body)throw new Error("Response is not a string.");return l.body}));default:return a.pipe(ue(l=>l.body))}case"response":return a;default:throw new Error(`Unreachable: unhandled observe type ${r.observe}}`)}}delete(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,Uy(r,i))}post(e,i,r={}){return this.request("POST",e,Uy(r,i))}put(e,i,r={}){return this.request("PUT",e,Uy(r,i))}}return n.\u0275fac=function(e){return new(e||n)(T(u2))},n.\u0275prov=me({token:n,factory:n.\u0275fac}),n})();class _2{constructor(t,e){this.next=t,this.interceptor=e}handle(t){return this.interceptor.intercept(t,this.next)}}const qy=new ge("HTTP_INTERCEPTORS");let JV=(()=>{class n{intercept(e,i){return i.handle(e)}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=me({token:n,factory:n.\u0275fac}),n})();const eU=/^\)\]\}',?\n/;let v2=(()=>{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 bs(r.getAllResponseHeaders()),S=function tU(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 Vy({headers:y,status:r.status,statusText:m,url:S}),s},l=()=>{let{headers:m,status:y,statusText:S,url:U}=a(),ee=null;204!==y&&(ee=typeof r.response>"u"?r.responseText:r.response),0===y&&(y=ee?200:0);let ve=y>=200&&y<300;if("json"===e.responseType&&"string"==typeof ee){const ne=ee;ee=ee.replace(eU,"");try{ee=""!==ee?JSON.parse(ee):null}catch(Ie){ee=ne,ve&&(ve=!1,ee={error:Ie,text:ee})}}ve?(i.next(new nf({body:ee,headers:m,status:y,statusText:S,url:U||void 0})),i.complete()):i.error(new g2({error:ee,headers:m,status:y,statusText:S,url:U||void 0}))},c=m=>{const{url:y}=a(),S=new g2({error:m,status:r.status||0,statusText:r.statusText||"Unknown Error",url:y||void 0});i.error(S)};let u=!1;const d=m=>{u||(i.next(a()),u=!0);let y={type:ni.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:ni.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:ni.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)(T(BT))},n.\u0275prov=me({token:n,factory:n.\u0275fac}),n})();const zy=new ge("XSRF_COOKIE_NAME"),Gy=new ge("XSRF_HEADER_NAME");class y2{}let nU=(()=>{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=xT(e,this.cookieName),this.lastCookieString=e),this.lastToken}}return n.\u0275fac=function(e){return new(e||n)(T(pt),T(Cp),T(zy))},n.\u0275prov=me({token:n,factory:n.\u0275fac}),n})(),Wy=(()=>{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)(T(y2),T(Gy))},n.\u0275prov=me({token:n,factory:n.\u0275fac}),n})(),iU=(()=>{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(qy,[]);this.chain=i.reduceRight((r,o)=>new _2(r,o),this.backend)}return this.chain.handle(e)}}return n.\u0275fac=function(e){return new(e||n)(T(d2),T(On))},n.\u0275prov=me({token:n,factory:n.\u0275fac}),n})(),rU=(()=>{class n{static disable(){return{ngModule:n,providers:[{provide:Wy,useClass:JV}]}}static withOptions(e={}){return{ngModule:n,providers:[e.cookieName?{provide:zy,useValue:e.cookieName}:[],e.headerName?{provide:Gy,useValue:e.headerName}:[]]}}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=dt({type:n}),n.\u0275inj=ct({providers:[Wy,{provide:qy,useExisting:Wy,multi:!0},{provide:y2,useClass:nU},{provide:zy,useValue:"XSRF-TOKEN"},{provide:Gy,useValue:"X-XSRF-TOKEN"}]}),n})(),oU=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=dt({type:n}),n.\u0275inj=ct({providers:[vc,{provide:u2,useClass:iU},v2,{provide:d2,useExisting:v2}],imports:[rU.withOptions({cookieName:"XSRF-TOKEN",headerName:"X-XSRF-TOKEN"})]}),n})(),sU=(()=>{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=me({token:n,factory:n.\u0275fac}),n})();function b2(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 Ee(n){return function(){var t=this,e=arguments;return new Promise(function(i,r){var o=n.apply(t,e);function s(l){b2(o,i,r,s,a,"next",l)}function a(l){b2(o,i,r,s,a,"throw",l)}s(void 0)})}}let Ji=(()=>{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=me({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 Ei{constructor(t,e){this.component=t,this.data=e}}function Cs(n){return!!n&&(n instanceof b||"function"==typeof n.lift&&"function"==typeof n.subscribe)}function yc(...n){return function aU(){return vh(1)}()(Fe(...n))}const Es=new b(n=>n.complete());function rf(n){return n?function lU(n){return new b(t=>n.schedule(()=>t.complete()))}(n):Es}function la(n){return new b(t=>{let e;try{e=n()}catch(r){return void t.error(r)}return(e?vt(e):rf()).subscribe(t)})}const C2=(()=>{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 an(n){return t=>0===n?rf():t.lift(new cU(n))}class cU{constructor(t){if(this.total=t,this.total<0)throw new C2}call(t,e){return e.subscribe(new uU(t,this.total))}}class uU extends A{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 dU extends E{constructor(t,e){super()}schedule(t,e=0){return this}}class sf extends dU{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 w2=(()=>{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 Do extends w2{constructor(t,e=w2.now){super(t,()=>Do.delegate&&Do.delegate!==this?Do.delegate.now():e()),this.actions=[],this.active=!1,this.scheduled=void 0}schedule(t,e=0,i){return Do.delegate&&Do.delegate!==this?Do.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 fU=new class pU extends Do{}(class hU extends sf{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(mU,0,{error:n,subscriber:e}):e=>e.error(n))}function mU({error:n,subscriber:t}){t.error(n)}class lr{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 Fe(this.value);case"E":return Qa(this.error);case"C":return rf()}throw new Error("unexpected notification kind value")}static createNext(t){return typeof t<"u"?new lr("N",t):lr.undefinedValueNotification}static createError(t){return new lr("E",void 0,t)}static createComplete(){return lr.completeNotification}}lr.completeNotification=new lr("C"),lr.undefinedValueNotification=new lr("N",void 0);class af extends A{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(af.dispatch,this.delay,new _U(t,this.destination)))}_next(t){this.scheduleMessage(lr.createNext(t))}_error(t){this.scheduleMessage(lr.createError(t)),this.unsubscribe()}_complete(){this.scheduleMessage(lr.createComplete()),this.unsubscribe()}}class _U{constructor(t,e){this.notification=t,this.destination=e}}class E2 extends L{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 vU(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 af(t,r)),e)for(let a=0;ae&&(s=Math.max(s,o-e)),s>0&&r.splice(0,s),r}}class vU{constructor(t,e){this.time=t,this.value=e}}function D2(n,t,e){let i;return i=n&&"object"==typeof n?n:{bufferSize:n,windowTime:t,refCount:!1,scheduler:e},r=>r.lift(function yU({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 E2(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 Qn(n,t){return"function"==typeof t?e=>e.pipe(Qn((i,r)=>vt(n(i,r)).pipe(ue((o,s)=>t(i,o,r,s))))):e=>e.lift(new bU(n))}class bU{constructor(t){this.project=t}call(t,e){return e.subscribe(new CU(t,this.project))}}class CU 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 ad{}let S2=(()=>{class n extends ad{getTranslation(e){return Fe({})}}return n.\u0275fac=function(){let t;return function(i){return(t||(t=Pt(n)))(i||n)}}(),n.\u0275prov=me({token:n,factory:n.\u0275fac}),n})();class $y{}let A2=(()=>{class n{handle(e){return e.key}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=me({token:n,factory:n.\u0275fac}),n})();function ld(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(!ld(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{Ky(t[i])?i in n?e[i]=T2(n[i],t[i]):Object.assign(e,{[i]:t[i]}):Object.assign(e,{[i]:t[i]})}),e}class lf{}let x2=(()=>{class n extends lf{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(),!xr(e)||!xr(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 xr(s)?s:r}):e}}return n.\u0275fac=function(){let t;return function(i){return(t||(t=Pt(n)))(i||n)}}(),n.\u0275prov=me({token:n,factory:n.\u0275fac}),n})();class cf{}let I2=(()=>{class n extends cf{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=me({token:n,factory:n.\u0275fac}),n})();class M2{constructor(){this.currentLang=this.defaultLang,this.translations={},this.langs=[],this.onTranslationChange=new He,this.onLangChange=new He,this.onDefaultLangChange=new He}}const Yy=new ge("USE_STORE"),Qy=new ge("USE_DEFAULT_LANG"),Xy=new ge("DEFAULT_LANGUAGE"),Zy=new ge("USE_EXTEND");let Kt=(()=>{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(an(1)).subscribe(r=>{this.changeDefaultLang(e)})):this.changeDefaultLang(e)}getDefaultLang(){return this.defaultLang}use(e){if(e===this.currentLang)return Fe(this.translations[e]);let i=this.retrieveTranslations(e);return typeof i<"u"?(this.currentLang||(this.currentLang=e),i.pipe(an(1)).subscribe(r=>{this.changeLang(e)}),i):(this.changeLang(e),Fe(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(D2(1),an(1));return this.loadingTranslations=i.pipe(ue(r=>this.compiler.compileTranslations(r,e)),D2(1),an(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]?T2(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),Cs(s[l])&&(a=!0);return a?by(i.map(c=>Cs(s[c])?s[c]:Fe(s[c]))).pipe(ue(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(!xr(e)||!e.length)throw new Error('Parameter "key" required');if(this.pending)return this.loadingTranslations.pipe(zo(r=>Cs(r=this.getParsedResult(r,e,i))?r:Fe(r)));{let r=this.getParsedResult(this.translations[this.currentLang],e,i);return Cs(r)?r:Fe(r)}}getStreamOnTranslationChange(e,i){if(!xr(e)||!e.length)throw new Error('Parameter "key" required');return yc(la(()=>this.get(e,i)),this.onTranslationChange.pipe(Qn(r=>{const o=this.getParsedResult(r.translations,e,i);return"function"==typeof o.subscribe?o:Fe(o)})))}stream(e,i){if(!xr(e)||!e.length)throw new Error('Parameter "key" required');return yc(la(()=>this.get(e,i)),this.onLangChange.pipe(Qn(r=>{const o=this.getParsedResult(r.translations,e,i);return Cs(o)?o:Fe(o)})))}instant(e,i){if(!xr(e)||!e.length)throw new Error('Parameter "key" required');let r=this.getParsedResult(this.translations[this.currentLang],e,i);if(Cs(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)(T(M2),T(ad),T(cf),T(lf),T($y),T(Qy),T(Yy),T(Zy),T(Xy))},n.\u0275prov=me({token:n,factory:n.\u0275fac}),n})(),Pi=(()=>{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);Cs(s.subscribe)?s.subscribe(o):o(s)}this.translate.get(e,i).subscribe(o)}transform(e,...i){if(!e||!e.length)return e;if(ld(e,this.lastKey)&&ld(i,this.lastParams))return this.value;let r;if(xr(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(Kt,16),p(It,16))},n.\u0275pipe=Vi({name:"translate",type:n,pure:!1}),n.\u0275prov=me({token:n,factory:n.\u0275fac}),n})(),wU=(()=>{class n{static forRoot(e={}){return{ngModule:n,providers:[e.loader||{provide:ad,useClass:S2},e.compiler||{provide:cf,useClass:I2},e.parser||{provide:lf,useClass:x2},e.missingTranslationHandler||{provide:$y,useClass:A2},M2,{provide:Yy,useValue:e.isolate},{provide:Qy,useValue:e.useDefaultLang},{provide:Zy,useValue:e.extend},{provide:Xy,useValue:e.defaultLanguage},Kt]}}static forChild(e={}){return{ngModule:n,providers:[e.loader||{provide:ad,useClass:S2},e.compiler||{provide:cf,useClass:I2},e.parser||{provide:lf,useClass:x2},e.missingTranslationHandler||{provide:$y,useClass:A2},{provide:Yy,useValue:e.isolate},{provide:Qy,useValue:e.useDefaultLang},{provide:Zy,useValue:e.extend},{provide:Xy,useValue:e.defaultLanguage},Kt]}}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=dt({type:n}),n.\u0275inj=ct({}),n})(),Gr=(()=>{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(Kt))},n.\u0275dir=fe({type:n,inputs:{data:"data",modalMain:"modalMain"},outputs:{messageEvent:"messageEvent"}}),n})();const EU=["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 Jy,er=(()=>{class n{constructor(){this.waitListRecord={},this.waitListWithFunction={},EU.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=me({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),ht=(()=>{class n{constructor(e){this.waitListService=e,this.loggedIn=!1,this.showSelectedDocuments=!1,this.configJson={projectSelection:!0},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 DU;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)}}return n.\u0275fac=function(e){return new(e||n)(T(er))},n.\u0275prov=me({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();class DU{}try{Jy=typeof Intl<"u"&&Intl.v8BreakIterator}catch{Jy=!1}let bc,Fn=(()=>{class n{constructor(e){this._platformId=e,this.isBrowser=this._platformId?function cH(n){return n===FT}(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&&!Jy)&&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)(T(Cp))},n.\u0275prov=me({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const k2=["color","button","checkbox","date","datetime-local","email","file","hidden","image","month","number","password","radio","range","reset","search","submit","tel","text","time","url","week"];function R2(){if(bc)return bc;if("object"!=typeof document||!document)return bc=new Set(k2),bc;let n=document.createElement("input");return bc=new Set(k2.filter(t=>(n.setAttribute("type",t),n.type===t))),bc}let cd,Xa,eb;function Ds(n){return function SU(){if(null==cd&&typeof window<"u")try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:()=>cd=!0}))}finally{cd=cd||!1}return cd}()?n:!!n.capture}function AU(){if(null==Xa){if("object"!=typeof document||!document||"function"!=typeof Element||!Element)return Xa=!1,Xa;if("scrollBehavior"in document.documentElement.style)Xa=!0;else{const n=Element.prototype.scrollTo;Xa=!!n&&!/\{\s*\[native code\]\s*\}/.test(n.toString())}}return Xa}function df(n){if(function TU(){if(null==eb){const n=typeof document<"u"?document.head:null;eb=!(!n||!n.createShadowRoot&&!n.attachShadow)}return eb}()){const t=n.getRootNode?n.getRootNode():null;if(typeof ShadowRoot<"u"&&ShadowRoot&&t instanceof ShadowRoot)return t}return null}function tb(){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 Wr(n){return n.composedPath?n.composedPath()[0]:n.target}function nb(){return typeof __karma__<"u"&&!!__karma__||typeof jasmine<"u"&&!!jasmine||typeof jest<"u"&&!!jest||typeof Mocha<"u"&&!!Mocha}class cr extends L{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 Di(n,...t){return t.length?t.some(e=>n[e]):n.altKey||n.shiftKey||n.ctrlKey||n.metaKey}function ua(){}function Xn(n,t,e){return function(r){return r.lift(new jU(n,t,e))}}class jU{constructor(t,e,i){this.nextOrObserver=t,this.error=e,this.complete=i}call(t,e){return e.subscribe(new HU(t,this.nextOrObserver,this.error,this.complete))}}class HU extends A{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 Ec=new Do(sf);function sb(n,t=Ec){return e=>e.lift(new VU(n,t))}class VU{constructor(t,e){this.dueTime=t,this.scheduler=e}call(t,e){return e.subscribe(new UU(t,this.dueTime,this.scheduler))}}class UU extends A{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(qU,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 qU(n){n.debouncedNext()}function ab(n){return t=>t.lift(new zU(n))}class zU{constructor(t){this.total=t}call(t,e){return e.subscribe(new GU(t,this.total))}}class GU extends A{constructor(t,e){super(t),this.total=e,this.count=0}_next(t){++this.count>this.total&&this.destination.next(t)}}function ff(n,t){return e=>e.lift(new WU(n,t))}class WU{constructor(t,e){this.compare=t,this.keySelector=e}call(t,e){return e.subscribe(new $U(t,this.compare,this.keySelector))}}class $U extends A{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 Xt(n){return t=>t.lift(new KU(n))}class KU{constructor(t){this.notifier=t}call(t,e){const i=new YU(t),r=uu(this.notifier,new ko(i));return r&&!i.seenValue?(i.add(r),e.subscribe(i)):i}}class YU extends cu{constructor(t){super(t),this.seenValue=!1}notifyNext(){this.seenValue=!0,this.complete()}notifyComplete(){}}function at(n){return null!=n&&"false"!=`${n}`}function As(n,t=0){return function QU(n){return!isNaN(parseFloat(n))&&!isNaN(Number(n))}(n)?Number(n):t}function mf(n){return Array.isArray(n)?n:[n]}function ii(n){return null==n?"":"string"==typeof n?n:`${n}px`}function Zn(n){return n instanceof Xe?n.nativeElement:n}let O2=(()=>{class n{create(e){return typeof MutationObserver>"u"?null:new MutationObserver(e)}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=me({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),ZU=(()=>{class n{constructor(e){this._mutationObserverFactory=e,this._observedElements=new Map}ngOnDestroy(){this._observedElements.forEach((e,i)=>this._cleanupObserver(i))}observe(e){const i=Zn(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 L,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)(T(O2))},n.\u0275prov=me({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),gf=(()=>{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=at(e),this._disabled?this._unsubscribe():this._subscribe()}get debounce(){return this._debounce}set debounce(e){this._debounce=As(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(sb(this.debounce)):e).subscribe(this.event)})}_unsubscribe(){this._currentSubscription?.unsubscribe()}}return n.\u0275fac=function(e){return new(e||n)(p(ZU),p(Xe),p(et))},n.\u0275dir=fe({type:n,selectors:[["","cdkObserveContent",""]],inputs:{disabled:["cdkObserveContentDisabled","disabled"],debounce:"debounce"},outputs:{event:"cdkObserveContent"},exportAs:["cdkObserveContent"]}),n})(),ud=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=dt({type:n}),n.\u0275inj=ct({providers:[O2]}),n})();class JU extends A{notifyNext(t,e,i,r,o){this.destination.next(e)}notifyError(t,e){this.destination.error(t)}notifyComplete(t){this.destination.complete()}}class e8 extends A{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 t8(n,t,e,i,r=new e8(n,e,i)){if(!r.closed)return t instanceof b?t.subscribe(r):Ge(t)(r)}const P2={};function lb(...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&&N(n[0])&&(n=n[0]),bg(n,e).lift(new n8(t))}class n8{constructor(t){this.resultSelector=t}call(t,e){return e.subscribe(new i8(t,this.resultSelector))}}class i8 extends JU{constructor(t,e){super(t),this.resultSelector=e,this.active=0,this.values=[],this.observables=[]}_next(t){this.values.push(P2),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;iyc(n,e,t)):e=>yc(n,e)}const L2=new Set;let Dc,r8=(()=>{class n{constructor(e){this._platform=e,this._matchMedia=this._platform.isBrowser&&window.matchMedia?window.matchMedia.bind(window):s8}matchMedia(e){return(this._platform.WEBKIT||this._platform.BLINK)&&function o8(n){if(!L2.has(n))try{Dc||(Dc=document.createElement("style"),Dc.setAttribute("type","text/css"),document.head.appendChild(Dc)),Dc.sheet&&(Dc.sheet.insertRule(`@media ${n} {body{ }}`,0),L2.add(n))}catch(t){console.error(t)}}(e),this._matchMedia(e)}}return n.\u0275fac=function(e){return new(e||n)(T(Fn))},n.\u0275prov=me({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();function s8(n){return{matches:"all"===n||""===n,media:n,addListener:()=>{},removeListener:()=>{}}}let cb=(()=>{class n{constructor(e,i){this._mediaMatcher=e,this._zone=i,this._queries=new Map,this._destroySubject=new L}ngOnDestroy(){this._destroySubject.next(),this._destroySubject.complete()}isMatched(e){return F2(mf(e)).some(r=>this._registerQuery(r).mql.matches)}observe(e){let o=lb(F2(mf(e)).map(s=>this._registerQuery(s).observable));return o=yc(o.pipe(an(1)),o.pipe(ab(1),sb(0))),o.pipe(ue(s=>{const a={matches:!1,breakpoints:{}};return s.forEach(({matches:l,query:c})=>{a.matches=a.matches||l,a.breakpoints[c]=l}),a}))}_registerQuery(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(ri(i),ue(({matches:s})=>({query:e,matches:s})),Xt(this._destroySubject)),mql:i};return this._queries.set(e,o),o}}return n.\u0275fac=function(e){return new(e||n)(T(r8),T(et))},n.\u0275prov=me({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();function F2(n){return n.map(t=>t.split(",")).reduce((t,e)=>t.concat(e)).map(t=>t.trim())}function _f(n,t){return(n.getAttribute(t)||"").match(/\S+/g)||[]}const B2="cdk-describedby-message",vf="cdk-describedby-host";let ub=0,u8=(()=>{class n{constructor(e,i){this._platform=i,this._messageRegistry=new Map,this._messagesContainer=null,this._id=""+ub++,this._document=e,this._id=Ra(pc)+"-"+ub++}describe(e,i,r){if(!this._canBeDescribed(e,i))return;const o=db(i,r);"string"!=typeof i?(j2(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=db(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(`[${vf}="${this._id}"]`);for(let i=0;i0!=r.indexOf(B2));e.setAttribute("aria-describedby",i.join(" "))}_addMessageReference(e,i){const r=this._messageRegistry.get(i);(function l8(n,t,e){const i=_f(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(vf,this._id),r.referenceCount++}_removeMessageReference(e,i){const r=this._messageRegistry.get(i);r.referenceCount--,function c8(n,t,e){const r=_f(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(vf)}_isElementDescribedByMessage(e,i){const r=_f(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)(T(pt),T(Fn))},n.\u0275prov=me({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();function db(n,t){return"string"==typeof n?`${t||""}/${n}`:n}function j2(n,t){n.id||(n.id=`${B2}-${t}-${ub++}`)}class H2{constructor(t){this._items=t,this._activeItemIndex=-1,this._activeItem=null,this._wrap=!1,this._letterKeyStream=new L,this._typeaheadSubscription=E.EMPTY,this._vertical=!0,this._allowedModifierKeys=[],this._homeAndEnd=!1,this._skipPredicateFn=e=>e.disabled,this._pressedLetters=[],this.tabOut=new L,this.change=new L,t instanceof Ua&&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(Xn(e=>this._pressedLetters.push(e)),sb(t),An(()=>this._pressedLetters.length>0),ue(()=>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||Di(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 Ua?this._items.toArray():this._items}}class V2 extends H2{setActiveItem(t){this.activeItem&&this.activeItem.setInactiveStyles(),super.setActiveItem(t),this.activeItem&&this.activeItem.setActiveStyles()}}class yf extends H2{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 bf=(()=>{class n{constructor(e){this._platform=e}isDisabled(e){return e.hasAttribute("disabled")}isVisible(e){return function h8(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 d8(n){try{return n.frameElement}catch{return null}}(function b8(n){return n.ownerDocument&&n.ownerDocument.defaultView||window}(e));if(i&&(-1===q2(i)||!this.isVisible(i)))return!1;let r=e.nodeName.toLowerCase(),o=q2(e);return e.hasAttribute("contenteditable")?-1!==o:!("iframe"===r||"object"===r||this._platform.WEBKIT&&this._platform.IOS&&!function v8(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 y8(n){return!function f8(n){return function g8(n){return"input"==n.nodeName.toLowerCase()}(n)&&"hidden"==n.type}(n)&&(function p8(n){let t=n.nodeName.toLowerCase();return"input"===t||"select"===t||"button"===t||"textarea"===t}(n)||function m8(n){return function _8(n){return"a"==n.nodeName.toLowerCase()}(n)&&n.hasAttribute("href")}(n)||n.hasAttribute("contenteditable")||U2(n))}(e)&&!this.isDisabled(e)&&(i?.ignoreVisibility||this.isVisible(e))}}return n.\u0275fac=function(e){return new(e||n)(T(Fn))},n.\u0275prov=me({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();function U2(n){if(!n.hasAttribute("tabindex")||void 0===n.tabIndex)return!1;let t=n.getAttribute("tabindex");return!(!t||isNaN(parseInt(t,10)))}function q2(n){if(!U2(n))return null;const t=parseInt(n.getAttribute("tabindex")||"",10);return isNaN(t)?-1:t}class C8{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(an(1)).subscribe(t)}}let hb=(()=>{class n{constructor(e,i,r){this._checker=e,this._ngZone=i,this._document=r}create(e,i=!1){return new C8(e,this._checker,this._ngZone,this._document,i)}}return n.\u0275fac=function(e){return new(e||n)(T(bf),T(et),T(pt))},n.\u0275prov=me({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();function Cf(n){return 0===n.buttons||0===n.offsetX&&0===n.offsetY}function wf(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 w8=new ge("cdk-input-modality-detector-options"),E8={ignoreKeys:[18,17,224,91,16]},Sc=Ds({passive:!0,capture:!0});let D8=(()=>{class n{constructor(e,i,r,o){this._platform=e,this._mostRecentTarget=null,this._modality=new cr(null),this._lastTouchMs=0,this._onKeydown=s=>{this._options?.ignoreKeys?.some(a=>a===s.keyCode)||(this._modality.next("keyboard"),this._mostRecentTarget=Wr(s))},this._onMousedown=s=>{Date.now()-this._lastTouchMs<650||(this._modality.next(Cf(s)?"keyboard":"mouse"),this._mostRecentTarget=Wr(s))},this._onTouchstart=s=>{wf(s)?this._modality.next("keyboard"):(this._lastTouchMs=Date.now(),this._modality.next("touch"),this._mostRecentTarget=Wr(s))},this._options={...E8,...o},this.modalityDetected=this._modality.pipe(ab(1)),this.modalityChanged=this.modalityDetected.pipe(ff()),e.isBrowser&&i.runOutsideAngular(()=>{r.addEventListener("keydown",this._onKeydown,Sc),r.addEventListener("mousedown",this._onMousedown,Sc),r.addEventListener("touchstart",this._onTouchstart,Sc)})}get mostRecentModality(){return this._modality.value}ngOnDestroy(){this._modality.complete(),this._platform.isBrowser&&(document.removeEventListener("keydown",this._onKeydown,Sc),document.removeEventListener("mousedown",this._onMousedown,Sc),document.removeEventListener("touchstart",this._onTouchstart,Sc))}}return n.\u0275fac=function(e){return new(e||n)(T(Fn),T(et),T(pt),T(w8,8))},n.\u0275prov=me({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const S8=new ge("liveAnnouncerElement",{providedIn:"root",factory:function A8(){return null}}),T8=new ge("LIVE_ANNOUNCER_DEFAULT_OPTIONS");let pb=(()=>{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 L,this._rootNodeFocusAndBlurListener=a=>{for(let c=Wr(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=Zn(e);if(!this._platform.isBrowser||1!==r.nodeType)return Fe(null);const o=df(r)||this._getDocument(),s=this._elementInfo.get(r);if(s)return i&&(s.checkChildren=!0),s.subject;const a={checkChildren:i,subject:new L,rootNode:o};return this._elementInfo.set(r,a),this._registerGlobalListeners(a),a.subject}stopMonitoring(e){const i=Zn(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=Zn(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=Wr(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,Ef),i.addEventListener("blur",this._rootNodeFocusAndBlurListener,Ef)}),this._rootNodeFocusListenerCount.set(i,r+1),1==++this._monitoredElementCount&&(this._ngZone.runOutsideAngular(()=>{this._getWindow().addEventListener("focus",this._windowFocusListener)}),this._inputModalityDetector.modalityDetected.pipe(Xt(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,Ef),i.removeEventListener("blur",this._rootNodeFocusAndBlurListener,Ef),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(Xe),p(So))},n.\u0275dir=fe({type:n,selectors:[["","cdkMonitorElementFocus",""],["","cdkMonitorSubtreeFocus",""]],outputs:{cdkFocusChange:"cdkFocusChange"},exportAs:["cdkMonitorFocus"]}),n})();const G2="cdk-high-contrast-black-on-white",W2="cdk-high-contrast-white-on-black",fb="cdk-high-contrast-active";let $2=(()=>{class n{constructor(e,i){this._platform=e,this._document=i,this._breakpointSubscription=Ra(cb).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(fb,G2,W2),this._hasCheckedHighContrastMode=!0;const i=this.getHighContrastMode();1===i?e.add(fb,G2):2===i&&e.add(fb,W2)}}}return n.\u0275fac=function(e){return new(e||n)(T(Fn),T(pt))},n.\u0275prov=me({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),mb=(()=>{class n{constructor(e){e._applyBodyHighContrastModeCssClasses()}}return n.\u0275fac=function(e){return new(e||n)(T($2))},n.\u0275mod=dt({type:n}),n.\u0275inj=ct({imports:[ud]}),n})();function Ts(n,t,e,i){return le(e)&&(i=e,e=void 0),i?Ts(n,t,e).pipe(ue(r=>N(r)?i(...r):i(r))):new b(r=>{K2(n,t,function o(s){r.next(arguments.length>1?Array.prototype.slice.call(arguments):s)},r,e)})}function K2(n,t,e,i,r){let o;if(function R8(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 k8(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 M8(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 L8=1;const F8=Promise.resolve(),Df={};function Q2(n){return n in Df&&(delete Df[n],!0)}const X2={setImmediate(n){const t=L8++;return Df[t]=!0,F8.then(()=>Q2(t)&&n()),t},clearImmediate(n){Q2(n)}},gb=new class B8 extends Do{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=X2.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&&(X2.clearImmediate(e),t.scheduled=void 0)}});class H8{constructor(t){this.durationSelector=t}call(t,e){return e.subscribe(new V8(t,this.durationSelector))}}class V8 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 _b(n){return!N(n)&&n-parseFloat(n)+1>=0}function Z2(n=0,t,e){let i=-1;return _b(t)?i=Number(t)<1?1:Number(t):pe(t)&&(e=t),pe(e)||(e=Ec),new b(r=>{const o=_b(n)?n:+n-e.now();return e.schedule(U8,o,{index:0,period:i,subscriber:r})})}function U8(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 J2(n,t=Ec){return function j8(n){return function(e){return e.lift(new H8(n))}}(()=>Z2(n,t))}const q8=new ge("cdk-dir-doc",{providedIn:"root",factory:function z8(){return Ra(pt)}}),G8=/^(ar|ckb|dv|he|iw|fa|nqo|ps|sd|ug|ur|yi|.*[-_](Adlm|Arab|Hebr|Nkoo|Rohg|Thaa))(?!.*[-_](Latn|Cyrl)($|-|_))($|-|_)/i;let tr=(()=>{class n{constructor(e){if(this.value="ltr",this.change=new He,e){const r=e.documentElement?e.documentElement.dir:null;this.value=function W8(n){const t=n?.toLowerCase()||"";return"auto"===t&&typeof navigator<"u"&&navigator?.language?G8.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)(T(q8,8))},n.\u0275prov=me({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),dd=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=dt({type:n}),n.\u0275inj=ct({}),n})(),K8=(()=>{class n{constructor(e,i,r){this._ngZone=e,this._platform=i,this._scrolled=new L,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(J2(e)).subscribe(i):this._scrolled.subscribe(i);return this._scrolledCount++,()=>{r.unsubscribe(),this._scrolledCount--,this._scrolledCount||this._removeGlobalListener()}}):Fe()}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(An(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=Zn(i),o=e.getElementRef().nativeElement;do{if(r==o)return!0}while(r=r.parentElement);return!1}_addGlobalListener(){this._globalSubscription=this._ngZone.runOutsideAngular(()=>Ts(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)(T(et),T(Fn),T(pt,8))},n.\u0275prov=me({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),Go=(()=>{class n{constructor(e,i,r){this._platform=e,this._change=new L,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(J2(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)(T(Fn),T(et),T(pt,8))},n.\u0275prov=me({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),Ac=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=dt({type:n}),n.\u0275inj=ct({}),n})(),vb=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=dt({type:n}),n.\u0275inj=ct({imports:[dd,Ac,dd,Ac]}),n})();class yb{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 hd extends yb{constructor(t,e,i,r){super(),this.component=t,this.viewContainerRef=e,this.injector=i,this.componentFactoryResolver=r}}class xs extends yb{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 Q8 extends yb{constructor(t){super(),this.element=t instanceof Xe?t.nativeElement:t}}class Sf{constructor(){this._isDisposed=!1,this.attachDomPortal=null}hasAttached(){return!!this._attachedPortal}attach(t){return t instanceof hd?(this._attachedPortal=t,this.attachComponentPortal(t)):t instanceof xs?(this._attachedPortal=t,this.attachTemplatePortal(t)):this.attachDomPortal&&t instanceof Q8?(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 X8 extends Sf{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||On.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 Z8=(()=>{class n extends xs{constructor(e,i){super(e,i)}}return n.\u0275fac=function(e){return new(e||n)(p(bn),p(En))},n.\u0275dir=fe({type:n,selectors:[["","cdkPortal",""]],exportAs:["cdkPortal"],features:[De]}),n})(),Is=(()=>{class n extends Sf{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(ho),p(En),p(pt))},n.\u0275dir=fe({type:n,selectors:[["","cdkPortalOutlet",""]],inputs:{portal:["cdkPortalOutlet","portal"]},outputs:{attached:"attached"},exportAs:["cdkPortalOutlet"],features:[De]}),n})(),Ja=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=dt({type:n}),n.\u0275inj=ct({}),n})();function e1(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 e6(t,this.predicate,this.inclusive))}}class e6 extends A{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 t1=AU();class t6{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=ii(-this._previousScrollPosition.left),t.style.top=ii(-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"),t1&&(i.scrollBehavior=r.scrollBehavior="auto"),window.scroll(this._previousScrollPosition.left,this._previousScrollPosition.top),t1&&(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 n6{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 n1{enable(){}disable(){}attach(){}}function bb(n,t){return t.some(e=>n.bottome.bottom||n.righte.right)}function r1(n,t){return t.some(e=>n.tope.bottom||n.lefte.right)}class i6{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();bb(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 r6=(()=>{class n{constructor(e,i,r,o){this._scrollDispatcher=e,this._viewportRuler=i,this._ngZone=r,this.noop=()=>new n1,this.close=s=>new n6(this._scrollDispatcher,this._ngZone,this._viewportRuler,s),this.block=()=>new t6(this._viewportRuler,this._document),this.reposition=s=>new i6(this._scrollDispatcher,this._viewportRuler,this._ngZone,s),this._document=o}}return n.\u0275fac=function(e){return new(e||n)(T(K8),T(Go),T(et),T(pt))},n.\u0275prov=me({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();class Tc{constructor(t){if(this.scrollStrategy=new n1,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 o6{constructor(t,e){this.connectionPair=t,this.scrollableViewProperties=e}}let o1=(()=>{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)(T(pt))},n.\u0275prov=me({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),s6=(()=>{class n extends o1{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)(T(pt),T(et,8))},n.\u0275prov=me({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),a6=(()=>{class n extends o1{constructor(e,i,r){super(e),this._platform=i,this._ngZone=r,this._cursorStyleIsSet=!1,this._pointerDownListener=o=>{this._pointerDownEventTarget=Wr(o)},this._clickListener=o=>{const s=Wr(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)(T(pt),T(Fn),T(et,8))},n.\u0275prov=me({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),Af=(()=>{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||nb()){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 L,this._outsidePointerEvents=new L,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(an(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=ii(this._config.width),t.height=ii(this._config.height),t.minWidth=ii(this._config.minWidth),t.minHeight=ii(this._config.minHeight),t.maxWidth=ii(this._config.maxWidth),t.maxHeight=ii(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=mf(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(Xt(Mn(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 s1="cdk-overlay-connected-position-bounding-box",l6=/([A-Za-z%]+)$/;class c6{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 L,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(s1),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(s1),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=l1(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),S=this._subtractOverflows(o.height,h,m),U=y*S;return{visibleArea:U,isCompletelyWithinViewport:o.width*o.height===U,fitsInViewportVertically:S===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=a1(this._overlayRef.getConfig().minHeight),a=a1(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=l1(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=ii(i.height),r.top=ii(i.top),r.bottom=ii(i.bottom),r.width=ii(i.width),r.left=ii(i.left),r.right=ii(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=ii(o)),s&&(r.maxWidth=ii(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=ii(s.maxHeight):o&&(i.maxHeight="")),s.maxWidth&&(r?i.maxWidth=ii(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=ii(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=ii(o.x),r}_getScrollVisibility(){const t=this._getOriginRect(),e=this._pane.getBoundingClientRect(),i=this._scrollables.map(r=>r.getElementRef().nativeElement.getBoundingClientRect());return{isOriginClipped:r1(t,i),isOriginOutsideView:bb(t,i),isOverlayClipped:r1(e,i),isOverlayOutsideView:bb(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&&mf(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 Xe)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 a1(n){if("number"!=typeof n&&null!=n){const[t,e]=n.split(l6);return e&&"px"!==e?null:parseFloat(t)}return n||null}function l1(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 c1="cdk-global-overlay-wrapper";class u6{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(c1),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="",S="";l?S="flex-start":"center"===u?(S="center",h?y=d:m=d):h?"left"===u||"end"===u?(S="flex-end",m=d):("right"===u||"start"===u)&&(S="flex-start",y=d):"left"===u||"start"===u?(S="flex-start",m=d):("right"===u||"end"===u)&&(S="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=S,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(c1),i.justifyContent=i.alignItems=t.marginTop=t.marginBottom=t.marginLeft=t.marginRight=t.position="",this._overlayRef=null,this._isDisposed=!0}}let d6=(()=>{class n{constructor(e,i,r,o){this._viewportRuler=e,this._document=i,this._platform=r,this._overlayContainer=o}global(){return new u6}flexibleConnectedTo(e){return new c6(e,this._viewportRuler,this._document,this._platform,this._overlayContainer)}}return n.\u0275fac=function(e){return new(e||n)(T(Go),T(pt),T(Fn),T(Af))},n.\u0275prov=me({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),h6=0,ur=(()=>{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 Tc(e);return s.direction=s.direction||this._directionality.value,new pd(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-"+h6++,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(ia)),new X8(e,this._componentFactoryResolver,this._appRef,this._injector,this._document)}}return n.\u0275fac=function(e){return new(e||n)(T(r6),T(Af),T(ho),T(d6),T(s6),T(On),T(et),T(pt),T(tr),T(Ga),T(a6),T(qn,8))},n.\u0275prov=me({token:n,factory:n.\u0275fac}),n})();const p6=[{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"}],u1=new ge("cdk-connected-overlay-scroll-strategy");let d1=(()=>{class n{constructor(e){this.elementRef=e}}return n.\u0275fac=function(e){return new(e||n)(p(Xe))},n.\u0275dir=fe({type:n,selectors:[["","cdk-overlay-origin",""],["","overlay-origin",""],["","cdkOverlayOrigin",""]],exportAs:["cdkOverlayOrigin"]}),n})(),h1=(()=>{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 xs(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=at(e)}get lockPosition(){return this._lockPosition}set lockPosition(e){this._lockPosition=at(e)}get flexibleDimensions(){return this._flexibleDimensions}set flexibleDimensions(e){this._flexibleDimensions=at(e)}get growAfterOpen(){return this._growAfterOpen}set growAfterOpen(e){this._growAfterOpen=at(e)}get push(){return this._push}set push(e){this._push=at(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=p6);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&&!Di(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 Tc({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 d1?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(e1(()=>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(ur),p(bn),p(En),p(u1),p(tr,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:[kn]}),n})();const m6={provide:u1,deps:[ur],useFactory:function f6(n){return()=>n.scrollStrategies.reposition()}};let xc=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=dt({type:n}),n.\u0275inj=ct({providers:[ur,m6],imports:[dd,Ja,vb,vb]}),n})();function g6(n,t){}class Tf{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 p1=(()=>{class n extends Sf{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=tb(),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=tb();return e===i||e.contains(i)}_initializeFocusTrap(){this._focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement),this._document&&(this._elementFocusedBeforeDialogWasOpened=tb())}_handleBackdropClicks(){this._overlayRef.backdropClick().subscribe(()=>{this._config.disableClose&&this._recaptureFocus()})}}return n.\u0275fac=function(e){return new(e||n)(p(Xe),p(hb),p(pt,8),p(Tf),p(bf),p(et),p(pd),p(So))},n.\u0275cmp=Ue({type:n,selectors:[["cdk-dialog-container"]],viewQuery:function(e,i){if(1&e&&Te(Is,7),2&e){let r;de(r=he())&&(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:[De],decls:1,vars:0,consts:[["cdkPortalOutlet",""]],template:function(e,i){1&e&&H(0,g6,0,0,"ng-template",0)},dependencies:[Is],styles:[".cdk-dialog-container{display:block;width:100%;height:100%;min-height:inherit;max-height:inherit}"],encapsulation:2}),n})();class Cb{constructor(t,e){this.overlayRef=t,this.config=e,this.closed=new L,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&&!Di(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 f1=new ge("DialogScrollStrategy"),_6=new ge("DialogData"),v6=new ge("DefaultDialogConfig"),b6={provide:f1,deps:[ur],useFactory:function y6(n){return()=>n.scrollStrategies.block()}};let C6=0,m1=(()=>{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 L,this._afterOpenedAtThisLevel=new L,this._ariaHiddenElements=new Map,this.afterAllClosed=la(()=>this.openDialogs.length?this._getAfterAllClosed():this._getAfterAllClosed().pipe(ri(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 Tf,...i}).id=i.id||"cdk-dialog-"+C6++,i.id&&this.getDialogById(i.id);const o=this._getOverlayConfig(i),s=this._overlay.create(o),a=new Cb(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(){wb(this.openDialogs,e=>e.close())}getDialogById(e){return this.openDialogs.find(i=>i.id===e)}ngOnDestroy(){wb(this._openDialogsAtThisLevel,e=>{!1===e.config.closeOnDestroy&&this._removeOpenDialog(e,!1)}),wb(this._openDialogsAtThisLevel,e=>e.close()),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete(),this._openDialogsAtThisLevel=[]}_getOverlayConfig(e){const i=new Tc({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:Tf,useValue:r},{provide:Cb,useValue:i},{provide:pd,useValue:e}];let a;r.container?"function"==typeof r.container?a=r.container:(a=r.container.type,s.push(...r.container.providers(r))):a=p1;const l=new hd(a,r.viewContainerRef,On.create({parent:o||this._injector,providers:s}),r.componentFactoryResolver);return e.attach(l).instance}_attachDialogContent(e,i,r,o){if(e instanceof bn){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 xs(e,null,a,s))}else{const s=this._createInjector(o,i,r,this._injector),a=r.attachComponentPortal(new hd(e,o.viewContainerRef,s,o.componentFactoryResolver));i.componentInstance=a.instance}}_createInjector(e,i,r,o){const s=e.injector||e.viewContainerRef?.injector,a=[{provide:_6,useValue:e.data},{provide:Cb,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(tr,null,yt.Optional))&&a.push({provide:tr,useValue:{value:e.direction,change:Fe()}}),On.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)(T(ur),T(On),T(v6,8),T(n,12),T(Af),T(f1))},n.\u0275prov=me({token:n,factory:n.\u0275fac}),n})();function wb(n,t){let e=n.length;for(;e--;)t(n[e])}let w6=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=dt({type:n}),n.\u0275inj=ct({providers:[m1,b6],imports:[xc,Ja,mb,Ja]}),n})();const E6=["*",[["mat-option"],["ng-container"]]],D6=["*","mat-option, ng-container"];function S6(n,t){if(1&n&&Ae(0,"mat-pseudo-checkbox",4),2&n){const e=w();v("state",e.selected?"checked":"unchecked")("disabled",e.disabled)}}function A6(n,t){if(1&n&&(g(0,"span",5),j(1),_()),2&n){const e=w();f(1),qe("(",e.group.label,")")}}const T6=["*"],I6=new ge("mat-sanity-checks",{providedIn:"root",factory:function x6(){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!nb()&&("boolean"==typeof this._sanityChecks?this._sanityChecks:!!this._sanityChecks[e])}}return n.\u0275fac=function(e){return new(e||n)(T($2),T(I6,8),T(pt))},n.\u0275mod=dt({type:n}),n.\u0275inj=ct({imports:[dd,dd]}),n})();function Ms(n){return class extends n{constructor(...t){super(...t),this._disabled=!1}get disabled(){return this._disabled}set disabled(t){this._disabled=at(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 Wo(n){return class extends n{constructor(...t){super(...t),this._disableRipple=!1}get disableRipple(){return this._disableRipple}set disableRipple(t){this._disableRipple=at(t)}}}function fd(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?As(e):this.defaultTabIndex}}}function Eb(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 md=(()=>{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=me({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),k6=(()=>{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 gd(n,t,e){n.nativeElement.classList.toggle(t,e)}let v1=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=dt({type:n}),n.\u0275inj=ct({imports:[Lt,Lt]}),n})();class O6{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 y1={enterDuration:225,exitDuration:150},Db=Ds({passive:!0}),b1=["mousedown","touchstart"],C1=["mouseup","mouseleave","touchend","touchcancel"];class w1{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=Zn(i))}fadeInRipple(t,e,i={}){const r=this._containerRect=this._containerRect||this._containerElement.getBoundingClientRect(),o={...y1,...i.animation};i.centered&&(t=r.left+r.width/2,e=r.top+r.height/2);const s=i.radius||function L6(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,S=new O6(this,u,i,y);u.style.transform="scale3d(1, 1, 1)",S.state=0,i.persistent||(this._mostRecentTransientRipple=S);let U=null;return!y&&(c||o.exitDuration)&&this._ngZone.runOutsideAngular(()=>{const ee=()=>this._finishRippleTransition(S),ve=()=>this._destroyRipple(S);u.addEventListener("transitionend",ee),u.addEventListener("transitioncancel",ve),U={onTransitionEnd:ee,onTransitionCancel:ve}}),this._activeRipples.set(S,U),(y||!c)&&this._finishRippleTransition(S),S}fadeOutRipple(t){if(2===t.state||3===t.state)return;const e=t.element,i={...y1,...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=Zn(t);!e||e===this._triggerElement||(this._removeTriggerEvents(),this._triggerElement=e,this._registerEvents(b1))}handleEvent(t){"mousedown"===t.type?this._onMousedown(t):"touchstart"===t.type?this._onTouchStart(t):this._onPointerUp(),this._pointerUpEventsRegistered||(this._registerEvents(C1),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=Cf(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,Db)})})}_getActiveRipples(){return Array.from(this._activeRipples.keys())}_removeTriggerEvents(){this._triggerElement&&(b1.forEach(t=>{this._triggerElement.removeEventListener(t,this,Db)}),this._pointerUpEventsRegistered&&C1.forEach(t=>{this._triggerElement.removeEventListener(t,this,Db)}))}}const E1=new ge("mat-ripple-global-options");let Ir=(()=>{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 w1(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(Xe),p(et),p(Fn),p(E1,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=dt({type:n}),n.\u0275inj=ct({imports:[Lt,Lt]}),n})(),D1=(()=>{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})(),Sb=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=dt({type:n}),n.\u0275inj=ct({imports:[Lt]}),n})();const xf=new ge("MAT_OPTION_PARENT_COMPONENT"),F6=Ms(class{});let N6=0,B6=(()=>{class n extends F6{constructor(e){super(),this._labelId="mat-optgroup-label-"+N6++,this._inert=e?.inertGroups??!1}}return n.\u0275fac=function(e){return new(e||n)(p(xf,8))},n.\u0275dir=fe({type:n,inputs:{label:"label"},features:[De]}),n})();const If=new ge("MatOptgroup");let j6=(()=>{class n extends B6{}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:[ot([{provide:If,useExisting:n}]),De],ngContentSelectors:D6,decls:4,vars:2,consts:[["aria-hidden","true",1,"mat-optgroup-label",3,"id"]],template:function(e,i){1&e&&(Pn(E6),g(0,"span",0),j(1),jt(2),_(),jt(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})(),H6=0;class S1{constructor(t,e=!1){this.source=t,this.isUserInput=e}}let V6=(()=>{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-"+H6++,this.onSelectionChange=new He,this._stateChanges=new L}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=at(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)&&!Di(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 S1(this,e))}}return n.\u0275fac=function(e){Kl()},n.\u0275dir=fe({type:n,inputs:{value:"value",id:"id",disabled:"disabled"},outputs:{onSelectionChange:"onSelectionChange"}}),n})(),Mr=(()=>{class n extends V6{constructor(e,i,r,o){super(e,i,r,o)}}return n.\u0275fac=function(e){return new(e||n)(p(Xe),p(It),p(xf,8),p(If,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&&$("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:[De],ngContentSelectors:T6,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,S6,1,2,"mat-pseudo-checkbox",0),g(1,"span",1),jt(2),_(),H(3,A6,2,1,"span",2),Ae(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:[Ir,hn,D1],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 Ab(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 Mf=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=dt({type:n}),n.\u0275inj=ct({imports:[ha,Xi,Lt,Sb]}),n})();class T1{}const ks="*";function $r(n,t){return{type:7,name:n,definitions:t,options:{}}}function _i(n,t=null){return{type:4,styles:t,timings:n}}function x1(n,t=null){return{type:3,steps:n,options:t}}function I1(n,t=null){return{type:2,steps:n,options:t}}function Ft(n){return{type:6,styles:n,offset:null}}function zn(n,t,e){return{type:0,name:n,styles:t,options:e}}function q6(n){return{type:5,steps:n}}function ui(n,t,e=null){return{type:1,expr:n,animation:t,options:e}}function Tb(n=null){return{type:9,options:n}}function xb(n,t,e=null){return{type:11,selector:n,animation:t,options:e}}function M1(n){Promise.resolve(null).then(n)}class _d{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(){M1(()=>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 k1{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?M1(()=>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 z6(n,t){}const Ic={params:{enterAnimationDuration:"150ms",exitAnimationDuration:"75ms"}},G6={dialogContainer:$r("dialogContainer",[zn("void, exit",Ft({opacity:0,transform:"scale(0.7)"})),zn("enter",Ft({transform:"none"})),ui("* => enter",x1([_i("{{enterAnimationDuration}} cubic-bezier(0, 0, 0.2, 1)",Ft({transform:"none",opacity:1})),xb("@*",Tb(),{optional:!0})]),Ic),ui("* => void, * => exit",x1([_i("{{exitAnimationDuration}} cubic-bezier(0.4, 0.0, 0.2, 1)",Ft({opacity:0})),xb("@*",Tb(),{optional:!0})]),Ic)])};class Mc{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=Ic.params.enterAnimationDuration,this.exitAnimationDuration=Ic.params.exitAnimationDuration}}let W6=(()=>{class n extends p1{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(Xe),p(hb),p(pt,8),p(Mc),p(bf),p(et),p(pd),p(So))},n.\u0275cmp=Ue({type:n,selectors:[["ng-component"]],features:[De],decls:0,vars:0,template:function(e,i){},encapsulation:2}),n})(),$6=(()=>{class n extends W6{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||Ic.params.enterAnimationDuration,exitAnimationDuration:this._config.exitAnimationDuration||Ic.params.exitAnimationDuration}}}}return n.\u0275fac=function(e){return new(e||n)(p(Xe),p(hb),p(pt,8),p(Mc),p(bf),p(et),p(pd),p(It),p(So))},n.\u0275cmp=Ue({type:n,selectors:[["mat-dialog-container"]],hostAttrs:["tabindex","-1",1,"mat-dialog-container"],hostVars:7,hostBindings:function(e,i){1&e&&dp("@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),qu("@dialogContainer",i._getAnimationState()))},features:[De],decls:1,vars:0,consts:[["cdkPortalOutlet",""]],template:function(e,i){1&e&&H(0,z6,0,0,"ng-template",0)},dependencies:[Is],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:[G6.dialogContainer]}}),n})();class kf{constructor(t,e,i){this._ref=t,this._containerInstance=i,this._afterOpened=new L,this._beforeClosed=new L,this._state=0,this.disableClose=e.disableClose,this.id=t.id,i._animationStateChanged.pipe(An(r=>"opened"===r.state),an(1)).subscribe(()=>{this._afterOpened.next(),this._afterOpened.complete()}),i._animationStateChanged.pipe(An(r=>"closed"===r.state),an(1)).subscribe(()=>{clearTimeout(this._closeFallbackTimeout),this._finishDialogClose()}),t.overlayRef.detachments().subscribe(()=>{this._beforeClosed.next(this._result),this._beforeClosed.complete(),this._finishDialogClose()}),Mn(this.backdropClick(),this.keydownEvents().pipe(An(r=>27===r.keyCode&&!this.disableClose&&!Di(r)))).subscribe(r=>{this.disableClose||(r.preventDefault(),function K6(n,t,e){n._closeInteractionType=t,n.close(e)}(this,"keydown"===r.type?"keyboard":"mouse"))})}close(t){this._result=t,this._containerInstance._animationStateChanged.pipe(An(e=>"closing"===e.state),an(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}}const Y6=new ge("MatDialogData"),Q6=new ge("mat-dialog-default-options"),R1=new ge("mat-dialog-scroll-strategy"),Z6={provide:R1,deps:[ur],useFactory:function X6(n){return()=>n.scrollStrategies.block()}};let J6=0,tq=(()=>{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 L,this._afterOpenedAtThisLevel=new L,this._idPrefix="mat-dialog-",this.afterAllClosed=la(()=>this.openDialogs.length?this._getAfterAllClosed():this._getAfterAllClosed().pipe(ri(void 0))),this._scrollStrategy=a,this._dialog=i.get(m1)}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 Mc,...i}).id=i.id||`${this._idPrefix}${J6++}`,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:Mc,useValue:i},{provide:Tf,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){Kl()},n.\u0275prov=me({token:n,factory:n.\u0275fac}),n})(),Rs=(()=>{class n extends tq{constructor(e,i,r,o,s,a,l,c){super(e,i,o,a,l,s,kf,$6,Y6,c)}}return n.\u0275fac=function(e){return new(e||n)(T(ur),T(On),T(Ga,8),T(Q6,8),T(R1),T(n,12),T(Af),T(qn,8))},n.\u0275prov=me({token:n,factory:n.\u0275fac}),n})(),nq=0,iq=(()=>{class n{constructor(e,i,r){this._dialogRef=e,this._elementRef=i,this._dialog=r,this.id="mat-dialog-title-"+nq++}ngOnInit(){this._dialogRef||(this._dialogRef=function oq(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}(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(kf,8),p(Xe),p(Rs))},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})(),Rf=(()=>{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})(),rq=(()=>{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})(),O1=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=dt({type:n}),n.\u0275inj=ct({providers:[Rs,Z6],imports:[w6,xc,Ja,Lt,Lt]}),n})();const P1=["toast-component",""];function sq(n,t){if(1&n){const e=ke();g(0,"button",5),$("click",function(){return X(e),Z(w().remove())}),g(1,"span",6),j(2,"\xd7"),_()()}}function aq(n,t){if(1&n&&(fi(0),j(1),mi()),2&n){const e=w(2);f(1),qe("[",e.duplicatesCount+1,"]")}}function lq(n,t){if(1&n&&(g(0,"div"),j(1),H(2,aq,2,1,"ng-container",4),_()),2&n){const e=w();wi(e.options.titleClass),rt("aria-label",e.title),f(1),qe(" ",e.title," "),f(1),v("ngIf",e.duplicatesCount)}}function cq(n,t){if(1&n&&Ae(0,"div",7),2&n){const e=w();wi(e.options.messageClass),v("innerHTML",e.message,h_)}}function uq(n,t){if(1&n&&(g(0,"div",8),j(1),_()),2&n){const e=w();wi(e.options.messageClass),rt("aria-label",e.message),f(1),qe(" ",e.message," ")}}function dq(n,t){if(1&n&&(g(0,"div"),Ae(1,"div",9),_()),2&n){const e=w();f(1),Oi("width",e.width+"%")}}function hq(n,t){if(1&n){const e=ke();g(0,"button",5),$("click",function(){return X(e),Z(w().remove())}),g(1,"span",6),j(2,"\xd7"),_()()}}function pq(n,t){if(1&n&&(fi(0),j(1),mi()),2&n){const e=w(2);f(1),qe("[",e.duplicatesCount+1,"]")}}function fq(n,t){if(1&n&&(g(0,"div"),j(1),H(2,pq,2,1,"ng-container",4),_()),2&n){const e=w();wi(e.options.titleClass),rt("aria-label",e.title),f(1),qe(" ",e.title," "),f(1),v("ngIf",e.duplicatesCount)}}function mq(n,t){if(1&n&&Ae(0,"div",7),2&n){const e=w();wi(e.options.messageClass),v("innerHTML",e.message,h_)}}function gq(n,t){if(1&n&&(g(0,"div",8),j(1),_()),2&n){const e=w();wi(e.options.messageClass),rt("aria-label",e.message),f(1),qe(" ",e.message," ")}}function _q(n,t){if(1&n&&(g(0,"div"),Ae(1,"div",9),_()),2&n){const e=w();f(1),Oi("width",e.width+"%")}}class Of{constructor(t,e,i,r,o,s){this.toastId=t,this.config=e,this.message=i,this.title=r,this.toastType=o,this.toastRef=s,this._onTap=new L,this._onAction=new L,this.toastRef.afterClosed().subscribe(()=>{this._onAction.complete(),this._onTap.complete()})}triggerTap(){this._onTap.next(),this.config.tapToDismiss&&this._onTap.complete()}onTap(){return this._onTap.asObservable()}triggerAction(t){this._onAction.next(t)}onAction(){return this._onAction.asObservable()}}const Mb={maxOpened:0,autoDismiss:!1,newestOnTop:!0,preventDuplicates:!1,countDuplicates:!1,resetTimeoutOnDuplicate:!1,includeTitleDuplicates:!1,iconClasses:{error:"toast-error",info:"toast-info",success:"toast-success",warning:"toast-warning"},closeButton:!1,disableTimeOut:!1,timeOut:5e3,extendedTimeOut:1e3,enableHtml:!1,progressBar:!1,toastClass:"ngx-toastr",positionClass:"toast-top-right",titleClass:"toast-title",messageClass:"toast-message",easing:"ease-in",easeTime:300,tapToDismiss:!0,onActivateTick:!1,progressAnimation:"decreasing"},vd=new ge("ToastConfig");class vq{constructor(t,e){this.component=t,this.injector=e}attach(t,e){return this._attachedHost=t,t.attach(this,e)}detach(){const t=this._attachedHost;if(t)return this._attachedHost=void 0,t.detach()}get isAttached(){return null!=this._attachedHost}setAttachedHost(t){this._attachedHost=t}}class bq extends class yq{attach(t,e){return this._attachedPortal=t,this.attachComponentPortal(t,e)}detach(){this._attachedPortal&&this._attachedPortal.setAttachedHost(),this._attachedPortal=void 0,this._disposeFn&&(this._disposeFn(),this._disposeFn=void 0)}setDisposeFn(t){this._disposeFn=t}}{constructor(t,e,i){super(),this._hostDomElement=t,this._componentFactoryResolver=e,this._appRef=i}attachComponentPortal(t,e){const i=this._componentFactoryResolver.resolveComponentFactory(t.component);let r;return r=i.create(t.injector),this._appRef.attachView(r.hostView),this.setDisposeFn(()=>{this._appRef.detachView(r.hostView),r.destroy()}),e?this._hostDomElement.insertBefore(this._getComponentRootNode(r),this._hostDomElement.firstChild):this._hostDomElement.appendChild(this._getComponentRootNode(r)),r}_getComponentRootNode(t){return t.hostView.rootNodes[0]}}let L1=(()=>{class n{constructor(e){this._document=e}ngOnDestroy(){this._containerElement&&this._containerElement.parentNode&&this._containerElement.parentNode.removeChild(this._containerElement)}getContainerElement(){return this._containerElement||this._createContainer(),this._containerElement}_createContainer(){const e=this._document.createElement("div");e.classList.add("overlay-container"),this._document.body.appendChild(e),this._containerElement=e}}return n.\u0275fac=function(e){return new(e||n)(T(pt))},n.\u0275prov=me({factory:function(){return new n(T(pt))},token:n,providedIn:"root"}),n})();class Cq{constructor(t){this._portalHost=t}attach(t,e=!0){return this._portalHost.attach(t,e)}detach(){return this._portalHost.detach()}}let F1=(()=>{class n{constructor(e,i,r,o){this._overlayContainer=e,this._componentFactoryResolver=i,this._appRef=r,this._document=o,this._paneElements=new Map}create(e,i){return this._createOverlayRef(this.getPaneElement(e,i))}getPaneElement(e="",i){return this._paneElements.get(i)||this._paneElements.set(i,{}),this._paneElements.get(i)[e]||(this._paneElements.get(i)[e]=this._createPaneElement(e,i)),this._paneElements.get(i)[e]}_createPaneElement(e,i){const r=this._document.createElement("div");return r.id="toast-container",r.classList.add(e),r.classList.add("toast-container"),i?i.getContainerElement().appendChild(r):this._overlayContainer.getContainerElement().appendChild(r),r}_createPortalHost(e){return new bq(e,this._componentFactoryResolver,this._appRef)}_createOverlayRef(e){return new Cq(this._createPortalHost(e))}}return n.\u0275fac=function(e){return new(e||n)(T(L1),T(ho),T(ia),T(pt))},n.\u0275prov=me({factory:function(){return new n(T(L1),T(ho),T(ia),T(pt))},token:n,providedIn:"root"}),n})();class wq{constructor(t){this._overlayRef=t,this.duplicatesCount=0,this._afterClosed=new L,this._activate=new L,this._manualClose=new L,this._resetTimeout=new L,this._countDuplicate=new L}manualClose(){this._manualClose.next(),this._manualClose.complete()}manualClosed(){return this._manualClose.asObservable()}timeoutReset(){return this._resetTimeout.asObservable()}countDuplicate(){return this._countDuplicate.asObservable()}close(){this._overlayRef.detach(),this._afterClosed.next(),this._manualClose.next(),this._afterClosed.complete(),this._manualClose.complete(),this._activate.complete(),this._resetTimeout.complete(),this._countDuplicate.complete()}afterClosed(){return this._afterClosed.asObservable()}isInactive(){return this._activate.isStopped}activate(){this._activate.next(),this._activate.complete()}afterActivate(){return this._activate.asObservable()}onDuplicate(t,e){t&&this._resetTimeout.next(),e&&this._countDuplicate.next(++this.duplicatesCount)}}class Eq{constructor(t,e){this._toastPackage=t,this._parentInjector=e}get(t,e,i){return t===Of?this._toastPackage:this._parentInjector.get(t,e,i)}}let kb=(()=>{class n{constructor(e,i,r,o,s){this.overlay=i,this._injector=r,this.sanitizer=o,this.ngZone=s,this.currentlyActive=0,this.toasts=[],this.index=0,this.toastrConfig=Object.assign(Object.assign({},e.default),e.config),e.config.iconClasses&&(this.toastrConfig.iconClasses=Object.assign(Object.assign({},e.default.iconClasses),e.config.iconClasses))}show(e,i,r={},o=""){return this._preBuildNotification(o,e,i,this.applyConfig(r))}success(e,i,r={}){return this._preBuildNotification(this.toastrConfig.iconClasses.success||"",e,i,this.applyConfig(r))}error(e,i,r={}){return this._preBuildNotification(this.toastrConfig.iconClasses.error||"",e,i,this.applyConfig(r))}info(e,i,r={}){return this._preBuildNotification(this.toastrConfig.iconClasses.info||"",e,i,this.applyConfig(r))}warning(e,i,r={}){return this._preBuildNotification(this.toastrConfig.iconClasses.warning||"",e,i,this.applyConfig(r))}clear(e){for(const i of this.toasts)if(void 0!==e){if(i.toastId===e)return void i.toastRef.manualClose()}else i.toastRef.manualClose()}remove(e){const i=this._findToast(e);if(!i||(i.activeToast.toastRef.close(),this.toasts.splice(i.index,1),this.currentlyActive=this.currentlyActive-1,!this.toastrConfig.maxOpened||!this.toasts.length))return!1;if(this.currentlyActivethis._buildNotification(e,i,r,o)):this._buildNotification(e,i,r,o)}_buildNotification(e,i,r,o){if(!o.toastComponent)throw new Error("toastComponent required");const s=this.findDuplicate(r,i,this.toastrConfig.resetTimeoutOnDuplicate&&o.timeOut>0,this.toastrConfig.countDuplicates);if((this.toastrConfig.includeTitleDuplicates&&r||i)&&this.toastrConfig.preventDuplicates&&null!==s)return s;this.previousToastMessage=i;let a=!1;this.toastrConfig.maxOpened&&this.currentlyActive>=this.toastrConfig.maxOpened&&(a=!0,this.toastrConfig.autoDismiss&&this.clear(this.toasts[0].toastId));const l=this.overlay.create(o.positionClass,this.overlayContainer);this.index=this.index+1;let c=i;i&&o.enableHtml&&(c=this.sanitizer.sanitize(sn.HTML,i));const u=new wq(l),d=new Of(this.index,o,c,r,e,u),h=new Eq(d,this._injector),m=new vq(o.toastComponent,h),y=l.attach(m,this.toastrConfig.newestOnTop);u.componentInstance=y.instance;const S={toastId:this.index,title:r||"",message:i||"",toastRef:u,onShown:u.afterActivate(),onHidden:u.afterClosed(),onTap:d.onTap(),onAction:d.onAction(),portal:y};return a||(this.currentlyActive=this.currentlyActive+1,setTimeout(()=>{S.toastRef.activate()})),this.toasts.push(S),S}}return n.\u0275fac=function(e){return new(e||n)(T(vd),T(F1),T(On),T($a),T(et))},n.\u0275prov=me({factory:function(){return new n(T(vd),T(F1),T(p_),T($a),T(et))},token:n,providedIn:"root"}),n})(),Dq=(()=>{class n{constructor(e,i,r){this.toastrService=e,this.toastPackage=i,this.ngZone=r,this.width=-1,this.toastClasses="",this.state={value:"inactive",params:{easeTime:this.toastPackage.config.easeTime,easing:"ease-in"}},this.message=i.message,this.title=i.title,this.options=i.config,this.originalTimeout=i.config.timeOut,this.toastClasses=`${i.toastType} ${i.config.toastClass}`,this.sub=i.toastRef.afterActivate().subscribe(()=>{this.activateToast()}),this.sub1=i.toastRef.manualClosed().subscribe(()=>{this.remove()}),this.sub2=i.toastRef.timeoutReset().subscribe(()=>{this.resetTimeout()}),this.sub3=i.toastRef.countDuplicate().subscribe(o=>{this.duplicatesCount=o})}get displayStyle(){if("inactive"===this.state.value)return"none"}ngOnDestroy(){this.sub.unsubscribe(),this.sub1.unsubscribe(),this.sub2.unsubscribe(),this.sub3.unsubscribe(),clearInterval(this.intervalId),clearTimeout(this.timeout)}activateToast(){this.state=Object.assign(Object.assign({},this.state),{value:"active"}),!0!==this.options.disableTimeOut&&"timeOut"!==this.options.disableTimeOut&&this.options.timeOut&&(this.outsideTimeout(()=>this.remove(),this.options.timeOut),this.hideTime=(new Date).getTime()+this.options.timeOut,this.options.progressBar&&this.outsideInterval(()=>this.updateProgress(),10))}updateProgress(){if(0===this.width||100===this.width||!this.options.timeOut)return;const e=(new Date).getTime();this.width=(this.hideTime-e)/this.options.timeOut*100,"increasing"===this.options.progressAnimation&&(this.width=100-this.width),this.width<=0&&(this.width=0),this.width>=100&&(this.width=100)}resetTimeout(){clearTimeout(this.timeout),clearInterval(this.intervalId),this.state=Object.assign(Object.assign({},this.state),{value:"active"}),this.outsideTimeout(()=>this.remove(),this.originalTimeout),this.options.timeOut=this.originalTimeout,this.hideTime=(new Date).getTime()+(this.options.timeOut||0),this.width=-1,this.options.progressBar&&this.outsideInterval(()=>this.updateProgress(),10)}remove(){"removed"!==this.state.value&&(clearTimeout(this.timeout),this.state=Object.assign(Object.assign({},this.state),{value:"removed"}),this.outsideTimeout(()=>this.toastrService.remove(this.toastPackage.toastId),+this.toastPackage.config.easeTime))}tapToast(){"removed"!==this.state.value&&(this.toastPackage.triggerTap(),this.options.tapToDismiss&&this.remove())}stickAround(){"removed"!==this.state.value&&(clearTimeout(this.timeout),this.options.timeOut=0,this.hideTime=0,clearInterval(this.intervalId),this.width=0)}delayedHideToast(){!0===this.options.disableTimeOut||"extendedTimeOut"===this.options.disableTimeOut||0===this.options.extendedTimeOut||"removed"===this.state.value||(this.outsideTimeout(()=>this.remove(),this.options.extendedTimeOut),this.options.timeOut=this.options.extendedTimeOut,this.hideTime=(new Date).getTime()+(this.options.timeOut||0),this.width=-1,this.options.progressBar&&this.outsideInterval(()=>this.updateProgress(),10))}outsideTimeout(e,i){this.ngZone?this.ngZone.runOutsideAngular(()=>this.timeout=setTimeout(()=>this.runInsideAngular(e),i)):this.timeout=setTimeout(()=>e(),i)}outsideInterval(e,i){this.ngZone?this.ngZone.runOutsideAngular(()=>this.intervalId=setInterval(()=>this.runInsideAngular(e),i)):this.intervalId=setInterval(()=>e(),i)}runInsideAngular(e){this.ngZone?this.ngZone.run(()=>e()):e()}}return n.\u0275fac=function(e){return new(e||n)(p(kb),p(Of),p(et))},n.\u0275cmp=Ue({type:n,selectors:[["","toast-component",""]],hostVars:5,hostBindings:function(e,i){1&e&&$("click",function(){return i.tapToast()})("mouseenter",function(){return i.stickAround()})("mouseleave",function(){return i.delayedHideToast()}),2&e&&(qu("@flyInOut",i.state),wi(i.toastClasses),Oi("display",i.displayStyle))},attrs:P1,decls:5,vars:5,consts:[["class","toast-close-button","aria-label","Close",3,"click",4,"ngIf"],[3,"class",4,"ngIf"],["role","alertdialog","aria-live","polite",3,"class","innerHTML",4,"ngIf"],["role","alertdialog","aria-live","polite",3,"class",4,"ngIf"],[4,"ngIf"],["aria-label","Close",1,"toast-close-button",3,"click"],["aria-hidden","true"],["role","alertdialog","aria-live","polite",3,"innerHTML"],["role","alertdialog","aria-live","polite"],[1,"toast-progress"]],template:function(e,i){1&e&&(H(0,sq,3,0,"button",0),H(1,lq,3,5,"div",1),H(2,cq,1,3,"div",2),H(3,uq,2,4,"div",3),H(4,dq,2,2,"div",4)),2&e&&(v("ngIf",i.options.closeButton),f(1),v("ngIf",i.title),f(1),v("ngIf",i.message&&i.options.enableHtml),f(1),v("ngIf",i.message&&!i.options.enableHtml),f(1),v("ngIf",i.options.progressBar))},dependencies:[hn],encapsulation:2,data:{animation:[$r("flyInOut",[zn("inactive",Ft({opacity:0})),zn("active",Ft({opacity:1})),zn("removed",Ft({opacity:0})),ui("inactive => active",_i("{{ easeTime }}ms {{ easing }}")),ui("active => removed",_i("{{ easeTime }}ms {{ easing }}"))])]}}),n})();const Sq=Object.assign(Object.assign({},Mb),{toastComponent:Dq});let N1=(()=>{class n{static forRoot(e={}){return{ngModule:n,providers:[{provide:vd,useValue:{default:Sq,config:e}}]}}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=dt({type:n}),n.\u0275inj=ct({imports:[Xi]}),n})(),Aq=(()=>{class n{constructor(e,i,r){this.toastrService=e,this.toastPackage=i,this.appRef=r,this.width=-1,this.toastClasses="",this.state="inactive",this.message=i.message,this.title=i.title,this.options=i.config,this.originalTimeout=i.config.timeOut,this.toastClasses=`${i.toastType} ${i.config.toastClass}`,this.sub=i.toastRef.afterActivate().subscribe(()=>{this.activateToast()}),this.sub1=i.toastRef.manualClosed().subscribe(()=>{this.remove()}),this.sub2=i.toastRef.timeoutReset().subscribe(()=>{this.resetTimeout()}),this.sub3=i.toastRef.countDuplicate().subscribe(o=>{this.duplicatesCount=o})}get displayStyle(){if("inactive"===this.state)return"none"}ngOnDestroy(){this.sub.unsubscribe(),this.sub1.unsubscribe(),this.sub2.unsubscribe(),this.sub3.unsubscribe(),clearInterval(this.intervalId),clearTimeout(this.timeout)}activateToast(){this.state="active",!(!0===this.options.disableTimeOut||"timeOut"===this.options.disableTimeOut)&&this.options.timeOut&&(this.timeout=setTimeout(()=>{this.remove()},this.options.timeOut),this.hideTime=(new Date).getTime()+this.options.timeOut,this.options.progressBar&&(this.intervalId=setInterval(()=>this.updateProgress(),10))),this.options.onActivateTick&&this.appRef.tick()}updateProgress(){if(0===this.width||100===this.width||!this.options.timeOut)return;const e=(new Date).getTime();this.width=(this.hideTime-e)/this.options.timeOut*100,"increasing"===this.options.progressAnimation&&(this.width=100-this.width),this.width<=0&&(this.width=0),this.width>=100&&(this.width=100)}resetTimeout(){clearTimeout(this.timeout),clearInterval(this.intervalId),this.state="active",this.options.timeOut=this.originalTimeout,this.timeout=setTimeout(()=>this.remove(),this.originalTimeout),this.hideTime=(new Date).getTime()+(this.originalTimeout||0),this.width=-1,this.options.progressBar&&(this.intervalId=setInterval(()=>this.updateProgress(),10))}remove(){"removed"!==this.state&&(clearTimeout(this.timeout),this.state="removed",this.timeout=setTimeout(()=>this.toastrService.remove(this.toastPackage.toastId)))}tapToast(){"removed"!==this.state&&(this.toastPackage.triggerTap(),this.options.tapToDismiss&&this.remove())}stickAround(){"removed"!==this.state&&(clearTimeout(this.timeout),this.options.timeOut=0,this.hideTime=0,clearInterval(this.intervalId),this.width=0)}delayedHideToast(){!0===this.options.disableTimeOut||"extendedTimeOut"===this.options.disableTimeOut||0===this.options.extendedTimeOut||"removed"===this.state||(this.timeout=setTimeout(()=>this.remove(),this.options.extendedTimeOut),this.options.timeOut=this.options.extendedTimeOut,this.hideTime=(new Date).getTime()+(this.options.timeOut||0),this.width=-1,this.options.progressBar&&(this.intervalId=setInterval(()=>this.updateProgress(),10)))}}return n.\u0275fac=function(e){return new(e||n)(p(kb),p(Of),p(ia))},n.\u0275cmp=Ue({type:n,selectors:[["","toast-component",""]],hostVars:4,hostBindings:function(e,i){1&e&&$("click",function(){return i.tapToast()})("mouseenter",function(){return i.stickAround()})("mouseleave",function(){return i.delayedHideToast()}),2&e&&(wi(i.toastClasses),Oi("display",i.displayStyle))},attrs:P1,decls:5,vars:5,consts:[["class","toast-close-button","aria-label","Close",3,"click",4,"ngIf"],[3,"class",4,"ngIf"],["role","alert","aria-live","polite",3,"class","innerHTML",4,"ngIf"],["role","alert","aria-live","polite",3,"class",4,"ngIf"],[4,"ngIf"],["aria-label","Close",1,"toast-close-button",3,"click"],["aria-hidden","true"],["role","alert","aria-live","polite",3,"innerHTML"],["role","alert","aria-live","polite"],[1,"toast-progress"]],template:function(e,i){1&e&&(H(0,hq,3,0,"button",0),H(1,fq,3,5,"div",1),H(2,mq,1,3,"div",2),H(3,gq,2,4,"div",3),H(4,_q,2,2,"div",4)),2&e&&(v("ngIf",i.options.closeButton),f(1),v("ngIf",i.title),f(1),v("ngIf",i.message&&i.options.enableHtml),f(1),v("ngIf",i.message&&!i.options.enableHtml),f(1),v("ngIf",i.options.progressBar))},dependencies:[hn],encapsulation:2}),n})();Object.assign(Object.assign({},Mb),{toastComponent:Aq});let en=(()=>{class n{constructor(e,i,r){this.toastr=e,this.globals=i,this.lsm=r,this.toastrObj={timeOut:3e3,positionClass:"toast-bottom-center",preventDuplicates:!0,progressBar:!0,closeButton:!0,maxOpen:0,newestOnTop:!1,enableHtml:!0},this.defaultTitle="",this.connectionTimeout=null,this.waitForAsyncMessage()}showError(e,i=this.defaultTitle,r,o=3e3){if((null===e||""===e?.trim())&&(e="An error occurred. Please try again."),r){const s={};Object.assign(s,this.toastrObj),s.disableTimeOut=!0,this.toastr.error(e,i,s)}else this.toastrObj.timeOut=o,this.toastr.error(e,i,this.toastrObj)}waitForAsyncMessage(){setInterval(()=>{let e=this.lsm.getValue(Zt.asyncMessage);if(e){let i=JSON.parse(e);switch(i.type){case dr.error:this.showError(i.message,"",void 0,1e4);break;case dr.info:this.showInfo(i.message);break;case dr.success:let o=(i.message.split(" ").length-1)/3*1e3;this.showSuccess(i.message,"",o);break;case dr.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){this.toastr.info(e,i,this.toastrObj)}showSuccess(e,i=this.defaultTitle,r=3e3){this.toastrObj.timeOut=r,this.toastr.success(e,i,this.toastrObj)}showWarning(e,i=this.defaultTitle){this.toastr.warning(e,i,this.toastrObj)}showCommon(e,i=this.defaultTitle){this.toastr.show(e,i,this.toastrObj)}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)}getTimeoutMS(){return this.toastrObj.timeOut}clearToasts(){this.toastr.clear()}changeClass(e){this.toastrObj.positionClass=e}}return n.\u0275fac=function(e){return new(e||n)(T(kb),T(ht),T(Ji))},n.\u0275prov=me({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();var dr=(()=>(function(n){n.error="Error",n.info="Info",n.success="Success",n.warning="Warning"}(dr||(dr={})),dr))();function Tn(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 H1=new Set(["graph.microsoft.com","graph.microsoft.us","dod-graph.microsoft.us","graph.microsoft.de","microsoftgraph.chinacloudapi.cn"]),Rq=["$select","$expand","$orderby","$filter","$top","$skip","$skipToken","$count"],Ob=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 tl{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 V1=(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 nl=(()=>(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"}(nl||(nl={})),nl))();class pa{constructor(){this.featureUsage=nl.NONE}static updateFeatureUsageFlag(t,e){let i;t.middlewareControl instanceof tl?i=t.middlewareControl.getMiddlewareOptions(pa):t.middlewareControl=new tl,typeof i>"u"&&(i=new pa,t.middlewareControl.setMiddlewareOptions(pa,i)),i.setFeatureUsage(e)}setFeatureUsage(t){this.featureUsage=this.featureUsage|t}getFeatureUsage(){return this.featureUsage.toString(16)}}let Bq=(()=>{class n{execute(e){return Tn(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})(),U1(e.request,e.options,n.CLIENT_REQUEST_ID_HEADER,r));let s,o=`${n.PRODUCT_NAME}/2.2.1`;if(e.middlewareControl instanceof tl&&(s=e.middlewareControl.getMiddlewareOptions(pa)),s){const a=s.getFeatureUsage();o+=` (${n.FEATURE_USAGE_STRING}=${a})`}q1(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 Hq{constructor(t){this.provider=t}getAccessToken(){return Tn(this,void 0,void 0,function*(){return new Promise((t,e)=>{this.provider((i,r)=>{r?t(r):e(i)})})})}}class yd extends Error{constructor(t=-1,e,i){super(e||i&&i.message),Object.setPrototypeOf(this,yd.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 Lf{static constructError(t,e){const i=new yd(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 yd(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 Tn(this,void 0,void 0,function*(){let r;if(r=t&&t.error?Lf.constructErrorFromResponse(t,e):typeof Error<"u"&&t instanceof Error?Lf.constructError(t,e):new yd(e),"function"!=typeof i)return r;i(r,null)})}}var Kr=(()=>(function(n){n.ARRAYBUFFER="arraybuffer",n.BLOB="blob",n.DOCUMENT="document",n.JSON="json",n.RAW="raw",n.STREAM="stream",n.TEXT="text"}(Kr||(Kr={})),Kr))(),Ff=(()=>(function(n){n.TEXT_HTML="text/html",n.TEXT_XML="text/xml",n.APPLICATION_XML="application/xml",n.APPLICATION_XHTML="application/xhtml+xml"}(Ff||(Ff={})),Ff))(),bd=(()=>(function(n){n.TEXT_PLAIN="text/plain",n.APPLICATION_JSON="application/json"}(bd||(bd={})),bd))(),Cd=(()=>(function(n){n.DOCUMENT="^(text\\/(html|xml))|(application\\/(xml|xhtml\\+xml))$",n.IMAGE="^image\\/.+"}(Cd||(Cd={})),Cd))();class wd{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 Tn(this,void 0,void 0,function*(){if(204===t.status)return Promise.resolve();let i;try{switch(e){case Kr.ARRAYBUFFER:i=yield t.arrayBuffer();break;case Kr.BLOB:i=yield t.blob();break;case Kr.DOCUMENT:i=yield wd.parseDocumentResponse(t,Ff.TEXT_XML);break;case Kr.JSON:i=yield t.json();break;case Kr.STREAM:i=yield Promise.resolve(t.body);break;case Kr.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(Cd.DOCUMENT).test(o)?yield wd.parseDocumentResponse(t,o):new RegExp(Cd.IMAGE).test(o)?t.blob():o===bd.TEXT_PLAIN?yield t.text():o===bd.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 Tn(this,void 0,void 0,function*(){try{if(e===Kr.RAW)return Promise.resolve(t);{const r=yield wd.convertResponse(t,e);if(!t.ok)throw r;if("function"!=typeof i)return r;i(null,r)}}catch(r){throw r}})}}var hr=(()=>(function(n){n.GET="GET",n.PATCH="PATCH",n.POST="POST",n.PUT="PUT",n.DELETE="DELETE"}(hr||(hr={})),hr))();class Vq{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!==Rq.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 Tn(this,void 0,void 0,function*(){try{let i,r,o;e.middlewareControl instanceof tl&&(i=e.middlewareControl.getMiddlewareOptions(Uq)),typeof i<"u"&&(r=i.authenticationProvider,o=i.authenticationProviderOptions),typeof r>"u"&&(r=this.authenticationProvider);const a=`Bearer ${yield r.getAccessToken(o)}`;return q1(e.request,e.options,n.AUTHORIZATION_HEADER,a),pa.updateFeatureUsageFlag(e,nl.AUTHENTICATION_HANDLER_ENABLED),yield this.nextMiddleware.execute(e)}catch(i){throw i}})}setNext(e){this.nextMiddleware=e}}return n.AUTHORIZATION_HEADER="Authorization",n})();class zq{execute(t){return Tn(this,void 0,void 0,function*(){try{return void(t.response=yield fetch(t.request,t.options))}catch(e){throw e}})}}let Nf=(()=>{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})(),Pb=(()=>{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})(),Gq=(()=>{class n{constructor(e=new Nf){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 Tn(this,void 0,void 0,function*(){i.request="string"==typeof i.request?e:yield((n,t)=>Tn(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 tl&&(i=e.middlewareControl.getMiddlewareOptions(Nf)),typeof i>"u"&&(i=Object.assign(new Nf,this.options)),i}executeWithRedirect(e,i,r){return Tn(this,void 0,void 0,function*(){try{yield this.nextMiddleware.execute(e);const o=e.response;if(!(i{class n{constructor(e=new Pb){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===hr.PUT||r===hr.PATCH||r===hr.POST)&&"application/octet-stream"===V1(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 Tn(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 tl&&(i=e.middlewareControl.getMiddlewareOptions(this.options.constructor)),typeof i>"u"&&(i=Object.assign(new Pb,this.options)),i}executeWithRetry(e,i,r){return Tn(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=Lb.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 z1(...[].concat(t.middleware))}this.httpClient=e}static init(t){const e={};for(const i in t)t.hasOwnProperty(i)&&(e[i]="authProvider"===i?new Hq(t[i]):t[i]);return Bf.initWithMiddleware(e)}static initWithMiddleware(t){try{return new Bf(t)}catch(e){throw e}}api(t){return new Vq(this.httpClient,this.config,t)}}class Yq{}var Fb=function(n,t){return(Fb=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 pr(n,t){function e(){this.constructor=n}Fb(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"}($o||($o={})),$o))(),oi=(()=>(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"}(oi||(oi={})),oi))(),Dd=(()=>(function(n){n.COMMON="common",n.ORGANIZATIONS="organizations",n.CONSUMERS="consumers"}(Dd||(Dd={})),Dd))(),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))(),il=(()=>(function(n){n.ACCESS_TOKEN="access_token",n.XMS_CC="xms_cc"}(il||(il={})),il))(),Li={LOGIN:"login",SELECT_ACCOUNT:"select_account",CONSENT:"consent",NONE:"none",CREATE:"create"},kc=(()=>(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"}(kc||(kc={})),kc))(),W1={PLAIN:"plain",S256:"S256"},Sd=(()=>(function(n){n.QUERY="query",n.FRAGMENT="fragment",n.FORM_POST="form_post"}(Sd||(Sd={})),Sd))(),Ad=(()=>(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"}(Ad||(Ad={})),Ad))(),Ko=(()=>(function(n){n.MSSTS_ACCOUNT_TYPE="MSSTS",n.ADFS_ACCOUNT_TYPE="ADFS",n.MSAV1_ACCOUNT_TYPE="MSA",n.GENERIC_ACCOUNT_TYPE="Generic"}(Ko||(Ko={})),Ko))(),fr=(()=>(function(n){n.CACHE_KEY_SEPARATOR="-",n.CLIENT_INFO_SEPARATOR="."}(fr||(fr={})),fr))(),qt=(()=>(function(n){n.ID_TOKEN="IdToken",n.ACCESS_TOKEN="AccessToken",n.ACCESS_TOKEN_WITH_AUTH_SCHEME="AccessToken_With_AuthScheme",n.REFRESH_TOKEN="RefreshToken"}(qt||(qt={})),qt))(),fa=(()=>(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"}(fa||(fa={})),fa))(),Yo=(()=>(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"}(Yo||(Yo={})),Yo))(),Nb="appmetadata",kr=(()=>(function(n){n.CONFIG="config",n.CACHE="cache",n.NETWORK="network",n.HARDCODED_VALUES="hardcoded_values"}(kr||(kr={})),kr))(),Si={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"},mn=(()=>(function(n){n.BEARER="Bearer",n.POP="pop",n.SSH="ssh-cert"}(mn||(mn={})),mn))(),Id=(()=>(function(n){n.username="username",n.password="password"}(Id||(Id={})),Id))(),rl=(()=>(function(n){n[n.httpSuccess=200]="httpSuccess",n[n.httpBadRequest=400]="httpBadRequest"}(rl||(rl={})),rl))(),Os=(()=>(function(n){n.FAILED_AUTO_DETECTION="1",n.INTERNAL_CACHE="2",n.ENVIRONMENT_VARIABLE="3",n.IMDS="4"}(Os||(Os={})),Os))(),ma=(()=>(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"}(ma||(ma={})),ma))(),ga=(()=>(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"}(ga||(ga={})),ga))(),Vf=(()=>(function(n){n.Jwt="JWT",n.Jwk="JWK"}(Vf||(Vf={})),Vf))(),Md_CHANNEL_ID="53ee284d-920a-4b59-9d30-a60315b26836",Qo=(()=>(function(n){n.HandshakeRequest="Handshake",n.HandshakeResponse="HandshakeResponse",n.GetToken="GetToken",n.Response="Response"}(Qo||(Qo={})),Qo))(),Ai=(()=>(function(n){n.LocalStorage="localStorage",n.SessionStorage="sessionStorage",n.MemoryStorage="memoryStorage"}(Ai||(Ai={})),Ai))(),Ao=(()=>(function(n){n.GET="GET",n.POST="POST"}(Ao||(Ao={})),Ao))(),ln=(()=>(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"}(ln||(ln={})),ln))(),ol=(()=>(function(n){n.WRAPPER_SKU="wrapper.sku",n.WRAPPER_VER="wrapper.version"}(ol||(ol={})),ol))(),Cn=(()=>(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"}(Cn||(Cn={})),Cn))(),$e=(()=>(function(n){n.Redirect="redirect",n.Popup="popup",n.Silent="silent",n.None="none"}($e||($e={})),$e))(),vi=(()=>(function(n){n.Startup="startup",n.Login="login",n.Logout="logout",n.AcquireToken="acquireToken",n.SsoSilent="ssoSilent",n.HandleRedirect="handleRedirect",n.None="none"}(vi||(vi={})),vi))(),K1={scopes:Ed},Uf="jwk",qf=(()=>(function(n){n.React="@azure/msal-react",n.Angular="@azure/msal-angular"}(qf||(qf={})),qf))(),zf="msal.db",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))(),Jq=function(){function n(){}return n.getInteractionStatusFromEvent=function(t,e){switch(t.eventType){case st.LOGIN_START:return vi.Login;case st.SSO_SILENT_START:return vi.SsoSilent;case st.ACQUIRE_TOKEN_START:if(t.interactionType===$e.Redirect||t.interactionType===$e.Popup)return vi.AcquireToken;break;case st.HANDLE_REDIRECT_START:return vi.HandleRedirect;case st.LOGOUT_START:return vi.Logout;case st.SSO_SILENT_SUCCESS:case st.SSO_SILENT_FAILURE:if(e&&e!==vi.SsoSilent)break;return vi.None;case st.LOGOUT_END:if(e&&e!==vi.Logout)break;return vi.None;case st.HANDLE_REDIRECT_END:if(e&&e!==vi.HandleRedirect)break;return vi.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!==vi.Login&&e!==vi.AcquireToken)break;return vi.None}}return null},n}(),Bb=function(n,t){return(Bb=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 Ti(n,t){function e(){this.constructor=n}Bb(n,t),n.prototype=null===t?Object.create(t):(e.prototype=t.prototype,new e)}var lt=function(){return lt=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 Y1(){for(var n=[],t=0;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}(),rn=function(){function n(t){if(this._urlString=t,Ke.isEmpty(this._urlString))throw xn.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 xn.createUrlParseError(e)}if(!t.HostNameAndPort||!t.PathSegments)throw xn.createUrlParseError("Given url string: "+this.urlString);if(!t.Protocol||"https:"!==t.Protocol.toLowerCase())throw xn.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]===Dd.COMMON||i[0]===Dd.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 xn.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 xn.createUrlParseError("Given url string: "+t);return i[2]},n.getAbsoluteUrl=function(t,e){if(t[0]===te.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):te.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 it.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}(),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 Ti(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),n9=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:Ao.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||te.EMPTY_STRING,a.label=1;case 1:return a.trys.push([1,3,,4]),[4,fetch(t,{method:Ao.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}(),i9=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,Ao.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,Ao.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===Ao.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===Ao.POST?ze.createPostRequestFailedError("Failed with status "+a.status,t):ze.createGetRequestFailedError("Failed with status "+a.status,t)):s(ze.createNoNetworkConnectivityError())},e===Ao.POST&&i&&i.body)a.send(i.body);else{if(e!==Ao.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}(),Nn=function(){function n(){}return n.clearHash=function(t){t.location.hash=te.EMPTY_STRING,"function"==typeof t.history.replaceState&&t.history.replaceState(null,te.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("#"):te.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 rn(window.location.href).getUrlComponents();return e.Protocol+"//"+e.HostNameAndPort+"/"},n.getBrowserNetworkClient=function(){return window.fetch&&window.Headers?new n9:new i9},n.blockReloadInHiddenIframes=function(){if(rn.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}();function Ps(n){return function(e){const i=new r9(n),r=e.lift(i);return i.caught=r}}class r9{constructor(t){this.selector=t}call(t,e){return e.subscribe(new o9(t,this.selector,this.caught))}}class o9 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 Rc=(()=>{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 $f(n=null){return t=>t.lift(new s9(n))}class s9{constructor(t){this.defaultValue=t}call(t,e){return e.subscribe(new a9(t,this.defaultValue))}}class a9 extends A{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 Q1(n=u9){return t=>t.lift(new l9(n))}class l9{constructor(t){this.errorFactory=t}call(t,e){return e.subscribe(new c9(t,this.errorFactory))}}class c9 extends A{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 u9(){return new Rc}function _a(n,t){const e=arguments.length>=2;return i=>i.pipe(n?An((r,o)=>n(r,o,i)):Ce,an(1),e?$f(t):Q1(()=>new Rc))}function X1(n,t){let e=!1;return arguments.length>=2&&(e=!0),function(r){return r.lift(new d9(n,t,e))}}class d9{constructor(t,e,i=!1){this.accumulator=t,this.seed=e,this.hasSeed=i}call(t,e){return e.subscribe(new h9(t,this.accumulator,this.seed,this.hasSeed))}}class h9 extends A{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 jb(n){return function(e){return 0===n?rf():e.lift(new p9(n))}}class p9{constructor(t){if(this.total=t,this.total<0)throw new C2}call(t,e){return e.subscribe(new f9(t,this.total))}}class f9 extends A{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?An((r,o)=>n(r,o,i)):Ce,jb(1),e?$f(t):Q1(()=>new Rc))}class g9{constructor(t){this.value=t}call(t,e){return e.subscribe(new _9(t,this.value))}}class _9 extends A{constructor(t,e){super(t),this.value=e}_next(t){this.destination.next(this.value)}}function Kf(n){return t=>t.lift(new v9(n))}class v9{constructor(t){this.callback=t}call(t,e){return e.subscribe(new y9(t,this.callback))}}class y9 extends A{constructor(t,e){super(t),this.add(new E(e))}}const zt="primary";class b9{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 Oc(n){return new b9(n)}function C9(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 tI(n){return n.length>0?n[n.length-1]:null}function xi(n,t){for(const e in n)n.hasOwnProperty(e)&&t(n[e],e)}function Ls(n){return vv(n)?n:Vu(n)?vt(Promise.resolve(n)):Fe(n)}const D9={exact:function rI(n,t,e){if(!al(n.segments,t.segments)||!Yf(n.segments,t.segments,e)||n.numberOfChildren!==t.numberOfChildren)return!1;for(const i in t.children)if(!n.children[i]||!rI(n.children[i],t.children[i],e))return!1;return!0},subset:oI},nI={exact:function S9(n,t){return Xo(n,t)},subset:function A9(n,t){return Object.keys(t).length<=Object.keys(n).length&&Object.keys(t).every(e=>J1(n[e],t[e]))},ignored:()=>!0};function iI(n,t,e){return D9[e.paths](n.root,t.root,e.matrixParams)&&nI[e.queryParams](n.queryParams,t.queryParams)&&!("exact"===e.fragment&&n.fragment!==t.fragment)}function oI(n,t,e){return sI(n,t,t.segments,e)}function sI(n,t,e,i){if(n.segments.length>e.length){const r=n.segments.slice(0,e.length);return!(!al(r,e)||t.hasChildren()||!Yf(r,e,i))}if(n.segments.length===e.length){if(!al(n.segments,e)||!Yf(n.segments,e,i))return!1;for(const r in t.children)if(!n.children[r]||!oI(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!!(al(n.segments,r)&&Yf(n.segments,r,i)&&n.children[zt])&&sI(n.children[zt],t,o,i)}}function Yf(n,t,e){return t.every((i,r)=>nI[e](n[r].parameters,i.parameters))}class sl{constructor(t,e,i){this.root=t,this.queryParams=e,this.fragment=i}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=Oc(this.queryParams)),this._queryParamMap}toString(){return I9.serialize(this)}}class Yt{constructor(t,e){this.segments=t,this.children=e,this.parent=null,xi(e,(i,r)=>i.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return Qf(this)}}class kd{constructor(t,e){this.path=t,this.parameters=e}get parameterMap(){return this._parameterMap||(this._parameterMap=Oc(this.parameters)),this._parameterMap}toString(){return dI(this)}}function al(n,t){return n.length===t.length&&n.every((e,i)=>e.path===t[i].path)}class lI{parse(t){const e=new B9(t);return new sl(e.parseRootSegment(),e.parseQueryParams(),e.parseFragment())}serialize(t){const e=`/${Rd(t.root,!0)}`,i=function R9(n){const t=Object.keys(n).map(e=>{const i=n[e];return Array.isArray(i)?i.map(r=>`${Xf(e)}=${Xf(r)}`).join("&"):`${Xf(e)}=${Xf(i)}`}).filter(e=>!!e);return t.length?`?${t.join("&")}`:""}(t.queryParams),r="string"==typeof t.fragment?`#${function M9(n){return encodeURI(n)}(t.fragment)}`:"";return`${e}${i}${r}`}}const I9=new lI;function Qf(n){return n.segments.map(t=>dI(t)).join("/")}function Rd(n,t){if(!n.hasChildren())return Qf(n);if(t){const e=n.children[zt]?Rd(n.children[zt],!1):"",i=[];return xi(n.children,(r,o)=>{o!==zt&&i.push(`${o}:${Rd(r,!1)}`)}),i.length>0?`${e}(${i.join("//")})`:e}{const e=function x9(n,t){let e=[];return xi(n.children,(i,r)=>{r===zt&&(e=e.concat(t(i,r)))}),xi(n.children,(i,r)=>{r!==zt&&(e=e.concat(t(i,r)))}),e}(n,(i,r)=>r===zt?[Rd(n.children[zt],!1)]:[`${r}:${Rd(i,!1)}`]);return 1===Object.keys(n.children).length&&null!=n.children[zt]?`${Qf(n)}/${e[0]}`:`${Qf(n)}/(${e.join("//")})`}}function cI(n){return encodeURIComponent(n).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function Xf(n){return cI(n).replace(/%3B/gi,";")}function Vb(n){return cI(n).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function Zf(n){return decodeURIComponent(n)}function uI(n){return Zf(n.replace(/\+/g,"%20"))}function dI(n){return`${Vb(n.path)}${function k9(n){return Object.keys(n).map(t=>`;${Vb(t)}=${Vb(n[t])}`).join("")}(n.parameters)}`}const O9=/^[^\/()?;=#]+/;function Jf(n){const t=n.match(O9);return t?t[0]:""}const P9=/^[^=?&#]+/,F9=/^[^&#]+/;class B9{constructor(t){this.url=t,this.remaining=t}parseRootSegment(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new Yt([],{}):new Yt([],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[zt]=new Yt(t,e)),i}parseSegment(){const t=Jf(this.remaining);if(""===t&&this.peekStartsWith(";"))throw new Se(4009,!1);return this.capture(t),new kd(Zf(t),this.parseMatrixParams())}parseMatrixParams(){const t={};for(;this.consumeOptional(";");)this.parseParam(t);return t}parseParam(t){const e=Jf(this.remaining);if(!e)return;this.capture(e);let i="";if(this.consumeOptional("=")){const r=Jf(this.remaining);r&&(i=r,this.capture(i))}t[Zf(e)]=Zf(i)}parseQueryParam(t){const e=function L9(n){const t=n.match(P9);return t?t[0]:""}(this.remaining);if(!e)return;this.capture(e);let i="";if(this.consumeOptional("=")){const s=function N9(n){const t=n.match(F9);return t?t[0]:""}(this.remaining);s&&(i=s,this.capture(i))}const r=uI(e),o=uI(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=Jf(this.remaining),r=this.remaining[i.length];if("/"!==r&&")"!==r&&";"!==r)throw new Se(4010,!1);let o;i.indexOf(":")>-1?(o=i.slice(0,i.indexOf(":")),this.capture(o),this.capture(":")):t&&(o=zt);const s=this.parseChildren();e[o]=1===Object.keys(s).length?s[zt]:new Yt([],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 Se(4011,!1)}}function Ub(n){return n.segments.length>0?new Yt([],{[zt]:n}):n}function em(n){const t={};for(const i of Object.keys(n.children)){const o=em(n.children[i]);(o.segments.length>0||o.hasChildren())&&(t[i]=o)}return function j9(n){if(1===n.numberOfChildren&&n.children[zt]){const t=n.children[zt];return new Yt(n.segments.concat(t.segments),t.children)}return n}(new Yt(n.segments,t))}function ll(n){return n instanceof sl}function U9(n,t,e,i,r){if(0===e.length)return Pc(t.root,t.root,t.root,i,r);const o=function fI(n){if("string"==typeof n[0]&&1===n.length&&"/"===n[0])return new pI(!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 xi(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 pI(e,t,i)}(e);return o.toRoot()?Pc(t.root,t.root,new Yt([],{}),i,r):function s(l){const c=function z9(n,t,e,i){if(n.isAbsolute)return new Lc(t.root,!0,0);if(-1===i)return new Lc(e,e===t.root,0);return function mI(n,t,e){let i=n,r=t,o=e;for(;o>r;){if(o-=r,i=i.parent,!i)throw new Se(4005,!1);r=i.segments.length}return new Lc(i,!1,r-o)}(e,i+(Od(n.commands[0])?0:1),n.numberOfDoubleDots)}(o,t,n.snapshot?._urlSegment,l),u=c.processChildren?Ld(c.segmentGroup,c.index,o.commands):zb(c.segmentGroup,c.index,o.commands);return Pc(t.root,c.segmentGroup,u,i,r)}(n.snapshot?._lastPathIndex)}function Od(n){return"object"==typeof n&&null!=n&&!n.outlets&&!n.segmentPath}function Pd(n){return"object"==typeof n&&null!=n&&n.outlets}function Pc(n,t,e,i,r){let s,o={};i&&xi(i,(l,c)=>{o[c]=Array.isArray(l)?l.map(u=>`${u}`):`${l}`}),s=n===t?e:hI(n,t,e);const a=Ub(em(s));return new sl(a,o,r)}function hI(n,t,e){const i={};return xi(n.children,(r,o)=>{i[o]=r===t?e:hI(r,t,e)}),new Yt(n.segments,i)}class pI{constructor(t,e,i){if(this.isAbsolute=t,this.numberOfDoubleDots=e,this.commands=i,t&&i.length>0&&Od(i[0]))throw new Se(4003,!1);const r=i.find(Pd);if(r&&r!==tI(i))throw new Se(4004,!1)}toRoot(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}class Lc{constructor(t,e,i){this.segmentGroup=t,this.processChildren=e,this.index=i}}function zb(n,t,e){if(n||(n=new Yt([],{})),0===n.segments.length&&n.hasChildren())return Ld(n,t,e);const i=function W9(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(Pd(a))break;const l=`${a}`,c=i0&&void 0===l)break;if(l&&c&&"object"==typeof c&&void 0===c.outlets){if(!_I(l,c,s))return o;i+=2}else{if(!_I(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]=zb(n.children[s],t,o))}),xi(n.children,(o,s)=>{void 0===i[s]&&(r[s]=o)}),new Yt(n.segments,r)}}function Gb(n,t,e){const i=n.segments.slice(0,t);let r=0;for(;r{"string"==typeof e&&(e=[e]),null!==e&&(t[i]=Gb(new Yt([],{}),0,e))}),t}function gI(n){const t={};return xi(n,(e,i)=>t[i]=`${e}`),t}function _I(n,t,e){return n==e.path&&Xo(t,e.parameters)}class Fs{constructor(t,e){this.id=t,this.url=e}}class vI extends Fs{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 Fd extends Fs{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 tm extends Fs{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 yI extends Fs{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 K9 extends Fs{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 Y9 extends Fs{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 Q9 extends Fs{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 X9 extends Fs{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 Z9 extends Fs{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 J9{constructor(t){this.route=t,this.type=9}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}}class ez{constructor(t){this.route=t,this.type=10}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}}class tz{constructor(t){this.snapshot=t,this.type=11}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class nz{constructor(t){this.snapshot=t,this.type=12}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class iz{constructor(t){this.snapshot=t,this.type=13}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class rz{constructor(t){this.snapshot=t,this.type=14}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class bI{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=Wb(t,this._root);return e?e.children.map(i=>i.value):[]}firstChild(t){const e=Wb(t,this._root);return e&&e.children.length>0?e.children[0].value:null}siblings(t){const e=$b(t,this._root);return e.length<2?[]:e[e.length-2].children.map(r=>r.value).filter(r=>r!==t)}pathFromRoot(t){return $b(t,this._root).map(e=>e.value)}}function Wb(n,t){if(n===t.value)return t;for(const e of t.children){const i=Wb(n,e);if(i)return i}return null}function $b(n,t){if(n===t.value)return[t];for(const e of t.children){const i=$b(n,e);if(i.length)return i.unshift(t),i}return[]}class Ns{constructor(t,e){this.value=t,this.children=e}toString(){return`TreeNode(${this.value})`}}function Fc(n){const t={};return n&&n.children.forEach(e=>t[e.value.outlet]=e),t}class CI extends bI{constructor(t,e){super(t),this.snapshot=e,Kb(this,t)}toString(){return this.snapshot.toString()}}function wI(n,t){const e=function sz(n,t){const s=new nm([],{},{},"",{},zt,t,null,n.root,-1,{});return new DI("",new Ns(s,[]))}(n,t),i=new cr([new kd("",{})]),r=new cr({}),o=new cr({}),s=new cr({}),a=new cr(""),l=new Nc(i,r,s,a,o,zt,t,e.root);return l.snapshot=e.root,new CI(new Ns(l,[]),e)}class Nc{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(ue(t=>Oc(t)))),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe(ue(t=>Oc(t)))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}}function EI(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 az(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 nm{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=Oc(this.params)),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=Oc(this.queryParams)),this._queryParamMap}toString(){return`Route(url:'${this.url.map(i=>i.toString()).join("/")}', path:'${this.routeConfig?this.routeConfig.path:""}')`}}class DI extends bI{constructor(t,e){super(e),this.url=t,Kb(this,e)}toString(){return SI(this._root)}}function Kb(n,t){t.value._routerState=n,t.children.forEach(e=>Kb(n,e))}function SI(n){const t=n.children.length>0?` { ${n.children.map(SI).join(", ")} } `:"";return`${n.value}${t}`}function Yb(n){if(n.snapshot){const t=n.snapshot,e=n._futureSnapshot;n.snapshot=e,Xo(t.queryParams,e.queryParams)||n.queryParams.next(e.queryParams),t.fragment!==e.fragment&&n.fragment.next(e.fragment),Xo(t.params,e.params)||n.params.next(e.params),function w9(n,t){if(n.length!==t.length)return!1;for(let e=0;eXo(e.parameters,t[i].parameters))}(n.url,t.url);return e&&!(!n.parent!=!t.parent)&&(!n.parent||Qb(n.parent,t.parent))}function Nd(n,t,e){if(e&&n.shouldReuseRoute(t.value,e.value.snapshot)){const i=e.value;i._futureSnapshot=t.value;const r=function cz(n,t,e){return t.children.map(i=>{for(const r of e.children)if(n.shouldReuseRoute(i.value,r.value.snapshot))return Nd(n,i,r);return Nd(n,i)})}(n,t,e);return new Ns(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=>Nd(n,a)),s}}const i=function uz(n){return new Nc(new cr(n.url),new cr(n.params),new cr(n.queryParams),new cr(n.fragment),new cr(n.data),n.outlet,n.component,n)}(t.value),r=t.children.map(o=>Nd(n,o));return new Ns(i,r)}}const Xb="ngNavigationCancelingError";function AI(n,t){const{redirectTo:e,navigationBehaviorOptions:i}=ll(t)?{redirectTo:t,navigationBehaviorOptions:void 0}:t,r=TI(!1,0,t);return r.url=e,r.navigationBehaviorOptions=i,r}function TI(n,t,e){const i=new Error("NavigationCancelingError: "+(n||""));return i[Xb]=!0,i.cancellationCode=t,e&&(i.url=e),i}function xI(n){return II(n)&&ll(n.url)}function II(n){return n&&n[Xb]}class dz{constructor(){this.outlet=null,this.route=null,this.resolver=null,this.injector=null,this.children=new Bd,this.attachRef=null}}class Bd{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 dz,this.contexts.set(t,e)),e}getContext(t){return this.contexts.get(t)||null}}const im=!1;let MI=(()=>{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||zt,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 Se(4012,im);return this.activated.instance}get activatedRoute(){if(!this.activated)throw new Se(4012,im);return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new Se(4012,im);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 Se(4013,im);this._activatedRoute=e;const r=this.location,s=e._futureSnapshot.component,a=this.parentContexts.getOrCreateContext(this.name).children,l=new hz(e,a,r.injector);if(i&&function pz(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(Bd),p(En),Hr("name"),p(It),p(La))},n.\u0275dir=fe({type:n,selectors:[["router-outlet"]],outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"]}),n})();class hz{constructor(t,e,i){this.route=t,this.childContexts=e,this.parent=i}get(t,e){return t===Nc?this.route:t===Bd?this.childContexts:this.parent.get(t,e)}}let kI=(()=>{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&&Ae(0,"router-outlet")},dependencies:[MI],encapsulation:2}),n})();function RI(n,t){return n.providers&&!n._injector&&(n._injector=function xv(n,t,e=null){return new t5(n,t,e).injector}(n.providers,t,`Route: ${n.path}`)),n._injector??t}function Jb(n){const t=n.children&&n.children.map(Jb),e=t?{...n,children:t}:{...n};return!e.component&&!e.loadComponent&&(t||e.loadChildren)&&e.outlet&&e.outlet!==zt&&(e.component=kI),e}function Qr(n){return n.outlet||zt}function OI(n,t){const e=n.filter(i=>Qr(i)===t);return e.push(...n.filter(i=>Qr(i)!==t)),e}function PI(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 vz{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),Yb(this.futureState.root),this.activateChildRoutes(e,i,t)}deactivateChildRoutes(t,e,i){const r=Fc(e);t.children.forEach(o=>{const s=o.value.outlet;this.deactivateRoutes(o,r[s],i),delete r[s]}),xi(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=Fc(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=Fc(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=Fc(e);t.children.forEach(o=>{this.activateRoutes(o,r[o.value.outlet],i),this.forwardEvent(new rz(o.value.snapshot))}),t.children.length&&this.forwardEvent(new nz(t.value.snapshot))}activateRoutes(t,e,i){const r=t.value,o=e?e.value:null;if(Yb(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),Yb(a.route.value),this.activateChildRoutes(t,null,s.children)}else{const a=PI(r.snapshot),l=a?.get(ho)??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 LI{constructor(t){this.path=t,this.route=this.path[this.path.length-1]}}class rm{constructor(t,e){this.component=t,this.route=e}}function yz(n,t,e){const i=n._root;return jd(i,t?t._root:null,e,[i.value])}function om(n,t,e){return(PI(t)??e).get(n)}function jd(n,t,e,i,r={canDeactivateChecks:[],canActivateChecks:[]}){const o=Fc(t);return n.children.forEach(s=>{(function Cz(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 wz(n,t,e){if("function"==typeof e)return e(n,t);switch(e){case"pathParamsChange":return!al(n.url,t.url);case"pathParamsOrQueryParamsChange":return!al(n.url,t.url)||!Xo(n.queryParams,t.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!Qb(n,t)||!Xo(n.queryParams,t.queryParams);default:return!Qb(n,t)}}(s,o,o.routeConfig.runGuardsAndResolvers);l?r.canActivateChecks.push(new LI(i)):(o.data=s.data,o._resolvedData=s._resolvedData),jd(n,t,o.component?a?a.children:null:e,i,r),l&&a&&a.outlet&&a.outlet.isActivated&&r.canDeactivateChecks.push(new rm(a.outlet.component,s))}else s&&Hd(t,a,r),r.canActivateChecks.push(new LI(i)),jd(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]}),xi(o,(s,a)=>Hd(s,e.getContext(a),r)),r}function Hd(n,t,e){const i=Fc(n),r=n.value;xi(i,(o,s)=>{Hd(o,r.component?t?t.children.getContext(s):null:t,e)}),e.canDeactivateChecks.push(new rm(r.component&&t&&t.outlet&&t.outlet.isActivated?t.outlet.component:null,r))}function Vd(n){return"function"==typeof n}const sm=Symbol("INITIAL_VALUE");function Bc(){return Qn(n=>lb(n.map(t=>t.pipe(an(1),ri(sm)))).pipe(ue(t=>{for(const e of t)if(!0!==e){if(e===sm)return sm;if(!1===e||e instanceof sl)return e}return!0}),An(t=>t!==sm),an(1)))}function FI(n){return function W(...n){return ie(n)}(Xn(t=>{if(ll(t))throw AI(0,t)}),ue(t=>!0===t))}const eC={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function NI(n,t,e,i,r){const o=tC(n,t,e);return o.matched?function jz(n,t,e,i){const r=t.canMatch;return r&&0!==r.length?Fe(r.map(s=>{const a=n.get(s),l=function xz(n){return n&&Vd(n.canMatch)}(a)?a.canMatch(t,e):a(t,e);return Ls(l)})).pipe(Bc(),FI()):Fe(!0)}(i=RI(t,i),t,e).pipe(ue(s=>!0===s?o:{...eC})):Fe(o)}function tC(n,t,e){if(""===t.path)return"full"===t.pathMatch&&(n.hasChildren()||e.length>0)?{...eC}:{matched:!0,consumedSegments:[],remainingSegments:e,parameters:{},positionalParamSegments:{}};const r=(t.matcher||C9)(e,n,t);if(!r)return{...eC};const o={};xi(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 am(n,t,e,i,r="corrected"){if(e.length>0&&function Uz(n,t,e){return e.some(i=>lm(n,t,i)&&Qr(i)!==zt)}(n,e,i)){const s=new Yt(t,function Vz(n,t,e,i){const r={};r[zt]=i,i._sourceSegment=n,i._segmentIndexShift=t.length;for(const o of e)if(""===o.path&&Qr(o)!==zt){const s=new Yt([],{});s._sourceSegment=n,s._segmentIndexShift=t.length,r[Qr(o)]=s}return r}(n,t,i,new Yt(e,n.children)));return s._sourceSegment=n,s._segmentIndexShift=t.length,{segmentGroup:s,slicedSegments:[]}}if(0===e.length&&function qz(n,t,e){return e.some(i=>lm(n,t,i))}(n,e,i)){const s=new Yt(n.segments,function Hz(n,t,e,i,r,o){const s={};for(const a of i)if(lm(n,e,a)&&!r[Qr(a)]){const l=new Yt([],{});l._sourceSegment=n,l._segmentIndexShift="legacy"===o?n.segments.length:t.length,s[Qr(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 Yt(n.segments,n.children);return o._sourceSegment=n,o._segmentIndexShift=t.length,{segmentGroup:o,slicedSegments:e}}function lm(n,t,e){return(!(n.hasChildren()||t.length>0)||"full"!==e.pathMatch)&&""===e.path}function BI(n,t,e,i){return!!(Qr(n)===i||i!==zt&&lm(t,e,n))&&("**"===n.path||tC(t,n,e).matched)}function jI(n,t,e){return 0===t.length&&!n.children[e]}const cm=!1;class um{constructor(t){this.segmentGroup=t||null}}class HI{constructor(t){this.urlTree=t}}function Ud(n){return Qa(new um(n))}function VI(n){return Qa(new HI(n))}class $z{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=am(this.urlTree.root,[],[],this.config).segmentGroup,e=new Yt(t.segments,t.children);return this.expandSegmentGroup(this.injector,this.config,e,zt).pipe(ue(o=>this.createUrlTree(em(o),this.urlTree.queryParams,this.urlTree.fragment))).pipe(Ps(o=>{if(o instanceof HI)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,zt).pipe(ue(r=>this.createUrlTree(em(r),t.queryParams,t.fragment))).pipe(Ps(r=>{throw r instanceof um?this.noMatchError(r):r}))}noMatchError(t){return new Se(4002,cm)}createUrlTree(t,e,i){const r=Ub(t);return new sl(r,e,i)}expandSegmentGroup(t,e,i,r){return 0===i.segments.length&&i.hasChildren()?this.expandChildren(t,e,i).pipe(ue(o=>new Yt([],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(zo(o=>{const s=i.children[o],a=OI(e,o);return this.expandSegmentGroup(t,a,s,o).pipe(ue(l=>({segment:l,outlet:o})))}),X1((o,s)=>(o[s.outlet]=s.segment,o),{}),Z1())}expandSegment(t,e,i,r,o,s){return vt(i).pipe(zo(a=>this.expandSegmentAgainstRoute(t,e,i,a,r,o,s).pipe(Ps(c=>{if(c instanceof um)return Fe(null);throw c}))),_a(a=>!!a),Ps((a,l)=>{if(a instanceof Rc||"EmptyError"===a.name)return jI(e,r,o)?Fe(new Yt([],{})):Ud(e);throw a}))}expandSegmentAgainstRoute(t,e,i,r,o,s,a){return BI(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):Ud(e):Ud(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("/")?VI(o):this.lineralizeSegments(i,o).pipe(Hi(s=>{const a=new Yt(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}=tC(e,r,o);if(!a)return Ud(e);const d=this.applyRedirectCommands(l,r.redirectTo,u);return r.redirectTo.startsWith("/")?VI(d):this.lineralizeSegments(r,d).pipe(Hi(h=>this.expandSegment(t,e,i,h.concat(c),s,!1)))}matchSegmentAgainstRoute(t,e,i,r,o){return"**"===i.path?(t=RI(i,t),i.loadChildren?(i._loadedRoutes?Fe({routes:i._loadedRoutes,injector:i._loadedInjector}):this.configLoader.loadChildren(t,i)).pipe(ue(a=>(i._loadedRoutes=a.routes,i._loadedInjector=a.injector,new Yt(r,{})))):Fe(new Yt(r,{}))):NI(e,i,r,t).pipe(Qn(({matched:s,consumedSegments:a,remainingSegments:l})=>s?this.getChildConfig(t=i._injector??t,i,r).pipe(Hi(u=>{const d=u.injector??t,h=u.routes,{segmentGroup:m,slicedSegments:y}=am(e,a,l,h),S=new Yt(m.segments,m.children);if(0===y.length&&S.hasChildren())return this.expandChildren(d,h,S).pipe(ue(ne=>new Yt(a,ne)));if(0===h.length&&0===y.length)return Fe(new Yt(a,{}));const U=Qr(i)===o;return this.expandSegment(d,S,h,y,U?zt:o,!0).pipe(ue(ve=>new Yt(a.concat(ve.segments),ve.children)))})):Ud(e)))}getChildConfig(t,e,i){return e.children?Fe({routes:e.children,injector:t}):e.loadChildren?void 0!==e._loadedRoutes?Fe({routes:e._loadedRoutes,injector:e._loadedInjector}):function Bz(n,t,e,i){const r=t.canLoad;return void 0===r||0===r.length?Fe(!0):Fe(r.map(s=>{const a=n.get(s),l=function Dz(n){return n&&Vd(n.canLoad)}(a)?a.canLoad(t,e):a(t,e);return Ls(l)})).pipe(Bc(),FI())}(t,e,i).pipe(Hi(r=>r?this.configLoader.loadChildren(t,e).pipe(Xn(o=>{e._loadedRoutes=o.routes,e._loadedInjector=o.injector})):function Gz(n){return Qa(TI(cm,3))}())):Fe({routes:[],injector:t})}lineralizeSegments(t,e){let i=[],r=e.root;for(;;){if(i=i.concat(r.segments),0===r.numberOfChildren)return Fe(i);if(r.numberOfChildren>1||!r.children[zt])return Qa(new Se(4e3,cm));r=r.children[zt]}}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 sl(o,this.createQueryParams(e.queryParams,this.urlTree.queryParams),e.fragment)}createQueryParams(t,e){const i={};return xi(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 xi(e.children,(a,l)=>{s[l]=this.createSegmentGroup(t,a,i,r)}),new Yt(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 Se(4001,cm);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 Yz{}class Zz{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=am(this.urlTree.root,[],[],this.config.filter(e=>void 0===e.redirectTo),this.relativeLinkResolution).segmentGroup;return this.processSegmentGroup(this.injector,this.config,t,zt).pipe(ue(e=>{if(null===e)return null;const i=new nm([],Object.freeze({}),Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,{},zt,this.rootComponentType,null,this.urlTree.root,-1,{}),r=new Ns(i,e),o=new DI(this.url,r);return this.inheritParamsAndData(o._root),o}))}inheritParamsAndData(t){const e=t.value,i=EI(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(zo(r=>{const o=i.children[r],s=OI(e,r);return this.processSegmentGroup(t,s,o,r)}),X1((r,o)=>r&&o?(r.push(...o),r):null),e1(r=>null!==r),$f(null),Z1(),ue(r=>{if(null===r)return null;const o=UI(r);return function Jz(n){n.sort((t,e)=>t.value.outlet===zt?-1:e.value.outlet===zt?1:t.value.outlet.localeCompare(e.value.outlet))}(o),o}))}processSegment(t,e,i,r,o){return vt(e).pipe(zo(s=>this.processSegmentAgainstRoute(s._injector??t,s,i,r,o)),_a(s=>!!s),Ps(s=>{if(s instanceof Rc)return jI(i,r,o)?Fe([]):Fe(null);throw s}))}processSegmentAgainstRoute(t,e,i,r,o){if(e.redirectTo||!BI(e,i,r,o))return Fe(null);let s;if("**"===e.path){const a=r.length>0?tI(r).parameters:{},l=zI(i)+r.length;s=Fe({snapshot:new nm(r,a,Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,WI(e),Qr(e),e.component??e._loadedComponent??null,e,qI(i),l,$I(e),l),consumedSegments:[],remainingSegments:[]})}else s=NI(i,e,r,t).pipe(ue(({matched:a,consumedSegments:l,remainingSegments:c,parameters:u})=>{if(!a)return null;const d=zI(i)+l.length;return{snapshot:new nm(l,u,Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,WI(e),Qr(e),e.component??e._loadedComponent??null,e,qI(i),d,$I(e),d),consumedSegments:l,remainingSegments:c}}));return s.pipe(Qn(a=>{if(null===a)return Fe(null);const{snapshot:l,consumedSegments:c,remainingSegments:u}=a;t=e._injector??t;const d=e._loadedInjector??t,h=function e7(n){return n.children?n.children:n.loadChildren?n._loadedRoutes:[]}(e),{segmentGroup:m,slicedSegments:y}=am(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(ue(U=>null===U?null:[new Ns(l,U)]));if(0===h.length&&0===y.length)return Fe([new Ns(l,[])]);const S=Qr(e)===o;return this.processSegment(d,h,m,y,S?zt:o).pipe(ue(U=>null===U?null:[new Ns(l,U)]))}))}}function t7(n){const t=n.value.routeConfig;return t&&""===t.path&&void 0===t.redirectTo}function UI(n){const t=[],e=new Set;for(const i of n){if(!t7(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=UI(i.children);t.push(new Ns(i.value,r))}return t.filter(i=>!e.has(i))}function qI(n){let t=n;for(;t._sourceSegment;)t=t._sourceSegment;return t}function zI(n){let t=n,e=t._segmentIndexShift??0;for(;t._sourceSegment;)t=t._sourceSegment,e+=t._segmentIndexShift??0;return e-1}function WI(n){return n.data||{}}function $I(n){return n.resolve||{}}const nC=Symbol("RouteTitle");function KI(n){return"string"==typeof n.title||null===n.title}function iC(n){return Qn(t=>{const e=n(t);return e?vt(e).pipe(ue(()=>t)):Fe(t)})}class h7 extends class d7{shouldDetach(t){return!1}store(t,e){}shouldAttach(t){return!1}retrieve(t){return null}shouldReuseRoute(t,e){return t.routeConfig===e.routeConfig}}{}const rC=new ge("ROUTES");let QI=(()=>{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 Fe(e._loadedComponent);this.onLoadStartListener&&this.onLoadStartListener(e);const i=Ls(e.loadComponent()).pipe(Xn(o=>{this.onLoadEndListener&&this.onLoadEndListener(e),e._loadedComponent=o}),Kf(()=>{this.componentLoaders.delete(e)})),r=new bh(i,()=>new L).pipe(yh());return this.componentLoaders.set(e,r),r}loadChildren(e,i){if(this.childrenLoaders.get(i))return this.childrenLoaders.get(i);if(i._loadedRoutes)return Fe({routes:i._loadedRoutes,injector:i._loadedInjector});this.onLoadStartListener&&this.onLoadStartListener(i);const o=this.loadModuleFactoryOrRoutes(i.loadChildren).pipe(ue(a=>{this.onLoadEndListener&&this.onLoadEndListener(i);let l,c,u=!1;Array.isArray(a)?c=a:(l=a.create(e).injector,c=function eI(n){return Array.prototype.concat.apply([],n)}(l.get(rC,[],yt.Self|yt.Optional)));return{routes:c.map(Jb),injector:l}}),Kf(()=>{this.childrenLoaders.delete(i)})),s=new bh(o,()=>new L).pipe(yh());return this.childrenLoaders.set(i,s),s}loadModuleFactoryOrRoutes(e){return Ls(e()).pipe(Hi(i=>i instanceof JS||Array.isArray(i)?Fe(i):vt(this.compiler.compileModuleAsync(i))))}}return n.\u0275fac=function(e){return new(e||n)(T(On),T(UA))},n.\u0275prov=me({token:n,factory:n.\u0275fac}),n})();class f7{shouldProcessUrl(t){return!0}extract(t){return t}merge(t,e){return t}}function m7(n){throw n}function g7(n,t,e){return t.parse("/")}const _7={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},v7={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 L,this.errorHandler=m7,this.malformedUriErrorHandler=g7,this.navigated=!1,this.lastSuccessfulId=-1,this.afterPreactivation=()=>Fe(void 0),this.urlHandlingStrategy=new f7,this.routeReuseStrategy=new h7,this.onSameUrlNavigation="ignore",this.paramsInheritanceStrategy="emptyOnly",this.urlUpdateStrategy="deferred",this.relativeLinkResolution="corrected",this.canceledNavigationResolution="replace",this.configLoader=s.get(QI),this.configLoader.onLoadEndListener=h=>this.triggerEvent(new ez(h)),this.configLoader.onLoadStartListener=h=>this.triggerEvent(new J9(h)),this.ngModule=s.get(Va),this.console=s.get(s4);const d=s.get(et);this.isNgZoneEnabled=d instanceof et&&et.isInAngularZone(),this.resetConfig(l),this.currentUrlTree=function E9(){return new sl(new Yt([],{}),{},null)}(),this.rawUrlTree=this.currentUrlTree,this.browserUrlTree=this.currentUrlTree,this.routerState=wI(this.currentUrlTree,this.rootComponentType),this.transitions=new cr({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(An(r=>0!==r.id),ue(r=>({...r,extractedUrl:this.urlHandlingStrategy.extract(r.rawUrl)})),Qn(r=>{let o=!1,s=!1;return Fe(r).pipe(Xn(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}}),Qn(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 XI(a.source)&&(this.browserUrlTree=a.extractedUrl),Fe(a).pipe(Qn(d=>{const h=this.transitions.getValue();return i.next(new vI(d.id,this.serializeUrl(d.extractedUrl),d.source,d.restoredState)),h!==this.transitions.getValue()?Es:Promise.resolve(d)}),function Kz(n,t,e,i){return Qn(r=>function Wz(n,t,e,i,r){return new $z(n,t,e,i,r).apply()}(n,t,e,r.extractedUrl,i).pipe(ue(o=>({...r,urlAfterRedirects:o}))))}(this.ngModule.injector,this.configLoader,this.urlSerializer,this.config),Xn(d=>{this.currentNavigation={...this.currentNavigation,finalUrl:d.urlAfterRedirects},r.urlAfterRedirects=d.urlAfterRedirects}),function r7(n,t,e,i,r,o){return Hi(s=>function Xz(n,t,e,i,r,o,s="emptyOnly",a="legacy"){return new Zz(n,t,e,i,r,s,a,o).recognize().pipe(Qn(l=>null===l?function Qz(n){return new b(t=>t.error(n))}(new Yz):Fe(l)))}(n,t,e,s.urlAfterRedirects,i.serialize(s.urlAfterRedirects),i,r,o).pipe(ue(a=>({...s,targetSnapshot:a}))))}(this.ngModule.injector,this.rootComponentType,this.config,this.urlSerializer,this.paramsInheritanceStrategy,this.relativeLinkResolution),Xn(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 K9(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:S,extras:U}=a,ee=new vI(h,this.serializeUrl(m),y,S);i.next(ee);const ve=wI(m,this.rootComponentType).snapshot;return Fe(r={...a,targetSnapshot:ve,urlAfterRedirects:m,extras:{...U,skipLocationChange:!1,replaceUrl:!1}})}return this.rawUrlTree=a.rawUrl,a.resolve(null),Es}),Xn(a=>{const l=new Y9(a.id,this.serializeUrl(a.extractedUrl),this.serializeUrl(a.urlAfterRedirects),a.targetSnapshot);this.triggerEvent(l)}),ue(a=>r={...a,guards:yz(a.targetSnapshot,a.currentSnapshot,this.rootContexts)}),function Mz(n,t){return Hi(e=>{const{targetSnapshot:i,currentSnapshot:r,guards:{canActivateChecks:o,canDeactivateChecks:s}}=e;return 0===s.length&&0===o.length?Fe({...e,guardsResult:!0}):function kz(n,t,e,i){return vt(n).pipe(Hi(r=>function Nz(n,t,e,i,r){const o=t&&t.routeConfig?t.routeConfig.canDeactivate:null;return o&&0!==o.length?Fe(o.map(a=>{const l=om(a,t,r);return Ls(function Tz(n){return n&&Vd(n.canDeactivate)}(l)?l.canDeactivate(n,t,e,i):l(n,t,e,i)).pipe(_a())})).pipe(Bc()):Fe(!0)}(r.component,r.route,e,t,i)),_a(r=>!0!==r,!0))}(s,i,r,n).pipe(Hi(a=>a&&function Ez(n){return"boolean"==typeof n}(a)?function Rz(n,t,e,i){return vt(t).pipe(zo(r=>yc(function Pz(n,t){return null!==n&&t&&t(new tz(n)),Fe(!0)}(r.route.parent,i),function Oz(n,t){return null!==n&&t&&t(new iz(n)),Fe(!0)}(r.route,i),function Fz(n,t,e){const i=t[t.length-1],o=t.slice(0,t.length-1).reverse().map(s=>function bz(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(()=>Fe(s.guards.map(l=>{const c=om(l,s.node,e);return Ls(function Az(n){return n&&Vd(n.canActivateChild)}(c)?c.canActivateChild(i,n):c(i,n)).pipe(_a())})).pipe(Bc())));return Fe(o).pipe(Bc())}(n,r.path,e),function Lz(n,t,e){const i=t.routeConfig?t.routeConfig.canActivate:null;if(!i||0===i.length)return Fe(!0);const r=i.map(o=>la(()=>{const s=om(o,t,e);return Ls(function Sz(n){return n&&Vd(n.canActivate)}(s)?s.canActivate(t,n):s(t,n)).pipe(_a())}));return Fe(r).pipe(Bc())}(n,r.route,e))),_a(r=>!0!==r,!0))}(i,o,n,t):Fe(a)),ue(a=>({...e,guardsResult:a})))})}(this.ngModule.injector,a=>this.triggerEvent(a)),Xn(a=>{if(r.guardsResult=a.guardsResult,ll(a.guardsResult))throw AI(0,a.guardsResult);const l=new Q9(a.id,this.serializeUrl(a.extractedUrl),this.serializeUrl(a.urlAfterRedirects),a.targetSnapshot,!!a.guardsResult);this.triggerEvent(l)}),An(a=>!!a.guardsResult||(this.restoreHistory(a),this.cancelNavigationTransition(a,"",3),!1)),iC(a=>{if(a.guards.canActivateChecks.length)return Fe(a).pipe(Xn(l=>{const c=new X9(l.id,this.serializeUrl(l.extractedUrl),this.serializeUrl(l.urlAfterRedirects),l.targetSnapshot);this.triggerEvent(c)}),Qn(l=>{let c=!1;return Fe(l).pipe(function o7(n,t){return Hi(e=>{const{targetSnapshot:i,guards:{canActivateChecks:r}}=e;if(!r.length)return Fe(e);let o=0;return vt(r).pipe(zo(s=>function s7(n,t,e,i){const r=n.routeConfig,o=n._resolve;return void 0!==r?.title&&!KI(r)&&(o[nC]=r.title),function a7(n,t,e,i){const r=function l7(n){return[...Object.keys(n),...Object.getOwnPropertySymbols(n)]}(n);if(0===r.length)return Fe({});const o={};return vt(r).pipe(Hi(s=>function c7(n,t,e,i){const r=om(n,t,i);return Ls(r.resolve?r.resolve(t,e):r(t,e))}(n[s],t,e,i).pipe(_a(),Xn(a=>{o[s]=a}))),jb(1),function m9(n){return t=>t.lift(new g9(n))}(o),Ps(s=>s instanceof Rc?Es:Qa(s)))}(o,n,t,i).pipe(ue(s=>(n._resolvedData=s,n.data=EI(n,e).resolve,r&&KI(r)&&(n.data[nC]=r.title),null)))}(s.route,i,n,t)),Xn(()=>o++),jb(1),Hi(s=>o===r.length?Fe(e):Es))})}(this.paramsInheritanceStrategy,this.ngModule.injector),Xn({next:()=>c=!0,complete:()=>{c||(this.restoreHistory(l),this.cancelNavigationTransition(l,"",2))}}))}),Xn(l=>{const c=new Z9(l.id,this.serializeUrl(l.extractedUrl),this.serializeUrl(l.urlAfterRedirects),l.targetSnapshot);this.triggerEvent(c)}))}),iC(a=>{const l=c=>{const u=[];c.routeConfig?.loadComponent&&!c.routeConfig._loadedComponent&&u.push(this.configLoader.loadComponent(c.routeConfig).pipe(Xn(d=>{c.component=d}),ue(()=>{})));for(const d of c.children)u.push(...l(d));return u};return lb(l(a.targetSnapshot.root)).pipe($f(),an(1))}),iC(()=>this.afterPreactivation()),ue(a=>{const l=function lz(n,t,e){const i=Nd(n,t._root,e?e._root:void 0);return new CI(i,t)}(this.routeReuseStrategy,a.targetSnapshot,a.currentRouterState);return r={...a,targetRouterState:l}}),Xn(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)=>ue(i=>(new vz(t,i.targetRouterState,i.currentRouterState,e).activate(n),i)))(this.rootContexts,this.routeReuseStrategy,a=>this.triggerEvent(a)),Xn({next(){o=!0},complete(){o=!0}}),Kf(()=>{o||s||this.cancelNavigationTransition(r,"",1),this.currentNavigation?.id===r.id&&(this.currentNavigation=null)}),Ps(a=>{if(s=!0,II(a)){xI(a)||(this.navigated=!0,this.restoreHistory(r,!0));const l=new tm(r.id,this.serializeUrl(r.extractedUrl),a.message,a.cancellationCode);if(i.next(l),xI(a)){const c=this.urlHandlingStrategy.merge(a.url,this.rawUrlTree),u={skipLocationChange:r.extras.skipLocationChange,replaceUrl:"eager"===this.urlUpdateStrategy||XI(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 yI(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 Es}))}))}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(Jb),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)),U9(c,this.currentUrlTree,e,d,u??null)}navigateByUrl(e,i={skipLocationChange:!1}){const r=ll(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 y7(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 Fd(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 tm(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){Kl()},n.\u0275prov=me({token:n,factory:n.\u0275fac}),n})();function XI(n){return"imperative"!==n}const lC=new ge("MSAL_INSTANCE"),oM=new ge("MSAL_GUARD_CONFIG"),k7=new ge("MSAL_INTERCEPTOR_CONFIG"),R7=new ge("MSAL_BROADCAST_CONFIG"),sM="@azure/msal-angular",cC="2.4.1";let cl=(()=>{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(qf.Angular,cC)}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(sM,cC)),this.logger}setLogger(e){this.logger=e.clone(sM,cC),this.instance.setLogger(e)}}return n.\u0275fac=function(e){return new(e||n)(T(lC),T(Ga))},n.\u0275prov=me({token:n,factory:n.\u0275fac}),n})(),aM=(()=>{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 E2(this.msalBroadcastConfig.eventsToReplay)):this._msalSubject=new L,this.msalSubject$=this._msalSubject.asObservable(),this._inProgress=new cr(vi.Startup),this.inProgress$=this._inProgress.asObservable(),this.msalInstance.addEventCallback(o=>{this._msalSubject.next(o);const s=Jq.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)(T(lC),T(cl),T(R7,8))},n.\u0275prov=me({token:n,factory:n.\u0275fac}),n})(),O7=(()=>{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(ue(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(ue(()=>!1))}activateHelper(e){if(this.msalGuardConfig.interactionType!==$e.Popup&&this.msalGuardConfig.interactionType!==$e.Redirect)throw new Wf("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"),Fe(!0);if(rn.hashContainsKnownProperties(window.location.hash)&&Nn.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."),Fe(!1);this.msalGuardConfig.loginFailedRoute&&(this.loginFailedRoute=this.parseUrl(this.msalGuardConfig.loginFailedRoute));const i=this.location.path(!0);return this.authService.handleRedirectObservable().pipe(zo(()=>{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"),Fe(!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?Fe(this.parseUrl(this.location.path())):Fe(this.parseUrl(""))}return Fe(!0)}),Ps(r=>(this.authService.getLogger().error("Guard - error while logging in, unable to activate"),this.authService.getLogger().errorPii(`Guard - error: ${r.message}`),this.loginFailedRoute&&parseInt(rE.major,10)>9&&e?(this.authService.getLogger().verbose("Guard - loginFailedRoute set, redirecting"),Fe(this.loginFailedRoute)):Fe(!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)(T(oM),T(aM),T(cl),T(Ga),T(gr))},n.\u0275prov=me({token:n,factory:n.\u0275fac}),n})(),lM=(()=>{class n{static forRoot(e,i,r){return{ngModule:n,providers:[{provide:lC,useValue:e},{provide:oM,useValue:i},{provide:k7,useValue:r},cl]}}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=dt({type:n}),n.\u0275inj=ct({providers:[O7,aM],imports:[Xi]}),n})(),jc=(()=>{class n{constructor(e,i,r){this.msalService=e,this.messageService=i,this.globals=r}setLoginDisplay(){console.log(this.msalService.instance.getAllAccounts().length>0)}isDesktopClient(){return Office.context.platform!==Office.PlatformType.OfficeOnline}signIn(e){return Ee(function*(){})()}clientSignIn(){var e=this;return Ee(function*(){console.log("Client Login"),e.signIn()})()}signOut(){var e=this;return Ee(function*(){yield e.msalService.logout().toPromise(),e.user=void 0,e.authenticated=!1})()}signOutPopup(){var e=this;return Ee(function*(){yield e.msalService.logoutPopup().toPromise(),e.user=void 0,e.authenticated=!1})()}getAccessToken(){return Ee(function*(){return""})()}getUser(){var e=this;return Ee(function*(){if(!e.authenticated)return;const r=yield Bf.init({authProvider:(s=Ee(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 Yq;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)(T(cl),T(en),T(ht))},n.\u0275prov=me({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),Xr=(()=>{class n{constructor(e){this.globalsService=e,this.indexParamStart="index.xsp?",this.urlExtension=this.indexParamStart+"loadTabs=false"}convertToLink(e){return this.globalsService.webInt+this.urlExtension+"&openDocument="+e}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)(T(ht))},n.\u0275prov=me({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const uC="loginBM.xsp";let cM=(()=>{class n{constructor(e,i,r,o,s,a){this.globals=e,this.waitList=i,this.modal=r,this.messageService=o,this.authService=s,this.webintLinkService=a,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.authService.isDesktopClient()?Office.context.ui.displayDialogAsync(window.location.origin+window.location.pathname+"?redirect",{height:25,width:25},i=>{this.dialog=i.value,this.dialog.addEventHandler(Office.EventType.DialogMessageReceived,this.processOutlookMessage.bind(this)),this.dialog.addEventHandler(Office.EventType.DialogEventReceived,this.onDialogClose.bind(this,e))}):(this.createListenerLogin(e),this.loginWindow=this.popupWindow(this.globals.webInt+uC,"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 Ee(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=Ee(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=Ee(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 Ee(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=Ee(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 Ee(function*(){return i.activateSpinner(),yield fetch(e+uC,{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}logoutGraph(){var e=this;return Ee(function*(){yield e.authService.signOutPopup()})()}logout(e){var i=this;return Ee(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=Ee(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 Ee(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:""}openGraphLogin(){return Ee(function*(){return null})()}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=Ee(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 Ee(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(Ee(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+uC)}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 Ee(function*(){if(null!=r.pathInfo){let o=new $t;o=o.set("noCache","true"),r.getReqNoCache("keepAlive",null,!1).subscribe({next:(s=Ee(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=Ee(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.webintLinkService.convertToLink(e)}}return n.\u0275fac=function(e){return new(e||n)(T(ht),T(er),T(Rs),T(en),T(jc),T(Xr))},n.\u0275prov=me({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const N7=new ge("JWT_OPTIONS");let B7=(()=>{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)(T(N7))},n.\u0275prov=me({token:n,factory:n.\u0275fac}),n})(),uM=(()=>{class n{constructor(){this.pathObj=null}get path(){return this.pathObj}isPathSet(){return null!=this.pathObj}waitForPath(){var e=this;return Ee(function*(){return e.pathObj=yield e.createPath(),e.pathObj})()}createPath(){return Ee(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"}}})()}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=me({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const H7=["alternativeAddresses"],V7=["pointer","database","mail","imageURL","companyPointer","url","parentUrl","isCompany","gender","base64image"];let dC=(()=>{class n{constructor(e){this.globals=e}convertAddress(e,i,r){var o=this;return Ee(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:H7,hide:V7}),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 Ee(function*(){for(const o of Object.keys(r))for(const s of r[o])e[s].parentUrl=i[o]})()}removeEmptyEntries(e){return Ee(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)(T(ht))},n.\u0275prov=me({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),hC=(()=>{class n extends cM{constructor(e,i,r,o,s,a,l,c,u){super(e,i,r,o,s,u),this.globals=e,this.waitList=i,this.modal=r,this.messageService=o,this.authService=s,this.pathBA=a,this.converter=l,this.modalService=c,this.webintLinkService=u,this.apiOverviewPath="api/",this.jwt=new B7}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 Ee(function*(){u.processPath().subscribe(Ee(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 S=Ee(function*(U){let ee;ee=null==a||a?yield U.json():yield U.text(),r.next(ee),r.complete(),u.globals.hideSpinner()});return function(U){return S.apply(this,arguments)}}()).catch(S=>{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 Ee(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=Ee(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 Ee(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 Ee(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=Ee(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=Ee(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}logoutGraph(){var e=this;return Ee(function*(){yield e.authService.signOutPopup()})()}logout(e){var i=this;return Ee(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 Ee(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 Ee(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:encodeURIComponent(e),password:encodeURIComponent(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=Ee(function*(c){return c.text()});return function(c){return l.apply(this,arguments)}}()).then(function(){var l=Ee(function*(c){if("true"===c)return yield r.performLogin(s);if(c.indexOf("The Application is just starting")>0){let u=c.substr(c.indexOf("The Application is just starting")+33,5);return r.messageService.showWarning(r.globals.languageConfLocal.baInstanceStarting+u),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 Ee(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()}openGraphLogin(){return Ee(function*(){return null})()}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 Ee(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(Ee(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=Ee(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 Ee(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 Ee(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 Ee(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=Ee(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 Ee(function*(){let i=localStorage.getItem("token");return(null===i||"undefined"===i)&&(i=void 0),e.jwt.isTokenExpired})()}openLoginModal(){var e=this;return Ee(function*(){e.globals.hideForLogin=!0,e.modalService.changeType({newType:"login"}),e.globals.hideSpinner()})()}loginListener(e){var i=this;return Ee(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 Ee(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())}})()}}return n.\u0275fac=function(e){return new(e||n)(T(ht),T(er),T(Rs),T(en),T(jc),T(uM),T(dC),T(hl),T(Xr))},n.\u0275prov=me({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),Bn=(()=>{class n{constructor(e,i,r,o,s,a,l,c,u){this.globals=e,this.waitList=i,this.modal=r,this.messageService=o,this.authService=s,this.pathBA=a,this.converter=l,this.modalService=c,this.webintLinkService=u,this.curConnectionSystem||this.setSystem(this.globals.system)}setSystem(e){var i=this;return Ee(function*(){switch(e){case"gi":i.globals.system="gi",i.curConnectionSystem=new cM(i.globals,i.waitList,i.modal,i.messageService,i.authService,i.webintLinkService);break;case"ba":i.globals.system="ba",i.curConnectionSystem=new hC(i.globals,i.waitList,i.modal,i.messageService,i.authService,i.pathBA,i.converter,i.modalService,i.webintLinkService)}})()}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 Ee(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 Ee(function*(){return i.curConnectionSystem.checkWebInt(e)})()}resetListener(){this.curConnectionSystem.resetListener()}logoutGraph(){var e=this;return Ee(function*(){return e.curConnectionSystem.logoutGraph()})()}logout(e){var i=this;return Ee(function*(){return i.curConnectionSystem.logout(e)})()}logoutOldSystem(e){return Ee(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 Ee(function*(){return r.curConnectionSystem.login(e,i)})()}get isLoggedIn(){return this.curConnectionSystem.isLoggedIn}set webIntModalOpenRef(e){this.curConnectionSystem.webIntModalOpenRef=e}}return n.\u0275fac=function(e){return new(e||n)(T(ht),T(er),T(Rs),T(en),T(jc),T(uM),T(dC),T(hl),T(Xr))},n.\u0275prov=me({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();class G7{constructor(){this.primary=[],this.secondary=[]}}class pC{}let fC=(()=>{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)(T(er))},n.\u0275prov=me({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();class W7{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 hM=[new class $7{constructor(){this.model={name:"deleteAttachments",value:"",classAssignment:{"":"bmAttachInclude",1:"bmAttachExclude"},titleLC:{"":"LC73172",1:"LC73173"}}}},new class K7{constructor(){this.model={name:"openMail",value:"",classAssignment:{"":"bmDocOFF",1:"bmDocON"},titleLC:{"":"LC73169",1:"LC73168"}}}},new class Y7{constructor(){this.model={name:"createAddress",value:"",classAssignment:{"":"bmPlus",1:"bmMinus"},titleLC:{"":"LC73197",1:"LC73197"}}}}];let pM=(()=>{class n{constructor(e){this.globals=e,this.configData=hM,this.subscribers=[],this.createInstance=new W7,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)(T(ht))},n.\u0275prov=me({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),Bs=(()=>{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 G7;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 pC;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)(T(Bn),T(er),T(ht),T(fC),T(pM))},n.\u0275prov=me({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();function mC(n){return n&&"function"==typeof n.connect&&!(n instanceof bh)}class fM{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 ul{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 L,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 gM=(()=>{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=me({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const qd=new ge("_ViewRepeater");let gC=(()=>{class n{constructor(){this._vertical=!1,this._inset=!1}get vertical(){return this._vertical}set vertical(e){this._vertical=at(e)}get inset(){return this._inset}set inset(e){this._inset=at(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})(),Q7=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=dt({type:n}),n.\u0275inj=ct({imports:[Lt,Lt]}),n})();const X7=["*"],J7=["text"];function eG(n,t){if(1&n&&Ae(0,"mat-pseudo-checkbox",5),2&n){const e=w();v("state",e.selected?"checked":"unchecked")("disabled",e.disabled)}}const tG=["*",[["","mat-list-avatar",""],["","mat-list-icon",""],["","matListAvatar",""],["","matListIcon",""]]],nG=["*","[mat-list-avatar], [mat-list-icon], [matListAvatar], [matListIcon]"];let iG=(()=>{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})(),rG=(()=>{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 oG=Wo(class{}),sG=Wo(class{}),aG={provide:ar,useExisting:tn(()=>Zo),multi:!0};class lG{constructor(t,e){this.source=t,this.options=e}}let js=(()=>{class n extends sG{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=at(e);i!==this._disabled&&(this._disabled=i,this._changeDetector.markForCheck())}get selected(){return this.selectionList.selectedOptions.isSelected(this)}set selected(e){const i=at(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 R6(n,t,e="mat"){n.changes.pipe(ri(n)).subscribe(({length:i})=>{gd(t,`${e}-2-line`,!1),gd(t,`${e}-3-line`,!1),gd(t,`${e}-multi-line`,!1),2===i||3===i?gd(t,`${e}-${i}-line`,!0):i>3&&gd(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(Xe),p(It),p(tn(()=>Zo)))},n.\u0275cmp=Ue({type:n,selectors:[["mat-list-option"]],contentQueries:function(e,i,r){if(1&e&&(Ht(r,iG,5),Ht(r,rG,5),Ht(r,k6,5)),2&e){let o;de(o=he())&&(i._avatar=o.first),de(o=he())&&(i._icon=o.first),de(o=he())&&(i._lines=o)}},viewQuery:function(e,i){if(1&e&&Te(J7,5),2&e){let r;de(r=he())&&(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&&$("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:[De],ngContentSelectors:nG,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(tG),g(0,"div",0),Ae(1,"div",1),H(2,eG,1,2,"mat-pseudo-checkbox",2),g(3,"div",3,4),jt(5),_(),jt(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:[Ir,D1,hn],encapsulation:2,changeDetection:0}),n})(),Zo=(()=>{class n extends oG{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 ul(this._multiple),this._tabIndex=-1,this._onChange=o=>{},this._destroyed=new L,this._onTouched=()=>{}}get disabled(){return this._disabled}set disabled(e){this._disabled=at(e),this._markOptionsForCheck()}get multiple(){return this._multiple}set multiple(e){const i=at(e);i!==this._multiple&&(this._multiple=i,this.selectedOptions=new ul(this._multiple,this.selectedOptions.selected))}ngAfterContentInit(){this._contentInitialized=!0,this._keyManager=new yf(this.options).withWrap().withTypeAhead().withHomeAndEnd().skipPredicate(()=>!1).withAllowedModifierKeys(["shiftKey"]),this._value&&this._setOptionsFromValues(this._value),this._keyManager.tabOut.pipe(Xt(this._destroyed)).subscribe(()=>{this._allowFocusEscape()}),this.options.changes.pipe(ri(null),Xt(this._destroyed)).subscribe(()=>{this._updateTabIndex()}),this.selectedOptions.changed.pipe(Xt(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(Xt(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=Di(e);switch(i){case 32:case 13:!s&&!r.isTyping()&&(this._toggleFocusedOption(),e.preventDefault());break;default:if(65===i&&this.multiple&&Di(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 lG(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(Xe),p(It),p(So))},n.\u0275cmp=Ue({type:n,selectors:[["mat-selection-list"]],contentQueries:function(e,i,r){if(1&e&&Ht(r,js,5),2&e){let o;de(o=he())&&(i.options=o)}},hostAttrs:["role","listbox",1,"mat-selection-list","mat-list-base"],hostVars:3,hostBindings:function(e,i){1&e&&$("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:[ot([aG]),De,kn],ngContentSelectors:X7,decls:1,vars:0,template:function(e,i){1&e&&(Pn(),jt(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})(),cG=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=dt({type:n}),n.\u0275inj=ct({imports:[v1,ha,Lt,Sb,Xi,v1,Lt,Sb,Q7]}),n})();const uG=["chOffice"],dG=["dbs"];function hG(n,t){1&n&&(g(0,"p"),j(1),Ze(2,"translate"),_()),2&n&&(f(1),we(Je(2,1,"LC53515")))}function pG(n,t){if(1&n){const e=ke();g(0,"mat-list-option",7),$("dblclick",function(){return X(e),Z(w(2).confirmAction())}),j(1),_()}if(2&n){const e=t.$implicit,i=w(2);Dt("value",e.db),v("selected",1===i.officeDBs.length?e.db:null),f(1),qe(" ",e.alias," ")}}const fG=function(n){return{title:n}},mG=function(n,t,e,i){return{confirm:n,cancel:t,confirmAction:e,cancelAction:i}};function gG(n,t){if(1&n&&(Wt(0,1),Ze(1,"translate"),g(2,"div",2)(3,"mat-selection-list",3,4),H(5,hG,3,3,"p",5),H(6,pG,2,3,"mat-list-option",6),_()(),Wt(7,1),Ze(8,"translate"),Ze(9,"translate")),2&n){const e=w();v("ngTemplateOutlet",e.modalHeader)("ngTemplateOutletContext",$n(13,fG,Je(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",Ki(15,mG,Je(8,9,"LC73135"),Je(9,11,"LC73136"),e.confirmAction.bind(e,e.selection),e.cancelAction.bind(e)))}}let _G=(()=>{class n extends Gr{constructor(e,i,r,o,s,a){super(e),this.translate=e,this.connection=i,this.addressService=r,this.messageService=o,this.webintLink=s,this.globals=a,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.webintLink.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 Ee(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}}return n.\u0275fac=function(e){return new(e||n)(p(Kt),p(Bn),p(Bs),p(en),p(Xr),p(ht))},n.\u0275cmp=Ue({type:n,selectors:[["app-choose-office"]],viewQuery:function(e,i){if(1&e&&(Te(uG,7),Te(dG,5)),2&e){let r;de(r=he())&&(i.modalTemp=r.first),de(r=he())&&(i.selection=r.first)}},features:[De],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,gG,10,20,"ng-template",null,0,Dn)},dependencies:[Yn,hn,Qi,Zo,js,Pi]}),n})(),zd=(()=>{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)(T($a))},n.\u0275prov=me({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),_C=(()=>{class n extends Gr{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 ul(!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(Kt),p(ht),p(Bn),p(en),p(zd),p(Bs))},n.\u0275dir=fe({type:n,inputs:{data:"data"},outputs:{messageEvent:"messageEvent"},features:[De]}),n})();const vG=["connectionContainer"],yG=["inputContainer"],bG=["label"];function CG(n,t){1&n&&(fi(0),g(1,"div",14),Ae(2,"div",15)(3,"div",16)(4,"div",17),_(),g(5,"div",18),Ae(6,"div",15)(7,"div",16)(8,"div",17),_(),mi())}function wG(n,t){if(1&n){const e=ke();g(0,"div",19),$("cdkObserveContent",function(){return X(e),Z(w().updateOutlineGap())}),jt(1,1),_()}2&n&&v("cdkObserveContentDisabled","outline"!=w().appearance)}function EG(n,t){if(1&n&&(fi(0),jt(1,2),g(2,"span"),j(3),_(),mi()),2&n){const e=w(2);f(3),we(e._control.placeholder)}}function DG(n,t){1&n&&jt(0,3,["*ngSwitchCase","true"])}function SG(n,t){1&n&&(g(0,"span",23),j(1," *"),_())}function AG(n,t){if(1&n){const e=ke();g(0,"label",20,21),$("cdkObserveContent",function(){return X(e),Z(w().updateOutlineGap())}),H(2,EG,4,1,"ng-container",12),H(3,DG,1,0,"ng-content",12),H(4,SG,2,0,"span",22),_()}if(2&n){const e=w();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 TG(n,t){1&n&&(g(0,"div",24),jt(1,4),_())}function xG(n,t){if(1&n&&(g(0,"div",25),Ae(1,"span",26),_()),2&n){const e=w();f(1),bt("mat-accent","accent"==e.color)("mat-warn","warn"==e.color)}}function IG(n,t){1&n&&(g(0,"div"),jt(1,5),_()),2&n&&v("@transitionMessages",w()._subscriptAnimationState)}function MG(n,t){if(1&n&&(g(0,"div",30),j(1),_()),2&n){const e=w(2);v("id",e._hintLabelId),f(1),we(e.hintLabel)}}function kG(n,t){if(1&n&&(g(0,"div",27),H(1,MG,2,2,"div",28),jt(2,6),Ae(3,"div",29),jt(4,7),_()),2&n){const e=w();v("@transitionMessages",e._subscriptAnimationState),f(1),v("ngIf",e.hintLabel)}}const RG=["*",[["","matPrefix",""]],[["mat-placeholder"]],[["mat-label"]],[["","matSuffix",""]],[["mat-error"]],[["mat-hint",3,"align","end"]],[["mat-hint","align","end"]]],OG=["*","[matPrefix]","mat-placeholder","mat-label","[matSuffix]","mat-error","mat-hint:not([align='end'])","mat-hint[align='end']"],PG=new ge("MatError"),LG={transitionMessages:$r("transitionMessages",[zn("enter",Ft({opacity:1,transform:"translateY(0%)"})),ui("void => enter",[Ft({opacity:0,transform:"translateY(-5px)"}),_i("300ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])};let Gd=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=fe({type:n}),n})();const FG=new ge("MatHint");let nr=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=fe({type:n,selectors:[["mat-label"]]}),n})(),NG=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=fe({type:n,selectors:[["mat-placeholder"]]}),n})();const BG=new ge("MatPrefix"),_M=new ge("MatSuffix");let vC=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=fe({type:n,selectors:[["","matSuffix",""]],features:[ot([{provide:_M,useExisting:n}])]}),n})(),vM=0;const HG=da(class{constructor(n){this._elementRef=n}},"primary"),VG=new ge("MAT_FORM_FIELD_DEFAULT_OPTIONS"),pm=new ge("MatFormField");let Zr=(()=>{class n extends HG{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 L,this._hideRequiredMarker=!1,this._showAlwaysAnimate=!1,this._subscriptAnimationState="",this._hintLabel="",this._hintLabelId="mat-hint-"+vM++,this._labelId="mat-form-field-label-"+vM++,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=at(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(ri(null)).subscribe(()=>{this._validatePlaceholders(),this._syncDescribedByIds(),this._changeDetectorRef.markForCheck()}),e.ngControl&&e.ngControl.valueChanges&&e.ngControl.valueChanges.pipe(Xt(this._destroyed)).subscribe(()=>this._changeDetectorRef.markForCheck()),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.pipe(Xt(this._destroyed)).subscribe(()=>{this._outlineGapCalculationNeededOnStable&&this.updateOutlineGap()})}),Mn(this._prefixChildren.changes,this._suffixChildren.changes).subscribe(()=>{this._outlineGapCalculationNeededOnStable=!0,this._changeDetectorRef.markForCheck()}),this._hintChildren.changes.pipe(ri(null)).subscribe(()=>{this._processHints(),this._changeDetectorRef.markForCheck()}),this._errorChildren.changes.pipe(ri(null)).subscribe(()=>{this._syncDescribedByIds(),this._changeDetectorRef.markForCheck()}),this._dir&&this._dir.change.pipe(Xt(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,Ts(this._label.nativeElement,"transitionend").pipe(an(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=dt({type:n}),n.\u0275inj=ct({imports:[Xi,Lt,ud,Lt]}),n})();const UG=["trigger"],qG=["panel"];function zG(n,t){if(1&n&&(g(0,"span",8),j(1),_()),2&n){const e=w();f(1),we(e.placeholder)}}function GG(n,t){if(1&n&&(g(0,"span",12),j(1),_()),2&n){const e=w(2);f(1),we(e.triggerValue)}}function WG(n,t){1&n&&jt(0,0,["*ngSwitchCase","true"])}function $G(n,t){1&n&&(g(0,"span",9),H(1,GG,2,1,"span",10),H(2,WG,1,0,"ng-content",11),_()),2&n&&(v("ngSwitch",!!w().customTrigger),f(2),v("ngSwitchCase",!0))}function KG(n,t){if(1&n){const e=ke();g(0,"div",13)(1,"div",14,15),$("@transformPanel.done",function(r){return X(e),Z(w()._panelDoneAnimatingStream.next(r.toState))})("keydown",function(r){return X(e),Z(w()._handleKeydown(r))}),jt(3,1),_()()}if(2&n){const e=w();v("@transformPanelWrap",void 0),f(1),function mS(n,t,e){_o(Sr,jo,Zl(xe(),n,t,e),!0)}("mat-select-panel ",e._getPanelTheme(),""),Oi("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 YG=[[["mat-select-trigger"]],"*"],QG=["mat-select-trigger","*"],bM={transformPanelWrap:$r("transformPanelWrap",[ui("* => void",xb("@transformPanel",[Tb()],{optional:!0}))]),transformPanel:$r("transformPanel",[zn("void",Ft({transform:"scaleY(0.8)",minWidth:"100%",opacity:0})),zn("showing",Ft({opacity:1,minWidth:"calc(100% + 32px)",transform:"scaleY(1)"})),zn("showing-multiple",Ft({opacity:1,minWidth:"calc(100% + 64px)",transform:"scaleY(1)"})),ui("void => *",_i("120ms cubic-bezier(0, 0, 0.2, 1)")),ui("* => void",_i("100ms 25ms linear",Ft({opacity:0})))])};let CM=0;const EM=new ge("mat-select-scroll-strategy"),eW=new ge("MAT_SELECT_CONFIG"),tW={provide:EM,deps:[ur],useFactory:function JG(n){return()=>n.scrollStrategies.reposition()}};class nW{constructor(t,e){this.source=t,this.value=e}}const iW=Wo(fd(Ms(Eb(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 L}})))),DM=new ge("MatSelectTrigger");let rW=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=fe({type:n,selectors:[["mat-select-trigger"]],features:[ot([{provide:DM,useExisting:n}])]}),n})(),oW=(()=>{class n extends iW{constructor(e,i,r,o,s,a,l,c,u,d,h,m,y,S){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=S,this._panelOpen=!1,this._compareWith=(U,ee)=>U===ee,this._uid="mat-select-"+CM++,this._triggerAriaLabelledBy=null,this._destroy=new L,this._onChange=()=>{},this._onTouched=()=>{},this._valueId="mat-select-value-"+CM++,this._panelDoneAnimatingStream=new L,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(ri(U),Qn(()=>Mn(...U.map(ee=>ee.onSelectionChange)))):this._ngZone.onStable.pipe(an(1),Qn(()=>this.optionSelectionChanges))}),this.openedChange=new He,this._openedStream=this.openedChange.pipe(An(U=>U),ue(()=>{})),this._closedStream=this.openedChange.pipe(An(U=>!U),ue(()=>{})),this.selectionChange=new He,this.valueChange=new He,this.ngControl&&(this.ngControl.valueAccessor=this),null!=S?.typeaheadDebounceInterval&&(this._typeaheadDebounceInterval=S.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(Cy.required)??!1}set required(e){this._required=at(e),this.stateChanges.next()}get multiple(){return this._multiple}set multiple(e){this._multiple=at(e)}get disableOptionCentering(){return this._disableOptionCentering}set disableOptionCentering(e){this._disableOptionCentering=at(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=As(e)}get id(){return this._id}set id(e){this._id=e||this._uid,this.stateChanges.next()}ngOnInit(){this._selectionModel=new ul(this.multiple),this.stateChanges.next(),this._panelDoneAnimatingStream.pipe(ff(),Xt(this._destroy)).subscribe(()=>this._panelDoneAnimating(this.panelOpen))}ngAfterContentInit(){this._initKeyManager(),this._selectionModel.changed.pipe(Xt(this._destroy)).subscribe(e=>{e.added.forEach(i=>i.select()),e.removed.forEach(i=>i.deselect())}),this.options.changes.pipe(ri(null),Xt(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&&!Di(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||Di(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(an(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 V2(this.options).withTypeAhead(this._typeaheadDebounceInterval).withVerticalOrientation().withHorizontalOrientation(this._isRtl()?"rtl":"ltr").withHomeAndEnd().withAllowedModifierKeys(["shiftKey"]),this._keyManager.tabOut.pipe(Xt(this._destroy)).subscribe(()=>{this.panelOpen&&(!this.multiple&&this._keyManager.activeItem&&this._keyManager.activeItem._selectViaInteraction(),this.focus(),this.close())}),this._keyManager.change.pipe(Xt(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=Mn(this.options.changes,this._destroy);this.optionSelectionChanges.pipe(Xt(e)).subscribe(i=>{this._onSelect(i.source,i.isUserInput),i.isUserInput&&!this.multiple&&this._panelOpen&&(this.close(),this.focus())}),Mn(...this.options.map(i=>i._stateChanges)).pipe(Xt(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(Go),p(It),p(et),p(md),p(Xe),p(tr,8),p(gc,8),p(_c,8),p(pm,8),p(wo,10),Hr("tabindex"),p(EM),p(pb),p(eW,8))},n.\u0275dir=fe({type:n,viewQuery:function(e,i){if(1&e&&(Te(UG,5),Te(qG,5),Te(h1,5)),2&e){let r;de(r=he())&&(i.trigger=r.first),de(r=he())&&(i.panel=r.first),de(r=he())&&(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:[De,kn]}),n})(),Hs=(()=>{class n extends oW{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(Xt(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(an(1)).subscribe(()=>{this._triggerFontSize&&this._overlayDir.overlayRef&&this._overlayDir.overlayRef.overlayElement&&(this._overlayDir.overlayRef.overlayElement.style.fontSize=`${this._triggerFontSize}px`)}))}_scrollOptionIntoView(e){const i=Ab(e,this.options,this.optionGroups),r=this._getItemHeight();this.panel.nativeElement.scrollTop=0===e&&1===i?0:A1((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 nW(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+=Ab(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&&(Ht(r,DM,5),Ht(r,Mr,5),Ht(r,If,5)),2&e){let o;de(o=he())&&(i.customTrigger=o.first),de(o=he())&&(i.options=o),de(o=he())&&(i.optionGroups=o)}},hostAttrs:["role","combobox","aria-autocomplete","none","aria-haspopup","true",1,"mat-select"],hostVars:19,hostBindings:function(e,i){1&e&&$("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:[ot([{provide:Gd,useExisting:n},{provide:xf,useExisting:n}]),De],ngContentSelectors:QG,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(YG),g(0,"div",0,1),$("click",function(){return i.toggle()}),g(3,"div",2),H(4,zG,2,1,"span",3),H(5,$G,3,2,"span",4),_(),g(6,"div",5),Ae(7,"div",6),_()(),H(8,KG,4,14,"ng-template",7),$("backdropClick",function(){return i.close()})("attach",function(){return i._onAttached()})("detach",function(){return i.close()})),2&e){const r=Jt(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:[Wa,fc,Np,OT,h1,d1],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:[bM.transformPanelWrap,bM.transformPanel]},changeDetection:0}),n})(),sW=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=dt({type:n}),n.\u0275inj=ct({providers:[tW],imports:[Xi,xc,Mf,Lt,Ac,fm,Mf,Lt]}),n})();const SM=Ds({passive:!0});let aW=(()=>{class n{constructor(e,i){this._platform=e,this._ngZone=i,this._monitoredElements=new Map}monitor(e){if(!this._platform.isBrowser)return Es;const i=Zn(e),r=this._monitoredElements.get(i);if(r)return r.subject;const o=new L,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,SM),i.classList.add("cdk-text-field-autofill-monitored")}),this._monitoredElements.set(i,{subject:o,unlisten:()=>{i.removeEventListener("animationstart",a,SM)}}),o}stopMonitoring(e){const i=Zn(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)(T(Fn),T(et))},n.\u0275prov=me({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),AM=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=dt({type:n}),n.\u0275inj=ct({}),n})();const lW=new ge("MAT_INPUT_VALUE_ACCESSOR"),cW=["button","checkbox","file","hidden","image","radio","range","reset","submit"];let uW=0;const dW=Eb(class{constructor(n,t,e,i){this._defaultErrorStateMatcher=n,this._parentForm=t,this._parentFormGroup=e,this.ngControl=i,this.stateChanges=new L}});let Jr=(()=>{class n extends dW{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-"+uW++,this.focused=!1,this.stateChanges=new L,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=>R2().has(y)),this._iOSKeyupListener=y=>{const S=y.target;!S.value&&0===S.selectionStart&&0===S.selectionEnd&&(S.setSelectionRange(1,1),S.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=at(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(Cy.required)??!1}set required(e){this._required=at(e)}get type(){return this._type}set type(e){this._type=e||"text",this._validateType(),!this._isTextarea&&R2().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=at(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(){cW.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(Xe),p(Fn),p(wo,10),p(gc,8),p(_c,8),p(md),p(lW,10),p(aW),p(et),p(pm,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&&$("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:[ot([{provide:Gd,useExisting:n}]),De,kn]}),n})(),hW=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=dt({type:n}),n.\u0275inj=ct({providers:[md],imports:[AM,fm,Lt,AM,fm]}),n})();const pW=[[["caption"]],[["colgroup"],["col"]]],fW=["caption","colgroup, col"];function yC(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=at(t),this._hasStickyChanged=e!==this._sticky}hasStickyChanged(){const t=this._hasStickyChanged;return this._hasStickyChanged=!1,t}resetStickyChanged(){this._hasStickyChanged=!1}}}const Vc=new ge("CDK_TABLE");let Uc=(()=>{class n{constructor(e){this.template=e}}return n.\u0275fac=function(e){return new(e||n)(p(bn))},n.\u0275dir=fe({type:n,selectors:[["","cdkCellDef",""]]}),n})(),qc=(()=>{class n{constructor(e){this.template=e}}return n.\u0275fac=function(e){return new(e||n)(p(bn))},n.\u0275dir=fe({type:n,selectors:[["","cdkHeaderCellDef",""]]}),n})(),gm=(()=>{class n{constructor(e){this.template=e}}return n.\u0275fac=function(e){return new(e||n)(p(bn))},n.\u0275dir=fe({type:n,selectors:[["","cdkFooterCellDef",""]]}),n})();class vW{}const yW=yC(vW);let Vs=(()=>{class n extends yW{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=at(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(Vc,8))},n.\u0275dir=fe({type:n,selectors:[["","cdkColumnDef",""]],contentQueries:function(e,i,r){if(1&e&&(Ht(r,Uc,5),Ht(r,qc,5),Ht(r,gm,5)),2&e){let o;de(o=he())&&(i.cell=o.first),de(o=he())&&(i.headerCell=o.first),de(o=he())&&(i.footerCell=o.first)}},inputs:{sticky:"sticky",name:["cdkColumnDef","name"],stickyEnd:"stickyEnd"},features:[ot([{provide:"MAT_SORT_HEADER_COLUMN_DEF",useExisting:n}]),De]}),n})();let wC=(()=>{class n extends class bC{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(Vs),p(Xe))},n.\u0275dir=fe({type:n,selectors:[["cdk-cell"],["td","cdk-cell",""]],hostAttrs:[1,"cdk-cell"],features:[De]}),n})();class xM{constructor(){this.tasks=[],this.endTasks=[]}}const EC=new ge("_COALESCED_STYLE_SCHEDULER");let IM=(()=>{class n{constructor(e){this._ngZone=e,this._currentSchedule=null,this._destroyed=new L}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 xM,this._getScheduleObservable().pipe(Xt(this._destroyed)).subscribe(()=>{for(;this._currentSchedule.tasks.length||this._currentSchedule.endTasks.length;){const e=this._currentSchedule;this._currentSchedule=new xM;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(an(1))}}return n.\u0275fac=function(e){return new(e||n)(T(et))},n.\u0275prov=me({token:n,factory:n.\u0275fac}),n})(),DC=(()=>{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 $d?e.headerCell.template:this instanceof Kd?e.footerCell.template:e.cell.template}}return n.\u0275fac=function(e){return new(e||n)(p(bn),p(gs))},n.\u0275dir=fe({type:n,features:[kn]}),n})();class bW extends DC{}const CW=yC(bW);let $d=(()=>{class n extends CW{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(bn),p(gs),p(Vc,8))},n.\u0275dir=fe({type:n,selectors:[["","cdkHeaderRowDef",""]],inputs:{columns:["cdkHeaderRowDef","columns"],sticky:["cdkHeaderRowDefSticky","sticky"]},features:[De,kn]}),n})();class wW extends DC{}const EW=yC(wW);let Kd=(()=>{class n extends EW{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(bn),p(gs),p(Vc,8))},n.\u0275dir=fe({type:n,selectors:[["","cdkFooterRowDef",""]],inputs:{columns:["cdkFooterRowDef","columns"],sticky:["cdkFooterRowDefSticky","sticky"]},features:[De,kn]}),n})(),_m=(()=>{class n extends DC{constructor(e,i,r){super(e,i),this._table=r}}return n.\u0275fac=function(e){return new(e||n)(p(bn),p(gs),p(Vc,8))},n.\u0275dir=fe({type:n,selectors:[["","cdkRowDef",""]],inputs:{columns:["cdkRowDefColumns","columns"],when:["cdkRowDefWhen","when"]},features:[De]}),n})(),Us=(()=>{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(En))},n.\u0275dir=fe({type:n,selectors:[["","cdkCellOutlet",""]]}),n})(),TC=(()=>{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:[Us],encapsulation:2}),n})(),vm=(()=>{class n{constructor(e){this.templateRef=e,this._contentClassName="cdk-no-data-row"}}return n.\u0275fac=function(e){return new(e||n)(p(bn))},n.\u0275dir=fe({type:n,selectors:[["ng-template","cdkNoDataRow",""]]}),n})();const MM=["top","bottom","left","right"];class DW{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 S of t)for(let U=0;Ue[U]?S:null)}),this._positionListener.stickyEndColumnsUpdated({sizes:-1===d?[]:a.slice(d).map((S,U)=>i[U+d]?S: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]);MM.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 MM)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 xC=new ge("CDK_SPL");let ym=(()=>{class n{constructor(e,i){this.viewContainer=e,this.elementRef=i}}return n.\u0275fac=function(e){return new(e||n)(p(En),p(Xe))},n.\u0275dir=fe({type:n,selectors:[["","rowOutlet",""]]}),n})(),bm=(()=>{class n{constructor(e,i){this.viewContainer=e,this.elementRef=i}}return n.\u0275fac=function(e){return new(e||n)(p(En),p(Xe))},n.\u0275dir=fe({type:n,selectors:[["","headerRowOutlet",""]]}),n})(),Cm=(()=>{class n{constructor(e,i){this.viewContainer=e,this.elementRef=i}}return n.\u0275fac=function(e){return new(e||n)(p(En),p(Xe))},n.\u0275dir=fe({type:n,selectors:[["","footerRowOutlet",""]]}),n})(),wm=(()=>{class n{constructor(e,i){this.viewContainer=e,this.elementRef=i}}return n.\u0275fac=function(e){return new(e||n)(p(En),p(Xe))},n.\u0275dir=fe({type:n,selectors:[["","noDataRowOutlet",""]]}),n})(),Em=(()=>{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 L,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 cr({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=at(e),this._rowOutlet&&this._rowOutlet.viewContainer.length&&(this._forceRenderDataRows(),this.updateStickyColumnStyles())}get fixedLayout(){return this._fixedLayout}set fixedLayout(e){this._fixedLayout=at(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(Xt(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(),mC(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(an(1),Xt(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(),Dm(this._getOwnDefs(this._contentColumnDefs),this._customColumnDefs).forEach(i=>{this._columnDefsByName.has(i.name),this._columnDefsByName.set(i.name,i)})}_cacheRowDefs(){this._headerRowDefs=Dm(this._getOwnDefs(this._contentHeaderRowDefs),this._customHeaderRowDefs),this._footerRowDefs=Dm(this._getOwnDefs(this._contentFooterRowDefs),this._customFooterRowDefs),this._rowDefs=Dm(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=[],mC(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;mC(this.dataSource)?e=this.dataSource.connect(this):Cs(this.dataSource)?e=this.dataSource:Array.isArray(this.dataSource)&&(e=Fe(this.dataSource)),this._renderChangeSubscription=e.pipe(Xt(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))Us.mostRecentCellOutlet&&Us.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 DW(this._isNativeHtmlTable,this.stickyCssClass,this._dir?this._dir.value:"ltr",this._coalescedStyleScheduler,this._platform.isBrowser,this.needsPositionStickyOnElement,this._stickyPositioningListener),(this._dir?this._dir.change:Fe()).pipe(Xt(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(gs),p(It),p(Xe),Hr("role"),p(tr,8),p(pt),p(Fn),p(qd),p(EC),p(Go),p(xC,12),p(et,8))},n.\u0275cmp=Ue({type:n,selectors:[["cdk-table"],["table","cdk-table",""]],contentQueries:function(e,i,r){if(1&e&&(Ht(r,vm,5),Ht(r,Vs,5),Ht(r,_m,5),Ht(r,$d,5),Ht(r,Kd,5)),2&e){let o;de(o=he())&&(i._noDataRow=o.first),de(o=he())&&(i._contentColumnDefs=o),de(o=he())&&(i._contentRowDefs=o),de(o=he())&&(i._contentHeaderRowDefs=o),de(o=he())&&(i._contentFooterRowDefs=o)}},viewQuery:function(e,i){if(1&e&&(Te(ym,7),Te(bm,7),Te(Cm,7),Te(wm,7)),2&e){let r;de(r=he())&&(i._rowOutlet=r.first),de(r=he())&&(i._headerRowOutlet=r.first),de(r=he())&&(i._footerRowOutlet=r.first),de(r=he())&&(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:[ot([{provide:Vc,useExisting:n},{provide:qd,useClass:fM},{provide:EC,useClass:IM},{provide:xC,useValue:null}])],ngContentSelectors:fW,decls:6,vars:0,consts:[["headerRowOutlet",""],["rowOutlet",""],["noDataRowOutlet",""],["footerRowOutlet",""]],template:function(e,i){1&e&&(Pn(pW),jt(0),jt(1,1),Wt(2,0)(3,1)(4,2)(5,3))},dependencies:[ym,bm,Cm,wm],styles:[".cdk-table-fixed-layout{table-layout:fixed}"],encapsulation:2}),n})();function Dm(n,t){return n.concat(Array.from(t))}let AW=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=dt({type:n}),n.\u0275inj=ct({imports:[vb]}),n})();const TW=[[["caption"]],[["colgroup"],["col"]]],xW=["caption","colgroup, col"];let Sm=(()=>{class n extends Em{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:[ot([{provide:qd,useClass:fM},{provide:Em,useExisting:n},{provide:Vc,useExisting:n},{provide:EC,useClass:IM},{provide:xC,useValue:null}]),De],ngContentSelectors:xW,decls:6,vars:0,consts:[["headerRowOutlet",""],["rowOutlet",""],["noDataRowOutlet",""],["footerRowOutlet",""]],template:function(e,i){1&e&&(Pn(TW),jt(0),jt(1,1),Wt(2,0)(3,1)(4,2)(5,3))},dependencies:[ym,bm,Cm,wm],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})(),Yd=(()=>{class n extends Uc{}return n.\u0275fac=function(){let t;return function(i){return(t||(t=Pt(n)))(i||n)}}(),n.\u0275dir=fe({type:n,selectors:[["","matCellDef",""]],features:[ot([{provide:Uc,useExisting:n}]),De]}),n})(),Qd=(()=>{class n extends Vs{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:[ot([{provide:Vs,useExisting:n},{provide:"MAT_SORT_HEADER_COLUMN_DEF",useExisting:n}]),De]}),n})(),Xd=(()=>{class n extends wC{}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:[De]}),n})(),Am=(()=>{class n extends _m{}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:[ot([{provide:_m,useExisting:n}]),De]}),n})(),Tm=(()=>{class n extends TC{}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:[ot([{provide:TC,useExisting:n}]),De],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(e,i){1&e&&Wt(0,0)},dependencies:[Us],encapsulation:2}),n})(),HW=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=dt({type:n}),n.\u0275inj=ct({imports:[AW,Lt,Lt]}),n})();const UW=["searchContact"];function qW(n,t){if(1&n){const e=ke();g(0,"button",13),$("click",function(){return X(e),Z(w(2).searchValue="")}),Ae(1,"div",14),_()}if(2&n){const e=w(2);f(1),v("ngStyle",e.searchClearImage)}}function zW(n,t){if(1&n&&(g(0,"mat-option",15),j(1),_()),2&n){const e=t.$implicit;v("value",e.value),f(1),we(e.viewValue)}}const GW=function(n){return{background:n}};function WW(n,t){if(1&n&&Ae(0,"mat-cell",22),2&n){const e=t.$implicit,i=w(3);v("ngStyle",$n(1,GW,"no-repeat url("+i.viewIconBaseURL+e.value.iconURL+")"))}}function $W(n,t){if(1&n&&(g(0,"div"),j(1),_()),2&n){const e=w().$implicit;f(1),qe(" ",e.value.company," ")}}function KW(n,t){if(1&n&&(g(0,"div"),j(1),_()),2&n){const e=w().$implicit;f(1),qe(" ",e.value.postal," ")}}function YW(n,t){if(1&n&&(g(0,"mat-cell",23)(1,"mat-dialog-content")(2,"span",24),j(3),_(),H(4,$W,2,1,"div",25),H(5,KW,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 QW(n,t){if(1&n){const e=ke();g(0,"mat-row",26),$("click",function(){const o=X(e).$implicit;return Z(w(3).toggleSelection(o))})("dblclick",function(){const o=X(e).$implicit;return Z(w(3).acceptEntryDblClick(o))}),_()}if(2&n){const e=t.$implicit,i=w(3);bt("isSelected",i.selection.isSelected(e)),v("matRippleColor",i.rippleColor)("matRippleCentered",i.centered)("matRippleDisabled",i.disabled)("matRippleUnbounded",i.unbounded)}}function XW(n,t){if(1&n&&(g(0,"div")(1,"mat-table",16),fi(2,17),H(3,WW,1,3,"mat-cell",18),mi(),fi(4,19),H(5,YW,6,3,"mat-cell",20),mi(),H(6,QW,1,6,"mat-row",21),_()()),2&n){const e=w(2);wi(e.tableWrapperClassName),f(1),v("dataSource",e.searchResults),f(5),v("matRowDefColumns",e.displayedColumns)}}function ZW(n,t){1&n&&(g(0,"div"),j(1),Ze(2,"translate"),_()),2&n&&(f(1),we(Je(2,1,"LC53482")))}const JW=function(n){return{title:n}},e$=function(n,t,e,i){return{confirm:n,cancel:t,confirmAction:e,cancelAction:i}};function t$(n,t){if(1&n){const e=ke();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),$("ngModelChange",function(r){return X(e),Z(w().searchValue=r)})("keyup.enter",function(){return X(e),Z(w().search())}),_(),H(9,qW,2,1,"button",6),_(),g(10,"input",7),$("click",function(){return X(e),Z(w().search())}),Ze(11,"translate"),_()(),g(12,"mat-form-field",8)(13,"mat-label"),j(14),Ze(15,"translate"),_(),g(16,"mat-select",9),$("valueChange",function(r){return X(e),Z(w().selectedDB=r)})("selectionChange",function(){X(e);const r=w();return Z(r.fetchSearch(r.selectedDB))}),H(17,zW,2,2,"mat-option",10),_()(),H(18,XW,7,5,"div",11),H(19,ZW,3,3,"ng-template",null,12,Dn),_(),Wt(21,1),Ze(22,"translate"),Ze(23,"translate")}if(2&n){const e=Jt(20),i=w();v("ngTemplateOutlet",i.modalHeader)("ngTemplateOutletContext",$n(25,JW,Je(1,13,"LC53493"))),f(6),we(Je(7,15,"LC53489")),f(2),v("ngModel",i.searchValue),f(1),v("ngIf",i.searchValue),f(1),Dt("value",Je(11,17,"LC36251")),f(4),we(Je(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",Ki(27,e$,Je(22,21,"LC73135"),Je(23,23,"LC73136"),i.confirmAction.bind(i),i.cancelAction.bind(i)))}}let PM=(()=>{class n extends _C{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(Kt),p(Bn),p(ht),p(en),p(zd),p(Bs))},n.\u0275cmp=Ue({type:n,selectors:[["app-search-contact"]],viewQuery:function(e,i){if(1&e&&Te(UW,7),2&e){let r;de(r=he())&&(i.modalTemp=r.first)}},inputs:{data:"data"},outputs:{messageEvent:"messageEvent"},features:[De],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,t$,24,32,"ng-template",null,0,Dn)},dependencies:[Yn,hn,Qi,ra,zr,Eo,qo,Rf,Zr,nr,vC,Hs,Mr,Jr,Sm,Qd,Yd,Am,Xd,Tm,Ir,Pi],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 xm=["","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"],n$=["EMailAddress","FirstName#LastName","Company","HomePage","Address1","ZipCode#City","State","CountryToo","MainPhone","Fax","CellPhone","Title","fdContactTitle","Department","","","","","","","","",""];let zc=(()=>{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)(T(fC),T(en),T(ht))},n.\u0275prov=me({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),IC=(()=>{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)(T(Kt),T(Bn),T(ht),T(en),T(zc))},n.\u0275prov=me({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const eo=navigator.language;let i$=(()=>{class n{constructor(e,i,r,o){this.translate=e,this.messageService=i,this.soapService=r,this.webintLink=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 Ee(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 Ee(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 S in u)if(Number(S)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 Ee(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(eo)&&eo.length>0?eo[0]:eo;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.webintLink.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 Ee(function*(){if(!a)return void l.translate.get("LC53496").subscribe(S=>{l.messageService.showError(S)});const c=yield l.createResultObject(e,i,r,s);let u=l.searchResultData;if(u=Object.keys(u),u.length>0){const S=u[0].split("~*~");null!=S&&(c.Company=S[29],c.Address1=S[10],c.Address2=S[30],c.ZipCode=S[12],c.City=S[11],c.State=S[14],c.CountryToo=S[13],(null==c.MainPhone||0===c.MainPhone.localeCompare(""))&&(c.MainPhone=S[15]),(null==c.Fax||0===c.Fax.localeCompare(""))&&(c.Fax=S[17]))}if(null==c.LastName||0===c.LastName.localeCompare(""))return void l.translate.get("LC73202").subscribe(S=>{S=S.replace("{FIELDNAME}",r.get("LastName")),l.messageService.showError(S)});let d="";for(const S in c)d+="~*~"+S+"~#~"+c[S];d="~*~"+d,d+="~*~AddressSynch~#~1";const h={};let m;h.addressData=d,h.contactsPath="$"+o,h.targetCompanyId=a,h.languageCode=Array.isArray(eo)&&eo.length>0?eo[0]:eo;try{m=yield l.soapService.invokeSoap("CreateAddresses",h,!0)}catch(S){return void l.messageService.showError(S.message)}const y=Object.keys(m);1===y.length?window.open(l.webintLink.convertToLink(y[0]),"_blank"):l.translate.get("LC53496").subscribe(S=>{l.messageService.showError(S)}),l.closeAll()})()}handleCreatePrivatePerson(e,i,r,o,s){var a=this;return Ee(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(eo)&&eo.length>0?eo[0]:eo;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.webintLink.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)(T(Kt),T(en),T(IC),T(Xr))},n.\u0275prov=me({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const r$=["create"],o$=["labels"],s$=["areaData"],a$=["previewData"];function l$(n,t){if(1&n){const e=ke();g(0,"mat-list-option",11),$("click",function(){const r=X(e),o=r.$implicit,s=r.index;return Z(w(2).changeLabel(o,s))}),j(1),_()}if(2&n){const e=t.$implicit,i=t.index,r=w(2);Dt("value",r.currentKeyLabels[i]),f(1),qe(" ",r.fieldDisplayNameMap.get(e)," ")}}function c$(n,t){1&n&&Ae(0,"textarea",12,13)}const u$=function(n){return{title:n}},d$=function(n,t,e,i){return{confirm:n,cancel:t,confirmAction:e,cancelAction:i}};function h$(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,l$,2,2,"mat-list-option",7),_()(),Ae(8,"textarea",8,9),H(10,c$,2,0,"textarea",10),_()(),Wt(11,1),Ze(12,"translate"),Ze(13,"translate")),2&n){const e=Jt(9),i=w();v("ngTemplateOutlet",i.modalHeader)("ngTemplateOutletContext",$n(15,u$,Je(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",Ki(17,d$,Je(12,11,"LC73135"),Je(13,13,"LC73136"),i.confirmAction.bind(i,e),i.cancelAction.bind(i)))}}let p$=(()=>{class n extends Gr{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=xm,this.currentKeyLabels=n$}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:xm,selected:e});r&&r.afterClosed().subscribe(o=>{o&&(this.currentKeyLabels[i]=o)})}processScanFooter(){var e=this;return Ee(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 Ee(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(xm.length===e.length){let i=1;for(const r of xm)""!==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(Kt),p(ht),p(en),p(IC),p(i$))},n.\u0275cmp=Ue({type:n,selectors:[["app-create-contact"]],viewQuery:function(e,i){if(1&e&&(Te(r$,7),Te(o$,5),Te(s$,5),Te(a$,5)),2&e){let r;de(r=he())&&(i.modalTemp=r.first),de(r=he())&&(i.selection=r.first),de(r=he())&&(i.areaData=r.first),de(r=he())&&(i.previewData=r.first)}},inputs:{data:"data"},features:[De],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,h$,14,22,"ng-template",null,0,Dn)},dependencies:[Wa,Yn,hn,Qi,Zo,js,Pi],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 f$=["crTicket"],m$=["tiTypes"];function g$(n,t){if(1&n){const e=ke();g(0,"mat-list-option",6),$("dblclick",function(){return X(e),Z(w(2).confirmAction())}),j(1),_()}if(2&n){const e=t.$implicit,i=w(2);Dt("value",e.value),v("selected",e.key===i.recent),f(1),qe(" ",e.key," ")}}const _$=function(n){return{title:n}},v$=function(n,t,e,i){return{confirm:n,cancel:t,confirmAction:e,cancelAction:i}};function y$(n,t){if(1&n&&(Wt(0,1),Ze(1,"translate"),g(2,"div",2)(3,"mat-selection-list",3,4),H(5,g$,2,3,"mat-list-option",5),_()(),Wt(6,1),Ze(7,"translate"),Ze(8,"translate")),2&n){const e=w();v("ngTemplateOutlet",e.modalHeader)("ngTemplateOutletContext",$n(12,_$,Je(1,6,"LC53522"))),f(3),v("multiple",!1),f(2),v("ngForOf",e.ticketTypes),f(1),v("ngTemplateOutlet",e.modalFooter)("ngTemplateOutletContext",Ki(14,v$,Je(7,8,"LC73135"),Je(8,10,"LC73136"),e.confirmAction.bind(e),e.cancelAction.bind(e)))}}let b$=(()=>{class n extends Gr{constructor(e,i,r,o,s,a,l,c){super(e),this.translate=e,this.connection=i,this.messageService=r,this.webintLink=o,this.addressService=s,this.globals=a,this.connectionService=l,this.loader=c,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.webintLink.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(Kt),p(Bn),p(en),p(Xr),p(Bs),p(ht),p(Bn),p(zc))},n.\u0275cmp=Ue({type:n,selectors:[["app-create-ticket"]],viewQuery:function(e,i){if(1&e&&(Te(f$,7),Te(m$,5)),2&e){let r;de(r=he())&&(i.modalTemp=r.first),de(r=he())&&(i.selection=r.first)}},features:[De],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,y$,9,19,"ng-template",null,0,Dn)},dependencies:[Yn,Qi,Zo,js,Pi]}),n})(),MC=(()=>{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)(T(Bs),T(ht))},n.\u0275prov=me({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),C$=(()=>{class n{constructor(e,i,r,o,s,a,l,c){this.translate=e,this.globals=i,this.loader=r,this.connectionService=o,this.messageService=s,this.webInt=a,this.reloadService=l,this.modalService=c,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.webInt.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=Ee(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.webInt.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=Ee(function*(u){a.baNextHandler(u,o)}),function(d){return c.apply(this,arguments)}),error:function(){var c=Ee(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 Ee(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)(T(Kt),T(ht),T(zc),T(Bn),T(en),T(Xr),T(MC),T(hl))},n.\u0275prov=me({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();class Rr{}var Jo=(()=>(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"}(Jo||(Jo={})),Jo))();class w${}var dl=(()=>(function(n){n[n.alreadyDocumented=0]="alreadyDocumented"}(dl||(dl={})),dl))();class Im{}var To=(()=>(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"}(To||(To={})),To))();const E$=["mat-button",""],D$=["*"],A$=["mat-button","mat-flat-button","mat-icon-button","mat-raised-button","mat-stroked-button","mat-mini-fab","mat-fab"],T$=da(Ms(Wo(class{constructor(n){this._elementRef=n}})));let Gc=(()=>{class n extends T${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 A$)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(Xe),p(So),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&&Te(Ir,5),2&e){let r;de(r=he())&&(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:[De],attrs:E$,ngContentSelectors:D$,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),jt(1),_(),Ae(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:[Ir],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})(),FM=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=dt({type:n}),n.\u0275inj=ct({imports:[ha,Lt,Lt]}),n})(),x$=(()=>{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(kf),p(Kt),p(ht))},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"),_(),Ae(3,"mat-dialog-content",1),g(4,"mat-dialog-actions",2)(5,"button",3),$("click",function(){return i.closeDialog(!0)}),j(6),Ze(7,"translate"),_(),g(8,"button",3),$("click",function(){return i.closeDialog(!1)}),j(9),_()()),2&e&&(f(1),we(Je(2,3,"LC73006")),f(5),we(Je(7,5,"LC73057")),f(3),we(i.globals.languageConfLocal.NO))},dependencies:[iq,Rf,rq,Gc,Pi],encapsulation:2}),n})(),Mm=(()=>{class n{constructor(e){this.dialog=e}createDialogWithType(e,i){let r;return i||((i=new Mc).disableClose=!0,i.autoFocus=!0),e===dl.alreadyDocumented&&(r=x$),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)(T(Rs))},n.\u0275prov=me({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();var Wc=G(5742);class km{}let qs=(()=>{class n{constructor(e){this.globals=e}GetAttachments(e,i){return e=this.fixItemId(e),new Wc.y(r=>{let o=void 0===i.getItemIdAsync||void 0===typeof i.getItemIdAsync;o?this.getAllAttachmentsContent(i,i.attachments,o,e,r):i.getAttachmentsAsync(s=>{this.getAllAttachmentsContent(i,s.value,o,e,r)})})}getAllAttachmentsContent2(e,i,r,o,s){let a=[];a=r?i:i.map(u=>u.id.replace("+","_")),Office.context.mailbox.makeEwsRequestAsync('\n \n \n \n \n \n \n \n \n \n ',u=>{(new DOMParser).parseFromString(u.value,"text/xml").querySelectorAll("FileAttachment")})}getAllAttachmentsContent(e,i,r,o,s){this.getAttachmentsContent(e,i,0).subscribe(a=>{r||i.map(u=>u.id.replace("+","_")),Office.context.mailbox.makeEwsRequestAsync('\n \n \n \n \n \n \n \n Default\n\n \n \n \n \n \n \n ',u=>{let m=(new DOMParser).parseFromString(u.value,"text/xml").querySelectorAll("FileAttachment"),y=m.length,S=[],U=[];for(let ee=0;eeWn.id===_t),pn=a.find(Wn=>Wn.attachmentId===_t);if((!Gt||!pn)&&s.error("Documentation not possible"),"gi"===this.globals.system)S.push({data:pn.data,name:Gt?.name,type:Gt?.contentType,cid:Ie,inline:tt});else if(this.globals.deleteAttachments&&!tt){let Wn=ve.querySelector("Name");Wn&&U.push(Wn.innerHTML)}else S.push({name:Gt?.name,mimeType:Gt?.contentType,contentID:Ie,data:pn.data,isInline:tt,inline:tt})}}s.next({attachments:S,deletedAttachments:U})})})}getAttachmentsContent(e,i,r){return new Wc.y(o=>{let s=[];r+1<=i.length?e.getAttachmentContentAsync(i[r].id,a=>{if(a.status!==Office.AsyncResultStatus.Failed){let c=i[r];s.push({name:c.name,mimeType:"file"===c.attachmentType?c.contentType:c.attachmentType,attachmentId:c.id,data:a.value.content,isInline:c.isInline,inline:c.isInline}),this.getAttachmentsContent(e,i,r+1).subscribe(u=>{s=s.concat(u),o.next(s)})}else o.error("Failed to get attachment content.")}):o.next(s)})}GetExtendedData(e,i=!1){if(!e||null==e){let r=Office.context.mailbox.item;r&&("function"==typeof r.saveAsync?r.saveAsync(o=>(this.globals.infoShower.currentItemId=o.value,this.performGetExtendedData(i,this.globals.infoShower.currentItemId))):(this.globals.infoShower.currentItemId=r.itemId,e=r.itemId))}return this.performGetExtendedData(i,e)}performGetExtendedData(e,i){let r='\n \n \n \n \n \n \n \n Default\n \n \n \n \n \n \n \n \n \n ';return new Wc.y(o=>{try{Office.context.mailbox.makeEwsRequestAsync(r,s=>{const c=(new DOMParser).parseFromString(s.value,"text/xml").querySelector("ExtendedProperty>Value")?.innerHTML;if(c)try{o.next(JSON.parse(c))}catch{o.next(new km)}else o.next(new km)})}catch(s){throw s}})}SaveExtendedData(e,i){if(!e||null==e){let r=Office.context.mailbox.item;r&&("function"==typeof r.saveAsync?r.saveAsync(o=>(this.globals.infoShower.currentItemId=o.value,this.performSaveExtendedData(this.globals.infoShower.currentItemId,i))):(this.globals.infoShower.currentItemId=r.itemId,e=r.itemId))}return this.performSaveExtendedData(e,i)}performSaveExtendedData(e,i){if(!this.globals.infoShower.isNew&&!this.globals.infoShower.isUpdate)return new Wc.y(o=>{o.next("NOSAVE")});let r='\n \n \n \n \n \n \n \n Default\n \n \n \n \n \n \n \n \n \n ';return new Wc.y(o=>{Office.context.mailbox.makeEwsRequestAsync(r,s=>{const c=(new DOMParser).parseFromString(s.value,"text/xml").querySelector("ItemId")?.getAttribute("ChangeKey");let u='\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n '+JSON.stringify(i)+"\n \n \n \n \n \n \n \n \n ";Office.context.mailbox.makeEwsRequestAsync(u,d=>{o.next(d)})})})}fixItemId(e){return e}getItemWithExtendedProperties(){Office.context.mailbox.makeEwsRequestAsync('\n \n \n \n \n \n \n \n Default\n \n \n \n \n \n \n \n \n \n ',i=>{(new DOMParser).parseFromString(i.value,"text/xml")})}SetExtendedPropOnCalendar(){Office.context.mailbox.makeEwsRequestAsync('\n \n \n \n \n \n \n \n Default\n \n \n \n \n \n \n \n \n \n ',i=>{const s=(new DOMParser).parseFromString(i.value,"text/xml").querySelector("ItemId")?.getAttribute("ChangeKey");Office.context.mailbox.makeEwsRequestAsync('\n \n \n \n \n \n \n \n \n \n \n\n \n \n \n \n \n DoItPlease\n \n \n \n\n \n \n \n \n \n ',l=>{})})}CreateAppointmentUsingEWS(){}}return n.\u0275fac=function(e){return new(e||n)(T(ht))},n.\u0275prov=me({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),kC=(()=>{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)}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=me({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),$c=(()=>{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)??I$[e].toString()}save(){return new Wc.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(zs.USopenAfterCreate)}get LinkOptionActive(){return"true"===this.get(zs.USlinkOptionActive)}}return n.\u0275fac=function(e){return new(e||n)(T(Ji))},n.\u0275prov=me({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();var zs=(()=>(function(n){n.USopenAfterCreate="USopenAfterCreate",n.USlinkOptionActive="USlinkOptionActive"}(zs||(zs={})),zs))();let I$=(()=>{class n{}return n.USopenAfterCreate=!0,n.USlinkOptionActive=!1,n})();const to=navigator.language;let M$=(()=>{class n{constructor(e,i,r,o,s,a,l,c,u,d,h,m,y,S){this.connection=e,this.modalService=i,this.globals=r,this.globalsService=o,this.connectionService=s,this.webInt=a,this.translate=l,this.messageService=c,this.dialogService=u,this.ews=d,this.htmlHelper=h,this.soapService=m,this.webintLink=y,this.settings=S,this.indexParamStart="index.xsp?",this.urlExtension=this.indexParamStart+"loadTabs=false"}getContacts(){return Ee(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===To.Contact)console.log("ContactResult:",e),Array.isArray(e)&&e.forEach(s=>{let a=new Rr,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)});else if(i===Jo.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 Rr;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 Rr;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 Rr,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===To.Service?(console.log("ServiceResult:",e),Array.isArray(e)&&e.forEach(s=>{let a=new Rr,l=JSON.parse(s.displayJSON);a.lineOne=l.display+" ("+l.value.ticketnumber+")",l.value?(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===To.Opportunity?(console.log("OpportunityResult:",e),Array.isArray(e)&&e.forEach(s=>{let a=new Rr,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===To.Events?(console.log("EventsResult:",e),Array.isArray(e)&&e.forEach(s=>{let a=new Rr,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===To.Organization?(console.log("OrganizationResult:",e),Array.isArray(e)&&e.forEach(s=>{let a=new Rr,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===To.Activities?(console.log("OfficeResult:",e),Array.isArray(e)&&e.forEach(s=>{let a=new Rr,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===To.Leads&&(console.log("LeadsResult:",e),Array.isArray(e)&&e.forEach(s=>{let a=new Rr,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.ews.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.attachments})},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.ews.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.attachments})},u=>r.error(u))})})})})})})}retrieveDataForEmailRead(e,i){return new b(r=>{this.ews.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.attachments,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.ews.GetAttachments(o.value,e).subscribe(u=>{let d=[];u.attachments.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=>{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=Ee(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 S=0;SS.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){this.globals.showSpinner(),this.retrieveDataForItem({}).subscribe({next:i=>{console.log("Documenting new item:",i);let o,r=e.selectedProjects;if(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)},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;this.connectionService.postReq("convert","data="+encodeURIComponent(JSON.stringify(e)),!1,{headers:{"content-type":"application/x-www-form-urlencoded"}}).subscribe({next:(l=Ee(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.openMail&&(h=new $t,h.set("openDocument",m),window.open(a.webInt.convertToLink(m),"_blank")),a.globals.addressActivities.refresh(),a.globals.hideSpinner()},error:m=>{if(a.globals.hideSpinner(),409===m.status){const y=new Mc;y.disableClose=!0,y.autoFocus=!0,a.dialogService.createDialogWithType(dl.alreadyDocumented,y).subscribe(S=>{S.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=>{e.next("8.13")})}getDocumentsChips(e){return new b(i=>{i.next([])})}readCRMDataForItem(e){return new b(i=>{this.ews.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 Im;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 Im)})}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(to)&&to.length>0?to[0]:to;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(to)&&to.length>0?to[0]:to;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.webintLink.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(to)&&to.length>0?to[0]:to;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.webintLink.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()})})}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}openWebIntWithParams(e){e=e.set("loadTabs","false"),window.open(this.globalsService.webInt+this.indexParamStart+e.toString(),"_blank")}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)})})}}return n.\u0275fac=function(e){return new(e||n)(T(Bn),T(hl),T(ht),T(ht),T(Bn),T(Xr),T(Kt),T(en),T(Mm),T(qs),T(kC),T(IC),T(Xr),T($c))},n.\u0275prov=me({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),RC=(()=>{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)(T(ht),T(er),T(vc),T(ht),T(Bn))},n.\u0275prov=me({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),k$=(()=>{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.translate=s,this.messageService=a,this.dialogService=l,this.ews=c,this.htmlHelper=u,this.connectionService=d,this.converter=h,this.lang=m,this.settings=y}fetchDBs(e,i){return Fe(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 Fe(null)}getSelDB(){return Fe(null)}createLink(e){return this.globals.webInt+"openrecord/"+e}getDisplayedType(){return Fe(null)}getConfig(){return Fe(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.ews.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.attachments,deletedAttachments:o.deletedAttachments})},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.ews.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.attachments,deletedAttachments:u.deletedAttachments})},u=>r.error(u))})})})})})})}retrieveDataForEmailRead(e,i,r){return new b(o=>{this.ews.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.attachments,deletedAttachments:s.deletedAttachments,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.ews.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.attachments,deletedAttachments:d.deletedAttachments,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(dl.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=Ee(function*(a){r.baNextHandler(a)}),function(l){return s.apply(this,arguments)}),error:function(){var s=Ee(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 Ee(function*(){const r=e.oid;if(i.translate.get("translationWait").subscribe(o=>{i.messageService.showSuccess(i.globals.languageConfLocal.emailDocumented)}),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=Ee(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=Ee(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=>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=Ee(function*(a){r.next(a)}),function(l){return s.apply(this,arguments)}),error:function(){var s=Ee(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.ews.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 Im)},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 R$,u=new O$,d=o?"/?validateOnly=true":"";var h;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=Ee(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=Ee(function*(m){m.json().then(y=>{let S="";y.forEach(U=>{S+=U.ErrorMessage+" "}),s.messageService.showMessageAsync(s.globals.languageConfLocal.companyCreationError+S,dr.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=Ee(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=Ee(function*(u){u.json().then(d=>{let h="";d.forEach(m=>{h+=m.ErrorMessage+" "}),a.messageService.showMessageAsync(a.globals.languageConfLocal.contactCreationError+h,dr.error)}),r.error(u)});return function(d){return c.apply(this,arguments)}}()})}validateDataInBackend(e,i,r){return this.postCompanyContactData(e,r,i,!0)}}return n.\u0275fac=function(e){return new(e||n)(T(hC),T(hl),T(ht),T(Ji),T(Kt),T(en),T(Mm),T(qs),T(kC),T(hC),T(dC),T(RC),T($c))},n.\u0275prov=me({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();class R${}class O${}let ir=(()=>{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()}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 w$){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:`Link: ${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()}}return n.\u0275fac=function(e){return new(e||n)(T(M$),T(k$),T(Ji),T(ht))},n.\u0275prov=me({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const P$=["docFile"],L$=function(n){return{title:n}},F$=function(n,t,e,i){return{confirm:n,cancel:t,confirmAction:e,cancelAction:i}};function N$(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=w();v("ngTemplateOutlet",e.modalHeader)("ngTemplateOutletContext",$n(11,L$,Je(1,5,"LC73005"))),f(3),we(e.text),f(1),v("ngTemplateOutlet",e.modalFooter)("ngTemplateOutletContext",Ki(13,F$,Je(5,7,"LC73135"),Je(6,9,"LC73136"),e.confirmAction.bind(e),e.cancelAction.bind(e)))}}let B$=(()=>{class n extends Gr{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 Ee(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(Kt),p(ht),p(zc),p(C$),p(ir))},n.\u0275cmp=Ue({type:n,selectors:[["app-document-file"]],viewQuery:function(e,i){if(1&e&&Te(P$,7),2&e){let r;de(r=he())&&(i.modalTemp=r.first)}},features:[De],decls:2,vars:0,consts:[["docFile",""],[3,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"modalBody"]],template:function(e,i){1&e&&H(0,N$,7,18,"ng-template",null,0,Dn)},dependencies:[Qi,Pi]}),n})();const j$=["selContact"],H$=["dbs"];function V$(n,t){1&n&&(g(0,"p"),j(1),Ze(2,"translate"),_()),2&n&&(f(1),we(Je(2,1,"LC53515")))}function U$(n,t){if(1&n){const e=ke();g(0,"mat-list-option",7),$("dblclick",function(){return X(e),Z(w(2).confirmAction())}),j(1),_()}if(2&n){const e=t.$implicit,i=w(2);Dt("value",e.db),v("selected",1===i.contactDBs.length?e.db:null),f(1),qe(" ",e.title," ")}}const q$=function(n){return{title:n}},z$=function(n,t,e,i){return{confirm:n,cancel:t,confirmAction:e,cancelAction:i}};function G$(n,t){if(1&n&&(Wt(0,1),Ze(1,"translate"),g(2,"div",2)(3,"mat-selection-list",3,4),H(5,V$,3,3,"p",5),H(6,U$,2,3,"mat-list-option",6),_()(),Wt(7,1),Ze(8,"translate"),Ze(9,"translate")),2&n){const e=w();v("ngTemplateOutlet",e.modalHeader)("ngTemplateOutletContext",$n(13,q$,Je(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",Ki(15,z$,Je(8,9,"LC73135"),Je(9,11,"LC73136"),e.confirmAction.bind(e,e.selection),e.cancelAction.bind(e)))}}let OC=(()=>{class n extends Gr{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 Ee(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(Kt),p(Bn),p(en))},n.\u0275cmp=Ue({type:n,selectors:[["app-select-contact"]],viewQuery:function(e,i){if(1&e&&(Te(j$,7),Te(H$,5)),2&e){let r;de(r=he())&&(i.modalTemp=r.first),de(r=he())&&(i.selection=r.first)}},features:[De],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,G$,10,20,"ng-template",null,0,Dn)},dependencies:[Yn,hn,Qi,Zo,js,Pi]}),n})();const W$=["selLabelCreate"],$$=["selection"];function K$(n,t){if(1&n){const e=ke();g(0,"mat-list-option",6),$("dblclick",function(){return X(e),Z(w(2).confirmAction())}),j(1),_()}if(2&n){const e=t.$implicit,i=w(2);Dt("value",e),v("selected",e===i.selectedEntry),f(1),qe(" ",i.data.passedData.labelDisplayMap.get(e)," ")}}const Y$=function(n){return{title:n}},Q$=function(n,t,e,i){return{confirm:n,cancel:t,confirmAction:e,cancelAction:i}};function X$(n,t){if(1&n&&(Wt(0,1),Ze(1,"translate"),g(2,"div",2)(3,"mat-selection-list",3,4),H(5,K$,2,3,"mat-list-option",5),_()(),Wt(6,1),Ze(7,"translate"),Ze(8,"translate")),2&n){const e=w();v("ngTemplateOutlet",e.modalHeader)("ngTemplateOutletContext",$n(12,Y$,Je(1,6,"LC53516"))),f(3),v("multiple",!1),f(2),v("ngForOf",e.data.passedData.createLabels),f(1),v("ngTemplateOutlet",e.modalFooter)("ngTemplateOutletContext",Ki(14,Q$,Je(7,8,"LC73135"),Je(8,10,"LC73136"),e.confirmAction.bind(e),e.cancelAction.bind(e)))}}let Z$=(()=>{class n extends Gr{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(Kt),p(en),p(ht))},n.\u0275cmp=Ue({type:n,selectors:[["app-select-create-label"]],viewQuery:function(e,i){if(1&e&&(Te(W$,7),Te($$,5)),2&e){let r;de(r=he())&&(i.modalTemp=r.first),de(r=he())&&(i.selection=r.first)}},features:[De],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,X$,9,19,"ng-template",null,0,Dn)},dependencies:[Yn,Qi,Zo,js,Pi]}),n})();const J$=["dupl"],eK=function(n){return{title:n}},tK=function(n,t,e,i){return{confirm:n,cancel:t,confirmAction:e,cancelAction:i}};function nK(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=w();v("ngTemplateOutlet",e.modalHeader)("ngTemplateOutletContext",$n(13,eK,Je(1,5,"LC53516"))),f(3),we(Je(4,7,"LC73006")),f(2),v("ngTemplateOutlet",e.modalFooter)("ngTemplateOutletContext",Ki(15,tK,Je(6,9,"LC73057"),Je(7,11,"NO"),e.confirmAction.bind(e),e.cancelAction.bind(e)))}}let iK=(()=>{class n extends Gr{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(Kt))},n.\u0275cmp=Ue({type:n,selectors:[["app-duplicate"]],viewQuery:function(e,i){if(1&e&&Te(J$,7),2&e){let r;de(r=he())&&(i.modalTemp=r.first)}},features:[De],decls:2,vars:0,consts:[["dupl",""],[3,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"modalBody"]],template:function(e,i){1&e&&H(0,nK,8,20,"ng-template",null,0,Dn)},dependencies:[Qi,Pi]}),n})();const rK=["searchTemplate"];function oK(n,t){if(1&n){const e=ke();g(0,"button",13),$("click",function(){return X(e),Z(w(2).searchValue="")}),Ae(1,"div",14),_()}if(2&n){const e=w(2);f(1),v("ngStyle",e.searchClearImage)}}function sK(n,t){if(1&n&&(g(0,"mat-option",15),j(1),_()),2&n){const e=t.$implicit;v("value",e.value),f(1),we(e.viewValue)}}const aK=function(n){return{background:n}};function lK(n,t){if(1&n&&Ae(0,"mat-cell",22),2&n){const e=t.$implicit,i=w(3);v("ngStyle",$n(1,aK,"no-repeat url("+i.viewIconBaseURL+e.iconURL+")"))}}function cK(n,t){if(1&n&&(g(0,"div"),j(1),_()),2&n){const e=w().$implicit;f(1),vo(" ",e.name,", ",e.type," ")}}function uK(n,t){if(1&n&&(g(0,"div"),j(1),_()),2&n){const e=w().$implicit;f(1),qe(" ",e.purpose," ")}}function dK(n,t){if(1&n&&(g(0,"div"),j(1),_()),2&n){const e=w().$implicit;f(1),qe(" ",e.category," ")}}function hK(n,t){if(1&n&&(g(0,"mat-cell",23)(1,"mat-dialog-content")(2,"span",24),j(3),_(),H(4,cK,2,2,"div",25),H(5,uK,2,1,"div",25),H(6,dK,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 pK(n,t){if(1&n){const e=ke();g(0,"mat-row",26),$("click",function(){const o=X(e).$implicit;return Z(w(3).toggleSelection(o))})("dblclick",function(){const o=X(e).$implicit;return Z(w(3).acceptEntryDblClick(o))}),_()}if(2&n){const e=t.$implicit,i=w(3);bt("isSelected",i.selection.isSelected(e)),v("matRippleColor",i.rippleColor)("matRippleCentered",i.centered)("matRippleDisabled",i.disabled)("matRippleUnbounded",i.unbounded)}}function fK(n,t){if(1&n&&(g(0,"div")(1,"mat-table",16),fi(2,17),H(3,lK,1,3,"mat-cell",18),mi(),fi(4,19),H(5,hK,7,4,"mat-cell",20),mi(),H(6,pK,1,6,"mat-row",21),_()()),2&n){const e=w(2);wi(e.tableWrapperClassName),f(1),v("dataSource",e.searchResults),f(5),v("matRowDefColumns",e.displayedColumns)}}function mK(n,t){1&n&&(g(0,"div"),j(1),Ze(2,"translate"),_()),2&n&&(f(1),we(Je(2,1,"LC53482")))}const gK=function(n){return{title:n}},_K=function(n,t,e,i){return{confirm:n,cancel:t,confirmAction:e,cancelAction:i}};function vK(n,t){if(1&n){const e=ke();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),$("ngModelChange",function(r){return X(e),Z(w().searchValue=r)})("keyup.enter",function(){return X(e),Z(w().search())}),_(),H(9,oK,2,1,"button",6),_(),g(10,"input",7),$("click",function(){return X(e),Z(w().search())}),Ze(11,"translate"),_()(),g(12,"mat-form-field",8)(13,"mat-label"),j(14),Ze(15,"translate"),_(),g(16,"mat-select",9),$("valueChange",function(r){return X(e),Z(w().selectedDB=r)})("selectionChange",function(){X(e);const r=w();return Z(r.fetchSearch(r.selectedDB))}),H(17,sK,2,2,"mat-option",10),_()(),H(18,fK,7,5,"div",11),H(19,mK,3,3,"ng-template",null,12,Dn),_(),Wt(21,1),Ze(22,"translate"),Ze(23,"translate")}if(2&n){const e=Jt(20),i=w();v("ngTemplateOutlet",i.modalHeader)("ngTemplateOutletContext",$n(25,gK,Je(1,13,"LC53493"))),f(6),we(Je(7,15,"LC53489")),f(2),v("ngModel",i.searchValue),f(1),v("ngIf",i.searchValue),f(1),Dt("value",Je(11,17,"LC36251")),f(4),we(Je(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",Ki(27,_K,Je(22,21,"LC73135"),Je(23,23,"LC73136"),i.confirmAction.bind(i),i.cancelAction.bind(i)))}}let yK=(()=>{class n extends _C{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(Kt),p(Bn),p(ht),p(en),p(zd),p(Bs))},n.\u0275cmp=Ue({type:n,selectors:[["app-search-template"]],viewQuery:function(e,i){if(1&e&&Te(rK,7),2&e){let r;de(r=he())&&(i.modalTemp=r.first)}},inputs:{data:"data"},outputs:{messageEvent:"messageEvent"},features:[De],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,vK,24,32,"ng-template",null,0,Dn)},dependencies:[Yn,hn,Qi,ra,zr,Eo,qo,Rf,Zr,nr,vC,Hs,Mr,Jr,Sm,Qd,Yd,Am,Xd,Tm,Ir,Pi],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 bK=["selMailAddr"],CK=["mailAddrs"];function wK(n,t){if(1&n){const e=ke();g(0,"mat-list-option",7),$("dblclick",function(){return X(e),Z(w(2).confirmAction())}),j(1),Ze(2,"translate"),_()}if(2&n){const e=w(2);Dt("value",e.globals.curFrom.emailAddress),f(1),vo(" ",Je(2,3,"LC73126"),": ",e.globals.curFrom.emailAddress," ")}}function EK(n,t){if(1&n){const e=ke();g(0,"mat-list-option",7),$("dblclick",function(){return X(e),Z(w(2).confirmAction())}),j(1),Ze(2,"translate"),_()}if(2&n){const e=t.$implicit;Dt("value",e.emailAddress),f(1),vo(" ",Je(2,3,"to"),": ",e.emailAddress," ")}}function DK(n,t){if(1&n){const e=ke();g(0,"mat-list-option",7),$("dblclick",function(){return X(e),Z(w(2).confirmAction())}),j(1),Ze(2,"translate"),_()}if(2&n){const e=t.$implicit;Dt("value",e.emailAddress),f(1),vo(" ",Je(2,3,"LC73128"),": ",e.emailAddress," ")}}const SK=function(n){return{title:n}},AK=function(){return{}},TK=function(n,t,e,i){return{confirm:n,cancel:t,confirmAction:e,cancelAction:i}};function xK(n,t){if(1&n&&(Wt(0,1),Ze(1,"translate"),g(2,"div",2)(3,"mat-selection-list",3,4),H(5,wK,3,5,"mat-list-option",5),H(6,EK,3,5,"mat-list-option",6),H(7,DK,3,5,"mat-list-option",6),_()(),Wt(8,1),Ze(9,"translate"),Ze(10,"translate")),2&n){const e=w();v("ngTemplateOutlet",e.modalHeader)("ngTemplateOutletContext",$n(14,SK,Je(1,8,"LC53517"))),f(3),v("multiple",!1),f(2),v("ngIf",null!==e.globals.curFrom&&e.globals.curFrom!==Mv(16,AK)),f(1),v("ngForOf",e.globals.curTo),f(1),v("ngForOf",e.globals.curCC),f(1),v("ngTemplateOutlet",e.modalFooter)("ngTemplateOutletContext",Ki(17,TK,Je(9,10,"LC73135"),Je(10,12,"LC73136"),e.confirmAction.bind(e,e.selection),e.cancelAction.bind(e)))}}let IK=(()=>{class n extends Gr{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(ht),p(Kt),p(en),p(MC))},n.\u0275cmp=Ue({type:n,selectors:[["app-select-mail-address"]],viewQuery:function(e,i){if(1&e&&(Te(bK,7),Te(CK,5)),2&e){let r;de(r=he())&&(i.modalTemp=r.first),de(r=he())&&(i.selection=r.first)}},features:[De],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,xK,11,22,"ng-template",null,0,Dn)},dependencies:[Yn,hn,Qi,Zo,js,Pi]}),n})(),MK=(()=>{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(S=>S.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)(T(Bn))},n.\u0275prov=me({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();function kK(n,t){1&n&&jt(0)}const NM=["*"];function RK(n,t){}const OK=function(n){return{animationDuration:n}},PK=function(n,t){return{value:n,params:t}},LK=["tabListContainer"],FK=["tabList"],NK=["tabListInner"],BK=["nextPaginator"],jK=["previousPaginator"],HK=["tabBodyWrapper"],VK=["tabHeader"];function UK(n,t){}function qK(n,t){1&n&&H(0,UK,0,0,"ng-template",10),2&n&&v("cdkPortalOutlet",w().$implicit.templateLabel)}function zK(n,t){1&n&&j(0),2&n&&we(w().$implicit.textLabel)}function GK(n,t){if(1&n){const e=ke();g(0,"div",6),$("click",function(){const r=X(e),o=r.$implicit,s=r.index,a=w(),l=Jt(1);return Z(a._handleClick(o,l,s))})("cdkFocusChange",function(r){const s=X(e).index;return Z(w()._tabFocusChanged(r,s))}),g(1,"div",7),H(2,qK,1,1,"ng-template",8),H(3,zK,1,1,"ng-template",null,9,Dn),_()()}if(2&n){const e=t.$implicit,i=t.index,r=Jt(4),o=w();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 WK(n,t){if(1&n){const e=ke();g(0,"mat-tab-body",11),$("_onCentered",function(){return X(e),Z(w()._removeTabBodyWrapperHeight())})("_onCentering",function(r){return X(e),Z(w()._setTabBodyWrapperHeight(r))}),_()}if(2&n){const e=t.$implicit,i=t.index,r=w();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 $K=new ge("MatInkBarPositioner",{providedIn:"root",factory:function KK(){return t=>({left:t?(t.offsetLeft||0)+"px":"0",width:t?(t.offsetWidth||0)+"px":"0"})}});let BM=(()=>{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(an(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(Xe),p(et),p($K),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 YK=new ge("MatTabContent"),jM=new ge("MatTabLabel"),HM=new ge("MAT_TAB");let QK=(()=>{class n extends Z8{constructor(e,i,r){super(e,i),this._closestTab=r}}return n.\u0275fac=function(e){return new(e||n)(p(bn),p(En),p(HM,8))},n.\u0275dir=fe({type:n,selectors:[["","mat-tab-label",""],["","matTabLabel",""]],features:[ot([{provide:jM,useExisting:n}]),De]}),n})();const XK=Ms(class{}),VM=new ge("MAT_TAB_GROUP");let UM=(()=>{class n extends XK{constructor(e,i){super(),this._viewContainerRef=e,this._closestTabGroup=i,this.textLabel="",this._contentPortal=null,this._stateChanges=new L,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 xs(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(En),p(VM,8))},n.\u0275cmp=Ue({type:n,selectors:[["mat-tab"]],contentQueries:function(e,i,r){if(1&e&&(Ht(r,jM,5),Ht(r,YK,7,bn)),2&e){let o;de(o=he())&&(i.templateLabel=o.first),de(o=he())&&(i._explicitContent=o.first)}},viewQuery:function(e,i){if(1&e&&Te(bn,7),2&e){let r;de(r=he())&&(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:[ot([{provide:HM,useExisting:n}]),De,kn],ngContentSelectors:NM,decls:1,vars:0,template:function(e,i){1&e&&(Pn(),H(0,kK,1,0,"ng-template"))},encapsulation:2}),n})();const ZK={translateTab:$r("translateTab",[zn("center, void, left-origin-center, right-origin-center",Ft({transform:"none"})),zn("left",Ft({transform:"translate3d(-100%, 0, 0)",minHeight:"1px",visibility:"hidden"})),zn("right",Ft({transform:"translate3d(100%, 0, 0)",minHeight:"1px",visibility:"hidden"})),ui("* => left, * => right, left => center, right => center",_i("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")),ui("void => left-origin-center",[Ft({transform:"translate3d(-100%, 0, 0)",visibility:"hidden"}),_i("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")]),ui("void => right-origin-center",[Ft({transform:"translate3d(100%, 0, 0)",visibility:"hidden"}),_i("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")])])};let JK=(()=>{class n extends Is{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(ri(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(ho),p(En),p(tn(()=>qM)),p(pt))},n.\u0275dir=fe({type:n,selectors:[["","matTabBodyHost",""]],features:[De]}),n})(),eY=(()=>{class n{constructor(e,i,r){this._elementRef=e,this._dir=i,this._dirChangeSubscription=E.EMPTY,this._translateTabComplete=new L,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(ff((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(Xe),p(tr,8),p(It))},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})(),qM=(()=>{class n extends eY{constructor(e,i,r){super(e,i,r)}}return n.\u0275fac=function(e){return new(e||n)(p(Xe),p(tr,8),p(It))},n.\u0275cmp=Ue({type:n,selectors:[["mat-tab-body"]],viewQuery:function(e,i){if(1&e&&Te(Is,5),2&e){let r;de(r=he())&&(i._portalHost=r.first)}},hostAttrs:[1,"mat-tab-body"],features:[De],decls:3,vars:6,consts:[["cdkScrollable","",1,"mat-tab-body-content"],["content",""],["matTabBodyHost",""]],template:function(e,i){1&e&&(g(0,"div",0,1),$("@translateTab.start",function(o){return i._onTranslateTabStarted(o)})("@translateTab.done",function(o){return i._translateTabComplete.next(o)}),H(2,RK,0,0,"ng-template",2),_()),2&e&&v("@translateTab",aA(3,PK,i._position,$n(1,OK,i.animationDuration)))},dependencies:[JK],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:[ZK.translateTab]}}),n})();const zM=new ge("MAT_TABS_CONFIG"),tY=Ms(class{});let GM=(()=>{class n extends tY{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(Xe))},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:[De]}),n})();const WM=Ds({passive:!0});let rY=(()=>{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 L,this._showPaginationControls=!1,this._disableScrollAfter=!0,this._disableScrollBefore=!0,this._stopScrolling=new L,this._disablePagination=!1,this._selectedIndex=0,this.selectFocusedIndex=new He,this.indexFocused=new He,s.runOutsideAngular(()=>{Ts(e.nativeElement,"mouseleave").pipe(Xt(this._destroyed)).subscribe(()=>{this._stopInterval()})})}get disablePagination(){return this._disablePagination}set disablePagination(e){this._disablePagination=at(e)}get selectedIndex(){return this._selectedIndex}set selectedIndex(e){e=As(e),this._selectedIndex!=e&&(this._selectedIndexChanged=!0,this._selectedIndex=e,this._keyManager&&this._keyManager.updateActiveItem(e))}ngAfterViewInit(){Ts(this._previousPaginator.nativeElement,"touchstart",WM).pipe(Xt(this._destroyed)).subscribe(()=>{this._handlePaginatorPress("before")}),Ts(this._nextPaginator.nativeElement,"touchstart",WM).pipe(Xt(this._destroyed)).subscribe(()=>{this._handlePaginatorPress("after")})}ngAfterContentInit(){const e=this._dir?this._dir.change:Fe("ltr"),i=this._viewportRuler.change(150),r=()=>{this.updatePagination(),this._alignInkBarToSelectedTab()};this._keyManager=new yf(this._items).withHorizontalOrientation(this._getLayoutDirection()).withHomeAndEnd().withWrap(),this._keyManager.updateActiveItem(this._selectedIndex),this._ngZone.onStable.pipe(an(1)).subscribe(r),Mn(e,i,this._items.changes,this._itemsResized()).pipe(Xt(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(Xt(this._destroyed)).subscribe(o=>{this.indexFocused.emit(o),this._setTabFocus(o)})}_itemsResized(){return"function"!=typeof ResizeObserver?Es:this._items.changes.pipe(ri(this._items),Qn(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()}}))),ab(1),An(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(!Di(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(),Z2(650,100).pipe(Xt(Mn(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(Xe),p(It),p(Go),p(tr,8),p(et),p(Fn),p(qn,8))},n.\u0275dir=fe({type:n,inputs:{disablePagination:"disablePagination"}}),n})(),oY=(()=>{class n extends rY{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=at(e)}_itemSelected(e){e.preventDefault()}}return n.\u0275fac=function(e){return new(e||n)(p(Xe),p(It),p(Go),p(tr,8),p(et),p(Fn),p(qn,8))},n.\u0275dir=fe({type:n,inputs:{disableRipple:"disableRipple"},features:[De]}),n})(),sY=(()=>{class n extends oY{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(Xe),p(It),p(Go),p(tr,8),p(et),p(Fn),p(qn,8))},n.\u0275cmp=Ue({type:n,selectors:[["mat-tab-header"]],contentQueries:function(e,i,r){if(1&e&&Ht(r,GM,4),2&e){let o;de(o=he())&&(i._items=o)}},viewQuery:function(e,i){if(1&e&&(Te(BM,7),Te(LK,7),Te(FK,7),Te(NK,7),Te(BK,5),Te(jK,5)),2&e){let r;de(r=he())&&(i._inkBar=r.first),de(r=he())&&(i._tabListContainer=r.first),de(r=he())&&(i._tabList=r.first),de(r=he())&&(i._tabListInner=r.first),de(r=he())&&(i._nextPaginator=r.first),de(r=he())&&(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:[De],ngContentSelectors:NM,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),$("click",function(){return i._handlePaginatorClick("before")})("mousedown",function(o){return i._handlePaginatorPress("before",o)})("touchend",function(){return i._stopInterval()}),Ae(2,"div",2),_(),g(3,"div",3,4),$("keydown",function(o){return i._handleKeydown(o)}),g(5,"div",5,6),$("cdkObserveContent",function(){return i._onContentChanges()}),g(7,"div",7,8),jt(9),_(),Ae(10,"mat-ink-bar"),_()(),g(11,"button",9,10),$("mousedown",function(o){return i._handlePaginatorPress("after",o)})("click",function(){return i._handlePaginatorClick("after")})("touchend",function(){return i._stopInterval()}),Ae(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:[Ir,gf,BM],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})(),aY=0;class lY{}const cY=da(Wo(class{constructor(n){this._elementRef=n}}),"primary");let uY=(()=>{class n extends cY{constructor(e,i,r,o){super(e),this._changeDetectorRef=i,this._animationMode=o,this._tabs=new Ua,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=aY++,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=at(e)}get selectedIndex(){return this._selectedIndex}set selectedIndex(e){this._indexToSelect=As(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=As(e,null)}get disablePagination(){return this._disablePagination}set disablePagination(e){this._disablePagination=at(e)}get preserveContent(){return this._preserveContent}set preserveContent(e){this._preserveContent=at(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(ri(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 lY;return i.index=e,this._tabs&&this._tabs.length&&(i.tab=this._tabs.toArray()[e]),i}_subscribeToTabLabels(){this._tabLabelSubscription&&this._tabLabelSubscription.unsubscribe(),this._tabLabelSubscription=Mn(...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(Xe),p(It),p(zM,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:[De]}),n})(),dY=(()=>{class n extends uY{constructor(e,i,r,o){super(e,i,r,o)}}return n.\u0275fac=function(e){return new(e||n)(p(Xe),p(It),p(zM,8),p(qn,8))},n.\u0275cmp=Ue({type:n,selectors:[["mat-tab-group"]],contentQueries:function(e,i,r){if(1&e&&Ht(r,UM,5),2&e){let o;de(o=he())&&(i._allTabs=o)}},viewQuery:function(e,i){if(1&e&&(Te(HK,5),Te(VK,5)),2&e){let r;de(r=he())&&(i._tabBodyWrapper=r.first),de(r=he())&&(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:[ot([{provide:VM,useExisting:n}]),De],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),$("indexFocused",function(o){return i._focusChanged(o)})("selectFocusedIndex",function(o){return i.selectedIndex=o}),H(2,GK,5,15,"div",2),_(),g(3,"div",3,4),H(5,WK,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:[Wa,Yn,hn,Is,Ir,I8,GM,qM,sY],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})(),hY=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=dt({type:n}),n.\u0275inj=ct({imports:[Xi,Lt,Ja,ha,ud,mb,Lt]}),n})();const pY=["searchProject"],fY=["searchTableSelected"];function mY(n,t){if(1&n){const e=ke();g(0,"button",17),$("click",function(){return X(e),Z(w(3).searchValue="")}),Ae(1,"div",18),_()}if(2&n){const e=w(3);f(1),v("ngStyle",e.searchClearImage)}}function gY(n,t){if(1&n&&(g(0,"mat-option",19),j(1),_()),2&n){const e=t.$implicit;v("value",e.value),f(1),we(e.viewValue)}}function _Y(n,t){1&n&&j(0),2&n&&qe(" ",w(3).globals.languageConfLocal.list," ")}const KM=function(n){return{background:n}};function vY(n,t){if(1&n&&Ae(0,"mat-cell",27),2&n){const e=t.$implicit,i=w(4);v("ngStyle",$n(1,KM,"no-repeat url("+i.viewIconBaseURL+e.iconURL+")"))}}function yY(n,t){if(1&n&&(g(0,"div",33),j(1),_()),2&n){const e=w().$implicit;f(1),qe(" ",e.name," ")}}function bY(n,t){if(1&n&&(g(0,"div"),j(1),_()),2&n){const e=w().$implicit;f(1),vo(" ",e.number," / ",e.owner," ")}}function CY(n,t){if(1&n){const e=ke();g(0,"mat-cell",28)(1,"mat-dialog-content",29),H(2,yY,2,1,"div",30),H(3,bY,2,2,"div",1),g(4,"div",31),$("click",function(r){const s=X(e).index;return w(4).addProject(s),Z(r.stopPropagation())})("dblclick",function(r){return r.stopPropagation()}),Ae(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 wY(n,t){}function EY(n,t){if(1&n){const e=ke();g(0,"mat-row",34),$("click",function(){const o=X(e).$implicit;return Z(w(4).toggleSelection(o))})("dblclick",function(){const o=X(e).$implicit;return Z(w(4).acceptEntryDblClick(o))}),H(1,wY,0,0,"ng-template"),_()}if(2&n){const e=t.$implicit,i=w(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 DY(n,t){if(1&n&&(g(0,"div")(1,"mat-table",20,21),fi(3,22),H(4,vY,1,3,"mat-cell",23),mi(),fi(5,24),H(6,CY,6,2,"mat-cell",25),mi(),H(7,EY,2,7,"mat-row",26),_()()),2&n){const e=w(3);wi(e.tableWrapperClassName),f(1),v("dataSource",e.searchResults),f(6),v("matRowDefColumns",e.displayedColumns)}}function SY(n,t){if(1&n){const e=ke();g(0,"div"),$("@shake.done",function(){return X(e),Z(w(3).shakeEnd("selectedProdAnimation"))}),j(1),_()}if(2&n){const e=w(3);v("@shake",e.animationStates.selectedProdAnimation),f(1),qe(" ",e.globals.languageConfLocal.selected," ")}}function AY(n,t){if(1&n&&Ae(0,"mat-cell",27),2&n){const e=t.$implicit,i=w(4);v("ngStyle",$n(1,KM,"no-repeat url("+i.viewIconBaseURL+e.iconURL+")"))}}function TY(n,t){if(1&n&&(g(0,"div",33),j(1),_()),2&n){const e=w().$implicit;f(1),qe(" ",e.name," ")}}function xY(n,t){if(1&n&&(g(0,"div"),j(1),_()),2&n){const e=w().$implicit;f(1),vo(" ",e.number," / ",e.owner," ")}}function IY(n,t){if(1&n){const e=ke();g(0,"mat-cell",28)(1,"mat-dialog-content",29),H(2,TY,2,1,"div",30),H(3,xY,2,2,"div",1),g(4,"div",37),$("click",function(r){const s=X(e).index;return w(4).removeProject(s),Z(r.stopPropagation())})("dblclick",function(r){return r.stopPropagation()}),Ae(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 MY(n,t){if(1&n){const e=ke();g(0,"mat-row",39),$("click",function(){const o=X(e).$implicit;return Z(w(4).toggleSelection(o))})("dblclick",function(){const o=X(e).$implicit;return Z(w(4).acceptEntryDblClick(o))}),_()}if(2&n){const e=t.$implicit,i=w(4);bt("isSelected",i.selection.isSelected(e)),v("matRippleColor",i.rippleColor)("matRippleCentered",i.centered)("matRippleDisabled",i.disabled)("matRippleUnbounded",i.unbounded)}}function kY(n,t){if(1&n&&(g(0,"div")(1,"mat-table",20,35),fi(3,22),H(4,AY,1,3,"mat-cell",23),mi(),fi(5,24),H(6,IY,6,2,"mat-cell",25),mi(),H(7,MY,1,6,"mat-row",36),_()()),2&n){const e=w(3);wi(e.tableWrapperClassName),f(1),v("dataSource",e.selectedProjects),f(6),v("matRowDefColumns",e.displayedColumns)}}function RY(n,t){1&n&&(g(0,"div"),j(1),Ze(2,"translate"),_()),2&n&&(f(1),we(Je(2,1,"LC53482")))}function OY(n,t){if(1&n&&(g(0,"div"),j(1),_()),2&n){const e=w(3);f(1),qe(" ",e.globals.languageConfLocal.noProjectSelected," ")}}const PY=function(n){return{title:n}},LY=function(n,t,e,i){return{confirm:n,cancel:t,confirmAction:e,cancelAction:i}};function FY(n,t){if(1&n){const e=ke();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),$("ngModelChange",function(r){return X(e),Z(w(2).searchValue=r)})("keyup.enter",function(){X(e);const r=w(2);return Z(r.search(r.curPointer))}),_(),H(9,mY,2,1,"button",7),_(),g(10,"input",8),$("click",function(){X(e);const r=w(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),$("valueChange",function(r){return X(e),Z(w(2).selectedDB=r)})("selectionChange",function(){X(e);const r=w(2);return Z(r.fetchSearch(r.selectedDB,r.curPointer))}),H(17,gY,2,2,"mat-option",11),_()(),g(18,"mat-tab-group",12),$("selectedIndexChange",function(r){return X(e),Z(w(2).curTabIndex=r)}),g(19,"mat-tab"),H(20,_Y,1,1,"ng-template",13),H(21,DY,8,5,"div",14),_(),g(22,"mat-tab"),H(23,SY,2,2,"ng-template",13),H(24,kY,8,5,"div",14),_()(),H(25,RY,3,3,"ng-template",null,15,Dn),H(27,OY,2,1,"ng-template",null,16,Dn),_(),Wt(29,2),Ze(30,"translate"),Ze(31,"translate"),_()}if(2&n){const e=Jt(26),i=Jt(28),r=w(2);f(1),v("ngTemplateOutlet",r.modalHeader)("ngTemplateOutletContext",$n(26,PY,r.globals.languageConfLocal.selectProject)),f(5),we(Je(7,16,"LC53489")),f(2),v("ngModel",r.searchValue),f(1),v("ngIf",r.searchValue),f(1),Dt("value",Je(11,18,"LC36251")),f(4),we(Je(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",Ki(28,LY,Je(30,22,"LC73135"),Je(31,24,"LC73136"),r.confirmAction.bind(r),r.cancelAction.bind(r)))}}function NY(n,t){if(1&n&&H(0,FY,32,33,"div",1),2&n){const e=w();v("ngIf",e.projectStatus>0&&!e.docToDoc)}}let BY=(()=>{class n extends _C{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(Kt),p(Bn),p(ht),p(en),p(zd),p(Bs),p(MK))},n.\u0275cmp=Ue({type:n,selectors:[["app-search-project"]],viewQuery:function(e,i){if(1&e&&(Te(pY,7),Te(fY,5)),2&e){let r;de(r=he())&&(i.modalTemp=r.first),de(r=he())&&(i.selectedProjTable=r.first)}},inputs:{data:"data"},outputs:{messageEvent:"messageEvent"},features:[De],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,NY,1,1,"ng-template",null,0,Dn)},dependencies:[Yn,hn,Qi,ra,zr,Eo,qo,Rf,Zr,nr,vC,Hs,Mr,Jr,Sm,Qd,Yd,Am,Xd,Tm,Ir,dY,QK,UM,Pi],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:[$r("shake",[zn("shakestart",Ft({transform:"scale(1)"})),zn("shakeend",Ft({transform:"scale(1)"})),ui("shakestart => shakeend",_i("1000ms ease-in",q6([Ft({transform:"translate3d(-4px, 0, 0)",offset:.1}),Ft({transform:"translate3d(4px, 0, 0)",offset:.2}),Ft({transform:"translate3d(-4px, 0, 0)",offset:.3}),Ft({transform:"translate3d(4px, 0, 0)",offset:.4}),Ft({transform:"translate3d(-4px, 0, 0)",offset:.5}),Ft({transform:"translate3d(4px, 0, 0)",offset:.6}),Ft({transform:"translate3d(-4px, 0, 0)",offset:.7}),Ft({transform:"translate3d(4px, 0, 0)",offset:.8}),Ft({transform:"translate3d(-4px, 0, 0)",offset:.9})])))])]}}),n})();const jY=["projPhases"],HY=["selection"];function VY(n,t){if(1&n&&(g(0,"mat-list-option",5),j(1),_()),2&n){const e=t.$implicit;Dt("value",e.pointer),Dt("selected",e.selected),f(1),qe(" ",e.name," ")}}const UY=function(n){return{title:n}},qY=function(n,t,e,i){return{confirm:n,cancel:t,confirmAction:e,cancelAction:i}};function zY(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,VY,2,3,"mat-list-option",4),_()(),Wt(11,1),Ze(12,"translate"),Ze(13,"translate")),2&n){const e=w();v("ngTemplateOutlet",e.modalHeader)("ngTemplateOutletContext",$n(15,UY,Je(1,7,"LC03411"))),f(4),we(Je(5,9,"LC03410")),f(3),we(e.projectInfo.projectDisplay),f(3),v("ngForOf",e.projectInfo.projectphases),f(1),v("ngTemplateOutlet",e.modalFooter)("ngTemplateOutletContext",Ki(17,qY,Je(12,11,"LC73135"),Je(13,13,"LC73136"),e.confirmAction.bind(e),e.cancelAction.bind(e)))}}let GY=(()=>{class n extends Gr{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(Kt),p(en),p(ht))},n.\u0275cmp=Ue({type:n,selectors:[["app-select-create-label"]],viewQuery:function(e,i){if(1&e&&(Te(jY,7),Te(HY,5)),2&e){let r;de(r=he())&&(i.modalTemp=r.first),de(r=he())&&(i.selection=r.first)}},features:[De],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,zY,14,22,"ng-template",null,0,Dn)},dependencies:[Yn,Qi,Zo,js,Pi]}),n})();const WY=["selMailAddr"],$Y=["selAddr"];function KY(n,t){if(1&n&&(g(0,"div"),j(1),_()),2&n){const e=w().$implicit;f(1),qe(" ",e.additional.database,": ")}}function YY(n,t){if(1&n&&(g(0,"div"),j(1),_()),2&n){const e=w().$implicit;f(1),qe("(",e.companyName,")")}}function QY(n,t){if(1&n){const e=ke();g(0,"mat-list-option",6),$("dblclick",function(){const o=X(e).index;return Z(w(2).changeSelectedIndex(o))}),g(1,"div",7),H(2,KY,2,1,"div",8),g(3,"div"),j(4),_(),H(5,YY,2,1,"div",8),_()()}if(2&n){const e=t.$implicit,i=t.index,r=w(2);Dt("value",i),v("selected",i===r.addressService.addressIndex),f(2),v("ngIf",e.additional&&e.additional.database),f(2),we(e.name),f(1),v("ngIf",e.companyName)}}const XY=function(n){return{title:n}},ZY=function(n,t,e,i){return{confirm:n,cancel:t,confirmAction:e,cancelAction:i}};function JY(n,t){if(1&n&&(Wt(0,1),Ze(1,"translate"),g(2,"div",2)(3,"mat-selection-list",3,4),H(5,QY,6,5,"mat-list-option",5),_()(),Wt(6,1),Ze(7,"translate"),Ze(8,"translate")),2&n){const e=w();v("ngTemplateOutlet",e.modalHeader)("ngTemplateOutletContext",$n(12,XY,Je(1,6,"LC52163"))),f(3),v("multiple",!1),f(2),v("ngForOf",e.addresses),f(1),v("ngTemplateOutlet",e.modalFooter)("ngTemplateOutletContext",Ki(14,ZY,Je(7,8,"LC73135"),Je(8,10,"LC73136"),e.confirmAction.bind(e),e.cancelAction.bind(e)))}}let eQ=(()=>{class n extends Gr{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(ht),p(Kt),p(Bs),p(MC))},n.\u0275cmp=Ue({type:n,selectors:[["app-select-address"]],viewQuery:function(e,i){if(1&e&&(Te(WY,7),Te($Y,5)),2&e){let r;de(r=he())&&(i.modalTemp=r.first),de(r=he())&&(i.selection=r.first)}},features:[De],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,JY,9,19,"ng-template",null,0,Dn)},dependencies:[Yn,hn,Qi,Zo,js,Pi],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 tQ=["login"],nQ=function(){return{title:"Login"}},iQ=function(n,t,e,i){return{confirm:n,cancel:t,confirmAction:e,cancelAction:i}};function rQ(n,t){if(1&n){const e=ke();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),$("ngModelChange",function(r){return X(e),Z(w().uname=r)})("focus",function(){return X(e),Z(Jt(8).select())})("keyup.enter",function(){return X(e),Z(Jt(14).focus())}),_()(),g(9,"mat-form-field",4)(10,"mat-label"),j(11),Ze(12,"translate"),_(),g(13,"input",7,8),$("ngModelChange",function(r){return X(e),Z(w().pwd=r)})("focus",function(){return X(e),Z(Jt(14).select())})("keyup.enter",function(){return X(e),Z(w().confirmAction())}),_()()()(),Wt(15,1),Ze(16,"translate"),Ze(17,"translate")}if(2&n){const e=w();v("ngTemplateOutlet",e.modalHeader)("ngTemplateOutletContext",Mv(16,nQ)),f(5),we(Je(6,8,"username")),f(2),v("ngModel",e.uname),f(4),we(Je(12,10,"password")),f(2),v("ngModel",e.pwd),f(2),v("ngTemplateOutlet",e.modalFooter)("ngTemplateOutletContext",Ki(17,iQ,Je(16,12,"LC73135"),Je(17,14,"LC73136"),e.confirmAction.bind(e),e.cancelAction.bind(e)))}}let oQ=(()=>{class n extends Gr{constructor(e,i,r,o){super(e),this.translate=e,this.connection=i,this.messageService=r,this.globals=o}ngOnInit(){}checkIfEmpty(e,i){return Ee(function*(){return!e||""===e||!i||""===i})()}confirmAction(){var e=this;return Ee(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(Kt),p(Bn),p(en),p(ht))},n.\u0275cmp=Ue({type:n,selectors:[["app-login"]],viewQuery:function(e,i){if(1&e&&Te(tQ,7),2&e){let r;de(r=he())&&(i.modalTemp=r.first)}},features:[De],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,rQ,18,22,"ng-template",null,0,Dn)},dependencies:[Qi,zr,Eo,qo,Zr,nr,Jr,Pi],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 L,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 Ei(_G,this.initModalData("searchProject")),selectContact:new Ei(OC,this.initModalData()),searchContact:new Ei(PM,this.initModalData("chooseOfficeDB")),searchTemplate:new Ei(yK,this.initModalData("chooseOfficeDB")),searchProject:new Ei(BY,this.initModalData("documentFile")),createContact:new Ei(p$,this.initModalData()),createTicket:new Ei(b$,this.initModalData()),documentFile:new Ei(B$,this.initModalData()),createAddressCompany:new Ei(OC,this.initModalData("createContact",{createType:"company"})),createAddressToCompany:new Ei(PM,this.initModalData("createContact",{type:"company",createType:"toCompany"})),createAddressPerson:new Ei(OC,this.initModalData("createContact",{createType:"person"})),createLabel:new Ei(Z$,this.initModalData(null,{currentModal:this.newActive})),selectMailAddress:new Ei(IK,this.initModalData()),duplicate:new Ei(iK,this.initModalData()),projectPhase:new Ei(GY,this.initModalData(null,{currentModal:this.newActive})),addressSelection:new Ei(eQ,this.initModalData(null,{currentModal:this.newActive})),login:new Ei(oQ,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)(T(er),T(ht),T(Rs))},n.\u0275prov=me({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),YM=(()=>{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)(T(ht))},n.\u0275prov=me({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();var Zd=G(4856);let sQ=(()=>{class n extends YM{constructor(e,i,r,o){super(e),this.messageService=i,this.authService=r,this.waitList=o,this.globals.curConnectorType="Owa",this.savedAttachments={},this.globals.curConnector=this,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 Ee(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=Ee(function*(o){o.status===Office.AsyncResultStatus.Failed?e.messageService.showError(o.error.message,o.error.name,!0):"gi"===e.globals.system?yield e.setPostDataGI(o,i):yield e.setPostDataBA(o,i)});return function(o){return r.apply(this,arguments)}}())}return!0})()}adjustToastPosition(){}filterObjectEntryOfArr(e){const i=[];for(const r of e)i.push(r.emailAddress);return i}setPostDataBA(e,i){var r=this;return Ee(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 Ee(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 Ee(function*(){window.location.reload()})()}checkDocumentedFlag(e){var i=this;return Ee(function*(){void 0!==e&&null!=e&&(yield i.graphClient.api(`/me/messages/${e}/extensions/GI8.BM`).responseType(Kr.RAW).get().then(function(){var o=Ee(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 Ee(function*(){})()}getMimeMessage(){var e=this;return Ee(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 Ee(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,Zd.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 Ee(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 Ee(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 Ee(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)(T(ht),T(en),T(jc),T(er))},n.\u0275prov=me({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),QM=(()=>{class n extends YM{constructor(e,i,r,o){super(i),this.translate=e,this.globals=i,this.messageService=r,this.connection=o,this.adjustToastPosition(),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}adjustToastPosition(){this.messageService.changeClass("toast-bottom-center-verse")}getPostData(){var e=this;return Ee(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,Zd.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,Zd.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,Zd.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)(T(Kt),T(ht),T(en),T(Bn))},n.\u0275prov=me({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),aQ=(()=>{class n{constructor(e,i,r,o,s,a){this.translate=e,this.globals=i,this.message=r,this.auth=o,this.waitlist=s,this.connection=a}checkForApp(){var e=this;return new b(i=>{try{Office.onReady(()=>{i.next(new sQ(this.globals,this.message,this.auth,this.waitlist)),i.complete()})}catch{if(null!=sessionStorage.getItem("verseAppData")){const o=new QM(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=Ee(function*(s){e.verseHandler(s,i)});return function(s){return o.apply(this,arguments)}}(),!1)}})}verseHandler(e,i){var r=this;return Ee(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 QM(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)(T(Kt),T(ht),T(en),T(jc),T(er),T(Bn))},n.\u0275prov=me({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),ya=(()=>{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=me({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();function lQ(n,t){1&n&&(g(0,"div"),Ae(1,"app-redirect"),_())}function cQ(n,t){1&n&&Ae(0,"app-contact-selector")}function uQ(n,t){1&n&&Ae(0,"app-info-shower")}function dQ(n,t){1&n&&Ae(0,"app-project-selector")}function hQ(n,t){1&n&&Ae(0,"app-tags-selector")}function pQ(n,t){1&n&&Ae(0,"app-address-activities")}function fQ(n,t){if(1&n&&(g(0,"div",15),j(1),_()),2&n){const e=w(4);f(1),qe(" ",e.globals.languageConfLocal.giLoginText," ")}}function mQ(n,t){if(1&n){const e=ke();g(0,"div",12),j(1),H(2,fQ,2,1,"div",13),Ae(3,"br"),g(4,"button",14),$("click",function(){return X(e),Z(w(3).crmLogin())}),j(5,"Login CRM"),_()()}if(2&n){const e=w(3);f(1),qe(" ",e.globals.languageConfLocal.pleaseLogIn," "),f(1),v("ngIf","gi"===e.globals.system)}}function gQ(n,t){if(1&n&&(g(0,"div",10),Ae(1,"app-item-documentor")(2,"app-loader")(3,"app-site-actions"),H(4,cQ,1,0,"app-contact-selector",11),H(5,uQ,1,0,"app-info-shower",11),H(6,dQ,1,0,"app-project-selector",11),H(7,hQ,1,0,"app-tags-selector",11),H(8,pQ,1,0,"app-address-activities",11),H(9,mQ,6,2,"div",9),Ae(10,"app-modal")(11,"app-webint-input"),_()),2&n){const e=w(2);v("ngStyle",e.newCSS.main)("hidden","main"!==e.globals.activeWindow),f(4),v("ngIf",e.globals.loggedIn),f(1),v("ngIf",e.globals.loggedIn),f(1),v("ngIf",e.globals.loggedIn),f(1),v("ngIf",e.globals.loggedIn),f(1),v("ngIf",e.globals.loggedIn),f(1),v("ngIf",!e.globals.loggedIn)}}function _Q(n,t){1&n&&(g(0,"div",16),Ae(1,"app-contact-creator"),_()),2&n&&v("hidden","contactCreation"!==w(2).globals.activeWindow)}function vQ(n,t){1&n&&(g(0,"div",16),Ae(1,"app-about"),_()),2&n&&v("hidden","about"!==w(2).globals.activeWindow)}function yQ(n,t){1&n&&(g(0,"div",16),Ae(1,"app-license-information"),_()),2&n&&v("hidden","license"!==w(2).globals.activeWindow)}function bQ(n,t){1&n&&(g(0,"div",16),Ae(1,"app-project-selector-page"),_()),2&n&&v("hidden","projectPage"!==w(2).globals.activeWindow)}function CQ(n,t){1&n&&(g(0,"div",16),Ae(1,"app-document-selector-page"),_()),2&n&&v("hidden","documentationTargetSelector"!==w(2).globals.activeWindow)}function wQ(n,t){1&n&&(g(0,"div",16),Ae(1,"app-user-settings"),_()),2&n&&v("hidden","userSettings"!==w(2).globals.activeWindow)}function EQ(n,t){if(1&n&&(g(0,"div",12),j(1),_()),2&n){const e=w(2);f(1),qe(" ",e.globals.languageConfLocal.itemNotSupported," ")}}function DQ(n,t){if(1&n&&(Ae(0,"input",3),g(1,"div",4),H(2,gQ,12,8,"div",5),H(3,_Q,2,1,"div",6),H(4,vQ,2,1,"div",6),H(5,yQ,2,1,"div",6),H(6,bQ,2,1,"div",6),H(7,CQ,2,1,"div",6),H(8,wQ,2,1,"div",6),g(9,"div",7),Ae(10,"mat-progress-spinner",8),_(),H(11,EQ,2,1,"div",9),_()),2&n){const e=w();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(2),v("diameter",30),f(1),v("ngIf",e.globals.itemNotSupported)}}let PC=(()=>{class n{constructor(e,i,r,o,s,a,l,c,u,d){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.title="Business Mail",this.newCSS={main:{},overflowContainer:{}},this.isInit=!1}ngOnInit(){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)},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 Ee(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(){}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(fC),p(aQ),p(cl),p(ht),p(Ji),p(Bn),p(ya),p(ir),p(vc))},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&&(Ae(0,"link",0),H(1,lQ,2,0,"div",1),H(2,DQ,12,10,"ng-template",null,2,Dn)),2&e){const r=Jt(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 LC(n,t=Ec){const i=function SQ(n){return n instanceof Date&&!isNaN(+n)}(n)?+n-t.now():Math.abs(n);return r=>r.lift(new AQ(i,t))}class AQ{constructor(t,e){this.delay=t,this.scheduler=e}call(t,e){return e.subscribe(new FC(t,this.delay,this.scheduler))}}class FC extends A{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(FC.dispatch,this.delay,{source:this,destination:this.destination,scheduler:t}))}scheduleNotification(t){if(!0===this.errored)return;const e=this.scheduler,i=new TQ(e.now()+this.delay,t);this.queue.push(i),!1===this.active&&this._schedule(e)}_next(t){this.scheduleNotification(lr.createNext(t))}_error(t){this.errored=!0,this.queue=[],this.destination.error(t),this.unsubscribe()}_complete(){this.scheduleNotification(lr.createComplete()),this.unsubscribe()}}class TQ{constructor(t,e){this.time=t,this.notification=e}}const xQ=["mat-menu-item",""];function IQ(n,t){1&n&&(kl(),g(0,"svg",2),Ae(1,"polygon",3),_())}const XM=["*"];function MQ(n,t){if(1&n){const e=ke();g(0,"div",0),$("keydown",function(r){return X(e),Z(w()._handleKeydown(r))})("click",function(){return X(e),Z(w().closed.emit("click"))})("@transformMenu.start",function(r){return X(e),Z(w()._onAnimationStart(r))})("@transformMenu.done",function(r){return X(e),Z(w()._onAnimationDone(r))}),g(1,"div",1),jt(2),_()()}if(2&n){const e=w();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 Rm={transformMenu:$r("transformMenu",[zn("void",Ft({opacity:0,transform:"scale(0.8)"})),ui("void => enter",_i("120ms cubic-bezier(0, 0, 0.2, 1)",Ft({opacity:1,transform:"scale(1)"}))),ui("* => void",_i("100ms 25ms linear",Ft({opacity:0})))]),fadeInItems:$r("fadeInItems",[zn("showing",Ft({opacity:1})),ui("void => *",[Ft({opacity:0}),_i("400ms 100ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])},kQ=new ge("MatMenuContent"),NC=new ge("MAT_MENU_PANEL"),RQ=Wo(Ms(class{}));let Jd=(()=>{class n extends RQ{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 L,this._focused=new L,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 Ua,this._tabSubscription=E.EMPTY,this._classList={},this._panelAnimationState="void",this._animationDone=new L,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-"+PQ++}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=at(e)}get hasBackdrop(){return this._hasBackdrop}set hasBackdrop(e){this._hasBackdrop=at(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 yf(this._directDescendantItems).withWrap().withTypeAhead().withHomeAndEnd(),this._tabSubscription=this._keyManager.tabOut.subscribe(()=>this.closed.emit("tab")),this._directDescendantItems.changes.pipe(ri(this._directDescendantItems),Qn(e=>Mn(...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(ri(this._directDescendantItems),Qn(i=>Mn(...i.map(r=>r._hovered))))}addItem(e){}removeItem(e){}_handleKeydown(e){const i=e.keyCode,r=this._keyManager;switch(i){case 27:Di(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(an(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(ri(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(Xe),p(et),p(ZM),p(It))},n.\u0275dir=fe({type:n,contentQueries:function(e,i,r){if(1&e&&(Ht(r,kQ,5),Ht(r,Jd,5),Ht(r,Jd,4)),2&e){let o;de(o=he())&&(i.lazyContent=o.first),de(o=he())&&(i._allItems=o),de(o=he())&&(i.items=o)}},viewQuery:function(e,i){if(1&e&&Te(bn,5),2&e){let r;de(r=he())&&(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})(),JM=(()=>{class n extends eh{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(Xe),p(et),p(ZM),p(It))},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:[ot([{provide:NC,useExisting:n}]),De],ngContentSelectors:XM,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,MQ,3,6,"ng-template"))},dependencies:[Wa],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:[Rm.transformMenu,Rm.fadeInItems]},changeDetection:0}),n})();const ek=new ge("mat-menu-scroll-strategy"),FQ={provide:ek,deps:[ur],useFactory:function LQ(n){return()=>n.scrollStrategies.reposition()}},tk=Ds({passive:!0});let NQ=(()=>{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=>{wf(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 eh?s:void 0,i.nativeElement.addEventListener("touchstart",this._handleTouchStart,tk),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,tk),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 eh&&(e._startAnimation(),e._directDescendantItems.changes.pipe(Xt(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 eh?(i._resetAnimation(),i.lazyContent?i._animationDone.pipe(An(r=>"void"===r.toState),an(1),Xt(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 Tc({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 Mn(e,this._parentMaterialMenu?this._parentMaterialMenu.closed:Fe(),this._parentMaterialMenu?this._parentMaterialMenu._hovered().pipe(An(s=>s!==this._menuItemInstance),An(()=>this._menuOpen)):Fe(),i)}_handleMousedown(e){Cf(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(An(e=>e===this._menuItemInstance&&!e.disabled),LC(0,gb)).subscribe(()=>{this._openedBy="mouse",this.menu instanceof eh&&this.menu._isAnimating?this.menu._animationDone.pipe(an(1),LC(0,gb),Xt(this._parentMaterialMenu._hovered())).subscribe(()=>this.openMenu()):this.openMenu()}))}_getPortal(e){return(!this._portal||this._portal.templateRef!==e.templateRef)&&(this._portal=new xs(e.templateRef,this._viewContainerRef)),this._portal}}return n.\u0275fac=function(e){return new(e||n)(p(ur),p(Xe),p(En),p(ek),p(NC,8),p(Jd,10),p(tr,8),p(So),p(et))},n.\u0275dir=fe({type:n,hostVars:3,hostBindings:function(e,i){1&e&&$("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})(),nk=(()=>{class n extends NQ{}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:[De]}),n})(),BQ=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=dt({type:n}),n.\u0275inj=ct({providers:[FQ],imports:[Xi,Lt,ha,xc,Ac,Lt]}),n})();const jQ=["*"];let Om;function th(n){return function HQ(){if(void 0===Om&&(Om=null,typeof window<"u")){const n=window;void 0!==n.trustedTypes&&(Om=n.trustedTypes.createPolicy("angular#components",{createHTML:t=>t}))}return Om}()?.createHTML(n)||n}function ik(n){return Error(`Unable to find icon with the name "${n}"`)}function rk(n){return Error(`The URL provided to MatIconRegistry was not trusted as a resource URL via Angular's DomSanitizer. Attempted URL was "${n}".`)}function ok(n){return Error(`The literal provided to MatIconRegistry was not trusted as safe HTML by Angular's DomSanitizer. Attempted literal was "${n}".`)}class pl{constructor(t,e,i){this.url=t,this.svgText=e,this.options=i}}let Pm=(()=>{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 pl(r,null,o))}addSvgIconResolver(e){return this._resolvers.push(e),this}addSvgIconLiteralInNamespace(e,i,r,o){const s=this._sanitizer.sanitize(sn.HTML,r);if(!s)throw ok(r);const a=th(s);return this._addSvgIconConfig(e,i,new pl("",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 pl(i,null,r))}addSvgIconSetLiteralInNamespace(e,i,r){const o=this._sanitizer.sanitize(sn.HTML,i);if(!o)throw ok(i);const s=th(o);return this._addSvgIconSetConfig(e,new pl("",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(sn.RESOURCE_URL,e);if(!i)throw rk(e);const r=this._cachedIconsByUrl.get(i);return r?Fe(Lm(r)):this._loadSvgIconFromConfig(new pl(e,null)).pipe(Xn(o=>this._cachedIconsByUrl.set(i,o)),ue(o=>Lm(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(ik(r))}ngOnDestroy(){this._resolvers=[],this._svgIconConfigs.clear(),this._iconSetConfigs.clear(),this._cachedIconsByUrl.clear()}_getSvgFromConfig(e){return e.svgText?Fe(Lm(this._svgElementFromConfig(e))):this._loadSvgIconFromConfig(e).pipe(ue(i=>Lm(i)))}_getSvgFromIconSetConfigs(e,i){const r=this._extractIconWithNameFromAnySet(e,i);return r?Fe(r):by(i.filter(s=>!s.svgText).map(s=>this._loadSvgIconSetFromConfig(s).pipe(Ps(a=>{const c=`Loading icon set URL: ${this._sanitizer.sanitize(sn.RESOURCE_URL,s.url)} failed: ${a.message}`;return this._errorHandler.handleError(new Error(c)),Fe(null)})))).pipe(ue(()=>{const s=this._extractIconWithNameFromAnySet(e,i);if(!s)throw ik(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(Xn(i=>e.svgText=i),ue(()=>this._svgElementFromConfig(e)))}_loadSvgIconSetFromConfig(e){return e.svgText?Fe(null):this._fetchIcon(e).pipe(Xn(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(th(""));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(th("")),r=e.attributes;for(let o=0;oth(c)),Kf(()=>this._inProgressUrlFetches.delete(s)),Mw());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"],KQ=ak.map(n=>`[${n}]`).join(", "),YQ=/^url\(['"]?#(.*?)['"]?\)$/;let QQ=(()=>{class n extends zQ{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=at(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(KQ),r=this._elementsWithExternalReferences=this._elementsWithExternalReferences||new Map;for(let o=0;o{const a=i[o],l=a.getAttribute(s),c=l?l.match(YQ):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(an(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(Xe),p(Pm),Hr("aria-hidden"),p(WQ),p(ds),p(GQ,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:[De],ngContentSelectors:jQ,decls:1,vars:0,template:function(e,i){1&e&&(Pn(),jt(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})(),XQ=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=dt({type:n}),n.\u0275inj=ct({imports:[Lt,Lt]}),n})();function ZQ(n,t){if(1&n){const e=ke();g(0,"div",20),$("click",function(){return X(e),Z(w(2).toggleClass(2))}),Ze(1,"translate"),_()}if(2&n){const e=w(2);wi(e.iconConfigLocal[2].model.classAssignment[e.iconConfigLocal[2].model.value]),Dt("title",Je(1,5,e.iconConfigLocal[2].model.titleLC[e.iconConfigLocal[2].model.value])),v("ngStyle",e.configIcon)}}function JQ(n,t){1&n&&(g(0,"span",14),j(1,"mail"),_())}function eX(n,t){1&n&&(g(0,"span",14),j(1,"drafts"),_())}function tX(n,t){if(1&n){const e=ke();g(0,"div",21),$("click",function(){return X(e),Z(w(2).toggleClass(1))}),Ze(1,"translate"),g(2,"mat-icon"),H(3,JQ,2,0,"span",18),H(4,eX,2,0,"span",18),_()()}if(2&n){const e=w(2);wi(e.iconConfigLocal[1].model.classAssignment[e.iconConfigLocal[1].model.value]),Dt("title",Je(1,6,e.iconConfigLocal[1].model.titleLC[e.iconConfigLocal[1].model.value])),f(3),v("ngIf",!e.globals.openMail),f(1),v("ngIf",e.globals.openMail)}}function nX(n,t){1&n&&(g(0,"span",14),j(1,"attach_file"),_())}function iX(n,t){1&n&&(g(0,"span",14),j(1,"attach_file_off"),_())}function rX(n,t){if(1&n){const e=ke();g(0,"div",22)(1,"img",23),$("click",function(r){return X(e),Z(w(2).showDocumentSelector(r))}),_()()}if(2&n){const e=w(2);f(1),v("title",e.globals.languageConfLocal.selectFromAllDocuments)}}function oX(n,t){if(1&n){const e=ke();g(0,"div",12)(1,"div",13),$("click",function(){return X(e),Z(w().reload())}),g(2,"span",14),j(3,"refresh"),_()(),H(4,ZQ,2,7,"div",15),H(5,tX,5,8,"div",16),g(6,"div",17),$("click",function(){return X(e),Z(w().toggleClass(0))}),Ze(7,"translate"),g(8,"mat-icon"),H(9,nX,2,0,"span",18),H(10,iX,2,0,"span",18),_()(),H(11,rX,2,1,"div",19),_()}if(2&n){const e=w();f(1),Dt("title",e.globals.languageConfLocal.reload),f(3),v("ngIf","gi"===e.globals.system&&(e.globals.actionsAllowed||e.globals.createAllowed)),f(1),v("ngIf",e.isReadMode),f(1),wi(e.iconConfigLocal[0].model.classAssignment[e.iconConfigLocal[0].model.value]),Dt("title",Je(7,10,e.iconConfigLocal[0].model.titleLC[e.iconConfigLocal[0].model.value])),f(3),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)}}function sX(n,t){if(1&n){const e=ke();g(0,"li",9),$("click",function(){return X(e),Z(w().connectionService.logout())}),j(1),_()}if(2&n){const e=w();f(1),qe(" ",e.globals.languageConfLocal.logout," ")}}let aX=(()=>{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=hM,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()}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(){}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(ht),p(Bn),p(pM),p(po),p(ir),p(jc))},n.\u0275cmp=Ue({type:n,selectors:[["app-site-actions"]],decls:23,vars:7,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"],["firstEle",""],["class","","mat-menu-item","",3,"click",4,"ngIf"],[1,"clearfix"],["id","reload",1,"widgetReload",3,"title","click"],[1,"material-symbols-rounded"],["id","openCreate",3,"class","title","ngStyle","click",4,"ngIf"],["id","openMail",3,"class","title","click",4,"ngIf"],["id","deleteAttachments",3,"title","click"],["class","material-symbols-rounded",4,"ngIf"],["id","addAllDocsListButton",4,"ngIf"],["id","openCreate",3,"title","ngStyle","click"],["id","openMail",3,"title","click"],["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,oX,12,12,"div",2),_(),g(3,"div",3)(4,"div",4),$("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,10),$("click",function(){return i.openWebIntModal()}),j(16),_(),g(17,"li",9),$("click",function(){return i.openUserSettings()}),j(18),_(),Ae(19,"mat-divider"),H(20,sX,2,1,"li",11),g(21,"li",9),$("click",function(){return i.openLicenses()}),j(22," Info "),_()()()()),2&e){const r=Jt(12);f(2),v("ngIf",i.globals.loggedIn),f(3),qe(" ",i.userName," "),f(2),v("matMenuTriggerFor",r),f(4),v("hasBackdrop",!1),f(5),qe(" ",i.globals.languageConfLocal.webIntConfig," "),f(2),qe(" ",i.globals.languageConfLocal.userSettings," "),f(2),v("ngIf",i.loggedIn)}},dependencies:[hn,ra,gC,JM,Jd,nk,QQ,Pi],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 lX(n,t){1&n&&Ae(0,"div",11)}function cX(n,t){if(1&n&&(g(0,"div",1),H(1,lX,1,0,"div",2),g(2,"div",3),Ae(3,"div",4),g(4,"div",5),Ae(5,"div",6)(6,"div",7),_(),g(7,"div",8),Ae(8,"div",9)(9,"div",10),_()()()),2&n){const e=w();f(1),v("ngIf",!e.isModal)}}let uX=(()=>{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(zc))},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,cX,10,1,"div",0),2&e&&v("ngIf",i.loaderActive)},dependencies:[hn],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 lk(n){return new Se(3e3,!1)}function GX(){return typeof window<"u"&&typeof window.document<"u"}function BC(){return typeof process<"u"&&"[object process]"==={}.toString.call(process)}function ba(n){switch(n.length){case 0:return new _d;case 1:return n[0];default:return new k1(n)}}function ck(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,S)=>{let U=S,ee=y;if("offset"!==S)switch(U=t.normalizePropertyName(U,s),ee){case"!":ee=r.get(S);break;case ks:ee=o.get(S);break;default:ee=t.normalizeStyleValue(S,U,ee,s)}m.set(U,ee)}),h||a.push(m),c=m,l=d}),s.length)throw function OX(n){return new Se(3502,!1)}();return a}function jC(n,t,e,i){switch(t){case"start":n.onStart(()=>i(e&&HC(e,"start",n)));break;case"done":n.onDone(()=>i(e&&HC(e,"done",n)));break;case"destroy":n.onDestroy(()=>i(e&&HC(e,"destroy",n)))}}function HC(n,t,e){const o=VC(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 VC(n,t,e,i,r="",o=0,s){return{element:n,triggerName:t,fromState:e,toState:i,phaseName:r,totalTime:o,disabled:!!s}}function Or(n,t,e){let i=n.get(t);return i||n.set(t,i=e),i}function uk(n){const t=n.indexOf(":");return[n.substring(1,t),n.slice(t+1)]}let UC=(n,t)=>!1,dk=(n,t,e)=>[],hk=null;function qC(n){const t=n.parentNode||n.host;return t===hk?null:t}(BC()||typeof Element<"u")&&(GX()?(hk=(()=>document.documentElement)(),UC=(n,t)=>{for(;t;){if(t===n)return!0;t=qC(t)}return!1}):UC=(n,t)=>n.contains(t),dk=(n,t,e)=>{if(e)return Array.from(n.querySelectorAll(t));const i=n.querySelector(t);return i?[i]:[]});let fl=null,pk=!1;const fk=UC,mk=dk;let gk=(()=>{class n{validateStyleProperty(e){return function $X(n){fl||(fl=function KX(){return typeof document<"u"?document.body:null}()||{},pk=!!fl.style&&"WebkitAppearance"in fl.style);let t=!0;return fl.style&&!function WX(n){return"ebkit"==n.substring(1,6)}(n)&&(t=n in fl.style,!t&&pk&&(t="Webkit"+n.charAt(0).toUpperCase()+n.slice(1)in fl.style)),t}(e)}matchesElement(e,i){return!1}containsElement(e,i){return fk(e,i)}getParentElement(e){return qC(e)}query(e,i,r){return mk(e,i,r)}computeStyle(e,i,r){return r||""}animate(e,i,r,o,s,a=[],l){return new _d(r,o)}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=me({token:n,factory:n.\u0275fac}),n})(),zC=(()=>{class n{}return n.NOOP=new gk,n})();const GC="ng-enter",Fm="ng-leave",Nm="ng-trigger",Bm=".ng-trigger",vk="ng-animating",WC=".ng-animating";function Ca(n){if("number"==typeof n)return n;const t=n.match(/^(-?[\.\d]+)(m?s)/);return!t||t.length<2?0:$C(parseFloat(t[1]),t[2])}function $C(n,t){return"s"===t?1e3*n:n}function jm(n,t,e){return n.hasOwnProperty("duration")?n:function XX(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(lk()),{duration:0,delay:0,easing:""};r=$C(parseFloat(a[1]),a[2]);const l=a[3];null!=l&&(o=$C(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 dX(){return new Se(3100,!1)}()),a=!0),o<0&&(t.push(function hX(){return new Se(3101,!1)}()),a=!0),a&&t.splice(l,0,lk())}return{duration:r,delay:o,easing:s}}(n,t,e)}function nh(n,t={}){return Object.keys(n).forEach(e=>{t[e]=n[e]}),t}function yk(n){const t=new Map;return Object.keys(n).forEach(e=>{t.set(e,n[e])}),t}function wa(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 Ck(n,t,e){return e?t+":"+e+";":""}function wk(n){let t="";for(let e=0;e{const o=YC(r);e&&!e.has(r)&&e.set(r,n.style[o]),n.style[o]=i}),BC()&&wk(n))}function ml(n,t){n.style&&(t.forEach((e,i)=>{const r=YC(i);n.style[r]=""}),BC()&&wk(n))}function ih(n){return Array.isArray(n)?1==n.length?n[0]:I1(n):n}const KC=new RegExp("{{\\s*(.+?)\\s*}}","g");function Ek(n){let t=[];if("string"==typeof n){let e;for(;e=KC.exec(n);)t.push(e[1]);KC.lastIndex=0}return t}function Hm(n,t,e){const i=n.toString(),r=i.replace(KC,(o,s)=>{let a=t[s];return null==a&&(e.push(function fX(n){return new Se(3003,!1)}()),a=""),a.toString()});return r==i?n:r}function Vm(n){const t=[];let e=n.next();for(;!e.done;)t.push(e.value),e=n.next();return t}const eZ=/-+([a-z0-9])/g;function YC(n){return n.replace(eZ,(...t)=>t[1].toUpperCase())}function tZ(n){return n.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}function Pr(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 mX(n){return new Se(3004,!1)}()}}function Dk(n,t){return window.getComputedStyle(n)[t]}function aZ(n,t){const e=[];return"string"==typeof n?n.split(/\s*,\s*/).forEach(i=>function lZ(n,t,e){if(":"==n[0]){const l=function cZ(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 xX(n){return new Se(3015,!1)}()),t;const r=i[1],o=i[2],s=i[3];t.push(Sk(r,s));"<"==o[0]&&!("*"==r&&"*"==s)&&t.push(Sk(s,r))}(i,e,t)):e.push(n),e}const Gm=new Set(["true","1"]),Wm=new Set(["false","0"]);function Sk(n,t){const e=Gm.has(n)||Wm.has(n),i=Gm.has(t)||Wm.has(t);return(r,o)=>{let s="*"==n||n==r,a="*"==t||t==o;return!s&&e&&"boolean"==typeof r&&(s=r?Gm.has(n):Wm.has(n)),!a&&i&&"boolean"==typeof o&&(a=o?Gm.has(t):Wm.has(t)),s&&a}}const uZ=new RegExp("s*:selfs*,?","g");function QC(n,t,e,i){return new dZ(n).build(t,e,i)}class dZ{constructor(t){this._driver=t}build(t,e,i){const r=new fZ(e);return this._resetContextStyleTimingState(r),Pr(this,ih(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 _X(){return new Se(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 vX(){return new Se(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=>{Ek(l).forEach(c=>{s.hasOwnProperty(c)||o.add(c)})})}),o.size&&(Vm(o.values()),e.errors.push(function yX(n,t){return new Se(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=Pr(this,ih(t.animation),e);return{type:1,matchers:aZ(t.expr,e.errors),animation:i,queryCount:e.queryCount,depCount:e.depCount,options:gl(t.options)}}visitSequence(t,e){return{type:2,steps:t.steps.map(i=>Pr(this,i,e)),options:gl(t.options)}}visitGroup(t,e){const i=e.currentTime;let r=0;const o=t.steps.map(s=>{e.currentTime=i;const a=Pr(this,s,e);return r=Math.max(r,e.currentTime),a});return e.currentTime=r,{type:3,steps:o,options:gl(t.options)}}visitAnimate(t,e){const i=function gZ(n,t){if(n.hasOwnProperty("duration"))return n;if("number"==typeof n)return XC(jm(n,t).duration,0,"");const e=n;if(e.split(/\s+/).some(o=>"{"==o.charAt(0)&&"{"==o.charAt(1))){const o=XC(0,0,"");return o.dynamic=!0,o.strValue=e,o}const r=jm(e,t);return XC(r.duration,r.delay,r.easing)}(t.timings,e.errors);e.currentAnimateTimings=i;let r,o=t.styles?t.styles:Ft({});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=Ft(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===ks?i.push(a):e.errors.push(new Se(3002,!1)):i.push(yk(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 CX(n,t,e,i,r){return new Se(3010,!1)}()),d=!1),o=u.startTime),d&&c.set(l,{startTime:o,endTime:r}),e.options&&function JX(n,t,e){const i=t.params||{},r=Ek(n);r.length&&r.forEach(o=>{i.hasOwnProperty(o)||e.push(function pX(n){return new Se(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 wX(){return new Se(3011,!1)}()),i;let o=0;const s=[];let a=!1,l=!1,c=0;const u=t.steps.map(ee=>{const ve=this._makeStyleAst(ee,e);let ne=null!=ve.offset?ve.offset:function mZ(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}(ve.styles),Ie=0;return null!=ne&&(o++,Ie=ve.offset=ne),l=l||Ie<0||Ie>1,a=a||Ie0&&o{const ne=h>0?ve==m?1:h*ve:s[ve],Ie=ne*U;e.currentTime=y+S.delay+Ie,S.duration=Ie,this._validateStyleAst(ee,e),ee.offset=ne,i.styles.push(ee)}),i}visitReference(t,e){return{type:8,animation:Pr(this,ih(t.animation),e),options:gl(t.options)}}visitAnimateChild(t,e){return e.depCount++,{type:9,options:gl(t.options)}}visitAnimateRef(t,e){return{type:10,animation:this.visitReference(t.animation,e),options:gl(t.options)}}visitQuery(t,e){const i=e.currentQuerySelector,r=t.options||{};e.queryCount++,e.currentQuery=t;const[o,s]=function hZ(n){const t=!!n.split(/\s*,\s*/).find(e=>":self"==e);return t&&(n=n.replace(uZ,"")),n=n.replace(/@\*/g,Bm).replace(/@\w+/g,e=>Bm+"-"+e.slice(1)).replace(/:animating/g,WC),[n,t]}(t.selector);e.currentQuerySelector=i.length?i+" "+o:o,Or(e.collectedStyles,e.currentQuerySelector,new Map);const a=Pr(this,ih(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:gl(t.options)}}visitStagger(t,e){e.currentQuery||e.errors.push(function AX(){return new Se(3013,!1)}());const i="full"===t.timings?{duration:0,delay:0,easing:"full"}:jm(t.timings,e.errors,!0);return{type:12,animation:Pr(this,ih(t.animation),e),timings:i,options:null}}}class fZ{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 gl(n){return n?(n=nh(n)).params&&(n.params=function pZ(n){return n?nh(n):null}(n.params)):n={},n}function XC(n,t,e){return{duration:n,delay:t,easing:e}}function ZC(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 $m{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 yZ=new RegExp(":enter","g"),CZ=new RegExp(":leave","g");function JC(n,t,e,i,r,o=new Map,s=new Map,a,l,c=[]){return(new wZ).buildKeyframes(n,t,e,i,r,o,s,a,l,c)}class wZ{buildKeyframes(t,e,i,r,o,s,a,l,c,u=[]){c=c||new $m;const d=new ew(t,e,c,r,o,u,[]);d.options=l;const h=l.delay?Ca(l.delay):0;d.currentTimeline.delayNextStep(h),d.currentTimeline.setStyles([s],null,d.errors,l),Pr(this,i,d);const m=d.timelines.filter(y=>y.containsAnimation());if(m.length&&a.size){let y;for(let S=m.length-1;S>=0;S--){const U=m[S];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()):[ZC(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?Ca(i.duration):null,a=null!=i.delay?Ca(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),Pr(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=Km);const s=Ca(o.delay);r.delayNextStep(s)}t.steps.length&&(t.steps.forEach(s=>Pr(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?Ca(t.options.delay):0;t.steps.forEach(s=>{const a=e.createSubContext(t.options);o&&a.delayNextStep(o),Pr(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 jm(e.params?Hm(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?Ca(r.delay):0;o&&(6===e.previousNode.type||0==i&&e.currentTimeline.hasCurrentStyleProperties())&&(e.currentTimeline.snapshotCurrentStyles(),e.previousNode=Km);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),Pr(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;Pr(this,t.animation,e),e.previousNode=t,i.currentStaggerTime=r.currentTime-d+(r.startTime-i.currentTimeline.startTime)}}const Km={};class ew{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=Km,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=l||new Ym(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=Ca(i.duration)),null!=i.delay&&(r.delay=Ca(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]=Hm(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 ew(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=Km,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 EZ(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(yZ,"."+this._enterClassName)).replace(CZ,"."+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 TX(n){return new Se(3014,!1)}()),a}}class Ym{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 Ym(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||ks),this._currentKeyframe.set(e,ks);this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(t,e,i,r){e&&this._previousKeyframe.set("easing",e);const o=r&&r.params||{},s=function DZ(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,ks)}else wa(r,e)}),e}(t,this._globalTimelineStyles);for(let[a,l]of s){const c=Hm(l,o,i);this._pendingStyles.set(a,c),this._localTimelineStyles.has(a)||this._backFill.set(a,this._globalTimelineStyles.get(a)??ks),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=wa(a,new Map,this._backFill);c.forEach((u,d)=>{"!"===u?t.add(d):u===ks&&e.add(d)}),i||c.set("offset",l/this.duration),r.push(c)});const o=t.size?Vm(t.values()):[],s=e.size?Vm(e.values()):[];if(i){const a=r[0],l=new Map(a);a.set("offset",0),l.set("offset",1),r=[a,l]}return ZC(this.element,r,o,s,this.duration,this.startTime,this.easing,!1)}}class EZ extends Ym{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=wa(t[0]);l.set("offset",0),o.push(l);const c=wa(t[0]);c.set("offset",xk(a)),o.push(c);const u=t.length-1;for(let d=1;d<=u;d++){let h=wa(t[d]);const m=h.get("offset");h.set("offset",xk((e+m*i)/s)),o.push(h)}i=s,e=0,r="",t=o}return ZC(this.element,t,this.preStyleProps,this.postStyleProps,i,e,r,!0)}}function xk(n,t=3){const e=Math.pow(10,t-1);return Math.round(n*e)/e}class tw{}const SZ=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 AZ extends tw{normalizePropertyName(t,e){return YC(t)}normalizeStyleValue(t,e,i,r){let o="";const s=i.toString().trim();if(SZ.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 gX(n,t){return new Se(3005,!1)}())}return s+o}}function Ik(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 nw={};class Mk{constructor(t,e,i){this._triggerName=t,this.ast=e,this._stateStyles=i}match(t,e,i,r){return function TZ(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||nw,y=this.buildStyles(i,a&&a.params||nw,d),S=l&&l.params||nw,U=this.buildStyles(r,S,d),ee=new Set,ve=new Map,ne=new Map,Ie="void"===r,tt={params:xZ(S,h),delay:this.ast.options?.delay},_t=u?[]:JC(t,e,this.ast.animation,o,s,y,U,tt,c,d);let Gt=0;if(_t.forEach(Wn=>{Gt=Math.max(Wn.duration+Wn.delay,Gt)}),d.length)return Ik(e,this._triggerName,i,r,Ie,y,U,[],[],ve,ne,Gt,d);_t.forEach(Wn=>{const bi=Wn.element,Sa=Or(ve,bi,new Set);Wn.preStyleProps.forEach(Mo=>Sa.add(Mo));const Ks=Or(ne,bi,new Set);Wn.postStyleProps.forEach(Mo=>Ks.add(Mo)),bi!==e&&ee.add(bi)});const pn=Vm(ee.values());return Ik(e,this._triggerName,i,r,Ie,y,U,_t,pn,ve,ne,Gt)}}function xZ(n,t){const e=nh(t);for(const i in n)n.hasOwnProperty(i)&&null!=n[i]&&(e[i]=n[i]);return e}class IZ{constructor(t,e,i){this.styles=t,this.defaultParams=e,this.normalizer=i}buildStyles(t,e){const i=new Map,r=nh(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=Hm(s,r,e));const l=this.normalizer.normalizePropertyName(a,e);s=this.normalizer.normalizeStyleValue(a,l,s,e),i.set(l,s)})}),i}}class kZ{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 IZ(r.style,r.options&&r.options.params||{},i))}),kk(this.states,"true","1"),kk(this.states,"false","0"),e.transitions.forEach(r=>{this.transitionFactories.push(new Mk(t,r,this.states))}),this.fallbackTransition=function RZ(n,t,e){return new Mk(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 kk(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 OZ=new $m;class PZ{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=QC(this._driver,e,i,[]);if(i.length)throw function PX(n){return new Se(3503,!1)}();this._animations.set(t,o)}_buildPlayer(t,e,i){const r=t.element,o=ck(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=JC(this._driver,e,o,GC,Fm,new Map,new Map,i,OZ,r),s.forEach(u=>{const d=Or(a,u.element,new Map);u.postStyleProps.forEach(h=>d.set(h,null))})):(r.push(function LX(){return new Se(3300,!1)}()),s=[]),r.length)throw function FX(n){return new Se(3504,!1)}();a.forEach((u,d)=>{u.forEach((h,m)=>{u.set(m,this._driver.computeStyle(d,m,ks))})});const c=ba(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 NX(n){return new Se(3301,!1)}();return e}listen(t,e,i,r){const o=VC(e,"","","");return jC(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 Rk="ng-animate-queued",iw="ng-animate-disabled",jZ=[],Ok={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},HZ={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},no="__ng_removed";class rw{constructor(t,e=""){this.namespaceId=e;const i=t&&t.hasOwnProperty("value");if(this.value=function zZ(n){return n??null}(i?t.value:t),i){const o=nh(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 rh="void",ow=new rw(rh);class VZ{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 BX(n,t){return new Se(3302,!1)}();if(null==i||0==i.length)throw function jX(n){return new Se(3303,!1)}();if(!function GZ(n){return"start"==n||"done"==n}(i))throw function HX(n,t){return new Se(3400,!1)}();const o=Or(this._elementListeners,t,[]),s={name:e,phase:i,callback:r};o.push(s);const a=Or(this._engine.statesByElement,t,new Map);return a.has(e)||(io(t,Nm),io(t,Nm+"-"+e),a.set(e,ow)),()=>{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 VX(n){return new Se(3401,!1)}();return e}trigger(t,e,i,r=!0){const o=this._getTrigger(e),s=new sw(this.id,e,t);let a=this._engine.statesByElement.get(t);a||(io(t,Nm),io(t,Nm+"-"+e),this._engine.statesByElement.set(t,a=new Map));let l=a.get(e);const c=new rw(i,this.id);if(!(i&&i.hasOwnProperty("value"))&&l&&c.absorbOptions(l.options),a.set(e,c),l||(l=ow),c.value!==rh&&l.value===c.value){if(!function KZ(n,t){const e=Object.keys(n),i=Object.keys(t);if(e.length!=i.length)return!1;for(let r=0;r{ml(t,U),es(t,ee)})}return}const h=Or(this._engine.playersByElement,t,[]);h.forEach(S=>{S.namespaceId==this.id&&S.triggerName==e&&S.queued&&S.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,Rk),s.onStart(()=>{Kc(t,Rk)})),s.onDone(()=>{let S=this.players.indexOf(s);S>=0&&this.players.splice(S,1);const U=this._engine.playersByElement.get(t);if(U){let ee=U.indexOf(s);ee>=0&&U.splice(ee,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,Bm,!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,rh,r);u&&a.push(u)}}),a.length)return this._engine.markElementAsRemoved(this.id,t,!0,e,s),i&&ba(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)||ow,u=new rw(rh),d=new sw(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===Ok)&&(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=VC(o,i.triggerName,i.fromState.value,i.toState.value);l._data=t,jC(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 UZ{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 VZ(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(Qm(e)){const o=this._fetchNamespace(t);if(o)return o.trigger(e,i,r),!0}return!1}insertNode(t,e,i,r){if(!Qm(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,iw)):this.disabledNodes.has(t)&&(this.disabledNodes.delete(t),Kc(t,iw))}removeNode(t,e,i,r){if(Qm(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 Qm(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,Bm,!0);e.forEach(i=>this.destroyActiveAnimationsForElement(i)),0!=this.playersByQueriedElement.size&&(e=this.driver.query(t,WC,!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 ba(this.players).onDone(()=>t());t()})}processLeaveNode(t){const e=t[no];if(e&&e.setForRemoval){if(t[no]=Ok,e.namespaceId){this.destroyInnerAnimations(t);const i=this._fetchNamespace(e.namespaceId);i&&i.clearElementCache(t)}this._onRemovalComplete(t,e.setForRemoval)}t.classList?.contains(iw)&&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?ba(e).onDone(()=>{i.forEach(r=>r())}):i.forEach(r=>r())}}reportError(t){throw function UX(n){return new Se(3402,!1)}()}_flushAnimations(t,e){const i=new $m,r=[],o=new Map,s=[],a=new Map,l=new Map,c=new Map,u=new Set;this.disabledNodes.forEach(nt=>{u.add(nt);const ft=this.driver.query(nt,".ng-animate-queued",!0);for(let wt=0;wt{const wt=GC+S++;y.set(ft,wt),nt.forEach(on=>io(on,wt))});const U=[],ee=new Set,ve=new Set;for(let nt=0;ntee.add(on)):ve.add(ft))}const ne=new Map,Ie=Fk(h,Array.from(ee));Ie.forEach((nt,ft)=>{const wt=Fm+S++;ne.set(ft,wt),nt.forEach(on=>io(on,wt))}),t.push(()=>{m.forEach((nt,ft)=>{const wt=y.get(ft);nt.forEach(on=>Kc(on,wt))}),Ie.forEach((nt,ft)=>{const wt=ne.get(ft);nt.forEach(on=>Kc(on,wt))}),U.forEach(nt=>{this.processLeaveNode(nt)})});const tt=[],_t=[];for(let nt=this._namespaceList.length-1;nt>=0;nt--)this._namespaceList[nt].drainQueuedTransitions(e).forEach(wt=>{const on=wt.player,Ci=wt.element;if(tt.push(on),this.collectedEnterElements.length){const Bi=Ci[no];if(Bi&&Bi.setForMove){if(Bi.previousTriggersValues&&Bi.previousTriggersValues.has(wt.triggerName)){const El=Bi.previousTriggersValues.get(wt.triggerName),oo=this.statesByElement.get(wt.element);if(oo&&oo.has(wt.triggerName)){const yg=oo.get(wt.triggerName);yg.value=El,oo.set(wt.triggerName,yg)}}return void on.destroy()}}const rs=!d||!this.driver.containsElement(d,Ci),Lr=ne.get(Ci),Aa=y.get(Ci),jn=this._buildInstruction(wt,i,Aa,Lr,rs);if(jn.errors&&jn.errors.length)return void _t.push(jn);if(rs)return on.onStart(()=>ml(Ci,jn.fromStyles)),on.onDestroy(()=>es(Ci,jn.toStyles)),void r.push(on);if(wt.isFallbackTransition)return on.onStart(()=>ml(Ci,jn.fromStyles)),on.onDestroy(()=>es(Ci,jn.toStyles)),void r.push(on);const cO=[];jn.timelines.forEach(Bi=>{Bi.stretchStartingKeyframe=!0,this.disabledNodes.has(Bi.element)||cO.push(Bi)}),jn.timelines=cO,i.append(Ci,jn.timelines),s.push({instruction:jn,player:on,element:Ci}),jn.queriedElements.forEach(Bi=>Or(a,Bi,[]).push(on)),jn.preStyleProps.forEach((Bi,El)=>{if(Bi.size){let oo=l.get(El);oo||l.set(El,oo=new Set),Bi.forEach((yg,Iw)=>oo.add(Iw))}}),jn.postStyleProps.forEach((Bi,El)=>{let oo=c.get(El);oo||c.set(El,oo=new Set),Bi.forEach((yg,Iw)=>oo.add(Iw))})});if(_t.length){const nt=[];_t.forEach(ft=>{nt.push(function qX(n,t){return new Se(3505,!1)}())}),tt.forEach(ft=>ft.destroy()),this.reportError(nt)}const Gt=new Map,pn=new Map;s.forEach(nt=>{const ft=nt.element;i.has(ft)&&(pn.set(ft,ft),this._beforeAnimationBuild(nt.player.namespaceId,nt.instruction,Gt))}),r.forEach(nt=>{const ft=nt.element;this._getPreviousPlayers(ft,!1,nt.namespaceId,nt.triggerName,null).forEach(on=>{Or(Gt,ft,[]).push(on),on.destroy()})});const Wn=U.filter(nt=>Bk(nt,l,c)),bi=new Map;Lk(bi,this.driver,ve,c,ks).forEach(nt=>{Bk(nt,l,c)&&Wn.push(nt)});const Ks=new Map;m.forEach((nt,ft)=>{Lk(Ks,this.driver,new Set(nt),l,"!")}),Wn.forEach(nt=>{const ft=bi.get(nt),wt=Ks.get(nt);bi.set(nt,new Map([...Array.from(ft?.entries()??[]),...Array.from(wt?.entries()??[])]))});const Mo=[],au=[],lu={};s.forEach(nt=>{const{element:ft,player:wt,instruction:on}=nt;if(i.has(ft)){if(u.has(ft))return wt.onDestroy(()=>es(ft,on.toStyles)),wt.disabled=!0,wt.overrideTotalTime(on.totalTime),void r.push(wt);let Ci=lu;if(pn.size>1){let Lr=ft;const Aa=[];for(;Lr=Lr.parentNode;){const jn=pn.get(Lr);if(jn){Ci=jn;break}Aa.push(Lr)}Aa.forEach(jn=>pn.set(jn,Ci))}const rs=this._buildAnimation(wt.namespaceId,on,Gt,o,Ks,bi);if(wt.setRealPlayer(rs),Ci===lu)Mo.push(wt);else{const Lr=this.playersByElement.get(Ci);Lr&&Lr.length&&(wt.parentPlayer=ba(Lr)),r.push(wt)}}else ml(ft,on.fromStyles),wt.onDestroy(()=>es(ft,on.toStyles)),au.push(wt),u.has(ft)&&r.push(wt)}),au.forEach(nt=>{const ft=o.get(nt.element);if(ft&&ft.length){const wt=ba(ft);nt.setRealPlayer(wt)}}),r.forEach(nt=>{nt.parentPlayer?nt.syncPlayerEvents(nt.parentPlayer):nt.destroy()});for(let nt=0;nt!rs.destroyed);Ci.length?WZ(this,ft,Ci):this.processLeaveNode(ft)}return U.length=0,Mo.forEach(nt=>{this.players.push(nt),nt.onDone(()=>{nt.destroy();const ft=this.players.indexOf(nt);this.players.splice(ft,1)}),nt.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==rh;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=Or(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)})}ml(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 S=y.element;u.add(S);const U=S[no];if(U&&U.removedBeforeQueried)return new _d(y.duration,y.delay);const ee=S!==l,ve=function $Z(n){const t=[];return Nk(n,t),t}((i.get(S)||jZ).map(Gt=>Gt.getRealPlayer())).filter(Gt=>!!Gt.element&&Gt.element===S),ne=o.get(S),Ie=s.get(S),tt=ck(0,this._normalizer,0,y.keyframes,ne,Ie),_t=this._buildPlayer(y,tt,ve);if(y.subTimeline&&r&&d.add(S),ee){const Gt=new sw(t,a,S);Gt.setRealPlayer(_t),c.push(Gt)}return _t});c.forEach(y=>{Or(this.playersByQueriedElement,y.element,[]).push(y),y.onDone(()=>function qZ(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,vk));const m=ba(h);return m.onDestroy(()=>{u.forEach(y=>Kc(y,vk)),es(l,e.toStyles)}),d.forEach(y=>{Or(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 _d(t.duration,t.delay)}}class sw{constructor(t,e,i){this.namespaceId=t,this.triggerName=e,this.element=i,this._player=new _d,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=>jC(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){Or(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 Qm(n){return n&&1===n.nodeType}function Pk(n,t){const e=n.style.display;return n.style.display=t??"none",e}function Lk(n,t,e,i,r){const o=[];e.forEach(l=>o.push(Pk(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]=HZ,s.push(c))}),n.set(c,u)});let a=0;return e.forEach(l=>Pk(l,o[a++])),s}function Fk(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 Kc(n,t){n.classList?.remove(t)}function WZ(n,t,e){ba(e).onDone(()=>n.processLeaveNode(t))}function Nk(n,t){for(let e=0;er.add(o)):t.set(n,i),e.delete(n),!0}class Xm{constructor(t,e,i){this.bodyNode=t,this._driver=e,this._normalizer=i,this._triggerCache={},this.onRemovalComplete=(r,o)=>{},this._transitionEngine=new UZ(t,e,i),this._timelineEngine=new PZ(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=QC(this._driver,o,l,[]);if(l.length)throw function RX(n,t){return new Se(3404,!1)}();a=function MZ(n,t,e){return new kZ(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]=uk(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]=uk(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 QZ=(()=>{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&&es(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(es(this._element,this._initialStyles),this._endStyles&&(es(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(n.initialStylesByElement.delete(this._element),this._startStyles&&(ml(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(ml(this._element,this._endStyles),this._endStyles=null),es(this._element,this._initialStyles),this._state=3)}}return n.initialStylesByElement=new WeakMap,n})();function aw(n){let t=null;return n.forEach((e,i)=>{(function XZ(n){return"display"===n||"position"===n})(i)&&(t=t||new Map,t.set(i,e))}),t}class jk{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:Dk(this.element,r))}),this.currentSnapshot=t}triggerCallback(t){const e="start"===t?this._onStartFns:this._onDoneFns;e.forEach(i=>i()),e.length=0}}class ZZ{validateStyleProperty(t){return!0}validateAnimatableStyleProperty(t){return!0}matchesElement(t,e){return!1}containsElement(t,e){return fk(t,e)}getParentElement(t){return qC(t)}query(t,e,i){return mk(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 jk);(function nZ(n,t){return 0===n||0===t})(i,r)&&u.forEach(m=>{m.currentSnapshot.forEach((y,S)=>c.set(S,y))});let d=function ZX(n){return n.length?n[0]instanceof Map?n:n.map(t=>yk(t)):[]}(e).map(m=>wa(m));d=function iZ(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,Dk(n,a)))}}return t}(t,d,c);const h=function YZ(n,t){let e=null,i=null;return Array.isArray(t)&&t.length?(e=aw(t[0]),t.length>1&&(i=aw(t[t.length-1]))):t instanceof Map&&(e=aw(t)),e||i?new QZ(n,e,i):null}(t,d);return new jk(t,d,l,h)}}let JZ=(()=>{class n extends T1{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)?I1(e):e;return Hk(this._renderer,null,i,"register",[r]),new eJ(i,this._renderer)}}return n.\u0275fac=function(e){return new(e||n)(T(Ru),T(pt))},n.\u0275prov=me({token:n,factory:n.\u0275fac}),n})();class eJ extends class U6{}{constructor(t,e){super(),this._id=t,this._renderer=e}create(t,e){return new tJ(this._id,t,e||{},this._renderer)}}class tJ{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 Hk(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 Hk(n,t,e,i,r){return n.setProperty(t,`@@${e}:${i}`,r)}const Vk="@.disabled";let nJ=(()=>{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 Uk("",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 iJ(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)(T(Ru),T(Xm),T(et))},n.\u0275prov=me({token:n,factory:n.\u0275fac}),n})();class Uk{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==Vk?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 iJ extends Uk{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==Vk?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 rJ(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 oJ(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 sJ=(()=>{class n extends Xm{constructor(e,i,r,o){super(e.body,i,r)}ngOnDestroy(){this.flush()}}return n.\u0275fac=function(e){return new(e||n)(T(pt),T(zC),T(tw),T(ia))},n.\u0275prov=me({token:n,factory:n.\u0275fac}),n})();const qk=[{provide:T1,useClass:JZ},{provide:tw,useFactory:function aJ(){return new AZ}},{provide:Xm,useClass:sJ},{provide:Ru,useFactory:function lJ(n,t,e){return new nJ(n,t,e)},deps:[Up,Xm,et]}],lw=[{provide:zC,useFactory:()=>new ZZ},{provide:qn,useValue:"BrowserAnimations"},...qk],zk=[{provide:zC,useClass:gk},{provide:qn,useValue:"NoopAnimations"},...qk];let cJ=(()=>{class n{static withConfig(e){return{ngModule:n,providers:e.disableAnimations?zk:lw}}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=dt({type:n}),n.\u0275inj=ct({providers:lw,imports:[tx]}),n})(),Gk=(()=>{class n{constructor(e){this.viewContainerRef=e}}return n.\u0275fac=function(e){return new(e||n)(p(En))},n.\u0275dir=fe({type:n,selectors:[["","appModal",""]]}),n})();const uJ=["modal"],dJ=["modalHeader"],hJ=["modalFooter"],pJ=["dbs"];function fJ(n,t){if(1&n){const e=ke();g(0,"div",4)(1,"div",5)(2,"h1"),j(3),_()(),g(4,"div",6),$("click",function(){return X(e),Z(w().closeModal())}),Ae(5,"div",7),_()()}if(2&n){const e=t.title,i=w();f(3),we(e),f(2),v("ngStyle",i.modCloseImage)}}function mJ(n,t){if(1&n){const e=ke();g(0,"div",8)(1,"button",9),$("click",function(){return Z((0,X(e).cancelAction)())}),j(2),_(),g(3,"button",10),$("click",function(){return Z((0,X(e).confirmAction)())}),j(4),_()()}if(2&n){const e=t.confirm,i=t.cancel;f(2),qe(" ",i," "),f(2),qe(" ",e," ")}}function gJ(n,t){}function _J(n,t){}let vJ=(()=>{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(Rs),p(hl),p(ho),p(PC),p(ht))},n.\u0275cmp=Ue({type:n,selectors:[["app-modal"]],viewQuery:function(e,i){if(1&e&&(Te(uJ,7),Te(dJ,7),Te(hJ,7),Te(Gk,7),Te(pJ,5)),2&e){let r;de(r=he())&&(i.modalTempl=r.first),de(r=he())&&(i.modalHeader=r.first),de(r=he())&&(i.modalFooter=r.first),de(r=he())&&(i.appModal=r.first),de(r=he())&&(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,fJ,6,2,"ng-template",null,0,Dn),H(2,mJ,5,2,"ng-template",null,1,Dn),H(4,gJ,0,0,"ng-template",2),H(5,_J,0,0,"ng-template",null,3,Dn))},dependencies:[ra,Gk]}),n})(),yJ=(()=>{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)(T(RC))},n.\u0275prov=me({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();function bJ(n,t){if(1&n&&(kl(),Ae(0,"circle",4)),2&n){const e=w(),i=Jt(1);Oi("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 CJ(n,t){if(1&n&&(kl(),Ae(0,"circle",4)),2&n){const e=w(),i=Jt(1);Oi("stroke-dashoffset",e._getStrokeDashOffset(),"px")("stroke-dasharray",e._getStrokeCircumference(),"px")("stroke-width",e._getCircleStrokeWidth(),"%")("transform-origin",e._getCircleTransformOrigin(i)),rt("r",e._getCircleRadius())}}const EJ=da(class{constructor(n){this._elementRef=n}},"primary"),DJ=new ge("mat-progress-spinner-default-options",{providedIn:"root",factory:function SJ(){return{diameter:100}}});class Gs extends EJ{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=Gs._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=As(t),this._spinnerAnimationLabel=this._getSpinnerAnimationLabel(),this._styleRoot&&this._attachStyleNode()}get strokeWidth(){return this._strokeWidth||this.diameter/10}set strokeWidth(t){this._strokeWidth=As(t)}get value(){return"determinate"===this.mode?this._value:0}set value(t){this._value=Math.max(0,Math.min(100,As(t)))}ngOnInit(){const t=this._elementRef.nativeElement;this._styleRoot=df(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=Gs._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(".","_")}}Gs._diameters=new WeakMap,Gs.\u0275fac=function(t){return new(t||Gs)(p(Xe),p(Fn),p(pt,8),p(qn,8),p(DJ),p(It),p(Go),p(et))},Gs.\u0275cmp=Ue({type:Gs,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),Oi("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:[De],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&&(kl(),g(0,"svg",0,1),H(2,bJ,1,11,"circle",2),H(3,CJ,1,9,"circle",3),_()),2&t&&(Oi("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:[fc,Np],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 TJ=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=dt({type:n}),n.\u0275inj=ct({imports:[Lt,Xi,Lt]}),n})();const xJ=["panel"];function IJ(n,t){if(1&n&&(g(0,"div",0,1),jt(2),_()),2&n){const e=t.id,i=w();v("id",i.id)("ngClass",i._classList),rt("aria-label",i.ariaLabel||null)("aria-labelledby",i._getPanelAriaLabelledby(e))}}const MJ=["*"];let kJ=0;class RJ{constructor(t,e){this.source=t,this.option=e}}const OJ=Wo(class{}),Wk=new ge("mat-autocomplete-default-options",{providedIn:"root",factory:function PJ(){return{autoActiveFirstOption:!1,autoSelectActiveOption:!1}}});let LJ=(()=>{class n extends OJ{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-"+kJ++,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=at(e)}get autoSelectActiveOption(){return this._autoSelectActiveOption}set autoSelectActiveOption(e){this._autoSelectActiveOption=at(e)}set classList(e){this._classList=e&&e.length?function XU(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 V2(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 RJ(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(It),p(Xe),p(Wk),p(Fn))},n.\u0275dir=fe({type:n,viewQuery:function(e,i){if(1&e&&(Te(bn,7),Te(xJ,5)),2&e){let r;de(r=he())&&(i.template=r.first),de(r=he())&&(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:[De]}),n})(),$k=(()=>{class n extends LJ{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&&(Ht(r,If,5),Ht(r,Mr,5)),2&e){let o;de(o=he())&&(i.optionGroups=o),de(o=he())&&(i.options=o)}},hostAttrs:[1,"mat-autocomplete"],inputs:{disableRipple:"disableRipple"},exportAs:["matAutocomplete"],features:[ot([{provide:xf,useExisting:n}]),De],ngContentSelectors:MJ,decls:1,vars:0,consts:[["role","listbox",1,"mat-autocomplete-panel",3,"id","ngClass"],["panel",""]],template:function(e,i){1&e&&(Pn(),H(0,IJ,3,4,"ng-template"))},dependencies:[Wa],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 Kk=new ge("mat-autocomplete-scroll-strategy"),NJ={provide:Kk,deps:[ur],useFactory:function FJ(n){return()=>n.scrollStrategies.reposition()}},BJ={provide:ar,useExisting:tn(()=>ts),multi:!0};let jJ=(()=>{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 L,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(ri(m),Qn(()=>Mn(...m.map(y=>y.onSelectionChange)))):this._zone.onStable.pipe(an(1),Qn(()=>this.optionSelections))}),this._scrollStrategy=a}get autocompleteDisabled(){return this._autocompleteDisabled}set autocompleteDisabled(e){this._autocompleteDisabled=at(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 Mn(this.optionSelections,this.autocomplete._keyManager.tabOut.pipe(An(()=>this._overlayAttached)),this._closeKeyEventStream,this._getOutsideClickStream(),this._overlayRef?this._overlayRef.detachments().pipe(An(()=>this._overlayAttached)):Fe()).pipe(ue(e=>e instanceof S1?e:null))}get activeOption(){return this.autocomplete&&this.autocomplete._keyManager?this.autocomplete._keyManager.activeItem:null}_getOutsideClickStream(){return Mn(Ts(this._document,"click"),Ts(this._document,"auxclick"),Ts(this._document,"touchend")).pipe(An(e=>{const i=Wr(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=Di(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 Mn(this._zone.onStable.pipe(an(1)),this.autocomplete.options.changes.pipe(Xn(()=>this._positionStrategy.reapplyLastPosition()),LC(0))).pipe(Qn(()=>(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)),an(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 xs(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 Tc({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=Ab(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=A1(s.offsetTop,s.offsetHeight,i._getScrollTop(),i.panel.nativeElement.offsetHeight);i._setScrollTop(a)}}}_handleOverlayEvents(e){e.keydownEvents().subscribe(i=>{(27===i.keyCode&&!Di(i)||38===i.keyCode&&Di(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(Xe),p(ur),p(En),p(et),p(It),p(Kk),p(tr,8),p(pm,9),p(pt,8),p(Go),p(Wk,8))},n.\u0275dir=fe({type:n,inputs:{autocomplete:["matAutocomplete","autocomplete"],position:["matAutocompletePosition","position"],connectedTo:["matAutocompleteConnectedTo","connectedTo"],autocompleteAttribute:["autocomplete","autocompleteAttribute"],autocompleteDisabled:["matAutocompleteDisabled","autocompleteDisabled"]},features:[kn]}),n})(),ts=(()=>{class n extends jJ{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&&$("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:[ot([BJ]),De]}),n})(),HJ=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=dt({type:n}),n.\u0275inj=ct({providers:[NJ],imports:[xc,Mf,Lt,Xi,Ac,Mf,Lt]}),n})();function VJ(n,t){if(1&n){const e=ke();g(0,"div",2)(1,"button",3),$("click",function(){return X(e),Z(w().action())}),j(2),_()()}if(2&n){const e=w();f(2),we(e.data.action)}}function UJ(n,t){}const Yk=new ge("MatSnackBarData");class Jm{constructor(){this.politeness="assertive",this.announcementMessage="",this.duration=0,this.data=null,this.horizontalPosition="center",this.verticalPosition="bottom"}}const qJ=Math.pow(2,31)-1;class uw{constructor(t,e){this._overlayRef=e,this._afterDismissed=new L,this._afterOpened=new L,this._onAction=new L,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,qJ))}_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 zJ=(()=>{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(uw),p(Yk))},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,VJ,3,1,"div",1)),2&e&&(f(1),we(i.data.message),f(1),v("ngIf",i.hasAction))},dependencies:[hn,Gc],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 GJ={snackBarState:$r("state",[zn("void, hidden",Ft({transform:"scale(0.8)",opacity:0})),zn("visible",Ft({transform:"scale(1)",opacity:1})),ui("* => visible",_i("150ms cubic-bezier(0, 0, 0.2, 1)")),ui("* => void, * => hidden",_i("75ms cubic-bezier(0.4, 0.0, 1, 1)",Ft({opacity:0})))])};let WJ=(()=>{class n extends Sf{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 L,this._onExit=new L,this._onEnter=new L,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(an(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(Xe),p(It),p(Fn),p(Jm))},n.\u0275dir=fe({type:n,viewQuery:function(e,i){if(1&e&&Te(Is,7),2&e){let r;de(r=he())&&(i._portalOutlet=r.first)}},features:[De]}),n})(),$J=(()=>{class n extends WJ{_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&&dp("@state.done",function(o){return i.onAnimationEnd(o)}),2&e&&qu("@state",i._animationState)},features:[De],decls:3,vars:2,consts:[["aria-hidden","true"],["cdkPortalOutlet",""]],template:function(e,i){1&e&&(g(0,"div",0),H(1,UJ,0,0,"ng-template",1),_(),Ae(2,"div")),2&e&&(f(2),rt("aria-live",i._live)("role",i._role))},dependencies:[Is],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:[GJ.snackBarState]}}),n})(),Qk=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=dt({type:n}),n.\u0275inj=ct({imports:[xc,Ja,Xi,FM,Lt,Lt]}),n})();const Xk=new ge("mat-snack-bar-default-options",{providedIn:"root",factory:function KJ(){return new Jm}});let YJ=(()=>{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=On.create({parent:i&&i.viewContainerRef&&i.viewContainerRef.injector||this._injector,providers:[{provide:Jm,useValue:i}]}),s=new hd(this.snackBarContainerComponent,i.viewContainerRef,o),a=e.attach(s);return a.instance.snackBarConfig=i,a.instance}_attach(e,i){const r={...new Jm,...this._defaultConfig,...i},o=this._createOverlay(r),s=this._attachSnackBarContainer(o,r),a=new uw(s,o);if(e instanceof bn){const l=new xs(e,null,{$implicit:r.data,snackBarRef:a});a.instance=s.attachTemplatePortal(l)}else{const l=this._createInjector(r,a),c=new hd(e,void 0,l),u=s.attachComponentPortal(c);a.instance=u.instance}return this._breakpointObserver.observe("(max-width: 599.98px) and (orientation: portrait)").pipe(Xt(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 Tc;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 On.create({parent:e&&e.viewContainerRef&&e.viewContainerRef.injector||this._injector,providers:[{provide:uw,useValue:i},{provide:Yk,useValue:e.data}]})}}return n.\u0275fac=function(e){return new(e||n)(T(ur),T(pb),T(On),T(cb),T(n,12),T(Xk))},n.\u0275prov=me({token:n,factory:n.\u0275fac}),n})(),eg=(()=>{class n extends YJ{constructor(e,i,r,o,s,a){super(e,i,r,o,s,a),this.simpleSnackBarComponent=zJ,this.snackBarContainerComponent=$J,this.handsetCssClass="mat-snack-bar-handset"}}return n.\u0275fac=function(e){return new(e||n)(T(ur),T(pb),T(On),T(cb),T(n,12),T(Xk))},n.\u0275prov=me({token:n,factory:n.\u0275fac,providedIn:Qk}),n})(),Zk=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=dt({type:n}),n.\u0275inj=ct({}),n})(),lee=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=dt({type:n}),n.\u0275inj=ct({imports:[Zk,ha,Lt,ud,Zk,Lt]}),n})();const Jk=new ge("CdkAccordion");let cee=0,uee=(()=>{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-"+cee++,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=at(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=at(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(Jk,12),p(It),p(gM))},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:[ot([{provide:Jk,useValue:void 0}])]}),n})(),dee=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=dt({type:n}),n.\u0275inj=ct({}),n})();const hee=["body"];function pee(n,t){}const fee=[[["mat-expansion-panel-header"]],"*",[["mat-action-row"]]],mee=["mat-expansion-panel-header","*","mat-action-row"];function gee(n,t){1&n&&Ae(0,"span",2),2&n&&v("@indicatorRotate",w()._getExpandedState())}const _ee=[[["mat-panel-title"]],[["mat-panel-description"]],"*"],vee=["mat-panel-title","mat-panel-description","*"],eR=new ge("MAT_ACCORDION"),tR="225ms cubic-bezier(0.4,0.0,0.2,1)",nR={indicatorRotate:$r("indicatorRotate",[zn("collapsed, void",Ft({transform:"rotate(0deg)"})),zn("expanded",Ft({transform:"rotate(180deg)"})),ui("expanded <=> collapsed, void => collapsed",_i(tR))]),bodyExpansion:$r("bodyExpansion",[zn("collapsed, void",Ft({height:"0px",visibility:"hidden"})),zn("expanded",Ft({height:"*",visibility:"visible"})),ui("expanded <=> collapsed, void => collapsed",_i(tR))])},iR=new ge("MAT_EXPANSION_PANEL");let yee=(()=>{class n{constructor(e,i){this._template=e,this._expansionPanel=i}}return n.\u0275fac=function(e){return new(e||n)(p(bn),p(iR,8))},n.\u0275dir=fe({type:n,selectors:[["ng-template","matExpansionPanelContent",""]]}),n})(),bee=0;const rR=new ge("MAT_EXPANSION_PANEL_DEFAULT_OPTIONS");let dw=(()=>{class n extends uee{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 L,this._headerId="mat-expansion-panel-header-"+bee++,this._bodyAnimationDone=new L,this.accordion=e,this._document=s,this._bodyAnimationDone.pipe(ff((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=at(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(ri(null),An(()=>this.expanded&&!this._portal),an(1)).subscribe(()=>{this._portal=new xs(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(eR,12),p(It),p(gM),p(En),p(pt),p(qn,8),p(rR,8))},n.\u0275cmp=Ue({type:n,selectors:[["mat-expansion-panel"]],contentQueries:function(e,i,r){if(1&e&&Ht(r,yee,5),2&e){let o;de(o=he())&&(i._lazyContent=o.first)}},viewQuery:function(e,i){if(1&e&&Te(hee,5),2&e){let r;de(r=he())&&(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:[ot([{provide:eR,useValue:void 0},{provide:iR,useExisting:n}]),De,kn],ngContentSelectors:mee,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(fee),jt(0),g(1,"div",0,1),$("@bodyExpansion.done",function(o){return i._bodyAnimationDone.next(o)}),g(3,"div",2),jt(4,1),H(5,pee,0,0,"ng-template",3),_(),jt(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:[Is],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:[nR.bodyExpansion]},changeDetection:0}),n})();class Cee{}const wee=fd(Cee);let oR=(()=>{class n extends wee{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(An(u=>!(!u.hideToggle&&!u.togglePosition))):Es;this.tabIndex=parseInt(l||"")||0,this._parentChangeSubscription=Mn(e.opened,e.closed,c,e._inputChanges.pipe(An(u=>!!(u.hideToggle||u.disabled||u.togglePosition)))).subscribe(()=>this._changeDetectorRef.markForCheck()),e.closed.pipe(An(()=>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:Di(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(dw,1),p(Xe),p(So),p(It),p(rR,8),p(qn,8),Hr("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&&$("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),Oi("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:[De],ngContentSelectors:vee,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(_ee),g(0,"span",0),jt(1),jt(2,1),jt(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:[hn],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:[nR.indicatorRotate]},changeDetection:0}),n})(),sR=(()=>{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})(),Eee=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=dt({type:n}),n.\u0275inj=ct({imports:[Xi,Lt,dee,Ja]}),n})();const Dee=["*",[["mat-card-footer"]]],See=["*","mat-card-footer"],Aee=[[["","mat-card-avatar",""],["","matCardAvatar",""]],[["mat-card-title"],["mat-card-subtitle"],["","mat-card-title",""],["","mat-card-subtitle",""],["","matCardTitle",""],["","matCardSubtitle",""]],"*"],Tee=["[mat-card-avatar], [matCardAvatar]","mat-card-title, mat-card-subtitle,\n [mat-card-title], [mat-card-subtitle],\n [matCardTitle], [matCardSubtitle]","*"];let tg=(()=>{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})(),ng=(()=>{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})(),hw=(()=>{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})(),ig=(()=>{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:See,decls:2,vars:0,template:function(e,i){1&e&&(Pn(Dee),jt(0),jt(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})(),xee=(()=>{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:Tee,decls:4,vars:0,consts:[[1,"mat-card-header-text"]],template:function(e,i){1&e&&(Pn(Aee),jt(0),g(1,"div",0),jt(2,1),_(),jt(3,2))},encapsulation:2,changeDetection:0}),n})(),Iee=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=dt({type:n}),n.\u0275inj=ct({imports:[Lt,Lt]}),n})(),Mee=0;const kee=Ms(class{}),aR="mat-badge-content";let Ree=(()=>{class n extends kee{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=Mee++,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=at(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=at(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(aR),"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 > .${aR}`);for(const i of Array.from(e))i!==this._badgeElement&&i.remove()}}return n.\u0275fac=function(e){return new(e||n)(p(et),p(Xe),p(u8),p(po),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:[De]}),n})(),Oee=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=dt({type:n}),n.\u0275inj=ct({imports:[mb,Lt,Lt]}),n})();const Pee=["input"],Lee=["label"],Fee=function(n){return{enterDuration:n}},Nee=["*"],Bee=new ge("mat-checkbox-default-options",{providedIn:"root",factory:lR});function lR(){return{color:"accent",clickAction:"check-indeterminate"}}let jee=0;const cR=lR(),Hee={provide:ar,useExisting:tn(()=>rg),multi:!0};class uR{}const Vee=fd(da(Wo(Ms(class{constructor(n){this._elementRef=n}}))));let Uee=(()=>{class n extends Vee{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||cR,this.color=this.defaultColor=this._options.color||cR.color,this.tabIndex=parseInt(s)||0,this.id=this._uniqueId=`${e}${++jee}`}get inputId(){return`${this.id||this._uniqueId}-input`}get required(){return this._required}set required(e){this._required=at(e)}ngAfterViewInit(){this._syncIndeterminate(this._indeterminate)}get checked(){return this._checked}set checked(e){const i=at(e);i!=this.checked&&(this._checked=i,this._changeDetectorRef.markForCheck())}get disabled(){return this._disabled}set disabled(e){const i=at(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=at(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){Kl()},n.\u0275dir=fe({type:n,viewQuery:function(e,i){if(1&e&&(Te(Pee,5),Te(Lee,5),Te(Ir,5)),2&e){let r;de(r=he())&&(i._inputElement=r.first),de(r=he())&&(i._labelElement=r.first),de(r=he())&&(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:[De]}),n})(),rg=(()=>{class n extends Uee{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 uR;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(Xe),p(It),p(So),p(et),Hr("tabindex"),p(qn,8),p(Bee,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:[ot([Hee]),De],ngContentSelectors:Nee,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),$("change",function(o){return i._onInteractionEvent(o)})("click",function(o){return i._onInputClick(o)}),_(),g(5,"span",5),Ae(6,"span",6),_(),Ae(7,"span",7),g(8,"span",8),kl(),g(9,"svg",9),Ae(10,"path",10),_(),function o0(){!function lP(){xt.lFrame.currentNamespace=null}()}(),Ae(11,"span",11),_()(),g(12,"span",12,13),$("cdkObserveContent",function(){return i._onLabelTextChange()}),g(14,"span",14),j(15,"\xa0"),_(),jt(16),_()()),2&e){const r=Jt(1),o=Jt(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",$n(19,Fee,"NoopAnimations"===i._animationMode?0:150))}},dependencies:[Ir,gf],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})(),dR=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=dt({type:n}),n.\u0275inj=ct({}),n})(),Gee=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=dt({type:n}),n.\u0275inj=ct({imports:[ha,Lt,ud,dR,Lt,dR]}),n})();const Wee=["*"],hR=new ge("MatChipRemove"),pR=new ge("MatChipAvatar"),fR=new ge("MatChipTrailingIcon");class $ee{constructor(t){this._elementRef=t}}const Kee=fd(da(Wo($ee),"primary"),-1);let Ea=(()=>{class n extends Kee{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 L,this._onBlur=new L,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 w1(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=at(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=at(e)}get disabled(){return this._chipListDisabled||this._disabled}set disabled(e){this._disabled=at(e)}get removable(){return this._removable}set removable(e){this._removable=at(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(an(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(Xe),p(et),p(Fn),p(E1,8),p(It),p(pt),p(qn,8),Hr("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&&(Ht(r,pR,5),Ht(r,fR,5),Ht(r,hR,5)),2&e){let o;de(o=he())&&(i.avatar=o.first),de(o=he())&&(i.trailingIcon=o.first),de(o=he())&&(i.removeIcon=o.first)}},hostAttrs:[1,"mat-chip","mat-focus-indicator"],hostVars:15,hostBindings:function(e,i){1&e&&$("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:[De]}),n})(),Yc=(()=>{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(Ea),p(Xe))},n.\u0275dir=fe({type:n,selectors:[["","matChipRemove",""]],hostAttrs:[1,"mat-chip-remove","mat-chip-trailing-icon"],hostBindings:function(e,i){1&e&&$("click",function(o){return i._handleClick(o)})},features:[ot([{provide:hR,useExisting:n}])]}),n})();const mR=new ge("mat-chips-default-options"),Xee=Eb(class{constructor(n,t,e,i){this._defaultErrorStateMatcher=n,this._parentForm=t,this._parentFormGroup=e,this.ngControl=i,this.stateChanges=new L}});let Zee=0;class Jee{constructor(t,e){this.source=t,this.value=e}}let Qc=(()=>{class n extends Xee{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 L,this._uid="mat-chip-list-"+Zee++,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=at(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(Cy.required)??!1}set required(e){this._required=at(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=at(e),this._syncChipsState()}get selectable(){return this._selectable}set selectable(e){this._selectable=at(e),this._syncChipsState()}set tabIndex(e){this._userTabIndex=e,this._tabIndex=e}get chipSelectionChanges(){return Mn(...this.chips.map(e=>e.selectionChange))}get chipFocusChanges(){return Mn(...this.chips.map(e=>e._onFocus))}get chipBlurChanges(){return Mn(...this.chips.map(e=>e._onBlur))}get chipRemoveChanges(){return Mn(...this.chips.map(e=>e.destroyed))}ngAfterContentInit(){this._keyManager=new yf(this.chips).withWrap().withVerticalOrientation().withHomeAndEnd().withHorizontalOrientation(this._dir?this._dir.value:"ltr"),this._dir&&this._dir.change.pipe(Xt(this._destroyed)).subscribe(e=>this._keyManager.withHorizontalOrientation(e)),this._keyManager.tabOut.pipe(Xt(this._destroyed)).subscribe(()=>{this._allowFocusEscape()}),this.chips.changes.pipe(ri(null),Xt(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 ul(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 Jee(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(Xe),p(It),p(tr,8),p(gc,8),p(_c,8),p(md),p(wo,10))},n.\u0275cmp=Ue({type:n,selectors:[["mat-chip-list"]],contentQueries:function(e,i,r){if(1&e&&Ht(r,Ea,5),2&e){let o;de(o=he())&&(i.chips=o)}},hostAttrs:[1,"mat-chip-list"],hostVars:14,hostBindings:function(e,i){1&e&&$("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:[ot([{provide:Gd,useExisting:n}]),De],ngContentSelectors:Wee,decls:2,vars:0,consts:[[1,"mat-chip-list-wrapper"]],template:function(e,i){1&e&&(Pn(),g(0,"div",0),jt(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})(),ete=0,Xc=(()=>{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-"+ete++,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=at(e)}get disabled(){return this._disabled||this._chipList&&this._chipList.disabled}set disabled(e){this._disabled=at(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&&!Di(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!Di(e)&&new Set(this.separatorKeyCodes).has(e.keyCode)}}return n.\u0275fac=function(e){return new(e||n)(p(Xe),p(mR))},n.\u0275dir=fe({type:n,selectors:[["input","matChipInputFor",""]],hostAttrs:[1,"mat-chip-input","mat-input-element"],hostVars:5,hostBindings:function(e,i){1&e&&$("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:[kn]}),n})(),tte=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=dt({type:n}),n.\u0275inj=ct({providers:[md,{provide:mR,useValue:{separatorKeyCodes:[13]}}],imports:[Lt]}),n})();function ite(n){const{subscriber:t,counter:e,period:i}=n;t.next(e),this.schedule({subscriber:t,counter:e+1,period:i},i)}function pw(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 Zc(n,t){const e=t?"":"none";pw(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 gR(n,t,e){pw(n.style,{position:t?"":"fixed",top:t?"":"0",opacity:t?"":"0",left:t?"":"-999em"},e)}function og(n,t){return t&&"none"!=t?n+" "+t:n}function _R(n){const t=n.toLowerCase().indexOf("ms")>-1?1:1e3;return parseFloat(n)*t}function fw(n,t){return n.getPropertyValue(t).split(",").map(i=>i.trim())}function mw(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 gw(n,t,e){const{top:i,bottom:r,left:o,right:s}=n;return e>=i&&e<=r&&t>=o&&t<=s}function oh(n,t,e){n.top+=t,n.bottom=n.top+n.height,n.left+=e,n.right=n.left+n.width}function vR(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:mw(e)})})}handleScroll(t){const e=Wr(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)&&oh(c.clientRect,a,l)}),r.top=o,r.left=s,{top:a,left:l}}getViewportScrollPosition(){return{top:window.scrollY,left:window.scrollX}}}function bR(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 yR(i),s.registerDragItem(this)}get disabled(){return this._disabled||!(!this._dropContainer||!this._dropContainer.disabled)}set disabled(t){const e=at(t);e!==this._disabled&&(this._disabled=e,this._toggleNativeDragInteractions(),this._handles.forEach(i=>Zc(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=>Zn(i)),this._handles.forEach(i=>Zc(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=Zn(t);return e!==this._rootElement&&(this._rootElement&&this._removeRootElementListeners(this._rootElement),this._ngZone.runOutsideAngular(()=>{e.addEventListener("mousedown",this._pointerDown,sg),e.addEventListener("touchstart",this._pointerDown,DR),e.addEventListener("dragstart",this._nativeDragStart,sg)}),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?Zn(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),Zc(t,!0))}enableHandle(t){this._disabledHandles.has(t)&&(this._disabledHandles.delete(t),Zc(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){sh(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(),gR(i,!1,_w),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=sh(e),o=!r&&0!==e.button,s=this._rootElement,a=Wr(e),l=!r&&this._lastTouchEventTime&&this._lastTouchEventTime+800>Date.now(),c=r?wf(e):Cf(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=mw(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){gR(this._rootElement,!0,_w),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=AR(s,this._document),this._previewRef=s,t.matchSize?TR(r,o):r.style.transform=ag(this._pickupPositionOnPage.x,this._pickupPositionOnPage.y)}else r=bR(this._rootElement),TR(r,this._initialClientRect),this._initialTransform&&(r.style.transform=this._initialTransform);return pw(r.style,{"pointer-events":"none",margin:"0",position:"fixed",top:"0",left:"0","z-index":`${this._config.zIndex||1e3}`},_w),Zc(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 rte(n){const t=getComputedStyle(n),e=fw(t,"transition-property"),i=e.find(a=>"transform"===a||"all"===a);if(!i)return 0;const r=e.indexOf(i),o=fw(t,"transition-duration"),s=fw(t,"transition-delay");return _R(o[r])+_R(s[r])}(this._preview);return 0===e?Promise.resolve():this._ngZone.runOutsideAngular(()=>new Promise(i=>{const r=s=>{(!s||Wr(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=AR(this._placeholderRef,this._document)):i=bR(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=sh(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=sh(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=SR(i,a.left+o,a.right-(l-o)),r=SR(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,Zc(this._rootElement,t))}_removeRootElementListeners(t){t.removeEventListener("mousedown",this._pointerDown,sg),t.removeEventListener("touchstart",this._pointerDown,DR),t.removeEventListener("dragstart",this._nativeDragStart,sg)}_applyRootElementTransform(t,e){const i=ag(t,e),r=this._rootElement.style;null==this._initialTransform&&(this._initialTransform=r.transform&&"none"!=r.transform?r.transform:""),r.transform=og(i,this._initialTransform)}_applyPreviewTransform(t,e){const i=this._previewTemplate?.template?void 0:this._initialTransform,r=ag(t,e);this._preview.style.transform=og(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:sh(t)?e.touch:e?e.mouse:0}_updateOnScroll(t){const e=this._parentPositions.handleScroll(t);if(e){const i=Wr(t);this._boundaryRect&&i!==this._boundaryElement&&i.contains(this._boundaryElement)&&oh(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=df(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 Zn(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 ag(n,t){return`translate3d(${Math.round(n)}px, ${Math.round(t)}px, 0)`}function SR(n,t,e){return Math.max(t,Math.min(e,n))}function sh(n){return"t"===n.type[0]}function AR(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 TR(n,t){n.style.width=`${t.width}px`,n.style.height=`${t.height}px`,n.style.transform=ag(t.left,t.top)}function ah(n,t){return Math.max(0,Math.min(t,n))}class cte{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),S=o.slice();return function lte(n,t,e){const i=ah(t,n.length-1),r=ah(e,n.length-1);if(i===r)return;const o=n[i],s=r{if(S[ee]===U)return;const ve=U.drag===t,ne=ve?m:y,Ie=ve?t.getPlaceholderElement():U.drag.getRootElement();U.offset+=ne,a?(Ie.style.transform=og(`translate3d(${Math.round(U.offset)}px, 0, 0)`,U.initialTransform),oh(U.clientRect,0,ne)):(Ie.style.transform=og(`translate3d(0, ${Math.round(U.offset)}px, 0)`,U.initialTransform),oh(U.clientRect,ne,0))}),this._previousSwap.overlaps=gw(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 Zn(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})=>{oh(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:mw(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 L,this.entered=new L,this.exited=new L,this.dropped=new L,this.sorted=new L,this._isDragging=!1,this._draggables=[],this._siblings=[],this._activeSiblings=new Set,this._viewportScrollSubscription=E.EMPTY,this._verticalScrollDirection=0,this._horizontalScrollDirection=0,this._stopScrollTimers=new L,this._cachedShadowRoot=null,this._startScrollInterval=()=>{this._stopScrolling(),function nte(n=0,t=Ec){return(!_b(n)||n<0)&&(n=0),(!t||"function"!=typeof t.schedule)&&(t=Ec),new b(e=>(e.add(t.schedule(ite,n,{subscriber:e,counter:0,period:n})),e))}(0,Y2).pipe(Xt(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=Zn(t),this._document=i,this.withScrollableParents([this.element]),e.registerDropContainer(this),this._parentPositions=new yR(i),this._sortStrategy=new cte(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=Zn(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||!vR(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||vR(s.clientRect,.05,t,e)&&([r,o]=function dte(n,t,e,i){const r=MR(t,i),o=kR(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=MR(l,e),o=kR(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=Zn(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=Zn(this.element);this._parentPositions.cache(this._scrollableElements),this._clientRect=this._parentPositions.positions.get(t).clientRect}_reset(){this._isDragging=!1;const t=Zn(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&&gw(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||!gw(this._clientRect,e,i)||!this.enterPredicate(t,this))return!1;const r=this._getShadowRoot().elementFromPoint(e,i);if(!r)return!1;const o=Zn(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=df(Zn(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 MR(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 kR(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 lg=Ds({passive:!1,capture:!0});let hte=(()=>{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 L,this.pointerUp=new L,this.scroll=new L,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,lg)})}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,lg)}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:lg}),r||this._globalListeners.set("mousemove",{handler:o=>this.pointerMove.next(o),options:lg}),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)}}))),Mn(...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)(T(et),T(pt))},n.\u0275prov=me({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const pte={dragStartThreshold:5,pointerDirectionChangeThreshold:5};let fte=(()=>{class n{constructor(e,i,r,o){this._document=e,this._ngZone=i,this._viewportRuler=r,this._dragDropRegistry=o}createDrag(e,i=pte){return new ate(e,i,this._document,this._ngZone,this._viewportRuler,this._dragDropRegistry)}createDropList(e){return new ute(e,this._dragDropRegistry,this._document,this._ngZone,this._viewportRuler)}}return n.\u0275fac=function(e){return new(e||n)(T(pt),T(et),T(Go),T(hte))},n.\u0275prov=me({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),mte=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=dt({type:n}),n.\u0275inj=ct({providers:[fte],imports:[Ac]}),n})();const gte=["webInp"];function _te(n,t){if(1&n&&(g(0,"p"),j(1),_()),2&n){const e=w(2);f(1),qe(" ",e.globals.languageConfLocal.webIntLogout," ")}}function vte(n,t){if(1&n){const e=ke();g(0,"div",1)(1,"div",2)(2,"h1"),j(3),_()(),g(4,"div",3),$("click",function(){return X(e),Z(w().closeModal())}),Ae(5,"div",4),_()(),g(6,"div",5)(7,"div",6),j(8),H(9,_te,2,1,"p",7),_(),g(10,"div",8)(11,"input",9),$("ngModelChange",function(r){return X(e),Z(w().inputValue=r)})("keyup.enter",function(){return X(e),Z(w().confirmAction())}),_(),g(12,"input",10),$("click",function(){return X(e),Z(w().confirmAction())}),_()()()}if(2&n){const e=w();f(3),we(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 yte=(()=>{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))}closeModal(){this.modal.closeAll()}checkInput(e){var i=this;return Ee(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(en),p(zd),p(zc),p(Bn),p(Rs),p(ht))},n.\u0275cmp=Ue({type:n,selectors:[["app-webint-input"]],viewQuery:function(e,i){if(1&e&&Te(gte,7),2&e){let r;de(r=he())&&(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,vte,13,5,"ng-template",null,0,Dn)},dependencies:[hn,ra,zr,Eo,qo,Jr],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})();var di=(()=>(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"}(di||(di={})),di))(),_l=(()=>(function(n){n[n.NotStarted=0]="NotStarted",n[n.InProgress=1]="InProgress",n[n.Completed=2]="Completed"}(_l||(_l={})),_l))(),cg_missingKidError_code="missing_kid_error",cg_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.",cg_missingAlgError_code="missing_alg_error",cg_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.",RR=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 pr(t,n),t.createMissingKidError=function(){return new t(cg_missingKidError_code,cg_missingKidError_desc)},t.createMissingAlgError=function(){return new t(cg_missingAlgError_code,cg_missingAlgError_desc)},t}(ut),bte=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 RR.createMissingKidError();if(!t.alg)throw RR.createMissingAlgError();var e=new n({typ:t.typ||Vf.Jwt,kid:t.kid,alg:t.alg});return JSON.stringify(e)},n}(),Fi=function(){function n(){}return n.decimalToHex=function(t){for(var e=t.toString(16);e.length<2;)e="0"+e;return e},n}(),OR=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,Fi.decimalToHex(t[0])+Fi.decimalToHex(t[1])+Fi.decimalToHex(t[2])+Fi.decimalToHex(t[3])+"-"+Fi.decimalToHex(t[4])+Fi.decimalToHex(t[5])+"-"+Fi.decimalToHex(t[6])+Fi.decimalToHex(t[7])+"-"+Fi.decimalToHex(t[8])+Fi.decimalToHex(t[9])+"-"+Fi.decimalToHex(t[10])+Fi.decimalToHex(t[11])+Fi.decimalToHex(t[12])+Fi.decimalToHex(t[13])+Fi.decimalToHex(t[14])+Fi.decimalToHex(t[15])}catch{for(var e="xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx",i="0123456789abcdef",r=0,o=te.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}(),Jc=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}(),Cte=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 Jc.utf8ArrToString(i)},n.prototype.base64DecToArr=function(t,e){for(var i=t.replace(/[^A-Za-z0-9\+\/]/g,te.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}(),Ete=function(){function n(t){this.base64Encode=new PR,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}(),vw="SHA-256",Ate=new Uint8Array([1,0,1]),ug=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:vw,modulusLength:2048,publicExponent:Ate}}return n.prototype.sha256Digest=function(t){return Oe(this,void 0,void 0,function(){var e;return Pe(this,function(i){return e=Jc.stringToUtf8Arr(t),[2,this.hasIECrypto()?this.getMSCryptoDigest(vw,e):this.getSubtleCryptoDigest(vw,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(Uf,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=Jc.stringToArrayBuffer(r),[2,this.hasIECrypto()?this.msCryptoImportKey(o,e,i):window.crypto.subtle.importKey(Uf,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(Uf,t);o.addEventListener("complete",function(s){var l=Jc.utf8ArrToString(new Uint8Array(s.target.result)).replace(/\r/g,te.EMPTY_STRING).replace(/\n/g,te.EMPTY_STRING).replace(/\t/g,te.EMPTY_STRING).split(" ").join(te.EMPTY_STRING).replace("\0",te.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(Uf,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}(),Tte=function(){function n(){this.dbName=zf,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===zf})?[2,new Promise(function(r,o){var s=window.indexedDB.deleteDatabase(zf);s.addEventListener("success",function(){return r(!0)}),s.addEventListener("error",function(){return o(!1)})})]:[2,!0]}})})},n}(),yw=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}(),LR=function(){function n(t,e){this.inMemoryCache=new yw,this.indexedDBCache=new Tte,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}(),lh=(()=>(function(n){n.asymmetricKeys="asymmetricKeys",n.symmetricKeys="symmetricKeys"}(lh||(lh={})),lh))(),xte=function(){function n(t,e){this.logger=t,this.browserCrypto=new ug(this.logger),this.b64Encode=new PR,this.b64Decode=new Cte,this.guidGenerator=new OR(this.browserCrypto),this.pkceGenerator=new Ete(this.browserCrypto),this.cache={asymmetricKeys:new LR(this.logger,lh.asymmetricKeys),symmetricKeys:new LR(this.logger,lh.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(di.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=ug.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,S,U,ee;return Pe(this,function(ve){switch(ve.label){case 0:return o=null===(r=this.performanceClient)||void 0===r?void 0:r.startMeasurement(di.CryptoOptsSignJwt,i),[4,this.cache.asymmetricKeys.getItem(e)];case 1:if(!(s=ve.sent()))throw ze.createSigningKeyNotFoundInStorageError(e);return[4,this.browserCrypto.exportJwk(s.publicKey)];case 2:return a=ve.sent(),l=ug.getJwkString(a),c=this.b64Encode.urlEncode(JSON.stringify({kid:e})),u=bte.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=Jc.stringToArrayBuffer(m=d+"."+h),[4,this.browserCrypto.sign(s.privateKey,y)];case 3:return S=ve.sent(),U=this.b64Encode.urlEncodeArr(new Uint8Array(S)),ee=m+"."+U,o&&o.endMeasurement({success:!0}),[2,ee]}})})},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}(),yi=(()=>(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"}(yi||(yi={})),yi))(),FR=function(){function n(t,e,i){this.level=yi.Info,this.localCallback=t.loggerCallback||function(){},this.piiLoggingEnabled=t.piiLoggingEnabled||!1,this.level="number"==typeof t.logLevel?t.logLevel:yi.Info,this.correlationId=t.correlationId||te.EMPTY_STRING,this.packageName=e||te.EMPTY_STRING,this.packageVersion=i||te.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+" : "+yi[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:yi.Error,containsPii:!1,correlationId:e||te.EMPTY_STRING})},n.prototype.errorPii=function(t,e){this.logMessage(t,{logLevel:yi.Error,containsPii:!0,correlationId:e||te.EMPTY_STRING})},n.prototype.warning=function(t,e){this.logMessage(t,{logLevel:yi.Warning,containsPii:!1,correlationId:e||te.EMPTY_STRING})},n.prototype.warningPii=function(t,e){this.logMessage(t,{logLevel:yi.Warning,containsPii:!0,correlationId:e||te.EMPTY_STRING})},n.prototype.info=function(t,e){this.logMessage(t,{logLevel:yi.Info,containsPii:!1,correlationId:e||te.EMPTY_STRING})},n.prototype.infoPii=function(t,e){this.logMessage(t,{logLevel:yi.Info,containsPii:!0,correlationId:e||te.EMPTY_STRING})},n.prototype.verbose=function(t,e){this.logMessage(t,{logLevel:yi.Verbose,containsPii:!1,correlationId:e||te.EMPTY_STRING})},n.prototype.verbosePii=function(t,e){this.logMessage(t,{logLevel:yi.Verbose,containsPii:!0,correlationId:e||te.EMPTY_STRING})},n.prototype.trace=function(t,e){this.logMessage(t,{logLevel:yi.Trace,containsPii:!1,correlationId:e||te.EMPTY_STRING})},n.prototype.tracePii=function(t,e){this.logMessage(t,{logLevel:yi.Trace,containsPii:!0,correlationId:e||te.EMPTY_STRING})},n.prototype.isPiiLoggingEnabled=function(){return this.piiLoggingEnabled||!1},n}(),NR=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:_l.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:_l.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!==_l.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===_l.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}(),Ite=function(){function n(){}return n.prototype.startMeasurement=function(){},n.prototype.endMeasurement=function(){},n.prototype.flushMeasurement=function(){return null},n}(),Mte=function(n){function t(){return null!==n&&n.apply(this,arguments)||this}return pr(t,n),t.prototype.generateId=function(){return"callback-id"},t.prototype.startPerformanceMeasuremeant=function(){return new Ite},t}(NR),dg={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 St(this,void 0,void 0,function(){return At(this,function(t){throw ut.createUnexpectedError("Crypto interface - generatePkceCodes() has not been implemented")})})},getPublicKeyThumbprint:function(){return St(this,void 0,void 0,function(){return At(this,function(t){throw ut.createUnexpectedError("Crypto interface - getPublicKeyThumbprint() has not been implemented")})})},removeTokenBindingKey:function(){return St(this,void 0,void 0,function(){return At(this,function(t){throw ut.createUnexpectedError("Crypto interface - removeTokenBindingKey() has not been implemented")})})},clearKeystore:function(){return St(this,void 0,void 0,function(){return At(this,function(t){throw ut.createUnexpectedError("Crypto interface - clearKeystore() has not been implemented")})})},signJwt:function(){return St(this,void 0,void 0,function(){return At(this,function(t){throw ut.createUnexpectedError("Crypto interface - signJwt() has not been implemented")})})},hashString:function(){return St(this,void 0,void 0,function(){return At(this,function(t){throw ut.createUnexpectedError("Crypto interface - hashString() has not been implemented")})})}},BR=["interaction_required","consent_required","login_required"],kte=["message_only","additional_action","basic_action","user_password_expired","consent_required"],ch_noTokensFoundError_code="no_tokens_found",ch_noTokensFoundError_desc="No refresh token found in the cache. Please sign-in.",ch_native_account_unavailable_code="native_account_unavailable",ch_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 pr(t,n),t.isInteractionRequiredError=function(e,i,r){var o=!!e&&BR.indexOf(e)>-1,s=!!r&&kte.indexOf(r)>-1,a=!!i&&BR.some(function(l){return i.indexOf(l)>-1});return o||a||s},t.createNoTokensFoundError=function(){return new t(ch_noTokensFoundError_code,ch_noTokensFoundError_desc)},t.createNativeAccountUnavailableError=function(){return new t(ch_native_account_unavailable_code,ch_native_account_unavailable_desc)},t}(ut),vl=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 pr(t,n),t}(ut);function hg(n,t){if(Ke.isEmpty(n))throw it.createClientInfoEmptyError();try{var e=t.base64Decode(n);return JSON.parse(e)}catch(i){throw it.createClientInfoDecodingError(i)}}function eu(n){if(Ke.isEmpty(n))throw it.createClientInfoDecodingError("Home account ID was empty.");var t=n.split(fr.CLIENT_INFO_SEPARATOR,2);return{uid:t[0],utid:t.length<2?te.EMPTY_STRING:t[1]}}var ns=(()=>(function(n){n[n.Default=0]="Default",n[n.Adfs=1]="Adfs"}(ns||(ns={})),ns))(),Ni=function(){function n(){}return n.prototype.generateAccountId=function(){return[this.homeAccountId,this.environment].join(fr.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 Ko.ADFS_ACCOUNT_TYPE:return Yo.ADFS;case Ko.MSAV1_ACCOUNT_TYPE:return Yo.MSA;case Ko.MSSTS_ACCOUNT_TYPE:return Yo.MSSTS;case Ko.GENERIC_ACCOUNT_TYPE:return Yo.GENERIC;default:throw it.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||te.EMPTY_STRING,t.tenantId||te.EMPTY_STRING].join(fr.CACHE_KEY_SEPARATOR).toLowerCase()},n.createAccount=function(t,e,i,r,o,s,a,l){var c,u,d,h,m,y,S=new n;S.authorityType=Ko.MSSTS_ACCOUNT_TYPE,S.clientInfo=t,S.homeAccountId=e,S.nativeAccountId=l;var U=a||r&&r.getPreferredCache();if(!U)throw it.createInvalidCacheEnvironmentError();return S.environment=U,S.realm=(null===(c=i?.claims)||void 0===c?void 0:c.tid)||te.EMPTY_STRING,i&&(S.idTokenClaims=i.claims,S.localAccountId=(null===(u=i?.claims)||void 0===u?void 0:u.oid)||(null===(d=i?.claims)||void 0===d?void 0:d.sub)||te.EMPTY_STRING,S.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]:te.EMPTY_STRING),S.name=null===(y=i?.claims)||void 0===y?void 0:y.name),S.cloudGraphHostName=o,S.msGraphHost=s,S},n.createGenericAccount=function(t,e,i,r,o,s){var a,l,c,u,d=new n;d.authorityType=i&&i.authorityType===ns.Adfs?Ko.ADFS_ACCOUNT_TYPE:Ko.GENERIC_ACCOUNT_TYPE,d.homeAccountId=t,d.realm=te.EMPTY_STRING;var h=s||i&&i.getPreferredCache();if(!h)throw it.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)||te.EMPTY_STRING,d.username=(null===(c=e?.claims)||void 0===c?void 0:c.upn)||te.EMPTY_STRING,d.name=(null===(u=e?.claims)||void 0===u?void 0:u.name)||te.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:te.EMPTY_STRING;if(e===ns.Adfs)return a;if(t)try{var l=hg(t,r);if(!Ke.isEmpty(l.uid)&&!Ke.isEmpty(l.utid))return""+l.uid+fr.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}(),uh=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 qt.ID_TOKEN:return Yo.ID_TOKEN;case qt.ACCESS_TOKEN:case qt.ACCESS_TOKEN_WITH_AUTH_SCHEME:return Yo.ACCESS_TOKEN;case qt.REFRESH_TOKEN:return Yo.REFRESH_TOKEN;default:throw it.createUnexpectedCredentialTypeError()}},n.getCredentialType=function(t){return-1!==t.indexOf(qt.ACCESS_TOKEN.toLowerCase())?-1!==t.indexOf(qt.ACCESS_TOKEN_WITH_AUTH_SCHEME.toLowerCase())?qt.ACCESS_TOKEN_WITH_AUTH_SCHEME:qt.ACCESS_TOKEN:-1!==t.indexOf(qt.ID_TOKEN.toLowerCase())?qt.ID_TOKEN:-1!==t.indexOf(qt.REFRESH_TOKEN.toLowerCase())?qt.REFRESH_TOKEN:te.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(fr.CACHE_KEY_SEPARATOR).toLowerCase()},n.generateAccountIdForCacheKey=function(t,e){return[t,e].join(fr.CACHE_KEY_SEPARATOR).toLowerCase()},n.generateCredentialIdForCacheKey=function(t,e,i,r){return[t,t===qt.REFRESH_TOKEN&&r||e,i||te.EMPTY_STRING].join(fr.CACHE_KEY_SEPARATOR).toLowerCase()},n.generateTargetForCacheKey=function(t){return(t||te.EMPTY_STRING).toLowerCase()},n.generateClaimsHashForCacheKey=function(t){return(t||te.EMPTY_STRING).toLowerCase()},n.generateSchemeForCacheKey=function(t){return t&&t.toLowerCase()!==mn.BEARER.toLowerCase()?t.toLowerCase():te.EMPTY_STRING},n}(),_r=function(){function n(t){var e=this,i=t?Ke.trimArrayEntries(jf(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||te.EMPTY_STRING).split(" "))},n.prototype.validateInputScopes=function(t){if(!t||t.length<1)throw xn.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 G1.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 it.createAppendScopeSetError(i)}},n.prototype.removeScope=function(t){if(Ke.isEmpty(t))throw it.createRemoveEmptyScopeFromSetError(t);this.scopes.delete(t.trim())},n.prototype.removeOIDCScopes=function(){var t=this;G1.forEach(function(e){t.scopes.delete(e)})},n.prototype.unionScopeSets=function(t){if(!t)throw it.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 it.createEmptyInputScopeSetError();t.containsOnlyOIDCScopes()||t.removeOIDCScopes();var e=this.unionScopeSets(t),i=t.getScopeCount(),r=this.getScopeCount();return e.size1)throw it.createMultipleMatchingAccountsInCacheError();return i[0]},n.prototype.readIdTokenFromCache=function(t,e){var r=this.getCredentialsFilteredBy({homeAccountId:e.homeAccountId,environment:e.environment,credentialType:qt.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 it.createMultipleMatchingTokensInCacheError();return o[0]},n.prototype.readAccessTokenFromCache=function(t,e,i){var r=new _r(i.scopes||[]),o=i.authenticationScheme||mn.BEARER,s=o&&o.toLowerCase()!==mn.BEARER.toLowerCase()?qt.ACCESS_TOKEN_WITH_AUTH_SCHEME:qt.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 it.createMultipleMatchingTokensInCacheError();return c[0]},n.prototype.readRefreshTokenFromCache=function(t,e,i){var s=this.getCredentialsFilteredBy({homeAccountId:e.homeAccountId,environment:e.environment,credentialType:qt.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 it.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!==qt.ACCESS_TOKEN&&t.credentialType!==qt.ACCESS_TOKEN_WITH_AUTH_SCHEME||!t.target)return!1;var r=_r.fromString(t.target),o=_r.fromString(e);return o.containsOnlyOIDCScopes()?o.removeScope(te.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(Nb)},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 qt.ID_TOKEN:return this.getIdTokenCredential(t);case qt.ACCESS_TOKEN:case qt.ACCESS_TOKEN_WITH_AUTH_SCHEME:return this.getAccessTokenCredential(t);case qt.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}(),Rte=function(n){function t(){return null!==n&&n.apply(this,arguments)||this}return pr(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 St(this,void 0,void 0,function(){return At(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),dh=function(n){function t(){return null!==n&&n.apply(this,arguments)||this}return pr(t,n),t.createIdTokenEntity=function(e,i,r,o,s){var a=new t;return a.credentialType=qt.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===qt.ID_TOKEN},t}(uh),ro=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}(),hh=function(n){function t(){return null!==n&&n.apply(this,arguments)||this}return pr(t,n),t.createAccessTokenEntity=function(e,i,r,o,s,a,l,c,u,d,h,m,y,S,U){var ee,ve,ne=new t;ne.homeAccountId=e,ne.credentialType=qt.ACCESS_TOKEN,ne.secret=r;var Ie=ro.nowSeconds();if(ne.cachedAt=Ie.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)?mn.BEARER:h,S&&(ne.requestedClaims=S,ne.requestedClaimsHash=U),(null===(ee=ne.tokenType)||void 0===ee?void 0:ee.toLowerCase())!==mn.BEARER.toLowerCase())switch(ne.credentialType=qt.ACCESS_TOKEN_WITH_AUTH_SCHEME,ne.tokenType){case mn.POP:var tt=Da.extractTokenClaims(r,u);if(null===(ve=tt?.cnf)||void 0===ve||!ve.kid)throw it.createTokenClaimsRequiredError();ne.keyId=tt.cnf.kid;break;case mn.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===qt.ACCESS_TOKEN||e.credentialType===qt.ACCESS_TOKEN_WITH_AUTH_SCHEME)},t}(uh),bw=function(n){function t(){return null!==n&&n.apply(this,arguments)||this}return pr(t,n),t.createRefreshTokenEntity=function(e,i,r,o,s,a){var l=new t;return l.clientId=o,l.credentialType=qt.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===qt.REFRESH_TOKEN},t}(uh),Cw=function(){function n(){}return n.prototype.generateAppMetadataKey=function(){return n.generateAppMetadataCacheKey(this.environment,this.clientId)},n.generateAppMetadataCacheKey=function(t,e){return[Nb,t,e].join(fr.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(Nb)&&e.hasOwnProperty("clientId")&&e.hasOwnProperty("environment")},n}(),pg=function(){function n(){this.failedRequests=[],this.errors=[],this.cacheHits=0}return n.isServerTelemetryEntity=function(t,e){var i=0===t.indexOf(Si.CACHE_KEY),r=!0;return e&&(r=e.hasOwnProperty("failedRequests")&&e.hasOwnProperty("errors")&&e.hasOwnProperty("cacheHits")),i&&r},n}(),ww=function(){function n(){this.expiresAt=ro.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=ro.nowSeconds()+86400},n.prototype.isExpired=function(){return this.expiresAt<=ro.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}(),jR=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}(),Ws=function(){function n(){}return n.setRequestState=function(t,e,i){var r=n.generateLibraryState(t,i);return Ke.isEmpty(e)?r:""+r+te.RESOURCE_DELIM+e},n.generateLibraryState=function(t,e){if(!t)throw it.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 it.createNoCryptoObjectError("parseRequestState");if(Ke.isEmpty(e))throw it.createInvalidStateError(e,"Null, undefined or empty state");try{var i=e.split(te.RESOURCE_DELIM),r=i[0],o=i.length>1?i.slice(1).join(te.RESOURCE_DELIM):te.EMPTY_STRING,s=t.base64Decode(r),a=JSON.parse(s);return{userRequestState:Ke.isEmpty(o)?te.EMPTY_STRING:o,libraryState:a}}catch(l){throw it.createInvalidStateError(e,l)}},n}(),vr=(()=>(function(n){n.HOME_ACCOUNT_ID="home_account_id",n.UPN="UPN"}(vr||(vr={})),vr))(),HR=function(){function n(t){this.validateWindowStorage(t),this.windowStorage=window[t]}return n.prototype.validateWindowStorage=function(t){if(t!==Ai.LocalStorage&&t!==Ai.SessionStorage)throw Wf.createStorageNotSupportedError(t);if(!window[t])throw Wf.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}(),VR=function(){function n(){}return n.extractBrowserRequestState=function(t,e){if(Ke.isEmpty(e))return null;try{return Ws.parseRequestState(t,e).libraryState.meta}catch(r){throw it.createInvalidStateError(e,r)}},n.parseServerResponseFromHash=function(t){if(!t)return{};var e=new rn(t);return rn.getDeserializedHash(e.getHash())},n}(),Ew=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 yw,s.browserStorage=s.setupBrowserStorage(s.cacheConfig.cacheLocation),s.temporaryCacheStorage=s.setupTemporaryCacheStorage(s.cacheConfig.cacheLocation),s.migrateCacheEntries(),s}return Ti(t,n),t.prototype.setupBrowserStorage=function(e){switch(e){case Ai.LocalStorage:case Ai.SessionStorage:try{return new HR(e)}catch(i){this.logger.verbose(i);break}}return this.cacheConfig.cacheLocation=Ai.MemoryStorage,new yw},t.prototype.setupTemporaryCacheStorage=function(e){switch(e){case Ai.LocalStorage:case Ai.SessionStorage:try{return new HR(Ai.SessionStorage)}catch(i){return this.logger.verbose(i),this.internalStorage}default:return this.internalStorage}},t.prototype.migrateCacheEntries=function(){var e=this,r=te.CACHE_PREFIX+"."+oi.CLIENT_INFO,o=te.CACHE_PREFIX+"."+oi.ERROR,s=te.CACHE_PREFIX+"."+oi.ERROR_DESC,d=[this.browserStorage.getItem(te.CACHE_PREFIX+"."+oi.ID_TOKEN),this.browserStorage.getItem(r),this.browserStorage.getItem(o),this.browserStorage.getItem(s)];[oi.ID_TOKEN,oi.CLIENT_INFO,oi.ERROR,oi.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&&Ni.isAccountEntity(r)?Io.toObject(new Ni,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&&dh.isIdTokenEntity(r)?(this.logger.trace("BrowserCacheManager.getIdTokenCredential: cache hit"),Io.toObject(new dh,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&&hh.isAccessTokenEntity(r)?(this.logger.trace("BrowserCacheManager.getAccessTokenCredential: cache hit"),Io.toObject(new hh,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&&bw.isRefreshTokenEntity(r)?(this.logger.trace("BrowserCacheManager.getRefreshTokenCredential: cache hit"),Io.toObject(new bw,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&&Cw.isAppMetadataEntity(e,r)?(this.logger.trace("BrowserCacheManager.getAppMetadata: cache hit"),Io.toObject(new Cw,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&&pg.isServerTelemetryEntity(e,r)?(this.logger.trace("BrowserCacheManager.getServerTelemetry: cache hit"),Io.toObject(new pg,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&&ww.isAuthorityMetadataEntity(e,r)?(this.logger.trace("BrowserCacheManager.getAuthorityMetadata: cache hit"),Io.toObject(new ww,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(ol.WRAPPER_SKU,e),this.internalStorage.setItem(ol.WRAPPER_VER,i)},t.prototype.getWrapperMetadata=function(){return[this.internalStorage.getItem(ol.WRAPPER_SKU)||te.EMPTY_STRING,this.internalStorage.getItem(ol.WRAPPER_VER)||te.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(oi.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(oi.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(oi.ACTIVE_ACCOUNT_FILTERS),r=this.generateCacheKey(oi.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 it.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&&jR.isThrottlingEntity(e,r)?(this.logger.trace("BrowserCacheManager.getThrottlingCache: cache hit"),Io.toObject(new jR,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===Ai.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 Y1(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(te.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"}(ph||(ph={})),ph))(),tu=(()=>(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"}(tu||(tu={})),tu))(),qR={tokenRenewalOffsetSeconds:300,preventCorsPreflight:!1,proxyUrl:te.EMPTY_STRING},Fte={loggerCallback:function(){},piiLoggingEnabled:!1,logLevel:yi.Info,correlationId:te.EMPTY_STRING},Nte={sendGetRequestAsync:function(){return St(this,void 0,void 0,function(){return At(this,function(t){throw ut.createUnexpectedError("Network interface - sendGetRequestAsync() has not been implemented")})})},sendPostRequestAsync:function(){return St(this,void 0,void 0,function(){return At(this,function(t){throw ut.createUnexpectedError("Network interface - sendPostRequestAsync() has not been implemented")})})}},Bte={sku:te.SKU,version:"7.3.0",cpu:te.EMPTY_STRING,os:te.EMPTY_STRING},jte={clientSecret:te.EMPTY_STRING,clientAssertion:void 0},Hte={azureCloudInstance:tu.None,tenant:""+te.DEFAULT_COMMON_TENANT},Vte={application:{appName:"",appVersion:""}};function qte(n){return Gn({clientCapabilities:[],azureCloudOptions:Hte,skipAuthorityMetadataCache:!1},n)}var zte={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."))}},Gte=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}(),Sw="@azure/msal-browser",fh="2.28.1",Qte=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||!Ni.isAccountEntity(i))return;var o=Io.toObject(new Ni,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}(),fg=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($o.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,fa.THROTTLING)},n}(),Xte=function(){function n(t,e){this.networkClient=t,this.cacheManager=e}return n.prototype.sendPostRequest=function(t,e,i){return St(this,void 0,void 0,function(){var r,o;return At(this,function(s){switch(s.label){case 0:fg.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:it.createNetworkError(e,o);case 4:return fg.postProcess(this.cacheManager,t,r),[2,r]}})})},n}(),Aw=function(){function n(t,e){this.config=function Ute(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({},Fte),i);return{authOptions:qte(t),systemOptions:Gn(Gn({},qR),e),loggerOptions:m,storageInterface:r||new Rte(t.clientId,dg),networkInterface:o||Nte,cryptoInterface:s||dg,clientCredentials:a||jte,libraryInfo:Gn(Gn({},Bte),l),telemetry:Gn(Gn({},Vte),c),serverTelemetryManager:u||null,persistencePlugin:d||null,serializableCache:h||null}}(t),this.logger=new FR(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 Xte(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[$o.CONTENT_TYPE]=te.URL_FORM_CONTENT_TYPE,!this.config.systemOptions.preventCorsPreflight&&t)switch(t.type){case vr.HOME_ACCOUNT_ID:try{var i=eu(t.credential);e[$o.CCS_HEADER]="Oid:"+i.uid+"@"+i.utid}catch(r){this.logger.verbose("Could not parse home account ID for CCS Header: "+r)}break;case vr.UPN:e[$o.CCS_HEADER]="UPN: "+t.credential}return e},n.prototype.executePostToTokenEndpoint=function(t,e,i,r){return St(this,void 0,void 0,function(){var o;return At(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 it.createEndpointDiscoveryIncompleteError("Updated authority has not completed endpoint discovery.");this.authority=t},n}(),yl=function(){function n(){}return n.validateRedirectUri=function(t){if(Ke.isEmpty(t))throw xn.createRedirectUriEmptyError()},n.validatePrompt=function(t){var e=[];for(var i in Li)e.push(Li[i]);if(e.indexOf(t)<0)throw xn.createInvalidPromptError(t)},n.validateClaims=function(t){try{JSON.parse(t)}catch{throw xn.createInvalidClaimsRequestError()}},n.validateCodeChallengeParams=function(t,e){if(Ke.isEmpty(t)||Ke.isEmpty(e))throw xn.createInvalidCodeChallengeParamsError();this.validateCodeChallengeMethod(e)},n.validateCodeChallengeMethod=function(t){if([W1.PLAIN,W1.S256].indexOf(t)<0)throw xn.createInvalidCodeChallengeMethodError()},n.sanitizeEQParams=function(t,e){return t?(e.forEach(function(i,r){t[r]&&delete t[r]}),t):{}},n}(),nu=function(){function n(){this.parameters=new Map}return n.prototype.addResponseTypeCode=function(){this.parameters.set(Mt.RESPONSE_TYPE,encodeURIComponent(te.CODE_RESPONSE_TYPE))},n.prototype.addResponseTypeForTokenAndIdToken=function(){this.parameters.set(Mt.RESPONSE_TYPE,encodeURIComponent(te.TOKEN_RESPONSE_TYPE+" "+te.ID_TOKEN_RESPONSE_TYPE))},n.prototype.addResponseMode=function(t){this.parameters.set(Mt.RESPONSE_MODE,encodeURIComponent(t||Sd.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?jf(t||[],Ed):t||[],r=new _r(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){yl.validateRedirectUri(t),this.parameters.set(Mt.REDIRECT_URI,encodeURIComponent(t))},n.prototype.addPostLogoutRedirectUri=function(t){yl.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(kc.DOMAIN_HINT,encodeURIComponent(t))},n.prototype.addLoginHint=function(t){this.parameters.set(kc.LOGIN_HINT,encodeURIComponent(t))},n.prototype.addCcsUpn=function(t){this.parameters.set($o.CCS_HEADER,encodeURIComponent("UPN:"+t))},n.prototype.addCcsOid=function(t){this.parameters.set($o.CCS_HEADER,encodeURIComponent("Oid:"+t.uid+"@"+t.utid))},n.prototype.addSid=function(t){this.parameters.set(kc.SID,encodeURIComponent(t))},n.prototype.addClaims=function(t,e){var i=this.addClientCapabilitiesToClaims(t,e);yl.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){yl.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(yl.validateCodeChallengeParams(t,e),!t||!e)throw xn.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;yl.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 xn.createInvalidClaimsRequestError()}else i={};return e&&e.length>0&&(i.hasOwnProperty(il.ACCESS_TOKEN)||(i[il.ACCESS_TOKEN]={}),i[il.ACCESS_TOKEN][il.XMS_CC]={values:e}),JSON.stringify(i)},n.prototype.addUsername=function(t){this.parameters.set(Id.username,encodeURIComponent(t))},n.prototype.addPassword=function(t){this.parameters.set(Id.password,encodeURIComponent(t))},n.prototype.addPopToken=function(t){Ke.isEmpty(t)||(this.parameters.set(Mt.TOKEN_TYPE,mn.POP),this.parameters.set(Mt.REQ_CNF,encodeURIComponent(t)))},n.prototype.addSshJwk=function(t){Ke.isEmpty(t)||(this.parameters.set(Mt.TOKEN_TYPE,mn.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}(),Zte=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},mg=(()=>(function(n){n.SW="sw",n.UHW="uhw"}(mg||(mg={})),mg))(),iu=function(){function n(t){this.cryptoUtils=t}return n.prototype.generateCnf=function(t){return St(this,void 0,void 0,function(){var e,i,r;return At(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 St(this,void 0,void 0,function(){return At(this,function(i){switch(i.label){case 0:return[4,this.cryptoUtils.getPublicKeyThumbprint(t)];case 1:return[2,{kid:i.sent(),xms_ksl:mg.SW}]}})})},n.prototype.signPopToken=function(t,e,i){return St(this,void 0,void 0,function(){return At(this,function(r){return[2,this.signPayload(t,e,i)]})})},n.prototype.signPayload=function(t,e,i,r){return St(this,void 0,void 0,function(){var o,s,a,l,c,u;return At(this,function(d){switch(d.label){case 0:return o=i.resourceRequestMethod,a=i.shrClaims,l=i.shrNonce,c=(s=i.resourceRequestUri)?new rn(s):void 0,u=c?.getUrlComponents(),[4,this.cryptoUtils.signJwt(Gn({at:t,ts:ro.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}(),Jte=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}(),gg=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 it.createStateNotFoundError(t.state?"Cached State":"Server State");if(decodeURIComponent(t.state)!==decodeURIComponent(e))throw it.createStateMismatchError();if(t.error||t.error_description||t.suberror)throw xo.isInteractionRequiredError(t.error,t.error_description,t.suberror)?new xo(t.error||te.EMPTY_STRING,t.error_description,t.suberror):new vl(t.error||te.EMPTY_STRING,t.error_description,t.suberror);t.client_info&&hg(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 vl(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 St(this,void 0,void 0,function(){var c,u,d,h,m;return At(this,function(S){switch(S.label){case 0:if(t.id_token&&(c=new Da(t.id_token||te.EMPTY_STRING,this.cryptoObj),o&&!Ke.isEmpty(o.nonce)&&c.claims.nonce!==o.nonce))throw it.createNonceMismatchError();this.homeAccountIdentifier=Ni.generateHomeAccountId(t.client_info||te.EMPTY_STRING,e.authorityType,this.logger,this.cryptoObj,c),!!o&&!!o.state&&(u=Ws.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),S.label=1;case 1:return S.trys.push([1,,5,8]),this.persistencePlugin&&this.serializableCache?(this.logger.verbose("Persistence enabled, calling beforeCacheAccess"),h=new Jte(this.serializableCache,!0),[4,this.persistencePlugin.beforeCacheAccess(h)]):[3,3];case 2:S.sent(),S.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 S.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:S.sent(),S.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 it.createInvalidCacheEnvironmentError();!Ke.isEmpty(t.id_token)&&o&&(c=dh.createIdTokenEntity(this.homeAccountIdentifier,l,t.id_token||te.EMPTY_STRING,this.clientId,o.claims.tid||te.EMPTY_STRING),u=this.generateAccountEntity(t,o,e,a));var d=null;if(!Ke.isEmpty(t.access_token)){var h=t.scope?_r.fromString(t.scope):new _r(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,S=("string"==typeof t.refresh_in?parseInt(t.refresh_in,10):t.refresh_in)||void 0,U=i+m,ee=U+y,ve=S&&S>0?i+S:void 0;d=hh.createAccessTokenEntity(this.homeAccountIdentifier,l,t.access_token||te.EMPTY_STRING,this.clientId,o?o.claims.tid||te.EMPTY_STRING:e.tenant,h.printScopes(),U,ee,this.cryptoObj,ve,t.token_type,s,t.key_id,r.claims,r.requestedClaimsHash)}var ne=null;Ke.isEmpty(t.refresh_token)||(ne=bw.createRefreshTokenEntity(this.homeAccountIdentifier,l,t.refresh_token||te.EMPTY_STRING,this.clientId,t.foci,s));var Ie=null;return Ke.isEmpty(t.foci)||(Ie=Cw.createAppMetadataEntity(this.clientId,l,t.foci)),new Zte(u,c,d,ne,Ie)},n.prototype.generateAccountEntity=function(t,e,i,r){var s=r?r.cloud_graph_host_name:te.EMPTY_STRING,a=r?r.msgraph_host:te.EMPTY_STRING;if(i.authorityType===ns.Adfs)return this.logger.verbose("Authority type is ADFS, creating ADFS account"),Ni.createGenericAccount(this.homeAccountIdentifier,e,i,s,a);if(Ke.isEmpty(t.client_info)&&"AAD"===i.protocolMode)throw it.createClientInfoEmptyError();return t.client_info?Ni.createAccount(t.client_info,this.homeAccountIdentifier,e,i,s,a):Ni.createGenericAccount(this.homeAccountIdentifier,e,i,s,a)},n.generateAuthenticationResult=function(t,e,i,r,o,s,a,l){var c,u,d;return St(this,void 0,void 0,function(){var h,m,y,S,U,ee,ve,ne,Ie;return At(this,function(Gt){switch(Gt.label){case 0:if(h=te.EMPTY_STRING,m=[],y=null,U=te.EMPTY_STRING,!i.accessToken)return[3,4];if(i.accessToken.tokenType!==mn.POP)return[3,2];if(ee=new iu(t),ne=(ve=i.accessToken).secret,!(Ie=ve.keyId))throw it.createKeyIdMissingError();return[4,ee.signPopToken(ne,Ie,o)];case 1:return h=Gt.sent(),[3,3];case 2:h=i.accessToken.secret,Gt.label=3;case 3:m=_r.fromString(i.accessToken.target).asArray(),y=new Date(1e3*Number(i.accessToken.expiresOn)),S=new Date(1e3*Number(i.accessToken.extendedExpiresOn)),Gt.label=4;case 4:return i.appMetadata&&(U="1"===i.appMetadata.familyId?"1":te.EMPTY_STRING),[2,{authority:e.canonicalAuthority,uniqueId:s?.claims.oid||s?.claims.sub||te.EMPTY_STRING,tenantId:s?.claims.tid||te.EMPTY_STRING,scopes:m,account:i.account?i.account.getAccountInfo():null,idToken:s?s.rawToken:te.EMPTY_STRING,idTokenClaims:s?s.claims:{},accessToken:h,fromCache:r,expiresOn:y,correlationId:o.correlationId,extExpiresOn:S,familyId:U,tokenType:(null===(c=i.accessToken)||void 0===c?void 0:c.tokenType)||te.EMPTY_STRING,state:a?a.userRequestState:te.EMPTY_STRING,cloudGraphHostName:(null===(u=i.account)||void 0===u?void 0:u.cloudGraphHostName)||te.EMPTY_STRING,msGraphHost:(null===(d=i.account)||void 0===d?void 0:d.msGraphHost)||te.EMPTY_STRING,code:l,fromNativeBroker:!1}]}})})},n}(),zR=function(n){function t(e){var i=n.call(this,e)||this;return i.includeRedirectUri=!0,i}return pr(t,n),t.prototype.getAuthCodeUrl=function(e){return St(this,void 0,void 0,function(){var i;return At(this,function(r){switch(r.label){case 0:return[4,this.createAuthCodeUrlQueryString(e)];case 1:return i=r.sent(),[2,rn.appendQueryString(this.authority.authorizationEndpoint,i)]}})})},t.prototype.acquireToken=function(e,i){return St(this,void 0,void 0,function(){var r,o,s;return At(this,function(a){switch(a.label){case 0:if(this.logger.info("in acquireToken call"),!e||Ke.isEmpty(e.code))throw it.createTokenRequestCannotBeMadeError();return r=ro.nowSeconds(),[4,this.executeTokenRequest(this.authority,e)];case 1:return o=a.sent(),(s=new gg(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 gg(this.config.authOptions.clientId,this.cacheManager,this.cryptoUtils,this.logger,null,null),o=new rn(e),s=rn.getDeserializedHash(o.getHash());if(r.validateServerAuthorizationCodeResponse(s,i,this.cryptoUtils),!s.code)throw it.createNoAuthCodeInServerResponseError();return Gn(Gn({},s),{code:s.code})},t.prototype.getLogoutUri=function(e){if(!e)throw xn.createEmptyLogoutRequestError();var i=this.createLogoutUrlQueryString(e);return rn.appendQueryString(this.authority.endSessionEndpoint,i)},t.prototype.executeTokenRequest=function(e,i){return St(this,void 0,void 0,function(){var r,o,s,a,l,c,u;return At(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=hg(i.clientInfo,this.cryptoUtils),a={credential:""+l.uid+fr.CLIENT_INFO_SEPARATOR+l.utid,type:vr.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 nu;return e.tokenQueryParameters&&i.addExtraQueryParameters(e.tokenQueryParameters),i.createQueryString()},t.prototype.createTokenRequestBody=function(e){return St(this,void 0,void 0,function(){var i,r,s,a,l,c,u;return At(this,function(d){switch(d.label){case 0:return(i=new nu).addClientId(this.config.authOptions.clientId),this.includeRedirectUri?i.addRedirectUri(e.redirectUri):yl.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(Ad.AUTHORIZATION_CODE_GRANT),i.addClientInfo(),e.authenticationScheme!==mn.POP?[3,2]:[4,new iu(this.cryptoUtils).generateCnf(e)];case 1:return s=d.sent(),i.addPopToken(s.reqCnfString),[3,3];case 2:if(e.authenticationScheme===mn.SSH){if(!e.sshJwk)throw xn.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=hg(e.clientInfo,this.cryptoUtils),l={credential:""+c.uid+fr.CLIENT_INFO_SEPARATOR+c.utid,type:vr.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 vr.HOME_ACCOUNT_ID:try{c=eu(l.credential),i.addCcsOid(c)}catch(h){this.logger.verbose("Could not parse home account ID for CCS Header: "+h)}break;case vr.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 St(this,void 0,void 0,function(){var i,r,o,s,a,l,u;return At(this,function(d){switch(d.label){case 0:if((i=new nu).addClientId(this.config.authOptions.clientId),r=jf(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=eu(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=eu(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=eu(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!==mn.POP?[3,2]:[4,new iu(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 nu;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}(Aw);function ene(n){return n.hasOwnProperty("authorization_endpoint")&&n.hasOwnProperty("token_endpoint")&&n.hasOwnProperty("issuer")&&n.hasOwnProperty("jwks_uri")}var WR={"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"}},$R={"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"]}]}},nne=function(){function n(t){this.networkInterface=t}return n.prototype.detectRegion=function(t,e,i){return St(this,void 0,void 0,function(){var r,o,s,a,l;return At(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(te.IMDS_VERSION,o)];case 2:return(s=c.sent()).status===rl.httpSuccess&&(r=s.body,e.region_source=Os.IMDS),s.status!==rl.httpBadRequest?[3,5]:[4,this.getCurrentVersion(o)];case 3:return(a=c.sent())?[4,this.getRegionFromIMDS(a,o)]:(e.region_source=Os.FAILED_AUTO_DETECTION,[2,null]);case 4:(l=c.sent()).status===rl.httpSuccess&&(r=l.body,e.region_source=Os.IMDS),c.label=5;case 5:return[3,7];case 6:return c.sent(),e.region_source=Os.FAILED_AUTO_DETECTION,[2,null];case 7:return[3,9];case 8:e.region_source=Os.ENVIRONMENT_VARIABLE,c.label=9;case 9:return r||(e.region_source=Os.FAILED_AUTO_DETECTION),[2,r||null]}})})},n.prototype.getRegionFromIMDS=function(t,e){return St(this,void 0,void 0,function(){return At(this,function(i){return[2,this.networkInterface.sendGetRequestAsync(te.IMDS_ENDPOINT+"?api-version="+t+"&format=text",e,te.IMDS_TIMEOUT)]})})},n.prototype.getCurrentVersion=function(t){return St(this,void 0,void 0,function(){var e;return At(this,function(i){switch(i.label){case 0:return i.trys.push([0,2,,3]),[4,this.networkInterface.sendGetRequestAsync(te.IMDS_ENDPOINT+"?format=json",t)];case 1:return(e=i.sent()).status===rl.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}(),_g=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 nne(e),this.regionDiscoveryMetadata={region_used:void 0,region_source:void 0,region_outcome:void 0},this.proxyUrl=o||te.EMPTY_STRING}return Object.defineProperty(n.prototype,"authorityType",{get:function(){var t=this.canonicalAuthorityUrlComponents.PathSegments;return t.length&&t[0].toLowerCase()===te.ADFS?ns.Adfs:ns.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 rn(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 it.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 it.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 it.createEndpointDiscoveryIncompleteError("Discovery incomplete.")},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"endSessionEndpoint",{get:function(){if(this.discoveryComplete()){if(!this.metadata.end_session_endpoint)throw it.createLogoutNotSupportedError();var t=this.replacePath(this.metadata.end_session_endpoint);return this.replaceTenant(t)}throw it.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 it.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 it.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 rn(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===ns.Adfs||this.protocolMode===ph.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 St(this,void 0,void 0,function(){var t,e,i,r;return At(this,function(o){switch(o.label){case 0:return(t=this.cacheManager.getAuthorityMetadataByAlias(this.hostnameAndPort))||(t=new ww).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!==kr.CACHE&&i!==kr.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 St(this,void 0,void 0,function(){var r,o;return At(this,function(s){switch(s.label){case 0:return(r=this.getEndpointMetadataFromConfig())?(t.updateEndpointMetadata(r,!1),[2,kr.CONFIG]):this.isAuthoritySameType(t)&&t.endpointsFromNetwork&&!t.isExpired()?[2,kr.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,kr.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,kr.HARDCODED_VALUES];case 7:throw it.createUnableToGetOpenidConfigError(this.defaultOpenIdConfigurationEndpoint)}})})},n.prototype.isAuthoritySameType=function(t){return new rn(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 xn.createInvalidAuthorityMetadataError()}return null},n.prototype.getEndpointMetadataFromNetwork=function(){return St(this,void 0,void 0,function(){var t,e;return At(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,ene((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 WR?WR[this.canonicalAuthority]:null},n.prototype.updateMetadataWithRegionalInformation=function(t){var e,i,r,o,s;return St(this,void 0,void 0,function(){var a,l;return At(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)===te.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)===te.AZURE_REGION_AUTO_DISCOVER_FLAG?a?ma.AUTO_DETECTION_REQUESTED_SUCCESSFUL:ma.AUTO_DETECTION_REQUESTED_FAILED:a?(null===(s=this.authorityOptions.azureRegionConfiguration)||void 0===s?void 0:s.azureRegion)===a?ma.CONFIGURED_MATCHES_DETECTED:ma.CONFIGURED_NOT_DETECTED:ma.CONFIGURED_NO_AUTO_DETECTION,l?(this.regionDiscoveryMetadata.region_used=l,[2,n.replaceWithRegionalInformation(t,l)]):[2,t]}})})},n.prototype.updateCloudDiscoveryMetadata=function(t){return St(this,void 0,void 0,function(){var e,i;return At(this,function(r){switch(r.label){case 0:return(e=this.getCloudDiscoveryMetadataFromConfig())?(t.updateCloudDiscoveryMetadata(e,!1),[2,kr.CONFIG]):this.isAuthoritySameType(t)&&t.aliasesFromNetwork&&!t.isExpired()?[2,kr.CACHE]:(i=this.getCloudDiscoveryMetadataFromHarcodedValues(),[4,this.getCloudDiscoveryMetadataFromNetwork()]);case 1:if(e=r.sent())return t.updateCloudDiscoveryMetadata(e,!0),[2,kr.NETWORK];if(i&&!this.options.skipAuthorityMetadataCache)return t.updateCloudDiscoveryMetadata(i,!1),[2,kr.HARDCODED_VALUES];throw xn.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 xn.createInvalidCloudDiscoveryMetadataError()}return this.isInKnownAuthorities()?n.createCloudDiscoveryMetadataFromHost(this.hostnameAndPort):null},n.prototype.getCloudDiscoveryMetadataFromNetwork=function(){return St(this,void 0,void 0,function(){var t,e,i,r,o;return At(this,function(s){switch(s.label){case 0:t=""+te.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 tne(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 $R?$R[this.canonicalAuthority]:null},n.prototype.isInKnownAuthorities=function(){var t=this;return this.authorityOptions.knownAuthorities.filter(function(i){return rn.getDomainFromUrl(i).toLowerCase()===t.hostnameAndPort}).length>0},n.generateAuthority=function(t,e){var i;return e&&e.azureCloudInstance!==tu.None&&(i=e.azureCloudInstance+"/"+(e.tenant?e.tenant:te.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 it.createEndpointDiscoveryIncompleteError("Discovery incomplete.")},n.prototype.isAlias=function(t){return this.metadata.aliases.indexOf(t)>-1},n.isPublicCloudAuthority=function(t){return te.KNOWN_PUBLIC_CLOUDS.indexOf(t)>=0},n.buildRegionalAuthorityString=function(t,e,i){var r=new rn(t);r.validateAsUri();var o=r.getUrlComponents(),s=e+"."+o.HostNameAndPort;this.isPublicCloudAuthority(o.HostNameAndPort)&&(s=e+"."+te.REGIONAL_AUTH_PUBLIC_CLOUD_SUFFIX);var a=rn.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}(),vg=function(){function n(){}return n.createDiscoveredInstance=function(t,e,i,r,o){return St(this,void 0,void 0,function(){var s,a;return At(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(),it.createEndpointDiscoveryIncompleteError(a);case 4:return[2]}})})},n.createInstance=function(t,e,i,r,o){if(Ke.isEmpty(t))throw xn.createUrlEmptyError();return new _g(t,e,i,r,o)},n}(),ine=function(){function n(t,e){this.cacheOutcome=ga.NO_CACHE_HIT,this.cacheManager=e,this.apiId=t.apiId,this.correlationId=t.correlationId,this.wrapperSKU=t.wrapperSKU||te.EMPTY_STRING,this.wrapperVer=t.wrapperVer||te.EMPTY_STRING,this.telemetryCacheKey=Si.CACHE_KEY+fr.CACHE_KEY_SEPARATOR+t.clientId}return n.prototype.generateCurrentRequestHeaderValue=function(){var t=""+this.apiId+Si.VALUE_SEPARATOR+this.cacheOutcome,e=[this.wrapperSKU,this.wrapperVer].join(Si.VALUE_SEPARATOR),r=[t,this.getRegionDiscoveryFields()].join(Si.VALUE_SEPARATOR);return[Si.SCHEMA_VERSION,r,e].join(Si.CATEGORY_SEPARATOR)},n.prototype.generateLastRequestHeaderValue=function(){var t=this.getLastRequests(),e=n.maxErrorsToSend(t),i=t.failedRequests.slice(0,2*e).join(Si.VALUE_SEPARATOR),r=t.errors.slice(0,e).join(Si.VALUE_SEPARATOR),o=t.errors.length,a=[o,e=Si.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(Si.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 pg;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 pg;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"}($s||($s={})),$s))(),mh_extensionError_code="ContentError",mh_userSwitch_code="user_switch",mh_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.",mh_tokensNotFoundInCache_code="tokens_not_found_in_internal_memory_cache",mh_tokensNotFoundInCache_desc="Tokens not cached in MSAL JS internal memory, please make the WAM request",is=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 Ti(t,n),t.prototype.isFatal=function(){return!(!this.ext||!this.ext.status||this.ext.status!==$s.PERSISTENT_ERROR&&this.ext.status!==$s.DISABLED)||this.errorCode===mh_extensionError_code},t.createError=function(e,i,r){if(r&&r.status)switch(r.status){case $s.ACCOUNT_UNAVAILABLE:return xo.createNativeAccountUnavailableError();case $s.USER_INTERACTION_REQUIRED:return new xo(e,i);case $s.USER_CANCEL:return ze.createUserCancelledError();case $s.NO_NETWORK:return ze.createNoNetworkConnectivityError()}return new t(e,i,r)},t.createUserSwitchError=function(){return new t(mh_userSwitch_code,mh_userSwitch_desc)},t.createTokensNotFoundInCacheError=function(){return new t(mh_tokensNotFoundInCache_code,mh_tokensNotFoundInCache_desc)},t}(ut),YR=function(n){function t(e,i){return n.call(this,e,i)||this}return pr(t,n),t.prototype.acquireToken=function(e){return St(this,void 0,void 0,function(){var i,r,o;return At(this,function(s){switch(s.label){case 0:return i=ro.nowSeconds(),[4,this.executeTokenRequest(e,this.authority)];case 1:return r=s.sent(),(o=new gg(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 St(this,void 0,void 0,function(){var o;return At(this,function(s){if(!e)throw xn.createEmptyTokenRequestError();if(!e.account)throw it.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 vl&&"invalid_grant"===a.errorCode&&"client_mismatch"===a.subError,a instanceof xo&&a.errorCode===ch_noTokensFoundError_code||o)return[2,this.acquireTokenWithCachedRefreshToken(e,!1)];throw a}return[2,this.acquireTokenWithCachedRefreshToken(e,!1)]})})},t.prototype.acquireTokenWithCachedRefreshToken=function(e,i){return St(this,void 0,void 0,function(){var r,o;return At(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||mn.BEARER,ccsCredential:{credential:e.account.homeAccountId,type:vr.HOME_ACCOUNT_ID}}),[2,this.acquireToken(o)]})})},t.prototype.executeTokenRequest=function(e,i){var r;return St(this,void 0,void 0,function(){var o,s,a,l,c,u;return At(this,function(d){switch(d.label){case 0:return o=null===(r=this.performanceClient)||void 0===r?void 0:r.startMeasurement(di.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=rn.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 nu;return e.tokenQueryParameters&&i.addExtraQueryParameters(e.tokenQueryParameters),i.createQueryString()},t.prototype.createTokenRequestBody=function(e){var i;return St(this,void 0,void 0,function(){var r,o,s,a,c,u;return At(this,function(d){switch(d.label){case 0:return r=e.correlationId,o=null===(i=this.performanceClient)||void 0===i?void 0:i.startMeasurement(di.BaseClientCreateTokenRequestHeaders,r),(s=new nu).addClientId(this.config.authOptions.clientId),s.addScopes(e.scopes),s.addGrantType(Ad.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!==mn.POP?[3,2]:[4,new iu(this.cryptoUtils).generateCnf(e)];case 1:return c=d.sent(),s.addPopToken(c.reqCnfString),[3,3];case 2:if(e.authenticationScheme===mn.SSH){if(!e.sshJwk)throw o?.endMeasurement({success:!1}),xn.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 vr.HOME_ACCOUNT_ID:try{u=eu(e.ccsCredential.credential),s.addCcsOid(u)}catch(h){this.logger.verbose("Could not parse home account ID for CCS Header: "+h)}break;case vr.UPN:s.addCcsUpn(e.ccsCredential.credential)}return o?.endMeasurement({success:!0}),[2,s.createQueryString()]}})})},t}(Aw),rne=function(n){function t(e,i){return n.call(this,e,i)||this}return pr(t,n),t.prototype.acquireToken=function(e){return St(this,void 0,void 0,function(){var i;return At(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 it&&i.errorCode===Ne_tokenRefreshRequired_code)return[2,new YR(this.config,this.performanceClient).acquireTokenByRefreshToken(e)];throw i;case 3:return[2]}})})},t.prototype.acquireCachedToken=function(e){var i,r,o,s;return St(this,void 0,void 0,function(){var a,l;return At(this,function(c){switch(c.label){case 0:if(!e)throw xn.createEmptyTokenRequestError();if(e.forceRefresh)throw null===(i=this.serverTelemetryManager)||void 0===i||i.setCacheOutcome(ga.FORCE_REFRESH),this.logger.info("SilentFlowClient:acquireCachedToken - Skipping cache because forceRefresh is true."),it.createRefreshRequiredError();if(!e.account)throw it.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(ga.NO_CACHED_ACCESS_TOKEN),this.logger.info("SilentFlowClient:acquireCachedToken - No access token found in cache for the given properties."),it.createRefreshRequiredError();if(ro.wasClockTurnedBack(l.accessToken.cachedAt)||ro.isTokenExpired(l.accessToken.expiresOn,this.config.systemOptions.tokenRenewalOffsetSeconds))throw null===(o=this.serverTelemetryManager)||void 0===o||o.setCacheOutcome(ga.CACHED_ACCESS_TOKEN_EXPIRED),this.logger.info("SilentFlowClient:acquireCachedToken - Cached access token is expired or will expire within "+this.config.systemOptions.tokenRenewalOffsetSeconds+" seconds."),it.createRefreshRequiredError();if(l.accessToken.refreshOn&&ro.isTokenExpired(l.accessToken.refreshOn,0))throw null===(s=this.serverTelemetryManager)||void 0===s||s.setCacheOutcome(ga.REFRESH_CACHED_ACCESS_TOKEN),this.logger.info("SilentFlowClient:acquireCachedToken - Cached access token's refreshOn property has been exceeded'."),it.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 St(this,void 0,void 0,function(){var r;return At(this,function(o){switch(o.label){case 0:return e.idToken&&(r=new Da(e.idToken.secret,this.config.cryptoInterface)),[4,gg.generateAuthenticationResult(this.cryptoUtils,this.authority,e,!0,i,r)];case 1:return[2,o.sent()]}})})},t}(Aw),QR=function(n){function t(){return null!==n&&n.apply(this,arguments)||this}return Ti(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(di.SilentCacheClientAcquireToken,e.correlationId),r=this.initializeServerTelemetryManager(Cn.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 rne(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=[lt({},e)],[4,this.initializeBaseRequest(e)];case 1:return[2,lt.apply(void 0,[lt.apply(void 0,r.concat([o.sent()])),{account:i,forceRefresh:e.forceRefresh||!1}])]}})})},t}(ru),ou=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 QR(e,y.nativeStorageManager,r,o,s,a,c,u,m),y}return Ti(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(di.NativeInteractionClientAcquireToken,e.correlationId),r=ro.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:Qo.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:_r.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 it.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:Qo.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 is&&s.isFatal())throw s;return[3,5];case 5:return this.browserStorage.setTemporaryCache(ln.NATIVE_REQUEST,JSON.stringify(i),!0),a={apiId:Cn.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(ln.NATIVE_REQUEST)),i={method:Qo.GetToken,request:e},r=ro.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,S,ee,ve,ne,Ie,tt,_t,Gt,pn,Wn=this;return Pe(this,function(bi){switch(bi.label){case 0:if(this.logger.trace("NativeInteractionClient - handleNativeResponse called."),e.account.id!==i.accountId)throw is.createUserSwitchError();return o=new Da(e.id_token||te.EMPTY_STRING,this.browserCrypto),[4,this.getDiscoveredAuthority(i.authority)];case 1:return s=bi.sent(),a=s.getPreferredCache(),l=Ni.generateHomeAccountId(e.client_info||te.EMPTY_STRING,ns.Default,this.logger,this.browserCrypto,o),c=Ni.createAccount(e.client_info,l,o,void 0,void 0,void 0,a,e.account.id),this.browserStorage.setAccount(c),u=_r.fromString(e.scope?e.scope:i.scope),h=(d=e.account.properties||{}).UID||o.claims.oid||o.claims.sub||te.EMPTY_STRING,m=d.TenantId||o.claims.tid||te.EMPTY_STRING,S=mn.BEARER,i.tokenType===mn.POP?[3,2]:[3,4];case 2:if(S=mn.POP,e.shr)return this.logger.trace("handleNativeServerResponse: SHR is enabled in native layer"),y=e.shr,[3,5];if(ee=new iu(this.browserCrypto),ve={resourceRequestMethod:i.resourceRequestMethod,resourceRequestUri:i.resourceRequestUri,shrClaims:i.shrClaims,shrNonce:i.shrNonce},!i.keyId)throw it.createKeyIdMissingError();return[4,ee.signPopToken(e.access_token,i.keyId,ve)];case 3:return y=bi.sent(),[3,5];case 4:y=e.access_token,bi.label=5;case 5:return ne=this.getMATSFromResponse(e),Ie={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:S,correlationId:this.correlationId,state:e.state,fromNativeBroker:!0},tt=dh.createIdTokenEntity(l,i.authority,e.id_token||te.EMPTY_STRING,i.clientId,o.claims.tid||te.EMPTY_STRING),this.nativeStorageManager.setIdTokenCredential(tt),_t=S===mn.POP?te.SHR_NONCE_VALIDITY:("string"==typeof e.expires_in?parseInt(e.expires_in,10):e.expires_in)||0,Gt=r+_t,pn=hh.createAccessTokenEntity(l,i.authority,y,i.clientId,m,u.printScopes(),Gt,0,this.browserCrypto),this.nativeStorageManager.setAccessTokenCredential(pn),this.browserStorage.removeAccountContext(c).catch(function(Sa){Wn.logger.error("Error occurred while removing account context from browser storage. "+Sa)}),[2,Ie]}})})},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 is.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 rn(e.authority||this.config.auth.authority)).validateAsUri(),o=e.scopes,s=function e9(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=te.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,S=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),(!S||S<0||S>h)&&(this.logger.verbose("Default popup window top position used. Window top not configured or invalid."),S=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="+S+", 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}(ru),XR=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 Ti(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(ln.ORIGIN_URI,i.redirectStartPage,!0)),this.browserStorage.setTemporaryCache(ln.CORRELATION_ID,this.authCodeRequest.correlationId,!0),this.browserStorage.cacheCodeRequest(this.authCodeRequest,this.browserCrypto),this.logger.infoPii("RedirectHandler.initiateAuthRequest: Navigate to: "+e),r={apiId:Cn.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 it.createStateNotFoundError("Cached State");try{l=this.authModule.handleFragmentResponse(e,a)}catch(y){throw y instanceof vl&&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}(Tw),sne=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 Ti(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||te.EMPTY_STRING,i.account||null),r=this.initializeServerTelemetryManager(Cn.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 XR(a,this.browserStorage,s,this.logger,this.browserCrypto),[4,a.getAuthCodeUrl(lt(lt({},i),{nativeBroker:bl.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(S){switch(S.label){case 0:i=this.initializeServerTelemetryManager(Cn.handleRedirectPromise),S.label=1;case 1:if(S.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=rn.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(ln.ORIGIN_URI,!0)||te.EMPTY_STRING,l=rn.removeHashFromUrl(a),c=rn.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=S.sent(),a.indexOf("#")>-1&&Nn.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!Nn.isInIframe()||this.config.system.allowRedirectInIframe?(this.browserStorage.setTemporaryCache(ln.URL_HASH,r,!0),d={apiId:Cn.handleRedirectPromise,timeout:this.config.system.redirectNavigationTimeout,noHistory:!0},h=!0,a&&"null"!==a?[3,6]:(m=Nn.getHomepage(),this.browserStorage.setTemporaryCache(ln.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=S.sent(),[3,8];case 6:return this.logger.verbose("Navigating to loginRequestUrl: "+a),[4,this.navigationClient.navigateInternal(a,d)];case 7:h=S.sent(),S.label=8;case 8:if(!h)return[2,this.handleHash(r,o,i)];S.label=9;case 9:return[2,null];case 10:throw(y=S.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"),rn.hashContainsKnownProperties(e))return Nn.clearHash(window),this.logger.verbose("Hash contains known properties, returning response hash"),e;var r=this.browserStorage.getTemporaryCache(ln.URL_HASH,!0);return this.browserStorage.removeItem(this.browserStorage.generateCacheKey(ln.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=rn.getDeserializedHash(e)).accountId){if(this.logger.verbose("Account id found in hash, calling WAM for token"),!this.nativeMessageHandler)throw ze.createNativeConnectionNotEstablishedError();return a=new ou(this.config,this.browserStorage,this.browserCrypto,this.logger,this.eventHandler,this.navigationClient,Cn.acquireTokenPopup,this.performanceClient,this.nativeMessageHandler,s.accountId,this.browserStorage,o.correlationId),l=Ws.parseRequestState(this.browserCrypto,i).userRequestState,[2,a.acquireToken(lt(lt({},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"),fg.removeThrottle(this.browserStorage,this.config.auth.clientId,o),[4,new XR(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(Cn.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:Cn.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 rn.getAbsoluteUrl(i,Nn.getCurrentUri())},t}(ru),ZR=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 Ti(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=te.EMPTY_STRING,d=e.contentWindow;try{u=d?d.location.href:te.EMPTY_STRING}catch{}if(!Ke.isEmpty(u)){var h=d?d.location.hash:te.EMPTY_STRING;if(rn.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}(Tw),ane=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 Ti(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(di.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(lt(lt({},e),{prompt:Li.NONE}),$e.Silent)];case 1:r=l.sent(),this.browserStorage.updateCacheEntries(r.state,r.nonce,r.authority,r.loginHint||te.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(lt(lt({},i),{nativeBroker:bl.isNativeAvailable(this.config,this.logger,this.nativeMessageHandler,i.authenticationScheme)}))];case 2:return o=y.sent(),[4,(s=new ZR(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=rn.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 ou(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=Ws.parseRequestState(this.browserCrypto,u).userRequestState,[2,d.acquireToken(lt(lt({},i),{state:h,prompt:Li.NONE})).finally(function(){m.browserStorage.cleanRequestByState(u)})]}return[2,s.handleCodeResponseFromHash(l,u,e.authority,this.networkClient)]}})})},t}(ru),lne=function(n){function t(){return null!==n&&n.apply(this,arguments)||this}return Ti(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=[lt({},e)],[4,this.initializeBaseRequest(e)];case 1:return i=lt.apply(void 0,r.concat([c.sent()])),o=this.performanceClient.startMeasurement(di.SilentRefreshClientAcquireToken,i.correlationId),s=this.initializeServerTelemetryManager(Cn.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 YR(o,this.performanceClient)]}})})},t}(ru),cne=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=_g.generateAuthority(t.authority,t.azureCloudOptions),s=new _g(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=dh.createIdTokenEntity(e,i,t,this.config.auth.clientId,r),a=new Da(t,this.cryptoObj),l=o.clientInfo?Ni.createAccount(o.clientInfo,e,a,void 0,void 0,void 0,i):Ni.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 _r(t.scopes).printScopes(),l=s.expiresOn||e.expires_in+(new Date).getTime()/1e3,u=hh.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}(),une=function(n){function t(e){var i=n.call(this,e)||this;return i.includeRedirectUri=!1,i}return Ti(t,n),t}(zR),dne=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 Ti(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||te.EMPTY_STRING,i.account||null),r=this.initializeServerTelemetryManager(this.apiId),u.label=2;case 2:return u.trys.push([2,4,,5]),o=lt(lt({},i),{code:e.code}),[4,this.getClientConfiguration(r,i.authority)];case 3:return s=u.sent(),a=new une(s),this.logger.verbose("Auth code client created"),[2,new ZR(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}(ru),hne=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}(),pne=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 ug(l.logger),l.guidGenerator=new OR(l.browserCrypto),l}return Ti(t,n),t.prototype.startPerformanceMeasuremeant=function(e,i){return new hne(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 lt(lt({},s),{endMeasurement:function(a){return s.endMeasurement(lt({startPageVisibility:o,endPageVisibility:r.getPageVisibility()},a))}})},t}(NR),fne=function(){function n(t){this.isBrowserEnvironment=typeof window<"u",this.config=function Yte(n,t){var e=n.auth,i=n.cache,r=n.system,o=n.telemetry,s={clientId:te.EMPTY_STRING,authority:""+te.DEFAULT_AUTHORITY,knownAuthorities:[],cloudDiscoveryMetadata:te.EMPTY_STRING,authorityMetadata:te.EMPTY_STRING,redirectUri:te.EMPTY_STRING,postLogoutRedirectUri:te.EMPTY_STRING,navigateToLoginRequestUrl:!0,clientCapabilities:[],protocolMode:ph.AAD,azureCloudOptions:{azureCloudInstance:tu.None,tenant:te.EMPTY_STRING},skipAuthorityMetadataCache:!1},a={cacheLocation:Ai.SessionStorage,storeAuthStateInCookie:!1,secureCookies:!1},l={loggerCallback:function(){},logLevel:yi.Info,piiLoggingEnabled:!1},c=lt(lt({},qR),{loggerOptions:l,networkClient:t?Nn.getBrowserNetworkClient():zte,navigationClient:new Gte,loadFrameTimeout:0,windowHashTimeout:r?.loadFrameTimeout||6e4,iframeHashTimeout:r?.loadFrameTimeout||6e3,navigateFrameWait:t&&Nn.detectIEOrEdge()?500:0,redirectNavigationTimeout:3e4,asyncPopups:!1,allowRedirectInIframe:!1,allowNativeBroker:!1,nativeBrokerHandshakeTimeout:r?.nativeBrokerHandshakeTimeout||2e3}),u={application:{appName:te.EMPTY_STRING,appVersion:te.EMPTY_STRING}};return{auth:lt(lt({},s),e),cache:lt(lt({},a),i),system:lt(lt({},c),r),telemetry:lt(lt({},u),o)}}(t,this.isBrowserEnvironment),this.initialized=!1,this.logger=new FR(this.config.system.loggerOptions,Sw,fh),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 pne(this.config.auth.clientId,this.config.auth.authority,this.logger,Sw,fh,this.config.telemetry.application):new Mte(this.config.auth.clientId,this.config.auth.authority,this.logger,Sw,fh,this.config.telemetry.application),this.browserCrypto=this.isBrowserEnvironment?new xte(this.logger,this.performanceClient):dg,this.eventHandler=new Qte(this.logger,this.browserCrypto),this.browserStorage=this.isBrowserEnvironment?new Ew(this.config.auth.clientId,this.config.cache,this.browserCrypto,this.logger):function(n,t){return new Ew(n,{cacheLocation:Ai.MemoryStorage,storeAuthStateInCookie:!1,secureCookies:!1},dg,t)}(this.config.auth.clientId,this.logger),this.nativeInternalStorage=new Ew(this.config.auth.clientId,{cacheLocation:Ai.MemoryStorage,storeAuthStateInCookie:!1,secureCookies:!1},this.browserCrypto,this.logger),this.tokenCache=new cne(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,bl.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"),Nn.blockNativeBrokerCalledBeforeInitialized(this.config.system.allowNativeBroker,this.initialized),e=this.getAllAccounts(),this.isBrowserEnvironment?(typeof(r=this.redirectResponse.get(i=t||te.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&&bl.isNativeAvailable(this.config,this.logger,this.nativeExtensionProvider)&&this.nativeExtensionProvider&&!t?(this.logger.trace("handleRedirectPromise - acquiring token from native platform"),a=new ou(this.config,this.browserStorage,this.browserCrypto,this.logger,this.eventHandler,this.navigationClient,Cn.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(ln.CORRELATION_ID,!0)||te.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 ou(this.config,this.browserStorage,this.browserCrypto,this.logger,this.eventHandler,this.navigationClient,Cn.acquireTokenRedirect,this.performanceClient,this.nativeExtensionProvider,this.getNativeAccountId(t),this.nativeInternalStorage,t.correlationId),r=o.acquireTokenRedirect(t).catch(function(c){if(c instanceof is&&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(di.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,Cn.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 is&&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=lt(lt({},t),{prompt:Li.NONE,correlationId:e}),this.preflightBrowserEnvironmentCheck($e.Silent),r=this.performanceClient.startMeasurement(di.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,Cn.ssoSilent).catch(function(c){if(c instanceof is&&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(di.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(lt(lt({},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,Cn.acquireTokenByCode,t.nativeAccountId).catch(function(l){throw l instanceof is&&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 Nn.blockReloadInHiddenIframes(),e=this.performanceClient.startMeasurement(di.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 vl&&"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(lt({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"),Nn.blockNonBrowserEnvironment(this.isBrowserEnvironment),Nn.blockRedirectInIframe(t,this.config.system.allowRedirectInIframe),Nn.blockReloadInHiddenIframes(),Nn.blockAcquireTokenInPopups(),Nn.blockNativeBrokerCalledBeforeInitialized(this.config.system.allowNativeBroker,this.initialized),t===$e.Redirect&&this.config.cache.cacheLocation===Ai.MemoryStorage&&!this.config.cache.storeAuthStateInCookie)throw Wf.createInMemoryRedirectUnavailableError();(t===$e.Redirect||t===$e.Popup)&&this.preflightInteractiveRequest(e)},n.prototype.preflightInteractiveRequest=function(t){this.logger.verbose("preflightInteractiveRequest called, validating app environment"),Nn.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 ou(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"),!bl.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 one(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 sne(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 ane(this.config,this.browserStorage,this.browserCrypto,this.logger,this.eventHandler,this.navigationClient,Cn.ssoSilent,this.performanceClient,this.nativeInternalStorage,this.nativeExtensionProvider,t)},n.prototype.createSilentCacheClient=function(t){return new QR(this.config,this.browserStorage,this.browserCrypto,this.logger,this.eventHandler,this.navigationClient,this.performanceClient,this.nativeExtensionProvider,t)},n.prototype.createSilentRefreshClient=function(t){return new lne(this.config,this.browserStorage,this.browserCrypto,this.logger,this.eventHandler,this.navigationClient,this.performanceClient,this.nativeExtensionProvider,t)},n.prototype.createSilentAuthCodeClient=function(t){return new dne(this.config,this.browserStorage,this.browserCrypto,this.logger,this.eventHandler,this.navigationClient,Cn.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():te.EMPTY_STRING},n}(),mne=function(n){function t(e){var i=n.call(this,e)||this;return i.activeSilentTokenRequests=new Map,i}return Ti(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(lt({correlationId:i},e||K1))]})})},t.prototype.loginPopup=function(e){var i=this.getRequestCorrelationId(e);return this.logger.verbose("loginPopup called",i),this.acquireTokenPopup(lt({correlationId:i},e||K1))},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(di.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||te.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(lt(lt({},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(di.AcquireTokenSilentAsync,e.correlationId),bl.isNativeAvailable(this.config,this.logger,this.nativeExtensionProvider,e.authenticationScheme)&&i.nativeAccountId?(this.logger.verbose("acquireTokenSilent - attempting to acquire token from native platform"),s=lt(lt({},e),{account:i}),o=this.acquireTokenNative(s,Cn.acquireTokenSilent_silentFlow).catch(function(d){return Oe(c,void 0,void 0,function(){return Pe(this,function(m){if(d instanceof is&&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}(fne);let gne=(()=>{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($a),p(It))},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 xw=["name","companyName","birthdate","-BLANK-","phone","cellphone","homephone","-BLANK-","homepage","skype","pointer","companyPointer","isCompany","additional"];function JR(n,t){const e=xw.indexOf(n.key),i=xw.indexOf(t.key);return-1===e&&-1===i?0:-1===e?1:-1===i||ei?1:0}(n=>{const t=[];xw.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()}showInfoToast(){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)(T(er),T(en),T(ht))},n.\u0275prov=me({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const _ne=["searchExpansionPanel"],vne=["searchTextInput"];function yne(n,t){if(1&n){const e=ke();g(0,"span",17),$("click",function(r){return X(e),Z(w(2).clearTextClicked(r))}),j(1,"cancel"),_()}}function bne(n,t){1&n&&(g(0,"span",18),j(1,"expand_less"),_())}function Cne(n,t){1&n&&(g(0,"span",18),j(1,"search"),_())}function wne(n,t){if(1&n&&(g(0,"mat-option",22),j(1),_()),2&n){const e=t.$implicit;v("value",e.value),f(1),we(e.viewValue)}}function Ene(n,t){if(1&n){const e=ke();g(0,"mat-form-field",19)(1,"mat-label"),j(2),_(),g(3,"mat-select",20),$("valueChange",function(r){return X(e),Z(w(2).selectedDB=r)})("selectionChange",function(){return X(e),Z(w(2).selectedDBChanged())}),H(4,wne,2,2,"mat-option",21),_()()}if(2&n){const e=w(2);f(2),we(e.globals.languageConfLocal.addressDatabase),f(1),v("value",e.selectedDB),f(1),v("ngForOf",e.databases)}}function Dne(n,t){if(1&n&&(g(0,"div",23),j(1),_()),2&n){const e=w(2);f(1),qe(" ",e.globals.languageConfLocal.recentlyUsed," ")}}function Sne(n,t){1&n&&Ae(0,"img",29),2&n&&v("src",w().$implicit.imageBase64,Rn)}function Ane(n,t){if(1&n&&Ae(0,"img",29),2&n){const e=w().$implicit;v("src",w(2).datasource.getImageSrc(e.image),Rn)}}function Tne(n,t){if(1&n){const e=ke();g(0,"div",24),$("click",function(r){return X(e),Z(w(2).clickedElement(r))})("dblclick",function(r){return X(e),Z(w(2).dblClickedElement(r))}),H(1,Sne,1,1,"img",25),H(2,Ane,1,1,"img",25),g(3,"div",26)(4,"span",27),j(5),_(),Ae(6,"br"),g(7,"span",28),j(8),_(),Ae(9,"br"),g(10,"span",28),j(11),_(),Ae(12,"br"),_()()}if(2&n){const e=t.$implicit,i=t.index,r=w(2);Dt("title",r.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),Dt("title",r.parseHtmlEntities(e.lineOne+" <"+e.email+">")),f(1),qe(" ",r.parseHtmlEntities(e.lineOne+" <"+e.email+">")," "),f(2),Dt("title",r.parseHtmlEntities(e.lineTwo)),f(1),we(r.parseHtmlEntities(e.lineTwo)),f(2),Dt("title",r.parseHtmlEntities(e.lineThree)),f(1),we(r.parseHtmlEntities(e.lineThree))}}function xne(n,t){if(1&n){const e=ke();g(0,"div",30)(1,"button",31),$("click",function(){return X(e),Z(w(2).addSelectedTo("requiredAttendees"))}),j(2),_(),g(3,"button",31),$("click",function(){return X(e),Z(w(2).addSelectedTo("optionalAttendees"))}),j(4),_()()}if(2&n){const e=w(2);f(2),we(e.globals.languageConfLocal.requiredAttendee),f(2),we(e.globals.languageConfLocal.optionalAttendee)}}function Ine(n,t){if(1&n){const e=ke();g(0,"div",30)(1,"button",31),$("click",function(){return X(e),Z(w(2).addSelectedTo("to"))}),j(2),_(),g(3,"button",31),$("click",function(){return X(e),Z(w(2).addSelectedTo("cc"))}),j(4,"Cc"),_(),g(5,"button",31),$("click",function(){return X(e),Z(w(2).addSelectedTo("bcc"))}),j(6,"Bcc"),_()()}if(2&n){const e=w(2);f(2),we(e.globals.languageConfLocal.to)}}function Mne(n,t){if(1&n){const e=ke();g(0,"div",32)(1,"div",33),$("click",function(r){return X(e),Z(w(2).addSelectedTo("requiredAttendees",r))}),j(2),_(),g(3,"div",33),$("click",function(r){return X(e),Z(w(2).addSelectedTo("optionalAttendees",r))}),j(4),_()()}if(2&n){const e=w(2);f(2),qe(" ",e.globals.languageConfLocal.requiredAttendee,""),f(2),qe(" ",e.globals.languageConfLocal.optionalAttendee,"")}}function kne(n,t){if(1&n){const e=ke();g(0,"div",32)(1,"div",33),$("click",function(r){return X(e),Z(w(2).addSelectedTo("to",r))}),j(2),_(),g(3,"div",33),$("click",function(r){return X(e),Z(w(2).addSelectedTo("cc",r))}),j(4,"Cc"),_(),g(5,"div",33),$("click",function(r){return X(e),Z(w(2).addSelectedTo("bcc",r))}),j(6,"Bcc"),_()()}if(2&n){const e=w(2);f(2),qe(" ",e.globals.languageConfLocal.to,"")}}function Rne(n,t){if(1&n){const e=ke();g(0,"div",1),Ae(1,"br"),g(2,"mat-expansion-panel",2,3),$("closed",function(){return X(e),Z(w().searchResultsPanelClosed())})("opened",function(){return X(e),Z(w().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),$("keydown.Space",function(r){return X(e),Z(w().noCloseOnSpace(r))})("input",function(r){return X(e),Z(w().textChanged(r))})("focus",function(r){return X(e),Z(w().searchInputFocused(r))})("click",function(r){return X(e),Z(w().searchInputClicked(r))})("ngModelChange",function(r){return X(e),Z(w().textInSearchInput=r)}),_()(),H(11,yne,2,0,"span",9),H(12,bne,2,0,"span",10),H(13,Cne,2,0,"span",10),_()(),H(14,Ene,5,3,"mat-form-field",11),g(15,"div",12),H(16,Dne,2,1,"div",13),H(17,Tne,13,12,"div",14),_(),H(18,xne,5,2,"div",15),H(19,Ine,7,1,"div",15),H(20,Mne,5,2,"div",16),H(21,kne,7,1,"div",16),_()()}if(2&n){const e=Jt(10),i=w();f(8),we(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 One=(()=>{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,this.compareFunc=JR,this.searchResultsArray=[],this.databases=[],this.selection=new ul(!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={};for(const r in e)"GeOfficeAliases"!==r&&("Contact"===e[r].type||"Leads"===e[r].type||"Organization"===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}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,Jo.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}parseHtmlEntities(e){return e&&e.replace(/&#([0-9]{1,3});/gi,(i,r)=>{let o=parseInt(r,10);return String.fromCharCode(o)})}noCloseOnSpace(e){e.stopPropagation()}getBase64(e){return"base64, "+e}}return n.\u0275fac=function(e){return new(e||n)(p(ht),p(en),p(su),p(It),p(Kt),p(er),p(ir),p(Ji),p(ya))},n.\u0275cmp=Ue({type:n,selectors:[["app-contact-selector"]],viewQuery:function(e,i){if(1&e&&(Te(_ne,5),Te(vne,5)),2&e){let r;de(r=he())&&(i.searchExpansionPanel=r.first),de(r=he())&&(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,Rne,22,12,"div",0),2&e&&v("ngIf",!i.isReadMode)},dependencies:[Yn,hn,zr,Eo,qo,Zr,nr,Hs,Mr,Jr,dw,oR,sR],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 Cl=(()=>(function(n){n[n.activity=0]="activity"}(Cl||(Cl={})),Cl))();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)(T(ht))},n.\u0275prov=me({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const Lne=["selectedContact"],Fne=["firstDocumentDestination"],Nne=["secondDocumentDestination"],Bne=["docDestSelector"];function jne(n,t){if(1&n&&(g(0,"div",12),j(1),_()),2&n){const e=w();v("title",e.currentEmailSubject),f(1),qe("",e.currentEmailSubject,"\n")}}function Hne(n,t){if(1&n&&(fi(0),j(1),mi()),2&n){const e=w(2);f(1),qe(" ",e.globals.languageConfLocal.documentButtonTooltipOff," ")}}function Vne(n,t){1&n&&j(0),2&n&&qe(" ",w(2).globals.languageConfLocal.documentVerb," ")}function Une(n,t){if(1&n){const e=ke();g(0,"button",13),$("click",function(){return X(e),Z(w().documentItem())}),H(1,Hne,2,1,"ng-container",14),H(2,Vne,1,1,"ng-template",null,15,Dn),_()}if(2&n){const e=Jt(3),i=w();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 qne(n,t){if(1&n){const e=ke();g(0,"button",16),$("click",function(){return X(e),Z(w().updateItem())}),j(1),_()}if(2&n){const e=w();v("title",e.updateButtonTooltip),f(1),we(e.globals.languageConfLocal.updateVerb)}}function zne(n,t){if(1&n&&(g(0,"mat-option",17),j(1),_()),2&n){const e=w();f(1),qe(" ",e.globals.languageConfLocal.doNotDocument," ")}}function Gne(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),we(e.display),f(2),we(e.email)}}function Wne(n,t){if(1&n&&(g(0,"mat-optgroup",18),H(1,Gne,5,3,"mat-option",19),_()),2&n){const e=w();v("label",e.primaryRecipients),f(1),v("ngForOf",e.addresses)("ngForTrackBy",e.tracker)}}function $ne(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),we(e.display),f(2),we(e.email)}}function Kne(n,t){if(1&n&&(g(0,"mat-optgroup",18),H(1,$ne,5,3,"mat-option",19),_()),2&n){const e=w();v("label",e.secondaryRecipients),f(1),v("ngForOf",e.addresses2nd)("ngForTrackBy",e.tracker)}}function Yne(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=w();v("label",e.theOwnerText),f(1),v("value",e.theSender.email),f(2),we(e.theSender.display),f(2),we(e.theSender.email)}}function Qne(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=w();v("label",e.theAssignedText),f(1),v("value",e.theAssignee.email),f(2),we(e.theAssignee.display),f(2),we(e.theAssignee.email)}}function Xne(n,t){if(1&n&&(g(0,"small"),j(1),_()),2&n){const e=w().$implicit;f(1),qe(" (",e.dbTitle,")")}}function Zne(n,t){if(1&n){const e=ke();g(0,"button",39),$("valueChange",function(r){return Z(X(e).$implicit.pointer=r)})("click",function(){const o=X(e).$implicit;return Z(w(3).subdestinationClick(o.pointer))}),g(1,"span",40),j(2),H(3,Xne,2,1,"small",9),_()()}if(2&n){const e=t.$implicit,i=w(3);v("value",e.pointer)("ngClass",e.pointer===i.displayedDestination.pointer?"selectedDestination":""),f(1),v("title",e.name+(e.dbTitle?" ("+e.dbTitle+")":"")),f(1),vo("",e.name,"",e.companyName?" ("+e.companyName+")":""," "),f(1),v("ngIf",e.dbTitle)}}function Jne(n,t){if(1&n&&(g(0,"div",34)(1,"button",35),Ae(2,"img",36),_(),g(3,"mat-menu",null,37),H(5,Zne,4,6,"button",38),_()()),2&n){const e=Jt(4),i=w(2);f(1),v("matBadge",i.destinationsToDisplay.length)("matMenuTriggerFor",e),f(1),v("src",i.currentAvatarURL,Rn)("title",i.globals.languageConfLocal.showContactsList),f(3),v("ngForOf",i.destinationsToDisplay)}}function eie(n,t){if(1&n&&(g(0,"div",34),Ae(1,"img",41),_()),2&n){const e=w(2);f(1),v("src",e.currentAvatarURL,Rn)}}function tie(n,t){if(1&n){const e=ke();g(0,"div",42),$("click",function(){X(e);const r=w(2);return Z(r.datasource.addDocumentLinkToMail(r.displayedDestination))}),g(1,"span",43),j(2,"link"),_()()}if(2&n){const e=w(2);f(1),v("title",e.globals.languageConfLocal.addLinkTextToMail)}}function nie(n,t){if(1&n&&(g(0,"a",44),j(1),_()),2&n){const e=w(2);v("href",e.displayedDestination.parentUrl,Rn)("title",e.displayedDestination.companyName),f(1),we(e.displayedDestination.companyName)}}function iie(n,t){if(1&n){const e=ke();g(0,"div",42),$("click",function(){X(e);const r=w(2);return Z(r.datasource.addDocumentLinkToMail(r.displayedDestination,r.displayedDestination.companyName))}),g(1,"span",43),j(2,"link"),_()()}if(2&n){const e=w(2);f(1),v("title",e.globals.languageConfLocal.addLinkTextToMail)}}function rie(n,t){if(1&n){const e=ke();g(0,"mat-checkbox",29,45),$("change",function(r){return X(e),Z(w(2).destinationSelectorClicked(r))}),_()}if(2&n){const e=w(2);v("name",e.displayedDestination.companyPointer)("checked",e.initSelectedDoc&&e.displayedDestination.companyPointer===e.initSelectedDoc)}}function oie(n,t){if(1&n&&(g(0,"div")(1,"span",46),j(2,"cake"),_(),g(3,"span",47),j(4),_()()),2&n){const e=w(2);f(4),we(e.displayedDestination.additional.birthdate)}}function sie(n,t){if(1&n){const e=ke();g(0,"div",51),$("click",function(){X(e);const r=w(3);return Z(r.datasource.addDocumentLinkToMail(r.displayedDestination,r.displayedDestination.additional.phone))}),g(1,"span",43),j(2,"link"),_()()}if(2&n){const e=w(3);f(1),v("title",e.globals.languageConfLocal.addLinkTextToMail)}}function aie(n,t){if(1&n&&(g(0,"div",48)(1,"span",46),j(2,"call"),_(),g(3,"a",49),j(4),_(),H(5,sie,3,1,"div",50),_()),2&n){const e=w(2);f(3),Dt("href","tel:"+e.displayedDestination.additional.phone,Rn),f(1),we(e.displayedDestination.additional.phone),f(1),v("ngIf",e.settings.LinkOptionActive)}}function lie(n,t){if(1&n){const e=ke();g(0,"div",51),$("click",function(){X(e);const r=w(3);return Z(r.datasource.addDocumentLinkToMail(r.displayedDestination,r.displayedDestination.additional.cellphone))}),g(1,"span",43),j(2,"link"),_()()}if(2&n){const e=w(3);f(1),v("title",e.globals.languageConfLocal.addLinkTextToMail)}}function cie(n,t){if(1&n&&(g(0,"div",48)(1,"span",46),j(2,"phone_android"),_(),g(3,"a",49),j(4),_(),H(5,lie,3,1,"div",50),_()),2&n){const e=w(2);f(3),Dt("href","tel:"+e.displayedDestination.additional.cellphone,Rn),f(1),we(e.displayedDestination.additional.cellphone),f(1),v("ngIf",e.settings.LinkOptionActive)}}function uie(n,t){if(1&n){const e=ke();g(0,"div",23)(1,"div",24),H(2,Jne,6,5,"div",25),H(3,eie,2,1,"div",25),g(4,"div",26)(5,"a",27),j(6),_(),H(7,tie,3,1,"div",28),_(),g(8,"mat-checkbox",29,30),$("change",function(r){return X(e),Z(w().destinationSelectorClicked(r))}),_(),g(11,"div",26),H(12,nie,2,3,"a",31),H(13,iie,3,1,"div",28),_(),H(14,rie,3,2,"mat-checkbox",32),_(),H(15,oie,5,1,"div",9),H(16,aie,6,3,"div",33),H(17,cie,6,3,"div",33),_()}if(2&n){const e=w();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,Rn)("title",e.displayedDestination.name),f(1),we(e.displayedDestination.name),f(1),v("ngIf",e.settings.LinkOptionActive),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),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 die(n,t){if(1&n&&(g(0,"div")(1,"div"),j(2),_()()),2&n){const e=w();f(2),we(e.globals.languageConfLocal.emailNotFoundInCRM)}}function hie(n,t){if(1&n&&(g(0,"div")(1,"div"),j(2),_()()),2&n){const e=w();f(2),we(e.globals.languageConfLocal.afterSendNoAutomaticDocument)}}function pie(n,t){if(1&n){const e=ke();g(0,"div")(1,"button",52),$("click",function(){return X(e),Z(w().quickCreate())}),j(2),_()()}if(2&n){const e=w();f(1),Dt("disabled",!e.extractedContactData),v("title",e.globals.languageConfLocal.ContactQuickCreation),f(1),we(e.globals.languageConfLocal.ContactQuickCreation)}}function fie(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 mie(n,t){if(1&n){const e=ke();g(0,"mat-form-field",53)(1,"mat-label"),j(2),_(),g(3,"mat-select",54),$("valueChange",function(r){return X(e),Z(w().selectedOfficeDB=r)})("selectionChange",function(){return X(e),Z(w().setOfficeDB())}),H(4,fie,2,2,"mat-option",55),_()()}if(2&n){const e=w();f(2),we(e.globals.languageConfLocal.officeDatabase),f(1),v("value",e.selectedOfficeDB),f(1),v("ngForOf",e.officeDatabases)}}let gie=(()=>{class n{constructor(e,i,r,o,s,a,l,c,u,d,h,m,y,S){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.webintLinkService=m,this.settings=y,this.ews=S,this.compareFunc=JR,this.isNew=!0,this.isUpdate=!1,this.searchTextInput="",this.searchValue="",this.selection=new ul(!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.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 ys,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.ews.GetExtendedData(i).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.ews.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.ews.SaveExtendedData(i,r).subscribe(s=>{this.finishAppointmentProcessing(r)}))}):this.finishAppointmentProcessing(r))}):(this.doProcessAddresses(),e?.body.getAsync(Office.CoercionType.Html,{},r=>{this.convertedBody=(0,Zd.convert)(r.value,{preserveNewlines:!1,wordwrap:null}).trim().replace(/^\xa0+/gm,"").replace(/(\r\n|\r|\n){2,}/gm,"\n\n"),this.datasource.extractContactData(this.convertedBody).subscribe(o=>{this.extractedContactData=o})}))}),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}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;if(this.noMoreAutoSelect=!1,e)if(this.globals.incomingMail=!1,this.isAppointment="appointment"===e.itemType,this.isAppointment){this.whatItemIsThis="Meeting",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);"function"==typeof e.saveAsync&&this.datasource.IsTaskpaneActive()&&!i?e.saveAsync(r=>{this.currentItemId=r.value,this.itemRecognized()}):(this.currentItemId=e.itemId,this.itemRecognized())}else"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()})}}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.ews.GetExtendedData(this.currentItemId).subscribe(r=>{if(i.fromEmail&&(this.theSender=new pC,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 pC,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.ews.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 km).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,console.log("Addressdetails:",this.selectedAddressDetails),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 km;return o.selEm=this.doNotDocConst,this.ews.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.ews.GetExtendedData(this.currentItemId).subscribe(o=>{o.selEm=i,this.ews.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.ews.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.ews.GetExtendedData(this.currentItemId).subscribe(s=>{s.selEm=e,s.selDest="",this.destinationChanged(s),this.detectChanges(),this.ews.SaveExtendedData(this.currentItemId,s).subscribe(a=>{})}))})})}getOfficeDBs(e,i=null){var r=this;return Ee(function*(){r.getDBConnections().subscribe(o=>{o&&r.extractOfficeDBs(e,o,i)})})()}extractOfficeDBs(e,i,r=null){var o=this;return Ee(function*(){try{let s=e;if(o.officeDatabases=[],o.selectedOfficeDB="",s)if(r===Cl.activity){const a=o.extractDBFromPointer(s);i.hasOwnProperty(a)?o.extractOfficeDBsOfContact(s,i):(o.officeDatabases=[{db:a,alias:""}],o.selectedOfficeDB=o.officeDatabases[0].db,o.setOfficeDB(),o.detectChanges())}else o.extractOfficeDBsOfContact(s,i)}catch{o.translate.get("LC39396").subscribe(a=>{o.messageService.showError(a)})}})()}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}}),this.displayedDestination=this.destinationsToDisplay[0]):this.displayedDestination=null,this.globals.mainDestinationCheckboxes=this.destinationCheckboxes,this.displayedDestination?this.ews.GetExtendedData(this.currentItemId).subscribe(r=>{r.selEm=this.displayedDestination.additional.mail,r.documentTarget=this.displayedDestination.pointer,this.ews.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.ews.GetExtendedData(this.currentItemId).subscribe(s=>{s.selEm=this.selectedEmailAddress,s.documentTarget=e,s.otherDoc=r,this.displayedDestination&&(s.selDest=this.displayedDestination.pointer),this.ews.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.ews.GetExtendedData(this.currentItemId).subscribe(i=>{i.officeDB=this.selectedOfficeDB,this.ews.SaveExtendedData(this.currentItemId,i).subscribe(r=>{})}))}destinationSelectorClicked(e){if(e.checked){this.ews.GetExtendedData(this.currentItemId).subscribe(r=>{r.otherDoc=!1,this.ews.SaveExtendedData(this.currentItemId,r)}),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 uR;e.source=this.firstDocumentDestination,e.checked=!0,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.ews.GetExtendedData(this.currentItemId).subscribe({next:i=>{this.globals.hideSpinner(),i.documentedOnSend&&!this.globals.incomingMail?this.dialogService.createDialogWithType(dl.alreadyDocumented).subscribe(r=>{r.afterClosed().subscribe(o=>{!0===o&&this.startDocumentation(e,i)})}):this.startDocumentation(e,i)},error:i=>{this.globals.hideSpinner()}})}startDocumentation(e,i){i.documentTarget&&(i.type="appointment"===e?.itemType?"appointment":"mail",this.datasource.documentItemWithUI(i))}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.ews.GetExtendedData(this.currentItemId).subscribe(e=>{for(const i of this.waitListService.accessWaitList("updateBM4OData"))i.next(e);this.ews.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(ht),p(en),p(Bs),p(Kt),p(ir),p(It),p(Bn),p(er),p(Ji),p(Pne),p(Mm),p(Xr),p($c),p(qs))},n.\u0275cmp=Ue({type:n,selectors:[["app-info-shower"]],viewQuery:function(e,i){if(1&e&&(Te(Lne,5),Te(Fne,5),Te(Nne,5),Te(Bne,5)),2&e){let r;de(r=he())&&(i.selectedContact=r.first),de(r=he())&&(i.firstDocumentDestination=r.first),de(r=he())&&(i.secondDocumentDestination=r.first),de(r=he())&&(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,jne,2,2,"div",0),H(1,Une,4,4,"button",1),H(2,qne,2,2,"button",2),g(3,"div")(4,"mat-form-field",3)(5,"mat-select",4,5),$("selectionChange",function(o){return i.selectedContactChanged(o)})("ngModelChange",function(o){return i.selectedEmailAddress=o}),g(7,"mat-select-trigger"),j(8),_(),H(9,zne,2,1,"mat-option",6),H(10,Wne,2,3,"mat-optgroup",7),H(11,Kne,2,3,"mat-optgroup",7),H(12,Yne,6,4,"mat-optgroup",7),H(13,Qne,6,4,"mat-optgroup",7),_()()(),H(14,uie,18,14,"div",8),H(15,die,3,1,"div",9),H(16,hie,3,1,"div",9),H(17,pie,3,3,"div",9),g(18,"button",10),$("click",function(){return i.recipientsEventTrigger()}),_(),Ae(19,"br"),H(20,mie,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.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:[Wa,Yn,hn,Eo,Jp,JM,Jd,nk,Zr,nr,Hs,rW,Mr,j6,Gc,Ree,rg],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 _ie=["docDestSelector"];function vie(n,t){if(1&n){const e=ke();g(0,"div",14),$("click",function(){X(e);const r=w().$implicit;return Z(w(2).datasource.addDocumentLinkToMail(r))}),g(1,"span",15),j(2,"link"),_()()}if(2&n){const e=w(3);f(1),v("title",e.globals.languageConfLocal.addLinkTextToMail)}}function yie(n,t){if(1&n){const e=ke();g(0,"mat-chip",8),$("removed",function(){const o=X(e).$implicit;return Z(w(2).removeDocumentDestination(o))}),Ae(1,"img",9),g(2,"div",10),j(3),_(),H(4,vie,3,1,"div",11),g(5,"button",12)(6,"span",13),j(7,"cancel"),_()()()}if(2&n){const e=t.$implicit,i=w(2);v("removable",!0)("title",e.name),f(1),v("src",i.datasource.getImageSrc(e.image),Rn),f(2),we(e.name),f(1),v("ngIf",i.settings.LinkOptionActive),f(2),v("title",i.globals.languageConfLocal.removeFromList)}}function bie(n,t){1&n&&Ae(0,"input",16,17),2&n&&(w(),v("matChipInputFor",Jt(4)))}function Cie(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,yie,8,6,"mat-chip",6),H(6,bie,2,1,"input",7),_()()),2&n){const e=w();f(2),we(e.getDocumentedLabel()),f(3),v("ngForOf",e.documentsAsDestinations),f(1),v("ngIf",e.documentsAsDestinations&&e.documentsAsDestinations.length>0)}}function wie(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 Eie(n,t){if(1&n&&(g(0,"div",34),j(1),_()),2&n){const e=w().$implicit;v("title",e.lineTwoOverride),f(1),we(e.lineTwoOverride)}}function Die(n,t){if(1&n&&(g(0,"div",34),j(1),_()),2&n){const e=w().$implicit,i=w(3);v("title",i.formatDate(e.dateInMS,"dd.MM.YYYY HH:mm","en_US")),f(1),qe(" ",i.formatDate(e.dateInMS,"dd.MM.YYYY HH:mm","en_US"),"")}}function Sie(n,t){if(1&n){const e=ke();g(0,"button",35),$("click",function(){X(e);const r=w().$implicit;return Z(w(3).datasource.addDocumentLinkToMail(r))}),g(1,"span",36),j(2,"link"),_()()}2&n&&v("title",w(4).globals.languageConfLocal.addLinkTextToMail)}function Aie(n,t){if(1&n){const e=ke();g(0,"div",24)(1,"div",25),Ae(2,"img",26),g(3,"a",27)(4,"div")(5,"div",28),j(6),_(),H(7,Eie,2,2,"div",29),H(8,Die,2,2,"div",29),_()()(),g(9,"div",30),H(10,Sie,3,1,"button",31),g(11,"mat-checkbox",32,33),$("change",function(r){const s=X(e).$implicit;return Z(w(3).destinationActivitySelectorClicked(r,s.subject,s.viewIconUrl))}),_()()()}if(2&n){const e=t.$implicit,i=w(3);f(2),v("src",e.viewIconUrl,Rn),f(1),Dt("href","gi"===i.globals.system?i.createWebintLink(e.pointer):e.url,Rn),f(2),v("title",e.subject),f(1),we(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),f(1),v("name",e.pointer)("checked",e.pointer===i.initSelectedDoc)}}function Tie(n,t){if(1&n&&(g(0,"div",37),j(1),_()),2&n){const e=w(3);f(1),we(e.globals.languageConfLocal.noActivities)}}function xie(n,t){if(1&n&&(g(0,"div"),H(1,Aie,13,9,"div",22),H(2,Tie,2,1,"div",23),_()),2&n){const e=w(2);f(1),v("ngForOf",e.activities),f(1),v("ngIf",0===e.activities.length)}}function Iie(n,t){if(1&n){const e=ke();g(0,"div")(1,"mat-form-field",18),Ae(2,"mat-label"),g(3,"mat-select",19),$("valueChange",function(r){return X(e),Z(w().selectedType=r)})("selectionChange",function(){return X(e),Z(w().activityTypeChanged())}),H(4,wie,2,2,"mat-option",20),_()(),H(5,xie,3,2,"div",1),_()}if(2&n){const e=w();f(3),v("value",e.selectedType),f(1),v("ngForOf",e.types),f(1),v("ngIf",e.activities)}}let Mie=(()=>{class n{constructor(e,i,r,o,s,a,l,c,u){this.globals=e,this.translate=i,this.mailLoadedService=r,this.webintLinkService=o,this.ref=s,this.messageService=a,this.ews=l,this.datasource=c,this.settings=u,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.ews.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.webintLinkService.convertToLink(e)}formatDate(e,i,r){return CT(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,Cl.activity,!0),this.documentsAsDestinations=[],this.documentsAsDestinations.push({name:i,image:r,fdMe:e.source.name})):(this.documentsAsDestinations=[],this.globals.infoShower.setDestinationInfo("",Cl.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.ews.GetExtendedData(this.globals.infoShower.currentItemId).subscribe(e=>{e.docTyp=this.selectedType,this.ews.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("",Cl.activity),this.globals.infoShower.selectFirst()}getDocumentedLabel(){return this.globals.infoShower.isAppointment?this.globals.languageConfLocal.DocumentedTo:this.globals.languageConfLocal.DocumentTo}}return n.\u0275fac=function(e){return new(e||n)(p(ht),p(Kt),p(su),p(Xr),p(It),p(en),p(qs),p(ir),p($c))},n.\u0275cmp=Ue({type:n,selectors:[["app-address-activities"]],viewQuery:function(e,i){if(1&e&&Te(_ie,5),2&e){let r;de(r=he())&&(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"],["target","_blank",1,"contentAndLink",3,"href"],[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,Cie,7,3,"mat-form-field",0),H(1,Iie,6,3,"div",1)),2&e&&(v("ngIf",i.documentsAsDestinations&&i.documentsAsDestinations.length>0),f(1),v("ngIf",!i.globals.infoShower.noneSelected))},dependencies:[Yn,hn,Zr,nr,Hs,Mr,Jr,rg,Qc,Ea,Xc,Yc],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})(),kie=(()=>{class n{constructor(e,i,r,o){this.datasource=e,this.lsm=i,this.ews=r,this.messageService=o}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.ews.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,dr.error),this.lsm.setValue(Zt.sendInProcess,"0"),void e.completed({allowEvent:!1,errorMessage:s.statusText});this.ews.GetExtendedData(r).subscribe(a=>{a.documentedOnSend=!0,this.ews.SaveExtendedData(r,a).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.documentItem(e)}}return n.\u0275fac=function(e){return new(e||n)(p(ir),p(Ji),p(qs),p(en))},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),$("click",function(){return i.sendEventTrigger()}),_())}}),n})();class wl{}const Rie=["projectSelectorPanel"],Oie=["searchProjectsInput"],Pie=["destinationProjectsInputRO"],eO=["destinationProjectsInput"],tO=["searchProjectPhasesInput"],Lie=["allProjectsButton"];function Fie(n,t){if(1&n){const e=ke();g(0,"div",20),$("click",function(){X(e);const r=w().$implicit;return Z(w(2).datasource.addDocumentLinkToMail(r))}),g(1,"span",21),j(2,"link"),_()()}if(2&n){const e=w(3);f(1),v("title",e.globals.languageConfLocal.addLinkTextToMail)}}function Nie(n,t){if(1&n){const e=ke();g(0,"mat-chip",14),$("removed",function(){const o=X(e).$implicit;return Z(w(2).removeProject(o))}),Ae(1,"img",15),g(2,"div",16),j(3),_(),H(4,Fie,3,1,"div",17),g(5,"button",18)(6,"span",19),j(7,"cancel"),_()()()}if(2&n){const e=t.$implicit,i=w(2);v("removable",!0)("title",e.name),f(1),v("src",i.datasource.getImageSrc(e.image),Rn),f(2),we(e.name),f(1),v("ngIf",i.settings.LinkOptionActive),f(2),v("title",i.globals.languageConfLocal.removeFromList)}}function Bie(n,t){if(1&n){const e=ke();g(0,"input",22,23),$("focus",function(r){return X(e),Z(w(2).showProjectSelector(r))}),_()}2&n&&(w(),v("matChipInputFor",Jt(5)))}function jie(n,t){if(1&n){const e=ke();g(0,"input",24,25),$("input",function(r){return X(e),Z(w(2).searchParticipatingProjects(r))}),_()}if(2&n){w();const e=Jt(5),i=Jt(10),r=w();v("matChipInputFor",e)("formControl",r.destinationProjects)("matAutocomplete",i)}}function Hie(n,t){if(1&n&&(g(0,"mat-option",26),Ae(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=w(2);v("value",e),rt("data-fdme",e.fdMe)("data-image",e.image),f(1),v("src",i.datasource.getImageSrc(e.image),Rn),f(2),Dt("title",i.parseHtmlEntities(e.lineOne)),f(1),qe(" ",i.parseHtmlEntities(e.lineOne)," "),f(1),Dt("title",i.parseHtmlEntities(e.lineTwo)),f(1),qe(" ",i.parseHtmlEntities(e.lineTwo)," "),f(1),Dt("title",i.parseHtmlEntities(e.lineThree)),f(1),qe(" ",i.parseHtmlEntities(e.lineThree)," ")}}function Vie(n,t){if(1&n){const e=ke();g(0,"mat-chip",33),$("removed",function(){const o=X(e).$implicit;return Z(w(3).removeProjectPhase(o))}),Ae(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=w(3);v("removable",!0)("title",e.name),f(1),v("src",i.datasource.getImageSrc(e.image),Rn),f(2),we(e.name)}}function Uie(n,t){if(1&n){const e=ke();g(0,"input",24,35),$("input",function(r){return X(e),Z(w(3).searchProjectPhases(r))}),_()}if(2&n){w();const e=Jt(4),i=Jt(8),r=w(2);v("matChipInputFor",e)("formControl",r.projectPhasesControl)("matAutocomplete",i)}}function qie(n,t){if(1&n&&(g(0,"mat-option",26),Ae(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=w(3);v("value",e),rt("data-fdme",e.fdMe)("data-image",e.image),f(1),v("src",i.datasource.getImageSrc(e.image),Rn),f(2),Dt("title",i.parseHtmlEntities(e.lineOne)),f(1),qe(" ",i.parseHtmlEntities(e.lineOne)," "),f(1),Dt("title",i.parseHtmlEntities(e.lineTwo)),f(1),qe(" ",i.parseHtmlEntities(e.lineTwo)," "),f(1),Dt("title",i.parseHtmlEntities(e.lineThree)),f(1),qe(" ",i.parseHtmlEntities(e.lineThree)," ")}}function zie(n,t){if(1&n){const e=ke();g(0,"mat-form-field",31)(1,"mat-label",2),j(2),_(),g(3,"mat-chip-list",3,4),H(5,Vie,7,4,"mat-chip",32),H(6,Uie,2,3,"input",7),g(7,"mat-autocomplete",8,9),$("optionSelected",function(r){return X(e),Z(w(2).autoProjectPhaseSelected(r))})("opened",function(){return X(e),Z(w(2).autocompleteOpened("phasesAuto"))}),H(9,qie,9,10,"mat-option",10),_()()()}if(2&n){const e=w(2);f(2),vo("",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 Gie(n,t){if(1&n){const e=ke();g(0,"div")(1,"mat-form-field",1)(2,"mat-label",2),j(3),_(),g(4,"mat-chip-list",3,4),H(6,Nie,8,6,"mat-chip",5),H(7,Bie,2,1,"input",6),H(8,jie,2,3,"input",7),g(9,"mat-autocomplete",8,9),$("optionSelected",function(r){return X(e),Z(w().autoProjectSelected(r))})("opened",function(){return X(e),Z(w().autocompleteOpened("projectAuto"))}),H(11,Hie,9,10,"mat-option",10),_(),g(12,"span",11,12),$("click",function(r){return X(e),Z(w().showProjectSelector(r))}),j(14,"open_in_new"),_()()(),H(15,zie,10,5,"mat-form-field",13),_()}if(2&n){const e=w();f(3),we(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)}}let Wie=(()=>{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.webintLinkService=c,this.lsm=u,this.dps=d,this.settings=h,this.ews=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 ys(""),this.projectPhasesControl=new ys(""),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.projects=[];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),"gi"===this.globals.system&&(this.showRecentlyUsed=!1),this.globals.infoShower.waitForDocumentDestinationCheckChanged().subscribe({next:i=>{this.projectPhases=[],this.projectPhaseResultArray=[],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(i=>{"appointment"===e?.itemType&&this.ews.GetExtendedData(i).subscribe(r=>{r&&r.selectedProjects&&(this.projects=JSON.parse(r.selectedProjects)),this.projects=this.projects.filter(o=>null!=o)})}),this.globals.infoShower.waitForUpdateBM4ODataCommand().subscribe(i=>{i.selectedProjects=JSON.stringify(this.projects.concat(this.projectPhases))}),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()}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.ews.GetExtendedData(r).subscribe(o=>{o.selectedProjects=i,this.ews.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.ews.GetExtendedData(r).subscribe(o=>{o.selectedProjects=i,this.ews.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 wl;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,Jo.projects,{participantProjects:e}),e&&(this.destinationDirectProjectsCount=this.searchResultsArray.length,this.participatedResultsArray=this.datasource.handleSearchResult(i,Jo.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)})))}parseHtmlEntities(e){return e&&e.replace(/&#([0-9]{1,3});/gi,(i,r)=>{let o=parseInt(r,10);return String.fromCharCode(o)})}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 wl;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 wl;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(ht),p(su),p(It),p(eg),p(Kt),p(ir),p(et),p(Xr),p(Ji),p(ya),p($c),p(qs))},n.\u0275cmp=Ue({type:n,selectors:[["app-project-selector"]],viewQuery:function(e,i){if(1&e&&(Te(Rie,5),Te(Oie,5),Te(Pie,5),Te(eO,5),Te(tO,5),Te(Lie,5),Te(eO,5,ts),Te(tO,5,ts)),2&e){let r;de(r=he())&&(i.projectSelectorPanel=r.first),de(r=he())&&(i.searchProjectsInput=r.first),de(r=he())&&(i.destinationProjectsInputRO=r.first),de(r=he())&&(i.destinationProjectsInput=r.first),de(r=he())&&(i.searchProjectPhasesInput=r.first),de(r=he())&&(i.allProjectsButton=r.first),de(r=he())&&(i.projectsAutocompleteTrigger=r.first),de(r=he())&&(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,Gie,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:[Yn,hn,zr,Eo,Jp,Zr,nr,Mr,Jr,Qc,Ea,Xc,Yc,$k,ts],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 $ie=["searchExpansionPanel"],Kie=["searchTextInput"];function Yie(n,t){if(1&n&&(g(0,"mat-option",17),j(1),_()),2&n){const e=t.$implicit;v("value",e.value),f(1),we(e.viewValue)}}function Qie(n,t){if(1&n){const e=ke();g(0,"mat-form-field",15)(1,"mat-label"),j(2),_(),g(3,"mat-select",7),$("valueChange",function(r){return X(e),Z(w().selectedDB=r)})("selectionChange",function(){return X(e),Z(w().selectedDBChanged())}),H(4,Yie,2,2,"mat-option",16),_()()}if(2&n){const e=w();f(2),we(e.globals.languageConfLocal.contactsDatabase),f(1),v("value",e.selectedDB),f(1),v("ngForOf",e.databases)}}function Xie(n,t){if(1&n&&(g(0,"mat-option",18),j(1),_()),2&n){const e=w();f(1),we(e.globals.languageConfLocal.ExistingCompany)}}function Zie(n,t){if(1&n){const e=ke();g(0,"div")(1,"mat-form-field",19)(2,"mat-label"),j(3),_(),g(4,"input",20),$("ngModelChange",function(r){return X(e),Z(w().extractedContact.Company=r)}),_()(),g(5,"mat-form-field",21)(6,"mat-label"),j(7),_(),g(8,"input",20),$("ngModelChange",function(r){return X(e),Z(w().extractedContact.CompanyEmail=r)}),_()(),g(9,"mat-form-field",21)(10,"mat-label"),j(11),_(),g(12,"input",20),$("ngModelChange",function(r){return X(e),Z(w().extractedContact.CompanyPhone=r)}),_()(),g(13,"mat-form-field",21)(14,"mat-label"),j(15),_(),g(16,"input",20),$("ngModelChange",function(r){return X(e),Z(w().extractedContact.CompanyFax=r)}),_()(),g(17,"mat-form-field",21)(18,"mat-label"),j(19),_(),g(20,"input",20),$("ngModelChange",function(r){return X(e),Z(w().extractedContact.Url=r)}),_()(),g(21,"mat-form-field",21)(22,"mat-label"),j(23),_(),g(24,"input",20),$("ngModelChange",function(r){return X(e),Z(w().extractedContact.Street=r)}),_()(),g(25,"mat-form-field",21)(26,"mat-label"),j(27),_(),g(28,"input",20),$("ngModelChange",function(r){return X(e),Z(w().extractedContact.City=r)}),_()(),g(29,"mat-form-field",21)(30,"mat-label"),j(31),_(),g(32,"input",20),$("ngModelChange",function(r){return X(e),Z(w().extractedContact.Zip=r)}),_()()()}if(2&n){const e=w();f(3),we(e.globals.languageConfLocal.Name),f(1),v("ngModel",e.extractedContact.Company),f(3),we(e.globals.languageConfLocal.Email),f(1),v("ngModel",e.extractedContact.CompanyEmail),f(3),we(e.globals.languageConfLocal.Telephone),f(1),v("ngModel",e.extractedContact.CompanyPhone),f(3),we(e.globals.languageConfLocal.Fax),f(1),v("ngModel",e.extractedContact.CompanyFax),f(3),we(e.globals.languageConfLocal.Web),f(1),v("ngModel",e.extractedContact.Url),f(3),we(e.globals.languageConfLocal.Street),f(1),v("ngModel",e.extractedContact.Street),f(3),we(e.globals.languageConfLocal.City),f(1),v("ngModel",e.extractedContact.City),f(3),we(e.globals.languageConfLocal.Zip),f(1),v("ngModel",e.extractedContact.Zip)}}function Jie(n,t){if(1&n){const e=ke();g(0,"span",36),$("click",function(r){return X(e),Z(w(3).clearTextClicked(r))}),j(1,"cancel"),_()}}function ere(n,t){1&n&&(g(0,"span",37),j(1,"expand_less"),_())}function tre(n,t){1&n&&(g(0,"span",37),j(1,"search"),_())}function nre(n,t){if(1&n&&(g(0,"div",38),j(1),_()),2&n){const e=w(3);f(1),qe(" ",e.globals.languageConfLocal.recentlyUsed," ")}}function ire(n,t){if(1&n){const e=ke();g(0,"div",39),$("click",function(r){return X(e),Z(w(3).clickedElement(r))}),Ae(1,"img",40),g(2,"div",41)(3,"span",42),j(4),_(),Ae(5,"br"),g(6,"span",43),j(7),_(),Ae(8,"br"),g(9,"span",43),j(10),_(),Ae(11,"br"),_()()}if(2&n){const e=t.$implicit,i=t.index,r=w(3);Dt("title",r.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),Rn),f(2),Dt("title",r.parseHtmlEntities(e.lineOne+" <"+e.email+">")),f(1),qe(" ",r.parseHtmlEntities(e.lineOne+" <"+e.email+">")," "),f(2),Dt("title",r.parseHtmlEntities(e.lineTwo)),f(1),we(r.parseHtmlEntities(e.lineTwo)),f(2),Dt("title",r.parseHtmlEntities(e.lineThree)),f(1),we(r.parseHtmlEntities(e.lineThree))}}function rre(n,t){if(1&n){const e=ke();g(0,"mat-expansion-panel",24,25),$("closed",function(){return X(e),Z(w(2).searchResultsPanelClosed())})("opened",function(){return X(e),Z(w(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),$("keydown.Space",function(r){return X(e),Z(w(2).noCloseOnSpace(r))})("input",function(r){return X(e),Z(w(2).textChanged(r))})("focus",function(r){return X(e),Z(w(2).searchInputFocused(r))})("click",function(r){return X(e),Z(w(2).searchInputClicked(r))})("ngModelChange",function(r){return X(e),Z(w(2).textInSearchInput=r)}),_()(),H(9,Jie,2,0,"span",31),H(10,ere,2,0,"span",32),H(11,tre,2,0,"span",32),_()(),g(12,"div",33),H(13,nre,2,1,"div",34),H(14,ire,12,11,"div",35),_()()}if(2&n){const e=Jt(8),i=w(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 ore(n,t){if(1&n){const e=ke();g(0,"div"),H(1,rre,15,6,"mat-expansion-panel",22),g(2,"mat-form-field",19)(3,"mat-label"),j(4),_(),g(5,"input",23),$("ngModelChange",function(r){return X(e),Z(w().extractedContact.CompanyName=r)}),_()(),g(6,"mat-form-field",21)(7,"mat-label"),j(8),_(),g(9,"input",23),$("ngModelChange",function(r){return X(e),Z(w().extractedContact.CompanyAddress=r)}),_()()()}if(2&n){const e=w();f(1),v("ngIf",e.letThereBeSearch),f(3),we(e.globals.languageConfLocal.Name),f(1),v("ngModel",e.extractedContact.CompanyName),f(3),we(e.globals.languageConfLocal.Address),f(1),v("ngModel",e.extractedContact.CompanyAddress)}}function sre(n,t){if(1&n&&(g(0,"mat-option",44),j(1),_()),2&n){const e=w();f(1),we(e.globals.languageConfLocal.NoContact)}}function are(n,t){if(1&n){const e=ke();g(0,"div")(1,"mat-form-field",21)(2,"mat-label"),j(3),_(),g(4,"input",20),$("ngModelChange",function(r){return X(e),Z(w(2).extractedContact.Street=r)}),_()(),g(5,"mat-form-field",21)(6,"mat-label"),j(7),_(),g(8,"input",20),$("ngModelChange",function(r){return X(e),Z(w(2).extractedContact.City=r)}),_()(),g(9,"mat-form-field",21)(10,"mat-label"),j(11),_(),g(12,"input",20),$("ngModelChange",function(r){return X(e),Z(w(2).extractedContact.Zip=r)}),_()()()}if(2&n){const e=w(2);f(3),we(e.globals.languageConfLocal.Street),f(1),v("ngModel",e.extractedContact.Street),f(3),we(e.globals.languageConfLocal.City),f(1),v("ngModel",e.extractedContact.City),f(3),we(e.globals.languageConfLocal.Zip),f(1),v("ngModel",e.extractedContact.Zip)}}function lre(n,t){if(1&n){const e=ke();g(0,"div")(1,"mat-form-field",19)(2,"mat-label"),j(3),_(),g(4,"input",20),$("ngModelChange",function(r){return X(e),Z(w().extractedContact.LastName=r)}),_()(),g(5,"mat-form-field",21)(6,"mat-label"),j(7),_(),g(8,"input",20),$("ngModelChange",function(r){return X(e),Z(w().extractedContact.FirstName=r)}),_()(),g(9,"mat-form-field",21)(10,"mat-label"),j(11),_(),g(12,"input",20),$("ngModelChange",function(r){return X(e),Z(w().extractedContact.Department=r)}),_()(),g(13,"mat-form-field",21)(14,"mat-label"),j(15),_(),g(16,"input",20),$("ngModelChange",function(r){return X(e),Z(w().extractedContact.Phone=r)}),_()(),g(17,"mat-form-field",21)(18,"mat-label"),j(19),_(),g(20,"input",20),$("ngModelChange",function(r){return X(e),Z(w().extractedContact.Mobile=r)}),_()(),g(21,"mat-form-field",21)(22,"mat-label"),j(23),_(),g(24,"input",20),$("ngModelChange",function(r){return X(e),Z(w().extractedContact.Fax=r)}),_()(),g(25,"mat-form-field",21)(26,"mat-label"),j(27),_(),g(28,"input",20),$("ngModelChange",function(r){return X(e),Z(w().globals.infoShower.addresses[0].email=r)}),_()(),H(29,are,13,6,"div",11),_()}if(2&n){const e=w();f(3),we(e.globals.languageConfLocal.Lastname),f(1),v("ngModel",e.extractedContact.LastName),f(3),we(e.globals.languageConfLocal.Firstname),f(1),v("ngModel",e.extractedContact.FirstName),f(3),we(e.globals.languageConfLocal.Department),f(1),v("ngModel",e.extractedContact.Department),f(3),we(e.globals.languageConfLocal.Telephone),f(1),v("ngModel",e.extractedContact.Phone),f(3),we(e.globals.languageConfLocal.Mobile),f(1),v("ngModel",e.extractedContact.Mobile),f(3),we(e.globals.languageConfLocal.Fax),f(1),v("ngModel",e.extractedContact.Fax),f(3),we(e.globals.languageConfLocal.Email),f(1),v("ngModel",e.globals.infoShower.addresses[0].email),f(1),v("ngIf","compNo"===e.companyAction)}}let cre=(()=>{class n{constructor(e,i,r,o,s){this.globals=e,this.datasource=i,this.messageService=r,this.htmlHelper=o,this.lsm=s,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 Im}ngOnInit(){this.globals.onActiveWindowChange().subscribe(e=>{"contactCreation"===e.newWindow&&"main"===e.currentWindow&&this.initializeTheView()})}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)}creationSelectionChange(e){this.showNoContact="compExist"!==this.companyAction,"compExist"===this.companyAction&&(this.contactAction="contNew"),this.extractedContact.Company="compExist"!==this.companyAction||this.extractedContact.CompanyPointer?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))}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.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&&((!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+"
"),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:this.globals.languageConfLocal.NewStandaloneContactCreated,dr.success):"compNew"===this.companyAction&&this.messageService.showMessageAsync(this.globals.languageConfLocal.NewCompanyCreated,dr.success),this.globals.hideSpinner(),this.globals.contactCreated=!0,this.globals.activeWindow="main")},error:o=>{this.globals.hideSpinner()}})})}cancelClicked(){this.globals.activeWindow="main"}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}parseHtmlEntities(e){return e&&e.replace(/&#([0-9]{1,3});/gi,(i,r)=>{let o=parseInt(r,10);return String.fromCharCode(o)})}clickedElement(e){this.selectCompany(e.currentTarget)}getCompanies(){}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)}}return n.\u0275fac=function(e){return new(e||n)(p(ht),p(ir),p(en),p(kC),p(Ji))},n.\u0275cmp=Ue({type:n,selectors:[["app-contact-creator"]],viewQuery:function(e,i){if(1&e&&(Te($ie,5),Te(Kie,5)),2&e){let r;de(r=he())&&(i.searchExpansionPanel=r.first),de(r=he())&&(i.searchTextInput=r.first)}},decls:33,vars:18,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"],["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),$("click",function(){return i.createClicked()}),j(5,"check_circle"),_(),g(6,"span",3),$("click",function(){return i.cancelClicked()}),j(7,"cancel"),_()()(),H(8,Qie,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),$("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,Xie,2,1,"mat-option",10),_()()(),g(19,"mat-card-content"),H(20,Zie,33,16,"div",11),H(21,ore,10,5,"div",11),_()(),g(22,"mat-card",0)(23,"mat-card-header",5)(24,"mat-form-field",6)(25,"mat-label"),j(26),_(),g(27,"mat-select",7),$("valueChange",function(o){return i.contactAction=o})("selectionChange",function(o){return i.creationSelectionChange(o)}),H(28,sre,2,1,"mat-option",12),g(29,"mat-option",13),j(30),_()()()(),g(31,"mat-card-content",14),H(32,lre,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),we(i.globals.languageConfLocal.ComapnyAction),f(1),v("value",i.companyAction),f(2),we(i.globals.languageConfLocal.NoCompany),f(2),we(i.globals.languageConfLocal.NewCompany),f(1),v("ngIf",i.showExistingCompany),f(1),wi("compExist"!==i.companyAction?"cardWithBackground":"cardWithBackgroundDarker"),f(1),v("ngIf","compNew"===i.companyAction),f(1),v("ngIf","compExist"===i.companyAction),f(5),we(i.globals.languageConfLocal.ContactAction),f(1),v("value",i.contactAction),f(1),v("ngIf",i.showNoContact),f(2),we(i.globals.languageConfLocal.NewContact),f(2),v("ngIf","contNew"===i.contactAction))},dependencies:[Yn,hn,zr,Eo,qo,Zr,nr,Hs,Mr,Jr,dw,oR,sR,ig,xee,tg,ng],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 nO={appVersion:G(4147).i8+"-beta",production:!0,basehref:"businessmail-beta"};let ure=(()=>{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=>{"userSettings"===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=nO.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(ht),p(en),p(su),p(It),p(Kt),p(er),p(ir),p(Ji),p(ya))},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),$("click",function(){return i.openGedys()}),j(10,"www.gedys-intraware.de"),_()(),g(11,"div"),Ae(12,"br"),g(13,"a",2),$("click",function(){return i.licenseInfo()}),j(14),_()(),g(15,"button",3),$("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),we(i.globals.languageConfLocal.licenseInfo),f(2),we(i.globals.languageConfLocal.Close))},dependencies:[Gc],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})(),dre=(()=>{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(ht),p(en),p(su),p(It),p(Kt),p(er),p(ir),p(Ji),p(vc),p(ya))},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),$("click",function(){return i.closeClicked()}),j(5),_()()),2&e&&(f(3),qe(" ",i.licInfo,"\n "),f(2),we(i.globals.languageConfLocal.Close))},dependencies:[Gc]}),n})();const hre=["projectSelectorPanel"],pre=["searchProjectsInput"],fre=["searchDocumentInput"],iO=["tagsInput"];function mre(n,t){if(1&n){const e=ke();g(0,"mat-chip",11),$("removed",function(){const o=X(e).$implicit;return Z(w(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),we(e[1])}}function gre(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=w(2);v("value",e),rt("data-key",e[0]),f(2),Dt("title",i.parseHtmlEntities(e[1])),f(1),qe(" ",i.parseHtmlEntities(e[1])," ")}}function _re(n,t){if(1&n){const e=ke();g(0,"div")(1,"mat-form-field",1)(2,"mat-label",2),j(3),_(),g(4,"mat-chip-list",3,4),H(6,mre,6,3,"mat-chip",5),g(7,"input",6,7),$("input",function(r){return X(e),Z(w().searchTags(r))}),_(),g(9,"mat-autocomplete",8,9),$("optionSelected",function(r){return X(e),Z(w().autoTagsSelected(r))})("opened",function(){return X(e),Z(w().autocompleteOpened("tagsAuto"))}),H(11,gre,4,4,"mat-option",10),_()()()()}if(2&n){const e=Jt(5),i=Jt(10),r=w();f(3),we(r.globals.languageConfLocal.tags),f(3),v("ngForOf",r.enums),f(1),v("matChipInputFor",e)("matAutocomplete",i),f(4),v("ngForOf",r.filteredParticipatedResultsArray)}}let vre=(()=>{class n{constructor(e,i,r,o,s,a,l,c,u,d){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.ews=d,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.ews.GetExtendedData(i).subscribe(r=>{})}),this.globals.infoShower.waitForUpdateBM4ODataCommand().subscribe(i=>{})}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.ews.GetExtendedData(r).subscribe(o=>{o.tags=i,this.ews.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()}})}parseHtmlEntities(e){return e&&e.replace(/&#([0-9]{1,3});/gi,(i,r)=>{let o=parseInt(r,10);return String.fromCharCode(o)})}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(ht),p(su),p(It),p(eg),p(Kt),p(ir),p(et),p(Ji),p(ya),p(qs))},n.\u0275cmp=Ue({type:n,selectors:[["app-tags-selector"]],viewQuery:function(e,i){if(1&e&&(Te(hre,5),Te(pre,5),Te(fre,5),Te(iO,5),Te(iO,5,ts)),2&e){let r;de(r=he())&&(i.projectSelectorPanel=r.first),de(r=he())&&(i.searchProjectsInput=r.first),de(r=he())&&(i.searchDocumentInput=r.first),de(r=he())&&(i.tagsInput=r.first),de(r=he())&&(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,_re,12,5,"div",0),2&e&&v("ngIf",!i.globals.infoShower.noneSelected&&i.tagsVisible)},dependencies:[Yn,hn,Zr,nr,Mr,Jr,Qc,Ea,Xc,Yc,$k,ts],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 yre=["projectSelectorPanel"],bre=["searchProjectsInput"],Cre=["destinationProjectsInputRO"],rO=["destinationProjectsInput"],oO=["searchProjectPhasesInput"],wre=["allProjectsButton"];function Ere(n,t){if(1&n&&(g(0,"mat-option",24),j(1),_()),2&n){const e=t.$implicit;v("value",e.value),f(1),we(e.viewValue)}}function Dre(n,t){if(1&n){const e=ke();g(0,"mat-form-field",21)(1,"mat-label"),j(2),_(),g(3,"mat-select",22),$("valueChange",function(r){return X(e),Z(w(2).selectedDB=r)})("selectionChange",function(){return X(e),Z(w(2).getProjects(!1))}),H(4,Ere,2,2,"mat-option",23),_()()}if(2&n){const e=w(2);f(2),we(e.globals.languageConfLocal.projectDatabase),f(1),v("value",e.selectedDB),f(1),v("ngForOf",e.databases)}}function Sre(n,t){if(1&n&&(g(0,"div",25),j(1),_()),2&n){const e=w(2);f(1),qe(" ",e.globals.languageConfLocal.recentlyUsed," ")}}function Are(n,t){if(1&n){const e=ke();g(0,"div",26),$("click",function(r){return X(e),Z(w(2).dblClickedElement(r))}),Ae(1,"img",27),g(2,"div",28)(3,"span",29),j(4),_(),Ae(5,"br"),g(6,"span",30),j(7),_(),Ae(8,"br"),g(9,"span",30),j(10),_(),Ae(11,"br"),_()()}if(2&n){const e=t.$implicit,i=t.index,r=w(2);Dt("title",e.lineOne),rt("data-order",i+1)("data-fdme",e.fdMe)("data-displayname",r.parseHtmlEntities(e.lineOne))("data-image",e.image),f(1),v("src",r.datasource.getImageSrc(e.image),Rn),f(2),Dt("title",r.parseHtmlEntities(e.lineOne)),f(1),we(r.parseHtmlEntities(e.lineOne)),f(2),Dt("title",r.parseHtmlEntities(e.lineTwo)),f(1),we(r.parseHtmlEntities(e.lineTwo)),f(2),Dt("title",r.parseHtmlEntities(e.lineThree)),f(1),we(r.parseHtmlEntities(e.lineThree))}}function Tre(n,t){if(1&n){const e=ke();g(0,"mat-chip",31),$("removed",function(){const o=X(e).$implicit;return Z(w(2).removeProject(o))}),Ae(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=w(2);v("removable",!0)("title",e.name),rt("data-pointer",e.pointer),f(1),v("src",i.datasource.getImageSrc(e.image),Rn),f(2),we(e.name)}}function xre(n,t){if(1&n){const e=ke();g(0,"div")(1,"mat-card",1,2)(3,"mat-card-title",3),j(4),g(5,"div",4)(6,"span",5),$("click",function(){return X(e),Z(w().confirmSelection())}),j(7,"check_circle"),_(),g(8,"span",6),$("click",function(){return X(e),Z(w().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),$("input",function(r){return X(e),Z(w().textChanged(r))}),_()(),H(16,Dre,5,3,"mat-form-field",11),Ae(17,"br"),g(18,"div",12),H(19,Sre,2,1,"div",13),H(20,Are,12,12,"div",14),_()(),g(21,"mat-card-footer",15),Ae(22,"mat-divider",16),g(23,"mat-chip-list",17,18),H(25,Tre,7,5,"mat-chip",19),Ae(26,"input",20),_()()()()}if(2&n){const e=Jt(24),i=w();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),we(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 Ire=(()=>{class n{constructor(e,i,r,o,s,a,l,c,u){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.ews=u,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 ys(""),this.projectPhasesControl=new ys(""),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.ews.GetExtendedData(r).subscribe(o=>{o.selectedProjects=i,this.ews.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.ews.GetExtendedData(r).subscribe(o=>{o.selectedProjects=i,this.ews.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 wl;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,Jo.projects,{participantProjects:e}),e&&(this.destinationDirectProjectsCount=this.searchResultsArray.length,this.participatedResultsArray=this.datasource.handleSearchResult(i,Jo.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)})))}parseHtmlEntities(e){return e&&e.replace(/&#([0-9]{1,3});/gi,(i,r)=>{let o=parseInt(r,10);return String.fromCharCode(o)})}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 wl;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 wl;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(ht),p(It),p(eg),p(Kt),p(ir),p(et),p(Ji),p(ya),p(qs))},n.\u0275cmp=Ue({type:n,selectors:[["app-project-selector-page"]],viewQuery:function(e,i){if(1&e&&(Te(yre,5),Te(bre,5),Te(Cre,5),Te(rO,5),Te(oO,5),Te(wre,5),Te(rO,5,ts),Te(oO,5,ts)),2&e){let r;de(r=he())&&(i.projectSelectorPanel=r.first),de(r=he())&&(i.searchProjectsInput=r.first),de(r=he())&&(i.destinationProjectsInputRO=r.first),de(r=he())&&(i.destinationProjectsInput=r.first),de(r=he())&&(i.searchProjectPhasesInput=r.first),de(r=he())&&(i.allProjectsButton=r.first),de(r=he())&&(i.projectsAutocompleteTrigger=r.first),de(r=he())&&(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,xre,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:[Yn,hn,gC,Zr,nr,Hs,Mr,Jr,ig,tg,ng,hw,Qc,Ea,Xc,Yc],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{border-radius:16px;color:#e60000;font-weight:900}span.material-symbols-rounded.green{border-radius:16px;color:#04d804;font-weight:900}.iconsDiv{display:flex}.left-right-align{display:flex;justify-content:space-between}\n'],encapsulation:2}),n})();const Mre=["openAfterCreate"],kre=["linkOptionActive"];function Rre(n,t){if(1&n&&(g(0,"div",8)(1,"mat-label"),j(2),_(),Ae(3,"mat-checkbox",null,12),_()),2&n){const e=w(2);f(2),we(e.globals.languageConfLocal.activateLinkOption)}}function Ore(n,t){if(1&n){const e=ke();g(0,"div")(1,"mat-card",1,2)(3,"mat-card-title",3),j(4),g(5,"div",4)(6,"span",5),$("click",function(){return X(e),Z(w().saveSettings())}),j(7,"check_circle"),_(),g(8,"span",6),$("click",function(){return X(e),Z(w().cancelChanges())}),j(9,"cancel"),_()()(),g(10,"mat-card-content",7)(11,"div",8)(12,"mat-label"),j(13),_(),Ae(14,"mat-checkbox",null,9),_(),H(16,Rre,5,1,"div",10),_(),Ae(17,"mat-card-footer",11),_()()}if(2&n){const e=w();f(4),qe(" ",e.globals.languageConfLocal.userSettings," "),f(2),v("title",e.globals.languageConfLocal.Apply),f(2),v("title",e.globals.languageConfLocal.Cancel),f(5),we(e.globals.languageConfLocal.autoOpenNew),f(3),v("ngIf",e.globals.configJson.webUrl)}}let Pre=(()=>{class n{constructor(e,i,r,o,s,a,l){this.globals=e,this.ref=i,this.snack=r,this.messageService=o,this.translate=s,this.datasource=a,this.settings=l}ngOnInit(){this.globals.onActiveWindowChange().subscribe(e=>{"userSettings"===e.newWindow&&"main"===e.currentWindow&&this.initializeTheView()})}initializeTheView(){this.openAfterCreate.checked="true"===this.settings.get(zs.USopenAfterCreate),this.linkOptionActive.checked="true"===this.settings.get(zs.USlinkOptionActive)}detectChanges(){this.ref.detectChanges()}saveSettings(){this.settings.set(zs.USopenAfterCreate,String(this.openAfterCreate.checked)),this.settings.set(zs.USlinkOptionActive,String(this.linkOptionActive.checked)),this.settings.save().subscribe({next:e=>{"succeeded"===e.status?this.messageService.showSuccess(this.globals.languageConfLocal.settingsSaved):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"}}return n.\u0275fac=function(e){return new(e||n)(p(ht),p(It),p(eg),p(en),p(Kt),p(ir),p($c))},n.\u0275cmp=Ue({type:n,selectors:[["app-user-settings"]],viewQuery:function(e,i){if(1&e&&(Te(Mre,5),Te(kre,5)),2&e){let r;de(r=he())&&(i.openAfterCreate=r.first),de(r=he())&&(i.linkOptionActive=r.first)}},decls:1,vars:1,consts:[[4,"ngIf"],[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"],[1,"settingsHolder"],["openAfterCreate",""],["class","settingsHolder",4,"ngIf"],[1,"settingsFooter"],["linkOptionActive",""]],template:function(e,i){1&e&&H(0,Ore,18,5,"div",0),2&e&&v("ngIf",i.globals.infoShower&&!i.globals.noProjects)},dependencies:[hn,nr,ig,tg,ng,hw,rg],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:90% 8% 1%;padding-top:1em;padding-bottom:.5em}.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{border-radius:16px;color:#e60000;font-weight:900}span.material-symbols-rounded.green{border-radius:16px;color:#04d804;font-weight:900}.iconsDiv{display:flex;align-items:center}.left-right-align{display:flex;justify-content:space-between;margin-bottom:16px}\n'],encapsulation:2}),n})();const Lre=["searchTextInput"],Fre=["projectSelectorPanel"],Nre=["destinationProjectsInputRO"],sO=["destinationProjectsInput"],aO=["searchProjectPhasesInput"],Bre=["allProjectsButton"];function jre(n,t){if(1&n&&(g(0,"mat-option",25),j(1),_()),2&n){const e=t.$implicit,i=w(3);v("value",e),f(1),vo(" ",i.datasource.getDisplayedType(e.type),": ",e.title," ")}}function Hre(n,t){if(1&n){const e=ke();g(0,"mat-form-field",22)(1,"mat-label"),j(2),_(),g(3,"mat-select",23),$("valueChange",function(r){return X(e),Z(w(2).selectedDB=r)})("selectionChange",function(){return X(e),Z(w(2).changeSelectedDB())}),H(4,jre,2,3,"mat-option",24),_()()}if(2&n){const e=w(2);f(2),we(e.globals.languageConfLocal.SelectDatabase),f(1),v("value",e.selectedDB),f(1),v("ngForOf",e.entriesArray)}}function Vre(n,t){if(1&n&&(g(0,"div",26),j(1),_()),2&n){const e=w(2);f(1),qe(" ",e.globals.languageConfLocal.recentlyUsed," ")}}function Ure(n,t){if(1&n){const e=ke();g(0,"div",27),$("click",function(r){return X(e),Z(w(2).dblClickedElement(r))}),Ae(1,"img",28),g(2,"div",29)(3,"span",30),j(4),_(),Ae(5,"br"),g(6,"span",31),j(7),_(),Ae(8,"br"),g(9,"span",31),j(10),_(),Ae(11,"br"),_()()}if(2&n){const e=t.$implicit,i=t.index,r=w(2);Dt("title",e.lineOne),rt("data-order",i+1)("data-fdme",e.fdMe)("data-displayname",r.parseHtmlEntities(e.lineOne))("data-image",e.image),f(1),v("src",r.datasource.getImageSrc(e.image),Rn),f(2),Dt("title",r.parseHtmlEntities(e.lineOne)),f(1),we(r.parseHtmlEntities(e.lineOne)),f(2),Dt("title",r.parseHtmlEntities(e.lineTwo)),f(1),we(r.parseHtmlEntities(e.lineTwo)),f(2),Dt("title",r.parseHtmlEntities(e.lineThree)),f(1),we(r.parseHtmlEntities(e.lineThree))}}function qre(n,t){if(1&n){const e=ke();g(0,"mat-chip",32),$("removed",function(){const o=X(e).$implicit;return Z(w(2).removeDocument(o))}),Ae(1,"img",33),g(2,"div",34),j(3),_(),g(4,"button",35)(5,"span",36),j(6,"cancel"),_()()()}if(2&n){const e=t.$implicit,i=w(2);v("removable",!0)("title",e.name),rt("data-pointer",e.pointer),f(1),v("src",i.datasource.getImageSrc(e.image),Rn),f(2),we(e.name)}}function zre(n,t){if(1&n){const e=ke();g(0,"div")(1,"mat-card",1,2)(3,"mat-card-title",3),j(4),g(5,"div",4)(6,"span",5),$("click",function(){return X(e),Z(w().confirmSelection())}),j(7,"check_circle"),_(),g(8,"span",6),$("click",function(){return X(e),Z(w().cancelSelection())}),j(9,"cancel"),_()()(),g(10,"mat-card-content",7)(11,"mat-form-field",8)(12,"mat-label",9),j(13),_(),g(14,"input",10,11),$("input",function(){X(e);const r=Jt(15);return Z(w().textChanged(r.value))})("ngModelChange",function(r){return X(e),Z(w().textInSearchInput=r)}),_()(),H(16,Hre,5,3,"mat-form-field",12),Ae(17,"br"),g(18,"div",13),H(19,Vre,2,1,"div",14),H(20,Ure,12,12,"div",15),_()(),g(21,"mat-card-footer",16),Ae(22,"mat-divider",17),g(23,"mat-chip-list",18,19),H(25,qre,7,5,"mat-chip",20),Ae(26,"input",21),_()()()()}if(2&n){const e=Jt(24),i=w();f(4),qe(" ",i.globals.languageConfLocal.doucmentSelection," "),f(2),v("title",i.globals.languageConfLocal.Apply),f(2),v("title",i.globals.languageConfLocal.Cancel),f(5),we(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 Gre=(()=>{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.ews=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 ys(""),this.projectPhasesControl=new ys(""),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())})}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}parseHtmlEntities(e){return e&&e.replace(/&#([0-9]{1,3});/gi,(i,r)=>{let o=parseInt(r,10);return String.fromCharCode(o)})}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 wl;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)}}}return n.\u0275fac=function(e){return new(e||n)(p(ht),p(It),p(Kt),p(ir),p(et),p(Ji),p(ya),p(qs))},n.\u0275cmp=Ue({type:n,selectors:[["app-document-selector-page"]],viewQuery:function(e,i){if(1&e&&(Te(Lre,5),Te(Fre,5),Te(Nre,5),Te(sO,5),Te(aO,5),Te(Bre,5),Te(sO,5,ts),Te(aO,5,ts)),2&e){let r;de(r=he())&&(i.searchTextInput=r.first),de(r=he())&&(i.projectSelectorPanel=r.first),de(r=he())&&(i.destinationProjectsInputRO=r.first),de(r=he())&&(i.destinationProjectsInput=r.first),de(r=he())&&(i.searchProjectPhasesInput=r.first),de(r=he())&&(i.allProjectsButton=r.first),de(r=he())&&(i.projectsAutocompleteTrigger=r.first),de(r=he())&&(i.phasesAutocompleteTrigger=r.first)}},decls:1,vars:1,consts:[[4,"ngIf"],[1,"allDocumentsCard"],["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,"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"],[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,zre,27,10,"div",0),2&e&&v("ngIf",i.globals.infoShower)},dependencies:[Yn,hn,zr,Eo,qo,gC,Zr,nr,Hs,Mr,Jr,ig,tg,ng,hw,Qc,Ea,Xc,Yc],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{border-radius:16px;color:#e60000;font-weight:900}span.material-symbols-rounded.green{border-radius:16px;color:#04d804;font-weight:900}.iconsDiv{display:flex}.left-right-align{display:flex;justify-content:space-between}\n'],encapsulation:2}),n})(),lO=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=dt({type:n,bootstrap:[PC]}),n.\u0275inj=ct({providers:[ht,RC,O1,Bn,Mm,{provide:kf,useValue:{}},{provide:qy,useClass:sU,multi:!0},cl],imports:[tx,VV,UV,oU,cJ,N1.forRoot({preventDuplicates:!0}),cG,BQ,O1,sW,fm,hW,HW,ha,hY,FM,mte,lM,lee,Eee,Iee,XQ,Oee,Gee,tte,Qk,HJ,TJ,lM.forRoot(new mne({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}),wU.forRoot({defaultLanguage:"en",loader:{provide:ad,useClass:yJ}})]}),n})();(function Fw(n,t,e){const i=n.\u0275cmp;i.directiveDefs=()=>("function"==typeof t?t():t).map(Nw),i.pipeDefs=()=>("function"==typeof e?e():e).map(qi)})(PC,function(){return[hn,ra,Gc,Gs,aX,uX,vJ,yte,gne,One,ure,gie,cre,Mie,kie,Wie,Ire,vre,dre,Pre,Gre]},[]),nO.production&&(function A4(){iT=!1}(),window.console.log=()=>{});try{Office.initialize=()=>{XT().bootstrapModule(lO)}}catch{XT().bootstrapModule(lO).catch(t=>console.error(t))}},4999:Le=>{"use strict";var C=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 N(B,z){return!1!==z.clone&&z.isMergeableObject(B)?A(function q(B){return Array.isArray(B)?[]:{}}(B),B,z):B}function M(B,z,re){return B.concat(z).map(function(Ce){return N(Ce,re)})}function E(B){return Object.keys(B).concat(function x(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 A(B,z,re){(re=re||{}).arrayMerge=re.arrayMerge||M,re.isMergeableObject=re.isMergeableObject||C,re.cloneUnlessOtherwiseSpecified=N;var Ce=Array.isArray(z);return Ce===Array.isArray(B)?Ce?re.arrayMerge(B,z,re):function k(B,z,re){var Ce={};return re.isMergeableObject(B)&&E(B).forEach(function(W){Ce[W]=N(B[W],re)}),E(z).forEach(function(W){(function D(B,z){return P(B,z)&&!(Object.hasOwnProperty.call(B,z)&&Object.propertyIsEnumerable.call(B,z))})(B,W)||(Ce[W]=P(B,W)&&re.isMergeableObject(z[W])?function O(B,z){if(!z.customMerge)return A;var re=z.customMerge(B);return"function"==typeof re?re:A}(W,re)(B[W],z[W],re):N(z[W],re))}),Ce}(B,z,re):N(z,re)}A.all=function(z,re){if(!Array.isArray(z))throw new Error("first argument should be an array");return z.reduce(function(Ce,W){return A(Ce,W,re)},{})},Le.exports=A},2094:(Le,C)=>{"use strict";Object.defineProperty(C,"__esModule",{value:!0}),C.attributeNames=C.elementNames=void 0,C.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"]]),C.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,C,G){"use strict";var le=this&&this.__assign||function(){return le=Object.assign||function(W){for(var ie,b=1,K=arguments.length;b"}(W);case q.Comment:return function Ce(W){return"\x3c!--"+W.data+"--\x3e"}(W);case q.CDATA:return function re(W){return""+W.children[0].data+""}(W);case q.Script:case q.Style:case q.Tag:return function I(W,ie){var b;"foreign"===ie.xmlMode&&(W.name=null!==(b=M.elementNames.get(W.name))&&void 0!==b?b:W.name,W.parent&&k.has(W.parent.name)&&(ie=le(le({},ie),{xmlMode:!1}))),!ie.xmlMode&&A.has(W.name)&&(ie=le(le({},ie),{xmlMode:"foreign"}));var K="<"+W.name,F=function x(W,ie){if(W)return Object.keys(W).map(function(b){var K,F,oe=null!==(K=W[b])&&void 0!==K?K:"";return"foreign"===ie.xmlMode&&(b=null!==(F=M.attributeNames.get(b))&&void 0!==F?F:b),ie.emptyAttrs||ie.xmlMode||""!==oe?b+'="'+(!1!==ie.decodeEntities?N.encodeXML(oe):oe.replace(/"/g,"""))+'"':b}).join(" ")}(W.attribs,ie);return F&&(K+=" "+F),0===W.children.length&&(ie.xmlMode?!1!==ie.selfClosingTags:ie.selfClosingTags&&E.has(W.name))?(ie.xmlMode||(K+=" "),K+="/>"):(K+=">",W.children.length>0&&(K+=P(W.children,ie)),(ie.xmlMode||!E.has(W.name))&&(K+="")),K}(W,ie);case q.Text:return function z(W,ie){var b=W.data||"";return!1!==ie.decodeEntities&&!(!ie.xmlMode&&W.parent&&O.has(W.parent.name))&&(b=N.encodeXML(b)),b}(W,ie)}}C.default=P;var k=new Set(["mi","mo","mn","ms","mtext","annotation-xml","foreignObject","desc","title"]),A=new Set(["svg","math"])},6316:(Le,C)=>{"use strict";var G,ce;Object.defineProperty(C,"__esModule",{value:!0}),C.Doctype=C.CDATA=C.Tag=C.Style=C.Script=C.Comment=C.Directive=C.Text=C.Root=C.isTag=C.ElementType=void 0,(ce=G=C.ElementType||(C.ElementType={})).Root="root",ce.Text="text",ce.Directive="directive",ce.Comment="comment",ce.Script="script",ce.Style="style",ce.Tag="tag",ce.CDATA="cdata",ce.Doctype="doctype",C.isTag=function le(ce){return ce.type===G.Tag||ce.type===G.Script||ce.type===G.Style},C.Root=G.Root,C.Text=G.Text,C.Directive=G.Directive,C.Comment=G.Comment,C.Script=G.Script,C.Style=G.Style,C.Tag=G.Tag,C.CDATA=G.CDATA,C.Doctype=G.Doctype},2962:function(Le,C,G){"use strict";var le=this&&this.__createBinding||(Object.create?function(O,x,E,P){void 0===P&&(P=E);var D=Object.getOwnPropertyDescriptor(x,E);(!D||("get"in D?!x.__esModule:D.writable||D.configurable))&&(D={enumerable:!0,get:function(){return x[E]}}),Object.defineProperty(O,P,D)}:function(O,x,E,P){void 0===P&&(P=E),O[P]=x[E]}),ce=this&&this.__exportStar||function(O,x){for(var E in O)"default"!==E&&!Object.prototype.hasOwnProperty.call(x,E)&&le(x,O,E)};Object.defineProperty(C,"__esModule",{value:!0}),C.DomHandler=void 0;var Y=G(6316),Q=G(3416);ce(G(3416),C);var q=/\s+/g,N={normalizeWhitespace:!1,withStartIndices:!1,withEndIndices:!1,xmlMode:!1},M=function(){function O(x,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=N),"object"==typeof x&&(E=x,x=void 0),this.callback=x??null,this.options=E??N,this.elementCB=P??null}return O.prototype.onparserinit=function(x){this.parser=x},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(x){this.handleCallback(x)},O.prototype.onclosetag=function(){this.lastNode=null;var x=this.tagStack.pop();this.options.withEndIndices&&(x.endIndex=this.parser.endIndex),this.elementCB&&this.elementCB(x)},O.prototype.onopentag=function(x,E){var D=new Q.Element(x,E,void 0,this.options.xmlMode?Y.ElementType.Tag:void 0);this.addNode(D),this.tagStack.push(D)},O.prototype.ontext=function(x){var E=this.options.normalizeWhitespace,P=this.lastNode;if(P&&P.type===Y.ElementType.Text)E?P.data=(P.data+x).replace(q," "):P.data+=x,this.options.withEndIndices&&(P.endIndex=this.parser.endIndex);else{E&&(x=x.replace(q," "));var D=new Q.Text(x);this.addNode(D),this.lastNode=D}},O.prototype.oncomment=function(x){if(this.lastNode&&this.lastNode.type===Y.ElementType.Comment)this.lastNode.data+=x;else{var E=new Q.Comment(x);this.addNode(E),this.lastNode=E}},O.prototype.oncommentend=function(){this.lastNode=null},O.prototype.oncdatastart=function(){var x=new Q.Text(""),E=new Q.NodeWithChildren(Y.ElementType.CDATA,[x]);this.addNode(E),x.parent=E,this.lastNode=x},O.prototype.oncdataend=function(){this.lastNode=null},O.prototype.onprocessinginstruction=function(x,E){var P=new Q.ProcessingInstruction(x,E);this.addNode(P)},O.prototype.handleCallback=function(x){if("function"==typeof this.callback)this.callback(x,this.dom);else if(x)throw x},O.prototype.addNode=function(x){var E=this.tagStack[this.tagStack.length-1],P=E.children[E.children.length-1];this.options.withStartIndices&&(x.startIndex=this.parser.startIndex),this.options.withEndIndices&&(x.endIndex=this.parser.endIndex),E.children.push(x),P&&(x.prev=P,P.next=x),x.parent=E,this.lastNode=null},O}();C.DomHandler=M,C.default=M},3416:function(Le,C,G){"use strict";var b,le=this&&this.__extends||(b=function(K,F){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,F)},function(K,F){if("function"!=typeof F&&null!==F)throw new TypeError("Class extends value "+String(F)+" is not a constructor or null");function oe(){this.constructor=K}b(K,F),K.prototype=null===F?Object.create(F):(oe.prototype=F.prototype,new oe)}),ce=this&&this.__assign||function(){return ce=Object.assign||function(b){for(var K,F=1,oe=arguments.length;F0?this.children[this.children.length-1]:null},enumerable:!1,configurable:!0}),Object.defineProperty(K.prototype,"childNodes",{get:function(){return this.children},set:function(F){this.children=F},enumerable:!1,configurable:!0}),K}(q);C.NodeWithChildren=E;var P=function(b){function K(F){return b.call(this,Y.ElementType.Root,F)||this}return le(K,b),K}(E);C.Document=P;var D=function(b){function K(F,oe,_e,V){void 0===_e&&(_e=[]),void 0===V&&(V="script"===F?Y.ElementType.Script:"style"===F?Y.ElementType.Style:Y.ElementType.Tag);var L=b.call(this,V,_e)||this;return L.name=F,L.attribs=oe,L}return le(K,b),Object.defineProperty(K.prototype,"tagName",{get:function(){return this.name},set:function(F){this.name=F},enumerable:!1,configurable:!0}),Object.defineProperty(K.prototype,"attributes",{get:function(){var F=this;return Object.keys(this.attribs).map(function(oe){var _e,V;return{name:oe,value:F.attribs[oe],namespace:null===(_e=F["x-attribsNamespace"])||void 0===_e?void 0:_e[oe],prefix:null===(V=F["x-attribsPrefix"])||void 0===V?void 0:V[oe]}})},enumerable:!1,configurable:!0}),K}(E);function k(b){return(0,Y.isTag)(b)}function A(b){return b.type===Y.ElementType.CDATA}function I(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 W(b,K){var F;if(void 0===K&&(K=!1),I(b))F=new M(b.data);else if(B(b))F=new O(b.data);else if(k(b)){var oe=K?ie(b.children):[],_e=new D(b.name,ce({},b.attribs),oe);oe.forEach(function(pe){return pe.parent=_e}),null!=b.namespace&&(_e.namespace=b.namespace),b["x-attribsNamespace"]&&(_e["x-attribsNamespace"]=ce({},b["x-attribsNamespace"])),b["x-attribsPrefix"]&&(_e["x-attribsPrefix"]=ce({},b["x-attribsPrefix"])),F=_e}else if(A(b)){oe=K?ie(b.children):[];var V=new E(Y.ElementType.CDATA,oe);oe.forEach(function(ue){return ue.parent=V}),F=V}else if(re(b)){oe=K?ie(b.children):[];var L=new P(oe);oe.forEach(function(ue){return ue.parent=L}),b["x-mode"]&&(L["x-mode"]=b["x-mode"]),F=L}else{if(!z(b))throw new Error("Not implemented yet: ".concat(b.type));var J=new x(b.name,b.data);null!=b["x-name"]&&(J["x-name"]=b["x-name"],J["x-publicId"]=b["x-publicId"],J["x-systemId"]=b["x-systemId"]),F=J}return F.startIndex=b.startIndex,F.endIndex=b.endIndex,null!=b.sourceCodeLocation&&(F.sourceCodeLocation=b.sourceCodeLocation),F}function ie(b){for(var K=b.map(function(oe){return W(oe,!0)}),F=1;F{"use strict";Object.defineProperty(C,"__esModule",{value:!0}),C.getFeed=void 0;var le=G(4543),ce=G(9735);C.getFeed=function Y(k){var A=x(D,k);return A?"feed"===A.name?function Q(k){var A,I=k.children,B={type:"atom",items:(0,ce.getElementsByTagName)("entry",I).map(function(Ce){var W,ie=Ce.children,b={media:O(ie)};P(b,"id","id",ie),P(b,"title","title",ie);var K=null===(W=x("link",ie))||void 0===W?void 0:W.attribs.href;K&&(b.link=K);var F=E("summary",ie)||E("content",ie);F&&(b.description=F);var oe=E("updated",ie);return oe&&(b.pubDate=new Date(oe)),b})};P(B,"id","id",I),P(B,"title","title",I);var z=null===(A=x("link",I))||void 0===A?void 0:A.attribs.href;z&&(B.link=z),P(B,"description","subtitle",I);var re=E("updated",I);return re&&(B.updated=new Date(re)),P(B,"author","email",I,!0),B}(A):function q(k){var A,I,B=null!==(I=null===(A=x("channel",k.children))||void 0===A?void 0:A.children)&&void 0!==I?I:[],z={type:k.name.substr(0,3),id:"",items:(0,ce.getElementsByTagName)("item",k.children).map(function(Ce){var W=Ce.children,ie={media:O(W)};P(ie,"id","guid",W),P(ie,"title","title",W),P(ie,"link","link",W),P(ie,"description","description",W);var b=E("pubDate",W);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}(A):null};var N=["url","type","lang"],M=["fileSize","bitrate","framerate","samplingrate","channels","duration","height","width"];function O(k){return(0,ce.getElementsByTagName)("media:content",k).map(function(A){for(var I=A.attribs,B={medium:I.medium,isDefault:!!I.isDefault},z=0,re=N;z{"use strict";Object.defineProperty(C,"__esModule",{value:!0}),C.uniqueSort=C.compareDocumentPosition=C.removeSubsets=void 0;var le=G(2962);function Y(q,N){var M=[],O=[];if(q===N)return 0;for(var x=(0,le.hasChildren)(q)?q:q.parent;x;)M.unshift(x),x=x.parent;for(x=(0,le.hasChildren)(N)?N:N.parent;x;)O.unshift(x),x=x.parent;for(var E=Math.min(M.length,O.length),P=0;Pk.indexOf(I)?D===N?20:4:D===q?10:2}C.removeSubsets=function ce(q){for(var N=q.length;--N>=0;){var M=q[N];if(N>0&&q.lastIndexOf(M,N-1)>=0)q.splice(N,1);else for(var O=M.parent;O;O=O.parent)if(q.includes(O)){q.splice(N,1);break}}return q},C.compareDocumentPosition=Y,C.uniqueSort=function Q(q){return(q=q.filter(function(N,M,O){return!O.includes(N,M+1)})).sort(function(N,M){var O=Y(N,M);return 2&O?-1:4&O?1:0}),q}},2155:function(Le,C,G){"use strict";var le=this&&this.__createBinding||(Object.create?function(Q,q,N,M){void 0===M&&(M=N),Object.defineProperty(Q,M,{enumerable:!0,get:function(){return q[N]}})}:function(Q,q,N,M){void 0===M&&(M=N),Q[M]=q[N]}),ce=this&&this.__exportStar||function(Q,q){for(var N in Q)"default"!==N&&!Object.prototype.hasOwnProperty.call(q,N)&&le(q,Q,N)};Object.defineProperty(C,"__esModule",{value:!0}),C.hasChildren=C.isDocument=C.isComment=C.isText=C.isCDATA=C.isTag=void 0,ce(G(4543),C),ce(G(4757),C),ce(G(6525),C),ce(G(7237),C),ce(G(9735),C),ce(G(485),C),ce(G(6534),C);var Y=G(2962);Object.defineProperty(C,"isTag",{enumerable:!0,get:function(){return Y.isTag}}),Object.defineProperty(C,"isCDATA",{enumerable:!0,get:function(){return Y.isCDATA}}),Object.defineProperty(C,"isText",{enumerable:!0,get:function(){return Y.isText}}),Object.defineProperty(C,"isComment",{enumerable:!0,get:function(){return Y.isComment}}),Object.defineProperty(C,"isDocument",{enumerable:!0,get:function(){return Y.isDocument}}),Object.defineProperty(C,"hasChildren",{enumerable:!0,get:function(){return Y.hasChildren}})},9735:(Le,C,G)=>{"use strict";Object.defineProperty(C,"__esModule",{value:!0}),C.getElementsByTagType=C.getElementsByTagName=C.getElementById=C.getElements=C.testElement=void 0;var le=G(2962),ce=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(A){return(0,le.isTag)(A)&&k(A.attribs[D])}:function(A){return(0,le.isTag)(A)&&A.attribs[D]===k}}function q(D,k){return function(A){return D(A)||k(A)}}function N(D){var k=Object.keys(D).map(function(A){var I=D[A];return Object.prototype.hasOwnProperty.call(Y,A)?Y[A](I):Q(A,I)});return 0===k.length?null:k.reduce(q)}C.testElement=function M(D,k){var A=N(D);return!A||A(k)},C.getElements=function O(D,k,A,I){void 0===I&&(I=1/0);var B=N(D);return B?(0,ce.filter)(B,k,A,I):[]},C.getElementById=function x(D,k,A){return void 0===A&&(A=!0),Array.isArray(k)||(k=[k]),(0,ce.findOne)(Q("id",D),k,A)},C.getElementsByTagName=function E(D,k,A,I){return void 0===A&&(A=!0),void 0===I&&(I=1/0),(0,ce.filter)(Y.tag_name(D),k,A,I)},C.getElementsByTagType=function P(D,k,A,I){return void 0===A&&(A=!0),void 0===I&&(I=1/0),(0,ce.filter)(Y.tag_type(D),k,A,I)}},6525:(Le,C)=>{"use strict";function G(N){if(N.prev&&(N.prev.next=N.next),N.next&&(N.next.prev=N.prev),N.parent){var M=N.parent.children;M.splice(M.lastIndexOf(N),1)}}Object.defineProperty(C,"__esModule",{value:!0}),C.prepend=C.prependChild=C.append=C.appendChild=C.replaceElement=C.removeElement=void 0,C.removeElement=G,C.replaceElement=function le(N,M){var O=M.prev=N.prev;O&&(O.next=M);var x=M.next=N.next;x&&(x.prev=M);var E=M.parent=N.parent;if(E){var P=E.children;P[P.lastIndexOf(N)]=M}},C.appendChild=function ce(N,M){if(G(M),M.next=null,M.parent=N,N.children.push(M)>1){var O=N.children[N.children.length-2];O.next=M,M.prev=O}else M.prev=null},C.append=function Y(N,M){G(M);var O=N.parent,x=N.next;if(M.next=x,M.prev=N,N.next=M,M.parent=O,x){if(x.prev=M,O){var E=O.children;E.splice(E.lastIndexOf(x),0,M)}}else O&&O.children.push(M)},C.prependChild=function Q(N,M){if(G(M),M.parent=N,M.prev=null,1!==N.children.unshift(M)){var O=N.children[1];O.prev=M,M.next=O}else M.next=null},C.prepend=function q(N,M){G(M);var O=N.parent;if(O){var x=O.children;x.splice(x.indexOf(N),0,M)}N.prev&&(N.prev.next=M),M.parent=O,M.prev=N.prev,M.next=N,N.prev=M}},7237:(Le,C,G)=>{"use strict";Object.defineProperty(C,"__esModule",{value:!0}),C.findAll=C.existsOne=C.findOne=C.findOneChild=C.find=C.filter=void 0;var le=G(2962);function Y(O,x,E,P){for(var D=[],k=0,A=x;k0){var B=Y(O,I.children,E,P);if(D.push.apply(D,B),(P-=B.length)<=0)break}}return D}C.filter=function ce(O,x,E,P){return void 0===E&&(E=!0),void 0===P&&(P=1/0),Array.isArray(x)||(x=[x]),Y(O,x,E,P)},C.find=Y,C.findOneChild=function Q(O,x){return x.find(O)},C.findOne=function q(O,x,E){void 0===E&&(E=!0);for(var P=null,D=0;D0&&(P=q(O,k.children)))}return P},C.existsOne=function N(O,x){return x.some(function(E){return(0,le.isTag)(E)&&(O(E)||E.children.length>0&&N(O,E.children))})},C.findAll=function M(O,x){for(var E,k,P=[],D=x.filter(le.isTag);k=D.shift();){var A=null===(E=k.children)||void 0===E?void 0:E.filter(le.isTag);A&&A.length>0&&D.unshift.apply(D,A),O(k)&&P.push(k)}return P}},4543:function(Le,C,G){"use strict";var le=this&&this.__importDefault||function(E){return E&&E.__esModule?E:{default:E}};Object.defineProperty(C,"__esModule",{value:!0}),C.innerText=C.textContent=C.getText=C.getInnerHTML=C.getOuterHTML=void 0;var ce=G(2962),Y=le(G(3192)),Q=G(6316);function q(E,P){return(0,Y.default)(E,P)}C.getOuterHTML=q,C.getInnerHTML=function N(E,P){return(0,ce.hasChildren)(E)?E.children.map(function(D){return q(D,P)}).join(""):""},C.getText=function M(E){return Array.isArray(E)?E.map(M).join(""):(0,ce.isTag)(E)?"br"===E.name?"\n":M(E.children):(0,ce.isCDATA)(E)?M(E.children):(0,ce.isText)(E)?E.data:""},C.textContent=function O(E){return Array.isArray(E)?E.map(O).join(""):(0,ce.hasChildren)(E)&&!(0,ce.isComment)(E)?O(E.children):(0,ce.isText)(E)?E.data:""},C.innerText=function x(E){return Array.isArray(E)?E.map(x).join(""):(0,ce.hasChildren)(E)&&(E.type===Q.ElementType.Tag||(0,ce.isCDATA)(E))?x(E.children):(0,ce.isText)(E)?E.data:""}},4757:(Le,C,G)=>{"use strict";Object.defineProperty(C,"__esModule",{value:!0}),C.prevElementSibling=C.nextElementSibling=C.getName=C.hasAttrib=C.getAttributeValue=C.getSiblings=C.getParent=C.getChildren=void 0;var le=G(2962),ce=[];function Y(P){var D;return null!==(D=P.children)&&void 0!==D?D:ce}function Q(P){return P.parent||null}C.getChildren=Y,C.getParent=Q,C.getSiblings=function q(P){var A=Q(P);if(null!=A)return Y(A);for(var I=[P],B=P.prev,z=P.next;null!=B;)I.unshift(B),B=B.prev;for(;null!=z;)I.push(z),z=z.next;return I},C.getAttributeValue=function N(P,D){var k;return null===(k=P.attribs)||void 0===k?void 0:k[D]},C.hasAttrib=function M(P,D){return null!=P.attribs&&Object.prototype.hasOwnProperty.call(P.attribs,D)&&null!=P.attribs[D]},C.getName=function O(P){return P.name},C.nextElementSibling=function x(P){for(var k=P.next;null!==k&&!(0,le.isTag)(k);)k=k.next;return k},C.prevElementSibling=function E(P){for(var k=P.prev;null!==k&&!(0,le.isTag)(k);)k=k.prev;return k}},547:function(Le,C,G){"use strict";var le=this&&this.__importDefault||function(E){return E&&E.__esModule?E:{default:E}};Object.defineProperty(C,"__esModule",{value:!0}),C.decodeHTML=C.decodeHTMLStrict=C.decodeXML=void 0;var ce=le(G(9323)),Y=le(G(9591)),Q=le(G(2586)),q=le(G(672)),N=/&(?:[a-zA-Z0-9]+|#[xX][\da-fA-F]+|#\d+);/g;function M(E){var P=x(E);return function(D){return String(D).replace(N,P)}}C.decodeXML=M(Q.default),C.decodeHTMLStrict=M(ce.default);var O=function(E,P){return E65535&&(q-=65536,N+=String.fromCharCode(q>>>10&1023|55296),q=56320|1023&q),N+String.fromCharCode(q)};C.default=function Q(q){return q>=55296&&q<=57343||q>1114111?"\ufffd":(q in ce.default&&(q=ce.default[q]),Y(q))}},3854:function(Le,C,G){"use strict";var le=this&&this.__importDefault||function(re){return re&&re.__esModule?re:{default:re}};Object.defineProperty(C,"__esModule",{value:!0}),C.escapeUTF8=C.escape=C.encodeNonAsciiHTML=C.encodeHTML=C.encodeXML=void 0;var Y=O(le(G(2586)).default),Q=x(Y);C.encodeXML=z(Y);var N=O(le(G(9323)).default),M=x(N);function O(re){return Object.keys(re).sort().reduce(function(Ce,W){return Ce[re[W]]="&"+W+";",Ce},{})}function x(re){for(var Ce=[],W=[],ie=0,b=Object.keys(re);ie1?P(re):re.charCodeAt(0)).toString(16).toUpperCase()+";"}var A=new RegExp(Q.source+"|"+E.source,"g");function z(re){return function(Ce){return Ce.replace(A,function(W){return re[W]||D(W)})}}C.escape=function I(re){return re.replace(A,D)},C.escapeUTF8=function B(re){return re.replace(Q,D)}},9673:(Le,C,G)=>{"use strict";Object.defineProperty(C,"__esModule",{value:!0}),C.decodeXMLStrict=C.decodeHTML5Strict=C.decodeHTML4Strict=C.decodeHTML5=C.decodeHTML4=C.decodeHTMLStrict=C.decodeHTML=C.decodeXML=C.encodeHTML5=C.encodeHTML4=C.escapeUTF8=C.escape=C.encodeNonAsciiHTML=C.encodeHTML=C.encodeXML=C.encode=C.decodeStrict=C.decode=void 0;var le=G(547),ce=G(3854);C.decode=function Y(O,x){return(!x||x<=0?le.decodeXML:le.decodeHTML)(O)},C.decodeStrict=function Q(O,x){return(!x||x<=0?le.decodeXML:le.decodeHTMLStrict)(O)},C.encode=function q(O,x){return(!x||x<=0?ce.encodeXML:ce.encodeHTML)(O)};var N=G(3854);Object.defineProperty(C,"encodeXML",{enumerable:!0,get:function(){return N.encodeXML}}),Object.defineProperty(C,"encodeHTML",{enumerable:!0,get:function(){return N.encodeHTML}}),Object.defineProperty(C,"encodeNonAsciiHTML",{enumerable:!0,get:function(){return N.encodeNonAsciiHTML}}),Object.defineProperty(C,"escape",{enumerable:!0,get:function(){return N.escape}}),Object.defineProperty(C,"escapeUTF8",{enumerable:!0,get:function(){return N.escapeUTF8}}),Object.defineProperty(C,"encodeHTML4",{enumerable:!0,get:function(){return N.encodeHTML}}),Object.defineProperty(C,"encodeHTML5",{enumerable:!0,get:function(){return N.encodeHTML}});var M=G(547);Object.defineProperty(C,"decodeXML",{enumerable:!0,get:function(){return M.decodeXML}}),Object.defineProperty(C,"decodeHTML",{enumerable:!0,get:function(){return M.decodeHTML}}),Object.defineProperty(C,"decodeHTMLStrict",{enumerable:!0,get:function(){return M.decodeHTMLStrict}}),Object.defineProperty(C,"decodeHTML4",{enumerable:!0,get:function(){return M.decodeHTML}}),Object.defineProperty(C,"decodeHTML5",{enumerable:!0,get:function(){return M.decodeHTML}}),Object.defineProperty(C,"decodeHTML4Strict",{enumerable:!0,get:function(){return M.decodeHTMLStrict}}),Object.defineProperty(C,"decodeHTML5Strict",{enumerable:!0,get:function(){return M.decodeHTMLStrict}}),Object.defineProperty(C,"decodeXMLStrict",{enumerable:!0,get:function(){return M.decodeXML}})},3537:function(Le,C,G){var le;Le=G.nmd(Le),function(ce){"object"==typeof global&&global;var N=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,M=/[\x01-\x7F]/g,O=/[\x01-\t\x0B\f\x0E-\x1F\x7F\x81\x8D\x8F\x90\x9D\xA0-\uFFFF]/g,x=/<\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])/,A=/[\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]/,I=/&(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"},Ce=[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],W=String.fromCharCode,b={}.hasOwnProperty,K=function(Me,Ve){return b.call(Me,Ve)},oe=function(Me,Ve){if(!Me)return Ve;var ye,se={};for(ye in Ve)se[ye]=K(Me,ye)?Me[ye]:Ve[ye];return se},_e=function(Me,Ve){var se="";return Me>=55296&&Me<=57343||Me>1114111?(Ve&&J("character reference outside the permissible Unicode range"),"\ufffd"):K(re,Me)?(Ve&&J("disallowed character reference"),re[Me]):(Ve&&function(Me,Ve){for(var se=-1,ye=Me.length;++se65535&&(se+=W((Me-=65536)>>>10&1023|55296),Me=56320|1023&Me),se+=W(Me))},V=function(Me){return"&#x"+Me.toString(16).toUpperCase()+";"},L=function(Me){return"&#"+Me+";"},J=function(Me){throw Error("Parse error: "+Me)},pe=function(Me,Ve){(Ve=oe(Ve,pe.options)).strict&&A.test(Me)&&J("forbidden code point");var be=Ve.useNamedReferences,ae=Ve.allowUnsafeSymbols,R=Ve.decimal?L:V,We=function(Ge){return R(Ge.charCodeAt(0))};return Ve.encodeEverything?(Me=Me.replace(M,function(Ge){return be&&K(E,Ge)?"&"+E[Ge]+";":We(Ge)}),be&&(Me=Me.replace(/>\u20D2/g,">⃒").replace(/<\u20D2/g,"<⃒").replace(/fj/g,"fj")),be&&(Me=Me.replace(x,function(Ge){return"&"+E[Ge]+";"}))):be?(ae||(Me=Me.replace(P,function(Ge){return"&"+E[Ge]+";"})),Me=(Me=Me.replace(/>\u20D2/g,">⃒").replace(/<\u20D2/g,"<⃒")).replace(x,function(Ge){return"&"+E[Ge]+";"})):ae||(Me=Me.replace(P,We)),Me.replace(N,function(Ge){var Nt=Ge.charCodeAt(0),cn=Ge.charCodeAt(1);return R(1024*(Nt-55296)+cn-56320+65536)}).replace(O,We)};pe.options={allowUnsafeSymbols:!1,encodeEverything:!1,strict:!1,useNamedReferences:!1,decimal:!1};var ue=function(Me,Ve){var se=(Ve=oe(Ve,ue.options)).strict;return se&&k.test(Me)&&J("malformed character reference"),Me.replace(I,function(ye,be,ae,R,We,Ge,Nt,cn,hi){var ji,Ys,gh,_h,vt,ko;return be?B[vt=be]:ae?(vt=ae,(ko=R)&&Ve.isAttributeValue?(se&&"="==ko&&J("`&` did not start a character reference"),ye):(se&&J("named character reference was not terminated by a semicolon"),z[vt]+(ko||""))):We?(gh=We,Ys=Ge,se&&!Ys&&J("character reference was not terminated by a semicolon"),ji=parseInt(gh,10),_e(ji,se)):Nt?(_h=Nt,Ys=cn,se&&!Ys&&J("character reference was not terminated by a semicolon"),ji=parseInt(_h,16),_e(ji,se)):(se&&J("named character reference was not terminated by a semicolon"),ye)})};ue.options={isAttributeValue:!1,strict:!1};var je={version:"1.2.0",encode:pe,decode:ue,escape:function(Me){return Me.replace(P,function(Ve){return D[Ve]})},unescape:ue};void 0!==(le=function(){return je}.call(C,G,C,Le))&&(Le.exports=le)}()},4856:(Le,C,G)=>{Le.exports=G(1652)},7287:(Le,C,G)=>{G(9542);const{trimCharacter:ce}=G(1458),{BlockStackItem:Q,TableCellStackItem:q,TableRowStackItem:N,TableStackItem:M,TransformerStackItem:O}=G(6237),{tableToString:x}=G(8186),{WhitespaceProcessor:E}=G(7139);function D(A){if(!(A instanceof Q||A instanceof q))throw new Error("Only blocks and table cells can be requested for text contents.");return A.inlineTextBuilder.isEmpty()?A.rawText:A.rawText+A.inlineTextBuilder.toString()}function k(A,I,B,z){if(!(A instanceof Q||A instanceof q))throw new Error("Only blocks and table cells can contain text.");const re=D(A),Ce=Math.max(A.stashedLineBreaks,B);A.inlineTextBuilder.clear(),re?A.rawText=re+"\n".repeat(Ce)+I:(A.rawText=I,A.leadingLineBreaks=Ce),A.stashedLineBreaks=z}G(4563),Le.exports={BlockTextBuilder:class P{constructor(I,B){this.options=I,this.picker=B,this.whitespaceProcessor=new E(I),this._stackItem=new Q(I),this._wordTransformer=void 0}pushWordTransform(I){this._wordTransformer=new O(this._wordTransformer,I)}popWordTransform(){if(!this._wordTransformer)return;const I=this._wordTransformer.transform;return this._wordTransformer=this._wordTransformer.next,I}_getCombinedWordTransformer(){const I=(B,z)=>z?I(z.transform(B),z.next):B;return B=>I(B,this._wordTransformer)}_popStackItem(){const I=this._stackItem;return this._stackItem=I.next,I}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(I,B={}){this._addInline(I,"object"==typeof B?B:{noWordTransform:B})}_addInline(I,{noWordTransform:B=!1}={}){if(this._stackItem instanceof Q||this._stackItem instanceof q){if(this._stackItem.isPre)return void(this._stackItem.rawText+=I);if(0!==I.length&&(!this._stackItem.stashedLineBreaks||this.whitespaceProcessor.testContainsWords(I))){if(this.options.preserveNewlines){const z=this.whitespaceProcessor.countNewlinesNoWords(I);if(z>0)return void this._stackItem.inlineTextBuilder.startNewLine(z)}this._stackItem.stashedLineBreaks&&this._stackItem.inlineTextBuilder.startNewLine(this._stackItem.stashedLineBreaks),this.whitespaceProcessor.shrinkWrapAdd(I,this._stackItem.inlineTextBuilder,this._wordTransformer&&!B?this._getCombinedWordTransformer():void 0),this._stackItem.stashedLineBreaks=0}}}openBlock(I={},B,z){this._openBlock("object"==typeof I?I:{isPre:z,leadingLineBreaks:I,reservedLineLength:B})}_openBlock({leadingLineBreaks:I=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,I,re),z&&(this._stackItem.isPre=!0)}closeBlock(I={},B){this._closeBlock("object"==typeof I?I:{trailingLineBreaks:I,blockTransform:B})}_closeBlock({trailingLineBreaks:I=1,blockTransform:B}={}){const z=this._popStackItem(),re=B?B(D(z)):D(z);k(this._stackItem,re,z.leadingLineBreaks,Math.max(z.stashedLineBreaks,I))}openTable(){this._stackItem=new M(this._stackItem)}openTableRow(){if(!(this._stackItem instanceof M))throw new Error("Can't add table row to something that is not a table! Check the formatter.");this._stackItem=new N(this._stackItem)}openTableCell(I={}){this._openTableCell("object"==typeof I?I:{maxColumnWidth:I})}_openTableCell({maxColumnWidth:I}={}){if(!(this._stackItem instanceof N))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,I)}closeTableCell(I={},B){this._closeTableCell("object"==typeof I?I:{colspan:I,rowspan:B})}_closeTableCell({colspan:I=1,rowspan:B=1}={}){const z=this._popStackItem(),re=ce(D(z),"\n");z.next.cells.push({colspan:I,rowspan:B,text:re})}closeTableRow(){const I=this._popStackItem();I.next.rows.push(I.cells)}closeTable(I={},B,z,re){this._closeTable("object"==typeof I?I:{colSpacing:I,leadingLineBreaks:z,rowSpacing:B,trailingLineBreaks:re})}_closeTable({colSpacing:I=3,rowSpacing:B=0,leadingLineBreaks:z=2,trailingLineBreaks:re=2}={}){const Ce=this._popStackItem(),W=x(Ce.rows,B,I);W&&k(this._stackItem,W,z,re)}toString(){return D(this._stackItem.getRoot())}}}},7723:(Le,C,G)=>{const le=G(3537),{get:ce,numberToLetterSequence:Y,numberToRoman:Q,splitClassesAndIds:q,trimCharacter:N}=G(1458);function x(V,L,J,pe){J.openBlock({leadingLineBreaks:pe.leadingLineBreaks}),L(V.children,J),J.closeBlock({trailingLineBreaks:pe.trailingLineBreaks})}function z(V,L){return L?("string"==typeof L[0]?L[0]:"[")+V+("string"==typeof L[1]?L[1]:"]"):V}function W(V,L,J,pe,ue){const Be="li"===ce(V,["parent","name"]);let je=0;const Tt=(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?ue().trimStart():ue();return ye.length>je&&(je=ye.length),{node:se,prefix:ye}});if(!Tt.length)return;const Me=je,Ve="\n"+" ".repeat(Me);J.openBlock({leadingLineBreaks:Be?1:pe.leadingLineBreaks||2});for(const{node:se,prefix:ye}of Tt)J.openBlock({leadingLineBreaks:1,reservedLineLength:Me}),L([se],J),J.closeBlock({trailingLineBreaks:1,blockTransform:be=>ye+" ".repeat(Me-ye.length)+be.replace(/\n/g,Ve)});J.closeBlock({trailingLineBreaks:Be?1:pe.trailingLineBreaks||2})}function _e(V,L,J,pe){function ue(je){const Tt=+ce(je,["attribs","colspan"])||1,Me=+ce(je,["attribs","rowspan"])||1;J.openTableCell({maxColumnWidth:pe.maxColumnWidth}),L(je.children,J),J.closeTableCell({colspan:Tt,rowspan:Me})}J.openTable(),V.children.forEach(function Be(je){if("tag"!==je.type)return;const Tt=!1!==pe.uppercaseHeaderCells?Me=>{J.pushWordTransform(Ve=>Ve.toUpperCase()),ue(Me),J.popWordTransform()}:ue;switch(je.name){case"thead":case"tbody":case"tfoot":case"center":return void je.children.forEach(Be);case"tr":J.openTableRow();for(const Me of je.children)if("tag"===Me.type)switch(Me.name){case"th":Tt(Me);break;case"td":ue(Me)}J.closeTableRow()}}),J.closeTable({colSpacing:pe.colSpacing,leadingLineBreaks:pe.leadingLineBreaks,rowSpacing:pe.rowSpacing,trailingLineBreaks:pe.trailingLineBreaks})}G(4563),Le.exports={anchor:function Ce(V,L,J,pe){const Be=function ue(){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,J.options.decodeOptions))}();if(Be){let je="";J.pushWordTransform(Me=>(Me&&(je+=Me),Me)),L(V.children,J),J.popWordTransform(),pe.hideLinkHrefIfSameAsText&&Be===je||J.addInline(je?" "+z(Be,pe.linkBrackets):Be,{noWordTransform:!0})}else L(V.children,J)},block:x,blockquote:function B(V,L,J,pe){J.openBlock({leadingLineBreaks:pe.leadingLineBreaks||2,reservedLineLength:2}),L(V.children,J),J.closeBlock({trailingLineBreaks:pe.trailingLineBreaks||2,blockTransform:ue=>(!1!==pe.trimEmptyLines?N(ue,"\n"):ue).split("\n").map(Be=>"> "+Be).join("\n")})},dataTable:_e,heading:function I(V,L,J,pe){J.openBlock({leadingLineBreaks:pe.leadingLineBreaks||2}),!1!==pe.uppercase?(J.pushWordTransform(ue=>ue.toUpperCase()),L(V.children,J),J.popWordTransform()):L(V.children,J),J.closeBlock({trailingLineBreaks:pe.trailingLineBreaks||2})},horizontalLine:function D(V,L,J,pe){J.openBlock({leadingLineBreaks:pe.leadingLineBreaks||2}),J.addInline("-".repeat(pe.length||J.options.wordwrap||40)),J.closeBlock({trailingLineBreaks:pe.trailingLineBreaks||2})},image:function re(V,L,J,pe){const ue=V.attribs||{},Be=ue.alt?le.decode(ue.alt,J.options.decodeOptions):"",je=ue.src?pe.baseUrl&&0===ue.src.indexOf("/")?pe.baseUrl+ue.src:ue.src:"",Tt=je?Be?Be+" "+z(je,pe.linkBrackets):z(je,pe.linkBrackets):Be;J.addInline(Tt)},inline:function O(V,L,J,pe){L(V.children,J)},lineBreak:function E(V,L,J,pe){J.addLineBreak()},orderedList:function b(V,L,J,pe){let ue=Number(V.attribs.start||"1");const Be=function K(V="1"){switch(V){case"a":return L=>Y(L,"a");case"A":return L=>Y(L,"A");case"i":return L=>Q(L).toLowerCase();case"I":return L=>Q(L);default:return L=>L.toString()}}(V.attribs.type);return W(V,L,J,pe,()=>" "+Be(ue++)+". ")},paragraph:function k(V,L,J,pe){J.openBlock({leadingLineBreaks:pe.leadingLineBreaks||2}),L(V.children,J),J.closeBlock({trailingLineBreaks:pe.trailingLineBreaks||2})},pre:function A(V,L,J,pe){J.openBlock({isPre:!0,leadingLineBreaks:pe.leadingLineBreaks||2}),L(V.children,J),J.closeBlock({trailingLineBreaks:pe.trailingLineBreaks||2})},skip:function M(V,L,J,pe){},table:function oe(V,L,J,pe){return function F(V,L){if(!0===L)return!0;if(!V)return!1;const{classes:J,ids:pe}=q(L),ue=(V.class||"").split(" "),Be=(V.id||"").split(" ");return ue.some(je=>J.includes(je))||Be.some(je=>pe.includes(je))}(V.attribs,J.options.tables)?_e(V,L,J,pe):x(V,L,J,pe)},unorderedList:function ie(V,L,J,pe){const ue=pe.itemPrefix||" * ";return W(V,L,J,pe,()=>ue)},wbr:function P(V,L,J,pe){J.addWordBreakOpportunity()}}},1458:(Le,C,G)=>{const le=G(4999),q=["I","X","C","M"],N=["V","L","D"],P=(D,k,A)=>[...k];Le.exports={get:function x(D,k){for(const A of k){if(!D)return;D=D[A]}return D},limitedDepthRecursive:function Y(D,k,A=(()=>{})){if(void 0===D){const I=function(...B){return k(I,...B)};return I}return D>=0?function(...I){return k(Y(D-1,k,A),...I)}:A},mergeDuplicatesPreferLast:function E(D,k){const A=new Map;for(let I=D.length;I-- >0;){const B=D[I],z=k(B);A.set(z,A.has(z)?le(B,A.get(z),{arrayMerge:P}):B)}return[...A.values()].reverse()},numberToLetterSequence:function Q(D,k="a",A=26){const I=[];do{I.push((D-=1)%A),D=D/A>>0}while(D>0);const B=k.charCodeAt(0);return I.reverse().map(z=>String.fromCharCode(B+z)).join("")},numberToRoman:function M(D){return[...D+""].map(k=>+k).reverse().map((k,A)=>k%5<4?(k<5?"":N[A])+q[A].repeat(k%5):q[A]+(k<5?N[A]:q[A+1])).reverse().join("")},splitClassesAndIds:function ce(D){const k=[],A=[];for(const I of D)I.startsWith(".")?k.push(I.substring(1)):I.startsWith("#")&&A.push(I.substring(1));return{classes:k,ids:A}},trimCharacter:function O(D,k){let A=0,I=D.length;for(;AA&&D[I-1]===k;)--I;return A>0||I{const{hp2Builder:le}=G(5999),ce=G(4999),Y=G(3537),Q=G(534),q=G(9542),{BlockTextBuilder:N}=G(7287),M=G(7723),{limitedDepthRecursive:O,mergeDuplicatesPreferLast:x,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,F)=>[...K],A=(b,K,F)=>b.some(oe=>"object"==typeof oe)?((b,K,F)=>[...b,...K])(b,K):k(0,K);function I(b={}){(b=ce(P,b,{arrayMerge:k,customMerge:L=>"selectors"===L?A:void 0})).formatters=Object.assign({},M,b.formatters),b.selectors=x(b.selectors,L=>L.selector),function re(b){const K=b.selectors;if(b.tags){const _e=Object.entries(b.tags).map(([V,L])=>({...L,selector:V||"*"}));K.push(..._e)}function F(_e,V,L){const J=V.pop();for(const pe of V){let ue=_e[pe];ue||(ue={},_e[pe]=ue),_e=ue}_e[J]=L}function oe(_e,V,L){if(void 0!==b[_e])for(const J of K)J.format===V&&F(J,["options",L],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)&&(F(_e,["options","leadingLineBreaks"],1),F(_e,["options","trailingLineBreaks"],1));if(b.baseElement){const _e=b.baseElement;F(b,["baseElements","selectors"],Array.isArray(_e)?_e:[_e])}void 0!==b.returnDomByDefault&&F(b,["baseElements","returnDomByDefault"],b.returnDomByDefault);for(const _e of K)"anchor"===_e.format&&E(_e,["options","noLinkBrackets"])&&F(_e,["options","linkBrackets"],!1)}(b);const K=b.selectors.filter(L=>!L.format);if(K.length)throw new Error("Following selectors have no specified format: "+K.map(L=>`\`${L.selector}\``).join(", "));const F=new q.DecisionTree(b.selectors.map(L=>[L.selector,L])).build(le),oe=new q.DecisionTree(b.baseElements.selectors.map((L,J)=>[L,J+1])).build(le);function _e(L){return function Ce(b,K,F){const oe=[];return O(K.limits.maxDepth,function _e(L,J){J=J.slice(0,K.limits.maxChildNodes);for(const pe of J){if("tag"!==pe.type)continue;const ue=F.pick1(pe);if(ue>0?oe.push({selectorIndex:ue,element:pe}):pe.children&&L(pe.children),oe.length>=K.limits.maxBaseElements)return}})(b),"occurrence"!==K.baseElements.orderBy&&oe.sort((L,J)=>L.selectorIndex-J.selectorIndex),K.baseElements.returnDomByDefault&&0===oe.length?b:oe.map(L=>L.element)}(L,b,oe)}const V=O(b.limits.maxDepth,W,function(L,J){J.addInline(b.limits.ellipsis||"")});return function(L){return function B(b,K,F,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 L=new Q.DomHandler;new Q.Parser(L,{decodeEntities:!1}).parseComplete(b);const J=oe(L.dom),pe=new N(K,F);return _e(J,pe),pe.toString()}(L,b,F,_e,V)}}function z(b,K={}){return I(K)(b)}function W(b,K,F){if(!K)return;const oe=F.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":F.addInline(Y.decode(V.data,oe.decodeOptions));break;case"tag":{const L=F.picker.pick1(V);(0,oe.formatters[L.format])(V,b,F,L.options||{});break}}}Le.exports={compile:I,convert:z,fromString:(b,K={})=>z(b,K),htmlToText:z}},8395:(Le,C,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[N,...M]=this.splitLongWord(Y);Q||this.startNewLine(),this.nextLineWords.push(N),this.nextLineAvailableChars-=N.length;for(const O of M)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 N=Y.substring(0,this.maxLineLength),M=Y.substring(this.maxLineLength),O=N.lastIndexOf(this.wrapCharacters[q]);if(O>-1)Y=N.substring(O+1)+M,Q.push(N.substring(0,O+1));else{if(q++,!(qthis.maxLineLength)continue}else Y=N+M;break}Y=N+M}}return Q.push(Y),Q}}}},6237:(Le,C,G)=>{const{InlineTextBuilder:le}=G(8395);class ce{constructor(x=null){this.next=x}getRoot(){return this.next?this.next:this}}Le.exports={BlockStackItem:class Y extends ce{constructor(x,E=null,P=1,D){super(E),this.leadingLineBreaks=P,this.inlineTextBuilder=new le(x,D),this.rawText="",this.stashedLineBreaks=0,this.isPre=E&&E.isPre}},StackItem:ce,TableCellStackItem:class N extends ce{constructor(x,E=null,P){super(E),this.inlineTextBuilder=new le(x,P),this.rawText="",this.stashedLineBreaks=0,this.isPre=E&&E.isPre}},TableRowStackItem:class q extends ce{constructor(x=null){super(x),this.cells=[],this.isPre=x&&x.isPre}},TableStackItem:class Q extends ce{constructor(x=null){super(x),this.rows=[],this.isPre=x&&x.isPre}},TransformerStackItem:class M extends ce{constructor(x=null,E){super(x),this.transform=E}}}},8186:Le=>{function C(q,N){return q[N]||(q[N]=[]),q[N]}function G(q,N=0){for(;q[N];)N++;return N}function ce(q,N,M,O){for(let x=0;xx?I.length:x}!function le(q,N){for(let M=0;Mx?E:x);const D=[],k=[0];for(let A=0;Az?Ce.length:z}Y(k,A,B.colspan,z+M),B.rendered=!0}I+=B.rowspan}}return D.join("\n")}}},4563:()=>{},7139:(Le,C,G)=>{G(8395),G(4563),Le.exports={WhitespaceProcessor:class Y{constructor(q){this.whitespaceChars=q.preserveNewlines?q.whitespaceCharacters.replace(/\n/g,""):q.whitespaceCharacters;const N=function ce(Q){return[...Q].map(q=>"\\u"+q.charCodeAt(0).toString(16).padStart(4,"0")).join("")}(this.whitespaceChars);if(this.leadingWhitespaceRe=new RegExp(`^[${N}]`),this.trailingWhitespaceRe=new RegExp(`[${N}]$`),this.allWhitespaceOrEmptyRe=new RegExp(`^[${N}]*$`),this.newlineOrNonWhitespaceRe=new RegExp(`(\\n|[^\\n${N}])`,"g"),q.preserveNewlines){const M=new RegExp(`\\n|[^\\n${N}]+`,"gm");this.shrinkWrapAdd=function(O,x,E=(P=>P)){if(!O)return;const P=x.stashedSpace;let D=!1,k=M.exec(O);if(k)for(D=!0,"\n"===k[0]?x.startNewLine():P||this.testLeadingWhitespace(O)?x.pushWord(E(k[0])):x.concatWord(E(k[0]));null!==(k=M.exec(O));)"\n"===k[0]?x.startNewLine():x.pushWord(E(k[0]));x.stashedSpace=P&&!D||this.testTrailingWhitespace(O)}}else{const M=new RegExp(`[^${N}]+`,"g");this.shrinkWrapAdd=function(O,x,E=(P=>P)){if(!O)return;const P=x.stashedSpace;let D=!1,k=M.exec(O);if(k)for(D=!0,P||this.testLeadingWhitespace(O)?x.pushWord(E(k[0])):x.concatWord(E(k[0]));null!==(k=M.exec(O));)x.pushWord(E(k[0]));x.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 M,N=0;for(;null!==(M=this.newlineOrNonWhitespaceRe.exec(q));){if("\n"!==M[0])return 0;N++}return N}}}},1126:function(Le,C,G){"use strict";var W,le=this&&this.__extends||(W=function(ie,b){return(W=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(K,F){K.__proto__=F}||function(K,F){for(var oe in F)Object.prototype.hasOwnProperty.call(F,oe)&&(K[oe]=F[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}W(ie,b),ie.prototype=null===b?Object.create(b):(K.prototype=b.prototype,new K)}),ce=this&&this.__createBinding||(Object.create?function(W,ie,b,K){void 0===K&&(K=b),Object.defineProperty(W,K,{enumerable:!0,get:function(){return ie[b]}})}:function(W,ie,b,K){void 0===K&&(K=b),W[K]=ie[b]}),Y=this&&this.__setModuleDefault||(Object.create?function(W,ie){Object.defineProperty(W,"default",{enumerable:!0,value:ie})}:function(W,ie){W.default=ie}),Q=this&&this.__importStar||function(W){if(W&&W.__esModule)return W;var ie={};if(null!=W)for(var b in W)"default"!==b&&Object.prototype.hasOwnProperty.call(W,b)&&ce(ie,W,b);return Y(ie,W),ie},q=this&&this.__importDefault||function(W){return W&&W.__esModule?W:{default:W}};Object.defineProperty(C,"__esModule",{value:!0}),C.parseFeed=C.FeedHandler=void 0;var N=q(G(2962)),M=Q(G(2155)),O=G(3380),P=function(W){function ie(b,K){return"object"==typeof b&&(K=b=void 0),W.call(this,b,K)||this}return le(ie,W),ie.prototype.onend=function(){var b,K,F=A(re,this.dom);if(F){var oe={};if("feed"===F.name){var _e=F.children;oe.type="atom",z(oe,"id","id",_e),z(oe,"title","title",_e);var V=B("href",A("link",_e));V&&(oe.link=V),z(oe,"description","subtitle",_e),(L=I("updated",_e))&&(oe.updated=new Date(L)),z(oe,"author","email",_e,!0),oe.items=k("entry",_e).map(function(J){var pe={},ue=J.children;z(pe,"id","id",ue),z(pe,"title","title",ue);var Be=B("href",A("link",ue));Be&&(pe.link=Be);var je=I("summary",ue)||I("content",ue);je&&(pe.description=je);var Tt=I("updated",ue);return Tt&&(pe.pubDate=new Date(Tt)),pe.media=D(ue),pe})}else{var L;_e=null!==(K=null===(b=A("channel",F.children))||void 0===b?void 0:b.children)&&void 0!==K?K:[],oe.type=F.name.substr(0,3),oe.id="",z(oe,"title","title",_e),z(oe,"link","link",_e),z(oe,"description","description",_e),(L=I("lastBuildDate",_e))&&(oe.updated=new Date(L)),z(oe,"author","managingEditor",_e,!0),oe.items=k("item",F.children).map(function(ue){var Be={},je=ue.children;z(Be,"id","guid",je),z(Be,"title","title",je),z(Be,"link","link",je),z(Be,"description","description",je);var Tt=I("pubDate",je);return Tt&&(Be.pubDate=new Date(Tt)),Be.media=D(je),Be})}this.feed=oe,this.handleCallback(null)}else this.handleCallback(new Error("couldn't find root of feed"))},ie}(N.default);function D(W){return k("media:content",W).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(W,ie){return M.getElementsByTagName(W,ie,!0)}function A(W,ie){return M.getElementsByTagName(W,ie,!0,1)[0]}function I(W,ie,b){return void 0===b&&(b=!1),M.getText(M.getElementsByTagName(W,ie,b,1)).trim()}function B(W,ie){return ie?ie.attribs[W]:null}function z(W,ie,b,K,F){void 0===F&&(F=!1);var oe=I(b,K,F);oe&&(W[ie]=oe)}function re(W){return"rss"===W||"feed"===W||"rdf:RDF"===W}C.FeedHandler=P,C.parseFeed=function Ce(W,ie){void 0===ie&&(ie={xmlMode:!0});var b=new P(ie);return new O.Parser(b,ie).end(W),b.feed}},3380:function(Le,C,G){"use strict";var le=this&&this.__importDefault||function(P){return P&&P.__esModule?P:{default:P}};Object.defineProperty(C,"__esModule",{value:!0}),C.Parser=void 0;var ce=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"])},N=new Set(["area","base","basefont","br","col","command","embed","frame","hr","img","input","isindex","keygen","link","meta","param","source","track","wbr"]),M=new Set(["math","svg"]),O=new Set(["mi","mo","mn","ms","mtext","annotation-xml","foreignObject","desc","title"]),x=/\s|\//,E=function(){function P(D,k){var A,I,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!==(A=k.lowerCaseTags)&&void 0!==A?A:!k.xmlMode,this.lowerCaseAttributeNames=null!==(I=k.lowerCaseAttributeNames)&&void 0!==I?I:!k.xmlMode,this.tokenizer=new(null!==(B=k.Tokenizer)&&void 0!==B?B:ce.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,A;this.updatePosition(1),this.endIndex--,null===(A=(k=this.cbs).ontext)||void 0===A||A.call(k,D)},P.prototype.onopentagname=function(D){var k,A;if(this.lowerCaseTagNames&&(D=D.toLowerCase()),this.tagname=D,!this.options.xmlMode&&Object.prototype.hasOwnProperty.call(q,D))for(var I=void 0;this.stack.length>0&&q[D].has(I=this.stack[this.stack.length-1]);)this.onclosetag(I);(this.options.xmlMode||!N.has(D))&&(this.stack.push(D),M.has(D)?this.foreignContext.push(!0):O.has(D)&&this.foreignContext.push(!1)),null===(A=(k=this.cbs).onopentagname)||void 0===A||A.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&&N.has(this.tagname)&&this.cbs.onclosetag(this.tagname),this.tagname=""},P.prototype.onclosetag=function(D){if(this.updatePosition(1),this.lowerCaseTagNames&&(D=D.toLowerCase()),(M.has(D)||O.has(D))&&this.foreignContext.pop(),!this.stack.length||!this.options.xmlMode&&N.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,A=this.tagname;this.onopentagend(),this.stack[this.stack.length-1]===A&&(null===(k=(D=this.cbs).onclosetag)||void 0===k||k.call(D,A),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,A;null===(A=(k=this.cbs).onattribute)||void 0===A||A.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(x),A=k<0?D:D.substr(0,k);return this.lowerCaseTagNames&&(A=A.toLowerCase()),A},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,A,I,B;this.updatePosition(4),null===(A=(k=this.cbs).oncomment)||void 0===A||A.call(k,D),null===(B=(I=this.cbs).oncommentend)||void 0===B||B.call(I)},P.prototype.oncdata=function(D){var k,A,I,B,z,re;this.updatePosition(1),this.options.xmlMode||this.options.recognizeCDATA?(null===(A=(k=this.cbs).oncdatastart)||void 0===A||A.call(k),null===(B=(I=this.cbs).ontext)||void 0===B||B.call(I,D),null===(re=(z=this.cbs).oncdataend)||void 0===re||re.call(z)):this.oncomment("[CDATA["+D+"]]")},P.prototype.onerror=function(D){var k,A;null===(A=(k=this.cbs).onerror)||void 0===A||A.call(k,D)},P.prototype.onend=function(){var D,k;if(this.cbs.onclosetag)for(var A=this.stack.length;A>0;this.cbs.onclosetag(this.stack[--A]));null===(k=(D=this.cbs).onend)||void 0===k||k.call(D)},P.prototype.reset=function(){var D,k,A,I;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===(I=(A=this.cbs).onparserinit)||void 0===I||I.call(A,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}();C.Parser=E},6282:function(Le,C,G){"use strict";var le=this&&this.__importDefault||function(ae){return ae&&ae.__esModule?ae:{default:ae}};Object.defineProperty(C,"__esModule",{value:!0});var ce=le(G(672)),Y=le(G(9323)),Q=le(G(9591)),q=le(G(2586));function N(ae){return" "===ae||"\n"===ae||"\t"===ae||"\f"===ae||"\r"===ae}function M(ae){return ae>="a"&&ae<="z"||ae>="A"&&ae<="Z"}function O(ae,R,We){var Ge=ae.toLowerCase();return ae===Ge?function(Nt,cn){cn===Ge?Nt._state=R:(Nt._state=We,Nt._index--)}:function(Nt,cn){cn===Ge||cn===ae?Nt._state=R:(Nt._state=We,Nt._index--)}}function x(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),A=O("A",28,16),I=x("R",35),B=x("I",36),z=x("P",37),re=x("T",38),Ce=O("R",40,1),W=O("I",41,1),ie=O("P",42,1),b=O("T",43,1),K=x("Y",45),F=x("L",46),oe=x("E",47),_e=O("Y",49,1),V=O("L",50,1),L=O("E",51,1),J=x("I",54),pe=x("T",55),ue=x("L",56),Be=x("E",57),je=O("I",58,1),Tt=O("T",59,1),Me=O("L",60,1),Ve=O("E",61,1),se=O("#",63,64),ye=O("X",66,65),be=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 M(R)||this.xmlMode&&!N(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||N(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||N(R))&&(this.emitToken("onopentagname"),this._state=8,this._index--)},ae.prototype.stateBeforeClosingTagName=function(R){N(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||N(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:N(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):N(R)||(this._state=8,this._index--)},ae.prototype.stateInAttributeName=function(R){("="===R||"/"===R||">"===R||N(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--):N(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):N(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){N(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||N(R))&&(this.special=We),this._state=3,this._index--},ae.prototype.stateAfterSpecialLast=function(R,We){">"===R||N(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")&&!M(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 cn=this.buffer.substring(Nt,this._index),hi=parseInt(cn,We);this.emitPartial(ce.default(hi)),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);Tt.push(E(R))}}var Nt=J&&J.fallback,cn=q&&!Nt?"ym":"gm",hi=q||Nt?"":"|";return!0===Be&&(cn+="u"),{regexp:new RegExp(P(Tt)+hi,cn),groups:je,fast:pe,error:J||z}}function W(V,L,J){var pe=V&&(V.push||V.next);if(pe&&!J[pe])throw new Error("Missing state '"+pe+"' (in token '"+V.defaultType+"' of state '"+L+"')");if(V&&V.pop&&1!=+V.pop)throw new Error("pop must be 1 (in token '"+V.defaultType+"' of state '"+L+"')")}var K=function(V,L){this.startState=L,this.states=V,this.buffer="",this.stack=[],this.reset()};K.prototype.reset=function(V,L){return this.buffer=V||"",this.index=0,this.line=L?L.line:1,this.col=L?L.col:1,this.queuedToken=L?L.queuedToken:null,this.queuedThrow=L?L.queuedThrow:null,this.setState(L?L.state:this.startState),this.stack=L&&L.stack?L.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 L=this.states[V];this.groups=L.groups,this.error=L.error,this.re=L.regexp,this.fast=L.fast}},K.prototype.popState=function(){this.setState(this.stack.pop())},K.prototype.pushState=function(V){this.stack.push(this.state),this.setState(V)};var F=q?function(V,L){return V.exec(L)}:function(V,L){var J=V.exec(L);return 0===J[0].length?null:J};function oe(){return this.value}if(K.prototype._getGroup=function(V){for(var L=this.groups.length,J=0;J";throw new Error("Unknown symbol type: "+M)}}return C.highestId=0,C.prototype.toString=function(M){var O=typeof M>"u"?this.symbols.map(N).join(" "):this.symbols.slice(0,M).map(N).join(" ")+" \u25cf "+this.symbols.slice(M).map(N).join(" ");return this.name+" \u2192 "+O},G.prototype.toString=function(){return"{"+this.rule.toString(this.dot)+"}, from: "+(this.reference||0)},G.prototype.nextState=function(M){var O=new G(this.rule,this.dot+1,this.reference,this.wantedBy);return O.left=this,O.right=M,O.isComplete&&(O.data=O.build(),O.right=void 0),O},G.prototype.build=function(){var M=[],O=this;do{M.push(O.right.data),O=O.left}while(O.left);return M.reverse(),M},G.prototype.finish=function(){this.rule.postprocess&&(this.data=this.rule.postprocess(this.data,this.reference,Q.fail))},le.prototype.process=function(M){for(var O=this.states,x=this.wants,E=this.completed,P=0;P0&&O.push(" ^ "+E+" more lines identical to this"),E=0,O.push(" "+k)),x=k}},Q.prototype.getSymbolDisplay=function(M){return function q(M){var O=typeof M;if("string"===O)return M;if("object"===O){if(M.literal)return JSON.stringify(M.literal);if(M instanceof RegExp)return"character matching "+M;if(M.type)return M.type+" token";if(M.test)return"token matching "+String(M.test);throw new Error("Unknown symbol type: "+M)}}(M)},Q.prototype.buildFirstStateStack=function(M,O){if(-1!==O.indexOf(M))return null;if(0===M.wantedBy.length)return[M];var x=M.wantedBy[0],E=[M].concat(O),P=this.buildFirstStateStack(x,E);return null===P?null:[M].concat(P)},Q.prototype.save=function(){var M=this.table[this.current];return M.lexerState=this.lexerState,M},Q.prototype.restore=function(M){var O=M.index;this.current=O,this.table[O]=M,this.table.splice(O+1),this.lexerState=M.lexerState,this.results=this.finish()},Q.prototype.rewind=function(M){if(!this.options.keepHistory)throw new Error("set option `keepHistory` to enable rewinding");this.restore(this.table[M])},Q.prototype.finish=function(){var M=[],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&&M.push(E)}),M.map(function(E){return E.data})},{Parser:Q,Grammar:ce,Rule:C}},Le.exports?Le.exports=G():this.nearley=G()},5742:(Le,C,G)=>{"use strict";var ce=G(1557),Y=G(4802),Q=G(7448),q=G(7302),N=G(4072),M=function(){function x(E){this._isScalar=!1,E&&(this._subscribe=E)}return x.prototype.lift=function(E){var P=new x;return P.source=this,P.operator=E,P},x.prototype.subscribe=function(E,P,D){var k=this.operator,A=Y.toSubscriber(E,P,D);if(A.add(k?k.call(A,this.source):this.source||N.config.useDeprecatedSynchronousErrorHandling&&!A.syncErrorThrowable?this._subscribe(A):this._trySubscribe(A)),N.config.useDeprecatedSynchronousErrorHandling&&A.syncErrorThrowable&&(A.syncErrorThrowable=!1,A.syncErrorThrown))throw A.syncErrorValue;return A},x.prototype._trySubscribe=function(E){try{return this._subscribe(E)}catch(P){N.config.useDeprecatedSynchronousErrorHandling&&(E.syncErrorThrown=!0,E.syncErrorValue=P),ce.canReportError(E)?E.error(P):console.warn(P)}},x.prototype.forEach=function(E,P){var D=this;return new(P=O(P))(function(k,A){var I;I=D.subscribe(function(B){try{E(B)}catch(z){A(z),I&&I.unsubscribe()}},A,k)})},x.prototype._subscribe=function(E){var P=this.source;return P&&P.subscribe(E)},x.prototype[Q.observable]=function(){return this},x.prototype.pipe=function(){for(var E=[],P=0;P{"use strict";Object.defineProperty(C,"__esModule",{value:!0});var le=G(4072),ce=G(2422);C.empty={closed:!0,next:function(Y){},error:function(Y){if(le.config.useDeprecatedSynchronousErrorHandling)throw Y;ce.hostReportError(Y)},complete:function(){}}},3281:function(Le,C,G){"use strict";var E,le=this&&this.__extends||(E=function(P,D){return(E=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(k,A){k.__proto__=A}||function(k,A){for(var I in A)A.hasOwnProperty(I)&&(k[I]=A[I])})(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(C,"__esModule",{value:!0});var ce=G(9607),Y=G(7350),Q=G(6052),q=G(2858),N=G(4072),M=G(2422),O=function(E){function P(D,k,A){var I=E.call(this)||this;switch(I.syncErrorValue=null,I.syncErrorThrown=!1,I.syncErrorThrowable=!1,I.isStopped=!1,arguments.length){case 0:I.destination=Y.empty;break;case 1:if(!D){I.destination=Y.empty;break}if("object"==typeof D){D instanceof P?(I.syncErrorThrowable=D.syncErrorThrowable,I.destination=D,D.add(I)):(I.syncErrorThrowable=!0,I.destination=new x(I,D));break}default:I.syncErrorThrowable=!0,I.destination=new x(I,D,k,A)}return I}return le(P,E),P.prototype[q.rxSubscriber]=function(){return this},P.create=function(D,k,A){var I=new P(D,k,A);return I.syncErrorThrowable=!1,I},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);C.Subscriber=O;var x=function(E){function P(D,k,A,I){var B=E.call(this)||this;B._parentSubscriber=D;var z,re=B;return ce.isFunction(k)?z=k:k&&(z=k.next,A=k.error,I=k.complete,k!==Y.empty&&(re=Object.create(k),ce.isFunction(re.unsubscribe)&&B.add(re.unsubscribe.bind(re)),re.unsubscribe=B.unsubscribe.bind(B))),B._context=re,B._next=z,B._error=A,B._complete=I,B}return le(P,E),P.prototype.next=function(D){if(!this.isStopped&&this._next){var k=this._parentSubscriber;N.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,A=N.config.useDeprecatedSynchronousErrorHandling;if(this._error)A&&k.syncErrorThrowable?(this.__tryOrSetError(k,this._error,D),this.unsubscribe()):(this.__tryOrUnsub(this._error,D),this.unsubscribe());else if(k.syncErrorThrowable)A?(k.syncErrorValue=D,k.syncErrorThrown=!0):M.hostReportError(D),this.unsubscribe();else{if(this.unsubscribe(),A)throw D;M.hostReportError(D)}}},P.prototype.complete=function(){var D=this;if(!this.isStopped){var k=this._parentSubscriber;if(this._complete){var A=function(){return D._complete.call(D._context)};N.config.useDeprecatedSynchronousErrorHandling&&k.syncErrorThrowable?(this.__tryOrSetError(k,A),this.unsubscribe()):(this.__tryOrUnsub(A),this.unsubscribe())}else this.unsubscribe()}},P.prototype.__tryOrUnsub=function(D,k){try{D.call(this._context,k)}catch(A){if(this.unsubscribe(),N.config.useDeprecatedSynchronousErrorHandling)throw A;M.hostReportError(A)}},P.prototype.__tryOrSetError=function(D,k,A){if(!N.config.useDeprecatedSynchronousErrorHandling)throw new Error("bad call");try{k.call(this._context,A)}catch(I){return N.config.useDeprecatedSynchronousErrorHandling?(D.syncErrorValue=I,D.syncErrorThrown=!0,!0):(M.hostReportError(I),!0)}return!1},P.prototype._unsubscribe=function(){var D=this._parentSubscriber;this._context=null,this._parentSubscriber=null,D.unsubscribe()},P}(O);C.SafeSubscriber=x},6052:(Le,C,G)=>{"use strict";Object.defineProperty(C,"__esModule",{value:!0});var le=G(5019),ce=G(2556),Y=G(9607),Q=G(2142),q=function(){function M(O){this.closed=!1,this._parentOrParents=null,this._subscriptions=null,O&&(this._ctorUnsubscribe=!0,this._unsubscribe=O)}return M.prototype.unsubscribe=function(){var O;if(!this.closed){var x=this,E=x._parentOrParents,P=x._ctorUnsubscribe,D=x._unsubscribe,k=x._subscriptions;if(this.closed=!0,this._parentOrParents=null,this._subscriptions=null,E instanceof M)E.remove(this);else if(null!==E)for(var A=0;A{"use strict";Object.defineProperty(C,"__esModule",{value:!0});var G=!1;C.config={Promise:void 0,set useDeprecatedSynchronousErrorHandling(le){if(le){var ce=new Error;console.warn("DEPRECATED! RxJS was set to use deprecated synchronous error handling behavior by code at: \n"+ce.stack)}else G&&console.log("RxJS: Back to a better error behavior. Thank you. <3");G=le},get useDeprecatedSynchronousErrorHandling(){return G}}},7448:(Le,C)=>{"use strict";Object.defineProperty(C,"__esModule",{value:!0}),C.observable="function"==typeof Symbol&&Symbol.observable||"@@observable"},2858:(Le,C)=>{"use strict";Object.defineProperty(C,"__esModule",{value:!0}),C.rxSubscriber="function"==typeof Symbol?Symbol("rxSubscriber"):"@@rxSubscriber_"+Math.random(),C.$$rxSubscriber=C.rxSubscriber},2142:(Le,C)=>{"use strict";Object.defineProperty(C,"__esModule",{value:!0});var G=function(){function le(ce){return Error.call(this),this.message=ce?ce.length+" errors occurred during unsubscription:\n"+ce.map(function(Y,Q){return Q+1+") "+Y.toString()}).join("\n "):"",this.name="UnsubscriptionError",this.errors=ce,this}return le.prototype=Object.create(Error.prototype),le}();C.UnsubscriptionError=G},1557:(Le,C,G)=>{"use strict";Object.defineProperty(C,"__esModule",{value:!0});var le=G(3281);C.canReportError=function ce(Y){for(;Y;){var N=Y.destination;if(Y.closed||Y.isStopped)return!1;Y=N&&N instanceof le.Subscriber?N:null}return!0}},2422:(Le,C)=>{"use strict";Object.defineProperty(C,"__esModule",{value:!0}),C.hostReportError=function G(le){setTimeout(function(){throw le},0)}},6610:(Le,C)=>{"use strict";Object.defineProperty(C,"__esModule",{value:!0}),C.identity=function G(le){return le}},5019:(Le,C)=>{"use strict";Object.defineProperty(C,"__esModule",{value:!0}),C.isArray=Array.isArray||function(G){return G&&"number"==typeof G.length}},9607:(Le,C)=>{"use strict";Object.defineProperty(C,"__esModule",{value:!0}),C.isFunction=function G(le){return"function"==typeof le}},2556:(Le,C)=>{"use strict";Object.defineProperty(C,"__esModule",{value:!0}),C.isObject=function G(le){return null!==le&&"object"==typeof le}},7302:(Le,C,G)=>{"use strict";Object.defineProperty(C,"__esModule",{value:!0});var le=G(6610);function Y(Q){return 0===Q.length?le.identity:1===Q.length?Q[0]:function(N){return Q.reduce(function(M,O){return O(M)},N)}}C.pipe=function ce(){for(var Q=[],q=0;q{"use strict";Object.defineProperty(C,"__esModule",{value:!0});var le=G(3281),ce=G(2858),Y=G(7350);C.toSubscriber=function Q(q,N,M){if(q){if(q instanceof le.Subscriber)return q;if(q[ce.rxSubscriber])return q[ce.rxSubscriber]()}return q||N||M?new le.Subscriber(q,N,M):new le.Subscriber(Y.empty)}},5999:(Le,C,G)=>{"use strict";Object.defineProperty(C,"__esModule",{value:!0});var le=G(2962),ce=G(9542);function Q(I){const B=I.map(q);return(z,...re)=>k(B,Ce=>Ce(z,...re))}function q(I){switch(I.type){case"terminal":{const B=[I.valueContainer];return(z,...re)=>B}case"tagName":return function N(I){const B={};for(const z of I.variants)B[z.value]=Q(z.cont);return(z,...re)=>{const Ce=B[z.name];return Ce?Ce(z,...re):[]}}(I);case"attrValue":return function O(I){const B=[];for(const re of I.matchers){const Ce=re.predicate,W=Q(re.cont);B.push((ie,b,...K)=>Ce(ie)?W(b,...K):[])}const z=I.name;return(re,...Ce)=>{const W=re.attribs[z];return W||""===W?k(B,ie=>ie(W,re,...Ce)):[]}}(I);case"attrPresence":return function M(I){const B=I.name,z=Q(I.cont);return(re,...Ce)=>Object.prototype.hasOwnProperty.call(re.attribs,B)?z(re,...Ce):[]}(I);case"pushElement":return function x(I){const B=Q(I.cont),z="+"===I.combinator?E:P;return(re,...Ce)=>{const W=z(re);return null===W?[]:B(W,re,...Ce)}}(I);case"popElement":return function D(I){const B=Q(I.cont);return(z,re,...Ce)=>B(re,...Ce)}(I)}}const E=I=>{const B=I.prev;return null===B?null:le.isTag(B)?B:E(B)},P=I=>{const B=I.parent;return B&&le.isTag(B)?B:null};function k(I,B){return[].concat(...function A(I,B){const z=I.length,re=new Array(z);for(let Ce=0;Ce{"use strict";Object.defineProperty(C,"__esModule",{value:!0});var le=G(4847);function Y(F){if(F&&F.__esModule)return F;var oe=Object.create(null);return F&&Object.keys(F).forEach(function(_e){if("default"!==_e){var V=Object.getOwnPropertyDescriptor(F,_e);Object.defineProperty(oe,_e,V.get?V:{enumerable:!0,get:function(){return F[_e]}})}}),oe.default=F,Object.freeze(oe)}function q(F){return F[0]}const N=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:F=>F.slice(1)},str1:{match:/'(?:\\['\\]|[^\n'\\])*'/,value:F=>F.slice(1,-1)},str2:{match:/"(?:\\["\\]|[^\n"\\])*"/,value:F=>F.slice(1,-1)},asterisk:"*",fullstop:".",comma:",",lbr:"[",rbr:"]",eq:"=",gt:">",vbar:"|",plus:"+",tilde:"~",caret:"^",dollar:"$"});function M(F){return F[0].value}function O(F){return F[1]}function x([F,oe,_e],[V,L,J]){return[F+V,oe+L,_e+J]}const E={Lexer:N,ParserRules:[{name:"main",symbols:["_","listSelector","_"],postprocess:O},{name:"mainNoList",symbols:["_","complexSelector","_"],postprocess:O},{name:"listSelector",symbols:["complexSelector"],postprocess:([F])=>({type:"list",list:[F]})},{name:"listSelector",symbols:["listSelector","_",N.has("comma")?{type:"comma"}:comma,"_","complexSelector"],postprocess:([F,,,,oe])=>({type:"list",list:[...F.list,oe]})},{name:"complexSelector",symbols:["compoundSelector"],postprocess:q},{name:"complexSelector",symbols:["complexSelector","__","compoundSelector"],postprocess:([F,,oe])=>({type:"compound",list:[...oe.list,{type:"combinator",combinator:" ",left:F,specificity:F.specificity}],specificity:x(F.specificity,oe.specificity)})},{name:"complexSelector",symbols:["complexSelector","_","combinator","_","compoundSelector"],postprocess:([F,,oe,,_e])=>({type:"compound",list:[..._e.list,{type:"combinator",combinator:oe,left:F,specificity:F.specificity}],specificity:x(F.specificity,_e.specificity)})},{name:"combinator",symbols:[N.has("gt")?{type:"gt"}:gt],postprocess:()=>">"},{name:"combinator",symbols:[N.has("plus")?{type:"plus"}:plus],postprocess:()=>"+"},{name:"combinator",symbols:[N.has("tilde")?{type:"tilde"}:tilde],postprocess:()=>"~"},{name:"combinator",symbols:[N.has("vbar")?{type:"vbar"}:vbar,N.has("vbar")?{type:"vbar"}:vbar],postprocess:()=>"||"},{name:"compoundSelector",symbols:["typeSelector"],postprocess:([F])=>({type:"compound",list:[F],specificity:F.specificity})},{name:"compoundSelector",symbols:["subclassSelector"],postprocess:([F])=>({type:"compound",list:[F],specificity:F.specificity})},{name:"compoundSelector",symbols:["compoundSelector","subclassSelector"],postprocess:([F,oe])=>({type:"compound",list:[...F.list,oe],specificity:x(F.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:[N.has("lbr")?{type:"lbr"}:lbr,"_","wqname","_",N.has("rbr")?{type:"rbr"}:rbr],postprocess:([,,F])=>({type:"attrPresence",name:F.name,namespace:F.namespace,specificity:[0,1,0]})},{name:"attrValueSelector",symbols:[N.has("lbr")?{type:"lbr"}:lbr,"_","wqname","_","attrMatcher","_","attrValue","_",N.has("rbr")?{type:"rbr"}:rbr],postprocess:([,,F,,oe,,_e])=>({type:"attrValue",name:F.name,namespace:F.namespace,matcher:oe,value:_e.value,modifier:_e.modifier,specificity:[0,1,0]})},{name:"attrMatcher",symbols:[N.has("eq")?{type:"eq"}:eq],postprocess:()=>"="},{name:"attrMatcher",symbols:[N.has("tilde")?{type:"tilde"}:tilde,N.has("eq")?{type:"eq"}:eq],postprocess:()=>"~="},{name:"attrMatcher",symbols:[N.has("vbar")?{type:"vbar"}:vbar,N.has("eq")?{type:"eq"}:eq],postprocess:()=>"|="},{name:"attrMatcher",symbols:[N.has("caret")?{type:"caret"}:caret,N.has("eq")?{type:"eq"}:eq],postprocess:()=>"^="},{name:"attrMatcher",symbols:[N.has("dollar")?{type:"dollar"}:dollar,N.has("eq")?{type:"eq"}:eq],postprocess:()=>"$="},{name:"attrMatcher",symbols:[N.has("asterisk")?{type:"asterisk"}:asterisk,N.has("eq")?{type:"eq"}:eq],postprocess:()=>"*="},{name:"attrValue",symbols:["str"],postprocess:([F])=>({value:F,modifier:null})},{name:"attrValue",symbols:["idn"],postprocess:([F])=>({value:F,modifier:null})},{name:"attrValue",symbols:["str","_","attrModifier"],postprocess:([F,,oe])=>({value:F,modifier:oe})},{name:"attrValue",symbols:["idn","__","attrModifier"],postprocess:([F,,oe])=>({value:F,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:[N.has("hashToken")?{type:"hashToken"}:hashToken],postprocess:([{value:F}])=>({type:"id",name:F,specificity:[1,0,0]})},{name:"classSelector",symbols:[N.has("fullstop")?{type:"fullstop"}:fullstop,"idn"],postprocess:([,F])=>({type:"class",name:F,specificity:[0,1,0]})},{name:"tagSelector",symbols:["wqname"],postprocess:([F])=>({type:"tag",name:F.name,namespace:F.namespace,specificity:[0,0,1]})},{name:"uniSelector",symbols:[N.has("asterisk")?{type:"asterisk"}:asterisk],postprocess:()=>({type:"universal",namespace:null,specificity:[0,0,0]})},{name:"uniSelector",symbols:["ns",N.has("asterisk")?{type:"asterisk"}:asterisk],postprocess:([F])=>({type:"universal",namespace:F,specificity:[0,0,0]})},{name:"wqname",symbols:["idn"],postprocess:([F])=>({name:F,namespace:null})},{name:"wqname",symbols:["ns","idn"],postprocess:([F,oe])=>({name:oe,namespace:F})},{name:"ns",symbols:[N.has("vbar")?{type:"vbar"}:vbar],postprocess:()=>""},{name:"ns",symbols:["idn",N.has("vbar")?{type:"vbar"}:vbar],postprocess:q},{name:"str",symbols:[N.has("str1")?{type:"str1"}:str1],postprocess:M},{name:"str",symbols:[N.has("str2")?{type:"str2"}:str2],postprocess:M},{name:"idn",symbols:[N.has("idn")?{type:"idn"}:idn],postprocess:M},{name:"_$ebnf$1",symbols:[N.has("ws")?{type:"ws"}:ws],postprocess:q},{name:"_$ebnf$1",symbols:[],postprocess:()=>null},{name:"_",symbols:["_$ebnf$1"],postprocess:()=>null},{name:"__",symbols:[N.has("ws")?{type:"ws"}:ws],postprocess:()=>null}],ParserStart:"main"};var P=Object.freeze({__proto__:null});const D={...E,ParserStart:"mainNoList"};function I(F,oe){const _e=new le.Parser(le.Grammar.fromCompiled(F));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(F){if(!F.type)throw new Error("This is not an AST node.");switch(F.type){case"universal":return z(F.namespace)+"*";case"tag":return z(F.namespace)+F.name;case"class":return"."+F.name;case"id":return"#"+F.name;case"attrPresence":return`[${z(F.namespace)}${F.name}]`;case"attrValue":return`[${z(F.namespace)}${F.name}${F.matcher}${function re(F){return-1===F.indexOf('"')?`"${F}"`:-1===F.indexOf("'")?`'${F}'`:`"${F.replace('"','\\"')}"`}(F.value)}${F.modifier?F.modifier:""}]`;case"combinator":return B(F.left)+F.combinator;case"compound":return F.list.reduce((oe,_e)=>"combinator"===_e.type?B(_e)+oe:oe+B(_e),"");case"list":return F.list.map(B).join(",")}}function z(F){return F||""===F?F+"|":""}function W(F){switch(F.type){case"universal":case"tag":return[1];case"id":return[2];case"class":return[3,F.name];case"attrPresence":return[4,B(F)];case"attrValue":return[5,B(F)];case"combinator":return[15,B(F)]}}function K(F,oe){if(!Array.isArray(F)||!Array.isArray(oe))throw new Error("Arguments must be arrays.");const _e=F.lengthK(W(oe),W(_e)));break;case"combinator":Ce(F.left);break;case"list":F.list.forEach(Ce),F.list.sort((oe,_e)=>B(oe){"use strict";Object.defineProperty(C,"__esModule",{value:!0});var le=G(2512);function ce(se){if(se&&se.__esModule)return se;var ye=Object.create(null);return se&&Object.keys(se).forEach(function(be){if("default"!==be){var ae=Object.getOwnPropertyDescriptor(se,be);Object.defineProperty(ye,be,ae.get?ae:{enumerable:!0,get:function(){return se[be]}})}}),ye.default=se,Object.freeze(ye)}var Y=ce(le),Q=Object.freeze({__proto__:null}),q=Object.freeze({__proto__:null});const M=[["\u251c\u2500","\u2502 "],["\u2514\u2500"," "]],O=[["\u2520\u2500","\u2503 "],["\u2516\u2500"," "]],x=[["\u255f\u2500","\u2551 "],["\u2559\u2500"," "]];function E(se,ye=O){return function D(se,ye){return ye.map((be,ae,{length:R})=>function k(se,ye,be=!0){const ae=se[be?1:0];return ae[0]+ye.split("\n").join("\n"+ae[1])}(se,be,ae===R-1)).join("\n")}(ye,se.map(be=>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,x)}`;case"attrValue":return`\u25a3 Attr value: ${se.name}\n${E(se.matchers,x)}`;case"attrPresence":return`\u25e8 Attr presence: ${se.name}\n${E(se.cont)}`;case"pushElement":return`\u25c9 Push element: ${se.combinator}\n${E(se.cont,M)}`;case"popElement":return`\u25cc Pop element\n${E(se.cont,M)}`;case"variant":return`\u25c7 = ${se.value}\n${E(se.cont)}`;case"matcher":return`\u25c8 ${se.matcher} "${se.value}"${se.modifier||""}\n${E(se.cont)}`}}(be)))}var A=Object.freeze({__proto__:null,treeify:se=>"\u25bd\n"+E(se,M)});function z(se){return re(se),Y.normalize(se),se}function re(se){const ye=[];se.list.forEach(be=>{switch(be.type){case"class":ye.push({matcher:"~=",modifier:null,name:"class",namespace:null,specificity:be.specificity,type:"attrValue",value:be.name});break;case"id":ye.push({matcher:"=",modifier:null,name:"id",namespace:null,specificity:be.specificity,type:"attrValue",value:be.name});break;case"combinator":re(be.left),ye.push(be);break;case"universal":break;default:ye.push(be)}}),se.list=ye}function Ce(se){const ye=[];for(;se.length;){const be=ue(se,Ge=>!0,b),{matches:ae,nonmatches:R,empty:We}=ie(se,be);se=R,ae.length&&ye.push(K(be,ae)),We.length&&ye.push(...W(We))}return ye}function W(se){const ye=[];for(const be of se){const ae=be.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 be=[],ae=[],R=[];for(const We of se){const Ge=We.ast.list;Ge.length?(Ge.some(cn=>b(cn)===ye)?be:ae).push(We):R.push(We)}return{matches:be,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 F(se){const ye=J(se,ae=>"tag"===ae.type,ae=>ae.name);return{type:"tagName",variants:Object.entries(ye).map(([ae,R])=>({type:"variant",value:ae,cont:Ce(R.items)}))}}(ye);if(se.startsWith("attrValue "))return function _e(se,ye){const be=J(ye,R=>"attrValue"===R.type&&R.name===se,R=>`${R.matcher} ${R.modifier||""} ${R.value}`),ae=[];for(const R of Object.values(be)){const We=R.oneSimpleSelector,Ge=V(We),Nt=Ce(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 be of ye)pe(be,ae=>"attrPresence"===ae.type&&ae.name===se);return{type:"attrPresence",name:se,cont:Ce(ye)}}(se.substring(13),ye);if("combinator >"===se)return L(">",ye);if("combinator +"===se)return L("+",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 be=>ye===be.toLowerCase();case"~=":return be=>be.toLowerCase().split(/[ \t]+/).includes(ye);case"^=":return be=>be.toLowerCase().startsWith(ye);case"$=":return be=>be.toLowerCase().endsWith(ye);case"*=":return be=>be.toLowerCase().includes(ye);case"|=":return be=>{const ae=be.toLowerCase();return ye===ae||ae.startsWith(ye)&&"-"===ae[ye.length]}}}else{const ye=se.value;switch(se.matcher){case"=":return be=>ye===be;case"~=":return be=>be.split(/[ \t]+/).includes(ye);case"^=":return be=>be.startsWith(ye);case"$=":return be=>be.endsWith(ye);case"*=":return be=>be.includes(ye);case"|=":return be=>ye===be||be.startsWith(ye)&&"-"===be[ye.length]}}}function L(se,ye){const be=J(ye,R=>"combinator"===R.type&&R.combinator===se,R=>Y.serialize(R.left)),ae=[];for(const R of Object.values(be)){const We=Ce(R.items);ae.push({ast:R.oneSimpleSelector.left,terminal:{type:"popElement",cont:We}})}return{type:"pushElement",combinator:se,cont:Ce(ae)}}function J(se,ye,be){const ae={};for(;se.length;){const R=ue(se,ye,be),We=ji=>ye(ji)&&be(ji)===R,Ge=ji=>ji.ast.list.some(We),{matches:Nt,rest:cn}=je(se,Ge);let hi=null;for(const ji of Nt){const Ys=pe(ji,We);hi||(hi=Ys)}if(null==hi)throw new Error("No simple selector is found.");ae[R]={oneSimpleSelector:hi,items:Nt},se=cn}return ae}function pe(se,ye){const be=se.ast.list,ae=new Array(be.length);let R=-1;for(let Ge=be.length;Ge-- >0;)ye(be[Ge])&&(ae[Ge]=!0,R=Ge);if(-1==R)throw new Error("Couldn't find the required simple selector.");const We=be[R];return se.ast.list=be.filter((Ge,Nt)=>!ae[Nt]),We}function ue(se,ye,be){const ae={};for(const Ge of se){const Nt={};for(const cn of Ge.ast.list.filter(ye))Nt[be(cn)]=!0;for(const cn of Object.keys(Nt))ae[cn]?ae[cn]++:ae[cn]=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 be=[],ae=[];for(const R of se)ye(R)?be.push(R):ae.push(R);return{matches:be,rest:ae}}function je(se,ye){const be=[],ae=[];for(const R of se)ye(R)?be.push(R):ae.push(R);return{matches:be,rest:ae}}function Me(se,ye){const be=le.compareSpecificity(ye.specificity,se.specificity);return be>0||0===be&&ye.index0||0===be&&ye.index>se.index}C.Ast=Q,C.DecisionTree=class I{constructor(ye){this.branches=Ce(function B(se){const ye=se.length,be=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:"3.0.4"}}},Le=>{Le(Le.s=7366)}]); \ No newline at end of file +(self.webpackChunkBM=self.webpackChunkBM||[]).push([[179],{7366:(Le,C,G)=>{"use strict";function le(n){return"function"==typeof n}let ce=!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 ce&&console.log("RxJS: Back to a better error behavior. Thank you. <3");ce=n},get useDeprecatedSynchronousErrorHandling(){return ce}};function Q(n){setTimeout(()=>{throw n},0)}const q={closed:!0,next(n){},error(n){if(Y.useDeprecatedSynchronousErrorHandling)throw n;Q(n)},complete(){}},N=Array.isArray||(n=>n&&"number"==typeof n.length);function M(n){return null!==n&&"object"==typeof n}const x=(()=>{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 x?e.errors:e),[])}E.EMPTY=((n=new E).closed=!0,n);const D="function"==typeof Symbol?Symbol("rxSubscriber"):"@@rxSubscriber_"+Math.random();class A 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 A?(this.syncErrorThrowable=t.syncErrorThrowable,this.destination=t,t.add(this)):(this.syncErrorThrowable=!0,this.destination=new I(this,t));break}default:this.syncErrorThrowable=!0,this.destination=new I(this,t,e,i)}}[D](){return this}static create(t,e,i){const r=new A(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 I extends A{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 Ce(n){return n}function ie(n){return 0===n.length?Ce: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 A)return n;if(n[D])return n[D]()}return n||t||e?new A(n,t,e):new A(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 A?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 A{constructor(t){super(t),this.destination=t}}let L=(()=>{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 J(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 J(t,e),n})();class J extends L{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 ue(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 A{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 Tt=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 Tt(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 ${M(n)?"an invalid object":`'${n}'`} where a stream was expected. You can provide an Observable, Promise, Array, or Iterable.`;throw new TypeError(e)}};function hi(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 _h(n,t){if(null!=n){if(function Ys(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 cn(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 hi(n,t);if(function gh(n){return n&&"function"==typeof n[se]}(n)||"string"==typeof n)return function ji(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 A{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 A{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 Hi(n,t,e=Number.POSITIVE_INFINITY){return"function"==typeof t?i=>i.pipe(Hi((r,o)=>vt(n(r,o)).pipe(ue((s,a)=>t(r,s,o,a))),e)):("number"==typeof t&&(e=t),i=>i.lift(new uO(n,e)))}class uO{constructor(t,e=Number.POSITIVE_INFINITY){this.project=t,this.concurrent=e}call(t,e){return e.subscribe(new dO(t,this.project,this.concurrent))}}class dO 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 vh(n=Number.POSITIVE_INFINITY){return Hi(Ce,n)}function bg(n,t){return t?hi(n,t):new b(Tt(n))}function Mn(...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]:vh(t)(bg(n,e))}function yh(){return function(t){return t.lift(new hO(t))}}class hO{constructor(t){this.connectable=t}call(t,e){const{connectable:i}=this;i._refCount++;const r=new pO(t,i),o=e.subscribe(r);return r.closed||(r.connection=i.connect()),o}}class pO extends A{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 bh 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 mO(this.getSubject(),this))),t.closed&&(this._connection=null,t=E.EMPTY)),t}refCount(){return yh()(this)}}const fO=(()=>{const n=bh.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 mO 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 vO{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 yO(){return new L}function Mw(){return n=>yh()(function _O(n,t){return function(i){let r;if(r="function"==typeof n?n:function(){return n},"function"==typeof t)return i.lift(new vO(r,t));const o=Object.create(i,fO);return o.source=i,o.subjectFactory=r,o}}(yO)(n))}function vn(n){for(let t in n)if(n[t]===vn)return t;throw Error("Could not find renamed property on target object.")}function Cg(n,t){for(const e in t)t.hasOwnProperty(e)&&!n.hasOwnProperty(e)&&(n[e]=t[e])}function yn(n){if("string"==typeof n)return n;if(Array.isArray(n))return"["+n.map(yn).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 wg(n,t){return null==n||""===n?null===t?"":t:null==t||""===t?n:n+" "+t}const bO=vn({__forward_ref__:vn});function tn(n){return n.__forward_ref__=tn,n.toString=function(){return yn(this())},n}function Et(n){return Eg(n)?n():n}function Eg(n){return"function"==typeof n&&n.hasOwnProperty(bO)&&n.__forward_ref__===tn}class Se extends Error{constructor(t,e){super(function Ch(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 wh(n,t){throw new Se(-201,!1)}function br(n,t){null==n&&function fn(n,t,e,i){throw new Error(`ASSERTION ERROR: ${n}`+(null==i?"":` [Expected=> ${e} ${i} ${t} <=Actual]`))}(t,n,null,"!=")}function me(n){return{token:n.token,providedIn:n.providedIn||null,factory:n.factory,value:void 0}}function ct(n){return{providers:n.providers||[],imports:n.imports||[]}}function Dg(n){return kw(n,Eh)||kw(n,Ow)}function kw(n,t){return n.hasOwnProperty(t)?n[t]:null}function Rw(n){return n&&(n.hasOwnProperty(Sg)||n.hasOwnProperty(xO))?n[Sg]:null}const Eh=vn({\u0275prov:vn}),Sg=vn({\u0275inj:vn}),Ow=vn({ngInjectableDef:vn}),xO=vn({ngInjectorDef:vn});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 Ag;function Fr(n){const t=Ag;return Ag=n,t}function Pw(n,t,e){const i=Dg(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 wh(yn(n))}function Qs(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 _n=(()=>typeof globalThis<"u"&&globalThis||typeof global<"u"&&global||typeof window<"u"&&window||typeof self<"u"&&typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&self)(),Dl={},dn=[],Dh=vn({\u0275cmp:vn}),Tg=vn({\u0275dir:vn}),xg=vn({\u0275pipe:vn}),Lw=vn({\u0275mod:vn}),ss=vn({\u0275fac:vn}),du=vn({__NG_ELEMENT_ID__:vn});let MO=0;function Ue(n){return Qs(()=>{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||dn,viewQuery:n.viewQuery||null,features:n.features||null,data:n.data||{},encapsulation:n.encapsulation||ao.Emulated,id:"c"+MO++,styles:n.styles||dn,_:null,setInput:null,schemas:n.schemas||null,tView:null},o=n.dependencies,s=n.features;return r.inputs=jw(n.inputs,i),r.outputs=jw(n.outputs),s&&s.forEach(a=>a(r)),r.directiveDefs=o?()=>("function"==typeof o?o():o).map(Nw).filter(Bw):null,r.pipeDefs=o?()=>("function"==typeof o?o():o).map(qi).filter(Bw):null,r})}function Nw(n){return gn(n)||Ui(n)}function Bw(n){return null!==n}const kO={};function dt(n){return Qs(()=>{const t={type:n.type,bootstrap:n.bootstrap||dn,declarations:n.declarations||dn,imports:n.imports||dn,exports:n.exports||dn,transitiveCompileScopes:null,schemas:n.schemas||null,id:n.id||null};return null!=n.id&&(kO[n.id]=n.type),t})}function jw(n,t){if(null==n)return Dl;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 Vi(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 gn(n){return n[Dh]||null}function Ui(n){return n[Tg]||null}function qi(n){return n[xg]||null}function Cr(n,t){const e=n[Lw]||null;if(!e&&!0===t)throw new Error(`Type ${yn(n)} does not have '\u0275mod' property.`);return e}function rr(n){return Array.isArray(n)&&"object"==typeof n[1]}function co(n){return Array.isArray(n)&&!0===n[1]}function kg(n){return 0!=(8&n.flags)}function xh(n){return 2==(2&n.flags)}function Ih(n){return 1==(1&n.flags)}function uo(n){return null!==n.template}function FO(n){return 0!=(256&n[2])}function ka(n,t){return n.hasOwnProperty(ss)?n[ss]:null}class jO{constructor(t,e,i){this.previousValue=t,this.currentValue=e,this.firstChange=i}isFirstChange(){return this.firstChange}}function kn(){return Uw}function Uw(n){return n.type.prototype.ngOnChanges&&(n.setInput=VO),HO}function HO(){const n=zw(this),t=n?.current;if(t){const e=n.previous;if(e===Dl)n.previous=t;else for(let i in t)e[i]=t[i];n.current=null,this.ngOnChanges(t)}}function VO(n,t,e,i){const r=zw(n)||function UO(n,t){return n[qw]=t}(n,{previous:Dl,current:null}),o=r.current||(r.current={}),s=r.previous,a=this.declaredInputs[e],l=s[a];o[a]=new jO(l&&l.currentValue,t,s===Dl),n[i]=t}kn.ngInherit=!0;const qw="__ngSimpleChanges__";function zw(n){return n[qw]||null}function Jn(n){for(;Array.isArray(n);)n=n[0];return n}function Mh(n,t){return Jn(t[n])}function jr(n,t){return Jn(t[n.index])}function Fg(n,t){return n.data[t]}function Il(n,t){return n[t]}function Er(n,t){const e=t[n];return rr(e)?e:e[0]}function Gw(n){return 4==(4&n[2])}function Ng(n){return 64==(64&n[2])}function Xs(n,t){return null==t?null:n[t]}function Ww(n){n[18]=0}function Bg(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 xt={lFrame:t0(null),bindingsEnabled:!0};function Kw(){return xt.bindingsEnabled}function xe(){return xt.lFrame.lView}function nn(){return xt.lFrame.tView}function X(n){return xt.lFrame.contextLView=n,n[8]}function Z(n){return xt.lFrame.contextLView=null,n}function si(){let n=Yw();for(;null!==n&&64===n.type;)n=n.parent;return n}function Yw(){return xt.lFrame.currentTNode}function Ro(n,t){const e=xt.lFrame;e.currentTNode=n,e.isParent=t}function jg(){return xt.lFrame.isParent}function Hg(){xt.lFrame.isParent=!1}function zi(){const n=xt.lFrame;let t=n.bindingRootIndex;return-1===t&&(t=n.bindingRootIndex=n.tView.bindingStartIndex),t}function Ml(){return xt.lFrame.bindingIndex++}function ls(n){const t=xt.lFrame,e=t.bindingIndex;return t.bindingIndex=t.bindingIndex+n,e}function nP(n,t){const e=xt.lFrame;e.bindingIndex=e.bindingRootIndex=n,Vg(t)}function Vg(n){xt.lFrame.currentDirectiveIndex=n}function Ug(n){const t=xt.lFrame.currentDirectiveIndex;return-1===t?null:n[t]}function Zw(){return xt.lFrame.currentQueryIndex}function qg(n){xt.lFrame.currentQueryIndex=n}function rP(n){const t=n[1];return 2===t.type?t.declTNode:1===t.type?n[6]:null}function Jw(n,t,e){if(e&yt.SkipSelf){let r=t,o=n;for(;!(r=r.parent,null!==r||e&yt.Host||(r=rP(o),null===r||(o=o[15],10&r.type))););if(null===r)return!1;t=r,n=o}const i=xt.lFrame=e0();return i.currentTNode=t,i.lView=n,!0}function zg(n){const t=e0(),e=n[1];xt.lFrame=t,t.currentTNode=e.firstChild,t.lView=n,t.tView=e,t.contextLView=n,t.bindingIndex=e.bindingStartIndex,t.inI18n=!1}function e0(){const n=xt.lFrame,t=null===n?null:n.child;return null===t?t0(n):t}function t0(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 n0(){const n=xt.lFrame;return xt.lFrame=n.parent,n.currentTNode=null,n.lView=null,n}const r0=n0;function Gg(){const n=n0();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 Gi(){return xt.lFrame.selectedIndex}function Zs(n){xt.lFrame.selectedIndex=n}function Vn(){const n=xt.lFrame;return Fg(n.tView,n.selectedIndex)}function kl(){xt.lFrame.currentNamespace="svg"}function Rh(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 Lh(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 Kg=!0;function Nh(n){const t=Kg;return Kg=n,t}let _P=0;const Oo={};function vu(n,t){const e=Qg(n,t);if(-1!==e)return e;const i=t[1];i.firstCreatePass&&(n.injectorIndex=t.length,Yg(i.data,n),Yg(t,null),Yg(i.blueprint,null));const r=Bh(n,t),o=n.injectorIndex;if(u0(r)){const s=Rl(r),a=Ol(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 Yg(n,t){n.push(0,0,0,0,0,0,0,0,t)}function Qg(n,t){return-1===n.injectorIndex||n.parent&&n.parent.injectorIndex===n.injectorIndex||null===t[n.injectorIndex+8]?-1:n.injectorIndex}function Bh(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=y0(r),null===i)return-1;if(e++,r=r[15],-1!==i.injectorIndex)return i.injectorIndex|e<<16}return-1}function jh(n,t,e){!function vP(n,t,e){let i;"string"==typeof e?i=e.charCodeAt(0)||0:e.hasOwnProperty(du)&&(i=e[du]),null==i&&(i=e[du]=_P++);const r=255&i;t.data[n+(r>>5)]|=1<=0?255&t:wP:t}(e);if("function"==typeof o){if(!Jw(t,n,i))return i&yt.Host?p0(r,0,i):f0(t,e,i,r);try{const s=o(i);if(null!=s||i&yt.Optional)return s;wh()}finally{r0()}}else if("number"==typeof o){let s=null,a=Qg(n,t),l=-1,c=i&yt.Host?t[16][6]:null;for((-1===a||i&yt.SkipSelf)&&(l=-1===a?Bh(n,t):t[a+8],-1!==l&&v0(i,!1)?(s=t[1],a=Rl(l),t=Ol(l,t)):a=-1);-1!==a;){const u=t[1];if(_0(o,a,u.data)){const d=bP(a,t,e,s,i,c);if(d!==Oo)return d}l=t[a+8],-1!==l&&v0(i,t[1].data[a+8]===c)&&_0(o,a,t)?(s=u,a=Rl(l),t=Ol(l,t)):a=-1}}return r}function bP(n,t,e,i,r,o){const s=t[1],a=s.data[n+8],u=Hh(a,s,e,null==i?xh(a)&&Kg:i!=s&&0!=(3&a.type),r&yt.Host&&o===a);return null!==u?yu(t,s,u,a):Oo}function Hh(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 hP(n){return n instanceof gu}(r)){const s=r;s.resolving&&function CO(n,t){const e=t?`. Dependency path: ${t.join(" > ")} > ${n}`:"";throw new Se(-200,`Circular dependency in DI detected for ${n}${e}`)}(function un(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=Nh(s.canSeeViewProviders);s.resolving=!0;const l=s.injectImpl?Fr(s.injectImpl):null;Jw(n,i,yt.Default);try{r=n[e]=s.factory(void 0,o,n,i),t.firstCreatePass&&e>=i.directiveStart&&function uP(n,t,e){const{ngOnChanges:i,ngOnInit:r,ngDoCheck:o}=t.type.prototype;if(i){const s=Uw(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),Nh(a),s.resolving=!1,r0()}}return r}function _0(n,t,e){return!!(e[t+(n>>5)]&1<{const t=n.prototype.constructor,e=t[ss]||Xg(t),i=Object.prototype;let r=Object.getPrototypeOf(n.prototype).constructor;for(;r&&r!==i;){const o=r[ss]||Xg(r);if(o&&o!==e)return o;r=Object.getPrototypeOf(r)}return o=>new o})}function Xg(n){return Eg(n)?()=>{const t=Xg(Et(n));return t&&t()}:ka(n)}function y0(n){const t=n[1],e=t.type;return 2===e?t.declTNode:1===e?n[6]:null}function Hr(n){return function yP(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 Zg(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 ge{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=me({token:this,providedIn:e.providedIn||"root",factory:e.factory}))}get multi(){return this}toString(){return`InjectionToken ${this._desc}`}}function Dr(n,t){void 0===t&&(t=n);for(let e=0;eArray.isArray(e)?cs(e,t):t(e))}function C0(n,t,e){t>=n.length?n.push(e):n.splice(t,0,e)}function Vh(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 TP(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 e_(n,t){const e=jl(n,t);if(e>=0)return n[1|e]}function jl(n,t){return function D0(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 Wh}()?.createHTML(n)||n}function L0(n){return function a_(){if(void 0===$h&&($h=null,_n.trustedTypes))try{$h=_n.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:n=>n,createScript:n=>n,createScriptURL:n=>n})}catch{}return $h}()?.createHTML(n)||n}class Oa{constructor(t){this.changingThisBreaksApplicationSecurity=t}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see https://g.co/ng/security#xss)`}}class JP extends Oa{getTypeName(){return"HTML"}}class eL extends Oa{getTypeName(){return"Style"}}class tL extends Oa{getTypeName(){return"Script"}}class nL extends Oa{getTypeName(){return"URL"}}class iL extends Oa{getTypeName(){return"ResourceURL"}}function Ar(n){return n instanceof Oa?n.changingThisBreaksApplicationSecurity:n}function Po(n,t){const e=function rL(n){return n instanceof Oa&&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 uL{constructor(t){this.inertDocumentHelper=t}getInertBodyElement(t){t="
"+t;try{const e=(new window.DOMParser).parseFromString(Ul(t),"text/html").body;return null===e?this.inertDocumentHelper.getInertBodyElement(t):(e.removeChild(e.firstChild),e)}catch{return null}}}class dL{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=Ul(t),e;const i=this.inertDocument.createElement("body");return i.innerHTML=Ul(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 H0=Lo("area,br,col,hr,img,wbr"),V0=Lo("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),U0=Lo("rp,rt"),l_=Mu(H0,Mu(V0,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(U0,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(U0,V0)),c_=Lo("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),u_=Lo("srcset"),q0=Mu(c_,u_,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")),mL=Lo("script,style,template");class gL{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(!l_.hasOwnProperty(e))return this.sanitizedSomething=!0,!mL.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();l_.hasOwnProperty(e)&&!H0.hasOwnProperty(e)&&(this.buf.push(""))}chars(t){this.buf.push(z0(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 _L=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,vL=/([^\#-~ |!])/g;function z0(n){return n.replace(/&/g,"&").replace(_L,function(t){return"&#"+(1024*(t.charCodeAt(0)-55296)+(t.charCodeAt(1)-56320)+65536)+";"}).replace(vL,function(t){return"&#"+t.charCodeAt(0)+";"}).replace(//g,">")}let Kh;function G0(n,t){let e=null;try{Kh=Kh||function B0(n){const t=new dL(n);return function hL(){try{return!!(new window.DOMParser).parseFromString(Ul(""),"text/html")}catch{return!1}}()?new uL(t):t}(n);let i=t?String(t):"";e=Kh.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=Kh.getInertBodyElement(i)}while(i!==o);return Ul((new gL).sanitizeChildren(d_(e)||e))}finally{if(e){const i=d_(e)||e;for(;i.firstChild;)i.removeChild(i.firstChild)}}}function d_(n){return"content"in n&&function yL(n){return n.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===n.nodeName}(n)?n.content:null}var sn=(()=>((sn=sn||{})[sn.NONE=0]="NONE",sn[sn.HTML=1]="HTML",sn[sn.STYLE=2]="STYLE",sn[sn.SCRIPT=3]="SCRIPT",sn[sn.URL=4]="URL",sn[sn.RESOURCE_URL=5]="RESOURCE_URL",sn))();function h_(n){const t=ku();return t?L0(t.sanitize(sn.HTML,n)||""):Po(n,"HTML")?L0(Ar(n)):G0(function P0(){return void 0!==o_?o_:typeof document<"u"?document:void 0}(),kt(n))}function Rn(n){const t=ku();return t?t.sanitize(sn.URL,n)||"":Po(n,"URL")?Ar(n):Iu(kt(n))}function ku(){const n=xe();return n&&n[12]}const $0=new ge("ENVIRONMENT_INITIALIZER"),p_=new ge("INJECTOR",-1),K0=new ge("INJECTOR_DEF_TYPES");class Y0{get(t,e=Eu){if(e===Eu){const i=new Error(`NullInjectorError: No provider for ${yn(t)}!`);throw i.name="NullInjectorError",i}return e}}function AL(...n){return{\u0275providers:Q0(0,n)}}function Q0(n,...t){const e=[],i=new Set;let r;return cs(t,o=>{const s=o;f_(s,e,[],i)&&(r||(r=[]),r.push(s))}),void 0!==r&&X0(r,e),e}function X0(n,t){for(let e=0;e{t.push(o)})}}function f_(n,t,e,i){if(!(n=Et(n)))return!1;let r=null,o=Rw(n);const s=!o&&gn(n);if(o||s){if(s&&!s.standalone)return!1;r=n}else{const l=n.ngModule;if(o=Rw(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)f_(c,t,e,i)}}else{if(!o)return!1;{if(null!=o.imports&&!a){let c;i.add(r);try{cs(o.imports,u=>{f_(u,t,e,i)&&(c||(c=[]),c.push(u))})}finally{}void 0!==c&&X0(c,t)}if(!a){const c=ka(r)||(()=>new r);t.push({provide:r,useFactory:c,deps:dn},{provide:K0,useValue:r,multi:!0},{provide:$0,useValue:()=>T(r),multi:!0})}const l=o.providers;null==l||a||cs(l,u=>{t.push(u)})}}return r!==n&&void 0!==n.providers}const TL=vn({provide:String,useValue:vn});function m_(n){return null!==n&&"object"==typeof n&&TL in n}function Pa(n){return"function"==typeof n}const g_=new ge("Set Injector scope."),Yh={},IL={};let __;function Qh(){return void 0===__&&(__=new Y0),__}class La{}class eE extends La{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,y_(t,s=>this.processProvider(s)),this.records.set(p_,ql(void 0,this)),r.has("environment")&&this.records.set(La,ql(void 0,this));const o=this.records.get(g_);null!=o&&"string"==typeof o.value&&this.scopes.add(o.value),this.injectorDefTypes=new Set(this.get(K0.multi,dn,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=Hl(this),i=Fr(void 0);try{return t()}finally{Hl(e),Fr(i)}}get(t,e=Eu,i=yt.Default){this.assertNotDestroyed();const r=Hl(this),o=Fr(void 0);try{if(!(i&yt.SkipSelf)){let a=this.records.get(t);if(void 0===a){const l=function PL(n){return"function"==typeof n||"object"==typeof n&&n instanceof ge}(t)&&Dg(t);a=l&&this.injectableDefInScope(l)?ql(v_(t),Yh):null,this.records.set(t,a)}if(null!=a)return this.hydrate(t,a)}return(i&yt.Self?Qh():this.parent).get(t,e=i&yt.Optional&&e===Eu?null:e)}catch(s){if("NullInjectorError"===s.name){if((s[qh]=s[qh]||[]).unshift(yn(t)),r)throw s;return function jP(n,t,e,i){const r=n[qh];throw t[S0]&&r.unshift(t[S0]),n.message=function HP(n,t,e,i=null){n=n&&"\n"===n.charAt(0)&&"\u0275"==n.charAt(1)?n.slice(2):n;let r=yn(t);if(Array.isArray(t))r=t.map(yn).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):yn(a)))}r=`{${o.join(", ")}}`}return`${e}${i?"("+i+")":""}[${r}]: ${n.replace(LP,"\n ")}`}("\n"+n.message,r,e,i),n.ngTokenPath=r,n[qh]=null,n}(s,t,"R3InjectorError",this.source)}throw s}finally{Fr(o),Hl(r)}}resolveInjectorInitializers(){const t=Hl(this),e=Fr(void 0);try{const i=this.get($0.multi,dn,yt.Self);for(const r of i)r()}finally{Hl(t),Fr(e)}}toString(){const t=[],e=this.records;for(const i of e.keys())t.push(yn(i));return`R3Injector[${t.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new Se(205,!1)}processProvider(t){let e=Pa(t=Et(t))?t:Et(t&&t.provide);const i=function kL(n){return m_(n)?ql(void 0,n.useValue):ql(tE(n),Yh)}(t);if(Pa(t)||!0!==t.multi)this.records.get(e);else{let r=this.records.get(e);r||(r=ql(void 0,Yh,!0),r.factory=()=>i_(r.multi),this.records.set(e,r)),e=t,r.multi.push(t)}this.records.set(e,i)}hydrate(t,e){return e.value===Yh&&(e.value=IL,e.value=e.factory()),"object"==typeof e.value&&e.value&&function OL(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 v_(n){const t=Dg(n),e=null!==t?t.factory:ka(n);if(null!==e)return e;if(n instanceof ge)throw new Se(204,!1);if(n instanceof Function)return function ML(n){const t=n.length;if(t>0)throw wu(t,"?"),new Se(204,!1);const e=function AO(n){const t=n&&(n[Eh]||n[Ow]);if(t){const e=function TO(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 Se(204,!1)}function tE(n,t,e){let i;if(Pa(n)){const r=Et(n);return ka(r)||v_(r)}if(m_(n))i=()=>Et(n.useValue);else if(function J0(n){return!(!n||!n.useFactory)}(n))i=()=>n.useFactory(...i_(n.deps||[]));else if(function Z0(n){return!(!n||!n.useExisting)}(n))i=()=>T(Et(n.useExisting));else{const r=Et(n&&(n.useClass||n.provide));if(!function RL(n){return!!n.deps}(n))return ka(r)||v_(r);i=()=>new r(...i_(n.deps))}return i}function ql(n,t,e=!1){return{factory:n,value:t,multi:e?[]:void 0}}function LL(n){return!!n.\u0275providers}function y_(n,t){for(const e of n)Array.isArray(e)?y_(e,t):LL(e)?y_(e.\u0275providers,t):t(e)}class nE{}class BL{resolveComponentFactory(t){throw function NL(n){const t=Error(`No component factory found for ${yn(n)}. Did you add it to @NgModule.entryComponents?`);return t.ngComponent=n,t}(t)}}let ho=(()=>{class n{}return n.NULL=new BL,n})();function jL(){return zl(si(),xe())}function zl(n,t){return new Xe(jr(n,t))}let Xe=(()=>{class n{constructor(e){this.nativeElement=e}}return n.__NG_ELEMENT_ID__=jL,n})();function HL(n){return n instanceof Xe?n.nativeElement:n}class Ru{}let po=(()=>{class n{}return n.__NG_ELEMENT_ID__=()=>function VL(){const n=xe(),e=Er(si().index,n);return(rr(e)?e:n)[11]}(),n})(),UL=(()=>{class n{}return n.\u0275prov=me({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 rE=new Fa("14.1.0"),b_={};function S_(n){return n.ngOriginalError}class ds{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&&S_(t);for(;e&&S_(e);)e=S_(e);return e||null}}const A_=new Map;let tF=0;const x_="__ngContext__";function ki(n,t){rr(t)?(n[x_]=t[20],function iF(n){A_.set(n[20],n)}(t)):n[x_]=t}function Ou(n){const t=n[x_];return"number"==typeof t?function cE(n){return A_.get(n)||null}(t):t||null}function I_(n){const t=Ou(n);return t?rr(t)?t:t.lView:null}const hF=(()=>(typeof requestAnimationFrame<"u"&&requestAnimationFrame||setTimeout).bind(_n))();function hs(n){return n instanceof Function?n():n}var or=(()=>((or=or||{})[or.Important=1]="Important",or[or.DashCase=2]="DashCase",or))();function k_(n,t){return undefined(n,t)}function Pu(n){const t=n[3];return co(t)?t[3]:t}function R_(n){return _E(n[13])}function O_(n){return _E(n[4])}function _E(n){for(;null!==n&&!co(n);)n=n[4];return n}function Wl(n,t,e,i,r){if(null!=i){let o,s=!1;co(i)?o=i:rr(i)&&(s=!0,i=i[0]);const a=Jn(i);0===n&&null!==e?null==r?EE(t,e,a):Na(t,e,a,r||null,!0):1===n&&null!==e?Na(t,e,a,r||null,!0):2===n?function ME(n,t,e){const i=Xh(n,t);i&&function MF(n,t,e,i){n.removeChild(t,e,i)}(n,i,t,e)}(t,a,s):3===n&&t.destroyNode(a),null!=o&&function OF(n,t,e,i,r){const o=e[7];o!==Jn(e)&&Wl(t,n,i,o,r);for(let a=10;a0&&(n[e-1][4]=i[4]);const o=Vh(n,10+t);!function wF(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 bE(n,t){if(!(128&t[2])){const e=t[11];e.destroyNode&&Lu(n,t,e,3,null,null),function SF(n){let t=n[13];if(!t)return N_(n[1],n);for(;t;){let e=null;if(rr(t))e=t[13];else{const i=t[10];i&&(e=i)}if(!e){for(;t&&!t[4]&&t!==n;)rr(t)&&N_(t[1],t),t=t[3];null===t&&(t=n),rr(t)&&N_(t[1],t),e=t&&t[4]}t=e}}(t)}}function N_(n,t){if(!(128&t[2])){t[2]&=-65,t[2]|=128,function IF(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!==OE(m,c,0)||2&i&&c!==h){if(fo(i))return!1;s=!0}}}}else{if(!s&&!fo(i)&&!fo(l))return!1;if(s&&fo(l))continue;s=!1,i=l|1&i}}return fo(i)||s}function fo(n){return 0==(1&n)}function BF(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&&!fo(s)&&(t+=NE(o,r),r=""),i=s,o=o||!fo(i);e++}return""!==r&&(t+=NE(o,r)),t}const Rt={};function f(n){BE(nn(),xe(),Gi()+n,!1)}function BE(n,t,e,i){if(!i)if(3==(3&t[2])){const o=n.preOrderCheckHooks;null!==o&&Oh(t,o,e)}else{const o=n.preOrderHooks;null!==o&&Ph(t,o,0,e)}Zs(e)}function UE(n,t=null,e=null,i){const r=qE(n,t,e,i);return r.resolveInjectorInitializers(),r}function qE(n,t=null,e=null,i,r=new Set){const o=[e||dn,AL(n)];return i=i||("object"==typeof n?void 0:yn(n)),new eE(o,t||Qh(),i||null,r)}let On=(()=>{class n{static create(e,i){if(Array.isArray(e))return UE({name:""},i,e,"");{const r=e.name??"";return UE({name:r},e.parent,e.providers,r)}}}return n.THROW_IF_NOT_FOUND=Eu,n.NULL=new Y0,n.\u0275prov=me({token:n,providedIn:"any",factory:()=>T(p_)}),n.__NG_ELEMENT_ID__=-1,n})();function p(n,t=yt.Default){const e=xe();return null===e?T(n,t):m0(si(),e,Et(n),t)}function Kl(){throw new Error("invalid")}function tp(n,t){return n<<17|t<<2}function mo(n){return n>>17&32767}function W_(n){return 2|n}function ps(n){return(131068&n)>>2}function $_(n,t){return-131069&n|t<<2}function K_(n){return 1|n}function sD(n,t){const e=n.contentQueries;if(null!==e)for(let i=0;i22&&BE(n,t,22,!1),e(i,r)}finally{Zs(o)}}function lD(n,t,e){if(kg(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 mD(n,t){null!==n.hostBindings&&n.hostBindings(1,t)}function gD(n,t){t.flags|=2,(n.components||(n.components=[])).push(t.index)}function LN(n,t,e){if(e){if(t.exportAs)for(let i=0;i0&&cv(e)}}function cv(n){for(let i=R_(n);null!==i;i=O_(i))for(let r=10;r0&&cv(o)}const e=n[1].components;if(null!==e)for(let i=0;i0&&cv(r)}}function UN(n,t){const e=Er(t,n),i=e[1];(function qN(n,t){for(let e=t.length;ePromise.resolve(null))();function wD(n){return n[7]||(n[7]=[])}function ED(n){return n.cleanup||(n.cleanup=[])}function DD(n,t,e){return(null===n||uo(n))&&(e=function WO(n){for(;Array.isArray(n);){if("object"==typeof n[1])return n;n=n[0]}return null}(e[t.index])),e[11]}function SD(n,t){const e=n[9],i=e?e.get(ds,null):null;i&&i.handleError(t)}function pv(n,t,e,i,r){for(let o=0;o-1&&(F_(t,i),Vh(e,i))}this._attachedToViewContainer=!1}bE(this._lView[1],this._lView)}onDestroy(t){uD(this._lView[1],this._lView,null,t)}markForCheck(){uv(this._cdRefInjectingView||this._lView)}detach(){this._lView[2]&=-65}reattach(){this._lView[2]|=64}detectChanges(){!function dv(n,t,e){const i=t[10];i.begin&&i.begin();try{Fu(n,t,n.template,e)}catch(r){throw SD(t,r),r}finally{i.end&&i.end()}}(this._lView[1],this._lView,this.context)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new Se(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null,function DF(n,t){Lu(n,t,t[11],2,null,null)}(this._lView[1],this._lView)}attachToAppRef(t){if(this._attachedToViewContainer)throw new Se(902,!1);this._appRef=t}}class WN extends Nu{constructor(t){super(t),this._view=t}detectChanges(){CD(this._view)}checkNoChanges(){}get context(){return null}}class fv extends ho{constructor(t){super(),this.ngModule=t}resolveComponentFactory(t){const e=gn(t);return new Bu(e,this.ngModule)}}function AD(n){const t=[];for(let e in n)n.hasOwnProperty(e)&&t.push({propName:n[e],templateName:e});return t}class KN{constructor(t,e){this.injector=t,this.parentInjector=e}get(t,e,i){const r=this.injector.get(t,b_,i);return r!==b_||e===b_?r:this.parentInjector.get(t,e,i)}}class Bu extends nE{constructor(t,e){super(),this.componentDef=t,this.ngModule=e,this.componentType=t.type,this.selector=function zF(n){return n.map(qF).join(",")}(t.selectors),this.ngContentSelectors=t.ngContentSelectors?t.ngContentSelectors:[],this.isBoundToModule=!!e}get inputs(){return AD(this.componentDef.inputs)}get outputs(){return AD(this.componentDef.outputs)}create(t,e,i,r){let o=(r=r||this.ngModule)instanceof La?r:r?.injector;o&&null!==this.componentDef.getStandaloneInjector&&(o=this.componentDef.getStandaloneInjector(o)||o);const s=o?new KN(t,o):t,a=s.get(Ru,null);if(null===a)throw new Se(407,!1);const l=s.get(UL,null),c=a.createRenderer(null,this.componentDef),u=this.componentDef.selectors[0][0]||"div",d=i?function SN(n,t,e){return n.selectRootElement(t,e===ao.ShadowDom)}(c,i,this.componentDef.encapsulation):L_(a.createRenderer(null,this.componentDef),u,function $N(n){const t=n.toLowerCase();return"svg"===t?"svg":"math"===t?"math":null}(u)),h=this.componentDef.onPush?288:272,m=function JN(n,t){return{components:[],scheduler:n||hF,clean:GN,playerHandler:t||null,flags:0}}(),y=sv(0,null,null,1,0,null,null,null,null,null),S=rp(null,y,m,h,null,null,a,c,l,s,null);let U,ee;zg(S);try{const ve=function XN(n,t,e,i,r,o){const s=e[1];e[22]=n;const l=Yl(s,22,2,"#host",null),c=l.mergedAttrs=t.hostAttrs;null!==c&&(ap(l,c,!0),null!==n&&(Lh(r,n,c),null!==l.classes&&V_(r,n,l.classes),null!==l.styles&&RE(r,n,l.styles)));const u=i.createRenderer(n,t),d=rp(e,cD(t),null,t.onPush?32:16,e[22],l,i,u,o||null,null,null);return s.firstCreatePass&&(jh(vu(l,e),s,t.type),gD(s,l),_D(l,e.length,1)),sp(e,d),e[22]=d}(d,this.componentDef,S,a,c);if(d)if(i)Lh(c,d,["ng-version",rE.full]);else{const{attrs:ne,classes:Ie}=function GF(n){const t=[],e=[];let i=1,r=2;for(;i0&&V_(c,d,Ie.join(" "))}if(ee=Fg(y,22),void 0!==e){const ne=ee.projection=[];for(let Ie=0;Ie=0;i--){const r=n[i];r.hostVars=t+=r.hostVars,r.hostAttrs=Fh(r.hostAttrs,e=Fh(e,r.hostAttrs))}}(i)}function mv(n){return n===Dl?{}:n===dn?[]:n}function n3(n,t){const e=n.viewQuery;n.viewQuery=e?(i,r)=>{t(i,r),e(i,r)}:t}function r3(n,t){const e=n.contentQueries;n.contentQueries=e?(i,r,o)=>{t(i,r,o),e(i,r,o)}:t}function o3(n,t){const e=n.hostBindings;n.hostBindings=e?(i,r)=>{t(i,r),e(i,r)}:t}let cp=null;function Ba(){if(!cp){const n=_n.Symbol;if(n&&n.iterator)cp=n.iterator;else{const t=Object.getOwnPropertyNames(Map.prototype);for(let e=0;ea(Jn(tt[i.index])):i.index;let Ie=null;if(!a&&l&&(Ie=function v3(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!==Ie)(Ie.__ngLastListenerFn__||Ie).__ngNextListenerFn__=o,Ie.__ngLastListenerFn__=o,m=!1;else{o=HD(i,t,d,o,!1);const tt=e.listen(ee,r,o);h.push(o,tt),u&&u.push(r,ne,ve,ve+1)}}else o=HD(i,t,d,o,!1);const y=i.outputs;let S;if(m&&null!==y&&(S=y[r])){const U=S.length;if(U)for(let ee=0;ee0;)t=t[15],n--;return t}(n,xt.lFrame.contextLView))[8]}(n)}function y3(n,t){let e=null;const i=function jF(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 li={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function QD(n){return n.substring(li.key,li.keyEnd)}function XD(n,t){const e=li.textEnd;return e===t?-1:(t=li.keyEnd=function A3(n,t,e){for(;t32;)t++;return t}(n,li.key=t,e),sc(n,t,e))}function sc(n,t,e){for(;t=0;e=XD(t,e))Sr(n,QD(t),!0)}function go(n,t,e,i){const r=xe(),o=nn(),s=ls(2);o.firstUpdatePass&&iS(o,n,s,i),t!==Rt&&Ri(r,s,t)&&oS(o,o.data[Gi()],r,r[11],n,r[s+1]=function F3(n,t){return null==n||("string"==typeof t?n+=t:"object"==typeof n&&(n=yn(Ar(n)))),n}(t,e),i,s)}function _o(n,t,e,i){const r=nn(),o=ls(2);r.firstUpdatePass&&iS(r,null,o,i);const s=xe();if(e!==Rt&&Ri(s,o,e)){const a=r.data[Gi()];if(aS(a,i)&&!nS(r,o)){let l=i?a.classesWithoutHost:a.stylesWithoutHost;null!==l&&(e=wg(l,e||"")),_v(r,a,s,e,i)}else!function L3(n,t,e,i,r,o,s,a){r===Rt&&(r=dn);let l=0,c=0,u=0=n.expandoStartIndex}function iS(n,t,e,i){const r=n.data;if(null===r[e+1]){const o=r[Gi()],s=nS(n,e);aS(o,i)&&null===t&&!s&&(t=!1),t=function M3(n,t,e,i){const r=Ug(n);let o=i?t.residualClasses:t.residualStyles;if(null===r)0===(i?t.classBindings:t.styleBindings)&&(e=Uu(e=bv(null,n,t,e,i),t.attrs,i),o=null);else{const s=t.directiveStylingLast;if(-1===s||n[s]!==r)if(e=bv(r,n,t,e,i),null===o){let l=function k3(n,t,e){const i=e?t.classBindings:t.styleBindings;if(0!==ps(i))return n[mo(i)]}(n,t,i);void 0!==l&&Array.isArray(l)&&(l=bv(null,n,t,l[1],i),l=Uu(l,t.attrs,i),function R3(n,t,e,i){n[mo(e?t.classBindings:t.styleBindings)]=i}(n,t,i,l))}else o=function O3(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=mo(n[a+1]);n[i+1]=tp(h,a),0!==h&&(n[h+1]=$_(n[h+1],i)),n[a+1]=function uN(n,t){return 131071&n|t<<17}(n[a+1],i)}else n[i+1]=tp(a,0),0!==a&&(n[a+1]=$_(n[a+1],i)),a=i;else n[i+1]=tp(l,0),0===a?a=i:n[l+1]=$_(n[l+1],i),l=i;c&&(n[i+1]=W_(n[i+1])),YD(n,u,i,!0),YD(n,u,i,!1),function C3(n,t,e,i,r){const o=r?n.residualClasses:n.residualStyles;null!=o&&"string"==typeof t&&jl(o,t)>=0&&(e[i+1]=K_(e[i+1]))}(t,u,n,i,o),s=tp(a,l),o?t.classBindings=s:t.styleBindings=s}(r,o,t,e,s,i)}}function bv(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?dn:void 0);let m=d?e_(h,i):u===i?h:void 0;if(c&&!hp(m)&&(m=e_(l,i)),hp(m)&&(a=m,s))return a;const y=n[r+1];r=s?mo(y):ps(y)}if(null!==t){let l=o?t.residualClasses:t.residualStyles;null!=l&&(a=e_(l,i))}return a}function hp(n){return void 0!==n}function aS(n,t){return 0!=(n.flags&(t?16:32))}function j(n,t=""){const e=xe(),i=nn(),r=n+22,o=i.firstCreatePass?Yl(i,r,1,t,null):i.data[r],s=e[r]=function P_(n,t){return n.createText(t)}(e[11],t);Zh(i,e,s,o),Ro(o,!1)}function we(n){return qe("",n,""),we}function qe(n,t,e){const i=xe(),r=Zl(i,n,t,e);return r!==Rt&&fs(i,Gi(),r),qe}function vo(n,t,e,i,r){const o=xe(),s=Jl(o,n,t,e,i,r);return s!==Rt&&fs(o,Gi(),s),vo}function Ho(n,t,e){const i=xe();return Ri(i,Ml(),t)&&Tr(nn(),Vn(),i,n,t,i[11],e,!0),Ho}function qu(n,t,e){const i=xe();if(Ri(i,Ml(),t)){const o=nn(),s=Vn();Tr(o,s,i,n,t,DD(Ug(o.data),s,i),e,!0)}return qu}const Ha=void 0;var tB=["en",[["a","p"],["AM","PM"],Ha],[["AM","PM"],Ha,Ha],[["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"]],Ha,[["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"]],Ha,[["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}",Ha,"{1} 'at' {0}",Ha],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",function eB(n){const e=Math.floor(Math.abs(n)),i=n.toString().replace(/^[^.]*\.?/,"").length;return 1===e&&0===i?1:5}];let ac={};function $i(n){const t=function nB(n){return n.toLowerCase().replace(/_/g,"-")}(n);let e=AS(t);if(e)return e;const i=t.split("-")[0];if(e=AS(i),e)return e;if("en"===i)return tB;throw new Se(701,!1)}function AS(n){return n in ac||(ac[n]=_n.ng&&_n.ng.common&&_n.ng.common.locales&&_n.ng.common.locales[n]),ac[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 lc="en-US";let TS=lc;function Ev(n,t,e,i,r){if(n=Et(n),Array.isArray(n))for(let o=0;o>20;if(Pa(n)||!n.multi){const m=new gu(l,r,p),y=Sv(a,t,r?u:u+h,d);-1===y?(jh(vu(c,s),o,a),Dv(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=Sv(a,t,u+h,d),y=Sv(a,t,u,u+h),S=m>=0&&e[m],U=y>=0&&e[y];if(r&&!U||!r&&!S){jh(vu(c,s),o,a);const ee=function JB(n,t,e,i,r){const o=new gu(n,e,p);return o.multi=[],o.index=t,o.componentProviders=0,ZS(o,r,i&&!e),o}(r?ZB:XB,e.length,r,i,l);!r&&U&&(e[y].providerFactory=ee),Dv(o,n,t.length,0),t.push(a),c.directiveStart++,c.directiveEnd++,r&&(c.providerIndexes+=1048576),e.push(ee),s.push(ee)}else Dv(o,n,m>-1?m:y,ZS(e[r?y:m],l,!r&&i));!r&&i&&U&&e[y].componentProviders++}}}function Dv(n,t,e,i){const r=Pa(t),o=function xL(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 ZS(n,t,e){return e&&n.componentProviders++,n.multi.push(t)-1}function Sv(n,t,e,i){for(let r=e;r{e.providersResolver=(i,r)=>function QB(n,t,e){const i=nn();if(i.firstCreatePass){const r=uo(n);Ev(e,i.data,i.blueprint,r,!0),Ev(t,i.data,i.blueprint,r,!1)}}(i,r?r(n):n,t)}}class Va{}class JS{}class eA extends Va{constructor(t,e){super(),this._parent=e,this._bootstrapComponents=[],this.destroyCbs=[],this.componentFactoryResolver=new fv(this);const i=Cr(t);this._bootstrapComponents=hs(i.bootstrap),this._r3Injector=qE(t,e,[{provide:Va,useValue:this},{provide:ho,useValue:this.componentFactoryResolver}],yn(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 Tv extends JS{constructor(t){super(),this.moduleType=t}create(t){return new eA(this.moduleType,t)}}class t5 extends Va{constructor(t,e,i){super(),this.componentFactoryResolver=new fv(this),this.instance=null;const r=new eE([...t,{provide:Va,useValue:this},{provide:ho,useValue:this.componentFactoryResolver}],e||Qh(),i,new Set(["environment"]));this.injector=r,r.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(t){this.injector.onDestroy(t)}}function Mv(n,t,e){const i=zi()+n,r=xe();return r[i]===Rt?No(r,i,e?t.call(e):t()):function Hu(n,t){return n[t]}(r,i)}function $n(n,t,e,i){return lA(xe(),zi(),n,t,e,i)}function aA(n,t,e,i,r){return function cA(n,t,e,i,r,o,s){const a=t+e;return ja(n,a,r,o)?No(n,a+2,s?i.call(s,r,o):i(r,o)):Ku(n,a+2)}(xe(),zi(),n,t,e,i,r)}function Ki(n,t,e,i,r,o,s){return function dA(n,t,e,i,r,o,s,a,l){const c=t+e;return function Vr(n,t,e,i,r,o){const s=ja(n,t,e,i);return ja(n,t+2,r,o)||s}(n,c,r,o,s,a)?No(n,c+4,l?i.call(l,r,o,s,a):i(r,o,s,a)):Ku(n,c+4)}(xe(),zi(),n,t,e,i,r,o,s)}function Ku(n,t){const e=n[t];return e===Rt?void 0:e}function lA(n,t,e,i,r,o){const s=t+e;return Ri(n,s,r)?No(n,s+1,o?i.call(o,r):i(r)):Ku(n,s+1)}function Ze(n,t){const e=nn();let i;const r=n+22;e.firstCreatePass?(i=function y5(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=ka(i.type)),s=Fr(p);try{const a=Nh(!1),l=o();return Nh(a),function m3(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 Je(n,t,e){const i=n+22,r=xe(),o=Il(r,i);return function Yu(n,t){return n[1].data[t].pure}(r,i)?lA(r,zi(),t,o.transform,e,o):o.transform(e)}function kv(n){return t=>{setTimeout(n,void 0,t)}}const He=class D5 extends L{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=kv(o),r&&(r=kv(r)),s&&(s=kv(s)));const a=super.subscribe({next:r,error:o,complete:s});return t instanceof E&&t.add(a),a}};function S5(){return this._results[Ba()]()}class Ua{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=Ba(),i=Ua.prototype;i[e]||(i[e]=S5)}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=Dr(t);(this._changesDetected=!function SP(n,t,e){if(n.length!==t.length)return!1;for(let i=0;i{class n{}return n.__NG_ELEMENT_ID__=x5,n})();const A5=bn,T5=class extends A5{constructor(t,e,i){super(),this._declarationLView=t,this._declarationTContainer=e,this.elementRef=i}createEmbeddedView(t,e){const i=this._declarationTContainer.tViews,r=rp(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)),op(i,r,t),new Nu(r)}};function x5(){return _p(si(),xe())}function _p(n,t){return 4&n.type?new T5(t,n,zl(n,t)):null}let En=(()=>{class n{}return n.__NG_ELEMENT_ID__=I5,n})();function I5(){return mA(si(),xe())}const M5=En,pA=class extends M5{constructor(t,e,i){super(),this._lContainer=t,this._hostTNode=e,this._hostLView=i}get element(){return zl(this._hostTNode,this._hostLView)}get injector(){return new Pl(this._hostTNode,this._hostLView)}get parentInjector(){const t=Bh(this._hostTNode,this._hostLView);if(u0(t)){const e=Ol(t,this._hostLView),i=Rl(t);return new Pl(e[1].data[i+8],e)}return new Pl(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(t){const e=fA(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(gn(t)),c=i||this.parentInjector;if(!o&&null==l.ngModule){const h=(s?c:this.parentInjector).get(La,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 KO(n){return co(n[3])}(i)){const u=this.indexOf(t);if(-1!==u)this.detach(u);else{const d=i[3],h=new pA(d,d[6],d[3]);h.detach(h.indexOf(t))}}const o=this._adjustIndex(e),s=this._lContainer;!function AF(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=yp,this.reject=yp,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)(T(jA,8))},n.\u0275prov=me({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const pc=new ge("AppId",{providedIn:"root",factory:function HA(){return`${Uv()}${Uv()}${Uv()}`}});function Uv(){return String.fromCharCode(97+Math.floor(25*Math.random()))}const VA=new ge("Platform Initializer"),Cp=new ge("Platform ID",{providedIn:"platform",factory:()=>"unknown"}),o4=new ge("appBootstrapListener"),qn=new ge("AnimationModuleType");let s4=(()=>{class n{log(e){console.log(e)}warn(e){console.warn(e)}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=me({token:n,factory:n.\u0275fac,providedIn:"platform"}),n})();const Vo=new ge("LocaleId",{providedIn:"root",factory:()=>Ra(Vo,yt.Optional|yt.SkipSelf)||function a4(){return typeof $localize<"u"&&$localize.locale||lc}()});class c4{constructor(t,e){this.ngModuleFactory=t,this.componentFactories=e}}let UA=(()=>{class n{compileModuleSync(e){return new Tv(e)}compileModuleAsync(e){return Promise.resolve(this.compileModuleSync(e))}compileModuleAndAllComponentsSync(e){const i=this.compileModuleSync(e),o=hs(Cr(e).declarations).reduce((s,a)=>{const l=gn(a);return l&&s.push(new Bu(l)),s},[]);return new c4(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=me({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const h4=(()=>Promise.resolve(0))();function qv(n){typeof Zone>"u"?h4.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 Se(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 p4(){let n=_n.requestAnimationFrame,t=_n.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 g4(n){const t=()=>{!function m4(n){n.isCheckStableRunning||-1!==n.lastRequestAnimationFrameId||(n.lastRequestAnimationFrameId=n.nativeRequestAnimationFrame.call(_n,()=>{n.fakeTopEventTask||(n.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{n.lastRequestAnimationFrameId=-1,Gv(n),n.isCheckStableRunning=!0,zv(n),n.isCheckStableRunning=!1},void 0,()=>{},()=>{})),n.fakeTopEventTask.invoke()}),Gv(n))}(n)};n._inner=n._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(e,i,r,o,s,a)=>{try{return GA(n),e.invokeTask(r,o,s,a)}finally{(n.shouldCoalesceEventChangeDetection&&"eventTask"===o.type||n.shouldCoalesceRunChangeDetection)&&t(),WA(n)}},onInvoke:(e,i,r,o,s,a,l)=>{try{return GA(n),e.invoke(r,o,s,a,l)}finally{n.shouldCoalesceRunChangeDetection&&t(),WA(n)}},onHasTask:(e,i,r,o)=>{e.hasTask(r,o),i===r&&("microTask"==o.change?(n._hasPendingMicrotasks=o.microTask,Gv(n),zv(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 Se(909,!1)}static assertNotInAngularZone(){if(et.isInAngularZone())throw new Se(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,f4,yp,yp);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 f4={};function zv(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 Gv(n){n.hasPendingMicrotasks=!!(n._hasPendingMicrotasks||(n.shouldCoalesceEventChangeDetection||n.shouldCoalesceRunChangeDetection)&&-1!==n.lastRequestAnimationFrameId)}function GA(n){n._nesting++,n.isStable&&(n.isStable=!1,n.onUnstable.emit(null))}function WA(n){n._nesting--,zv(n)}class _4{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 $A=new ge(""),wp=new ge("");let Kv,Wv=(()=>{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,Kv||(function v4(n){Kv=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(),qv(()=>{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())qv(()=>{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)(T(et),T($v),T(wp))},n.\u0275prov=me({token:n,factory:n.\u0275fac}),n})(),$v=(()=>{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 Kv?.findTestabilityInTree(this,e,i)??null}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=me({token:n,factory:n.\u0275fac,providedIn:"platform"}),n})(),na=null;const KA=new ge("AllowMultipleToken"),Yv=new ge("PlatformDestroyListeners");function QA(n,t,e=[]){const i=`Platform: ${t}`,r=new ge(i);return(o=[])=>{let s=Qv();if(!s||s.injector.get(KA,!1)){const a=[...e,...o,{provide:r,useValue:!0}];n?n(a):function C4(n){if(na&&!na.get(KA,!1))throw new Se(400,!1);na=n;const t=n.get(ZA);(function YA(n){const t=n.get(VA,null);t&&t.forEach(e=>e())})(n)}(function XA(n=[],t){return On.create({name:t,providers:[{provide:g_,useValue:"platform"},{provide:Yv,useValue:new Set([()=>na=null])},...n]})}(a,i))}return function E4(n){const t=Qv();if(!t)throw new Se(401,!1);return t}()}}function Qv(){return na?.get(ZA)??null}let ZA=(()=>{class n{constructor(e){this._injector=e,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(e,i){const r=function D4(n,t){let e;return e="noop"===n?new _4:("zone.js"===n?void 0:n)||new et(t),e}(i?.ngZone,function JA(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=On.create({providers:o,parent:this.injector,name:e.moduleType.name}),a=e.create(s),l=a.injector.get(ds,null);if(!l)throw new Se(402,!1);return r.runOutsideAngular(()=>{const c=r.onError.subscribe({next:u=>{l.handleError(u)}});a.onDestroy(()=>{Ep(this._modules,a),c.unsubscribe()})}),function eT(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(bp);return c.runInitializers(),c.donePromise.then(()=>(function xS(n){br(n,"Expected localeId to be defined"),"string"==typeof n&&(TS=n.toLowerCase().replace(/_/g,"-"))}(a.injector.get(Vo,lc)||lc),this._moduleDoBootstrap(a),a))})})}bootstrapModule(e,i=[]){const r=tT({},i);return function y4(n,t,e){const i=new Tv(e);return Promise.resolve(i)}(0,0,e).then(o=>this.bootstrapModuleFactory(o,r))}_moduleDoBootstrap(e){const i=e.injector.get(ia);if(e._bootstrapComponents.length>0)e._bootstrapComponents.forEach(r=>i.bootstrap(r));else{if(!e.instance.ngDoBootstrap)throw new Se(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 Se(404,!1);this._modules.slice().forEach(i=>i.destroy()),this._destroyListeners.forEach(i=>i());const e=this._injector.get(Yv,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)(T(On))},n.\u0275prov=me({token:n,factory:n.\u0275fac,providedIn:"platform"}),n})();function tT(n,t){return Array.isArray(t)?t.reduce(tT,n):{...n,...t}}let ia=(()=>{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(),qv(()=>{!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=Mn(o,s.pipe(Mw()))}get destroyed(){return this._destroyed}get injector(){return this._injector}bootstrap(e,i){const r=e instanceof nE;if(!this._injector.get(bp).done)throw!r&&function dc(n){const t=gn(n)||Ui(n)||qi(n);return null!==t&&t.standalone}(e),new Se(405,false);let s;s=r?e:this._injector.get(ho).resolveComponentFactory(e),this.componentTypes.push(s.componentType);const a=function b4(n){return n.isBoundToModule}(s)?void 0:this._injector.get(Va),c=s.create(On.NULL,[],i||s.selector,a),u=c.location.nativeElement,d=c.injector.get($A,null);return d?.registerApplication(u),c.onDestroy(()=>{this.detachView(c.hostView),Ep(this.components,c),d?.unregisterApplication(u)}),this._loadComponent(c),c}tick(){if(this._runningTick)throw new Se(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;Ep(this._views,i),i.detachFromAppRef()}_loadComponent(e){this.attachView(e.hostView),this.tick(),this.components.push(e),this._injector.get(o4,[]).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),()=>Ep(this._destroyListeners,e)}destroy(){if(this._destroyed)throw new Se(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)(T(et),T(La),T(ds))},n.\u0275prov=me({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();function Ep(n,t){const e=n.indexOf(t);e>-1&&n.splice(e,1)}let iT=!0,It=(()=>{class n{}return n.__NG_ELEMENT_ID__=T4,n})();function T4(n){return function x4(n,t,e){if(xh(n)&&!e){const i=Er(n.index,t);return new Nu(i,i)}return 47&n.type?new Nu(t[16],t):null}(si(),xe(),16==(16&n))}class lT{constructor(){}supports(t){return ju(t)}create(t){return new P4(t)}}const O4=(n,t)=>t;class P4{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||O4}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 L4(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 cT),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 cT),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 L4{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 F4{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 cT{constructor(){this.map=new Map}put(t){const e=t.trackById;let i=this.map.get(e);i||(i=new F4,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 uT(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 B4(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 B4{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 hT(){return new gs([new lT])}let gs=(()=>{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||hT()),deps:[[n,new Au,new us]]}}find(e){const i=this.factories.find(r=>r.supports(e));if(null!=i)return i;throw new Se(901,!1)}}return n.\u0275prov=me({token:n,providedIn:"root",factory:hT}),n})();function pT(){return new Xu([new dT])}let Xu=(()=>{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||pT()),deps:[[n,new Au,new us]]}}find(e){const i=this.factories.find(r=>r.supports(e));if(i)return i;throw new Se(901,!1)}}return n.\u0275prov=me({token:n,providedIn:"root",factory:pT}),n})();const V4=QA(null,"core",[]);let U4=(()=>{class n{constructor(e){}}return n.\u0275fac=function(e){return new(e||n)(T(ia))},n.\u0275mod=dt({type:n}),n.\u0275inj=ct({}),n})();let Ap=null;function Uo(){return Ap}const pt=new ge("DocumentToken");let ty=(()=>{class n{historyGo(e){throw new Error("Not implemented")}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=me({token:n,factory:function(){return function W4(){return T(fT)}()},providedIn:"platform"}),n})(),fT=(()=>{class n extends ty{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){mT()?this._history.pushState(e,i,r):this.location.hash=r}replaceState(e,i,r){mT()?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)(T(pt))},n.\u0275prov=me({token:n,factory:function(){return function $4(){return new fT(T(pt))}()},providedIn:"platform"}),n})();function mT(){return!!window.history.pushState}function gT(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 _T(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 za(n){return n&&"?"!==n[0]?"?"+n:n}let Tp=(()=>{class n{historyGo(e){throw new Error("Not implemented")}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=me({token:n,factory:function(){return function K4(){const n=T(pt).location;return new Q4(T(ty),n&&n.origin||"")}()},providedIn:"root"}),n})();const Y4=new ge("appBaseHref");let Q4=(()=>{class n extends Tp{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 gT(this._baseHref,e)}path(e=!1){const i=this._platformLocation.pathname+za(this._platformLocation.search),r=this._platformLocation.hash;return r&&e?`${i}${r}`:i}pushState(e,i,r,o){const s=this.prepareExternalUrl(r+za(o));this._platformLocation.pushState(e,i,s)}replaceState(e,i,r,o){const s=this.prepareExternalUrl(r+za(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)(T(ty),T(Y4,8))},n.\u0275prov=me({token:n,factory:n.\u0275fac}),n})(),Ga=(()=>{class n{constructor(e){this._subject=new He,this._urlChangeListeners=[],this._urlChangeSubscription=null,this._locationStrategy=e;const i=this._locationStrategy.getBaseHref();this._baseHref=_T(vT(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+za(i))}normalize(e){return n.stripTrailingSlash(function Z4(n,t){return n&&t.startsWith(n)?t.substring(n.length):t}(this._baseHref,vT(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+za(i)),r)}replaceState(e,i="",r=null){this._locationStrategy.replaceState(r,"",e,i),this._notifyUrlChangeListeners(this.prepareExternalUrl(e+za(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=za,n.joinWithSlash=gT,n.stripTrailingSlash=_T,n.\u0275fac=function(e){return new(e||n)(T(Tp))},n.\u0275prov=me({token:n,factory:function(){return function X4(){return new Ga(T(Tp))}()},providedIn:"root"}),n})();function vT(n){return n.replace(/\/index.html$/,"")}var Kn=(()=>((Kn=Kn||{})[Kn.Format=0]="Format",Kn[Kn.Standalone=1]="Standalone",Kn))(),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 xp(n,t){return qr($i(n)[Qe.DateFormat],t)}function Ip(n,t){return qr($i(n)[Qe.TimeFormat],t)}function Mp(n,t){return qr($i(n)[Qe.DateTimeFormat],t)}function Ur(n,t){const e=$i(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 bT(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 qr(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 iy(n){const[t,e]=n.split(":");return{hours:+t,minutes:+e}}const dj=/^(\d{4,})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/,Zu={},hj=/((?:[^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 ci=(()=>((ci=ci||{})[ci.Short=0]="Short",ci[ci.ShortGMT=1]="ShortGMT",ci[ci.Long=2]="Long",ci[ci.Extended=3]="Extended",ci))(),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))(),Vt=(()=>((Vt=Vt||{})[Vt.DayPeriods=0]="DayPeriods",Vt[Vt.Days=1]="Days",Vt[Vt.Months=2]="Months",Vt[Vt.Eras=3]="Eras",Vt))();function CT(n,t,e,i){let r=function Cj(n){if(DT(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 kp(r,o-1,s)}const e=parseFloat(n);if(!isNaN(n-e))return new Date(e);let i;if(i=n.match(dj))return function wj(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(!DT(t))throw new Error(`Unable to convert "${n}" into a date`);return t}(n);t=vs(e,t)||t;let a,s=[];for(;t;){if(a=hj.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=ET(i,l),r=function bj(n,t,e){const i=e?-1:1,r=n.getTimezoneOffset();return function yj(n,t){return(n=new Date(n.getTime())).setMinutes(n.getMinutes()+t),n}(n,i*(ET(t,r)-r))}(r,i,!0));let c="";return s.forEach(u=>{const d=function vj(n){if(oy[n])return oy[n];let t;switch(n){case"G":case"GG":case"GGG":t=Sn(Vt.Eras,Qt.Abbreviated);break;case"GGGG":t=Sn(Vt.Eras,Qt.Wide);break;case"GGGGG":t=Sn(Vt.Eras,Qt.Narrow);break;case"y":t=ti(Ct.FullYear,1,0,!1,!0);break;case"yy":t=ti(Ct.FullYear,2,0,!0,!0);break;case"yyy":t=ti(Ct.FullYear,3,0,!1,!0);break;case"yyyy":t=ti(Ct.FullYear,4,0,!1,!0);break;case"Y":t=Lp(1);break;case"YY":t=Lp(2,!0);break;case"YYY":t=Lp(3);break;case"YYYY":t=Lp(4);break;case"M":case"L":t=ti(Ct.Month,1,1);break;case"MM":case"LL":t=ti(Ct.Month,2,1);break;case"MMM":t=Sn(Vt.Months,Qt.Abbreviated);break;case"MMMM":t=Sn(Vt.Months,Qt.Wide);break;case"MMMMM":t=Sn(Vt.Months,Qt.Narrow);break;case"LLL":t=Sn(Vt.Months,Qt.Abbreviated,Kn.Standalone);break;case"LLLL":t=Sn(Vt.Months,Qt.Wide,Kn.Standalone);break;case"LLLLL":t=Sn(Vt.Months,Qt.Narrow,Kn.Standalone);break;case"w":t=ry(1);break;case"ww":t=ry(2);break;case"W":t=ry(1,!0);break;case"d":t=ti(Ct.Date,1);break;case"dd":t=ti(Ct.Date,2);break;case"c":case"cc":t=ti(Ct.Day,1);break;case"ccc":t=Sn(Vt.Days,Qt.Abbreviated,Kn.Standalone);break;case"cccc":t=Sn(Vt.Days,Qt.Wide,Kn.Standalone);break;case"ccccc":t=Sn(Vt.Days,Qt.Narrow,Kn.Standalone);break;case"cccccc":t=Sn(Vt.Days,Qt.Short,Kn.Standalone);break;case"E":case"EE":case"EEE":t=Sn(Vt.Days,Qt.Abbreviated);break;case"EEEE":t=Sn(Vt.Days,Qt.Wide);break;case"EEEEE":t=Sn(Vt.Days,Qt.Narrow);break;case"EEEEEE":t=Sn(Vt.Days,Qt.Short);break;case"a":case"aa":case"aaa":t=Sn(Vt.DayPeriods,Qt.Abbreviated);break;case"aaaa":t=Sn(Vt.DayPeriods,Qt.Wide);break;case"aaaaa":t=Sn(Vt.DayPeriods,Qt.Narrow);break;case"b":case"bb":case"bbb":t=Sn(Vt.DayPeriods,Qt.Abbreviated,Kn.Standalone,!0);break;case"bbbb":t=Sn(Vt.DayPeriods,Qt.Wide,Kn.Standalone,!0);break;case"bbbbb":t=Sn(Vt.DayPeriods,Qt.Narrow,Kn.Standalone,!0);break;case"B":case"BB":case"BBB":t=Sn(Vt.DayPeriods,Qt.Abbreviated,Kn.Format,!0);break;case"BBBB":t=Sn(Vt.DayPeriods,Qt.Wide,Kn.Format,!0);break;case"BBBBB":t=Sn(Vt.DayPeriods,Qt.Narrow,Kn.Format,!0);break;case"h":t=ti(Ct.Hours,1,-12);break;case"hh":t=ti(Ct.Hours,2,-12);break;case"H":t=ti(Ct.Hours,1);break;case"HH":t=ti(Ct.Hours,2);break;case"m":t=ti(Ct.Minutes,1);break;case"mm":t=ti(Ct.Minutes,2);break;case"s":t=ti(Ct.Seconds,1);break;case"ss":t=ti(Ct.Seconds,2);break;case"S":t=ti(Ct.FractionalSeconds,1);break;case"SS":t=ti(Ct.FractionalSeconds,2);break;case"SSS":t=ti(Ct.FractionalSeconds,3);break;case"Z":case"ZZ":case"ZZZ":t=Op(ci.Short);break;case"ZZZZZ":t=Op(ci.Extended);break;case"O":case"OO":case"OOO":case"z":case"zz":case"zzz":t=Op(ci.ShortGMT);break;case"OOOO":case"ZZZZ":case"zzzz":t=Op(ci.Long);break;default:return null}return oy[n]=t,t}(u);c+=d?d(r,e,l):"''"===u?"'":u.replace(/(^'|'$)/g,"").replace(/''/g,"'")}),c}function kp(n,t,e){const i=new Date(0);return i.setFullYear(n,t,e),i.setHours(0,0,0),i}function vs(n,t){const e=function J4(n){return $i(n)[Qe.LocaleId]}(n);if(Zu[e]=Zu[e]||{},Zu[e][t])return Zu[e][t];let i="";switch(t){case"shortDate":i=xp(n,Ln.Short);break;case"mediumDate":i=xp(n,Ln.Medium);break;case"longDate":i=xp(n,Ln.Long);break;case"fullDate":i=xp(n,Ln.Full);break;case"shortTime":i=Ip(n,Ln.Short);break;case"mediumTime":i=Ip(n,Ln.Medium);break;case"longTime":i=Ip(n,Ln.Long);break;case"fullTime":i=Ip(n,Ln.Full);break;case"short":const r=vs(n,"shortTime"),o=vs(n,"shortDate");i=Rp(Mp(n,Ln.Short),[r,o]);break;case"medium":const s=vs(n,"mediumTime"),a=vs(n,"mediumDate");i=Rp(Mp(n,Ln.Medium),[s,a]);break;case"long":const l=vs(n,"longTime"),c=vs(n,"longDate");i=Rp(Mp(n,Ln.Long),[l,c]);break;case"full":const u=vs(n,"fullTime"),d=vs(n,"fullDate");i=Rp(Mp(n,Ln.Full),[u,d])}return i&&(Zu[e][t]=i),i}function Rp(n,t){return t&&(n=n.replace(/\{([^}]+)}/g,function(e,i){return null!=t&&i in t?t[i]:e})),n}function bo(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 pj(n,t){return bo(n,3).substring(0,t)}(a,t);const l=Ur(s,mt.MinusSign);return bo(a,t,l,i,r)}}function Sn(n,t,e=Kn.Format,i=!1){return function(r,o){return function mj(n,t,e,i,r,o){switch(e){case Vt.Months:return function nj(n,t,e){const i=$i(n),o=qr([i[Qe.MonthsFormat],i[Qe.MonthsStandalone]],t);return qr(o,e)}(t,r,i)[n.getMonth()];case Vt.Days:return function tj(n,t,e){const i=$i(n),o=qr([i[Qe.DaysFormat],i[Qe.DaysStandalone]],t);return qr(o,e)}(t,r,i)[n.getDay()];case Vt.DayPeriods:const s=n.getHours(),a=n.getMinutes();if(o){const c=function sj(n){const t=$i(n);return bT(t),(t[Qe.ExtraData][2]||[]).map(i=>"string"==typeof i?iy(i):[iy(i[0]),iy(i[1])])}(t),u=function aj(n,t,e){const i=$i(n);bT(i);const o=qr([i[Qe.ExtraData][0],i[Qe.ExtraData][1]],t)||[];return qr(o,e)||[]}(t,r,i),d=c.findIndex(h=>{if(Array.isArray(h)){const[m,y]=h,S=s>=m.hours&&a>=m.minutes,U=s0?Math.floor(r/60):Math.ceil(r/60);switch(n){case ci.Short:return(r>=0?"+":"")+bo(s,2,o)+bo(Math.abs(r%60),2,o);case ci.ShortGMT:return"GMT"+(r>=0?"+":"")+bo(s,1,o);case ci.Long:return"GMT"+(r>=0?"+":"")+bo(s,2,o)+":"+bo(Math.abs(r%60),2,o);case ci.Extended:return 0===i?"Z":(r>=0?"+":"")+bo(s,2,o)+":"+bo(Math.abs(r%60),2,o);default:throw new Error(`Unknown zone width "${n}"`)}}}function wT(n){return kp(n.getFullYear(),n.getMonth(),n.getDate()+(4-n.getDay()))}function ry(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=wT(e),s=function _j(n){const t=kp(n,0,1).getDay();return kp(n,0,1+(t<=4?4:11)-t)}(o.getFullYear()),a=o.getTime()-s.getTime();r=1+Math.round(a/6048e5)}return bo(r,n,Ur(i,mt.MinusSign))}}function Lp(n,t=!1){return function(e,i){return bo(wT(e).getFullYear(),n,Ur(i,mt.MinusSign),t)}}const oy={};function ET(n,t){n=n.replace(/:/g,"");const e=Date.parse("Jan 01, 1970 00:00:00 "+n)/6e4;return isNaN(e)?t:e}function DT(n){return n instanceof Date&&!isNaN(n.valueOf())}function xT(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 Wa=(()=>{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 ${yn(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(gs),p(Xu),p(Xe),p(po))},n.\u0275dir=fe({type:n,selectors:[["","ngClass",""]],inputs:{klass:["class","klass"],ngClass:"ngClass"},standalone:!0}),n})();class Lj{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 Yn=(()=>{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 Lj(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),kT(a,r)}});for(let r=0,o=i.length;r{kT(i.get(r.currentIndex),r)})}static ngTemplateContextGuard(e,i){return!0}}return n.\u0275fac=function(e){return new(e||n)(p(En),p(bn),p(gs))},n.\u0275dir=fe({type:n,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"},standalone:!0}),n})();function kT(n,t){n.context.$implicit=t.item}let hn=(()=>{class n{constructor(e,i){this._viewContainer=e,this._context=new Nj,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){RT("ngIfThen",e),this._thenTemplateRef=e,this._thenViewRef=null,this._updateView()}set ngIfElse(e){RT("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(En),p(bn))},n.\u0275dir=fe({type:n,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"},standalone:!0}),n})();class Nj{constructor(){this.$implicit=null,this.ngIf=null}}function RT(n,t){if(t&&!t.createEmbeddedView)throw new Error(`${n} must be a TemplateRef, but received '${yn(t)}'.`)}class dy{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 fc=(()=>{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 dy(e,i)}ngDoCheck(){this._view.enforceState(this.ngSwitch._matchCase(this.ngSwitchCase))}}return n.\u0275fac=function(e){return new(e||n)(p(En),p(bn),p(fc,9))},n.\u0275dir=fe({type:n,selectors:[["","ngSwitchCase",""]],inputs:{ngSwitchCase:"ngSwitchCase"},standalone:!0}),n})(),OT=(()=>{class n{constructor(e,i,r){r._addDefault(new dy(e,i))}}return n.\u0275fac=function(e){return new(e||n)(p(En),p(bn),p(fc,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:or.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(Xe),p(Xu),p(po))},n.\u0275dir=fe({type:n,selectors:[["","ngStyle",""]],inputs:{ngStyle:"ngStyle"},standalone:!0}),n})(),Qi=(()=>{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(En))},n.\u0275dir=fe({type:n,selectors:[["","ngTemplateOutlet",""]],inputs:{ngTemplateOutletContext:"ngTemplateOutletContext",ngTemplateOutlet:"ngTemplateOutlet",ngTemplateOutletInjector:"ngTemplateOutletInjector"},standalone:!0,features:[kn]}),n})(),Xi=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=dt({type:n}),n.\u0275inj=ct({}),n})();const FT="browser";class BT{}class fy extends class dH extends class G4{}{constructor(){super(...arguments),this.supportsDOMEvents=!0}}{static makeCurrent(){!function z4(n){Ap||(Ap=n)}(new fy)}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 hH(){return ed=ed||document.querySelector("base"),ed?ed.getAttribute("href"):null}();return null==e?null:function pH(n){Bp=Bp||document.createElement("a"),Bp.setAttribute("href",n);const t=Bp.pathname;return"/"===t.charAt(0)?t:`/${t}`}(e)}resetBaseElement(){ed=null}getUserAgent(){return window.navigator.userAgent}getCookie(t){return xT(document.cookie,t)}}let Bp,ed=null;const jT=new ge("TRANSITION_ID"),mH=[{provide:jA,useFactory:function fH(n,t,e){return()=>{e.get(bp).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=me({token:n,factory:n.\u0275fac}),n})();const jp=new ge("EventManagerPlugins");let Hp=(()=>{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=me({token:n,factory:n.\u0275fac}),n})(),td=(()=>{class n extends VT{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(UT),this._hostNodes.delete(e)}onStylesAdded(e){this._hostNodes.forEach((i,r)=>{this._addStylesToHost(e,r,i)})}ngOnDestroy(){this._hostNodes.forEach(e=>e.forEach(UT))}}return n.\u0275fac=function(e){return new(e||n)(T(pt))},n.\u0275prov=me({token:n,factory:n.\u0275fac}),n})();function UT(n){Uo().remove(n)}const my={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/"},gy=/%COMP%/g;function Vp(n,t,e){for(let i=0;i{if("__ngUnwrap__"===t)return n;!1===n(t)&&(t.preventDefault(),t.returnValue=!1)}}let Up=(()=>{class n{constructor(e,i,r){this.eventManager=e,this.sharedStylesHost=i,this.appId=r,this.rendererByCompId=new Map,this.defaultRenderer=new _y(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 EH(this.eventManager,this.sharedStylesHost,i,this.appId),this.rendererByCompId.set(i.id,r)),r.applyToHost(e),r}case 1:case ao.ShadowDom:return new DH(this.eventManager,this.sharedStylesHost,e,i);default:if(!this.rendererByCompId.has(i.id)){const r=Vp(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)(T(Hp),T(td),T(pc))},n.\u0275prov=me({token:n,factory:n.\u0275fac}),n})();class _y{constructor(t){this.eventManager=t,this.data=Object.create(null),this.destroyNode=null}destroy(){}createElement(t,e){return e?document.createElementNS(my[e]||e,t):document.createElement(t)}createComment(t){return document.createComment(t)}createText(t){return document.createTextNode(t)}appendChild(t,e){($T(t)?t.content:t).appendChild(e)}insertBefore(t,e,i){t&&($T(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=my[r];o?t.setAttributeNS(o,e,i):t.setAttribute(e,i)}else t.setAttribute(e,i)}removeAttribute(t,e,i){if(i){const r=my[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&(or.DashCase|or.Important)?t.style.setProperty(e,i,r&or.Important?"important":""):t.style[e]=i}removeStyle(t,e,i){i&or.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,GT(i)):this.eventManager.addEventListener(t,e,GT(i))}}function $T(n){return"TEMPLATE"===n.tagName&&void 0!==n.content}class EH extends _y{constructor(t,e,i,r){super(t),this.component=i;const o=Vp(r+"-"+i.id,i.styles,[]);e.addStyles(o),this.contentAttr=function bH(n){return"_ngcontent-%COMP%".replace(gy,n)}(r+"-"+i.id),this.hostAttr=function CH(n){return"_nghost-%COMP%".replace(gy,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 DH extends _y{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=Vp(r.id,r.styles,[]);for(let s=0;s{class n extends HT{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)(T(pt))},n.\u0275prov=me({token:n,factory:n.\u0275fac}),n})();const KT=["alt","control","meta","shift"],TH={"\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"},YT={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"},xH={alt:n=>n.altKey,control:n=>n.ctrlKey,meta:n=>n.metaKey,shift:n=>n.shiftKey};let IH=(()=>{class n extends HT{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(KT.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 MH(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&&YT.hasOwnProperty(t)&&(t=YT[t]))}return TH[t]||t}(e);return r=r.toLowerCase()," "===r?r="space":"."===r&&(r="dot"),KT.forEach(o=>{o!=r&&(0,xH[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)(T(pt))},n.\u0275prov=me({token:n,factory:n.\u0275fac}),n})();const QT=[{provide:Cp,useValue:FT},{provide:VA,useValue:function kH(){fy.makeCurrent()},multi:!0},{provide:pt,useFactory:function OH(){return function QP(n){o_=n}(document),document},deps:[]}],XT=QA(V4,"browser",QT),ZT=new ge(""),JT=[{provide:wp,useClass:class gH{addToWindow(t){_n.getAngularTestability=(i,r=!0)=>{const o=t.findTestabilityInTree(i,r);if(null==o)throw new Error("Could not find testability for element.");return o},_n.getAllAngularTestabilities=()=>t.getAllTestabilities(),_n.getAllAngularRootElements=()=>t.getAllRootElements(),_n.frameworkStabilizers||(_n.frameworkStabilizers=[]),_n.frameworkStabilizers.push(i=>{const r=_n.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:$A,useClass:Wv,deps:[et,$v,wp]},{provide:Wv,useClass:Wv,deps:[et,$v,wp]}],ex=[{provide:g_,useValue:"root"},{provide:ds,useFactory:function RH(){return new ds},deps:[]},{provide:jp,useClass:SH,multi:!0,deps:[pt,et,Cp]},{provide:jp,useClass:IH,multi:!0,deps:[pt]},{provide:Up,useClass:Up,deps:[Hp,td,pc]},{provide:Ru,useExisting:Up},{provide:VT,useExisting:td},{provide:td,useClass:td,deps:[pt]},{provide:Hp,useClass:Hp,deps:[jp,et]},{provide:BT,useClass:_H,deps:[]},[]];let tx=(()=>{class n{constructor(e){}static withServerTransition(e){return{ngModule:n,providers:[{provide:pc,useValue:e.appId},{provide:jT,useExisting:pc},mH]}}}return n.\u0275fac=function(e){return new(e||n)(T(ZT,12))},n.\u0275mod=dt({type:n}),n.\u0275inj=ct({providers:[...ex,...JT],imports:[Xi,U4]}),n})();typeof window<"u"&&window;let $a=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=me({token:n,factory:function(e){let i=null;return i=e?new(e||n):T(ox),i},providedIn:"root"}),n})(),ox=(()=>{class n extends $a{constructor(e){super(),this._doc=e}sanitize(e,i){if(null==i)return null;switch(e){case sn.NONE:return i;case sn.HTML:return Po(i,"HTML")?Ar(i):G0(this._doc,String(i)).toString();case sn.STYLE:return Po(i,"Style")?Ar(i):i;case sn.SCRIPT:if(Po(i,"Script"))return Ar(i);throw new Error("unsafe value used in a script context");case sn.URL:return Po(i,"URL")?Ar(i):Iu(String(i));case sn.RESOURCE_URL:if(Po(i,"ResourceURL"))return Ar(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 oL(n){return new JP(n)}(e)}bypassSecurityTrustStyle(e){return function sL(n){return new eL(n)}(e)}bypassSecurityTrustScript(e){return function aL(n){return new tL(n)}(e)}bypassSecurityTrustUrl(e){return function lL(n){return new nL(n)}(e)}bypassSecurityTrustResourceUrl(e){return function cL(n){return new iL(n)}(e)}}return n.\u0275fac=function(e){return new(e||n)(T(pt))},n.\u0275prov=me({token:n,factory:function(e){let i=null;return i=e?new e:function qH(n){return new ox(n.get(pt))}(T(On)),i},providedIn:"root"}),n})();function by(...n){if(1===n.length){const t=n[0];if(N(t))return qp(t,null);if(M(t)&&Object.getPrototypeOf(t)===Object.prototype){const e=Object.keys(t);return qp(e.map(i=>t[i]),e)}}if("function"==typeof n[n.length-1]){const t=n.pop();return qp(n=1===n.length&&N(n[0])?n[0]:n,null).pipe(ue(e=>t(...e)))}return qp(n,null)}function qp(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 sx=(()=>{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(po),p(Xe))},n.\u0275dir=fe({type:n}),n})(),Ka=(()=>{class n extends sx{}return n.\u0275fac=function(){let t;return function(i){return(t||(t=Pt(n)))(i||n)}}(),n.\u0275dir=fe({type:n,features:[De]}),n})();const ar=new ge("NgValueAccessor"),GH={provide:ar,useExisting:tn(()=>zr),multi:!0},$H=new ge("CompositionEventMode");let zr=(()=>{class n extends sx{constructor(e,i,r){super(e,i),this._compositionMode=r,this._composing=!1,null==this._compositionMode&&(this._compositionMode=!function WH(){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(po),p(Xe),p($H,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&&$("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:[ot([GH]),De]}),n})();function sa(n){return null==n||("string"==typeof n||Array.isArray(n))&&0===n.length}function lx(n){return null!=n&&"number"==typeof n.length}const gi=new ge("NgValidators"),aa=new ge("NgAsyncValidators"),YH=/^(?=.{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 Cy{static min(t){return function cx(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 dx(n){return sa(n.value)?{required:!0}:null}(t)}static requiredTrue(t){return function hx(n){return!0===n.value?null:{required:!0}}(t)}static email(t){return function px(n){return sa(n.value)||YH.test(n.value)?null:{email:!0}}(t)}static minLength(t){return function fx(n){return t=>sa(t.value)||!lx(t.value)?null:t.value.lengthlx(t.value)&&t.value.length>n?{maxlength:{requiredLength:n,actualLength:t.value.length}}:null}(t)}static pattern(t){return function gx(n){if(!n)return zp;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 wx(t)}static composeAsync(t){return Ex(t)}}function zp(n){return null}function _x(n){return null!=n}function vx(n){return Vu(n)?vt(n):n}function yx(n){let t={};return n.forEach(e=>{t=null!=e?{...t,...e}:t}),0===Object.keys(t).length?null:t}function bx(n,t){return t.map(e=>e(n))}function Cx(n){return n.map(t=>function QH(n){return!n.validate}(t)?t:e=>t.validate(e))}function wx(n){if(!n)return null;const t=n.filter(_x);return 0==t.length?null:function(e){return yx(bx(e,t))}}function wy(n){return null!=n?wx(Cx(n)):null}function Ex(n){if(!n)return null;const t=n.filter(_x);return 0==t.length?null:function(e){return by(bx(e,t).map(vx)).pipe(ue(yx))}}function Ey(n){return null!=n?Ex(Cx(n)):null}function Dx(n,t){return null===n?[t]:Array.isArray(n)?[...n,t]:[n,t]}function Sx(n){return n._rawValidators}function Ax(n){return n._rawAsyncValidators}function Dy(n){return n?Array.isArray(n)?n:[n]:[]}function Gp(n,t){return Array.isArray(n)?n.includes(t):n===t}function Tx(n,t){const e=Dy(t);return Dy(n).forEach(r=>{Gp(e,r)||e.push(r)}),e}function xx(n,t){return Dy(t).filter(e=>!Gp(n,e))}class Ix{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=wy(this._rawValidators)}_setAsyncValidators(t){this._rawAsyncValidators=t||[],this._composedAsyncValidatorFn=Ey(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 Ix{get formDirective(){return null}get path(){return null}}class wo extends Ix{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}}let Eo=(()=>{class n extends class Mx{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(wo,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:[De]}),n})();const nd="VALID",$p="INVALID",mc="PENDING",id="DISABLED";function xy(n){return(Kp(n)?n.validators:n)||null}function Rx(n){return Array.isArray(n)?wy(n):n||null}function Iy(n,t){return(Kp(t)?t.asyncValidators:n)||null}function Ox(n){return Array.isArray(n)?Ey(n):n||null}function Kp(n){return null!=n&&!Array.isArray(n)&&"object"==typeof n}class Fx{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=Rx(this._rawValidators),this._composedAsyncValidatorFn=Ox(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===nd}get invalid(){return this.status===$p}get pending(){return this.status==mc}get disabled(){return this.status===id}get enabled(){return this.status!==id}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=Rx(t)}setAsyncValidators(t){this._rawAsyncValidators=t,this._composedAsyncValidatorFn=Ox(t)}addValidators(t){this.setValidators(Tx(t,this._rawValidators))}addAsyncValidators(t){this.setAsyncValidators(Tx(t,this._rawAsyncValidators))}removeValidators(t){this.setValidators(xx(t,this._rawValidators))}removeAsyncValidators(t){this.setAsyncValidators(xx(t,this._rawAsyncValidators))}hasValidator(t){return Gp(this._rawValidators,t)}hasAsyncValidator(t){return Gp(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=mc,!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=id,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=nd,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===nd||this.status===mc)&&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()?id:nd}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(t){if(this.asyncValidator){this.status=mc,this._hasOwnPendingAsyncValidator=!0;const e=vx(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()?id:this.errors?$p:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(mc)?mc:this._anyControlsHaveStatus($p)?$p:nd}_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){Kp(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 My extends Fx{constructor(t,e,i){super(xy(e),Iy(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 Lx(n,t,e){n._forEachChild((i,r)=>{if(void 0===e[r])throw new Se(1002,"")})})(this,0,t),Object.keys(t).forEach(i=>{(function Px(n,t,e){const i=n.controls;if(!(t?Object.keys(i):i).length)throw new Se(1e3,"");if(!i[e])throw new Se(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 rd(n,t){ky(n,t),t.valueAccessor.writeValue(n.value),n.disabled&&t.valueAccessor.setDisabledState?.(!0),function sV(n,t){t.valueAccessor.registerOnChange(e=>{n._pendingValue=e,n._pendingChange=!0,n._pendingDirty=!0,"change"===n.updateOn&&Nx(n,t)})}(n,t),function lV(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 aV(n,t){t.valueAccessor.registerOnTouched(()=>{n._pendingTouched=!0,"blur"===n.updateOn&&n._pendingChange&&Nx(n,t),"submit"!==n.updateOn&&n.markAsTouched()})}(n,t),function oV(n,t){if(t.valueAccessor.setDisabledState){const e=i=>{t.valueAccessor.setDisabledState(i)};n.registerOnDisabledChange(e),t._registerOnDestroy(()=>{n._unregisterOnDisabledChange(e)})}}(n,t)}function Qp(n,t,e=!0){const i=()=>{};t.valueAccessor&&(t.valueAccessor.registerOnChange(i),t.valueAccessor.registerOnTouched(i)),Zp(n,t),n&&(t._invokeOnDestroyCallbacks(),n._registerOnCollectionChange(()=>{}))}function Xp(n,t){n.forEach(e=>{e.registerOnValidatorChange&&e.registerOnValidatorChange(t)})}function ky(n,t){const e=Sx(n);null!==t.validator?n.setValidators(Dx(e,t.validator)):"function"==typeof e&&n.setValidators([e]);const i=Ax(n);null!==t.asyncValidator?n.setAsyncValidators(Dx(i,t.asyncValidator)):"function"==typeof i&&n.setAsyncValidators([i]);const r=()=>n.updateValueAndValidity();Xp(t._rawValidators,r),Xp(t._rawAsyncValidators,r)}function Zp(n,t){let e=!1;if(null!==n){if(null!==t.validator){const r=Sx(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=Ax(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 Xp(t._rawValidators,i),Xp(t._rawAsyncValidators,i),e}function Nx(n,t){n._pendingDirty&&n.markAsDirty(),n.setValue(n._pendingValue,{emitModelToViewChange:!1}),t.viewToModelUpdate(n._pendingValue),n._pendingChange=!1}function Bx(n,t){ky(n,t)}function Ry(n,t){if(!n.hasOwnProperty("model"))return!1;const e=n.model;return!!e.isFirstChange()||!Object.is(t,e.currentValue)}function Hx(n,t){n._syncPendingControls(),t.forEach(e=>{const i=e.control;"submit"===i.updateOn&&i._pendingChange&&(e.viewToModelUpdate(i._pendingValue),i._pendingChange=!1)})}function Oy(n,t){if(!t)return null;let e,i,r;return Array.isArray(t),t.forEach(o=>{o.constructor===zr?e=o:function dV(n){return Object.getPrototypeOf(n.constructor)===Ka}(o)?i=o:r=o}),r||i||e||null}const pV={provide:Zi,useExisting:tn(()=>gc)},od=(()=>Promise.resolve(null))();let gc=(()=>{class n extends Zi{constructor(e,i){super(),this.submitted=!1,this._directives=new Set,this.ngSubmit=new He,this.form=new My({},wy(e),Ey(i))}ngAfterViewInit(){this._setUpdateStrategy()}get formDirective(){return this}get control(){return this.form}get path(){return[]}get controls(){return this.form.controls}addControl(e){od.then(()=>{const i=this._findContainer(e.path);e.control=i.registerControl(e.name,e.control),rd(e.control,e),e.control.updateValueAndValidity({emitEvent:!1}),this._directives.add(e)})}getControl(e){return this.form.get(e.path)}removeControl(e){od.then(()=>{const i=this._findContainer(e.path);i&&i.removeControl(e.name),this._directives.delete(e)})}addFormGroup(e){od.then(()=>{const i=this._findContainer(e.path),r=new My({});Bx(r,e),i.registerControl(e.name,r),r.updateValueAndValidity({emitEvent:!1})})}removeFormGroup(e){od.then(()=>{const i=this._findContainer(e.path);i&&i.removeControl(e.name)})}getFormGroup(e){return this.form.get(e.path)}updateModel(e,i){od.then(()=>{this.form.get(e.path).setValue(i)})}setValue(e){this.control.setValue(e)}onSubmit(e){return this.submitted=!0,Hx(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(gi,10),p(aa,10))},n.\u0275dir=fe({type:n,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(e,i){1&e&&$("submit",function(o){return i.onSubmit(o)})("reset",function(){return i.onReset()})},inputs:{options:["ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[ot([pV]),De]}),n})();function Vx(n,t){const e=n.indexOf(t);e>-1&&n.splice(e,1)}function Ux(n){return"object"==typeof n&&null!==n&&2===Object.keys(n).length&&"value"in n&&"disabled"in n}const ys=class extends Fx{constructor(t=null,e,i){super(xy(e),Iy(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}),Kp(e)&&(e.nonNullable||e.initialValueIsDefault)&&(this.defaultValue=Ux(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){Vx(this._onChange,t)}registerOnDisabledChange(t){this._onDisabledChange.push(t)}_unregisterOnDisabledChange(t){Vx(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){Ux(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}},gV={provide:wo,useExisting:tn(()=>qo)},Gx=(()=>Promise.resolve(null))();let qo=(()=>{class n extends wo{constructor(e,i,r,o,s){super(),this._changeDetectorRef=s,this.control=new ys,this._registered=!1,this.update=new He,this._parent=e,this._setValidators(i),this._setAsyncValidators(r),this.valueAccessor=Oy(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),Ry(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(){rd(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){Gx.then(()=>{this.control.setValue(e,{emitViewToModelChange:!1}),this._changeDetectorRef?.markForCheck()})}_updateDisabled(e){const i=e.isDisabled.currentValue,r=0!==i&&function _s(n){return"boolean"==typeof n?n:null!=n&&"false"!==n}(i);Gx.then(()=>{r&&!this.control.disabled?this.control.disable():!r&&this.control.disabled&&this.control.enable(),this._changeDetectorRef?.markForCheck()})}_getPath(e){return this._parent?function Yp(n,t){return[...t.path,n]}(e,this._parent):[e]}}return n.\u0275fac=function(e){return new(e||n)(p(Zi,9),p(gi,10),p(aa,10),p(ar,10),p(It,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:[ot([gV]),De,kn]}),n})(),$x=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=dt({type:n}),n.\u0275inj=ct({}),n})();const Py=new ge("NgModelWithFormControlWarning"),wV={provide:wo,useExisting:tn(()=>Jp)};let Jp=(()=>{class n extends wo{constructor(e,i,r,o){super(),this._ngModelWarningConfig=o,this.update=new He,this._ngModelWarningSent=!1,this._setValidators(e),this._setAsyncValidators(i),this.valueAccessor=Oy(0,r)}set isDisabled(e){}ngOnChanges(e){if(this._isControlChanged(e)){const i=e.form.previousValue;i&&Qp(i,this,!1),rd(this.form,this),this.form.updateValueAndValidity({emitEvent:!1})}Ry(e,this.viewModel)&&(this.form.setValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.form&&Qp(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(gi,10),p(aa,10),p(ar,10),p(Py,8))},n.\u0275dir=fe({type:n,selectors:[["","formControl",""]],inputs:{form:["formControl","form"],isDisabled:["disabled","isDisabled"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},exportAs:["ngForm"],features:[ot([wV]),De,kn]}),n})();const EV={provide:Zi,useExisting:tn(()=>_c)};let _c=(()=>{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&&(Zp(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 rd(i,e),i.updateValueAndValidity({emitEvent:!1}),this.directives.push(e),i}getControl(e){return this.form.get(e.path)}removeControl(e){Qp(e.control||null,e,!1),function hV(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,Hx(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&&(Qp(i||null,e),(n=>n instanceof ys)(r)&&(rd(r,e),e.control=r))}),this.form._updateTreeValidity({emitEvent:!1})}_setUpFormContainer(e){const i=this.form.get(e.path);Bx(i,e),i.updateValueAndValidity({emitEvent:!1})}_cleanUpFormContainer(e){if(this.form){const i=this.form.get(e.path);i&&function cV(n,t){return Zp(n,t)}(i,e)&&i.updateValueAndValidity({emitEvent:!1})}}_updateRegistrations(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm&&this._oldForm._registerOnCollectionChange(()=>{})}_updateValidators(){ky(this.form,this),this._oldForm&&Zp(this._oldForm,this)}_checkFormPresent(){}}return n.\u0275fac=function(e){return new(e||n)(p(gi,10),p(aa,10))},n.\u0275dir=fe({type:n,selectors:[["","formGroup",""]],hostBindings:function(e,i){1&e&&$("submit",function(o){return i.onSubmit(o)})("reset",function(){return i.onReset()})},inputs:{form:["formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[ot([EV]),De,kn]}),n})(),c2=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=dt({type:n}),n.\u0275inj=ct({imports:[$x]}),n})(),VV=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=dt({type:n}),n.\u0275inj=ct({imports:[c2]}),n})(),UV=(()=>{class n{static withConfig(e){return{ngModule:n,providers:[{provide:Py,useValue:e.warnOnNgModelWithFormControl}]}}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=dt({type:n}),n.\u0275inj=ct({imports:[c2]}),n})();function Fe(...n){let t=n[n.length-1];return pe(t)?(n.pop(),hi(n,t)):bg(n)}function zo(n,t){return Hi(n,t,1)}function An(n,t){return function(i){return i.lift(new zV(n,t))}}class zV{constructor(t,e){this.predicate=t,this.thisArg=e}call(t,e){return e.subscribe(new GV(t,this.predicate,this.thisArg))}}class GV extends A{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 u2{}class d2{}class bs{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 bs?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 bs;return e.lazyInit=this.lazyInit&&this.lazyInit instanceof bs?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 WV{encodeKey(t){return h2(t)}encodeValue(t){return h2(t)}decodeKey(t){return decodeURIComponent(t)}decodeValue(t){return decodeURIComponent(t)}}const KV=/%(\d[a-f0-9])/gi,YV={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function h2(n){return encodeURIComponent(n).replace(KV,(t,e)=>YV[e]??t)}function tf(n){return`${n}`}class $t{constructor(t={}){if(this.updates=null,this.cloneFrom=null,this.encoder=t.encoder||new WV,t.fromString){if(t.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=function $V(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(tf):[tf(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(tf(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(tf(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 QV{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 p2(n){return typeof ArrayBuffer<"u"&&n instanceof ArrayBuffer}function f2(n){return typeof Blob<"u"&&n instanceof Blob}function m2(n){return typeof FormData<"u"&&n instanceof FormData}class sd{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 XV(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 bs),this.context||(this.context=new QV),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 sd(e,i,o,{params:c,headers:l,context:u,reportProgress:a,responseType:r,withCredentials:s})}}var ni=(()=>((ni=ni||{})[ni.Sent=0]="Sent",ni[ni.UploadProgress=1]="UploadProgress",ni[ni.ResponseHeader=2]="ResponseHeader",ni[ni.DownloadProgress=3]="DownloadProgress",ni[ni.Response=4]="Response",ni[ni.User=5]="User",ni))();class Hy{constructor(t,e=200,i="OK"){this.headers=t.headers||new bs,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 Vy extends Hy{constructor(t={}){super(t),this.type=ni.ResponseHeader}clone(t={}){return new Vy({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 nf extends Hy{constructor(t={}){super(t),this.type=ni.Response,this.body=void 0!==t.body?t.body:null}clone(t={}){return new nf({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 g2 extends Hy{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 Uy(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 vc=(()=>{class n{constructor(e){this.handler=e}request(e,i,r={}){let o;if(e instanceof sd)o=e;else{let l,c;l=r.headers instanceof bs?r.headers:new bs(r.headers),r.params&&(c=r.params instanceof $t?r.params:new $t({fromObject:r.params})),o=new sd(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=Fe(o).pipe(zo(l=>this.handler.handle(l)));if(e instanceof sd||"events"===r.observe)return s;const a=s.pipe(An(l=>l instanceof nf));switch(r.observe||"body"){case"body":switch(o.responseType){case"arraybuffer":return a.pipe(ue(l=>{if(null!==l.body&&!(l.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return l.body}));case"blob":return a.pipe(ue(l=>{if(null!==l.body&&!(l.body instanceof Blob))throw new Error("Response is not a Blob.");return l.body}));case"text":return a.pipe(ue(l=>{if(null!==l.body&&"string"!=typeof l.body)throw new Error("Response is not a string.");return l.body}));default:return a.pipe(ue(l=>l.body))}case"response":return a;default:throw new Error(`Unreachable: unhandled observe type ${r.observe}}`)}}delete(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,Uy(r,i))}post(e,i,r={}){return this.request("POST",e,Uy(r,i))}put(e,i,r={}){return this.request("PUT",e,Uy(r,i))}}return n.\u0275fac=function(e){return new(e||n)(T(u2))},n.\u0275prov=me({token:n,factory:n.\u0275fac}),n})();class _2{constructor(t,e){this.next=t,this.interceptor=e}handle(t){return this.interceptor.intercept(t,this.next)}}const qy=new ge("HTTP_INTERCEPTORS");let JV=(()=>{class n{intercept(e,i){return i.handle(e)}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=me({token:n,factory:n.\u0275fac}),n})();const eU=/^\)\]\}',?\n/;let v2=(()=>{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 bs(r.getAllResponseHeaders()),S=function tU(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 Vy({headers:y,status:r.status,statusText:m,url:S}),s},l=()=>{let{headers:m,status:y,statusText:S,url:U}=a(),ee=null;204!==y&&(ee=typeof r.response>"u"?r.responseText:r.response),0===y&&(y=ee?200:0);let ve=y>=200&&y<300;if("json"===e.responseType&&"string"==typeof ee){const ne=ee;ee=ee.replace(eU,"");try{ee=""!==ee?JSON.parse(ee):null}catch(Ie){ee=ne,ve&&(ve=!1,ee={error:Ie,text:ee})}}ve?(i.next(new nf({body:ee,headers:m,status:y,statusText:S,url:U||void 0})),i.complete()):i.error(new g2({error:ee,headers:m,status:y,statusText:S,url:U||void 0}))},c=m=>{const{url:y}=a(),S=new g2({error:m,status:r.status||0,statusText:r.statusText||"Unknown Error",url:y||void 0});i.error(S)};let u=!1;const d=m=>{u||(i.next(a()),u=!0);let y={type:ni.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:ni.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:ni.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)(T(BT))},n.\u0275prov=me({token:n,factory:n.\u0275fac}),n})();const zy=new ge("XSRF_COOKIE_NAME"),Gy=new ge("XSRF_HEADER_NAME");class y2{}let nU=(()=>{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=xT(e,this.cookieName),this.lastCookieString=e),this.lastToken}}return n.\u0275fac=function(e){return new(e||n)(T(pt),T(Cp),T(zy))},n.\u0275prov=me({token:n,factory:n.\u0275fac}),n})(),Wy=(()=>{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)(T(y2),T(Gy))},n.\u0275prov=me({token:n,factory:n.\u0275fac}),n})(),iU=(()=>{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(qy,[]);this.chain=i.reduceRight((r,o)=>new _2(r,o),this.backend)}return this.chain.handle(e)}}return n.\u0275fac=function(e){return new(e||n)(T(d2),T(On))},n.\u0275prov=me({token:n,factory:n.\u0275fac}),n})(),rU=(()=>{class n{static disable(){return{ngModule:n,providers:[{provide:Wy,useClass:JV}]}}static withOptions(e={}){return{ngModule:n,providers:[e.cookieName?{provide:zy,useValue:e.cookieName}:[],e.headerName?{provide:Gy,useValue:e.headerName}:[]]}}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=dt({type:n}),n.\u0275inj=ct({providers:[Wy,{provide:qy,useExisting:Wy,multi:!0},{provide:y2,useClass:nU},{provide:zy,useValue:"XSRF-TOKEN"},{provide:Gy,useValue:"X-XSRF-TOKEN"}]}),n})(),oU=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=dt({type:n}),n.\u0275inj=ct({providers:[vc,{provide:u2,useClass:iU},v2,{provide:d2,useExisting:v2}],imports:[rU.withOptions({cookieName:"XSRF-TOKEN",headerName:"X-XSRF-TOKEN"})]}),n})(),sU=(()=>{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=me({token:n,factory:n.\u0275fac}),n})();function b2(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 Ee(n){return function(){var t=this,e=arguments;return new Promise(function(i,r){var o=n.apply(t,e);function s(l){b2(o,i,r,s,a,"next",l)}function a(l){b2(o,i,r,s,a,"throw",l)}s(void 0)})}}let Ji=(()=>{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=me({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 Ei{constructor(t,e){this.component=t,this.data=e}}function Cs(n){return!!n&&(n instanceof b||"function"==typeof n.lift&&"function"==typeof n.subscribe)}function yc(...n){return function aU(){return vh(1)}()(Fe(...n))}const Es=new b(n=>n.complete());function rf(n){return n?function lU(n){return new b(t=>n.schedule(()=>t.complete()))}(n):Es}function la(n){return new b(t=>{let e;try{e=n()}catch(r){return void t.error(r)}return(e?vt(e):rf()).subscribe(t)})}const C2=(()=>{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 an(n){return t=>0===n?rf():t.lift(new cU(n))}class cU{constructor(t){if(this.total=t,this.total<0)throw new C2}call(t,e){return e.subscribe(new uU(t,this.total))}}class uU extends A{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 dU extends E{constructor(t,e){super()}schedule(t,e=0){return this}}class sf extends dU{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 w2=(()=>{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 Do extends w2{constructor(t,e=w2.now){super(t,()=>Do.delegate&&Do.delegate!==this?Do.delegate.now():e()),this.actions=[],this.active=!1,this.scheduled=void 0}schedule(t,e=0,i){return Do.delegate&&Do.delegate!==this?Do.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 fU=new class pU extends Do{}(class hU extends sf{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(mU,0,{error:n,subscriber:e}):e=>e.error(n))}function mU({error:n,subscriber:t}){t.error(n)}class lr{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 Fe(this.value);case"E":return Qa(this.error);case"C":return rf()}throw new Error("unexpected notification kind value")}static createNext(t){return typeof t<"u"?new lr("N",t):lr.undefinedValueNotification}static createError(t){return new lr("E",void 0,t)}static createComplete(){return lr.completeNotification}}lr.completeNotification=new lr("C"),lr.undefinedValueNotification=new lr("N",void 0);class af extends A{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(af.dispatch,this.delay,new _U(t,this.destination)))}_next(t){this.scheduleMessage(lr.createNext(t))}_error(t){this.scheduleMessage(lr.createError(t)),this.unsubscribe()}_complete(){this.scheduleMessage(lr.createComplete()),this.unsubscribe()}}class _U{constructor(t,e){this.notification=t,this.destination=e}}class E2 extends L{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 vU(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 af(t,r)),e)for(let a=0;ae&&(s=Math.max(s,o-e)),s>0&&r.splice(0,s),r}}class vU{constructor(t,e){this.time=t,this.value=e}}function D2(n,t,e){let i;return i=n&&"object"==typeof n?n:{bufferSize:n,windowTime:t,refCount:!1,scheduler:e},r=>r.lift(function yU({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 E2(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 Qn(n,t){return"function"==typeof t?e=>e.pipe(Qn((i,r)=>vt(n(i,r)).pipe(ue((o,s)=>t(i,o,r,s))))):e=>e.lift(new bU(n))}class bU{constructor(t){this.project=t}call(t,e){return e.subscribe(new CU(t,this.project))}}class CU 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 ad{}let S2=(()=>{class n extends ad{getTranslation(e){return Fe({})}}return n.\u0275fac=function(){let t;return function(i){return(t||(t=Pt(n)))(i||n)}}(),n.\u0275prov=me({token:n,factory:n.\u0275fac}),n})();class $y{}let A2=(()=>{class n{handle(e){return e.key}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=me({token:n,factory:n.\u0275fac}),n})();function ld(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(!ld(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{Ky(t[i])?i in n?e[i]=T2(n[i],t[i]):Object.assign(e,{[i]:t[i]}):Object.assign(e,{[i]:t[i]})}),e}class lf{}let x2=(()=>{class n extends lf{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(),!xr(e)||!xr(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 xr(s)?s:r}):e}}return n.\u0275fac=function(){let t;return function(i){return(t||(t=Pt(n)))(i||n)}}(),n.\u0275prov=me({token:n,factory:n.\u0275fac}),n})();class cf{}let I2=(()=>{class n extends cf{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=me({token:n,factory:n.\u0275fac}),n})();class M2{constructor(){this.currentLang=this.defaultLang,this.translations={},this.langs=[],this.onTranslationChange=new He,this.onLangChange=new He,this.onDefaultLangChange=new He}}const Yy=new ge("USE_STORE"),Qy=new ge("USE_DEFAULT_LANG"),Xy=new ge("DEFAULT_LANGUAGE"),Zy=new ge("USE_EXTEND");let Kt=(()=>{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(an(1)).subscribe(r=>{this.changeDefaultLang(e)})):this.changeDefaultLang(e)}getDefaultLang(){return this.defaultLang}use(e){if(e===this.currentLang)return Fe(this.translations[e]);let i=this.retrieveTranslations(e);return typeof i<"u"?(this.currentLang||(this.currentLang=e),i.pipe(an(1)).subscribe(r=>{this.changeLang(e)}),i):(this.changeLang(e),Fe(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(D2(1),an(1));return this.loadingTranslations=i.pipe(ue(r=>this.compiler.compileTranslations(r,e)),D2(1),an(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]?T2(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),Cs(s[l])&&(a=!0);return a?by(i.map(c=>Cs(s[c])?s[c]:Fe(s[c]))).pipe(ue(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(!xr(e)||!e.length)throw new Error('Parameter "key" required');if(this.pending)return this.loadingTranslations.pipe(zo(r=>Cs(r=this.getParsedResult(r,e,i))?r:Fe(r)));{let r=this.getParsedResult(this.translations[this.currentLang],e,i);return Cs(r)?r:Fe(r)}}getStreamOnTranslationChange(e,i){if(!xr(e)||!e.length)throw new Error('Parameter "key" required');return yc(la(()=>this.get(e,i)),this.onTranslationChange.pipe(Qn(r=>{const o=this.getParsedResult(r.translations,e,i);return"function"==typeof o.subscribe?o:Fe(o)})))}stream(e,i){if(!xr(e)||!e.length)throw new Error('Parameter "key" required');return yc(la(()=>this.get(e,i)),this.onLangChange.pipe(Qn(r=>{const o=this.getParsedResult(r.translations,e,i);return Cs(o)?o:Fe(o)})))}instant(e,i){if(!xr(e)||!e.length)throw new Error('Parameter "key" required');let r=this.getParsedResult(this.translations[this.currentLang],e,i);if(Cs(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)(T(M2),T(ad),T(cf),T(lf),T($y),T(Qy),T(Yy),T(Zy),T(Xy))},n.\u0275prov=me({token:n,factory:n.\u0275fac}),n})(),Pi=(()=>{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);Cs(s.subscribe)?s.subscribe(o):o(s)}this.translate.get(e,i).subscribe(o)}transform(e,...i){if(!e||!e.length)return e;if(ld(e,this.lastKey)&&ld(i,this.lastParams))return this.value;let r;if(xr(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(Kt,16),p(It,16))},n.\u0275pipe=Vi({name:"translate",type:n,pure:!1}),n.\u0275prov=me({token:n,factory:n.\u0275fac}),n})(),wU=(()=>{class n{static forRoot(e={}){return{ngModule:n,providers:[e.loader||{provide:ad,useClass:S2},e.compiler||{provide:cf,useClass:I2},e.parser||{provide:lf,useClass:x2},e.missingTranslationHandler||{provide:$y,useClass:A2},M2,{provide:Yy,useValue:e.isolate},{provide:Qy,useValue:e.useDefaultLang},{provide:Zy,useValue:e.extend},{provide:Xy,useValue:e.defaultLanguage},Kt]}}static forChild(e={}){return{ngModule:n,providers:[e.loader||{provide:ad,useClass:S2},e.compiler||{provide:cf,useClass:I2},e.parser||{provide:lf,useClass:x2},e.missingTranslationHandler||{provide:$y,useClass:A2},{provide:Yy,useValue:e.isolate},{provide:Qy,useValue:e.useDefaultLang},{provide:Zy,useValue:e.extend},{provide:Xy,useValue:e.defaultLanguage},Kt]}}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=dt({type:n}),n.\u0275inj=ct({}),n})(),Gr=(()=>{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(Kt))},n.\u0275dir=fe({type:n,inputs:{data:"data",modalMain:"modalMain"},outputs:{messageEvent:"messageEvent"}}),n})();const EU=["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 Jy,er=(()=>{class n{constructor(){this.waitListRecord={},this.waitListWithFunction={},EU.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=me({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),ht=(()=>{class n{constructor(e){this.waitListService=e,this.loggedIn=!1,this.showSelectedDocuments=!1,this.configJson={projectSelection:!0},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 DU;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)}}return n.\u0275fac=function(e){return new(e||n)(T(er))},n.\u0275prov=me({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();class DU{}try{Jy=typeof Intl<"u"&&Intl.v8BreakIterator}catch{Jy=!1}let bc,Fn=(()=>{class n{constructor(e){this._platformId=e,this.isBrowser=this._platformId?function cH(n){return n===FT}(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&&!Jy)&&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)(T(Cp))},n.\u0275prov=me({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const k2=["color","button","checkbox","date","datetime-local","email","file","hidden","image","month","number","password","radio","range","reset","search","submit","tel","text","time","url","week"];function R2(){if(bc)return bc;if("object"!=typeof document||!document)return bc=new Set(k2),bc;let n=document.createElement("input");return bc=new Set(k2.filter(t=>(n.setAttribute("type",t),n.type===t))),bc}let cd,Xa,eb;function Ds(n){return function SU(){if(null==cd&&typeof window<"u")try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:()=>cd=!0}))}finally{cd=cd||!1}return cd}()?n:!!n.capture}function AU(){if(null==Xa){if("object"!=typeof document||!document||"function"!=typeof Element||!Element)return Xa=!1,Xa;if("scrollBehavior"in document.documentElement.style)Xa=!0;else{const n=Element.prototype.scrollTo;Xa=!!n&&!/\{\s*\[native code\]\s*\}/.test(n.toString())}}return Xa}function df(n){if(function TU(){if(null==eb){const n=typeof document<"u"?document.head:null;eb=!(!n||!n.createShadowRoot&&!n.attachShadow)}return eb}()){const t=n.getRootNode?n.getRootNode():null;if(typeof ShadowRoot<"u"&&ShadowRoot&&t instanceof ShadowRoot)return t}return null}function tb(){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 Wr(n){return n.composedPath?n.composedPath()[0]:n.target}function nb(){return typeof __karma__<"u"&&!!__karma__||typeof jasmine<"u"&&!!jasmine||typeof jest<"u"&&!!jest||typeof Mocha<"u"&&!!Mocha}class cr extends L{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 Di(n,...t){return t.length?t.some(e=>n[e]):n.altKey||n.shiftKey||n.ctrlKey||n.metaKey}function ua(){}function Xn(n,t,e){return function(r){return r.lift(new jU(n,t,e))}}class jU{constructor(t,e,i){this.nextOrObserver=t,this.error=e,this.complete=i}call(t,e){return e.subscribe(new HU(t,this.nextOrObserver,this.error,this.complete))}}class HU extends A{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 Ec=new Do(sf);function sb(n,t=Ec){return e=>e.lift(new VU(n,t))}class VU{constructor(t,e){this.dueTime=t,this.scheduler=e}call(t,e){return e.subscribe(new UU(t,this.dueTime,this.scheduler))}}class UU extends A{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(qU,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 qU(n){n.debouncedNext()}function ab(n){return t=>t.lift(new zU(n))}class zU{constructor(t){this.total=t}call(t,e){return e.subscribe(new GU(t,this.total))}}class GU extends A{constructor(t,e){super(t),this.total=e,this.count=0}_next(t){++this.count>this.total&&this.destination.next(t)}}function ff(n,t){return e=>e.lift(new WU(n,t))}class WU{constructor(t,e){this.compare=t,this.keySelector=e}call(t,e){return e.subscribe(new $U(t,this.compare,this.keySelector))}}class $U extends A{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 Xt(n){return t=>t.lift(new KU(n))}class KU{constructor(t){this.notifier=t}call(t,e){const i=new YU(t),r=uu(this.notifier,new ko(i));return r&&!i.seenValue?(i.add(r),e.subscribe(i)):i}}class YU extends cu{constructor(t){super(t),this.seenValue=!1}notifyNext(){this.seenValue=!0,this.complete()}notifyComplete(){}}function at(n){return null!=n&&"false"!=`${n}`}function As(n,t=0){return function QU(n){return!isNaN(parseFloat(n))&&!isNaN(Number(n))}(n)?Number(n):t}function mf(n){return Array.isArray(n)?n:[n]}function ii(n){return null==n?"":"string"==typeof n?n:`${n}px`}function Zn(n){return n instanceof Xe?n.nativeElement:n}let O2=(()=>{class n{create(e){return typeof MutationObserver>"u"?null:new MutationObserver(e)}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=me({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),ZU=(()=>{class n{constructor(e){this._mutationObserverFactory=e,this._observedElements=new Map}ngOnDestroy(){this._observedElements.forEach((e,i)=>this._cleanupObserver(i))}observe(e){const i=Zn(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 L,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)(T(O2))},n.\u0275prov=me({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),gf=(()=>{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=at(e),this._disabled?this._unsubscribe():this._subscribe()}get debounce(){return this._debounce}set debounce(e){this._debounce=As(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(sb(this.debounce)):e).subscribe(this.event)})}_unsubscribe(){this._currentSubscription?.unsubscribe()}}return n.\u0275fac=function(e){return new(e||n)(p(ZU),p(Xe),p(et))},n.\u0275dir=fe({type:n,selectors:[["","cdkObserveContent",""]],inputs:{disabled:["cdkObserveContentDisabled","disabled"],debounce:"debounce"},outputs:{event:"cdkObserveContent"},exportAs:["cdkObserveContent"]}),n})(),ud=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=dt({type:n}),n.\u0275inj=ct({providers:[O2]}),n})();class JU extends A{notifyNext(t,e,i,r,o){this.destination.next(e)}notifyError(t,e){this.destination.error(t)}notifyComplete(t){this.destination.complete()}}class e8 extends A{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 t8(n,t,e,i,r=new e8(n,e,i)){if(!r.closed)return t instanceof b?t.subscribe(r):Ge(t)(r)}const P2={};function lb(...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&&N(n[0])&&(n=n[0]),bg(n,e).lift(new n8(t))}class n8{constructor(t){this.resultSelector=t}call(t,e){return e.subscribe(new i8(t,this.resultSelector))}}class i8 extends JU{constructor(t,e){super(t),this.resultSelector=e,this.active=0,this.values=[],this.observables=[]}_next(t){this.values.push(P2),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;iyc(n,e,t)):e=>yc(n,e)}const L2=new Set;let Dc,r8=(()=>{class n{constructor(e){this._platform=e,this._matchMedia=this._platform.isBrowser&&window.matchMedia?window.matchMedia.bind(window):s8}matchMedia(e){return(this._platform.WEBKIT||this._platform.BLINK)&&function o8(n){if(!L2.has(n))try{Dc||(Dc=document.createElement("style"),Dc.setAttribute("type","text/css"),document.head.appendChild(Dc)),Dc.sheet&&(Dc.sheet.insertRule(`@media ${n} {body{ }}`,0),L2.add(n))}catch(t){console.error(t)}}(e),this._matchMedia(e)}}return n.\u0275fac=function(e){return new(e||n)(T(Fn))},n.\u0275prov=me({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();function s8(n){return{matches:"all"===n||""===n,media:n,addListener:()=>{},removeListener:()=>{}}}let cb=(()=>{class n{constructor(e,i){this._mediaMatcher=e,this._zone=i,this._queries=new Map,this._destroySubject=new L}ngOnDestroy(){this._destroySubject.next(),this._destroySubject.complete()}isMatched(e){return F2(mf(e)).some(r=>this._registerQuery(r).mql.matches)}observe(e){let o=lb(F2(mf(e)).map(s=>this._registerQuery(s).observable));return o=yc(o.pipe(an(1)),o.pipe(ab(1),sb(0))),o.pipe(ue(s=>{const a={matches:!1,breakpoints:{}};return s.forEach(({matches:l,query:c})=>{a.matches=a.matches||l,a.breakpoints[c]=l}),a}))}_registerQuery(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(ri(i),ue(({matches:s})=>({query:e,matches:s})),Xt(this._destroySubject)),mql:i};return this._queries.set(e,o),o}}return n.\u0275fac=function(e){return new(e||n)(T(r8),T(et))},n.\u0275prov=me({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();function F2(n){return n.map(t=>t.split(",")).reduce((t,e)=>t.concat(e)).map(t=>t.trim())}function _f(n,t){return(n.getAttribute(t)||"").match(/\S+/g)||[]}const B2="cdk-describedby-message",vf="cdk-describedby-host";let ub=0,u8=(()=>{class n{constructor(e,i){this._platform=i,this._messageRegistry=new Map,this._messagesContainer=null,this._id=""+ub++,this._document=e,this._id=Ra(pc)+"-"+ub++}describe(e,i,r){if(!this._canBeDescribed(e,i))return;const o=db(i,r);"string"!=typeof i?(j2(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=db(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(`[${vf}="${this._id}"]`);for(let i=0;i0!=r.indexOf(B2));e.setAttribute("aria-describedby",i.join(" "))}_addMessageReference(e,i){const r=this._messageRegistry.get(i);(function l8(n,t,e){const i=_f(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(vf,this._id),r.referenceCount++}_removeMessageReference(e,i){const r=this._messageRegistry.get(i);r.referenceCount--,function c8(n,t,e){const r=_f(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(vf)}_isElementDescribedByMessage(e,i){const r=_f(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)(T(pt),T(Fn))},n.\u0275prov=me({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();function db(n,t){return"string"==typeof n?`${t||""}/${n}`:n}function j2(n,t){n.id||(n.id=`${B2}-${t}-${ub++}`)}class H2{constructor(t){this._items=t,this._activeItemIndex=-1,this._activeItem=null,this._wrap=!1,this._letterKeyStream=new L,this._typeaheadSubscription=E.EMPTY,this._vertical=!0,this._allowedModifierKeys=[],this._homeAndEnd=!1,this._skipPredicateFn=e=>e.disabled,this._pressedLetters=[],this.tabOut=new L,this.change=new L,t instanceof Ua&&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(Xn(e=>this._pressedLetters.push(e)),sb(t),An(()=>this._pressedLetters.length>0),ue(()=>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||Di(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 Ua?this._items.toArray():this._items}}class V2 extends H2{setActiveItem(t){this.activeItem&&this.activeItem.setInactiveStyles(),super.setActiveItem(t),this.activeItem&&this.activeItem.setActiveStyles()}}class yf extends H2{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 bf=(()=>{class n{constructor(e){this._platform=e}isDisabled(e){return e.hasAttribute("disabled")}isVisible(e){return function h8(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 d8(n){try{return n.frameElement}catch{return null}}(function b8(n){return n.ownerDocument&&n.ownerDocument.defaultView||window}(e));if(i&&(-1===q2(i)||!this.isVisible(i)))return!1;let r=e.nodeName.toLowerCase(),o=q2(e);return e.hasAttribute("contenteditable")?-1!==o:!("iframe"===r||"object"===r||this._platform.WEBKIT&&this._platform.IOS&&!function v8(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 y8(n){return!function f8(n){return function g8(n){return"input"==n.nodeName.toLowerCase()}(n)&&"hidden"==n.type}(n)&&(function p8(n){let t=n.nodeName.toLowerCase();return"input"===t||"select"===t||"button"===t||"textarea"===t}(n)||function m8(n){return function _8(n){return"a"==n.nodeName.toLowerCase()}(n)&&n.hasAttribute("href")}(n)||n.hasAttribute("contenteditable")||U2(n))}(e)&&!this.isDisabled(e)&&(i?.ignoreVisibility||this.isVisible(e))}}return n.\u0275fac=function(e){return new(e||n)(T(Fn))},n.\u0275prov=me({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();function U2(n){if(!n.hasAttribute("tabindex")||void 0===n.tabIndex)return!1;let t=n.getAttribute("tabindex");return!(!t||isNaN(parseInt(t,10)))}function q2(n){if(!U2(n))return null;const t=parseInt(n.getAttribute("tabindex")||"",10);return isNaN(t)?-1:t}class C8{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(an(1)).subscribe(t)}}let hb=(()=>{class n{constructor(e,i,r){this._checker=e,this._ngZone=i,this._document=r}create(e,i=!1){return new C8(e,this._checker,this._ngZone,this._document,i)}}return n.\u0275fac=function(e){return new(e||n)(T(bf),T(et),T(pt))},n.\u0275prov=me({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();function Cf(n){return 0===n.buttons||0===n.offsetX&&0===n.offsetY}function wf(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 w8=new ge("cdk-input-modality-detector-options"),E8={ignoreKeys:[18,17,224,91,16]},Sc=Ds({passive:!0,capture:!0});let D8=(()=>{class n{constructor(e,i,r,o){this._platform=e,this._mostRecentTarget=null,this._modality=new cr(null),this._lastTouchMs=0,this._onKeydown=s=>{this._options?.ignoreKeys?.some(a=>a===s.keyCode)||(this._modality.next("keyboard"),this._mostRecentTarget=Wr(s))},this._onMousedown=s=>{Date.now()-this._lastTouchMs<650||(this._modality.next(Cf(s)?"keyboard":"mouse"),this._mostRecentTarget=Wr(s))},this._onTouchstart=s=>{wf(s)?this._modality.next("keyboard"):(this._lastTouchMs=Date.now(),this._modality.next("touch"),this._mostRecentTarget=Wr(s))},this._options={...E8,...o},this.modalityDetected=this._modality.pipe(ab(1)),this.modalityChanged=this.modalityDetected.pipe(ff()),e.isBrowser&&i.runOutsideAngular(()=>{r.addEventListener("keydown",this._onKeydown,Sc),r.addEventListener("mousedown",this._onMousedown,Sc),r.addEventListener("touchstart",this._onTouchstart,Sc)})}get mostRecentModality(){return this._modality.value}ngOnDestroy(){this._modality.complete(),this._platform.isBrowser&&(document.removeEventListener("keydown",this._onKeydown,Sc),document.removeEventListener("mousedown",this._onMousedown,Sc),document.removeEventListener("touchstart",this._onTouchstart,Sc))}}return n.\u0275fac=function(e){return new(e||n)(T(Fn),T(et),T(pt),T(w8,8))},n.\u0275prov=me({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const S8=new ge("liveAnnouncerElement",{providedIn:"root",factory:function A8(){return null}}),T8=new ge("LIVE_ANNOUNCER_DEFAULT_OPTIONS");let pb=(()=>{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 L,this._rootNodeFocusAndBlurListener=a=>{for(let c=Wr(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=Zn(e);if(!this._platform.isBrowser||1!==r.nodeType)return Fe(null);const o=df(r)||this._getDocument(),s=this._elementInfo.get(r);if(s)return i&&(s.checkChildren=!0),s.subject;const a={checkChildren:i,subject:new L,rootNode:o};return this._elementInfo.set(r,a),this._registerGlobalListeners(a),a.subject}stopMonitoring(e){const i=Zn(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=Zn(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=Wr(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,Ef),i.addEventListener("blur",this._rootNodeFocusAndBlurListener,Ef)}),this._rootNodeFocusListenerCount.set(i,r+1),1==++this._monitoredElementCount&&(this._ngZone.runOutsideAngular(()=>{this._getWindow().addEventListener("focus",this._windowFocusListener)}),this._inputModalityDetector.modalityDetected.pipe(Xt(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,Ef),i.removeEventListener("blur",this._rootNodeFocusAndBlurListener,Ef),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(Xe),p(So))},n.\u0275dir=fe({type:n,selectors:[["","cdkMonitorElementFocus",""],["","cdkMonitorSubtreeFocus",""]],outputs:{cdkFocusChange:"cdkFocusChange"},exportAs:["cdkMonitorFocus"]}),n})();const G2="cdk-high-contrast-black-on-white",W2="cdk-high-contrast-white-on-black",fb="cdk-high-contrast-active";let $2=(()=>{class n{constructor(e,i){this._platform=e,this._document=i,this._breakpointSubscription=Ra(cb).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(fb,G2,W2),this._hasCheckedHighContrastMode=!0;const i=this.getHighContrastMode();1===i?e.add(fb,G2):2===i&&e.add(fb,W2)}}}return n.\u0275fac=function(e){return new(e||n)(T(Fn),T(pt))},n.\u0275prov=me({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),mb=(()=>{class n{constructor(e){e._applyBodyHighContrastModeCssClasses()}}return n.\u0275fac=function(e){return new(e||n)(T($2))},n.\u0275mod=dt({type:n}),n.\u0275inj=ct({imports:[ud]}),n})();function Ts(n,t,e,i){return le(e)&&(i=e,e=void 0),i?Ts(n,t,e).pipe(ue(r=>N(r)?i(...r):i(r))):new b(r=>{K2(n,t,function o(s){r.next(arguments.length>1?Array.prototype.slice.call(arguments):s)},r,e)})}function K2(n,t,e,i,r){let o;if(function R8(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 k8(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 M8(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 L8=1;const F8=Promise.resolve(),Df={};function Q2(n){return n in Df&&(delete Df[n],!0)}const X2={setImmediate(n){const t=L8++;return Df[t]=!0,F8.then(()=>Q2(t)&&n()),t},clearImmediate(n){Q2(n)}},gb=new class B8 extends Do{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=X2.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&&(X2.clearImmediate(e),t.scheduled=void 0)}});class H8{constructor(t){this.durationSelector=t}call(t,e){return e.subscribe(new V8(t,this.durationSelector))}}class V8 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 _b(n){return!N(n)&&n-parseFloat(n)+1>=0}function Z2(n=0,t,e){let i=-1;return _b(t)?i=Number(t)<1?1:Number(t):pe(t)&&(e=t),pe(e)||(e=Ec),new b(r=>{const o=_b(n)?n:+n-e.now();return e.schedule(U8,o,{index:0,period:i,subscriber:r})})}function U8(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 J2(n,t=Ec){return function j8(n){return function(e){return e.lift(new H8(n))}}(()=>Z2(n,t))}const q8=new ge("cdk-dir-doc",{providedIn:"root",factory:function z8(){return Ra(pt)}}),G8=/^(ar|ckb|dv|he|iw|fa|nqo|ps|sd|ug|ur|yi|.*[-_](Adlm|Arab|Hebr|Nkoo|Rohg|Thaa))(?!.*[-_](Latn|Cyrl)($|-|_))($|-|_)/i;let tr=(()=>{class n{constructor(e){if(this.value="ltr",this.change=new He,e){const r=e.documentElement?e.documentElement.dir:null;this.value=function W8(n){const t=n?.toLowerCase()||"";return"auto"===t&&typeof navigator<"u"&&navigator?.language?G8.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)(T(q8,8))},n.\u0275prov=me({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),dd=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=dt({type:n}),n.\u0275inj=ct({}),n})(),K8=(()=>{class n{constructor(e,i,r){this._ngZone=e,this._platform=i,this._scrolled=new L,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(J2(e)).subscribe(i):this._scrolled.subscribe(i);return this._scrolledCount++,()=>{r.unsubscribe(),this._scrolledCount--,this._scrolledCount||this._removeGlobalListener()}}):Fe()}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(An(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=Zn(i),o=e.getElementRef().nativeElement;do{if(r==o)return!0}while(r=r.parentElement);return!1}_addGlobalListener(){this._globalSubscription=this._ngZone.runOutsideAngular(()=>Ts(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)(T(et),T(Fn),T(pt,8))},n.\u0275prov=me({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),Go=(()=>{class n{constructor(e,i,r){this._platform=e,this._change=new L,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(J2(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)(T(Fn),T(et),T(pt,8))},n.\u0275prov=me({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),Ac=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=dt({type:n}),n.\u0275inj=ct({}),n})(),vb=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=dt({type:n}),n.\u0275inj=ct({imports:[dd,Ac,dd,Ac]}),n})();class yb{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 hd extends yb{constructor(t,e,i,r){super(),this.component=t,this.viewContainerRef=e,this.injector=i,this.componentFactoryResolver=r}}class xs extends yb{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 Q8 extends yb{constructor(t){super(),this.element=t instanceof Xe?t.nativeElement:t}}class Sf{constructor(){this._isDisposed=!1,this.attachDomPortal=null}hasAttached(){return!!this._attachedPortal}attach(t){return t instanceof hd?(this._attachedPortal=t,this.attachComponentPortal(t)):t instanceof xs?(this._attachedPortal=t,this.attachTemplatePortal(t)):this.attachDomPortal&&t instanceof Q8?(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 X8 extends Sf{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||On.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 Z8=(()=>{class n extends xs{constructor(e,i){super(e,i)}}return n.\u0275fac=function(e){return new(e||n)(p(bn),p(En))},n.\u0275dir=fe({type:n,selectors:[["","cdkPortal",""]],exportAs:["cdkPortal"],features:[De]}),n})(),Is=(()=>{class n extends Sf{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(ho),p(En),p(pt))},n.\u0275dir=fe({type:n,selectors:[["","cdkPortalOutlet",""]],inputs:{portal:["cdkPortalOutlet","portal"]},outputs:{attached:"attached"},exportAs:["cdkPortalOutlet"],features:[De]}),n})(),Ja=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=dt({type:n}),n.\u0275inj=ct({}),n})();function e1(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 e6(t,this.predicate,this.inclusive))}}class e6 extends A{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 t1=AU();class t6{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=ii(-this._previousScrollPosition.left),t.style.top=ii(-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"),t1&&(i.scrollBehavior=r.scrollBehavior="auto"),window.scroll(this._previousScrollPosition.left,this._previousScrollPosition.top),t1&&(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 n6{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 n1{enable(){}disable(){}attach(){}}function bb(n,t){return t.some(e=>n.bottome.bottom||n.righte.right)}function r1(n,t){return t.some(e=>n.tope.bottom||n.lefte.right)}class i6{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();bb(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 r6=(()=>{class n{constructor(e,i,r,o){this._scrollDispatcher=e,this._viewportRuler=i,this._ngZone=r,this.noop=()=>new n1,this.close=s=>new n6(this._scrollDispatcher,this._ngZone,this._viewportRuler,s),this.block=()=>new t6(this._viewportRuler,this._document),this.reposition=s=>new i6(this._scrollDispatcher,this._viewportRuler,this._ngZone,s),this._document=o}}return n.\u0275fac=function(e){return new(e||n)(T(K8),T(Go),T(et),T(pt))},n.\u0275prov=me({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();class Tc{constructor(t){if(this.scrollStrategy=new n1,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 o6{constructor(t,e){this.connectionPair=t,this.scrollableViewProperties=e}}let o1=(()=>{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)(T(pt))},n.\u0275prov=me({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),s6=(()=>{class n extends o1{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)(T(pt),T(et,8))},n.\u0275prov=me({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),a6=(()=>{class n extends o1{constructor(e,i,r){super(e),this._platform=i,this._ngZone=r,this._cursorStyleIsSet=!1,this._pointerDownListener=o=>{this._pointerDownEventTarget=Wr(o)},this._clickListener=o=>{const s=Wr(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)(T(pt),T(Fn),T(et,8))},n.\u0275prov=me({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),Af=(()=>{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||nb()){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 L,this._outsidePointerEvents=new L,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(an(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=ii(this._config.width),t.height=ii(this._config.height),t.minWidth=ii(this._config.minWidth),t.minHeight=ii(this._config.minHeight),t.maxWidth=ii(this._config.maxWidth),t.maxHeight=ii(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=mf(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(Xt(Mn(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 s1="cdk-overlay-connected-position-bounding-box",l6=/([A-Za-z%]+)$/;class c6{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 L,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(s1),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(s1),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=l1(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),S=this._subtractOverflows(o.height,h,m),U=y*S;return{visibleArea:U,isCompletelyWithinViewport:o.width*o.height===U,fitsInViewportVertically:S===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=a1(this._overlayRef.getConfig().minHeight),a=a1(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=l1(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=ii(i.height),r.top=ii(i.top),r.bottom=ii(i.bottom),r.width=ii(i.width),r.left=ii(i.left),r.right=ii(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=ii(o)),s&&(r.maxWidth=ii(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=ii(s.maxHeight):o&&(i.maxHeight="")),s.maxWidth&&(r?i.maxWidth=ii(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=ii(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=ii(o.x),r}_getScrollVisibility(){const t=this._getOriginRect(),e=this._pane.getBoundingClientRect(),i=this._scrollables.map(r=>r.getElementRef().nativeElement.getBoundingClientRect());return{isOriginClipped:r1(t,i),isOriginOutsideView:bb(t,i),isOverlayClipped:r1(e,i),isOverlayOutsideView:bb(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&&mf(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 Xe)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 a1(n){if("number"!=typeof n&&null!=n){const[t,e]=n.split(l6);return e&&"px"!==e?null:parseFloat(t)}return n||null}function l1(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 c1="cdk-global-overlay-wrapper";class u6{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(c1),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="",S="";l?S="flex-start":"center"===u?(S="center",h?y=d:m=d):h?"left"===u||"end"===u?(S="flex-end",m=d):("right"===u||"start"===u)&&(S="flex-start",y=d):"left"===u||"start"===u?(S="flex-start",m=d):("right"===u||"end"===u)&&(S="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=S,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(c1),i.justifyContent=i.alignItems=t.marginTop=t.marginBottom=t.marginLeft=t.marginRight=t.position="",this._overlayRef=null,this._isDisposed=!0}}let d6=(()=>{class n{constructor(e,i,r,o){this._viewportRuler=e,this._document=i,this._platform=r,this._overlayContainer=o}global(){return new u6}flexibleConnectedTo(e){return new c6(e,this._viewportRuler,this._document,this._platform,this._overlayContainer)}}return n.\u0275fac=function(e){return new(e||n)(T(Go),T(pt),T(Fn),T(Af))},n.\u0275prov=me({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),h6=0,ur=(()=>{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 Tc(e);return s.direction=s.direction||this._directionality.value,new pd(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-"+h6++,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(ia)),new X8(e,this._componentFactoryResolver,this._appRef,this._injector,this._document)}}return n.\u0275fac=function(e){return new(e||n)(T(r6),T(Af),T(ho),T(d6),T(s6),T(On),T(et),T(pt),T(tr),T(Ga),T(a6),T(qn,8))},n.\u0275prov=me({token:n,factory:n.\u0275fac}),n})();const p6=[{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"}],u1=new ge("cdk-connected-overlay-scroll-strategy");let d1=(()=>{class n{constructor(e){this.elementRef=e}}return n.\u0275fac=function(e){return new(e||n)(p(Xe))},n.\u0275dir=fe({type:n,selectors:[["","cdk-overlay-origin",""],["","overlay-origin",""],["","cdkOverlayOrigin",""]],exportAs:["cdkOverlayOrigin"]}),n})(),h1=(()=>{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 xs(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=at(e)}get lockPosition(){return this._lockPosition}set lockPosition(e){this._lockPosition=at(e)}get flexibleDimensions(){return this._flexibleDimensions}set flexibleDimensions(e){this._flexibleDimensions=at(e)}get growAfterOpen(){return this._growAfterOpen}set growAfterOpen(e){this._growAfterOpen=at(e)}get push(){return this._push}set push(e){this._push=at(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=p6);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&&!Di(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 Tc({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 d1?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(e1(()=>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(ur),p(bn),p(En),p(u1),p(tr,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:[kn]}),n})();const m6={provide:u1,deps:[ur],useFactory:function f6(n){return()=>n.scrollStrategies.reposition()}};let xc=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=dt({type:n}),n.\u0275inj=ct({providers:[ur,m6],imports:[dd,Ja,vb,vb]}),n})();function g6(n,t){}class Tf{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 p1=(()=>{class n extends Sf{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=tb(),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=tb();return e===i||e.contains(i)}_initializeFocusTrap(){this._focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement),this._document&&(this._elementFocusedBeforeDialogWasOpened=tb())}_handleBackdropClicks(){this._overlayRef.backdropClick().subscribe(()=>{this._config.disableClose&&this._recaptureFocus()})}}return n.\u0275fac=function(e){return new(e||n)(p(Xe),p(hb),p(pt,8),p(Tf),p(bf),p(et),p(pd),p(So))},n.\u0275cmp=Ue({type:n,selectors:[["cdk-dialog-container"]],viewQuery:function(e,i){if(1&e&&Te(Is,7),2&e){let r;de(r=he())&&(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:[De],decls:1,vars:0,consts:[["cdkPortalOutlet",""]],template:function(e,i){1&e&&H(0,g6,0,0,"ng-template",0)},dependencies:[Is],styles:[".cdk-dialog-container{display:block;width:100%;height:100%;min-height:inherit;max-height:inherit}"],encapsulation:2}),n})();class Cb{constructor(t,e){this.overlayRef=t,this.config=e,this.closed=new L,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&&!Di(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 f1=new ge("DialogScrollStrategy"),_6=new ge("DialogData"),v6=new ge("DefaultDialogConfig"),b6={provide:f1,deps:[ur],useFactory:function y6(n){return()=>n.scrollStrategies.block()}};let C6=0,m1=(()=>{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 L,this._afterOpenedAtThisLevel=new L,this._ariaHiddenElements=new Map,this.afterAllClosed=la(()=>this.openDialogs.length?this._getAfterAllClosed():this._getAfterAllClosed().pipe(ri(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 Tf,...i}).id=i.id||"cdk-dialog-"+C6++,i.id&&this.getDialogById(i.id);const o=this._getOverlayConfig(i),s=this._overlay.create(o),a=new Cb(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(){wb(this.openDialogs,e=>e.close())}getDialogById(e){return this.openDialogs.find(i=>i.id===e)}ngOnDestroy(){wb(this._openDialogsAtThisLevel,e=>{!1===e.config.closeOnDestroy&&this._removeOpenDialog(e,!1)}),wb(this._openDialogsAtThisLevel,e=>e.close()),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete(),this._openDialogsAtThisLevel=[]}_getOverlayConfig(e){const i=new Tc({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:Tf,useValue:r},{provide:Cb,useValue:i},{provide:pd,useValue:e}];let a;r.container?"function"==typeof r.container?a=r.container:(a=r.container.type,s.push(...r.container.providers(r))):a=p1;const l=new hd(a,r.viewContainerRef,On.create({parent:o||this._injector,providers:s}),r.componentFactoryResolver);return e.attach(l).instance}_attachDialogContent(e,i,r,o){if(e instanceof bn){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 xs(e,null,a,s))}else{const s=this._createInjector(o,i,r,this._injector),a=r.attachComponentPortal(new hd(e,o.viewContainerRef,s,o.componentFactoryResolver));i.componentInstance=a.instance}}_createInjector(e,i,r,o){const s=e.injector||e.viewContainerRef?.injector,a=[{provide:_6,useValue:e.data},{provide:Cb,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(tr,null,yt.Optional))&&a.push({provide:tr,useValue:{value:e.direction,change:Fe()}}),On.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)(T(ur),T(On),T(v6,8),T(n,12),T(Af),T(f1))},n.\u0275prov=me({token:n,factory:n.\u0275fac}),n})();function wb(n,t){let e=n.length;for(;e--;)t(n[e])}let w6=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=dt({type:n}),n.\u0275inj=ct({providers:[m1,b6],imports:[xc,Ja,mb,Ja]}),n})();const E6=["*",[["mat-option"],["ng-container"]]],D6=["*","mat-option, ng-container"];function S6(n,t){if(1&n&&Ae(0,"mat-pseudo-checkbox",4),2&n){const e=w();v("state",e.selected?"checked":"unchecked")("disabled",e.disabled)}}function A6(n,t){if(1&n&&(g(0,"span",5),j(1),_()),2&n){const e=w();f(1),qe("(",e.group.label,")")}}const T6=["*"],I6=new ge("mat-sanity-checks",{providedIn:"root",factory:function x6(){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!nb()&&("boolean"==typeof this._sanityChecks?this._sanityChecks:!!this._sanityChecks[e])}}return n.\u0275fac=function(e){return new(e||n)(T($2),T(I6,8),T(pt))},n.\u0275mod=dt({type:n}),n.\u0275inj=ct({imports:[dd,dd]}),n})();function Ms(n){return class extends n{constructor(...t){super(...t),this._disabled=!1}get disabled(){return this._disabled}set disabled(t){this._disabled=at(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 Wo(n){return class extends n{constructor(...t){super(...t),this._disableRipple=!1}get disableRipple(){return this._disableRipple}set disableRipple(t){this._disableRipple=at(t)}}}function fd(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?As(e):this.defaultTabIndex}}}function Eb(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 md=(()=>{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=me({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),k6=(()=>{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 gd(n,t,e){n.nativeElement.classList.toggle(t,e)}let v1=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=dt({type:n}),n.\u0275inj=ct({imports:[Lt,Lt]}),n})();class O6{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 y1={enterDuration:225,exitDuration:150},Db=Ds({passive:!0}),b1=["mousedown","touchstart"],C1=["mouseup","mouseleave","touchend","touchcancel"];class w1{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=Zn(i))}fadeInRipple(t,e,i={}){const r=this._containerRect=this._containerRect||this._containerElement.getBoundingClientRect(),o={...y1,...i.animation};i.centered&&(t=r.left+r.width/2,e=r.top+r.height/2);const s=i.radius||function L6(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,S=new O6(this,u,i,y);u.style.transform="scale3d(1, 1, 1)",S.state=0,i.persistent||(this._mostRecentTransientRipple=S);let U=null;return!y&&(c||o.exitDuration)&&this._ngZone.runOutsideAngular(()=>{const ee=()=>this._finishRippleTransition(S),ve=()=>this._destroyRipple(S);u.addEventListener("transitionend",ee),u.addEventListener("transitioncancel",ve),U={onTransitionEnd:ee,onTransitionCancel:ve}}),this._activeRipples.set(S,U),(y||!c)&&this._finishRippleTransition(S),S}fadeOutRipple(t){if(2===t.state||3===t.state)return;const e=t.element,i={...y1,...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=Zn(t);!e||e===this._triggerElement||(this._removeTriggerEvents(),this._triggerElement=e,this._registerEvents(b1))}handleEvent(t){"mousedown"===t.type?this._onMousedown(t):"touchstart"===t.type?this._onTouchStart(t):this._onPointerUp(),this._pointerUpEventsRegistered||(this._registerEvents(C1),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=Cf(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,Db)})})}_getActiveRipples(){return Array.from(this._activeRipples.keys())}_removeTriggerEvents(){this._triggerElement&&(b1.forEach(t=>{this._triggerElement.removeEventListener(t,this,Db)}),this._pointerUpEventsRegistered&&C1.forEach(t=>{this._triggerElement.removeEventListener(t,this,Db)}))}}const E1=new ge("mat-ripple-global-options");let Ir=(()=>{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 w1(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(Xe),p(et),p(Fn),p(E1,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=dt({type:n}),n.\u0275inj=ct({imports:[Lt,Lt]}),n})(),D1=(()=>{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})(),Sb=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=dt({type:n}),n.\u0275inj=ct({imports:[Lt]}),n})();const xf=new ge("MAT_OPTION_PARENT_COMPONENT"),F6=Ms(class{});let N6=0,B6=(()=>{class n extends F6{constructor(e){super(),this._labelId="mat-optgroup-label-"+N6++,this._inert=e?.inertGroups??!1}}return n.\u0275fac=function(e){return new(e||n)(p(xf,8))},n.\u0275dir=fe({type:n,inputs:{label:"label"},features:[De]}),n})();const If=new ge("MatOptgroup");let j6=(()=>{class n extends B6{}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:[ot([{provide:If,useExisting:n}]),De],ngContentSelectors:D6,decls:4,vars:2,consts:[["aria-hidden","true",1,"mat-optgroup-label",3,"id"]],template:function(e,i){1&e&&(Pn(E6),g(0,"span",0),j(1),jt(2),_(),jt(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})(),H6=0;class S1{constructor(t,e=!1){this.source=t,this.isUserInput=e}}let V6=(()=>{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-"+H6++,this.onSelectionChange=new He,this._stateChanges=new L}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=at(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)&&!Di(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 S1(this,e))}}return n.\u0275fac=function(e){Kl()},n.\u0275dir=fe({type:n,inputs:{value:"value",id:"id",disabled:"disabled"},outputs:{onSelectionChange:"onSelectionChange"}}),n})(),Mr=(()=>{class n extends V6{constructor(e,i,r,o){super(e,i,r,o)}}return n.\u0275fac=function(e){return new(e||n)(p(Xe),p(It),p(xf,8),p(If,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&&$("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:[De],ngContentSelectors:T6,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,S6,1,2,"mat-pseudo-checkbox",0),g(1,"span",1),jt(2),_(),H(3,A6,2,1,"span",2),Ae(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:[Ir,hn,D1],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 Ab(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 Mf=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=dt({type:n}),n.\u0275inj=ct({imports:[ha,Xi,Lt,Sb]}),n})();class T1{}const ks="*";function $r(n,t){return{type:7,name:n,definitions:t,options:{}}}function _i(n,t=null){return{type:4,styles:t,timings:n}}function x1(n,t=null){return{type:3,steps:n,options:t}}function I1(n,t=null){return{type:2,steps:n,options:t}}function Ft(n){return{type:6,styles:n,offset:null}}function zn(n,t,e){return{type:0,name:n,styles:t,options:e}}function q6(n){return{type:5,steps:n}}function ui(n,t,e=null){return{type:1,expr:n,animation:t,options:e}}function Tb(n=null){return{type:9,options:n}}function xb(n,t,e=null){return{type:11,selector:n,animation:t,options:e}}function M1(n){Promise.resolve(null).then(n)}class _d{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(){M1(()=>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 k1{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?M1(()=>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 z6(n,t){}const Ic={params:{enterAnimationDuration:"150ms",exitAnimationDuration:"75ms"}},G6={dialogContainer:$r("dialogContainer",[zn("void, exit",Ft({opacity:0,transform:"scale(0.7)"})),zn("enter",Ft({transform:"none"})),ui("* => enter",x1([_i("{{enterAnimationDuration}} cubic-bezier(0, 0, 0.2, 1)",Ft({transform:"none",opacity:1})),xb("@*",Tb(),{optional:!0})]),Ic),ui("* => void, * => exit",x1([_i("{{exitAnimationDuration}} cubic-bezier(0.4, 0.0, 0.2, 1)",Ft({opacity:0})),xb("@*",Tb(),{optional:!0})]),Ic)])};class Mc{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=Ic.params.enterAnimationDuration,this.exitAnimationDuration=Ic.params.exitAnimationDuration}}let W6=(()=>{class n extends p1{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(Xe),p(hb),p(pt,8),p(Mc),p(bf),p(et),p(pd),p(So))},n.\u0275cmp=Ue({type:n,selectors:[["ng-component"]],features:[De],decls:0,vars:0,template:function(e,i){},encapsulation:2}),n})(),$6=(()=>{class n extends W6{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||Ic.params.enterAnimationDuration,exitAnimationDuration:this._config.exitAnimationDuration||Ic.params.exitAnimationDuration}}}}return n.\u0275fac=function(e){return new(e||n)(p(Xe),p(hb),p(pt,8),p(Mc),p(bf),p(et),p(pd),p(It),p(So))},n.\u0275cmp=Ue({type:n,selectors:[["mat-dialog-container"]],hostAttrs:["tabindex","-1",1,"mat-dialog-container"],hostVars:7,hostBindings:function(e,i){1&e&&dp("@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),qu("@dialogContainer",i._getAnimationState()))},features:[De],decls:1,vars:0,consts:[["cdkPortalOutlet",""]],template:function(e,i){1&e&&H(0,z6,0,0,"ng-template",0)},dependencies:[Is],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:[G6.dialogContainer]}}),n})();class kf{constructor(t,e,i){this._ref=t,this._containerInstance=i,this._afterOpened=new L,this._beforeClosed=new L,this._state=0,this.disableClose=e.disableClose,this.id=t.id,i._animationStateChanged.pipe(An(r=>"opened"===r.state),an(1)).subscribe(()=>{this._afterOpened.next(),this._afterOpened.complete()}),i._animationStateChanged.pipe(An(r=>"closed"===r.state),an(1)).subscribe(()=>{clearTimeout(this._closeFallbackTimeout),this._finishDialogClose()}),t.overlayRef.detachments().subscribe(()=>{this._beforeClosed.next(this._result),this._beforeClosed.complete(),this._finishDialogClose()}),Mn(this.backdropClick(),this.keydownEvents().pipe(An(r=>27===r.keyCode&&!this.disableClose&&!Di(r)))).subscribe(r=>{this.disableClose||(r.preventDefault(),function K6(n,t,e){n._closeInteractionType=t,n.close(e)}(this,"keydown"===r.type?"keyboard":"mouse"))})}close(t){this._result=t,this._containerInstance._animationStateChanged.pipe(An(e=>"closing"===e.state),an(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}}const Y6=new ge("MatDialogData"),Q6=new ge("mat-dialog-default-options"),R1=new ge("mat-dialog-scroll-strategy"),Z6={provide:R1,deps:[ur],useFactory:function X6(n){return()=>n.scrollStrategies.block()}};let J6=0,tq=(()=>{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 L,this._afterOpenedAtThisLevel=new L,this._idPrefix="mat-dialog-",this.afterAllClosed=la(()=>this.openDialogs.length?this._getAfterAllClosed():this._getAfterAllClosed().pipe(ri(void 0))),this._scrollStrategy=a,this._dialog=i.get(m1)}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 Mc,...i}).id=i.id||`${this._idPrefix}${J6++}`,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:Mc,useValue:i},{provide:Tf,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){Kl()},n.\u0275prov=me({token:n,factory:n.\u0275fac}),n})(),Rs=(()=>{class n extends tq{constructor(e,i,r,o,s,a,l,c){super(e,i,o,a,l,s,kf,$6,Y6,c)}}return n.\u0275fac=function(e){return new(e||n)(T(ur),T(On),T(Ga,8),T(Q6,8),T(R1),T(n,12),T(Af),T(qn,8))},n.\u0275prov=me({token:n,factory:n.\u0275fac}),n})(),nq=0,iq=(()=>{class n{constructor(e,i,r){this._dialogRef=e,this._elementRef=i,this._dialog=r,this.id="mat-dialog-title-"+nq++}ngOnInit(){this._dialogRef||(this._dialogRef=function oq(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}(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(kf,8),p(Xe),p(Rs))},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})(),Rf=(()=>{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})(),rq=(()=>{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})(),O1=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=dt({type:n}),n.\u0275inj=ct({providers:[Rs,Z6],imports:[w6,xc,Ja,Lt,Lt]}),n})();const P1=["toast-component",""];function sq(n,t){if(1&n){const e=ke();g(0,"button",5),$("click",function(){return X(e),Z(w().remove())}),g(1,"span",6),j(2,"\xd7"),_()()}}function aq(n,t){if(1&n&&(fi(0),j(1),mi()),2&n){const e=w(2);f(1),qe("[",e.duplicatesCount+1,"]")}}function lq(n,t){if(1&n&&(g(0,"div"),j(1),H(2,aq,2,1,"ng-container",4),_()),2&n){const e=w();wi(e.options.titleClass),rt("aria-label",e.title),f(1),qe(" ",e.title," "),f(1),v("ngIf",e.duplicatesCount)}}function cq(n,t){if(1&n&&Ae(0,"div",7),2&n){const e=w();wi(e.options.messageClass),v("innerHTML",e.message,h_)}}function uq(n,t){if(1&n&&(g(0,"div",8),j(1),_()),2&n){const e=w();wi(e.options.messageClass),rt("aria-label",e.message),f(1),qe(" ",e.message," ")}}function dq(n,t){if(1&n&&(g(0,"div"),Ae(1,"div",9),_()),2&n){const e=w();f(1),Oi("width",e.width+"%")}}function hq(n,t){if(1&n){const e=ke();g(0,"button",5),$("click",function(){return X(e),Z(w().remove())}),g(1,"span",6),j(2,"\xd7"),_()()}}function pq(n,t){if(1&n&&(fi(0),j(1),mi()),2&n){const e=w(2);f(1),qe("[",e.duplicatesCount+1,"]")}}function fq(n,t){if(1&n&&(g(0,"div"),j(1),H(2,pq,2,1,"ng-container",4),_()),2&n){const e=w();wi(e.options.titleClass),rt("aria-label",e.title),f(1),qe(" ",e.title," "),f(1),v("ngIf",e.duplicatesCount)}}function mq(n,t){if(1&n&&Ae(0,"div",7),2&n){const e=w();wi(e.options.messageClass),v("innerHTML",e.message,h_)}}function gq(n,t){if(1&n&&(g(0,"div",8),j(1),_()),2&n){const e=w();wi(e.options.messageClass),rt("aria-label",e.message),f(1),qe(" ",e.message," ")}}function _q(n,t){if(1&n&&(g(0,"div"),Ae(1,"div",9),_()),2&n){const e=w();f(1),Oi("width",e.width+"%")}}class Of{constructor(t,e,i,r,o,s){this.toastId=t,this.config=e,this.message=i,this.title=r,this.toastType=o,this.toastRef=s,this._onTap=new L,this._onAction=new L,this.toastRef.afterClosed().subscribe(()=>{this._onAction.complete(),this._onTap.complete()})}triggerTap(){this._onTap.next(),this.config.tapToDismiss&&this._onTap.complete()}onTap(){return this._onTap.asObservable()}triggerAction(t){this._onAction.next(t)}onAction(){return this._onAction.asObservable()}}const Mb={maxOpened:0,autoDismiss:!1,newestOnTop:!0,preventDuplicates:!1,countDuplicates:!1,resetTimeoutOnDuplicate:!1,includeTitleDuplicates:!1,iconClasses:{error:"toast-error",info:"toast-info",success:"toast-success",warning:"toast-warning"},closeButton:!1,disableTimeOut:!1,timeOut:5e3,extendedTimeOut:1e3,enableHtml:!1,progressBar:!1,toastClass:"ngx-toastr",positionClass:"toast-top-right",titleClass:"toast-title",messageClass:"toast-message",easing:"ease-in",easeTime:300,tapToDismiss:!0,onActivateTick:!1,progressAnimation:"decreasing"},vd=new ge("ToastConfig");class vq{constructor(t,e){this.component=t,this.injector=e}attach(t,e){return this._attachedHost=t,t.attach(this,e)}detach(){const t=this._attachedHost;if(t)return this._attachedHost=void 0,t.detach()}get isAttached(){return null!=this._attachedHost}setAttachedHost(t){this._attachedHost=t}}class bq extends class yq{attach(t,e){return this._attachedPortal=t,this.attachComponentPortal(t,e)}detach(){this._attachedPortal&&this._attachedPortal.setAttachedHost(),this._attachedPortal=void 0,this._disposeFn&&(this._disposeFn(),this._disposeFn=void 0)}setDisposeFn(t){this._disposeFn=t}}{constructor(t,e,i){super(),this._hostDomElement=t,this._componentFactoryResolver=e,this._appRef=i}attachComponentPortal(t,e){const i=this._componentFactoryResolver.resolveComponentFactory(t.component);let r;return r=i.create(t.injector),this._appRef.attachView(r.hostView),this.setDisposeFn(()=>{this._appRef.detachView(r.hostView),r.destroy()}),e?this._hostDomElement.insertBefore(this._getComponentRootNode(r),this._hostDomElement.firstChild):this._hostDomElement.appendChild(this._getComponentRootNode(r)),r}_getComponentRootNode(t){return t.hostView.rootNodes[0]}}let L1=(()=>{class n{constructor(e){this._document=e}ngOnDestroy(){this._containerElement&&this._containerElement.parentNode&&this._containerElement.parentNode.removeChild(this._containerElement)}getContainerElement(){return this._containerElement||this._createContainer(),this._containerElement}_createContainer(){const e=this._document.createElement("div");e.classList.add("overlay-container"),this._document.body.appendChild(e),this._containerElement=e}}return n.\u0275fac=function(e){return new(e||n)(T(pt))},n.\u0275prov=me({factory:function(){return new n(T(pt))},token:n,providedIn:"root"}),n})();class Cq{constructor(t){this._portalHost=t}attach(t,e=!0){return this._portalHost.attach(t,e)}detach(){return this._portalHost.detach()}}let F1=(()=>{class n{constructor(e,i,r,o){this._overlayContainer=e,this._componentFactoryResolver=i,this._appRef=r,this._document=o,this._paneElements=new Map}create(e,i){return this._createOverlayRef(this.getPaneElement(e,i))}getPaneElement(e="",i){return this._paneElements.get(i)||this._paneElements.set(i,{}),this._paneElements.get(i)[e]||(this._paneElements.get(i)[e]=this._createPaneElement(e,i)),this._paneElements.get(i)[e]}_createPaneElement(e,i){const r=this._document.createElement("div");return r.id="toast-container",r.classList.add(e),r.classList.add("toast-container"),i?i.getContainerElement().appendChild(r):this._overlayContainer.getContainerElement().appendChild(r),r}_createPortalHost(e){return new bq(e,this._componentFactoryResolver,this._appRef)}_createOverlayRef(e){return new Cq(this._createPortalHost(e))}}return n.\u0275fac=function(e){return new(e||n)(T(L1),T(ho),T(ia),T(pt))},n.\u0275prov=me({factory:function(){return new n(T(L1),T(ho),T(ia),T(pt))},token:n,providedIn:"root"}),n})();class wq{constructor(t){this._overlayRef=t,this.duplicatesCount=0,this._afterClosed=new L,this._activate=new L,this._manualClose=new L,this._resetTimeout=new L,this._countDuplicate=new L}manualClose(){this._manualClose.next(),this._manualClose.complete()}manualClosed(){return this._manualClose.asObservable()}timeoutReset(){return this._resetTimeout.asObservable()}countDuplicate(){return this._countDuplicate.asObservable()}close(){this._overlayRef.detach(),this._afterClosed.next(),this._manualClose.next(),this._afterClosed.complete(),this._manualClose.complete(),this._activate.complete(),this._resetTimeout.complete(),this._countDuplicate.complete()}afterClosed(){return this._afterClosed.asObservable()}isInactive(){return this._activate.isStopped}activate(){this._activate.next(),this._activate.complete()}afterActivate(){return this._activate.asObservable()}onDuplicate(t,e){t&&this._resetTimeout.next(),e&&this._countDuplicate.next(++this.duplicatesCount)}}class Eq{constructor(t,e){this._toastPackage=t,this._parentInjector=e}get(t,e,i){return t===Of?this._toastPackage:this._parentInjector.get(t,e,i)}}let kb=(()=>{class n{constructor(e,i,r,o,s){this.overlay=i,this._injector=r,this.sanitizer=o,this.ngZone=s,this.currentlyActive=0,this.toasts=[],this.index=0,this.toastrConfig=Object.assign(Object.assign({},e.default),e.config),e.config.iconClasses&&(this.toastrConfig.iconClasses=Object.assign(Object.assign({},e.default.iconClasses),e.config.iconClasses))}show(e,i,r={},o=""){return this._preBuildNotification(o,e,i,this.applyConfig(r))}success(e,i,r={}){return this._preBuildNotification(this.toastrConfig.iconClasses.success||"",e,i,this.applyConfig(r))}error(e,i,r={}){return this._preBuildNotification(this.toastrConfig.iconClasses.error||"",e,i,this.applyConfig(r))}info(e,i,r={}){return this._preBuildNotification(this.toastrConfig.iconClasses.info||"",e,i,this.applyConfig(r))}warning(e,i,r={}){return this._preBuildNotification(this.toastrConfig.iconClasses.warning||"",e,i,this.applyConfig(r))}clear(e){for(const i of this.toasts)if(void 0!==e){if(i.toastId===e)return void i.toastRef.manualClose()}else i.toastRef.manualClose()}remove(e){const i=this._findToast(e);if(!i||(i.activeToast.toastRef.close(),this.toasts.splice(i.index,1),this.currentlyActive=this.currentlyActive-1,!this.toastrConfig.maxOpened||!this.toasts.length))return!1;if(this.currentlyActivethis._buildNotification(e,i,r,o)):this._buildNotification(e,i,r,o)}_buildNotification(e,i,r,o){if(!o.toastComponent)throw new Error("toastComponent required");const s=this.findDuplicate(r,i,this.toastrConfig.resetTimeoutOnDuplicate&&o.timeOut>0,this.toastrConfig.countDuplicates);if((this.toastrConfig.includeTitleDuplicates&&r||i)&&this.toastrConfig.preventDuplicates&&null!==s)return s;this.previousToastMessage=i;let a=!1;this.toastrConfig.maxOpened&&this.currentlyActive>=this.toastrConfig.maxOpened&&(a=!0,this.toastrConfig.autoDismiss&&this.clear(this.toasts[0].toastId));const l=this.overlay.create(o.positionClass,this.overlayContainer);this.index=this.index+1;let c=i;i&&o.enableHtml&&(c=this.sanitizer.sanitize(sn.HTML,i));const u=new wq(l),d=new Of(this.index,o,c,r,e,u),h=new Eq(d,this._injector),m=new vq(o.toastComponent,h),y=l.attach(m,this.toastrConfig.newestOnTop);u.componentInstance=y.instance;const S={toastId:this.index,title:r||"",message:i||"",toastRef:u,onShown:u.afterActivate(),onHidden:u.afterClosed(),onTap:d.onTap(),onAction:d.onAction(),portal:y};return a||(this.currentlyActive=this.currentlyActive+1,setTimeout(()=>{S.toastRef.activate()})),this.toasts.push(S),S}}return n.\u0275fac=function(e){return new(e||n)(T(vd),T(F1),T(On),T($a),T(et))},n.\u0275prov=me({factory:function(){return new n(T(vd),T(F1),T(p_),T($a),T(et))},token:n,providedIn:"root"}),n})(),Dq=(()=>{class n{constructor(e,i,r){this.toastrService=e,this.toastPackage=i,this.ngZone=r,this.width=-1,this.toastClasses="",this.state={value:"inactive",params:{easeTime:this.toastPackage.config.easeTime,easing:"ease-in"}},this.message=i.message,this.title=i.title,this.options=i.config,this.originalTimeout=i.config.timeOut,this.toastClasses=`${i.toastType} ${i.config.toastClass}`,this.sub=i.toastRef.afterActivate().subscribe(()=>{this.activateToast()}),this.sub1=i.toastRef.manualClosed().subscribe(()=>{this.remove()}),this.sub2=i.toastRef.timeoutReset().subscribe(()=>{this.resetTimeout()}),this.sub3=i.toastRef.countDuplicate().subscribe(o=>{this.duplicatesCount=o})}get displayStyle(){if("inactive"===this.state.value)return"none"}ngOnDestroy(){this.sub.unsubscribe(),this.sub1.unsubscribe(),this.sub2.unsubscribe(),this.sub3.unsubscribe(),clearInterval(this.intervalId),clearTimeout(this.timeout)}activateToast(){this.state=Object.assign(Object.assign({},this.state),{value:"active"}),!0!==this.options.disableTimeOut&&"timeOut"!==this.options.disableTimeOut&&this.options.timeOut&&(this.outsideTimeout(()=>this.remove(),this.options.timeOut),this.hideTime=(new Date).getTime()+this.options.timeOut,this.options.progressBar&&this.outsideInterval(()=>this.updateProgress(),10))}updateProgress(){if(0===this.width||100===this.width||!this.options.timeOut)return;const e=(new Date).getTime();this.width=(this.hideTime-e)/this.options.timeOut*100,"increasing"===this.options.progressAnimation&&(this.width=100-this.width),this.width<=0&&(this.width=0),this.width>=100&&(this.width=100)}resetTimeout(){clearTimeout(this.timeout),clearInterval(this.intervalId),this.state=Object.assign(Object.assign({},this.state),{value:"active"}),this.outsideTimeout(()=>this.remove(),this.originalTimeout),this.options.timeOut=this.originalTimeout,this.hideTime=(new Date).getTime()+(this.options.timeOut||0),this.width=-1,this.options.progressBar&&this.outsideInterval(()=>this.updateProgress(),10)}remove(){"removed"!==this.state.value&&(clearTimeout(this.timeout),this.state=Object.assign(Object.assign({},this.state),{value:"removed"}),this.outsideTimeout(()=>this.toastrService.remove(this.toastPackage.toastId),+this.toastPackage.config.easeTime))}tapToast(){"removed"!==this.state.value&&(this.toastPackage.triggerTap(),this.options.tapToDismiss&&this.remove())}stickAround(){"removed"!==this.state.value&&(clearTimeout(this.timeout),this.options.timeOut=0,this.hideTime=0,clearInterval(this.intervalId),this.width=0)}delayedHideToast(){!0===this.options.disableTimeOut||"extendedTimeOut"===this.options.disableTimeOut||0===this.options.extendedTimeOut||"removed"===this.state.value||(this.outsideTimeout(()=>this.remove(),this.options.extendedTimeOut),this.options.timeOut=this.options.extendedTimeOut,this.hideTime=(new Date).getTime()+(this.options.timeOut||0),this.width=-1,this.options.progressBar&&this.outsideInterval(()=>this.updateProgress(),10))}outsideTimeout(e,i){this.ngZone?this.ngZone.runOutsideAngular(()=>this.timeout=setTimeout(()=>this.runInsideAngular(e),i)):this.timeout=setTimeout(()=>e(),i)}outsideInterval(e,i){this.ngZone?this.ngZone.runOutsideAngular(()=>this.intervalId=setInterval(()=>this.runInsideAngular(e),i)):this.intervalId=setInterval(()=>e(),i)}runInsideAngular(e){this.ngZone?this.ngZone.run(()=>e()):e()}}return n.\u0275fac=function(e){return new(e||n)(p(kb),p(Of),p(et))},n.\u0275cmp=Ue({type:n,selectors:[["","toast-component",""]],hostVars:5,hostBindings:function(e,i){1&e&&$("click",function(){return i.tapToast()})("mouseenter",function(){return i.stickAround()})("mouseleave",function(){return i.delayedHideToast()}),2&e&&(qu("@flyInOut",i.state),wi(i.toastClasses),Oi("display",i.displayStyle))},attrs:P1,decls:5,vars:5,consts:[["class","toast-close-button","aria-label","Close",3,"click",4,"ngIf"],[3,"class",4,"ngIf"],["role","alertdialog","aria-live","polite",3,"class","innerHTML",4,"ngIf"],["role","alertdialog","aria-live","polite",3,"class",4,"ngIf"],[4,"ngIf"],["aria-label","Close",1,"toast-close-button",3,"click"],["aria-hidden","true"],["role","alertdialog","aria-live","polite",3,"innerHTML"],["role","alertdialog","aria-live","polite"],[1,"toast-progress"]],template:function(e,i){1&e&&(H(0,sq,3,0,"button",0),H(1,lq,3,5,"div",1),H(2,cq,1,3,"div",2),H(3,uq,2,4,"div",3),H(4,dq,2,2,"div",4)),2&e&&(v("ngIf",i.options.closeButton),f(1),v("ngIf",i.title),f(1),v("ngIf",i.message&&i.options.enableHtml),f(1),v("ngIf",i.message&&!i.options.enableHtml),f(1),v("ngIf",i.options.progressBar))},dependencies:[hn],encapsulation:2,data:{animation:[$r("flyInOut",[zn("inactive",Ft({opacity:0})),zn("active",Ft({opacity:1})),zn("removed",Ft({opacity:0})),ui("inactive => active",_i("{{ easeTime }}ms {{ easing }}")),ui("active => removed",_i("{{ easeTime }}ms {{ easing }}"))])]}}),n})();const Sq=Object.assign(Object.assign({},Mb),{toastComponent:Dq});let N1=(()=>{class n{static forRoot(e={}){return{ngModule:n,providers:[{provide:vd,useValue:{default:Sq,config:e}}]}}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=dt({type:n}),n.\u0275inj=ct({imports:[Xi]}),n})(),Aq=(()=>{class n{constructor(e,i,r){this.toastrService=e,this.toastPackage=i,this.appRef=r,this.width=-1,this.toastClasses="",this.state="inactive",this.message=i.message,this.title=i.title,this.options=i.config,this.originalTimeout=i.config.timeOut,this.toastClasses=`${i.toastType} ${i.config.toastClass}`,this.sub=i.toastRef.afterActivate().subscribe(()=>{this.activateToast()}),this.sub1=i.toastRef.manualClosed().subscribe(()=>{this.remove()}),this.sub2=i.toastRef.timeoutReset().subscribe(()=>{this.resetTimeout()}),this.sub3=i.toastRef.countDuplicate().subscribe(o=>{this.duplicatesCount=o})}get displayStyle(){if("inactive"===this.state)return"none"}ngOnDestroy(){this.sub.unsubscribe(),this.sub1.unsubscribe(),this.sub2.unsubscribe(),this.sub3.unsubscribe(),clearInterval(this.intervalId),clearTimeout(this.timeout)}activateToast(){this.state="active",!(!0===this.options.disableTimeOut||"timeOut"===this.options.disableTimeOut)&&this.options.timeOut&&(this.timeout=setTimeout(()=>{this.remove()},this.options.timeOut),this.hideTime=(new Date).getTime()+this.options.timeOut,this.options.progressBar&&(this.intervalId=setInterval(()=>this.updateProgress(),10))),this.options.onActivateTick&&this.appRef.tick()}updateProgress(){if(0===this.width||100===this.width||!this.options.timeOut)return;const e=(new Date).getTime();this.width=(this.hideTime-e)/this.options.timeOut*100,"increasing"===this.options.progressAnimation&&(this.width=100-this.width),this.width<=0&&(this.width=0),this.width>=100&&(this.width=100)}resetTimeout(){clearTimeout(this.timeout),clearInterval(this.intervalId),this.state="active",this.options.timeOut=this.originalTimeout,this.timeout=setTimeout(()=>this.remove(),this.originalTimeout),this.hideTime=(new Date).getTime()+(this.originalTimeout||0),this.width=-1,this.options.progressBar&&(this.intervalId=setInterval(()=>this.updateProgress(),10))}remove(){"removed"!==this.state&&(clearTimeout(this.timeout),this.state="removed",this.timeout=setTimeout(()=>this.toastrService.remove(this.toastPackage.toastId)))}tapToast(){"removed"!==this.state&&(this.toastPackage.triggerTap(),this.options.tapToDismiss&&this.remove())}stickAround(){"removed"!==this.state&&(clearTimeout(this.timeout),this.options.timeOut=0,this.hideTime=0,clearInterval(this.intervalId),this.width=0)}delayedHideToast(){!0===this.options.disableTimeOut||"extendedTimeOut"===this.options.disableTimeOut||0===this.options.extendedTimeOut||"removed"===this.state||(this.timeout=setTimeout(()=>this.remove(),this.options.extendedTimeOut),this.options.timeOut=this.options.extendedTimeOut,this.hideTime=(new Date).getTime()+(this.options.timeOut||0),this.width=-1,this.options.progressBar&&(this.intervalId=setInterval(()=>this.updateProgress(),10)))}}return n.\u0275fac=function(e){return new(e||n)(p(kb),p(Of),p(ia))},n.\u0275cmp=Ue({type:n,selectors:[["","toast-component",""]],hostVars:4,hostBindings:function(e,i){1&e&&$("click",function(){return i.tapToast()})("mouseenter",function(){return i.stickAround()})("mouseleave",function(){return i.delayedHideToast()}),2&e&&(wi(i.toastClasses),Oi("display",i.displayStyle))},attrs:P1,decls:5,vars:5,consts:[["class","toast-close-button","aria-label","Close",3,"click",4,"ngIf"],[3,"class",4,"ngIf"],["role","alert","aria-live","polite",3,"class","innerHTML",4,"ngIf"],["role","alert","aria-live","polite",3,"class",4,"ngIf"],[4,"ngIf"],["aria-label","Close",1,"toast-close-button",3,"click"],["aria-hidden","true"],["role","alert","aria-live","polite",3,"innerHTML"],["role","alert","aria-live","polite"],[1,"toast-progress"]],template:function(e,i){1&e&&(H(0,hq,3,0,"button",0),H(1,fq,3,5,"div",1),H(2,mq,1,3,"div",2),H(3,gq,2,4,"div",3),H(4,_q,2,2,"div",4)),2&e&&(v("ngIf",i.options.closeButton),f(1),v("ngIf",i.title),f(1),v("ngIf",i.message&&i.options.enableHtml),f(1),v("ngIf",i.message&&!i.options.enableHtml),f(1),v("ngIf",i.options.progressBar))},dependencies:[hn],encapsulation:2}),n})();Object.assign(Object.assign({},Mb),{toastComponent:Aq});let en=(()=>{class n{constructor(e,i,r){this.toastr=e,this.globals=i,this.lsm=r,this.toastrObj={timeOut:3e3,positionClass:"toast-bottom-center",preventDuplicates:!0,progressBar:!0,closeButton:!0,maxOpen:0,newestOnTop:!1,enableHtml:!0},this.defaultTitle="",this.connectionTimeout=null,this.waitForAsyncMessage()}showError(e,i=this.defaultTitle,r,o=3e3){if((null===e||""===e?.trim())&&(e="An error occurred. Please try again."),r){const s={};Object.assign(s,this.toastrObj),s.disableTimeOut=!0,this.toastr.error(e,i,s)}else this.toastrObj.timeOut=o,this.toastr.error(e,i,this.toastrObj)}waitForAsyncMessage(){setInterval(()=>{let e=this.lsm.getValue(Zt.asyncMessage);if(e){let i=JSON.parse(e);switch(i.type){case dr.error:this.showError(i.message,"",void 0,1e4);break;case dr.info:this.showInfo(i.message);break;case dr.success:let o=(i.message.split(" ").length-1)/3*1e3;this.showSuccess(i.message,"",o);break;case dr.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){this.toastr.info(e,i,this.toastrObj)}showSuccess(e,i=this.defaultTitle,r=3e3){this.toastrObj.timeOut=r,this.toastr.success(e,i,this.toastrObj)}showWarning(e,i=this.defaultTitle){this.toastr.warning(e,i,this.toastrObj)}showCommon(e,i=this.defaultTitle){this.toastr.show(e,i,this.toastrObj)}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)}getTimeoutMS(){return this.toastrObj.timeOut}clearToasts(){this.toastr.clear()}changeClass(e){this.toastrObj.positionClass=e}}return n.\u0275fac=function(e){return new(e||n)(T(kb),T(ht),T(Ji))},n.\u0275prov=me({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();var dr=(()=>(function(n){n.error="Error",n.info="Info",n.success="Success",n.warning="Warning"}(dr||(dr={})),dr))();function Tn(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 H1=new Set(["graph.microsoft.com","graph.microsoft.us","dod-graph.microsoft.us","graph.microsoft.de","microsoftgraph.chinacloudapi.cn"]),Rq=["$select","$expand","$orderby","$filter","$top","$skip","$skipToken","$count"],Ob=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 tl{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 V1=(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 nl=(()=>(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"}(nl||(nl={})),nl))();class pa{constructor(){this.featureUsage=nl.NONE}static updateFeatureUsageFlag(t,e){let i;t.middlewareControl instanceof tl?i=t.middlewareControl.getMiddlewareOptions(pa):t.middlewareControl=new tl,typeof i>"u"&&(i=new pa,t.middlewareControl.setMiddlewareOptions(pa,i)),i.setFeatureUsage(e)}setFeatureUsage(t){this.featureUsage=this.featureUsage|t}getFeatureUsage(){return this.featureUsage.toString(16)}}let Bq=(()=>{class n{execute(e){return Tn(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})(),U1(e.request,e.options,n.CLIENT_REQUEST_ID_HEADER,r));let s,o=`${n.PRODUCT_NAME}/2.2.1`;if(e.middlewareControl instanceof tl&&(s=e.middlewareControl.getMiddlewareOptions(pa)),s){const a=s.getFeatureUsage();o+=` (${n.FEATURE_USAGE_STRING}=${a})`}q1(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 Hq{constructor(t){this.provider=t}getAccessToken(){return Tn(this,void 0,void 0,function*(){return new Promise((t,e)=>{this.provider((i,r)=>{r?t(r):e(i)})})})}}class yd extends Error{constructor(t=-1,e,i){super(e||i&&i.message),Object.setPrototypeOf(this,yd.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 Lf{static constructError(t,e){const i=new yd(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 yd(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 Tn(this,void 0,void 0,function*(){let r;if(r=t&&t.error?Lf.constructErrorFromResponse(t,e):typeof Error<"u"&&t instanceof Error?Lf.constructError(t,e):new yd(e),"function"!=typeof i)return r;i(r,null)})}}var Kr=(()=>(function(n){n.ARRAYBUFFER="arraybuffer",n.BLOB="blob",n.DOCUMENT="document",n.JSON="json",n.RAW="raw",n.STREAM="stream",n.TEXT="text"}(Kr||(Kr={})),Kr))(),Ff=(()=>(function(n){n.TEXT_HTML="text/html",n.TEXT_XML="text/xml",n.APPLICATION_XML="application/xml",n.APPLICATION_XHTML="application/xhtml+xml"}(Ff||(Ff={})),Ff))(),bd=(()=>(function(n){n.TEXT_PLAIN="text/plain",n.APPLICATION_JSON="application/json"}(bd||(bd={})),bd))(),Cd=(()=>(function(n){n.DOCUMENT="^(text\\/(html|xml))|(application\\/(xml|xhtml\\+xml))$",n.IMAGE="^image\\/.+"}(Cd||(Cd={})),Cd))();class wd{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 Tn(this,void 0,void 0,function*(){if(204===t.status)return Promise.resolve();let i;try{switch(e){case Kr.ARRAYBUFFER:i=yield t.arrayBuffer();break;case Kr.BLOB:i=yield t.blob();break;case Kr.DOCUMENT:i=yield wd.parseDocumentResponse(t,Ff.TEXT_XML);break;case Kr.JSON:i=yield t.json();break;case Kr.STREAM:i=yield Promise.resolve(t.body);break;case Kr.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(Cd.DOCUMENT).test(o)?yield wd.parseDocumentResponse(t,o):new RegExp(Cd.IMAGE).test(o)?t.blob():o===bd.TEXT_PLAIN?yield t.text():o===bd.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 Tn(this,void 0,void 0,function*(){try{if(e===Kr.RAW)return Promise.resolve(t);{const r=yield wd.convertResponse(t,e);if(!t.ok)throw r;if("function"!=typeof i)return r;i(null,r)}}catch(r){throw r}})}}var hr=(()=>(function(n){n.GET="GET",n.PATCH="PATCH",n.POST="POST",n.PUT="PUT",n.DELETE="DELETE"}(hr||(hr={})),hr))();class Vq{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!==Rq.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 Tn(this,void 0,void 0,function*(){try{let i,r,o;e.middlewareControl instanceof tl&&(i=e.middlewareControl.getMiddlewareOptions(Uq)),typeof i<"u"&&(r=i.authenticationProvider,o=i.authenticationProviderOptions),typeof r>"u"&&(r=this.authenticationProvider);const a=`Bearer ${yield r.getAccessToken(o)}`;return q1(e.request,e.options,n.AUTHORIZATION_HEADER,a),pa.updateFeatureUsageFlag(e,nl.AUTHENTICATION_HANDLER_ENABLED),yield this.nextMiddleware.execute(e)}catch(i){throw i}})}setNext(e){this.nextMiddleware=e}}return n.AUTHORIZATION_HEADER="Authorization",n})();class zq{execute(t){return Tn(this,void 0,void 0,function*(){try{return void(t.response=yield fetch(t.request,t.options))}catch(e){throw e}})}}let Nf=(()=>{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})(),Pb=(()=>{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})(),Gq=(()=>{class n{constructor(e=new Nf){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 Tn(this,void 0,void 0,function*(){i.request="string"==typeof i.request?e:yield((n,t)=>Tn(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 tl&&(i=e.middlewareControl.getMiddlewareOptions(Nf)),typeof i>"u"&&(i=Object.assign(new Nf,this.options)),i}executeWithRedirect(e,i,r){return Tn(this,void 0,void 0,function*(){try{yield this.nextMiddleware.execute(e);const o=e.response;if(!(i{class n{constructor(e=new Pb){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===hr.PUT||r===hr.PATCH||r===hr.POST)&&"application/octet-stream"===V1(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 Tn(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 tl&&(i=e.middlewareControl.getMiddlewareOptions(this.options.constructor)),typeof i>"u"&&(i=Object.assign(new Pb,this.options)),i}executeWithRetry(e,i,r){return Tn(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=Lb.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 z1(...[].concat(t.middleware))}this.httpClient=e}static init(t){const e={};for(const i in t)t.hasOwnProperty(i)&&(e[i]="authProvider"===i?new Hq(t[i]):t[i]);return Bf.initWithMiddleware(e)}static initWithMiddleware(t){try{return new Bf(t)}catch(e){throw e}}api(t){return new Vq(this.httpClient,this.config,t)}}class Yq{}var Fb=function(n,t){return(Fb=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 pr(n,t){function e(){this.constructor=n}Fb(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"}($o||($o={})),$o))(),oi=(()=>(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"}(oi||(oi={})),oi))(),Dd=(()=>(function(n){n.COMMON="common",n.ORGANIZATIONS="organizations",n.CONSUMERS="consumers"}(Dd||(Dd={})),Dd))(),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))(),il=(()=>(function(n){n.ACCESS_TOKEN="access_token",n.XMS_CC="xms_cc"}(il||(il={})),il))(),Li={LOGIN:"login",SELECT_ACCOUNT:"select_account",CONSENT:"consent",NONE:"none",CREATE:"create"},kc=(()=>(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"}(kc||(kc={})),kc))(),W1={PLAIN:"plain",S256:"S256"},Sd=(()=>(function(n){n.QUERY="query",n.FRAGMENT="fragment",n.FORM_POST="form_post"}(Sd||(Sd={})),Sd))(),Ad=(()=>(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"}(Ad||(Ad={})),Ad))(),Ko=(()=>(function(n){n.MSSTS_ACCOUNT_TYPE="MSSTS",n.ADFS_ACCOUNT_TYPE="ADFS",n.MSAV1_ACCOUNT_TYPE="MSA",n.GENERIC_ACCOUNT_TYPE="Generic"}(Ko||(Ko={})),Ko))(),fr=(()=>(function(n){n.CACHE_KEY_SEPARATOR="-",n.CLIENT_INFO_SEPARATOR="."}(fr||(fr={})),fr))(),qt=(()=>(function(n){n.ID_TOKEN="IdToken",n.ACCESS_TOKEN="AccessToken",n.ACCESS_TOKEN_WITH_AUTH_SCHEME="AccessToken_With_AuthScheme",n.REFRESH_TOKEN="RefreshToken"}(qt||(qt={})),qt))(),fa=(()=>(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"}(fa||(fa={})),fa))(),Yo=(()=>(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"}(Yo||(Yo={})),Yo))(),Nb="appmetadata",kr=(()=>(function(n){n.CONFIG="config",n.CACHE="cache",n.NETWORK="network",n.HARDCODED_VALUES="hardcoded_values"}(kr||(kr={})),kr))(),Si={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"},mn=(()=>(function(n){n.BEARER="Bearer",n.POP="pop",n.SSH="ssh-cert"}(mn||(mn={})),mn))(),Id=(()=>(function(n){n.username="username",n.password="password"}(Id||(Id={})),Id))(),rl=(()=>(function(n){n[n.httpSuccess=200]="httpSuccess",n[n.httpBadRequest=400]="httpBadRequest"}(rl||(rl={})),rl))(),Os=(()=>(function(n){n.FAILED_AUTO_DETECTION="1",n.INTERNAL_CACHE="2",n.ENVIRONMENT_VARIABLE="3",n.IMDS="4"}(Os||(Os={})),Os))(),ma=(()=>(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"}(ma||(ma={})),ma))(),ga=(()=>(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"}(ga||(ga={})),ga))(),Vf=(()=>(function(n){n.Jwt="JWT",n.Jwk="JWK"}(Vf||(Vf={})),Vf))(),Md_CHANNEL_ID="53ee284d-920a-4b59-9d30-a60315b26836",Qo=(()=>(function(n){n.HandshakeRequest="Handshake",n.HandshakeResponse="HandshakeResponse",n.GetToken="GetToken",n.Response="Response"}(Qo||(Qo={})),Qo))(),Ai=(()=>(function(n){n.LocalStorage="localStorage",n.SessionStorage="sessionStorage",n.MemoryStorage="memoryStorage"}(Ai||(Ai={})),Ai))(),Ao=(()=>(function(n){n.GET="GET",n.POST="POST"}(Ao||(Ao={})),Ao))(),ln=(()=>(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"}(ln||(ln={})),ln))(),ol=(()=>(function(n){n.WRAPPER_SKU="wrapper.sku",n.WRAPPER_VER="wrapper.version"}(ol||(ol={})),ol))(),Cn=(()=>(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"}(Cn||(Cn={})),Cn))(),$e=(()=>(function(n){n.Redirect="redirect",n.Popup="popup",n.Silent="silent",n.None="none"}($e||($e={})),$e))(),vi=(()=>(function(n){n.Startup="startup",n.Login="login",n.Logout="logout",n.AcquireToken="acquireToken",n.SsoSilent="ssoSilent",n.HandleRedirect="handleRedirect",n.None="none"}(vi||(vi={})),vi))(),K1={scopes:Ed},Uf="jwk",qf=(()=>(function(n){n.React="@azure/msal-react",n.Angular="@azure/msal-angular"}(qf||(qf={})),qf))(),zf="msal.db",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))(),Jq=function(){function n(){}return n.getInteractionStatusFromEvent=function(t,e){switch(t.eventType){case st.LOGIN_START:return vi.Login;case st.SSO_SILENT_START:return vi.SsoSilent;case st.ACQUIRE_TOKEN_START:if(t.interactionType===$e.Redirect||t.interactionType===$e.Popup)return vi.AcquireToken;break;case st.HANDLE_REDIRECT_START:return vi.HandleRedirect;case st.LOGOUT_START:return vi.Logout;case st.SSO_SILENT_SUCCESS:case st.SSO_SILENT_FAILURE:if(e&&e!==vi.SsoSilent)break;return vi.None;case st.LOGOUT_END:if(e&&e!==vi.Logout)break;return vi.None;case st.HANDLE_REDIRECT_END:if(e&&e!==vi.HandleRedirect)break;return vi.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!==vi.Login&&e!==vi.AcquireToken)break;return vi.None}}return null},n}(),Bb=function(n,t){return(Bb=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 Ti(n,t){function e(){this.constructor=n}Bb(n,t),n.prototype=null===t?Object.create(t):(e.prototype=t.prototype,new e)}var lt=function(){return lt=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 Y1(){for(var n=[],t=0;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}(),rn=function(){function n(t){if(this._urlString=t,Ke.isEmpty(this._urlString))throw xn.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 xn.createUrlParseError(e)}if(!t.HostNameAndPort||!t.PathSegments)throw xn.createUrlParseError("Given url string: "+this.urlString);if(!t.Protocol||"https:"!==t.Protocol.toLowerCase())throw xn.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]===Dd.COMMON||i[0]===Dd.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 xn.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 xn.createUrlParseError("Given url string: "+t);return i[2]},n.getAbsoluteUrl=function(t,e){if(t[0]===te.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):te.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 it.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}(),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 Ti(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),n9=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:Ao.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||te.EMPTY_STRING,a.label=1;case 1:return a.trys.push([1,3,,4]),[4,fetch(t,{method:Ao.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}(),i9=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,Ao.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,Ao.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===Ao.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===Ao.POST?ze.createPostRequestFailedError("Failed with status "+a.status,t):ze.createGetRequestFailedError("Failed with status "+a.status,t)):s(ze.createNoNetworkConnectivityError())},e===Ao.POST&&i&&i.body)a.send(i.body);else{if(e!==Ao.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}(),Nn=function(){function n(){}return n.clearHash=function(t){t.location.hash=te.EMPTY_STRING,"function"==typeof t.history.replaceState&&t.history.replaceState(null,te.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("#"):te.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 rn(window.location.href).getUrlComponents();return e.Protocol+"//"+e.HostNameAndPort+"/"},n.getBrowserNetworkClient=function(){return window.fetch&&window.Headers?new n9:new i9},n.blockReloadInHiddenIframes=function(){if(rn.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}();function Ps(n){return function(e){const i=new r9(n),r=e.lift(i);return i.caught=r}}class r9{constructor(t){this.selector=t}call(t,e){return e.subscribe(new o9(t,this.selector,this.caught))}}class o9 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 Rc=(()=>{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 $f(n=null){return t=>t.lift(new s9(n))}class s9{constructor(t){this.defaultValue=t}call(t,e){return e.subscribe(new a9(t,this.defaultValue))}}class a9 extends A{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 Q1(n=u9){return t=>t.lift(new l9(n))}class l9{constructor(t){this.errorFactory=t}call(t,e){return e.subscribe(new c9(t,this.errorFactory))}}class c9 extends A{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 u9(){return new Rc}function _a(n,t){const e=arguments.length>=2;return i=>i.pipe(n?An((r,o)=>n(r,o,i)):Ce,an(1),e?$f(t):Q1(()=>new Rc))}function X1(n,t){let e=!1;return arguments.length>=2&&(e=!0),function(r){return r.lift(new d9(n,t,e))}}class d9{constructor(t,e,i=!1){this.accumulator=t,this.seed=e,this.hasSeed=i}call(t,e){return e.subscribe(new h9(t,this.accumulator,this.seed,this.hasSeed))}}class h9 extends A{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 jb(n){return function(e){return 0===n?rf():e.lift(new p9(n))}}class p9{constructor(t){if(this.total=t,this.total<0)throw new C2}call(t,e){return e.subscribe(new f9(t,this.total))}}class f9 extends A{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?An((r,o)=>n(r,o,i)):Ce,jb(1),e?$f(t):Q1(()=>new Rc))}class g9{constructor(t){this.value=t}call(t,e){return e.subscribe(new _9(t,this.value))}}class _9 extends A{constructor(t,e){super(t),this.value=e}_next(t){this.destination.next(this.value)}}function Kf(n){return t=>t.lift(new v9(n))}class v9{constructor(t){this.callback=t}call(t,e){return e.subscribe(new y9(t,this.callback))}}class y9 extends A{constructor(t,e){super(t),this.add(new E(e))}}const zt="primary";class b9{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 Oc(n){return new b9(n)}function C9(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 tI(n){return n.length>0?n[n.length-1]:null}function xi(n,t){for(const e in n)n.hasOwnProperty(e)&&t(n[e],e)}function Ls(n){return vv(n)?n:Vu(n)?vt(Promise.resolve(n)):Fe(n)}const D9={exact:function rI(n,t,e){if(!al(n.segments,t.segments)||!Yf(n.segments,t.segments,e)||n.numberOfChildren!==t.numberOfChildren)return!1;for(const i in t.children)if(!n.children[i]||!rI(n.children[i],t.children[i],e))return!1;return!0},subset:oI},nI={exact:function S9(n,t){return Xo(n,t)},subset:function A9(n,t){return Object.keys(t).length<=Object.keys(n).length&&Object.keys(t).every(e=>J1(n[e],t[e]))},ignored:()=>!0};function iI(n,t,e){return D9[e.paths](n.root,t.root,e.matrixParams)&&nI[e.queryParams](n.queryParams,t.queryParams)&&!("exact"===e.fragment&&n.fragment!==t.fragment)}function oI(n,t,e){return sI(n,t,t.segments,e)}function sI(n,t,e,i){if(n.segments.length>e.length){const r=n.segments.slice(0,e.length);return!(!al(r,e)||t.hasChildren()||!Yf(r,e,i))}if(n.segments.length===e.length){if(!al(n.segments,e)||!Yf(n.segments,e,i))return!1;for(const r in t.children)if(!n.children[r]||!oI(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!!(al(n.segments,r)&&Yf(n.segments,r,i)&&n.children[zt])&&sI(n.children[zt],t,o,i)}}function Yf(n,t,e){return t.every((i,r)=>nI[e](n[r].parameters,i.parameters))}class sl{constructor(t,e,i){this.root=t,this.queryParams=e,this.fragment=i}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=Oc(this.queryParams)),this._queryParamMap}toString(){return I9.serialize(this)}}class Yt{constructor(t,e){this.segments=t,this.children=e,this.parent=null,xi(e,(i,r)=>i.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return Qf(this)}}class kd{constructor(t,e){this.path=t,this.parameters=e}get parameterMap(){return this._parameterMap||(this._parameterMap=Oc(this.parameters)),this._parameterMap}toString(){return dI(this)}}function al(n,t){return n.length===t.length&&n.every((e,i)=>e.path===t[i].path)}class lI{parse(t){const e=new B9(t);return new sl(e.parseRootSegment(),e.parseQueryParams(),e.parseFragment())}serialize(t){const e=`/${Rd(t.root,!0)}`,i=function R9(n){const t=Object.keys(n).map(e=>{const i=n[e];return Array.isArray(i)?i.map(r=>`${Xf(e)}=${Xf(r)}`).join("&"):`${Xf(e)}=${Xf(i)}`}).filter(e=>!!e);return t.length?`?${t.join("&")}`:""}(t.queryParams),r="string"==typeof t.fragment?`#${function M9(n){return encodeURI(n)}(t.fragment)}`:"";return`${e}${i}${r}`}}const I9=new lI;function Qf(n){return n.segments.map(t=>dI(t)).join("/")}function Rd(n,t){if(!n.hasChildren())return Qf(n);if(t){const e=n.children[zt]?Rd(n.children[zt],!1):"",i=[];return xi(n.children,(r,o)=>{o!==zt&&i.push(`${o}:${Rd(r,!1)}`)}),i.length>0?`${e}(${i.join("//")})`:e}{const e=function x9(n,t){let e=[];return xi(n.children,(i,r)=>{r===zt&&(e=e.concat(t(i,r)))}),xi(n.children,(i,r)=>{r!==zt&&(e=e.concat(t(i,r)))}),e}(n,(i,r)=>r===zt?[Rd(n.children[zt],!1)]:[`${r}:${Rd(i,!1)}`]);return 1===Object.keys(n.children).length&&null!=n.children[zt]?`${Qf(n)}/${e[0]}`:`${Qf(n)}/(${e.join("//")})`}}function cI(n){return encodeURIComponent(n).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function Xf(n){return cI(n).replace(/%3B/gi,";")}function Vb(n){return cI(n).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function Zf(n){return decodeURIComponent(n)}function uI(n){return Zf(n.replace(/\+/g,"%20"))}function dI(n){return`${Vb(n.path)}${function k9(n){return Object.keys(n).map(t=>`;${Vb(t)}=${Vb(n[t])}`).join("")}(n.parameters)}`}const O9=/^[^\/()?;=#]+/;function Jf(n){const t=n.match(O9);return t?t[0]:""}const P9=/^[^=?&#]+/,F9=/^[^&#]+/;class B9{constructor(t){this.url=t,this.remaining=t}parseRootSegment(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new Yt([],{}):new Yt([],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[zt]=new Yt(t,e)),i}parseSegment(){const t=Jf(this.remaining);if(""===t&&this.peekStartsWith(";"))throw new Se(4009,!1);return this.capture(t),new kd(Zf(t),this.parseMatrixParams())}parseMatrixParams(){const t={};for(;this.consumeOptional(";");)this.parseParam(t);return t}parseParam(t){const e=Jf(this.remaining);if(!e)return;this.capture(e);let i="";if(this.consumeOptional("=")){const r=Jf(this.remaining);r&&(i=r,this.capture(i))}t[Zf(e)]=Zf(i)}parseQueryParam(t){const e=function L9(n){const t=n.match(P9);return t?t[0]:""}(this.remaining);if(!e)return;this.capture(e);let i="";if(this.consumeOptional("=")){const s=function N9(n){const t=n.match(F9);return t?t[0]:""}(this.remaining);s&&(i=s,this.capture(i))}const r=uI(e),o=uI(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=Jf(this.remaining),r=this.remaining[i.length];if("/"!==r&&")"!==r&&";"!==r)throw new Se(4010,!1);let o;i.indexOf(":")>-1?(o=i.slice(0,i.indexOf(":")),this.capture(o),this.capture(":")):t&&(o=zt);const s=this.parseChildren();e[o]=1===Object.keys(s).length?s[zt]:new Yt([],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 Se(4011,!1)}}function Ub(n){return n.segments.length>0?new Yt([],{[zt]:n}):n}function em(n){const t={};for(const i of Object.keys(n.children)){const o=em(n.children[i]);(o.segments.length>0||o.hasChildren())&&(t[i]=o)}return function j9(n){if(1===n.numberOfChildren&&n.children[zt]){const t=n.children[zt];return new Yt(n.segments.concat(t.segments),t.children)}return n}(new Yt(n.segments,t))}function ll(n){return n instanceof sl}function U9(n,t,e,i,r){if(0===e.length)return Pc(t.root,t.root,t.root,i,r);const o=function fI(n){if("string"==typeof n[0]&&1===n.length&&"/"===n[0])return new pI(!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 xi(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 pI(e,t,i)}(e);return o.toRoot()?Pc(t.root,t.root,new Yt([],{}),i,r):function s(l){const c=function z9(n,t,e,i){if(n.isAbsolute)return new Lc(t.root,!0,0);if(-1===i)return new Lc(e,e===t.root,0);return function mI(n,t,e){let i=n,r=t,o=e;for(;o>r;){if(o-=r,i=i.parent,!i)throw new Se(4005,!1);r=i.segments.length}return new Lc(i,!1,r-o)}(e,i+(Od(n.commands[0])?0:1),n.numberOfDoubleDots)}(o,t,n.snapshot?._urlSegment,l),u=c.processChildren?Ld(c.segmentGroup,c.index,o.commands):zb(c.segmentGroup,c.index,o.commands);return Pc(t.root,c.segmentGroup,u,i,r)}(n.snapshot?._lastPathIndex)}function Od(n){return"object"==typeof n&&null!=n&&!n.outlets&&!n.segmentPath}function Pd(n){return"object"==typeof n&&null!=n&&n.outlets}function Pc(n,t,e,i,r){let s,o={};i&&xi(i,(l,c)=>{o[c]=Array.isArray(l)?l.map(u=>`${u}`):`${l}`}),s=n===t?e:hI(n,t,e);const a=Ub(em(s));return new sl(a,o,r)}function hI(n,t,e){const i={};return xi(n.children,(r,o)=>{i[o]=r===t?e:hI(r,t,e)}),new Yt(n.segments,i)}class pI{constructor(t,e,i){if(this.isAbsolute=t,this.numberOfDoubleDots=e,this.commands=i,t&&i.length>0&&Od(i[0]))throw new Se(4003,!1);const r=i.find(Pd);if(r&&r!==tI(i))throw new Se(4004,!1)}toRoot(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}class Lc{constructor(t,e,i){this.segmentGroup=t,this.processChildren=e,this.index=i}}function zb(n,t,e){if(n||(n=new Yt([],{})),0===n.segments.length&&n.hasChildren())return Ld(n,t,e);const i=function W9(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(Pd(a))break;const l=`${a}`,c=i0&&void 0===l)break;if(l&&c&&"object"==typeof c&&void 0===c.outlets){if(!_I(l,c,s))return o;i+=2}else{if(!_I(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]=zb(n.children[s],t,o))}),xi(n.children,(o,s)=>{void 0===i[s]&&(r[s]=o)}),new Yt(n.segments,r)}}function Gb(n,t,e){const i=n.segments.slice(0,t);let r=0;for(;r{"string"==typeof e&&(e=[e]),null!==e&&(t[i]=Gb(new Yt([],{}),0,e))}),t}function gI(n){const t={};return xi(n,(e,i)=>t[i]=`${e}`),t}function _I(n,t,e){return n==e.path&&Xo(t,e.parameters)}class Fs{constructor(t,e){this.id=t,this.url=e}}class vI extends Fs{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 Fd extends Fs{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 tm extends Fs{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 yI extends Fs{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 K9 extends Fs{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 Y9 extends Fs{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 Q9 extends Fs{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 X9 extends Fs{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 Z9 extends Fs{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 J9{constructor(t){this.route=t,this.type=9}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}}class ez{constructor(t){this.route=t,this.type=10}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}}class tz{constructor(t){this.snapshot=t,this.type=11}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class nz{constructor(t){this.snapshot=t,this.type=12}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class iz{constructor(t){this.snapshot=t,this.type=13}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class rz{constructor(t){this.snapshot=t,this.type=14}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class bI{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=Wb(t,this._root);return e?e.children.map(i=>i.value):[]}firstChild(t){const e=Wb(t,this._root);return e&&e.children.length>0?e.children[0].value:null}siblings(t){const e=$b(t,this._root);return e.length<2?[]:e[e.length-2].children.map(r=>r.value).filter(r=>r!==t)}pathFromRoot(t){return $b(t,this._root).map(e=>e.value)}}function Wb(n,t){if(n===t.value)return t;for(const e of t.children){const i=Wb(n,e);if(i)return i}return null}function $b(n,t){if(n===t.value)return[t];for(const e of t.children){const i=$b(n,e);if(i.length)return i.unshift(t),i}return[]}class Ns{constructor(t,e){this.value=t,this.children=e}toString(){return`TreeNode(${this.value})`}}function Fc(n){const t={};return n&&n.children.forEach(e=>t[e.value.outlet]=e),t}class CI extends bI{constructor(t,e){super(t),this.snapshot=e,Kb(this,t)}toString(){return this.snapshot.toString()}}function wI(n,t){const e=function sz(n,t){const s=new nm([],{},{},"",{},zt,t,null,n.root,-1,{});return new DI("",new Ns(s,[]))}(n,t),i=new cr([new kd("",{})]),r=new cr({}),o=new cr({}),s=new cr({}),a=new cr(""),l=new Nc(i,r,s,a,o,zt,t,e.root);return l.snapshot=e.root,new CI(new Ns(l,[]),e)}class Nc{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(ue(t=>Oc(t)))),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe(ue(t=>Oc(t)))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}}function EI(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 az(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 nm{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=Oc(this.params)),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=Oc(this.queryParams)),this._queryParamMap}toString(){return`Route(url:'${this.url.map(i=>i.toString()).join("/")}', path:'${this.routeConfig?this.routeConfig.path:""}')`}}class DI extends bI{constructor(t,e){super(e),this.url=t,Kb(this,e)}toString(){return SI(this._root)}}function Kb(n,t){t.value._routerState=n,t.children.forEach(e=>Kb(n,e))}function SI(n){const t=n.children.length>0?` { ${n.children.map(SI).join(", ")} } `:"";return`${n.value}${t}`}function Yb(n){if(n.snapshot){const t=n.snapshot,e=n._futureSnapshot;n.snapshot=e,Xo(t.queryParams,e.queryParams)||n.queryParams.next(e.queryParams),t.fragment!==e.fragment&&n.fragment.next(e.fragment),Xo(t.params,e.params)||n.params.next(e.params),function w9(n,t){if(n.length!==t.length)return!1;for(let e=0;eXo(e.parameters,t[i].parameters))}(n.url,t.url);return e&&!(!n.parent!=!t.parent)&&(!n.parent||Qb(n.parent,t.parent))}function Nd(n,t,e){if(e&&n.shouldReuseRoute(t.value,e.value.snapshot)){const i=e.value;i._futureSnapshot=t.value;const r=function cz(n,t,e){return t.children.map(i=>{for(const r of e.children)if(n.shouldReuseRoute(i.value,r.value.snapshot))return Nd(n,i,r);return Nd(n,i)})}(n,t,e);return new Ns(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=>Nd(n,a)),s}}const i=function uz(n){return new Nc(new cr(n.url),new cr(n.params),new cr(n.queryParams),new cr(n.fragment),new cr(n.data),n.outlet,n.component,n)}(t.value),r=t.children.map(o=>Nd(n,o));return new Ns(i,r)}}const Xb="ngNavigationCancelingError";function AI(n,t){const{redirectTo:e,navigationBehaviorOptions:i}=ll(t)?{redirectTo:t,navigationBehaviorOptions:void 0}:t,r=TI(!1,0,t);return r.url=e,r.navigationBehaviorOptions=i,r}function TI(n,t,e){const i=new Error("NavigationCancelingError: "+(n||""));return i[Xb]=!0,i.cancellationCode=t,e&&(i.url=e),i}function xI(n){return II(n)&&ll(n.url)}function II(n){return n&&n[Xb]}class dz{constructor(){this.outlet=null,this.route=null,this.resolver=null,this.injector=null,this.children=new Bd,this.attachRef=null}}class Bd{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 dz,this.contexts.set(t,e)),e}getContext(t){return this.contexts.get(t)||null}}const im=!1;let MI=(()=>{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||zt,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 Se(4012,im);return this.activated.instance}get activatedRoute(){if(!this.activated)throw new Se(4012,im);return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new Se(4012,im);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 Se(4013,im);this._activatedRoute=e;const r=this.location,s=e._futureSnapshot.component,a=this.parentContexts.getOrCreateContext(this.name).children,l=new hz(e,a,r.injector);if(i&&function pz(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(Bd),p(En),Hr("name"),p(It),p(La))},n.\u0275dir=fe({type:n,selectors:[["router-outlet"]],outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"]}),n})();class hz{constructor(t,e,i){this.route=t,this.childContexts=e,this.parent=i}get(t,e){return t===Nc?this.route:t===Bd?this.childContexts:this.parent.get(t,e)}}let kI=(()=>{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&&Ae(0,"router-outlet")},dependencies:[MI],encapsulation:2}),n})();function RI(n,t){return n.providers&&!n._injector&&(n._injector=function xv(n,t,e=null){return new t5(n,t,e).injector}(n.providers,t,`Route: ${n.path}`)),n._injector??t}function Jb(n){const t=n.children&&n.children.map(Jb),e=t?{...n,children:t}:{...n};return!e.component&&!e.loadComponent&&(t||e.loadChildren)&&e.outlet&&e.outlet!==zt&&(e.component=kI),e}function Qr(n){return n.outlet||zt}function OI(n,t){const e=n.filter(i=>Qr(i)===t);return e.push(...n.filter(i=>Qr(i)!==t)),e}function PI(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 vz{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),Yb(this.futureState.root),this.activateChildRoutes(e,i,t)}deactivateChildRoutes(t,e,i){const r=Fc(e);t.children.forEach(o=>{const s=o.value.outlet;this.deactivateRoutes(o,r[s],i),delete r[s]}),xi(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=Fc(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=Fc(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=Fc(e);t.children.forEach(o=>{this.activateRoutes(o,r[o.value.outlet],i),this.forwardEvent(new rz(o.value.snapshot))}),t.children.length&&this.forwardEvent(new nz(t.value.snapshot))}activateRoutes(t,e,i){const r=t.value,o=e?e.value:null;if(Yb(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),Yb(a.route.value),this.activateChildRoutes(t,null,s.children)}else{const a=PI(r.snapshot),l=a?.get(ho)??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 LI{constructor(t){this.path=t,this.route=this.path[this.path.length-1]}}class rm{constructor(t,e){this.component=t,this.route=e}}function yz(n,t,e){const i=n._root;return jd(i,t?t._root:null,e,[i.value])}function om(n,t,e){return(PI(t)??e).get(n)}function jd(n,t,e,i,r={canDeactivateChecks:[],canActivateChecks:[]}){const o=Fc(t);return n.children.forEach(s=>{(function Cz(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 wz(n,t,e){if("function"==typeof e)return e(n,t);switch(e){case"pathParamsChange":return!al(n.url,t.url);case"pathParamsOrQueryParamsChange":return!al(n.url,t.url)||!Xo(n.queryParams,t.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!Qb(n,t)||!Xo(n.queryParams,t.queryParams);default:return!Qb(n,t)}}(s,o,o.routeConfig.runGuardsAndResolvers);l?r.canActivateChecks.push(new LI(i)):(o.data=s.data,o._resolvedData=s._resolvedData),jd(n,t,o.component?a?a.children:null:e,i,r),l&&a&&a.outlet&&a.outlet.isActivated&&r.canDeactivateChecks.push(new rm(a.outlet.component,s))}else s&&Hd(t,a,r),r.canActivateChecks.push(new LI(i)),jd(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]}),xi(o,(s,a)=>Hd(s,e.getContext(a),r)),r}function Hd(n,t,e){const i=Fc(n),r=n.value;xi(i,(o,s)=>{Hd(o,r.component?t?t.children.getContext(s):null:t,e)}),e.canDeactivateChecks.push(new rm(r.component&&t&&t.outlet&&t.outlet.isActivated?t.outlet.component:null,r))}function Vd(n){return"function"==typeof n}const sm=Symbol("INITIAL_VALUE");function Bc(){return Qn(n=>lb(n.map(t=>t.pipe(an(1),ri(sm)))).pipe(ue(t=>{for(const e of t)if(!0!==e){if(e===sm)return sm;if(!1===e||e instanceof sl)return e}return!0}),An(t=>t!==sm),an(1)))}function FI(n){return function W(...n){return ie(n)}(Xn(t=>{if(ll(t))throw AI(0,t)}),ue(t=>!0===t))}const eC={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function NI(n,t,e,i,r){const o=tC(n,t,e);return o.matched?function jz(n,t,e,i){const r=t.canMatch;return r&&0!==r.length?Fe(r.map(s=>{const a=n.get(s),l=function xz(n){return n&&Vd(n.canMatch)}(a)?a.canMatch(t,e):a(t,e);return Ls(l)})).pipe(Bc(),FI()):Fe(!0)}(i=RI(t,i),t,e).pipe(ue(s=>!0===s?o:{...eC})):Fe(o)}function tC(n,t,e){if(""===t.path)return"full"===t.pathMatch&&(n.hasChildren()||e.length>0)?{...eC}:{matched:!0,consumedSegments:[],remainingSegments:e,parameters:{},positionalParamSegments:{}};const r=(t.matcher||C9)(e,n,t);if(!r)return{...eC};const o={};xi(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 am(n,t,e,i,r="corrected"){if(e.length>0&&function Uz(n,t,e){return e.some(i=>lm(n,t,i)&&Qr(i)!==zt)}(n,e,i)){const s=new Yt(t,function Vz(n,t,e,i){const r={};r[zt]=i,i._sourceSegment=n,i._segmentIndexShift=t.length;for(const o of e)if(""===o.path&&Qr(o)!==zt){const s=new Yt([],{});s._sourceSegment=n,s._segmentIndexShift=t.length,r[Qr(o)]=s}return r}(n,t,i,new Yt(e,n.children)));return s._sourceSegment=n,s._segmentIndexShift=t.length,{segmentGroup:s,slicedSegments:[]}}if(0===e.length&&function qz(n,t,e){return e.some(i=>lm(n,t,i))}(n,e,i)){const s=new Yt(n.segments,function Hz(n,t,e,i,r,o){const s={};for(const a of i)if(lm(n,e,a)&&!r[Qr(a)]){const l=new Yt([],{});l._sourceSegment=n,l._segmentIndexShift="legacy"===o?n.segments.length:t.length,s[Qr(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 Yt(n.segments,n.children);return o._sourceSegment=n,o._segmentIndexShift=t.length,{segmentGroup:o,slicedSegments:e}}function lm(n,t,e){return(!(n.hasChildren()||t.length>0)||"full"!==e.pathMatch)&&""===e.path}function BI(n,t,e,i){return!!(Qr(n)===i||i!==zt&&lm(t,e,n))&&("**"===n.path||tC(t,n,e).matched)}function jI(n,t,e){return 0===t.length&&!n.children[e]}const cm=!1;class um{constructor(t){this.segmentGroup=t||null}}class HI{constructor(t){this.urlTree=t}}function Ud(n){return Qa(new um(n))}function VI(n){return Qa(new HI(n))}class $z{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=am(this.urlTree.root,[],[],this.config).segmentGroup,e=new Yt(t.segments,t.children);return this.expandSegmentGroup(this.injector,this.config,e,zt).pipe(ue(o=>this.createUrlTree(em(o),this.urlTree.queryParams,this.urlTree.fragment))).pipe(Ps(o=>{if(o instanceof HI)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,zt).pipe(ue(r=>this.createUrlTree(em(r),t.queryParams,t.fragment))).pipe(Ps(r=>{throw r instanceof um?this.noMatchError(r):r}))}noMatchError(t){return new Se(4002,cm)}createUrlTree(t,e,i){const r=Ub(t);return new sl(r,e,i)}expandSegmentGroup(t,e,i,r){return 0===i.segments.length&&i.hasChildren()?this.expandChildren(t,e,i).pipe(ue(o=>new Yt([],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(zo(o=>{const s=i.children[o],a=OI(e,o);return this.expandSegmentGroup(t,a,s,o).pipe(ue(l=>({segment:l,outlet:o})))}),X1((o,s)=>(o[s.outlet]=s.segment,o),{}),Z1())}expandSegment(t,e,i,r,o,s){return vt(i).pipe(zo(a=>this.expandSegmentAgainstRoute(t,e,i,a,r,o,s).pipe(Ps(c=>{if(c instanceof um)return Fe(null);throw c}))),_a(a=>!!a),Ps((a,l)=>{if(a instanceof Rc||"EmptyError"===a.name)return jI(e,r,o)?Fe(new Yt([],{})):Ud(e);throw a}))}expandSegmentAgainstRoute(t,e,i,r,o,s,a){return BI(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):Ud(e):Ud(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("/")?VI(o):this.lineralizeSegments(i,o).pipe(Hi(s=>{const a=new Yt(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}=tC(e,r,o);if(!a)return Ud(e);const d=this.applyRedirectCommands(l,r.redirectTo,u);return r.redirectTo.startsWith("/")?VI(d):this.lineralizeSegments(r,d).pipe(Hi(h=>this.expandSegment(t,e,i,h.concat(c),s,!1)))}matchSegmentAgainstRoute(t,e,i,r,o){return"**"===i.path?(t=RI(i,t),i.loadChildren?(i._loadedRoutes?Fe({routes:i._loadedRoutes,injector:i._loadedInjector}):this.configLoader.loadChildren(t,i)).pipe(ue(a=>(i._loadedRoutes=a.routes,i._loadedInjector=a.injector,new Yt(r,{})))):Fe(new Yt(r,{}))):NI(e,i,r,t).pipe(Qn(({matched:s,consumedSegments:a,remainingSegments:l})=>s?this.getChildConfig(t=i._injector??t,i,r).pipe(Hi(u=>{const d=u.injector??t,h=u.routes,{segmentGroup:m,slicedSegments:y}=am(e,a,l,h),S=new Yt(m.segments,m.children);if(0===y.length&&S.hasChildren())return this.expandChildren(d,h,S).pipe(ue(ne=>new Yt(a,ne)));if(0===h.length&&0===y.length)return Fe(new Yt(a,{}));const U=Qr(i)===o;return this.expandSegment(d,S,h,y,U?zt:o,!0).pipe(ue(ve=>new Yt(a.concat(ve.segments),ve.children)))})):Ud(e)))}getChildConfig(t,e,i){return e.children?Fe({routes:e.children,injector:t}):e.loadChildren?void 0!==e._loadedRoutes?Fe({routes:e._loadedRoutes,injector:e._loadedInjector}):function Bz(n,t,e,i){const r=t.canLoad;return void 0===r||0===r.length?Fe(!0):Fe(r.map(s=>{const a=n.get(s),l=function Dz(n){return n&&Vd(n.canLoad)}(a)?a.canLoad(t,e):a(t,e);return Ls(l)})).pipe(Bc(),FI())}(t,e,i).pipe(Hi(r=>r?this.configLoader.loadChildren(t,e).pipe(Xn(o=>{e._loadedRoutes=o.routes,e._loadedInjector=o.injector})):function Gz(n){return Qa(TI(cm,3))}())):Fe({routes:[],injector:t})}lineralizeSegments(t,e){let i=[],r=e.root;for(;;){if(i=i.concat(r.segments),0===r.numberOfChildren)return Fe(i);if(r.numberOfChildren>1||!r.children[zt])return Qa(new Se(4e3,cm));r=r.children[zt]}}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 sl(o,this.createQueryParams(e.queryParams,this.urlTree.queryParams),e.fragment)}createQueryParams(t,e){const i={};return xi(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 xi(e.children,(a,l)=>{s[l]=this.createSegmentGroup(t,a,i,r)}),new Yt(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 Se(4001,cm);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 Yz{}class Zz{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=am(this.urlTree.root,[],[],this.config.filter(e=>void 0===e.redirectTo),this.relativeLinkResolution).segmentGroup;return this.processSegmentGroup(this.injector,this.config,t,zt).pipe(ue(e=>{if(null===e)return null;const i=new nm([],Object.freeze({}),Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,{},zt,this.rootComponentType,null,this.urlTree.root,-1,{}),r=new Ns(i,e),o=new DI(this.url,r);return this.inheritParamsAndData(o._root),o}))}inheritParamsAndData(t){const e=t.value,i=EI(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(zo(r=>{const o=i.children[r],s=OI(e,r);return this.processSegmentGroup(t,s,o,r)}),X1((r,o)=>r&&o?(r.push(...o),r):null),e1(r=>null!==r),$f(null),Z1(),ue(r=>{if(null===r)return null;const o=UI(r);return function Jz(n){n.sort((t,e)=>t.value.outlet===zt?-1:e.value.outlet===zt?1:t.value.outlet.localeCompare(e.value.outlet))}(o),o}))}processSegment(t,e,i,r,o){return vt(e).pipe(zo(s=>this.processSegmentAgainstRoute(s._injector??t,s,i,r,o)),_a(s=>!!s),Ps(s=>{if(s instanceof Rc)return jI(i,r,o)?Fe([]):Fe(null);throw s}))}processSegmentAgainstRoute(t,e,i,r,o){if(e.redirectTo||!BI(e,i,r,o))return Fe(null);let s;if("**"===e.path){const a=r.length>0?tI(r).parameters:{},l=zI(i)+r.length;s=Fe({snapshot:new nm(r,a,Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,WI(e),Qr(e),e.component??e._loadedComponent??null,e,qI(i),l,$I(e),l),consumedSegments:[],remainingSegments:[]})}else s=NI(i,e,r,t).pipe(ue(({matched:a,consumedSegments:l,remainingSegments:c,parameters:u})=>{if(!a)return null;const d=zI(i)+l.length;return{snapshot:new nm(l,u,Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,WI(e),Qr(e),e.component??e._loadedComponent??null,e,qI(i),d,$I(e),d),consumedSegments:l,remainingSegments:c}}));return s.pipe(Qn(a=>{if(null===a)return Fe(null);const{snapshot:l,consumedSegments:c,remainingSegments:u}=a;t=e._injector??t;const d=e._loadedInjector??t,h=function e7(n){return n.children?n.children:n.loadChildren?n._loadedRoutes:[]}(e),{segmentGroup:m,slicedSegments:y}=am(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(ue(U=>null===U?null:[new Ns(l,U)]));if(0===h.length&&0===y.length)return Fe([new Ns(l,[])]);const S=Qr(e)===o;return this.processSegment(d,h,m,y,S?zt:o).pipe(ue(U=>null===U?null:[new Ns(l,U)]))}))}}function t7(n){const t=n.value.routeConfig;return t&&""===t.path&&void 0===t.redirectTo}function UI(n){const t=[],e=new Set;for(const i of n){if(!t7(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=UI(i.children);t.push(new Ns(i.value,r))}return t.filter(i=>!e.has(i))}function qI(n){let t=n;for(;t._sourceSegment;)t=t._sourceSegment;return t}function zI(n){let t=n,e=t._segmentIndexShift??0;for(;t._sourceSegment;)t=t._sourceSegment,e+=t._segmentIndexShift??0;return e-1}function WI(n){return n.data||{}}function $I(n){return n.resolve||{}}const nC=Symbol("RouteTitle");function KI(n){return"string"==typeof n.title||null===n.title}function iC(n){return Qn(t=>{const e=n(t);return e?vt(e).pipe(ue(()=>t)):Fe(t)})}class h7 extends class d7{shouldDetach(t){return!1}store(t,e){}shouldAttach(t){return!1}retrieve(t){return null}shouldReuseRoute(t,e){return t.routeConfig===e.routeConfig}}{}const rC=new ge("ROUTES");let QI=(()=>{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 Fe(e._loadedComponent);this.onLoadStartListener&&this.onLoadStartListener(e);const i=Ls(e.loadComponent()).pipe(Xn(o=>{this.onLoadEndListener&&this.onLoadEndListener(e),e._loadedComponent=o}),Kf(()=>{this.componentLoaders.delete(e)})),r=new bh(i,()=>new L).pipe(yh());return this.componentLoaders.set(e,r),r}loadChildren(e,i){if(this.childrenLoaders.get(i))return this.childrenLoaders.get(i);if(i._loadedRoutes)return Fe({routes:i._loadedRoutes,injector:i._loadedInjector});this.onLoadStartListener&&this.onLoadStartListener(i);const o=this.loadModuleFactoryOrRoutes(i.loadChildren).pipe(ue(a=>{this.onLoadEndListener&&this.onLoadEndListener(i);let l,c,u=!1;Array.isArray(a)?c=a:(l=a.create(e).injector,c=function eI(n){return Array.prototype.concat.apply([],n)}(l.get(rC,[],yt.Self|yt.Optional)));return{routes:c.map(Jb),injector:l}}),Kf(()=>{this.childrenLoaders.delete(i)})),s=new bh(o,()=>new L).pipe(yh());return this.childrenLoaders.set(i,s),s}loadModuleFactoryOrRoutes(e){return Ls(e()).pipe(Hi(i=>i instanceof JS||Array.isArray(i)?Fe(i):vt(this.compiler.compileModuleAsync(i))))}}return n.\u0275fac=function(e){return new(e||n)(T(On),T(UA))},n.\u0275prov=me({token:n,factory:n.\u0275fac}),n})();class f7{shouldProcessUrl(t){return!0}extract(t){return t}merge(t,e){return t}}function m7(n){throw n}function g7(n,t,e){return t.parse("/")}const _7={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},v7={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 L,this.errorHandler=m7,this.malformedUriErrorHandler=g7,this.navigated=!1,this.lastSuccessfulId=-1,this.afterPreactivation=()=>Fe(void 0),this.urlHandlingStrategy=new f7,this.routeReuseStrategy=new h7,this.onSameUrlNavigation="ignore",this.paramsInheritanceStrategy="emptyOnly",this.urlUpdateStrategy="deferred",this.relativeLinkResolution="corrected",this.canceledNavigationResolution="replace",this.configLoader=s.get(QI),this.configLoader.onLoadEndListener=h=>this.triggerEvent(new ez(h)),this.configLoader.onLoadStartListener=h=>this.triggerEvent(new J9(h)),this.ngModule=s.get(Va),this.console=s.get(s4);const d=s.get(et);this.isNgZoneEnabled=d instanceof et&&et.isInAngularZone(),this.resetConfig(l),this.currentUrlTree=function E9(){return new sl(new Yt([],{}),{},null)}(),this.rawUrlTree=this.currentUrlTree,this.browserUrlTree=this.currentUrlTree,this.routerState=wI(this.currentUrlTree,this.rootComponentType),this.transitions=new cr({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(An(r=>0!==r.id),ue(r=>({...r,extractedUrl:this.urlHandlingStrategy.extract(r.rawUrl)})),Qn(r=>{let o=!1,s=!1;return Fe(r).pipe(Xn(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}}),Qn(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 XI(a.source)&&(this.browserUrlTree=a.extractedUrl),Fe(a).pipe(Qn(d=>{const h=this.transitions.getValue();return i.next(new vI(d.id,this.serializeUrl(d.extractedUrl),d.source,d.restoredState)),h!==this.transitions.getValue()?Es:Promise.resolve(d)}),function Kz(n,t,e,i){return Qn(r=>function Wz(n,t,e,i,r){return new $z(n,t,e,i,r).apply()}(n,t,e,r.extractedUrl,i).pipe(ue(o=>({...r,urlAfterRedirects:o}))))}(this.ngModule.injector,this.configLoader,this.urlSerializer,this.config),Xn(d=>{this.currentNavigation={...this.currentNavigation,finalUrl:d.urlAfterRedirects},r.urlAfterRedirects=d.urlAfterRedirects}),function r7(n,t,e,i,r,o){return Hi(s=>function Xz(n,t,e,i,r,o,s="emptyOnly",a="legacy"){return new Zz(n,t,e,i,r,s,a,o).recognize().pipe(Qn(l=>null===l?function Qz(n){return new b(t=>t.error(n))}(new Yz):Fe(l)))}(n,t,e,s.urlAfterRedirects,i.serialize(s.urlAfterRedirects),i,r,o).pipe(ue(a=>({...s,targetSnapshot:a}))))}(this.ngModule.injector,this.rootComponentType,this.config,this.urlSerializer,this.paramsInheritanceStrategy,this.relativeLinkResolution),Xn(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 K9(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:S,extras:U}=a,ee=new vI(h,this.serializeUrl(m),y,S);i.next(ee);const ve=wI(m,this.rootComponentType).snapshot;return Fe(r={...a,targetSnapshot:ve,urlAfterRedirects:m,extras:{...U,skipLocationChange:!1,replaceUrl:!1}})}return this.rawUrlTree=a.rawUrl,a.resolve(null),Es}),Xn(a=>{const l=new Y9(a.id,this.serializeUrl(a.extractedUrl),this.serializeUrl(a.urlAfterRedirects),a.targetSnapshot);this.triggerEvent(l)}),ue(a=>r={...a,guards:yz(a.targetSnapshot,a.currentSnapshot,this.rootContexts)}),function Mz(n,t){return Hi(e=>{const{targetSnapshot:i,currentSnapshot:r,guards:{canActivateChecks:o,canDeactivateChecks:s}}=e;return 0===s.length&&0===o.length?Fe({...e,guardsResult:!0}):function kz(n,t,e,i){return vt(n).pipe(Hi(r=>function Nz(n,t,e,i,r){const o=t&&t.routeConfig?t.routeConfig.canDeactivate:null;return o&&0!==o.length?Fe(o.map(a=>{const l=om(a,t,r);return Ls(function Tz(n){return n&&Vd(n.canDeactivate)}(l)?l.canDeactivate(n,t,e,i):l(n,t,e,i)).pipe(_a())})).pipe(Bc()):Fe(!0)}(r.component,r.route,e,t,i)),_a(r=>!0!==r,!0))}(s,i,r,n).pipe(Hi(a=>a&&function Ez(n){return"boolean"==typeof n}(a)?function Rz(n,t,e,i){return vt(t).pipe(zo(r=>yc(function Pz(n,t){return null!==n&&t&&t(new tz(n)),Fe(!0)}(r.route.parent,i),function Oz(n,t){return null!==n&&t&&t(new iz(n)),Fe(!0)}(r.route,i),function Fz(n,t,e){const i=t[t.length-1],o=t.slice(0,t.length-1).reverse().map(s=>function bz(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(()=>Fe(s.guards.map(l=>{const c=om(l,s.node,e);return Ls(function Az(n){return n&&Vd(n.canActivateChild)}(c)?c.canActivateChild(i,n):c(i,n)).pipe(_a())})).pipe(Bc())));return Fe(o).pipe(Bc())}(n,r.path,e),function Lz(n,t,e){const i=t.routeConfig?t.routeConfig.canActivate:null;if(!i||0===i.length)return Fe(!0);const r=i.map(o=>la(()=>{const s=om(o,t,e);return Ls(function Sz(n){return n&&Vd(n.canActivate)}(s)?s.canActivate(t,n):s(t,n)).pipe(_a())}));return Fe(r).pipe(Bc())}(n,r.route,e))),_a(r=>!0!==r,!0))}(i,o,n,t):Fe(a)),ue(a=>({...e,guardsResult:a})))})}(this.ngModule.injector,a=>this.triggerEvent(a)),Xn(a=>{if(r.guardsResult=a.guardsResult,ll(a.guardsResult))throw AI(0,a.guardsResult);const l=new Q9(a.id,this.serializeUrl(a.extractedUrl),this.serializeUrl(a.urlAfterRedirects),a.targetSnapshot,!!a.guardsResult);this.triggerEvent(l)}),An(a=>!!a.guardsResult||(this.restoreHistory(a),this.cancelNavigationTransition(a,"",3),!1)),iC(a=>{if(a.guards.canActivateChecks.length)return Fe(a).pipe(Xn(l=>{const c=new X9(l.id,this.serializeUrl(l.extractedUrl),this.serializeUrl(l.urlAfterRedirects),l.targetSnapshot);this.triggerEvent(c)}),Qn(l=>{let c=!1;return Fe(l).pipe(function o7(n,t){return Hi(e=>{const{targetSnapshot:i,guards:{canActivateChecks:r}}=e;if(!r.length)return Fe(e);let o=0;return vt(r).pipe(zo(s=>function s7(n,t,e,i){const r=n.routeConfig,o=n._resolve;return void 0!==r?.title&&!KI(r)&&(o[nC]=r.title),function a7(n,t,e,i){const r=function l7(n){return[...Object.keys(n),...Object.getOwnPropertySymbols(n)]}(n);if(0===r.length)return Fe({});const o={};return vt(r).pipe(Hi(s=>function c7(n,t,e,i){const r=om(n,t,i);return Ls(r.resolve?r.resolve(t,e):r(t,e))}(n[s],t,e,i).pipe(_a(),Xn(a=>{o[s]=a}))),jb(1),function m9(n){return t=>t.lift(new g9(n))}(o),Ps(s=>s instanceof Rc?Es:Qa(s)))}(o,n,t,i).pipe(ue(s=>(n._resolvedData=s,n.data=EI(n,e).resolve,r&&KI(r)&&(n.data[nC]=r.title),null)))}(s.route,i,n,t)),Xn(()=>o++),jb(1),Hi(s=>o===r.length?Fe(e):Es))})}(this.paramsInheritanceStrategy,this.ngModule.injector),Xn({next:()=>c=!0,complete:()=>{c||(this.restoreHistory(l),this.cancelNavigationTransition(l,"",2))}}))}),Xn(l=>{const c=new Z9(l.id,this.serializeUrl(l.extractedUrl),this.serializeUrl(l.urlAfterRedirects),l.targetSnapshot);this.triggerEvent(c)}))}),iC(a=>{const l=c=>{const u=[];c.routeConfig?.loadComponent&&!c.routeConfig._loadedComponent&&u.push(this.configLoader.loadComponent(c.routeConfig).pipe(Xn(d=>{c.component=d}),ue(()=>{})));for(const d of c.children)u.push(...l(d));return u};return lb(l(a.targetSnapshot.root)).pipe($f(),an(1))}),iC(()=>this.afterPreactivation()),ue(a=>{const l=function lz(n,t,e){const i=Nd(n,t._root,e?e._root:void 0);return new CI(i,t)}(this.routeReuseStrategy,a.targetSnapshot,a.currentRouterState);return r={...a,targetRouterState:l}}),Xn(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)=>ue(i=>(new vz(t,i.targetRouterState,i.currentRouterState,e).activate(n),i)))(this.rootContexts,this.routeReuseStrategy,a=>this.triggerEvent(a)),Xn({next(){o=!0},complete(){o=!0}}),Kf(()=>{o||s||this.cancelNavigationTransition(r,"",1),this.currentNavigation?.id===r.id&&(this.currentNavigation=null)}),Ps(a=>{if(s=!0,II(a)){xI(a)||(this.navigated=!0,this.restoreHistory(r,!0));const l=new tm(r.id,this.serializeUrl(r.extractedUrl),a.message,a.cancellationCode);if(i.next(l),xI(a)){const c=this.urlHandlingStrategy.merge(a.url,this.rawUrlTree),u={skipLocationChange:r.extras.skipLocationChange,replaceUrl:"eager"===this.urlUpdateStrategy||XI(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 yI(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 Es}))}))}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(Jb),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)),U9(c,this.currentUrlTree,e,d,u??null)}navigateByUrl(e,i={skipLocationChange:!1}){const r=ll(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 y7(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 Fd(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 tm(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){Kl()},n.\u0275prov=me({token:n,factory:n.\u0275fac}),n})();function XI(n){return"imperative"!==n}const lC=new ge("MSAL_INSTANCE"),oM=new ge("MSAL_GUARD_CONFIG"),k7=new ge("MSAL_INTERCEPTOR_CONFIG"),R7=new ge("MSAL_BROADCAST_CONFIG"),sM="@azure/msal-angular",cC="2.4.1";let cl=(()=>{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(qf.Angular,cC)}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(sM,cC)),this.logger}setLogger(e){this.logger=e.clone(sM,cC),this.instance.setLogger(e)}}return n.\u0275fac=function(e){return new(e||n)(T(lC),T(Ga))},n.\u0275prov=me({token:n,factory:n.\u0275fac}),n})(),aM=(()=>{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 E2(this.msalBroadcastConfig.eventsToReplay)):this._msalSubject=new L,this.msalSubject$=this._msalSubject.asObservable(),this._inProgress=new cr(vi.Startup),this.inProgress$=this._inProgress.asObservable(),this.msalInstance.addEventCallback(o=>{this._msalSubject.next(o);const s=Jq.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)(T(lC),T(cl),T(R7,8))},n.\u0275prov=me({token:n,factory:n.\u0275fac}),n})(),O7=(()=>{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(ue(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(ue(()=>!1))}activateHelper(e){if(this.msalGuardConfig.interactionType!==$e.Popup&&this.msalGuardConfig.interactionType!==$e.Redirect)throw new Wf("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"),Fe(!0);if(rn.hashContainsKnownProperties(window.location.hash)&&Nn.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."),Fe(!1);this.msalGuardConfig.loginFailedRoute&&(this.loginFailedRoute=this.parseUrl(this.msalGuardConfig.loginFailedRoute));const i=this.location.path(!0);return this.authService.handleRedirectObservable().pipe(zo(()=>{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"),Fe(!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?Fe(this.parseUrl(this.location.path())):Fe(this.parseUrl(""))}return Fe(!0)}),Ps(r=>(this.authService.getLogger().error("Guard - error while logging in, unable to activate"),this.authService.getLogger().errorPii(`Guard - error: ${r.message}`),this.loginFailedRoute&&parseInt(rE.major,10)>9&&e?(this.authService.getLogger().verbose("Guard - loginFailedRoute set, redirecting"),Fe(this.loginFailedRoute)):Fe(!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)(T(oM),T(aM),T(cl),T(Ga),T(gr))},n.\u0275prov=me({token:n,factory:n.\u0275fac}),n})(),lM=(()=>{class n{static forRoot(e,i,r){return{ngModule:n,providers:[{provide:lC,useValue:e},{provide:oM,useValue:i},{provide:k7,useValue:r},cl]}}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=dt({type:n}),n.\u0275inj=ct({providers:[O7,aM],imports:[Xi]}),n})(),jc=(()=>{class n{constructor(e,i,r){this.msalService=e,this.messageService=i,this.globals=r}setLoginDisplay(){console.log(this.msalService.instance.getAllAccounts().length>0)}isDesktopClient(){return Office.context.platform!==Office.PlatformType.OfficeOnline}signIn(e){return Ee(function*(){})()}clientSignIn(){var e=this;return Ee(function*(){console.log("Client Login"),e.signIn()})()}signOut(){var e=this;return Ee(function*(){yield e.msalService.logout().toPromise(),e.user=void 0,e.authenticated=!1})()}signOutPopup(){var e=this;return Ee(function*(){yield e.msalService.logoutPopup().toPromise(),e.user=void 0,e.authenticated=!1})()}getAccessToken(){return Ee(function*(){return""})()}getUser(){var e=this;return Ee(function*(){if(!e.authenticated)return;const r=yield Bf.init({authProvider:(s=Ee(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 Yq;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)(T(cl),T(en),T(ht))},n.\u0275prov=me({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),Xr=(()=>{class n{constructor(e){this.globalsService=e,this.indexParamStart="index.xsp?",this.urlExtension=this.indexParamStart+"loadTabs=false"}convertToLink(e){return this.globalsService.webInt+this.urlExtension+"&openDocument="+e}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)(T(ht))},n.\u0275prov=me({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const uC="loginBM.xsp";let cM=(()=>{class n{constructor(e,i,r,o,s,a){this.globals=e,this.waitList=i,this.modal=r,this.messageService=o,this.authService=s,this.webintLinkService=a,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.authService.isDesktopClient()?Office.context.ui.displayDialogAsync(window.location.origin+window.location.pathname+"?redirect",{height:25,width:25},i=>{this.dialog=i.value,this.dialog.addEventHandler(Office.EventType.DialogMessageReceived,this.processOutlookMessage.bind(this)),this.dialog.addEventHandler(Office.EventType.DialogEventReceived,this.onDialogClose.bind(this,e))}):(this.createListenerLogin(e),this.loginWindow=this.popupWindow(this.globals.webInt+uC,"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 Ee(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=Ee(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=Ee(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 Ee(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=Ee(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 Ee(function*(){return i.activateSpinner(),yield fetch(e+uC,{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}logoutGraph(){var e=this;return Ee(function*(){yield e.authService.signOutPopup()})()}logout(e){var i=this;return Ee(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=Ee(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 Ee(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:""}openGraphLogin(){return Ee(function*(){return null})()}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=Ee(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 Ee(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(Ee(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+uC)}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 Ee(function*(){if(null!=r.pathInfo){let o=new $t;o=o.set("noCache","true"),r.getReqNoCache("keepAlive",null,!1).subscribe({next:(s=Ee(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=Ee(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.webintLinkService.convertToLink(e)}}return n.\u0275fac=function(e){return new(e||n)(T(ht),T(er),T(Rs),T(en),T(jc),T(Xr))},n.\u0275prov=me({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const N7=new ge("JWT_OPTIONS");let B7=(()=>{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)(T(N7))},n.\u0275prov=me({token:n,factory:n.\u0275fac}),n})(),uM=(()=>{class n{constructor(){this.pathObj=null}get path(){return this.pathObj}isPathSet(){return null!=this.pathObj}waitForPath(){var e=this;return Ee(function*(){return e.pathObj=yield e.createPath(),e.pathObj})()}createPath(){return Ee(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"}}})()}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=me({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const H7=["alternativeAddresses"],V7=["pointer","database","mail","imageURL","companyPointer","url","parentUrl","isCompany","gender","base64image"];let dC=(()=>{class n{constructor(e){this.globals=e}convertAddress(e,i,r){var o=this;return Ee(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:H7,hide:V7}),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 Ee(function*(){for(const o of Object.keys(r))for(const s of r[o])e[s].parentUrl=i[o]})()}removeEmptyEntries(e){return Ee(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)(T(ht))},n.\u0275prov=me({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),hC=(()=>{class n extends cM{constructor(e,i,r,o,s,a,l,c,u){super(e,i,r,o,s,u),this.globals=e,this.waitList=i,this.modal=r,this.messageService=o,this.authService=s,this.pathBA=a,this.converter=l,this.modalService=c,this.webintLinkService=u,this.apiOverviewPath="api/",this.jwt=new B7}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 Ee(function*(){u.processPath().subscribe(Ee(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 S=Ee(function*(U){let ee;ee=null==a||a?yield U.json():yield U.text(),r.next(ee),r.complete(),u.globals.hideSpinner()});return function(U){return S.apply(this,arguments)}}()).catch(S=>{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 Ee(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=Ee(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 Ee(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 Ee(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=Ee(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=Ee(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}logoutGraph(){var e=this;return Ee(function*(){yield e.authService.signOutPopup()})()}logout(e){var i=this;return Ee(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 Ee(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 Ee(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:encodeURIComponent(e),password:encodeURIComponent(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=Ee(function*(c){return c.text()});return function(c){return l.apply(this,arguments)}}()).then(function(){var l=Ee(function*(c){if("true"===c)return yield r.performLogin(s);if(c.indexOf("The Application is just starting")>0){let u=c.substr(c.indexOf("The Application is just starting")+33,5);return r.messageService.showWarning(r.globals.languageConfLocal.baInstanceStarting+u),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 Ee(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()}openGraphLogin(){return Ee(function*(){return null})()}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 Ee(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(Ee(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=Ee(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 Ee(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 Ee(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 Ee(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=Ee(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 Ee(function*(){let i=localStorage.getItem("token");return(null===i||"undefined"===i)&&(i=void 0),e.jwt.isTokenExpired})()}openLoginModal(){var e=this;return Ee(function*(){e.globals.hideForLogin=!0,e.modalService.changeType({newType:"login"}),e.globals.hideSpinner()})()}loginListener(e){var i=this;return Ee(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 Ee(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())}})()}}return n.\u0275fac=function(e){return new(e||n)(T(ht),T(er),T(Rs),T(en),T(jc),T(uM),T(dC),T(hl),T(Xr))},n.\u0275prov=me({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),Bn=(()=>{class n{constructor(e,i,r,o,s,a,l,c,u){this.globals=e,this.waitList=i,this.modal=r,this.messageService=o,this.authService=s,this.pathBA=a,this.converter=l,this.modalService=c,this.webintLinkService=u,this.curConnectionSystem||this.setSystem(this.globals.system)}setSystem(e){var i=this;return Ee(function*(){switch(e){case"gi":i.globals.system="gi",i.curConnectionSystem=new cM(i.globals,i.waitList,i.modal,i.messageService,i.authService,i.webintLinkService);break;case"ba":i.globals.system="ba",i.curConnectionSystem=new hC(i.globals,i.waitList,i.modal,i.messageService,i.authService,i.pathBA,i.converter,i.modalService,i.webintLinkService)}})()}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 Ee(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 Ee(function*(){return i.curConnectionSystem.checkWebInt(e)})()}resetListener(){this.curConnectionSystem.resetListener()}logoutGraph(){var e=this;return Ee(function*(){return e.curConnectionSystem.logoutGraph()})()}logout(e){var i=this;return Ee(function*(){return i.curConnectionSystem.logout(e)})()}logoutOldSystem(e){return Ee(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 Ee(function*(){return r.curConnectionSystem.login(e,i)})()}get isLoggedIn(){return this.curConnectionSystem.isLoggedIn}set webIntModalOpenRef(e){this.curConnectionSystem.webIntModalOpenRef=e}}return n.\u0275fac=function(e){return new(e||n)(T(ht),T(er),T(Rs),T(en),T(jc),T(uM),T(dC),T(hl),T(Xr))},n.\u0275prov=me({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();class G7{constructor(){this.primary=[],this.secondary=[]}}class pC{}let fC=(()=>{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)(T(er))},n.\u0275prov=me({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();class W7{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 hM=[new class $7{constructor(){this.model={name:"deleteAttachments",value:"",classAssignment:{"":"bmAttachInclude",1:"bmAttachExclude"},titleLC:{"":"LC73172",1:"LC73173"}}}},new class K7{constructor(){this.model={name:"openMail",value:"",classAssignment:{"":"bmDocOFF",1:"bmDocON"},titleLC:{"":"LC73169",1:"LC73168"}}}},new class Y7{constructor(){this.model={name:"createAddress",value:"",classAssignment:{"":"bmPlus",1:"bmMinus"},titleLC:{"":"LC73197",1:"LC73197"}}}}];let pM=(()=>{class n{constructor(e){this.globals=e,this.configData=hM,this.subscribers=[],this.createInstance=new W7,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)(T(ht))},n.\u0275prov=me({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),Bs=(()=>{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 G7;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 pC;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)(T(Bn),T(er),T(ht),T(fC),T(pM))},n.\u0275prov=me({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();function mC(n){return n&&"function"==typeof n.connect&&!(n instanceof bh)}class fM{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 ul{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 L,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 gM=(()=>{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=me({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const qd=new ge("_ViewRepeater");let gC=(()=>{class n{constructor(){this._vertical=!1,this._inset=!1}get vertical(){return this._vertical}set vertical(e){this._vertical=at(e)}get inset(){return this._inset}set inset(e){this._inset=at(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})(),Q7=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=dt({type:n}),n.\u0275inj=ct({imports:[Lt,Lt]}),n})();const X7=["*"],J7=["text"];function eG(n,t){if(1&n&&Ae(0,"mat-pseudo-checkbox",5),2&n){const e=w();v("state",e.selected?"checked":"unchecked")("disabled",e.disabled)}}const tG=["*",[["","mat-list-avatar",""],["","mat-list-icon",""],["","matListAvatar",""],["","matListIcon",""]]],nG=["*","[mat-list-avatar], [mat-list-icon], [matListAvatar], [matListIcon]"];let iG=(()=>{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})(),rG=(()=>{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 oG=Wo(class{}),sG=Wo(class{}),aG={provide:ar,useExisting:tn(()=>Zo),multi:!0};class lG{constructor(t,e){this.source=t,this.options=e}}let js=(()=>{class n extends sG{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=at(e);i!==this._disabled&&(this._disabled=i,this._changeDetector.markForCheck())}get selected(){return this.selectionList.selectedOptions.isSelected(this)}set selected(e){const i=at(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 R6(n,t,e="mat"){n.changes.pipe(ri(n)).subscribe(({length:i})=>{gd(t,`${e}-2-line`,!1),gd(t,`${e}-3-line`,!1),gd(t,`${e}-multi-line`,!1),2===i||3===i?gd(t,`${e}-${i}-line`,!0):i>3&&gd(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(Xe),p(It),p(tn(()=>Zo)))},n.\u0275cmp=Ue({type:n,selectors:[["mat-list-option"]],contentQueries:function(e,i,r){if(1&e&&(Ht(r,iG,5),Ht(r,rG,5),Ht(r,k6,5)),2&e){let o;de(o=he())&&(i._avatar=o.first),de(o=he())&&(i._icon=o.first),de(o=he())&&(i._lines=o)}},viewQuery:function(e,i){if(1&e&&Te(J7,5),2&e){let r;de(r=he())&&(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&&$("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:[De],ngContentSelectors:nG,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(tG),g(0,"div",0),Ae(1,"div",1),H(2,eG,1,2,"mat-pseudo-checkbox",2),g(3,"div",3,4),jt(5),_(),jt(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:[Ir,D1,hn],encapsulation:2,changeDetection:0}),n})(),Zo=(()=>{class n extends oG{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 ul(this._multiple),this._tabIndex=-1,this._onChange=o=>{},this._destroyed=new L,this._onTouched=()=>{}}get disabled(){return this._disabled}set disabled(e){this._disabled=at(e),this._markOptionsForCheck()}get multiple(){return this._multiple}set multiple(e){const i=at(e);i!==this._multiple&&(this._multiple=i,this.selectedOptions=new ul(this._multiple,this.selectedOptions.selected))}ngAfterContentInit(){this._contentInitialized=!0,this._keyManager=new yf(this.options).withWrap().withTypeAhead().withHomeAndEnd().skipPredicate(()=>!1).withAllowedModifierKeys(["shiftKey"]),this._value&&this._setOptionsFromValues(this._value),this._keyManager.tabOut.pipe(Xt(this._destroyed)).subscribe(()=>{this._allowFocusEscape()}),this.options.changes.pipe(ri(null),Xt(this._destroyed)).subscribe(()=>{this._updateTabIndex()}),this.selectedOptions.changed.pipe(Xt(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(Xt(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=Di(e);switch(i){case 32:case 13:!s&&!r.isTyping()&&(this._toggleFocusedOption(),e.preventDefault());break;default:if(65===i&&this.multiple&&Di(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 lG(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(Xe),p(It),p(So))},n.\u0275cmp=Ue({type:n,selectors:[["mat-selection-list"]],contentQueries:function(e,i,r){if(1&e&&Ht(r,js,5),2&e){let o;de(o=he())&&(i.options=o)}},hostAttrs:["role","listbox",1,"mat-selection-list","mat-list-base"],hostVars:3,hostBindings:function(e,i){1&e&&$("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:[ot([aG]),De,kn],ngContentSelectors:X7,decls:1,vars:0,template:function(e,i){1&e&&(Pn(),jt(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})(),cG=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=dt({type:n}),n.\u0275inj=ct({imports:[v1,ha,Lt,Sb,Xi,v1,Lt,Sb,Q7]}),n})();const uG=["chOffice"],dG=["dbs"];function hG(n,t){1&n&&(g(0,"p"),j(1),Ze(2,"translate"),_()),2&n&&(f(1),we(Je(2,1,"LC53515")))}function pG(n,t){if(1&n){const e=ke();g(0,"mat-list-option",7),$("dblclick",function(){return X(e),Z(w(2).confirmAction())}),j(1),_()}if(2&n){const e=t.$implicit,i=w(2);Dt("value",e.db),v("selected",1===i.officeDBs.length?e.db:null),f(1),qe(" ",e.alias," ")}}const fG=function(n){return{title:n}},mG=function(n,t,e,i){return{confirm:n,cancel:t,confirmAction:e,cancelAction:i}};function gG(n,t){if(1&n&&(Wt(0,1),Ze(1,"translate"),g(2,"div",2)(3,"mat-selection-list",3,4),H(5,hG,3,3,"p",5),H(6,pG,2,3,"mat-list-option",6),_()(),Wt(7,1),Ze(8,"translate"),Ze(9,"translate")),2&n){const e=w();v("ngTemplateOutlet",e.modalHeader)("ngTemplateOutletContext",$n(13,fG,Je(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",Ki(15,mG,Je(8,9,"LC73135"),Je(9,11,"LC73136"),e.confirmAction.bind(e,e.selection),e.cancelAction.bind(e)))}}let _G=(()=>{class n extends Gr{constructor(e,i,r,o,s,a){super(e),this.translate=e,this.connection=i,this.addressService=r,this.messageService=o,this.webintLink=s,this.globals=a,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.webintLink.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 Ee(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}}return n.\u0275fac=function(e){return new(e||n)(p(Kt),p(Bn),p(Bs),p(en),p(Xr),p(ht))},n.\u0275cmp=Ue({type:n,selectors:[["app-choose-office"]],viewQuery:function(e,i){if(1&e&&(Te(uG,7),Te(dG,5)),2&e){let r;de(r=he())&&(i.modalTemp=r.first),de(r=he())&&(i.selection=r.first)}},features:[De],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,gG,10,20,"ng-template",null,0,Dn)},dependencies:[Yn,hn,Qi,Zo,js,Pi]}),n})(),zd=(()=>{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)(T($a))},n.\u0275prov=me({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),_C=(()=>{class n extends Gr{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 ul(!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(Kt),p(ht),p(Bn),p(en),p(zd),p(Bs))},n.\u0275dir=fe({type:n,inputs:{data:"data"},outputs:{messageEvent:"messageEvent"},features:[De]}),n})();const vG=["connectionContainer"],yG=["inputContainer"],bG=["label"];function CG(n,t){1&n&&(fi(0),g(1,"div",14),Ae(2,"div",15)(3,"div",16)(4,"div",17),_(),g(5,"div",18),Ae(6,"div",15)(7,"div",16)(8,"div",17),_(),mi())}function wG(n,t){if(1&n){const e=ke();g(0,"div",19),$("cdkObserveContent",function(){return X(e),Z(w().updateOutlineGap())}),jt(1,1),_()}2&n&&v("cdkObserveContentDisabled","outline"!=w().appearance)}function EG(n,t){if(1&n&&(fi(0),jt(1,2),g(2,"span"),j(3),_(),mi()),2&n){const e=w(2);f(3),we(e._control.placeholder)}}function DG(n,t){1&n&&jt(0,3,["*ngSwitchCase","true"])}function SG(n,t){1&n&&(g(0,"span",23),j(1," *"),_())}function AG(n,t){if(1&n){const e=ke();g(0,"label",20,21),$("cdkObserveContent",function(){return X(e),Z(w().updateOutlineGap())}),H(2,EG,4,1,"ng-container",12),H(3,DG,1,0,"ng-content",12),H(4,SG,2,0,"span",22),_()}if(2&n){const e=w();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 TG(n,t){1&n&&(g(0,"div",24),jt(1,4),_())}function xG(n,t){if(1&n&&(g(0,"div",25),Ae(1,"span",26),_()),2&n){const e=w();f(1),bt("mat-accent","accent"==e.color)("mat-warn","warn"==e.color)}}function IG(n,t){1&n&&(g(0,"div"),jt(1,5),_()),2&n&&v("@transitionMessages",w()._subscriptAnimationState)}function MG(n,t){if(1&n&&(g(0,"div",30),j(1),_()),2&n){const e=w(2);v("id",e._hintLabelId),f(1),we(e.hintLabel)}}function kG(n,t){if(1&n&&(g(0,"div",27),H(1,MG,2,2,"div",28),jt(2,6),Ae(3,"div",29),jt(4,7),_()),2&n){const e=w();v("@transitionMessages",e._subscriptAnimationState),f(1),v("ngIf",e.hintLabel)}}const RG=["*",[["","matPrefix",""]],[["mat-placeholder"]],[["mat-label"]],[["","matSuffix",""]],[["mat-error"]],[["mat-hint",3,"align","end"]],[["mat-hint","align","end"]]],OG=["*","[matPrefix]","mat-placeholder","mat-label","[matSuffix]","mat-error","mat-hint:not([align='end'])","mat-hint[align='end']"],PG=new ge("MatError"),LG={transitionMessages:$r("transitionMessages",[zn("enter",Ft({opacity:1,transform:"translateY(0%)"})),ui("void => enter",[Ft({opacity:0,transform:"translateY(-5px)"}),_i("300ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])};let Gd=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=fe({type:n}),n})();const FG=new ge("MatHint");let nr=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=fe({type:n,selectors:[["mat-label"]]}),n})(),NG=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=fe({type:n,selectors:[["mat-placeholder"]]}),n})();const BG=new ge("MatPrefix"),_M=new ge("MatSuffix");let vC=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=fe({type:n,selectors:[["","matSuffix",""]],features:[ot([{provide:_M,useExisting:n}])]}),n})(),vM=0;const HG=da(class{constructor(n){this._elementRef=n}},"primary"),VG=new ge("MAT_FORM_FIELD_DEFAULT_OPTIONS"),pm=new ge("MatFormField");let Zr=(()=>{class n extends HG{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 L,this._hideRequiredMarker=!1,this._showAlwaysAnimate=!1,this._subscriptAnimationState="",this._hintLabel="",this._hintLabelId="mat-hint-"+vM++,this._labelId="mat-form-field-label-"+vM++,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=at(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(ri(null)).subscribe(()=>{this._validatePlaceholders(),this._syncDescribedByIds(),this._changeDetectorRef.markForCheck()}),e.ngControl&&e.ngControl.valueChanges&&e.ngControl.valueChanges.pipe(Xt(this._destroyed)).subscribe(()=>this._changeDetectorRef.markForCheck()),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.pipe(Xt(this._destroyed)).subscribe(()=>{this._outlineGapCalculationNeededOnStable&&this.updateOutlineGap()})}),Mn(this._prefixChildren.changes,this._suffixChildren.changes).subscribe(()=>{this._outlineGapCalculationNeededOnStable=!0,this._changeDetectorRef.markForCheck()}),this._hintChildren.changes.pipe(ri(null)).subscribe(()=>{this._processHints(),this._changeDetectorRef.markForCheck()}),this._errorChildren.changes.pipe(ri(null)).subscribe(()=>{this._syncDescribedByIds(),this._changeDetectorRef.markForCheck()}),this._dir&&this._dir.change.pipe(Xt(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,Ts(this._label.nativeElement,"transitionend").pipe(an(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=dt({type:n}),n.\u0275inj=ct({imports:[Xi,Lt,ud,Lt]}),n})();const UG=["trigger"],qG=["panel"];function zG(n,t){if(1&n&&(g(0,"span",8),j(1),_()),2&n){const e=w();f(1),we(e.placeholder)}}function GG(n,t){if(1&n&&(g(0,"span",12),j(1),_()),2&n){const e=w(2);f(1),we(e.triggerValue)}}function WG(n,t){1&n&&jt(0,0,["*ngSwitchCase","true"])}function $G(n,t){1&n&&(g(0,"span",9),H(1,GG,2,1,"span",10),H(2,WG,1,0,"ng-content",11),_()),2&n&&(v("ngSwitch",!!w().customTrigger),f(2),v("ngSwitchCase",!0))}function KG(n,t){if(1&n){const e=ke();g(0,"div",13)(1,"div",14,15),$("@transformPanel.done",function(r){return X(e),Z(w()._panelDoneAnimatingStream.next(r.toState))})("keydown",function(r){return X(e),Z(w()._handleKeydown(r))}),jt(3,1),_()()}if(2&n){const e=w();v("@transformPanelWrap",void 0),f(1),function mS(n,t,e){_o(Sr,jo,Zl(xe(),n,t,e),!0)}("mat-select-panel ",e._getPanelTheme(),""),Oi("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 YG=[[["mat-select-trigger"]],"*"],QG=["mat-select-trigger","*"],bM={transformPanelWrap:$r("transformPanelWrap",[ui("* => void",xb("@transformPanel",[Tb()],{optional:!0}))]),transformPanel:$r("transformPanel",[zn("void",Ft({transform:"scaleY(0.8)",minWidth:"100%",opacity:0})),zn("showing",Ft({opacity:1,minWidth:"calc(100% + 32px)",transform:"scaleY(1)"})),zn("showing-multiple",Ft({opacity:1,minWidth:"calc(100% + 64px)",transform:"scaleY(1)"})),ui("void => *",_i("120ms cubic-bezier(0, 0, 0.2, 1)")),ui("* => void",_i("100ms 25ms linear",Ft({opacity:0})))])};let CM=0;const EM=new ge("mat-select-scroll-strategy"),eW=new ge("MAT_SELECT_CONFIG"),tW={provide:EM,deps:[ur],useFactory:function JG(n){return()=>n.scrollStrategies.reposition()}};class nW{constructor(t,e){this.source=t,this.value=e}}const iW=Wo(fd(Ms(Eb(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 L}})))),DM=new ge("MatSelectTrigger");let rW=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=fe({type:n,selectors:[["mat-select-trigger"]],features:[ot([{provide:DM,useExisting:n}])]}),n})(),oW=(()=>{class n extends iW{constructor(e,i,r,o,s,a,l,c,u,d,h,m,y,S){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=S,this._panelOpen=!1,this._compareWith=(U,ee)=>U===ee,this._uid="mat-select-"+CM++,this._triggerAriaLabelledBy=null,this._destroy=new L,this._onChange=()=>{},this._onTouched=()=>{},this._valueId="mat-select-value-"+CM++,this._panelDoneAnimatingStream=new L,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(ri(U),Qn(()=>Mn(...U.map(ee=>ee.onSelectionChange)))):this._ngZone.onStable.pipe(an(1),Qn(()=>this.optionSelectionChanges))}),this.openedChange=new He,this._openedStream=this.openedChange.pipe(An(U=>U),ue(()=>{})),this._closedStream=this.openedChange.pipe(An(U=>!U),ue(()=>{})),this.selectionChange=new He,this.valueChange=new He,this.ngControl&&(this.ngControl.valueAccessor=this),null!=S?.typeaheadDebounceInterval&&(this._typeaheadDebounceInterval=S.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(Cy.required)??!1}set required(e){this._required=at(e),this.stateChanges.next()}get multiple(){return this._multiple}set multiple(e){this._multiple=at(e)}get disableOptionCentering(){return this._disableOptionCentering}set disableOptionCentering(e){this._disableOptionCentering=at(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=As(e)}get id(){return this._id}set id(e){this._id=e||this._uid,this.stateChanges.next()}ngOnInit(){this._selectionModel=new ul(this.multiple),this.stateChanges.next(),this._panelDoneAnimatingStream.pipe(ff(),Xt(this._destroy)).subscribe(()=>this._panelDoneAnimating(this.panelOpen))}ngAfterContentInit(){this._initKeyManager(),this._selectionModel.changed.pipe(Xt(this._destroy)).subscribe(e=>{e.added.forEach(i=>i.select()),e.removed.forEach(i=>i.deselect())}),this.options.changes.pipe(ri(null),Xt(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&&!Di(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||Di(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(an(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 V2(this.options).withTypeAhead(this._typeaheadDebounceInterval).withVerticalOrientation().withHorizontalOrientation(this._isRtl()?"rtl":"ltr").withHomeAndEnd().withAllowedModifierKeys(["shiftKey"]),this._keyManager.tabOut.pipe(Xt(this._destroy)).subscribe(()=>{this.panelOpen&&(!this.multiple&&this._keyManager.activeItem&&this._keyManager.activeItem._selectViaInteraction(),this.focus(),this.close())}),this._keyManager.change.pipe(Xt(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=Mn(this.options.changes,this._destroy);this.optionSelectionChanges.pipe(Xt(e)).subscribe(i=>{this._onSelect(i.source,i.isUserInput),i.isUserInput&&!this.multiple&&this._panelOpen&&(this.close(),this.focus())}),Mn(...this.options.map(i=>i._stateChanges)).pipe(Xt(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(Go),p(It),p(et),p(md),p(Xe),p(tr,8),p(gc,8),p(_c,8),p(pm,8),p(wo,10),Hr("tabindex"),p(EM),p(pb),p(eW,8))},n.\u0275dir=fe({type:n,viewQuery:function(e,i){if(1&e&&(Te(UG,5),Te(qG,5),Te(h1,5)),2&e){let r;de(r=he())&&(i.trigger=r.first),de(r=he())&&(i.panel=r.first),de(r=he())&&(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:[De,kn]}),n})(),Hs=(()=>{class n extends oW{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(Xt(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(an(1)).subscribe(()=>{this._triggerFontSize&&this._overlayDir.overlayRef&&this._overlayDir.overlayRef.overlayElement&&(this._overlayDir.overlayRef.overlayElement.style.fontSize=`${this._triggerFontSize}px`)}))}_scrollOptionIntoView(e){const i=Ab(e,this.options,this.optionGroups),r=this._getItemHeight();this.panel.nativeElement.scrollTop=0===e&&1===i?0:A1((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 nW(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+=Ab(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&&(Ht(r,DM,5),Ht(r,Mr,5),Ht(r,If,5)),2&e){let o;de(o=he())&&(i.customTrigger=o.first),de(o=he())&&(i.options=o),de(o=he())&&(i.optionGroups=o)}},hostAttrs:["role","combobox","aria-autocomplete","none","aria-haspopup","true",1,"mat-select"],hostVars:19,hostBindings:function(e,i){1&e&&$("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:[ot([{provide:Gd,useExisting:n},{provide:xf,useExisting:n}]),De],ngContentSelectors:QG,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(YG),g(0,"div",0,1),$("click",function(){return i.toggle()}),g(3,"div",2),H(4,zG,2,1,"span",3),H(5,$G,3,2,"span",4),_(),g(6,"div",5),Ae(7,"div",6),_()(),H(8,KG,4,14,"ng-template",7),$("backdropClick",function(){return i.close()})("attach",function(){return i._onAttached()})("detach",function(){return i.close()})),2&e){const r=Jt(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:[Wa,fc,Np,OT,h1,d1],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:[bM.transformPanelWrap,bM.transformPanel]},changeDetection:0}),n})(),sW=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=dt({type:n}),n.\u0275inj=ct({providers:[tW],imports:[Xi,xc,Mf,Lt,Ac,fm,Mf,Lt]}),n})();const SM=Ds({passive:!0});let aW=(()=>{class n{constructor(e,i){this._platform=e,this._ngZone=i,this._monitoredElements=new Map}monitor(e){if(!this._platform.isBrowser)return Es;const i=Zn(e),r=this._monitoredElements.get(i);if(r)return r.subject;const o=new L,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,SM),i.classList.add("cdk-text-field-autofill-monitored")}),this._monitoredElements.set(i,{subject:o,unlisten:()=>{i.removeEventListener("animationstart",a,SM)}}),o}stopMonitoring(e){const i=Zn(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)(T(Fn),T(et))},n.\u0275prov=me({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),AM=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=dt({type:n}),n.\u0275inj=ct({}),n})();const lW=new ge("MAT_INPUT_VALUE_ACCESSOR"),cW=["button","checkbox","file","hidden","image","radio","range","reset","submit"];let uW=0;const dW=Eb(class{constructor(n,t,e,i){this._defaultErrorStateMatcher=n,this._parentForm=t,this._parentFormGroup=e,this.ngControl=i,this.stateChanges=new L}});let Jr=(()=>{class n extends dW{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-"+uW++,this.focused=!1,this.stateChanges=new L,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=>R2().has(y)),this._iOSKeyupListener=y=>{const S=y.target;!S.value&&0===S.selectionStart&&0===S.selectionEnd&&(S.setSelectionRange(1,1),S.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=at(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(Cy.required)??!1}set required(e){this._required=at(e)}get type(){return this._type}set type(e){this._type=e||"text",this._validateType(),!this._isTextarea&&R2().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=at(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(){cW.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(Xe),p(Fn),p(wo,10),p(gc,8),p(_c,8),p(md),p(lW,10),p(aW),p(et),p(pm,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&&$("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:[ot([{provide:Gd,useExisting:n}]),De,kn]}),n})(),hW=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=dt({type:n}),n.\u0275inj=ct({providers:[md],imports:[AM,fm,Lt,AM,fm]}),n})();const pW=[[["caption"]],[["colgroup"],["col"]]],fW=["caption","colgroup, col"];function yC(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=at(t),this._hasStickyChanged=e!==this._sticky}hasStickyChanged(){const t=this._hasStickyChanged;return this._hasStickyChanged=!1,t}resetStickyChanged(){this._hasStickyChanged=!1}}}const Vc=new ge("CDK_TABLE");let Uc=(()=>{class n{constructor(e){this.template=e}}return n.\u0275fac=function(e){return new(e||n)(p(bn))},n.\u0275dir=fe({type:n,selectors:[["","cdkCellDef",""]]}),n})(),qc=(()=>{class n{constructor(e){this.template=e}}return n.\u0275fac=function(e){return new(e||n)(p(bn))},n.\u0275dir=fe({type:n,selectors:[["","cdkHeaderCellDef",""]]}),n})(),gm=(()=>{class n{constructor(e){this.template=e}}return n.\u0275fac=function(e){return new(e||n)(p(bn))},n.\u0275dir=fe({type:n,selectors:[["","cdkFooterCellDef",""]]}),n})();class vW{}const yW=yC(vW);let Vs=(()=>{class n extends yW{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=at(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(Vc,8))},n.\u0275dir=fe({type:n,selectors:[["","cdkColumnDef",""]],contentQueries:function(e,i,r){if(1&e&&(Ht(r,Uc,5),Ht(r,qc,5),Ht(r,gm,5)),2&e){let o;de(o=he())&&(i.cell=o.first),de(o=he())&&(i.headerCell=o.first),de(o=he())&&(i.footerCell=o.first)}},inputs:{sticky:"sticky",name:["cdkColumnDef","name"],stickyEnd:"stickyEnd"},features:[ot([{provide:"MAT_SORT_HEADER_COLUMN_DEF",useExisting:n}]),De]}),n})();let wC=(()=>{class n extends class bC{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(Vs),p(Xe))},n.\u0275dir=fe({type:n,selectors:[["cdk-cell"],["td","cdk-cell",""]],hostAttrs:[1,"cdk-cell"],features:[De]}),n})();class xM{constructor(){this.tasks=[],this.endTasks=[]}}const EC=new ge("_COALESCED_STYLE_SCHEDULER");let IM=(()=>{class n{constructor(e){this._ngZone=e,this._currentSchedule=null,this._destroyed=new L}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 xM,this._getScheduleObservable().pipe(Xt(this._destroyed)).subscribe(()=>{for(;this._currentSchedule.tasks.length||this._currentSchedule.endTasks.length;){const e=this._currentSchedule;this._currentSchedule=new xM;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(an(1))}}return n.\u0275fac=function(e){return new(e||n)(T(et))},n.\u0275prov=me({token:n,factory:n.\u0275fac}),n})(),DC=(()=>{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 $d?e.headerCell.template:this instanceof Kd?e.footerCell.template:e.cell.template}}return n.\u0275fac=function(e){return new(e||n)(p(bn),p(gs))},n.\u0275dir=fe({type:n,features:[kn]}),n})();class bW extends DC{}const CW=yC(bW);let $d=(()=>{class n extends CW{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(bn),p(gs),p(Vc,8))},n.\u0275dir=fe({type:n,selectors:[["","cdkHeaderRowDef",""]],inputs:{columns:["cdkHeaderRowDef","columns"],sticky:["cdkHeaderRowDefSticky","sticky"]},features:[De,kn]}),n})();class wW extends DC{}const EW=yC(wW);let Kd=(()=>{class n extends EW{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(bn),p(gs),p(Vc,8))},n.\u0275dir=fe({type:n,selectors:[["","cdkFooterRowDef",""]],inputs:{columns:["cdkFooterRowDef","columns"],sticky:["cdkFooterRowDefSticky","sticky"]},features:[De,kn]}),n})(),_m=(()=>{class n extends DC{constructor(e,i,r){super(e,i),this._table=r}}return n.\u0275fac=function(e){return new(e||n)(p(bn),p(gs),p(Vc,8))},n.\u0275dir=fe({type:n,selectors:[["","cdkRowDef",""]],inputs:{columns:["cdkRowDefColumns","columns"],when:["cdkRowDefWhen","when"]},features:[De]}),n})(),Us=(()=>{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(En))},n.\u0275dir=fe({type:n,selectors:[["","cdkCellOutlet",""]]}),n})(),TC=(()=>{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:[Us],encapsulation:2}),n})(),vm=(()=>{class n{constructor(e){this.templateRef=e,this._contentClassName="cdk-no-data-row"}}return n.\u0275fac=function(e){return new(e||n)(p(bn))},n.\u0275dir=fe({type:n,selectors:[["ng-template","cdkNoDataRow",""]]}),n})();const MM=["top","bottom","left","right"];class DW{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 S of t)for(let U=0;Ue[U]?S:null)}),this._positionListener.stickyEndColumnsUpdated({sizes:-1===d?[]:a.slice(d).map((S,U)=>i[U+d]?S: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]);MM.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 MM)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 xC=new ge("CDK_SPL");let ym=(()=>{class n{constructor(e,i){this.viewContainer=e,this.elementRef=i}}return n.\u0275fac=function(e){return new(e||n)(p(En),p(Xe))},n.\u0275dir=fe({type:n,selectors:[["","rowOutlet",""]]}),n})(),bm=(()=>{class n{constructor(e,i){this.viewContainer=e,this.elementRef=i}}return n.\u0275fac=function(e){return new(e||n)(p(En),p(Xe))},n.\u0275dir=fe({type:n,selectors:[["","headerRowOutlet",""]]}),n})(),Cm=(()=>{class n{constructor(e,i){this.viewContainer=e,this.elementRef=i}}return n.\u0275fac=function(e){return new(e||n)(p(En),p(Xe))},n.\u0275dir=fe({type:n,selectors:[["","footerRowOutlet",""]]}),n})(),wm=(()=>{class n{constructor(e,i){this.viewContainer=e,this.elementRef=i}}return n.\u0275fac=function(e){return new(e||n)(p(En),p(Xe))},n.\u0275dir=fe({type:n,selectors:[["","noDataRowOutlet",""]]}),n})(),Em=(()=>{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 L,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 cr({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=at(e),this._rowOutlet&&this._rowOutlet.viewContainer.length&&(this._forceRenderDataRows(),this.updateStickyColumnStyles())}get fixedLayout(){return this._fixedLayout}set fixedLayout(e){this._fixedLayout=at(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(Xt(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(),mC(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(an(1),Xt(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(),Dm(this._getOwnDefs(this._contentColumnDefs),this._customColumnDefs).forEach(i=>{this._columnDefsByName.has(i.name),this._columnDefsByName.set(i.name,i)})}_cacheRowDefs(){this._headerRowDefs=Dm(this._getOwnDefs(this._contentHeaderRowDefs),this._customHeaderRowDefs),this._footerRowDefs=Dm(this._getOwnDefs(this._contentFooterRowDefs),this._customFooterRowDefs),this._rowDefs=Dm(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=[],mC(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;mC(this.dataSource)?e=this.dataSource.connect(this):Cs(this.dataSource)?e=this.dataSource:Array.isArray(this.dataSource)&&(e=Fe(this.dataSource)),this._renderChangeSubscription=e.pipe(Xt(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))Us.mostRecentCellOutlet&&Us.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 DW(this._isNativeHtmlTable,this.stickyCssClass,this._dir?this._dir.value:"ltr",this._coalescedStyleScheduler,this._platform.isBrowser,this.needsPositionStickyOnElement,this._stickyPositioningListener),(this._dir?this._dir.change:Fe()).pipe(Xt(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(gs),p(It),p(Xe),Hr("role"),p(tr,8),p(pt),p(Fn),p(qd),p(EC),p(Go),p(xC,12),p(et,8))},n.\u0275cmp=Ue({type:n,selectors:[["cdk-table"],["table","cdk-table",""]],contentQueries:function(e,i,r){if(1&e&&(Ht(r,vm,5),Ht(r,Vs,5),Ht(r,_m,5),Ht(r,$d,5),Ht(r,Kd,5)),2&e){let o;de(o=he())&&(i._noDataRow=o.first),de(o=he())&&(i._contentColumnDefs=o),de(o=he())&&(i._contentRowDefs=o),de(o=he())&&(i._contentHeaderRowDefs=o),de(o=he())&&(i._contentFooterRowDefs=o)}},viewQuery:function(e,i){if(1&e&&(Te(ym,7),Te(bm,7),Te(Cm,7),Te(wm,7)),2&e){let r;de(r=he())&&(i._rowOutlet=r.first),de(r=he())&&(i._headerRowOutlet=r.first),de(r=he())&&(i._footerRowOutlet=r.first),de(r=he())&&(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:[ot([{provide:Vc,useExisting:n},{provide:qd,useClass:fM},{provide:EC,useClass:IM},{provide:xC,useValue:null}])],ngContentSelectors:fW,decls:6,vars:0,consts:[["headerRowOutlet",""],["rowOutlet",""],["noDataRowOutlet",""],["footerRowOutlet",""]],template:function(e,i){1&e&&(Pn(pW),jt(0),jt(1,1),Wt(2,0)(3,1)(4,2)(5,3))},dependencies:[ym,bm,Cm,wm],styles:[".cdk-table-fixed-layout{table-layout:fixed}"],encapsulation:2}),n})();function Dm(n,t){return n.concat(Array.from(t))}let AW=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=dt({type:n}),n.\u0275inj=ct({imports:[vb]}),n})();const TW=[[["caption"]],[["colgroup"],["col"]]],xW=["caption","colgroup, col"];let Sm=(()=>{class n extends Em{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:[ot([{provide:qd,useClass:fM},{provide:Em,useExisting:n},{provide:Vc,useExisting:n},{provide:EC,useClass:IM},{provide:xC,useValue:null}]),De],ngContentSelectors:xW,decls:6,vars:0,consts:[["headerRowOutlet",""],["rowOutlet",""],["noDataRowOutlet",""],["footerRowOutlet",""]],template:function(e,i){1&e&&(Pn(TW),jt(0),jt(1,1),Wt(2,0)(3,1)(4,2)(5,3))},dependencies:[ym,bm,Cm,wm],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})(),Yd=(()=>{class n extends Uc{}return n.\u0275fac=function(){let t;return function(i){return(t||(t=Pt(n)))(i||n)}}(),n.\u0275dir=fe({type:n,selectors:[["","matCellDef",""]],features:[ot([{provide:Uc,useExisting:n}]),De]}),n})(),Qd=(()=>{class n extends Vs{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:[ot([{provide:Vs,useExisting:n},{provide:"MAT_SORT_HEADER_COLUMN_DEF",useExisting:n}]),De]}),n})(),Xd=(()=>{class n extends wC{}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:[De]}),n})(),Am=(()=>{class n extends _m{}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:[ot([{provide:_m,useExisting:n}]),De]}),n})(),Tm=(()=>{class n extends TC{}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:[ot([{provide:TC,useExisting:n}]),De],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(e,i){1&e&&Wt(0,0)},dependencies:[Us],encapsulation:2}),n})(),HW=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=dt({type:n}),n.\u0275inj=ct({imports:[AW,Lt,Lt]}),n})();const UW=["searchContact"];function qW(n,t){if(1&n){const e=ke();g(0,"button",13),$("click",function(){return X(e),Z(w(2).searchValue="")}),Ae(1,"div",14),_()}if(2&n){const e=w(2);f(1),v("ngStyle",e.searchClearImage)}}function zW(n,t){if(1&n&&(g(0,"mat-option",15),j(1),_()),2&n){const e=t.$implicit;v("value",e.value),f(1),we(e.viewValue)}}const GW=function(n){return{background:n}};function WW(n,t){if(1&n&&Ae(0,"mat-cell",22),2&n){const e=t.$implicit,i=w(3);v("ngStyle",$n(1,GW,"no-repeat url("+i.viewIconBaseURL+e.value.iconURL+")"))}}function $W(n,t){if(1&n&&(g(0,"div"),j(1),_()),2&n){const e=w().$implicit;f(1),qe(" ",e.value.company," ")}}function KW(n,t){if(1&n&&(g(0,"div"),j(1),_()),2&n){const e=w().$implicit;f(1),qe(" ",e.value.postal," ")}}function YW(n,t){if(1&n&&(g(0,"mat-cell",23)(1,"mat-dialog-content")(2,"span",24),j(3),_(),H(4,$W,2,1,"div",25),H(5,KW,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 QW(n,t){if(1&n){const e=ke();g(0,"mat-row",26),$("click",function(){const o=X(e).$implicit;return Z(w(3).toggleSelection(o))})("dblclick",function(){const o=X(e).$implicit;return Z(w(3).acceptEntryDblClick(o))}),_()}if(2&n){const e=t.$implicit,i=w(3);bt("isSelected",i.selection.isSelected(e)),v("matRippleColor",i.rippleColor)("matRippleCentered",i.centered)("matRippleDisabled",i.disabled)("matRippleUnbounded",i.unbounded)}}function XW(n,t){if(1&n&&(g(0,"div")(1,"mat-table",16),fi(2,17),H(3,WW,1,3,"mat-cell",18),mi(),fi(4,19),H(5,YW,6,3,"mat-cell",20),mi(),H(6,QW,1,6,"mat-row",21),_()()),2&n){const e=w(2);wi(e.tableWrapperClassName),f(1),v("dataSource",e.searchResults),f(5),v("matRowDefColumns",e.displayedColumns)}}function ZW(n,t){1&n&&(g(0,"div"),j(1),Ze(2,"translate"),_()),2&n&&(f(1),we(Je(2,1,"LC53482")))}const JW=function(n){return{title:n}},e$=function(n,t,e,i){return{confirm:n,cancel:t,confirmAction:e,cancelAction:i}};function t$(n,t){if(1&n){const e=ke();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),$("ngModelChange",function(r){return X(e),Z(w().searchValue=r)})("keyup.enter",function(){return X(e),Z(w().search())}),_(),H(9,qW,2,1,"button",6),_(),g(10,"input",7),$("click",function(){return X(e),Z(w().search())}),Ze(11,"translate"),_()(),g(12,"mat-form-field",8)(13,"mat-label"),j(14),Ze(15,"translate"),_(),g(16,"mat-select",9),$("valueChange",function(r){return X(e),Z(w().selectedDB=r)})("selectionChange",function(){X(e);const r=w();return Z(r.fetchSearch(r.selectedDB))}),H(17,zW,2,2,"mat-option",10),_()(),H(18,XW,7,5,"div",11),H(19,ZW,3,3,"ng-template",null,12,Dn),_(),Wt(21,1),Ze(22,"translate"),Ze(23,"translate")}if(2&n){const e=Jt(20),i=w();v("ngTemplateOutlet",i.modalHeader)("ngTemplateOutletContext",$n(25,JW,Je(1,13,"LC53493"))),f(6),we(Je(7,15,"LC53489")),f(2),v("ngModel",i.searchValue),f(1),v("ngIf",i.searchValue),f(1),Dt("value",Je(11,17,"LC36251")),f(4),we(Je(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",Ki(27,e$,Je(22,21,"LC73135"),Je(23,23,"LC73136"),i.confirmAction.bind(i),i.cancelAction.bind(i)))}}let PM=(()=>{class n extends _C{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(Kt),p(Bn),p(ht),p(en),p(zd),p(Bs))},n.\u0275cmp=Ue({type:n,selectors:[["app-search-contact"]],viewQuery:function(e,i){if(1&e&&Te(UW,7),2&e){let r;de(r=he())&&(i.modalTemp=r.first)}},inputs:{data:"data"},outputs:{messageEvent:"messageEvent"},features:[De],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,t$,24,32,"ng-template",null,0,Dn)},dependencies:[Yn,hn,Qi,ra,zr,Eo,qo,Rf,Zr,nr,vC,Hs,Mr,Jr,Sm,Qd,Yd,Am,Xd,Tm,Ir,Pi],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 xm=["","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"],n$=["EMailAddress","FirstName#LastName","Company","HomePage","Address1","ZipCode#City","State","CountryToo","MainPhone","Fax","CellPhone","Title","fdContactTitle","Department","","","","","","","","",""];let zc=(()=>{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)(T(fC),T(en),T(ht))},n.\u0275prov=me({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),IC=(()=>{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)(T(Kt),T(Bn),T(ht),T(en),T(zc))},n.\u0275prov=me({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const eo=navigator.language;let i$=(()=>{class n{constructor(e,i,r,o){this.translate=e,this.messageService=i,this.soapService=r,this.webintLink=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 Ee(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 Ee(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 S in u)if(Number(S)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 Ee(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(eo)&&eo.length>0?eo[0]:eo;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.webintLink.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 Ee(function*(){if(!a)return void l.translate.get("LC53496").subscribe(S=>{l.messageService.showError(S)});const c=yield l.createResultObject(e,i,r,s);let u=l.searchResultData;if(u=Object.keys(u),u.length>0){const S=u[0].split("~*~");null!=S&&(c.Company=S[29],c.Address1=S[10],c.Address2=S[30],c.ZipCode=S[12],c.City=S[11],c.State=S[14],c.CountryToo=S[13],(null==c.MainPhone||0===c.MainPhone.localeCompare(""))&&(c.MainPhone=S[15]),(null==c.Fax||0===c.Fax.localeCompare(""))&&(c.Fax=S[17]))}if(null==c.LastName||0===c.LastName.localeCompare(""))return void l.translate.get("LC73202").subscribe(S=>{S=S.replace("{FIELDNAME}",r.get("LastName")),l.messageService.showError(S)});let d="";for(const S in c)d+="~*~"+S+"~#~"+c[S];d="~*~"+d,d+="~*~AddressSynch~#~1";const h={};let m;h.addressData=d,h.contactsPath="$"+o,h.targetCompanyId=a,h.languageCode=Array.isArray(eo)&&eo.length>0?eo[0]:eo;try{m=yield l.soapService.invokeSoap("CreateAddresses",h,!0)}catch(S){return void l.messageService.showError(S.message)}const y=Object.keys(m);1===y.length?window.open(l.webintLink.convertToLink(y[0]),"_blank"):l.translate.get("LC53496").subscribe(S=>{l.messageService.showError(S)}),l.closeAll()})()}handleCreatePrivatePerson(e,i,r,o,s){var a=this;return Ee(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(eo)&&eo.length>0?eo[0]:eo;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.webintLink.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)(T(Kt),T(en),T(IC),T(Xr))},n.\u0275prov=me({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const r$=["create"],o$=["labels"],s$=["areaData"],a$=["previewData"];function l$(n,t){if(1&n){const e=ke();g(0,"mat-list-option",11),$("click",function(){const r=X(e),o=r.$implicit,s=r.index;return Z(w(2).changeLabel(o,s))}),j(1),_()}if(2&n){const e=t.$implicit,i=t.index,r=w(2);Dt("value",r.currentKeyLabels[i]),f(1),qe(" ",r.fieldDisplayNameMap.get(e)," ")}}function c$(n,t){1&n&&Ae(0,"textarea",12,13)}const u$=function(n){return{title:n}},d$=function(n,t,e,i){return{confirm:n,cancel:t,confirmAction:e,cancelAction:i}};function h$(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,l$,2,2,"mat-list-option",7),_()(),Ae(8,"textarea",8,9),H(10,c$,2,0,"textarea",10),_()(),Wt(11,1),Ze(12,"translate"),Ze(13,"translate")),2&n){const e=Jt(9),i=w();v("ngTemplateOutlet",i.modalHeader)("ngTemplateOutletContext",$n(15,u$,Je(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",Ki(17,d$,Je(12,11,"LC73135"),Je(13,13,"LC73136"),i.confirmAction.bind(i,e),i.cancelAction.bind(i)))}}let p$=(()=>{class n extends Gr{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=xm,this.currentKeyLabels=n$}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:xm,selected:e});r&&r.afterClosed().subscribe(o=>{o&&(this.currentKeyLabels[i]=o)})}processScanFooter(){var e=this;return Ee(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 Ee(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(xm.length===e.length){let i=1;for(const r of xm)""!==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(Kt),p(ht),p(en),p(IC),p(i$))},n.\u0275cmp=Ue({type:n,selectors:[["app-create-contact"]],viewQuery:function(e,i){if(1&e&&(Te(r$,7),Te(o$,5),Te(s$,5),Te(a$,5)),2&e){let r;de(r=he())&&(i.modalTemp=r.first),de(r=he())&&(i.selection=r.first),de(r=he())&&(i.areaData=r.first),de(r=he())&&(i.previewData=r.first)}},inputs:{data:"data"},features:[De],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,h$,14,22,"ng-template",null,0,Dn)},dependencies:[Wa,Yn,hn,Qi,Zo,js,Pi],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 f$=["crTicket"],m$=["tiTypes"];function g$(n,t){if(1&n){const e=ke();g(0,"mat-list-option",6),$("dblclick",function(){return X(e),Z(w(2).confirmAction())}),j(1),_()}if(2&n){const e=t.$implicit,i=w(2);Dt("value",e.value),v("selected",e.key===i.recent),f(1),qe(" ",e.key," ")}}const _$=function(n){return{title:n}},v$=function(n,t,e,i){return{confirm:n,cancel:t,confirmAction:e,cancelAction:i}};function y$(n,t){if(1&n&&(Wt(0,1),Ze(1,"translate"),g(2,"div",2)(3,"mat-selection-list",3,4),H(5,g$,2,3,"mat-list-option",5),_()(),Wt(6,1),Ze(7,"translate"),Ze(8,"translate")),2&n){const e=w();v("ngTemplateOutlet",e.modalHeader)("ngTemplateOutletContext",$n(12,_$,Je(1,6,"LC53522"))),f(3),v("multiple",!1),f(2),v("ngForOf",e.ticketTypes),f(1),v("ngTemplateOutlet",e.modalFooter)("ngTemplateOutletContext",Ki(14,v$,Je(7,8,"LC73135"),Je(8,10,"LC73136"),e.confirmAction.bind(e),e.cancelAction.bind(e)))}}let b$=(()=>{class n extends Gr{constructor(e,i,r,o,s,a,l,c){super(e),this.translate=e,this.connection=i,this.messageService=r,this.webintLink=o,this.addressService=s,this.globals=a,this.connectionService=l,this.loader=c,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.webintLink.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(Kt),p(Bn),p(en),p(Xr),p(Bs),p(ht),p(Bn),p(zc))},n.\u0275cmp=Ue({type:n,selectors:[["app-create-ticket"]],viewQuery:function(e,i){if(1&e&&(Te(f$,7),Te(m$,5)),2&e){let r;de(r=he())&&(i.modalTemp=r.first),de(r=he())&&(i.selection=r.first)}},features:[De],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,y$,9,19,"ng-template",null,0,Dn)},dependencies:[Yn,Qi,Zo,js,Pi]}),n})(),MC=(()=>{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)(T(Bs),T(ht))},n.\u0275prov=me({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),C$=(()=>{class n{constructor(e,i,r,o,s,a,l,c){this.translate=e,this.globals=i,this.loader=r,this.connectionService=o,this.messageService=s,this.webInt=a,this.reloadService=l,this.modalService=c,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.webInt.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=Ee(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.webInt.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=Ee(function*(u){a.baNextHandler(u,o)}),function(d){return c.apply(this,arguments)}),error:function(){var c=Ee(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 Ee(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)(T(Kt),T(ht),T(zc),T(Bn),T(en),T(Xr),T(MC),T(hl))},n.\u0275prov=me({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();class Rr{}var Jo=(()=>(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"}(Jo||(Jo={})),Jo))();class w${}var dl=(()=>(function(n){n[n.alreadyDocumented=0]="alreadyDocumented"}(dl||(dl={})),dl))();class Im{}var To=(()=>(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"}(To||(To={})),To))();const E$=["mat-button",""],D$=["*"],A$=["mat-button","mat-flat-button","mat-icon-button","mat-raised-button","mat-stroked-button","mat-mini-fab","mat-fab"],T$=da(Ms(Wo(class{constructor(n){this._elementRef=n}})));let Gc=(()=>{class n extends T${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 A$)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(Xe),p(So),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&&Te(Ir,5),2&e){let r;de(r=he())&&(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:[De],attrs:E$,ngContentSelectors:D$,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),jt(1),_(),Ae(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:[Ir],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})(),FM=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=dt({type:n}),n.\u0275inj=ct({imports:[ha,Lt,Lt]}),n})(),x$=(()=>{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(kf),p(Kt),p(ht))},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"),_(),Ae(3,"mat-dialog-content",1),g(4,"mat-dialog-actions",2)(5,"button",3),$("click",function(){return i.closeDialog(!0)}),j(6),Ze(7,"translate"),_(),g(8,"button",3),$("click",function(){return i.closeDialog(!1)}),j(9),_()()),2&e&&(f(1),we(Je(2,3,"LC73006")),f(5),we(Je(7,5,"LC73057")),f(3),we(i.globals.languageConfLocal.NO))},dependencies:[iq,Rf,rq,Gc,Pi],encapsulation:2}),n})(),Mm=(()=>{class n{constructor(e){this.dialog=e}createDialogWithType(e,i){let r;return i||((i=new Mc).disableClose=!0,i.autoFocus=!0),e===dl.alreadyDocumented&&(r=x$),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)(T(Rs))},n.\u0275prov=me({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();var Wc=G(5742);class km{}let qs=(()=>{class n{constructor(e){this.globals=e}GetAttachments(e,i){return e=this.fixItemId(e),new Wc.y(r=>{let o=void 0===i.getItemIdAsync||void 0===typeof i.getItemIdAsync;o?this.getAllAttachmentsContent(i,i.attachments,o,e,r):i.getAttachmentsAsync(s=>{this.getAllAttachmentsContent(i,s.value,o,e,r)})})}getAllAttachmentsContent2(e,i,r,o,s){let a=[];a=r?i:i.map(u=>u.id.replace("+","_")),Office.context.mailbox.makeEwsRequestAsync('\n \n \n \n \n \n \n \n \n \n ',u=>{(new DOMParser).parseFromString(u.value,"text/xml").querySelectorAll("FileAttachment")})}getAllAttachmentsContent(e,i,r,o,s){this.getAttachmentsContent(e,i,0).subscribe(a=>{r||i.map(u=>u.id.replace("+","_")),Office.context.mailbox.makeEwsRequestAsync('\n \n \n \n \n \n \n \n Default\n\n \n \n \n \n \n \n ',u=>{let m=(new DOMParser).parseFromString(u.value,"text/xml").querySelectorAll("FileAttachment"),y=m.length,S=[],U=[];for(let ee=0;eeWn.id===_t),pn=a.find(Wn=>Wn.attachmentId===_t);if((!Gt||!pn)&&s.error("Documentation not possible"),"gi"===this.globals.system)S.push({data:pn.data,name:Gt?.name,type:Gt?.contentType,cid:Ie,inline:tt});else if(this.globals.deleteAttachments&&!tt){let Wn=ve.querySelector("Name");Wn&&U.push(Wn.innerHTML)}else S.push({name:Gt?.name,mimeType:Gt?.contentType,contentID:Ie,data:pn.data,isInline:tt,inline:tt})}}s.next({attachments:S,deletedAttachments:U})})})}getAttachmentsContent(e,i,r){return new Wc.y(o=>{let s=[];r+1<=i.length?e.getAttachmentContentAsync(i[r].id,a=>{if(a.status!==Office.AsyncResultStatus.Failed){let c=i[r];s.push({name:c.name,mimeType:"file"===c.attachmentType?c.contentType:c.attachmentType,attachmentId:c.id,data:a.value.content,isInline:c.isInline,inline:c.isInline}),this.getAttachmentsContent(e,i,r+1).subscribe(u=>{s=s.concat(u),o.next(s)})}else o.error("Failed to get attachment content.")}):o.next(s)})}GetExtendedData(e,i=!1){if(!e||null==e){let r=Office.context.mailbox.item;r&&("function"==typeof r.saveAsync?r.saveAsync(o=>(this.globals.infoShower.currentItemId=o.value,this.performGetExtendedData(i,this.globals.infoShower.currentItemId))):(this.globals.infoShower.currentItemId=r.itemId,e=r.itemId))}return this.performGetExtendedData(i,e)}performGetExtendedData(e,i){let r='\n \n \n \n \n \n \n \n Default\n \n \n \n \n \n \n \n \n \n ';return new Wc.y(o=>{try{Office.context.mailbox.makeEwsRequestAsync(r,s=>{const c=(new DOMParser).parseFromString(s.value,"text/xml").querySelector("ExtendedProperty>Value")?.innerHTML;if(c)try{o.next(JSON.parse(c))}catch{o.next(new km)}else o.next(new km)})}catch(s){throw s}})}SaveExtendedData(e,i){if(!e||null==e){let r=Office.context.mailbox.item;r&&("function"==typeof r.saveAsync?r.saveAsync(o=>(this.globals.infoShower.currentItemId=o.value,this.performSaveExtendedData(this.globals.infoShower.currentItemId,i))):(this.globals.infoShower.currentItemId=r.itemId,e=r.itemId))}return this.performSaveExtendedData(e,i)}performSaveExtendedData(e,i){if(!this.globals.infoShower.isNew&&!this.globals.infoShower.isUpdate)return new Wc.y(o=>{o.next("NOSAVE")});let r='\n \n \n \n \n \n \n \n Default\n \n \n \n \n \n \n \n \n \n ';return new Wc.y(o=>{Office.context.mailbox.makeEwsRequestAsync(r,s=>{const c=(new DOMParser).parseFromString(s.value,"text/xml").querySelector("ItemId")?.getAttribute("ChangeKey");let u='\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n '+JSON.stringify(i)+"\n \n \n \n \n \n \n \n \n ";Office.context.mailbox.makeEwsRequestAsync(u,d=>{o.next(d)})})})}fixItemId(e){return e}getItemWithExtendedProperties(){Office.context.mailbox.makeEwsRequestAsync('\n \n \n \n \n \n \n \n Default\n \n \n \n \n \n \n \n \n \n ',i=>{(new DOMParser).parseFromString(i.value,"text/xml")})}SetExtendedPropOnCalendar(){Office.context.mailbox.makeEwsRequestAsync('\n \n \n \n \n \n \n \n Default\n \n \n \n \n \n \n \n \n \n ',i=>{const s=(new DOMParser).parseFromString(i.value,"text/xml").querySelector("ItemId")?.getAttribute("ChangeKey");Office.context.mailbox.makeEwsRequestAsync('\n \n \n \n \n \n \n \n \n \n \n\n \n \n \n \n \n DoItPlease\n \n \n \n\n \n \n \n \n \n ',l=>{})})}CreateAppointmentUsingEWS(){}}return n.\u0275fac=function(e){return new(e||n)(T(ht))},n.\u0275prov=me({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),kC=(()=>{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)}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=me({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),$c=(()=>{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)??I$[e].toString()}save(){return new Wc.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(zs.USopenAfterCreate)}get LinkOptionActive(){return"true"===this.get(zs.USlinkOptionActive)}}return n.\u0275fac=function(e){return new(e||n)(T(Ji))},n.\u0275prov=me({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();var zs=(()=>(function(n){n.USopenAfterCreate="USopenAfterCreate",n.USlinkOptionActive="USlinkOptionActive"}(zs||(zs={})),zs))();let I$=(()=>{class n{}return n.USopenAfterCreate=!0,n.USlinkOptionActive=!1,n})();const to=navigator.language;let M$=(()=>{class n{constructor(e,i,r,o,s,a,l,c,u,d,h,m,y,S){this.connection=e,this.modalService=i,this.globals=r,this.globalsService=o,this.connectionService=s,this.webInt=a,this.translate=l,this.messageService=c,this.dialogService=u,this.ews=d,this.htmlHelper=h,this.soapService=m,this.webintLink=y,this.settings=S,this.indexParamStart="index.xsp?",this.urlExtension=this.indexParamStart+"loadTabs=false"}getContacts(){return Ee(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===To.Contact)console.log("ContactResult:",e),Array.isArray(e)&&e.forEach(s=>{let a=new Rr,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)});else if(i===Jo.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 Rr;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 Rr;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 Rr,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===To.Service?(console.log("ServiceResult:",e),Array.isArray(e)&&e.forEach(s=>{let a=new Rr,l=JSON.parse(s.displayJSON);a.lineOne=l.display+" ("+l.value.ticketnumber+")",l.value?(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===To.Opportunity?(console.log("OpportunityResult:",e),Array.isArray(e)&&e.forEach(s=>{let a=new Rr,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===To.Events?(console.log("EventsResult:",e),Array.isArray(e)&&e.forEach(s=>{let a=new Rr,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===To.Organization?(console.log("OrganizationResult:",e),Array.isArray(e)&&e.forEach(s=>{let a=new Rr,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===To.Activities?(console.log("OfficeResult:",e),Array.isArray(e)&&e.forEach(s=>{let a=new Rr,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===To.Leads&&(console.log("LeadsResult:",e),Array.isArray(e)&&e.forEach(s=>{let a=new Rr,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.ews.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.attachments})},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.ews.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.attachments})},u=>r.error(u))})})})})})})}retrieveDataForEmailRead(e,i){return new b(r=>{this.ews.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.attachments,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.ews.GetAttachments(o.value,e).subscribe(u=>{let d=[];u.attachments.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=>{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=Ee(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 S=0;SS.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){this.globals.showSpinner(),this.retrieveDataForItem({}).subscribe({next:i=>{console.log("Documenting new item:",i);let o,r=e.selectedProjects;if(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)},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;this.connectionService.postReq("convert","data="+encodeURIComponent(JSON.stringify(e)),!1,{headers:{"content-type":"application/x-www-form-urlencoded"}}).subscribe({next:(l=Ee(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.openMail&&(h=new $t,h.set("openDocument",m),window.open(a.webInt.convertToLink(m),"_blank")),a.globals.addressActivities.refresh(),a.globals.hideSpinner()},error:m=>{if(a.globals.hideSpinner(),409===m.status){const y=new Mc;y.disableClose=!0,y.autoFocus=!0,a.dialogService.createDialogWithType(dl.alreadyDocumented,y).subscribe(S=>{S.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=>{e.next("8.13")})}getDocumentsChips(e){return new b(i=>{i.next([])})}readCRMDataForItem(e){return new b(i=>{this.ews.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 Im;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 Im)})}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(to)&&to.length>0?to[0]:to;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(to)&&to.length>0?to[0]:to;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.webintLink.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(to)&&to.length>0?to[0]:to;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.webintLink.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()})})}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}openWebIntWithParams(e){e=e.set("loadTabs","false"),window.open(this.globalsService.webInt+this.indexParamStart+e.toString(),"_blank")}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)})})}}return n.\u0275fac=function(e){return new(e||n)(T(Bn),T(hl),T(ht),T(ht),T(Bn),T(Xr),T(Kt),T(en),T(Mm),T(qs),T(kC),T(IC),T(Xr),T($c))},n.\u0275prov=me({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),RC=(()=>{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)(T(ht),T(er),T(vc),T(ht),T(Bn))},n.\u0275prov=me({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),k$=(()=>{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.translate=s,this.messageService=a,this.dialogService=l,this.ews=c,this.htmlHelper=u,this.connectionService=d,this.converter=h,this.lang=m,this.settings=y}fetchDBs(e,i){return Fe(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 Fe(null)}getSelDB(){return Fe(null)}createLink(e){return this.globals.webInt+"openrecord/"+e}getDisplayedType(){return Fe(null)}getConfig(){return Fe(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.ews.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.attachments,deletedAttachments:o.deletedAttachments})},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.ews.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.attachments,deletedAttachments:u.deletedAttachments})},u=>r.error(u))})})})})})})}retrieveDataForEmailRead(e,i,r){return new b(o=>{this.ews.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.attachments,deletedAttachments:s.deletedAttachments,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.ews.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.attachments,deletedAttachments:d.deletedAttachments,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(dl.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=Ee(function*(a){r.baNextHandler(a)}),function(l){return s.apply(this,arguments)}),error:function(){var s=Ee(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 Ee(function*(){const r=e.oid;if(i.translate.get("translationWait").subscribe(o=>{i.messageService.showSuccess(i.globals.languageConfLocal.emailDocumented)}),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=Ee(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=Ee(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=>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=Ee(function*(a){r.next(a)}),function(l){return s.apply(this,arguments)}),error:function(){var s=Ee(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.ews.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 Im)},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 R$,u=new O$,d=o?"/?validateOnly=true":"";var h;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=Ee(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=Ee(function*(m){m.json().then(y=>{let S="";y.forEach(U=>{S+=U.ErrorMessage+" "}),s.messageService.showMessageAsync(s.globals.languageConfLocal.companyCreationError+S,dr.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=Ee(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=Ee(function*(u){u.json().then(d=>{let h="";d.forEach(m=>{h+=m.ErrorMessage+" "}),a.messageService.showMessageAsync(a.globals.languageConfLocal.contactCreationError+h,dr.error)}),r.error(u)});return function(d){return c.apply(this,arguments)}}()})}validateDataInBackend(e,i,r){return this.postCompanyContactData(e,r,i,!0)}}return n.\u0275fac=function(e){return new(e||n)(T(hC),T(hl),T(ht),T(Ji),T(Kt),T(en),T(Mm),T(qs),T(kC),T(hC),T(dC),T(RC),T($c))},n.\u0275prov=me({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();class R${}class O${}let ir=(()=>{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()}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 w$){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:`Link: ${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()}}return n.\u0275fac=function(e){return new(e||n)(T(M$),T(k$),T(Ji),T(ht))},n.\u0275prov=me({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const P$=["docFile"],L$=function(n){return{title:n}},F$=function(n,t,e,i){return{confirm:n,cancel:t,confirmAction:e,cancelAction:i}};function N$(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=w();v("ngTemplateOutlet",e.modalHeader)("ngTemplateOutletContext",$n(11,L$,Je(1,5,"LC73005"))),f(3),we(e.text),f(1),v("ngTemplateOutlet",e.modalFooter)("ngTemplateOutletContext",Ki(13,F$,Je(5,7,"LC73135"),Je(6,9,"LC73136"),e.confirmAction.bind(e),e.cancelAction.bind(e)))}}let B$=(()=>{class n extends Gr{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 Ee(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(Kt),p(ht),p(zc),p(C$),p(ir))},n.\u0275cmp=Ue({type:n,selectors:[["app-document-file"]],viewQuery:function(e,i){if(1&e&&Te(P$,7),2&e){let r;de(r=he())&&(i.modalTemp=r.first)}},features:[De],decls:2,vars:0,consts:[["docFile",""],[3,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"modalBody"]],template:function(e,i){1&e&&H(0,N$,7,18,"ng-template",null,0,Dn)},dependencies:[Qi,Pi]}),n})();const j$=["selContact"],H$=["dbs"];function V$(n,t){1&n&&(g(0,"p"),j(1),Ze(2,"translate"),_()),2&n&&(f(1),we(Je(2,1,"LC53515")))}function U$(n,t){if(1&n){const e=ke();g(0,"mat-list-option",7),$("dblclick",function(){return X(e),Z(w(2).confirmAction())}),j(1),_()}if(2&n){const e=t.$implicit,i=w(2);Dt("value",e.db),v("selected",1===i.contactDBs.length?e.db:null),f(1),qe(" ",e.title," ")}}const q$=function(n){return{title:n}},z$=function(n,t,e,i){return{confirm:n,cancel:t,confirmAction:e,cancelAction:i}};function G$(n,t){if(1&n&&(Wt(0,1),Ze(1,"translate"),g(2,"div",2)(3,"mat-selection-list",3,4),H(5,V$,3,3,"p",5),H(6,U$,2,3,"mat-list-option",6),_()(),Wt(7,1),Ze(8,"translate"),Ze(9,"translate")),2&n){const e=w();v("ngTemplateOutlet",e.modalHeader)("ngTemplateOutletContext",$n(13,q$,Je(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",Ki(15,z$,Je(8,9,"LC73135"),Je(9,11,"LC73136"),e.confirmAction.bind(e,e.selection),e.cancelAction.bind(e)))}}let OC=(()=>{class n extends Gr{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 Ee(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(Kt),p(Bn),p(en))},n.\u0275cmp=Ue({type:n,selectors:[["app-select-contact"]],viewQuery:function(e,i){if(1&e&&(Te(j$,7),Te(H$,5)),2&e){let r;de(r=he())&&(i.modalTemp=r.first),de(r=he())&&(i.selection=r.first)}},features:[De],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,G$,10,20,"ng-template",null,0,Dn)},dependencies:[Yn,hn,Qi,Zo,js,Pi]}),n})();const W$=["selLabelCreate"],$$=["selection"];function K$(n,t){if(1&n){const e=ke();g(0,"mat-list-option",6),$("dblclick",function(){return X(e),Z(w(2).confirmAction())}),j(1),_()}if(2&n){const e=t.$implicit,i=w(2);Dt("value",e),v("selected",e===i.selectedEntry),f(1),qe(" ",i.data.passedData.labelDisplayMap.get(e)," ")}}const Y$=function(n){return{title:n}},Q$=function(n,t,e,i){return{confirm:n,cancel:t,confirmAction:e,cancelAction:i}};function X$(n,t){if(1&n&&(Wt(0,1),Ze(1,"translate"),g(2,"div",2)(3,"mat-selection-list",3,4),H(5,K$,2,3,"mat-list-option",5),_()(),Wt(6,1),Ze(7,"translate"),Ze(8,"translate")),2&n){const e=w();v("ngTemplateOutlet",e.modalHeader)("ngTemplateOutletContext",$n(12,Y$,Je(1,6,"LC53516"))),f(3),v("multiple",!1),f(2),v("ngForOf",e.data.passedData.createLabels),f(1),v("ngTemplateOutlet",e.modalFooter)("ngTemplateOutletContext",Ki(14,Q$,Je(7,8,"LC73135"),Je(8,10,"LC73136"),e.confirmAction.bind(e),e.cancelAction.bind(e)))}}let Z$=(()=>{class n extends Gr{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(Kt),p(en),p(ht))},n.\u0275cmp=Ue({type:n,selectors:[["app-select-create-label"]],viewQuery:function(e,i){if(1&e&&(Te(W$,7),Te($$,5)),2&e){let r;de(r=he())&&(i.modalTemp=r.first),de(r=he())&&(i.selection=r.first)}},features:[De],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,X$,9,19,"ng-template",null,0,Dn)},dependencies:[Yn,Qi,Zo,js,Pi]}),n})();const J$=["dupl"],eK=function(n){return{title:n}},tK=function(n,t,e,i){return{confirm:n,cancel:t,confirmAction:e,cancelAction:i}};function nK(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=w();v("ngTemplateOutlet",e.modalHeader)("ngTemplateOutletContext",$n(13,eK,Je(1,5,"LC53516"))),f(3),we(Je(4,7,"LC73006")),f(2),v("ngTemplateOutlet",e.modalFooter)("ngTemplateOutletContext",Ki(15,tK,Je(6,9,"LC73057"),Je(7,11,"NO"),e.confirmAction.bind(e),e.cancelAction.bind(e)))}}let iK=(()=>{class n extends Gr{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(Kt))},n.\u0275cmp=Ue({type:n,selectors:[["app-duplicate"]],viewQuery:function(e,i){if(1&e&&Te(J$,7),2&e){let r;de(r=he())&&(i.modalTemp=r.first)}},features:[De],decls:2,vars:0,consts:[["dupl",""],[3,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"modalBody"]],template:function(e,i){1&e&&H(0,nK,8,20,"ng-template",null,0,Dn)},dependencies:[Qi,Pi]}),n})();const rK=["searchTemplate"];function oK(n,t){if(1&n){const e=ke();g(0,"button",13),$("click",function(){return X(e),Z(w(2).searchValue="")}),Ae(1,"div",14),_()}if(2&n){const e=w(2);f(1),v("ngStyle",e.searchClearImage)}}function sK(n,t){if(1&n&&(g(0,"mat-option",15),j(1),_()),2&n){const e=t.$implicit;v("value",e.value),f(1),we(e.viewValue)}}const aK=function(n){return{background:n}};function lK(n,t){if(1&n&&Ae(0,"mat-cell",22),2&n){const e=t.$implicit,i=w(3);v("ngStyle",$n(1,aK,"no-repeat url("+i.viewIconBaseURL+e.iconURL+")"))}}function cK(n,t){if(1&n&&(g(0,"div"),j(1),_()),2&n){const e=w().$implicit;f(1),vo(" ",e.name,", ",e.type," ")}}function uK(n,t){if(1&n&&(g(0,"div"),j(1),_()),2&n){const e=w().$implicit;f(1),qe(" ",e.purpose," ")}}function dK(n,t){if(1&n&&(g(0,"div"),j(1),_()),2&n){const e=w().$implicit;f(1),qe(" ",e.category," ")}}function hK(n,t){if(1&n&&(g(0,"mat-cell",23)(1,"mat-dialog-content")(2,"span",24),j(3),_(),H(4,cK,2,2,"div",25),H(5,uK,2,1,"div",25),H(6,dK,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 pK(n,t){if(1&n){const e=ke();g(0,"mat-row",26),$("click",function(){const o=X(e).$implicit;return Z(w(3).toggleSelection(o))})("dblclick",function(){const o=X(e).$implicit;return Z(w(3).acceptEntryDblClick(o))}),_()}if(2&n){const e=t.$implicit,i=w(3);bt("isSelected",i.selection.isSelected(e)),v("matRippleColor",i.rippleColor)("matRippleCentered",i.centered)("matRippleDisabled",i.disabled)("matRippleUnbounded",i.unbounded)}}function fK(n,t){if(1&n&&(g(0,"div")(1,"mat-table",16),fi(2,17),H(3,lK,1,3,"mat-cell",18),mi(),fi(4,19),H(5,hK,7,4,"mat-cell",20),mi(),H(6,pK,1,6,"mat-row",21),_()()),2&n){const e=w(2);wi(e.tableWrapperClassName),f(1),v("dataSource",e.searchResults),f(5),v("matRowDefColumns",e.displayedColumns)}}function mK(n,t){1&n&&(g(0,"div"),j(1),Ze(2,"translate"),_()),2&n&&(f(1),we(Je(2,1,"LC53482")))}const gK=function(n){return{title:n}},_K=function(n,t,e,i){return{confirm:n,cancel:t,confirmAction:e,cancelAction:i}};function vK(n,t){if(1&n){const e=ke();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),$("ngModelChange",function(r){return X(e),Z(w().searchValue=r)})("keyup.enter",function(){return X(e),Z(w().search())}),_(),H(9,oK,2,1,"button",6),_(),g(10,"input",7),$("click",function(){return X(e),Z(w().search())}),Ze(11,"translate"),_()(),g(12,"mat-form-field",8)(13,"mat-label"),j(14),Ze(15,"translate"),_(),g(16,"mat-select",9),$("valueChange",function(r){return X(e),Z(w().selectedDB=r)})("selectionChange",function(){X(e);const r=w();return Z(r.fetchSearch(r.selectedDB))}),H(17,sK,2,2,"mat-option",10),_()(),H(18,fK,7,5,"div",11),H(19,mK,3,3,"ng-template",null,12,Dn),_(),Wt(21,1),Ze(22,"translate"),Ze(23,"translate")}if(2&n){const e=Jt(20),i=w();v("ngTemplateOutlet",i.modalHeader)("ngTemplateOutletContext",$n(25,gK,Je(1,13,"LC53493"))),f(6),we(Je(7,15,"LC53489")),f(2),v("ngModel",i.searchValue),f(1),v("ngIf",i.searchValue),f(1),Dt("value",Je(11,17,"LC36251")),f(4),we(Je(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",Ki(27,_K,Je(22,21,"LC73135"),Je(23,23,"LC73136"),i.confirmAction.bind(i),i.cancelAction.bind(i)))}}let yK=(()=>{class n extends _C{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(Kt),p(Bn),p(ht),p(en),p(zd),p(Bs))},n.\u0275cmp=Ue({type:n,selectors:[["app-search-template"]],viewQuery:function(e,i){if(1&e&&Te(rK,7),2&e){let r;de(r=he())&&(i.modalTemp=r.first)}},inputs:{data:"data"},outputs:{messageEvent:"messageEvent"},features:[De],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,vK,24,32,"ng-template",null,0,Dn)},dependencies:[Yn,hn,Qi,ra,zr,Eo,qo,Rf,Zr,nr,vC,Hs,Mr,Jr,Sm,Qd,Yd,Am,Xd,Tm,Ir,Pi],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 bK=["selMailAddr"],CK=["mailAddrs"];function wK(n,t){if(1&n){const e=ke();g(0,"mat-list-option",7),$("dblclick",function(){return X(e),Z(w(2).confirmAction())}),j(1),Ze(2,"translate"),_()}if(2&n){const e=w(2);Dt("value",e.globals.curFrom.emailAddress),f(1),vo(" ",Je(2,3,"LC73126"),": ",e.globals.curFrom.emailAddress," ")}}function EK(n,t){if(1&n){const e=ke();g(0,"mat-list-option",7),$("dblclick",function(){return X(e),Z(w(2).confirmAction())}),j(1),Ze(2,"translate"),_()}if(2&n){const e=t.$implicit;Dt("value",e.emailAddress),f(1),vo(" ",Je(2,3,"to"),": ",e.emailAddress," ")}}function DK(n,t){if(1&n){const e=ke();g(0,"mat-list-option",7),$("dblclick",function(){return X(e),Z(w(2).confirmAction())}),j(1),Ze(2,"translate"),_()}if(2&n){const e=t.$implicit;Dt("value",e.emailAddress),f(1),vo(" ",Je(2,3,"LC73128"),": ",e.emailAddress," ")}}const SK=function(n){return{title:n}},AK=function(){return{}},TK=function(n,t,e,i){return{confirm:n,cancel:t,confirmAction:e,cancelAction:i}};function xK(n,t){if(1&n&&(Wt(0,1),Ze(1,"translate"),g(2,"div",2)(3,"mat-selection-list",3,4),H(5,wK,3,5,"mat-list-option",5),H(6,EK,3,5,"mat-list-option",6),H(7,DK,3,5,"mat-list-option",6),_()(),Wt(8,1),Ze(9,"translate"),Ze(10,"translate")),2&n){const e=w();v("ngTemplateOutlet",e.modalHeader)("ngTemplateOutletContext",$n(14,SK,Je(1,8,"LC53517"))),f(3),v("multiple",!1),f(2),v("ngIf",null!==e.globals.curFrom&&e.globals.curFrom!==Mv(16,AK)),f(1),v("ngForOf",e.globals.curTo),f(1),v("ngForOf",e.globals.curCC),f(1),v("ngTemplateOutlet",e.modalFooter)("ngTemplateOutletContext",Ki(17,TK,Je(9,10,"LC73135"),Je(10,12,"LC73136"),e.confirmAction.bind(e,e.selection),e.cancelAction.bind(e)))}}let IK=(()=>{class n extends Gr{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(ht),p(Kt),p(en),p(MC))},n.\u0275cmp=Ue({type:n,selectors:[["app-select-mail-address"]],viewQuery:function(e,i){if(1&e&&(Te(bK,7),Te(CK,5)),2&e){let r;de(r=he())&&(i.modalTemp=r.first),de(r=he())&&(i.selection=r.first)}},features:[De],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,xK,11,22,"ng-template",null,0,Dn)},dependencies:[Yn,hn,Qi,Zo,js,Pi]}),n})(),MK=(()=>{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(S=>S.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)(T(Bn))},n.\u0275prov=me({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();function kK(n,t){1&n&&jt(0)}const NM=["*"];function RK(n,t){}const OK=function(n){return{animationDuration:n}},PK=function(n,t){return{value:n,params:t}},LK=["tabListContainer"],FK=["tabList"],NK=["tabListInner"],BK=["nextPaginator"],jK=["previousPaginator"],HK=["tabBodyWrapper"],VK=["tabHeader"];function UK(n,t){}function qK(n,t){1&n&&H(0,UK,0,0,"ng-template",10),2&n&&v("cdkPortalOutlet",w().$implicit.templateLabel)}function zK(n,t){1&n&&j(0),2&n&&we(w().$implicit.textLabel)}function GK(n,t){if(1&n){const e=ke();g(0,"div",6),$("click",function(){const r=X(e),o=r.$implicit,s=r.index,a=w(),l=Jt(1);return Z(a._handleClick(o,l,s))})("cdkFocusChange",function(r){const s=X(e).index;return Z(w()._tabFocusChanged(r,s))}),g(1,"div",7),H(2,qK,1,1,"ng-template",8),H(3,zK,1,1,"ng-template",null,9,Dn),_()()}if(2&n){const e=t.$implicit,i=t.index,r=Jt(4),o=w();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 WK(n,t){if(1&n){const e=ke();g(0,"mat-tab-body",11),$("_onCentered",function(){return X(e),Z(w()._removeTabBodyWrapperHeight())})("_onCentering",function(r){return X(e),Z(w()._setTabBodyWrapperHeight(r))}),_()}if(2&n){const e=t.$implicit,i=t.index,r=w();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 $K=new ge("MatInkBarPositioner",{providedIn:"root",factory:function KK(){return t=>({left:t?(t.offsetLeft||0)+"px":"0",width:t?(t.offsetWidth||0)+"px":"0"})}});let BM=(()=>{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(an(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(Xe),p(et),p($K),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 YK=new ge("MatTabContent"),jM=new ge("MatTabLabel"),HM=new ge("MAT_TAB");let QK=(()=>{class n extends Z8{constructor(e,i,r){super(e,i),this._closestTab=r}}return n.\u0275fac=function(e){return new(e||n)(p(bn),p(En),p(HM,8))},n.\u0275dir=fe({type:n,selectors:[["","mat-tab-label",""],["","matTabLabel",""]],features:[ot([{provide:jM,useExisting:n}]),De]}),n})();const XK=Ms(class{}),VM=new ge("MAT_TAB_GROUP");let UM=(()=>{class n extends XK{constructor(e,i){super(),this._viewContainerRef=e,this._closestTabGroup=i,this.textLabel="",this._contentPortal=null,this._stateChanges=new L,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 xs(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(En),p(VM,8))},n.\u0275cmp=Ue({type:n,selectors:[["mat-tab"]],contentQueries:function(e,i,r){if(1&e&&(Ht(r,jM,5),Ht(r,YK,7,bn)),2&e){let o;de(o=he())&&(i.templateLabel=o.first),de(o=he())&&(i._explicitContent=o.first)}},viewQuery:function(e,i){if(1&e&&Te(bn,7),2&e){let r;de(r=he())&&(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:[ot([{provide:HM,useExisting:n}]),De,kn],ngContentSelectors:NM,decls:1,vars:0,template:function(e,i){1&e&&(Pn(),H(0,kK,1,0,"ng-template"))},encapsulation:2}),n})();const ZK={translateTab:$r("translateTab",[zn("center, void, left-origin-center, right-origin-center",Ft({transform:"none"})),zn("left",Ft({transform:"translate3d(-100%, 0, 0)",minHeight:"1px",visibility:"hidden"})),zn("right",Ft({transform:"translate3d(100%, 0, 0)",minHeight:"1px",visibility:"hidden"})),ui("* => left, * => right, left => center, right => center",_i("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")),ui("void => left-origin-center",[Ft({transform:"translate3d(-100%, 0, 0)",visibility:"hidden"}),_i("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")]),ui("void => right-origin-center",[Ft({transform:"translate3d(100%, 0, 0)",visibility:"hidden"}),_i("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")])])};let JK=(()=>{class n extends Is{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(ri(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(ho),p(En),p(tn(()=>qM)),p(pt))},n.\u0275dir=fe({type:n,selectors:[["","matTabBodyHost",""]],features:[De]}),n})(),eY=(()=>{class n{constructor(e,i,r){this._elementRef=e,this._dir=i,this._dirChangeSubscription=E.EMPTY,this._translateTabComplete=new L,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(ff((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(Xe),p(tr,8),p(It))},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})(),qM=(()=>{class n extends eY{constructor(e,i,r){super(e,i,r)}}return n.\u0275fac=function(e){return new(e||n)(p(Xe),p(tr,8),p(It))},n.\u0275cmp=Ue({type:n,selectors:[["mat-tab-body"]],viewQuery:function(e,i){if(1&e&&Te(Is,5),2&e){let r;de(r=he())&&(i._portalHost=r.first)}},hostAttrs:[1,"mat-tab-body"],features:[De],decls:3,vars:6,consts:[["cdkScrollable","",1,"mat-tab-body-content"],["content",""],["matTabBodyHost",""]],template:function(e,i){1&e&&(g(0,"div",0,1),$("@translateTab.start",function(o){return i._onTranslateTabStarted(o)})("@translateTab.done",function(o){return i._translateTabComplete.next(o)}),H(2,RK,0,0,"ng-template",2),_()),2&e&&v("@translateTab",aA(3,PK,i._position,$n(1,OK,i.animationDuration)))},dependencies:[JK],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:[ZK.translateTab]}}),n})();const zM=new ge("MAT_TABS_CONFIG"),tY=Ms(class{});let GM=(()=>{class n extends tY{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(Xe))},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:[De]}),n})();const WM=Ds({passive:!0});let rY=(()=>{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 L,this._showPaginationControls=!1,this._disableScrollAfter=!0,this._disableScrollBefore=!0,this._stopScrolling=new L,this._disablePagination=!1,this._selectedIndex=0,this.selectFocusedIndex=new He,this.indexFocused=new He,s.runOutsideAngular(()=>{Ts(e.nativeElement,"mouseleave").pipe(Xt(this._destroyed)).subscribe(()=>{this._stopInterval()})})}get disablePagination(){return this._disablePagination}set disablePagination(e){this._disablePagination=at(e)}get selectedIndex(){return this._selectedIndex}set selectedIndex(e){e=As(e),this._selectedIndex!=e&&(this._selectedIndexChanged=!0,this._selectedIndex=e,this._keyManager&&this._keyManager.updateActiveItem(e))}ngAfterViewInit(){Ts(this._previousPaginator.nativeElement,"touchstart",WM).pipe(Xt(this._destroyed)).subscribe(()=>{this._handlePaginatorPress("before")}),Ts(this._nextPaginator.nativeElement,"touchstart",WM).pipe(Xt(this._destroyed)).subscribe(()=>{this._handlePaginatorPress("after")})}ngAfterContentInit(){const e=this._dir?this._dir.change:Fe("ltr"),i=this._viewportRuler.change(150),r=()=>{this.updatePagination(),this._alignInkBarToSelectedTab()};this._keyManager=new yf(this._items).withHorizontalOrientation(this._getLayoutDirection()).withHomeAndEnd().withWrap(),this._keyManager.updateActiveItem(this._selectedIndex),this._ngZone.onStable.pipe(an(1)).subscribe(r),Mn(e,i,this._items.changes,this._itemsResized()).pipe(Xt(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(Xt(this._destroyed)).subscribe(o=>{this.indexFocused.emit(o),this._setTabFocus(o)})}_itemsResized(){return"function"!=typeof ResizeObserver?Es:this._items.changes.pipe(ri(this._items),Qn(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()}}))),ab(1),An(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(!Di(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(),Z2(650,100).pipe(Xt(Mn(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(Xe),p(It),p(Go),p(tr,8),p(et),p(Fn),p(qn,8))},n.\u0275dir=fe({type:n,inputs:{disablePagination:"disablePagination"}}),n})(),oY=(()=>{class n extends rY{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=at(e)}_itemSelected(e){e.preventDefault()}}return n.\u0275fac=function(e){return new(e||n)(p(Xe),p(It),p(Go),p(tr,8),p(et),p(Fn),p(qn,8))},n.\u0275dir=fe({type:n,inputs:{disableRipple:"disableRipple"},features:[De]}),n})(),sY=(()=>{class n extends oY{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(Xe),p(It),p(Go),p(tr,8),p(et),p(Fn),p(qn,8))},n.\u0275cmp=Ue({type:n,selectors:[["mat-tab-header"]],contentQueries:function(e,i,r){if(1&e&&Ht(r,GM,4),2&e){let o;de(o=he())&&(i._items=o)}},viewQuery:function(e,i){if(1&e&&(Te(BM,7),Te(LK,7),Te(FK,7),Te(NK,7),Te(BK,5),Te(jK,5)),2&e){let r;de(r=he())&&(i._inkBar=r.first),de(r=he())&&(i._tabListContainer=r.first),de(r=he())&&(i._tabList=r.first),de(r=he())&&(i._tabListInner=r.first),de(r=he())&&(i._nextPaginator=r.first),de(r=he())&&(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:[De],ngContentSelectors:NM,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),$("click",function(){return i._handlePaginatorClick("before")})("mousedown",function(o){return i._handlePaginatorPress("before",o)})("touchend",function(){return i._stopInterval()}),Ae(2,"div",2),_(),g(3,"div",3,4),$("keydown",function(o){return i._handleKeydown(o)}),g(5,"div",5,6),$("cdkObserveContent",function(){return i._onContentChanges()}),g(7,"div",7,8),jt(9),_(),Ae(10,"mat-ink-bar"),_()(),g(11,"button",9,10),$("mousedown",function(o){return i._handlePaginatorPress("after",o)})("click",function(){return i._handlePaginatorClick("after")})("touchend",function(){return i._stopInterval()}),Ae(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:[Ir,gf,BM],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})(),aY=0;class lY{}const cY=da(Wo(class{constructor(n){this._elementRef=n}}),"primary");let uY=(()=>{class n extends cY{constructor(e,i,r,o){super(e),this._changeDetectorRef=i,this._animationMode=o,this._tabs=new Ua,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=aY++,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=at(e)}get selectedIndex(){return this._selectedIndex}set selectedIndex(e){this._indexToSelect=As(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=As(e,null)}get disablePagination(){return this._disablePagination}set disablePagination(e){this._disablePagination=at(e)}get preserveContent(){return this._preserveContent}set preserveContent(e){this._preserveContent=at(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(ri(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 lY;return i.index=e,this._tabs&&this._tabs.length&&(i.tab=this._tabs.toArray()[e]),i}_subscribeToTabLabels(){this._tabLabelSubscription&&this._tabLabelSubscription.unsubscribe(),this._tabLabelSubscription=Mn(...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(Xe),p(It),p(zM,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:[De]}),n})(),dY=(()=>{class n extends uY{constructor(e,i,r,o){super(e,i,r,o)}}return n.\u0275fac=function(e){return new(e||n)(p(Xe),p(It),p(zM,8),p(qn,8))},n.\u0275cmp=Ue({type:n,selectors:[["mat-tab-group"]],contentQueries:function(e,i,r){if(1&e&&Ht(r,UM,5),2&e){let o;de(o=he())&&(i._allTabs=o)}},viewQuery:function(e,i){if(1&e&&(Te(HK,5),Te(VK,5)),2&e){let r;de(r=he())&&(i._tabBodyWrapper=r.first),de(r=he())&&(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:[ot([{provide:VM,useExisting:n}]),De],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),$("indexFocused",function(o){return i._focusChanged(o)})("selectFocusedIndex",function(o){return i.selectedIndex=o}),H(2,GK,5,15,"div",2),_(),g(3,"div",3,4),H(5,WK,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:[Wa,Yn,hn,Is,Ir,I8,GM,qM,sY],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})(),hY=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=dt({type:n}),n.\u0275inj=ct({imports:[Xi,Lt,Ja,ha,ud,mb,Lt]}),n})();const pY=["searchProject"],fY=["searchTableSelected"];function mY(n,t){if(1&n){const e=ke();g(0,"button",17),$("click",function(){return X(e),Z(w(3).searchValue="")}),Ae(1,"div",18),_()}if(2&n){const e=w(3);f(1),v("ngStyle",e.searchClearImage)}}function gY(n,t){if(1&n&&(g(0,"mat-option",19),j(1),_()),2&n){const e=t.$implicit;v("value",e.value),f(1),we(e.viewValue)}}function _Y(n,t){1&n&&j(0),2&n&&qe(" ",w(3).globals.languageConfLocal.list," ")}const KM=function(n){return{background:n}};function vY(n,t){if(1&n&&Ae(0,"mat-cell",27),2&n){const e=t.$implicit,i=w(4);v("ngStyle",$n(1,KM,"no-repeat url("+i.viewIconBaseURL+e.iconURL+")"))}}function yY(n,t){if(1&n&&(g(0,"div",33),j(1),_()),2&n){const e=w().$implicit;f(1),qe(" ",e.name," ")}}function bY(n,t){if(1&n&&(g(0,"div"),j(1),_()),2&n){const e=w().$implicit;f(1),vo(" ",e.number," / ",e.owner," ")}}function CY(n,t){if(1&n){const e=ke();g(0,"mat-cell",28)(1,"mat-dialog-content",29),H(2,yY,2,1,"div",30),H(3,bY,2,2,"div",1),g(4,"div",31),$("click",function(r){const s=X(e).index;return w(4).addProject(s),Z(r.stopPropagation())})("dblclick",function(r){return r.stopPropagation()}),Ae(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 wY(n,t){}function EY(n,t){if(1&n){const e=ke();g(0,"mat-row",34),$("click",function(){const o=X(e).$implicit;return Z(w(4).toggleSelection(o))})("dblclick",function(){const o=X(e).$implicit;return Z(w(4).acceptEntryDblClick(o))}),H(1,wY,0,0,"ng-template"),_()}if(2&n){const e=t.$implicit,i=w(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 DY(n,t){if(1&n&&(g(0,"div")(1,"mat-table",20,21),fi(3,22),H(4,vY,1,3,"mat-cell",23),mi(),fi(5,24),H(6,CY,6,2,"mat-cell",25),mi(),H(7,EY,2,7,"mat-row",26),_()()),2&n){const e=w(3);wi(e.tableWrapperClassName),f(1),v("dataSource",e.searchResults),f(6),v("matRowDefColumns",e.displayedColumns)}}function SY(n,t){if(1&n){const e=ke();g(0,"div"),$("@shake.done",function(){return X(e),Z(w(3).shakeEnd("selectedProdAnimation"))}),j(1),_()}if(2&n){const e=w(3);v("@shake",e.animationStates.selectedProdAnimation),f(1),qe(" ",e.globals.languageConfLocal.selected," ")}}function AY(n,t){if(1&n&&Ae(0,"mat-cell",27),2&n){const e=t.$implicit,i=w(4);v("ngStyle",$n(1,KM,"no-repeat url("+i.viewIconBaseURL+e.iconURL+")"))}}function TY(n,t){if(1&n&&(g(0,"div",33),j(1),_()),2&n){const e=w().$implicit;f(1),qe(" ",e.name," ")}}function xY(n,t){if(1&n&&(g(0,"div"),j(1),_()),2&n){const e=w().$implicit;f(1),vo(" ",e.number," / ",e.owner," ")}}function IY(n,t){if(1&n){const e=ke();g(0,"mat-cell",28)(1,"mat-dialog-content",29),H(2,TY,2,1,"div",30),H(3,xY,2,2,"div",1),g(4,"div",37),$("click",function(r){const s=X(e).index;return w(4).removeProject(s),Z(r.stopPropagation())})("dblclick",function(r){return r.stopPropagation()}),Ae(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 MY(n,t){if(1&n){const e=ke();g(0,"mat-row",39),$("click",function(){const o=X(e).$implicit;return Z(w(4).toggleSelection(o))})("dblclick",function(){const o=X(e).$implicit;return Z(w(4).acceptEntryDblClick(o))}),_()}if(2&n){const e=t.$implicit,i=w(4);bt("isSelected",i.selection.isSelected(e)),v("matRippleColor",i.rippleColor)("matRippleCentered",i.centered)("matRippleDisabled",i.disabled)("matRippleUnbounded",i.unbounded)}}function kY(n,t){if(1&n&&(g(0,"div")(1,"mat-table",20,35),fi(3,22),H(4,AY,1,3,"mat-cell",23),mi(),fi(5,24),H(6,IY,6,2,"mat-cell",25),mi(),H(7,MY,1,6,"mat-row",36),_()()),2&n){const e=w(3);wi(e.tableWrapperClassName),f(1),v("dataSource",e.selectedProjects),f(6),v("matRowDefColumns",e.displayedColumns)}}function RY(n,t){1&n&&(g(0,"div"),j(1),Ze(2,"translate"),_()),2&n&&(f(1),we(Je(2,1,"LC53482")))}function OY(n,t){if(1&n&&(g(0,"div"),j(1),_()),2&n){const e=w(3);f(1),qe(" ",e.globals.languageConfLocal.noProjectSelected," ")}}const PY=function(n){return{title:n}},LY=function(n,t,e,i){return{confirm:n,cancel:t,confirmAction:e,cancelAction:i}};function FY(n,t){if(1&n){const e=ke();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),$("ngModelChange",function(r){return X(e),Z(w(2).searchValue=r)})("keyup.enter",function(){X(e);const r=w(2);return Z(r.search(r.curPointer))}),_(),H(9,mY,2,1,"button",7),_(),g(10,"input",8),$("click",function(){X(e);const r=w(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),$("valueChange",function(r){return X(e),Z(w(2).selectedDB=r)})("selectionChange",function(){X(e);const r=w(2);return Z(r.fetchSearch(r.selectedDB,r.curPointer))}),H(17,gY,2,2,"mat-option",11),_()(),g(18,"mat-tab-group",12),$("selectedIndexChange",function(r){return X(e),Z(w(2).curTabIndex=r)}),g(19,"mat-tab"),H(20,_Y,1,1,"ng-template",13),H(21,DY,8,5,"div",14),_(),g(22,"mat-tab"),H(23,SY,2,2,"ng-template",13),H(24,kY,8,5,"div",14),_()(),H(25,RY,3,3,"ng-template",null,15,Dn),H(27,OY,2,1,"ng-template",null,16,Dn),_(),Wt(29,2),Ze(30,"translate"),Ze(31,"translate"),_()}if(2&n){const e=Jt(26),i=Jt(28),r=w(2);f(1),v("ngTemplateOutlet",r.modalHeader)("ngTemplateOutletContext",$n(26,PY,r.globals.languageConfLocal.selectProject)),f(5),we(Je(7,16,"LC53489")),f(2),v("ngModel",r.searchValue),f(1),v("ngIf",r.searchValue),f(1),Dt("value",Je(11,18,"LC36251")),f(4),we(Je(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",Ki(28,LY,Je(30,22,"LC73135"),Je(31,24,"LC73136"),r.confirmAction.bind(r),r.cancelAction.bind(r)))}}function NY(n,t){if(1&n&&H(0,FY,32,33,"div",1),2&n){const e=w();v("ngIf",e.projectStatus>0&&!e.docToDoc)}}let BY=(()=>{class n extends _C{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(Kt),p(Bn),p(ht),p(en),p(zd),p(Bs),p(MK))},n.\u0275cmp=Ue({type:n,selectors:[["app-search-project"]],viewQuery:function(e,i){if(1&e&&(Te(pY,7),Te(fY,5)),2&e){let r;de(r=he())&&(i.modalTemp=r.first),de(r=he())&&(i.selectedProjTable=r.first)}},inputs:{data:"data"},outputs:{messageEvent:"messageEvent"},features:[De],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,NY,1,1,"ng-template",null,0,Dn)},dependencies:[Yn,hn,Qi,ra,zr,Eo,qo,Rf,Zr,nr,vC,Hs,Mr,Jr,Sm,Qd,Yd,Am,Xd,Tm,Ir,dY,QK,UM,Pi],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:[$r("shake",[zn("shakestart",Ft({transform:"scale(1)"})),zn("shakeend",Ft({transform:"scale(1)"})),ui("shakestart => shakeend",_i("1000ms ease-in",q6([Ft({transform:"translate3d(-4px, 0, 0)",offset:.1}),Ft({transform:"translate3d(4px, 0, 0)",offset:.2}),Ft({transform:"translate3d(-4px, 0, 0)",offset:.3}),Ft({transform:"translate3d(4px, 0, 0)",offset:.4}),Ft({transform:"translate3d(-4px, 0, 0)",offset:.5}),Ft({transform:"translate3d(4px, 0, 0)",offset:.6}),Ft({transform:"translate3d(-4px, 0, 0)",offset:.7}),Ft({transform:"translate3d(4px, 0, 0)",offset:.8}),Ft({transform:"translate3d(-4px, 0, 0)",offset:.9})])))])]}}),n})();const jY=["projPhases"],HY=["selection"];function VY(n,t){if(1&n&&(g(0,"mat-list-option",5),j(1),_()),2&n){const e=t.$implicit;Dt("value",e.pointer),Dt("selected",e.selected),f(1),qe(" ",e.name," ")}}const UY=function(n){return{title:n}},qY=function(n,t,e,i){return{confirm:n,cancel:t,confirmAction:e,cancelAction:i}};function zY(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,VY,2,3,"mat-list-option",4),_()(),Wt(11,1),Ze(12,"translate"),Ze(13,"translate")),2&n){const e=w();v("ngTemplateOutlet",e.modalHeader)("ngTemplateOutletContext",$n(15,UY,Je(1,7,"LC03411"))),f(4),we(Je(5,9,"LC03410")),f(3),we(e.projectInfo.projectDisplay),f(3),v("ngForOf",e.projectInfo.projectphases),f(1),v("ngTemplateOutlet",e.modalFooter)("ngTemplateOutletContext",Ki(17,qY,Je(12,11,"LC73135"),Je(13,13,"LC73136"),e.confirmAction.bind(e),e.cancelAction.bind(e)))}}let GY=(()=>{class n extends Gr{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(Kt),p(en),p(ht))},n.\u0275cmp=Ue({type:n,selectors:[["app-select-create-label"]],viewQuery:function(e,i){if(1&e&&(Te(jY,7),Te(HY,5)),2&e){let r;de(r=he())&&(i.modalTemp=r.first),de(r=he())&&(i.selection=r.first)}},features:[De],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,zY,14,22,"ng-template",null,0,Dn)},dependencies:[Yn,Qi,Zo,js,Pi]}),n})();const WY=["selMailAddr"],$Y=["selAddr"];function KY(n,t){if(1&n&&(g(0,"div"),j(1),_()),2&n){const e=w().$implicit;f(1),qe(" ",e.additional.database,": ")}}function YY(n,t){if(1&n&&(g(0,"div"),j(1),_()),2&n){const e=w().$implicit;f(1),qe("(",e.companyName,")")}}function QY(n,t){if(1&n){const e=ke();g(0,"mat-list-option",6),$("dblclick",function(){const o=X(e).index;return Z(w(2).changeSelectedIndex(o))}),g(1,"div",7),H(2,KY,2,1,"div",8),g(3,"div"),j(4),_(),H(5,YY,2,1,"div",8),_()()}if(2&n){const e=t.$implicit,i=t.index,r=w(2);Dt("value",i),v("selected",i===r.addressService.addressIndex),f(2),v("ngIf",e.additional&&e.additional.database),f(2),we(e.name),f(1),v("ngIf",e.companyName)}}const XY=function(n){return{title:n}},ZY=function(n,t,e,i){return{confirm:n,cancel:t,confirmAction:e,cancelAction:i}};function JY(n,t){if(1&n&&(Wt(0,1),Ze(1,"translate"),g(2,"div",2)(3,"mat-selection-list",3,4),H(5,QY,6,5,"mat-list-option",5),_()(),Wt(6,1),Ze(7,"translate"),Ze(8,"translate")),2&n){const e=w();v("ngTemplateOutlet",e.modalHeader)("ngTemplateOutletContext",$n(12,XY,Je(1,6,"LC52163"))),f(3),v("multiple",!1),f(2),v("ngForOf",e.addresses),f(1),v("ngTemplateOutlet",e.modalFooter)("ngTemplateOutletContext",Ki(14,ZY,Je(7,8,"LC73135"),Je(8,10,"LC73136"),e.confirmAction.bind(e),e.cancelAction.bind(e)))}}let eQ=(()=>{class n extends Gr{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(ht),p(Kt),p(Bs),p(MC))},n.\u0275cmp=Ue({type:n,selectors:[["app-select-address"]],viewQuery:function(e,i){if(1&e&&(Te(WY,7),Te($Y,5)),2&e){let r;de(r=he())&&(i.modalTemp=r.first),de(r=he())&&(i.selection=r.first)}},features:[De],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,JY,9,19,"ng-template",null,0,Dn)},dependencies:[Yn,hn,Qi,Zo,js,Pi],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 tQ=["login"],nQ=function(){return{title:"Login"}},iQ=function(n,t,e,i){return{confirm:n,cancel:t,confirmAction:e,cancelAction:i}};function rQ(n,t){if(1&n){const e=ke();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),$("ngModelChange",function(r){return X(e),Z(w().uname=r)})("focus",function(){return X(e),Z(Jt(8).select())})("keyup.enter",function(){return X(e),Z(Jt(14).focus())}),_()(),g(9,"mat-form-field",4)(10,"mat-label"),j(11),Ze(12,"translate"),_(),g(13,"input",7,8),$("ngModelChange",function(r){return X(e),Z(w().pwd=r)})("focus",function(){return X(e),Z(Jt(14).select())})("keyup.enter",function(){return X(e),Z(w().confirmAction())}),_()()()(),Wt(15,1),Ze(16,"translate"),Ze(17,"translate")}if(2&n){const e=w();v("ngTemplateOutlet",e.modalHeader)("ngTemplateOutletContext",Mv(16,nQ)),f(5),we(Je(6,8,"username")),f(2),v("ngModel",e.uname),f(4),we(Je(12,10,"password")),f(2),v("ngModel",e.pwd),f(2),v("ngTemplateOutlet",e.modalFooter)("ngTemplateOutletContext",Ki(17,iQ,Je(16,12,"LC73135"),Je(17,14,"LC73136"),e.confirmAction.bind(e),e.cancelAction.bind(e)))}}let oQ=(()=>{class n extends Gr{constructor(e,i,r,o){super(e),this.translate=e,this.connection=i,this.messageService=r,this.globals=o}ngOnInit(){}checkIfEmpty(e,i){return Ee(function*(){return!e||""===e||!i||""===i})()}confirmAction(){var e=this;return Ee(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(Kt),p(Bn),p(en),p(ht))},n.\u0275cmp=Ue({type:n,selectors:[["app-login"]],viewQuery:function(e,i){if(1&e&&Te(tQ,7),2&e){let r;de(r=he())&&(i.modalTemp=r.first)}},features:[De],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,rQ,18,22,"ng-template",null,0,Dn)},dependencies:[Qi,zr,Eo,qo,Zr,nr,Jr,Pi],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 L,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 Ei(_G,this.initModalData("searchProject")),selectContact:new Ei(OC,this.initModalData()),searchContact:new Ei(PM,this.initModalData("chooseOfficeDB")),searchTemplate:new Ei(yK,this.initModalData("chooseOfficeDB")),searchProject:new Ei(BY,this.initModalData("documentFile")),createContact:new Ei(p$,this.initModalData()),createTicket:new Ei(b$,this.initModalData()),documentFile:new Ei(B$,this.initModalData()),createAddressCompany:new Ei(OC,this.initModalData("createContact",{createType:"company"})),createAddressToCompany:new Ei(PM,this.initModalData("createContact",{type:"company",createType:"toCompany"})),createAddressPerson:new Ei(OC,this.initModalData("createContact",{createType:"person"})),createLabel:new Ei(Z$,this.initModalData(null,{currentModal:this.newActive})),selectMailAddress:new Ei(IK,this.initModalData()),duplicate:new Ei(iK,this.initModalData()),projectPhase:new Ei(GY,this.initModalData(null,{currentModal:this.newActive})),addressSelection:new Ei(eQ,this.initModalData(null,{currentModal:this.newActive})),login:new Ei(oQ,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)(T(er),T(ht),T(Rs))},n.\u0275prov=me({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),YM=(()=>{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)(T(ht))},n.\u0275prov=me({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();var Zd=G(4856);let sQ=(()=>{class n extends YM{constructor(e,i,r,o){super(e),this.messageService=i,this.authService=r,this.waitList=o,this.globals.curConnectorType="Owa",this.savedAttachments={},this.globals.curConnector=this,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 Ee(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=Ee(function*(o){o.status===Office.AsyncResultStatus.Failed?e.messageService.showError(o.error.message,o.error.name,!0):"gi"===e.globals.system?yield e.setPostDataGI(o,i):yield e.setPostDataBA(o,i)});return function(o){return r.apply(this,arguments)}}())}return!0})()}adjustToastPosition(){}filterObjectEntryOfArr(e){const i=[];for(const r of e)i.push(r.emailAddress);return i}setPostDataBA(e,i){var r=this;return Ee(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 Ee(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 Ee(function*(){window.location.reload()})()}checkDocumentedFlag(e){var i=this;return Ee(function*(){void 0!==e&&null!=e&&(yield i.graphClient.api(`/me/messages/${e}/extensions/GI8.BM`).responseType(Kr.RAW).get().then(function(){var o=Ee(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 Ee(function*(){})()}getMimeMessage(){var e=this;return Ee(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 Ee(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,Zd.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 Ee(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 Ee(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 Ee(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)(T(ht),T(en),T(jc),T(er))},n.\u0275prov=me({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),QM=(()=>{class n extends YM{constructor(e,i,r,o){super(i),this.translate=e,this.globals=i,this.messageService=r,this.connection=o,this.adjustToastPosition(),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}adjustToastPosition(){this.messageService.changeClass("toast-bottom-center-verse")}getPostData(){var e=this;return Ee(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,Zd.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,Zd.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,Zd.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)(T(Kt),T(ht),T(en),T(Bn))},n.\u0275prov=me({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),aQ=(()=>{class n{constructor(e,i,r,o,s,a){this.translate=e,this.globals=i,this.message=r,this.auth=o,this.waitlist=s,this.connection=a}checkForApp(){var e=this;return new b(i=>{try{Office.onReady(()=>{i.next(new sQ(this.globals,this.message,this.auth,this.waitlist)),i.complete()})}catch{if(null!=sessionStorage.getItem("verseAppData")){const o=new QM(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=Ee(function*(s){e.verseHandler(s,i)});return function(s){return o.apply(this,arguments)}}(),!1)}})}verseHandler(e,i){var r=this;return Ee(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 QM(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)(T(Kt),T(ht),T(en),T(jc),T(er),T(Bn))},n.\u0275prov=me({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),ya=(()=>{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=me({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();function lQ(n,t){1&n&&(g(0,"div"),Ae(1,"app-redirect"),_())}function cQ(n,t){1&n&&Ae(0,"app-contact-selector")}function uQ(n,t){1&n&&Ae(0,"app-info-shower")}function dQ(n,t){1&n&&Ae(0,"app-project-selector")}function hQ(n,t){1&n&&Ae(0,"app-tags-selector")}function pQ(n,t){1&n&&Ae(0,"app-address-activities")}function fQ(n,t){if(1&n&&(g(0,"div",15),j(1),_()),2&n){const e=w(4);f(1),qe(" ",e.globals.languageConfLocal.giLoginText," ")}}function mQ(n,t){if(1&n){const e=ke();g(0,"div",12),j(1),H(2,fQ,2,1,"div",13),Ae(3,"br"),g(4,"button",14),$("click",function(){return X(e),Z(w(3).crmLogin())}),j(5,"Login CRM"),_()()}if(2&n){const e=w(3);f(1),qe(" ",e.globals.languageConfLocal.pleaseLogIn," "),f(1),v("ngIf","gi"===e.globals.system)}}function gQ(n,t){if(1&n&&(g(0,"div",10),Ae(1,"app-item-documentor")(2,"app-loader")(3,"app-site-actions"),H(4,cQ,1,0,"app-contact-selector",11),H(5,uQ,1,0,"app-info-shower",11),H(6,dQ,1,0,"app-project-selector",11),H(7,hQ,1,0,"app-tags-selector",11),H(8,pQ,1,0,"app-address-activities",11),H(9,mQ,6,2,"div",9),Ae(10,"app-modal")(11,"app-webint-input"),_()),2&n){const e=w(2);v("ngStyle",e.newCSS.main)("hidden","main"!==e.globals.activeWindow),f(4),v("ngIf",e.globals.loggedIn),f(1),v("ngIf",e.globals.loggedIn),f(1),v("ngIf",e.globals.loggedIn),f(1),v("ngIf",e.globals.loggedIn),f(1),v("ngIf",e.globals.loggedIn),f(1),v("ngIf",!e.globals.loggedIn)}}function _Q(n,t){1&n&&(g(0,"div",16),Ae(1,"app-contact-creator"),_()),2&n&&v("hidden","contactCreation"!==w(2).globals.activeWindow)}function vQ(n,t){1&n&&(g(0,"div",16),Ae(1,"app-about"),_()),2&n&&v("hidden","about"!==w(2).globals.activeWindow)}function yQ(n,t){1&n&&(g(0,"div",16),Ae(1,"app-license-information"),_()),2&n&&v("hidden","license"!==w(2).globals.activeWindow)}function bQ(n,t){1&n&&(g(0,"div",16),Ae(1,"app-project-selector-page"),_()),2&n&&v("hidden","projectPage"!==w(2).globals.activeWindow)}function CQ(n,t){1&n&&(g(0,"div",16),Ae(1,"app-document-selector-page"),_()),2&n&&v("hidden","documentationTargetSelector"!==w(2).globals.activeWindow)}function wQ(n,t){1&n&&(g(0,"div",16),Ae(1,"app-user-settings"),_()),2&n&&v("hidden","userSettings"!==w(2).globals.activeWindow)}function EQ(n,t){if(1&n&&(g(0,"div",12),j(1),_()),2&n){const e=w(2);f(1),qe(" ",e.globals.languageConfLocal.itemNotSupported," ")}}function DQ(n,t){if(1&n&&(Ae(0,"input",3),g(1,"div",4),H(2,gQ,12,8,"div",5),H(3,_Q,2,1,"div",6),H(4,vQ,2,1,"div",6),H(5,yQ,2,1,"div",6),H(6,bQ,2,1,"div",6),H(7,CQ,2,1,"div",6),H(8,wQ,2,1,"div",6),g(9,"div",7),Ae(10,"mat-progress-spinner",8),_(),H(11,EQ,2,1,"div",9),_()),2&n){const e=w();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(2),v("diameter",30),f(1),v("ngIf",e.globals.itemNotSupported)}}let PC=(()=>{class n{constructor(e,i,r,o,s,a,l,c,u,d){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.title="Business Mail",this.newCSS={main:{},overflowContainer:{}},this.isInit=!1}ngOnInit(){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)},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 Ee(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(){}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(fC),p(aQ),p(cl),p(ht),p(Ji),p(Bn),p(ya),p(ir),p(vc))},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&&(Ae(0,"link",0),H(1,lQ,2,0,"div",1),H(2,DQ,12,10,"ng-template",null,2,Dn)),2&e){const r=Jt(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 LC(n,t=Ec){const i=function SQ(n){return n instanceof Date&&!isNaN(+n)}(n)?+n-t.now():Math.abs(n);return r=>r.lift(new AQ(i,t))}class AQ{constructor(t,e){this.delay=t,this.scheduler=e}call(t,e){return e.subscribe(new FC(t,this.delay,this.scheduler))}}class FC extends A{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(FC.dispatch,this.delay,{source:this,destination:this.destination,scheduler:t}))}scheduleNotification(t){if(!0===this.errored)return;const e=this.scheduler,i=new TQ(e.now()+this.delay,t);this.queue.push(i),!1===this.active&&this._schedule(e)}_next(t){this.scheduleNotification(lr.createNext(t))}_error(t){this.errored=!0,this.queue=[],this.destination.error(t),this.unsubscribe()}_complete(){this.scheduleNotification(lr.createComplete()),this.unsubscribe()}}class TQ{constructor(t,e){this.time=t,this.notification=e}}const xQ=["mat-menu-item",""];function IQ(n,t){1&n&&(kl(),g(0,"svg",2),Ae(1,"polygon",3),_())}const XM=["*"];function MQ(n,t){if(1&n){const e=ke();g(0,"div",0),$("keydown",function(r){return X(e),Z(w()._handleKeydown(r))})("click",function(){return X(e),Z(w().closed.emit("click"))})("@transformMenu.start",function(r){return X(e),Z(w()._onAnimationStart(r))})("@transformMenu.done",function(r){return X(e),Z(w()._onAnimationDone(r))}),g(1,"div",1),jt(2),_()()}if(2&n){const e=w();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 Rm={transformMenu:$r("transformMenu",[zn("void",Ft({opacity:0,transform:"scale(0.8)"})),ui("void => enter",_i("120ms cubic-bezier(0, 0, 0.2, 1)",Ft({opacity:1,transform:"scale(1)"}))),ui("* => void",_i("100ms 25ms linear",Ft({opacity:0})))]),fadeInItems:$r("fadeInItems",[zn("showing",Ft({opacity:1})),ui("void => *",[Ft({opacity:0}),_i("400ms 100ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])},kQ=new ge("MatMenuContent"),NC=new ge("MAT_MENU_PANEL"),RQ=Wo(Ms(class{}));let Jd=(()=>{class n extends RQ{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 L,this._focused=new L,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 Ua,this._tabSubscription=E.EMPTY,this._classList={},this._panelAnimationState="void",this._animationDone=new L,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-"+PQ++}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=at(e)}get hasBackdrop(){return this._hasBackdrop}set hasBackdrop(e){this._hasBackdrop=at(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 yf(this._directDescendantItems).withWrap().withTypeAhead().withHomeAndEnd(),this._tabSubscription=this._keyManager.tabOut.subscribe(()=>this.closed.emit("tab")),this._directDescendantItems.changes.pipe(ri(this._directDescendantItems),Qn(e=>Mn(...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(ri(this._directDescendantItems),Qn(i=>Mn(...i.map(r=>r._hovered))))}addItem(e){}removeItem(e){}_handleKeydown(e){const i=e.keyCode,r=this._keyManager;switch(i){case 27:Di(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(an(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(ri(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(Xe),p(et),p(ZM),p(It))},n.\u0275dir=fe({type:n,contentQueries:function(e,i,r){if(1&e&&(Ht(r,kQ,5),Ht(r,Jd,5),Ht(r,Jd,4)),2&e){let o;de(o=he())&&(i.lazyContent=o.first),de(o=he())&&(i._allItems=o),de(o=he())&&(i.items=o)}},viewQuery:function(e,i){if(1&e&&Te(bn,5),2&e){let r;de(r=he())&&(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})(),JM=(()=>{class n extends eh{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(Xe),p(et),p(ZM),p(It))},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:[ot([{provide:NC,useExisting:n}]),De],ngContentSelectors:XM,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,MQ,3,6,"ng-template"))},dependencies:[Wa],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:[Rm.transformMenu,Rm.fadeInItems]},changeDetection:0}),n})();const ek=new ge("mat-menu-scroll-strategy"),FQ={provide:ek,deps:[ur],useFactory:function LQ(n){return()=>n.scrollStrategies.reposition()}},tk=Ds({passive:!0});let NQ=(()=>{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=>{wf(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 eh?s:void 0,i.nativeElement.addEventListener("touchstart",this._handleTouchStart,tk),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,tk),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 eh&&(e._startAnimation(),e._directDescendantItems.changes.pipe(Xt(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 eh?(i._resetAnimation(),i.lazyContent?i._animationDone.pipe(An(r=>"void"===r.toState),an(1),Xt(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 Tc({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 Mn(e,this._parentMaterialMenu?this._parentMaterialMenu.closed:Fe(),this._parentMaterialMenu?this._parentMaterialMenu._hovered().pipe(An(s=>s!==this._menuItemInstance),An(()=>this._menuOpen)):Fe(),i)}_handleMousedown(e){Cf(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(An(e=>e===this._menuItemInstance&&!e.disabled),LC(0,gb)).subscribe(()=>{this._openedBy="mouse",this.menu instanceof eh&&this.menu._isAnimating?this.menu._animationDone.pipe(an(1),LC(0,gb),Xt(this._parentMaterialMenu._hovered())).subscribe(()=>this.openMenu()):this.openMenu()}))}_getPortal(e){return(!this._portal||this._portal.templateRef!==e.templateRef)&&(this._portal=new xs(e.templateRef,this._viewContainerRef)),this._portal}}return n.\u0275fac=function(e){return new(e||n)(p(ur),p(Xe),p(En),p(ek),p(NC,8),p(Jd,10),p(tr,8),p(So),p(et))},n.\u0275dir=fe({type:n,hostVars:3,hostBindings:function(e,i){1&e&&$("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})(),nk=(()=>{class n extends NQ{}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:[De]}),n})(),BQ=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=dt({type:n}),n.\u0275inj=ct({providers:[FQ],imports:[Xi,Lt,ha,xc,Ac,Lt]}),n})();const jQ=["*"];let Om;function th(n){return function HQ(){if(void 0===Om&&(Om=null,typeof window<"u")){const n=window;void 0!==n.trustedTypes&&(Om=n.trustedTypes.createPolicy("angular#components",{createHTML:t=>t}))}return Om}()?.createHTML(n)||n}function ik(n){return Error(`Unable to find icon with the name "${n}"`)}function rk(n){return Error(`The URL provided to MatIconRegistry was not trusted as a resource URL via Angular's DomSanitizer. Attempted URL was "${n}".`)}function ok(n){return Error(`The literal provided to MatIconRegistry was not trusted as safe HTML by Angular's DomSanitizer. Attempted literal was "${n}".`)}class pl{constructor(t,e,i){this.url=t,this.svgText=e,this.options=i}}let Pm=(()=>{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 pl(r,null,o))}addSvgIconResolver(e){return this._resolvers.push(e),this}addSvgIconLiteralInNamespace(e,i,r,o){const s=this._sanitizer.sanitize(sn.HTML,r);if(!s)throw ok(r);const a=th(s);return this._addSvgIconConfig(e,i,new pl("",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 pl(i,null,r))}addSvgIconSetLiteralInNamespace(e,i,r){const o=this._sanitizer.sanitize(sn.HTML,i);if(!o)throw ok(i);const s=th(o);return this._addSvgIconSetConfig(e,new pl("",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(sn.RESOURCE_URL,e);if(!i)throw rk(e);const r=this._cachedIconsByUrl.get(i);return r?Fe(Lm(r)):this._loadSvgIconFromConfig(new pl(e,null)).pipe(Xn(o=>this._cachedIconsByUrl.set(i,o)),ue(o=>Lm(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(ik(r))}ngOnDestroy(){this._resolvers=[],this._svgIconConfigs.clear(),this._iconSetConfigs.clear(),this._cachedIconsByUrl.clear()}_getSvgFromConfig(e){return e.svgText?Fe(Lm(this._svgElementFromConfig(e))):this._loadSvgIconFromConfig(e).pipe(ue(i=>Lm(i)))}_getSvgFromIconSetConfigs(e,i){const r=this._extractIconWithNameFromAnySet(e,i);return r?Fe(r):by(i.filter(s=>!s.svgText).map(s=>this._loadSvgIconSetFromConfig(s).pipe(Ps(a=>{const c=`Loading icon set URL: ${this._sanitizer.sanitize(sn.RESOURCE_URL,s.url)} failed: ${a.message}`;return this._errorHandler.handleError(new Error(c)),Fe(null)})))).pipe(ue(()=>{const s=this._extractIconWithNameFromAnySet(e,i);if(!s)throw ik(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(Xn(i=>e.svgText=i),ue(()=>this._svgElementFromConfig(e)))}_loadSvgIconSetFromConfig(e){return e.svgText?Fe(null):this._fetchIcon(e).pipe(Xn(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(th(""));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(th("")),r=e.attributes;for(let o=0;oth(c)),Kf(()=>this._inProgressUrlFetches.delete(s)),Mw());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"],KQ=ak.map(n=>`[${n}]`).join(", "),YQ=/^url\(['"]?#(.*?)['"]?\)$/;let QQ=(()=>{class n extends zQ{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=at(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(KQ),r=this._elementsWithExternalReferences=this._elementsWithExternalReferences||new Map;for(let o=0;o{const a=i[o],l=a.getAttribute(s),c=l?l.match(YQ):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(an(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(Xe),p(Pm),Hr("aria-hidden"),p(WQ),p(ds),p(GQ,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:[De],ngContentSelectors:jQ,decls:1,vars:0,template:function(e,i){1&e&&(Pn(),jt(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})(),XQ=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=dt({type:n}),n.\u0275inj=ct({imports:[Lt,Lt]}),n})();function ZQ(n,t){if(1&n){const e=ke();g(0,"div",20),$("click",function(){return X(e),Z(w(2).toggleClass(2))}),Ze(1,"translate"),_()}if(2&n){const e=w(2);wi(e.iconConfigLocal[2].model.classAssignment[e.iconConfigLocal[2].model.value]),Dt("title",Je(1,5,e.iconConfigLocal[2].model.titleLC[e.iconConfigLocal[2].model.value])),v("ngStyle",e.configIcon)}}function JQ(n,t){1&n&&(g(0,"span",14),j(1,"mail"),_())}function eX(n,t){1&n&&(g(0,"span",14),j(1,"drafts"),_())}function tX(n,t){if(1&n){const e=ke();g(0,"div",21),$("click",function(){return X(e),Z(w(2).toggleClass(1))}),Ze(1,"translate"),g(2,"mat-icon"),H(3,JQ,2,0,"span",18),H(4,eX,2,0,"span",18),_()()}if(2&n){const e=w(2);wi(e.iconConfigLocal[1].model.classAssignment[e.iconConfigLocal[1].model.value]),Dt("title",Je(1,6,e.iconConfigLocal[1].model.titleLC[e.iconConfigLocal[1].model.value])),f(3),v("ngIf",!e.globals.openMail),f(1),v("ngIf",e.globals.openMail)}}function nX(n,t){1&n&&(g(0,"span",14),j(1,"attach_file"),_())}function iX(n,t){1&n&&(g(0,"span",14),j(1,"attach_file_off"),_())}function rX(n,t){if(1&n){const e=ke();g(0,"div",22)(1,"img",23),$("click",function(r){return X(e),Z(w(2).showDocumentSelector(r))}),_()()}if(2&n){const e=w(2);f(1),v("title",e.globals.languageConfLocal.selectFromAllDocuments)}}function oX(n,t){if(1&n){const e=ke();g(0,"div",12)(1,"div",13),$("click",function(){return X(e),Z(w().reload())}),g(2,"span",14),j(3,"refresh"),_()(),H(4,ZQ,2,7,"div",15),H(5,tX,5,8,"div",16),g(6,"div",17),$("click",function(){return X(e),Z(w().toggleClass(0))}),Ze(7,"translate"),g(8,"mat-icon"),H(9,nX,2,0,"span",18),H(10,iX,2,0,"span",18),_()(),H(11,rX,2,1,"div",19),_()}if(2&n){const e=w();f(1),Dt("title",e.globals.languageConfLocal.reload),f(3),v("ngIf","gi"===e.globals.system&&(e.globals.actionsAllowed||e.globals.createAllowed)),f(1),v("ngIf",e.isReadMode),f(1),wi(e.iconConfigLocal[0].model.classAssignment[e.iconConfigLocal[0].model.value]),Dt("title",Je(7,10,e.iconConfigLocal[0].model.titleLC[e.iconConfigLocal[0].model.value])),f(3),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)}}function sX(n,t){if(1&n){const e=ke();g(0,"li",9),$("click",function(){return X(e),Z(w().connectionService.logout())}),j(1),_()}if(2&n){const e=w();f(1),qe(" ",e.globals.languageConfLocal.logout," ")}}let aX=(()=>{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=hM,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()}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(){}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(ht),p(Bn),p(pM),p(po),p(ir),p(jc))},n.\u0275cmp=Ue({type:n,selectors:[["app-site-actions"]],decls:23,vars:7,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"],["firstEle",""],["class","","mat-menu-item","",3,"click",4,"ngIf"],[1,"clearfix"],["id","reload",1,"widgetReload",3,"title","click"],[1,"material-symbols-rounded"],["id","openCreate",3,"class","title","ngStyle","click",4,"ngIf"],["id","openMail",3,"class","title","click",4,"ngIf"],["id","deleteAttachments",3,"title","click"],["class","material-symbols-rounded",4,"ngIf"],["id","addAllDocsListButton",4,"ngIf"],["id","openCreate",3,"title","ngStyle","click"],["id","openMail",3,"title","click"],["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,oX,12,12,"div",2),_(),g(3,"div",3)(4,"div",4),$("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,10),$("click",function(){return i.openWebIntModal()}),j(16),_(),g(17,"li",9),$("click",function(){return i.openUserSettings()}),j(18),_(),Ae(19,"mat-divider"),H(20,sX,2,1,"li",11),g(21,"li",9),$("click",function(){return i.openLicenses()}),j(22," Info "),_()()()()),2&e){const r=Jt(12);f(2),v("ngIf",i.globals.loggedIn),f(3),qe(" ",i.userName," "),f(2),v("matMenuTriggerFor",r),f(4),v("hasBackdrop",!1),f(5),qe(" ",i.globals.languageConfLocal.webIntConfig," "),f(2),qe(" ",i.globals.languageConfLocal.userSettings," "),f(2),v("ngIf",i.loggedIn)}},dependencies:[hn,ra,gC,JM,Jd,nk,QQ,Pi],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 lX(n,t){1&n&&Ae(0,"div",11)}function cX(n,t){if(1&n&&(g(0,"div",1),H(1,lX,1,0,"div",2),g(2,"div",3),Ae(3,"div",4),g(4,"div",5),Ae(5,"div",6)(6,"div",7),_(),g(7,"div",8),Ae(8,"div",9)(9,"div",10),_()()()),2&n){const e=w();f(1),v("ngIf",!e.isModal)}}let uX=(()=>{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(zc))},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,cX,10,1,"div",0),2&e&&v("ngIf",i.loaderActive)},dependencies:[hn],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 lk(n){return new Se(3e3,!1)}function GX(){return typeof window<"u"&&typeof window.document<"u"}function BC(){return typeof process<"u"&&"[object process]"==={}.toString.call(process)}function ba(n){switch(n.length){case 0:return new _d;case 1:return n[0];default:return new k1(n)}}function ck(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,S)=>{let U=S,ee=y;if("offset"!==S)switch(U=t.normalizePropertyName(U,s),ee){case"!":ee=r.get(S);break;case ks:ee=o.get(S);break;default:ee=t.normalizeStyleValue(S,U,ee,s)}m.set(U,ee)}),h||a.push(m),c=m,l=d}),s.length)throw function OX(n){return new Se(3502,!1)}();return a}function jC(n,t,e,i){switch(t){case"start":n.onStart(()=>i(e&&HC(e,"start",n)));break;case"done":n.onDone(()=>i(e&&HC(e,"done",n)));break;case"destroy":n.onDestroy(()=>i(e&&HC(e,"destroy",n)))}}function HC(n,t,e){const o=VC(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 VC(n,t,e,i,r="",o=0,s){return{element:n,triggerName:t,fromState:e,toState:i,phaseName:r,totalTime:o,disabled:!!s}}function Or(n,t,e){let i=n.get(t);return i||n.set(t,i=e),i}function uk(n){const t=n.indexOf(":");return[n.substring(1,t),n.slice(t+1)]}let UC=(n,t)=>!1,dk=(n,t,e)=>[],hk=null;function qC(n){const t=n.parentNode||n.host;return t===hk?null:t}(BC()||typeof Element<"u")&&(GX()?(hk=(()=>document.documentElement)(),UC=(n,t)=>{for(;t;){if(t===n)return!0;t=qC(t)}return!1}):UC=(n,t)=>n.contains(t),dk=(n,t,e)=>{if(e)return Array.from(n.querySelectorAll(t));const i=n.querySelector(t);return i?[i]:[]});let fl=null,pk=!1;const fk=UC,mk=dk;let gk=(()=>{class n{validateStyleProperty(e){return function $X(n){fl||(fl=function KX(){return typeof document<"u"?document.body:null}()||{},pk=!!fl.style&&"WebkitAppearance"in fl.style);let t=!0;return fl.style&&!function WX(n){return"ebkit"==n.substring(1,6)}(n)&&(t=n in fl.style,!t&&pk&&(t="Webkit"+n.charAt(0).toUpperCase()+n.slice(1)in fl.style)),t}(e)}matchesElement(e,i){return!1}containsElement(e,i){return fk(e,i)}getParentElement(e){return qC(e)}query(e,i,r){return mk(e,i,r)}computeStyle(e,i,r){return r||""}animate(e,i,r,o,s,a=[],l){return new _d(r,o)}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=me({token:n,factory:n.\u0275fac}),n})(),zC=(()=>{class n{}return n.NOOP=new gk,n})();const GC="ng-enter",Fm="ng-leave",Nm="ng-trigger",Bm=".ng-trigger",vk="ng-animating",WC=".ng-animating";function Ca(n){if("number"==typeof n)return n;const t=n.match(/^(-?[\.\d]+)(m?s)/);return!t||t.length<2?0:$C(parseFloat(t[1]),t[2])}function $C(n,t){return"s"===t?1e3*n:n}function jm(n,t,e){return n.hasOwnProperty("duration")?n:function XX(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(lk()),{duration:0,delay:0,easing:""};r=$C(parseFloat(a[1]),a[2]);const l=a[3];null!=l&&(o=$C(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 dX(){return new Se(3100,!1)}()),a=!0),o<0&&(t.push(function hX(){return new Se(3101,!1)}()),a=!0),a&&t.splice(l,0,lk())}return{duration:r,delay:o,easing:s}}(n,t,e)}function nh(n,t={}){return Object.keys(n).forEach(e=>{t[e]=n[e]}),t}function yk(n){const t=new Map;return Object.keys(n).forEach(e=>{t.set(e,n[e])}),t}function wa(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 Ck(n,t,e){return e?t+":"+e+";":""}function wk(n){let t="";for(let e=0;e{const o=YC(r);e&&!e.has(r)&&e.set(r,n.style[o]),n.style[o]=i}),BC()&&wk(n))}function ml(n,t){n.style&&(t.forEach((e,i)=>{const r=YC(i);n.style[r]=""}),BC()&&wk(n))}function ih(n){return Array.isArray(n)?1==n.length?n[0]:I1(n):n}const KC=new RegExp("{{\\s*(.+?)\\s*}}","g");function Ek(n){let t=[];if("string"==typeof n){let e;for(;e=KC.exec(n);)t.push(e[1]);KC.lastIndex=0}return t}function Hm(n,t,e){const i=n.toString(),r=i.replace(KC,(o,s)=>{let a=t[s];return null==a&&(e.push(function fX(n){return new Se(3003,!1)}()),a=""),a.toString()});return r==i?n:r}function Vm(n){const t=[];let e=n.next();for(;!e.done;)t.push(e.value),e=n.next();return t}const eZ=/-+([a-z0-9])/g;function YC(n){return n.replace(eZ,(...t)=>t[1].toUpperCase())}function tZ(n){return n.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}function Pr(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 mX(n){return new Se(3004,!1)}()}}function Dk(n,t){return window.getComputedStyle(n)[t]}function aZ(n,t){const e=[];return"string"==typeof n?n.split(/\s*,\s*/).forEach(i=>function lZ(n,t,e){if(":"==n[0]){const l=function cZ(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 xX(n){return new Se(3015,!1)}()),t;const r=i[1],o=i[2],s=i[3];t.push(Sk(r,s));"<"==o[0]&&!("*"==r&&"*"==s)&&t.push(Sk(s,r))}(i,e,t)):e.push(n),e}const Gm=new Set(["true","1"]),Wm=new Set(["false","0"]);function Sk(n,t){const e=Gm.has(n)||Wm.has(n),i=Gm.has(t)||Wm.has(t);return(r,o)=>{let s="*"==n||n==r,a="*"==t||t==o;return!s&&e&&"boolean"==typeof r&&(s=r?Gm.has(n):Wm.has(n)),!a&&i&&"boolean"==typeof o&&(a=o?Gm.has(t):Wm.has(t)),s&&a}}const uZ=new RegExp("s*:selfs*,?","g");function QC(n,t,e,i){return new dZ(n).build(t,e,i)}class dZ{constructor(t){this._driver=t}build(t,e,i){const r=new fZ(e);return this._resetContextStyleTimingState(r),Pr(this,ih(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 _X(){return new Se(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 vX(){return new Se(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=>{Ek(l).forEach(c=>{s.hasOwnProperty(c)||o.add(c)})})}),o.size&&(Vm(o.values()),e.errors.push(function yX(n,t){return new Se(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=Pr(this,ih(t.animation),e);return{type:1,matchers:aZ(t.expr,e.errors),animation:i,queryCount:e.queryCount,depCount:e.depCount,options:gl(t.options)}}visitSequence(t,e){return{type:2,steps:t.steps.map(i=>Pr(this,i,e)),options:gl(t.options)}}visitGroup(t,e){const i=e.currentTime;let r=0;const o=t.steps.map(s=>{e.currentTime=i;const a=Pr(this,s,e);return r=Math.max(r,e.currentTime),a});return e.currentTime=r,{type:3,steps:o,options:gl(t.options)}}visitAnimate(t,e){const i=function gZ(n,t){if(n.hasOwnProperty("duration"))return n;if("number"==typeof n)return XC(jm(n,t).duration,0,"");const e=n;if(e.split(/\s+/).some(o=>"{"==o.charAt(0)&&"{"==o.charAt(1))){const o=XC(0,0,"");return o.dynamic=!0,o.strValue=e,o}const r=jm(e,t);return XC(r.duration,r.delay,r.easing)}(t.timings,e.errors);e.currentAnimateTimings=i;let r,o=t.styles?t.styles:Ft({});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=Ft(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===ks?i.push(a):e.errors.push(new Se(3002,!1)):i.push(yk(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 CX(n,t,e,i,r){return new Se(3010,!1)}()),d=!1),o=u.startTime),d&&c.set(l,{startTime:o,endTime:r}),e.options&&function JX(n,t,e){const i=t.params||{},r=Ek(n);r.length&&r.forEach(o=>{i.hasOwnProperty(o)||e.push(function pX(n){return new Se(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 wX(){return new Se(3011,!1)}()),i;let o=0;const s=[];let a=!1,l=!1,c=0;const u=t.steps.map(ee=>{const ve=this._makeStyleAst(ee,e);let ne=null!=ve.offset?ve.offset:function mZ(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}(ve.styles),Ie=0;return null!=ne&&(o++,Ie=ve.offset=ne),l=l||Ie<0||Ie>1,a=a||Ie0&&o{const ne=h>0?ve==m?1:h*ve:s[ve],Ie=ne*U;e.currentTime=y+S.delay+Ie,S.duration=Ie,this._validateStyleAst(ee,e),ee.offset=ne,i.styles.push(ee)}),i}visitReference(t,e){return{type:8,animation:Pr(this,ih(t.animation),e),options:gl(t.options)}}visitAnimateChild(t,e){return e.depCount++,{type:9,options:gl(t.options)}}visitAnimateRef(t,e){return{type:10,animation:this.visitReference(t.animation,e),options:gl(t.options)}}visitQuery(t,e){const i=e.currentQuerySelector,r=t.options||{};e.queryCount++,e.currentQuery=t;const[o,s]=function hZ(n){const t=!!n.split(/\s*,\s*/).find(e=>":self"==e);return t&&(n=n.replace(uZ,"")),n=n.replace(/@\*/g,Bm).replace(/@\w+/g,e=>Bm+"-"+e.slice(1)).replace(/:animating/g,WC),[n,t]}(t.selector);e.currentQuerySelector=i.length?i+" "+o:o,Or(e.collectedStyles,e.currentQuerySelector,new Map);const a=Pr(this,ih(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:gl(t.options)}}visitStagger(t,e){e.currentQuery||e.errors.push(function AX(){return new Se(3013,!1)}());const i="full"===t.timings?{duration:0,delay:0,easing:"full"}:jm(t.timings,e.errors,!0);return{type:12,animation:Pr(this,ih(t.animation),e),timings:i,options:null}}}class fZ{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 gl(n){return n?(n=nh(n)).params&&(n.params=function pZ(n){return n?nh(n):null}(n.params)):n={},n}function XC(n,t,e){return{duration:n,delay:t,easing:e}}function ZC(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 $m{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 yZ=new RegExp(":enter","g"),CZ=new RegExp(":leave","g");function JC(n,t,e,i,r,o=new Map,s=new Map,a,l,c=[]){return(new wZ).buildKeyframes(n,t,e,i,r,o,s,a,l,c)}class wZ{buildKeyframes(t,e,i,r,o,s,a,l,c,u=[]){c=c||new $m;const d=new ew(t,e,c,r,o,u,[]);d.options=l;const h=l.delay?Ca(l.delay):0;d.currentTimeline.delayNextStep(h),d.currentTimeline.setStyles([s],null,d.errors,l),Pr(this,i,d);const m=d.timelines.filter(y=>y.containsAnimation());if(m.length&&a.size){let y;for(let S=m.length-1;S>=0;S--){const U=m[S];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()):[ZC(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?Ca(i.duration):null,a=null!=i.delay?Ca(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),Pr(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=Km);const s=Ca(o.delay);r.delayNextStep(s)}t.steps.length&&(t.steps.forEach(s=>Pr(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?Ca(t.options.delay):0;t.steps.forEach(s=>{const a=e.createSubContext(t.options);o&&a.delayNextStep(o),Pr(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 jm(e.params?Hm(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?Ca(r.delay):0;o&&(6===e.previousNode.type||0==i&&e.currentTimeline.hasCurrentStyleProperties())&&(e.currentTimeline.snapshotCurrentStyles(),e.previousNode=Km);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),Pr(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;Pr(this,t.animation,e),e.previousNode=t,i.currentStaggerTime=r.currentTime-d+(r.startTime-i.currentTimeline.startTime)}}const Km={};class ew{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=Km,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=l||new Ym(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=Ca(i.duration)),null!=i.delay&&(r.delay=Ca(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]=Hm(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 ew(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=Km,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 EZ(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(yZ,"."+this._enterClassName)).replace(CZ,"."+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 TX(n){return new Se(3014,!1)}()),a}}class Ym{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 Ym(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||ks),this._currentKeyframe.set(e,ks);this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(t,e,i,r){e&&this._previousKeyframe.set("easing",e);const o=r&&r.params||{},s=function DZ(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,ks)}else wa(r,e)}),e}(t,this._globalTimelineStyles);for(let[a,l]of s){const c=Hm(l,o,i);this._pendingStyles.set(a,c),this._localTimelineStyles.has(a)||this._backFill.set(a,this._globalTimelineStyles.get(a)??ks),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=wa(a,new Map,this._backFill);c.forEach((u,d)=>{"!"===u?t.add(d):u===ks&&e.add(d)}),i||c.set("offset",l/this.duration),r.push(c)});const o=t.size?Vm(t.values()):[],s=e.size?Vm(e.values()):[];if(i){const a=r[0],l=new Map(a);a.set("offset",0),l.set("offset",1),r=[a,l]}return ZC(this.element,r,o,s,this.duration,this.startTime,this.easing,!1)}}class EZ extends Ym{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=wa(t[0]);l.set("offset",0),o.push(l);const c=wa(t[0]);c.set("offset",xk(a)),o.push(c);const u=t.length-1;for(let d=1;d<=u;d++){let h=wa(t[d]);const m=h.get("offset");h.set("offset",xk((e+m*i)/s)),o.push(h)}i=s,e=0,r="",t=o}return ZC(this.element,t,this.preStyleProps,this.postStyleProps,i,e,r,!0)}}function xk(n,t=3){const e=Math.pow(10,t-1);return Math.round(n*e)/e}class tw{}const SZ=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 AZ extends tw{normalizePropertyName(t,e){return YC(t)}normalizeStyleValue(t,e,i,r){let o="";const s=i.toString().trim();if(SZ.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 gX(n,t){return new Se(3005,!1)}())}return s+o}}function Ik(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 nw={};class Mk{constructor(t,e,i){this._triggerName=t,this.ast=e,this._stateStyles=i}match(t,e,i,r){return function TZ(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||nw,y=this.buildStyles(i,a&&a.params||nw,d),S=l&&l.params||nw,U=this.buildStyles(r,S,d),ee=new Set,ve=new Map,ne=new Map,Ie="void"===r,tt={params:xZ(S,h),delay:this.ast.options?.delay},_t=u?[]:JC(t,e,this.ast.animation,o,s,y,U,tt,c,d);let Gt=0;if(_t.forEach(Wn=>{Gt=Math.max(Wn.duration+Wn.delay,Gt)}),d.length)return Ik(e,this._triggerName,i,r,Ie,y,U,[],[],ve,ne,Gt,d);_t.forEach(Wn=>{const bi=Wn.element,Sa=Or(ve,bi,new Set);Wn.preStyleProps.forEach(Mo=>Sa.add(Mo));const Ks=Or(ne,bi,new Set);Wn.postStyleProps.forEach(Mo=>Ks.add(Mo)),bi!==e&&ee.add(bi)});const pn=Vm(ee.values());return Ik(e,this._triggerName,i,r,Ie,y,U,_t,pn,ve,ne,Gt)}}function xZ(n,t){const e=nh(t);for(const i in n)n.hasOwnProperty(i)&&null!=n[i]&&(e[i]=n[i]);return e}class IZ{constructor(t,e,i){this.styles=t,this.defaultParams=e,this.normalizer=i}buildStyles(t,e){const i=new Map,r=nh(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=Hm(s,r,e));const l=this.normalizer.normalizePropertyName(a,e);s=this.normalizer.normalizeStyleValue(a,l,s,e),i.set(l,s)})}),i}}class kZ{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 IZ(r.style,r.options&&r.options.params||{},i))}),kk(this.states,"true","1"),kk(this.states,"false","0"),e.transitions.forEach(r=>{this.transitionFactories.push(new Mk(t,r,this.states))}),this.fallbackTransition=function RZ(n,t,e){return new Mk(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 kk(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 OZ=new $m;class PZ{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=QC(this._driver,e,i,[]);if(i.length)throw function PX(n){return new Se(3503,!1)}();this._animations.set(t,o)}_buildPlayer(t,e,i){const r=t.element,o=ck(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=JC(this._driver,e,o,GC,Fm,new Map,new Map,i,OZ,r),s.forEach(u=>{const d=Or(a,u.element,new Map);u.postStyleProps.forEach(h=>d.set(h,null))})):(r.push(function LX(){return new Se(3300,!1)}()),s=[]),r.length)throw function FX(n){return new Se(3504,!1)}();a.forEach((u,d)=>{u.forEach((h,m)=>{u.set(m,this._driver.computeStyle(d,m,ks))})});const c=ba(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 NX(n){return new Se(3301,!1)}();return e}listen(t,e,i,r){const o=VC(e,"","","");return jC(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 Rk="ng-animate-queued",iw="ng-animate-disabled",jZ=[],Ok={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},HZ={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},no="__ng_removed";class rw{constructor(t,e=""){this.namespaceId=e;const i=t&&t.hasOwnProperty("value");if(this.value=function zZ(n){return n??null}(i?t.value:t),i){const o=nh(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 rh="void",ow=new rw(rh);class VZ{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 BX(n,t){return new Se(3302,!1)}();if(null==i||0==i.length)throw function jX(n){return new Se(3303,!1)}();if(!function GZ(n){return"start"==n||"done"==n}(i))throw function HX(n,t){return new Se(3400,!1)}();const o=Or(this._elementListeners,t,[]),s={name:e,phase:i,callback:r};o.push(s);const a=Or(this._engine.statesByElement,t,new Map);return a.has(e)||(io(t,Nm),io(t,Nm+"-"+e),a.set(e,ow)),()=>{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 VX(n){return new Se(3401,!1)}();return e}trigger(t,e,i,r=!0){const o=this._getTrigger(e),s=new sw(this.id,e,t);let a=this._engine.statesByElement.get(t);a||(io(t,Nm),io(t,Nm+"-"+e),this._engine.statesByElement.set(t,a=new Map));let l=a.get(e);const c=new rw(i,this.id);if(!(i&&i.hasOwnProperty("value"))&&l&&c.absorbOptions(l.options),a.set(e,c),l||(l=ow),c.value!==rh&&l.value===c.value){if(!function KZ(n,t){const e=Object.keys(n),i=Object.keys(t);if(e.length!=i.length)return!1;for(let r=0;r{ml(t,U),es(t,ee)})}return}const h=Or(this._engine.playersByElement,t,[]);h.forEach(S=>{S.namespaceId==this.id&&S.triggerName==e&&S.queued&&S.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,Rk),s.onStart(()=>{Kc(t,Rk)})),s.onDone(()=>{let S=this.players.indexOf(s);S>=0&&this.players.splice(S,1);const U=this._engine.playersByElement.get(t);if(U){let ee=U.indexOf(s);ee>=0&&U.splice(ee,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,Bm,!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,rh,r);u&&a.push(u)}}),a.length)return this._engine.markElementAsRemoved(this.id,t,!0,e,s),i&&ba(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)||ow,u=new rw(rh),d=new sw(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===Ok)&&(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=VC(o,i.triggerName,i.fromState.value,i.toState.value);l._data=t,jC(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 UZ{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 VZ(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(Qm(e)){const o=this._fetchNamespace(t);if(o)return o.trigger(e,i,r),!0}return!1}insertNode(t,e,i,r){if(!Qm(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,iw)):this.disabledNodes.has(t)&&(this.disabledNodes.delete(t),Kc(t,iw))}removeNode(t,e,i,r){if(Qm(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 Qm(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,Bm,!0);e.forEach(i=>this.destroyActiveAnimationsForElement(i)),0!=this.playersByQueriedElement.size&&(e=this.driver.query(t,WC,!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 ba(this.players).onDone(()=>t());t()})}processLeaveNode(t){const e=t[no];if(e&&e.setForRemoval){if(t[no]=Ok,e.namespaceId){this.destroyInnerAnimations(t);const i=this._fetchNamespace(e.namespaceId);i&&i.clearElementCache(t)}this._onRemovalComplete(t,e.setForRemoval)}t.classList?.contains(iw)&&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?ba(e).onDone(()=>{i.forEach(r=>r())}):i.forEach(r=>r())}}reportError(t){throw function UX(n){return new Se(3402,!1)}()}_flushAnimations(t,e){const i=new $m,r=[],o=new Map,s=[],a=new Map,l=new Map,c=new Map,u=new Set;this.disabledNodes.forEach(nt=>{u.add(nt);const ft=this.driver.query(nt,".ng-animate-queued",!0);for(let wt=0;wt{const wt=GC+S++;y.set(ft,wt),nt.forEach(on=>io(on,wt))});const U=[],ee=new Set,ve=new Set;for(let nt=0;ntee.add(on)):ve.add(ft))}const ne=new Map,Ie=Fk(h,Array.from(ee));Ie.forEach((nt,ft)=>{const wt=Fm+S++;ne.set(ft,wt),nt.forEach(on=>io(on,wt))}),t.push(()=>{m.forEach((nt,ft)=>{const wt=y.get(ft);nt.forEach(on=>Kc(on,wt))}),Ie.forEach((nt,ft)=>{const wt=ne.get(ft);nt.forEach(on=>Kc(on,wt))}),U.forEach(nt=>{this.processLeaveNode(nt)})});const tt=[],_t=[];for(let nt=this._namespaceList.length-1;nt>=0;nt--)this._namespaceList[nt].drainQueuedTransitions(e).forEach(wt=>{const on=wt.player,Ci=wt.element;if(tt.push(on),this.collectedEnterElements.length){const Bi=Ci[no];if(Bi&&Bi.setForMove){if(Bi.previousTriggersValues&&Bi.previousTriggersValues.has(wt.triggerName)){const El=Bi.previousTriggersValues.get(wt.triggerName),oo=this.statesByElement.get(wt.element);if(oo&&oo.has(wt.triggerName)){const yg=oo.get(wt.triggerName);yg.value=El,oo.set(wt.triggerName,yg)}}return void on.destroy()}}const rs=!d||!this.driver.containsElement(d,Ci),Lr=ne.get(Ci),Aa=y.get(Ci),jn=this._buildInstruction(wt,i,Aa,Lr,rs);if(jn.errors&&jn.errors.length)return void _t.push(jn);if(rs)return on.onStart(()=>ml(Ci,jn.fromStyles)),on.onDestroy(()=>es(Ci,jn.toStyles)),void r.push(on);if(wt.isFallbackTransition)return on.onStart(()=>ml(Ci,jn.fromStyles)),on.onDestroy(()=>es(Ci,jn.toStyles)),void r.push(on);const cO=[];jn.timelines.forEach(Bi=>{Bi.stretchStartingKeyframe=!0,this.disabledNodes.has(Bi.element)||cO.push(Bi)}),jn.timelines=cO,i.append(Ci,jn.timelines),s.push({instruction:jn,player:on,element:Ci}),jn.queriedElements.forEach(Bi=>Or(a,Bi,[]).push(on)),jn.preStyleProps.forEach((Bi,El)=>{if(Bi.size){let oo=l.get(El);oo||l.set(El,oo=new Set),Bi.forEach((yg,Iw)=>oo.add(Iw))}}),jn.postStyleProps.forEach((Bi,El)=>{let oo=c.get(El);oo||c.set(El,oo=new Set),Bi.forEach((yg,Iw)=>oo.add(Iw))})});if(_t.length){const nt=[];_t.forEach(ft=>{nt.push(function qX(n,t){return new Se(3505,!1)}())}),tt.forEach(ft=>ft.destroy()),this.reportError(nt)}const Gt=new Map,pn=new Map;s.forEach(nt=>{const ft=nt.element;i.has(ft)&&(pn.set(ft,ft),this._beforeAnimationBuild(nt.player.namespaceId,nt.instruction,Gt))}),r.forEach(nt=>{const ft=nt.element;this._getPreviousPlayers(ft,!1,nt.namespaceId,nt.triggerName,null).forEach(on=>{Or(Gt,ft,[]).push(on),on.destroy()})});const Wn=U.filter(nt=>Bk(nt,l,c)),bi=new Map;Lk(bi,this.driver,ve,c,ks).forEach(nt=>{Bk(nt,l,c)&&Wn.push(nt)});const Ks=new Map;m.forEach((nt,ft)=>{Lk(Ks,this.driver,new Set(nt),l,"!")}),Wn.forEach(nt=>{const ft=bi.get(nt),wt=Ks.get(nt);bi.set(nt,new Map([...Array.from(ft?.entries()??[]),...Array.from(wt?.entries()??[])]))});const Mo=[],au=[],lu={};s.forEach(nt=>{const{element:ft,player:wt,instruction:on}=nt;if(i.has(ft)){if(u.has(ft))return wt.onDestroy(()=>es(ft,on.toStyles)),wt.disabled=!0,wt.overrideTotalTime(on.totalTime),void r.push(wt);let Ci=lu;if(pn.size>1){let Lr=ft;const Aa=[];for(;Lr=Lr.parentNode;){const jn=pn.get(Lr);if(jn){Ci=jn;break}Aa.push(Lr)}Aa.forEach(jn=>pn.set(jn,Ci))}const rs=this._buildAnimation(wt.namespaceId,on,Gt,o,Ks,bi);if(wt.setRealPlayer(rs),Ci===lu)Mo.push(wt);else{const Lr=this.playersByElement.get(Ci);Lr&&Lr.length&&(wt.parentPlayer=ba(Lr)),r.push(wt)}}else ml(ft,on.fromStyles),wt.onDestroy(()=>es(ft,on.toStyles)),au.push(wt),u.has(ft)&&r.push(wt)}),au.forEach(nt=>{const ft=o.get(nt.element);if(ft&&ft.length){const wt=ba(ft);nt.setRealPlayer(wt)}}),r.forEach(nt=>{nt.parentPlayer?nt.syncPlayerEvents(nt.parentPlayer):nt.destroy()});for(let nt=0;nt!rs.destroyed);Ci.length?WZ(this,ft,Ci):this.processLeaveNode(ft)}return U.length=0,Mo.forEach(nt=>{this.players.push(nt),nt.onDone(()=>{nt.destroy();const ft=this.players.indexOf(nt);this.players.splice(ft,1)}),nt.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==rh;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=Or(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)})}ml(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 S=y.element;u.add(S);const U=S[no];if(U&&U.removedBeforeQueried)return new _d(y.duration,y.delay);const ee=S!==l,ve=function $Z(n){const t=[];return Nk(n,t),t}((i.get(S)||jZ).map(Gt=>Gt.getRealPlayer())).filter(Gt=>!!Gt.element&&Gt.element===S),ne=o.get(S),Ie=s.get(S),tt=ck(0,this._normalizer,0,y.keyframes,ne,Ie),_t=this._buildPlayer(y,tt,ve);if(y.subTimeline&&r&&d.add(S),ee){const Gt=new sw(t,a,S);Gt.setRealPlayer(_t),c.push(Gt)}return _t});c.forEach(y=>{Or(this.playersByQueriedElement,y.element,[]).push(y),y.onDone(()=>function qZ(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,vk));const m=ba(h);return m.onDestroy(()=>{u.forEach(y=>Kc(y,vk)),es(l,e.toStyles)}),d.forEach(y=>{Or(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 _d(t.duration,t.delay)}}class sw{constructor(t,e,i){this.namespaceId=t,this.triggerName=e,this.element=i,this._player=new _d,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=>jC(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){Or(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 Qm(n){return n&&1===n.nodeType}function Pk(n,t){const e=n.style.display;return n.style.display=t??"none",e}function Lk(n,t,e,i,r){const o=[];e.forEach(l=>o.push(Pk(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]=HZ,s.push(c))}),n.set(c,u)});let a=0;return e.forEach(l=>Pk(l,o[a++])),s}function Fk(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 Kc(n,t){n.classList?.remove(t)}function WZ(n,t,e){ba(e).onDone(()=>n.processLeaveNode(t))}function Nk(n,t){for(let e=0;er.add(o)):t.set(n,i),e.delete(n),!0}class Xm{constructor(t,e,i){this.bodyNode=t,this._driver=e,this._normalizer=i,this._triggerCache={},this.onRemovalComplete=(r,o)=>{},this._transitionEngine=new UZ(t,e,i),this._timelineEngine=new PZ(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=QC(this._driver,o,l,[]);if(l.length)throw function RX(n,t){return new Se(3404,!1)}();a=function MZ(n,t,e){return new kZ(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]=uk(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]=uk(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 QZ=(()=>{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&&es(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(es(this._element,this._initialStyles),this._endStyles&&(es(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(n.initialStylesByElement.delete(this._element),this._startStyles&&(ml(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(ml(this._element,this._endStyles),this._endStyles=null),es(this._element,this._initialStyles),this._state=3)}}return n.initialStylesByElement=new WeakMap,n})();function aw(n){let t=null;return n.forEach((e,i)=>{(function XZ(n){return"display"===n||"position"===n})(i)&&(t=t||new Map,t.set(i,e))}),t}class jk{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:Dk(this.element,r))}),this.currentSnapshot=t}triggerCallback(t){const e="start"===t?this._onStartFns:this._onDoneFns;e.forEach(i=>i()),e.length=0}}class ZZ{validateStyleProperty(t){return!0}validateAnimatableStyleProperty(t){return!0}matchesElement(t,e){return!1}containsElement(t,e){return fk(t,e)}getParentElement(t){return qC(t)}query(t,e,i){return mk(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 jk);(function nZ(n,t){return 0===n||0===t})(i,r)&&u.forEach(m=>{m.currentSnapshot.forEach((y,S)=>c.set(S,y))});let d=function ZX(n){return n.length?n[0]instanceof Map?n:n.map(t=>yk(t)):[]}(e).map(m=>wa(m));d=function iZ(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,Dk(n,a)))}}return t}(t,d,c);const h=function YZ(n,t){let e=null,i=null;return Array.isArray(t)&&t.length?(e=aw(t[0]),t.length>1&&(i=aw(t[t.length-1]))):t instanceof Map&&(e=aw(t)),e||i?new QZ(n,e,i):null}(t,d);return new jk(t,d,l,h)}}let JZ=(()=>{class n extends T1{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)?I1(e):e;return Hk(this._renderer,null,i,"register",[r]),new eJ(i,this._renderer)}}return n.\u0275fac=function(e){return new(e||n)(T(Ru),T(pt))},n.\u0275prov=me({token:n,factory:n.\u0275fac}),n})();class eJ extends class U6{}{constructor(t,e){super(),this._id=t,this._renderer=e}create(t,e){return new tJ(this._id,t,e||{},this._renderer)}}class tJ{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 Hk(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 Hk(n,t,e,i,r){return n.setProperty(t,`@@${e}:${i}`,r)}const Vk="@.disabled";let nJ=(()=>{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 Uk("",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 iJ(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)(T(Ru),T(Xm),T(et))},n.\u0275prov=me({token:n,factory:n.\u0275fac}),n})();class Uk{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==Vk?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 iJ extends Uk{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==Vk?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 rJ(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 oJ(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 sJ=(()=>{class n extends Xm{constructor(e,i,r,o){super(e.body,i,r)}ngOnDestroy(){this.flush()}}return n.\u0275fac=function(e){return new(e||n)(T(pt),T(zC),T(tw),T(ia))},n.\u0275prov=me({token:n,factory:n.\u0275fac}),n})();const qk=[{provide:T1,useClass:JZ},{provide:tw,useFactory:function aJ(){return new AZ}},{provide:Xm,useClass:sJ},{provide:Ru,useFactory:function lJ(n,t,e){return new nJ(n,t,e)},deps:[Up,Xm,et]}],lw=[{provide:zC,useFactory:()=>new ZZ},{provide:qn,useValue:"BrowserAnimations"},...qk],zk=[{provide:zC,useClass:gk},{provide:qn,useValue:"NoopAnimations"},...qk];let cJ=(()=>{class n{static withConfig(e){return{ngModule:n,providers:e.disableAnimations?zk:lw}}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=dt({type:n}),n.\u0275inj=ct({providers:lw,imports:[tx]}),n})(),Gk=(()=>{class n{constructor(e){this.viewContainerRef=e}}return n.\u0275fac=function(e){return new(e||n)(p(En))},n.\u0275dir=fe({type:n,selectors:[["","appModal",""]]}),n})();const uJ=["modal"],dJ=["modalHeader"],hJ=["modalFooter"],pJ=["dbs"];function fJ(n,t){if(1&n){const e=ke();g(0,"div",4)(1,"div",5)(2,"h1"),j(3),_()(),g(4,"div",6),$("click",function(){return X(e),Z(w().closeModal())}),Ae(5,"div",7),_()()}if(2&n){const e=t.title,i=w();f(3),we(e),f(2),v("ngStyle",i.modCloseImage)}}function mJ(n,t){if(1&n){const e=ke();g(0,"div",8)(1,"button",9),$("click",function(){return Z((0,X(e).cancelAction)())}),j(2),_(),g(3,"button",10),$("click",function(){return Z((0,X(e).confirmAction)())}),j(4),_()()}if(2&n){const e=t.confirm,i=t.cancel;f(2),qe(" ",i," "),f(2),qe(" ",e," ")}}function gJ(n,t){}function _J(n,t){}let vJ=(()=>{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(Rs),p(hl),p(ho),p(PC),p(ht))},n.\u0275cmp=Ue({type:n,selectors:[["app-modal"]],viewQuery:function(e,i){if(1&e&&(Te(uJ,7),Te(dJ,7),Te(hJ,7),Te(Gk,7),Te(pJ,5)),2&e){let r;de(r=he())&&(i.modalTempl=r.first),de(r=he())&&(i.modalHeader=r.first),de(r=he())&&(i.modalFooter=r.first),de(r=he())&&(i.appModal=r.first),de(r=he())&&(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,fJ,6,2,"ng-template",null,0,Dn),H(2,mJ,5,2,"ng-template",null,1,Dn),H(4,gJ,0,0,"ng-template",2),H(5,_J,0,0,"ng-template",null,3,Dn))},dependencies:[ra,Gk]}),n})(),yJ=(()=>{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)(T(RC))},n.\u0275prov=me({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();function bJ(n,t){if(1&n&&(kl(),Ae(0,"circle",4)),2&n){const e=w(),i=Jt(1);Oi("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 CJ(n,t){if(1&n&&(kl(),Ae(0,"circle",4)),2&n){const e=w(),i=Jt(1);Oi("stroke-dashoffset",e._getStrokeDashOffset(),"px")("stroke-dasharray",e._getStrokeCircumference(),"px")("stroke-width",e._getCircleStrokeWidth(),"%")("transform-origin",e._getCircleTransformOrigin(i)),rt("r",e._getCircleRadius())}}const EJ=da(class{constructor(n){this._elementRef=n}},"primary"),DJ=new ge("mat-progress-spinner-default-options",{providedIn:"root",factory:function SJ(){return{diameter:100}}});class Gs extends EJ{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=Gs._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=As(t),this._spinnerAnimationLabel=this._getSpinnerAnimationLabel(),this._styleRoot&&this._attachStyleNode()}get strokeWidth(){return this._strokeWidth||this.diameter/10}set strokeWidth(t){this._strokeWidth=As(t)}get value(){return"determinate"===this.mode?this._value:0}set value(t){this._value=Math.max(0,Math.min(100,As(t)))}ngOnInit(){const t=this._elementRef.nativeElement;this._styleRoot=df(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=Gs._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(".","_")}}Gs._diameters=new WeakMap,Gs.\u0275fac=function(t){return new(t||Gs)(p(Xe),p(Fn),p(pt,8),p(qn,8),p(DJ),p(It),p(Go),p(et))},Gs.\u0275cmp=Ue({type:Gs,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),Oi("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:[De],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&&(kl(),g(0,"svg",0,1),H(2,bJ,1,11,"circle",2),H(3,CJ,1,9,"circle",3),_()),2&t&&(Oi("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:[fc,Np],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 TJ=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=dt({type:n}),n.\u0275inj=ct({imports:[Lt,Xi,Lt]}),n})();const xJ=["panel"];function IJ(n,t){if(1&n&&(g(0,"div",0,1),jt(2),_()),2&n){const e=t.id,i=w();v("id",i.id)("ngClass",i._classList),rt("aria-label",i.ariaLabel||null)("aria-labelledby",i._getPanelAriaLabelledby(e))}}const MJ=["*"];let kJ=0;class RJ{constructor(t,e){this.source=t,this.option=e}}const OJ=Wo(class{}),Wk=new ge("mat-autocomplete-default-options",{providedIn:"root",factory:function PJ(){return{autoActiveFirstOption:!1,autoSelectActiveOption:!1}}});let LJ=(()=>{class n extends OJ{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-"+kJ++,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=at(e)}get autoSelectActiveOption(){return this._autoSelectActiveOption}set autoSelectActiveOption(e){this._autoSelectActiveOption=at(e)}set classList(e){this._classList=e&&e.length?function XU(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 V2(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 RJ(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(It),p(Xe),p(Wk),p(Fn))},n.\u0275dir=fe({type:n,viewQuery:function(e,i){if(1&e&&(Te(bn,7),Te(xJ,5)),2&e){let r;de(r=he())&&(i.template=r.first),de(r=he())&&(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:[De]}),n})(),$k=(()=>{class n extends LJ{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&&(Ht(r,If,5),Ht(r,Mr,5)),2&e){let o;de(o=he())&&(i.optionGroups=o),de(o=he())&&(i.options=o)}},hostAttrs:[1,"mat-autocomplete"],inputs:{disableRipple:"disableRipple"},exportAs:["matAutocomplete"],features:[ot([{provide:xf,useExisting:n}]),De],ngContentSelectors:MJ,decls:1,vars:0,consts:[["role","listbox",1,"mat-autocomplete-panel",3,"id","ngClass"],["panel",""]],template:function(e,i){1&e&&(Pn(),H(0,IJ,3,4,"ng-template"))},dependencies:[Wa],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 Kk=new ge("mat-autocomplete-scroll-strategy"),NJ={provide:Kk,deps:[ur],useFactory:function FJ(n){return()=>n.scrollStrategies.reposition()}},BJ={provide:ar,useExisting:tn(()=>ts),multi:!0};let jJ=(()=>{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 L,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(ri(m),Qn(()=>Mn(...m.map(y=>y.onSelectionChange)))):this._zone.onStable.pipe(an(1),Qn(()=>this.optionSelections))}),this._scrollStrategy=a}get autocompleteDisabled(){return this._autocompleteDisabled}set autocompleteDisabled(e){this._autocompleteDisabled=at(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 Mn(this.optionSelections,this.autocomplete._keyManager.tabOut.pipe(An(()=>this._overlayAttached)),this._closeKeyEventStream,this._getOutsideClickStream(),this._overlayRef?this._overlayRef.detachments().pipe(An(()=>this._overlayAttached)):Fe()).pipe(ue(e=>e instanceof S1?e:null))}get activeOption(){return this.autocomplete&&this.autocomplete._keyManager?this.autocomplete._keyManager.activeItem:null}_getOutsideClickStream(){return Mn(Ts(this._document,"click"),Ts(this._document,"auxclick"),Ts(this._document,"touchend")).pipe(An(e=>{const i=Wr(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=Di(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 Mn(this._zone.onStable.pipe(an(1)),this.autocomplete.options.changes.pipe(Xn(()=>this._positionStrategy.reapplyLastPosition()),LC(0))).pipe(Qn(()=>(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)),an(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 xs(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 Tc({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=Ab(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=A1(s.offsetTop,s.offsetHeight,i._getScrollTop(),i.panel.nativeElement.offsetHeight);i._setScrollTop(a)}}}_handleOverlayEvents(e){e.keydownEvents().subscribe(i=>{(27===i.keyCode&&!Di(i)||38===i.keyCode&&Di(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(Xe),p(ur),p(En),p(et),p(It),p(Kk),p(tr,8),p(pm,9),p(pt,8),p(Go),p(Wk,8))},n.\u0275dir=fe({type:n,inputs:{autocomplete:["matAutocomplete","autocomplete"],position:["matAutocompletePosition","position"],connectedTo:["matAutocompleteConnectedTo","connectedTo"],autocompleteAttribute:["autocomplete","autocompleteAttribute"],autocompleteDisabled:["matAutocompleteDisabled","autocompleteDisabled"]},features:[kn]}),n})(),ts=(()=>{class n extends jJ{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&&$("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:[ot([BJ]),De]}),n})(),HJ=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=dt({type:n}),n.\u0275inj=ct({providers:[NJ],imports:[xc,Mf,Lt,Xi,Ac,Mf,Lt]}),n})();function VJ(n,t){if(1&n){const e=ke();g(0,"div",2)(1,"button",3),$("click",function(){return X(e),Z(w().action())}),j(2),_()()}if(2&n){const e=w();f(2),we(e.data.action)}}function UJ(n,t){}const Yk=new ge("MatSnackBarData");class Jm{constructor(){this.politeness="assertive",this.announcementMessage="",this.duration=0,this.data=null,this.horizontalPosition="center",this.verticalPosition="bottom"}}const qJ=Math.pow(2,31)-1;class uw{constructor(t,e){this._overlayRef=e,this._afterDismissed=new L,this._afterOpened=new L,this._onAction=new L,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,qJ))}_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 zJ=(()=>{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(uw),p(Yk))},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,VJ,3,1,"div",1)),2&e&&(f(1),we(i.data.message),f(1),v("ngIf",i.hasAction))},dependencies:[hn,Gc],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 GJ={snackBarState:$r("state",[zn("void, hidden",Ft({transform:"scale(0.8)",opacity:0})),zn("visible",Ft({transform:"scale(1)",opacity:1})),ui("* => visible",_i("150ms cubic-bezier(0, 0, 0.2, 1)")),ui("* => void, * => hidden",_i("75ms cubic-bezier(0.4, 0.0, 1, 1)",Ft({opacity:0})))])};let WJ=(()=>{class n extends Sf{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 L,this._onExit=new L,this._onEnter=new L,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(an(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(Xe),p(It),p(Fn),p(Jm))},n.\u0275dir=fe({type:n,viewQuery:function(e,i){if(1&e&&Te(Is,7),2&e){let r;de(r=he())&&(i._portalOutlet=r.first)}},features:[De]}),n})(),$J=(()=>{class n extends WJ{_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&&dp("@state.done",function(o){return i.onAnimationEnd(o)}),2&e&&qu("@state",i._animationState)},features:[De],decls:3,vars:2,consts:[["aria-hidden","true"],["cdkPortalOutlet",""]],template:function(e,i){1&e&&(g(0,"div",0),H(1,UJ,0,0,"ng-template",1),_(),Ae(2,"div")),2&e&&(f(2),rt("aria-live",i._live)("role",i._role))},dependencies:[Is],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:[GJ.snackBarState]}}),n})(),Qk=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=dt({type:n}),n.\u0275inj=ct({imports:[xc,Ja,Xi,FM,Lt,Lt]}),n})();const Xk=new ge("mat-snack-bar-default-options",{providedIn:"root",factory:function KJ(){return new Jm}});let YJ=(()=>{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=On.create({parent:i&&i.viewContainerRef&&i.viewContainerRef.injector||this._injector,providers:[{provide:Jm,useValue:i}]}),s=new hd(this.snackBarContainerComponent,i.viewContainerRef,o),a=e.attach(s);return a.instance.snackBarConfig=i,a.instance}_attach(e,i){const r={...new Jm,...this._defaultConfig,...i},o=this._createOverlay(r),s=this._attachSnackBarContainer(o,r),a=new uw(s,o);if(e instanceof bn){const l=new xs(e,null,{$implicit:r.data,snackBarRef:a});a.instance=s.attachTemplatePortal(l)}else{const l=this._createInjector(r,a),c=new hd(e,void 0,l),u=s.attachComponentPortal(c);a.instance=u.instance}return this._breakpointObserver.observe("(max-width: 599.98px) and (orientation: portrait)").pipe(Xt(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 Tc;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 On.create({parent:e&&e.viewContainerRef&&e.viewContainerRef.injector||this._injector,providers:[{provide:uw,useValue:i},{provide:Yk,useValue:e.data}]})}}return n.\u0275fac=function(e){return new(e||n)(T(ur),T(pb),T(On),T(cb),T(n,12),T(Xk))},n.\u0275prov=me({token:n,factory:n.\u0275fac}),n})(),eg=(()=>{class n extends YJ{constructor(e,i,r,o,s,a){super(e,i,r,o,s,a),this.simpleSnackBarComponent=zJ,this.snackBarContainerComponent=$J,this.handsetCssClass="mat-snack-bar-handset"}}return n.\u0275fac=function(e){return new(e||n)(T(ur),T(pb),T(On),T(cb),T(n,12),T(Xk))},n.\u0275prov=me({token:n,factory:n.\u0275fac,providedIn:Qk}),n})(),Zk=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=dt({type:n}),n.\u0275inj=ct({}),n})(),lee=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=dt({type:n}),n.\u0275inj=ct({imports:[Zk,ha,Lt,ud,Zk,Lt]}),n})();const Jk=new ge("CdkAccordion");let cee=0,uee=(()=>{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-"+cee++,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=at(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=at(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(Jk,12),p(It),p(gM))},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:[ot([{provide:Jk,useValue:void 0}])]}),n})(),dee=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=dt({type:n}),n.\u0275inj=ct({}),n})();const hee=["body"];function pee(n,t){}const fee=[[["mat-expansion-panel-header"]],"*",[["mat-action-row"]]],mee=["mat-expansion-panel-header","*","mat-action-row"];function gee(n,t){1&n&&Ae(0,"span",2),2&n&&v("@indicatorRotate",w()._getExpandedState())}const _ee=[[["mat-panel-title"]],[["mat-panel-description"]],"*"],vee=["mat-panel-title","mat-panel-description","*"],eR=new ge("MAT_ACCORDION"),tR="225ms cubic-bezier(0.4,0.0,0.2,1)",nR={indicatorRotate:$r("indicatorRotate",[zn("collapsed, void",Ft({transform:"rotate(0deg)"})),zn("expanded",Ft({transform:"rotate(180deg)"})),ui("expanded <=> collapsed, void => collapsed",_i(tR))]),bodyExpansion:$r("bodyExpansion",[zn("collapsed, void",Ft({height:"0px",visibility:"hidden"})),zn("expanded",Ft({height:"*",visibility:"visible"})),ui("expanded <=> collapsed, void => collapsed",_i(tR))])},iR=new ge("MAT_EXPANSION_PANEL");let yee=(()=>{class n{constructor(e,i){this._template=e,this._expansionPanel=i}}return n.\u0275fac=function(e){return new(e||n)(p(bn),p(iR,8))},n.\u0275dir=fe({type:n,selectors:[["ng-template","matExpansionPanelContent",""]]}),n})(),bee=0;const rR=new ge("MAT_EXPANSION_PANEL_DEFAULT_OPTIONS");let dw=(()=>{class n extends uee{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 L,this._headerId="mat-expansion-panel-header-"+bee++,this._bodyAnimationDone=new L,this.accordion=e,this._document=s,this._bodyAnimationDone.pipe(ff((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=at(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(ri(null),An(()=>this.expanded&&!this._portal),an(1)).subscribe(()=>{this._portal=new xs(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(eR,12),p(It),p(gM),p(En),p(pt),p(qn,8),p(rR,8))},n.\u0275cmp=Ue({type:n,selectors:[["mat-expansion-panel"]],contentQueries:function(e,i,r){if(1&e&&Ht(r,yee,5),2&e){let o;de(o=he())&&(i._lazyContent=o.first)}},viewQuery:function(e,i){if(1&e&&Te(hee,5),2&e){let r;de(r=he())&&(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:[ot([{provide:eR,useValue:void 0},{provide:iR,useExisting:n}]),De,kn],ngContentSelectors:mee,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(fee),jt(0),g(1,"div",0,1),$("@bodyExpansion.done",function(o){return i._bodyAnimationDone.next(o)}),g(3,"div",2),jt(4,1),H(5,pee,0,0,"ng-template",3),_(),jt(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:[Is],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:[nR.bodyExpansion]},changeDetection:0}),n})();class Cee{}const wee=fd(Cee);let oR=(()=>{class n extends wee{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(An(u=>!(!u.hideToggle&&!u.togglePosition))):Es;this.tabIndex=parseInt(l||"")||0,this._parentChangeSubscription=Mn(e.opened,e.closed,c,e._inputChanges.pipe(An(u=>!!(u.hideToggle||u.disabled||u.togglePosition)))).subscribe(()=>this._changeDetectorRef.markForCheck()),e.closed.pipe(An(()=>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:Di(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(dw,1),p(Xe),p(So),p(It),p(rR,8),p(qn,8),Hr("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&&$("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),Oi("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:[De],ngContentSelectors:vee,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(_ee),g(0,"span",0),jt(1),jt(2,1),jt(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:[hn],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:[nR.indicatorRotate]},changeDetection:0}),n})(),sR=(()=>{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})(),Eee=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=dt({type:n}),n.\u0275inj=ct({imports:[Xi,Lt,dee,Ja]}),n})();const Dee=["*",[["mat-card-footer"]]],See=["*","mat-card-footer"],Aee=[[["","mat-card-avatar",""],["","matCardAvatar",""]],[["mat-card-title"],["mat-card-subtitle"],["","mat-card-title",""],["","mat-card-subtitle",""],["","matCardTitle",""],["","matCardSubtitle",""]],"*"],Tee=["[mat-card-avatar], [matCardAvatar]","mat-card-title, mat-card-subtitle,\n [mat-card-title], [mat-card-subtitle],\n [matCardTitle], [matCardSubtitle]","*"];let tg=(()=>{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})(),ng=(()=>{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})(),hw=(()=>{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})(),ig=(()=>{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:See,decls:2,vars:0,template:function(e,i){1&e&&(Pn(Dee),jt(0),jt(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})(),xee=(()=>{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:Tee,decls:4,vars:0,consts:[[1,"mat-card-header-text"]],template:function(e,i){1&e&&(Pn(Aee),jt(0),g(1,"div",0),jt(2,1),_(),jt(3,2))},encapsulation:2,changeDetection:0}),n})(),Iee=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=dt({type:n}),n.\u0275inj=ct({imports:[Lt,Lt]}),n})(),Mee=0;const kee=Ms(class{}),aR="mat-badge-content";let Ree=(()=>{class n extends kee{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=Mee++,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=at(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=at(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(aR),"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 > .${aR}`);for(const i of Array.from(e))i!==this._badgeElement&&i.remove()}}return n.\u0275fac=function(e){return new(e||n)(p(et),p(Xe),p(u8),p(po),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:[De]}),n})(),Oee=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=dt({type:n}),n.\u0275inj=ct({imports:[mb,Lt,Lt]}),n})();const Pee=["input"],Lee=["label"],Fee=function(n){return{enterDuration:n}},Nee=["*"],Bee=new ge("mat-checkbox-default-options",{providedIn:"root",factory:lR});function lR(){return{color:"accent",clickAction:"check-indeterminate"}}let jee=0;const cR=lR(),Hee={provide:ar,useExisting:tn(()=>rg),multi:!0};class uR{}const Vee=fd(da(Wo(Ms(class{constructor(n){this._elementRef=n}}))));let Uee=(()=>{class n extends Vee{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||cR,this.color=this.defaultColor=this._options.color||cR.color,this.tabIndex=parseInt(s)||0,this.id=this._uniqueId=`${e}${++jee}`}get inputId(){return`${this.id||this._uniqueId}-input`}get required(){return this._required}set required(e){this._required=at(e)}ngAfterViewInit(){this._syncIndeterminate(this._indeterminate)}get checked(){return this._checked}set checked(e){const i=at(e);i!=this.checked&&(this._checked=i,this._changeDetectorRef.markForCheck())}get disabled(){return this._disabled}set disabled(e){const i=at(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=at(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){Kl()},n.\u0275dir=fe({type:n,viewQuery:function(e,i){if(1&e&&(Te(Pee,5),Te(Lee,5),Te(Ir,5)),2&e){let r;de(r=he())&&(i._inputElement=r.first),de(r=he())&&(i._labelElement=r.first),de(r=he())&&(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:[De]}),n})(),rg=(()=>{class n extends Uee{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 uR;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(Xe),p(It),p(So),p(et),Hr("tabindex"),p(qn,8),p(Bee,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:[ot([Hee]),De],ngContentSelectors:Nee,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),$("change",function(o){return i._onInteractionEvent(o)})("click",function(o){return i._onInputClick(o)}),_(),g(5,"span",5),Ae(6,"span",6),_(),Ae(7,"span",7),g(8,"span",8),kl(),g(9,"svg",9),Ae(10,"path",10),_(),function o0(){!function lP(){xt.lFrame.currentNamespace=null}()}(),Ae(11,"span",11),_()(),g(12,"span",12,13),$("cdkObserveContent",function(){return i._onLabelTextChange()}),g(14,"span",14),j(15,"\xa0"),_(),jt(16),_()()),2&e){const r=Jt(1),o=Jt(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",$n(19,Fee,"NoopAnimations"===i._animationMode?0:150))}},dependencies:[Ir,gf],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})(),dR=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=dt({type:n}),n.\u0275inj=ct({}),n})(),Gee=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=dt({type:n}),n.\u0275inj=ct({imports:[ha,Lt,ud,dR,Lt,dR]}),n})();const Wee=["*"],hR=new ge("MatChipRemove"),pR=new ge("MatChipAvatar"),fR=new ge("MatChipTrailingIcon");class $ee{constructor(t){this._elementRef=t}}const Kee=fd(da(Wo($ee),"primary"),-1);let Ea=(()=>{class n extends Kee{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 L,this._onBlur=new L,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 w1(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=at(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=at(e)}get disabled(){return this._chipListDisabled||this._disabled}set disabled(e){this._disabled=at(e)}get removable(){return this._removable}set removable(e){this._removable=at(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(an(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(Xe),p(et),p(Fn),p(E1,8),p(It),p(pt),p(qn,8),Hr("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&&(Ht(r,pR,5),Ht(r,fR,5),Ht(r,hR,5)),2&e){let o;de(o=he())&&(i.avatar=o.first),de(o=he())&&(i.trailingIcon=o.first),de(o=he())&&(i.removeIcon=o.first)}},hostAttrs:[1,"mat-chip","mat-focus-indicator"],hostVars:15,hostBindings:function(e,i){1&e&&$("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:[De]}),n})(),Yc=(()=>{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(Ea),p(Xe))},n.\u0275dir=fe({type:n,selectors:[["","matChipRemove",""]],hostAttrs:[1,"mat-chip-remove","mat-chip-trailing-icon"],hostBindings:function(e,i){1&e&&$("click",function(o){return i._handleClick(o)})},features:[ot([{provide:hR,useExisting:n}])]}),n})();const mR=new ge("mat-chips-default-options"),Xee=Eb(class{constructor(n,t,e,i){this._defaultErrorStateMatcher=n,this._parentForm=t,this._parentFormGroup=e,this.ngControl=i,this.stateChanges=new L}});let Zee=0;class Jee{constructor(t,e){this.source=t,this.value=e}}let Qc=(()=>{class n extends Xee{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 L,this._uid="mat-chip-list-"+Zee++,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=at(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(Cy.required)??!1}set required(e){this._required=at(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=at(e),this._syncChipsState()}get selectable(){return this._selectable}set selectable(e){this._selectable=at(e),this._syncChipsState()}set tabIndex(e){this._userTabIndex=e,this._tabIndex=e}get chipSelectionChanges(){return Mn(...this.chips.map(e=>e.selectionChange))}get chipFocusChanges(){return Mn(...this.chips.map(e=>e._onFocus))}get chipBlurChanges(){return Mn(...this.chips.map(e=>e._onBlur))}get chipRemoveChanges(){return Mn(...this.chips.map(e=>e.destroyed))}ngAfterContentInit(){this._keyManager=new yf(this.chips).withWrap().withVerticalOrientation().withHomeAndEnd().withHorizontalOrientation(this._dir?this._dir.value:"ltr"),this._dir&&this._dir.change.pipe(Xt(this._destroyed)).subscribe(e=>this._keyManager.withHorizontalOrientation(e)),this._keyManager.tabOut.pipe(Xt(this._destroyed)).subscribe(()=>{this._allowFocusEscape()}),this.chips.changes.pipe(ri(null),Xt(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 ul(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 Jee(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(Xe),p(It),p(tr,8),p(gc,8),p(_c,8),p(md),p(wo,10))},n.\u0275cmp=Ue({type:n,selectors:[["mat-chip-list"]],contentQueries:function(e,i,r){if(1&e&&Ht(r,Ea,5),2&e){let o;de(o=he())&&(i.chips=o)}},hostAttrs:[1,"mat-chip-list"],hostVars:14,hostBindings:function(e,i){1&e&&$("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:[ot([{provide:Gd,useExisting:n}]),De],ngContentSelectors:Wee,decls:2,vars:0,consts:[[1,"mat-chip-list-wrapper"]],template:function(e,i){1&e&&(Pn(),g(0,"div",0),jt(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})(),ete=0,Xc=(()=>{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-"+ete++,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=at(e)}get disabled(){return this._disabled||this._chipList&&this._chipList.disabled}set disabled(e){this._disabled=at(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&&!Di(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!Di(e)&&new Set(this.separatorKeyCodes).has(e.keyCode)}}return n.\u0275fac=function(e){return new(e||n)(p(Xe),p(mR))},n.\u0275dir=fe({type:n,selectors:[["input","matChipInputFor",""]],hostAttrs:[1,"mat-chip-input","mat-input-element"],hostVars:5,hostBindings:function(e,i){1&e&&$("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:[kn]}),n})(),tte=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=dt({type:n}),n.\u0275inj=ct({providers:[md,{provide:mR,useValue:{separatorKeyCodes:[13]}}],imports:[Lt]}),n})();function ite(n){const{subscriber:t,counter:e,period:i}=n;t.next(e),this.schedule({subscriber:t,counter:e+1,period:i},i)}function pw(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 Zc(n,t){const e=t?"":"none";pw(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 gR(n,t,e){pw(n.style,{position:t?"":"fixed",top:t?"":"0",opacity:t?"":"0",left:t?"":"-999em"},e)}function og(n,t){return t&&"none"!=t?n+" "+t:n}function _R(n){const t=n.toLowerCase().indexOf("ms")>-1?1:1e3;return parseFloat(n)*t}function fw(n,t){return n.getPropertyValue(t).split(",").map(i=>i.trim())}function mw(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 gw(n,t,e){const{top:i,bottom:r,left:o,right:s}=n;return e>=i&&e<=r&&t>=o&&t<=s}function oh(n,t,e){n.top+=t,n.bottom=n.top+n.height,n.left+=e,n.right=n.left+n.width}function vR(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:mw(e)})})}handleScroll(t){const e=Wr(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)&&oh(c.clientRect,a,l)}),r.top=o,r.left=s,{top:a,left:l}}getViewportScrollPosition(){return{top:window.scrollY,left:window.scrollX}}}function bR(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 yR(i),s.registerDragItem(this)}get disabled(){return this._disabled||!(!this._dropContainer||!this._dropContainer.disabled)}set disabled(t){const e=at(t);e!==this._disabled&&(this._disabled=e,this._toggleNativeDragInteractions(),this._handles.forEach(i=>Zc(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=>Zn(i)),this._handles.forEach(i=>Zc(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=Zn(t);return e!==this._rootElement&&(this._rootElement&&this._removeRootElementListeners(this._rootElement),this._ngZone.runOutsideAngular(()=>{e.addEventListener("mousedown",this._pointerDown,sg),e.addEventListener("touchstart",this._pointerDown,DR),e.addEventListener("dragstart",this._nativeDragStart,sg)}),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?Zn(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),Zc(t,!0))}enableHandle(t){this._disabledHandles.has(t)&&(this._disabledHandles.delete(t),Zc(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){sh(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(),gR(i,!1,_w),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=sh(e),o=!r&&0!==e.button,s=this._rootElement,a=Wr(e),l=!r&&this._lastTouchEventTime&&this._lastTouchEventTime+800>Date.now(),c=r?wf(e):Cf(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=mw(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){gR(this._rootElement,!0,_w),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=AR(s,this._document),this._previewRef=s,t.matchSize?TR(r,o):r.style.transform=ag(this._pickupPositionOnPage.x,this._pickupPositionOnPage.y)}else r=bR(this._rootElement),TR(r,this._initialClientRect),this._initialTransform&&(r.style.transform=this._initialTransform);return pw(r.style,{"pointer-events":"none",margin:"0",position:"fixed",top:"0",left:"0","z-index":`${this._config.zIndex||1e3}`},_w),Zc(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 rte(n){const t=getComputedStyle(n),e=fw(t,"transition-property"),i=e.find(a=>"transform"===a||"all"===a);if(!i)return 0;const r=e.indexOf(i),o=fw(t,"transition-duration"),s=fw(t,"transition-delay");return _R(o[r])+_R(s[r])}(this._preview);return 0===e?Promise.resolve():this._ngZone.runOutsideAngular(()=>new Promise(i=>{const r=s=>{(!s||Wr(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=AR(this._placeholderRef,this._document)):i=bR(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=sh(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=sh(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=SR(i,a.left+o,a.right-(l-o)),r=SR(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,Zc(this._rootElement,t))}_removeRootElementListeners(t){t.removeEventListener("mousedown",this._pointerDown,sg),t.removeEventListener("touchstart",this._pointerDown,DR),t.removeEventListener("dragstart",this._nativeDragStart,sg)}_applyRootElementTransform(t,e){const i=ag(t,e),r=this._rootElement.style;null==this._initialTransform&&(this._initialTransform=r.transform&&"none"!=r.transform?r.transform:""),r.transform=og(i,this._initialTransform)}_applyPreviewTransform(t,e){const i=this._previewTemplate?.template?void 0:this._initialTransform,r=ag(t,e);this._preview.style.transform=og(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:sh(t)?e.touch:e?e.mouse:0}_updateOnScroll(t){const e=this._parentPositions.handleScroll(t);if(e){const i=Wr(t);this._boundaryRect&&i!==this._boundaryElement&&i.contains(this._boundaryElement)&&oh(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=df(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 Zn(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 ag(n,t){return`translate3d(${Math.round(n)}px, ${Math.round(t)}px, 0)`}function SR(n,t,e){return Math.max(t,Math.min(e,n))}function sh(n){return"t"===n.type[0]}function AR(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 TR(n,t){n.style.width=`${t.width}px`,n.style.height=`${t.height}px`,n.style.transform=ag(t.left,t.top)}function ah(n,t){return Math.max(0,Math.min(t,n))}class cte{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),S=o.slice();return function lte(n,t,e){const i=ah(t,n.length-1),r=ah(e,n.length-1);if(i===r)return;const o=n[i],s=r{if(S[ee]===U)return;const ve=U.drag===t,ne=ve?m:y,Ie=ve?t.getPlaceholderElement():U.drag.getRootElement();U.offset+=ne,a?(Ie.style.transform=og(`translate3d(${Math.round(U.offset)}px, 0, 0)`,U.initialTransform),oh(U.clientRect,0,ne)):(Ie.style.transform=og(`translate3d(0, ${Math.round(U.offset)}px, 0)`,U.initialTransform),oh(U.clientRect,ne,0))}),this._previousSwap.overlaps=gw(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 Zn(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})=>{oh(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:mw(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 L,this.entered=new L,this.exited=new L,this.dropped=new L,this.sorted=new L,this._isDragging=!1,this._draggables=[],this._siblings=[],this._activeSiblings=new Set,this._viewportScrollSubscription=E.EMPTY,this._verticalScrollDirection=0,this._horizontalScrollDirection=0,this._stopScrollTimers=new L,this._cachedShadowRoot=null,this._startScrollInterval=()=>{this._stopScrolling(),function nte(n=0,t=Ec){return(!_b(n)||n<0)&&(n=0),(!t||"function"!=typeof t.schedule)&&(t=Ec),new b(e=>(e.add(t.schedule(ite,n,{subscriber:e,counter:0,period:n})),e))}(0,Y2).pipe(Xt(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=Zn(t),this._document=i,this.withScrollableParents([this.element]),e.registerDropContainer(this),this._parentPositions=new yR(i),this._sortStrategy=new cte(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=Zn(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||!vR(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||vR(s.clientRect,.05,t,e)&&([r,o]=function dte(n,t,e,i){const r=MR(t,i),o=kR(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=MR(l,e),o=kR(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=Zn(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=Zn(this.element);this._parentPositions.cache(this._scrollableElements),this._clientRect=this._parentPositions.positions.get(t).clientRect}_reset(){this._isDragging=!1;const t=Zn(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&&gw(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||!gw(this._clientRect,e,i)||!this.enterPredicate(t,this))return!1;const r=this._getShadowRoot().elementFromPoint(e,i);if(!r)return!1;const o=Zn(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=df(Zn(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 MR(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 kR(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 lg=Ds({passive:!1,capture:!0});let hte=(()=>{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 L,this.pointerUp=new L,this.scroll=new L,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,lg)})}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,lg)}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:lg}),r||this._globalListeners.set("mousemove",{handler:o=>this.pointerMove.next(o),options:lg}),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)}}))),Mn(...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)(T(et),T(pt))},n.\u0275prov=me({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const pte={dragStartThreshold:5,pointerDirectionChangeThreshold:5};let fte=(()=>{class n{constructor(e,i,r,o){this._document=e,this._ngZone=i,this._viewportRuler=r,this._dragDropRegistry=o}createDrag(e,i=pte){return new ate(e,i,this._document,this._ngZone,this._viewportRuler,this._dragDropRegistry)}createDropList(e){return new ute(e,this._dragDropRegistry,this._document,this._ngZone,this._viewportRuler)}}return n.\u0275fac=function(e){return new(e||n)(T(pt),T(et),T(Go),T(hte))},n.\u0275prov=me({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),mte=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=dt({type:n}),n.\u0275inj=ct({providers:[fte],imports:[Ac]}),n})();const gte=["webInp"];function _te(n,t){if(1&n&&(g(0,"p"),j(1),_()),2&n){const e=w(2);f(1),qe(" ",e.globals.languageConfLocal.webIntLogout," ")}}function vte(n,t){if(1&n){const e=ke();g(0,"div",1)(1,"div",2)(2,"h1"),j(3),_()(),g(4,"div",3),$("click",function(){return X(e),Z(w().closeModal())}),Ae(5,"div",4),_()(),g(6,"div",5)(7,"div",6),j(8),H(9,_te,2,1,"p",7),_(),g(10,"div",8)(11,"input",9),$("ngModelChange",function(r){return X(e),Z(w().inputValue=r)})("keyup.enter",function(){return X(e),Z(w().confirmAction())}),_(),g(12,"input",10),$("click",function(){return X(e),Z(w().confirmAction())}),_()()()}if(2&n){const e=w();f(3),we(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 yte=(()=>{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))}closeModal(){this.modal.closeAll()}checkInput(e){var i=this;return Ee(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(en),p(zd),p(zc),p(Bn),p(Rs),p(ht))},n.\u0275cmp=Ue({type:n,selectors:[["app-webint-input"]],viewQuery:function(e,i){if(1&e&&Te(gte,7),2&e){let r;de(r=he())&&(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,vte,13,5,"ng-template",null,0,Dn)},dependencies:[hn,ra,zr,Eo,qo,Jr],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})();var di=(()=>(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"}(di||(di={})),di))(),_l=(()=>(function(n){n[n.NotStarted=0]="NotStarted",n[n.InProgress=1]="InProgress",n[n.Completed=2]="Completed"}(_l||(_l={})),_l))(),cg_missingKidError_code="missing_kid_error",cg_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.",cg_missingAlgError_code="missing_alg_error",cg_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.",RR=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 pr(t,n),t.createMissingKidError=function(){return new t(cg_missingKidError_code,cg_missingKidError_desc)},t.createMissingAlgError=function(){return new t(cg_missingAlgError_code,cg_missingAlgError_desc)},t}(ut),bte=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 RR.createMissingKidError();if(!t.alg)throw RR.createMissingAlgError();var e=new n({typ:t.typ||Vf.Jwt,kid:t.kid,alg:t.alg});return JSON.stringify(e)},n}(),Fi=function(){function n(){}return n.decimalToHex=function(t){for(var e=t.toString(16);e.length<2;)e="0"+e;return e},n}(),OR=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,Fi.decimalToHex(t[0])+Fi.decimalToHex(t[1])+Fi.decimalToHex(t[2])+Fi.decimalToHex(t[3])+"-"+Fi.decimalToHex(t[4])+Fi.decimalToHex(t[5])+"-"+Fi.decimalToHex(t[6])+Fi.decimalToHex(t[7])+"-"+Fi.decimalToHex(t[8])+Fi.decimalToHex(t[9])+"-"+Fi.decimalToHex(t[10])+Fi.decimalToHex(t[11])+Fi.decimalToHex(t[12])+Fi.decimalToHex(t[13])+Fi.decimalToHex(t[14])+Fi.decimalToHex(t[15])}catch{for(var e="xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx",i="0123456789abcdef",r=0,o=te.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}(),Jc=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}(),Cte=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 Jc.utf8ArrToString(i)},n.prototype.base64DecToArr=function(t,e){for(var i=t.replace(/[^A-Za-z0-9\+\/]/g,te.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}(),Ete=function(){function n(t){this.base64Encode=new PR,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}(),vw="SHA-256",Ate=new Uint8Array([1,0,1]),ug=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:vw,modulusLength:2048,publicExponent:Ate}}return n.prototype.sha256Digest=function(t){return Oe(this,void 0,void 0,function(){var e;return Pe(this,function(i){return e=Jc.stringToUtf8Arr(t),[2,this.hasIECrypto()?this.getMSCryptoDigest(vw,e):this.getSubtleCryptoDigest(vw,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(Uf,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=Jc.stringToArrayBuffer(r),[2,this.hasIECrypto()?this.msCryptoImportKey(o,e,i):window.crypto.subtle.importKey(Uf,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(Uf,t);o.addEventListener("complete",function(s){var l=Jc.utf8ArrToString(new Uint8Array(s.target.result)).replace(/\r/g,te.EMPTY_STRING).replace(/\n/g,te.EMPTY_STRING).replace(/\t/g,te.EMPTY_STRING).split(" ").join(te.EMPTY_STRING).replace("\0",te.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(Uf,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}(),Tte=function(){function n(){this.dbName=zf,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===zf})?[2,new Promise(function(r,o){var s=window.indexedDB.deleteDatabase(zf);s.addEventListener("success",function(){return r(!0)}),s.addEventListener("error",function(){return o(!1)})})]:[2,!0]}})})},n}(),yw=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}(),LR=function(){function n(t,e){this.inMemoryCache=new yw,this.indexedDBCache=new Tte,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}(),lh=(()=>(function(n){n.asymmetricKeys="asymmetricKeys",n.symmetricKeys="symmetricKeys"}(lh||(lh={})),lh))(),xte=function(){function n(t,e){this.logger=t,this.browserCrypto=new ug(this.logger),this.b64Encode=new PR,this.b64Decode=new Cte,this.guidGenerator=new OR(this.browserCrypto),this.pkceGenerator=new Ete(this.browserCrypto),this.cache={asymmetricKeys:new LR(this.logger,lh.asymmetricKeys),symmetricKeys:new LR(this.logger,lh.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(di.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=ug.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,S,U,ee;return Pe(this,function(ve){switch(ve.label){case 0:return o=null===(r=this.performanceClient)||void 0===r?void 0:r.startMeasurement(di.CryptoOptsSignJwt,i),[4,this.cache.asymmetricKeys.getItem(e)];case 1:if(!(s=ve.sent()))throw ze.createSigningKeyNotFoundInStorageError(e);return[4,this.browserCrypto.exportJwk(s.publicKey)];case 2:return a=ve.sent(),l=ug.getJwkString(a),c=this.b64Encode.urlEncode(JSON.stringify({kid:e})),u=bte.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=Jc.stringToArrayBuffer(m=d+"."+h),[4,this.browserCrypto.sign(s.privateKey,y)];case 3:return S=ve.sent(),U=this.b64Encode.urlEncodeArr(new Uint8Array(S)),ee=m+"."+U,o&&o.endMeasurement({success:!0}),[2,ee]}})})},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}(),yi=(()=>(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"}(yi||(yi={})),yi))(),FR=function(){function n(t,e,i){this.level=yi.Info,this.localCallback=t.loggerCallback||function(){},this.piiLoggingEnabled=t.piiLoggingEnabled||!1,this.level="number"==typeof t.logLevel?t.logLevel:yi.Info,this.correlationId=t.correlationId||te.EMPTY_STRING,this.packageName=e||te.EMPTY_STRING,this.packageVersion=i||te.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+" : "+yi[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:yi.Error,containsPii:!1,correlationId:e||te.EMPTY_STRING})},n.prototype.errorPii=function(t,e){this.logMessage(t,{logLevel:yi.Error,containsPii:!0,correlationId:e||te.EMPTY_STRING})},n.prototype.warning=function(t,e){this.logMessage(t,{logLevel:yi.Warning,containsPii:!1,correlationId:e||te.EMPTY_STRING})},n.prototype.warningPii=function(t,e){this.logMessage(t,{logLevel:yi.Warning,containsPii:!0,correlationId:e||te.EMPTY_STRING})},n.prototype.info=function(t,e){this.logMessage(t,{logLevel:yi.Info,containsPii:!1,correlationId:e||te.EMPTY_STRING})},n.prototype.infoPii=function(t,e){this.logMessage(t,{logLevel:yi.Info,containsPii:!0,correlationId:e||te.EMPTY_STRING})},n.prototype.verbose=function(t,e){this.logMessage(t,{logLevel:yi.Verbose,containsPii:!1,correlationId:e||te.EMPTY_STRING})},n.prototype.verbosePii=function(t,e){this.logMessage(t,{logLevel:yi.Verbose,containsPii:!0,correlationId:e||te.EMPTY_STRING})},n.prototype.trace=function(t,e){this.logMessage(t,{logLevel:yi.Trace,containsPii:!1,correlationId:e||te.EMPTY_STRING})},n.prototype.tracePii=function(t,e){this.logMessage(t,{logLevel:yi.Trace,containsPii:!0,correlationId:e||te.EMPTY_STRING})},n.prototype.isPiiLoggingEnabled=function(){return this.piiLoggingEnabled||!1},n}(),NR=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:_l.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:_l.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!==_l.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===_l.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}(),Ite=function(){function n(){}return n.prototype.startMeasurement=function(){},n.prototype.endMeasurement=function(){},n.prototype.flushMeasurement=function(){return null},n}(),Mte=function(n){function t(){return null!==n&&n.apply(this,arguments)||this}return pr(t,n),t.prototype.generateId=function(){return"callback-id"},t.prototype.startPerformanceMeasuremeant=function(){return new Ite},t}(NR),dg={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 St(this,void 0,void 0,function(){return At(this,function(t){throw ut.createUnexpectedError("Crypto interface - generatePkceCodes() has not been implemented")})})},getPublicKeyThumbprint:function(){return St(this,void 0,void 0,function(){return At(this,function(t){throw ut.createUnexpectedError("Crypto interface - getPublicKeyThumbprint() has not been implemented")})})},removeTokenBindingKey:function(){return St(this,void 0,void 0,function(){return At(this,function(t){throw ut.createUnexpectedError("Crypto interface - removeTokenBindingKey() has not been implemented")})})},clearKeystore:function(){return St(this,void 0,void 0,function(){return At(this,function(t){throw ut.createUnexpectedError("Crypto interface - clearKeystore() has not been implemented")})})},signJwt:function(){return St(this,void 0,void 0,function(){return At(this,function(t){throw ut.createUnexpectedError("Crypto interface - signJwt() has not been implemented")})})},hashString:function(){return St(this,void 0,void 0,function(){return At(this,function(t){throw ut.createUnexpectedError("Crypto interface - hashString() has not been implemented")})})}},BR=["interaction_required","consent_required","login_required"],kte=["message_only","additional_action","basic_action","user_password_expired","consent_required"],ch_noTokensFoundError_code="no_tokens_found",ch_noTokensFoundError_desc="No refresh token found in the cache. Please sign-in.",ch_native_account_unavailable_code="native_account_unavailable",ch_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 pr(t,n),t.isInteractionRequiredError=function(e,i,r){var o=!!e&&BR.indexOf(e)>-1,s=!!r&&kte.indexOf(r)>-1,a=!!i&&BR.some(function(l){return i.indexOf(l)>-1});return o||a||s},t.createNoTokensFoundError=function(){return new t(ch_noTokensFoundError_code,ch_noTokensFoundError_desc)},t.createNativeAccountUnavailableError=function(){return new t(ch_native_account_unavailable_code,ch_native_account_unavailable_desc)},t}(ut),vl=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 pr(t,n),t}(ut);function hg(n,t){if(Ke.isEmpty(n))throw it.createClientInfoEmptyError();try{var e=t.base64Decode(n);return JSON.parse(e)}catch(i){throw it.createClientInfoDecodingError(i)}}function eu(n){if(Ke.isEmpty(n))throw it.createClientInfoDecodingError("Home account ID was empty.");var t=n.split(fr.CLIENT_INFO_SEPARATOR,2);return{uid:t[0],utid:t.length<2?te.EMPTY_STRING:t[1]}}var ns=(()=>(function(n){n[n.Default=0]="Default",n[n.Adfs=1]="Adfs"}(ns||(ns={})),ns))(),Ni=function(){function n(){}return n.prototype.generateAccountId=function(){return[this.homeAccountId,this.environment].join(fr.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 Ko.ADFS_ACCOUNT_TYPE:return Yo.ADFS;case Ko.MSAV1_ACCOUNT_TYPE:return Yo.MSA;case Ko.MSSTS_ACCOUNT_TYPE:return Yo.MSSTS;case Ko.GENERIC_ACCOUNT_TYPE:return Yo.GENERIC;default:throw it.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||te.EMPTY_STRING,t.tenantId||te.EMPTY_STRING].join(fr.CACHE_KEY_SEPARATOR).toLowerCase()},n.createAccount=function(t,e,i,r,o,s,a,l){var c,u,d,h,m,y,S=new n;S.authorityType=Ko.MSSTS_ACCOUNT_TYPE,S.clientInfo=t,S.homeAccountId=e,S.nativeAccountId=l;var U=a||r&&r.getPreferredCache();if(!U)throw it.createInvalidCacheEnvironmentError();return S.environment=U,S.realm=(null===(c=i?.claims)||void 0===c?void 0:c.tid)||te.EMPTY_STRING,i&&(S.idTokenClaims=i.claims,S.localAccountId=(null===(u=i?.claims)||void 0===u?void 0:u.oid)||(null===(d=i?.claims)||void 0===d?void 0:d.sub)||te.EMPTY_STRING,S.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]:te.EMPTY_STRING),S.name=null===(y=i?.claims)||void 0===y?void 0:y.name),S.cloudGraphHostName=o,S.msGraphHost=s,S},n.createGenericAccount=function(t,e,i,r,o,s){var a,l,c,u,d=new n;d.authorityType=i&&i.authorityType===ns.Adfs?Ko.ADFS_ACCOUNT_TYPE:Ko.GENERIC_ACCOUNT_TYPE,d.homeAccountId=t,d.realm=te.EMPTY_STRING;var h=s||i&&i.getPreferredCache();if(!h)throw it.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)||te.EMPTY_STRING,d.username=(null===(c=e?.claims)||void 0===c?void 0:c.upn)||te.EMPTY_STRING,d.name=(null===(u=e?.claims)||void 0===u?void 0:u.name)||te.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:te.EMPTY_STRING;if(e===ns.Adfs)return a;if(t)try{var l=hg(t,r);if(!Ke.isEmpty(l.uid)&&!Ke.isEmpty(l.utid))return""+l.uid+fr.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}(),uh=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 qt.ID_TOKEN:return Yo.ID_TOKEN;case qt.ACCESS_TOKEN:case qt.ACCESS_TOKEN_WITH_AUTH_SCHEME:return Yo.ACCESS_TOKEN;case qt.REFRESH_TOKEN:return Yo.REFRESH_TOKEN;default:throw it.createUnexpectedCredentialTypeError()}},n.getCredentialType=function(t){return-1!==t.indexOf(qt.ACCESS_TOKEN.toLowerCase())?-1!==t.indexOf(qt.ACCESS_TOKEN_WITH_AUTH_SCHEME.toLowerCase())?qt.ACCESS_TOKEN_WITH_AUTH_SCHEME:qt.ACCESS_TOKEN:-1!==t.indexOf(qt.ID_TOKEN.toLowerCase())?qt.ID_TOKEN:-1!==t.indexOf(qt.REFRESH_TOKEN.toLowerCase())?qt.REFRESH_TOKEN:te.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(fr.CACHE_KEY_SEPARATOR).toLowerCase()},n.generateAccountIdForCacheKey=function(t,e){return[t,e].join(fr.CACHE_KEY_SEPARATOR).toLowerCase()},n.generateCredentialIdForCacheKey=function(t,e,i,r){return[t,t===qt.REFRESH_TOKEN&&r||e,i||te.EMPTY_STRING].join(fr.CACHE_KEY_SEPARATOR).toLowerCase()},n.generateTargetForCacheKey=function(t){return(t||te.EMPTY_STRING).toLowerCase()},n.generateClaimsHashForCacheKey=function(t){return(t||te.EMPTY_STRING).toLowerCase()},n.generateSchemeForCacheKey=function(t){return t&&t.toLowerCase()!==mn.BEARER.toLowerCase()?t.toLowerCase():te.EMPTY_STRING},n}(),_r=function(){function n(t){var e=this,i=t?Ke.trimArrayEntries(jf(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||te.EMPTY_STRING).split(" "))},n.prototype.validateInputScopes=function(t){if(!t||t.length<1)throw xn.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 G1.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 it.createAppendScopeSetError(i)}},n.prototype.removeScope=function(t){if(Ke.isEmpty(t))throw it.createRemoveEmptyScopeFromSetError(t);this.scopes.delete(t.trim())},n.prototype.removeOIDCScopes=function(){var t=this;G1.forEach(function(e){t.scopes.delete(e)})},n.prototype.unionScopeSets=function(t){if(!t)throw it.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 it.createEmptyInputScopeSetError();t.containsOnlyOIDCScopes()||t.removeOIDCScopes();var e=this.unionScopeSets(t),i=t.getScopeCount(),r=this.getScopeCount();return e.size1)throw it.createMultipleMatchingAccountsInCacheError();return i[0]},n.prototype.readIdTokenFromCache=function(t,e){var r=this.getCredentialsFilteredBy({homeAccountId:e.homeAccountId,environment:e.environment,credentialType:qt.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 it.createMultipleMatchingTokensInCacheError();return o[0]},n.prototype.readAccessTokenFromCache=function(t,e,i){var r=new _r(i.scopes||[]),o=i.authenticationScheme||mn.BEARER,s=o&&o.toLowerCase()!==mn.BEARER.toLowerCase()?qt.ACCESS_TOKEN_WITH_AUTH_SCHEME:qt.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 it.createMultipleMatchingTokensInCacheError();return c[0]},n.prototype.readRefreshTokenFromCache=function(t,e,i){var s=this.getCredentialsFilteredBy({homeAccountId:e.homeAccountId,environment:e.environment,credentialType:qt.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 it.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!==qt.ACCESS_TOKEN&&t.credentialType!==qt.ACCESS_TOKEN_WITH_AUTH_SCHEME||!t.target)return!1;var r=_r.fromString(t.target),o=_r.fromString(e);return o.containsOnlyOIDCScopes()?o.removeScope(te.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(Nb)},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 qt.ID_TOKEN:return this.getIdTokenCredential(t);case qt.ACCESS_TOKEN:case qt.ACCESS_TOKEN_WITH_AUTH_SCHEME:return this.getAccessTokenCredential(t);case qt.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}(),Rte=function(n){function t(){return null!==n&&n.apply(this,arguments)||this}return pr(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 St(this,void 0,void 0,function(){return At(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),dh=function(n){function t(){return null!==n&&n.apply(this,arguments)||this}return pr(t,n),t.createIdTokenEntity=function(e,i,r,o,s){var a=new t;return a.credentialType=qt.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===qt.ID_TOKEN},t}(uh),ro=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}(),hh=function(n){function t(){return null!==n&&n.apply(this,arguments)||this}return pr(t,n),t.createAccessTokenEntity=function(e,i,r,o,s,a,l,c,u,d,h,m,y,S,U){var ee,ve,ne=new t;ne.homeAccountId=e,ne.credentialType=qt.ACCESS_TOKEN,ne.secret=r;var Ie=ro.nowSeconds();if(ne.cachedAt=Ie.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)?mn.BEARER:h,S&&(ne.requestedClaims=S,ne.requestedClaimsHash=U),(null===(ee=ne.tokenType)||void 0===ee?void 0:ee.toLowerCase())!==mn.BEARER.toLowerCase())switch(ne.credentialType=qt.ACCESS_TOKEN_WITH_AUTH_SCHEME,ne.tokenType){case mn.POP:var tt=Da.extractTokenClaims(r,u);if(null===(ve=tt?.cnf)||void 0===ve||!ve.kid)throw it.createTokenClaimsRequiredError();ne.keyId=tt.cnf.kid;break;case mn.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===qt.ACCESS_TOKEN||e.credentialType===qt.ACCESS_TOKEN_WITH_AUTH_SCHEME)},t}(uh),bw=function(n){function t(){return null!==n&&n.apply(this,arguments)||this}return pr(t,n),t.createRefreshTokenEntity=function(e,i,r,o,s,a){var l=new t;return l.clientId=o,l.credentialType=qt.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===qt.REFRESH_TOKEN},t}(uh),Cw=function(){function n(){}return n.prototype.generateAppMetadataKey=function(){return n.generateAppMetadataCacheKey(this.environment,this.clientId)},n.generateAppMetadataCacheKey=function(t,e){return[Nb,t,e].join(fr.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(Nb)&&e.hasOwnProperty("clientId")&&e.hasOwnProperty("environment")},n}(),pg=function(){function n(){this.failedRequests=[],this.errors=[],this.cacheHits=0}return n.isServerTelemetryEntity=function(t,e){var i=0===t.indexOf(Si.CACHE_KEY),r=!0;return e&&(r=e.hasOwnProperty("failedRequests")&&e.hasOwnProperty("errors")&&e.hasOwnProperty("cacheHits")),i&&r},n}(),ww=function(){function n(){this.expiresAt=ro.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=ro.nowSeconds()+86400},n.prototype.isExpired=function(){return this.expiresAt<=ro.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}(),jR=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}(),Ws=function(){function n(){}return n.setRequestState=function(t,e,i){var r=n.generateLibraryState(t,i);return Ke.isEmpty(e)?r:""+r+te.RESOURCE_DELIM+e},n.generateLibraryState=function(t,e){if(!t)throw it.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 it.createNoCryptoObjectError("parseRequestState");if(Ke.isEmpty(e))throw it.createInvalidStateError(e,"Null, undefined or empty state");try{var i=e.split(te.RESOURCE_DELIM),r=i[0],o=i.length>1?i.slice(1).join(te.RESOURCE_DELIM):te.EMPTY_STRING,s=t.base64Decode(r),a=JSON.parse(s);return{userRequestState:Ke.isEmpty(o)?te.EMPTY_STRING:o,libraryState:a}}catch(l){throw it.createInvalidStateError(e,l)}},n}(),vr=(()=>(function(n){n.HOME_ACCOUNT_ID="home_account_id",n.UPN="UPN"}(vr||(vr={})),vr))(),HR=function(){function n(t){this.validateWindowStorage(t),this.windowStorage=window[t]}return n.prototype.validateWindowStorage=function(t){if(t!==Ai.LocalStorage&&t!==Ai.SessionStorage)throw Wf.createStorageNotSupportedError(t);if(!window[t])throw Wf.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}(),VR=function(){function n(){}return n.extractBrowserRequestState=function(t,e){if(Ke.isEmpty(e))return null;try{return Ws.parseRequestState(t,e).libraryState.meta}catch(r){throw it.createInvalidStateError(e,r)}},n.parseServerResponseFromHash=function(t){if(!t)return{};var e=new rn(t);return rn.getDeserializedHash(e.getHash())},n}(),Ew=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 yw,s.browserStorage=s.setupBrowserStorage(s.cacheConfig.cacheLocation),s.temporaryCacheStorage=s.setupTemporaryCacheStorage(s.cacheConfig.cacheLocation),s.migrateCacheEntries(),s}return Ti(t,n),t.prototype.setupBrowserStorage=function(e){switch(e){case Ai.LocalStorage:case Ai.SessionStorage:try{return new HR(e)}catch(i){this.logger.verbose(i);break}}return this.cacheConfig.cacheLocation=Ai.MemoryStorage,new yw},t.prototype.setupTemporaryCacheStorage=function(e){switch(e){case Ai.LocalStorage:case Ai.SessionStorage:try{return new HR(Ai.SessionStorage)}catch(i){return this.logger.verbose(i),this.internalStorage}default:return this.internalStorage}},t.prototype.migrateCacheEntries=function(){var e=this,r=te.CACHE_PREFIX+"."+oi.CLIENT_INFO,o=te.CACHE_PREFIX+"."+oi.ERROR,s=te.CACHE_PREFIX+"."+oi.ERROR_DESC,d=[this.browserStorage.getItem(te.CACHE_PREFIX+"."+oi.ID_TOKEN),this.browserStorage.getItem(r),this.browserStorage.getItem(o),this.browserStorage.getItem(s)];[oi.ID_TOKEN,oi.CLIENT_INFO,oi.ERROR,oi.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&&Ni.isAccountEntity(r)?Io.toObject(new Ni,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&&dh.isIdTokenEntity(r)?(this.logger.trace("BrowserCacheManager.getIdTokenCredential: cache hit"),Io.toObject(new dh,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&&hh.isAccessTokenEntity(r)?(this.logger.trace("BrowserCacheManager.getAccessTokenCredential: cache hit"),Io.toObject(new hh,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&&bw.isRefreshTokenEntity(r)?(this.logger.trace("BrowserCacheManager.getRefreshTokenCredential: cache hit"),Io.toObject(new bw,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&&Cw.isAppMetadataEntity(e,r)?(this.logger.trace("BrowserCacheManager.getAppMetadata: cache hit"),Io.toObject(new Cw,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&&pg.isServerTelemetryEntity(e,r)?(this.logger.trace("BrowserCacheManager.getServerTelemetry: cache hit"),Io.toObject(new pg,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&&ww.isAuthorityMetadataEntity(e,r)?(this.logger.trace("BrowserCacheManager.getAuthorityMetadata: cache hit"),Io.toObject(new ww,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(ol.WRAPPER_SKU,e),this.internalStorage.setItem(ol.WRAPPER_VER,i)},t.prototype.getWrapperMetadata=function(){return[this.internalStorage.getItem(ol.WRAPPER_SKU)||te.EMPTY_STRING,this.internalStorage.getItem(ol.WRAPPER_VER)||te.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(oi.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(oi.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(oi.ACTIVE_ACCOUNT_FILTERS),r=this.generateCacheKey(oi.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 it.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&&jR.isThrottlingEntity(e,r)?(this.logger.trace("BrowserCacheManager.getThrottlingCache: cache hit"),Io.toObject(new jR,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===Ai.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 Y1(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(te.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"}(ph||(ph={})),ph))(),tu=(()=>(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"}(tu||(tu={})),tu))(),qR={tokenRenewalOffsetSeconds:300,preventCorsPreflight:!1,proxyUrl:te.EMPTY_STRING},Fte={loggerCallback:function(){},piiLoggingEnabled:!1,logLevel:yi.Info,correlationId:te.EMPTY_STRING},Nte={sendGetRequestAsync:function(){return St(this,void 0,void 0,function(){return At(this,function(t){throw ut.createUnexpectedError("Network interface - sendGetRequestAsync() has not been implemented")})})},sendPostRequestAsync:function(){return St(this,void 0,void 0,function(){return At(this,function(t){throw ut.createUnexpectedError("Network interface - sendPostRequestAsync() has not been implemented")})})}},Bte={sku:te.SKU,version:"7.3.0",cpu:te.EMPTY_STRING,os:te.EMPTY_STRING},jte={clientSecret:te.EMPTY_STRING,clientAssertion:void 0},Hte={azureCloudInstance:tu.None,tenant:""+te.DEFAULT_COMMON_TENANT},Vte={application:{appName:"",appVersion:""}};function qte(n){return Gn({clientCapabilities:[],azureCloudOptions:Hte,skipAuthorityMetadataCache:!1},n)}var zte={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."))}},Gte=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}(),Sw="@azure/msal-browser",fh="2.28.1",Qte=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||!Ni.isAccountEntity(i))return;var o=Io.toObject(new Ni,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}(),fg=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($o.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,fa.THROTTLING)},n}(),Xte=function(){function n(t,e){this.networkClient=t,this.cacheManager=e}return n.prototype.sendPostRequest=function(t,e,i){return St(this,void 0,void 0,function(){var r,o;return At(this,function(s){switch(s.label){case 0:fg.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:it.createNetworkError(e,o);case 4:return fg.postProcess(this.cacheManager,t,r),[2,r]}})})},n}(),Aw=function(){function n(t,e){this.config=function Ute(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({},Fte),i);return{authOptions:qte(t),systemOptions:Gn(Gn({},qR),e),loggerOptions:m,storageInterface:r||new Rte(t.clientId,dg),networkInterface:o||Nte,cryptoInterface:s||dg,clientCredentials:a||jte,libraryInfo:Gn(Gn({},Bte),l),telemetry:Gn(Gn({},Vte),c),serverTelemetryManager:u||null,persistencePlugin:d||null,serializableCache:h||null}}(t),this.logger=new FR(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 Xte(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[$o.CONTENT_TYPE]=te.URL_FORM_CONTENT_TYPE,!this.config.systemOptions.preventCorsPreflight&&t)switch(t.type){case vr.HOME_ACCOUNT_ID:try{var i=eu(t.credential);e[$o.CCS_HEADER]="Oid:"+i.uid+"@"+i.utid}catch(r){this.logger.verbose("Could not parse home account ID for CCS Header: "+r)}break;case vr.UPN:e[$o.CCS_HEADER]="UPN: "+t.credential}return e},n.prototype.executePostToTokenEndpoint=function(t,e,i,r){return St(this,void 0,void 0,function(){var o;return At(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 it.createEndpointDiscoveryIncompleteError("Updated authority has not completed endpoint discovery.");this.authority=t},n}(),yl=function(){function n(){}return n.validateRedirectUri=function(t){if(Ke.isEmpty(t))throw xn.createRedirectUriEmptyError()},n.validatePrompt=function(t){var e=[];for(var i in Li)e.push(Li[i]);if(e.indexOf(t)<0)throw xn.createInvalidPromptError(t)},n.validateClaims=function(t){try{JSON.parse(t)}catch{throw xn.createInvalidClaimsRequestError()}},n.validateCodeChallengeParams=function(t,e){if(Ke.isEmpty(t)||Ke.isEmpty(e))throw xn.createInvalidCodeChallengeParamsError();this.validateCodeChallengeMethod(e)},n.validateCodeChallengeMethod=function(t){if([W1.PLAIN,W1.S256].indexOf(t)<0)throw xn.createInvalidCodeChallengeMethodError()},n.sanitizeEQParams=function(t,e){return t?(e.forEach(function(i,r){t[r]&&delete t[r]}),t):{}},n}(),nu=function(){function n(){this.parameters=new Map}return n.prototype.addResponseTypeCode=function(){this.parameters.set(Mt.RESPONSE_TYPE,encodeURIComponent(te.CODE_RESPONSE_TYPE))},n.prototype.addResponseTypeForTokenAndIdToken=function(){this.parameters.set(Mt.RESPONSE_TYPE,encodeURIComponent(te.TOKEN_RESPONSE_TYPE+" "+te.ID_TOKEN_RESPONSE_TYPE))},n.prototype.addResponseMode=function(t){this.parameters.set(Mt.RESPONSE_MODE,encodeURIComponent(t||Sd.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?jf(t||[],Ed):t||[],r=new _r(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){yl.validateRedirectUri(t),this.parameters.set(Mt.REDIRECT_URI,encodeURIComponent(t))},n.prototype.addPostLogoutRedirectUri=function(t){yl.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(kc.DOMAIN_HINT,encodeURIComponent(t))},n.prototype.addLoginHint=function(t){this.parameters.set(kc.LOGIN_HINT,encodeURIComponent(t))},n.prototype.addCcsUpn=function(t){this.parameters.set($o.CCS_HEADER,encodeURIComponent("UPN:"+t))},n.prototype.addCcsOid=function(t){this.parameters.set($o.CCS_HEADER,encodeURIComponent("Oid:"+t.uid+"@"+t.utid))},n.prototype.addSid=function(t){this.parameters.set(kc.SID,encodeURIComponent(t))},n.prototype.addClaims=function(t,e){var i=this.addClientCapabilitiesToClaims(t,e);yl.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){yl.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(yl.validateCodeChallengeParams(t,e),!t||!e)throw xn.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;yl.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 xn.createInvalidClaimsRequestError()}else i={};return e&&e.length>0&&(i.hasOwnProperty(il.ACCESS_TOKEN)||(i[il.ACCESS_TOKEN]={}),i[il.ACCESS_TOKEN][il.XMS_CC]={values:e}),JSON.stringify(i)},n.prototype.addUsername=function(t){this.parameters.set(Id.username,encodeURIComponent(t))},n.prototype.addPassword=function(t){this.parameters.set(Id.password,encodeURIComponent(t))},n.prototype.addPopToken=function(t){Ke.isEmpty(t)||(this.parameters.set(Mt.TOKEN_TYPE,mn.POP),this.parameters.set(Mt.REQ_CNF,encodeURIComponent(t)))},n.prototype.addSshJwk=function(t){Ke.isEmpty(t)||(this.parameters.set(Mt.TOKEN_TYPE,mn.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}(),Zte=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},mg=(()=>(function(n){n.SW="sw",n.UHW="uhw"}(mg||(mg={})),mg))(),iu=function(){function n(t){this.cryptoUtils=t}return n.prototype.generateCnf=function(t){return St(this,void 0,void 0,function(){var e,i,r;return At(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 St(this,void 0,void 0,function(){return At(this,function(i){switch(i.label){case 0:return[4,this.cryptoUtils.getPublicKeyThumbprint(t)];case 1:return[2,{kid:i.sent(),xms_ksl:mg.SW}]}})})},n.prototype.signPopToken=function(t,e,i){return St(this,void 0,void 0,function(){return At(this,function(r){return[2,this.signPayload(t,e,i)]})})},n.prototype.signPayload=function(t,e,i,r){return St(this,void 0,void 0,function(){var o,s,a,l,c,u;return At(this,function(d){switch(d.label){case 0:return o=i.resourceRequestMethod,a=i.shrClaims,l=i.shrNonce,c=(s=i.resourceRequestUri)?new rn(s):void 0,u=c?.getUrlComponents(),[4,this.cryptoUtils.signJwt(Gn({at:t,ts:ro.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}(),Jte=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}(),gg=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 it.createStateNotFoundError(t.state?"Cached State":"Server State");if(decodeURIComponent(t.state)!==decodeURIComponent(e))throw it.createStateMismatchError();if(t.error||t.error_description||t.suberror)throw xo.isInteractionRequiredError(t.error,t.error_description,t.suberror)?new xo(t.error||te.EMPTY_STRING,t.error_description,t.suberror):new vl(t.error||te.EMPTY_STRING,t.error_description,t.suberror);t.client_info&&hg(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 vl(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 St(this,void 0,void 0,function(){var c,u,d,h,m;return At(this,function(S){switch(S.label){case 0:if(t.id_token&&(c=new Da(t.id_token||te.EMPTY_STRING,this.cryptoObj),o&&!Ke.isEmpty(o.nonce)&&c.claims.nonce!==o.nonce))throw it.createNonceMismatchError();this.homeAccountIdentifier=Ni.generateHomeAccountId(t.client_info||te.EMPTY_STRING,e.authorityType,this.logger,this.cryptoObj,c),!!o&&!!o.state&&(u=Ws.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),S.label=1;case 1:return S.trys.push([1,,5,8]),this.persistencePlugin&&this.serializableCache?(this.logger.verbose("Persistence enabled, calling beforeCacheAccess"),h=new Jte(this.serializableCache,!0),[4,this.persistencePlugin.beforeCacheAccess(h)]):[3,3];case 2:S.sent(),S.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 S.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:S.sent(),S.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 it.createInvalidCacheEnvironmentError();!Ke.isEmpty(t.id_token)&&o&&(c=dh.createIdTokenEntity(this.homeAccountIdentifier,l,t.id_token||te.EMPTY_STRING,this.clientId,o.claims.tid||te.EMPTY_STRING),u=this.generateAccountEntity(t,o,e,a));var d=null;if(!Ke.isEmpty(t.access_token)){var h=t.scope?_r.fromString(t.scope):new _r(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,S=("string"==typeof t.refresh_in?parseInt(t.refresh_in,10):t.refresh_in)||void 0,U=i+m,ee=U+y,ve=S&&S>0?i+S:void 0;d=hh.createAccessTokenEntity(this.homeAccountIdentifier,l,t.access_token||te.EMPTY_STRING,this.clientId,o?o.claims.tid||te.EMPTY_STRING:e.tenant,h.printScopes(),U,ee,this.cryptoObj,ve,t.token_type,s,t.key_id,r.claims,r.requestedClaimsHash)}var ne=null;Ke.isEmpty(t.refresh_token)||(ne=bw.createRefreshTokenEntity(this.homeAccountIdentifier,l,t.refresh_token||te.EMPTY_STRING,this.clientId,t.foci,s));var Ie=null;return Ke.isEmpty(t.foci)||(Ie=Cw.createAppMetadataEntity(this.clientId,l,t.foci)),new Zte(u,c,d,ne,Ie)},n.prototype.generateAccountEntity=function(t,e,i,r){var s=r?r.cloud_graph_host_name:te.EMPTY_STRING,a=r?r.msgraph_host:te.EMPTY_STRING;if(i.authorityType===ns.Adfs)return this.logger.verbose("Authority type is ADFS, creating ADFS account"),Ni.createGenericAccount(this.homeAccountIdentifier,e,i,s,a);if(Ke.isEmpty(t.client_info)&&"AAD"===i.protocolMode)throw it.createClientInfoEmptyError();return t.client_info?Ni.createAccount(t.client_info,this.homeAccountIdentifier,e,i,s,a):Ni.createGenericAccount(this.homeAccountIdentifier,e,i,s,a)},n.generateAuthenticationResult=function(t,e,i,r,o,s,a,l){var c,u,d;return St(this,void 0,void 0,function(){var h,m,y,S,U,ee,ve,ne,Ie;return At(this,function(Gt){switch(Gt.label){case 0:if(h=te.EMPTY_STRING,m=[],y=null,U=te.EMPTY_STRING,!i.accessToken)return[3,4];if(i.accessToken.tokenType!==mn.POP)return[3,2];if(ee=new iu(t),ne=(ve=i.accessToken).secret,!(Ie=ve.keyId))throw it.createKeyIdMissingError();return[4,ee.signPopToken(ne,Ie,o)];case 1:return h=Gt.sent(),[3,3];case 2:h=i.accessToken.secret,Gt.label=3;case 3:m=_r.fromString(i.accessToken.target).asArray(),y=new Date(1e3*Number(i.accessToken.expiresOn)),S=new Date(1e3*Number(i.accessToken.extendedExpiresOn)),Gt.label=4;case 4:return i.appMetadata&&(U="1"===i.appMetadata.familyId?"1":te.EMPTY_STRING),[2,{authority:e.canonicalAuthority,uniqueId:s?.claims.oid||s?.claims.sub||te.EMPTY_STRING,tenantId:s?.claims.tid||te.EMPTY_STRING,scopes:m,account:i.account?i.account.getAccountInfo():null,idToken:s?s.rawToken:te.EMPTY_STRING,idTokenClaims:s?s.claims:{},accessToken:h,fromCache:r,expiresOn:y,correlationId:o.correlationId,extExpiresOn:S,familyId:U,tokenType:(null===(c=i.accessToken)||void 0===c?void 0:c.tokenType)||te.EMPTY_STRING,state:a?a.userRequestState:te.EMPTY_STRING,cloudGraphHostName:(null===(u=i.account)||void 0===u?void 0:u.cloudGraphHostName)||te.EMPTY_STRING,msGraphHost:(null===(d=i.account)||void 0===d?void 0:d.msGraphHost)||te.EMPTY_STRING,code:l,fromNativeBroker:!1}]}})})},n}(),zR=function(n){function t(e){var i=n.call(this,e)||this;return i.includeRedirectUri=!0,i}return pr(t,n),t.prototype.getAuthCodeUrl=function(e){return St(this,void 0,void 0,function(){var i;return At(this,function(r){switch(r.label){case 0:return[4,this.createAuthCodeUrlQueryString(e)];case 1:return i=r.sent(),[2,rn.appendQueryString(this.authority.authorizationEndpoint,i)]}})})},t.prototype.acquireToken=function(e,i){return St(this,void 0,void 0,function(){var r,o,s;return At(this,function(a){switch(a.label){case 0:if(this.logger.info("in acquireToken call"),!e||Ke.isEmpty(e.code))throw it.createTokenRequestCannotBeMadeError();return r=ro.nowSeconds(),[4,this.executeTokenRequest(this.authority,e)];case 1:return o=a.sent(),(s=new gg(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 gg(this.config.authOptions.clientId,this.cacheManager,this.cryptoUtils,this.logger,null,null),o=new rn(e),s=rn.getDeserializedHash(o.getHash());if(r.validateServerAuthorizationCodeResponse(s,i,this.cryptoUtils),!s.code)throw it.createNoAuthCodeInServerResponseError();return Gn(Gn({},s),{code:s.code})},t.prototype.getLogoutUri=function(e){if(!e)throw xn.createEmptyLogoutRequestError();var i=this.createLogoutUrlQueryString(e);return rn.appendQueryString(this.authority.endSessionEndpoint,i)},t.prototype.executeTokenRequest=function(e,i){return St(this,void 0,void 0,function(){var r,o,s,a,l,c,u;return At(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=hg(i.clientInfo,this.cryptoUtils),a={credential:""+l.uid+fr.CLIENT_INFO_SEPARATOR+l.utid,type:vr.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 nu;return e.tokenQueryParameters&&i.addExtraQueryParameters(e.tokenQueryParameters),i.createQueryString()},t.prototype.createTokenRequestBody=function(e){return St(this,void 0,void 0,function(){var i,r,s,a,l,c,u;return At(this,function(d){switch(d.label){case 0:return(i=new nu).addClientId(this.config.authOptions.clientId),this.includeRedirectUri?i.addRedirectUri(e.redirectUri):yl.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(Ad.AUTHORIZATION_CODE_GRANT),i.addClientInfo(),e.authenticationScheme!==mn.POP?[3,2]:[4,new iu(this.cryptoUtils).generateCnf(e)];case 1:return s=d.sent(),i.addPopToken(s.reqCnfString),[3,3];case 2:if(e.authenticationScheme===mn.SSH){if(!e.sshJwk)throw xn.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=hg(e.clientInfo,this.cryptoUtils),l={credential:""+c.uid+fr.CLIENT_INFO_SEPARATOR+c.utid,type:vr.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 vr.HOME_ACCOUNT_ID:try{c=eu(l.credential),i.addCcsOid(c)}catch(h){this.logger.verbose("Could not parse home account ID for CCS Header: "+h)}break;case vr.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 St(this,void 0,void 0,function(){var i,r,o,s,a,l,u;return At(this,function(d){switch(d.label){case 0:if((i=new nu).addClientId(this.config.authOptions.clientId),r=jf(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=eu(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=eu(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=eu(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!==mn.POP?[3,2]:[4,new iu(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 nu;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}(Aw);function ene(n){return n.hasOwnProperty("authorization_endpoint")&&n.hasOwnProperty("token_endpoint")&&n.hasOwnProperty("issuer")&&n.hasOwnProperty("jwks_uri")}var WR={"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"}},$R={"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"]}]}},nne=function(){function n(t){this.networkInterface=t}return n.prototype.detectRegion=function(t,e,i){return St(this,void 0,void 0,function(){var r,o,s,a,l;return At(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(te.IMDS_VERSION,o)];case 2:return(s=c.sent()).status===rl.httpSuccess&&(r=s.body,e.region_source=Os.IMDS),s.status!==rl.httpBadRequest?[3,5]:[4,this.getCurrentVersion(o)];case 3:return(a=c.sent())?[4,this.getRegionFromIMDS(a,o)]:(e.region_source=Os.FAILED_AUTO_DETECTION,[2,null]);case 4:(l=c.sent()).status===rl.httpSuccess&&(r=l.body,e.region_source=Os.IMDS),c.label=5;case 5:return[3,7];case 6:return c.sent(),e.region_source=Os.FAILED_AUTO_DETECTION,[2,null];case 7:return[3,9];case 8:e.region_source=Os.ENVIRONMENT_VARIABLE,c.label=9;case 9:return r||(e.region_source=Os.FAILED_AUTO_DETECTION),[2,r||null]}})})},n.prototype.getRegionFromIMDS=function(t,e){return St(this,void 0,void 0,function(){return At(this,function(i){return[2,this.networkInterface.sendGetRequestAsync(te.IMDS_ENDPOINT+"?api-version="+t+"&format=text",e,te.IMDS_TIMEOUT)]})})},n.prototype.getCurrentVersion=function(t){return St(this,void 0,void 0,function(){var e;return At(this,function(i){switch(i.label){case 0:return i.trys.push([0,2,,3]),[4,this.networkInterface.sendGetRequestAsync(te.IMDS_ENDPOINT+"?format=json",t)];case 1:return(e=i.sent()).status===rl.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}(),_g=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 nne(e),this.regionDiscoveryMetadata={region_used:void 0,region_source:void 0,region_outcome:void 0},this.proxyUrl=o||te.EMPTY_STRING}return Object.defineProperty(n.prototype,"authorityType",{get:function(){var t=this.canonicalAuthorityUrlComponents.PathSegments;return t.length&&t[0].toLowerCase()===te.ADFS?ns.Adfs:ns.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 rn(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 it.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 it.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 it.createEndpointDiscoveryIncompleteError("Discovery incomplete.")},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"endSessionEndpoint",{get:function(){if(this.discoveryComplete()){if(!this.metadata.end_session_endpoint)throw it.createLogoutNotSupportedError();var t=this.replacePath(this.metadata.end_session_endpoint);return this.replaceTenant(t)}throw it.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 it.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 it.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 rn(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===ns.Adfs||this.protocolMode===ph.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 St(this,void 0,void 0,function(){var t,e,i,r;return At(this,function(o){switch(o.label){case 0:return(t=this.cacheManager.getAuthorityMetadataByAlias(this.hostnameAndPort))||(t=new ww).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!==kr.CACHE&&i!==kr.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 St(this,void 0,void 0,function(){var r,o;return At(this,function(s){switch(s.label){case 0:return(r=this.getEndpointMetadataFromConfig())?(t.updateEndpointMetadata(r,!1),[2,kr.CONFIG]):this.isAuthoritySameType(t)&&t.endpointsFromNetwork&&!t.isExpired()?[2,kr.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,kr.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,kr.HARDCODED_VALUES];case 7:throw it.createUnableToGetOpenidConfigError(this.defaultOpenIdConfigurationEndpoint)}})})},n.prototype.isAuthoritySameType=function(t){return new rn(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 xn.createInvalidAuthorityMetadataError()}return null},n.prototype.getEndpointMetadataFromNetwork=function(){return St(this,void 0,void 0,function(){var t,e;return At(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,ene((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 WR?WR[this.canonicalAuthority]:null},n.prototype.updateMetadataWithRegionalInformation=function(t){var e,i,r,o,s;return St(this,void 0,void 0,function(){var a,l;return At(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)===te.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)===te.AZURE_REGION_AUTO_DISCOVER_FLAG?a?ma.AUTO_DETECTION_REQUESTED_SUCCESSFUL:ma.AUTO_DETECTION_REQUESTED_FAILED:a?(null===(s=this.authorityOptions.azureRegionConfiguration)||void 0===s?void 0:s.azureRegion)===a?ma.CONFIGURED_MATCHES_DETECTED:ma.CONFIGURED_NOT_DETECTED:ma.CONFIGURED_NO_AUTO_DETECTION,l?(this.regionDiscoveryMetadata.region_used=l,[2,n.replaceWithRegionalInformation(t,l)]):[2,t]}})})},n.prototype.updateCloudDiscoveryMetadata=function(t){return St(this,void 0,void 0,function(){var e,i;return At(this,function(r){switch(r.label){case 0:return(e=this.getCloudDiscoveryMetadataFromConfig())?(t.updateCloudDiscoveryMetadata(e,!1),[2,kr.CONFIG]):this.isAuthoritySameType(t)&&t.aliasesFromNetwork&&!t.isExpired()?[2,kr.CACHE]:(i=this.getCloudDiscoveryMetadataFromHarcodedValues(),[4,this.getCloudDiscoveryMetadataFromNetwork()]);case 1:if(e=r.sent())return t.updateCloudDiscoveryMetadata(e,!0),[2,kr.NETWORK];if(i&&!this.options.skipAuthorityMetadataCache)return t.updateCloudDiscoveryMetadata(i,!1),[2,kr.HARDCODED_VALUES];throw xn.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 xn.createInvalidCloudDiscoveryMetadataError()}return this.isInKnownAuthorities()?n.createCloudDiscoveryMetadataFromHost(this.hostnameAndPort):null},n.prototype.getCloudDiscoveryMetadataFromNetwork=function(){return St(this,void 0,void 0,function(){var t,e,i,r,o;return At(this,function(s){switch(s.label){case 0:t=""+te.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 tne(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 $R?$R[this.canonicalAuthority]:null},n.prototype.isInKnownAuthorities=function(){var t=this;return this.authorityOptions.knownAuthorities.filter(function(i){return rn.getDomainFromUrl(i).toLowerCase()===t.hostnameAndPort}).length>0},n.generateAuthority=function(t,e){var i;return e&&e.azureCloudInstance!==tu.None&&(i=e.azureCloudInstance+"/"+(e.tenant?e.tenant:te.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 it.createEndpointDiscoveryIncompleteError("Discovery incomplete.")},n.prototype.isAlias=function(t){return this.metadata.aliases.indexOf(t)>-1},n.isPublicCloudAuthority=function(t){return te.KNOWN_PUBLIC_CLOUDS.indexOf(t)>=0},n.buildRegionalAuthorityString=function(t,e,i){var r=new rn(t);r.validateAsUri();var o=r.getUrlComponents(),s=e+"."+o.HostNameAndPort;this.isPublicCloudAuthority(o.HostNameAndPort)&&(s=e+"."+te.REGIONAL_AUTH_PUBLIC_CLOUD_SUFFIX);var a=rn.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}(),vg=function(){function n(){}return n.createDiscoveredInstance=function(t,e,i,r,o){return St(this,void 0,void 0,function(){var s,a;return At(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(),it.createEndpointDiscoveryIncompleteError(a);case 4:return[2]}})})},n.createInstance=function(t,e,i,r,o){if(Ke.isEmpty(t))throw xn.createUrlEmptyError();return new _g(t,e,i,r,o)},n}(),ine=function(){function n(t,e){this.cacheOutcome=ga.NO_CACHE_HIT,this.cacheManager=e,this.apiId=t.apiId,this.correlationId=t.correlationId,this.wrapperSKU=t.wrapperSKU||te.EMPTY_STRING,this.wrapperVer=t.wrapperVer||te.EMPTY_STRING,this.telemetryCacheKey=Si.CACHE_KEY+fr.CACHE_KEY_SEPARATOR+t.clientId}return n.prototype.generateCurrentRequestHeaderValue=function(){var t=""+this.apiId+Si.VALUE_SEPARATOR+this.cacheOutcome,e=[this.wrapperSKU,this.wrapperVer].join(Si.VALUE_SEPARATOR),r=[t,this.getRegionDiscoveryFields()].join(Si.VALUE_SEPARATOR);return[Si.SCHEMA_VERSION,r,e].join(Si.CATEGORY_SEPARATOR)},n.prototype.generateLastRequestHeaderValue=function(){var t=this.getLastRequests(),e=n.maxErrorsToSend(t),i=t.failedRequests.slice(0,2*e).join(Si.VALUE_SEPARATOR),r=t.errors.slice(0,e).join(Si.VALUE_SEPARATOR),o=t.errors.length,a=[o,e=Si.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(Si.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 pg;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 pg;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"}($s||($s={})),$s))(),mh_extensionError_code="ContentError",mh_userSwitch_code="user_switch",mh_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.",mh_tokensNotFoundInCache_code="tokens_not_found_in_internal_memory_cache",mh_tokensNotFoundInCache_desc="Tokens not cached in MSAL JS internal memory, please make the WAM request",is=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 Ti(t,n),t.prototype.isFatal=function(){return!(!this.ext||!this.ext.status||this.ext.status!==$s.PERSISTENT_ERROR&&this.ext.status!==$s.DISABLED)||this.errorCode===mh_extensionError_code},t.createError=function(e,i,r){if(r&&r.status)switch(r.status){case $s.ACCOUNT_UNAVAILABLE:return xo.createNativeAccountUnavailableError();case $s.USER_INTERACTION_REQUIRED:return new xo(e,i);case $s.USER_CANCEL:return ze.createUserCancelledError();case $s.NO_NETWORK:return ze.createNoNetworkConnectivityError()}return new t(e,i,r)},t.createUserSwitchError=function(){return new t(mh_userSwitch_code,mh_userSwitch_desc)},t.createTokensNotFoundInCacheError=function(){return new t(mh_tokensNotFoundInCache_code,mh_tokensNotFoundInCache_desc)},t}(ut),YR=function(n){function t(e,i){return n.call(this,e,i)||this}return pr(t,n),t.prototype.acquireToken=function(e){return St(this,void 0,void 0,function(){var i,r,o;return At(this,function(s){switch(s.label){case 0:return i=ro.nowSeconds(),[4,this.executeTokenRequest(e,this.authority)];case 1:return r=s.sent(),(o=new gg(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 St(this,void 0,void 0,function(){var o;return At(this,function(s){if(!e)throw xn.createEmptyTokenRequestError();if(!e.account)throw it.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 vl&&"invalid_grant"===a.errorCode&&"client_mismatch"===a.subError,a instanceof xo&&a.errorCode===ch_noTokensFoundError_code||o)return[2,this.acquireTokenWithCachedRefreshToken(e,!1)];throw a}return[2,this.acquireTokenWithCachedRefreshToken(e,!1)]})})},t.prototype.acquireTokenWithCachedRefreshToken=function(e,i){return St(this,void 0,void 0,function(){var r,o;return At(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||mn.BEARER,ccsCredential:{credential:e.account.homeAccountId,type:vr.HOME_ACCOUNT_ID}}),[2,this.acquireToken(o)]})})},t.prototype.executeTokenRequest=function(e,i){var r;return St(this,void 0,void 0,function(){var o,s,a,l,c,u;return At(this,function(d){switch(d.label){case 0:return o=null===(r=this.performanceClient)||void 0===r?void 0:r.startMeasurement(di.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=rn.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 nu;return e.tokenQueryParameters&&i.addExtraQueryParameters(e.tokenQueryParameters),i.createQueryString()},t.prototype.createTokenRequestBody=function(e){var i;return St(this,void 0,void 0,function(){var r,o,s,a,c,u;return At(this,function(d){switch(d.label){case 0:return r=e.correlationId,o=null===(i=this.performanceClient)||void 0===i?void 0:i.startMeasurement(di.BaseClientCreateTokenRequestHeaders,r),(s=new nu).addClientId(this.config.authOptions.clientId),s.addScopes(e.scopes),s.addGrantType(Ad.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!==mn.POP?[3,2]:[4,new iu(this.cryptoUtils).generateCnf(e)];case 1:return c=d.sent(),s.addPopToken(c.reqCnfString),[3,3];case 2:if(e.authenticationScheme===mn.SSH){if(!e.sshJwk)throw o?.endMeasurement({success:!1}),xn.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 vr.HOME_ACCOUNT_ID:try{u=eu(e.ccsCredential.credential),s.addCcsOid(u)}catch(h){this.logger.verbose("Could not parse home account ID for CCS Header: "+h)}break;case vr.UPN:s.addCcsUpn(e.ccsCredential.credential)}return o?.endMeasurement({success:!0}),[2,s.createQueryString()]}})})},t}(Aw),rne=function(n){function t(e,i){return n.call(this,e,i)||this}return pr(t,n),t.prototype.acquireToken=function(e){return St(this,void 0,void 0,function(){var i;return At(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 it&&i.errorCode===Ne_tokenRefreshRequired_code)return[2,new YR(this.config,this.performanceClient).acquireTokenByRefreshToken(e)];throw i;case 3:return[2]}})})},t.prototype.acquireCachedToken=function(e){var i,r,o,s;return St(this,void 0,void 0,function(){var a,l;return At(this,function(c){switch(c.label){case 0:if(!e)throw xn.createEmptyTokenRequestError();if(e.forceRefresh)throw null===(i=this.serverTelemetryManager)||void 0===i||i.setCacheOutcome(ga.FORCE_REFRESH),this.logger.info("SilentFlowClient:acquireCachedToken - Skipping cache because forceRefresh is true."),it.createRefreshRequiredError();if(!e.account)throw it.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(ga.NO_CACHED_ACCESS_TOKEN),this.logger.info("SilentFlowClient:acquireCachedToken - No access token found in cache for the given properties."),it.createRefreshRequiredError();if(ro.wasClockTurnedBack(l.accessToken.cachedAt)||ro.isTokenExpired(l.accessToken.expiresOn,this.config.systemOptions.tokenRenewalOffsetSeconds))throw null===(o=this.serverTelemetryManager)||void 0===o||o.setCacheOutcome(ga.CACHED_ACCESS_TOKEN_EXPIRED),this.logger.info("SilentFlowClient:acquireCachedToken - Cached access token is expired or will expire within "+this.config.systemOptions.tokenRenewalOffsetSeconds+" seconds."),it.createRefreshRequiredError();if(l.accessToken.refreshOn&&ro.isTokenExpired(l.accessToken.refreshOn,0))throw null===(s=this.serverTelemetryManager)||void 0===s||s.setCacheOutcome(ga.REFRESH_CACHED_ACCESS_TOKEN),this.logger.info("SilentFlowClient:acquireCachedToken - Cached access token's refreshOn property has been exceeded'."),it.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 St(this,void 0,void 0,function(){var r;return At(this,function(o){switch(o.label){case 0:return e.idToken&&(r=new Da(e.idToken.secret,this.config.cryptoInterface)),[4,gg.generateAuthenticationResult(this.cryptoUtils,this.authority,e,!0,i,r)];case 1:return[2,o.sent()]}})})},t}(Aw),QR=function(n){function t(){return null!==n&&n.apply(this,arguments)||this}return Ti(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(di.SilentCacheClientAcquireToken,e.correlationId),r=this.initializeServerTelemetryManager(Cn.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 rne(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=[lt({},e)],[4,this.initializeBaseRequest(e)];case 1:return[2,lt.apply(void 0,[lt.apply(void 0,r.concat([o.sent()])),{account:i,forceRefresh:e.forceRefresh||!1}])]}})})},t}(ru),ou=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 QR(e,y.nativeStorageManager,r,o,s,a,c,u,m),y}return Ti(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(di.NativeInteractionClientAcquireToken,e.correlationId),r=ro.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:Qo.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:_r.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 it.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:Qo.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 is&&s.isFatal())throw s;return[3,5];case 5:return this.browserStorage.setTemporaryCache(ln.NATIVE_REQUEST,JSON.stringify(i),!0),a={apiId:Cn.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(ln.NATIVE_REQUEST)),i={method:Qo.GetToken,request:e},r=ro.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,S,ee,ve,ne,Ie,tt,_t,Gt,pn,Wn=this;return Pe(this,function(bi){switch(bi.label){case 0:if(this.logger.trace("NativeInteractionClient - handleNativeResponse called."),e.account.id!==i.accountId)throw is.createUserSwitchError();return o=new Da(e.id_token||te.EMPTY_STRING,this.browserCrypto),[4,this.getDiscoveredAuthority(i.authority)];case 1:return s=bi.sent(),a=s.getPreferredCache(),l=Ni.generateHomeAccountId(e.client_info||te.EMPTY_STRING,ns.Default,this.logger,this.browserCrypto,o),c=Ni.createAccount(e.client_info,l,o,void 0,void 0,void 0,a,e.account.id),this.browserStorage.setAccount(c),u=_r.fromString(e.scope?e.scope:i.scope),h=(d=e.account.properties||{}).UID||o.claims.oid||o.claims.sub||te.EMPTY_STRING,m=d.TenantId||o.claims.tid||te.EMPTY_STRING,S=mn.BEARER,i.tokenType===mn.POP?[3,2]:[3,4];case 2:if(S=mn.POP,e.shr)return this.logger.trace("handleNativeServerResponse: SHR is enabled in native layer"),y=e.shr,[3,5];if(ee=new iu(this.browserCrypto),ve={resourceRequestMethod:i.resourceRequestMethod,resourceRequestUri:i.resourceRequestUri,shrClaims:i.shrClaims,shrNonce:i.shrNonce},!i.keyId)throw it.createKeyIdMissingError();return[4,ee.signPopToken(e.access_token,i.keyId,ve)];case 3:return y=bi.sent(),[3,5];case 4:y=e.access_token,bi.label=5;case 5:return ne=this.getMATSFromResponse(e),Ie={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:S,correlationId:this.correlationId,state:e.state,fromNativeBroker:!0},tt=dh.createIdTokenEntity(l,i.authority,e.id_token||te.EMPTY_STRING,i.clientId,o.claims.tid||te.EMPTY_STRING),this.nativeStorageManager.setIdTokenCredential(tt),_t=S===mn.POP?te.SHR_NONCE_VALIDITY:("string"==typeof e.expires_in?parseInt(e.expires_in,10):e.expires_in)||0,Gt=r+_t,pn=hh.createAccessTokenEntity(l,i.authority,y,i.clientId,m,u.printScopes(),Gt,0,this.browserCrypto),this.nativeStorageManager.setAccessTokenCredential(pn),this.browserStorage.removeAccountContext(c).catch(function(Sa){Wn.logger.error("Error occurred while removing account context from browser storage. "+Sa)}),[2,Ie]}})})},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 is.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 rn(e.authority||this.config.auth.authority)).validateAsUri(),o=e.scopes,s=function e9(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=te.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,S=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),(!S||S<0||S>h)&&(this.logger.verbose("Default popup window top position used. Window top not configured or invalid."),S=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="+S+", 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}(ru),XR=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 Ti(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(ln.ORIGIN_URI,i.redirectStartPage,!0)),this.browserStorage.setTemporaryCache(ln.CORRELATION_ID,this.authCodeRequest.correlationId,!0),this.browserStorage.cacheCodeRequest(this.authCodeRequest,this.browserCrypto),this.logger.infoPii("RedirectHandler.initiateAuthRequest: Navigate to: "+e),r={apiId:Cn.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 it.createStateNotFoundError("Cached State");try{l=this.authModule.handleFragmentResponse(e,a)}catch(y){throw y instanceof vl&&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}(Tw),sne=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 Ti(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||te.EMPTY_STRING,i.account||null),r=this.initializeServerTelemetryManager(Cn.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 XR(a,this.browserStorage,s,this.logger,this.browserCrypto),[4,a.getAuthCodeUrl(lt(lt({},i),{nativeBroker:bl.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(S){switch(S.label){case 0:i=this.initializeServerTelemetryManager(Cn.handleRedirectPromise),S.label=1;case 1:if(S.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=rn.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(ln.ORIGIN_URI,!0)||te.EMPTY_STRING,l=rn.removeHashFromUrl(a),c=rn.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=S.sent(),a.indexOf("#")>-1&&Nn.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!Nn.isInIframe()||this.config.system.allowRedirectInIframe?(this.browserStorage.setTemporaryCache(ln.URL_HASH,r,!0),d={apiId:Cn.handleRedirectPromise,timeout:this.config.system.redirectNavigationTimeout,noHistory:!0},h=!0,a&&"null"!==a?[3,6]:(m=Nn.getHomepage(),this.browserStorage.setTemporaryCache(ln.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=S.sent(),[3,8];case 6:return this.logger.verbose("Navigating to loginRequestUrl: "+a),[4,this.navigationClient.navigateInternal(a,d)];case 7:h=S.sent(),S.label=8;case 8:if(!h)return[2,this.handleHash(r,o,i)];S.label=9;case 9:return[2,null];case 10:throw(y=S.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"),rn.hashContainsKnownProperties(e))return Nn.clearHash(window),this.logger.verbose("Hash contains known properties, returning response hash"),e;var r=this.browserStorage.getTemporaryCache(ln.URL_HASH,!0);return this.browserStorage.removeItem(this.browserStorage.generateCacheKey(ln.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=rn.getDeserializedHash(e)).accountId){if(this.logger.verbose("Account id found in hash, calling WAM for token"),!this.nativeMessageHandler)throw ze.createNativeConnectionNotEstablishedError();return a=new ou(this.config,this.browserStorage,this.browserCrypto,this.logger,this.eventHandler,this.navigationClient,Cn.acquireTokenPopup,this.performanceClient,this.nativeMessageHandler,s.accountId,this.browserStorage,o.correlationId),l=Ws.parseRequestState(this.browserCrypto,i).userRequestState,[2,a.acquireToken(lt(lt({},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"),fg.removeThrottle(this.browserStorage,this.config.auth.clientId,o),[4,new XR(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(Cn.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:Cn.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 rn.getAbsoluteUrl(i,Nn.getCurrentUri())},t}(ru),ZR=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 Ti(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=te.EMPTY_STRING,d=e.contentWindow;try{u=d?d.location.href:te.EMPTY_STRING}catch{}if(!Ke.isEmpty(u)){var h=d?d.location.hash:te.EMPTY_STRING;if(rn.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}(Tw),ane=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 Ti(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(di.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(lt(lt({},e),{prompt:Li.NONE}),$e.Silent)];case 1:r=l.sent(),this.browserStorage.updateCacheEntries(r.state,r.nonce,r.authority,r.loginHint||te.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(lt(lt({},i),{nativeBroker:bl.isNativeAvailable(this.config,this.logger,this.nativeMessageHandler,i.authenticationScheme)}))];case 2:return o=y.sent(),[4,(s=new ZR(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=rn.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 ou(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=Ws.parseRequestState(this.browserCrypto,u).userRequestState,[2,d.acquireToken(lt(lt({},i),{state:h,prompt:Li.NONE})).finally(function(){m.browserStorage.cleanRequestByState(u)})]}return[2,s.handleCodeResponseFromHash(l,u,e.authority,this.networkClient)]}})})},t}(ru),lne=function(n){function t(){return null!==n&&n.apply(this,arguments)||this}return Ti(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=[lt({},e)],[4,this.initializeBaseRequest(e)];case 1:return i=lt.apply(void 0,r.concat([c.sent()])),o=this.performanceClient.startMeasurement(di.SilentRefreshClientAcquireToken,i.correlationId),s=this.initializeServerTelemetryManager(Cn.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 YR(o,this.performanceClient)]}})})},t}(ru),cne=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=_g.generateAuthority(t.authority,t.azureCloudOptions),s=new _g(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=dh.createIdTokenEntity(e,i,t,this.config.auth.clientId,r),a=new Da(t,this.cryptoObj),l=o.clientInfo?Ni.createAccount(o.clientInfo,e,a,void 0,void 0,void 0,i):Ni.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 _r(t.scopes).printScopes(),l=s.expiresOn||e.expires_in+(new Date).getTime()/1e3,u=hh.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}(),une=function(n){function t(e){var i=n.call(this,e)||this;return i.includeRedirectUri=!1,i}return Ti(t,n),t}(zR),dne=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 Ti(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||te.EMPTY_STRING,i.account||null),r=this.initializeServerTelemetryManager(this.apiId),u.label=2;case 2:return u.trys.push([2,4,,5]),o=lt(lt({},i),{code:e.code}),[4,this.getClientConfiguration(r,i.authority)];case 3:return s=u.sent(),a=new une(s),this.logger.verbose("Auth code client created"),[2,new ZR(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}(ru),hne=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}(),pne=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 ug(l.logger),l.guidGenerator=new OR(l.browserCrypto),l}return Ti(t,n),t.prototype.startPerformanceMeasuremeant=function(e,i){return new hne(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 lt(lt({},s),{endMeasurement:function(a){return s.endMeasurement(lt({startPageVisibility:o,endPageVisibility:r.getPageVisibility()},a))}})},t}(NR),fne=function(){function n(t){this.isBrowserEnvironment=typeof window<"u",this.config=function Yte(n,t){var e=n.auth,i=n.cache,r=n.system,o=n.telemetry,s={clientId:te.EMPTY_STRING,authority:""+te.DEFAULT_AUTHORITY,knownAuthorities:[],cloudDiscoveryMetadata:te.EMPTY_STRING,authorityMetadata:te.EMPTY_STRING,redirectUri:te.EMPTY_STRING,postLogoutRedirectUri:te.EMPTY_STRING,navigateToLoginRequestUrl:!0,clientCapabilities:[],protocolMode:ph.AAD,azureCloudOptions:{azureCloudInstance:tu.None,tenant:te.EMPTY_STRING},skipAuthorityMetadataCache:!1},a={cacheLocation:Ai.SessionStorage,storeAuthStateInCookie:!1,secureCookies:!1},l={loggerCallback:function(){},logLevel:yi.Info,piiLoggingEnabled:!1},c=lt(lt({},qR),{loggerOptions:l,networkClient:t?Nn.getBrowserNetworkClient():zte,navigationClient:new Gte,loadFrameTimeout:0,windowHashTimeout:r?.loadFrameTimeout||6e4,iframeHashTimeout:r?.loadFrameTimeout||6e3,navigateFrameWait:t&&Nn.detectIEOrEdge()?500:0,redirectNavigationTimeout:3e4,asyncPopups:!1,allowRedirectInIframe:!1,allowNativeBroker:!1,nativeBrokerHandshakeTimeout:r?.nativeBrokerHandshakeTimeout||2e3}),u={application:{appName:te.EMPTY_STRING,appVersion:te.EMPTY_STRING}};return{auth:lt(lt({},s),e),cache:lt(lt({},a),i),system:lt(lt({},c),r),telemetry:lt(lt({},u),o)}}(t,this.isBrowserEnvironment),this.initialized=!1,this.logger=new FR(this.config.system.loggerOptions,Sw,fh),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 pne(this.config.auth.clientId,this.config.auth.authority,this.logger,Sw,fh,this.config.telemetry.application):new Mte(this.config.auth.clientId,this.config.auth.authority,this.logger,Sw,fh,this.config.telemetry.application),this.browserCrypto=this.isBrowserEnvironment?new xte(this.logger,this.performanceClient):dg,this.eventHandler=new Qte(this.logger,this.browserCrypto),this.browserStorage=this.isBrowserEnvironment?new Ew(this.config.auth.clientId,this.config.cache,this.browserCrypto,this.logger):function(n,t){return new Ew(n,{cacheLocation:Ai.MemoryStorage,storeAuthStateInCookie:!1,secureCookies:!1},dg,t)}(this.config.auth.clientId,this.logger),this.nativeInternalStorage=new Ew(this.config.auth.clientId,{cacheLocation:Ai.MemoryStorage,storeAuthStateInCookie:!1,secureCookies:!1},this.browserCrypto,this.logger),this.tokenCache=new cne(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,bl.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"),Nn.blockNativeBrokerCalledBeforeInitialized(this.config.system.allowNativeBroker,this.initialized),e=this.getAllAccounts(),this.isBrowserEnvironment?(typeof(r=this.redirectResponse.get(i=t||te.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&&bl.isNativeAvailable(this.config,this.logger,this.nativeExtensionProvider)&&this.nativeExtensionProvider&&!t?(this.logger.trace("handleRedirectPromise - acquiring token from native platform"),a=new ou(this.config,this.browserStorage,this.browserCrypto,this.logger,this.eventHandler,this.navigationClient,Cn.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(ln.CORRELATION_ID,!0)||te.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 ou(this.config,this.browserStorage,this.browserCrypto,this.logger,this.eventHandler,this.navigationClient,Cn.acquireTokenRedirect,this.performanceClient,this.nativeExtensionProvider,this.getNativeAccountId(t),this.nativeInternalStorage,t.correlationId),r=o.acquireTokenRedirect(t).catch(function(c){if(c instanceof is&&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(di.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,Cn.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 is&&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=lt(lt({},t),{prompt:Li.NONE,correlationId:e}),this.preflightBrowserEnvironmentCheck($e.Silent),r=this.performanceClient.startMeasurement(di.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,Cn.ssoSilent).catch(function(c){if(c instanceof is&&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(di.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(lt(lt({},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,Cn.acquireTokenByCode,t.nativeAccountId).catch(function(l){throw l instanceof is&&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 Nn.blockReloadInHiddenIframes(),e=this.performanceClient.startMeasurement(di.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 vl&&"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(lt({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"),Nn.blockNonBrowserEnvironment(this.isBrowserEnvironment),Nn.blockRedirectInIframe(t,this.config.system.allowRedirectInIframe),Nn.blockReloadInHiddenIframes(),Nn.blockAcquireTokenInPopups(),Nn.blockNativeBrokerCalledBeforeInitialized(this.config.system.allowNativeBroker,this.initialized),t===$e.Redirect&&this.config.cache.cacheLocation===Ai.MemoryStorage&&!this.config.cache.storeAuthStateInCookie)throw Wf.createInMemoryRedirectUnavailableError();(t===$e.Redirect||t===$e.Popup)&&this.preflightInteractiveRequest(e)},n.prototype.preflightInteractiveRequest=function(t){this.logger.verbose("preflightInteractiveRequest called, validating app environment"),Nn.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 ou(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"),!bl.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 one(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 sne(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 ane(this.config,this.browserStorage,this.browserCrypto,this.logger,this.eventHandler,this.navigationClient,Cn.ssoSilent,this.performanceClient,this.nativeInternalStorage,this.nativeExtensionProvider,t)},n.prototype.createSilentCacheClient=function(t){return new QR(this.config,this.browserStorage,this.browserCrypto,this.logger,this.eventHandler,this.navigationClient,this.performanceClient,this.nativeExtensionProvider,t)},n.prototype.createSilentRefreshClient=function(t){return new lne(this.config,this.browserStorage,this.browserCrypto,this.logger,this.eventHandler,this.navigationClient,this.performanceClient,this.nativeExtensionProvider,t)},n.prototype.createSilentAuthCodeClient=function(t){return new dne(this.config,this.browserStorage,this.browserCrypto,this.logger,this.eventHandler,this.navigationClient,Cn.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():te.EMPTY_STRING},n}(),mne=function(n){function t(e){var i=n.call(this,e)||this;return i.activeSilentTokenRequests=new Map,i}return Ti(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(lt({correlationId:i},e||K1))]})})},t.prototype.loginPopup=function(e){var i=this.getRequestCorrelationId(e);return this.logger.verbose("loginPopup called",i),this.acquireTokenPopup(lt({correlationId:i},e||K1))},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(di.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||te.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(lt(lt({},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(di.AcquireTokenSilentAsync,e.correlationId),bl.isNativeAvailable(this.config,this.logger,this.nativeExtensionProvider,e.authenticationScheme)&&i.nativeAccountId?(this.logger.verbose("acquireTokenSilent - attempting to acquire token from native platform"),s=lt(lt({},e),{account:i}),o=this.acquireTokenNative(s,Cn.acquireTokenSilent_silentFlow).catch(function(d){return Oe(c,void 0,void 0,function(){return Pe(this,function(m){if(d instanceof is&&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}(fne);let gne=(()=>{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($a),p(It))},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 xw=["name","companyName","birthdate","-BLANK-","phone","cellphone","homephone","-BLANK-","homepage","skype","pointer","companyPointer","isCompany","additional"];function JR(n,t){const e=xw.indexOf(n.key),i=xw.indexOf(t.key);return-1===e&&-1===i?0:-1===e?1:-1===i||ei?1:0}(n=>{const t=[];xw.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()}showInfoToast(){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)(T(er),T(en),T(ht))},n.\u0275prov=me({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const _ne=["searchExpansionPanel"],vne=["searchTextInput"];function yne(n,t){if(1&n){const e=ke();g(0,"span",17),$("click",function(r){return X(e),Z(w(2).clearTextClicked(r))}),j(1,"cancel"),_()}}function bne(n,t){1&n&&(g(0,"span",18),j(1,"expand_less"),_())}function Cne(n,t){1&n&&(g(0,"span",18),j(1,"search"),_())}function wne(n,t){if(1&n&&(g(0,"mat-option",22),j(1),_()),2&n){const e=t.$implicit;v("value",e.value),f(1),we(e.viewValue)}}function Ene(n,t){if(1&n){const e=ke();g(0,"mat-form-field",19)(1,"mat-label"),j(2),_(),g(3,"mat-select",20),$("valueChange",function(r){return X(e),Z(w(2).selectedDB=r)})("selectionChange",function(){return X(e),Z(w(2).selectedDBChanged())}),H(4,wne,2,2,"mat-option",21),_()()}if(2&n){const e=w(2);f(2),we(e.globals.languageConfLocal.addressDatabase),f(1),v("value",e.selectedDB),f(1),v("ngForOf",e.databases)}}function Dne(n,t){if(1&n&&(g(0,"div",23),j(1),_()),2&n){const e=w(2);f(1),qe(" ",e.globals.languageConfLocal.recentlyUsed," ")}}function Sne(n,t){1&n&&Ae(0,"img",29),2&n&&v("src",w().$implicit.imageBase64,Rn)}function Ane(n,t){if(1&n&&Ae(0,"img",29),2&n){const e=w().$implicit;v("src",w(2).datasource.getImageSrc(e.image),Rn)}}function Tne(n,t){if(1&n){const e=ke();g(0,"div",24),$("click",function(r){return X(e),Z(w(2).clickedElement(r))})("dblclick",function(r){return X(e),Z(w(2).dblClickedElement(r))}),H(1,Sne,1,1,"img",25),H(2,Ane,1,1,"img",25),g(3,"div",26)(4,"span",27),j(5),_(),Ae(6,"br"),g(7,"span",28),j(8),_(),Ae(9,"br"),g(10,"span",28),j(11),_(),Ae(12,"br"),_()()}if(2&n){const e=t.$implicit,i=t.index,r=w(2);Dt("title",r.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),Dt("title",r.parseHtmlEntities(e.lineOne+" <"+e.email+">")),f(1),qe(" ",r.parseHtmlEntities(e.lineOne+" <"+e.email+">")," "),f(2),Dt("title",r.parseHtmlEntities(e.lineTwo)),f(1),we(r.parseHtmlEntities(e.lineTwo)),f(2),Dt("title",r.parseHtmlEntities(e.lineThree)),f(1),we(r.parseHtmlEntities(e.lineThree))}}function xne(n,t){if(1&n){const e=ke();g(0,"div",30)(1,"button",31),$("click",function(){return X(e),Z(w(2).addSelectedTo("requiredAttendees"))}),j(2),_(),g(3,"button",31),$("click",function(){return X(e),Z(w(2).addSelectedTo("optionalAttendees"))}),j(4),_()()}if(2&n){const e=w(2);f(2),we(e.globals.languageConfLocal.requiredAttendee),f(2),we(e.globals.languageConfLocal.optionalAttendee)}}function Ine(n,t){if(1&n){const e=ke();g(0,"div",30)(1,"button",31),$("click",function(){return X(e),Z(w(2).addSelectedTo("to"))}),j(2),_(),g(3,"button",31),$("click",function(){return X(e),Z(w(2).addSelectedTo("cc"))}),j(4,"Cc"),_(),g(5,"button",31),$("click",function(){return X(e),Z(w(2).addSelectedTo("bcc"))}),j(6,"Bcc"),_()()}if(2&n){const e=w(2);f(2),we(e.globals.languageConfLocal.to)}}function Mne(n,t){if(1&n){const e=ke();g(0,"div",32)(1,"div",33),$("click",function(r){return X(e),Z(w(2).addSelectedTo("requiredAttendees",r))}),j(2),_(),g(3,"div",33),$("click",function(r){return X(e),Z(w(2).addSelectedTo("optionalAttendees",r))}),j(4),_()()}if(2&n){const e=w(2);f(2),qe(" ",e.globals.languageConfLocal.requiredAttendee,""),f(2),qe(" ",e.globals.languageConfLocal.optionalAttendee,"")}}function kne(n,t){if(1&n){const e=ke();g(0,"div",32)(1,"div",33),$("click",function(r){return X(e),Z(w(2).addSelectedTo("to",r))}),j(2),_(),g(3,"div",33),$("click",function(r){return X(e),Z(w(2).addSelectedTo("cc",r))}),j(4,"Cc"),_(),g(5,"div",33),$("click",function(r){return X(e),Z(w(2).addSelectedTo("bcc",r))}),j(6,"Bcc"),_()()}if(2&n){const e=w(2);f(2),qe(" ",e.globals.languageConfLocal.to,"")}}function Rne(n,t){if(1&n){const e=ke();g(0,"div",1),Ae(1,"br"),g(2,"mat-expansion-panel",2,3),$("closed",function(){return X(e),Z(w().searchResultsPanelClosed())})("opened",function(){return X(e),Z(w().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),$("keydown.Space",function(r){return X(e),Z(w().noCloseOnSpace(r))})("input",function(r){return X(e),Z(w().textChanged(r))})("focus",function(r){return X(e),Z(w().searchInputFocused(r))})("click",function(r){return X(e),Z(w().searchInputClicked(r))})("ngModelChange",function(r){return X(e),Z(w().textInSearchInput=r)}),_()(),H(11,yne,2,0,"span",9),H(12,bne,2,0,"span",10),H(13,Cne,2,0,"span",10),_()(),H(14,Ene,5,3,"mat-form-field",11),g(15,"div",12),H(16,Dne,2,1,"div",13),H(17,Tne,13,12,"div",14),_(),H(18,xne,5,2,"div",15),H(19,Ine,7,1,"div",15),H(20,Mne,5,2,"div",16),H(21,kne,7,1,"div",16),_()()}if(2&n){const e=Jt(10),i=w();f(8),we(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 One=(()=>{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,this.compareFunc=JR,this.searchResultsArray=[],this.databases=[],this.selection=new ul(!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={};for(const r in e)"GeOfficeAliases"!==r&&("Contact"===e[r].type||"Leads"===e[r].type||"Organization"===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}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,Jo.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}parseHtmlEntities(e){return e&&e.replace(/&#([0-9]{1,3});/gi,(i,r)=>{let o=parseInt(r,10);return String.fromCharCode(o)})}noCloseOnSpace(e){e.stopPropagation()}getBase64(e){return"base64, "+e}}return n.\u0275fac=function(e){return new(e||n)(p(ht),p(en),p(su),p(It),p(Kt),p(er),p(ir),p(Ji),p(ya))},n.\u0275cmp=Ue({type:n,selectors:[["app-contact-selector"]],viewQuery:function(e,i){if(1&e&&(Te(_ne,5),Te(vne,5)),2&e){let r;de(r=he())&&(i.searchExpansionPanel=r.first),de(r=he())&&(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,Rne,22,12,"div",0),2&e&&v("ngIf",!i.isReadMode)},dependencies:[Yn,hn,zr,Eo,qo,Zr,nr,Hs,Mr,Jr,dw,oR,sR],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 Cl=(()=>(function(n){n[n.activity=0]="activity"}(Cl||(Cl={})),Cl))();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)(T(ht))},n.\u0275prov=me({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const Lne=["selectedContact"],Fne=["firstDocumentDestination"],Nne=["secondDocumentDestination"],Bne=["docDestSelector"];function jne(n,t){if(1&n&&(g(0,"div",12),j(1),_()),2&n){const e=w();v("title",e.currentEmailSubject),f(1),qe("",e.currentEmailSubject,"\n")}}function Hne(n,t){if(1&n&&(fi(0),j(1),mi()),2&n){const e=w(2);f(1),qe(" ",e.globals.languageConfLocal.documentButtonTooltipOff," ")}}function Vne(n,t){1&n&&j(0),2&n&&qe(" ",w(2).globals.languageConfLocal.documentVerb," ")}function Une(n,t){if(1&n){const e=ke();g(0,"button",13),$("click",function(){return X(e),Z(w().documentItem())}),H(1,Hne,2,1,"ng-container",14),H(2,Vne,1,1,"ng-template",null,15,Dn),_()}if(2&n){const e=Jt(3),i=w();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 qne(n,t){if(1&n){const e=ke();g(0,"button",16),$("click",function(){return X(e),Z(w().updateItem())}),j(1),_()}if(2&n){const e=w();v("title",e.updateButtonTooltip),f(1),we(e.globals.languageConfLocal.updateVerb)}}function zne(n,t){if(1&n&&(g(0,"mat-option",17),j(1),_()),2&n){const e=w();f(1),qe(" ",e.globals.languageConfLocal.doNotDocument," ")}}function Gne(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),we(e.display),f(2),we(e.email)}}function Wne(n,t){if(1&n&&(g(0,"mat-optgroup",18),H(1,Gne,5,3,"mat-option",19),_()),2&n){const e=w();v("label",e.primaryRecipients),f(1),v("ngForOf",e.addresses)("ngForTrackBy",e.tracker)}}function $ne(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),we(e.display),f(2),we(e.email)}}function Kne(n,t){if(1&n&&(g(0,"mat-optgroup",18),H(1,$ne,5,3,"mat-option",19),_()),2&n){const e=w();v("label",e.secondaryRecipients),f(1),v("ngForOf",e.addresses2nd)("ngForTrackBy",e.tracker)}}function Yne(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=w();v("label",e.theOwnerText),f(1),v("value",e.theSender.email),f(2),we(e.theSender.display),f(2),we(e.theSender.email)}}function Qne(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=w();v("label",e.theAssignedText),f(1),v("value",e.theAssignee.email),f(2),we(e.theAssignee.display),f(2),we(e.theAssignee.email)}}function Xne(n,t){if(1&n&&(g(0,"small"),j(1),_()),2&n){const e=w().$implicit;f(1),qe(" (",e.dbTitle,")")}}function Zne(n,t){if(1&n){const e=ke();g(0,"button",39),$("valueChange",function(r){return Z(X(e).$implicit.pointer=r)})("click",function(){const o=X(e).$implicit;return Z(w(3).subdestinationClick(o.pointer))}),g(1,"span",40),j(2),H(3,Xne,2,1,"small",9),_()()}if(2&n){const e=t.$implicit,i=w(3);v("value",e.pointer)("ngClass",e.pointer===i.displayedDestination.pointer?"selectedDestination":""),f(1),v("title",e.name+(e.dbTitle?" ("+e.dbTitle+")":"")),f(1),vo("",e.name,"",e.companyName?" ("+e.companyName+")":""," "),f(1),v("ngIf",e.dbTitle)}}function Jne(n,t){if(1&n&&(g(0,"div",34)(1,"button",35),Ae(2,"img",36),_(),g(3,"mat-menu",null,37),H(5,Zne,4,6,"button",38),_()()),2&n){const e=Jt(4),i=w(2);f(1),v("matBadge",i.destinationsToDisplay.length)("matMenuTriggerFor",e),f(1),v("src",i.currentAvatarURL,Rn)("title",i.globals.languageConfLocal.showContactsList),f(3),v("ngForOf",i.destinationsToDisplay)}}function eie(n,t){if(1&n&&(g(0,"div",34),Ae(1,"img",41),_()),2&n){const e=w(2);f(1),v("src",e.currentAvatarURL,Rn)}}function tie(n,t){if(1&n){const e=ke();g(0,"div",42),$("click",function(){X(e);const r=w(2);return Z(r.datasource.addDocumentLinkToMail(r.displayedDestination))}),g(1,"span",43),j(2,"link"),_()()}if(2&n){const e=w(2);f(1),v("title",e.globals.languageConfLocal.addLinkTextToMail)}}function nie(n,t){if(1&n&&(g(0,"a",44),j(1),_()),2&n){const e=w(2);v("href",e.displayedDestination.parentUrl,Rn)("title",e.displayedDestination.companyName),f(1),we(e.displayedDestination.companyName)}}function iie(n,t){if(1&n){const e=ke();g(0,"div",42),$("click",function(){X(e);const r=w(2);return Z(r.datasource.addDocumentLinkToMail(r.displayedDestination,r.displayedDestination.companyName))}),g(1,"span",43),j(2,"link"),_()()}if(2&n){const e=w(2);f(1),v("title",e.globals.languageConfLocal.addLinkTextToMail)}}function rie(n,t){if(1&n){const e=ke();g(0,"mat-checkbox",29,45),$("change",function(r){return X(e),Z(w(2).destinationSelectorClicked(r))}),_()}if(2&n){const e=w(2);v("name",e.displayedDestination.companyPointer)("checked",e.initSelectedDoc&&e.displayedDestination.companyPointer===e.initSelectedDoc)}}function oie(n,t){if(1&n&&(g(0,"div")(1,"span",46),j(2,"cake"),_(),g(3,"span",47),j(4),_()()),2&n){const e=w(2);f(4),we(e.displayedDestination.additional.birthdate)}}function sie(n,t){if(1&n){const e=ke();g(0,"div",51),$("click",function(){X(e);const r=w(3);return Z(r.datasource.addDocumentLinkToMail(r.displayedDestination,r.displayedDestination.additional.phone))}),g(1,"span",43),j(2,"link"),_()()}if(2&n){const e=w(3);f(1),v("title",e.globals.languageConfLocal.addLinkTextToMail)}}function aie(n,t){if(1&n&&(g(0,"div",48)(1,"span",46),j(2,"call"),_(),g(3,"a",49),j(4),_(),H(5,sie,3,1,"div",50),_()),2&n){const e=w(2);f(3),Dt("href","tel:"+e.displayedDestination.additional.phone,Rn),f(1),we(e.displayedDestination.additional.phone),f(1),v("ngIf",e.settings.LinkOptionActive)}}function lie(n,t){if(1&n){const e=ke();g(0,"div",51),$("click",function(){X(e);const r=w(3);return Z(r.datasource.addDocumentLinkToMail(r.displayedDestination,r.displayedDestination.additional.cellphone))}),g(1,"span",43),j(2,"link"),_()()}if(2&n){const e=w(3);f(1),v("title",e.globals.languageConfLocal.addLinkTextToMail)}}function cie(n,t){if(1&n&&(g(0,"div",48)(1,"span",46),j(2,"phone_android"),_(),g(3,"a",49),j(4),_(),H(5,lie,3,1,"div",50),_()),2&n){const e=w(2);f(3),Dt("href","tel:"+e.displayedDestination.additional.cellphone,Rn),f(1),we(e.displayedDestination.additional.cellphone),f(1),v("ngIf",e.settings.LinkOptionActive)}}function uie(n,t){if(1&n){const e=ke();g(0,"div",23)(1,"div",24),H(2,Jne,6,5,"div",25),H(3,eie,2,1,"div",25),g(4,"div",26)(5,"a",27),j(6),_(),H(7,tie,3,1,"div",28),_(),g(8,"mat-checkbox",29,30),$("change",function(r){return X(e),Z(w().destinationSelectorClicked(r))}),_(),g(11,"div",26),H(12,nie,2,3,"a",31),H(13,iie,3,1,"div",28),_(),H(14,rie,3,2,"mat-checkbox",32),_(),H(15,oie,5,1,"div",9),H(16,aie,6,3,"div",33),H(17,cie,6,3,"div",33),_()}if(2&n){const e=w();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,Rn)("title",e.displayedDestination.name),f(1),we(e.displayedDestination.name),f(1),v("ngIf",e.settings.LinkOptionActive),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),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 die(n,t){if(1&n&&(g(0,"div")(1,"div"),j(2),_()()),2&n){const e=w();f(2),we(e.globals.languageConfLocal.emailNotFoundInCRM)}}function hie(n,t){if(1&n&&(g(0,"div")(1,"div"),j(2),_()()),2&n){const e=w();f(2),we(e.globals.languageConfLocal.afterSendNoAutomaticDocument)}}function pie(n,t){if(1&n){const e=ke();g(0,"div")(1,"button",52),$("click",function(){return X(e),Z(w().quickCreate())}),j(2),_()()}if(2&n){const e=w();f(1),Dt("disabled",!e.extractedContactData),v("title",e.globals.languageConfLocal.ContactQuickCreation),f(1),we(e.globals.languageConfLocal.ContactQuickCreation)}}function fie(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 mie(n,t){if(1&n){const e=ke();g(0,"mat-form-field",53)(1,"mat-label"),j(2),_(),g(3,"mat-select",54),$("valueChange",function(r){return X(e),Z(w().selectedOfficeDB=r)})("selectionChange",function(){return X(e),Z(w().setOfficeDB())}),H(4,fie,2,2,"mat-option",55),_()()}if(2&n){const e=w();f(2),we(e.globals.languageConfLocal.officeDatabase),f(1),v("value",e.selectedOfficeDB),f(1),v("ngForOf",e.officeDatabases)}}let gie=(()=>{class n{constructor(e,i,r,o,s,a,l,c,u,d,h,m,y,S){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.webintLinkService=m,this.settings=y,this.ews=S,this.compareFunc=JR,this.isNew=!0,this.isUpdate=!1,this.searchTextInput="",this.searchValue="",this.selection=new ul(!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.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 ys,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.ews.GetExtendedData(i).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.ews.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.ews.SaveExtendedData(i,r).subscribe(s=>{this.finishAppointmentProcessing(r)}))}):this.finishAppointmentProcessing(r))}):(this.doProcessAddresses(),e?.body.getAsync(Office.CoercionType.Html,{},r=>{this.convertedBody=(0,Zd.convert)(r.value,{preserveNewlines:!1,wordwrap:null}).trim().replace(/^\xa0+/gm,"").replace(/(\r\n|\r|\n){2,}/gm,"\n\n"),this.datasource.extractContactData(this.convertedBody).subscribe(o=>{this.extractedContactData=o})}))}),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}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;if(this.noMoreAutoSelect=!1,e)if(this.globals.incomingMail=!1,this.isAppointment="appointment"===e.itemType,this.isAppointment){this.whatItemIsThis="Meeting",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);"function"==typeof e.saveAsync&&this.datasource.IsTaskpaneActive()&&!i?e.saveAsync(r=>{this.currentItemId=r.value,this.itemRecognized()}):(this.currentItemId=e.itemId,this.itemRecognized())}else"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()})}}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.ews.GetExtendedData(this.currentItemId).subscribe(r=>{if(i.fromEmail&&(this.theSender=new pC,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 pC,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.ews.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 km).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,console.log("Addressdetails:",this.selectedAddressDetails),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 km;return o.selEm=this.doNotDocConst,this.ews.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.ews.GetExtendedData(this.currentItemId).subscribe(o=>{o.selEm=i,this.ews.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.ews.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.ews.GetExtendedData(this.currentItemId).subscribe(s=>{s.selEm=e,s.selDest="",this.destinationChanged(s),this.detectChanges(),this.ews.SaveExtendedData(this.currentItemId,s).subscribe(a=>{})}))})})}getOfficeDBs(e,i=null){var r=this;return Ee(function*(){r.getDBConnections().subscribe(o=>{o&&r.extractOfficeDBs(e,o,i)})})()}extractOfficeDBs(e,i,r=null){var o=this;return Ee(function*(){try{let s=e;if(o.officeDatabases=[],o.selectedOfficeDB="",s)if(r===Cl.activity){const a=o.extractDBFromPointer(s);i.hasOwnProperty(a)?o.extractOfficeDBsOfContact(s,i):(o.officeDatabases=[{db:a,alias:""}],o.selectedOfficeDB=o.officeDatabases[0].db,o.setOfficeDB(),o.detectChanges())}else o.extractOfficeDBsOfContact(s,i)}catch{o.translate.get("LC39396").subscribe(a=>{o.messageService.showError(a)})}})()}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}}),this.displayedDestination=this.destinationsToDisplay[0]):this.displayedDestination=null,this.globals.mainDestinationCheckboxes=this.destinationCheckboxes,this.displayedDestination?this.ews.GetExtendedData(this.currentItemId).subscribe(r=>{r.selEm=this.displayedDestination.additional.mail,r.documentTarget=this.displayedDestination.pointer,this.ews.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.ews.GetExtendedData(this.currentItemId).subscribe(s=>{s.selEm=this.selectedEmailAddress,s.documentTarget=e,s.otherDoc=r,this.displayedDestination&&(s.selDest=this.displayedDestination.pointer),this.ews.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.ews.GetExtendedData(this.currentItemId).subscribe(i=>{i.officeDB=this.selectedOfficeDB,this.ews.SaveExtendedData(this.currentItemId,i).subscribe(r=>{})}))}destinationSelectorClicked(e){if(e.checked){this.ews.GetExtendedData(this.currentItemId).subscribe(r=>{r.otherDoc=!1,this.ews.SaveExtendedData(this.currentItemId,r)}),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 uR;e.source=this.firstDocumentDestination,e.checked=!0,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.ews.GetExtendedData(this.currentItemId).subscribe({next:i=>{this.globals.hideSpinner(),i.documentedOnSend&&!this.globals.incomingMail?this.dialogService.createDialogWithType(dl.alreadyDocumented).subscribe(r=>{r.afterClosed().subscribe(o=>{!0===o&&this.startDocumentation(e,i)})}):this.startDocumentation(e,i)},error:i=>{this.globals.hideSpinner()}})}startDocumentation(e,i){i.documentTarget&&(i.type="appointment"===e?.itemType?"appointment":"mail",this.datasource.documentItemWithUI(i))}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.ews.GetExtendedData(this.currentItemId).subscribe(e=>{for(const i of this.waitListService.accessWaitList("updateBM4OData"))i.next(e);this.ews.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(ht),p(en),p(Bs),p(Kt),p(ir),p(It),p(Bn),p(er),p(Ji),p(Pne),p(Mm),p(Xr),p($c),p(qs))},n.\u0275cmp=Ue({type:n,selectors:[["app-info-shower"]],viewQuery:function(e,i){if(1&e&&(Te(Lne,5),Te(Fne,5),Te(Nne,5),Te(Bne,5)),2&e){let r;de(r=he())&&(i.selectedContact=r.first),de(r=he())&&(i.firstDocumentDestination=r.first),de(r=he())&&(i.secondDocumentDestination=r.first),de(r=he())&&(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,jne,2,2,"div",0),H(1,Une,4,4,"button",1),H(2,qne,2,2,"button",2),g(3,"div")(4,"mat-form-field",3)(5,"mat-select",4,5),$("selectionChange",function(o){return i.selectedContactChanged(o)})("ngModelChange",function(o){return i.selectedEmailAddress=o}),g(7,"mat-select-trigger"),j(8),_(),H(9,zne,2,1,"mat-option",6),H(10,Wne,2,3,"mat-optgroup",7),H(11,Kne,2,3,"mat-optgroup",7),H(12,Yne,6,4,"mat-optgroup",7),H(13,Qne,6,4,"mat-optgroup",7),_()()(),H(14,uie,18,14,"div",8),H(15,die,3,1,"div",9),H(16,hie,3,1,"div",9),H(17,pie,3,3,"div",9),g(18,"button",10),$("click",function(){return i.recipientsEventTrigger()}),_(),Ae(19,"br"),H(20,mie,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.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:[Wa,Yn,hn,Eo,Jp,JM,Jd,nk,Zr,nr,Hs,rW,Mr,j6,Gc,Ree,rg],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 _ie=["docDestSelector"];function vie(n,t){if(1&n){const e=ke();g(0,"div",14),$("click",function(){X(e);const r=w().$implicit;return Z(w(2).datasource.addDocumentLinkToMail(r))}),g(1,"span",15),j(2,"link"),_()()}if(2&n){const e=w(3);f(1),v("title",e.globals.languageConfLocal.addLinkTextToMail)}}function yie(n,t){if(1&n){const e=ke();g(0,"mat-chip",8),$("removed",function(){const o=X(e).$implicit;return Z(w(2).removeDocumentDestination(o))}),Ae(1,"img",9),g(2,"div",10),j(3),_(),H(4,vie,3,1,"div",11),g(5,"button",12)(6,"span",13),j(7,"cancel"),_()()()}if(2&n){const e=t.$implicit,i=w(2);v("removable",!0)("title",e.name),f(1),v("src",i.datasource.getImageSrc(e.image),Rn),f(2),we(e.name),f(1),v("ngIf",i.settings.LinkOptionActive),f(2),v("title",i.globals.languageConfLocal.removeFromList)}}function bie(n,t){1&n&&Ae(0,"input",16,17),2&n&&(w(),v("matChipInputFor",Jt(4)))}function Cie(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,yie,8,6,"mat-chip",6),H(6,bie,2,1,"input",7),_()()),2&n){const e=w();f(2),we(e.getDocumentedLabel()),f(3),v("ngForOf",e.documentsAsDestinations),f(1),v("ngIf",e.documentsAsDestinations&&e.documentsAsDestinations.length>0)}}function wie(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 Eie(n,t){if(1&n&&(g(0,"div",34),j(1),_()),2&n){const e=w().$implicit;v("title",e.lineTwoOverride),f(1),we(e.lineTwoOverride)}}function Die(n,t){if(1&n&&(g(0,"div",34),j(1),_()),2&n){const e=w().$implicit,i=w(3);v("title",i.formatDate(e.dateInMS,"dd.MM.YYYY HH:mm","en_US")),f(1),qe(" ",i.formatDate(e.dateInMS,"dd.MM.YYYY HH:mm","en_US"),"")}}function Sie(n,t){if(1&n){const e=ke();g(0,"button",35),$("click",function(){X(e);const r=w().$implicit;return Z(w(3).datasource.addDocumentLinkToMail(r))}),g(1,"span",36),j(2,"link"),_()()}2&n&&v("title",w(4).globals.languageConfLocal.addLinkTextToMail)}function Aie(n,t){if(1&n){const e=ke();g(0,"div",24)(1,"div",25),Ae(2,"img",26),g(3,"a",27)(4,"div")(5,"div",28),j(6),_(),H(7,Eie,2,2,"div",29),H(8,Die,2,2,"div",29),_()()(),g(9,"div",30),H(10,Sie,3,1,"button",31),g(11,"mat-checkbox",32,33),$("change",function(r){const s=X(e).$implicit;return Z(w(3).destinationActivitySelectorClicked(r,s.subject,s.viewIconUrl))}),_()()()}if(2&n){const e=t.$implicit,i=w(3);f(2),v("src",e.viewIconUrl,Rn),f(1),Dt("href","gi"===i.globals.system?i.createWebintLink(e.pointer):e.url,Rn),f(2),v("title",e.subject),f(1),we(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),f(1),v("name",e.pointer)("checked",e.pointer===i.initSelectedDoc)}}function Tie(n,t){if(1&n&&(g(0,"div",37),j(1),_()),2&n){const e=w(3);f(1),we(e.globals.languageConfLocal.noActivities)}}function xie(n,t){if(1&n&&(g(0,"div"),H(1,Aie,13,9,"div",22),H(2,Tie,2,1,"div",23),_()),2&n){const e=w(2);f(1),v("ngForOf",e.activities),f(1),v("ngIf",0===e.activities.length)}}function Iie(n,t){if(1&n){const e=ke();g(0,"div")(1,"mat-form-field",18),Ae(2,"mat-label"),g(3,"mat-select",19),$("valueChange",function(r){return X(e),Z(w().selectedType=r)})("selectionChange",function(){return X(e),Z(w().activityTypeChanged())}),H(4,wie,2,2,"mat-option",20),_()(),H(5,xie,3,2,"div",1),_()}if(2&n){const e=w();f(3),v("value",e.selectedType),f(1),v("ngForOf",e.types),f(1),v("ngIf",e.activities)}}let Mie=(()=>{class n{constructor(e,i,r,o,s,a,l,c,u){this.globals=e,this.translate=i,this.mailLoadedService=r,this.webintLinkService=o,this.ref=s,this.messageService=a,this.ews=l,this.datasource=c,this.settings=u,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.ews.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.webintLinkService.convertToLink(e)}formatDate(e,i,r){return CT(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,Cl.activity,!0),this.documentsAsDestinations=[],this.documentsAsDestinations.push({name:i,image:r,fdMe:e.source.name})):(this.documentsAsDestinations=[],this.globals.infoShower.setDestinationInfo("",Cl.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.ews.GetExtendedData(this.globals.infoShower.currentItemId).subscribe(e=>{e.docTyp=this.selectedType,this.ews.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("",Cl.activity),this.globals.infoShower.selectFirst()}getDocumentedLabel(){return this.globals.infoShower.isAppointment?this.globals.languageConfLocal.DocumentedTo:this.globals.languageConfLocal.DocumentTo}}return n.\u0275fac=function(e){return new(e||n)(p(ht),p(Kt),p(su),p(Xr),p(It),p(en),p(qs),p(ir),p($c))},n.\u0275cmp=Ue({type:n,selectors:[["app-address-activities"]],viewQuery:function(e,i){if(1&e&&Te(_ie,5),2&e){let r;de(r=he())&&(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"],["target","_blank",1,"contentAndLink",3,"href"],[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,Cie,7,3,"mat-form-field",0),H(1,Iie,6,3,"div",1)),2&e&&(v("ngIf",i.documentsAsDestinations&&i.documentsAsDestinations.length>0),f(1),v("ngIf",!i.globals.infoShower.noneSelected))},dependencies:[Yn,hn,Zr,nr,Hs,Mr,Jr,rg,Qc,Ea,Xc,Yc],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})(),kie=(()=>{class n{constructor(e,i,r,o){this.datasource=e,this.lsm=i,this.ews=r,this.messageService=o}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.ews.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,dr.error),this.lsm.setValue(Zt.sendInProcess,"0"),void e.completed({allowEvent:!1,errorMessage:s.statusText});this.ews.GetExtendedData(r).subscribe(a=>{a.documentedOnSend=!0,this.ews.SaveExtendedData(r,a).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.documentItem(e)}}return n.\u0275fac=function(e){return new(e||n)(p(ir),p(Ji),p(qs),p(en))},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),$("click",function(){return i.sendEventTrigger()}),_())}}),n})();class wl{}const Rie=["projectSelectorPanel"],Oie=["searchProjectsInput"],Pie=["destinationProjectsInputRO"],eO=["destinationProjectsInput"],tO=["searchProjectPhasesInput"],Lie=["allProjectsButton"];function Fie(n,t){if(1&n){const e=ke();g(0,"div",20),$("click",function(){X(e);const r=w().$implicit;return Z(w(2).datasource.addDocumentLinkToMail(r))}),g(1,"span",21),j(2,"link"),_()()}if(2&n){const e=w(3);f(1),v("title",e.globals.languageConfLocal.addLinkTextToMail)}}function Nie(n,t){if(1&n){const e=ke();g(0,"mat-chip",14),$("removed",function(){const o=X(e).$implicit;return Z(w(2).removeProject(o))}),Ae(1,"img",15),g(2,"div",16),j(3),_(),H(4,Fie,3,1,"div",17),g(5,"button",18)(6,"span",19),j(7,"cancel"),_()()()}if(2&n){const e=t.$implicit,i=w(2);v("removable",!0)("title",e.name),f(1),v("src",i.datasource.getImageSrc(e.image),Rn),f(2),we(e.name),f(1),v("ngIf",i.settings.LinkOptionActive),f(2),v("title",i.globals.languageConfLocal.removeFromList)}}function Bie(n,t){if(1&n){const e=ke();g(0,"input",22,23),$("focus",function(r){return X(e),Z(w(2).showProjectSelector(r))}),_()}2&n&&(w(),v("matChipInputFor",Jt(5)))}function jie(n,t){if(1&n){const e=ke();g(0,"input",24,25),$("input",function(r){return X(e),Z(w(2).searchParticipatingProjects(r))}),_()}if(2&n){w();const e=Jt(5),i=Jt(10),r=w();v("matChipInputFor",e)("formControl",r.destinationProjects)("matAutocomplete",i)}}function Hie(n,t){if(1&n&&(g(0,"mat-option",26),Ae(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=w(2);v("value",e),rt("data-fdme",e.fdMe)("data-image",e.image),f(1),v("src",i.datasource.getImageSrc(e.image),Rn),f(2),Dt("title",i.parseHtmlEntities(e.lineOne)),f(1),qe(" ",i.parseHtmlEntities(e.lineOne)," "),f(1),Dt("title",i.parseHtmlEntities(e.lineTwo)),f(1),qe(" ",i.parseHtmlEntities(e.lineTwo)," "),f(1),Dt("title",i.parseHtmlEntities(e.lineThree)),f(1),qe(" ",i.parseHtmlEntities(e.lineThree)," ")}}function Vie(n,t){if(1&n){const e=ke();g(0,"mat-chip",33),$("removed",function(){const o=X(e).$implicit;return Z(w(3).removeProjectPhase(o))}),Ae(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=w(3);v("removable",!0)("title",e.name),f(1),v("src",i.datasource.getImageSrc(e.image),Rn),f(2),we(e.name)}}function Uie(n,t){if(1&n){const e=ke();g(0,"input",24,35),$("input",function(r){return X(e),Z(w(3).searchProjectPhases(r))}),_()}if(2&n){w();const e=Jt(4),i=Jt(8),r=w(2);v("matChipInputFor",e)("formControl",r.projectPhasesControl)("matAutocomplete",i)}}function qie(n,t){if(1&n&&(g(0,"mat-option",26),Ae(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=w(3);v("value",e),rt("data-fdme",e.fdMe)("data-image",e.image),f(1),v("src",i.datasource.getImageSrc(e.image),Rn),f(2),Dt("title",i.parseHtmlEntities(e.lineOne)),f(1),qe(" ",i.parseHtmlEntities(e.lineOne)," "),f(1),Dt("title",i.parseHtmlEntities(e.lineTwo)),f(1),qe(" ",i.parseHtmlEntities(e.lineTwo)," "),f(1),Dt("title",i.parseHtmlEntities(e.lineThree)),f(1),qe(" ",i.parseHtmlEntities(e.lineThree)," ")}}function zie(n,t){if(1&n){const e=ke();g(0,"mat-form-field",31)(1,"mat-label",2),j(2),_(),g(3,"mat-chip-list",3,4),H(5,Vie,7,4,"mat-chip",32),H(6,Uie,2,3,"input",7),g(7,"mat-autocomplete",8,9),$("optionSelected",function(r){return X(e),Z(w(2).autoProjectPhaseSelected(r))})("opened",function(){return X(e),Z(w(2).autocompleteOpened("phasesAuto"))}),H(9,qie,9,10,"mat-option",10),_()()()}if(2&n){const e=w(2);f(2),vo("",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 Gie(n,t){if(1&n){const e=ke();g(0,"div")(1,"mat-form-field",1)(2,"mat-label",2),j(3),_(),g(4,"mat-chip-list",3,4),H(6,Nie,8,6,"mat-chip",5),H(7,Bie,2,1,"input",6),H(8,jie,2,3,"input",7),g(9,"mat-autocomplete",8,9),$("optionSelected",function(r){return X(e),Z(w().autoProjectSelected(r))})("opened",function(){return X(e),Z(w().autocompleteOpened("projectAuto"))}),H(11,Hie,9,10,"mat-option",10),_(),g(12,"span",11,12),$("click",function(r){return X(e),Z(w().showProjectSelector(r))}),j(14,"open_in_new"),_()()(),H(15,zie,10,5,"mat-form-field",13),_()}if(2&n){const e=w();f(3),we(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)}}let Wie=(()=>{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.webintLinkService=c,this.lsm=u,this.dps=d,this.settings=h,this.ews=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 ys(""),this.projectPhasesControl=new ys(""),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.projects=[];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),"gi"===this.globals.system&&(this.showRecentlyUsed=!1),this.globals.infoShower.waitForDocumentDestinationCheckChanged().subscribe({next:i=>{this.projectPhases=[],this.projectPhaseResultArray=[],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(i=>{"appointment"===e?.itemType&&this.ews.GetExtendedData(i).subscribe(r=>{r&&r.selectedProjects&&(this.projects=JSON.parse(r.selectedProjects)),this.projects=this.projects.filter(o=>null!=o)})}),this.globals.infoShower.waitForUpdateBM4ODataCommand().subscribe(i=>{i.selectedProjects=JSON.stringify(this.projects.concat(this.projectPhases))}),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()}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.ews.GetExtendedData(r).subscribe(o=>{o.selectedProjects=i,this.ews.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.ews.GetExtendedData(r).subscribe(o=>{o.selectedProjects=i,this.ews.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 wl;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,Jo.projects,{participantProjects:e}),e&&(this.destinationDirectProjectsCount=this.searchResultsArray.length,this.participatedResultsArray=this.datasource.handleSearchResult(i,Jo.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)})))}parseHtmlEntities(e){return e&&e.replace(/&#([0-9]{1,3});/gi,(i,r)=>{let o=parseInt(r,10);return String.fromCharCode(o)})}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 wl;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 wl;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(ht),p(su),p(It),p(eg),p(Kt),p(ir),p(et),p(Xr),p(Ji),p(ya),p($c),p(qs))},n.\u0275cmp=Ue({type:n,selectors:[["app-project-selector"]],viewQuery:function(e,i){if(1&e&&(Te(Rie,5),Te(Oie,5),Te(Pie,5),Te(eO,5),Te(tO,5),Te(Lie,5),Te(eO,5,ts),Te(tO,5,ts)),2&e){let r;de(r=he())&&(i.projectSelectorPanel=r.first),de(r=he())&&(i.searchProjectsInput=r.first),de(r=he())&&(i.destinationProjectsInputRO=r.first),de(r=he())&&(i.destinationProjectsInput=r.first),de(r=he())&&(i.searchProjectPhasesInput=r.first),de(r=he())&&(i.allProjectsButton=r.first),de(r=he())&&(i.projectsAutocompleteTrigger=r.first),de(r=he())&&(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,Gie,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:[Yn,hn,zr,Eo,Jp,Zr,nr,Mr,Jr,Qc,Ea,Xc,Yc,$k,ts],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 $ie=["searchExpansionPanel"],Kie=["searchTextInput"];function Yie(n,t){if(1&n&&(g(0,"mat-option",17),j(1),_()),2&n){const e=t.$implicit;v("value",e.value),f(1),we(e.viewValue)}}function Qie(n,t){if(1&n){const e=ke();g(0,"mat-form-field",15)(1,"mat-label"),j(2),_(),g(3,"mat-select",7),$("valueChange",function(r){return X(e),Z(w().selectedDB=r)})("selectionChange",function(){return X(e),Z(w().selectedDBChanged())}),H(4,Yie,2,2,"mat-option",16),_()()}if(2&n){const e=w();f(2),we(e.globals.languageConfLocal.contactsDatabase),f(1),v("value",e.selectedDB),f(1),v("ngForOf",e.databases)}}function Xie(n,t){if(1&n&&(g(0,"mat-option",18),j(1),_()),2&n){const e=w();f(1),we(e.globals.languageConfLocal.ExistingCompany)}}function Zie(n,t){if(1&n){const e=ke();g(0,"div")(1,"mat-form-field",19)(2,"mat-label"),j(3),_(),g(4,"input",20),$("ngModelChange",function(r){return X(e),Z(w().extractedContact.Company=r)}),_()(),g(5,"mat-form-field",21)(6,"mat-label"),j(7),_(),g(8,"input",20),$("ngModelChange",function(r){return X(e),Z(w().extractedContact.CompanyEmail=r)}),_()(),g(9,"mat-form-field",21)(10,"mat-label"),j(11),_(),g(12,"input",20),$("ngModelChange",function(r){return X(e),Z(w().extractedContact.CompanyPhone=r)}),_()(),g(13,"mat-form-field",21)(14,"mat-label"),j(15),_(),g(16,"input",20),$("ngModelChange",function(r){return X(e),Z(w().extractedContact.CompanyFax=r)}),_()(),g(17,"mat-form-field",21)(18,"mat-label"),j(19),_(),g(20,"input",20),$("ngModelChange",function(r){return X(e),Z(w().extractedContact.Url=r)}),_()(),g(21,"mat-form-field",21)(22,"mat-label"),j(23),_(),g(24,"input",20),$("ngModelChange",function(r){return X(e),Z(w().extractedContact.Street=r)}),_()(),g(25,"mat-form-field",21)(26,"mat-label"),j(27),_(),g(28,"input",20),$("ngModelChange",function(r){return X(e),Z(w().extractedContact.City=r)}),_()(),g(29,"mat-form-field",21)(30,"mat-label"),j(31),_(),g(32,"input",20),$("ngModelChange",function(r){return X(e),Z(w().extractedContact.Zip=r)}),_()()()}if(2&n){const e=w();f(3),we(e.globals.languageConfLocal.Name),f(1),v("ngModel",e.extractedContact.Company),f(3),we(e.globals.languageConfLocal.Email),f(1),v("ngModel",e.extractedContact.CompanyEmail),f(3),we(e.globals.languageConfLocal.Telephone),f(1),v("ngModel",e.extractedContact.CompanyPhone),f(3),we(e.globals.languageConfLocal.Fax),f(1),v("ngModel",e.extractedContact.CompanyFax),f(3),we(e.globals.languageConfLocal.Web),f(1),v("ngModel",e.extractedContact.Url),f(3),we(e.globals.languageConfLocal.Street),f(1),v("ngModel",e.extractedContact.Street),f(3),we(e.globals.languageConfLocal.City),f(1),v("ngModel",e.extractedContact.City),f(3),we(e.globals.languageConfLocal.Zip),f(1),v("ngModel",e.extractedContact.Zip)}}function Jie(n,t){if(1&n){const e=ke();g(0,"span",36),$("click",function(r){return X(e),Z(w(3).clearTextClicked(r))}),j(1,"cancel"),_()}}function ere(n,t){1&n&&(g(0,"span",37),j(1,"expand_less"),_())}function tre(n,t){1&n&&(g(0,"span",37),j(1,"search"),_())}function nre(n,t){if(1&n&&(g(0,"div",38),j(1),_()),2&n){const e=w(3);f(1),qe(" ",e.globals.languageConfLocal.recentlyUsed," ")}}function ire(n,t){if(1&n){const e=ke();g(0,"div",39),$("click",function(r){return X(e),Z(w(3).clickedElement(r))}),Ae(1,"img",40),g(2,"div",41)(3,"span",42),j(4),_(),Ae(5,"br"),g(6,"span",43),j(7),_(),Ae(8,"br"),g(9,"span",43),j(10),_(),Ae(11,"br"),_()()}if(2&n){const e=t.$implicit,i=t.index,r=w(3);Dt("title",r.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),Rn),f(2),Dt("title",r.parseHtmlEntities(e.lineOne+" <"+e.email+">")),f(1),qe(" ",r.parseHtmlEntities(e.lineOne+" <"+e.email+">")," "),f(2),Dt("title",r.parseHtmlEntities(e.lineTwo)),f(1),we(r.parseHtmlEntities(e.lineTwo)),f(2),Dt("title",r.parseHtmlEntities(e.lineThree)),f(1),we(r.parseHtmlEntities(e.lineThree))}}function rre(n,t){if(1&n){const e=ke();g(0,"mat-expansion-panel",24,25),$("closed",function(){return X(e),Z(w(2).searchResultsPanelClosed())})("opened",function(){return X(e),Z(w(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),$("keydown.Space",function(r){return X(e),Z(w(2).noCloseOnSpace(r))})("input",function(r){return X(e),Z(w(2).textChanged(r))})("focus",function(r){return X(e),Z(w(2).searchInputFocused(r))})("click",function(r){return X(e),Z(w(2).searchInputClicked(r))})("ngModelChange",function(r){return X(e),Z(w(2).textInSearchInput=r)}),_()(),H(9,Jie,2,0,"span",31),H(10,ere,2,0,"span",32),H(11,tre,2,0,"span",32),_()(),g(12,"div",33),H(13,nre,2,1,"div",34),H(14,ire,12,11,"div",35),_()()}if(2&n){const e=Jt(8),i=w(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 ore(n,t){if(1&n){const e=ke();g(0,"div"),H(1,rre,15,6,"mat-expansion-panel",22),g(2,"mat-form-field",19)(3,"mat-label"),j(4),_(),g(5,"input",23),$("ngModelChange",function(r){return X(e),Z(w().extractedContact.CompanyName=r)}),_()(),g(6,"mat-form-field",21)(7,"mat-label"),j(8),_(),g(9,"input",23),$("ngModelChange",function(r){return X(e),Z(w().extractedContact.CompanyAddress=r)}),_()()()}if(2&n){const e=w();f(1),v("ngIf",e.letThereBeSearch),f(3),we(e.globals.languageConfLocal.Name),f(1),v("ngModel",e.extractedContact.CompanyName),f(3),we(e.globals.languageConfLocal.Address),f(1),v("ngModel",e.extractedContact.CompanyAddress)}}function sre(n,t){if(1&n&&(g(0,"mat-option",44),j(1),_()),2&n){const e=w();f(1),we(e.globals.languageConfLocal.NoContact)}}function are(n,t){if(1&n){const e=ke();g(0,"div")(1,"mat-form-field",21)(2,"mat-label"),j(3),_(),g(4,"input",20),$("ngModelChange",function(r){return X(e),Z(w(2).extractedContact.Street=r)}),_()(),g(5,"mat-form-field",21)(6,"mat-label"),j(7),_(),g(8,"input",20),$("ngModelChange",function(r){return X(e),Z(w(2).extractedContact.City=r)}),_()(),g(9,"mat-form-field",21)(10,"mat-label"),j(11),_(),g(12,"input",20),$("ngModelChange",function(r){return X(e),Z(w(2).extractedContact.Zip=r)}),_()()()}if(2&n){const e=w(2);f(3),we(e.globals.languageConfLocal.Street),f(1),v("ngModel",e.extractedContact.Street),f(3),we(e.globals.languageConfLocal.City),f(1),v("ngModel",e.extractedContact.City),f(3),we(e.globals.languageConfLocal.Zip),f(1),v("ngModel",e.extractedContact.Zip)}}function lre(n,t){if(1&n){const e=ke();g(0,"div")(1,"mat-form-field",19)(2,"mat-label"),j(3),_(),g(4,"input",20),$("ngModelChange",function(r){return X(e),Z(w().extractedContact.LastName=r)}),_()(),g(5,"mat-form-field",21)(6,"mat-label"),j(7),_(),g(8,"input",20),$("ngModelChange",function(r){return X(e),Z(w().extractedContact.FirstName=r)}),_()(),g(9,"mat-form-field",21)(10,"mat-label"),j(11),_(),g(12,"input",20),$("ngModelChange",function(r){return X(e),Z(w().extractedContact.Department=r)}),_()(),g(13,"mat-form-field",21)(14,"mat-label"),j(15),_(),g(16,"input",20),$("ngModelChange",function(r){return X(e),Z(w().extractedContact.Phone=r)}),_()(),g(17,"mat-form-field",21)(18,"mat-label"),j(19),_(),g(20,"input",20),$("ngModelChange",function(r){return X(e),Z(w().extractedContact.Mobile=r)}),_()(),g(21,"mat-form-field",21)(22,"mat-label"),j(23),_(),g(24,"input",20),$("ngModelChange",function(r){return X(e),Z(w().extractedContact.Fax=r)}),_()(),g(25,"mat-form-field",21)(26,"mat-label"),j(27),_(),g(28,"input",20),$("ngModelChange",function(r){return X(e),Z(w().email=r)}),_()(),H(29,are,13,6,"div",11),_()}if(2&n){const e=w();f(3),we(e.globals.languageConfLocal.Lastname),f(1),v("ngModel",e.extractedContact.LastName),f(3),we(e.globals.languageConfLocal.Firstname),f(1),v("ngModel",e.extractedContact.FirstName),f(3),we(e.globals.languageConfLocal.Department),f(1),v("ngModel",e.extractedContact.Department),f(3),we(e.globals.languageConfLocal.Telephone),f(1),v("ngModel",e.extractedContact.Phone),f(3),we(e.globals.languageConfLocal.Mobile),f(1),v("ngModel",e.extractedContact.Mobile),f(3),we(e.globals.languageConfLocal.Fax),f(1),v("ngModel",e.extractedContact.Fax),f(3),we(e.globals.languageConfLocal.Email),f(1),v("ngModel",e.email),f(1),v("ngIf","compNo"===e.companyAction)}}let cre=(()=>{class n{constructor(e,i,r,o,s){this.globals=e,this.datasource=i,this.messageService=r,this.htmlHelper=o,this.lsm=s,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 Im}ngOnInit(){this.globals.onActiveWindowChange().subscribe(e=>{"contactCreation"===e.newWindow&&"main"===e.currentWindow&&this.initializeTheView()})}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)}creationSelectionChange(e){this.showNoContact="compExist"!==this.companyAction,"compExist"===this.companyAction&&(this.contactAction="contNew"),this.extractedContact.Company="compExist"!==this.companyAction||this.extractedContact.CompanyPointer?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))}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.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&&((!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+"
"),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:this.globals.languageConfLocal.NewStandaloneContactCreated,dr.success):"compNew"===this.companyAction&&this.messageService.showMessageAsync(this.globals.languageConfLocal.NewCompanyCreated,dr.success),this.globals.hideSpinner(),this.globals.contactCreated=!0,this.globals.activeWindow="main")},error:o=>{this.globals.hideSpinner()}})})}cancelClicked(){this.globals.activeWindow="main"}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}parseHtmlEntities(e){return e&&e.replace(/&#([0-9]{1,3});/gi,(i,r)=>{let o=parseInt(r,10);return String.fromCharCode(o)})}clickedElement(e){this.selectCompany(e.currentTarget)}getCompanies(){}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)}get email(){return this.globals.infoShower.addresses[0]?.email||this.recognizedMail}set email(e){this.globals.infoShower.addresses[0]&&(this.globals.infoShower.addresses[0].email=e)}}return n.\u0275fac=function(e){return new(e||n)(p(ht),p(ir),p(en),p(kC),p(Ji))},n.\u0275cmp=Ue({type:n,selectors:[["app-contact-creator"]],viewQuery:function(e,i){if(1&e&&(Te($ie,5),Te(Kie,5)),2&e){let r;de(r=he())&&(i.searchExpansionPanel=r.first),de(r=he())&&(i.searchTextInput=r.first)}},decls:33,vars:18,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"],["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),$("click",function(){return i.createClicked()}),j(5,"check_circle"),_(),g(6,"span",3),$("click",function(){return i.cancelClicked()}),j(7,"cancel"),_()()(),H(8,Qie,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),$("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,Xie,2,1,"mat-option",10),_()()(),g(19,"mat-card-content"),H(20,Zie,33,16,"div",11),H(21,ore,10,5,"div",11),_()(),g(22,"mat-card",0)(23,"mat-card-header",5)(24,"mat-form-field",6)(25,"mat-label"),j(26),_(),g(27,"mat-select",7),$("valueChange",function(o){return i.contactAction=o})("selectionChange",function(o){return i.creationSelectionChange(o)}),H(28,sre,2,1,"mat-option",12),g(29,"mat-option",13),j(30),_()()()(),g(31,"mat-card-content",14),H(32,lre,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),we(i.globals.languageConfLocal.ComapnyAction),f(1),v("value",i.companyAction),f(2),we(i.globals.languageConfLocal.NoCompany),f(2),we(i.globals.languageConfLocal.NewCompany),f(1),v("ngIf",i.showExistingCompany),f(1),wi("compExist"!==i.companyAction?"cardWithBackground":"cardWithBackgroundDarker"),f(1),v("ngIf","compNew"===i.companyAction),f(1),v("ngIf","compExist"===i.companyAction),f(5),we(i.globals.languageConfLocal.ContactAction),f(1),v("value",i.contactAction),f(1),v("ngIf",i.showNoContact),f(2),we(i.globals.languageConfLocal.NewContact),f(2),v("ngIf","contNew"===i.contactAction))},dependencies:[Yn,hn,zr,Eo,qo,Zr,nr,Hs,Mr,Jr,dw,oR,sR,ig,xee,tg,ng],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 nO={appVersion:G(4147).i8+"-beta",production:!0,basehref:"businessmail-beta"};let ure=(()=>{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=>{"userSettings"===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=nO.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(ht),p(en),p(su),p(It),p(Kt),p(er),p(ir),p(Ji),p(ya))},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),$("click",function(){return i.openGedys()}),j(10,"www.gedys-intraware.de"),_()(),g(11,"div"),Ae(12,"br"),g(13,"a",2),$("click",function(){return i.licenseInfo()}),j(14),_()(),g(15,"button",3),$("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),we(i.globals.languageConfLocal.licenseInfo),f(2),we(i.globals.languageConfLocal.Close))},dependencies:[Gc],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})(),dre=(()=>{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(ht),p(en),p(su),p(It),p(Kt),p(er),p(ir),p(Ji),p(vc),p(ya))},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),$("click",function(){return i.closeClicked()}),j(5),_()()),2&e&&(f(3),qe(" ",i.licInfo,"\n "),f(2),we(i.globals.languageConfLocal.Close))},dependencies:[Gc]}),n})();const hre=["projectSelectorPanel"],pre=["searchProjectsInput"],fre=["searchDocumentInput"],iO=["tagsInput"];function mre(n,t){if(1&n){const e=ke();g(0,"mat-chip",11),$("removed",function(){const o=X(e).$implicit;return Z(w(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),we(e[1])}}function gre(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=w(2);v("value",e),rt("data-key",e[0]),f(2),Dt("title",i.parseHtmlEntities(e[1])),f(1),qe(" ",i.parseHtmlEntities(e[1])," ")}}function _re(n,t){if(1&n){const e=ke();g(0,"div")(1,"mat-form-field",1)(2,"mat-label",2),j(3),_(),g(4,"mat-chip-list",3,4),H(6,mre,6,3,"mat-chip",5),g(7,"input",6,7),$("input",function(r){return X(e),Z(w().searchTags(r))}),_(),g(9,"mat-autocomplete",8,9),$("optionSelected",function(r){return X(e),Z(w().autoTagsSelected(r))})("opened",function(){return X(e),Z(w().autocompleteOpened("tagsAuto"))}),H(11,gre,4,4,"mat-option",10),_()()()()}if(2&n){const e=Jt(5),i=Jt(10),r=w();f(3),we(r.globals.languageConfLocal.tags),f(3),v("ngForOf",r.enums),f(1),v("matChipInputFor",e)("matAutocomplete",i),f(4),v("ngForOf",r.filteredParticipatedResultsArray)}}let vre=(()=>{class n{constructor(e,i,r,o,s,a,l,c,u,d){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.ews=d,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.ews.GetExtendedData(i).subscribe(r=>{})}),this.globals.infoShower.waitForUpdateBM4ODataCommand().subscribe(i=>{})}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.ews.GetExtendedData(r).subscribe(o=>{o.tags=i,this.ews.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()}})}parseHtmlEntities(e){return e&&e.replace(/&#([0-9]{1,3});/gi,(i,r)=>{let o=parseInt(r,10);return String.fromCharCode(o)})}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(ht),p(su),p(It),p(eg),p(Kt),p(ir),p(et),p(Ji),p(ya),p(qs))},n.\u0275cmp=Ue({type:n,selectors:[["app-tags-selector"]],viewQuery:function(e,i){if(1&e&&(Te(hre,5),Te(pre,5),Te(fre,5),Te(iO,5),Te(iO,5,ts)),2&e){let r;de(r=he())&&(i.projectSelectorPanel=r.first),de(r=he())&&(i.searchProjectsInput=r.first),de(r=he())&&(i.searchDocumentInput=r.first),de(r=he())&&(i.tagsInput=r.first),de(r=he())&&(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,_re,12,5,"div",0),2&e&&v("ngIf",!i.globals.infoShower.noneSelected&&i.tagsVisible)},dependencies:[Yn,hn,Zr,nr,Mr,Jr,Qc,Ea,Xc,Yc,$k,ts],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 yre=["projectSelectorPanel"],bre=["searchProjectsInput"],Cre=["destinationProjectsInputRO"],rO=["destinationProjectsInput"],oO=["searchProjectPhasesInput"],wre=["allProjectsButton"];function Ere(n,t){if(1&n&&(g(0,"mat-option",24),j(1),_()),2&n){const e=t.$implicit;v("value",e.value),f(1),we(e.viewValue)}}function Dre(n,t){if(1&n){const e=ke();g(0,"mat-form-field",21)(1,"mat-label"),j(2),_(),g(3,"mat-select",22),$("valueChange",function(r){return X(e),Z(w(2).selectedDB=r)})("selectionChange",function(){return X(e),Z(w(2).getProjects(!1))}),H(4,Ere,2,2,"mat-option",23),_()()}if(2&n){const e=w(2);f(2),we(e.globals.languageConfLocal.projectDatabase),f(1),v("value",e.selectedDB),f(1),v("ngForOf",e.databases)}}function Sre(n,t){if(1&n&&(g(0,"div",25),j(1),_()),2&n){const e=w(2);f(1),qe(" ",e.globals.languageConfLocal.recentlyUsed," ")}}function Are(n,t){if(1&n){const e=ke();g(0,"div",26),$("click",function(r){return X(e),Z(w(2).dblClickedElement(r))}),Ae(1,"img",27),g(2,"div",28)(3,"span",29),j(4),_(),Ae(5,"br"),g(6,"span",30),j(7),_(),Ae(8,"br"),g(9,"span",30),j(10),_(),Ae(11,"br"),_()()}if(2&n){const e=t.$implicit,i=t.index,r=w(2);Dt("title",e.lineOne),rt("data-order",i+1)("data-fdme",e.fdMe)("data-displayname",r.parseHtmlEntities(e.lineOne))("data-image",e.image),f(1),v("src",r.datasource.getImageSrc(e.image),Rn),f(2),Dt("title",r.parseHtmlEntities(e.lineOne)),f(1),we(r.parseHtmlEntities(e.lineOne)),f(2),Dt("title",r.parseHtmlEntities(e.lineTwo)),f(1),we(r.parseHtmlEntities(e.lineTwo)),f(2),Dt("title",r.parseHtmlEntities(e.lineThree)),f(1),we(r.parseHtmlEntities(e.lineThree))}}function Tre(n,t){if(1&n){const e=ke();g(0,"mat-chip",31),$("removed",function(){const o=X(e).$implicit;return Z(w(2).removeProject(o))}),Ae(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=w(2);v("removable",!0)("title",e.name),rt("data-pointer",e.pointer),f(1),v("src",i.datasource.getImageSrc(e.image),Rn),f(2),we(e.name)}}function xre(n,t){if(1&n){const e=ke();g(0,"div")(1,"mat-card",1,2)(3,"mat-card-title",3),j(4),g(5,"div",4)(6,"span",5),$("click",function(){return X(e),Z(w().confirmSelection())}),j(7,"check_circle"),_(),g(8,"span",6),$("click",function(){return X(e),Z(w().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),$("input",function(r){return X(e),Z(w().textChanged(r))}),_()(),H(16,Dre,5,3,"mat-form-field",11),Ae(17,"br"),g(18,"div",12),H(19,Sre,2,1,"div",13),H(20,Are,12,12,"div",14),_()(),g(21,"mat-card-footer",15),Ae(22,"mat-divider",16),g(23,"mat-chip-list",17,18),H(25,Tre,7,5,"mat-chip",19),Ae(26,"input",20),_()()()()}if(2&n){const e=Jt(24),i=w();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),we(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 Ire=(()=>{class n{constructor(e,i,r,o,s,a,l,c,u){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.ews=u,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 ys(""),this.projectPhasesControl=new ys(""),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.ews.GetExtendedData(r).subscribe(o=>{o.selectedProjects=i,this.ews.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.ews.GetExtendedData(r).subscribe(o=>{o.selectedProjects=i,this.ews.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 wl;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,Jo.projects,{participantProjects:e}),e&&(this.destinationDirectProjectsCount=this.searchResultsArray.length,this.participatedResultsArray=this.datasource.handleSearchResult(i,Jo.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)})))}parseHtmlEntities(e){return e&&e.replace(/&#([0-9]{1,3});/gi,(i,r)=>{let o=parseInt(r,10);return String.fromCharCode(o)})}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 wl;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 wl;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(ht),p(It),p(eg),p(Kt),p(ir),p(et),p(Ji),p(ya),p(qs))},n.\u0275cmp=Ue({type:n,selectors:[["app-project-selector-page"]],viewQuery:function(e,i){if(1&e&&(Te(yre,5),Te(bre,5),Te(Cre,5),Te(rO,5),Te(oO,5),Te(wre,5),Te(rO,5,ts),Te(oO,5,ts)),2&e){let r;de(r=he())&&(i.projectSelectorPanel=r.first),de(r=he())&&(i.searchProjectsInput=r.first),de(r=he())&&(i.destinationProjectsInputRO=r.first),de(r=he())&&(i.destinationProjectsInput=r.first),de(r=he())&&(i.searchProjectPhasesInput=r.first),de(r=he())&&(i.allProjectsButton=r.first),de(r=he())&&(i.projectsAutocompleteTrigger=r.first),de(r=he())&&(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,xre,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:[Yn,hn,gC,Zr,nr,Hs,Mr,Jr,ig,tg,ng,hw,Qc,Ea,Xc,Yc],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{border-radius:16px;color:#e60000;font-weight:900}span.material-symbols-rounded.green{border-radius:16px;color:#04d804;font-weight:900}.iconsDiv{display:flex}.left-right-align{display:flex;justify-content:space-between}\n'],encapsulation:2}),n})();const Mre=["openAfterCreate"],kre=["linkOptionActive"];function Rre(n,t){if(1&n&&(g(0,"div",8)(1,"mat-label"),j(2),_(),Ae(3,"mat-checkbox",null,12),_()),2&n){const e=w(2);f(2),we(e.globals.languageConfLocal.activateLinkOption)}}function Ore(n,t){if(1&n){const e=ke();g(0,"div")(1,"mat-card",1,2)(3,"mat-card-title",3),j(4),g(5,"div",4)(6,"span",5),$("click",function(){return X(e),Z(w().saveSettings())}),j(7,"check_circle"),_(),g(8,"span",6),$("click",function(){return X(e),Z(w().cancelChanges())}),j(9,"cancel"),_()()(),g(10,"mat-card-content",7)(11,"div",8)(12,"mat-label"),j(13),_(),Ae(14,"mat-checkbox",null,9),_(),H(16,Rre,5,1,"div",10),_(),Ae(17,"mat-card-footer",11),_()()}if(2&n){const e=w();f(4),qe(" ",e.globals.languageConfLocal.userSettings," "),f(2),v("title",e.globals.languageConfLocal.Apply),f(2),v("title",e.globals.languageConfLocal.Cancel),f(5),we(e.globals.languageConfLocal.autoOpenNew),f(3),v("ngIf",e.globals.configJson.webUrl)}}let Pre=(()=>{class n{constructor(e,i,r,o,s,a,l){this.globals=e,this.ref=i,this.snack=r,this.messageService=o,this.translate=s,this.datasource=a,this.settings=l}ngOnInit(){this.globals.onActiveWindowChange().subscribe(e=>{"userSettings"===e.newWindow&&"main"===e.currentWindow&&this.initializeTheView()})}initializeTheView(){this.openAfterCreate.checked="true"===this.settings.get(zs.USopenAfterCreate),this.linkOptionActive.checked="true"===this.settings.get(zs.USlinkOptionActive)}detectChanges(){this.ref.detectChanges()}saveSettings(){this.settings.set(zs.USopenAfterCreate,String(this.openAfterCreate.checked)),this.settings.set(zs.USlinkOptionActive,String(this.linkOptionActive.checked)),this.settings.save().subscribe({next:e=>{"succeeded"===e.status?this.messageService.showSuccess(this.globals.languageConfLocal.settingsSaved):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"}}return n.\u0275fac=function(e){return new(e||n)(p(ht),p(It),p(eg),p(en),p(Kt),p(ir),p($c))},n.\u0275cmp=Ue({type:n,selectors:[["app-user-settings"]],viewQuery:function(e,i){if(1&e&&(Te(Mre,5),Te(kre,5)),2&e){let r;de(r=he())&&(i.openAfterCreate=r.first),de(r=he())&&(i.linkOptionActive=r.first)}},decls:1,vars:1,consts:[[4,"ngIf"],[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"],[1,"settingsHolder"],["openAfterCreate",""],["class","settingsHolder",4,"ngIf"],[1,"settingsFooter"],["linkOptionActive",""]],template:function(e,i){1&e&&H(0,Ore,18,5,"div",0),2&e&&v("ngIf",i.globals.infoShower&&!i.globals.noProjects)},dependencies:[hn,nr,ig,tg,ng,hw,rg],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:90% 8% 1%;padding-top:1em;padding-bottom:.5em}.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{border-radius:16px;color:#e60000;font-weight:900}span.material-symbols-rounded.green{border-radius:16px;color:#04d804;font-weight:900}.iconsDiv{display:flex;align-items:center}.left-right-align{display:flex;justify-content:space-between;margin-bottom:16px}\n'],encapsulation:2}),n})();const Lre=["searchTextInput"],Fre=["projectSelectorPanel"],Nre=["destinationProjectsInputRO"],sO=["destinationProjectsInput"],aO=["searchProjectPhasesInput"],Bre=["allProjectsButton"];function jre(n,t){if(1&n&&(g(0,"mat-option",25),j(1),_()),2&n){const e=t.$implicit,i=w(3);v("value",e),f(1),vo(" ",i.datasource.getDisplayedType(e.type),": ",e.title," ")}}function Hre(n,t){if(1&n){const e=ke();g(0,"mat-form-field",22)(1,"mat-label"),j(2),_(),g(3,"mat-select",23),$("valueChange",function(r){return X(e),Z(w(2).selectedDB=r)})("selectionChange",function(){return X(e),Z(w(2).changeSelectedDB())}),H(4,jre,2,3,"mat-option",24),_()()}if(2&n){const e=w(2);f(2),we(e.globals.languageConfLocal.SelectDatabase),f(1),v("value",e.selectedDB),f(1),v("ngForOf",e.entriesArray)}}function Vre(n,t){if(1&n&&(g(0,"div",26),j(1),_()),2&n){const e=w(2);f(1),qe(" ",e.globals.languageConfLocal.recentlyUsed," ")}}function Ure(n,t){if(1&n){const e=ke();g(0,"div",27),$("click",function(r){return X(e),Z(w(2).dblClickedElement(r))}),Ae(1,"img",28),g(2,"div",29)(3,"span",30),j(4),_(),Ae(5,"br"),g(6,"span",31),j(7),_(),Ae(8,"br"),g(9,"span",31),j(10),_(),Ae(11,"br"),_()()}if(2&n){const e=t.$implicit,i=t.index,r=w(2);Dt("title",e.lineOne),rt("data-order",i+1)("data-fdme",e.fdMe)("data-displayname",r.parseHtmlEntities(e.lineOne))("data-image",e.image),f(1),v("src",r.datasource.getImageSrc(e.image),Rn),f(2),Dt("title",r.parseHtmlEntities(e.lineOne)),f(1),we(r.parseHtmlEntities(e.lineOne)),f(2),Dt("title",r.parseHtmlEntities(e.lineTwo)),f(1),we(r.parseHtmlEntities(e.lineTwo)),f(2),Dt("title",r.parseHtmlEntities(e.lineThree)),f(1),we(r.parseHtmlEntities(e.lineThree))}}function qre(n,t){if(1&n){const e=ke();g(0,"mat-chip",32),$("removed",function(){const o=X(e).$implicit;return Z(w(2).removeDocument(o))}),Ae(1,"img",33),g(2,"div",34),j(3),_(),g(4,"button",35)(5,"span",36),j(6,"cancel"),_()()()}if(2&n){const e=t.$implicit,i=w(2);v("removable",!0)("title",e.name),rt("data-pointer",e.pointer),f(1),v("src",i.datasource.getImageSrc(e.image),Rn),f(2),we(e.name)}}function zre(n,t){if(1&n){const e=ke();g(0,"div")(1,"mat-card",1,2)(3,"mat-card-title",3),j(4),g(5,"div",4)(6,"span",5),$("click",function(){return X(e),Z(w().confirmSelection())}),j(7,"check_circle"),_(),g(8,"span",6),$("click",function(){return X(e),Z(w().cancelSelection())}),j(9,"cancel"),_()()(),g(10,"mat-card-content",7)(11,"mat-form-field",8)(12,"mat-label",9),j(13),_(),g(14,"input",10,11),$("input",function(){X(e);const r=Jt(15);return Z(w().textChanged(r.value))})("ngModelChange",function(r){return X(e),Z(w().textInSearchInput=r)}),_()(),H(16,Hre,5,3,"mat-form-field",12),Ae(17,"br"),g(18,"div",13),H(19,Vre,2,1,"div",14),H(20,Ure,12,12,"div",15),_()(),g(21,"mat-card-footer",16),Ae(22,"mat-divider",17),g(23,"mat-chip-list",18,19),H(25,qre,7,5,"mat-chip",20),Ae(26,"input",21),_()()()()}if(2&n){const e=Jt(24),i=w();f(4),qe(" ",i.globals.languageConfLocal.doucmentSelection," "),f(2),v("title",i.globals.languageConfLocal.Apply),f(2),v("title",i.globals.languageConfLocal.Cancel),f(5),we(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 Gre=(()=>{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.ews=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 ys(""),this.projectPhasesControl=new ys(""),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())})}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}parseHtmlEntities(e){return e&&e.replace(/&#([0-9]{1,3});/gi,(i,r)=>{let o=parseInt(r,10);return String.fromCharCode(o)})}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 wl;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)}}}return n.\u0275fac=function(e){return new(e||n)(p(ht),p(It),p(Kt),p(ir),p(et),p(Ji),p(ya),p(qs))},n.\u0275cmp=Ue({type:n,selectors:[["app-document-selector-page"]],viewQuery:function(e,i){if(1&e&&(Te(Lre,5),Te(Fre,5),Te(Nre,5),Te(sO,5),Te(aO,5),Te(Bre,5),Te(sO,5,ts),Te(aO,5,ts)),2&e){let r;de(r=he())&&(i.searchTextInput=r.first),de(r=he())&&(i.projectSelectorPanel=r.first),de(r=he())&&(i.destinationProjectsInputRO=r.first),de(r=he())&&(i.destinationProjectsInput=r.first),de(r=he())&&(i.searchProjectPhasesInput=r.first),de(r=he())&&(i.allProjectsButton=r.first),de(r=he())&&(i.projectsAutocompleteTrigger=r.first),de(r=he())&&(i.phasesAutocompleteTrigger=r.first)}},decls:1,vars:1,consts:[[4,"ngIf"],[1,"allDocumentsCard"],["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,"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"],[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,zre,27,10,"div",0),2&e&&v("ngIf",i.globals.infoShower)},dependencies:[Yn,hn,zr,Eo,qo,gC,Zr,nr,Hs,Mr,Jr,ig,tg,ng,hw,Qc,Ea,Xc,Yc],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{border-radius:16px;color:#e60000;font-weight:900}span.material-symbols-rounded.green{border-radius:16px;color:#04d804;font-weight:900}.iconsDiv{display:flex}.left-right-align{display:flex;justify-content:space-between}\n'],encapsulation:2}),n})(),lO=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=dt({type:n,bootstrap:[PC]}),n.\u0275inj=ct({providers:[ht,RC,O1,Bn,Mm,{provide:kf,useValue:{}},{provide:qy,useClass:sU,multi:!0},cl],imports:[tx,VV,UV,oU,cJ,N1.forRoot({preventDuplicates:!0}),cG,BQ,O1,sW,fm,hW,HW,ha,hY,FM,mte,lM,lee,Eee,Iee,XQ,Oee,Gee,tte,Qk,HJ,TJ,lM.forRoot(new mne({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}),wU.forRoot({defaultLanguage:"en",loader:{provide:ad,useClass:yJ}})]}),n})();(function Fw(n,t,e){const i=n.\u0275cmp;i.directiveDefs=()=>("function"==typeof t?t():t).map(Nw),i.pipeDefs=()=>("function"==typeof e?e():e).map(qi)})(PC,function(){return[hn,ra,Gc,Gs,aX,uX,vJ,yte,gne,One,ure,gie,cre,Mie,kie,Wie,Ire,vre,dre,Pre,Gre]},[]),nO.production&&(function A4(){iT=!1}(),window.console.log=()=>{});try{Office.initialize=()=>{XT().bootstrapModule(lO)}}catch{XT().bootstrapModule(lO).catch(t=>console.error(t))}},4999:Le=>{"use strict";var C=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 N(B,z){return!1!==z.clone&&z.isMergeableObject(B)?A(function q(B){return Array.isArray(B)?[]:{}}(B),B,z):B}function M(B,z,re){return B.concat(z).map(function(Ce){return N(Ce,re)})}function E(B){return Object.keys(B).concat(function x(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 A(B,z,re){(re=re||{}).arrayMerge=re.arrayMerge||M,re.isMergeableObject=re.isMergeableObject||C,re.cloneUnlessOtherwiseSpecified=N;var Ce=Array.isArray(z);return Ce===Array.isArray(B)?Ce?re.arrayMerge(B,z,re):function k(B,z,re){var Ce={};return re.isMergeableObject(B)&&E(B).forEach(function(W){Ce[W]=N(B[W],re)}),E(z).forEach(function(W){(function D(B,z){return P(B,z)&&!(Object.hasOwnProperty.call(B,z)&&Object.propertyIsEnumerable.call(B,z))})(B,W)||(Ce[W]=P(B,W)&&re.isMergeableObject(z[W])?function O(B,z){if(!z.customMerge)return A;var re=z.customMerge(B);return"function"==typeof re?re:A}(W,re)(B[W],z[W],re):N(z[W],re))}),Ce}(B,z,re):N(z,re)}A.all=function(z,re){if(!Array.isArray(z))throw new Error("first argument should be an array");return z.reduce(function(Ce,W){return A(Ce,W,re)},{})},Le.exports=A},2094:(Le,C)=>{"use strict";Object.defineProperty(C,"__esModule",{value:!0}),C.attributeNames=C.elementNames=void 0,C.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"]]),C.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,C,G){"use strict";var le=this&&this.__assign||function(){return le=Object.assign||function(W){for(var ie,b=1,K=arguments.length;b"}(W);case q.Comment:return function Ce(W){return"\x3c!--"+W.data+"--\x3e"}(W);case q.CDATA:return function re(W){return""+W.children[0].data+""}(W);case q.Script:case q.Style:case q.Tag:return function I(W,ie){var b;"foreign"===ie.xmlMode&&(W.name=null!==(b=M.elementNames.get(W.name))&&void 0!==b?b:W.name,W.parent&&k.has(W.parent.name)&&(ie=le(le({},ie),{xmlMode:!1}))),!ie.xmlMode&&A.has(W.name)&&(ie=le(le({},ie),{xmlMode:"foreign"}));var K="<"+W.name,F=function x(W,ie){if(W)return Object.keys(W).map(function(b){var K,F,oe=null!==(K=W[b])&&void 0!==K?K:"";return"foreign"===ie.xmlMode&&(b=null!==(F=M.attributeNames.get(b))&&void 0!==F?F:b),ie.emptyAttrs||ie.xmlMode||""!==oe?b+'="'+(!1!==ie.decodeEntities?N.encodeXML(oe):oe.replace(/"/g,"""))+'"':b}).join(" ")}(W.attribs,ie);return F&&(K+=" "+F),0===W.children.length&&(ie.xmlMode?!1!==ie.selfClosingTags:ie.selfClosingTags&&E.has(W.name))?(ie.xmlMode||(K+=" "),K+="/>"):(K+=">",W.children.length>0&&(K+=P(W.children,ie)),(ie.xmlMode||!E.has(W.name))&&(K+="")),K}(W,ie);case q.Text:return function z(W,ie){var b=W.data||"";return!1!==ie.decodeEntities&&!(!ie.xmlMode&&W.parent&&O.has(W.parent.name))&&(b=N.encodeXML(b)),b}(W,ie)}}C.default=P;var k=new Set(["mi","mo","mn","ms","mtext","annotation-xml","foreignObject","desc","title"]),A=new Set(["svg","math"])},6316:(Le,C)=>{"use strict";var G,ce;Object.defineProperty(C,"__esModule",{value:!0}),C.Doctype=C.CDATA=C.Tag=C.Style=C.Script=C.Comment=C.Directive=C.Text=C.Root=C.isTag=C.ElementType=void 0,(ce=G=C.ElementType||(C.ElementType={})).Root="root",ce.Text="text",ce.Directive="directive",ce.Comment="comment",ce.Script="script",ce.Style="style",ce.Tag="tag",ce.CDATA="cdata",ce.Doctype="doctype",C.isTag=function le(ce){return ce.type===G.Tag||ce.type===G.Script||ce.type===G.Style},C.Root=G.Root,C.Text=G.Text,C.Directive=G.Directive,C.Comment=G.Comment,C.Script=G.Script,C.Style=G.Style,C.Tag=G.Tag,C.CDATA=G.CDATA,C.Doctype=G.Doctype},2962:function(Le,C,G){"use strict";var le=this&&this.__createBinding||(Object.create?function(O,x,E,P){void 0===P&&(P=E);var D=Object.getOwnPropertyDescriptor(x,E);(!D||("get"in D?!x.__esModule:D.writable||D.configurable))&&(D={enumerable:!0,get:function(){return x[E]}}),Object.defineProperty(O,P,D)}:function(O,x,E,P){void 0===P&&(P=E),O[P]=x[E]}),ce=this&&this.__exportStar||function(O,x){for(var E in O)"default"!==E&&!Object.prototype.hasOwnProperty.call(x,E)&&le(x,O,E)};Object.defineProperty(C,"__esModule",{value:!0}),C.DomHandler=void 0;var Y=G(6316),Q=G(3416);ce(G(3416),C);var q=/\s+/g,N={normalizeWhitespace:!1,withStartIndices:!1,withEndIndices:!1,xmlMode:!1},M=function(){function O(x,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=N),"object"==typeof x&&(E=x,x=void 0),this.callback=x??null,this.options=E??N,this.elementCB=P??null}return O.prototype.onparserinit=function(x){this.parser=x},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(x){this.handleCallback(x)},O.prototype.onclosetag=function(){this.lastNode=null;var x=this.tagStack.pop();this.options.withEndIndices&&(x.endIndex=this.parser.endIndex),this.elementCB&&this.elementCB(x)},O.prototype.onopentag=function(x,E){var D=new Q.Element(x,E,void 0,this.options.xmlMode?Y.ElementType.Tag:void 0);this.addNode(D),this.tagStack.push(D)},O.prototype.ontext=function(x){var E=this.options.normalizeWhitespace,P=this.lastNode;if(P&&P.type===Y.ElementType.Text)E?P.data=(P.data+x).replace(q," "):P.data+=x,this.options.withEndIndices&&(P.endIndex=this.parser.endIndex);else{E&&(x=x.replace(q," "));var D=new Q.Text(x);this.addNode(D),this.lastNode=D}},O.prototype.oncomment=function(x){if(this.lastNode&&this.lastNode.type===Y.ElementType.Comment)this.lastNode.data+=x;else{var E=new Q.Comment(x);this.addNode(E),this.lastNode=E}},O.prototype.oncommentend=function(){this.lastNode=null},O.prototype.oncdatastart=function(){var x=new Q.Text(""),E=new Q.NodeWithChildren(Y.ElementType.CDATA,[x]);this.addNode(E),x.parent=E,this.lastNode=x},O.prototype.oncdataend=function(){this.lastNode=null},O.prototype.onprocessinginstruction=function(x,E){var P=new Q.ProcessingInstruction(x,E);this.addNode(P)},O.prototype.handleCallback=function(x){if("function"==typeof this.callback)this.callback(x,this.dom);else if(x)throw x},O.prototype.addNode=function(x){var E=this.tagStack[this.tagStack.length-1],P=E.children[E.children.length-1];this.options.withStartIndices&&(x.startIndex=this.parser.startIndex),this.options.withEndIndices&&(x.endIndex=this.parser.endIndex),E.children.push(x),P&&(x.prev=P,P.next=x),x.parent=E,this.lastNode=null},O}();C.DomHandler=M,C.default=M},3416:function(Le,C,G){"use strict";var b,le=this&&this.__extends||(b=function(K,F){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,F)},function(K,F){if("function"!=typeof F&&null!==F)throw new TypeError("Class extends value "+String(F)+" is not a constructor or null");function oe(){this.constructor=K}b(K,F),K.prototype=null===F?Object.create(F):(oe.prototype=F.prototype,new oe)}),ce=this&&this.__assign||function(){return ce=Object.assign||function(b){for(var K,F=1,oe=arguments.length;F0?this.children[this.children.length-1]:null},enumerable:!1,configurable:!0}),Object.defineProperty(K.prototype,"childNodes",{get:function(){return this.children},set:function(F){this.children=F},enumerable:!1,configurable:!0}),K}(q);C.NodeWithChildren=E;var P=function(b){function K(F){return b.call(this,Y.ElementType.Root,F)||this}return le(K,b),K}(E);C.Document=P;var D=function(b){function K(F,oe,_e,V){void 0===_e&&(_e=[]),void 0===V&&(V="script"===F?Y.ElementType.Script:"style"===F?Y.ElementType.Style:Y.ElementType.Tag);var L=b.call(this,V,_e)||this;return L.name=F,L.attribs=oe,L}return le(K,b),Object.defineProperty(K.prototype,"tagName",{get:function(){return this.name},set:function(F){this.name=F},enumerable:!1,configurable:!0}),Object.defineProperty(K.prototype,"attributes",{get:function(){var F=this;return Object.keys(this.attribs).map(function(oe){var _e,V;return{name:oe,value:F.attribs[oe],namespace:null===(_e=F["x-attribsNamespace"])||void 0===_e?void 0:_e[oe],prefix:null===(V=F["x-attribsPrefix"])||void 0===V?void 0:V[oe]}})},enumerable:!1,configurable:!0}),K}(E);function k(b){return(0,Y.isTag)(b)}function A(b){return b.type===Y.ElementType.CDATA}function I(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 W(b,K){var F;if(void 0===K&&(K=!1),I(b))F=new M(b.data);else if(B(b))F=new O(b.data);else if(k(b)){var oe=K?ie(b.children):[],_e=new D(b.name,ce({},b.attribs),oe);oe.forEach(function(pe){return pe.parent=_e}),null!=b.namespace&&(_e.namespace=b.namespace),b["x-attribsNamespace"]&&(_e["x-attribsNamespace"]=ce({},b["x-attribsNamespace"])),b["x-attribsPrefix"]&&(_e["x-attribsPrefix"]=ce({},b["x-attribsPrefix"])),F=_e}else if(A(b)){oe=K?ie(b.children):[];var V=new E(Y.ElementType.CDATA,oe);oe.forEach(function(ue){return ue.parent=V}),F=V}else if(re(b)){oe=K?ie(b.children):[];var L=new P(oe);oe.forEach(function(ue){return ue.parent=L}),b["x-mode"]&&(L["x-mode"]=b["x-mode"]),F=L}else{if(!z(b))throw new Error("Not implemented yet: ".concat(b.type));var J=new x(b.name,b.data);null!=b["x-name"]&&(J["x-name"]=b["x-name"],J["x-publicId"]=b["x-publicId"],J["x-systemId"]=b["x-systemId"]),F=J}return F.startIndex=b.startIndex,F.endIndex=b.endIndex,null!=b.sourceCodeLocation&&(F.sourceCodeLocation=b.sourceCodeLocation),F}function ie(b){for(var K=b.map(function(oe){return W(oe,!0)}),F=1;F{"use strict";Object.defineProperty(C,"__esModule",{value:!0}),C.getFeed=void 0;var le=G(4543),ce=G(9735);C.getFeed=function Y(k){var A=x(D,k);return A?"feed"===A.name?function Q(k){var A,I=k.children,B={type:"atom",items:(0,ce.getElementsByTagName)("entry",I).map(function(Ce){var W,ie=Ce.children,b={media:O(ie)};P(b,"id","id",ie),P(b,"title","title",ie);var K=null===(W=x("link",ie))||void 0===W?void 0:W.attribs.href;K&&(b.link=K);var F=E("summary",ie)||E("content",ie);F&&(b.description=F);var oe=E("updated",ie);return oe&&(b.pubDate=new Date(oe)),b})};P(B,"id","id",I),P(B,"title","title",I);var z=null===(A=x("link",I))||void 0===A?void 0:A.attribs.href;z&&(B.link=z),P(B,"description","subtitle",I);var re=E("updated",I);return re&&(B.updated=new Date(re)),P(B,"author","email",I,!0),B}(A):function q(k){var A,I,B=null!==(I=null===(A=x("channel",k.children))||void 0===A?void 0:A.children)&&void 0!==I?I:[],z={type:k.name.substr(0,3),id:"",items:(0,ce.getElementsByTagName)("item",k.children).map(function(Ce){var W=Ce.children,ie={media:O(W)};P(ie,"id","guid",W),P(ie,"title","title",W),P(ie,"link","link",W),P(ie,"description","description",W);var b=E("pubDate",W);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}(A):null};var N=["url","type","lang"],M=["fileSize","bitrate","framerate","samplingrate","channels","duration","height","width"];function O(k){return(0,ce.getElementsByTagName)("media:content",k).map(function(A){for(var I=A.attribs,B={medium:I.medium,isDefault:!!I.isDefault},z=0,re=N;z{"use strict";Object.defineProperty(C,"__esModule",{value:!0}),C.uniqueSort=C.compareDocumentPosition=C.removeSubsets=void 0;var le=G(2962);function Y(q,N){var M=[],O=[];if(q===N)return 0;for(var x=(0,le.hasChildren)(q)?q:q.parent;x;)M.unshift(x),x=x.parent;for(x=(0,le.hasChildren)(N)?N:N.parent;x;)O.unshift(x),x=x.parent;for(var E=Math.min(M.length,O.length),P=0;Pk.indexOf(I)?D===N?20:4:D===q?10:2}C.removeSubsets=function ce(q){for(var N=q.length;--N>=0;){var M=q[N];if(N>0&&q.lastIndexOf(M,N-1)>=0)q.splice(N,1);else for(var O=M.parent;O;O=O.parent)if(q.includes(O)){q.splice(N,1);break}}return q},C.compareDocumentPosition=Y,C.uniqueSort=function Q(q){return(q=q.filter(function(N,M,O){return!O.includes(N,M+1)})).sort(function(N,M){var O=Y(N,M);return 2&O?-1:4&O?1:0}),q}},2155:function(Le,C,G){"use strict";var le=this&&this.__createBinding||(Object.create?function(Q,q,N,M){void 0===M&&(M=N),Object.defineProperty(Q,M,{enumerable:!0,get:function(){return q[N]}})}:function(Q,q,N,M){void 0===M&&(M=N),Q[M]=q[N]}),ce=this&&this.__exportStar||function(Q,q){for(var N in Q)"default"!==N&&!Object.prototype.hasOwnProperty.call(q,N)&&le(q,Q,N)};Object.defineProperty(C,"__esModule",{value:!0}),C.hasChildren=C.isDocument=C.isComment=C.isText=C.isCDATA=C.isTag=void 0,ce(G(4543),C),ce(G(4757),C),ce(G(6525),C),ce(G(7237),C),ce(G(9735),C),ce(G(485),C),ce(G(6534),C);var Y=G(2962);Object.defineProperty(C,"isTag",{enumerable:!0,get:function(){return Y.isTag}}),Object.defineProperty(C,"isCDATA",{enumerable:!0,get:function(){return Y.isCDATA}}),Object.defineProperty(C,"isText",{enumerable:!0,get:function(){return Y.isText}}),Object.defineProperty(C,"isComment",{enumerable:!0,get:function(){return Y.isComment}}),Object.defineProperty(C,"isDocument",{enumerable:!0,get:function(){return Y.isDocument}}),Object.defineProperty(C,"hasChildren",{enumerable:!0,get:function(){return Y.hasChildren}})},9735:(Le,C,G)=>{"use strict";Object.defineProperty(C,"__esModule",{value:!0}),C.getElementsByTagType=C.getElementsByTagName=C.getElementById=C.getElements=C.testElement=void 0;var le=G(2962),ce=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(A){return(0,le.isTag)(A)&&k(A.attribs[D])}:function(A){return(0,le.isTag)(A)&&A.attribs[D]===k}}function q(D,k){return function(A){return D(A)||k(A)}}function N(D){var k=Object.keys(D).map(function(A){var I=D[A];return Object.prototype.hasOwnProperty.call(Y,A)?Y[A](I):Q(A,I)});return 0===k.length?null:k.reduce(q)}C.testElement=function M(D,k){var A=N(D);return!A||A(k)},C.getElements=function O(D,k,A,I){void 0===I&&(I=1/0);var B=N(D);return B?(0,ce.filter)(B,k,A,I):[]},C.getElementById=function x(D,k,A){return void 0===A&&(A=!0),Array.isArray(k)||(k=[k]),(0,ce.findOne)(Q("id",D),k,A)},C.getElementsByTagName=function E(D,k,A,I){return void 0===A&&(A=!0),void 0===I&&(I=1/0),(0,ce.filter)(Y.tag_name(D),k,A,I)},C.getElementsByTagType=function P(D,k,A,I){return void 0===A&&(A=!0),void 0===I&&(I=1/0),(0,ce.filter)(Y.tag_type(D),k,A,I)}},6525:(Le,C)=>{"use strict";function G(N){if(N.prev&&(N.prev.next=N.next),N.next&&(N.next.prev=N.prev),N.parent){var M=N.parent.children;M.splice(M.lastIndexOf(N),1)}}Object.defineProperty(C,"__esModule",{value:!0}),C.prepend=C.prependChild=C.append=C.appendChild=C.replaceElement=C.removeElement=void 0,C.removeElement=G,C.replaceElement=function le(N,M){var O=M.prev=N.prev;O&&(O.next=M);var x=M.next=N.next;x&&(x.prev=M);var E=M.parent=N.parent;if(E){var P=E.children;P[P.lastIndexOf(N)]=M}},C.appendChild=function ce(N,M){if(G(M),M.next=null,M.parent=N,N.children.push(M)>1){var O=N.children[N.children.length-2];O.next=M,M.prev=O}else M.prev=null},C.append=function Y(N,M){G(M);var O=N.parent,x=N.next;if(M.next=x,M.prev=N,N.next=M,M.parent=O,x){if(x.prev=M,O){var E=O.children;E.splice(E.lastIndexOf(x),0,M)}}else O&&O.children.push(M)},C.prependChild=function Q(N,M){if(G(M),M.parent=N,M.prev=null,1!==N.children.unshift(M)){var O=N.children[1];O.prev=M,M.next=O}else M.next=null},C.prepend=function q(N,M){G(M);var O=N.parent;if(O){var x=O.children;x.splice(x.indexOf(N),0,M)}N.prev&&(N.prev.next=M),M.parent=O,M.prev=N.prev,M.next=N,N.prev=M}},7237:(Le,C,G)=>{"use strict";Object.defineProperty(C,"__esModule",{value:!0}),C.findAll=C.existsOne=C.findOne=C.findOneChild=C.find=C.filter=void 0;var le=G(2962);function Y(O,x,E,P){for(var D=[],k=0,A=x;k0){var B=Y(O,I.children,E,P);if(D.push.apply(D,B),(P-=B.length)<=0)break}}return D}C.filter=function ce(O,x,E,P){return void 0===E&&(E=!0),void 0===P&&(P=1/0),Array.isArray(x)||(x=[x]),Y(O,x,E,P)},C.find=Y,C.findOneChild=function Q(O,x){return x.find(O)},C.findOne=function q(O,x,E){void 0===E&&(E=!0);for(var P=null,D=0;D0&&(P=q(O,k.children)))}return P},C.existsOne=function N(O,x){return x.some(function(E){return(0,le.isTag)(E)&&(O(E)||E.children.length>0&&N(O,E.children))})},C.findAll=function M(O,x){for(var E,k,P=[],D=x.filter(le.isTag);k=D.shift();){var A=null===(E=k.children)||void 0===E?void 0:E.filter(le.isTag);A&&A.length>0&&D.unshift.apply(D,A),O(k)&&P.push(k)}return P}},4543:function(Le,C,G){"use strict";var le=this&&this.__importDefault||function(E){return E&&E.__esModule?E:{default:E}};Object.defineProperty(C,"__esModule",{value:!0}),C.innerText=C.textContent=C.getText=C.getInnerHTML=C.getOuterHTML=void 0;var ce=G(2962),Y=le(G(3192)),Q=G(6316);function q(E,P){return(0,Y.default)(E,P)}C.getOuterHTML=q,C.getInnerHTML=function N(E,P){return(0,ce.hasChildren)(E)?E.children.map(function(D){return q(D,P)}).join(""):""},C.getText=function M(E){return Array.isArray(E)?E.map(M).join(""):(0,ce.isTag)(E)?"br"===E.name?"\n":M(E.children):(0,ce.isCDATA)(E)?M(E.children):(0,ce.isText)(E)?E.data:""},C.textContent=function O(E){return Array.isArray(E)?E.map(O).join(""):(0,ce.hasChildren)(E)&&!(0,ce.isComment)(E)?O(E.children):(0,ce.isText)(E)?E.data:""},C.innerText=function x(E){return Array.isArray(E)?E.map(x).join(""):(0,ce.hasChildren)(E)&&(E.type===Q.ElementType.Tag||(0,ce.isCDATA)(E))?x(E.children):(0,ce.isText)(E)?E.data:""}},4757:(Le,C,G)=>{"use strict";Object.defineProperty(C,"__esModule",{value:!0}),C.prevElementSibling=C.nextElementSibling=C.getName=C.hasAttrib=C.getAttributeValue=C.getSiblings=C.getParent=C.getChildren=void 0;var le=G(2962),ce=[];function Y(P){var D;return null!==(D=P.children)&&void 0!==D?D:ce}function Q(P){return P.parent||null}C.getChildren=Y,C.getParent=Q,C.getSiblings=function q(P){var A=Q(P);if(null!=A)return Y(A);for(var I=[P],B=P.prev,z=P.next;null!=B;)I.unshift(B),B=B.prev;for(;null!=z;)I.push(z),z=z.next;return I},C.getAttributeValue=function N(P,D){var k;return null===(k=P.attribs)||void 0===k?void 0:k[D]},C.hasAttrib=function M(P,D){return null!=P.attribs&&Object.prototype.hasOwnProperty.call(P.attribs,D)&&null!=P.attribs[D]},C.getName=function O(P){return P.name},C.nextElementSibling=function x(P){for(var k=P.next;null!==k&&!(0,le.isTag)(k);)k=k.next;return k},C.prevElementSibling=function E(P){for(var k=P.prev;null!==k&&!(0,le.isTag)(k);)k=k.prev;return k}},547:function(Le,C,G){"use strict";var le=this&&this.__importDefault||function(E){return E&&E.__esModule?E:{default:E}};Object.defineProperty(C,"__esModule",{value:!0}),C.decodeHTML=C.decodeHTMLStrict=C.decodeXML=void 0;var ce=le(G(9323)),Y=le(G(9591)),Q=le(G(2586)),q=le(G(672)),N=/&(?:[a-zA-Z0-9]+|#[xX][\da-fA-F]+|#\d+);/g;function M(E){var P=x(E);return function(D){return String(D).replace(N,P)}}C.decodeXML=M(Q.default),C.decodeHTMLStrict=M(ce.default);var O=function(E,P){return E65535&&(q-=65536,N+=String.fromCharCode(q>>>10&1023|55296),q=56320|1023&q),N+String.fromCharCode(q)};C.default=function Q(q){return q>=55296&&q<=57343||q>1114111?"\ufffd":(q in ce.default&&(q=ce.default[q]),Y(q))}},3854:function(Le,C,G){"use strict";var le=this&&this.__importDefault||function(re){return re&&re.__esModule?re:{default:re}};Object.defineProperty(C,"__esModule",{value:!0}),C.escapeUTF8=C.escape=C.encodeNonAsciiHTML=C.encodeHTML=C.encodeXML=void 0;var Y=O(le(G(2586)).default),Q=x(Y);C.encodeXML=z(Y);var N=O(le(G(9323)).default),M=x(N);function O(re){return Object.keys(re).sort().reduce(function(Ce,W){return Ce[re[W]]="&"+W+";",Ce},{})}function x(re){for(var Ce=[],W=[],ie=0,b=Object.keys(re);ie1?P(re):re.charCodeAt(0)).toString(16).toUpperCase()+";"}var A=new RegExp(Q.source+"|"+E.source,"g");function z(re){return function(Ce){return Ce.replace(A,function(W){return re[W]||D(W)})}}C.escape=function I(re){return re.replace(A,D)},C.escapeUTF8=function B(re){return re.replace(Q,D)}},9673:(Le,C,G)=>{"use strict";Object.defineProperty(C,"__esModule",{value:!0}),C.decodeXMLStrict=C.decodeHTML5Strict=C.decodeHTML4Strict=C.decodeHTML5=C.decodeHTML4=C.decodeHTMLStrict=C.decodeHTML=C.decodeXML=C.encodeHTML5=C.encodeHTML4=C.escapeUTF8=C.escape=C.encodeNonAsciiHTML=C.encodeHTML=C.encodeXML=C.encode=C.decodeStrict=C.decode=void 0;var le=G(547),ce=G(3854);C.decode=function Y(O,x){return(!x||x<=0?le.decodeXML:le.decodeHTML)(O)},C.decodeStrict=function Q(O,x){return(!x||x<=0?le.decodeXML:le.decodeHTMLStrict)(O)},C.encode=function q(O,x){return(!x||x<=0?ce.encodeXML:ce.encodeHTML)(O)};var N=G(3854);Object.defineProperty(C,"encodeXML",{enumerable:!0,get:function(){return N.encodeXML}}),Object.defineProperty(C,"encodeHTML",{enumerable:!0,get:function(){return N.encodeHTML}}),Object.defineProperty(C,"encodeNonAsciiHTML",{enumerable:!0,get:function(){return N.encodeNonAsciiHTML}}),Object.defineProperty(C,"escape",{enumerable:!0,get:function(){return N.escape}}),Object.defineProperty(C,"escapeUTF8",{enumerable:!0,get:function(){return N.escapeUTF8}}),Object.defineProperty(C,"encodeHTML4",{enumerable:!0,get:function(){return N.encodeHTML}}),Object.defineProperty(C,"encodeHTML5",{enumerable:!0,get:function(){return N.encodeHTML}});var M=G(547);Object.defineProperty(C,"decodeXML",{enumerable:!0,get:function(){return M.decodeXML}}),Object.defineProperty(C,"decodeHTML",{enumerable:!0,get:function(){return M.decodeHTML}}),Object.defineProperty(C,"decodeHTMLStrict",{enumerable:!0,get:function(){return M.decodeHTMLStrict}}),Object.defineProperty(C,"decodeHTML4",{enumerable:!0,get:function(){return M.decodeHTML}}),Object.defineProperty(C,"decodeHTML5",{enumerable:!0,get:function(){return M.decodeHTML}}),Object.defineProperty(C,"decodeHTML4Strict",{enumerable:!0,get:function(){return M.decodeHTMLStrict}}),Object.defineProperty(C,"decodeHTML5Strict",{enumerable:!0,get:function(){return M.decodeHTMLStrict}}),Object.defineProperty(C,"decodeXMLStrict",{enumerable:!0,get:function(){return M.decodeXML}})},3537:function(Le,C,G){var le;Le=G.nmd(Le),function(ce){"object"==typeof global&&global;var N=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,M=/[\x01-\x7F]/g,O=/[\x01-\t\x0B\f\x0E-\x1F\x7F\x81\x8D\x8F\x90\x9D\xA0-\uFFFF]/g,x=/<\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])/,A=/[\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]/,I=/&(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"},Ce=[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],W=String.fromCharCode,b={}.hasOwnProperty,K=function(Me,Ve){return b.call(Me,Ve)},oe=function(Me,Ve){if(!Me)return Ve;var ye,se={};for(ye in Ve)se[ye]=K(Me,ye)?Me[ye]:Ve[ye];return se},_e=function(Me,Ve){var se="";return Me>=55296&&Me<=57343||Me>1114111?(Ve&&J("character reference outside the permissible Unicode range"),"\ufffd"):K(re,Me)?(Ve&&J("disallowed character reference"),re[Me]):(Ve&&function(Me,Ve){for(var se=-1,ye=Me.length;++se65535&&(se+=W((Me-=65536)>>>10&1023|55296),Me=56320|1023&Me),se+=W(Me))},V=function(Me){return"&#x"+Me.toString(16).toUpperCase()+";"},L=function(Me){return"&#"+Me+";"},J=function(Me){throw Error("Parse error: "+Me)},pe=function(Me,Ve){(Ve=oe(Ve,pe.options)).strict&&A.test(Me)&&J("forbidden code point");var be=Ve.useNamedReferences,ae=Ve.allowUnsafeSymbols,R=Ve.decimal?L:V,We=function(Ge){return R(Ge.charCodeAt(0))};return Ve.encodeEverything?(Me=Me.replace(M,function(Ge){return be&&K(E,Ge)?"&"+E[Ge]+";":We(Ge)}),be&&(Me=Me.replace(/>\u20D2/g,">⃒").replace(/<\u20D2/g,"<⃒").replace(/fj/g,"fj")),be&&(Me=Me.replace(x,function(Ge){return"&"+E[Ge]+";"}))):be?(ae||(Me=Me.replace(P,function(Ge){return"&"+E[Ge]+";"})),Me=(Me=Me.replace(/>\u20D2/g,">⃒").replace(/<\u20D2/g,"<⃒")).replace(x,function(Ge){return"&"+E[Ge]+";"})):ae||(Me=Me.replace(P,We)),Me.replace(N,function(Ge){var Nt=Ge.charCodeAt(0),cn=Ge.charCodeAt(1);return R(1024*(Nt-55296)+cn-56320+65536)}).replace(O,We)};pe.options={allowUnsafeSymbols:!1,encodeEverything:!1,strict:!1,useNamedReferences:!1,decimal:!1};var ue=function(Me,Ve){var se=(Ve=oe(Ve,ue.options)).strict;return se&&k.test(Me)&&J("malformed character reference"),Me.replace(I,function(ye,be,ae,R,We,Ge,Nt,cn,hi){var ji,Ys,gh,_h,vt,ko;return be?B[vt=be]:ae?(vt=ae,(ko=R)&&Ve.isAttributeValue?(se&&"="==ko&&J("`&` did not start a character reference"),ye):(se&&J("named character reference was not terminated by a semicolon"),z[vt]+(ko||""))):We?(gh=We,Ys=Ge,se&&!Ys&&J("character reference was not terminated by a semicolon"),ji=parseInt(gh,10),_e(ji,se)):Nt?(_h=Nt,Ys=cn,se&&!Ys&&J("character reference was not terminated by a semicolon"),ji=parseInt(_h,16),_e(ji,se)):(se&&J("named character reference was not terminated by a semicolon"),ye)})};ue.options={isAttributeValue:!1,strict:!1};var je={version:"1.2.0",encode:pe,decode:ue,escape:function(Me){return Me.replace(P,function(Ve){return D[Ve]})},unescape:ue};void 0!==(le=function(){return je}.call(C,G,C,Le))&&(Le.exports=le)}()},4856:(Le,C,G)=>{Le.exports=G(1652)},7287:(Le,C,G)=>{G(9542);const{trimCharacter:ce}=G(1458),{BlockStackItem:Q,TableCellStackItem:q,TableRowStackItem:N,TableStackItem:M,TransformerStackItem:O}=G(6237),{tableToString:x}=G(8186),{WhitespaceProcessor:E}=G(7139);function D(A){if(!(A instanceof Q||A instanceof q))throw new Error("Only blocks and table cells can be requested for text contents.");return A.inlineTextBuilder.isEmpty()?A.rawText:A.rawText+A.inlineTextBuilder.toString()}function k(A,I,B,z){if(!(A instanceof Q||A instanceof q))throw new Error("Only blocks and table cells can contain text.");const re=D(A),Ce=Math.max(A.stashedLineBreaks,B);A.inlineTextBuilder.clear(),re?A.rawText=re+"\n".repeat(Ce)+I:(A.rawText=I,A.leadingLineBreaks=Ce),A.stashedLineBreaks=z}G(4563),Le.exports={BlockTextBuilder:class P{constructor(I,B){this.options=I,this.picker=B,this.whitespaceProcessor=new E(I),this._stackItem=new Q(I),this._wordTransformer=void 0}pushWordTransform(I){this._wordTransformer=new O(this._wordTransformer,I)}popWordTransform(){if(!this._wordTransformer)return;const I=this._wordTransformer.transform;return this._wordTransformer=this._wordTransformer.next,I}_getCombinedWordTransformer(){const I=(B,z)=>z?I(z.transform(B),z.next):B;return B=>I(B,this._wordTransformer)}_popStackItem(){const I=this._stackItem;return this._stackItem=I.next,I}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(I,B={}){this._addInline(I,"object"==typeof B?B:{noWordTransform:B})}_addInline(I,{noWordTransform:B=!1}={}){if(this._stackItem instanceof Q||this._stackItem instanceof q){if(this._stackItem.isPre)return void(this._stackItem.rawText+=I);if(0!==I.length&&(!this._stackItem.stashedLineBreaks||this.whitespaceProcessor.testContainsWords(I))){if(this.options.preserveNewlines){const z=this.whitespaceProcessor.countNewlinesNoWords(I);if(z>0)return void this._stackItem.inlineTextBuilder.startNewLine(z)}this._stackItem.stashedLineBreaks&&this._stackItem.inlineTextBuilder.startNewLine(this._stackItem.stashedLineBreaks),this.whitespaceProcessor.shrinkWrapAdd(I,this._stackItem.inlineTextBuilder,this._wordTransformer&&!B?this._getCombinedWordTransformer():void 0),this._stackItem.stashedLineBreaks=0}}}openBlock(I={},B,z){this._openBlock("object"==typeof I?I:{isPre:z,leadingLineBreaks:I,reservedLineLength:B})}_openBlock({leadingLineBreaks:I=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,I,re),z&&(this._stackItem.isPre=!0)}closeBlock(I={},B){this._closeBlock("object"==typeof I?I:{trailingLineBreaks:I,blockTransform:B})}_closeBlock({trailingLineBreaks:I=1,blockTransform:B}={}){const z=this._popStackItem(),re=B?B(D(z)):D(z);k(this._stackItem,re,z.leadingLineBreaks,Math.max(z.stashedLineBreaks,I))}openTable(){this._stackItem=new M(this._stackItem)}openTableRow(){if(!(this._stackItem instanceof M))throw new Error("Can't add table row to something that is not a table! Check the formatter.");this._stackItem=new N(this._stackItem)}openTableCell(I={}){this._openTableCell("object"==typeof I?I:{maxColumnWidth:I})}_openTableCell({maxColumnWidth:I}={}){if(!(this._stackItem instanceof N))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,I)}closeTableCell(I={},B){this._closeTableCell("object"==typeof I?I:{colspan:I,rowspan:B})}_closeTableCell({colspan:I=1,rowspan:B=1}={}){const z=this._popStackItem(),re=ce(D(z),"\n");z.next.cells.push({colspan:I,rowspan:B,text:re})}closeTableRow(){const I=this._popStackItem();I.next.rows.push(I.cells)}closeTable(I={},B,z,re){this._closeTable("object"==typeof I?I:{colSpacing:I,leadingLineBreaks:z,rowSpacing:B,trailingLineBreaks:re})}_closeTable({colSpacing:I=3,rowSpacing:B=0,leadingLineBreaks:z=2,trailingLineBreaks:re=2}={}){const Ce=this._popStackItem(),W=x(Ce.rows,B,I);W&&k(this._stackItem,W,z,re)}toString(){return D(this._stackItem.getRoot())}}}},7723:(Le,C,G)=>{const le=G(3537),{get:ce,numberToLetterSequence:Y,numberToRoman:Q,splitClassesAndIds:q,trimCharacter:N}=G(1458);function x(V,L,J,pe){J.openBlock({leadingLineBreaks:pe.leadingLineBreaks}),L(V.children,J),J.closeBlock({trailingLineBreaks:pe.trailingLineBreaks})}function z(V,L){return L?("string"==typeof L[0]?L[0]:"[")+V+("string"==typeof L[1]?L[1]:"]"):V}function W(V,L,J,pe,ue){const Be="li"===ce(V,["parent","name"]);let je=0;const Tt=(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?ue().trimStart():ue();return ye.length>je&&(je=ye.length),{node:se,prefix:ye}});if(!Tt.length)return;const Me=je,Ve="\n"+" ".repeat(Me);J.openBlock({leadingLineBreaks:Be?1:pe.leadingLineBreaks||2});for(const{node:se,prefix:ye}of Tt)J.openBlock({leadingLineBreaks:1,reservedLineLength:Me}),L([se],J),J.closeBlock({trailingLineBreaks:1,blockTransform:be=>ye+" ".repeat(Me-ye.length)+be.replace(/\n/g,Ve)});J.closeBlock({trailingLineBreaks:Be?1:pe.trailingLineBreaks||2})}function _e(V,L,J,pe){function ue(je){const Tt=+ce(je,["attribs","colspan"])||1,Me=+ce(je,["attribs","rowspan"])||1;J.openTableCell({maxColumnWidth:pe.maxColumnWidth}),L(je.children,J),J.closeTableCell({colspan:Tt,rowspan:Me})}J.openTable(),V.children.forEach(function Be(je){if("tag"!==je.type)return;const Tt=!1!==pe.uppercaseHeaderCells?Me=>{J.pushWordTransform(Ve=>Ve.toUpperCase()),ue(Me),J.popWordTransform()}:ue;switch(je.name){case"thead":case"tbody":case"tfoot":case"center":return void je.children.forEach(Be);case"tr":J.openTableRow();for(const Me of je.children)if("tag"===Me.type)switch(Me.name){case"th":Tt(Me);break;case"td":ue(Me)}J.closeTableRow()}}),J.closeTable({colSpacing:pe.colSpacing,leadingLineBreaks:pe.leadingLineBreaks,rowSpacing:pe.rowSpacing,trailingLineBreaks:pe.trailingLineBreaks})}G(4563),Le.exports={anchor:function Ce(V,L,J,pe){const Be=function ue(){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,J.options.decodeOptions))}();if(Be){let je="";J.pushWordTransform(Me=>(Me&&(je+=Me),Me)),L(V.children,J),J.popWordTransform(),pe.hideLinkHrefIfSameAsText&&Be===je||J.addInline(je?" "+z(Be,pe.linkBrackets):Be,{noWordTransform:!0})}else L(V.children,J)},block:x,blockquote:function B(V,L,J,pe){J.openBlock({leadingLineBreaks:pe.leadingLineBreaks||2,reservedLineLength:2}),L(V.children,J),J.closeBlock({trailingLineBreaks:pe.trailingLineBreaks||2,blockTransform:ue=>(!1!==pe.trimEmptyLines?N(ue,"\n"):ue).split("\n").map(Be=>"> "+Be).join("\n")})},dataTable:_e,heading:function I(V,L,J,pe){J.openBlock({leadingLineBreaks:pe.leadingLineBreaks||2}),!1!==pe.uppercase?(J.pushWordTransform(ue=>ue.toUpperCase()),L(V.children,J),J.popWordTransform()):L(V.children,J),J.closeBlock({trailingLineBreaks:pe.trailingLineBreaks||2})},horizontalLine:function D(V,L,J,pe){J.openBlock({leadingLineBreaks:pe.leadingLineBreaks||2}),J.addInline("-".repeat(pe.length||J.options.wordwrap||40)),J.closeBlock({trailingLineBreaks:pe.trailingLineBreaks||2})},image:function re(V,L,J,pe){const ue=V.attribs||{},Be=ue.alt?le.decode(ue.alt,J.options.decodeOptions):"",je=ue.src?pe.baseUrl&&0===ue.src.indexOf("/")?pe.baseUrl+ue.src:ue.src:"",Tt=je?Be?Be+" "+z(je,pe.linkBrackets):z(je,pe.linkBrackets):Be;J.addInline(Tt)},inline:function O(V,L,J,pe){L(V.children,J)},lineBreak:function E(V,L,J,pe){J.addLineBreak()},orderedList:function b(V,L,J,pe){let ue=Number(V.attribs.start||"1");const Be=function K(V="1"){switch(V){case"a":return L=>Y(L,"a");case"A":return L=>Y(L,"A");case"i":return L=>Q(L).toLowerCase();case"I":return L=>Q(L);default:return L=>L.toString()}}(V.attribs.type);return W(V,L,J,pe,()=>" "+Be(ue++)+". ")},paragraph:function k(V,L,J,pe){J.openBlock({leadingLineBreaks:pe.leadingLineBreaks||2}),L(V.children,J),J.closeBlock({trailingLineBreaks:pe.trailingLineBreaks||2})},pre:function A(V,L,J,pe){J.openBlock({isPre:!0,leadingLineBreaks:pe.leadingLineBreaks||2}),L(V.children,J),J.closeBlock({trailingLineBreaks:pe.trailingLineBreaks||2})},skip:function M(V,L,J,pe){},table:function oe(V,L,J,pe){return function F(V,L){if(!0===L)return!0;if(!V)return!1;const{classes:J,ids:pe}=q(L),ue=(V.class||"").split(" "),Be=(V.id||"").split(" ");return ue.some(je=>J.includes(je))||Be.some(je=>pe.includes(je))}(V.attribs,J.options.tables)?_e(V,L,J,pe):x(V,L,J,pe)},unorderedList:function ie(V,L,J,pe){const ue=pe.itemPrefix||" * ";return W(V,L,J,pe,()=>ue)},wbr:function P(V,L,J,pe){J.addWordBreakOpportunity()}}},1458:(Le,C,G)=>{const le=G(4999),q=["I","X","C","M"],N=["V","L","D"],P=(D,k,A)=>[...k];Le.exports={get:function x(D,k){for(const A of k){if(!D)return;D=D[A]}return D},limitedDepthRecursive:function Y(D,k,A=(()=>{})){if(void 0===D){const I=function(...B){return k(I,...B)};return I}return D>=0?function(...I){return k(Y(D-1,k,A),...I)}:A},mergeDuplicatesPreferLast:function E(D,k){const A=new Map;for(let I=D.length;I-- >0;){const B=D[I],z=k(B);A.set(z,A.has(z)?le(B,A.get(z),{arrayMerge:P}):B)}return[...A.values()].reverse()},numberToLetterSequence:function Q(D,k="a",A=26){const I=[];do{I.push((D-=1)%A),D=D/A>>0}while(D>0);const B=k.charCodeAt(0);return I.reverse().map(z=>String.fromCharCode(B+z)).join("")},numberToRoman:function M(D){return[...D+""].map(k=>+k).reverse().map((k,A)=>k%5<4?(k<5?"":N[A])+q[A].repeat(k%5):q[A]+(k<5?N[A]:q[A+1])).reverse().join("")},splitClassesAndIds:function ce(D){const k=[],A=[];for(const I of D)I.startsWith(".")?k.push(I.substring(1)):I.startsWith("#")&&A.push(I.substring(1));return{classes:k,ids:A}},trimCharacter:function O(D,k){let A=0,I=D.length;for(;AA&&D[I-1]===k;)--I;return A>0||I{const{hp2Builder:le}=G(5999),ce=G(4999),Y=G(3537),Q=G(534),q=G(9542),{BlockTextBuilder:N}=G(7287),M=G(7723),{limitedDepthRecursive:O,mergeDuplicatesPreferLast:x,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,F)=>[...K],A=(b,K,F)=>b.some(oe=>"object"==typeof oe)?((b,K,F)=>[...b,...K])(b,K):k(0,K);function I(b={}){(b=ce(P,b,{arrayMerge:k,customMerge:L=>"selectors"===L?A:void 0})).formatters=Object.assign({},M,b.formatters),b.selectors=x(b.selectors,L=>L.selector),function re(b){const K=b.selectors;if(b.tags){const _e=Object.entries(b.tags).map(([V,L])=>({...L,selector:V||"*"}));K.push(..._e)}function F(_e,V,L){const J=V.pop();for(const pe of V){let ue=_e[pe];ue||(ue={},_e[pe]=ue),_e=ue}_e[J]=L}function oe(_e,V,L){if(void 0!==b[_e])for(const J of K)J.format===V&&F(J,["options",L],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)&&(F(_e,["options","leadingLineBreaks"],1),F(_e,["options","trailingLineBreaks"],1));if(b.baseElement){const _e=b.baseElement;F(b,["baseElements","selectors"],Array.isArray(_e)?_e:[_e])}void 0!==b.returnDomByDefault&&F(b,["baseElements","returnDomByDefault"],b.returnDomByDefault);for(const _e of K)"anchor"===_e.format&&E(_e,["options","noLinkBrackets"])&&F(_e,["options","linkBrackets"],!1)}(b);const K=b.selectors.filter(L=>!L.format);if(K.length)throw new Error("Following selectors have no specified format: "+K.map(L=>`\`${L.selector}\``).join(", "));const F=new q.DecisionTree(b.selectors.map(L=>[L.selector,L])).build(le),oe=new q.DecisionTree(b.baseElements.selectors.map((L,J)=>[L,J+1])).build(le);function _e(L){return function Ce(b,K,F){const oe=[];return O(K.limits.maxDepth,function _e(L,J){J=J.slice(0,K.limits.maxChildNodes);for(const pe of J){if("tag"!==pe.type)continue;const ue=F.pick1(pe);if(ue>0?oe.push({selectorIndex:ue,element:pe}):pe.children&&L(pe.children),oe.length>=K.limits.maxBaseElements)return}})(b),"occurrence"!==K.baseElements.orderBy&&oe.sort((L,J)=>L.selectorIndex-J.selectorIndex),K.baseElements.returnDomByDefault&&0===oe.length?b:oe.map(L=>L.element)}(L,b,oe)}const V=O(b.limits.maxDepth,W,function(L,J){J.addInline(b.limits.ellipsis||"")});return function(L){return function B(b,K,F,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 L=new Q.DomHandler;new Q.Parser(L,{decodeEntities:!1}).parseComplete(b);const J=oe(L.dom),pe=new N(K,F);return _e(J,pe),pe.toString()}(L,b,F,_e,V)}}function z(b,K={}){return I(K)(b)}function W(b,K,F){if(!K)return;const oe=F.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":F.addInline(Y.decode(V.data,oe.decodeOptions));break;case"tag":{const L=F.picker.pick1(V);(0,oe.formatters[L.format])(V,b,F,L.options||{});break}}}Le.exports={compile:I,convert:z,fromString:(b,K={})=>z(b,K),htmlToText:z}},8395:(Le,C,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[N,...M]=this.splitLongWord(Y);Q||this.startNewLine(),this.nextLineWords.push(N),this.nextLineAvailableChars-=N.length;for(const O of M)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 N=Y.substring(0,this.maxLineLength),M=Y.substring(this.maxLineLength),O=N.lastIndexOf(this.wrapCharacters[q]);if(O>-1)Y=N.substring(O+1)+M,Q.push(N.substring(0,O+1));else{if(q++,!(qthis.maxLineLength)continue}else Y=N+M;break}Y=N+M}}return Q.push(Y),Q}}}},6237:(Le,C,G)=>{const{InlineTextBuilder:le}=G(8395);class ce{constructor(x=null){this.next=x}getRoot(){return this.next?this.next:this}}Le.exports={BlockStackItem:class Y extends ce{constructor(x,E=null,P=1,D){super(E),this.leadingLineBreaks=P,this.inlineTextBuilder=new le(x,D),this.rawText="",this.stashedLineBreaks=0,this.isPre=E&&E.isPre}},StackItem:ce,TableCellStackItem:class N extends ce{constructor(x,E=null,P){super(E),this.inlineTextBuilder=new le(x,P),this.rawText="",this.stashedLineBreaks=0,this.isPre=E&&E.isPre}},TableRowStackItem:class q extends ce{constructor(x=null){super(x),this.cells=[],this.isPre=x&&x.isPre}},TableStackItem:class Q extends ce{constructor(x=null){super(x),this.rows=[],this.isPre=x&&x.isPre}},TransformerStackItem:class M extends ce{constructor(x=null,E){super(x),this.transform=E}}}},8186:Le=>{function C(q,N){return q[N]||(q[N]=[]),q[N]}function G(q,N=0){for(;q[N];)N++;return N}function ce(q,N,M,O){for(let x=0;xx?I.length:x}!function le(q,N){for(let M=0;Mx?E:x);const D=[],k=[0];for(let A=0;Az?Ce.length:z}Y(k,A,B.colspan,z+M),B.rendered=!0}I+=B.rowspan}}return D.join("\n")}}},4563:()=>{},7139:(Le,C,G)=>{G(8395),G(4563),Le.exports={WhitespaceProcessor:class Y{constructor(q){this.whitespaceChars=q.preserveNewlines?q.whitespaceCharacters.replace(/\n/g,""):q.whitespaceCharacters;const N=function ce(Q){return[...Q].map(q=>"\\u"+q.charCodeAt(0).toString(16).padStart(4,"0")).join("")}(this.whitespaceChars);if(this.leadingWhitespaceRe=new RegExp(`^[${N}]`),this.trailingWhitespaceRe=new RegExp(`[${N}]$`),this.allWhitespaceOrEmptyRe=new RegExp(`^[${N}]*$`),this.newlineOrNonWhitespaceRe=new RegExp(`(\\n|[^\\n${N}])`,"g"),q.preserveNewlines){const M=new RegExp(`\\n|[^\\n${N}]+`,"gm");this.shrinkWrapAdd=function(O,x,E=(P=>P)){if(!O)return;const P=x.stashedSpace;let D=!1,k=M.exec(O);if(k)for(D=!0,"\n"===k[0]?x.startNewLine():P||this.testLeadingWhitespace(O)?x.pushWord(E(k[0])):x.concatWord(E(k[0]));null!==(k=M.exec(O));)"\n"===k[0]?x.startNewLine():x.pushWord(E(k[0]));x.stashedSpace=P&&!D||this.testTrailingWhitespace(O)}}else{const M=new RegExp(`[^${N}]+`,"g");this.shrinkWrapAdd=function(O,x,E=(P=>P)){if(!O)return;const P=x.stashedSpace;let D=!1,k=M.exec(O);if(k)for(D=!0,P||this.testLeadingWhitespace(O)?x.pushWord(E(k[0])):x.concatWord(E(k[0]));null!==(k=M.exec(O));)x.pushWord(E(k[0]));x.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 M,N=0;for(;null!==(M=this.newlineOrNonWhitespaceRe.exec(q));){if("\n"!==M[0])return 0;N++}return N}}}},1126:function(Le,C,G){"use strict";var W,le=this&&this.__extends||(W=function(ie,b){return(W=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(K,F){K.__proto__=F}||function(K,F){for(var oe in F)Object.prototype.hasOwnProperty.call(F,oe)&&(K[oe]=F[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}W(ie,b),ie.prototype=null===b?Object.create(b):(K.prototype=b.prototype,new K)}),ce=this&&this.__createBinding||(Object.create?function(W,ie,b,K){void 0===K&&(K=b),Object.defineProperty(W,K,{enumerable:!0,get:function(){return ie[b]}})}:function(W,ie,b,K){void 0===K&&(K=b),W[K]=ie[b]}),Y=this&&this.__setModuleDefault||(Object.create?function(W,ie){Object.defineProperty(W,"default",{enumerable:!0,value:ie})}:function(W,ie){W.default=ie}),Q=this&&this.__importStar||function(W){if(W&&W.__esModule)return W;var ie={};if(null!=W)for(var b in W)"default"!==b&&Object.prototype.hasOwnProperty.call(W,b)&&ce(ie,W,b);return Y(ie,W),ie},q=this&&this.__importDefault||function(W){return W&&W.__esModule?W:{default:W}};Object.defineProperty(C,"__esModule",{value:!0}),C.parseFeed=C.FeedHandler=void 0;var N=q(G(2962)),M=Q(G(2155)),O=G(3380),P=function(W){function ie(b,K){return"object"==typeof b&&(K=b=void 0),W.call(this,b,K)||this}return le(ie,W),ie.prototype.onend=function(){var b,K,F=A(re,this.dom);if(F){var oe={};if("feed"===F.name){var _e=F.children;oe.type="atom",z(oe,"id","id",_e),z(oe,"title","title",_e);var V=B("href",A("link",_e));V&&(oe.link=V),z(oe,"description","subtitle",_e),(L=I("updated",_e))&&(oe.updated=new Date(L)),z(oe,"author","email",_e,!0),oe.items=k("entry",_e).map(function(J){var pe={},ue=J.children;z(pe,"id","id",ue),z(pe,"title","title",ue);var Be=B("href",A("link",ue));Be&&(pe.link=Be);var je=I("summary",ue)||I("content",ue);je&&(pe.description=je);var Tt=I("updated",ue);return Tt&&(pe.pubDate=new Date(Tt)),pe.media=D(ue),pe})}else{var L;_e=null!==(K=null===(b=A("channel",F.children))||void 0===b?void 0:b.children)&&void 0!==K?K:[],oe.type=F.name.substr(0,3),oe.id="",z(oe,"title","title",_e),z(oe,"link","link",_e),z(oe,"description","description",_e),(L=I("lastBuildDate",_e))&&(oe.updated=new Date(L)),z(oe,"author","managingEditor",_e,!0),oe.items=k("item",F.children).map(function(ue){var Be={},je=ue.children;z(Be,"id","guid",je),z(Be,"title","title",je),z(Be,"link","link",je),z(Be,"description","description",je);var Tt=I("pubDate",je);return Tt&&(Be.pubDate=new Date(Tt)),Be.media=D(je),Be})}this.feed=oe,this.handleCallback(null)}else this.handleCallback(new Error("couldn't find root of feed"))},ie}(N.default);function D(W){return k("media:content",W).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(W,ie){return M.getElementsByTagName(W,ie,!0)}function A(W,ie){return M.getElementsByTagName(W,ie,!0,1)[0]}function I(W,ie,b){return void 0===b&&(b=!1),M.getText(M.getElementsByTagName(W,ie,b,1)).trim()}function B(W,ie){return ie?ie.attribs[W]:null}function z(W,ie,b,K,F){void 0===F&&(F=!1);var oe=I(b,K,F);oe&&(W[ie]=oe)}function re(W){return"rss"===W||"feed"===W||"rdf:RDF"===W}C.FeedHandler=P,C.parseFeed=function Ce(W,ie){void 0===ie&&(ie={xmlMode:!0});var b=new P(ie);return new O.Parser(b,ie).end(W),b.feed}},3380:function(Le,C,G){"use strict";var le=this&&this.__importDefault||function(P){return P&&P.__esModule?P:{default:P}};Object.defineProperty(C,"__esModule",{value:!0}),C.Parser=void 0;var ce=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"])},N=new Set(["area","base","basefont","br","col","command","embed","frame","hr","img","input","isindex","keygen","link","meta","param","source","track","wbr"]),M=new Set(["math","svg"]),O=new Set(["mi","mo","mn","ms","mtext","annotation-xml","foreignObject","desc","title"]),x=/\s|\//,E=function(){function P(D,k){var A,I,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!==(A=k.lowerCaseTags)&&void 0!==A?A:!k.xmlMode,this.lowerCaseAttributeNames=null!==(I=k.lowerCaseAttributeNames)&&void 0!==I?I:!k.xmlMode,this.tokenizer=new(null!==(B=k.Tokenizer)&&void 0!==B?B:ce.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,A;this.updatePosition(1),this.endIndex--,null===(A=(k=this.cbs).ontext)||void 0===A||A.call(k,D)},P.prototype.onopentagname=function(D){var k,A;if(this.lowerCaseTagNames&&(D=D.toLowerCase()),this.tagname=D,!this.options.xmlMode&&Object.prototype.hasOwnProperty.call(q,D))for(var I=void 0;this.stack.length>0&&q[D].has(I=this.stack[this.stack.length-1]);)this.onclosetag(I);(this.options.xmlMode||!N.has(D))&&(this.stack.push(D),M.has(D)?this.foreignContext.push(!0):O.has(D)&&this.foreignContext.push(!1)),null===(A=(k=this.cbs).onopentagname)||void 0===A||A.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&&N.has(this.tagname)&&this.cbs.onclosetag(this.tagname),this.tagname=""},P.prototype.onclosetag=function(D){if(this.updatePosition(1),this.lowerCaseTagNames&&(D=D.toLowerCase()),(M.has(D)||O.has(D))&&this.foreignContext.pop(),!this.stack.length||!this.options.xmlMode&&N.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,A=this.tagname;this.onopentagend(),this.stack[this.stack.length-1]===A&&(null===(k=(D=this.cbs).onclosetag)||void 0===k||k.call(D,A),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,A;null===(A=(k=this.cbs).onattribute)||void 0===A||A.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(x),A=k<0?D:D.substr(0,k);return this.lowerCaseTagNames&&(A=A.toLowerCase()),A},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,A,I,B;this.updatePosition(4),null===(A=(k=this.cbs).oncomment)||void 0===A||A.call(k,D),null===(B=(I=this.cbs).oncommentend)||void 0===B||B.call(I)},P.prototype.oncdata=function(D){var k,A,I,B,z,re;this.updatePosition(1),this.options.xmlMode||this.options.recognizeCDATA?(null===(A=(k=this.cbs).oncdatastart)||void 0===A||A.call(k),null===(B=(I=this.cbs).ontext)||void 0===B||B.call(I,D),null===(re=(z=this.cbs).oncdataend)||void 0===re||re.call(z)):this.oncomment("[CDATA["+D+"]]")},P.prototype.onerror=function(D){var k,A;null===(A=(k=this.cbs).onerror)||void 0===A||A.call(k,D)},P.prototype.onend=function(){var D,k;if(this.cbs.onclosetag)for(var A=this.stack.length;A>0;this.cbs.onclosetag(this.stack[--A]));null===(k=(D=this.cbs).onend)||void 0===k||k.call(D)},P.prototype.reset=function(){var D,k,A,I;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===(I=(A=this.cbs).onparserinit)||void 0===I||I.call(A,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}();C.Parser=E},6282:function(Le,C,G){"use strict";var le=this&&this.__importDefault||function(ae){return ae&&ae.__esModule?ae:{default:ae}};Object.defineProperty(C,"__esModule",{value:!0});var ce=le(G(672)),Y=le(G(9323)),Q=le(G(9591)),q=le(G(2586));function N(ae){return" "===ae||"\n"===ae||"\t"===ae||"\f"===ae||"\r"===ae}function M(ae){return ae>="a"&&ae<="z"||ae>="A"&&ae<="Z"}function O(ae,R,We){var Ge=ae.toLowerCase();return ae===Ge?function(Nt,cn){cn===Ge?Nt._state=R:(Nt._state=We,Nt._index--)}:function(Nt,cn){cn===Ge||cn===ae?Nt._state=R:(Nt._state=We,Nt._index--)}}function x(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),A=O("A",28,16),I=x("R",35),B=x("I",36),z=x("P",37),re=x("T",38),Ce=O("R",40,1),W=O("I",41,1),ie=O("P",42,1),b=O("T",43,1),K=x("Y",45),F=x("L",46),oe=x("E",47),_e=O("Y",49,1),V=O("L",50,1),L=O("E",51,1),J=x("I",54),pe=x("T",55),ue=x("L",56),Be=x("E",57),je=O("I",58,1),Tt=O("T",59,1),Me=O("L",60,1),Ve=O("E",61,1),se=O("#",63,64),ye=O("X",66,65),be=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 M(R)||this.xmlMode&&!N(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||N(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||N(R))&&(this.emitToken("onopentagname"),this._state=8,this._index--)},ae.prototype.stateBeforeClosingTagName=function(R){N(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||N(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:N(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):N(R)||(this._state=8,this._index--)},ae.prototype.stateInAttributeName=function(R){("="===R||"/"===R||">"===R||N(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--):N(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):N(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){N(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||N(R))&&(this.special=We),this._state=3,this._index--},ae.prototype.stateAfterSpecialLast=function(R,We){">"===R||N(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")&&!M(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 cn=this.buffer.substring(Nt,this._index),hi=parseInt(cn,We);this.emitPartial(ce.default(hi)),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);Tt.push(E(R))}}var Nt=J&&J.fallback,cn=q&&!Nt?"ym":"gm",hi=q||Nt?"":"|";return!0===Be&&(cn+="u"),{regexp:new RegExp(P(Tt)+hi,cn),groups:je,fast:pe,error:J||z}}function W(V,L,J){var pe=V&&(V.push||V.next);if(pe&&!J[pe])throw new Error("Missing state '"+pe+"' (in token '"+V.defaultType+"' of state '"+L+"')");if(V&&V.pop&&1!=+V.pop)throw new Error("pop must be 1 (in token '"+V.defaultType+"' of state '"+L+"')")}var K=function(V,L){this.startState=L,this.states=V,this.buffer="",this.stack=[],this.reset()};K.prototype.reset=function(V,L){return this.buffer=V||"",this.index=0,this.line=L?L.line:1,this.col=L?L.col:1,this.queuedToken=L?L.queuedToken:null,this.queuedThrow=L?L.queuedThrow:null,this.setState(L?L.state:this.startState),this.stack=L&&L.stack?L.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 L=this.states[V];this.groups=L.groups,this.error=L.error,this.re=L.regexp,this.fast=L.fast}},K.prototype.popState=function(){this.setState(this.stack.pop())},K.prototype.pushState=function(V){this.stack.push(this.state),this.setState(V)};var F=q?function(V,L){return V.exec(L)}:function(V,L){var J=V.exec(L);return 0===J[0].length?null:J};function oe(){return this.value}if(K.prototype._getGroup=function(V){for(var L=this.groups.length,J=0;J";throw new Error("Unknown symbol type: "+M)}}return C.highestId=0,C.prototype.toString=function(M){var O=typeof M>"u"?this.symbols.map(N).join(" "):this.symbols.slice(0,M).map(N).join(" ")+" \u25cf "+this.symbols.slice(M).map(N).join(" ");return this.name+" \u2192 "+O},G.prototype.toString=function(){return"{"+this.rule.toString(this.dot)+"}, from: "+(this.reference||0)},G.prototype.nextState=function(M){var O=new G(this.rule,this.dot+1,this.reference,this.wantedBy);return O.left=this,O.right=M,O.isComplete&&(O.data=O.build(),O.right=void 0),O},G.prototype.build=function(){var M=[],O=this;do{M.push(O.right.data),O=O.left}while(O.left);return M.reverse(),M},G.prototype.finish=function(){this.rule.postprocess&&(this.data=this.rule.postprocess(this.data,this.reference,Q.fail))},le.prototype.process=function(M){for(var O=this.states,x=this.wants,E=this.completed,P=0;P0&&O.push(" ^ "+E+" more lines identical to this"),E=0,O.push(" "+k)),x=k}},Q.prototype.getSymbolDisplay=function(M){return function q(M){var O=typeof M;if("string"===O)return M;if("object"===O){if(M.literal)return JSON.stringify(M.literal);if(M instanceof RegExp)return"character matching "+M;if(M.type)return M.type+" token";if(M.test)return"token matching "+String(M.test);throw new Error("Unknown symbol type: "+M)}}(M)},Q.prototype.buildFirstStateStack=function(M,O){if(-1!==O.indexOf(M))return null;if(0===M.wantedBy.length)return[M];var x=M.wantedBy[0],E=[M].concat(O),P=this.buildFirstStateStack(x,E);return null===P?null:[M].concat(P)},Q.prototype.save=function(){var M=this.table[this.current];return M.lexerState=this.lexerState,M},Q.prototype.restore=function(M){var O=M.index;this.current=O,this.table[O]=M,this.table.splice(O+1),this.lexerState=M.lexerState,this.results=this.finish()},Q.prototype.rewind=function(M){if(!this.options.keepHistory)throw new Error("set option `keepHistory` to enable rewinding");this.restore(this.table[M])},Q.prototype.finish=function(){var M=[],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&&M.push(E)}),M.map(function(E){return E.data})},{Parser:Q,Grammar:ce,Rule:C}},Le.exports?Le.exports=G():this.nearley=G()},5742:(Le,C,G)=>{"use strict";var ce=G(1557),Y=G(4802),Q=G(7448),q=G(7302),N=G(4072),M=function(){function x(E){this._isScalar=!1,E&&(this._subscribe=E)}return x.prototype.lift=function(E){var P=new x;return P.source=this,P.operator=E,P},x.prototype.subscribe=function(E,P,D){var k=this.operator,A=Y.toSubscriber(E,P,D);if(A.add(k?k.call(A,this.source):this.source||N.config.useDeprecatedSynchronousErrorHandling&&!A.syncErrorThrowable?this._subscribe(A):this._trySubscribe(A)),N.config.useDeprecatedSynchronousErrorHandling&&A.syncErrorThrowable&&(A.syncErrorThrowable=!1,A.syncErrorThrown))throw A.syncErrorValue;return A},x.prototype._trySubscribe=function(E){try{return this._subscribe(E)}catch(P){N.config.useDeprecatedSynchronousErrorHandling&&(E.syncErrorThrown=!0,E.syncErrorValue=P),ce.canReportError(E)?E.error(P):console.warn(P)}},x.prototype.forEach=function(E,P){var D=this;return new(P=O(P))(function(k,A){var I;I=D.subscribe(function(B){try{E(B)}catch(z){A(z),I&&I.unsubscribe()}},A,k)})},x.prototype._subscribe=function(E){var P=this.source;return P&&P.subscribe(E)},x.prototype[Q.observable]=function(){return this},x.prototype.pipe=function(){for(var E=[],P=0;P{"use strict";Object.defineProperty(C,"__esModule",{value:!0});var le=G(4072),ce=G(2422);C.empty={closed:!0,next:function(Y){},error:function(Y){if(le.config.useDeprecatedSynchronousErrorHandling)throw Y;ce.hostReportError(Y)},complete:function(){}}},3281:function(Le,C,G){"use strict";var E,le=this&&this.__extends||(E=function(P,D){return(E=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(k,A){k.__proto__=A}||function(k,A){for(var I in A)A.hasOwnProperty(I)&&(k[I]=A[I])})(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(C,"__esModule",{value:!0});var ce=G(9607),Y=G(7350),Q=G(6052),q=G(2858),N=G(4072),M=G(2422),O=function(E){function P(D,k,A){var I=E.call(this)||this;switch(I.syncErrorValue=null,I.syncErrorThrown=!1,I.syncErrorThrowable=!1,I.isStopped=!1,arguments.length){case 0:I.destination=Y.empty;break;case 1:if(!D){I.destination=Y.empty;break}if("object"==typeof D){D instanceof P?(I.syncErrorThrowable=D.syncErrorThrowable,I.destination=D,D.add(I)):(I.syncErrorThrowable=!0,I.destination=new x(I,D));break}default:I.syncErrorThrowable=!0,I.destination=new x(I,D,k,A)}return I}return le(P,E),P.prototype[q.rxSubscriber]=function(){return this},P.create=function(D,k,A){var I=new P(D,k,A);return I.syncErrorThrowable=!1,I},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);C.Subscriber=O;var x=function(E){function P(D,k,A,I){var B=E.call(this)||this;B._parentSubscriber=D;var z,re=B;return ce.isFunction(k)?z=k:k&&(z=k.next,A=k.error,I=k.complete,k!==Y.empty&&(re=Object.create(k),ce.isFunction(re.unsubscribe)&&B.add(re.unsubscribe.bind(re)),re.unsubscribe=B.unsubscribe.bind(B))),B._context=re,B._next=z,B._error=A,B._complete=I,B}return le(P,E),P.prototype.next=function(D){if(!this.isStopped&&this._next){var k=this._parentSubscriber;N.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,A=N.config.useDeprecatedSynchronousErrorHandling;if(this._error)A&&k.syncErrorThrowable?(this.__tryOrSetError(k,this._error,D),this.unsubscribe()):(this.__tryOrUnsub(this._error,D),this.unsubscribe());else if(k.syncErrorThrowable)A?(k.syncErrorValue=D,k.syncErrorThrown=!0):M.hostReportError(D),this.unsubscribe();else{if(this.unsubscribe(),A)throw D;M.hostReportError(D)}}},P.prototype.complete=function(){var D=this;if(!this.isStopped){var k=this._parentSubscriber;if(this._complete){var A=function(){return D._complete.call(D._context)};N.config.useDeprecatedSynchronousErrorHandling&&k.syncErrorThrowable?(this.__tryOrSetError(k,A),this.unsubscribe()):(this.__tryOrUnsub(A),this.unsubscribe())}else this.unsubscribe()}},P.prototype.__tryOrUnsub=function(D,k){try{D.call(this._context,k)}catch(A){if(this.unsubscribe(),N.config.useDeprecatedSynchronousErrorHandling)throw A;M.hostReportError(A)}},P.prototype.__tryOrSetError=function(D,k,A){if(!N.config.useDeprecatedSynchronousErrorHandling)throw new Error("bad call");try{k.call(this._context,A)}catch(I){return N.config.useDeprecatedSynchronousErrorHandling?(D.syncErrorValue=I,D.syncErrorThrown=!0,!0):(M.hostReportError(I),!0)}return!1},P.prototype._unsubscribe=function(){var D=this._parentSubscriber;this._context=null,this._parentSubscriber=null,D.unsubscribe()},P}(O);C.SafeSubscriber=x},6052:(Le,C,G)=>{"use strict";Object.defineProperty(C,"__esModule",{value:!0});var le=G(5019),ce=G(2556),Y=G(9607),Q=G(2142),q=function(){function M(O){this.closed=!1,this._parentOrParents=null,this._subscriptions=null,O&&(this._ctorUnsubscribe=!0,this._unsubscribe=O)}return M.prototype.unsubscribe=function(){var O;if(!this.closed){var x=this,E=x._parentOrParents,P=x._ctorUnsubscribe,D=x._unsubscribe,k=x._subscriptions;if(this.closed=!0,this._parentOrParents=null,this._subscriptions=null,E instanceof M)E.remove(this);else if(null!==E)for(var A=0;A{"use strict";Object.defineProperty(C,"__esModule",{value:!0});var G=!1;C.config={Promise:void 0,set useDeprecatedSynchronousErrorHandling(le){if(le){var ce=new Error;console.warn("DEPRECATED! RxJS was set to use deprecated synchronous error handling behavior by code at: \n"+ce.stack)}else G&&console.log("RxJS: Back to a better error behavior. Thank you. <3");G=le},get useDeprecatedSynchronousErrorHandling(){return G}}},7448:(Le,C)=>{"use strict";Object.defineProperty(C,"__esModule",{value:!0}),C.observable="function"==typeof Symbol&&Symbol.observable||"@@observable"},2858:(Le,C)=>{"use strict";Object.defineProperty(C,"__esModule",{value:!0}),C.rxSubscriber="function"==typeof Symbol?Symbol("rxSubscriber"):"@@rxSubscriber_"+Math.random(),C.$$rxSubscriber=C.rxSubscriber},2142:(Le,C)=>{"use strict";Object.defineProperty(C,"__esModule",{value:!0});var G=function(){function le(ce){return Error.call(this),this.message=ce?ce.length+" errors occurred during unsubscription:\n"+ce.map(function(Y,Q){return Q+1+") "+Y.toString()}).join("\n "):"",this.name="UnsubscriptionError",this.errors=ce,this}return le.prototype=Object.create(Error.prototype),le}();C.UnsubscriptionError=G},1557:(Le,C,G)=>{"use strict";Object.defineProperty(C,"__esModule",{value:!0});var le=G(3281);C.canReportError=function ce(Y){for(;Y;){var N=Y.destination;if(Y.closed||Y.isStopped)return!1;Y=N&&N instanceof le.Subscriber?N:null}return!0}},2422:(Le,C)=>{"use strict";Object.defineProperty(C,"__esModule",{value:!0}),C.hostReportError=function G(le){setTimeout(function(){throw le},0)}},6610:(Le,C)=>{"use strict";Object.defineProperty(C,"__esModule",{value:!0}),C.identity=function G(le){return le}},5019:(Le,C)=>{"use strict";Object.defineProperty(C,"__esModule",{value:!0}),C.isArray=Array.isArray||function(G){return G&&"number"==typeof G.length}},9607:(Le,C)=>{"use strict";Object.defineProperty(C,"__esModule",{value:!0}),C.isFunction=function G(le){return"function"==typeof le}},2556:(Le,C)=>{"use strict";Object.defineProperty(C,"__esModule",{value:!0}),C.isObject=function G(le){return null!==le&&"object"==typeof le}},7302:(Le,C,G)=>{"use strict";Object.defineProperty(C,"__esModule",{value:!0});var le=G(6610);function Y(Q){return 0===Q.length?le.identity:1===Q.length?Q[0]:function(N){return Q.reduce(function(M,O){return O(M)},N)}}C.pipe=function ce(){for(var Q=[],q=0;q{"use strict";Object.defineProperty(C,"__esModule",{value:!0});var le=G(3281),ce=G(2858),Y=G(7350);C.toSubscriber=function Q(q,N,M){if(q){if(q instanceof le.Subscriber)return q;if(q[ce.rxSubscriber])return q[ce.rxSubscriber]()}return q||N||M?new le.Subscriber(q,N,M):new le.Subscriber(Y.empty)}},5999:(Le,C,G)=>{"use strict";Object.defineProperty(C,"__esModule",{value:!0});var le=G(2962),ce=G(9542);function Q(I){const B=I.map(q);return(z,...re)=>k(B,Ce=>Ce(z,...re))}function q(I){switch(I.type){case"terminal":{const B=[I.valueContainer];return(z,...re)=>B}case"tagName":return function N(I){const B={};for(const z of I.variants)B[z.value]=Q(z.cont);return(z,...re)=>{const Ce=B[z.name];return Ce?Ce(z,...re):[]}}(I);case"attrValue":return function O(I){const B=[];for(const re of I.matchers){const Ce=re.predicate,W=Q(re.cont);B.push((ie,b,...K)=>Ce(ie)?W(b,...K):[])}const z=I.name;return(re,...Ce)=>{const W=re.attribs[z];return W||""===W?k(B,ie=>ie(W,re,...Ce)):[]}}(I);case"attrPresence":return function M(I){const B=I.name,z=Q(I.cont);return(re,...Ce)=>Object.prototype.hasOwnProperty.call(re.attribs,B)?z(re,...Ce):[]}(I);case"pushElement":return function x(I){const B=Q(I.cont),z="+"===I.combinator?E:P;return(re,...Ce)=>{const W=z(re);return null===W?[]:B(W,re,...Ce)}}(I);case"popElement":return function D(I){const B=Q(I.cont);return(z,re,...Ce)=>B(re,...Ce)}(I)}}const E=I=>{const B=I.prev;return null===B?null:le.isTag(B)?B:E(B)},P=I=>{const B=I.parent;return B&&le.isTag(B)?B:null};function k(I,B){return[].concat(...function A(I,B){const z=I.length,re=new Array(z);for(let Ce=0;Ce{"use strict";Object.defineProperty(C,"__esModule",{value:!0});var le=G(4847);function Y(F){if(F&&F.__esModule)return F;var oe=Object.create(null);return F&&Object.keys(F).forEach(function(_e){if("default"!==_e){var V=Object.getOwnPropertyDescriptor(F,_e);Object.defineProperty(oe,_e,V.get?V:{enumerable:!0,get:function(){return F[_e]}})}}),oe.default=F,Object.freeze(oe)}function q(F){return F[0]}const N=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:F=>F.slice(1)},str1:{match:/'(?:\\['\\]|[^\n'\\])*'/,value:F=>F.slice(1,-1)},str2:{match:/"(?:\\["\\]|[^\n"\\])*"/,value:F=>F.slice(1,-1)},asterisk:"*",fullstop:".",comma:",",lbr:"[",rbr:"]",eq:"=",gt:">",vbar:"|",plus:"+",tilde:"~",caret:"^",dollar:"$"});function M(F){return F[0].value}function O(F){return F[1]}function x([F,oe,_e],[V,L,J]){return[F+V,oe+L,_e+J]}const E={Lexer:N,ParserRules:[{name:"main",symbols:["_","listSelector","_"],postprocess:O},{name:"mainNoList",symbols:["_","complexSelector","_"],postprocess:O},{name:"listSelector",symbols:["complexSelector"],postprocess:([F])=>({type:"list",list:[F]})},{name:"listSelector",symbols:["listSelector","_",N.has("comma")?{type:"comma"}:comma,"_","complexSelector"],postprocess:([F,,,,oe])=>({type:"list",list:[...F.list,oe]})},{name:"complexSelector",symbols:["compoundSelector"],postprocess:q},{name:"complexSelector",symbols:["complexSelector","__","compoundSelector"],postprocess:([F,,oe])=>({type:"compound",list:[...oe.list,{type:"combinator",combinator:" ",left:F,specificity:F.specificity}],specificity:x(F.specificity,oe.specificity)})},{name:"complexSelector",symbols:["complexSelector","_","combinator","_","compoundSelector"],postprocess:([F,,oe,,_e])=>({type:"compound",list:[..._e.list,{type:"combinator",combinator:oe,left:F,specificity:F.specificity}],specificity:x(F.specificity,_e.specificity)})},{name:"combinator",symbols:[N.has("gt")?{type:"gt"}:gt],postprocess:()=>">"},{name:"combinator",symbols:[N.has("plus")?{type:"plus"}:plus],postprocess:()=>"+"},{name:"combinator",symbols:[N.has("tilde")?{type:"tilde"}:tilde],postprocess:()=>"~"},{name:"combinator",symbols:[N.has("vbar")?{type:"vbar"}:vbar,N.has("vbar")?{type:"vbar"}:vbar],postprocess:()=>"||"},{name:"compoundSelector",symbols:["typeSelector"],postprocess:([F])=>({type:"compound",list:[F],specificity:F.specificity})},{name:"compoundSelector",symbols:["subclassSelector"],postprocess:([F])=>({type:"compound",list:[F],specificity:F.specificity})},{name:"compoundSelector",symbols:["compoundSelector","subclassSelector"],postprocess:([F,oe])=>({type:"compound",list:[...F.list,oe],specificity:x(F.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:[N.has("lbr")?{type:"lbr"}:lbr,"_","wqname","_",N.has("rbr")?{type:"rbr"}:rbr],postprocess:([,,F])=>({type:"attrPresence",name:F.name,namespace:F.namespace,specificity:[0,1,0]})},{name:"attrValueSelector",symbols:[N.has("lbr")?{type:"lbr"}:lbr,"_","wqname","_","attrMatcher","_","attrValue","_",N.has("rbr")?{type:"rbr"}:rbr],postprocess:([,,F,,oe,,_e])=>({type:"attrValue",name:F.name,namespace:F.namespace,matcher:oe,value:_e.value,modifier:_e.modifier,specificity:[0,1,0]})},{name:"attrMatcher",symbols:[N.has("eq")?{type:"eq"}:eq],postprocess:()=>"="},{name:"attrMatcher",symbols:[N.has("tilde")?{type:"tilde"}:tilde,N.has("eq")?{type:"eq"}:eq],postprocess:()=>"~="},{name:"attrMatcher",symbols:[N.has("vbar")?{type:"vbar"}:vbar,N.has("eq")?{type:"eq"}:eq],postprocess:()=>"|="},{name:"attrMatcher",symbols:[N.has("caret")?{type:"caret"}:caret,N.has("eq")?{type:"eq"}:eq],postprocess:()=>"^="},{name:"attrMatcher",symbols:[N.has("dollar")?{type:"dollar"}:dollar,N.has("eq")?{type:"eq"}:eq],postprocess:()=>"$="},{name:"attrMatcher",symbols:[N.has("asterisk")?{type:"asterisk"}:asterisk,N.has("eq")?{type:"eq"}:eq],postprocess:()=>"*="},{name:"attrValue",symbols:["str"],postprocess:([F])=>({value:F,modifier:null})},{name:"attrValue",symbols:["idn"],postprocess:([F])=>({value:F,modifier:null})},{name:"attrValue",symbols:["str","_","attrModifier"],postprocess:([F,,oe])=>({value:F,modifier:oe})},{name:"attrValue",symbols:["idn","__","attrModifier"],postprocess:([F,,oe])=>({value:F,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:[N.has("hashToken")?{type:"hashToken"}:hashToken],postprocess:([{value:F}])=>({type:"id",name:F,specificity:[1,0,0]})},{name:"classSelector",symbols:[N.has("fullstop")?{type:"fullstop"}:fullstop,"idn"],postprocess:([,F])=>({type:"class",name:F,specificity:[0,1,0]})},{name:"tagSelector",symbols:["wqname"],postprocess:([F])=>({type:"tag",name:F.name,namespace:F.namespace,specificity:[0,0,1]})},{name:"uniSelector",symbols:[N.has("asterisk")?{type:"asterisk"}:asterisk],postprocess:()=>({type:"universal",namespace:null,specificity:[0,0,0]})},{name:"uniSelector",symbols:["ns",N.has("asterisk")?{type:"asterisk"}:asterisk],postprocess:([F])=>({type:"universal",namespace:F,specificity:[0,0,0]})},{name:"wqname",symbols:["idn"],postprocess:([F])=>({name:F,namespace:null})},{name:"wqname",symbols:["ns","idn"],postprocess:([F,oe])=>({name:oe,namespace:F})},{name:"ns",symbols:[N.has("vbar")?{type:"vbar"}:vbar],postprocess:()=>""},{name:"ns",symbols:["idn",N.has("vbar")?{type:"vbar"}:vbar],postprocess:q},{name:"str",symbols:[N.has("str1")?{type:"str1"}:str1],postprocess:M},{name:"str",symbols:[N.has("str2")?{type:"str2"}:str2],postprocess:M},{name:"idn",symbols:[N.has("idn")?{type:"idn"}:idn],postprocess:M},{name:"_$ebnf$1",symbols:[N.has("ws")?{type:"ws"}:ws],postprocess:q},{name:"_$ebnf$1",symbols:[],postprocess:()=>null},{name:"_",symbols:["_$ebnf$1"],postprocess:()=>null},{name:"__",symbols:[N.has("ws")?{type:"ws"}:ws],postprocess:()=>null}],ParserStart:"main"};var P=Object.freeze({__proto__:null});const D={...E,ParserStart:"mainNoList"};function I(F,oe){const _e=new le.Parser(le.Grammar.fromCompiled(F));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(F){if(!F.type)throw new Error("This is not an AST node.");switch(F.type){case"universal":return z(F.namespace)+"*";case"tag":return z(F.namespace)+F.name;case"class":return"."+F.name;case"id":return"#"+F.name;case"attrPresence":return`[${z(F.namespace)}${F.name}]`;case"attrValue":return`[${z(F.namespace)}${F.name}${F.matcher}${function re(F){return-1===F.indexOf('"')?`"${F}"`:-1===F.indexOf("'")?`'${F}'`:`"${F.replace('"','\\"')}"`}(F.value)}${F.modifier?F.modifier:""}]`;case"combinator":return B(F.left)+F.combinator;case"compound":return F.list.reduce((oe,_e)=>"combinator"===_e.type?B(_e)+oe:oe+B(_e),"");case"list":return F.list.map(B).join(",")}}function z(F){return F||""===F?F+"|":""}function W(F){switch(F.type){case"universal":case"tag":return[1];case"id":return[2];case"class":return[3,F.name];case"attrPresence":return[4,B(F)];case"attrValue":return[5,B(F)];case"combinator":return[15,B(F)]}}function K(F,oe){if(!Array.isArray(F)||!Array.isArray(oe))throw new Error("Arguments must be arrays.");const _e=F.lengthK(W(oe),W(_e)));break;case"combinator":Ce(F.left);break;case"list":F.list.forEach(Ce),F.list.sort((oe,_e)=>B(oe){"use strict";Object.defineProperty(C,"__esModule",{value:!0});var le=G(2512);function ce(se){if(se&&se.__esModule)return se;var ye=Object.create(null);return se&&Object.keys(se).forEach(function(be){if("default"!==be){var ae=Object.getOwnPropertyDescriptor(se,be);Object.defineProperty(ye,be,ae.get?ae:{enumerable:!0,get:function(){return se[be]}})}}),ye.default=se,Object.freeze(ye)}var Y=ce(le),Q=Object.freeze({__proto__:null}),q=Object.freeze({__proto__:null});const M=[["\u251c\u2500","\u2502 "],["\u2514\u2500"," "]],O=[["\u2520\u2500","\u2503 "],["\u2516\u2500"," "]],x=[["\u255f\u2500","\u2551 "],["\u2559\u2500"," "]];function E(se,ye=O){return function D(se,ye){return ye.map((be,ae,{length:R})=>function k(se,ye,be=!0){const ae=se[be?1:0];return ae[0]+ye.split("\n").join("\n"+ae[1])}(se,be,ae===R-1)).join("\n")}(ye,se.map(be=>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,x)}`;case"attrValue":return`\u25a3 Attr value: ${se.name}\n${E(se.matchers,x)}`;case"attrPresence":return`\u25e8 Attr presence: ${se.name}\n${E(se.cont)}`;case"pushElement":return`\u25c9 Push element: ${se.combinator}\n${E(se.cont,M)}`;case"popElement":return`\u25cc Pop element\n${E(se.cont,M)}`;case"variant":return`\u25c7 = ${se.value}\n${E(se.cont)}`;case"matcher":return`\u25c8 ${se.matcher} "${se.value}"${se.modifier||""}\n${E(se.cont)}`}}(be)))}var A=Object.freeze({__proto__:null,treeify:se=>"\u25bd\n"+E(se,M)});function z(se){return re(se),Y.normalize(se),se}function re(se){const ye=[];se.list.forEach(be=>{switch(be.type){case"class":ye.push({matcher:"~=",modifier:null,name:"class",namespace:null,specificity:be.specificity,type:"attrValue",value:be.name});break;case"id":ye.push({matcher:"=",modifier:null,name:"id",namespace:null,specificity:be.specificity,type:"attrValue",value:be.name});break;case"combinator":re(be.left),ye.push(be);break;case"universal":break;default:ye.push(be)}}),se.list=ye}function Ce(se){const ye=[];for(;se.length;){const be=ue(se,Ge=>!0,b),{matches:ae,nonmatches:R,empty:We}=ie(se,be);se=R,ae.length&&ye.push(K(be,ae)),We.length&&ye.push(...W(We))}return ye}function W(se){const ye=[];for(const be of se){const ae=be.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 be=[],ae=[],R=[];for(const We of se){const Ge=We.ast.list;Ge.length?(Ge.some(cn=>b(cn)===ye)?be:ae).push(We):R.push(We)}return{matches:be,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 F(se){const ye=J(se,ae=>"tag"===ae.type,ae=>ae.name);return{type:"tagName",variants:Object.entries(ye).map(([ae,R])=>({type:"variant",value:ae,cont:Ce(R.items)}))}}(ye);if(se.startsWith("attrValue "))return function _e(se,ye){const be=J(ye,R=>"attrValue"===R.type&&R.name===se,R=>`${R.matcher} ${R.modifier||""} ${R.value}`),ae=[];for(const R of Object.values(be)){const We=R.oneSimpleSelector,Ge=V(We),Nt=Ce(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 be of ye)pe(be,ae=>"attrPresence"===ae.type&&ae.name===se);return{type:"attrPresence",name:se,cont:Ce(ye)}}(se.substring(13),ye);if("combinator >"===se)return L(">",ye);if("combinator +"===se)return L("+",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 be=>ye===be.toLowerCase();case"~=":return be=>be.toLowerCase().split(/[ \t]+/).includes(ye);case"^=":return be=>be.toLowerCase().startsWith(ye);case"$=":return be=>be.toLowerCase().endsWith(ye);case"*=":return be=>be.toLowerCase().includes(ye);case"|=":return be=>{const ae=be.toLowerCase();return ye===ae||ae.startsWith(ye)&&"-"===ae[ye.length]}}}else{const ye=se.value;switch(se.matcher){case"=":return be=>ye===be;case"~=":return be=>be.split(/[ \t]+/).includes(ye);case"^=":return be=>be.startsWith(ye);case"$=":return be=>be.endsWith(ye);case"*=":return be=>be.includes(ye);case"|=":return be=>ye===be||be.startsWith(ye)&&"-"===be[ye.length]}}}function L(se,ye){const be=J(ye,R=>"combinator"===R.type&&R.combinator===se,R=>Y.serialize(R.left)),ae=[];for(const R of Object.values(be)){const We=Ce(R.items);ae.push({ast:R.oneSimpleSelector.left,terminal:{type:"popElement",cont:We}})}return{type:"pushElement",combinator:se,cont:Ce(ae)}}function J(se,ye,be){const ae={};for(;se.length;){const R=ue(se,ye,be),We=ji=>ye(ji)&&be(ji)===R,Ge=ji=>ji.ast.list.some(We),{matches:Nt,rest:cn}=je(se,Ge);let hi=null;for(const ji of Nt){const Ys=pe(ji,We);hi||(hi=Ys)}if(null==hi)throw new Error("No simple selector is found.");ae[R]={oneSimpleSelector:hi,items:Nt},se=cn}return ae}function pe(se,ye){const be=se.ast.list,ae=new Array(be.length);let R=-1;for(let Ge=be.length;Ge-- >0;)ye(be[Ge])&&(ae[Ge]=!0,R=Ge);if(-1==R)throw new Error("Couldn't find the required simple selector.");const We=be[R];return se.ast.list=be.filter((Ge,Nt)=>!ae[Nt]),We}function ue(se,ye,be){const ae={};for(const Ge of se){const Nt={};for(const cn of Ge.ast.list.filter(ye))Nt[be(cn)]=!0;for(const cn of Object.keys(Nt))ae[cn]?ae[cn]++:ae[cn]=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 be=[],ae=[];for(const R of se)ye(R)?be.push(R):ae.push(R);return{matches:be,rest:ae}}function je(se,ye){const be=[],ae=[];for(const R of se)ye(R)?be.push(R):ae.push(R);return{matches:be,rest:ae}}function Me(se,ye){const be=le.compareSpecificity(ye.specificity,se.specificity);return be>0||0===be&&ye.index0||0===be&&ye.index>se.index}C.Ast=Q,C.DecisionTree=class I{constructor(ye){this.branches=Ce(function B(se){const ye=se.length,be=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:"3.0.4"}}},Le=>{Le(Le.s=7366)}]); \ No newline at end of file